2 # From configure.in Revision: 1.631 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20150926.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35 if expr a : '\(a\)' >/dev/null 2>&1; then
41 rm -f conf$$ conf$$.exe conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
52 elif ln conf$$.file conf$$ 2>/dev/null; then
57 rm -f conf$$ conf$$.exe conf$$.file
59 as_executable_p="test -f"
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
79 # We need space, tab and new line, in precisely that order.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
97 ac_default_prefix=/usr/local
101 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete. It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
108 ac_unique_file="ncurses/base/lib_initscr.c"
109 # Factoring default headers for most tests.
110 ac_includes_default="\
113 # include <sys/types.h>
116 # include <sys/stat.h>
127 # if !STDC_HEADERS && HAVE_MEMORY_H
133 # include <strings.h>
136 # include <inttypes.h>
146 # Initialize some variables set by options.
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
158 program_transform_name=s,x,x,
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datarootdir='${prefix}/share'
175 datadir='${datarootdir}'
176 sysconfdir='${prefix}/etc'
177 sharedstatedir='${prefix}/com'
178 localstatedir='${prefix}/var'
179 libdir='${exec_prefix}/lib'
180 includedir='${prefix}/include'
181 oldincludedir='/usr/include'
182 infodir='${datarootdir}/info'
183 mandir='${datarootdir}/man'
185 # Identity of this package.
195 # If the previous option needs an argument, assign it.
196 if test -n "$ac_prev"; then
197 eval "$ac_prev=\$ac_option"
202 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
204 # Accept the important Cygnus configure options, so we can diagnose typos.
208 -bindir | --bindir | --bindi | --bind | --bin | --bi)
210 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
213 -build | --build | --buil | --bui | --bu)
214 ac_prev=build_alias ;;
215 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
216 build_alias=$ac_optarg ;;
218 -cache-file | --cache-file | --cache-fil | --cache-fi \
219 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
220 ac_prev=cache_file ;;
221 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
222 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
223 cache_file=$ac_optarg ;;
226 cache_file=config.cache ;;
228 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
230 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
232 datadir=$ac_optarg ;;
234 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
235 | --dataroo | --dataro | --datar)
236 ac_prev=datarootdir ;;
237 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
238 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
239 datarootdir=$ac_optarg ;;
241 -disable-* | --disable-*)
242 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
243 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
248 eval "enable_$ac_feature=no" ;;
250 -enable-* | --enable-*)
251 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252 # Reject names that are not valid shell variable names.
253 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
254 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
255 { (exit 1); exit 1; }; }
256 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
258 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
261 eval "enable_$ac_feature='$ac_optarg'" ;;
263 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
264 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
265 | --exec | --exe | --ex)
266 ac_prev=exec_prefix ;;
267 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
268 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
269 | --exec=* | --exe=* | --ex=*)
270 exec_prefix=$ac_optarg ;;
272 -gas | --gas | --ga | --g)
273 # Obsolete; use --with-gas.
276 -help | --help | --hel | --he | -h)
278 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
279 ac_init_help=recursive ;;
280 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
281 ac_init_help=short ;;
283 -host | --host | --hos | --ho)
284 ac_prev=host_alias ;;
285 -host=* | --host=* | --hos=* | --ho=*)
286 host_alias=$ac_optarg ;;
288 -includedir | --includedir | --includedi | --included | --include \
289 | --includ | --inclu | --incl | --inc)
290 ac_prev=includedir ;;
291 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
292 | --includ=* | --inclu=* | --incl=* | --inc=*)
293 includedir=$ac_optarg ;;
295 -infodir | --infodir | --infodi | --infod | --info | --inf)
297 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
298 infodir=$ac_optarg ;;
300 -libdir | --libdir | --libdi | --libd)
302 -libdir=* | --libdir=* | --libdi=* | --libd=*)
305 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
306 | --libexe | --libex | --libe)
307 ac_prev=libexecdir ;;
308 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
309 | --libexe=* | --libex=* | --libe=*)
310 libexecdir=$ac_optarg ;;
312 -localstatedir | --localstatedir | --localstatedi | --localstated \
313 | --localstate | --localstat | --localsta | --localst \
314 | --locals | --local | --loca | --loc | --lo)
315 ac_prev=localstatedir ;;
316 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
317 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
318 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
319 localstatedir=$ac_optarg ;;
321 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
323 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
327 # Obsolete; use --without-fp.
330 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
334 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
335 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
338 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
339 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
340 | --oldin | --oldi | --old | --ol | --o)
341 ac_prev=oldincludedir ;;
342 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
343 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
344 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
345 oldincludedir=$ac_optarg ;;
347 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
349 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
352 -program-prefix | --program-prefix | --program-prefi | --program-pref \
353 | --program-pre | --program-pr | --program-p)
354 ac_prev=program_prefix ;;
355 -program-prefix=* | --program-prefix=* | --program-prefi=* \
356 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
357 program_prefix=$ac_optarg ;;
359 -program-suffix | --program-suffix | --program-suffi | --program-suff \
360 | --program-suf | --program-su | --program-s)
361 ac_prev=program_suffix ;;
362 -program-suffix=* | --program-suffix=* | --program-suffi=* \
363 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
364 program_suffix=$ac_optarg ;;
366 -program-transform-name | --program-transform-name \
367 | --program-transform-nam | --program-transform-na \
368 | --program-transform-n | --program-transform- \
369 | --program-transform | --program-transfor \
370 | --program-transfo | --program-transf \
371 | --program-trans | --program-tran \
372 | --progr-tra | --program-tr | --program-t)
373 ac_prev=program_transform_name ;;
374 -program-transform-name=* | --program-transform-name=* \
375 | --program-transform-nam=* | --program-transform-na=* \
376 | --program-transform-n=* | --program-transform-=* \
377 | --program-transform=* | --program-transfor=* \
378 | --program-transfo=* | --program-transf=* \
379 | --program-trans=* | --program-tran=* \
380 | --progr-tra=* | --program-tr=* | --program-t=*)
381 program_transform_name=$ac_optarg ;;
383 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
384 | -silent | --silent | --silen | --sile | --sil)
387 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
389 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
391 sbindir=$ac_optarg ;;
393 -sharedstatedir | --sharedstatedir | --sharedstatedi \
394 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
395 | --sharedst | --shareds | --shared | --share | --shar \
397 ac_prev=sharedstatedir ;;
398 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
399 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
400 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
402 sharedstatedir=$ac_optarg ;;
404 -site | --site | --sit)
406 -site=* | --site=* | --sit=*)
409 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
411 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
414 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
415 | --syscon | --sysco | --sysc | --sys | --sy)
416 ac_prev=sysconfdir ;;
417 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
418 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
419 sysconfdir=$ac_optarg ;;
421 -target | --target | --targe | --targ | --tar | --ta | --t)
422 ac_prev=target_alias ;;
423 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
424 target_alias=$ac_optarg ;;
426 -v | -verbose | --verbose | --verbos | --verbo | --verb)
429 -version | --version | --versio | --versi | --vers | -V)
433 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
434 # Reject names that are not valid shell variable names.
435 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
436 { echo "$as_me: error: invalid package name: $ac_package" >&2
437 { (exit 1); exit 1; }; }
438 ac_package=`echo $ac_package| sed 's/-/_/g'`
440 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
443 eval "with_$ac_package='$ac_optarg'" ;;
445 -without-* | --without-*)
446 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
447 # Reject names that are not valid shell variable names.
448 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
449 { echo "$as_me: error: invalid package name: $ac_package" >&2
450 { (exit 1); exit 1; }; }
451 ac_package=`echo $ac_package | sed 's/-/_/g'`
452 eval "with_$ac_package=no" ;;
455 # Obsolete; use --with-x.
458 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
459 | --x-incl | --x-inc | --x-in | --x-i)
460 ac_prev=x_includes ;;
461 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
462 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
463 x_includes=$ac_optarg ;;
465 -x-libraries | --x-libraries | --x-librarie | --x-librari \
466 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
467 ac_prev=x_libraries ;;
468 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
469 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
470 x_libraries=$ac_optarg ;;
472 -*) { echo "$as_me: error: unrecognized option: $ac_option
473 Try \`$0 --help' for more information." >&2
474 { (exit 1); exit 1; }; }
478 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
479 # Reject names that are not valid shell variable names.
480 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
481 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
482 { (exit 1); exit 1; }; }
483 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
484 eval "$ac_envvar='$ac_optarg'"
488 # FIXME: should be removed in autoconf 3.0.
489 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
490 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
491 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
492 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
498 if test -n "$ac_prev"; then
499 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
500 { echo "$as_me: error: missing argument to $ac_option" >&2
501 { (exit 1); exit 1; }; }
504 # Be sure to have absolute paths.
505 for ac_var in exec_prefix prefix
507 eval ac_val=$`echo $ac_var`
509 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
510 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
511 { (exit 1); exit 1; }; };;
515 # Be sure to have absolute paths.
516 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
517 localstatedir libdir includedir oldincludedir infodir mandir
519 eval ac_val=$`echo $ac_var`
521 [\\/$]* | ?:[\\/]* ) ;;
522 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
523 { (exit 1); exit 1; }; };;
527 # There might be people who depend on the old broken behavior: `$host'
528 # used to hold the argument of --host etc.
533 # FIXME: should be removed in autoconf 3.0.
534 if test "x$host_alias" != x; then
535 if test "x$build_alias" = x; then
536 cross_compiling=maybe
537 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
538 If a cross compiler is detected then cross compile mode will be used." >&2
539 elif test "x$build_alias" != "x$host_alias"; then
545 test -n "$host_alias" && ac_tool_prefix=$host_alias-
547 test "$silent" = yes && exec 6>/dev/null
549 # Find the source files, if location was not specified.
550 if test -z "$srcdir"; then
551 ac_srcdir_defaulted=yes
552 # Try the directory containing this script, then its parent.
554 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
555 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
557 if test ! -r $srcdir/$ac_unique_file; then
561 ac_srcdir_defaulted=no
563 if test ! -r $srcdir/$ac_unique_file; then
564 if test "$ac_srcdir_defaulted" = yes; then
565 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
566 { (exit 1); exit 1; }; }
568 { echo "$as_me: error: cannot find sources in $srcdir" >&2
569 { (exit 1); exit 1; }; }
572 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
573 ac_env_build_alias_set=${build_alias+set}
574 ac_env_build_alias_value=$build_alias
575 ac_cv_env_build_alias_set=${build_alias+set}
576 ac_cv_env_build_alias_value=$build_alias
577 ac_env_host_alias_set=${host_alias+set}
578 ac_env_host_alias_value=$host_alias
579 ac_cv_env_host_alias_set=${host_alias+set}
580 ac_cv_env_host_alias_value=$host_alias
581 ac_env_target_alias_set=${target_alias+set}
582 ac_env_target_alias_value=$target_alias
583 ac_cv_env_target_alias_set=${target_alias+set}
584 ac_cv_env_target_alias_value=$target_alias
585 ac_env_CC_set=${CC+set}
587 ac_cv_env_CC_set=${CC+set}
588 ac_cv_env_CC_value=$CC
589 ac_env_CFLAGS_set=${CFLAGS+set}
590 ac_env_CFLAGS_value=$CFLAGS
591 ac_cv_env_CFLAGS_set=${CFLAGS+set}
592 ac_cv_env_CFLAGS_value=$CFLAGS
593 ac_env_LDFLAGS_set=${LDFLAGS+set}
594 ac_env_LDFLAGS_value=$LDFLAGS
595 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
596 ac_cv_env_LDFLAGS_value=$LDFLAGS
597 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
598 ac_env_CPPFLAGS_value=$CPPFLAGS
599 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
600 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
601 ac_env_CPP_set=${CPP+set}
602 ac_env_CPP_value=$CPP
603 ac_cv_env_CPP_set=${CPP+set}
604 ac_cv_env_CPP_value=$CPP
605 ac_env_CXX_set=${CXX+set}
606 ac_env_CXX_value=$CXX
607 ac_cv_env_CXX_set=${CXX+set}
608 ac_cv_env_CXX_value=$CXX
609 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
610 ac_env_CXXFLAGS_value=$CXXFLAGS
611 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
612 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
613 ac_env_CXXCPP_set=${CXXCPP+set}
614 ac_env_CXXCPP_value=$CXXCPP
615 ac_cv_env_CXXCPP_set=${CXXCPP+set}
616 ac_cv_env_CXXCPP_value=$CXXCPP
619 # Report the --help message.
621 if test "$ac_init_help" = "long"; then
622 # Omit some internal or obsolete options to make the list less imposing.
623 # This message is too long to be a string in the A/UX 3.1 sh.
625 \`configure' configures this package to adapt to many kinds of systems.
627 Usage: $0 [OPTION]... [VAR=VALUE]...
629 To assign environment variables (e.g., CC, CFLAGS...), specify them as
630 VAR=VALUE. See below for descriptions of some of the useful variables.
632 Defaults for the options are specified in brackets.
635 -h, --help display this help and exit
636 --help=short display options specific to this package
637 --help=recursive display the short help of all the included packages
638 -V, --version display version information and exit
639 -q, --quiet, --silent do not print \`checking...' messages
640 --cache-file=FILE cache test results in FILE [disabled]
641 -C, --config-cache alias for \`--cache-file=config.cache'
642 -n, --no-create do not create output files
643 --srcdir=DIR find the sources in DIR [configure dir or \`..']
648 Installation directories:
649 --prefix=PREFIX install architecture-independent files in PREFIX
651 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
654 By default, \`make install' will install all the files in
655 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
656 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
657 for instance \`--prefix=\$HOME'.
659 For better control, use the options below.
661 Fine tuning of the installation directories:
662 --bindir=DIR user executables [EPREFIX/bin]
663 --sbindir=DIR system admin executables [EPREFIX/sbin]
664 --libexecdir=DIR program executables [EPREFIX/libexec]
665 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
666 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
667 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
668 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
669 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
670 --libdir=DIR object code libraries [EPREFIX/lib]
671 --includedir=DIR C header files [PREFIX/include]
672 --oldincludedir=DIR C header files for non-gcc [/usr/include]
673 --infodir=DIR info documentation [DATAROOTDIR/info]
674 --mandir=DIR man documentation [DATAROOTDIR/man]
680 --program-prefix=PREFIX prepend PREFIX to installed program names
681 --program-suffix=SUFFIX append SUFFIX to installed program names
682 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
685 --build=BUILD configure for building on BUILD [guessed]
686 --host=HOST build programs to run on HOST [BUILD]
687 --target=TARGET configure for building compilers for TARGET [HOST]
691 if test -n "$ac_init_help"; then
696 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
697 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
700 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
701 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
703 --with-rel-version=XXX override derived release version
704 --with-abi-version=XXX override derived ABI version
705 --with-system-type=XXX test: override derived host system-type
706 --without-ada suppress check for Ada95, don't build demo
707 --without-cxx do not adjust ncurses bool to match C++
708 --without-cxx-binding do not build C++ binding and demo
709 --disable-db-install suppress install of terminal database
710 --without-manpages suppress install of manpages
711 --without-progs suppress build/install with programs (e.g., tic)
712 --without-tests suppress build/install with test-programs
713 --without-curses-h install curses.h as ncurses.h only
714 --with-pkg-config{=path} enable/disable use of pkg-config
715 --with-pkg-config-libdir=XXX use given directory for installing pc-files
716 --enable-pc-files generate and install .pc files for pkg-config
717 --with-pc-suffix suffixes pc-files
718 --enable-mixed-case tic should assume mixed-case filenames
719 --with-install-prefix prefixes actual install-location ($DESTDIR)
720 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
721 --with-build-cc=XXX the build C compiler ($BUILD_CC)
722 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
723 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
724 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
725 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
726 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
727 Options to Specify the Libraries Built/Used:
728 --disable-libtool-version enable to use libtool's incompatible naming scheme
729 --with-libtool generate libraries with libtool
730 --with-shared generate shared-libraries
731 --with-normal generate normal-libraries (default)
732 --with-debug generate debug-libraries (default)
733 --with-profile generate profile-libraries
734 --with-cxx-shared generate C++ shared-libraries
735 --with-lib-prefix override library-prefix
736 --with-termlib generate separate terminfo library
737 --with-ticlib generate separate tic library
738 --with-gpm use Alessandro Rubini's GPM library
739 --without-dlsym do not use dlsym() to load GPM dynamically
740 --with-sysmouse use sysmouse (FreeBSD console)
741 --enable-rpath use rpath option when generating shared libraries
742 --disable-relink relink shared libraries during install
743 --with-shlib-version=X Specify rel or abi version for shared libs
744 --with-libtool-opts=XXX specify additional libtool options
745 --with-export-syms=XXX limit exported symbols using libtool
746 --with-versioned-syms=X markup versioned symbols using ld
747 --disable-lib-suffixes disable library suffixes
748 --disable-rpath-hack don't add rpath options for additional libraries
749 Fine-Tuning Your Configuration:
750 --with-extra-suffix=X append extra suffix to header/library paths
751 --disable-overwrite put headers in subdir, omit link to -lcurses
752 --disable-database do not use terminfo, only fallbacks/termcap
753 --with-database=XXX specify terminfo source to install
754 --with-hashed-db specify hashed-database library
755 --with-fallbacks=XXX specify list of fallback terminal descriptions
756 --without-xterm-new specify if xterm terminfo should be old version
757 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
758 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
759 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
760 --disable-big-core assume machine has little memory
761 --disable-big-strings assume compiler has only standard-size strings
762 --enable-termcap compile in termcap fallback support
763 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
764 --enable-getcap fast termcap load, no xrefs to terminfo
765 --enable-getcap-cache cache translated termcaps in ~/.terminfo
766 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
767 --disable-root-environ restrict environment when running as root
768 --enable-symlinks make tic use symbolic links not hard links
769 --enable-broken_linker compile with broken-linker support code
770 --enable-bsdpad recognize BSD-style prefix padding
771 --enable-widec compile with wide-char/UTF-8 code
772 --disable-lp64 allow chtype to be long (ignore _LP64)
773 --disable-largefile omit support for large files
774 --disable-tparm-varargs compile tparm() without varargs interface
775 --disable-tic-depends link tic library without explicit dependency on ncurses library
776 --with-bool=TYPE override fallback type of bool variable
777 --with-caps=alt compile with alternate Caps file
778 --with-chtype=TYPE override type of chtype
779 --with-ospeed=TYPE override type of ospeed variable
780 --with-mmask-t=TYPE override type of mmask_t
781 --with-ccharw-max=XXX override size CCHARW_MAX
782 --with-tparm-arg=TYPE override parameter type of tparm
783 --with-rcs-ids compile-in RCS identifiers
784 Options to Specify How Manpages are Installed:
785 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
786 optionally formatted/catonly, e.g., gzip,formatted
787 --with-manpage-renames specify manpage-renaming
788 --with-manpage-aliases specify manpage-aliases using .so
789 --with-manpage-symlinks specify manpage-aliases using symlinks
790 --with-manpage-tbl specify manpage processing with tbl
792 --disable-ext-funcs disable function-extensions
793 --enable-sp-funcs enable SCREEN-extensions
794 --enable-term-driver enable terminal-driver
795 --enable-const compile with extra/non-standard const
796 --enable-ext-colors compile for 256-color support
797 --enable-ext-mouse compile for extended mouse-encoding
798 --enable-ext-putwin compile with extended putwin/screendump
799 --enable-no-padding compile with $NCURSES_NO_PADDING code
800 --enable-signed-char compile using signed Boolean's in term.h
801 --enable-sigwinch compile with SIGWINCH handler
802 --enable-tcap-names compile with user-definable terminal capabilities
804 --without-develop disable development options
805 --enable-hard-tabs compile with hard-tabs code
806 --enable-xmc-glitch compile with support for xmc (magic-cookie)
808 --disable-assumed-color do not assume anything about default-colors
809 --disable-hashmap compile without hashmap scrolling-optimization
810 --enable-colorfgbg compile-in experimental $COLORFGBG code
811 --enable-interop compile-in interop bindings
812 --with-pthread use POSIX thread library
813 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
814 --enable-weak-symbols enable weak-symbols for pthreads
815 --enable-reentrant compile with reentrant code
816 --with-wrap-prefix=XXX override prefix used for public variables
817 --enable-safe-sprintf compile with experimental safe-sprintf code
818 --disable-scroll-hints compile without scroll-hints code
819 --enable-wgetch-events compile with wgetch-events code
820 Testing/development Options:
821 --disable-echo do not display "compiling" commands
822 --enable-warnings build: turn on GCC compiler warnings
823 --enable-string-hacks work around bogus compiler/loader warnings
824 --enable-assertions test: turn on generation of assertion code
825 --with-dmalloc test: use Gray Watson's dmalloc library
826 --with-dbmalloc test: use Conor Cahill's dbmalloc library
827 --with-valgrind test: use valgrind
828 --disable-leaks test: free permanent memory, analyze leaks
829 --enable-expanded test: generate functions for certain macros
830 --disable-macros test: use functions rather than macros
831 --with-trace test: add trace() function to all models of ncurses
832 --disable-gnat-projects test: disable GNAT projects even if usable
833 Ada95 Binding Options:
834 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
835 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
836 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
837 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
839 Some influential environment variables:
840 CC C compiler command
841 CFLAGS C compiler flags
842 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
843 nonstandard directory <lib dir>
844 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
845 headers in a nonstandard directory <include dir>
847 CXX C++ compiler command
848 CXXFLAGS C++ compiler flags
849 CXXCPP C++ preprocessor
851 Use these variables to override the choices made by `configure' or to help
852 it to find libraries and programs with nonstandard names/locations.
857 if test "$ac_init_help" = "recursive"; then
858 # If there are subdirs, report their specific --help.
860 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
862 # A "../" for each directory in /$ac_subdir.
863 ac_dots=`echo $ac_subdir |
864 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
867 .) # No --srcdir option. We are building in place.
868 ac_sub_srcdir=$srcdir ;;
869 [\\/]* | ?:[\\/]* ) # Absolute path.
870 ac_sub_srcdir=$srcdir/$ac_subdir ;;
872 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
875 # Check for guested configure; otherwise get Cygnus style configure.
876 if test -f $ac_sub_srcdir/configure.gnu; then
878 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
879 elif test -f $ac_sub_srcdir/configure; then
881 $SHELL $ac_sub_srcdir/configure --help=recursive
882 elif test -f $ac_sub_srcdir/configure.ac ||
883 test -f $ac_sub_srcdir/configure.in; then
887 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
893 test -n "$ac_init_help" && exit 0
894 if $ac_init_version; then
897 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
898 Free Software Foundation, Inc.
899 This configure script is free software; the Free Software Foundation
900 gives unlimited permission to copy, distribute and modify it.
906 This file contains any messages produced by compilers while
907 running configure, to aid debugging if configure makes a mistake.
909 It was created by $as_me, which was
910 generated by GNU Autoconf 2.52.20150926. Invocation command line was
921 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
922 uname -m = `(uname -m) 2>/dev/null || echo unknown`
923 uname -r = `(uname -r) 2>/dev/null || echo unknown`
924 uname -s = `(uname -s) 2>/dev/null || echo unknown`
925 uname -v = `(uname -v) 2>/dev/null || echo unknown`
927 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
928 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
930 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
931 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
932 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
933 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
934 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
935 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
936 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
950 # Keep a trace of the command line.
951 # Strip out --no-create and --no-recursion so they do not pile up.
952 # Also quote any args containing shell meta-characters.
958 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
959 | --no-cr | --no-c) ;;
960 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
961 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
962 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
963 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
964 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
966 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
969 # Get rid of the leading space.
972 # When interrupted or exit'd, cleanup temporary files, and complete
973 # config.log. We remove comments because anyway the quotes in there
974 # would cause problems or look ugly.
976 # Save into config.log some information that might help in debugging.
978 echo "## ----------------- ##" >&5
979 echo "## Cache variables. ##" >&5
980 echo "## ----------------- ##" >&5
982 # The following way of writing the cache mishandles newlines in values,
985 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
988 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
989 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
993 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
997 sed "/^$/d" confdefs.h >conftest.log
998 if test -s conftest.log; then
1000 echo "## ------------ ##" >&5
1001 echo "## confdefs.h. ##" >&5
1002 echo "## ------------ ##" >&5
1004 cat conftest.log >&5
1007 test "$ac_signal" != 0 &&
1008 echo "$as_me: caught signal $ac_signal" >&5
1009 echo "$as_me: exit $exit_status" >&5
1010 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1013 for ac_signal in 1 2 13 15; do
1014 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1018 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1019 rm -rf conftest* confdefs.h
1020 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1023 # Let the site file select an alternate cache file if it wants to.
1024 # Prefer explicitly selected file to automatically selected ones.
1025 if test -z "$CONFIG_SITE"; then
1026 if test "x$prefix" != xNONE; then
1027 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1029 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1032 for ac_site_file in $CONFIG_SITE; do
1033 if test -r "$ac_site_file"; then
1034 { echo "$as_me:1034: loading site script $ac_site_file" >&5
1035 echo "$as_me: loading site script $ac_site_file" >&6;}
1036 cat "$ac_site_file" >&5
1041 if test -r "$cache_file"; then
1042 # Some versions of bash will fail to source /dev/null (special
1043 # files actually), so we avoid doing that.
1044 if test -f "$cache_file"; then
1045 { echo "$as_me:1045: loading cache $cache_file" >&5
1046 echo "$as_me: loading cache $cache_file" >&6;}
1048 [\\/]* | ?:[\\/]* ) . $cache_file;;
1049 *) . ./$cache_file;;
1053 { echo "$as_me:1053: creating cache $cache_file" >&5
1054 echo "$as_me: creating cache $cache_file" >&6;}
1058 # Check that the precious variables saved in the cache have kept the same
1060 ac_cache_corrupted=false
1061 for ac_var in `(set) 2>&1 |
1062 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1063 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1064 eval ac_new_set=\$ac_env_${ac_var}_set
1065 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1066 eval ac_new_val="\$ac_env_${ac_var}_value"
1067 case $ac_old_set,$ac_new_set in
1069 { echo "$as_me:1069: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1070 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1071 ac_cache_corrupted=: ;;
1073 { echo "$as_me:1073: error: \`$ac_var' was not set in the previous run" >&5
1074 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1075 ac_cache_corrupted=: ;;
1078 if test "x$ac_old_val" != "x$ac_new_val"; then
1079 { echo "$as_me:1079: error: \`$ac_var' has changed since the previous run:" >&5
1080 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1081 { echo "$as_me:1081: former value: $ac_old_val" >&5
1082 echo "$as_me: former value: $ac_old_val" >&2;}
1083 { echo "$as_me:1083: current value: $ac_new_val" >&5
1084 echo "$as_me: current value: $ac_new_val" >&2;}
1085 ac_cache_corrupted=:
1088 # Pass precious variables to config.status. It doesn't matter if
1089 # we pass some twice (in addition to the command line arguments).
1090 if test "$ac_new_set" = set; then
1092 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1093 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1094 ac_configure_args="$ac_configure_args '$ac_arg'"
1096 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1101 if $ac_cache_corrupted; then
1102 { echo "$as_me:1102: error: changes in the environment can compromise the build" >&5
1103 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1104 { { echo "$as_me:1104: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1105 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1106 { (exit 1); exit 1; }; }
1110 ac_cpp='$CPP $CPPFLAGS'
1111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1114 ac_main_return=return
1116 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1117 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1119 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1120 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1122 echo "#! $SHELL" >conftest.sh
1123 echo "exit 0" >>conftest.sh
1124 chmod +x conftest.sh
1125 if { (echo "$as_me:1125: PATH=\".;.\"; conftest.sh") >&5
1126 (PATH=".;."; conftest.sh) 2>&5
1128 echo "$as_me:1128: \$? = $ac_status" >&5
1129 (exit $ac_status); }; then
1130 ac_path_separator=';'
1134 PATH_SEPARATOR="$ac_path_separator"
1137 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1141 echo "$as_me:1141: checking for egrep" >&5
1142 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1143 if test "${ac_cv_prog_egrep+set}" = set; then
1144 echo $ECHO_N "(cached) $ECHO_C" >&6
1146 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1147 then ac_cv_prog_egrep='grep -E'
1148 else ac_cv_prog_egrep='egrep'
1151 echo "$as_me:1151: result: $ac_cv_prog_egrep" >&5
1152 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1153 EGREP=$ac_cv_prog_egrep
1155 test -z "$EGREP" && { { echo "$as_me:1155: error: No egrep program found" >&5
1156 echo "$as_me: error: No egrep program found" >&2;}
1157 { (exit 1); exit 1; }; }
1159 NCURSES_MAJOR="`$ac_cv_prog_egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1160 NCURSES_MINOR="`$ac_cv_prog_egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1161 NCURSES_PATCH="`$ac_cv_prog_egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1162 cf_cv_abi_version=${NCURSES_MAJOR}
1163 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1164 cf_cv_timestamp=`date`
1165 echo "$as_me:1165: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1166 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1168 if test -f $srcdir/VERSION ; then
1169 echo "$as_me:1169: checking for package version" >&5
1170 echo $ECHO_N "checking for package version... $ECHO_C" >&6
1172 # if there are not enough fields, cut returns the last one...
1173 cf_field1=`sed -e '2,$d' $srcdir/VERSION|cut -f1`
1174 cf_field2=`sed -e '2,$d' $srcdir/VERSION|cut -f2`
1175 cf_field3=`sed -e '2,$d' $srcdir/VERSION|cut -f3`
1177 # this is how CF_BUNDLED_INTL uses $VERSION:
1178 VERSION="$cf_field1"
1180 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
1181 test -z "$VERSION_MAJOR" && { { echo "$as_me:1181: error: missing major-version" >&5
1182 echo "$as_me: error: missing major-version" >&2;}
1183 { (exit 1); exit 1; }; }
1185 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
1186 test -z "$VERSION_MINOR" && { { echo "$as_me:1186: error: missing minor-version" >&5
1187 echo "$as_me: error: missing minor-version" >&2;}
1188 { (exit 1); exit 1; }; }
1190 echo "$as_me:1190: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
1191 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
1193 echo "$as_me:1193: checking for package patch date" >&5
1194 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
1195 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
1196 case .$VERSION_PATCH in
1198 { { echo "$as_me:1198: error: missing patch-date $VERSION_PATCH" >&5
1199 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
1200 { (exit 1); exit 1; }; }
1202 (.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
1205 { { echo "$as_me:1205: error: illegal patch-date $VERSION_PATCH" >&5
1206 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
1207 { (exit 1); exit 1; }; }
1210 echo "$as_me:1210: result: $VERSION_PATCH" >&5
1211 echo "${ECHO_T}$VERSION_PATCH" >&6
1213 { { echo "$as_me:1213: error: did not find $srcdir/VERSION" >&5
1214 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
1215 { (exit 1); exit 1; }; }
1218 # show the actual data that we have for versions:
1219 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
1221 echo "${as_me:-configure}:1221: testing ABI VERSION $VERSION ..." 1>&5
1223 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
1225 echo "${as_me:-configure}:1225: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
1227 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
1229 echo "${as_me:-configure}:1229: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
1231 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
1233 echo "${as_me:-configure}:1233: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
1238 cat >>confdefs.h <<EOF
1239 #define PACKAGE "$PACKAGE"
1242 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1244 cat >>confdefs.h <<EOF
1245 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
1248 cat >>confdefs.h <<EOF
1249 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
1252 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1254 # Check whether --with-rel-version or --without-rel-version was given.
1255 if test "${with_rel_version+set}" = set; then
1256 withval="$with_rel_version"
1257 { echo "$as_me:1257: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1258 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1259 cf_cv_rel_version=$withval
1262 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1263 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1265 if test -n "$NCURSES_MAJOR" ; then
1266 case $NCURSES_MAJOR in
1270 { { echo "$as_me:1270: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1271 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1272 { (exit 1); exit 1; }; }
1276 { { echo "$as_me:1276: error: Release major-version value is empty" >&5
1277 echo "$as_me: error: Release major-version value is empty" >&2;}
1278 { (exit 1); exit 1; }; }
1281 if test -n "$NCURSES_MINOR" ; then
1282 case $NCURSES_MINOR in
1286 { { echo "$as_me:1286: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1287 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1288 { (exit 1); exit 1; }; }
1292 { { echo "$as_me:1292: error: Release minor-version value is empty" >&5
1293 echo "$as_me: error: Release minor-version value is empty" >&2;}
1294 { (exit 1); exit 1; }; }
1297 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1299 # Check whether --with-abi-version or --without-abi-version was given.
1300 if test "${with_abi_version+set}" = set; then
1301 withval="$with_abi_version"
1303 if test "x$cf_cv_abi_version" != "x$withval"
1305 { echo "$as_me:1305: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1306 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1307 case $cf_cv_rel_version in
1309 cf_cv_rel_version=$withval.0
1312 cf_cv_rel_version=$withval.9 # FIXME: should be 10 as of 6.0 release
1316 cf_cv_abi_version=$withval
1319 if test -n "$cf_cv_abi_version" ; then
1320 case $cf_cv_abi_version in
1324 { { echo "$as_me:1324: error: ABI version is not a number: $cf_cv_abi_version" >&5
1325 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1326 { (exit 1); exit 1; }; }
1330 { { echo "$as_me:1330: error: ABI version value is empty" >&5
1331 echo "$as_me: error: ABI version value is empty" >&2;}
1332 { (exit 1); exit 1; }; }
1335 if test "x$cf_cv_abi_version" != "x$with_abi_version"
1337 case $cf_cv_rel_version in
1339 cf_cv_rel_version=$with_abi_version.0
1345 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1346 if test -f $ac_dir/install-sh; then
1348 ac_install_sh="$ac_aux_dir/install-sh -c"
1350 elif test -f $ac_dir/install.sh; then
1352 ac_install_sh="$ac_aux_dir/install.sh -c"
1354 elif test -f $ac_dir/shtool; then
1356 ac_install_sh="$ac_aux_dir/shtool install -c"
1360 if test -z "$ac_aux_dir"; then
1361 { { echo "$as_me:1361: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1362 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1363 { (exit 1); exit 1; }; }
1365 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1366 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1367 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1369 # Make sure we can run config.sub.
1370 $ac_config_sub sun4 >/dev/null 2>&1 ||
1371 { { echo "$as_me:1371: error: cannot run $ac_config_sub" >&5
1372 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1373 { (exit 1); exit 1; }; }
1375 echo "$as_me:1375: checking build system type" >&5
1376 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1377 if test "${ac_cv_build+set}" = set; then
1378 echo $ECHO_N "(cached) $ECHO_C" >&6
1380 ac_cv_build_alias=$build_alias
1381 test -z "$ac_cv_build_alias" &&
1382 ac_cv_build_alias=`$ac_config_guess`
1383 test -z "$ac_cv_build_alias" &&
1384 { { echo "$as_me:1384: error: cannot guess build type; you must specify one" >&5
1385 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1386 { (exit 1); exit 1; }; }
1387 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1388 { { echo "$as_me:1388: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1389 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1390 { (exit 1); exit 1; }; }
1393 echo "$as_me:1393: result: $ac_cv_build" >&5
1394 echo "${ECHO_T}$ac_cv_build" >&6
1396 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1397 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1398 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1400 echo "$as_me:1400: checking host system type" >&5
1401 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1402 if test "${ac_cv_host+set}" = set; then
1403 echo $ECHO_N "(cached) $ECHO_C" >&6
1405 ac_cv_host_alias=$host_alias
1406 test -z "$ac_cv_host_alias" &&
1407 ac_cv_host_alias=$ac_cv_build_alias
1408 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1409 { { echo "$as_me:1409: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1410 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1411 { (exit 1); exit 1; }; }
1414 echo "$as_me:1414: result: $ac_cv_host" >&5
1415 echo "${ECHO_T}$ac_cv_host" >&6
1417 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1418 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1419 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1421 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1422 echo "$as_me:1422: checking target system type" >&5
1423 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1424 if test "${ac_cv_target+set}" = set; then
1425 echo $ECHO_N "(cached) $ECHO_C" >&6
1427 ac_cv_target_alias=$target_alias
1428 test "x$ac_cv_target_alias" = "x" &&
1429 ac_cv_target_alias=$ac_cv_host_alias
1430 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1431 { { echo "$as_me:1431: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1432 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1433 { (exit 1); exit 1; }; }
1436 echo "$as_me:1436: result: $ac_cv_target" >&5
1437 echo "${ECHO_T}$ac_cv_target" >&6
1438 target=$ac_cv_target
1439 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1440 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1441 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1443 # The aliases save the names the user supplied, while $host etc.
1444 # will get canonicalized.
1445 test -n "$target_alias" &&
1446 test "$program_prefix$program_suffix$program_transform_name" = \
1448 program_prefix=${target_alias}-
1449 system_name="$host_os"
1451 system_name="`(uname -s -r) 2>/dev/null`"
1452 if test -z "$system_name" ; then
1453 system_name="`(hostname) 2>/dev/null`"
1456 test -n "$system_name" &&
1457 cat >>confdefs.h <<EOF
1458 #define SYSTEM_NAME "$system_name"
1461 if test "${cf_cv_system_name+set}" = set; then
1462 echo $ECHO_N "(cached) $ECHO_C" >&6
1464 cf_cv_system_name="$system_name"
1467 test -z "$system_name" && system_name="$cf_cv_system_name"
1468 test -n "$cf_cv_system_name" && echo "$as_me:1468: result: Configuring for $cf_cv_system_name" >&5
1469 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1471 if test ".$system_name" != ".$cf_cv_system_name" ; then
1472 echo "$as_me:1472: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1473 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1474 { { echo "$as_me:1474: error: \"Please remove config.cache and try again.\"" >&5
1475 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1476 { (exit 1); exit 1; }; }
1479 # Check whether --with-system-type or --without-system-type was given.
1480 if test "${with_system_type+set}" = set; then
1481 withval="$with_system_type"
1482 { echo "$as_me:1482: WARNING: overriding system type to $withval" >&5
1483 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1484 cf_cv_system_name=$withval
1489 ### Save the given $CFLAGS to allow user-override.
1490 cf_user_CFLAGS="$CFLAGS"
1492 ### Default install-location
1494 echo "$as_me:1494: checking for prefix" >&5
1495 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1496 if test "x$prefix" = "xNONE" ; then
1497 case "$cf_cv_system_name" in
1498 # non-vendor systems don't have a conflict
1499 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1502 (*) prefix=$ac_default_prefix
1506 echo "$as_me:1506: result: $prefix" >&5
1507 echo "${ECHO_T}$prefix" >&6
1509 if test "x$prefix" = "xNONE" ; then
1510 echo "$as_me:1510: checking for default include-directory" >&5
1511 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1512 test -n "$verbose" && echo 1>&6
1515 $includedir/ncurses \
1517 $prefix/include/ncurses \
1518 /usr/local/include \
1519 /usr/local/include/ncurses \
1521 /usr/include/ncurses
1523 cf_dir=`eval echo $cf_symbol`
1524 if test -f $cf_dir/curses.h ; then
1525 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1526 includedir="$cf_symbol"
1527 test -n "$verbose" && echo $ac_n " found " 1>&6
1531 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1533 echo "$as_me:1533: result: $includedir" >&5
1534 echo "${ECHO_T}$includedir" >&6
1537 ### Defaults for ncurses ABI
1539 case x$cf_cv_abi_version in
1541 cf_dft_ext_colors=yes
1542 cf_dft_ext_const=yes
1543 cf_dft_ext_mouse=yes
1544 cf_dft_ext_putwin=yes
1545 cf_dft_ext_spfuncs=yes
1546 cf_dft_filter_syms=yes
1547 cf_dft_chtype=uint32_t
1548 cf_dft_mmask_t=uint32_t
1550 cf_dft_tparm_arg=intptr_t
1551 cf_dft_with_lp64=yes
1554 cf_dft_ext_colors=no
1557 cf_dft_ext_putwin=no
1558 cf_dft_ext_spfuncs=no
1559 cf_dft_filter_syms=no
1563 cf_dft_tparm_arg=long
1568 ### Checks for programs.
1570 # Check whether --with-ada or --without-ada was given.
1571 if test "${with_ada+set}" = set; then
1573 cf_with_ada=$withval
1577 if test "x$cf_with_ada" = xyes
1579 cf_PROG_CC="gnatgcc gcc cc"
1585 ac_cpp='$CPP $CPPFLAGS'
1586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1589 ac_main_return=return
1590 if test -n "$ac_tool_prefix"; then
1591 for ac_prog in $cf_PROG_CC
1593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1594 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1595 echo "$as_me:1595: checking for $ac_word" >&5
1596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1597 if test "${ac_cv_prog_CC+set}" = set; then
1598 echo $ECHO_N "(cached) $ECHO_C" >&6
1600 if test -n "$CC"; then
1601 ac_cv_prog_CC="$CC" # Let the user override the test.
1603 ac_save_IFS=$IFS; IFS=$ac_path_separator
1605 for ac_dir in $ac_dummy; do
1607 test -z "$ac_dir" && ac_dir=.
1608 $as_executable_p "$ac_dir/$ac_word" || continue
1609 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1610 echo "$as_me:1610: found $ac_dir/$ac_word" >&5
1617 if test -n "$CC"; then
1618 echo "$as_me:1618: result: $CC" >&5
1619 echo "${ECHO_T}$CC" >&6
1621 echo "$as_me:1621: result: no" >&5
1622 echo "${ECHO_T}no" >&6
1625 test -n "$CC" && break
1628 if test -z "$CC"; then
1630 for ac_prog in $cf_PROG_CC
1632 # Extract the first word of "$ac_prog", so it can be a program name with args.
1633 set dummy $ac_prog; ac_word=$2
1634 echo "$as_me:1634: checking for $ac_word" >&5
1635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1636 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1637 echo $ECHO_N "(cached) $ECHO_C" >&6
1639 if test -n "$ac_ct_CC"; then
1640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1642 ac_save_IFS=$IFS; IFS=$ac_path_separator
1644 for ac_dir in $ac_dummy; do
1646 test -z "$ac_dir" && ac_dir=.
1647 $as_executable_p "$ac_dir/$ac_word" || continue
1648 ac_cv_prog_ac_ct_CC="$ac_prog"
1649 echo "$as_me:1649: found $ac_dir/$ac_word" >&5
1655 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1656 if test -n "$ac_ct_CC"; then
1657 echo "$as_me:1657: result: $ac_ct_CC" >&5
1658 echo "${ECHO_T}$ac_ct_CC" >&6
1660 echo "$as_me:1660: result: no" >&5
1661 echo "${ECHO_T}no" >&6
1664 test -n "$ac_ct_CC" && break
1670 test -z "$CC" && { { echo "$as_me:1670: error: no acceptable cc found in \$PATH" >&5
1671 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1672 { (exit 1); exit 1; }; }
1674 # Provide some information about the compiler.
1675 echo "$as_me:1675:" \
1676 "checking for C compiler version" >&5
1677 ac_compiler=`set X $ac_compile; echo $2`
1678 { (eval echo "$as_me:1678: \"$ac_compiler --version </dev/null >&5\"") >&5
1679 (eval $ac_compiler --version </dev/null >&5) 2>&5
1681 echo "$as_me:1681: \$? = $ac_status" >&5
1682 (exit $ac_status); }
1683 { (eval echo "$as_me:1683: \"$ac_compiler -v </dev/null >&5\"") >&5
1684 (eval $ac_compiler -v </dev/null >&5) 2>&5
1686 echo "$as_me:1686: \$? = $ac_status" >&5
1687 (exit $ac_status); }
1688 { (eval echo "$as_me:1688: \"$ac_compiler -V </dev/null >&5\"") >&5
1689 (eval $ac_compiler -V </dev/null >&5) 2>&5
1691 echo "$as_me:1691: \$? = $ac_status" >&5
1692 (exit $ac_status); }
1694 cat >conftest.$ac_ext <<_ACEOF
1695 #line 1695 "configure"
1696 #include "confdefs.h"
1706 ac_clean_files_save=$ac_clean_files
1707 ac_clean_files="$ac_clean_files a.out a.exe"
1708 # Try to create an executable without -o first, disregard a.out.
1709 # It will help us diagnose broken compilers, and finding out an intuition
1711 echo "$as_me:1711: checking for C compiler default output" >&5
1712 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1713 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1714 if { (eval echo "$as_me:1714: \"$ac_link_default\"") >&5
1715 (eval $ac_link_default) 2>&5
1717 echo "$as_me:1717: \$? = $ac_status" >&5
1718 (exit $ac_status); }; then
1719 # Find the output, starting from the most likely. This scheme is
1720 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1722 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1723 ls a.out conftest 2>/dev/null;
1724 ls a.* conftest.* 2>/dev/null`; do
1726 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1727 a.out ) # We found the default executable, but exeext='' is most
1730 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1731 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1738 echo "$as_me: failed program was:" >&5
1739 cat conftest.$ac_ext >&5
1740 { { echo "$as_me:1740: error: C compiler cannot create executables" >&5
1741 echo "$as_me: error: C compiler cannot create executables" >&2;}
1742 { (exit 77); exit 77; }; }
1745 ac_exeext=$ac_cv_exeext
1746 echo "$as_me:1746: result: $ac_file" >&5
1747 echo "${ECHO_T}$ac_file" >&6
1749 # Check the compiler produces executables we can run. If not, either
1750 # the compiler is broken, or we cross compile.
1751 echo "$as_me:1751: checking whether the C compiler works" >&5
1752 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1753 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1754 # If not cross compiling, check that we can run a simple program.
1755 if test "$cross_compiling" != yes; then
1756 if { ac_try='./$ac_file'
1757 { (eval echo "$as_me:1757: \"$ac_try\"") >&5
1760 echo "$as_me:1760: \$? = $ac_status" >&5
1761 (exit $ac_status); }; }; then
1764 if test "$cross_compiling" = maybe; then
1767 { { echo "$as_me:1767: error: cannot run C compiled programs.
1768 If you meant to cross compile, use \`--host'." >&5
1769 echo "$as_me: error: cannot run C compiled programs.
1770 If you meant to cross compile, use \`--host'." >&2;}
1771 { (exit 1); exit 1; }; }
1775 echo "$as_me:1775: result: yes" >&5
1776 echo "${ECHO_T}yes" >&6
1778 rm -f a.out a.exe conftest$ac_cv_exeext
1779 ac_clean_files=$ac_clean_files_save
1780 # Check the compiler produces executables we can run. If not, either
1781 # the compiler is broken, or we cross compile.
1782 echo "$as_me:1782: checking whether we are cross compiling" >&5
1783 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1784 echo "$as_me:1784: result: $cross_compiling" >&5
1785 echo "${ECHO_T}$cross_compiling" >&6
1787 echo "$as_me:1787: checking for executable suffix" >&5
1788 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1789 if { (eval echo "$as_me:1789: \"$ac_link\"") >&5
1790 (eval $ac_link) 2>&5
1792 echo "$as_me:1792: \$? = $ac_status" >&5
1793 (exit $ac_status); }; then
1794 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1795 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1796 # work properly (i.e., refer to `conftest.exe'), while it won't with
1798 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1800 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1801 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1808 { { echo "$as_me:1808: error: cannot compute EXEEXT: cannot compile and link" >&5
1809 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1810 { (exit 1); exit 1; }; }
1813 rm -f conftest$ac_cv_exeext
1814 echo "$as_me:1814: result: $ac_cv_exeext" >&5
1815 echo "${ECHO_T}$ac_cv_exeext" >&6
1817 rm -f conftest.$ac_ext
1818 EXEEXT=$ac_cv_exeext
1820 echo "$as_me:1820: checking for object suffix" >&5
1821 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1822 if test "${ac_cv_objext+set}" = set; then
1823 echo $ECHO_N "(cached) $ECHO_C" >&6
1825 cat >conftest.$ac_ext <<_ACEOF
1826 #line 1826 "configure"
1827 #include "confdefs.h"
1837 rm -f conftest.o conftest.obj
1838 if { (eval echo "$as_me:1838: \"$ac_compile\"") >&5
1839 (eval $ac_compile) 2>&5
1841 echo "$as_me:1841: \$? = $ac_status" >&5
1842 (exit $ac_status); }; then
1843 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1845 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1846 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1851 echo "$as_me: failed program was:" >&5
1852 cat conftest.$ac_ext >&5
1853 { { echo "$as_me:1853: error: cannot compute OBJEXT: cannot compile" >&5
1854 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1855 { (exit 1); exit 1; }; }
1858 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1860 echo "$as_me:1860: result: $ac_cv_objext" >&5
1861 echo "${ECHO_T}$ac_cv_objext" >&6
1862 OBJEXT=$ac_cv_objext
1864 echo "$as_me:1864: checking whether we are using the GNU C compiler" >&5
1865 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1866 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1869 cat >conftest.$ac_ext <<_ACEOF
1870 #line 1870 "configure"
1871 #include "confdefs.h"
1884 rm -f conftest.$ac_objext
1885 if { (eval echo "$as_me:1885: \"$ac_compile\"") >&5
1886 (eval $ac_compile) 2>&5
1888 echo "$as_me:1888: \$? = $ac_status" >&5
1889 (exit $ac_status); } &&
1890 { ac_try='test -s conftest.$ac_objext'
1891 { (eval echo "$as_me:1891: \"$ac_try\"") >&5
1894 echo "$as_me:1894: \$? = $ac_status" >&5
1895 (exit $ac_status); }; }; then
1898 echo "$as_me: failed program was:" >&5
1899 cat conftest.$ac_ext >&5
1902 rm -f conftest.$ac_objext conftest.$ac_ext
1903 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1906 echo "$as_me:1906: result: $ac_cv_c_compiler_gnu" >&5
1907 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1908 GCC=`test $ac_compiler_gnu = yes && echo yes`
1909 ac_test_CFLAGS=${CFLAGS+set}
1910 ac_save_CFLAGS=$CFLAGS
1912 echo "$as_me:1912: checking whether $CC accepts -g" >&5
1913 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1914 if test "${ac_cv_prog_cc_g+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 cat >conftest.$ac_ext <<_ACEOF
1918 #line 1918 "configure"
1919 #include "confdefs.h"
1929 rm -f conftest.$ac_objext
1930 if { (eval echo "$as_me:1930: \"$ac_compile\"") >&5
1931 (eval $ac_compile) 2>&5
1933 echo "$as_me:1933: \$? = $ac_status" >&5
1934 (exit $ac_status); } &&
1935 { ac_try='test -s conftest.$ac_objext'
1936 { (eval echo "$as_me:1936: \"$ac_try\"") >&5
1939 echo "$as_me:1939: \$? = $ac_status" >&5
1940 (exit $ac_status); }; }; then
1943 echo "$as_me: failed program was:" >&5
1944 cat conftest.$ac_ext >&5
1947 rm -f conftest.$ac_objext conftest.$ac_ext
1949 echo "$as_me:1949: result: $ac_cv_prog_cc_g" >&5
1950 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1951 if test "$ac_test_CFLAGS" = set; then
1952 CFLAGS=$ac_save_CFLAGS
1953 elif test $ac_cv_prog_cc_g = yes; then
1954 if test "$GCC" = yes; then
1960 if test "$GCC" = yes; then
1966 # Some people use a C++ compiler to compile C. Since we use `exit',
1967 # in C++ we need to declare it. In case someone uses the same compiler
1968 # for both compiling C and C++ we need to have the C++ compiler decide
1969 # the declaration of exit, since it's the most demanding environment.
1970 cat >conftest.$ac_ext <<_ACEOF
1975 rm -f conftest.$ac_objext
1976 if { (eval echo "$as_me:1976: \"$ac_compile\"") >&5
1977 (eval $ac_compile) 2>&5
1979 echo "$as_me:1979: \$? = $ac_status" >&5
1980 (exit $ac_status); } &&
1981 { ac_try='test -s conftest.$ac_objext'
1982 { (eval echo "$as_me:1982: \"$ac_try\"") >&5
1985 echo "$as_me:1985: \$? = $ac_status" >&5
1986 (exit $ac_status); }; }; then
1987 for ac_declaration in \
1989 '#include <stdlib.h>' \
1990 'extern "C" void std::exit (int) throw (); using std::exit;' \
1991 'extern "C" void std::exit (int); using std::exit;' \
1992 'extern "C" void exit (int) throw ();' \
1993 'extern "C" void exit (int);' \
1996 cat >conftest.$ac_ext <<_ACEOF
1997 #line 1997 "configure"
1998 #include "confdefs.h"
2009 rm -f conftest.$ac_objext
2010 if { (eval echo "$as_me:2010: \"$ac_compile\"") >&5
2011 (eval $ac_compile) 2>&5
2013 echo "$as_me:2013: \$? = $ac_status" >&5
2014 (exit $ac_status); } &&
2015 { ac_try='test -s conftest.$ac_objext'
2016 { (eval echo "$as_me:2016: \"$ac_try\"") >&5
2019 echo "$as_me:2019: \$? = $ac_status" >&5
2020 (exit $ac_status); }; }; then
2023 echo "$as_me: failed program was:" >&5
2024 cat conftest.$ac_ext >&5
2027 rm -f conftest.$ac_objext conftest.$ac_ext
2028 cat >conftest.$ac_ext <<_ACEOF
2029 #line 2029 "configure"
2030 #include "confdefs.h"
2040 rm -f conftest.$ac_objext
2041 if { (eval echo "$as_me:2041: \"$ac_compile\"") >&5
2042 (eval $ac_compile) 2>&5
2044 echo "$as_me:2044: \$? = $ac_status" >&5
2045 (exit $ac_status); } &&
2046 { ac_try='test -s conftest.$ac_objext'
2047 { (eval echo "$as_me:2047: \"$ac_try\"") >&5
2050 echo "$as_me:2050: \$? = $ac_status" >&5
2051 (exit $ac_status); }; }; then
2054 echo "$as_me: failed program was:" >&5
2055 cat conftest.$ac_ext >&5
2057 rm -f conftest.$ac_objext conftest.$ac_ext
2060 if test -n "$ac_declaration"; then
2061 echo '#ifdef __cplusplus' >>confdefs.h
2062 echo $ac_declaration >>confdefs.h
2063 echo '#endif' >>confdefs.h
2067 echo "$as_me: failed program was:" >&5
2068 cat conftest.$ac_ext >&5
2070 rm -f conftest.$ac_objext conftest.$ac_ext
2072 ac_cpp='$CPP $CPPFLAGS'
2073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2076 ac_main_return=return
2079 if test "$GCC" = yes ; then
2080 echo "$as_me:2080: checking version of $CC" >&5
2081 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2082 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2083 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2084 echo "$as_me:2084: result: $GCC_VERSION" >&5
2085 echo "${ECHO_T}$GCC_VERSION" >&6
2088 echo "$as_me:2088: checking for $CC option to accept ANSI C" >&5
2089 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2090 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2091 echo $ECHO_N "(cached) $ECHO_C" >&6
2093 ac_cv_prog_cc_stdc=no
2095 cat >conftest.$ac_ext <<_ACEOF
2096 #line 2096 "configure"
2097 #include "confdefs.h"
2100 #include <sys/types.h>
2101 #include <sys/stat.h>
2102 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2103 struct buf { int x; };
2104 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2105 static char *e (p, i)
2111 static char *f (char * (*g) (char **, int), char **p, ...)
2116 s = g (p, va_arg (v,int));
2120 int test (int i, double x);
2121 struct s1 {int (*f) (int a);};
2122 struct s2 {int (*f) (double a);};
2123 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2129 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2134 # Don't try gcc -ansi; that turns off useful extensions and
2135 # breaks some systems' header files.
2136 # AIX -qlanglvl=ansi
2137 # Ultrix and OSF/1 -std1
2138 # HP-UX 10.20 and later -Ae
2139 # HP-UX older versions -Aa -D_HPUX_SOURCE
2140 # SVR4 -Xc -D__EXTENSIONS__
2141 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2143 CC="$ac_save_CC $ac_arg"
2144 rm -f conftest.$ac_objext
2145 if { (eval echo "$as_me:2145: \"$ac_compile\"") >&5
2146 (eval $ac_compile) 2>&5
2148 echo "$as_me:2148: \$? = $ac_status" >&5
2149 (exit $ac_status); } &&
2150 { ac_try='test -s conftest.$ac_objext'
2151 { (eval echo "$as_me:2151: \"$ac_try\"") >&5
2154 echo "$as_me:2154: \$? = $ac_status" >&5
2155 (exit $ac_status); }; }; then
2156 ac_cv_prog_cc_stdc=$ac_arg
2159 echo "$as_me: failed program was:" >&5
2160 cat conftest.$ac_ext >&5
2162 rm -f conftest.$ac_objext
2164 rm -f conftest.$ac_ext conftest.$ac_objext
2169 case "x$ac_cv_prog_cc_stdc" in
2171 echo "$as_me:2171: result: none needed" >&5
2172 echo "${ECHO_T}none needed" >&6 ;;
2174 echo "$as_me:2174: result: $ac_cv_prog_cc_stdc" >&5
2175 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2176 CC="$CC $ac_cv_prog_cc_stdc" ;;
2179 # This should have been defined by AC_PROG_CC
2182 echo "$as_me:2182: checking \$CC variable" >&5
2183 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2186 echo "$as_me:2186: result: broken" >&5
2187 echo "${ECHO_T}broken" >&6
2188 { echo "$as_me:2188: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2189 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2191 cf_flags=`echo "$CC" | sed -e 's/^.*[ ]\(-[^ ]\)/\1/'`
2192 CC=`echo "$CC " | sed -e 's/[ ]-[^ ].*$//' -e 's/[ ]*$//'`
2193 for cf_arg in $cf_flags
2201 cf_new_extra_cppflags=
2203 for cf_add_cflags in $cf_flags
2205 case $cf_fix_cppflags in
2207 case $cf_add_cflags in
2208 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2209 case $cf_add_cflags in
2211 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2213 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2214 && test -z "${cf_tst_cflags}" \
2215 && cf_fix_cppflags=yes
2217 if test $cf_fix_cppflags = yes ; then
2218 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2220 elif test "${cf_tst_cflags}" = "\"'" ; then
2221 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2230 case $cf_add_cflags in
2232 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2234 CPPFLAGS=`echo "$CPPFLAGS" | \
2235 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2236 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2240 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2245 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2250 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2252 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2254 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2255 && test -z "${cf_tst_cflags}" \
2256 && cf_fix_cppflags=no
2261 if test -n "$cf_new_cflags" ; then
2263 CFLAGS="$CFLAGS $cf_new_cflags"
2266 if test -n "$cf_new_cppflags" ; then
2268 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2271 if test -n "$cf_new_extra_cppflags" ; then
2273 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2282 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2284 echo "${as_me:-configure}:2284: testing resulting CC: '$CC' ..." 1>&5
2286 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2288 echo "${as_me:-configure}:2288: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2290 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2292 echo "${as_me:-configure}:2292: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2296 echo "$as_me:2296: result: ok" >&5
2297 echo "${ECHO_T}ok" >&6
2302 ac_cpp='$CPP $CPPFLAGS'
2303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2306 ac_main_return=return
2307 echo "$as_me:2307: checking how to run the C preprocessor" >&5
2308 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2309 # On Suns, sometimes $CPP names a directory.
2310 if test -n "$CPP" && test -d "$CPP"; then
2313 if test -z "$CPP"; then
2314 if test "${ac_cv_prog_CPP+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
2317 # Double quotes because CPP needs to be expanded
2318 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2321 for ac_c_preproc_warn_flag in '' yes
2323 # Use a header file that comes with gcc, so configuring glibc
2324 # with a fresh cross-compiler works.
2325 # On the NeXT, cc -E runs the code through the compiler's parser,
2326 # not just through cpp. "Syntax error" is here to catch this case.
2327 cat >conftest.$ac_ext <<_ACEOF
2328 #line 2328 "configure"
2329 #include "confdefs.h"
2333 if { (eval echo "$as_me:2333: \"$ac_cpp conftest.$ac_ext\"") >&5
2334 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2336 egrep -v '^ *\+' conftest.er1 >conftest.err
2338 cat conftest.err >&5
2339 echo "$as_me:2339: \$? = $ac_status" >&5
2340 (exit $ac_status); } >/dev/null; then
2341 if test -s conftest.err; then
2342 ac_cpp_err=$ac_c_preproc_warn_flag
2349 if test -z "$ac_cpp_err"; then
2352 echo "$as_me: failed program was:" >&5
2353 cat conftest.$ac_ext >&5
2354 # Broken: fails on valid input.
2357 rm -f conftest.err conftest.$ac_ext
2359 # OK, works on sane cases. Now check whether non-existent headers
2360 # can be detected and how.
2361 cat >conftest.$ac_ext <<_ACEOF
2362 #line 2362 "configure"
2363 #include "confdefs.h"
2364 #include <ac_nonexistent.h>
2366 if { (eval echo "$as_me:2366: \"$ac_cpp conftest.$ac_ext\"") >&5
2367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2369 egrep -v '^ *\+' conftest.er1 >conftest.err
2371 cat conftest.err >&5
2372 echo "$as_me:2372: \$? = $ac_status" >&5
2373 (exit $ac_status); } >/dev/null; then
2374 if test -s conftest.err; then
2375 ac_cpp_err=$ac_c_preproc_warn_flag
2382 if test -z "$ac_cpp_err"; then
2383 # Broken: success on invalid input.
2386 echo "$as_me: failed program was:" >&5
2387 cat conftest.$ac_ext >&5
2388 # Passes both tests.
2392 rm -f conftest.err conftest.$ac_ext
2395 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2396 rm -f conftest.err conftest.$ac_ext
2397 if $ac_preproc_ok; then
2409 echo "$as_me:2409: result: $CPP" >&5
2410 echo "${ECHO_T}$CPP" >&6
2412 for ac_c_preproc_warn_flag in '' yes
2414 # Use a header file that comes with gcc, so configuring glibc
2415 # with a fresh cross-compiler works.
2416 # On the NeXT, cc -E runs the code through the compiler's parser,
2417 # not just through cpp. "Syntax error" is here to catch this case.
2418 cat >conftest.$ac_ext <<_ACEOF
2419 #line 2419 "configure"
2420 #include "confdefs.h"
2424 if { (eval echo "$as_me:2424: \"$ac_cpp conftest.$ac_ext\"") >&5
2425 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2427 egrep -v '^ *\+' conftest.er1 >conftest.err
2429 cat conftest.err >&5
2430 echo "$as_me:2430: \$? = $ac_status" >&5
2431 (exit $ac_status); } >/dev/null; then
2432 if test -s conftest.err; then
2433 ac_cpp_err=$ac_c_preproc_warn_flag
2440 if test -z "$ac_cpp_err"; then
2443 echo "$as_me: failed program was:" >&5
2444 cat conftest.$ac_ext >&5
2445 # Broken: fails on valid input.
2448 rm -f conftest.err conftest.$ac_ext
2450 # OK, works on sane cases. Now check whether non-existent headers
2451 # can be detected and how.
2452 cat >conftest.$ac_ext <<_ACEOF
2453 #line 2453 "configure"
2454 #include "confdefs.h"
2455 #include <ac_nonexistent.h>
2457 if { (eval echo "$as_me:2457: \"$ac_cpp conftest.$ac_ext\"") >&5
2458 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2460 egrep -v '^ *\+' conftest.er1 >conftest.err
2462 cat conftest.err >&5
2463 echo "$as_me:2463: \$? = $ac_status" >&5
2464 (exit $ac_status); } >/dev/null; then
2465 if test -s conftest.err; then
2466 ac_cpp_err=$ac_c_preproc_warn_flag
2473 if test -z "$ac_cpp_err"; then
2474 # Broken: success on invalid input.
2477 echo "$as_me: failed program was:" >&5
2478 cat conftest.$ac_ext >&5
2479 # Passes both tests.
2483 rm -f conftest.err conftest.$ac_ext
2486 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2487 rm -f conftest.err conftest.$ac_ext
2488 if $ac_preproc_ok; then
2491 { { echo "$as_me:2491: error: C preprocessor \"$CPP\" fails sanity check" >&5
2492 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2493 { (exit 1); exit 1; }; }
2497 ac_cpp='$CPP $CPPFLAGS'
2498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2501 ac_main_return=return
2503 if test $ac_cv_c_compiler_gnu = yes; then
2504 echo "$as_me:2504: checking whether $CC needs -traditional" >&5
2505 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2506 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2509 ac_pattern="Autoconf.*'x'"
2510 cat >conftest.$ac_ext <<_ACEOF
2511 #line 2511 "configure"
2512 #include "confdefs.h"
2514 int Autoconf = TIOCGETP;
2516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2517 egrep "$ac_pattern" >/dev/null 2>&1; then
2518 ac_cv_prog_gcc_traditional=yes
2520 ac_cv_prog_gcc_traditional=no
2524 if test $ac_cv_prog_gcc_traditional = no; then
2525 cat >conftest.$ac_ext <<_ACEOF
2526 #line 2526 "configure"
2527 #include "confdefs.h"
2529 int Autoconf = TCGETA;
2531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2532 egrep "$ac_pattern" >/dev/null 2>&1; then
2533 ac_cv_prog_gcc_traditional=yes
2539 echo "$as_me:2539: result: $ac_cv_prog_gcc_traditional" >&5
2540 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2541 if test $ac_cv_prog_gcc_traditional = yes; then
2542 CC="$CC -traditional"
2546 echo "$as_me:2546: checking whether $CC understands -c and -o together" >&5
2547 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
2548 if test "${cf_cv_prog_CC_c_o+set}" = set; then
2549 echo $ECHO_N "(cached) $ECHO_C" >&6
2552 cat > conftest.$ac_ext <<CF_EOF
2555 ${cf_cv_main_return:-return}(0);
2558 # We do the test twice because some compilers refuse to overwrite an
2559 # existing .o file with -o, though they will create one.
2560 ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2561 if { (eval echo "$as_me:2561: \"$ac_try\"") >&5
2564 echo "$as_me:2564: \$? = $ac_status" >&5
2565 (exit $ac_status); } &&
2566 test -f conftest2.$ac_objext && { (eval echo "$as_me:2566: \"$ac_try\"") >&5
2569 echo "$as_me:2569: \$? = $ac_status" >&5
2570 (exit $ac_status); };
2572 eval cf_cv_prog_CC_c_o=yes
2574 eval cf_cv_prog_CC_c_o=no
2579 if test $cf_cv_prog_CC_c_o = yes; then
2580 echo "$as_me:2580: result: yes" >&5
2581 echo "${ECHO_T}yes" >&6
2583 echo "$as_me:2583: result: no" >&5
2584 echo "${ECHO_T}no" >&6
2587 if test "$cross_compiling" = yes ; then
2590 case "$cf_cv_system_name" in
2591 (dragonfly*|mirbsd*|freebsd*)
2592 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2594 (*) LDPATH=$PATH:/sbin:/usr/sbin
2595 # Extract the first word of "ldconfig", so it can be a program name with args.
2596 set dummy ldconfig; ac_word=$2
2597 echo "$as_me:2597: checking for $ac_word" >&5
2598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2599 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2600 echo $ECHO_N "(cached) $ECHO_C" >&6
2604 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2607 ac_save_IFS=$IFS; IFS=$ac_path_separator
2609 for ac_dir in $ac_dummy; do
2611 test -z "$ac_dir" && ac_dir=.
2612 if $as_executable_p "$ac_dir/$ac_word"; then
2613 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2614 echo "$as_me:2614: found $ac_dir/$ac_word" >&5
2622 LDCONFIG=$ac_cv_path_LDCONFIG
2624 if test -n "$LDCONFIG"; then
2625 echo "$as_me:2625: result: $LDCONFIG" >&5
2626 echo "${ECHO_T}$LDCONFIG" >&6
2628 echo "$as_me:2628: result: no" >&5
2629 echo "${ECHO_T}no" >&6
2636 echo "$as_me:2636: checking if you want to ensure bool is consistent with C++" >&5
2637 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2639 # Check whether --with-cxx or --without-cxx was given.
2640 if test "${with_cxx+set}" = set; then
2642 cf_with_cxx=$withval
2646 echo "$as_me:2646: result: $cf_with_cxx" >&5
2647 echo "${ECHO_T}$cf_with_cxx" >&6
2648 if test "X$cf_with_cxx" = Xno ; then
2652 # with autoconf 2.13, we can change the error to a warning:
2654 ac_cpp='$CXXCPP $CPPFLAGS'
2655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2658 ac_main_return=return
2659 if test -n "$ac_tool_prefix"; then
2660 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2662 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2663 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2664 echo "$as_me:2664: checking for $ac_word" >&5
2665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2666 if test "${ac_cv_prog_CXX+set}" = set; then
2667 echo $ECHO_N "(cached) $ECHO_C" >&6
2669 if test -n "$CXX"; then
2670 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2672 ac_save_IFS=$IFS; IFS=$ac_path_separator
2674 for ac_dir in $ac_dummy; do
2676 test -z "$ac_dir" && ac_dir=.
2677 $as_executable_p "$ac_dir/$ac_word" || continue
2678 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2679 echo "$as_me:2679: found $ac_dir/$ac_word" >&5
2686 if test -n "$CXX"; then
2687 echo "$as_me:2687: result: $CXX" >&5
2688 echo "${ECHO_T}$CXX" >&6
2690 echo "$as_me:2690: result: no" >&5
2691 echo "${ECHO_T}no" >&6
2694 test -n "$CXX" && break
2697 if test -z "$CXX"; then
2699 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2701 # Extract the first word of "$ac_prog", so it can be a program name with args.
2702 set dummy $ac_prog; ac_word=$2
2703 echo "$as_me:2703: checking for $ac_word" >&5
2704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2705 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2706 echo $ECHO_N "(cached) $ECHO_C" >&6
2708 if test -n "$ac_ct_CXX"; then
2709 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2711 ac_save_IFS=$IFS; IFS=$ac_path_separator
2713 for ac_dir in $ac_dummy; do
2715 test -z "$ac_dir" && ac_dir=.
2716 $as_executable_p "$ac_dir/$ac_word" || continue
2717 ac_cv_prog_ac_ct_CXX="$ac_prog"
2718 echo "$as_me:2718: found $ac_dir/$ac_word" >&5
2724 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2725 if test -n "$ac_ct_CXX"; then
2726 echo "$as_me:2726: result: $ac_ct_CXX" >&5
2727 echo "${ECHO_T}$ac_ct_CXX" >&6
2729 echo "$as_me:2729: result: no" >&5
2730 echo "${ECHO_T}no" >&6
2733 test -n "$ac_ct_CXX" && break
2735 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2740 # Provide some information about the compiler.
2741 echo "$as_me:2741:" \
2742 "checking for C++ compiler version" >&5
2743 ac_compiler=`set X $ac_compile; echo $2`
2744 { (eval echo "$as_me:2744: \"$ac_compiler --version </dev/null >&5\"") >&5
2745 (eval $ac_compiler --version </dev/null >&5) 2>&5
2747 echo "$as_me:2747: \$? = $ac_status" >&5
2748 (exit $ac_status); }
2749 { (eval echo "$as_me:2749: \"$ac_compiler -v </dev/null >&5\"") >&5
2750 (eval $ac_compiler -v </dev/null >&5) 2>&5
2752 echo "$as_me:2752: \$? = $ac_status" >&5
2753 (exit $ac_status); }
2754 { (eval echo "$as_me:2754: \"$ac_compiler -V </dev/null >&5\"") >&5
2755 (eval $ac_compiler -V </dev/null >&5) 2>&5
2757 echo "$as_me:2757: \$? = $ac_status" >&5
2758 (exit $ac_status); }
2760 echo "$as_me:2760: checking whether we are using the GNU C++ compiler" >&5
2761 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2762 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2763 echo $ECHO_N "(cached) $ECHO_C" >&6
2765 cat >conftest.$ac_ext <<_ACEOF
2766 #line 2766 "configure"
2767 #include "confdefs.h"
2780 rm -f conftest.$ac_objext
2781 if { (eval echo "$as_me:2781: \"$ac_compile\"") >&5
2782 (eval $ac_compile) 2>&5
2784 echo "$as_me:2784: \$? = $ac_status" >&5
2785 (exit $ac_status); } &&
2786 { ac_try='test -s conftest.$ac_objext'
2787 { (eval echo "$as_me:2787: \"$ac_try\"") >&5
2790 echo "$as_me:2790: \$? = $ac_status" >&5
2791 (exit $ac_status); }; }; then
2794 echo "$as_me: failed program was:" >&5
2795 cat conftest.$ac_ext >&5
2798 rm -f conftest.$ac_objext conftest.$ac_ext
2799 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2802 echo "$as_me:2802: result: $ac_cv_cxx_compiler_gnu" >&5
2803 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2804 GXX=`test $ac_compiler_gnu = yes && echo yes`
2805 ac_test_CXXFLAGS=${CXXFLAGS+set}
2806 ac_save_CXXFLAGS=$CXXFLAGS
2808 echo "$as_me:2808: checking whether $CXX accepts -g" >&5
2809 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2810 if test "${ac_cv_prog_cxx_g+set}" = set; then
2811 echo $ECHO_N "(cached) $ECHO_C" >&6
2813 cat >conftest.$ac_ext <<_ACEOF
2814 #line 2814 "configure"
2815 #include "confdefs.h"
2825 rm -f conftest.$ac_objext
2826 if { (eval echo "$as_me:2826: \"$ac_compile\"") >&5
2827 (eval $ac_compile) 2>&5
2829 echo "$as_me:2829: \$? = $ac_status" >&5
2830 (exit $ac_status); } &&
2831 { ac_try='test -s conftest.$ac_objext'
2832 { (eval echo "$as_me:2832: \"$ac_try\"") >&5
2835 echo "$as_me:2835: \$? = $ac_status" >&5
2836 (exit $ac_status); }; }; then
2837 ac_cv_prog_cxx_g=yes
2839 echo "$as_me: failed program was:" >&5
2840 cat conftest.$ac_ext >&5
2843 rm -f conftest.$ac_objext conftest.$ac_ext
2845 echo "$as_me:2845: result: $ac_cv_prog_cxx_g" >&5
2846 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2847 if test "$ac_test_CXXFLAGS" = set; then
2848 CXXFLAGS=$ac_save_CXXFLAGS
2849 elif test $ac_cv_prog_cxx_g = yes; then
2850 if test "$GXX" = yes; then
2856 if test "$GXX" = yes; then
2862 for ac_declaration in \
2864 '#include <stdlib.h>' \
2865 'extern "C" void std::exit (int) throw (); using std::exit;' \
2866 'extern "C" void std::exit (int); using std::exit;' \
2867 'extern "C" void exit (int) throw ();' \
2868 'extern "C" void exit (int);' \
2871 cat >conftest.$ac_ext <<_ACEOF
2872 #line 2872 "configure"
2873 #include "confdefs.h"
2884 rm -f conftest.$ac_objext
2885 if { (eval echo "$as_me:2885: \"$ac_compile\"") >&5
2886 (eval $ac_compile) 2>&5
2888 echo "$as_me:2888: \$? = $ac_status" >&5
2889 (exit $ac_status); } &&
2890 { ac_try='test -s conftest.$ac_objext'
2891 { (eval echo "$as_me:2891: \"$ac_try\"") >&5
2894 echo "$as_me:2894: \$? = $ac_status" >&5
2895 (exit $ac_status); }; }; then
2898 echo "$as_me: failed program was:" >&5
2899 cat conftest.$ac_ext >&5
2902 rm -f conftest.$ac_objext conftest.$ac_ext
2903 cat >conftest.$ac_ext <<_ACEOF
2904 #line 2904 "configure"
2905 #include "confdefs.h"
2915 rm -f conftest.$ac_objext
2916 if { (eval echo "$as_me:2916: \"$ac_compile\"") >&5
2917 (eval $ac_compile) 2>&5
2919 echo "$as_me:2919: \$? = $ac_status" >&5
2920 (exit $ac_status); } &&
2921 { ac_try='test -s conftest.$ac_objext'
2922 { (eval echo "$as_me:2922: \"$ac_try\"") >&5
2925 echo "$as_me:2925: \$? = $ac_status" >&5
2926 (exit $ac_status); }; }; then
2929 echo "$as_me: failed program was:" >&5
2930 cat conftest.$ac_ext >&5
2932 rm -f conftest.$ac_objext conftest.$ac_ext
2935 if test -n "$ac_declaration"; then
2936 echo '#ifdef __cplusplus' >>confdefs.h
2937 echo $ac_declaration >>confdefs.h
2938 echo '#endif' >>confdefs.h
2942 ac_cpp='$CPP $CPPFLAGS'
2943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2946 ac_main_return=return
2949 ac_cpp='$CXXCPP $CPPFLAGS'
2950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2953 ac_main_return=return
2955 if test "x$cf_with_cxx" != xno
2957 # Several of the C++ configurations do not work, particularly when
2958 # cross-compiling (20140913 -TD)
2959 echo "$as_me:2959: checking if $CXX works" >&5
2960 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
2962 save_CPPFLAGS="$CPPFLAGS"
2963 eval cf_includedir=${includedir}
2964 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
2966 cat >conftest.$ac_ext <<_ACEOF
2967 #line 2967 "configure"
2968 #include "confdefs.h"
2977 printf("Hello world!\n")
2983 rm -f conftest.$ac_objext
2984 if { (eval echo "$as_me:2984: \"$ac_compile\"") >&5
2985 (eval $ac_compile) 2>&5
2987 echo "$as_me:2987: \$? = $ac_status" >&5
2988 (exit $ac_status); } &&
2989 { ac_try='test -s conftest.$ac_objext'
2990 { (eval echo "$as_me:2990: \"$ac_try\"") >&5
2993 echo "$as_me:2993: \$? = $ac_status" >&5
2994 (exit $ac_status); }; }; then
2997 echo "$as_me: failed program was:" >&5
2998 cat conftest.$ac_ext >&5
3001 rm -f conftest.$ac_objext conftest.$ac_ext
3002 CPPFLAGS="$save_CPPFLAGS"
3004 echo "$as_me:3004: result: $cf_cxx_works" >&5
3005 echo "${ECHO_T}$cf_cxx_works" >&6
3006 if test "x$cf_cxx_works" = xno
3008 { echo "$as_me:3008: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
3009 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
3010 cf_with_cxx=no; CXX=""; GXX="";
3014 ac_cpp='$CPP $CPPFLAGS'
3015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3018 ac_main_return=return
3020 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
3021 if test "$CXX" = "g++" ; then
3022 # Extract the first word of "g++", so it can be a program name with args.
3023 set dummy g++; ac_word=$2
3024 echo "$as_me:3024: checking for $ac_word" >&5
3025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3026 if test "${ac_cv_path_CXX+set}" = set; then
3027 echo $ECHO_N "(cached) $ECHO_C" >&6
3031 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3034 ac_save_IFS=$IFS; IFS=$ac_path_separator
3036 for ac_dir in $ac_dummy; do
3038 test -z "$ac_dir" && ac_dir=.
3039 if $as_executable_p "$ac_dir/$ac_word"; then
3040 ac_cv_path_CXX="$ac_dir/$ac_word"
3041 echo "$as_me:3041: found $ac_dir/$ac_word" >&5
3051 if test -n "$CXX"; then
3052 echo "$as_me:3052: result: $CXX" >&5
3053 echo "${ECHO_T}$CXX" >&6
3055 echo "$as_me:3055: result: no" >&5
3056 echo "${ECHO_T}no" >&6
3062 { echo "$as_me:3062: WARNING: You don't have any C++ compiler, too bad" >&5
3063 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
3064 cf_with_cxx=no; CXX=""; GXX="";
3070 if test "$GXX" = yes; then
3071 echo "$as_me:3071: checking version of ${CXX:-g++}" >&5
3072 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
3073 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3074 test -z "$GXX_VERSION" && GXX_VERSION=unknown
3075 echo "$as_me:3075: result: $GXX_VERSION" >&5
3076 echo "${ECHO_T}$GXX_VERSION" >&6
3079 case $GXX_VERSION in
3081 # GXX=""; CXX=""; ac_cv_prog_gxx=no
3083 { echo "$as_me:3083: WARNING: templates do not work" >&5
3084 echo "$as_me: WARNING: templates do not work" >&2;}
3088 echo "$as_me:3088: checking if you want to build C++ binding and demo" >&5
3089 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3091 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3092 if test "${with_cxx_binding+set}" = set; then
3093 withval="$with_cxx_binding"
3094 cf_with_cxx_binding=$withval
3096 cf_with_cxx_binding=$cf_with_cxx
3098 echo "$as_me:3098: result: $cf_with_cxx_binding" >&5
3099 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3101 echo "$as_me:3101: checking if you want to build with Ada95" >&5
3102 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
3103 echo "$as_me:3103: result: $cf_with_ada" >&5
3104 echo "${ECHO_T}$cf_with_ada" >&6
3106 echo "$as_me:3106: checking if you want to install terminal database" >&5
3107 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
3109 # Check whether --enable-db-install or --disable-db-install was given.
3110 if test "${enable_db_install+set}" = set; then
3111 enableval="$enable_db_install"
3112 cf_with_db_install=$enableval
3114 cf_with_db_install=yes
3116 echo "$as_me:3116: result: $cf_with_db_install" >&5
3117 echo "${ECHO_T}$cf_with_db_install" >&6
3119 echo "$as_me:3119: checking if you want to install manpages" >&5
3120 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3122 # Check whether --with-manpages or --without-manpages was given.
3123 if test "${with_manpages+set}" = set; then
3124 withval="$with_manpages"
3125 cf_with_manpages=$withval
3127 cf_with_manpages=yes
3129 echo "$as_me:3129: result: $cf_with_manpages" >&5
3130 echo "${ECHO_T}$cf_with_manpages" >&6
3132 echo "$as_me:3132: checking if you want to build programs such as tic" >&5
3133 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3135 # Check whether --with-progs or --without-progs was given.
3136 if test "${with_progs+set}" = set; then
3137 withval="$with_progs"
3138 cf_with_progs=$withval
3142 echo "$as_me:3142: result: $cf_with_progs" >&5
3143 echo "${ECHO_T}$cf_with_progs" >&6
3145 echo "$as_me:3145: checking if you want to build test-programs" >&5
3146 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3148 # Check whether --with-tests or --without-tests was given.
3149 if test "${with_tests+set}" = set; then
3150 withval="$with_tests"
3151 cf_with_tests=$withval
3155 echo "$as_me:3155: result: $cf_with_tests" >&5
3156 echo "${ECHO_T}$cf_with_tests" >&6
3158 echo "$as_me:3158: checking if you wish to install curses.h" >&5
3159 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3161 # Check whether --with-curses-h or --without-curses-h was given.
3162 if test "${with_curses_h+set}" = set; then
3163 withval="$with_curses_h"
3164 with_curses_h=$withval
3168 echo "$as_me:3168: result: $with_curses_h" >&5
3169 echo "${ECHO_T}$with_curses_h" >&6
3171 modules_to_build="ncurses"
3172 if test "X$cf_with_progs" != Xno ; then
3173 modules_to_build="$modules_to_build progs tack"
3175 modules_to_build="$modules_to_build panel menu form"
3177 test "$program_prefix" != NONE &&
3178 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3179 # Use a double $ so make ignores it.
3180 test "$program_suffix" != NONE &&
3181 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3182 # Double any \ or $. echo might interpret backslashes.
3183 # By default was `s,x,x', remove it if useless.
3184 cat <<\_ACEOF >conftest.sed
3185 s/[\\$]/&&/g;s/;s,x,x,$//
3187 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3190 for ac_prog in mawk gawk nawk awk
3192 # Extract the first word of "$ac_prog", so it can be a program name with args.
3193 set dummy $ac_prog; ac_word=$2
3194 echo "$as_me:3194: checking for $ac_word" >&5
3195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3196 if test "${ac_cv_prog_AWK+set}" = set; then
3197 echo $ECHO_N "(cached) $ECHO_C" >&6
3199 if test -n "$AWK"; then
3200 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3202 ac_save_IFS=$IFS; IFS=$ac_path_separator
3204 for ac_dir in $ac_dummy; do
3206 test -z "$ac_dir" && ac_dir=.
3207 $as_executable_p "$ac_dir/$ac_word" || continue
3208 ac_cv_prog_AWK="$ac_prog"
3209 echo "$as_me:3209: found $ac_dir/$ac_word" >&5
3216 if test -n "$AWK"; then
3217 echo "$as_me:3217: result: $AWK" >&5
3218 echo "${ECHO_T}$AWK" >&6
3220 echo "$as_me:3220: result: no" >&5
3221 echo "${ECHO_T}no" >&6
3224 test -n "$AWK" && break
3227 test -z "$AWK" && { { echo "$as_me:3227: error: No awk program found" >&5
3228 echo "$as_me: error: No awk program found" >&2;}
3229 { (exit 1); exit 1; }; }
3231 echo "$as_me:3231: checking for egrep" >&5
3232 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3233 if test "${ac_cv_prog_egrep+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3236 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3237 then ac_cv_prog_egrep='grep -E'
3238 else ac_cv_prog_egrep='egrep'
3241 echo "$as_me:3241: result: $ac_cv_prog_egrep" >&5
3242 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3243 EGREP=$ac_cv_prog_egrep
3245 test -z "$EGREP" && { { echo "$as_me:3245: error: No egrep program found" >&5
3246 echo "$as_me: error: No egrep program found" >&2;}
3247 { (exit 1); exit 1; }; }
3249 # Find a good install program. We prefer a C program (faster),
3250 # so one script is as good as another. But avoid the broken or
3251 # incompatible versions:
3252 # SysV /etc/install, /usr/sbin/install
3253 # SunOS /usr/etc/install
3254 # IRIX /sbin/install
3256 # AmigaOS /C/install, which installs bootblocks on floppy discs
3257 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3258 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3259 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3260 # ./install, which can be erroneously created by make from ./install.sh.
3261 echo "$as_me:3261: checking for a BSD compatible install" >&5
3262 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3263 if test -z "$INSTALL"; then
3264 if test "${ac_cv_path_install+set}" = set; then
3265 echo $ECHO_N "(cached) $ECHO_C" >&6
3267 ac_save_IFS=$IFS; IFS=$ac_path_separator
3268 for ac_dir in $PATH; do
3270 # Account for people who put trailing slashes in PATH elements.
3272 / | ./ | .// | /cC/* \
3273 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3276 # OSF1 and SCO ODT 3.0 have their own names for install.
3277 # Don't use installbsd from OSF since it installs stuff as root
3279 for ac_prog in ginstall scoinst install; do
3280 if $as_executable_p "$ac_dir/$ac_prog"; then
3281 if test $ac_prog = install &&
3282 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3283 # AIX install. It has an incompatible calling convention.
3285 elif test $ac_prog = install &&
3286 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3287 # program-specific install script used by HP pwplus--don't use.
3290 ac_cv_path_install="$ac_dir/$ac_prog -c"
3300 if test "${ac_cv_path_install+set}" = set; then
3301 INSTALL=$ac_cv_path_install
3303 # As a last resort, use the slow shell script. We don't cache a
3304 # path for INSTALL within a source directory, because that will
3305 # break other packages using the cache if that directory is
3306 # removed, or if the path is relative.
3307 INSTALL=$ac_install_sh
3310 echo "$as_me:3310: result: $INSTALL" >&5
3311 echo "${ECHO_T}$INSTALL" >&6
3313 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3314 # It thinks the first close brace ends the variable substitution.
3315 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3317 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3319 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3325 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3326 test -z "$cf_dir" && cf_dir=.
3327 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3331 for ac_prog in lint cppcheck splint
3333 # Extract the first word of "$ac_prog", so it can be a program name with args.
3334 set dummy $ac_prog; ac_word=$2
3335 echo "$as_me:3335: checking for $ac_word" >&5
3336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3337 if test "${ac_cv_prog_LINT+set}" = set; then
3338 echo $ECHO_N "(cached) $ECHO_C" >&6
3340 if test -n "$LINT"; then
3341 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3343 ac_save_IFS=$IFS; IFS=$ac_path_separator
3345 for ac_dir in $ac_dummy; do
3347 test -z "$ac_dir" && ac_dir=.
3348 $as_executable_p "$ac_dir/$ac_word" || continue
3349 ac_cv_prog_LINT="$ac_prog"
3350 echo "$as_me:3350: found $ac_dir/$ac_word" >&5
3356 LINT=$ac_cv_prog_LINT
3357 if test -n "$LINT"; then
3358 echo "$as_me:3358: result: $LINT" >&5
3359 echo "${ECHO_T}$LINT" >&6
3361 echo "$as_me:3361: result: no" >&5
3362 echo "${ECHO_T}no" >&6
3365 test -n "$LINT" && break
3368 echo "$as_me:3368: checking whether ln -s works" >&5
3369 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3371 if test "$LN_S" = "ln -s"; then
3372 echo "$as_me:3372: result: yes" >&5
3373 echo "${ECHO_T}yes" >&6
3375 echo "$as_me:3375: result: no, using $LN_S" >&5
3376 echo "${ECHO_T}no, using $LN_S" >&6
3379 echo "$as_me:3379: checking if $LN_S -f options work" >&5
3380 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3382 rm -f conf$$.src conf$$dst
3384 echo first >conf$$.src
3385 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3390 rm -f conf$$.dst conf$$src
3391 echo "$as_me:3391: result: $cf_prog_ln_sf" >&5
3392 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3394 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3396 echo "$as_me:3396: checking for long file names" >&5
3397 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3398 if test "${ac_cv_sys_long_file_names+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3401 ac_cv_sys_long_file_names=yes
3402 # Test for long file names in all the places we know might matter:
3403 # . the current directory, where building will happen
3404 # $prefix/lib where we will be installing things
3405 # $exec_prefix/lib likewise
3406 # eval it to expand exec_prefix.
3407 # $TMPDIR if set, where it might want to write temporary files
3408 # if $TMPDIR is not set:
3409 # /tmp where it might want to write temporary files
3412 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3415 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3417 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3418 test -d $ac_dir || continue
3419 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3420 ac_xdir=$ac_dir/cf$$
3421 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3422 ac_tf1=$ac_xdir/conftest9012345
3423 ac_tf2=$ac_xdir/conftest9012346
3424 (echo 1 >$ac_tf1) 2>/dev/null
3425 (echo 2 >$ac_tf2) 2>/dev/null
3426 ac_val=`cat $ac_tf1 2>/dev/null`
3427 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3428 ac_cv_sys_long_file_names=no
3429 rm -rf $ac_xdir 2>/dev/null
3432 rm -rf $ac_xdir 2>/dev/null
3435 echo "$as_me:3435: result: $ac_cv_sys_long_file_names" >&5
3436 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3437 if test $ac_cv_sys_long_file_names = yes; then
3439 cat >>confdefs.h <<\EOF
3440 #define HAVE_LONG_FILE_NAMES 1
3445 # if we find pkg-config, check if we should install the ".pc" files.
3447 echo "$as_me:3447: checking if you want to use pkg-config" >&5
3448 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3450 # Check whether --with-pkg-config or --without-pkg-config was given.
3451 if test "${with_pkg_config+set}" = set; then
3452 withval="$with_pkg_config"
3453 cf_pkg_config=$withval
3457 echo "$as_me:3457: result: $cf_pkg_config" >&5
3458 echo "${ECHO_T}$cf_pkg_config" >&6
3460 case $cf_pkg_config in
3466 if test -n "$ac_tool_prefix"; then
3467 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3468 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3469 echo "$as_me:3469: checking for $ac_word" >&5
3470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3471 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3472 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3479 ac_save_IFS=$IFS; IFS=$ac_path_separator
3481 for ac_dir in $ac_dummy; do
3483 test -z "$ac_dir" && ac_dir=.
3484 if $as_executable_p "$ac_dir/$ac_word"; then
3485 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
3486 echo "$as_me:3486: found $ac_dir/$ac_word" >&5
3494 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3496 if test -n "$PKG_CONFIG"; then
3497 echo "$as_me:3497: result: $PKG_CONFIG" >&5
3498 echo "${ECHO_T}$PKG_CONFIG" >&6
3500 echo "$as_me:3500: result: no" >&5
3501 echo "${ECHO_T}no" >&6
3505 if test -z "$ac_cv_path_PKG_CONFIG"; then
3506 ac_pt_PKG_CONFIG=$PKG_CONFIG
3507 # Extract the first word of "pkg-config", so it can be a program name with args.
3508 set dummy pkg-config; ac_word=$2
3509 echo "$as_me:3509: checking for $ac_word" >&5
3510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3511 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3512 echo $ECHO_N "(cached) $ECHO_C" >&6
3514 case $ac_pt_PKG_CONFIG in
3516 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3519 ac_save_IFS=$IFS; IFS=$ac_path_separator
3521 for ac_dir in $ac_dummy; do
3523 test -z "$ac_dir" && ac_dir=.
3524 if $as_executable_p "$ac_dir/$ac_word"; then
3525 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
3526 echo "$as_me:3526: found $ac_dir/$ac_word" >&5
3531 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
3535 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3537 if test -n "$ac_pt_PKG_CONFIG"; then
3538 echo "$as_me:3538: result: $ac_pt_PKG_CONFIG" >&5
3539 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
3541 echo "$as_me:3541: result: no" >&5
3542 echo "${ECHO_T}no" >&6
3545 PKG_CONFIG=$ac_pt_PKG_CONFIG
3547 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3556 test -z "$PKG_CONFIG" && PKG_CONFIG=none
3557 if test "$PKG_CONFIG" != none ; then
3559 if test "x$prefix" != xNONE; then
3560 cf_path_syntax="$prefix"
3562 cf_path_syntax="$ac_default_prefix"
3565 case ".$PKG_CONFIG" in
3570 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3572 (.\${*prefix}*|.\${*dir}*)
3573 eval PKG_CONFIG="$PKG_CONFIG"
3574 case ".$PKG_CONFIG" in
3576 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3581 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
3584 { { echo "$as_me:3584: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
3585 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
3586 { (exit 1); exit 1; }; }
3590 elif test "x$cf_pkg_config" != xno ; then
3591 { echo "$as_me:3591: WARNING: pkg-config is not installed" >&5
3592 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
3597 echo "$as_me:3597: checking for pkg-config library directory" >&5
3598 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
3601 echo "$as_me:3601: checking for $PKG_CONFIG library directory" >&5
3602 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
3606 PKG_CONFIG_LIBDIR=no
3608 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
3609 if test "${with_pkg_config_libdir+set}" = set; then
3610 withval="$with_pkg_config_libdir"
3611 PKG_CONFIG_LIBDIR=$withval
3613 test "x$PKG_CONFIG" != xnone && PKG_CONFIG_LIBDIR=yes
3616 case x$PKG_CONFIG_LIBDIR in
3620 # Look for the library directory using the same prefix as the executable
3621 if test "x$PKG_CONFIG" = xnone
3625 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
3628 # If you don't like using the default architecture, you have to specify the
3629 # intended library directory and corresponding compiler/linker options.
3631 # This case allows for Debian's 2014-flavor of multiarch, along with the
3632 # most common variations before that point. Some other variants spell the
3633 # directory differently, e.g., "pkg-config", and put it in unusual places.
3634 # pkg-config has always been poorly standardized, which is ironic...
3635 case x`(arch) 2>/dev/null` in
3638 $cf_path/lib/*64-linux-gnu \
3646 $cf_path/lib/*-linux-gnu \
3654 test -n "$verbose" && echo " list..." 1>&6
3656 echo "${as_me:-configure}:3656: testing list... ..." 1>&5
3658 for cf_config in $cf_search_path
3660 test -n "$verbose" && echo " checking $cf_config/pkgconfig" 1>&6
3662 echo "${as_me:-configure}:3662: testing checking $cf_config/pkgconfig ..." 1>&5
3664 if test -d $cf_config/pkgconfig
3666 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
3667 echo "$as_me:3667: checking done" >&5
3668 echo $ECHO_N "checking done... $ECHO_C" >&6
3677 if test "x$PKG_CONFIG_LIBDIR" != xno ; then
3678 echo "$as_me:3678: result: $PKG_CONFIG_LIBDIR" >&5
3679 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
3682 if test "x$PKG_CONFIG" != xnone
3684 echo "$as_me:3684: checking if we should install .pc files for $PKG_CONFIG" >&5
3685 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
3687 echo "$as_me:3687: checking if we should install .pc files" >&5
3688 echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6
3691 # Check whether --enable-pc-files or --disable-pc-files was given.
3692 if test "${enable_pc_files+set}" = set; then
3693 enableval="$enable_pc_files"
3694 enable_pc_files=$enableval
3698 echo "$as_me:3698: result: $enable_pc_files" >&5
3699 echo "${ECHO_T}$enable_pc_files" >&6
3701 if test "x$enable_pc_files" != xno
3704 case "x$PKG_CONFIG_LIBDIR" in
3706 { echo "$as_me:3706: WARNING: no PKG_CONFIG_LIBDIR was found" >&5
3707 echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;}
3711 if test "x$prefix" != xNONE; then
3712 cf_path_syntax="$prefix"
3714 cf_path_syntax="$ac_default_prefix"
3717 case ".$PKG_CONFIG_LIBDIR" in
3722 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
3724 (.\${*prefix}*|.\${*dir}*)
3725 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
3726 case ".$PKG_CONFIG_LIBDIR" in
3728 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3733 PKG_CONFIG_LIBDIR=`echo $PKG_CONFIG_LIBDIR | sed -e s%NONE%$cf_path_syntax%`
3736 { { echo "$as_me:3736: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
3737 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
3738 { (exit 1); exit 1; }; }
3748 if test -z "$MAKE_PC_FILES"
3750 echo "$as_me:3750: checking for suffix to add to pc-files" >&5
3751 echo $ECHO_N "checking for suffix to add to pc-files... $ECHO_C" >&6
3753 # Check whether --with-pc-suffix or --without-pc-suffix was given.
3754 if test "${with_pc_suffix+set}" = set; then
3755 withval="$with_pc_suffix"
3760 (*) PC_MODULE_SUFFIX="$withval"
3764 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
3765 echo "$as_me:3765: result: $PC_MODULE_SUFFIX" >&5
3766 echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6
3767 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
3771 echo "$as_me:3771: checking if we should assume mixed-case filenames" >&5
3772 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
3774 # Check whether --enable-mixed-case or --disable-mixed-case was given.
3775 if test "${enable_mixed_case+set}" = set; then
3776 enableval="$enable_mixed_case"
3777 enable_mixedcase=$enableval
3779 enable_mixedcase=auto
3781 echo "$as_me:3781: result: $enable_mixedcase" >&5
3782 echo "${ECHO_T}$enable_mixedcase" >&6
3783 if test "$enable_mixedcase" = "auto" ; then
3785 echo "$as_me:3785: checking if filesystem supports mixed-case filenames" >&5
3786 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3787 if test "${cf_cv_mixedcase+set}" = set; then
3788 echo $ECHO_N "(cached) $ECHO_C" >&6
3791 if test "$cross_compiling" = yes ; then
3792 case $target_alias in
3793 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
3801 rm -f conftest CONFTEST
3803 if test -f CONFTEST ; then
3808 rm -f conftest CONFTEST
3812 echo "$as_me:3812: result: $cf_cv_mixedcase" >&5
3813 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3814 test "$cf_cv_mixedcase" = yes &&
3815 cat >>confdefs.h <<\EOF
3816 #define MIXEDCASE_FILENAMES 1
3820 cf_cv_mixedcase=$enable_mixedcase
3821 if test "x$enable_mixedcase" = "xyes" ; then
3823 cat >>confdefs.h <<\EOF
3824 #define MIXEDCASE_FILENAMES 1
3830 # do this after mixed-case option (tags/TAGS is not as important as tic).
3831 echo "$as_me:3831: checking whether ${MAKE-make} sets \${MAKE}" >&5
3832 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
3833 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3834 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3837 cat >conftest.make <<\EOF
3839 @echo 'ac_maketemp="${MAKE}"'
3841 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3842 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3843 if test -n "$ac_maketemp"; then
3844 eval ac_cv_prog_make_${ac_make}_set=yes
3846 eval ac_cv_prog_make_${ac_make}_set=no
3850 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3851 echo "$as_me:3851: result: yes" >&5
3852 echo "${ECHO_T}yes" >&6
3855 echo "$as_me:3855: result: no" >&5
3856 echo "${ECHO_T}no" >&6
3857 SET_MAKE="MAKE=${MAKE-make}"
3860 for ac_prog in exctags ctags
3862 # Extract the first word of "$ac_prog", so it can be a program name with args.
3863 set dummy $ac_prog; ac_word=$2
3864 echo "$as_me:3864: checking for $ac_word" >&5
3865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3866 if test "${ac_cv_prog_CTAGS+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3869 if test -n "$CTAGS"; then
3870 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
3872 ac_save_IFS=$IFS; IFS=$ac_path_separator
3874 for ac_dir in $ac_dummy; do
3876 test -z "$ac_dir" && ac_dir=.
3877 $as_executable_p "$ac_dir/$ac_word" || continue
3878 ac_cv_prog_CTAGS="$ac_prog"
3879 echo "$as_me:3879: found $ac_dir/$ac_word" >&5
3885 CTAGS=$ac_cv_prog_CTAGS
3886 if test -n "$CTAGS"; then
3887 echo "$as_me:3887: result: $CTAGS" >&5
3888 echo "${ECHO_T}$CTAGS" >&6
3890 echo "$as_me:3890: result: no" >&5
3891 echo "${ECHO_T}no" >&6
3894 test -n "$CTAGS" && break
3897 for ac_prog in exetags etags
3899 # Extract the first word of "$ac_prog", so it can be a program name with args.
3900 set dummy $ac_prog; ac_word=$2
3901 echo "$as_me:3901: checking for $ac_word" >&5
3902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3903 if test "${ac_cv_prog_ETAGS+set}" = set; then
3904 echo $ECHO_N "(cached) $ECHO_C" >&6
3906 if test -n "$ETAGS"; then
3907 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
3909 ac_save_IFS=$IFS; IFS=$ac_path_separator
3911 for ac_dir in $ac_dummy; do
3913 test -z "$ac_dir" && ac_dir=.
3914 $as_executable_p "$ac_dir/$ac_word" || continue
3915 ac_cv_prog_ETAGS="$ac_prog"
3916 echo "$as_me:3916: found $ac_dir/$ac_word" >&5
3922 ETAGS=$ac_cv_prog_ETAGS
3923 if test -n "$ETAGS"; then
3924 echo "$as_me:3924: result: $ETAGS" >&5
3925 echo "${ECHO_T}$ETAGS" >&6
3927 echo "$as_me:3927: result: no" >&5
3928 echo "${ECHO_T}no" >&6
3931 test -n "$ETAGS" && break
3934 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
3935 set dummy ${CTAGS:-ctags}; ac_word=$2
3936 echo "$as_me:3936: checking for $ac_word" >&5
3937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3938 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3939 echo $ECHO_N "(cached) $ECHO_C" >&6
3941 if test -n "$MAKE_LOWER_TAGS"; then
3942 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3944 ac_save_IFS=$IFS; IFS=$ac_path_separator
3946 for ac_dir in $ac_dummy; do
3948 test -z "$ac_dir" && ac_dir=.
3949 $as_executable_p "$ac_dir/$ac_word" || continue
3950 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3951 echo "$as_me:3951: found $ac_dir/$ac_word" >&5
3955 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3958 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3959 if test -n "$MAKE_LOWER_TAGS"; then
3960 echo "$as_me:3960: result: $MAKE_LOWER_TAGS" >&5
3961 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3963 echo "$as_me:3963: result: no" >&5
3964 echo "${ECHO_T}no" >&6
3967 if test "$cf_cv_mixedcase" = yes ; then
3968 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
3969 set dummy ${ETAGS:-etags}; ac_word=$2
3970 echo "$as_me:3970: checking for $ac_word" >&5
3971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3972 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3973 echo $ECHO_N "(cached) $ECHO_C" >&6
3975 if test -n "$MAKE_UPPER_TAGS"; then
3976 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3978 ac_save_IFS=$IFS; IFS=$ac_path_separator
3980 for ac_dir in $ac_dummy; do
3982 test -z "$ac_dir" && ac_dir=.
3983 $as_executable_p "$ac_dir/$ac_word" || continue
3984 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3985 echo "$as_me:3985: found $ac_dir/$ac_word" >&5
3989 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3992 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3993 if test -n "$MAKE_UPPER_TAGS"; then
3994 echo "$as_me:3994: result: $MAKE_UPPER_TAGS" >&5
3995 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3997 echo "$as_me:3997: result: no" >&5
3998 echo "${ECHO_T}no" >&6
4005 if test "$MAKE_UPPER_TAGS" = yes ; then
4011 if test "$MAKE_LOWER_TAGS" = yes ; then
4017 echo "$as_me:4017: checking for makeflags variable" >&5
4018 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
4019 if test "${cf_cv_makeflags+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4024 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4026 cat >cf_makeflags.tmp <<CF_EOF
4029 @ echo '.$cf_option'
4031 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | fgrep -v "ing directory" | sed -e 's,[ ]*$,,'`
4032 case "$cf_result" in
4034 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
4035 case "$cf_result" in
4036 (.*CC=*) cf_cv_makeflags=
4038 (*) cf_cv_makeflags=$cf_option
4044 (*) echo "given option \"$cf_option\", no match \"$cf_result\""
4048 rm -f cf_makeflags.tmp
4051 echo "$as_me:4051: result: $cf_cv_makeflags" >&5
4052 echo "${ECHO_T}$cf_cv_makeflags" >&6
4054 if test -n "$ac_tool_prefix"; then
4055 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4056 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4057 echo "$as_me:4057: checking for $ac_word" >&5
4058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4059 if test "${ac_cv_prog_RANLIB+set}" = set; then
4060 echo $ECHO_N "(cached) $ECHO_C" >&6
4062 if test -n "$RANLIB"; then
4063 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4065 ac_save_IFS=$IFS; IFS=$ac_path_separator
4067 for ac_dir in $ac_dummy; do
4069 test -z "$ac_dir" && ac_dir=.
4070 $as_executable_p "$ac_dir/$ac_word" || continue
4071 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4072 echo "$as_me:4072: found $ac_dir/$ac_word" >&5
4078 RANLIB=$ac_cv_prog_RANLIB
4079 if test -n "$RANLIB"; then
4080 echo "$as_me:4080: result: $RANLIB" >&5
4081 echo "${ECHO_T}$RANLIB" >&6
4083 echo "$as_me:4083: result: no" >&5
4084 echo "${ECHO_T}no" >&6
4088 if test -z "$ac_cv_prog_RANLIB"; then
4089 ac_ct_RANLIB=$RANLIB
4090 # Extract the first word of "ranlib", so it can be a program name with args.
4091 set dummy ranlib; ac_word=$2
4092 echo "$as_me:4092: checking for $ac_word" >&5
4093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4094 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4097 if test -n "$ac_ct_RANLIB"; then
4098 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4100 ac_save_IFS=$IFS; IFS=$ac_path_separator
4102 for ac_dir in $ac_dummy; do
4104 test -z "$ac_dir" && ac_dir=.
4105 $as_executable_p "$ac_dir/$ac_word" || continue
4106 ac_cv_prog_ac_ct_RANLIB="ranlib"
4107 echo "$as_me:4107: found $ac_dir/$ac_word" >&5
4111 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4114 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4115 if test -n "$ac_ct_RANLIB"; then
4116 echo "$as_me:4116: result: $ac_ct_RANLIB" >&5
4117 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4119 echo "$as_me:4119: result: no" >&5
4120 echo "${ECHO_T}no" >&6
4123 RANLIB=$ac_ct_RANLIB
4125 RANLIB="$ac_cv_prog_RANLIB"
4128 if test -n "$ac_tool_prefix"; then
4129 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4130 set dummy ${ac_tool_prefix}ld; ac_word=$2
4131 echo "$as_me:4131: checking for $ac_word" >&5
4132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4133 if test "${ac_cv_prog_LD+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4136 if test -n "$LD"; then
4137 ac_cv_prog_LD="$LD" # Let the user override the test.
4139 ac_save_IFS=$IFS; IFS=$ac_path_separator
4141 for ac_dir in $ac_dummy; do
4143 test -z "$ac_dir" && ac_dir=.
4144 $as_executable_p "$ac_dir/$ac_word" || continue
4145 ac_cv_prog_LD="${ac_tool_prefix}ld"
4146 echo "$as_me:4146: found $ac_dir/$ac_word" >&5
4153 if test -n "$LD"; then
4154 echo "$as_me:4154: result: $LD" >&5
4155 echo "${ECHO_T}$LD" >&6
4157 echo "$as_me:4157: result: no" >&5
4158 echo "${ECHO_T}no" >&6
4162 if test -z "$ac_cv_prog_LD"; then
4164 # Extract the first word of "ld", so it can be a program name with args.
4165 set dummy ld; ac_word=$2
4166 echo "$as_me:4166: checking for $ac_word" >&5
4167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4168 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4171 if test -n "$ac_ct_LD"; then
4172 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4174 ac_save_IFS=$IFS; IFS=$ac_path_separator
4176 for ac_dir in $ac_dummy; do
4178 test -z "$ac_dir" && ac_dir=.
4179 $as_executable_p "$ac_dir/$ac_word" || continue
4180 ac_cv_prog_ac_ct_LD="ld"
4181 echo "$as_me:4181: found $ac_dir/$ac_word" >&5
4185 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4188 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4189 if test -n "$ac_ct_LD"; then
4190 echo "$as_me:4190: result: $ac_ct_LD" >&5
4191 echo "${ECHO_T}$ac_ct_LD" >&6
4193 echo "$as_me:4193: result: no" >&5
4194 echo "${ECHO_T}no" >&6
4202 if test -n "$ac_tool_prefix"; then
4203 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4204 set dummy ${ac_tool_prefix}ar; ac_word=$2
4205 echo "$as_me:4205: checking for $ac_word" >&5
4206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4207 if test "${ac_cv_prog_AR+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4210 if test -n "$AR"; then
4211 ac_cv_prog_AR="$AR" # Let the user override the test.
4213 ac_save_IFS=$IFS; IFS=$ac_path_separator
4215 for ac_dir in $ac_dummy; do
4217 test -z "$ac_dir" && ac_dir=.
4218 $as_executable_p "$ac_dir/$ac_word" || continue
4219 ac_cv_prog_AR="${ac_tool_prefix}ar"
4220 echo "$as_me:4220: found $ac_dir/$ac_word" >&5
4227 if test -n "$AR"; then
4228 echo "$as_me:4228: result: $AR" >&5
4229 echo "${ECHO_T}$AR" >&6
4231 echo "$as_me:4231: result: no" >&5
4232 echo "${ECHO_T}no" >&6
4236 if test -z "$ac_cv_prog_AR"; then
4238 # Extract the first word of "ar", so it can be a program name with args.
4239 set dummy ar; ac_word=$2
4240 echo "$as_me:4240: checking for $ac_word" >&5
4241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4242 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4245 if test -n "$ac_ct_AR"; then
4246 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4248 ac_save_IFS=$IFS; IFS=$ac_path_separator
4250 for ac_dir in $ac_dummy; do
4252 test -z "$ac_dir" && ac_dir=.
4253 $as_executable_p "$ac_dir/$ac_word" || continue
4254 ac_cv_prog_ac_ct_AR="ar"
4255 echo "$as_me:4255: found $ac_dir/$ac_word" >&5
4259 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4262 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4263 if test -n "$ac_ct_AR"; then
4264 echo "$as_me:4264: result: $ac_ct_AR" >&5
4265 echo "${ECHO_T}$ac_ct_AR" >&6
4267 echo "$as_me:4267: result: no" >&5
4268 echo "${ECHO_T}no" >&6
4276 if test -n "$ac_tool_prefix"; then
4277 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4278 set dummy ${ac_tool_prefix}nm; ac_word=$2
4279 echo "$as_me:4279: checking for $ac_word" >&5
4280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4281 if test "${ac_cv_prog_NM+set}" = set; then
4282 echo $ECHO_N "(cached) $ECHO_C" >&6
4284 if test -n "$NM"; then
4285 ac_cv_prog_NM="$NM" # Let the user override the test.
4287 ac_save_IFS=$IFS; IFS=$ac_path_separator
4289 for ac_dir in $ac_dummy; do
4291 test -z "$ac_dir" && ac_dir=.
4292 $as_executable_p "$ac_dir/$ac_word" || continue
4293 ac_cv_prog_NM="${ac_tool_prefix}nm"
4294 echo "$as_me:4294: found $ac_dir/$ac_word" >&5
4301 if test -n "$NM"; then
4302 echo "$as_me:4302: result: $NM" >&5
4303 echo "${ECHO_T}$NM" >&6
4305 echo "$as_me:4305: result: no" >&5
4306 echo "${ECHO_T}no" >&6
4310 if test -z "$ac_cv_prog_NM"; then
4312 # Extract the first word of "nm", so it can be a program name with args.
4313 set dummy nm; ac_word=$2
4314 echo "$as_me:4314: checking for $ac_word" >&5
4315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4316 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4317 echo $ECHO_N "(cached) $ECHO_C" >&6
4319 if test -n "$ac_ct_NM"; then
4320 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4322 ac_save_IFS=$IFS; IFS=$ac_path_separator
4324 for ac_dir in $ac_dummy; do
4326 test -z "$ac_dir" && ac_dir=.
4327 $as_executable_p "$ac_dir/$ac_word" || continue
4328 ac_cv_prog_ac_ct_NM="nm"
4329 echo "$as_me:4329: found $ac_dir/$ac_word" >&5
4333 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
4336 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4337 if test -n "$ac_ct_NM"; then
4338 echo "$as_me:4338: result: $ac_ct_NM" >&5
4339 echo "${ECHO_T}$ac_ct_NM" >&6
4341 echo "$as_me:4341: result: no" >&5
4342 echo "${ECHO_T}no" >&6
4350 if test -n "$ac_tool_prefix"; then
4351 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4352 set dummy ${ac_tool_prefix}ar; ac_word=$2
4353 echo "$as_me:4353: checking for $ac_word" >&5
4354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4355 if test "${ac_cv_prog_AR+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4358 if test -n "$AR"; then
4359 ac_cv_prog_AR="$AR" # Let the user override the test.
4361 ac_save_IFS=$IFS; IFS=$ac_path_separator
4363 for ac_dir in $ac_dummy; do
4365 test -z "$ac_dir" && ac_dir=.
4366 $as_executable_p "$ac_dir/$ac_word" || continue
4367 ac_cv_prog_AR="${ac_tool_prefix}ar"
4368 echo "$as_me:4368: found $ac_dir/$ac_word" >&5
4375 if test -n "$AR"; then
4376 echo "$as_me:4376: result: $AR" >&5
4377 echo "${ECHO_T}$AR" >&6
4379 echo "$as_me:4379: result: no" >&5
4380 echo "${ECHO_T}no" >&6
4384 if test -z "$ac_cv_prog_AR"; then
4386 # Extract the first word of "ar", so it can be a program name with args.
4387 set dummy ar; ac_word=$2
4388 echo "$as_me:4388: checking for $ac_word" >&5
4389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4390 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
4393 if test -n "$ac_ct_AR"; then
4394 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4396 ac_save_IFS=$IFS; IFS=$ac_path_separator
4398 for ac_dir in $ac_dummy; do
4400 test -z "$ac_dir" && ac_dir=.
4401 $as_executable_p "$ac_dir/$ac_word" || continue
4402 ac_cv_prog_ac_ct_AR="ar"
4403 echo "$as_me:4403: found $ac_dir/$ac_word" >&5
4407 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4410 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4411 if test -n "$ac_ct_AR"; then
4412 echo "$as_me:4412: result: $ac_ct_AR" >&5
4413 echo "${ECHO_T}$ac_ct_AR" >&6
4415 echo "$as_me:4415: result: no" >&5
4416 echo "${ECHO_T}no" >&6
4424 echo "$as_me:4424: checking for options to update archives" >&5
4425 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
4426 if test "${cf_cv_ar_flags+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4430 cf_cv_ar_flags=unknown
4431 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
4434 # check if $ARFLAGS already contains this choice
4435 if test "x$ARFLAGS" != "x" ; then
4436 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
4437 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
4443 rm -f conftest.$ac_cv_objext
4446 cat >conftest.$ac_ext <<EOF
4447 #line 4447 "configure"
4448 int testdata[3] = { 123, 456, 789 };
4450 if { (eval echo "$as_me:4450: \"$ac_compile\"") >&5
4451 (eval $ac_compile) 2>&5
4453 echo "$as_me:4453: \$? = $ac_status" >&5
4454 (exit $ac_status); } ; then
4455 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
4456 $AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext 2>&5 1>/dev/null
4457 if test -f conftest.a ; then
4458 cf_cv_ar_flags=$cf_ar_flags
4462 test -n "$verbose" && echo " cannot compile test-program" 1>&6
4464 echo "${as_me:-configure}:4464: testing cannot compile test-program ..." 1>&5
4469 rm -f conftest.a conftest.$ac_ext conftest.$ac_cv_objext
4472 echo "$as_me:4472: result: $cf_cv_ar_flags" >&5
4473 echo "${ECHO_T}$cf_cv_ar_flags" >&6
4475 if test -n "$ARFLAGS" ; then
4476 if test -n "$cf_cv_ar_flags" ; then
4477 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
4480 ARFLAGS=$cf_cv_ar_flags
4483 echo "$as_me:4483: checking if you have specified an install-prefix" >&5
4484 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
4486 # Check whether --with-install-prefix or --without-install-prefix was given.
4487 if test "${with_install_prefix+set}" = set; then
4488 withval="$with_install_prefix"
4492 (*) DESTDIR="$withval"
4496 echo "$as_me:4496: result: $DESTDIR" >&5
4497 echo "${ECHO_T}$DESTDIR" >&6
4499 ###############################################################################
4501 # If we're cross-compiling, allow the user to override the tools and their
4502 # options. The configure script is oriented toward identifying the host
4503 # compiler, etc., but we need a build compiler to generate parts of the source.
4505 if test "$cross_compiling" = yes ; then
4507 # defaults that we might want to override
4508 : ${BUILD_CFLAGS:=''}
4509 : ${BUILD_CPPFLAGS:=''}
4510 : ${BUILD_LDFLAGS:=''}
4512 : ${BUILD_EXEEXT:='$x'}
4513 : ${BUILD_OBJEXT:='o'}
4515 # Check whether --with-build-cc or --without-build-cc was given.
4516 if test "${with_build_cc+set}" = set; then
4517 withval="$with_build_cc"
4520 for ac_prog in gcc cc cl
4522 # Extract the first word of "$ac_prog", so it can be a program name with args.
4523 set dummy $ac_prog; ac_word=$2
4524 echo "$as_me:4524: checking for $ac_word" >&5
4525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4526 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4529 if test -n "$BUILD_CC"; then
4530 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4532 ac_save_IFS=$IFS; IFS=$ac_path_separator
4534 for ac_dir in $ac_dummy; do
4536 test -z "$ac_dir" && ac_dir=.
4537 $as_executable_p "$ac_dir/$ac_word" || continue
4538 ac_cv_prog_BUILD_CC="$ac_prog"
4539 echo "$as_me:4539: found $ac_dir/$ac_word" >&5
4545 BUILD_CC=$ac_cv_prog_BUILD_CC
4546 if test -n "$BUILD_CC"; then
4547 echo "$as_me:4547: result: $BUILD_CC" >&5
4548 echo "${ECHO_T}$BUILD_CC" >&6
4550 echo "$as_me:4550: result: no" >&5
4551 echo "${ECHO_T}no" >&6
4554 test -n "$BUILD_CC" && break
4558 echo "$as_me:4558: checking for native build C compiler" >&5
4559 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
4560 echo "$as_me:4560: result: $BUILD_CC" >&5
4561 echo "${ECHO_T}$BUILD_CC" >&6
4563 echo "$as_me:4563: checking for native build C preprocessor" >&5
4564 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
4566 # Check whether --with-build-cpp or --without-build-cpp was given.
4567 if test "${with_build_cpp+set}" = set; then
4568 withval="$with_build_cpp"
4569 BUILD_CPP="$withval"
4571 BUILD_CPP='${BUILD_CC} -E'
4573 echo "$as_me:4573: result: $BUILD_CPP" >&5
4574 echo "${ECHO_T}$BUILD_CPP" >&6
4576 echo "$as_me:4576: checking for native build C flags" >&5
4577 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
4579 # Check whether --with-build-cflags or --without-build-cflags was given.
4580 if test "${with_build_cflags+set}" = set; then
4581 withval="$with_build_cflags"
4582 BUILD_CFLAGS="$withval"
4584 echo "$as_me:4584: result: $BUILD_CFLAGS" >&5
4585 echo "${ECHO_T}$BUILD_CFLAGS" >&6
4587 echo "$as_me:4587: checking for native build C preprocessor-flags" >&5
4588 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
4590 # Check whether --with-build-cppflags or --without-build-cppflags was given.
4591 if test "${with_build_cppflags+set}" = set; then
4592 withval="$with_build_cppflags"
4593 BUILD_CPPFLAGS="$withval"
4595 echo "$as_me:4595: result: $BUILD_CPPFLAGS" >&5
4596 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
4598 echo "$as_me:4598: checking for native build linker-flags" >&5
4599 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
4601 # Check whether --with-build-ldflags or --without-build-ldflags was given.
4602 if test "${with_build_ldflags+set}" = set; then
4603 withval="$with_build_ldflags"
4604 BUILD_LDFLAGS="$withval"
4606 echo "$as_me:4606: result: $BUILD_LDFLAGS" >&5
4607 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
4609 echo "$as_me:4609: checking for native build linker-libraries" >&5
4610 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
4612 # Check whether --with-build-libs or --without-build-libs was given.
4613 if test "${with_build_libs+set}" = set; then
4614 withval="$with_build_libs"
4615 BUILD_LIBS="$withval"
4617 echo "$as_me:4617: result: $BUILD_LIBS" >&5
4618 echo "${ECHO_T}$BUILD_LIBS" >&6
4620 # this assumes we're on Unix.
4624 : ${BUILD_CC:='${CC}'}
4626 if ( test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}' ) ; then
4627 { { echo "$as_me:4627: error: Cross-build requires two compilers.
4628 Use --with-build-cc to specify the native compiler." >&5
4629 echo "$as_me: error: Cross-build requires two compilers.
4630 Use --with-build-cc to specify the native compiler." >&2;}
4631 { (exit 1); exit 1; }; }
4635 : ${BUILD_CC:='${CC}'}
4636 : ${BUILD_CPP:='${CPP}'}
4637 : ${BUILD_CFLAGS:='${CFLAGS}'}
4638 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
4639 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
4640 : ${BUILD_LIBS:='${LIBS}'}
4641 : ${BUILD_EXEEXT:='$x'}
4642 : ${BUILD_OBJEXT:='o'}
4645 ###############################################################################
4647 ### Options to allow the user to specify the set of libraries which are used.
4648 ### Use "--without-normal --with-shared" to allow the default model to be
4649 ### shared, for example.
4652 echo "$as_me:4652: checking if libtool -version-number should be used" >&5
4653 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
4655 # Check whether --enable-libtool-version or --disable-libtool-version was given.
4656 if test "${enable_libtool_version+set}" = set; then
4657 enableval="$enable_libtool_version"
4658 test "$enableval" != no && enableval=yes
4659 if test "$enableval" != "yes" ; then
4660 cf_libtool_version=no
4662 cf_libtool_version=yes
4666 cf_libtool_version=yes
4669 echo "$as_me:4669: result: $cf_libtool_version" >&5
4670 echo "${ECHO_T}$cf_libtool_version" >&6
4672 if test "$cf_libtool_version" = yes ; then
4673 LIBTOOL_VERSION="-version-number"
4675 LIBTOOL_VERSION="-version-info"
4678 { echo "$as_me:4678: WARNING: VERSION was not set" >&5
4679 echo "$as_me: WARNING: VERSION was not set" >&2;}
4682 ABI_VERSION="$VERSION"
4683 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4685 echo "${as_me:-configure}:4685: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4689 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'`
4690 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
4692 echo "${as_me:-configure}:4692: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
4696 { echo "$as_me:4696: WARNING: unexpected VERSION value: $VERSION" >&5
4697 echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;}
4704 # common library maintenance symbols that are convenient for libtool scripts:
4705 LIB_CREATE='${AR} -cr'
4706 LIB_OBJECT='${OBJECTS}'
4710 # symbols used to prop libtool up to enable it to determine what it should be
4718 echo "$as_me:4718: checking if you want to build libraries with libtool" >&5
4719 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
4721 # Check whether --with-libtool or --without-libtool was given.
4722 if test "${with_libtool+set}" = set; then
4723 withval="$with_libtool"
4724 with_libtool=$withval
4728 echo "$as_me:4728: result: $with_libtool" >&5
4729 echo "${ECHO_T}$with_libtool" >&6
4730 if test "$with_libtool" != "no"; then
4732 if test "$with_libtool" != "yes" ; then
4734 if test "x$prefix" != xNONE; then
4735 cf_path_syntax="$prefix"
4737 cf_path_syntax="$ac_default_prefix"
4740 case ".$with_libtool" in
4745 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4747 (.\${*prefix}*|.\${*dir}*)
4748 eval with_libtool="$with_libtool"
4749 case ".$with_libtool" in
4751 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4756 with_libtool=`echo $with_libtool | sed -e s%NONE%$cf_path_syntax%`
4759 { { echo "$as_me:4759: error: expected a pathname, not \"$with_libtool\"" >&5
4760 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
4761 { (exit 1); exit 1; }; }
4765 LIBTOOL=$with_libtool
4767 if test -n "$ac_tool_prefix"; then
4768 for ac_prog in libtool glibtool
4770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4771 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4772 echo "$as_me:4772: checking for $ac_word" >&5
4773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4774 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4777 if test -n "$LIBTOOL"; then
4778 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
4780 ac_save_IFS=$IFS; IFS=$ac_path_separator
4782 for ac_dir in $ac_dummy; do
4784 test -z "$ac_dir" && ac_dir=.
4785 $as_executable_p "$ac_dir/$ac_word" || continue
4786 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
4787 echo "$as_me:4787: found $ac_dir/$ac_word" >&5
4793 LIBTOOL=$ac_cv_prog_LIBTOOL
4794 if test -n "$LIBTOOL"; then
4795 echo "$as_me:4795: result: $LIBTOOL" >&5
4796 echo "${ECHO_T}$LIBTOOL" >&6
4798 echo "$as_me:4798: result: no" >&5
4799 echo "${ECHO_T}no" >&6
4802 test -n "$LIBTOOL" && break
4805 if test -z "$LIBTOOL"; then
4806 ac_ct_LIBTOOL=$LIBTOOL
4807 for ac_prog in libtool glibtool
4809 # Extract the first word of "$ac_prog", so it can be a program name with args.
4810 set dummy $ac_prog; ac_word=$2
4811 echo "$as_me:4811: checking for $ac_word" >&5
4812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4813 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 if test -n "$ac_ct_LIBTOOL"; then
4817 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
4819 ac_save_IFS=$IFS; IFS=$ac_path_separator
4821 for ac_dir in $ac_dummy; do
4823 test -z "$ac_dir" && ac_dir=.
4824 $as_executable_p "$ac_dir/$ac_word" || continue
4825 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
4826 echo "$as_me:4826: found $ac_dir/$ac_word" >&5
4832 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
4833 if test -n "$ac_ct_LIBTOOL"; then
4834 echo "$as_me:4834: result: $ac_ct_LIBTOOL" >&5
4835 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
4837 echo "$as_me:4837: result: no" >&5
4838 echo "${ECHO_T}no" >&6
4841 test -n "$ac_ct_LIBTOOL" && break
4843 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
4845 LIBTOOL=$ac_ct_LIBTOOL
4848 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4850 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.].*//'`
4852 cf_cv_libtool_version=
4854 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
4856 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool
4859 unset ac_cv_prog_ac_ct_LIBTOOL
4863 if test -n "$ac_tool_prefix"; then
4864 for ac_prog in glibtool
4866 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4867 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4868 echo "$as_me:4868: checking for $ac_word" >&5
4869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4870 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
4871 echo $ECHO_N "(cached) $ECHO_C" >&6
4873 if test -n "$LIBTOOL"; then
4874 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
4876 ac_save_IFS=$IFS; IFS=$ac_path_separator
4878 for ac_dir in $ac_dummy; do
4880 test -z "$ac_dir" && ac_dir=.
4881 $as_executable_p "$ac_dir/$ac_word" || continue
4882 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
4883 echo "$as_me:4883: found $ac_dir/$ac_word" >&5
4889 LIBTOOL=$ac_cv_prog_LIBTOOL
4890 if test -n "$LIBTOOL"; then
4891 echo "$as_me:4891: result: $LIBTOOL" >&5
4892 echo "${ECHO_T}$LIBTOOL" >&6
4894 echo "$as_me:4894: result: no" >&5
4895 echo "${ECHO_T}no" >&6
4898 test -n "$LIBTOOL" && break
4901 if test -z "$LIBTOOL"; then
4902 ac_ct_LIBTOOL=$LIBTOOL
4903 for ac_prog in glibtool
4905 # Extract the first word of "$ac_prog", so it can be a program name with args.
4906 set dummy $ac_prog; ac_word=$2
4907 echo "$as_me:4907: checking for $ac_word" >&5
4908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4909 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4912 if test -n "$ac_ct_LIBTOOL"; then
4913 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
4915 ac_save_IFS=$IFS; IFS=$ac_path_separator
4917 for ac_dir in $ac_dummy; do
4919 test -z "$ac_dir" && ac_dir=.
4920 $as_executable_p "$ac_dir/$ac_word" || continue
4921 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
4922 echo "$as_me:4922: found $ac_dir/$ac_word" >&5
4928 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
4929 if test -n "$ac_ct_LIBTOOL"; then
4930 echo "$as_me:4930: result: $ac_ct_LIBTOOL" >&5
4931 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
4933 echo "$as_me:4933: result: no" >&5
4934 echo "${ECHO_T}no" >&6
4937 test -n "$ac_ct_LIBTOOL" && break
4939 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
4941 LIBTOOL=$ac_ct_LIBTOOL
4944 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4946 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.].*//'`
4948 cf_cv_libtool_version=
4950 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
4954 if test -z "$LIBTOOL" ; then
4955 { { echo "$as_me:4955: error: Cannot find libtool" >&5
4956 echo "$as_me: error: Cannot find libtool" >&2;}
4957 { (exit 1); exit 1; }; }
4959 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${DESTDIR}${libdir} ${LIBTOOL_VERSION} `cut -f1 ${top_srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
4960 LIB_OBJECT='${OBJECTS:.o=.lo}'
4962 LIB_CLEAN='${LIBTOOL} --mode=clean'
4963 LIB_COMPILE='${LIBTOOL} --mode=compile'
4964 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
4965 LIB_INSTALL='${LIBTOOL} --mode=install'
4966 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
4969 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4971 echo "$as_me:4971: checking version of $LIBTOOL" >&5
4972 echo $ECHO_N "checking version of $LIBTOOL... $ECHO_C" >&6
4974 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
4976 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.].*//'`
4978 cf_cv_libtool_version=
4980 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
4982 echo "$as_me:4982: result: $cf_cv_libtool_version" >&5
4983 echo "${ECHO_T}$cf_cv_libtool_version" >&6
4984 if test -z "$cf_cv_libtool_version" ; then
4985 { { echo "$as_me:4985: error: This is not GNU libtool" >&5
4986 echo "$as_me: error: This is not GNU libtool" >&2;}
4987 { (exit 1); exit 1; }; }
4990 { { echo "$as_me:4990: error: GNU libtool has not been found" >&5
4991 echo "$as_me: error: GNU libtool has not been found" >&2;}
4992 { (exit 1); exit 1; }; }
4995 # special hack to add -no-undefined (which libtool should do for itself)
4997 case "$cf_cv_system_name" in
4998 (cygwin*|msys*|mingw32*|os2*|uwin*|aix[4-7])
4999 LT_UNDEF=-no-undefined
5003 # special hack to add --tag option for C++ compiler
5004 case $cf_cv_libtool_version in
5005 (1.[5-9]*|[2-9].[0-9.a-z]*)
5006 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
5007 LIBTOOL="$LIBTOOL --tag=CC"
5010 LIBTOOL_CXX="$LIBTOOL"
5018 test -z "$LIBTOOL" && ECHO_LT=
5020 if test "$with_libtool" != "no" ; then
5022 cf_list_models="$cf_list_models libtool"
5026 echo "$as_me:5026: checking if you want to build shared libraries" >&5
5027 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
5029 # Check whether --with-shared or --without-shared was given.
5030 if test "${with_shared+set}" = set; then
5031 withval="$with_shared"
5032 with_shared=$withval
5036 echo "$as_me:5036: result: $with_shared" >&5
5037 echo "${ECHO_T}$with_shared" >&6
5038 test "x$with_shared" = "xyes" && cf_list_models="$cf_list_models shared"
5040 echo "$as_me:5040: checking if you want to build static libraries" >&5
5041 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
5043 # Check whether --with-normal or --without-normal was given.
5044 if test "${with_normal+set}" = set; then
5045 withval="$with_normal"
5046 with_normal=$withval
5050 echo "$as_me:5050: result: $with_normal" >&5
5051 echo "${ECHO_T}$with_normal" >&6
5052 test "x$with_normal" = "xyes" && cf_list_models="$cf_list_models normal"
5054 echo "$as_me:5054: checking if you want to build debug libraries" >&5
5055 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
5057 # Check whether --with-debug or --without-debug was given.
5058 if test "${with_debug+set}" = set; then
5059 withval="$with_debug"
5064 echo "$as_me:5064: result: $with_debug" >&5
5065 echo "${ECHO_T}$with_debug" >&6
5066 test "x$with_debug" = "xyes" && cf_list_models="$cf_list_models debug"
5068 echo "$as_me:5068: checking if you want to build profiling libraries" >&5
5069 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
5071 # Check whether --with-profile or --without-profile was given.
5072 if test "${with_profile+set}" = set; then
5073 withval="$with_profile"
5074 with_profile=$withval
5078 echo "$as_me:5078: result: $with_profile" >&5
5079 echo "${ECHO_T}$with_profile" >&6
5080 test "x$with_profile" = "xyes" && cf_list_models="$cf_list_models profile"
5084 if test "X$cf_with_cxx_binding" != Xno; then
5085 if test "x$with_shared" = "xyes"; then
5086 echo "$as_me:5086: checking if you want to build C++ shared libraries" >&5
5087 echo $ECHO_N "checking if you want to build C++ shared libraries... $ECHO_C" >&6
5089 # Check whether --with-cxx-shared or --without-cxx-shared was given.
5090 if test "${with_cxx_shared+set}" = set; then
5091 withval="$with_cxx_shared"
5092 with_shared_cxx=$withval
5096 echo "$as_me:5096: result: $with_shared_cxx" >&5
5097 echo "${ECHO_T}$with_shared_cxx" >&6
5101 ###############################################################################
5103 echo "$as_me:5103: checking for specified models" >&5
5104 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
5105 test -z "$cf_list_models" && cf_list_models=normal
5106 test "$with_libtool" != "no" && cf_list_models=libtool
5107 echo "$as_me:5107: result: $cf_list_models" >&5
5108 echo "${ECHO_T}$cf_list_models" >&6
5110 ### Use the first model as the default, and save its suffix for use in building
5111 ### up test-applications.
5112 echo "$as_me:5112: checking for default model" >&5
5113 echo $ECHO_N "checking for default model... $ECHO_C" >&6
5114 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
5115 echo "$as_me:5115: result: $DFT_LWR_MODEL" >&5
5116 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
5118 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5129 echo "$as_me:5129: checking if you want to have a library-prefix" >&5
5130 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
5132 # Check whether --with-lib-prefix or --without-lib-prefix was given.
5133 if test "${with_lib_prefix+set}" = set; then
5134 withval="$with_lib_prefix"
5135 with_lib_prefix=$withval
5137 with_lib_prefix=auto
5139 echo "$as_me:5139: result: $with_lib_prefix" >&5
5140 echo "${ECHO_T}$with_lib_prefix" >&6
5142 if test $with_lib_prefix = auto
5145 case $cf_cv_system_name in
5147 if test "$DFT_LWR_MODEL" = libtool; then
5153 (*) LIB_PREFIX='lib'
5156 cf_prefix=$LIB_PREFIX
5158 elif test $with_lib_prefix = no
5162 LIB_PREFIX=$with_lib_prefix
5167 echo "$as_me:5167: checking for PATH separator" >&5
5168 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
5169 case $cf_cv_system_name in
5170 (os2*) PATH_SEPARATOR=';' ;;
5171 (*) ${PATH_SEPARATOR:=':'} ;;
5174 echo "$as_me:5174: result: $PATH_SEPARATOR" >&5
5175 echo "${ECHO_T}$PATH_SEPARATOR" >&6
5177 ###############################################################################
5179 echo "$as_me:5179: checking if you want to build a separate terminfo library" >&5
5180 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
5182 # Check whether --with-termlib or --without-termlib was given.
5183 if test "${with_termlib+set}" = set; then
5184 withval="$with_termlib"
5185 with_termlib=$withval
5189 echo "$as_me:5189: result: $with_termlib" >&5
5190 echo "${ECHO_T}$with_termlib" >&6
5192 echo "$as_me:5192: checking if you want to build a separate tic library" >&5
5193 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
5195 # Check whether --with-ticlib or --without-ticlib was given.
5196 if test "${with_ticlib+set}" = set; then
5197 withval="$with_ticlib"
5198 with_ticlib=$withval
5202 echo "$as_me:5202: result: $with_ticlib" >&5
5203 echo "${ECHO_T}$with_ticlib" >&6
5205 ### Checks for special libraries, must be done up-front.
5208 echo "$as_me:5208: checking if you want to link with the GPM mouse library" >&5
5209 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
5211 # Check whether --with-gpm or --without-gpm was given.
5212 if test "${with_gpm+set}" = set; then
5218 echo "$as_me:5218: result: $with_gpm" >&5
5219 echo "${ECHO_T}$with_gpm" >&6
5221 if test "$with_gpm" != no ; then
5222 echo "$as_me:5222: checking for gpm.h" >&5
5223 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
5224 if test "${ac_cv_header_gpm_h+set}" = set; then
5225 echo $ECHO_N "(cached) $ECHO_C" >&6
5227 cat >conftest.$ac_ext <<_ACEOF
5228 #line 5228 "configure"
5229 #include "confdefs.h"
5232 if { (eval echo "$as_me:5232: \"$ac_cpp conftest.$ac_ext\"") >&5
5233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5235 egrep -v '^ *\+' conftest.er1 >conftest.err
5237 cat conftest.err >&5
5238 echo "$as_me:5238: \$? = $ac_status" >&5
5239 (exit $ac_status); } >/dev/null; then
5240 if test -s conftest.err; then
5241 ac_cpp_err=$ac_c_preproc_warn_flag
5248 if test -z "$ac_cpp_err"; then
5249 ac_cv_header_gpm_h=yes
5251 echo "$as_me: failed program was:" >&5
5252 cat conftest.$ac_ext >&5
5253 ac_cv_header_gpm_h=no
5255 rm -f conftest.err conftest.$ac_ext
5257 echo "$as_me:5257: result: $ac_cv_header_gpm_h" >&5
5258 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
5259 if test $ac_cv_header_gpm_h = yes; then
5261 cat >>confdefs.h <<\EOF
5262 #define HAVE_GPM_H 1
5265 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
5266 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
5268 echo "${as_me:-configure}:5268: testing assuming we really have GPM library ..." 1>&5
5270 cat >>confdefs.h <<\EOF
5271 #define HAVE_LIBGPM 1
5276 echo "$as_me:5276: checking for Gpm_Open in -lgpm" >&5
5277 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
5278 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5281 ac_check_lib_save_LIBS=$LIBS
5283 cat >conftest.$ac_ext <<_ACEOF
5284 #line 5284 "configure"
5285 #include "confdefs.h"
5287 /* Override any gcc2 internal prototype to avoid an error. */
5291 /* We use char because int might match the return type of a gcc2
5292 builtin and then its argument prototype would still apply. */
5302 rm -f conftest.$ac_objext conftest$ac_exeext
5303 if { (eval echo "$as_me:5303: \"$ac_link\"") >&5
5304 (eval $ac_link) 2>&5
5306 echo "$as_me:5306: \$? = $ac_status" >&5
5307 (exit $ac_status); } &&
5308 { ac_try='test -s conftest$ac_exeext'
5309 { (eval echo "$as_me:5309: \"$ac_try\"") >&5
5312 echo "$as_me:5312: \$? = $ac_status" >&5
5313 (exit $ac_status); }; }; then
5314 ac_cv_lib_gpm_Gpm_Open=yes
5316 echo "$as_me: failed program was:" >&5
5317 cat conftest.$ac_ext >&5
5318 ac_cv_lib_gpm_Gpm_Open=no
5320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5321 LIBS=$ac_check_lib_save_LIBS
5323 echo "$as_me:5323: result: $ac_cv_lib_gpm_Gpm_Open" >&5
5324 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
5325 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
5329 if test "$with_gpm" = maybe; then
5330 { echo "$as_me:5330: WARNING: Cannot link with GPM library" >&5
5331 echo "$as_me: WARNING: Cannot link with GPM library" >&2;}
5334 { { echo "$as_me:5334: error: Cannot link with GPM library" >&5
5335 echo "$as_me: error: Cannot link with GPM library" >&2;}
5336 { (exit 1); exit 1; }; }
5345 test "$with_gpm" != maybe && { echo "$as_me:5345: WARNING: Cannot find GPM header" >&5
5346 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
5353 if test "$with_gpm" != no ; then
5354 echo "$as_me:5354: checking if you want to load GPM dynamically" >&5
5355 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
5357 # Check whether --with-dlsym or --without-dlsym was given.
5358 if test "${with_dlsym+set}" = set; then
5359 withval="$with_dlsym"
5364 echo "$as_me:5364: result: $with_dlsym" >&5
5365 echo "${ECHO_T}$with_dlsym" >&6
5366 if test "x$with_dlsym" = xyes ; then
5369 echo "$as_me:5369: checking for dlsym" >&5
5370 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
5371 if test "${ac_cv_func_dlsym+set}" = set; then
5372 echo $ECHO_N "(cached) $ECHO_C" >&6
5374 cat >conftest.$ac_ext <<_ACEOF
5375 #line 5375 "configure"
5376 #include "confdefs.h"
5377 /* System header to define __stub macros and hopefully few prototypes,
5378 which can conflict with char dlsym (); below. */
5380 /* Override any gcc2 internal prototype to avoid an error. */
5384 /* We use char because int might match the return type of a gcc2
5385 builtin and then its argument prototype would still apply. */
5392 /* The GNU C library defines this for functions which it implements
5393 to always fail with ENOSYS. Some functions are actually named
5394 something starting with __ and the normal name is an alias. */
5395 #if defined (__stub_dlsym) || defined (__stub___dlsym)
5398 f = dlsym; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
5405 rm -f conftest.$ac_objext conftest$ac_exeext
5406 if { (eval echo "$as_me:5406: \"$ac_link\"") >&5
5407 (eval $ac_link) 2>&5
5409 echo "$as_me:5409: \$? = $ac_status" >&5
5410 (exit $ac_status); } &&
5411 { ac_try='test -s conftest$ac_exeext'
5412 { (eval echo "$as_me:5412: \"$ac_try\"") >&5
5415 echo "$as_me:5415: \$? = $ac_status" >&5
5416 (exit $ac_status); }; }; then
5417 ac_cv_func_dlsym=yes
5419 echo "$as_me: failed program was:" >&5
5420 cat conftest.$ac_ext >&5
5423 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5425 echo "$as_me:5425: result: $ac_cv_func_dlsym" >&5
5426 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
5427 if test $ac_cv_func_dlsym = yes; then
5432 echo "$as_me:5432: checking for dlsym in -ldl" >&5
5433 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
5434 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5437 ac_check_lib_save_LIBS=$LIBS
5439 cat >conftest.$ac_ext <<_ACEOF
5440 #line 5440 "configure"
5441 #include "confdefs.h"
5443 /* Override any gcc2 internal prototype to avoid an error. */
5447 /* We use char because int might match the return type of a gcc2
5448 builtin and then its argument prototype would still apply. */
5458 rm -f conftest.$ac_objext conftest$ac_exeext
5459 if { (eval echo "$as_me:5459: \"$ac_link\"") >&5
5460 (eval $ac_link) 2>&5
5462 echo "$as_me:5462: \$? = $ac_status" >&5
5463 (exit $ac_status); } &&
5464 { ac_try='test -s conftest$ac_exeext'
5465 { (eval echo "$as_me:5465: \"$ac_try\"") >&5
5468 echo "$as_me:5468: \$? = $ac_status" >&5
5469 (exit $ac_status); }; }; then
5470 ac_cv_lib_dl_dlsym=yes
5472 echo "$as_me: failed program was:" >&5
5473 cat conftest.$ac_ext >&5
5474 ac_cv_lib_dl_dlsym=no
5476 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5477 LIBS=$ac_check_lib_save_LIBS
5479 echo "$as_me:5479: result: $ac_cv_lib_dl_dlsym" >&5
5480 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
5481 if test $ac_cv_lib_dl_dlsym = yes; then
5489 if test "$cf_have_dlsym" = yes ; then
5490 test "$cf_have_libdl" = yes && {
5492 # Filter out duplicates - this happens with badly-designed ".pc" files...
5493 for cf_add_1lib in $LIBS
5495 for cf_add_2lib in $cf_add_libs
5497 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5503 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5508 echo "$as_me:5508: checking whether able to link to dl*() functions" >&5
5509 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
5510 cat >conftest.$ac_ext <<_ACEOF
5511 #line 5511 "configure"
5512 #include "confdefs.h"
5519 if ((obj = dlopen("filename", 0)) != 0) {
5520 if (dlsym(obj, "symbolname") == 0) {
5528 rm -f conftest.$ac_objext conftest$ac_exeext
5529 if { (eval echo "$as_me:5529: \"$ac_link\"") >&5
5530 (eval $ac_link) 2>&5
5532 echo "$as_me:5532: \$? = $ac_status" >&5
5533 (exit $ac_status); } &&
5534 { ac_try='test -s conftest$ac_exeext'
5535 { (eval echo "$as_me:5535: \"$ac_try\"") >&5
5538 echo "$as_me:5538: \$? = $ac_status" >&5
5539 (exit $ac_status); }; }; then
5541 cat >>confdefs.h <<\EOF
5542 #define HAVE_LIBDL 1
5546 echo "$as_me: failed program was:" >&5
5547 cat conftest.$ac_ext >&5
5549 { { echo "$as_me:5549: error: Cannot link test program for libdl" >&5
5550 echo "$as_me: error: Cannot link test program for libdl" >&2;}
5551 { (exit 1); exit 1; }; }
5553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5554 echo "$as_me:5554: result: ok" >&5
5555 echo "${ECHO_T}ok" >&6
5557 { { echo "$as_me:5557: error: Cannot find dlsym function" >&5
5558 echo "$as_me: error: Cannot find dlsym function" >&2;}
5559 { (exit 1); exit 1; }; }
5562 if test "x$with_gpm" != xyes ; then
5563 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
5565 echo "${as_me:-configure}:5565: testing assuming soname for gpm is $with_gpm ..." 1>&5
5567 cf_cv_gpm_soname="$with_gpm"
5570 echo "$as_me:5570: checking for soname of gpm library" >&5
5571 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
5572 if test "${cf_cv_gpm_soname+set}" = set; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5576 cf_cv_gpm_soname=unknown
5577 if test "$cross_compiling" != yes ; then
5578 cat >conftest.$ac_ext <<CF_EOF
5582 if (Gpm_Open(0,0)) Gpm_Close();
5583 ${cf_cv_main_return:-return}(0);
5586 cf_save_LIBS="$LIBS"
5589 # Filter out duplicates - this happens with badly-designed ".pc" files...
5590 for cf_add_1lib in $LIBS
5592 for cf_add_2lib in $cf_add_libs
5594 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5600 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5604 if { (eval echo "$as_me:5604: \"$ac_compile\"") >&5
5605 (eval $ac_compile) 2>&5
5607 echo "$as_me:5607: \$? = $ac_status" >&5
5608 (exit $ac_status); } ; then
5609 if { (eval echo "$as_me:5609: \"$ac_link\"") >&5
5610 (eval $ac_link) 2>&5
5612 echo "$as_me:5612: \$? = $ac_status" >&5
5613 (exit $ac_status); } ; then
5614 cf_cv_gpm_soname=`ldd conftest$ac_exeext 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | fgrep libgpm.`
5615 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
5619 LIBS="$cf_save_LIBS"
5623 echo "$as_me:5623: result: $cf_cv_gpm_soname" >&5
5624 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
5627 test "$cf_cv_gpm_soname" != "unknown" &&
5628 cat >>confdefs.h <<EOF
5629 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
5632 SHLIB_LIST="-ldl $SHLIB_LIST"
5634 SHLIB_LIST="-lgpm $SHLIB_LIST"
5637 # Filter out duplicates - this happens with badly-designed ".pc" files...
5638 for cf_add_1lib in $TEST_LIBS
5640 for cf_add_2lib in $cf_add_libs
5642 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5648 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5650 TEST_LIBS="$cf_add_libs"
5654 cat >>confdefs.h <<\EOF
5655 #define HAVE_LIBGPM 1
5658 echo "$as_me:5658: checking for Gpm_Wgetch in -lgpm" >&5
5659 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
5660 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
5661 echo $ECHO_N "(cached) $ECHO_C" >&6
5663 ac_check_lib_save_LIBS=$LIBS
5665 cat >conftest.$ac_ext <<_ACEOF
5666 #line 5666 "configure"
5667 #include "confdefs.h"
5669 /* Override any gcc2 internal prototype to avoid an error. */
5673 /* We use char because int might match the return type of a gcc2
5674 builtin and then its argument prototype would still apply. */
5684 rm -f conftest.$ac_objext conftest$ac_exeext
5685 if { (eval echo "$as_me:5685: \"$ac_link\"") >&5
5686 (eval $ac_link) 2>&5
5688 echo "$as_me:5688: \$? = $ac_status" >&5
5689 (exit $ac_status); } &&
5690 { ac_try='test -s conftest$ac_exeext'
5691 { (eval echo "$as_me:5691: \"$ac_try\"") >&5
5694 echo "$as_me:5694: \$? = $ac_status" >&5
5695 (exit $ac_status); }; }; then
5696 ac_cv_lib_gpm_Gpm_Wgetch=yes
5698 echo "$as_me: failed program was:" >&5
5699 cat conftest.$ac_ext >&5
5700 ac_cv_lib_gpm_Gpm_Wgetch=no
5702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5703 LIBS=$ac_check_lib_save_LIBS
5705 echo "$as_me:5705: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
5706 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
5707 if test $ac_cv_lib_gpm_Gpm_Wgetch = yes; then
5709 echo "$as_me:5709: checking if GPM is weakly bound to curses library" >&5
5710 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
5711 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
5712 echo $ECHO_N "(cached) $ECHO_C" >&6
5715 cf_cv_check_gpm_wgetch=unknown
5716 if test "$cross_compiling" != yes ; then
5718 cat >conftest.$ac_ext <<CF_EOF
5723 ${cf_cv_main_return:-return}(0);
5727 cf_save_LIBS="$LIBS"
5728 # This only works if we can look at the symbol table. If a shared
5729 # library is stripped for install, we cannot use that. So we're forced
5730 # to rely on the static library, noting that some packagers may not
5732 LIBS="-static -lgpm -dynamic $LIBS"
5733 if { (eval echo "$as_me:5733: \"$ac_compile\"") >&5
5734 (eval $ac_compile) 2>&5
5736 echo "$as_me:5736: \$? = $ac_status" >&5
5737 (exit $ac_status); } ; then
5738 if { (eval echo "$as_me:5738: \"$ac_link\"") >&5
5739 (eval $ac_link) 2>&5
5741 echo "$as_me:5741: \$? = $ac_status" >&5
5742 (exit $ac_status); } ; then
5743 cf_cv_check_gpm_wgetch=`nm conftest$ac_exeext | egrep '\<wgetch\>' | egrep '\<[vVwW]\>'`
5744 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
5745 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
5749 LIBS="$cf_save_LIBS"
5753 echo "$as_me:5753: result: $cf_cv_check_gpm_wgetch" >&5
5754 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
5756 if test "$cf_cv_check_gpm_wgetch" != yes ; then
5757 { echo "$as_me:5757: WARNING: GPM library is already linked with curses - read the FAQ" >&5
5758 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
5765 # not everyone has "test -c"
5766 if test -c /dev/sysmouse 2>/dev/null ; then
5767 echo "$as_me:5767: checking if you want to use sysmouse" >&5
5768 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
5770 # Check whether --with-sysmouse or --without-sysmouse was given.
5771 if test "${with_sysmouse+set}" = set; then
5772 withval="$with_sysmouse"
5773 cf_with_sysmouse=$withval
5775 cf_with_sysmouse=maybe
5777 if test "$cf_with_sysmouse" != no ; then
5778 cat >conftest.$ac_ext <<_ACEOF
5779 #line 5779 "configure"
5780 #include "confdefs.h"
5782 #include <osreldate.h>
5783 #if (__FreeBSD_version >= 400017)
5784 #include <sys/consio.h>
5785 #include <sys/fbio.h>
5787 #include <machine/console.h>
5794 struct mouse_info the_mouse;
5795 ioctl(0, CONS_MOUSECTL, &the_mouse);
5801 rm -f conftest.$ac_objext
5802 if { (eval echo "$as_me:5802: \"$ac_compile\"") >&5
5803 (eval $ac_compile) 2>&5
5805 echo "$as_me:5805: \$? = $ac_status" >&5
5806 (exit $ac_status); } &&
5807 { ac_try='test -s conftest.$ac_objext'
5808 { (eval echo "$as_me:5808: \"$ac_try\"") >&5
5811 echo "$as_me:5811: \$? = $ac_status" >&5
5812 (exit $ac_status); }; }; then
5813 cf_with_sysmouse=yes
5815 echo "$as_me: failed program was:" >&5
5816 cat conftest.$ac_ext >&5
5819 rm -f conftest.$ac_objext conftest.$ac_ext
5821 echo "$as_me:5821: result: $cf_with_sysmouse" >&5
5822 echo "${ECHO_T}$cf_with_sysmouse" >&6
5823 test "$cf_with_sysmouse" = yes &&
5824 cat >>confdefs.h <<\EOF
5825 #define USE_SYSMOUSE 1
5830 if test X"$CC_G_OPT" = X"" ; then
5832 test -n "$GCC" && test "x${ac_cv_prog_cc_g}" != xyes && CC_G_OPT=''
5835 if test X"$CXX_G_OPT" = X"" ; then
5837 test -n "$GXX" && test "x${ac_cv_prog_cxx_g}" != xyes && CXX_G_OPT=''
5840 echo "$as_me:5840: checking for default loader flags" >&5
5841 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5842 case $DFT_LWR_MODEL in
5843 (libtool) LD_MODEL='' ;;
5844 (normal) LD_MODEL='' ;;
5845 (debug) LD_MODEL=$CC_G_OPT ;;
5846 (profile) LD_MODEL='-pg';;
5847 (shared) LD_MODEL='' ;;
5849 echo "$as_me:5849: result: $LD_MODEL" >&5
5850 echo "${ECHO_T}$LD_MODEL" >&6
5852 case $DFT_LWR_MODEL in
5855 echo "$as_me:5855: checking if rpath option should be used" >&5
5856 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5858 # Check whether --enable-rpath or --disable-rpath was given.
5859 if test "${enable_rpath+set}" = set; then
5860 enableval="$enable_rpath"
5861 cf_cv_enable_rpath=$enableval
5863 cf_cv_enable_rpath=no
5865 echo "$as_me:5865: result: $cf_cv_enable_rpath" >&5
5866 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
5868 echo "$as_me:5868: checking if shared libraries should be relinked during install" >&5
5869 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5871 # Check whether --enable-relink or --disable-relink was given.
5872 if test "${enable_relink+set}" = set; then
5873 enableval="$enable_relink"
5874 cf_cv_do_relink=$enableval
5878 echo "$as_me:5878: result: $cf_cv_do_relink" >&5
5879 echo "${ECHO_T}$cf_cv_do_relink" >&6
5883 # we will build libraries one-level down.
5887 echo "$as_me:5887: checking for an rpath option" >&5
5888 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
5889 case $cf_cv_system_name in
5891 if test "$GCC" = yes; then
5892 LD_RPATH_OPT="-Wl,-rpath,"
5894 LD_RPATH_OPT="-rpath "
5897 (linux*|gnu*|k*bsd*-gnu|freebsd*)
5898 LD_RPATH_OPT="-Wl,-rpath,"
5900 (openbsd[2-9].*|mirbsd*)
5901 LD_RPATH_OPT="-Wl,-rpath,"
5904 LD_RPATH_OPT="-rpath "
5907 LD_RPATH_OPT="-Wl,-rpath,"
5910 LD_RPATH_OPT="-rpath "
5918 echo "$as_me:5918: result: $LD_RPATH_OPT" >&5
5919 echo "${ECHO_T}$LD_RPATH_OPT" >&6
5921 case "x$LD_RPATH_OPT" in
5923 echo "$as_me:5923: checking if we need a space after rpath option" >&5
5924 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5925 cf_save_LIBS="$LIBS"
5927 cf_add_libs="${LD_RPATH_OPT}$libdir"
5928 # Filter out duplicates - this happens with badly-designed ".pc" files...
5929 for cf_add_1lib in $LIBS
5931 for cf_add_2lib in $cf_add_libs
5933 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5939 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5943 cat >conftest.$ac_ext <<_ACEOF
5944 #line 5944 "configure"
5945 #include "confdefs.h"
5955 rm -f conftest.$ac_objext conftest$ac_exeext
5956 if { (eval echo "$as_me:5956: \"$ac_link\"") >&5
5957 (eval $ac_link) 2>&5
5959 echo "$as_me:5959: \$? = $ac_status" >&5
5960 (exit $ac_status); } &&
5961 { ac_try='test -s conftest$ac_exeext'
5962 { (eval echo "$as_me:5962: \"$ac_try\"") >&5
5965 echo "$as_me:5965: \$? = $ac_status" >&5
5966 (exit $ac_status); }; }; then
5969 echo "$as_me: failed program was:" >&5
5970 cat conftest.$ac_ext >&5
5973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5974 LIBS="$cf_save_LIBS"
5975 echo "$as_me:5975: result: $cf_rpath_space" >&5
5976 echo "${ECHO_T}$cf_rpath_space" >&6
5977 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
5985 INSTALL_LIB="-m 644"
5986 : ${rel_builddir:=.}
5992 cf_cv_do_symlinks=no
5994 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
5996 echo "$as_me:5996: checking if release/abi version should be used for shared libs" >&5
5997 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
5999 # Check whether --with-shlib-version or --without-shlib-version was given.
6000 if test "${with_shlib_version+set}" = set; then
6001 withval="$with_shlib_version"
6002 test -z "$withval" && withval=auto
6005 cf_cv_shlib_version=auto
6008 cf_cv_shlib_version=$withval
6011 echo "$as_me:6011: result: $withval" >&5
6012 echo "${ECHO_T}$withval" >&6
6013 { { echo "$as_me:6013: error: option value must be one of: rel, abi, or auto" >&5
6014 echo "$as_me: error: option value must be one of: rel, abi, or auto" >&2;}
6015 { (exit 1); exit 1; }; }
6020 cf_cv_shlib_version=auto
6022 echo "$as_me:6022: result: $cf_cv_shlib_version" >&5
6023 echo "${ECHO_T}$cf_cv_shlib_version" >&6
6028 # Some less-capable ports of gcc support only -fpic
6030 if test "$GCC" = yes
6032 echo "$as_me:6032: checking which $CC option to use" >&5
6033 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
6034 cf_save_CFLAGS="$CFLAGS"
6035 for CC_SHARED_OPTS in -fPIC -fpic ''
6037 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
6038 cat >conftest.$ac_ext <<_ACEOF
6039 #line 6039 "configure"
6040 #include "confdefs.h"
6050 rm -f conftest.$ac_objext
6051 if { (eval echo "$as_me:6051: \"$ac_compile\"") >&5
6052 (eval $ac_compile) 2>&5
6054 echo "$as_me:6054: \$? = $ac_status" >&5
6055 (exit $ac_status); } &&
6056 { ac_try='test -s conftest.$ac_objext'
6057 { (eval echo "$as_me:6057: \"$ac_try\"") >&5
6060 echo "$as_me:6060: \$? = $ac_status" >&5
6061 (exit $ac_status); }; }; then
6064 echo "$as_me: failed program was:" >&5
6065 cat conftest.$ac_ext >&5
6067 rm -f conftest.$ac_objext conftest.$ac_ext
6069 echo "$as_me:6069: result: $CC_SHARED_OPTS" >&5
6070 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
6071 CFLAGS="$cf_save_CFLAGS"
6074 cf_cv_shlib_version_infix=no
6076 case $cf_cv_system_name in
6077 (aix4.3-9*|aix[5-7]*)
6078 if test "$GCC" = yes; then
6079 CC_SHARED_OPTS='-Wl,-brtl'
6080 MK_SHARED_LIB='${CC} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6082 CC_SHARED_OPTS='-brtl'
6083 # as well as '-qpic=large -G' or perhaps "-bM:SRE -bnoentry -bexpall"
6084 MK_SHARED_LIB='${CC} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6088 MK_SHARED_LIB='${CC} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
6092 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6093 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6094 cf_cv_shlib_version=cygdll
6095 cf_cv_shlib_version_infix=cygdll
6098 cat >mk_shared_lib.sh <<-CF_EOF
6101 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6104 Linking shared library
6105 ** SHARED_LIB \$SHARED_LIB
6106 ** IMPORT_LIB \$IMPORT_LIB
6108 exec \$* -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6110 chmod +x mk_shared_lib.sh
6114 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6115 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6116 cf_cv_shlib_version=msysdll
6117 cf_cv_shlib_version_infix=msysdll
6120 cat >mk_shared_lib.sh <<-CF_EOF
6123 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6126 Linking shared library
6127 ** SHARED_LIB \$SHARED_LIB
6128 ** IMPORT_LIB \$IMPORT_LIB
6130 exec \$* -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6132 chmod +x mk_shared_lib.sh
6135 cf_try_cflags="no-cpp-precomp"
6136 CC_SHARED_OPTS="-dynamic"
6137 MK_SHARED_LIB='${CC} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
6138 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
6139 cf_cv_shlib_version_infix=yes
6140 echo "$as_me:6140: checking if ld -search_paths_first works" >&5
6141 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
6142 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
6143 echo $ECHO_N "(cached) $ECHO_C" >&6
6146 cf_save_LDFLAGS=$LDFLAGS
6147 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6148 cat >conftest.$ac_ext <<_ACEOF
6149 #line 6149 "configure"
6150 #include "confdefs.h"
6160 rm -f conftest.$ac_objext conftest$ac_exeext
6161 if { (eval echo "$as_me:6161: \"$ac_link\"") >&5
6162 (eval $ac_link) 2>&5
6164 echo "$as_me:6164: \$? = $ac_status" >&5
6165 (exit $ac_status); } &&
6166 { ac_try='test -s conftest$ac_exeext'
6167 { (eval echo "$as_me:6167: \"$ac_try\"") >&5
6170 echo "$as_me:6170: \$? = $ac_status" >&5
6171 (exit $ac_status); }; }; then
6172 cf_cv_ldflags_search_paths_first=yes
6174 echo "$as_me: failed program was:" >&5
6175 cat conftest.$ac_ext >&5
6176 cf_cv_ldflags_search_paths_first=no
6178 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6179 LDFLAGS=$cf_save_LDFLAGS
6181 echo "$as_me:6181: result: $cf_cv_ldflags_search_paths_first" >&5
6182 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
6183 if test $cf_cv_ldflags_search_paths_first = yes; then
6184 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6188 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
6189 if test "$GCC" != yes; then
6192 MK_SHARED_LIB='${LD} -b -o $@'
6193 INSTALL_LIB="-m 555"
6196 # (tested with gcc 2.7.2 -- I don't have c89)
6197 if test "$GCC" = yes; then
6198 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
6201 LD_SHARED_OPTS='-Wl,+b,${libdir}'
6203 MK_SHARED_LIB='${LD} +b ${libdir} -b -o $@'
6204 # HP-UX shared libraries must be executable, and should be
6205 # readonly to exploit a quirk in the memory manager.
6206 INSTALL_LIB="-m 555"
6209 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6210 if test "$cf_cv_shlib_version" = rel; then
6211 cf_shared_soname='`basename .${REL_VERSION}`.${ABI_VERSION}'
6213 cf_shared_soname='`basename `'
6216 MK_SHARED_LIB='${CC} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o '
6219 if test "$cf_cv_enable_rpath" = yes ; then
6220 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6222 # tested with IRIX 5.2 and 'cc'.
6223 if test "$GCC" != yes; then
6224 CC_SHARED_OPTS='-KPIC'
6225 MK_SHARED_LIB='${CC} -shared -rdata_shared -soname `basename $@` -o $@'
6227 MK_SHARED_LIB='${CC} -shared -Wl,-soname,`basename $@` -o $@'
6229 cf_cv_rm_so_locs=yes
6231 (linux*|gnu*|k*bsd*-gnu)
6232 if test "$DFT_LWR_MODEL" = "shared" ; then
6233 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6234 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6236 if test "$cf_cv_enable_rpath" = yes ; then
6237 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6240 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6241 if test "$cf_cv_shlib_version" = rel; then
6242 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6244 cf_cv_shared_soname='`basename $@`'
6247 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6250 cf_cv_shlib_version=mingw
6251 cf_cv_shlib_version_infix=mingw
6254 if test "$DFT_LWR_MODEL" = "shared" ; then
6255 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
6256 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6257 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
6260 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6261 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6262 cat >mk_shared_lib.sh <<-CF_EOF
6265 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
6268 Linking shared library
6269 ** SHARED_LIB \$SHARED_LIB
6270 ** IMPORT_LIB \$IMPORT_LIB
6272 exec \$* -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6274 chmod +x mk_shared_lib.sh
6276 (openbsd[2-9].*|mirbsd*)
6277 if test "$DFT_LWR_MODEL" = "shared" ; then
6278 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6279 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6281 if test "$cf_cv_enable_rpath" = yes ; then
6282 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6284 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6286 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6287 if test "$cf_cv_shlib_version" = rel; then
6288 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6290 cf_cv_shared_soname='`basename $@`'
6293 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6295 (nto-qnx*|openbsd*|freebsd[12].*)
6296 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6297 MK_SHARED_LIB='${LD} -Bshareable -o $@'
6298 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6300 (dragonfly*|freebsd*)
6301 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6302 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6303 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6304 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
6305 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6308 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6309 if test "$cf_cv_shlib_version" = rel; then
6310 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6312 cf_cv_shared_soname='`basename $@`'
6315 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6318 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6319 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6320 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6321 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6322 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6323 if test "$cf_cv_shlib_version" = auto; then
6324 if test -f /usr/libexec/ld.elf_so; then
6325 cf_cv_shlib_version=abi
6327 cf_cv_shlib_version=rel
6331 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6332 if test "$cf_cv_shlib_version" = rel; then
6333 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6335 cf_cv_shared_soname='`basename $@`'
6338 MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
6340 MK_SHARED_LIB='${CC} -Wl,-shared -Wl,-Bshareable -o $@'
6344 # tested with OSF/1 V3.2 and 'cc'
6345 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
6346 # link with shared libs).
6347 MK_SHARED_LIB='${LD} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
6350 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
6353 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
6354 if test "$DFT_LWR_MODEL" = "shared" ; then
6355 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6356 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6358 cf_cv_rm_so_locs=yes
6360 (sco3.2v5*) # also uw2* and UW7: hops 13-Apr-98
6361 # tested with osr5.0.5
6362 if test "$GCC" != yes; then
6363 CC_SHARED_OPTS='-belf -KPIC'
6365 MK_SHARED_LIB='${LD} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
6366 if test "$cf_cv_enable_rpath" = yes ; then
6367 # only way is to set LD_RUN_PATH but no switch for it
6370 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6371 LINK_PROGS='LD_RUN_PATH=${libdir}'
6372 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
6375 # tested with SunOS 4.1.1 and gcc 2.7.0
6376 if test "$GCC" != yes; then
6377 CC_SHARED_OPTS='-KPIC'
6379 MK_SHARED_LIB='${LD} -assert pure-text -o $@'
6380 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6383 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
6384 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
6385 if test "$DFT_LWR_MODEL" = "shared" ; then
6386 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
6387 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6389 if test "$cf_cv_enable_rpath" = yes ; then
6390 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
6393 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6394 if test "$cf_cv_shlib_version" = rel; then
6395 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6397 cf_cv_shared_soname='`basename $@`'
6400 if test "$GCC" != yes; then
6401 cf_save_CFLAGS="$CFLAGS"
6402 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
6404 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
6405 cat >conftest.$ac_ext <<_ACEOF
6406 #line 6406 "configure"
6407 #include "confdefs.h"
6417 rm -f conftest.$ac_objext
6418 if { (eval echo "$as_me:6418: \"$ac_compile\"") >&5
6419 (eval $ac_compile) 2>&5
6421 echo "$as_me:6421: \$? = $ac_status" >&5
6422 (exit $ac_status); } &&
6423 { ac_try='test -s conftest.$ac_objext'
6424 { (eval echo "$as_me:6424: \"$ac_try\"") >&5
6427 echo "$as_me:6427: \$? = $ac_status" >&5
6428 (exit $ac_status); }; }; then
6431 echo "$as_me: failed program was:" >&5
6432 cat conftest.$ac_ext >&5
6434 rm -f conftest.$ac_objext conftest.$ac_ext
6436 CFLAGS="$cf_save_CFLAGS"
6437 CC_SHARED_OPTS=$cf_shared_opts
6438 MK_SHARED_LIB='${CC} -dy -G -h '$cf_cv_shared_soname' -o $@'
6440 MK_SHARED_LIB='${CC} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
6443 (sysv5uw7*|unix_sv*)
6444 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
6445 if test "$GCC" != yes; then
6446 CC_SHARED_OPTS='-KPIC'
6448 MK_SHARED_LIB='${LD} -d y -G -o $@'
6451 CC_SHARED_OPTS='unknown'
6452 MK_SHARED_LIB='echo unknown'
6456 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
6457 case "$cf_cv_shlib_version" in
6459 case "$MK_SHARED_LIB" in
6461 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
6464 { echo "$as_me:6464: WARNING: ignored --with-shlib-version" >&5
6465 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
6471 if test -n "$cf_try_cflags"
6473 cat > conftest.$ac_ext <<EOF
6474 #line 6474 "${as_me:-configure}"
6476 int main(int argc, char *argv[])
6479 return (argv[argc-1] == 0) ;
6482 cf_save_CFLAGS="$CFLAGS"
6483 for cf_opt in $cf_try_cflags
6485 CFLAGS="$cf_save_CFLAGS -$cf_opt"
6486 echo "$as_me:6486: checking if CFLAGS option -$cf_opt works" >&5
6487 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
6488 if { (eval echo "$as_me:6488: \"$ac_compile\"") >&5
6489 (eval $ac_compile) 2>&5
6491 echo "$as_me:6491: \$? = $ac_status" >&5
6492 (exit $ac_status); }; then
6493 echo "$as_me:6493: result: yes" >&5
6494 echo "${ECHO_T}yes" >&6
6495 cf_save_CFLAGS="$CFLAGS"
6497 echo "$as_me:6497: result: no" >&5
6498 echo "${ECHO_T}no" >&6
6501 CFLAGS="$cf_save_CFLAGS"
6504 # RPATH_LIST is a colon-separated list of directories
6505 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
6506 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
6508 test $cf_cv_rm_so_locs = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations"
6510 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
6512 echo "${as_me:-configure}:6512: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
6514 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6516 echo "${as_me:-configure}:6516: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6518 for model in $cf_list_models; do
6522 echo "$as_me:6522: checking for additional libtool options" >&5
6523 echo $ECHO_N "checking for additional libtool options... $ECHO_C" >&6
6525 # Check whether --with-libtool-opts or --without-libtool-opts was given.
6526 if test "${with_libtool_opts+set}" = set; then
6527 withval="$with_libtool_opts"
6528 with_libtool_opts=$withval
6530 with_libtool_opts=no
6532 echo "$as_me:6532: result: $with_libtool_opts" >&5
6533 echo "${ECHO_T}$with_libtool_opts" >&6
6535 case .$with_libtool_opts in
6539 LIBTOOL_OPTS="$LIBTOOL_OPTS $with_libtool_opts"
6543 echo "$as_me:6543: checking if exported-symbols file should be used" >&5
6544 echo $ECHO_N "checking if exported-symbols file should be used... $ECHO_C" >&6
6546 # Check whether --with-export-syms or --without-export-syms was given.
6547 if test "${with_export_syms+set}" = set; then
6548 withval="$with_export_syms"
6549 with_export_syms=$withval
6553 if test "x$with_export_syms" = xyes
6555 with_export_syms='${top_srcdir}/package/${PACKAGE}.sym'
6558 echo "$as_me:6558: result: $with_export_syms" >&5
6559 echo "${ECHO_T}$with_export_syms" >&6
6560 if test "x$with_export_syms" != xno
6562 EXPORT_SYMS="-export-symbols $with_export_syms"
6568 if test "$CC_SHARED_OPTS" = "unknown"; then
6569 { { echo "$as_me:6569: error: Shared libraries are not supported in this version" >&5
6570 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
6571 { (exit 1); exit 1; }; }
6573 # workaround for inept transition to PIE vs PIC...
6574 echo "$as_me:6574: checking if current CFLAGS link properly" >&5
6575 echo $ECHO_N "checking if current CFLAGS link properly... $ECHO_C" >&6
6576 cat >conftest.$ac_ext <<_ACEOF
6577 #line 6577 "configure"
6578 #include "confdefs.h"
6583 printf("Hello work\n");
6588 rm -f conftest.$ac_objext conftest$ac_exeext
6589 if { (eval echo "$as_me:6589: \"$ac_link\"") >&5
6590 (eval $ac_link) 2>&5
6592 echo "$as_me:6592: \$? = $ac_status" >&5
6593 (exit $ac_status); } &&
6594 { ac_try='test -s conftest$ac_exeext'
6595 { (eval echo "$as_me:6595: \"$ac_try\"") >&5
6598 echo "$as_me:6598: \$? = $ac_status" >&5
6599 (exit $ac_status); }; }; then
6602 echo "$as_me: failed program was:" >&5
6603 cat conftest.$ac_ext >&5
6606 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6607 echo "$as_me:6607: result: $cf_cflags_work" >&5
6608 echo "${ECHO_T}$cf_cflags_work" >&6
6609 if test "$cf_cflags_work" = no
6611 test -n "$verbose" && echo " try to work around by appending shared-options" 1>&6
6613 echo "${as_me:-configure}:6613: testing try to work around by appending shared-options ..." 1>&5
6615 CFLAGS="$CFLAGS $CC_SHARED_OPTS"
6618 echo "$as_me:6618: checking if versioned-symbols file should be used" >&5
6619 echo $ECHO_N "checking if versioned-symbols file should be used... $ECHO_C" >&6
6621 # Check whether --with-versioned-syms or --without-versioned-syms was given.
6622 if test "${with_versioned_syms+set}" = set; then
6623 withval="$with_versioned_syms"
6624 with_versioned_syms=$withval
6626 with_versioned_syms=no
6628 if test "x$with_versioned_syms" = xyes
6630 with_versioned_syms='${top_srcdir}/package/${PACKAGE}.map'
6633 echo "$as_me:6633: result: $with_versioned_syms" >&5
6634 echo "${ECHO_T}$with_versioned_syms" >&6
6640 if test "x$with_versioned_syms" != xno
6642 RESULTING_SYMS=$with_versioned_syms
6643 case "x$MK_SHARED_LIB" in
6645 VERSIONED_SYMS="-Wl,--version-script,\${RESULTING_SYMS}"
6646 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-Wl,%\\${VERSIONED_SYMS} -Wl,%"`
6647 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6649 echo "${as_me:-configure}:6649: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6653 VERSIONED_SYMS="-Wl,-M,\${RESULTING_SYMS}"
6654 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-dy%\\${VERSIONED_SYMS} -dy%"`
6655 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6657 echo "${as_me:-configure}:6657: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6661 { echo "$as_me:6661: WARNING: this system does not support versioned-symbols" >&5
6662 echo "$as_me: WARNING: this system does not support versioned-symbols" >&2;}
6666 # Linux ld can selectively override scope, e.g., of symbols beginning with
6667 # "_" by first declaring some as global, and then using a wildcard to
6668 # declare the others as local. Some other loaders cannot do this. Check
6669 # by constructing a (very) simple shared library and inspecting its
6671 if test "x$VERSIONED_SYMS" != "x"
6673 echo "$as_me:6673: checking if wildcards can be used to selectively omit symbols" >&5
6674 echo $ECHO_N "checking if wildcards can be used to selectively omit symbols... $ECHO_C" >&6
6680 cat >conftest.ver <<EOF
6709 cat >conftest.$ac_ext <<EOF
6710 #line 6710 "configure"
6711 int _ismissing(void) { return 1; }
6712 int _localf1(void) { return 1; }
6713 int _localf2(void) { return 2; }
6714 int globalf1(void) { return 1; }
6715 int globalf2(void) { return 2; }
6716 int _sublocalf1(void) { return 1; }
6717 int _sublocalf2(void) { return 2; }
6718 int subglobalf1(void) { return 1; }
6719 int subglobalf2(void) { return 2; }
6721 cat >conftest.mk <<EOF
6724 CPPFLAGS=${CPPFLAGS}
6727 VERSIONED_SYMS=${VERSIONED_SYMS}
6728 RESULTING_SYMS=conftest.ver
6729 MK_SHARED_LIB=${MK_SHARED_LIB}
6730 conftest.so: conftest.$ac_cv_objext
6731 \$(MK_SHARED_LIB) conftest.$ac_cv_objext
6734 # compile source, make library
6735 if make -f conftest.mk 2>&5 >/dev/null
6737 # test for missing symbol in either Data or Text section
6738 cf_missing=`nm -P conftest.so 2>&5 |fgrep _ismissing | egrep '[ ][DT][ ]'`
6739 test -n "$cf_missing" && WILDCARD_SYMS=yes
6741 echo "$as_me:6741: result: $WILDCARD_SYMS" >&5
6742 echo "${ECHO_T}$WILDCARD_SYMS" >&6
6751 # pretend that ncurses==ncursesw==ncursest
6752 echo "$as_me:6752: checking if you want to disable library suffixes" >&5
6753 echo $ECHO_N "checking if you want to disable library suffixes... $ECHO_C" >&6
6755 # Check whether --enable-lib-suffixes or --disable-lib-suffixes was given.
6756 if test "${enable_lib_suffixes+set}" = set; then
6757 enableval="$enable_lib_suffixes"
6758 test "$enableval" != no && enableval=yes
6759 if test "$enableval" != "yes" ; then
6760 disable_lib_suffixes=yes
6762 disable_lib_suffixes=no
6766 disable_lib_suffixes=no
6769 echo "$as_me:6769: result: $disable_lib_suffixes" >&5
6770 echo "${ECHO_T}$disable_lib_suffixes" >&6
6772 ### If we're building with rpath, try to link non-standard libs that way too.
6773 if test "$DFT_LWR_MODEL" = "shared"; then
6775 echo "$as_me:6775: checking if rpath-hack should be disabled" >&5
6776 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
6778 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
6779 if test "${enable_rpath_hack+set}" = set; then
6780 enableval="$enable_rpath_hack"
6781 test "$enableval" != no && enableval=yes
6782 if test "$enableval" != "yes" ; then
6783 cf_disable_rpath_hack=yes
6785 cf_disable_rpath_hack=no
6789 cf_disable_rpath_hack=no
6792 echo "$as_me:6792: result: $cf_disable_rpath_hack" >&5
6793 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
6794 if test "$cf_disable_rpath_hack" = no ; then
6796 echo "$as_me:6796: checking for updated LDFLAGS" >&5
6797 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
6798 if test -n "$LD_RPATH_OPT" ; then
6799 echo "$as_me:6799: result: maybe" >&5
6800 echo "${ECHO_T}maybe" >&6
6804 # Extract the first word of "$ac_prog", so it can be a program name with args.
6805 set dummy $ac_prog; ac_word=$2
6806 echo "$as_me:6806: checking for $ac_word" >&5
6807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6808 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
6809 echo $ECHO_N "(cached) $ECHO_C" >&6
6811 if test -n "$cf_ldd_prog"; then
6812 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
6814 ac_save_IFS=$IFS; IFS=$ac_path_separator
6816 for ac_dir in $ac_dummy; do
6818 test -z "$ac_dir" && ac_dir=.
6819 $as_executable_p "$ac_dir/$ac_word" || continue
6820 ac_cv_prog_cf_ldd_prog="$ac_prog"
6821 echo "$as_me:6821: found $ac_dir/$ac_word" >&5
6827 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
6828 if test -n "$cf_ldd_prog"; then
6829 echo "$as_me:6829: result: $cf_ldd_prog" >&5
6830 echo "${ECHO_T}$cf_ldd_prog" >&6
6832 echo "$as_me:6832: result: no" >&5
6833 echo "${ECHO_T}no" >&6
6836 test -n "$cf_ldd_prog" && break
6838 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
6840 cf_rpath_list="/usr/lib /lib"
6841 if test "$cf_ldd_prog" != no
6845 cat >conftest.$ac_ext <<_ACEOF
6846 #line 6846 "configure"
6847 #include "confdefs.h"
6857 rm -f conftest.$ac_objext conftest$ac_exeext
6858 if { (eval echo "$as_me:6858: \"$ac_link\"") >&5
6859 (eval $ac_link) 2>&5
6861 echo "$as_me:6861: \$? = $ac_status" >&5
6862 (exit $ac_status); } &&
6863 { ac_try='test -s conftest$ac_exeext'
6864 { (eval echo "$as_me:6864: \"$ac_try\"") >&5
6867 echo "$as_me:6867: \$? = $ac_status" >&5
6868 (exit $ac_status); }; }; then
6869 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
6870 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
6872 echo "$as_me: failed program was:" >&5
6873 cat conftest.$ac_ext >&5
6875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6877 # If we passed the link-test, but get a "not found" on a given library,
6878 # this could be due to inept reconfiguration of gcc to make it only
6879 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
6880 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
6881 # /usr/local libraries.
6882 if test -n "$cf_rpath_oops"
6884 for cf_rpath_src in $cf_rpath_oops
6886 for cf_rpath_dir in \
6891 if test -f $cf_rpath_dir/lib/$cf_rpath_src
6893 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
6895 echo "${as_me:-configure}:6895: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
6897 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
6905 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
6907 echo "${as_me:-configure}:6907: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
6909 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
6911 echo "${as_me:-configure}:6911: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
6914 for cf_rpath_src in $LDFLAGS
6916 case $cf_rpath_src in
6919 # check if this refers to a directory which we will ignore
6921 if test -n "$cf_rpath_list"
6923 for cf_rpath_item in $cf_rpath_list
6925 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
6933 if test "$cf_rpath_skip" = no
6935 # transform the option
6936 if test "$LD_RPATH_OPT" = "-R " ; then
6937 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
6939 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
6942 # if we have not already added this, add it now
6943 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
6944 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
6946 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
6948 echo "${as_me:-configure}:6948: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
6950 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
6955 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
6957 LDFLAGS=$cf_rpath_dst
6959 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
6961 echo "${as_me:-configure}:6961: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
6963 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
6965 echo "${as_me:-configure}:6965: testing ...checking LIBS $LIBS ..." 1>&5
6968 for cf_rpath_src in $LIBS
6970 case $cf_rpath_src in
6973 # check if this refers to a directory which we will ignore
6975 if test -n "$cf_rpath_list"
6977 for cf_rpath_item in $cf_rpath_list
6979 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
6987 if test "$cf_rpath_skip" = no
6989 # transform the option
6990 if test "$LD_RPATH_OPT" = "-R " ; then
6991 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
6993 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
6996 # if we have not already added this, add it now
6997 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
6998 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
7000 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
7002 echo "${as_me:-configure}:7002: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
7004 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
7009 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
7013 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
7015 echo "${as_me:-configure}:7015: testing ...checked LIBS $LIBS ..." 1>&5
7017 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
7019 echo "${as_me:-configure}:7019: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
7022 echo "$as_me:7022: result: no" >&5
7023 echo "${ECHO_T}no" >&6
7030 ###############################################################################
7032 ### use option --with-extra-suffix to append suffix to headers and libraries
7033 echo "$as_me:7033: checking if you wish to append extra suffix to header/library paths" >&5
7034 echo $ECHO_N "checking if you wish to append extra suffix to header/library paths... $ECHO_C" >&6
7037 # Check whether --with-extra-suffix or --without-extra-suffix was given.
7038 if test "${with_extra_suffix+set}" = set; then
7039 withval="$with_extra_suffix"
7044 EXTRA_SUFFIX=$cf_cv_abi_version
7047 EXTRA_SUFFIX=$withval
7052 echo "$as_me:7052: result: $EXTRA_SUFFIX" >&5
7053 echo "${ECHO_T}$EXTRA_SUFFIX" >&6
7055 ### use option --disable-overwrite to leave out the link to -lcurses
7056 echo "$as_me:7056: checking if you wish to install ncurses overwriting curses" >&5
7057 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
7059 # Check whether --enable-overwrite or --disable-overwrite was given.
7060 if test "${enable_overwrite+set}" = set; then
7061 enableval="$enable_overwrite"
7062 with_overwrite=$enableval
7064 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
7066 echo "$as_me:7066: result: $with_overwrite" >&5
7067 echo "${ECHO_T}$with_overwrite" >&6
7069 echo "$as_me:7069: checking if external terminfo-database is used" >&5
7070 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
7072 # Check whether --enable-database or --disable-database was given.
7073 if test "${enable_database+set}" = set; then
7074 enableval="$enable_database"
7075 use_database=$enableval
7079 echo "$as_me:7079: result: $use_database" >&5
7080 echo "${ECHO_T}$use_database" >&6
7084 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
7087 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
7091 NCURSES_USE_DATABASE=0
7092 if test "$use_database" != no ; then
7093 NCURSES_USE_DATABASE=1
7095 echo "$as_me:7095: checking which terminfo source-file will be installed" >&5
7096 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
7098 # Check whether --with-database or --without-database was given.
7099 if test "${with_database+set}" = set; then
7100 withval="$with_database"
7101 TERMINFO_SRC=$withval
7103 echo "$as_me:7103: result: $TERMINFO_SRC" >&5
7104 echo "${ECHO_T}$TERMINFO_SRC" >&6
7106 echo "$as_me:7106: checking whether to use hashed database instead of directory/tree" >&5
7107 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
7109 # Check whether --with-hashed-db or --without-hashed-db was given.
7110 if test "${with_hashed_db+set}" = set; then
7111 withval="$with_hashed_db"
7116 echo "$as_me:7116: result: $with_hashed_db" >&5
7117 echo "${ECHO_T}$with_hashed_db" >&6
7122 echo "$as_me:7122: checking for list of fallback descriptions" >&5
7123 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
7125 # Check whether --with-fallbacks or --without-fallbacks was given.
7126 if test "${with_fallbacks+set}" = set; then
7127 withval="$with_fallbacks"
7128 with_fallback=$withval
7132 echo "$as_me:7132: result: $with_fallback" >&5
7133 echo "${ECHO_T}$with_fallback" >&6
7134 FALLBACK_LIST=`test "$with_fallback" != no && echo "$with_fallback" | sed -e 's/,/ /g'`
7136 echo "$as_me:7136: checking if you want modern xterm or antique" >&5
7137 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
7139 # Check whether --with-xterm-new or --without-xterm-new was given.
7140 if test "${with_xterm_new+set}" = set; then
7141 withval="$with_xterm_new"
7142 with_xterm_new=$withval
7146 case $with_xterm_new in
7147 (no) with_xterm_new=xterm-old;;
7148 (*) with_xterm_new=xterm-new;;
7150 echo "$as_me:7150: result: $with_xterm_new" >&5
7151 echo "${ECHO_T}$with_xterm_new" >&6
7152 WHICH_XTERM=$with_xterm_new
7154 echo "$as_me:7154: checking if xterm backspace sends BS or DEL" >&5
7155 echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6
7157 # Check whether --with-xterm-kbs or --without-xterm-kbs was given.
7158 if test "${with_xterm_kbs+set}" = set; then
7159 withval="$with_xterm_kbs"
7160 with_xterm_kbs=$withval
7164 case x$with_xterm_kbs in
7165 (xyes|xno|xBS|xbs|x8)
7172 with_xterm_kbs=$withval
7175 echo "$as_me:7175: result: $with_xterm_kbs" >&5
7176 echo "${ECHO_T}$with_xterm_kbs" >&6
7177 XTERM_KBS=$with_xterm_kbs
7180 if test "$use_database" = no ; then
7181 TERMINFO="${datadir}/terminfo"
7185 echo "$as_me:7185: checking for list of terminfo directories" >&5
7186 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
7188 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
7189 if test "${with_terminfo_dirs+set}" = set; then
7190 withval="$with_terminfo_dirs"
7193 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
7195 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
7197 for cf_src_path in $withval
7200 if test "x$prefix" != xNONE; then
7201 cf_path_syntax="$prefix"
7203 cf_path_syntax="$ac_default_prefix"
7206 case ".$cf_src_path" in
7211 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
7213 (.\${*prefix}*|.\${*dir}*)
7214 eval cf_src_path="$cf_src_path"
7215 case ".$cf_src_path" in
7217 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7222 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7225 { { echo "$as_me:7225: error: expected a pathname, not \"$cf_src_path\"" >&5
7226 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
7227 { (exit 1); exit 1; }; }
7231 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
7232 cf_dst_path="${cf_dst_path}${cf_src_path}"
7236 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
7237 # so we have to check/work around. We do prefer the result of "eval"...
7238 eval cf_dst_eval="$cf_dst_path"
7239 case "x$cf_dst_eval" in
7241 TERMINFO_DIRS=$cf_dst_path
7244 TERMINFO_DIRS="$cf_dst_eval"
7248 echo "$as_me:7248: result: $TERMINFO_DIRS" >&5
7249 echo "${ECHO_T}$TERMINFO_DIRS" >&6
7250 test -n "$TERMINFO_DIRS" &&
7251 cat >>confdefs.h <<EOF
7252 #define TERMINFO_DIRS "$TERMINFO_DIRS"
7255 echo "$as_me:7255: checking for default terminfo directory" >&5
7256 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
7258 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
7259 if test "${with_default_terminfo_dir+set}" = set; then
7260 withval="$with_default_terminfo_dir"
7263 withval="${TERMINFO:-${datadir}/terminfo}"
7264 fi; if test -n "${datadir}/terminfo" ; then
7266 if test "x$prefix" != xNONE; then
7267 cf_path_syntax="$prefix"
7269 cf_path_syntax="$ac_default_prefix"
7277 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
7279 (.\${*prefix}*|.\${*dir}*)
7280 eval withval="$withval"
7283 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
7288 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
7291 { { echo "$as_me:7291: error: expected a pathname, not \"$withval\"" >&5
7292 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
7293 { (exit 1); exit 1; }; }
7298 eval TERMINFO="$withval"
7300 echo "$as_me:7300: result: $TERMINFO" >&5
7301 echo "${ECHO_T}$TERMINFO" >&6
7303 cat >>confdefs.h <<EOF
7304 #define TERMINFO "$TERMINFO"
7309 ### use option --disable-big-core to make tic run on small machines
7310 ### We need 4Mb, check if we can allocate 50% more than that.
7311 echo "$as_me:7311: checking if big-core option selected" >&5
7312 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
7314 # Check whether --enable-big-core or --disable-big-core was given.
7315 if test "${enable_big_core+set}" = set; then
7316 enableval="$enable_big_core"
7317 with_big_core=$enableval
7319 if test "$cross_compiling" = yes; then
7322 cat >conftest.$ac_ext <<_ACEOF
7323 #line 7323 "configure"
7324 #include "confdefs.h"
7329 unsigned long n = 6000000L;
7330 char *s = malloc(n);
7333 ${cf_cv_main_return:-return}(s == 0);
7336 rm -f conftest$ac_exeext
7337 if { (eval echo "$as_me:7337: \"$ac_link\"") >&5
7338 (eval $ac_link) 2>&5
7340 echo "$as_me:7340: \$? = $ac_status" >&5
7341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7342 { (eval echo "$as_me:7342: \"$ac_try\"") >&5
7345 echo "$as_me:7345: \$? = $ac_status" >&5
7346 (exit $ac_status); }; }; then
7349 echo "$as_me: program exited with status $ac_status" >&5
7350 echo "$as_me: failed program was:" >&5
7351 cat conftest.$ac_ext >&5
7354 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7357 echo "$as_me:7357: result: $with_big_core" >&5
7358 echo "${ECHO_T}$with_big_core" >&6
7359 test "x$with_big_core" = "xyes" &&
7360 cat >>confdefs.h <<\EOF
7361 #define HAVE_BIG_CORE 1
7364 ### ISO C only guarantees 512-char strings, we have tables which load faster
7365 ### when constructed using "big" strings. More than the C compiler, the awk
7366 ### program is a limit on most vendor UNIX systems. Check that we can build.
7367 echo "$as_me:7367: checking if big-strings option selected" >&5
7368 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
7370 # Check whether --enable-big-strings or --disable-big-strings was given.
7371 if test "${enable_big_strings+set}" = set; then
7372 enableval="$enable_big_strings"
7373 with_big_strings=$enableval
7378 eval with_big_strings=no
7381 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \
7382 | $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
7383 eval with_big_strings=yes
7385 eval with_big_strings=no
7391 echo "$as_me:7391: result: $with_big_strings" >&5
7392 echo "${ECHO_T}$with_big_strings" >&6
7395 test "x$with_big_strings" = "xyes" && USE_BIG_STRINGS=1
7397 ### use option --enable-termcap to compile in the termcap fallback support
7398 echo "$as_me:7398: checking if you want termcap-fallback support" >&5
7399 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
7401 # Check whether --enable-termcap or --disable-termcap was given.
7402 if test "${enable_termcap+set}" = set; then
7403 enableval="$enable_termcap"
7404 with_termcap=$enableval
7408 echo "$as_me:7408: result: $with_termcap" >&5
7409 echo "${ECHO_T}$with_termcap" >&6
7411 NCURSES_USE_TERMCAP=0
7412 if test "x$with_termcap" != "xyes" ; then
7413 if test "$use_database" = no ; then
7414 if test -z "$with_fallback" ; then
7415 { { echo "$as_me:7415: error: You have disabled the database w/o specifying fallbacks" >&5
7416 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
7417 { (exit 1); exit 1; }; }
7421 cat >>confdefs.h <<\EOF
7422 #define PURE_TERMINFO 1
7427 if test "$with_ticlib" != no ; then
7428 { { echo "$as_me:7428: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
7429 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
7430 { (exit 1); exit 1; }; }
7433 NCURSES_USE_TERMCAP=1
7434 echo "$as_me:7434: checking for list of termcap files" >&5
7435 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
7437 # Check whether --with-termpath or --without-termpath was given.
7438 if test "${with_termpath+set}" = set; then
7439 withval="$with_termpath"
7442 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
7444 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
7446 for cf_src_path in $withval
7449 if test "x$prefix" != xNONE; then
7450 cf_path_syntax="$prefix"
7452 cf_path_syntax="$ac_default_prefix"
7455 case ".$cf_src_path" in
7460 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
7462 (.\${*prefix}*|.\${*dir}*)
7463 eval cf_src_path="$cf_src_path"
7464 case ".$cf_src_path" in
7466 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7471 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$cf_path_syntax%`
7474 { { echo "$as_me:7474: error: expected a pathname, not \"$cf_src_path\"" >&5
7475 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
7476 { (exit 1); exit 1; }; }
7480 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
7481 cf_dst_path="${cf_dst_path}${cf_src_path}"
7485 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
7486 # so we have to check/work around. We do prefer the result of "eval"...
7487 eval cf_dst_eval="$cf_dst_path"
7488 case "x$cf_dst_eval" in
7490 TERMPATH=$cf_dst_path
7493 TERMPATH="$cf_dst_eval"
7497 echo "$as_me:7497: result: $TERMPATH" >&5
7498 echo "${ECHO_T}$TERMPATH" >&6
7499 test -n "$TERMPATH" &&
7500 cat >>confdefs.h <<EOF
7501 #define TERMPATH "$TERMPATH"
7504 ### use option --enable-getcap to use a hacked getcap for reading termcaps
7505 echo "$as_me:7505: checking if fast termcap-loader is needed" >&5
7506 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
7508 # Check whether --enable-getcap or --disable-getcap was given.
7509 if test "${enable_getcap+set}" = set; then
7510 enableval="$enable_getcap"
7511 with_getcap=$enableval
7515 echo "$as_me:7515: result: $with_getcap" >&5
7516 echo "${ECHO_T}$with_getcap" >&6
7517 test "x$with_getcap" = "xyes" &&
7518 cat >>confdefs.h <<\EOF
7519 #define USE_GETCAP 1
7522 echo "$as_me:7522: checking if translated termcaps will be cached in ~/.terminfo" >&5
7523 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
7525 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
7526 if test "${enable_getcap_cache+set}" = set; then
7527 enableval="$enable_getcap_cache"
7528 with_getcap_cache=$enableval
7530 with_getcap_cache=no
7532 echo "$as_me:7532: result: $with_getcap_cache" >&5
7533 echo "${ECHO_T}$with_getcap_cache" >&6
7534 test "x$with_getcap_cache" = "xyes" &&
7535 cat >>confdefs.h <<\EOF
7536 #define USE_GETCAP_CACHE 1
7541 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
7542 echo "$as_me:7542: checking if ~/.terminfo is wanted" >&5
7543 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
7545 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
7546 if test "${enable_home_terminfo+set}" = set; then
7547 enableval="$enable_home_terminfo"
7548 with_home_terminfo=$enableval
7550 with_home_terminfo=yes
7552 echo "$as_me:7552: result: $with_home_terminfo" >&5
7553 echo "${ECHO_T}$with_home_terminfo" >&6
7554 test "x$with_home_terminfo" = "xyes" &&
7555 cat >>confdefs.h <<\EOF
7556 #define USE_HOME_TERMINFO 1
7559 echo "$as_me:7559: checking if you want to use restricted environment when running as root" >&5
7560 echo $ECHO_N "checking if you want to use restricted environment when running as root... $ECHO_C" >&6
7562 # Check whether --enable-root-environ or --disable-root-environ was given.
7563 if test "${enable_root_environ+set}" = set; then
7564 enableval="$enable_root_environ"
7565 with_root_environ=$enableval
7567 with_root_environ=yes
7569 echo "$as_me:7569: result: $with_root_environ" >&5
7570 echo "${ECHO_T}$with_root_environ" >&6
7571 test "x$with_root_environ" = xyes &&
7572 cat >>confdefs.h <<\EOF
7573 #define USE_ROOT_ENVIRON 1
7576 ### Use option --enable-symlinks to make tic use symlinks, not hard links
7577 ### to reduce storage requirements for the terminfo database.
7583 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7584 echo "$as_me:7584: checking for $ac_func" >&5
7585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7586 if eval "test \"\${$as_ac_var+set}\" = set"; then
7587 echo $ECHO_N "(cached) $ECHO_C" >&6
7589 cat >conftest.$ac_ext <<_ACEOF
7590 #line 7590 "configure"
7591 #include "confdefs.h"
7592 /* System header to define __stub macros and hopefully few prototypes,
7593 which can conflict with char $ac_func (); below. */
7595 /* Override any gcc2 internal prototype to avoid an error. */
7599 /* We use char because int might match the return type of a gcc2
7600 builtin and then its argument prototype would still apply. */
7607 /* The GNU C library defines this for functions which it implements
7608 to always fail with ENOSYS. Some functions are actually named
7609 something starting with __ and the normal name is an alias. */
7610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7613 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
7620 rm -f conftest.$ac_objext conftest$ac_exeext
7621 if { (eval echo "$as_me:7621: \"$ac_link\"") >&5
7622 (eval $ac_link) 2>&5
7624 echo "$as_me:7624: \$? = $ac_status" >&5
7625 (exit $ac_status); } &&
7626 { ac_try='test -s conftest$ac_exeext'
7627 { (eval echo "$as_me:7627: \"$ac_try\"") >&5
7630 echo "$as_me:7630: \$? = $ac_status" >&5
7631 (exit $ac_status); }; }; then
7632 eval "$as_ac_var=yes"
7634 echo "$as_me: failed program was:" >&5
7635 cat conftest.$ac_ext >&5
7636 eval "$as_ac_var=no"
7638 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7640 echo "$as_me:7640: result: `eval echo '${'$as_ac_var'}'`" >&5
7641 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7642 if test `eval echo '${'$as_ac_var'}'` = yes; then
7643 cat >>confdefs.h <<EOF
7644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7650 if test "$cross_compiling" = yes ; then
7656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7657 echo "$as_me:7657: checking for $ac_func" >&5
7658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7659 if eval "test \"\${$as_ac_var+set}\" = set"; then
7660 echo $ECHO_N "(cached) $ECHO_C" >&6
7662 cat >conftest.$ac_ext <<_ACEOF
7663 #line 7663 "configure"
7664 #include "confdefs.h"
7665 /* System header to define __stub macros and hopefully few prototypes,
7666 which can conflict with char $ac_func (); below. */
7668 /* Override any gcc2 internal prototype to avoid an error. */
7672 /* We use char because int might match the return type of a gcc2
7673 builtin and then its argument prototype would still apply. */
7680 /* The GNU C library defines this for functions which it implements
7681 to always fail with ENOSYS. Some functions are actually named
7682 something starting with __ and the normal name is an alias. */
7683 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7686 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
7693 rm -f conftest.$ac_objext conftest$ac_exeext
7694 if { (eval echo "$as_me:7694: \"$ac_link\"") >&5
7695 (eval $ac_link) 2>&5
7697 echo "$as_me:7697: \$? = $ac_status" >&5
7698 (exit $ac_status); } &&
7699 { ac_try='test -s conftest$ac_exeext'
7700 { (eval echo "$as_me:7700: \"$ac_try\"") >&5
7703 echo "$as_me:7703: \$? = $ac_status" >&5
7704 (exit $ac_status); }; }; then
7705 eval "$as_ac_var=yes"
7707 echo "$as_me: failed program was:" >&5
7708 cat conftest.$ac_ext >&5
7709 eval "$as_ac_var=no"
7711 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7713 echo "$as_me:7713: result: `eval echo '${'$as_ac_var'}'`" >&5
7714 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7715 if test `eval echo '${'$as_ac_var'}'` = yes; then
7716 cat >>confdefs.h <<EOF
7717 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7724 echo "$as_me:7724: checking if link/symlink functions work" >&5
7725 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
7726 if test "${cf_cv_link_funcs+set}" = set; then
7727 echo $ECHO_N "(cached) $ECHO_C" >&6
7731 for cf_func in link symlink ; do
7732 if test "$cross_compiling" = yes; then
7734 eval 'ac_cv_func_'$cf_func'=error'
7736 cat >conftest.$ac_ext <<_ACEOF
7737 #line 7737 "configure"
7738 #include "confdefs.h"
7740 #include <sys/types.h>
7741 #include <sys/stat.h>
7742 #ifdef HAVE_UNISTD_H
7748 char *src = "config.log";
7749 char *dst = "conftest.chk";
7754 fail = ($cf_func("config.log", "conftest.chk") < 0)
7755 || (stat(dst, &dst_sb) < 0)
7756 || (dst_sb.st_mtime != src_sb.st_mtime);
7762 ${cf_cv_main_return:-return} (fail);
7766 rm -f conftest$ac_exeext
7767 if { (eval echo "$as_me:7767: \"$ac_link\"") >&5
7768 (eval $ac_link) 2>&5
7770 echo "$as_me:7770: \$? = $ac_status" >&5
7771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7772 { (eval echo "$as_me:7772: \"$ac_try\"") >&5
7775 echo "$as_me:7775: \$? = $ac_status" >&5
7776 (exit $ac_status); }; }; then
7778 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
7779 eval 'ac_cv_func_'$cf_func'=yes'
7781 echo "$as_me: program exited with status $ac_status" >&5
7782 echo "$as_me: failed program was:" >&5
7783 cat conftest.$ac_ext >&5
7785 eval 'ac_cv_func_'$cf_func'=no'
7787 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7790 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
7793 echo "$as_me:7793: result: $cf_cv_link_funcs" >&5
7794 echo "${ECHO_T}$cf_cv_link_funcs" >&6
7795 test "$ac_cv_func_link" = yes &&
7796 cat >>confdefs.h <<\EOF
7800 test "$ac_cv_func_symlink" = yes &&
7801 cat >>confdefs.h <<\EOF
7802 #define HAVE_SYMLINK 1
7810 # soft links (symbolic links) are useful for some systems where hard links do
7811 # not work, or to make it simpler to copy terminfo trees around.
7812 if test "x$ac_cv_func_symlink" = xyes ; then
7813 echo "$as_me:7813: checking if tic should use symbolic links" >&5
7814 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
7816 # Check whether --enable-symlinks or --disable-symlinks was given.
7817 if test "${enable_symlinks+set}" = set; then
7818 enableval="$enable_symlinks"
7819 with_symlinks=$enableval
7823 echo "$as_me:7823: result: $with_symlinks" >&5
7824 echo "${ECHO_T}$with_symlinks" >&6
7827 # If we have hard links and did not choose to use soft links instead, there is
7828 # no reason to make this choice optional - use the hard links.
7829 if test "$with_symlinks" = no ; then
7830 echo "$as_me:7830: checking if tic should use hard links" >&5
7831 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
7832 if test "x$ac_cv_func_link" = xyes ; then
7837 echo "$as_me:7837: result: $with_links" >&5
7838 echo "${ECHO_T}$with_links" >&6
7841 test "x$with_links" = xyes &&
7842 cat >>confdefs.h <<\EOF
7846 test "x$with_symlinks" = xyes &&
7847 cat >>confdefs.h <<\EOF
7848 #define USE_SYMLINKS 1
7851 ### use option --enable-broken-linker to force on use of broken-linker support
7852 echo "$as_me:7852: checking if you want broken-linker support code" >&5
7853 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
7855 # Check whether --enable-broken_linker or --disable-broken_linker was given.
7856 if test "${enable_broken_linker+set}" = set; then
7857 enableval="$enable_broken_linker"
7858 with_broken_linker=$enableval
7860 with_broken_linker=${BROKEN_LINKER:-no}
7862 echo "$as_me:7862: result: $with_broken_linker" >&5
7863 echo "${ECHO_T}$with_broken_linker" >&6
7866 if test "x$with_broken_linker" = xyes ; then
7868 cat >>confdefs.h <<\EOF
7869 #define BROKEN_LINKER 1
7873 elif test "$DFT_LWR_MODEL" = shared ; then
7874 case $cf_cv_system_name in
7877 cat >>confdefs.h <<\EOF
7878 #define BROKEN_LINKER 1
7882 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
7884 echo "${as_me:-configure}:7884: testing cygwin linker is broken anyway ..." 1>&5
7890 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
7891 echo "$as_me:7891: checking if tputs should process BSD-style prefix padding" >&5
7892 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
7894 # Check whether --enable-bsdpad or --disable-bsdpad was given.
7895 if test "${enable_bsdpad+set}" = set; then
7896 enableval="$enable_bsdpad"
7897 with_bsdpad=$enableval
7901 echo "$as_me:7901: result: $with_bsdpad" >&5
7902 echo "${ECHO_T}$with_bsdpad" >&6
7903 test "x$with_bsdpad" = xyes &&
7904 cat >>confdefs.h <<\EOF
7908 ### use option --enable-widec to turn on use of wide-character support
7917 # Check to define _XOPEN_SOURCE "automatically"
7918 CPPFLAGS_before_XOPEN="$CPPFLAGS"
7921 cf_POSIX_C_SOURCE=199506L
7926 cf_xopen_source="-D_ALL_SOURCE"
7932 cf_xopen_source="-D_APPLE_C_SOURCE"
7935 cf_xopen_source="-D_DARWIN_C_SOURCE"
7938 (freebsd*|dragonfly*)
7939 # 5.x headers associate
7940 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
7941 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
7942 cf_POSIX_C_SOURCE=200112L
7944 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
7947 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
7950 cf_xopen_source="-D_HPUX_SOURCE"
7953 cf_xopen_source="-D_SGI_SOURCE"
7956 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
7958 echo "$as_me:7958: checking if we must define _GNU_SOURCE" >&5
7959 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
7960 if test "${cf_cv_gnu_source+set}" = set; then
7961 echo $ECHO_N "(cached) $ECHO_C" >&6
7964 cat >conftest.$ac_ext <<_ACEOF
7965 #line 7965 "configure"
7966 #include "confdefs.h"
7967 #include <sys/types.h>
7972 #ifndef _XOPEN_SOURCE
7979 rm -f conftest.$ac_objext
7980 if { (eval echo "$as_me:7980: \"$ac_compile\"") >&5
7981 (eval $ac_compile) 2>&5
7983 echo "$as_me:7983: \$? = $ac_status" >&5
7984 (exit $ac_status); } &&
7985 { ac_try='test -s conftest.$ac_objext'
7986 { (eval echo "$as_me:7986: \"$ac_try\"") >&5
7989 echo "$as_me:7989: \$? = $ac_status" >&5
7990 (exit $ac_status); }; }; then
7993 echo "$as_me: failed program was:" >&5
7994 cat conftest.$ac_ext >&5
7996 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7997 cat >conftest.$ac_ext <<_ACEOF
7998 #line 7998 "configure"
7999 #include "confdefs.h"
8000 #include <sys/types.h>
8005 #ifdef _XOPEN_SOURCE
8012 rm -f conftest.$ac_objext
8013 if { (eval echo "$as_me:8013: \"$ac_compile\"") >&5
8014 (eval $ac_compile) 2>&5
8016 echo "$as_me:8016: \$? = $ac_status" >&5
8017 (exit $ac_status); } &&
8018 { ac_try='test -s conftest.$ac_objext'
8019 { (eval echo "$as_me:8019: \"$ac_try\"") >&5
8022 echo "$as_me:8022: \$? = $ac_status" >&5
8023 (exit $ac_status); }; }; then
8026 echo "$as_me: failed program was:" >&5
8027 cat conftest.$ac_ext >&5
8028 cf_cv_gnu_source=yes
8030 rm -f conftest.$ac_objext conftest.$ac_ext
8034 rm -f conftest.$ac_objext conftest.$ac_ext
8037 echo "$as_me:8037: result: $cf_cv_gnu_source" >&5
8038 echo "${ECHO_T}$cf_cv_gnu_source" >&6
8040 if test "$cf_cv_gnu_source" = yes
8042 echo "$as_me:8042: checking if we should also define _DEFAULT_SOURCE" >&5
8043 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
8044 if test "${cf_cv_default_source+set}" = set; then
8045 echo $ECHO_N "(cached) $ECHO_C" >&6
8048 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
8049 cat >conftest.$ac_ext <<_ACEOF
8050 #line 8050 "configure"
8051 #include "confdefs.h"
8052 #include <sys/types.h>
8057 #ifdef _DEFAULT_SOURCE
8064 rm -f conftest.$ac_objext
8065 if { (eval echo "$as_me:8065: \"$ac_compile\"") >&5
8066 (eval $ac_compile) 2>&5
8068 echo "$as_me:8068: \$? = $ac_status" >&5
8069 (exit $ac_status); } &&
8070 { ac_try='test -s conftest.$ac_objext'
8071 { (eval echo "$as_me:8071: \"$ac_try\"") >&5
8074 echo "$as_me:8074: \$? = $ac_status" >&5
8075 (exit $ac_status); }; }; then
8076 cf_cv_default_source=no
8078 echo "$as_me: failed program was:" >&5
8079 cat conftest.$ac_ext >&5
8080 cf_cv_default_source=yes
8082 rm -f conftest.$ac_objext conftest.$ac_ext
8085 echo "$as_me:8085: result: $cf_cv_default_source" >&5
8086 echo "${ECHO_T}$cf_cv_default_source" >&6
8087 test "$cf_cv_default_source" = yes && CPPFLAGS="$CPPFLAGS -D_DEFAULT_SOURCE"
8092 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
8095 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
8098 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
8100 cf_save_CFLAGS="$CFLAGS"
8101 cf_save_CPPFLAGS="$CPPFLAGS"
8103 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
8104 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8105 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8107 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
8108 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8109 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8111 echo "$as_me:8111: checking if we should define _POSIX_C_SOURCE" >&5
8112 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
8113 if test "${cf_cv_posix_c_source+set}" = set; then
8114 echo $ECHO_N "(cached) $ECHO_C" >&6
8117 echo "${as_me:-configure}:8117: testing if the symbol is already defined go no further ..." 1>&5
8119 cat >conftest.$ac_ext <<_ACEOF
8120 #line 8120 "configure"
8121 #include "confdefs.h"
8122 #include <sys/types.h>
8127 #ifndef _POSIX_C_SOURCE
8134 rm -f conftest.$ac_objext
8135 if { (eval echo "$as_me:8135: \"$ac_compile\"") >&5
8136 (eval $ac_compile) 2>&5
8138 echo "$as_me:8138: \$? = $ac_status" >&5
8139 (exit $ac_status); } &&
8140 { ac_try='test -s conftest.$ac_objext'
8141 { (eval echo "$as_me:8141: \"$ac_try\"") >&5
8144 echo "$as_me:8144: \$? = $ac_status" >&5
8145 (exit $ac_status); }; }; then
8146 cf_cv_posix_c_source=no
8148 echo "$as_me: failed program was:" >&5
8149 cat conftest.$ac_ext >&5
8150 cf_want_posix_source=no
8151 case .$cf_POSIX_C_SOURCE in
8153 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8156 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8157 cf_want_posix_source=yes
8160 cf_want_posix_source=yes
8163 if test "$cf_want_posix_source" = yes ; then
8164 cat >conftest.$ac_ext <<_ACEOF
8165 #line 8165 "configure"
8166 #include "confdefs.h"
8167 #include <sys/types.h>
8172 #ifdef _POSIX_SOURCE
8179 rm -f conftest.$ac_objext
8180 if { (eval echo "$as_me:8180: \"$ac_compile\"") >&5
8181 (eval $ac_compile) 2>&5
8183 echo "$as_me:8183: \$? = $ac_status" >&5
8184 (exit $ac_status); } &&
8185 { ac_try='test -s conftest.$ac_objext'
8186 { (eval echo "$as_me:8186: \"$ac_try\"") >&5
8189 echo "$as_me:8189: \$? = $ac_status" >&5
8190 (exit $ac_status); }; }; then
8193 echo "$as_me: failed program was:" >&5
8194 cat conftest.$ac_ext >&5
8195 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
8197 rm -f conftest.$ac_objext conftest.$ac_ext
8200 echo "${as_me:-configure}:8200: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
8202 CFLAGS="$cf_trim_CFLAGS"
8203 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
8205 echo "${as_me:-configure}:8205: testing if the second compile does not leave our definition intact error ..." 1>&5
8207 cat >conftest.$ac_ext <<_ACEOF
8208 #line 8208 "configure"
8209 #include "confdefs.h"
8210 #include <sys/types.h>
8215 #ifndef _POSIX_C_SOURCE
8222 rm -f conftest.$ac_objext
8223 if { (eval echo "$as_me:8223: \"$ac_compile\"") >&5
8224 (eval $ac_compile) 2>&5
8226 echo "$as_me:8226: \$? = $ac_status" >&5
8227 (exit $ac_status); } &&
8228 { ac_try='test -s conftest.$ac_objext'
8229 { (eval echo "$as_me:8229: \"$ac_try\"") >&5
8232 echo "$as_me:8232: \$? = $ac_status" >&5
8233 (exit $ac_status); }; }; then
8236 echo "$as_me: failed program was:" >&5
8237 cat conftest.$ac_ext >&5
8238 cf_cv_posix_c_source=no
8240 rm -f conftest.$ac_objext conftest.$ac_ext
8241 CFLAGS="$cf_save_CFLAGS"
8242 CPPFLAGS="$cf_save_CPPFLAGS"
8245 rm -f conftest.$ac_objext conftest.$ac_ext
8248 echo "$as_me:8248: result: $cf_cv_posix_c_source" >&5
8249 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
8251 if test "$cf_cv_posix_c_source" != no ; then
8252 CFLAGS="$cf_trim_CFLAGS"
8253 CPPFLAGS="$cf_trim_CPPFLAGS"
8258 cf_new_extra_cppflags=
8260 for cf_add_cflags in $cf_cv_posix_c_source
8262 case $cf_fix_cppflags in
8264 case $cf_add_cflags in
8265 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8266 case $cf_add_cflags in
8268 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8270 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8271 && test -z "${cf_tst_cflags}" \
8272 && cf_fix_cppflags=yes
8274 if test $cf_fix_cppflags = yes ; then
8275 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8277 elif test "${cf_tst_cflags}" = "\"'" ; then
8278 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8287 case $cf_add_cflags in
8289 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8291 CPPFLAGS=`echo "$CPPFLAGS" | \
8292 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8293 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8297 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8302 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8307 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8309 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8311 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8312 && test -z "${cf_tst_cflags}" \
8313 && cf_fix_cppflags=no
8318 if test -n "$cf_new_cflags" ; then
8320 CFLAGS="$CFLAGS $cf_new_cflags"
8323 if test -n "$cf_new_cppflags" ; then
8325 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8328 if test -n "$cf_new_extra_cppflags" ; then
8330 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8337 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
8340 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
8341 cf_xopen_source="-D_BSD_SOURCE"
8345 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
8348 cf_xopen_source="-D_OSF_SOURCE"
8351 cf_xopen_source="-D_QNX_SOURCE"
8354 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
8357 cf_xopen_source="-D__EXTENSIONS__"
8358 cf_cv_xopen_source=broken
8360 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
8366 echo "$as_me:8366: checking if we should define _XOPEN_SOURCE" >&5
8367 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
8368 if test "${cf_cv_xopen_source+set}" = set; then
8369 echo $ECHO_N "(cached) $ECHO_C" >&6
8372 cat >conftest.$ac_ext <<_ACEOF
8373 #line 8373 "configure"
8374 #include "confdefs.h"
8378 #include <sys/types.h>
8384 #ifndef _XOPEN_SOURCE
8391 rm -f conftest.$ac_objext
8392 if { (eval echo "$as_me:8392: \"$ac_compile\"") >&5
8393 (eval $ac_compile) 2>&5
8395 echo "$as_me:8395: \$? = $ac_status" >&5
8396 (exit $ac_status); } &&
8397 { ac_try='test -s conftest.$ac_objext'
8398 { (eval echo "$as_me:8398: \"$ac_try\"") >&5
8401 echo "$as_me:8401: \$? = $ac_status" >&5
8402 (exit $ac_status); }; }; then
8403 cf_cv_xopen_source=no
8405 echo "$as_me: failed program was:" >&5
8406 cat conftest.$ac_ext >&5
8408 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
8409 cat >conftest.$ac_ext <<_ACEOF
8410 #line 8410 "configure"
8411 #include "confdefs.h"
8415 #include <sys/types.h>
8421 #ifdef _XOPEN_SOURCE
8428 rm -f conftest.$ac_objext
8429 if { (eval echo "$as_me:8429: \"$ac_compile\"") >&5
8430 (eval $ac_compile) 2>&5
8432 echo "$as_me:8432: \$? = $ac_status" >&5
8433 (exit $ac_status); } &&
8434 { ac_try='test -s conftest.$ac_objext'
8435 { (eval echo "$as_me:8435: \"$ac_try\"") >&5
8438 echo "$as_me:8438: \$? = $ac_status" >&5
8439 (exit $ac_status); }; }; then
8440 cf_cv_xopen_source=no
8442 echo "$as_me: failed program was:" >&5
8443 cat conftest.$ac_ext >&5
8444 cf_cv_xopen_source=$cf_XOPEN_SOURCE
8446 rm -f conftest.$ac_objext conftest.$ac_ext
8450 rm -f conftest.$ac_objext conftest.$ac_ext
8453 echo "$as_me:8453: result: $cf_cv_xopen_source" >&5
8454 echo "${ECHO_T}$cf_cv_xopen_source" >&6
8456 if test "$cf_cv_xopen_source" != no ; then
8458 CFLAGS=`echo "$CFLAGS" | \
8459 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8460 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8462 CPPFLAGS=`echo "$CPPFLAGS" | \
8463 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8464 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
8466 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
8471 cf_new_extra_cppflags=
8473 for cf_add_cflags in $cf_temp_xopen_source
8475 case $cf_fix_cppflags in
8477 case $cf_add_cflags in
8478 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8479 case $cf_add_cflags in
8481 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8483 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8484 && test -z "${cf_tst_cflags}" \
8485 && cf_fix_cppflags=yes
8487 if test $cf_fix_cppflags = yes ; then
8488 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8490 elif test "${cf_tst_cflags}" = "\"'" ; then
8491 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8500 case $cf_add_cflags in
8502 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8504 CPPFLAGS=`echo "$CPPFLAGS" | \
8505 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8506 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8510 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8515 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8520 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8522 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8524 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8525 && test -z "${cf_tst_cflags}" \
8526 && cf_fix_cppflags=no
8531 if test -n "$cf_new_cflags" ; then
8533 CFLAGS="$CFLAGS $cf_new_cflags"
8536 if test -n "$cf_new_cppflags" ; then
8538 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8541 if test -n "$cf_new_extra_cppflags" ; then
8543 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8548 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
8550 cf_save_CFLAGS="$CFLAGS"
8551 cf_save_CPPFLAGS="$CPPFLAGS"
8553 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
8554 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8555 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8557 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
8558 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
8559 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
8561 echo "$as_me:8561: checking if we should define _POSIX_C_SOURCE" >&5
8562 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
8563 if test "${cf_cv_posix_c_source+set}" = set; then
8564 echo $ECHO_N "(cached) $ECHO_C" >&6
8567 echo "${as_me:-configure}:8567: testing if the symbol is already defined go no further ..." 1>&5
8569 cat >conftest.$ac_ext <<_ACEOF
8570 #line 8570 "configure"
8571 #include "confdefs.h"
8572 #include <sys/types.h>
8577 #ifndef _POSIX_C_SOURCE
8584 rm -f conftest.$ac_objext
8585 if { (eval echo "$as_me:8585: \"$ac_compile\"") >&5
8586 (eval $ac_compile) 2>&5
8588 echo "$as_me:8588: \$? = $ac_status" >&5
8589 (exit $ac_status); } &&
8590 { ac_try='test -s conftest.$ac_objext'
8591 { (eval echo "$as_me:8591: \"$ac_try\"") >&5
8594 echo "$as_me:8594: \$? = $ac_status" >&5
8595 (exit $ac_status); }; }; then
8596 cf_cv_posix_c_source=no
8598 echo "$as_me: failed program was:" >&5
8599 cat conftest.$ac_ext >&5
8600 cf_want_posix_source=no
8601 case .$cf_POSIX_C_SOURCE in
8603 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8606 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
8607 cf_want_posix_source=yes
8610 cf_want_posix_source=yes
8613 if test "$cf_want_posix_source" = yes ; then
8614 cat >conftest.$ac_ext <<_ACEOF
8615 #line 8615 "configure"
8616 #include "confdefs.h"
8617 #include <sys/types.h>
8622 #ifdef _POSIX_SOURCE
8629 rm -f conftest.$ac_objext
8630 if { (eval echo "$as_me:8630: \"$ac_compile\"") >&5
8631 (eval $ac_compile) 2>&5
8633 echo "$as_me:8633: \$? = $ac_status" >&5
8634 (exit $ac_status); } &&
8635 { ac_try='test -s conftest.$ac_objext'
8636 { (eval echo "$as_me:8636: \"$ac_try\"") >&5
8639 echo "$as_me:8639: \$? = $ac_status" >&5
8640 (exit $ac_status); }; }; then
8643 echo "$as_me: failed program was:" >&5
8644 cat conftest.$ac_ext >&5
8645 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
8647 rm -f conftest.$ac_objext conftest.$ac_ext
8650 echo "${as_me:-configure}:8650: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
8652 CFLAGS="$cf_trim_CFLAGS"
8653 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
8655 echo "${as_me:-configure}:8655: testing if the second compile does not leave our definition intact error ..." 1>&5
8657 cat >conftest.$ac_ext <<_ACEOF
8658 #line 8658 "configure"
8659 #include "confdefs.h"
8660 #include <sys/types.h>
8665 #ifndef _POSIX_C_SOURCE
8672 rm -f conftest.$ac_objext
8673 if { (eval echo "$as_me:8673: \"$ac_compile\"") >&5
8674 (eval $ac_compile) 2>&5
8676 echo "$as_me:8676: \$? = $ac_status" >&5
8677 (exit $ac_status); } &&
8678 { ac_try='test -s conftest.$ac_objext'
8679 { (eval echo "$as_me:8679: \"$ac_try\"") >&5
8682 echo "$as_me:8682: \$? = $ac_status" >&5
8683 (exit $ac_status); }; }; then
8686 echo "$as_me: failed program was:" >&5
8687 cat conftest.$ac_ext >&5
8688 cf_cv_posix_c_source=no
8690 rm -f conftest.$ac_objext conftest.$ac_ext
8691 CFLAGS="$cf_save_CFLAGS"
8692 CPPFLAGS="$cf_save_CPPFLAGS"
8695 rm -f conftest.$ac_objext conftest.$ac_ext
8698 echo "$as_me:8698: result: $cf_cv_posix_c_source" >&5
8699 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
8701 if test "$cf_cv_posix_c_source" != no ; then
8702 CFLAGS="$cf_trim_CFLAGS"
8703 CPPFLAGS="$cf_trim_CPPFLAGS"
8708 cf_new_extra_cppflags=
8710 for cf_add_cflags in $cf_cv_posix_c_source
8712 case $cf_fix_cppflags in
8714 case $cf_add_cflags in
8715 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8716 case $cf_add_cflags in
8718 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8720 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8721 && test -z "${cf_tst_cflags}" \
8722 && cf_fix_cppflags=yes
8724 if test $cf_fix_cppflags = yes ; then
8725 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8727 elif test "${cf_tst_cflags}" = "\"'" ; then
8728 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8737 case $cf_add_cflags in
8739 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8741 CPPFLAGS=`echo "$CPPFLAGS" | \
8742 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8743 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8747 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8752 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8757 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8759 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8761 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8762 && test -z "${cf_tst_cflags}" \
8763 && cf_fix_cppflags=no
8768 if test -n "$cf_new_cflags" ; then
8770 CFLAGS="$CFLAGS $cf_new_cflags"
8773 if test -n "$cf_new_cppflags" ; then
8775 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8778 if test -n "$cf_new_extra_cppflags" ; then
8780 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8788 if test -n "$cf_xopen_source" ; then
8793 cf_new_extra_cppflags=
8795 for cf_add_cflags in $cf_xopen_source
8797 case $cf_fix_cppflags in
8799 case $cf_add_cflags in
8800 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8801 case $cf_add_cflags in
8803 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8805 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8806 && test -z "${cf_tst_cflags}" \
8807 && cf_fix_cppflags=yes
8809 if test $cf_fix_cppflags = yes ; then
8810 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8812 elif test "${cf_tst_cflags}" = "\"'" ; then
8813 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8822 case $cf_add_cflags in
8824 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8826 CPPFLAGS=`echo "$CPPFLAGS" | \
8827 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8828 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8832 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
8837 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
8842 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
8844 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8846 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8847 && test -z "${cf_tst_cflags}" \
8848 && cf_fix_cppflags=no
8853 if test -n "$cf_new_cflags" ; then
8854 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
8856 echo "${as_me:-configure}:8856: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
8858 CFLAGS="$CFLAGS $cf_new_cflags"
8861 if test -n "$cf_new_cppflags" ; then
8862 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
8864 echo "${as_me:-configure}:8864: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
8866 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
8869 if test -n "$cf_new_extra_cppflags" ; then
8870 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
8872 echo "${as_me:-configure}:8872: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
8874 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
8879 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
8880 echo "$as_me:8880: checking if _XOPEN_SOURCE really is set" >&5
8881 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
8882 cat >conftest.$ac_ext <<_ACEOF
8883 #line 8883 "configure"
8884 #include "confdefs.h"
8890 #ifndef _XOPEN_SOURCE
8897 rm -f conftest.$ac_objext
8898 if { (eval echo "$as_me:8898: \"$ac_compile\"") >&5
8899 (eval $ac_compile) 2>&5
8901 echo "$as_me:8901: \$? = $ac_status" >&5
8902 (exit $ac_status); } &&
8903 { ac_try='test -s conftest.$ac_objext'
8904 { (eval echo "$as_me:8904: \"$ac_try\"") >&5
8907 echo "$as_me:8907: \$? = $ac_status" >&5
8908 (exit $ac_status); }; }; then
8909 cf_XOPEN_SOURCE_set=yes
8911 echo "$as_me: failed program was:" >&5
8912 cat conftest.$ac_ext >&5
8913 cf_XOPEN_SOURCE_set=no
8915 rm -f conftest.$ac_objext conftest.$ac_ext
8916 echo "$as_me:8916: result: $cf_XOPEN_SOURCE_set" >&5
8917 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
8918 if test $cf_XOPEN_SOURCE_set = yes
8920 cat >conftest.$ac_ext <<_ACEOF
8921 #line 8921 "configure"
8922 #include "confdefs.h"
8928 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
8935 rm -f conftest.$ac_objext
8936 if { (eval echo "$as_me:8936: \"$ac_compile\"") >&5
8937 (eval $ac_compile) 2>&5
8939 echo "$as_me:8939: \$? = $ac_status" >&5
8940 (exit $ac_status); } &&
8941 { ac_try='test -s conftest.$ac_objext'
8942 { (eval echo "$as_me:8942: \"$ac_try\"") >&5
8945 echo "$as_me:8945: \$? = $ac_status" >&5
8946 (exit $ac_status); }; }; then
8947 cf_XOPEN_SOURCE_set_ok=yes
8949 echo "$as_me: failed program was:" >&5
8950 cat conftest.$ac_ext >&5
8951 cf_XOPEN_SOURCE_set_ok=no
8953 rm -f conftest.$ac_objext conftest.$ac_ext
8954 if test $cf_XOPEN_SOURCE_set_ok = no
8956 { echo "$as_me:8956: WARNING: _XOPEN_SOURCE is lower than requested" >&5
8957 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
8961 echo "$as_me:8961: checking if we should define _XOPEN_SOURCE" >&5
8962 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
8963 if test "${cf_cv_xopen_source+set}" = set; then
8964 echo $ECHO_N "(cached) $ECHO_C" >&6
8967 cat >conftest.$ac_ext <<_ACEOF
8968 #line 8968 "configure"
8969 #include "confdefs.h"
8973 #include <sys/types.h>
8979 #ifndef _XOPEN_SOURCE
8986 rm -f conftest.$ac_objext
8987 if { (eval echo "$as_me:8987: \"$ac_compile\"") >&5
8988 (eval $ac_compile) 2>&5
8990 echo "$as_me:8990: \$? = $ac_status" >&5
8991 (exit $ac_status); } &&
8992 { ac_try='test -s conftest.$ac_objext'
8993 { (eval echo "$as_me:8993: \"$ac_try\"") >&5
8996 echo "$as_me:8996: \$? = $ac_status" >&5
8997 (exit $ac_status); }; }; then
8998 cf_cv_xopen_source=no
9000 echo "$as_me: failed program was:" >&5
9001 cat conftest.$ac_ext >&5
9003 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
9004 cat >conftest.$ac_ext <<_ACEOF
9005 #line 9005 "configure"
9006 #include "confdefs.h"
9010 #include <sys/types.h>
9016 #ifdef _XOPEN_SOURCE
9023 rm -f conftest.$ac_objext
9024 if { (eval echo "$as_me:9024: \"$ac_compile\"") >&5
9025 (eval $ac_compile) 2>&5
9027 echo "$as_me:9027: \$? = $ac_status" >&5
9028 (exit $ac_status); } &&
9029 { ac_try='test -s conftest.$ac_objext'
9030 { (eval echo "$as_me:9030: \"$ac_try\"") >&5
9033 echo "$as_me:9033: \$? = $ac_status" >&5
9034 (exit $ac_status); }; }; then
9035 cf_cv_xopen_source=no
9037 echo "$as_me: failed program was:" >&5
9038 cat conftest.$ac_ext >&5
9039 cf_cv_xopen_source=$cf_XOPEN_SOURCE
9041 rm -f conftest.$ac_objext conftest.$ac_ext
9045 rm -f conftest.$ac_objext conftest.$ac_ext
9048 echo "$as_me:9048: result: $cf_cv_xopen_source" >&5
9049 echo "${ECHO_T}$cf_cv_xopen_source" >&6
9051 if test "$cf_cv_xopen_source" != no ; then
9053 CFLAGS=`echo "$CFLAGS" | \
9054 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
9055 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
9057 CPPFLAGS=`echo "$CPPFLAGS" | \
9058 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
9059 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
9061 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
9066 cf_new_extra_cppflags=
9068 for cf_add_cflags in $cf_temp_xopen_source
9070 case $cf_fix_cppflags in
9072 case $cf_add_cflags in
9073 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9074 case $cf_add_cflags in
9076 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9078 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9079 && test -z "${cf_tst_cflags}" \
9080 && cf_fix_cppflags=yes
9082 if test $cf_fix_cppflags = yes ; then
9083 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9085 elif test "${cf_tst_cflags}" = "\"'" ; then
9086 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9095 case $cf_add_cflags in
9097 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9099 CPPFLAGS=`echo "$CPPFLAGS" | \
9100 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9101 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9105 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
9110 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
9115 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9117 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9119 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9120 && test -z "${cf_tst_cflags}" \
9121 && cf_fix_cppflags=no
9126 if test -n "$cf_new_cflags" ; then
9128 CFLAGS="$CFLAGS $cf_new_cflags"
9131 if test -n "$cf_new_cppflags" ; then
9133 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
9136 if test -n "$cf_new_extra_cppflags" ; then
9138 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
9146 CPPFLAGS_after_XOPEN="$CPPFLAGS"
9148 # Work around breakage on OS X
9150 echo "$as_me:9150: checking if SIGWINCH is defined" >&5
9151 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
9152 if test "${cf_cv_define_sigwinch+set}" = set; then
9153 echo $ECHO_N "(cached) $ECHO_C" >&6
9156 cat >conftest.$ac_ext <<_ACEOF
9157 #line 9157 "configure"
9158 #include "confdefs.h"
9160 #include <sys/types.h>
9161 #include <sys/signal.h>
9171 rm -f conftest.$ac_objext
9172 if { (eval echo "$as_me:9172: \"$ac_compile\"") >&5
9173 (eval $ac_compile) 2>&5
9175 echo "$as_me:9175: \$? = $ac_status" >&5
9176 (exit $ac_status); } &&
9177 { ac_try='test -s conftest.$ac_objext'
9178 { (eval echo "$as_me:9178: \"$ac_try\"") >&5
9181 echo "$as_me:9181: \$? = $ac_status" >&5
9182 (exit $ac_status); }; }; then
9183 cf_cv_define_sigwinch=yes
9185 echo "$as_me: failed program was:" >&5
9186 cat conftest.$ac_ext >&5
9187 cat >conftest.$ac_ext <<_ACEOF
9188 #line 9188 "configure"
9189 #include "confdefs.h"
9191 #undef _XOPEN_SOURCE
9192 #undef _POSIX_SOURCE
9193 #undef _POSIX_C_SOURCE
9194 #include <sys/types.h>
9195 #include <sys/signal.h>
9205 rm -f conftest.$ac_objext
9206 if { (eval echo "$as_me:9206: \"$ac_compile\"") >&5
9207 (eval $ac_compile) 2>&5
9209 echo "$as_me:9209: \$? = $ac_status" >&5
9210 (exit $ac_status); } &&
9211 { ac_try='test -s conftest.$ac_objext'
9212 { (eval echo "$as_me:9212: \"$ac_try\"") >&5
9215 echo "$as_me:9215: \$? = $ac_status" >&5
9216 (exit $ac_status); }; }; then
9217 cf_cv_define_sigwinch=maybe
9219 echo "$as_me: failed program was:" >&5
9220 cat conftest.$ac_ext >&5
9221 cf_cv_define_sigwinch=no
9223 rm -f conftest.$ac_objext conftest.$ac_ext
9226 rm -f conftest.$ac_objext conftest.$ac_ext
9229 echo "$as_me:9229: result: $cf_cv_define_sigwinch" >&5
9230 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
9232 if test "$cf_cv_define_sigwinch" = maybe ; then
9233 echo "$as_me:9233: checking for actual SIGWINCH definition" >&5
9234 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
9235 if test "${cf_cv_fixup_sigwinch+set}" = set; then
9236 echo $ECHO_N "(cached) $ECHO_C" >&6
9239 cf_cv_fixup_sigwinch=unknown
9241 while test $cf_sigwinch != 1
9243 cat >conftest.$ac_ext <<_ACEOF
9244 #line 9244 "configure"
9245 #include "confdefs.h"
9247 #undef _XOPEN_SOURCE
9248 #undef _POSIX_SOURCE
9249 #undef _POSIX_C_SOURCE
9250 #include <sys/types.h>
9251 #include <sys/signal.h>
9257 #if SIGWINCH != $cf_sigwinch
9265 rm -f conftest.$ac_objext
9266 if { (eval echo "$as_me:9266: \"$ac_compile\"") >&5
9267 (eval $ac_compile) 2>&5
9269 echo "$as_me:9269: \$? = $ac_status" >&5
9270 (exit $ac_status); } &&
9271 { ac_try='test -s conftest.$ac_objext'
9272 { (eval echo "$as_me:9272: \"$ac_try\"") >&5
9275 echo "$as_me:9275: \$? = $ac_status" >&5
9276 (exit $ac_status); }; }; then
9277 cf_cv_fixup_sigwinch=$cf_sigwinch
9280 echo "$as_me: failed program was:" >&5
9281 cat conftest.$ac_ext >&5
9283 rm -f conftest.$ac_objext conftest.$ac_ext
9285 cf_sigwinch=`expr $cf_sigwinch - 1`
9289 echo "$as_me:9289: result: $cf_cv_fixup_sigwinch" >&5
9290 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
9292 if test "$cf_cv_fixup_sigwinch" != unknown ; then
9293 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
9297 # Checks for CODESET support.
9299 echo "$as_me:9299: checking for nl_langinfo and CODESET" >&5
9300 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
9301 if test "${am_cv_langinfo_codeset+set}" = set; then
9302 echo $ECHO_N "(cached) $ECHO_C" >&6
9304 cat >conftest.$ac_ext <<_ACEOF
9305 #line 9305 "configure"
9306 #include "confdefs.h"
9307 #include <langinfo.h>
9311 char* cs = nl_langinfo(CODESET);
9316 rm -f conftest.$ac_objext conftest$ac_exeext
9317 if { (eval echo "$as_me:9317: \"$ac_link\"") >&5
9318 (eval $ac_link) 2>&5
9320 echo "$as_me:9320: \$? = $ac_status" >&5
9321 (exit $ac_status); } &&
9322 { ac_try='test -s conftest$ac_exeext'
9323 { (eval echo "$as_me:9323: \"$ac_try\"") >&5
9326 echo "$as_me:9326: \$? = $ac_status" >&5
9327 (exit $ac_status); }; }; then
9328 am_cv_langinfo_codeset=yes
9330 echo "$as_me: failed program was:" >&5
9331 cat conftest.$ac_ext >&5
9332 am_cv_langinfo_codeset=no
9334 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9337 echo "$as_me:9337: result: $am_cv_langinfo_codeset" >&5
9338 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
9339 if test $am_cv_langinfo_codeset = yes; then
9341 cat >>confdefs.h <<\EOF
9342 #define HAVE_LANGINFO_CODESET 1
9347 # use these variables to work around a defect in gcc's fixincludes.
9351 echo "$as_me:9351: checking if you want wide-character code" >&5
9352 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
9354 # Check whether --enable-widec or --disable-widec was given.
9355 if test "${enable_widec+set}" = set; then
9356 enableval="$enable_widec"
9357 with_widec=$enableval
9361 echo "$as_me:9361: result: $with_widec" >&5
9362 echo "${ECHO_T}$with_widec" >&6
9364 NCURSES_WCWIDTH_GRAPHICS=1
9366 if test "x$with_widec" = xyes ; then
9367 if test "x$disable_lib_suffixes" = xno ; then
9368 LIB_SUFFIX="w${LIB_SUFFIX}"
9371 cat >>confdefs.h <<\EOF
9372 #define USE_WIDEC_SUPPORT 1
9375 cat >>confdefs.h <<\EOF
9376 #define NCURSES_WIDECHAR 1
9379 echo "$as_me:9379: checking if wchar.h can be used as is" >&5
9380 echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6
9381 if test "${cf_cv_wchar_h_okay+set}" = set; then
9382 echo $ECHO_N "(cached) $ECHO_C" >&6
9385 cat >conftest.$ac_ext <<_ACEOF
9386 #line 9386 "configure"
9387 #include "confdefs.h"
9397 int bar = iswpunct(foo)
9402 rm -f conftest.$ac_objext
9403 if { (eval echo "$as_me:9403: \"$ac_compile\"") >&5
9404 (eval $ac_compile) 2>&5
9406 echo "$as_me:9406: \$? = $ac_status" >&5
9407 (exit $ac_status); } &&
9408 { ac_try='test -s conftest.$ac_objext'
9409 { (eval echo "$as_me:9409: \"$ac_try\"") >&5
9412 echo "$as_me:9412: \$? = $ac_status" >&5
9413 (exit $ac_status); }; }; then
9414 cf_cv_wchar_h_okay=yes
9416 echo "$as_me: failed program was:" >&5
9417 cat conftest.$ac_ext >&5
9418 cf_cv_wchar_h_okay=no
9420 rm -f conftest.$ac_objext conftest.$ac_ext
9422 echo "$as_me:9422: result: $cf_cv_wchar_h_okay" >&5
9423 echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6
9425 if test $cf_cv_wchar_h_okay = no
9428 echo "$as_me:9428: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
9429 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
9430 cat >conftest.$ac_ext <<_ACEOF
9431 #line 9431 "configure"
9432 #include "confdefs.h"
9433 #include <sys/types.h>
9439 #ifndef _XOPEN_SOURCE_EXTENDED
9446 rm -f conftest.$ac_objext
9447 if { (eval echo "$as_me:9447: \"$ac_compile\"") >&5
9448 (eval $ac_compile) 2>&5
9450 echo "$as_me:9450: \$? = $ac_status" >&5
9451 (exit $ac_status); } &&
9452 { ac_try='test -s conftest.$ac_objext'
9453 { (eval echo "$as_me:9453: \"$ac_try\"") >&5
9456 echo "$as_me:9456: \$? = $ac_status" >&5
9457 (exit $ac_status); }; }; then
9460 echo "$as_me: failed program was:" >&5
9461 cat conftest.$ac_ext >&5
9464 rm -f conftest.$ac_objext conftest.$ac_ext
9465 echo "$as_me:9465: result: $cf_result" >&5
9466 echo "${ECHO_T}$cf_result" >&6
9468 if test "$cf_result" = yes ; then
9469 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
9470 elif test "x" != "x" ; then
9471 echo "$as_me:9471: checking checking for compatible value versus " >&5
9472 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
9473 cat >conftest.$ac_ext <<_ACEOF
9474 #line 9474 "configure"
9475 #include "confdefs.h"
9476 #include <sys/types.h>
9482 #if _XOPEN_SOURCE_EXTENDED- < 0
9489 rm -f conftest.$ac_objext
9490 if { (eval echo "$as_me:9490: \"$ac_compile\"") >&5
9491 (eval $ac_compile) 2>&5
9493 echo "$as_me:9493: \$? = $ac_status" >&5
9494 (exit $ac_status); } &&
9495 { ac_try='test -s conftest.$ac_objext'
9496 { (eval echo "$as_me:9496: \"$ac_try\"") >&5
9499 echo "$as_me:9499: \$? = $ac_status" >&5
9500 (exit $ac_status); }; }; then
9503 echo "$as_me: failed program was:" >&5
9504 cat conftest.$ac_ext >&5
9507 rm -f conftest.$ac_objext conftest.$ac_ext
9508 echo "$as_me:9508: result: $cf_result" >&5
9509 echo "${ECHO_T}$cf_result" >&6
9510 if test "$cf_result" = no ; then
9511 # perhaps we can override it - try...
9512 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
9518 echo "$as_me:9518: checking if wcwidth agrees graphics are single-width" >&5
9519 echo $ECHO_N "checking if wcwidth agrees graphics are single-width... $ECHO_C" >&6
9520 if test "${cf_cv_wcwidth_graphics+set}" = set; then
9521 echo $ECHO_N "(cached) $ECHO_C" >&6
9524 cat >conftest.in <<CF_EOF
9526 0x250c upper left corner
9527 0x2514 lower left corner
9528 0x2510 upper right corner
9529 0x2518 lower right corner
9530 0x251c tee pointing left
9531 0x2524 tee pointing right
9532 0x2534 tee pointing up
9533 0x252c tee pointing down
9534 0x2500 horizontal line
9535 0x2502 vertical line
9536 0x253c large plus or crossover
9540 0x2592 checker board (stipple)
9541 0x00b0 degree symbol
9544 - Teletype 5410v1 symbols
9545 0x2190 arrow pointing left
9546 0x2192 arrow pointing right
9547 0x2193 arrow pointing down
9548 0x2191 arrow pointing up
9549 0x2592 board of squares
9550 0x2603 lantern symbol
9551 0x25ae solid square block
9552 - these defaults were invented for ncurses
9555 0x2264 less-than-or-equal-to
9556 0x2265 greater-than-or-equal-to
9559 0x00a3 pound-sterling symbol
9560 - thick-line-drawing
9561 0x250f upper left corner
9562 0x2517 lower left corner
9563 0x2513 upper right corner
9564 0x251b lower right corner
9565 0x2523 tee pointing left
9566 0x252b tee pointing right
9567 0x253b tee pointing up
9568 0x2533 tee pointing down
9569 0x2501 horizontal line
9570 0x2503 vertical line
9571 0x254b large plus or crossover
9572 - double-line-drawing
9573 0x2554 upper left corner
9574 0x255a lower left corner
9575 0x2557 upper right corner
9576 0x255d lower right corner
9577 0x2563 tee pointing left
9578 0x2560 tee pointing right
9579 0x2569 tee pointing up
9580 0x2566 tee pointing down
9581 0x2550 horizontal line
9582 0x2551 vertical line
9583 0x256c large plus or crossover
9585 if test "$cross_compiling" = yes; then
9586 cf_cv_wcwidth_graphics=unknown
9588 cat >conftest.$ac_ext <<_ACEOF
9589 #line 9589 "configure"
9590 #include "confdefs.h"
9603 char buffer[MY_LEN + 1];
9604 char notes[MY_LEN + 1];
9608 if (setlocale(LC_ALL, "en_US.UTF8") ||
9609 setlocale(LC_ALL, "en_US.UTF-8") ||
9610 setlocale(LC_ALL, "en_US.utf8") ||
9611 setlocale(LC_ALL, "en_US.utf-8")) {
9612 if ((fp = fopen("conftest.in", "r")) != 0) {
9613 while (fgets(buffer, MY_LEN, fp) != 0) {
9614 if (*buffer == '-') {
9615 fprintf(stderr, "\t%s", buffer);
9616 } else if (sscanf(buffer, "%x %s", &value, notes) == 2) {
9618 if (wcwidth(value) == 1)
9620 fprintf(stderr, "%d\t%s", wcwidth(value), buffer);
9622 fprintf(stderr, "?\t%s", buffer);
9627 fprintf(stderr, "%d/%d passed wcwidth/graphics check\n", passed, totals);
9628 return (totals == passed) ? 0 : 1;
9632 rm -f conftest$ac_exeext
9633 if { (eval echo "$as_me:9633: \"$ac_link\"") >&5
9634 (eval $ac_link) 2>&5
9636 echo "$as_me:9636: \$? = $ac_status" >&5
9637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9638 { (eval echo "$as_me:9638: \"$ac_try\"") >&5
9641 echo "$as_me:9641: \$? = $ac_status" >&5
9642 (exit $ac_status); }; }; then
9643 cf_cv_wcwidth_graphics=yes
9645 echo "$as_me: program exited with status $ac_status" >&5
9646 echo "$as_me: failed program was:" >&5
9647 cat conftest.$ac_ext >&5
9648 cf_cv_wcwidth_graphics=no
9650 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9654 echo "$as_me:9654: result: $cf_cv_wcwidth_graphics" >&5
9655 echo "${ECHO_T}$cf_cv_wcwidth_graphics" >&6
9657 test "$cf_cv_wcwidth_graphics" = no && NCURSES_WCWIDTH_GRAPHICS=0
9660 NCURSES_CH_T=cchar_t
9662 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
9664 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9665 echo "$as_me:9665: checking for $ac_func" >&5
9666 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9667 if eval "test \"\${$as_ac_var+set}\" = set"; then
9668 echo $ECHO_N "(cached) $ECHO_C" >&6
9670 cat >conftest.$ac_ext <<_ACEOF
9671 #line 9671 "configure"
9672 #include "confdefs.h"
9673 /* System header to define __stub macros and hopefully few prototypes,
9674 which can conflict with char $ac_func (); below. */
9676 /* Override any gcc2 internal prototype to avoid an error. */
9680 /* We use char because int might match the return type of a gcc2
9681 builtin and then its argument prototype would still apply. */
9688 /* The GNU C library defines this for functions which it implements
9689 to always fail with ENOSYS. Some functions are actually named
9690 something starting with __ and the normal name is an alias. */
9691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9694 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
9701 rm -f conftest.$ac_objext conftest$ac_exeext
9702 if { (eval echo "$as_me:9702: \"$ac_link\"") >&5
9703 (eval $ac_link) 2>&5
9705 echo "$as_me:9705: \$? = $ac_status" >&5
9706 (exit $ac_status); } &&
9707 { ac_try='test -s conftest$ac_exeext'
9708 { (eval echo "$as_me:9708: \"$ac_try\"") >&5
9711 echo "$as_me:9711: \$? = $ac_status" >&5
9712 (exit $ac_status); }; }; then
9713 eval "$as_ac_var=yes"
9715 echo "$as_me: failed program was:" >&5
9716 cat conftest.$ac_ext >&5
9717 eval "$as_ac_var=no"
9719 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9721 echo "$as_me:9721: result: `eval echo '${'$as_ac_var'}'`" >&5
9722 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9723 if test `eval echo '${'$as_ac_var'}'` = yes; then
9724 cat >>confdefs.h <<EOF
9725 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9731 if test "x$ac_cv_func_putwc" != xyes ; then
9733 echo "$as_me:9733: checking for multibyte character support" >&5
9734 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
9735 if test "${cf_cv_utf8_lib+set}" = set; then
9736 echo $ECHO_N "(cached) $ECHO_C" >&6
9739 cf_save_LIBS="$LIBS"
9740 cat >conftest.$ac_ext <<_ACEOF
9741 #line 9741 "configure"
9742 #include "confdefs.h"
9753 rm -f conftest.$ac_objext conftest$ac_exeext
9754 if { (eval echo "$as_me:9754: \"$ac_link\"") >&5
9755 (eval $ac_link) 2>&5
9757 echo "$as_me:9757: \$? = $ac_status" >&5
9758 (exit $ac_status); } &&
9759 { ac_try='test -s conftest$ac_exeext'
9760 { (eval echo "$as_me:9760: \"$ac_try\"") >&5
9763 echo "$as_me:9763: \$? = $ac_status" >&5
9764 (exit $ac_status); }; }; then
9767 echo "$as_me: failed program was:" >&5
9768 cat conftest.$ac_ext >&5
9770 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
9771 # will be set on completion of the AC_TRY_LINK below.
9772 cf_cv_header_path_utf8=
9773 cf_cv_library_path_utf8=
9775 echo "${as_me:-configure}:9775: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
9777 cf_save_LIBS="$LIBS"
9779 cat >conftest.$ac_ext <<_ACEOF
9780 #line 9780 "configure"
9781 #include "confdefs.h"
9783 #include <libutf8.h>
9792 rm -f conftest.$ac_objext conftest$ac_exeext
9793 if { (eval echo "$as_me:9793: \"$ac_link\"") >&5
9794 (eval $ac_link) 2>&5
9796 echo "$as_me:9796: \$? = $ac_status" >&5
9797 (exit $ac_status); } &&
9798 { ac_try='test -s conftest$ac_exeext'
9799 { (eval echo "$as_me:9799: \"$ac_try\"") >&5
9802 echo "$as_me:9802: \$? = $ac_status" >&5
9803 (exit $ac_status); }; }; then
9805 cf_cv_find_linkage_utf8=yes
9806 cf_cv_header_path_utf8=/usr/include
9807 cf_cv_library_path_utf8=/usr/lib
9810 echo "$as_me: failed program was:" >&5
9811 cat conftest.$ac_ext >&5
9813 LIBS="-lutf8 $cf_save_LIBS"
9815 cat >conftest.$ac_ext <<_ACEOF
9816 #line 9816 "configure"
9817 #include "confdefs.h"
9819 #include <libutf8.h>
9828 rm -f conftest.$ac_objext conftest$ac_exeext
9829 if { (eval echo "$as_me:9829: \"$ac_link\"") >&5
9830 (eval $ac_link) 2>&5
9832 echo "$as_me:9832: \$? = $ac_status" >&5
9833 (exit $ac_status); } &&
9834 { ac_try='test -s conftest$ac_exeext'
9835 { (eval echo "$as_me:9835: \"$ac_try\"") >&5
9838 echo "$as_me:9838: \$? = $ac_status" >&5
9839 (exit $ac_status); }; }; then
9841 cf_cv_find_linkage_utf8=yes
9842 cf_cv_header_path_utf8=/usr/include
9843 cf_cv_library_path_utf8=/usr/lib
9844 cf_cv_library_file_utf8="-lutf8"
9847 echo "$as_me: failed program was:" >&5
9848 cat conftest.$ac_ext >&5
9850 cf_cv_find_linkage_utf8=no
9851 LIBS="$cf_save_LIBS"
9853 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
9855 echo "${as_me:-configure}:9855: testing find linkage for utf8 library ..." 1>&5
9857 echo "${as_me:-configure}:9857: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
9859 cf_save_CPPFLAGS="$CPPFLAGS"
9860 cf_test_CPPFLAGS="$CPPFLAGS"
9864 # collect the current set of include-directories from compiler flags
9865 cf_header_path_list=""
9866 if test -n "${CFLAGS}${CPPFLAGS}" ; then
9867 for cf_header_path in $CPPFLAGS $CFLAGS
9869 case $cf_header_path in
9871 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
9873 test "x$cf_header_path" != "xNONE" && \
9874 test -d "$cf_header_path" && \
9876 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
9877 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
9878 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
9879 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
9880 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
9881 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
9884 cf_header_path_list="$cf_header_path_list $cf_search"
9890 # add the variations for the package we are looking for
9894 test "x$prefix" != "xNONE" && \
9895 test -d "$prefix" && \
9897 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
9898 test -d $prefix/include && cf_search="$cf_search $prefix/include"
9899 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
9900 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
9901 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
9902 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
9905 for cf_subdir_prefix in \
9914 test "x$cf_subdir_prefix" != "x$prefix" && \
9915 test -d "$cf_subdir_prefix" && \
9916 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
9917 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
9918 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
9919 test -d $cf_subdir_prefix/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
9920 test -d $cf_subdir_prefix/include/utf8/include && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
9921 test -d $cf_subdir_prefix/utf8/include && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
9922 test -d $cf_subdir_prefix/utf8/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
9927 test "$includedir" != NONE && \
9928 test "$includedir" != "/usr/include" && \
9929 test -d "$includedir" && {
9930 test -d $includedir && cf_search="$cf_search $includedir"
9931 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
9934 test "$oldincludedir" != NONE && \
9935 test "$oldincludedir" != "/usr/include" && \
9936 test -d "$oldincludedir" && {
9937 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
9938 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
9941 cf_search="$cf_search $cf_header_path_list"
9943 for cf_cv_header_path_utf8 in $cf_search
9945 if test -d $cf_cv_header_path_utf8 ; then
9946 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
9948 echo "${as_me:-configure}:9948: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
9950 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
9951 cat >conftest.$ac_ext <<_ACEOF
9952 #line 9952 "configure"
9953 #include "confdefs.h"
9955 #include <libutf8.h>
9964 rm -f conftest.$ac_objext
9965 if { (eval echo "$as_me:9965: \"$ac_compile\"") >&5
9966 (eval $ac_compile) 2>&5
9968 echo "$as_me:9968: \$? = $ac_status" >&5
9969 (exit $ac_status); } &&
9970 { ac_try='test -s conftest.$ac_objext'
9971 { (eval echo "$as_me:9971: \"$ac_try\"") >&5
9974 echo "$as_me:9974: \$? = $ac_status" >&5
9975 (exit $ac_status); }; }; then
9977 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
9979 echo "${as_me:-configure}:9979: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
9981 cf_cv_find_linkage_utf8=maybe
9982 cf_test_CPPFLAGS="$CPPFLAGS"
9985 echo "$as_me: failed program was:" >&5
9986 cat conftest.$ac_ext >&5
9988 CPPFLAGS="$cf_save_CPPFLAGS"
9991 rm -f conftest.$ac_objext conftest.$ac_ext
9995 if test "$cf_cv_find_linkage_utf8" = maybe ; then
9997 echo "${as_me:-configure}:9997: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
9999 cf_save_LIBS="$LIBS"
10000 cf_save_LDFLAGS="$LDFLAGS"
10002 if test "$cf_cv_find_linkage_utf8" != yes ; then
10005 cf_library_path_list=""
10006 if test -n "${LDFLAGS}${LIBS}" ; then
10007 for cf_library_path in $LDFLAGS $LIBS
10009 case $cf_library_path in
10011 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
10013 test "x$cf_library_path" != "xNONE" && \
10014 test -d "$cf_library_path" && \
10016 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
10017 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
10018 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
10019 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
10020 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
10021 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
10024 cf_library_path_list="$cf_library_path_list $cf_search"
10032 test "x$prefix" != "xNONE" && \
10033 test -d "$prefix" && \
10035 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
10036 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
10037 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
10038 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
10039 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
10040 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
10043 for cf_subdir_prefix in \
10052 test "x$cf_subdir_prefix" != "x$prefix" && \
10053 test -d "$cf_subdir_prefix" && \
10054 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
10055 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
10056 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
10057 test -d $cf_subdir_prefix/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
10058 test -d $cf_subdir_prefix/lib/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
10059 test -d $cf_subdir_prefix/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
10060 test -d $cf_subdir_prefix/utf8/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
10065 cf_search="$cf_library_path_list $cf_search"
10067 for cf_cv_library_path_utf8 in $cf_search
10069 if test -d $cf_cv_library_path_utf8 ; then
10070 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
10072 echo "${as_me:-configure}:10072: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
10074 CPPFLAGS="$cf_test_CPPFLAGS"
10075 LIBS="-lutf8 $cf_save_LIBS"
10076 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
10077 cat >conftest.$ac_ext <<_ACEOF
10078 #line 10078 "configure"
10079 #include "confdefs.h"
10081 #include <libutf8.h>
10090 rm -f conftest.$ac_objext conftest$ac_exeext
10091 if { (eval echo "$as_me:10091: \"$ac_link\"") >&5
10092 (eval $ac_link) 2>&5
10094 echo "$as_me:10094: \$? = $ac_status" >&5
10095 (exit $ac_status); } &&
10096 { ac_try='test -s conftest$ac_exeext'
10097 { (eval echo "$as_me:10097: \"$ac_try\"") >&5
10098 (eval $ac_try) 2>&5
10100 echo "$as_me:10100: \$? = $ac_status" >&5
10101 (exit $ac_status); }; }; then
10103 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
10105 echo "${as_me:-configure}:10105: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
10107 cf_cv_find_linkage_utf8=yes
10108 cf_cv_library_file_utf8="-lutf8"
10111 echo "$as_me: failed program was:" >&5
10112 cat conftest.$ac_ext >&5
10114 CPPFLAGS="$cf_save_CPPFLAGS"
10115 LIBS="$cf_save_LIBS"
10116 LDFLAGS="$cf_save_LDFLAGS"
10119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10122 CPPFLAGS="$cf_save_CPPFLAGS"
10123 LDFLAGS="$cf_save_LDFLAGS"
10127 cf_cv_find_linkage_utf8=no
10131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10134 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10136 LIBS="$cf_save_LIBS"
10138 if test "$cf_cv_find_linkage_utf8" = yes ; then
10139 cf_cv_utf8_lib=add-on
10145 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10147 echo "$as_me:10147: result: $cf_cv_utf8_lib" >&5
10148 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
10150 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
10151 # ncurses/ncursesw:
10152 if test "$cf_cv_utf8_lib" = "add-on" ; then
10154 cat >>confdefs.h <<\EOF
10155 #define HAVE_LIBUTF8_H 1
10158 if test -n "$cf_cv_header_path_utf8" ; then
10159 for cf_add_incdir in $cf_cv_header_path_utf8
10161 while test $cf_add_incdir != /usr/include
10163 if test -d $cf_add_incdir
10166 if test -n "$CFLAGS$CPPFLAGS" ; then
10167 # a loop is needed to ensure we can add subdirs of existing dirs
10168 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
10169 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
10170 cf_have_incdir=yes; break
10175 if test "$cf_have_incdir" = no ; then
10176 if test "$cf_add_incdir" = /usr/local/include ; then
10177 if test "$GCC" = yes
10179 cf_save_CPPFLAGS=$CPPFLAGS
10180 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
10181 cat >conftest.$ac_ext <<_ACEOF
10182 #line 10182 "configure"
10183 #include "confdefs.h"
10193 rm -f conftest.$ac_objext
10194 if { (eval echo "$as_me:10194: \"$ac_compile\"") >&5
10195 (eval $ac_compile) 2>&5
10197 echo "$as_me:10197: \$? = $ac_status" >&5
10198 (exit $ac_status); } &&
10199 { ac_try='test -s conftest.$ac_objext'
10200 { (eval echo "$as_me:10200: \"$ac_try\"") >&5
10201 (eval $ac_try) 2>&5
10203 echo "$as_me:10203: \$? = $ac_status" >&5
10204 (exit $ac_status); }; }; then
10207 echo "$as_me: failed program was:" >&5
10208 cat conftest.$ac_ext >&5
10211 rm -f conftest.$ac_objext conftest.$ac_ext
10212 CPPFLAGS=$cf_save_CPPFLAGS
10217 if test "$cf_have_incdir" = no ; then
10218 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
10220 echo "${as_me:-configure}:10220: testing adding $cf_add_incdir to include-path ..." 1>&5
10222 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
10224 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
10225 test "$cf_top_incdir" = "$cf_add_incdir" && break
10226 cf_add_incdir="$cf_top_incdir"
10237 if test -n "$cf_cv_library_path_utf8" ; then
10238 for cf_add_libdir in $cf_cv_library_path_utf8
10240 if test $cf_add_libdir = /usr/lib ; then
10242 elif test -d $cf_add_libdir
10245 if test -n "$LDFLAGS$LIBS" ; then
10246 # a loop is needed to ensure we can add subdirs of existing dirs
10247 for cf_test_libdir in $LDFLAGS $LIBS ; do
10248 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
10249 cf_have_libdir=yes; break
10253 if test "$cf_have_libdir" = no ; then
10254 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
10256 echo "${as_me:-configure}:10256: testing adding $cf_add_libdir to library-path ..." 1>&5
10258 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
10264 cf_add_libs="$cf_cv_library_file_utf8"
10265 # Filter out duplicates - this happens with badly-designed ".pc" files...
10266 for cf_add_1lib in $LIBS
10268 for cf_add_2lib in $cf_add_libs
10270 if test "x$cf_add_1lib" = "x$cf_add_2lib"
10276 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
10278 LIBS="$cf_add_libs"
10282 if test "$cf_cv_utf8_lib" != no ; then
10287 # This is needed on Tru64 5.0 to declare mbstate_t
10288 echo "$as_me:10288: checking if we must include wchar.h to declare mbstate_t" >&5
10289 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
10290 if test "${cf_cv_mbstate_t+set}" = set; then
10291 echo $ECHO_N "(cached) $ECHO_C" >&6
10294 cat >conftest.$ac_ext <<_ACEOF
10295 #line 10295 "configure"
10296 #include "confdefs.h"
10298 #include <stdlib.h>
10299 #include <stdarg.h>
10301 #ifdef HAVE_LIBUTF8_H
10302 #include <libutf8.h>
10312 rm -f conftest.$ac_objext
10313 if { (eval echo "$as_me:10313: \"$ac_compile\"") >&5
10314 (eval $ac_compile) 2>&5
10316 echo "$as_me:10316: \$? = $ac_status" >&5
10317 (exit $ac_status); } &&
10318 { ac_try='test -s conftest.$ac_objext'
10319 { (eval echo "$as_me:10319: \"$ac_try\"") >&5
10320 (eval $ac_try) 2>&5
10322 echo "$as_me:10322: \$? = $ac_status" >&5
10323 (exit $ac_status); }; }; then
10326 echo "$as_me: failed program was:" >&5
10327 cat conftest.$ac_ext >&5
10328 cat >conftest.$ac_ext <<_ACEOF
10329 #line 10329 "configure"
10330 #include "confdefs.h"
10332 #include <stdlib.h>
10333 #include <stdarg.h>
10336 #ifdef HAVE_LIBUTF8_H
10337 #include <libutf8.h>
10347 rm -f conftest.$ac_objext
10348 if { (eval echo "$as_me:10348: \"$ac_compile\"") >&5
10349 (eval $ac_compile) 2>&5
10351 echo "$as_me:10351: \$? = $ac_status" >&5
10352 (exit $ac_status); } &&
10353 { ac_try='test -s conftest.$ac_objext'
10354 { (eval echo "$as_me:10354: \"$ac_try\"") >&5
10355 (eval $ac_try) 2>&5
10357 echo "$as_me:10357: \$? = $ac_status" >&5
10358 (exit $ac_status); }; }; then
10359 cf_cv_mbstate_t=yes
10361 echo "$as_me: failed program was:" >&5
10362 cat conftest.$ac_ext >&5
10363 cf_cv_mbstate_t=unknown
10365 rm -f conftest.$ac_objext conftest.$ac_ext
10367 rm -f conftest.$ac_objext conftest.$ac_ext
10369 echo "$as_me:10369: result: $cf_cv_mbstate_t" >&5
10370 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
10372 if test "$cf_cv_mbstate_t" = yes ; then
10374 cat >>confdefs.h <<\EOF
10375 #define NEED_WCHAR_H 1
10381 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
10382 if test "$cf_cv_mbstate_t" = unknown ; then
10383 NCURSES_MBSTATE_T=1
10386 # This is needed on Tru64 5.0 to declare wchar_t
10387 echo "$as_me:10387: checking if we must include wchar.h to declare wchar_t" >&5
10388 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
10389 if test "${cf_cv_wchar_t+set}" = set; then
10390 echo $ECHO_N "(cached) $ECHO_C" >&6
10393 cat >conftest.$ac_ext <<_ACEOF
10394 #line 10394 "configure"
10395 #include "confdefs.h"
10397 #include <stdlib.h>
10398 #include <stdarg.h>
10400 #ifdef HAVE_LIBUTF8_H
10401 #include <libutf8.h>
10411 rm -f conftest.$ac_objext
10412 if { (eval echo "$as_me:10412: \"$ac_compile\"") >&5
10413 (eval $ac_compile) 2>&5
10415 echo "$as_me:10415: \$? = $ac_status" >&5
10416 (exit $ac_status); } &&
10417 { ac_try='test -s conftest.$ac_objext'
10418 { (eval echo "$as_me:10418: \"$ac_try\"") >&5
10419 (eval $ac_try) 2>&5
10421 echo "$as_me:10421: \$? = $ac_status" >&5
10422 (exit $ac_status); }; }; then
10425 echo "$as_me: failed program was:" >&5
10426 cat conftest.$ac_ext >&5
10427 cat >conftest.$ac_ext <<_ACEOF
10428 #line 10428 "configure"
10429 #include "confdefs.h"
10431 #include <stdlib.h>
10432 #include <stdarg.h>
10435 #ifdef HAVE_LIBUTF8_H
10436 #include <libutf8.h>
10446 rm -f conftest.$ac_objext
10447 if { (eval echo "$as_me:10447: \"$ac_compile\"") >&5
10448 (eval $ac_compile) 2>&5
10450 echo "$as_me:10450: \$? = $ac_status" >&5
10451 (exit $ac_status); } &&
10452 { ac_try='test -s conftest.$ac_objext'
10453 { (eval echo "$as_me:10453: \"$ac_try\"") >&5
10454 (eval $ac_try) 2>&5
10456 echo "$as_me:10456: \$? = $ac_status" >&5
10457 (exit $ac_status); }; }; then
10460 echo "$as_me: failed program was:" >&5
10461 cat conftest.$ac_ext >&5
10462 cf_cv_wchar_t=unknown
10464 rm -f conftest.$ac_objext conftest.$ac_ext
10466 rm -f conftest.$ac_objext conftest.$ac_ext
10468 echo "$as_me:10468: result: $cf_cv_wchar_t" >&5
10469 echo "${ECHO_T}$cf_cv_wchar_t" >&6
10471 if test "$cf_cv_wchar_t" = yes ; then
10473 cat >>confdefs.h <<\EOF
10474 #define NEED_WCHAR_H 1
10480 # if we do not find wchar_t in either place, use substitution to provide a fallback.
10481 if test "$cf_cv_wchar_t" = unknown ; then
10485 # if we find wchar_t in either place, use substitution to provide a fallback.
10486 if test "$cf_cv_wchar_t" != unknown ; then
10487 NCURSES_OK_WCHAR_T=1
10490 # This is needed on Tru64 5.0 to declare wint_t
10491 echo "$as_me:10491: checking if we must include wchar.h to declare wint_t" >&5
10492 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
10493 if test "${cf_cv_wint_t+set}" = set; then
10494 echo $ECHO_N "(cached) $ECHO_C" >&6
10497 cat >conftest.$ac_ext <<_ACEOF
10498 #line 10498 "configure"
10499 #include "confdefs.h"
10501 #include <stdlib.h>
10502 #include <stdarg.h>
10504 #ifdef HAVE_LIBUTF8_H
10505 #include <libutf8.h>
10515 rm -f conftest.$ac_objext
10516 if { (eval echo "$as_me:10516: \"$ac_compile\"") >&5
10517 (eval $ac_compile) 2>&5
10519 echo "$as_me:10519: \$? = $ac_status" >&5
10520 (exit $ac_status); } &&
10521 { ac_try='test -s conftest.$ac_objext'
10522 { (eval echo "$as_me:10522: \"$ac_try\"") >&5
10523 (eval $ac_try) 2>&5
10525 echo "$as_me:10525: \$? = $ac_status" >&5
10526 (exit $ac_status); }; }; then
10529 echo "$as_me: failed program was:" >&5
10530 cat conftest.$ac_ext >&5
10531 cat >conftest.$ac_ext <<_ACEOF
10532 #line 10532 "configure"
10533 #include "confdefs.h"
10535 #include <stdlib.h>
10536 #include <stdarg.h>
10539 #ifdef HAVE_LIBUTF8_H
10540 #include <libutf8.h>
10550 rm -f conftest.$ac_objext
10551 if { (eval echo "$as_me:10551: \"$ac_compile\"") >&5
10552 (eval $ac_compile) 2>&5
10554 echo "$as_me:10554: \$? = $ac_status" >&5
10555 (exit $ac_status); } &&
10556 { ac_try='test -s conftest.$ac_objext'
10557 { (eval echo "$as_me:10557: \"$ac_try\"") >&5
10558 (eval $ac_try) 2>&5
10560 echo "$as_me:10560: \$? = $ac_status" >&5
10561 (exit $ac_status); }; }; then
10564 echo "$as_me: failed program was:" >&5
10565 cat conftest.$ac_ext >&5
10566 cf_cv_wint_t=unknown
10568 rm -f conftest.$ac_objext conftest.$ac_ext
10570 rm -f conftest.$ac_objext conftest.$ac_ext
10572 echo "$as_me:10572: result: $cf_cv_wint_t" >&5
10573 echo "${ECHO_T}$cf_cv_wint_t" >&6
10575 if test "$cf_cv_wint_t" = yes ; then
10577 cat >>confdefs.h <<\EOF
10578 #define NEED_WCHAR_H 1
10584 # if we do not find wint_t in either place, use substitution to provide a fallback.
10585 if test "$cf_cv_wint_t" = unknown ; then
10589 # if we find wint_t in either place, use substitution to provide a fallback.
10590 if test "$cf_cv_wint_t" != unknown ; then
10591 NCURSES_OK_WINT_T=1
10594 if test "$NCURSES_MBSTATE_T" != 0; then
10596 cat >>confdefs.h <<\EOF
10597 #define NEED_MBSTATE_T_DEF 1
10603 ### use option --disable-lp64 to allow long chtype
10604 echo "$as_me:10604: checking whether to enable _LP64 definition in curses.h" >&5
10605 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
10607 # Check whether --enable-lp64 or --disable-lp64 was given.
10608 if test "${enable_lp64+set}" = set; then
10609 enableval="$enable_lp64"
10610 with_lp64=$enableval
10612 with_lp64=$cf_dft_with_lp64
10614 echo "$as_me:10614: result: $with_lp64" >&5
10615 echo "${ECHO_T}$with_lp64" >&6
10617 if test "x$with_lp64" = xyes ; then
10618 cf_cv_enable_lp64=1
10620 cf_cv_enable_lp64=0
10623 # Check whether --enable-largefile or --disable-largefile was given.
10624 if test "${enable_largefile+set}" = set; then
10625 enableval="$enable_largefile"
10628 if test "$enable_largefile" != no; then
10630 echo "$as_me:10630: checking for special C compiler options needed for large files" >&5
10631 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
10632 if test "${ac_cv_sys_largefile_CC+set}" = set; then
10633 echo $ECHO_N "(cached) $ECHO_C" >&6
10635 ac_cv_sys_largefile_CC=no
10636 if test "$GCC" != yes; then
10639 # IRIX 6.2 and later do not support large files by default,
10640 # so use the C compiler's -n32 option if that helps.
10641 cat >conftest.$ac_ext <<_ACEOF
10642 #line 10642 "configure"
10643 #include "confdefs.h"
10644 #include <sys/types.h>
10645 /* Check that off_t can represent 2**63 - 1 correctly.
10646 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10647 since some C++ compilers masquerading as C compilers
10648 incorrectly reject 9223372036854775807. */
10649 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10650 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10651 && LARGE_OFF_T % 2147483647 == 1)
10661 rm -f conftest.$ac_objext
10662 if { (eval echo "$as_me:10662: \"$ac_compile\"") >&5
10663 (eval $ac_compile) 2>&5
10665 echo "$as_me:10665: \$? = $ac_status" >&5
10666 (exit $ac_status); } &&
10667 { ac_try='test -s conftest.$ac_objext'
10668 { (eval echo "$as_me:10668: \"$ac_try\"") >&5
10669 (eval $ac_try) 2>&5
10671 echo "$as_me:10671: \$? = $ac_status" >&5
10672 (exit $ac_status); }; }; then
10675 echo "$as_me: failed program was:" >&5
10676 cat conftest.$ac_ext >&5
10678 rm -f conftest.$ac_objext
10680 rm -f conftest.$ac_objext
10681 if { (eval echo "$as_me:10681: \"$ac_compile\"") >&5
10682 (eval $ac_compile) 2>&5
10684 echo "$as_me:10684: \$? = $ac_status" >&5
10685 (exit $ac_status); } &&
10686 { ac_try='test -s conftest.$ac_objext'
10687 { (eval echo "$as_me:10687: \"$ac_try\"") >&5
10688 (eval $ac_try) 2>&5
10690 echo "$as_me:10690: \$? = $ac_status" >&5
10691 (exit $ac_status); }; }; then
10692 ac_cv_sys_largefile_CC=' -n32'; break
10694 echo "$as_me: failed program was:" >&5
10695 cat conftest.$ac_ext >&5
10697 rm -f conftest.$ac_objext
10701 rm -f conftest.$ac_ext
10704 echo "$as_me:10704: result: $ac_cv_sys_largefile_CC" >&5
10705 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
10706 if test "$ac_cv_sys_largefile_CC" != no; then
10707 CC=$CC$ac_cv_sys_largefile_CC
10710 echo "$as_me:10710: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10711 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
10712 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
10713 echo $ECHO_N "(cached) $ECHO_C" >&6
10716 ac_cv_sys_file_offset_bits=no
10717 cat >conftest.$ac_ext <<_ACEOF
10718 #line 10718 "configure"
10719 #include "confdefs.h"
10720 #include <sys/types.h>
10721 /* Check that off_t can represent 2**63 - 1 correctly.
10722 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10723 since some C++ compilers masquerading as C compilers
10724 incorrectly reject 9223372036854775807. */
10725 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10726 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10727 && LARGE_OFF_T % 2147483647 == 1)
10737 rm -f conftest.$ac_objext
10738 if { (eval echo "$as_me:10738: \"$ac_compile\"") >&5
10739 (eval $ac_compile) 2>&5
10741 echo "$as_me:10741: \$? = $ac_status" >&5
10742 (exit $ac_status); } &&
10743 { ac_try='test -s conftest.$ac_objext'
10744 { (eval echo "$as_me:10744: \"$ac_try\"") >&5
10745 (eval $ac_try) 2>&5
10747 echo "$as_me:10747: \$? = $ac_status" >&5
10748 (exit $ac_status); }; }; then
10751 echo "$as_me: failed program was:" >&5
10752 cat conftest.$ac_ext >&5
10754 rm -f conftest.$ac_objext conftest.$ac_ext
10755 cat >conftest.$ac_ext <<_ACEOF
10756 #line 10756 "configure"
10757 #include "confdefs.h"
10758 #define _FILE_OFFSET_BITS 64
10759 #include <sys/types.h>
10760 /* Check that off_t can represent 2**63 - 1 correctly.
10761 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10762 since some C++ compilers masquerading as C compilers
10763 incorrectly reject 9223372036854775807. */
10764 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10765 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10766 && LARGE_OFF_T % 2147483647 == 1)
10776 rm -f conftest.$ac_objext
10777 if { (eval echo "$as_me:10777: \"$ac_compile\"") >&5
10778 (eval $ac_compile) 2>&5
10780 echo "$as_me:10780: \$? = $ac_status" >&5
10781 (exit $ac_status); } &&
10782 { ac_try='test -s conftest.$ac_objext'
10783 { (eval echo "$as_me:10783: \"$ac_try\"") >&5
10784 (eval $ac_try) 2>&5
10786 echo "$as_me:10786: \$? = $ac_status" >&5
10787 (exit $ac_status); }; }; then
10788 ac_cv_sys_file_offset_bits=64; break
10790 echo "$as_me: failed program was:" >&5
10791 cat conftest.$ac_ext >&5
10793 rm -f conftest.$ac_objext conftest.$ac_ext
10797 echo "$as_me:10797: result: $ac_cv_sys_file_offset_bits" >&5
10798 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
10799 if test "$ac_cv_sys_file_offset_bits" != no; then
10801 cat >>confdefs.h <<EOF
10802 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10807 echo "$as_me:10807: checking for _LARGE_FILES value needed for large files" >&5
10808 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
10809 if test "${ac_cv_sys_large_files+set}" = set; then
10810 echo $ECHO_N "(cached) $ECHO_C" >&6
10813 ac_cv_sys_large_files=no
10814 cat >conftest.$ac_ext <<_ACEOF
10815 #line 10815 "configure"
10816 #include "confdefs.h"
10817 #include <sys/types.h>
10818 /* Check that off_t can represent 2**63 - 1 correctly.
10819 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10820 since some C++ compilers masquerading as C compilers
10821 incorrectly reject 9223372036854775807. */
10822 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10823 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10824 && LARGE_OFF_T % 2147483647 == 1)
10834 rm -f conftest.$ac_objext
10835 if { (eval echo "$as_me:10835: \"$ac_compile\"") >&5
10836 (eval $ac_compile) 2>&5
10838 echo "$as_me:10838: \$? = $ac_status" >&5
10839 (exit $ac_status); } &&
10840 { ac_try='test -s conftest.$ac_objext'
10841 { (eval echo "$as_me:10841: \"$ac_try\"") >&5
10842 (eval $ac_try) 2>&5
10844 echo "$as_me:10844: \$? = $ac_status" >&5
10845 (exit $ac_status); }; }; then
10848 echo "$as_me: failed program was:" >&5
10849 cat conftest.$ac_ext >&5
10851 rm -f conftest.$ac_objext conftest.$ac_ext
10852 cat >conftest.$ac_ext <<_ACEOF
10853 #line 10853 "configure"
10854 #include "confdefs.h"
10855 #define _LARGE_FILES 1
10856 #include <sys/types.h>
10857 /* Check that off_t can represent 2**63 - 1 correctly.
10858 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10859 since some C++ compilers masquerading as C compilers
10860 incorrectly reject 9223372036854775807. */
10861 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10862 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10863 && LARGE_OFF_T % 2147483647 == 1)
10873 rm -f conftest.$ac_objext
10874 if { (eval echo "$as_me:10874: \"$ac_compile\"") >&5
10875 (eval $ac_compile) 2>&5
10877 echo "$as_me:10877: \$? = $ac_status" >&5
10878 (exit $ac_status); } &&
10879 { ac_try='test -s conftest.$ac_objext'
10880 { (eval echo "$as_me:10880: \"$ac_try\"") >&5
10881 (eval $ac_try) 2>&5
10883 echo "$as_me:10883: \$? = $ac_status" >&5
10884 (exit $ac_status); }; }; then
10885 ac_cv_sys_large_files=1; break
10887 echo "$as_me: failed program was:" >&5
10888 cat conftest.$ac_ext >&5
10890 rm -f conftest.$ac_objext conftest.$ac_ext
10894 echo "$as_me:10894: result: $ac_cv_sys_large_files" >&5
10895 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
10896 if test "$ac_cv_sys_large_files" != no; then
10898 cat >>confdefs.h <<EOF
10899 #define _LARGE_FILES $ac_cv_sys_large_files
10906 if test "$enable_largefile" != no ; then
10907 echo "$as_me:10907: checking for _LARGEFILE_SOURCE value needed for large files" >&5
10908 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
10909 if test "${ac_cv_sys_largefile_source+set}" = set; then
10910 echo $ECHO_N "(cached) $ECHO_C" >&6
10913 ac_cv_sys_largefile_source=no
10914 cat >conftest.$ac_ext <<_ACEOF
10915 #line 10915 "configure"
10916 #include "confdefs.h"
10926 rm -f conftest.$ac_objext
10927 if { (eval echo "$as_me:10927: \"$ac_compile\"") >&5
10928 (eval $ac_compile) 2>&5
10930 echo "$as_me:10930: \$? = $ac_status" >&5
10931 (exit $ac_status); } &&
10932 { ac_try='test -s conftest.$ac_objext'
10933 { (eval echo "$as_me:10933: \"$ac_try\"") >&5
10934 (eval $ac_try) 2>&5
10936 echo "$as_me:10936: \$? = $ac_status" >&5
10937 (exit $ac_status); }; }; then
10940 echo "$as_me: failed program was:" >&5
10941 cat conftest.$ac_ext >&5
10943 rm -f conftest.$ac_objext conftest.$ac_ext
10944 cat >conftest.$ac_ext <<_ACEOF
10945 #line 10945 "configure"
10946 #include "confdefs.h"
10947 #define _LARGEFILE_SOURCE 1
10957 rm -f conftest.$ac_objext
10958 if { (eval echo "$as_me:10958: \"$ac_compile\"") >&5
10959 (eval $ac_compile) 2>&5
10961 echo "$as_me:10961: \$? = $ac_status" >&5
10962 (exit $ac_status); } &&
10963 { ac_try='test -s conftest.$ac_objext'
10964 { (eval echo "$as_me:10964: \"$ac_try\"") >&5
10965 (eval $ac_try) 2>&5
10967 echo "$as_me:10967: \$? = $ac_status" >&5
10968 (exit $ac_status); }; }; then
10969 ac_cv_sys_largefile_source=1; break
10971 echo "$as_me: failed program was:" >&5
10972 cat conftest.$ac_ext >&5
10974 rm -f conftest.$ac_objext conftest.$ac_ext
10978 echo "$as_me:10978: result: $ac_cv_sys_largefile_source" >&5
10979 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
10980 if test "$ac_cv_sys_largefile_source" != no; then
10982 cat >>confdefs.h <<EOF
10983 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10989 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10990 # in glibc 2.1.3, but that breaks too many other things.
10991 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10992 echo "$as_me:10992: checking for fseeko" >&5
10993 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
10994 if test "${ac_cv_func_fseeko+set}" = set; then
10995 echo $ECHO_N "(cached) $ECHO_C" >&6
10997 cat >conftest.$ac_ext <<_ACEOF
10998 #line 10998 "configure"
10999 #include "confdefs.h"
11004 return fseeko && fseeko (stdin, 0, 0);
11009 rm -f conftest.$ac_objext conftest$ac_exeext
11010 if { (eval echo "$as_me:11010: \"$ac_link\"") >&5
11011 (eval $ac_link) 2>&5
11013 echo "$as_me:11013: \$? = $ac_status" >&5
11014 (exit $ac_status); } &&
11015 { ac_try='test -s conftest$ac_exeext'
11016 { (eval echo "$as_me:11016: \"$ac_try\"") >&5
11017 (eval $ac_try) 2>&5
11019 echo "$as_me:11019: \$? = $ac_status" >&5
11020 (exit $ac_status); }; }; then
11021 ac_cv_func_fseeko=yes
11023 echo "$as_me: failed program was:" >&5
11024 cat conftest.$ac_ext >&5
11025 ac_cv_func_fseeko=no
11027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11029 echo "$as_me:11029: result: $ac_cv_func_fseeko" >&5
11030 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
11031 if test $ac_cv_func_fseeko = yes; then
11033 cat >>confdefs.h <<\EOF
11034 #define HAVE_FSEEKO 1
11039 # Normally we would collect these definitions in the config.h,
11040 # but (like _XOPEN_SOURCE), some environments rely on having these
11041 # defined before any of the system headers are included. Another
11042 # case comes up with C++, e.g., on AIX the compiler compiles the
11043 # header files by themselves before looking at the body files it is
11044 # told to compile. For ncurses, those header files do not include
11046 test "$ac_cv_sys_large_files" != no && CPPFLAGS="$CPPFLAGS -D_LARGE_FILES "
11047 test "$ac_cv_sys_largefile_source" != no && CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE "
11048 test "$ac_cv_sys_file_offset_bits" != no && CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits "
11050 echo "$as_me:11050: checking whether to use struct dirent64" >&5
11051 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
11052 if test "${cf_cv_struct_dirent64+set}" = set; then
11053 echo $ECHO_N "(cached) $ECHO_C" >&6
11056 cat >conftest.$ac_ext <<_ACEOF
11057 #line 11057 "configure"
11058 #include "confdefs.h"
11060 #include <sys/types.h>
11061 #include <dirent.h>
11067 /* if transitional largefile support is setup, this is true */
11068 extern struct dirent64 * readdir(DIR *);
11069 struct dirent64 *x = readdir((DIR *)0);
11070 struct dirent *y = readdir((DIR *)0);
11077 rm -f conftest.$ac_objext
11078 if { (eval echo "$as_me:11078: \"$ac_compile\"") >&5
11079 (eval $ac_compile) 2>&5
11081 echo "$as_me:11081: \$? = $ac_status" >&5
11082 (exit $ac_status); } &&
11083 { ac_try='test -s conftest.$ac_objext'
11084 { (eval echo "$as_me:11084: \"$ac_try\"") >&5
11085 (eval $ac_try) 2>&5
11087 echo "$as_me:11087: \$? = $ac_status" >&5
11088 (exit $ac_status); }; }; then
11089 cf_cv_struct_dirent64=yes
11091 echo "$as_me: failed program was:" >&5
11092 cat conftest.$ac_ext >&5
11093 cf_cv_struct_dirent64=no
11095 rm -f conftest.$ac_objext conftest.$ac_ext
11098 echo "$as_me:11098: result: $cf_cv_struct_dirent64" >&5
11099 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
11100 test "$cf_cv_struct_dirent64" = yes &&
11101 cat >>confdefs.h <<\EOF
11102 #define HAVE_STRUCT_DIRENT64 1
11107 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
11108 echo "$as_me:11108: checking if you want tparm not to use X/Open fixed-parameter list" >&5
11109 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
11111 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
11112 if test "${enable_tparm_varargs+set}" = set; then
11113 enableval="$enable_tparm_varargs"
11114 with_tparm_varargs=$enableval
11116 with_tparm_varargs=yes
11118 echo "$as_me:11118: result: $with_tparm_varargs" >&5
11119 echo "${ECHO_T}$with_tparm_varargs" >&6
11120 NCURSES_TPARM_VARARGS=0
11121 test "x$with_tparm_varargs" = xyes && NCURSES_TPARM_VARARGS=1
11123 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
11124 if test "$with_ticlib" != no ; then
11125 echo "$as_me:11125: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
11126 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
11128 # Check whether --enable-tic-depends or --disable-tic-depends was given.
11129 if test "${enable_tic_depends+set}" = set; then
11130 enableval="$enable_tic_depends"
11131 with_tic_depends=$enableval
11133 with_tic_depends=yes
11135 echo "$as_me:11135: result: $with_tic_depends" >&5
11136 echo "${ECHO_T}$with_tic_depends" >&6
11138 with_tic_depends=no
11141 ### use option --with-bool to override bool's type
11142 echo "$as_me:11142: checking for type of bool" >&5
11143 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
11145 # Check whether --with-bool or --without-bool was given.
11146 if test "${with_bool+set}" = set; then
11147 withval="$with_bool"
11148 NCURSES_BOOL="$withval"
11152 echo "$as_me:11152: result: $NCURSES_BOOL" >&5
11153 echo "${ECHO_T}$NCURSES_BOOL" >&6
11155 echo "$as_me:11155: checking for alternate terminal capabilities file" >&5
11156 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
11158 # Check whether --with-caps or --without-caps was given.
11159 if test "${with_caps+set}" = set; then
11160 withval="$with_caps"
11161 TERMINFO_CAPS=Caps.$withval
11165 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
11166 echo "$as_me:11166: result: $TERMINFO_CAPS" >&5
11167 echo "${ECHO_T}$TERMINFO_CAPS" >&6
11169 ### use option --with-chtype to override chtype's type
11170 echo "$as_me:11170: checking for type of chtype" >&5
11171 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
11173 # Check whether --with-chtype or --without-chtype was given.
11174 if test "${with_chtype+set}" = set; then
11175 withval="$with_chtype"
11176 NCURSES_CHTYPE="$withval"
11178 NCURSES_CHTYPE=$cf_dft_chtype
11180 echo "$as_me:11180: result: $NCURSES_CHTYPE" >&5
11181 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
11183 ### use option --with-ospeed to override ospeed's type
11184 echo "$as_me:11184: checking for type of ospeed" >&5
11185 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
11187 # Check whether --with-ospeed or --without-ospeed was given.
11188 if test "${with_ospeed+set}" = set; then
11189 withval="$with_ospeed"
11190 NCURSES_OSPEED="$withval"
11192 NCURSES_OSPEED=short
11194 echo "$as_me:11194: result: $NCURSES_OSPEED" >&5
11195 echo "${ECHO_T}$NCURSES_OSPEED" >&6
11197 ### use option --with-mmask-t to override mmask_t's type
11198 echo "$as_me:11198: checking for type of mmask_t" >&5
11199 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
11201 # Check whether --with-mmask-t or --without-mmask-t was given.
11202 if test "${with_mmask_t+set}" = set; then
11203 withval="$with_mmask_t"
11204 NCURSES_MMASK_T="$withval"
11206 NCURSES_MMASK_T=$cf_dft_mmask_t
11208 echo "$as_me:11208: result: $NCURSES_MMASK_T" >&5
11209 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
11211 ### use option --with-ccharw-max to override CCHARW_MAX size
11212 echo "$as_me:11212: checking for size CCHARW_MAX" >&5
11213 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
11215 # Check whether --with-ccharw-max or --without-ccharw-max was given.
11216 if test "${with_ccharw_max+set}" = set; then
11217 withval="$with_ccharw_max"
11218 NCURSES_CCHARW_MAX="$withval"
11220 NCURSES_CCHARW_MAX=5
11222 echo "$as_me:11222: result: $NCURSES_CCHARW_MAX" >&5
11223 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
11225 ### use option --with-tparm-arg to override tparm's argument type
11226 echo "$as_me:11226: checking for type of tparm args" >&5
11227 echo $ECHO_N "checking for type of tparm args... $ECHO_C" >&6
11229 # Check whether --with-tparm-arg or --without-tparm-arg was given.
11230 if test "${with_tparm_arg+set}" = set; then
11231 withval="$with_tparm_arg"
11232 NCURSES_TPARM_ARG="$withval"
11234 NCURSES_TPARM_ARG=$cf_dft_tparm_arg
11236 echo "$as_me:11236: result: $NCURSES_TPARM_ARG" >&5
11237 echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6
11239 ### Enable compiling-in rcs id's
11240 echo "$as_me:11240: checking if RCS identifiers should be compiled-in" >&5
11241 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
11243 # Check whether --with-rcs-ids or --without-rcs-ids was given.
11244 if test "${with_rcs_ids+set}" = set; then
11245 withval="$with_rcs_ids"
11246 with_rcs_ids=$withval
11250 echo "$as_me:11250: result: $with_rcs_ids" >&5
11251 echo "${ECHO_T}$with_rcs_ids" >&6
11252 test "x$with_rcs_ids" = xyes &&
11253 cat >>confdefs.h <<\EOF
11254 #define USE_RCS_IDS 1
11257 ###############################################################################
11259 echo "$as_me:11259: checking format of man-pages" >&5
11260 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
11262 # Check whether --with-manpage-format or --without-manpage-format was given.
11263 if test "${with_manpage_format+set}" = set; then
11264 withval="$with_manpage_format"
11265 MANPAGE_FORMAT=$withval
11267 MANPAGE_FORMAT=unknown
11270 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
11271 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
11275 case $MANPAGE_FORMAT in
11277 if test -z "$MANPATH" ; then
11278 MANPATH="/usr/man:/usr/share/man"
11281 # look for the 'date' man-page (it's most likely to be installed!)
11287 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
11288 for cf_dir in $MANPATH; do
11289 test -z "$cf_dir" && cf_dir=/usr/man
11290 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
11292 cf_test=`echo $cf_name | sed -e 's/*//'`
11293 if test "x$cf_test" = "x$cf_name" ; then
11296 (*.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
11297 (*.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
11298 (*.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
11299 (*) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
11313 # if we found a match in either man* or cat*, stop looking
11314 if test -n "$MANPAGE_FORMAT" ; then
11316 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
11317 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
11323 test $cf_found=yes && break
11326 # only check the first directory in $MANPATH where we find manpages
11327 if test -n "$MANPAGE_FORMAT" ; then
11331 # if we did not find the example, just assume it is normal
11332 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
11336 for cf_option in $MANPAGE_FORMAT; do
11338 (gzip|compress|BSDI|normal|formatted|catonly)
11341 cf_unknown="$cf_unknown $cf_option"
11348 echo "$as_me:11348: result: $MANPAGE_FORMAT" >&5
11349 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
11350 if test -n "$cf_unknown" ; then
11351 { echo "$as_me:11351: WARNING: Unexpected manpage-format $cf_unknown" >&5
11352 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
11355 echo "$as_me:11355: checking for manpage renaming" >&5
11356 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
11358 # Check whether --with-manpage-renames or --without-manpage-renames was given.
11359 if test "${with_manpage_renames+set}" = set; then
11360 withval="$with_manpage_renames"
11361 MANPAGE_RENAMES=$withval
11363 MANPAGE_RENAMES=yes
11366 case ".$MANPAGE_RENAMES" in
11370 # Debian 'man' program?
11371 if test -f /etc/debian_version ; then
11372 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
11379 if test "$MANPAGE_RENAMES" != no ; then
11380 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
11381 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
11382 elif test ! -f $MANPAGE_RENAMES ; then
11383 { { echo "$as_me:11383: error: not a filename: $MANPAGE_RENAMES" >&5
11384 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
11385 { (exit 1); exit 1; }; }
11388 test ! -d man && mkdir man
11390 # Construct a sed-script to perform renaming within man-pages
11391 if test -n "$MANPAGE_RENAMES" ; then
11392 test ! -d man && mkdir man
11393 $SHELL $srcdir/man/make_sed.sh $MANPAGE_RENAMES >./edit_man.sed
11397 echo "$as_me:11397: result: $MANPAGE_RENAMES" >&5
11398 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
11400 echo "$as_me:11400: checking if manpage aliases will be installed" >&5
11401 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
11403 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
11404 if test "${with_manpage_aliases+set}" = set; then
11405 withval="$with_manpage_aliases"
11406 MANPAGE_ALIASES=$withval
11408 MANPAGE_ALIASES=yes
11411 echo "$as_me:11411: result: $MANPAGE_ALIASES" >&5
11412 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
11416 cf_use_symlinks=yes
11423 MANPAGE_SYMLINKS=no
11424 if test "$MANPAGE_ALIASES" = yes ; then
11425 echo "$as_me:11425: checking if manpage symlinks should be used" >&5
11426 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
11428 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
11429 if test "${with_manpage_symlinks+set}" = set; then
11430 withval="$with_manpage_symlinks"
11431 MANPAGE_SYMLINKS=$withval
11433 MANPAGE_SYMLINKS=$cf_use_symlinks
11436 if test "$$cf_use_symlinks" = no; then
11437 if test "$MANPAGE_SYMLINKS" = yes ; then
11438 { echo "$as_me:11438: WARNING: cannot make symlinks" >&5
11439 echo "$as_me: WARNING: cannot make symlinks" >&2;}
11440 MANPAGE_SYMLINKS=no
11444 echo "$as_me:11444: result: $MANPAGE_SYMLINKS" >&5
11445 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
11448 echo "$as_me:11448: checking for manpage tbl" >&5
11449 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
11451 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
11452 if test "${with_manpage_tbl+set}" = set; then
11453 withval="$with_manpage_tbl"
11454 MANPAGE_TBL=$withval
11459 echo "$as_me:11459: result: $MANPAGE_TBL" >&5
11460 echo "${ECHO_T}$MANPAGE_TBL" >&6
11462 if test "$prefix" = "NONE" ; then
11463 cf_prefix="$ac_default_prefix"
11465 cf_prefix="$prefix"
11468 case "$MANPAGE_FORMAT" in
11483 test ! -d man && mkdir man
11487 case "$MANPAGE_FORMAT" in
11490 cf_compress=compress
11498 cf_edit_man=./edit_man.sh
11499 cf_man_alias=`pwd`/man_alias.sed
11501 cat >$cf_edit_man <<CF_EOF
11503 # this script is generated by the configure-script CF_MAN_PAGES macro.
11505 prefix="$cf_prefix"
11506 datarootdir="$datarootdir"
11509 NCURSES_MAJOR="$NCURSES_MAJOR"
11510 NCURSES_MINOR="$NCURSES_MINOR"
11511 NCURSES_PATCH="$NCURSES_PATCH"
11513 NCURSES_OSPEED="$NCURSES_OSPEED"
11514 TERMINFO="$TERMINFO"
11517 INSTALL_DATA="$INSTALL_DATA"
11519 transform="$program_transform_name"
11521 TMP=\${TMPDIR:=/tmp}/man\$\$
11522 trap "rm -f \$TMP" 0 1 2 5 15
11534 top_srcdir=\$srcdir/..
11537 if test "\$form" = normal ; then
11538 if test "$cf_format" = yes ; then
11539 if test "$cf_inboth" = no ; then
11540 $SHELL \$0 format \$verb \$mandir \$srcdir \$*
11544 cf_subdir=\$mandir/man
11545 cf_tables=$MANPAGE_TBL
11547 cf_subdir=\$mandir/cat
11551 # process the list of source-files
11556 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
11557 if test \$verb = installing ; then
11558 if test ! -d \$cf_subdir\${section} ; then
11559 mkdir -p \$cf_subdir\$section
11563 # replace variables in man page
11564 if test ! -f $cf_man_alias ; then
11565 cat >>$cf_man_alias <<-CF_EOF2
11566 s,@DATADIR@,\$datadir,g
11567 s,@TERMINFO@,\${TERMINFO:="no default value"},g
11568 s,@TERMINFO_DIRS@,\${TERMINFO_DIRS:="no default value"},g
11569 s,@NCURSES_MAJOR@,\${NCURSES_MAJOR:="no default value"},g
11570 s,@NCURSES_MINOR@,\${NCURSES_MINOR:="no default value"},g
11571 s,@NCURSES_PATCH@,\${NCURSES_PATCH:="no default value"},g
11572 s,@NCURSES_OSPEED@,\${NCURSES_OSPEED:="no default value"},g
11575 for cf_name in captoinfo clear infocmp infotocap reset tabs tic toe tput tset
11577 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
11578 cf_name=`echo $cf_name|sed "$program_transform_name"`
11579 cat >>$cf_edit_man <<-CF_EOF
11580 s,@$cf_NAME@,$cf_name,g
11584 cat >>$cf_edit_man <<CF_EOF
11586 echo "...made $cf_man_alias"
11590 cf_source=\`basename \$i\`
11591 inalias=\$cf_source
11592 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
11593 if test ! -f \$inalias ; then
11594 echo .. skipped \$cf_source
11599 if test "$MANPAGE_ALIASES" != no ; then
11600 cat >>$cf_edit_man <<CF_EOF
11602 test $with_curses_h = yes && nCurses=ncurses.3x
11603 aliases=\`sed -f \$top_srcdir/man/manlinks.sed \$inalias |sed -f $cf_man_alias | sort -u; test \$inalias = \$nCurses && echo curses\`
11607 if test "$MANPAGE_RENAMES" = no ; then
11608 cat >>$cf_edit_man <<CF_EOF
11609 # perform program transformations for section 1 man pages
11610 if test \$section = 1 ; then
11611 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
11613 cf_target=\$cf_subdir\${section}/\$cf_source
11617 cat >>$cf_edit_man <<CF_EOF
11618 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
11619 if test -z "\$cf_target" ; then
11620 echo '? missing rename for '\$cf_source
11621 cf_target="\$cf_source"
11623 cf_target="\$cf_subdir\${section}/\${cf_target}"
11628 cat >>$cf_edit_man <<CF_EOF
11629 sed -f $cf_man_alias \\
11632 if test -f $MANPAGE_RENAMES ; then
11633 cat >>$cf_edit_man <<CF_EOF
11634 < \$i | sed -f `pwd`/edit_man.sed >\$TMP
11637 cat >>$cf_edit_man <<CF_EOF
11642 cat >>$cf_edit_man <<CF_EOF
11643 if test \$cf_tables = yes ; then
11644 tbl \$TMP >\$TMP.out
11649 if test $with_overwrite != yes ; then
11650 cat >>$cf_edit_man <<CF_EOF
11651 sed -e "/\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
11656 if test $with_curses_h != yes ; then
11657 cat >>$cf_edit_man <<CF_EOF
11658 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
11663 cat >>$cf_edit_man <<CF_EOF
11664 if test \$form = format ; then
11665 nroff -man \$TMP >\$TMP.out
11670 if test -n "$cf_compress" ; then
11671 cat >>$cf_edit_man <<CF_EOF
11672 if test \$verb = installing ; then
11673 if ( $cf_compress -f \$TMP )
11675 mv \$TMP.$cf_so_strip \$TMP
11678 cf_target="\$cf_target.$cf_so_strip"
11682 case "$MANPAGE_FORMAT" in
11684 cat >>$cf_edit_man <<CF_EOF
11685 if test \$form = format ; then
11686 # BSDI installs only .0 suffixes in the cat directories
11687 cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
11693 cat >>$cf_edit_man <<CF_EOF
11694 suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
11695 if test \$verb = installing ; then
11696 echo \$verb \$cf_target
11697 \$INSTALL_DATA \$TMP \$cf_target
11698 test -d \$cf_subdir\${section} &&
11699 test -n "\$aliases" && (
11700 cd \$cf_subdir\${section} && (
11701 cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
11702 test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
11703 cf_target=\`basename \$cf_target\`
11704 for cf_alias in \$aliases
11706 if test \$section = 1 ; then
11707 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
11710 if test "$MANPAGE_SYMLINKS" = yes ; then
11711 if test -f \$cf_alias\${suffix} ; then
11712 if ( cmp -s \$cf_target \$cf_alias\${suffix} )
11717 echo .. \$verb alias \$cf_alias\${suffix}
11721 cat >>$cf_edit_man <<CF_EOF
11722 $LN_S \$cf_target \$cf_alias\${suffix}
11726 cat >>$cf_edit_man <<CF_EOF
11727 rm -f \$cf_alias\${suffix}
11728 $LN_S \$cf_target \$cf_alias\${suffix}
11732 cat >>$cf_edit_man <<CF_EOF
11733 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
11734 echo ".so \$cf_source" >\$TMP
11736 if test -n "$cf_compress" ; then
11737 cat >>$cf_edit_man <<CF_EOF
11738 if test -n "$cf_so_strip" ; then
11739 $cf_compress -f \$TMP
11740 mv \$TMP.$cf_so_strip \$TMP
11744 cat >>$cf_edit_man <<CF_EOF
11745 echo .. \$verb alias \$cf_alias\${suffix}
11746 rm -f \$cf_alias\${suffix}
11747 \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
11752 elif test \$verb = removing ; then
11753 test -f \$cf_target && (
11754 echo \$verb \$cf_target
11757 test -d \$cf_subdir\${section} &&
11758 test -n "\$aliases" && (
11759 cd \$cf_subdir\${section} && (
11760 for cf_alias in \$aliases
11762 if test \$section = 1 ; then
11763 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
11766 echo .. \$verb alias \$cf_alias\${suffix}
11767 rm -f \$cf_alias\${suffix}
11779 if test $cf_inboth = yes ; then
11780 if test \$form != format ; then
11781 $SHELL \$0 format \$verb \$mandir \$srcdir \$*
11787 chmod 755 $cf_edit_man
11789 ###############################################################################
11791 ### Note that some functions (such as const) are normally disabled anyway.
11792 echo "$as_me:11792: checking if you want to build with function extensions" >&5
11793 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
11795 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
11796 if test "${enable_ext_funcs+set}" = set; then
11797 enableval="$enable_ext_funcs"
11798 with_ext_funcs=$enableval
11802 echo "$as_me:11802: result: $with_ext_funcs" >&5
11803 echo "${ECHO_T}$with_ext_funcs" >&6
11804 if test "x$with_ext_funcs" = xyes ; then
11805 NCURSES_EXT_FUNCS=1
11807 cat >>confdefs.h <<\EOF
11808 #define HAVE_ASSUME_DEFAULT_COLORS 1
11811 cat >>confdefs.h <<\EOF
11812 #define HAVE_CURSES_VERSION 1
11815 cat >>confdefs.h <<\EOF
11816 #define HAVE_HAS_KEY 1
11819 cat >>confdefs.h <<\EOF
11820 #define HAVE_RESIZETERM 1
11823 cat >>confdefs.h <<\EOF
11824 #define HAVE_RESIZE_TERM 1
11827 cat >>confdefs.h <<\EOF
11828 #define HAVE_TERM_ENTRY_H 1
11831 cat >>confdefs.h <<\EOF
11832 #define HAVE_USE_DEFAULT_COLORS 1
11835 cat >>confdefs.h <<\EOF
11836 #define HAVE_USE_EXTENDED_NAMES 1
11839 cat >>confdefs.h <<\EOF
11840 #define HAVE_USE_SCREEN 1
11843 cat >>confdefs.h <<\EOF
11844 #define HAVE_USE_WINDOW 1
11847 cat >>confdefs.h <<\EOF
11848 #define HAVE_WRESIZE 1
11851 cat >>confdefs.h <<\EOF
11852 #define NCURSES_EXT_FUNCS 1
11855 GENERATED_EXT_FUNCS=generated
11857 NCURSES_EXT_FUNCS=0
11858 GENERATED_EXT_FUNCS=
11861 echo "$as_me:11861: checking if you want to build with SCREEN extensions" >&5
11862 echo $ECHO_N "checking if you want to build with SCREEN extensions... $ECHO_C" >&6
11864 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
11865 if test "${enable_sp_funcs+set}" = set; then
11866 enableval="$enable_sp_funcs"
11867 with_sp_funcs=$enableval
11869 with_sp_funcs=$cf_dft_ext_spfuncs
11871 echo "$as_me:11871: result: $with_sp_funcs" >&5
11872 echo "${ECHO_T}$with_sp_funcs" >&6
11873 if test "x$with_sp_funcs" = xyes ; then
11876 cat >>confdefs.h <<\EOF
11877 #define NCURSES_SP_FUNCS 1
11880 GENERATED_SP_FUNCS=generated
11883 GENERATED_SP_FUNCS=
11886 echo "$as_me:11886: checking if you want to build with terminal-driver" >&5
11887 echo $ECHO_N "checking if you want to build with terminal-driver... $ECHO_C" >&6
11889 # Check whether --enable-term-driver or --disable-term-driver was given.
11890 if test "${enable_term_driver+set}" = set; then
11891 enableval="$enable_term_driver"
11892 with_term_driver=$enableval
11894 with_term_driver=no
11896 echo "$as_me:11896: result: $with_term_driver" >&5
11897 echo "${ECHO_T}$with_term_driver" >&6
11898 if test "x$with_term_driver" = xyes ; then
11900 cat >>confdefs.h <<\EOF
11901 #define USE_TERM_DRIVER 1
11904 if test "x$with_termlib" != xno ; then
11905 { { echo "$as_me:11905: error: The term-driver option conflicts with the termlib option" >&5
11906 echo "$as_me: error: The term-driver option conflicts with the termlib option" >&2;}
11907 { (exit 1); exit 1; }; }
11909 if test "x$with_sp_funcs" != xyes ; then
11910 { { echo "$as_me:11910: error: The term-driver option relies upon sp-funcs" >&5
11911 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
11912 { (exit 1); exit 1; }; }
11916 ### use option --enable-const to turn on use of const beyond that in XSI.
11917 echo "$as_me:11917: checking for extended use of const keyword" >&5
11918 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
11920 # Check whether --enable-const or --disable-const was given.
11921 if test "${enable_const+set}" = set; then
11922 enableval="$enable_const"
11923 with_ext_const=$enableval
11925 with_ext_const=$cf_dft_ext_const
11927 echo "$as_me:11927: result: $with_ext_const" >&5
11928 echo "${ECHO_T}$with_ext_const" >&6
11929 NCURSES_CONST='/*nothing*/'
11930 if test "x$with_ext_const" = xyes ; then
11931 NCURSES_CONST=const
11934 ### use option --enable-ext-colors to turn on use of colors beyond 16.
11935 echo "$as_me:11935: checking if you want to use extended colors" >&5
11936 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
11938 # Check whether --enable-ext-colors or --disable-ext-colors was given.
11939 if test "${enable_ext_colors+set}" = set; then
11940 enableval="$enable_ext_colors"
11941 with_ext_colors=$enableval
11943 with_ext_colors=$cf_dft_ext_colors
11945 echo "$as_me:11945: result: $with_ext_colors" >&5
11946 echo "${ECHO_T}$with_ext_colors" >&6
11947 NCURSES_EXT_COLORS=0
11948 if test "x$with_ext_colors" = xyes ; then
11949 if test "x$with_widec" != xyes ; then
11950 { echo "$as_me:11950: WARNING: This option applies only to wide-character library" >&5
11951 echo "$as_me: WARNING: This option applies only to wide-character library" >&2;}
11953 # cannot be ABI 5 since it changes sizeof(cchar_t)
11955 if test "${with_abi_version+set}" != set; then
11956 case $cf_cv_rel_version in
11958 cf_cv_rel_version=6.0
11959 cf_cv_abi_version=6
11960 { echo "$as_me:11960: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
11961 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
11966 NCURSES_EXT_COLORS=1
11968 cat >>confdefs.h <<\EOF
11969 #define NCURSES_EXT_COLORS 1
11975 ### use option --enable-ext-mouse to modify coding to support 5-button mice
11976 echo "$as_me:11976: checking if you want to use extended mouse encoding" >&5
11977 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
11979 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
11980 if test "${enable_ext_mouse+set}" = set; then
11981 enableval="$enable_ext_mouse"
11982 with_ext_mouse=$enableval
11984 with_ext_mouse=$cf_dft_ext_mouse
11986 echo "$as_me:11986: result: $with_ext_mouse" >&5
11987 echo "${ECHO_T}$with_ext_mouse" >&6
11988 NCURSES_MOUSE_VERSION=1
11989 if test "x$with_ext_mouse" = xyes ; then
11990 NCURSES_MOUSE_VERSION=2
11992 if test "${with_abi_version+set}" != set; then
11993 case $cf_cv_rel_version in
11995 cf_cv_rel_version=6.0
11996 cf_cv_abi_version=6
11997 { echo "$as_me:11997: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
11998 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
12005 ### use option --enable-ext-putwin to turn on extended screendumps
12006 echo "$as_me:12006: checking if you want to use extended putwin/screendump" >&5
12007 echo $ECHO_N "checking if you want to use extended putwin/screendump... $ECHO_C" >&6
12009 # Check whether --enable-ext-putwin or --disable-ext-putwin was given.
12010 if test "${enable_ext_putwin+set}" = set; then
12011 enableval="$enable_ext_putwin"
12012 with_ext_putwin=$enableval
12014 with_ext_putwin=$cf_dft_ext_putwin
12016 echo "$as_me:12016: result: $with_ext_putwin" >&5
12017 echo "${ECHO_T}$with_ext_putwin" >&6
12018 if test "x$with_ext_putwin" = xyes ; then
12020 cat >>confdefs.h <<\EOF
12021 #define NCURSES_EXT_PUTWIN 1
12026 echo "$as_me:12026: checking if you want \$NCURSES_NO_PADDING code" >&5
12027 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
12029 # Check whether --enable-no-padding or --disable-no-padding was given.
12030 if test "${enable_no_padding+set}" = set; then
12031 enableval="$enable_no_padding"
12032 with_no_padding=$enableval
12034 with_no_padding=$with_ext_funcs
12036 echo "$as_me:12036: result: $with_no_padding" >&5
12037 echo "${ECHO_T}$with_no_padding" >&6
12038 test "x$with_no_padding" = xyes &&
12039 cat >>confdefs.h <<\EOF
12040 #define NCURSES_NO_PADDING 1
12043 echo "$as_me:12043: checking for ANSI C header files" >&5
12044 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12045 if test "${ac_cv_header_stdc+set}" = set; then
12046 echo $ECHO_N "(cached) $ECHO_C" >&6
12048 cat >conftest.$ac_ext <<_ACEOF
12049 #line 12049 "configure"
12050 #include "confdefs.h"
12051 #include <stdlib.h>
12052 #include <stdarg.h>
12053 #include <string.h>
12057 if { (eval echo "$as_me:12057: \"$ac_cpp conftest.$ac_ext\"") >&5
12058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12060 egrep -v '^ *\+' conftest.er1 >conftest.err
12062 cat conftest.err >&5
12063 echo "$as_me:12063: \$? = $ac_status" >&5
12064 (exit $ac_status); } >/dev/null; then
12065 if test -s conftest.err; then
12066 ac_cpp_err=$ac_c_preproc_warn_flag
12073 if test -z "$ac_cpp_err"; then
12074 ac_cv_header_stdc=yes
12076 echo "$as_me: failed program was:" >&5
12077 cat conftest.$ac_ext >&5
12078 ac_cv_header_stdc=no
12080 rm -f conftest.err conftest.$ac_ext
12082 if test $ac_cv_header_stdc = yes; then
12083 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12084 cat >conftest.$ac_ext <<_ACEOF
12085 #line 12085 "configure"
12086 #include "confdefs.h"
12087 #include <string.h>
12090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12091 egrep "memchr" >/dev/null 2>&1; then
12094 ac_cv_header_stdc=no
12100 if test $ac_cv_header_stdc = yes; then
12101 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12102 cat >conftest.$ac_ext <<_ACEOF
12103 #line 12103 "configure"
12104 #include "confdefs.h"
12105 #include <stdlib.h>
12108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12109 egrep "free" >/dev/null 2>&1; then
12112 ac_cv_header_stdc=no
12118 if test $ac_cv_header_stdc = yes; then
12119 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12120 if test "$cross_compiling" = yes; then
12123 cat >conftest.$ac_ext <<_ACEOF
12124 #line 12124 "configure"
12125 #include "confdefs.h"
12127 #if ((' ' & 0x0FF) == 0x020)
12128 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12129 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12131 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
12132 || ('j' <= (c) && (c) <= 'r') \
12133 || ('s' <= (c) && (c) <= 'z'))
12134 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12137 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12142 for (i = 0; i < 256; i++)
12143 if (XOR (islower (i), ISLOWER (i))
12144 || toupper (i) != TOUPPER (i))
12145 $ac_main_return(2);
12146 $ac_main_return (0);
12149 rm -f conftest$ac_exeext
12150 if { (eval echo "$as_me:12150: \"$ac_link\"") >&5
12151 (eval $ac_link) 2>&5
12153 echo "$as_me:12153: \$? = $ac_status" >&5
12154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12155 { (eval echo "$as_me:12155: \"$ac_try\"") >&5
12156 (eval $ac_try) 2>&5
12158 echo "$as_me:12158: \$? = $ac_status" >&5
12159 (exit $ac_status); }; }; then
12162 echo "$as_me: program exited with status $ac_status" >&5
12163 echo "$as_me: failed program was:" >&5
12164 cat conftest.$ac_ext >&5
12165 ac_cv_header_stdc=no
12167 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12171 echo "$as_me:12171: result: $ac_cv_header_stdc" >&5
12172 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12173 if test $ac_cv_header_stdc = yes; then
12175 cat >>confdefs.h <<\EOF
12176 #define STDC_HEADERS 1
12181 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
12183 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
12184 inttypes.h stdint.h unistd.h
12186 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12187 echo "$as_me:12187: checking for $ac_header" >&5
12188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12189 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12190 echo $ECHO_N "(cached) $ECHO_C" >&6
12192 cat >conftest.$ac_ext <<_ACEOF
12193 #line 12193 "configure"
12194 #include "confdefs.h"
12195 $ac_includes_default
12196 #include <$ac_header>
12198 rm -f conftest.$ac_objext
12199 if { (eval echo "$as_me:12199: \"$ac_compile\"") >&5
12200 (eval $ac_compile) 2>&5
12202 echo "$as_me:12202: \$? = $ac_status" >&5
12203 (exit $ac_status); } &&
12204 { ac_try='test -s conftest.$ac_objext'
12205 { (eval echo "$as_me:12205: \"$ac_try\"") >&5
12206 (eval $ac_try) 2>&5
12208 echo "$as_me:12208: \$? = $ac_status" >&5
12209 (exit $ac_status); }; }; then
12210 eval "$as_ac_Header=yes"
12212 echo "$as_me: failed program was:" >&5
12213 cat conftest.$ac_ext >&5
12214 eval "$as_ac_Header=no"
12216 rm -f conftest.$ac_objext conftest.$ac_ext
12218 echo "$as_me:12218: result: `eval echo '${'$as_ac_Header'}'`" >&5
12219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12221 cat >>confdefs.h <<EOF
12222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12228 echo "$as_me:12228: checking for signed char" >&5
12229 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
12230 if test "${ac_cv_type_signed_char+set}" = set; then
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
12233 cat >conftest.$ac_ext <<_ACEOF
12234 #line 12234 "configure"
12235 #include "confdefs.h"
12236 $ac_includes_default
12240 if ((signed char *) 0)
12242 if (sizeof (signed char))
12248 rm -f conftest.$ac_objext
12249 if { (eval echo "$as_me:12249: \"$ac_compile\"") >&5
12250 (eval $ac_compile) 2>&5
12252 echo "$as_me:12252: \$? = $ac_status" >&5
12253 (exit $ac_status); } &&
12254 { ac_try='test -s conftest.$ac_objext'
12255 { (eval echo "$as_me:12255: \"$ac_try\"") >&5
12256 (eval $ac_try) 2>&5
12258 echo "$as_me:12258: \$? = $ac_status" >&5
12259 (exit $ac_status); }; }; then
12260 ac_cv_type_signed_char=yes
12262 echo "$as_me: failed program was:" >&5
12263 cat conftest.$ac_ext >&5
12264 ac_cv_type_signed_char=no
12266 rm -f conftest.$ac_objext conftest.$ac_ext
12268 echo "$as_me:12268: result: $ac_cv_type_signed_char" >&5
12269 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
12271 echo "$as_me:12271: checking size of signed char" >&5
12272 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
12273 if test "${ac_cv_sizeof_signed_char+set}" = set; then
12274 echo $ECHO_N "(cached) $ECHO_C" >&6
12276 if test "$ac_cv_type_signed_char" = yes; then
12277 if test "$cross_compiling" = yes; then
12278 # Depending upon the size, compute the lo and hi bounds.
12279 cat >conftest.$ac_ext <<_ACEOF
12280 #line 12280 "configure"
12281 #include "confdefs.h"
12282 $ac_includes_default
12286 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
12291 rm -f conftest.$ac_objext
12292 if { (eval echo "$as_me:12292: \"$ac_compile\"") >&5
12293 (eval $ac_compile) 2>&5
12295 echo "$as_me:12295: \$? = $ac_status" >&5
12296 (exit $ac_status); } &&
12297 { ac_try='test -s conftest.$ac_objext'
12298 { (eval echo "$as_me:12298: \"$ac_try\"") >&5
12299 (eval $ac_try) 2>&5
12301 echo "$as_me:12301: \$? = $ac_status" >&5
12302 (exit $ac_status); }; }; then
12305 cat >conftest.$ac_ext <<_ACEOF
12306 #line 12306 "configure"
12307 #include "confdefs.h"
12308 $ac_includes_default
12312 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
12317 rm -f conftest.$ac_objext
12318 if { (eval echo "$as_me:12318: \"$ac_compile\"") >&5
12319 (eval $ac_compile) 2>&5
12321 echo "$as_me:12321: \$? = $ac_status" >&5
12322 (exit $ac_status); } &&
12323 { ac_try='test -s conftest.$ac_objext'
12324 { (eval echo "$as_me:12324: \"$ac_try\"") >&5
12325 (eval $ac_try) 2>&5
12327 echo "$as_me:12327: \$? = $ac_status" >&5
12328 (exit $ac_status); }; }; then
12329 ac_hi=$ac_mid; break
12331 echo "$as_me: failed program was:" >&5
12332 cat conftest.$ac_ext >&5
12333 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
12335 rm -f conftest.$ac_objext conftest.$ac_ext
12338 echo "$as_me: failed program was:" >&5
12339 cat conftest.$ac_ext >&5
12342 cat >conftest.$ac_ext <<_ACEOF
12343 #line 12343 "configure"
12344 #include "confdefs.h"
12345 $ac_includes_default
12349 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
12354 rm -f conftest.$ac_objext
12355 if { (eval echo "$as_me:12355: \"$ac_compile\"") >&5
12356 (eval $ac_compile) 2>&5
12358 echo "$as_me:12358: \$? = $ac_status" >&5
12359 (exit $ac_status); } &&
12360 { ac_try='test -s conftest.$ac_objext'
12361 { (eval echo "$as_me:12361: \"$ac_try\"") >&5
12362 (eval $ac_try) 2>&5
12364 echo "$as_me:12364: \$? = $ac_status" >&5
12365 (exit $ac_status); }; }; then
12366 ac_lo=$ac_mid; break
12368 echo "$as_me: failed program was:" >&5
12369 cat conftest.$ac_ext >&5
12370 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
12372 rm -f conftest.$ac_objext conftest.$ac_ext
12375 rm -f conftest.$ac_objext conftest.$ac_ext
12376 # Binary search between lo and hi bounds.
12377 while test "x$ac_lo" != "x$ac_hi"; do
12378 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12379 cat >conftest.$ac_ext <<_ACEOF
12380 #line 12380 "configure"
12381 #include "confdefs.h"
12382 $ac_includes_default
12386 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
12391 rm -f conftest.$ac_objext
12392 if { (eval echo "$as_me:12392: \"$ac_compile\"") >&5
12393 (eval $ac_compile) 2>&5
12395 echo "$as_me:12395: \$? = $ac_status" >&5
12396 (exit $ac_status); } &&
12397 { ac_try='test -s conftest.$ac_objext'
12398 { (eval echo "$as_me:12398: \"$ac_try\"") >&5
12399 (eval $ac_try) 2>&5
12401 echo "$as_me:12401: \$? = $ac_status" >&5
12402 (exit $ac_status); }; }; then
12405 echo "$as_me: failed program was:" >&5
12406 cat conftest.$ac_ext >&5
12407 ac_lo=`expr $ac_mid + 1`
12409 rm -f conftest.$ac_objext conftest.$ac_ext
12411 ac_cv_sizeof_signed_char=$ac_lo
12413 if test "$cross_compiling" = yes; then
12414 { { echo "$as_me:12414: error: cannot run test program while cross compiling" >&5
12415 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
12416 { (exit 1); exit 1; }; }
12418 cat >conftest.$ac_ext <<_ACEOF
12419 #line 12419 "configure"
12420 #include "confdefs.h"
12421 $ac_includes_default
12425 FILE *f = fopen ("conftest.val", "w");
12427 $ac_main_return (1);
12428 fprintf (f, "%d", (sizeof (signed char)));
12434 rm -f conftest$ac_exeext
12435 if { (eval echo "$as_me:12435: \"$ac_link\"") >&5
12436 (eval $ac_link) 2>&5
12438 echo "$as_me:12438: \$? = $ac_status" >&5
12439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12440 { (eval echo "$as_me:12440: \"$ac_try\"") >&5
12441 (eval $ac_try) 2>&5
12443 echo "$as_me:12443: \$? = $ac_status" >&5
12444 (exit $ac_status); }; }; then
12445 ac_cv_sizeof_signed_char=`cat conftest.val`
12447 echo "$as_me: program exited with status $ac_status" >&5
12448 echo "$as_me: failed program was:" >&5
12449 cat conftest.$ac_ext >&5
12451 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12456 ac_cv_sizeof_signed_char=0
12459 echo "$as_me:12459: result: $ac_cv_sizeof_signed_char" >&5
12460 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
12461 cat >>confdefs.h <<EOF
12462 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
12465 if test "$ac_cv_sizeof_signed_char" = 1 ; then
12466 NCURSES_SBOOL="signed char"
12468 NCURSES_SBOOL="char"
12470 echo "$as_me:12470: checking if you want to use signed Boolean array in term.h" >&5
12471 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
12473 # Check whether --enable-signed-char or --disable-signed-char was given.
12474 if test "${enable_signed_char+set}" = set; then
12475 enableval="$enable_signed_char"
12476 with_signed_char=$enableval
12478 with_signed_char=no
12480 echo "$as_me:12480: result: $with_signed_char" >&5
12481 echo "${ECHO_T}$with_signed_char" >&6
12482 test "x$with_signed_char" != xyes && NCURSES_SBOOL="char"
12484 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
12485 echo "$as_me:12485: checking if you want SIGWINCH handler" >&5
12486 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
12488 # Check whether --enable-sigwinch or --disable-sigwinch was given.
12489 if test "${enable_sigwinch+set}" = set; then
12490 enableval="$enable_sigwinch"
12491 with_sigwinch=$enableval
12493 with_sigwinch=$with_ext_funcs
12495 echo "$as_me:12495: result: $with_sigwinch" >&5
12496 echo "${ECHO_T}$with_sigwinch" >&6
12497 test "x$with_sigwinch" = xyes &&
12498 cat >>confdefs.h <<\EOF
12499 #define USE_SIGWINCH 1
12502 ### use option --enable-tcap-names to allow user to define new capabilities
12503 echo "$as_me:12503: checking if you want user-definable terminal capabilities like termcap" >&5
12504 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
12506 # Check whether --enable-tcap-names or --disable-tcap-names was given.
12507 if test "${enable_tcap_names+set}" = set; then
12508 enableval="$enable_tcap_names"
12509 with_tcap_names=$enableval
12511 with_tcap_names=$with_ext_funcs
12513 echo "$as_me:12513: result: $with_tcap_names" >&5
12514 echo "${ECHO_T}$with_tcap_names" >&6
12516 test "x$with_tcap_names" = xyes && NCURSES_XNAMES=1
12518 ###############################################################################
12519 # These options are relatively safe to experiment with.
12521 echo "$as_me:12521: checking if you want all development code" >&5
12522 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
12524 # Check whether --with-develop or --without-develop was given.
12525 if test "${with_develop+set}" = set; then
12526 withval="$with_develop"
12527 with_develop=$withval
12531 echo "$as_me:12531: result: $with_develop" >&5
12532 echo "${ECHO_T}$with_develop" >&6
12534 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
12535 echo "$as_me:12535: checking if you want hard-tabs code" >&5
12536 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
12538 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
12539 if test "${enable_hard_tabs+set}" = set; then
12540 enableval="$enable_hard_tabs"
12543 enable_hard_tabs=$with_develop
12545 echo "$as_me:12545: result: $enable_hard_tabs" >&5
12546 echo "${ECHO_T}$enable_hard_tabs" >&6
12547 test "x$enable_hard_tabs" = xyes &&
12548 cat >>confdefs.h <<\EOF
12549 #define USE_HARD_TABS 1
12552 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
12553 echo "$as_me:12553: checking if you want limited support for xmc" >&5
12554 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
12556 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
12557 if test "${enable_xmc_glitch+set}" = set; then
12558 enableval="$enable_xmc_glitch"
12561 enable_xmc_glitch=$with_develop
12563 echo "$as_me:12563: result: $enable_xmc_glitch" >&5
12564 echo "${ECHO_T}$enable_xmc_glitch" >&6
12565 test "x$enable_xmc_glitch" = xyes &&
12566 cat >>confdefs.h <<\EOF
12567 #define USE_XMC_SUPPORT 1
12570 ###############################################################################
12571 # These are just experimental, probably should not be in a package:
12573 echo "$as_me:12573: checking if you do not want to assume colors are white-on-black" >&5
12574 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
12576 # Check whether --enable-assumed-color or --disable-assumed-color was given.
12577 if test "${enable_assumed_color+set}" = set; then
12578 enableval="$enable_assumed_color"
12579 with_assumed_color=$enableval
12581 with_assumed_color=yes
12583 echo "$as_me:12583: result: $with_assumed_color" >&5
12584 echo "${ECHO_T}$with_assumed_color" >&6
12585 test "x$with_assumed_color" = xyes &&
12586 cat >>confdefs.h <<\EOF
12587 #define USE_ASSUMED_COLOR 1
12590 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
12591 echo "$as_me:12591: checking if you want hashmap scrolling-optimization code" >&5
12592 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
12594 # Check whether --enable-hashmap or --disable-hashmap was given.
12595 if test "${enable_hashmap+set}" = set; then
12596 enableval="$enable_hashmap"
12597 with_hashmap=$enableval
12601 echo "$as_me:12601: result: $with_hashmap" >&5
12602 echo "${ECHO_T}$with_hashmap" >&6
12603 test "x$with_hashmap" = xyes &&
12604 cat >>confdefs.h <<\EOF
12605 #define USE_HASHMAP 1
12608 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
12609 echo "$as_me:12609: checking if you want colorfgbg code" >&5
12610 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
12612 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
12613 if test "${enable_colorfgbg+set}" = set; then
12614 enableval="$enable_colorfgbg"
12615 with_colorfgbg=$enableval
12619 echo "$as_me:12619: result: $with_colorfgbg" >&5
12620 echo "${ECHO_T}$with_colorfgbg" >&6
12621 test "x$with_colorfgbg" = xyes &&
12622 cat >>confdefs.h <<\EOF
12623 #define USE_COLORFGBG 1
12626 ### use option --enable-interop to turn on use of bindings used for interop
12627 echo "$as_me:12627: checking if you want interop bindings" >&5
12628 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
12630 # Check whether --enable-interop or --disable-interop was given.
12631 if test "${enable_interop+set}" = set; then
12632 enableval="$enable_interop"
12633 with_exp_interop=$enableval
12635 with_exp_interop=$cf_dft_interop
12637 echo "$as_me:12637: result: $with_exp_interop" >&5
12638 echo "${ECHO_T}$with_exp_interop" >&6
12640 NCURSES_INTEROP_FUNCS=0
12641 test "x$with_exp_interop" = xyes && NCURSES_INTEROP_FUNCS=1
12643 # This is still experimental (20080329), but should ultimately be moved to
12644 # the script-block --with-normal, etc.
12646 echo "$as_me:12646: checking if you want to link with the pthread library" >&5
12647 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
12649 # Check whether --with-pthread or --without-pthread was given.
12650 if test "${with_pthread+set}" = set; then
12651 withval="$with_pthread"
12652 with_pthread=$withval
12656 echo "$as_me:12656: result: $with_pthread" >&5
12657 echo "${ECHO_T}$with_pthread" >&6
12659 if test "$with_pthread" != no ; then
12660 echo "$as_me:12660: checking for pthread.h" >&5
12661 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
12662 if test "${ac_cv_header_pthread_h+set}" = set; then
12663 echo $ECHO_N "(cached) $ECHO_C" >&6
12665 cat >conftest.$ac_ext <<_ACEOF
12666 #line 12666 "configure"
12667 #include "confdefs.h"
12668 #include <pthread.h>
12670 if { (eval echo "$as_me:12670: \"$ac_cpp conftest.$ac_ext\"") >&5
12671 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12673 egrep -v '^ *\+' conftest.er1 >conftest.err
12675 cat conftest.err >&5
12676 echo "$as_me:12676: \$? = $ac_status" >&5
12677 (exit $ac_status); } >/dev/null; then
12678 if test -s conftest.err; then
12679 ac_cpp_err=$ac_c_preproc_warn_flag
12686 if test -z "$ac_cpp_err"; then
12687 ac_cv_header_pthread_h=yes
12689 echo "$as_me: failed program was:" >&5
12690 cat conftest.$ac_ext >&5
12691 ac_cv_header_pthread_h=no
12693 rm -f conftest.err conftest.$ac_ext
12695 echo "$as_me:12695: result: $ac_cv_header_pthread_h" >&5
12696 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
12697 if test $ac_cv_header_pthread_h = yes; then
12699 cat >>confdefs.h <<\EOF
12700 #define HAVE_PTHREADS_H 1
12703 for cf_lib_pthread in pthread c_r
12705 echo "$as_me:12705: checking if we can link with the $cf_lib_pthread library" >&5
12706 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
12707 cf_save_LIBS="$LIBS"
12709 cf_add_libs="-l$cf_lib_pthread"
12710 # Filter out duplicates - this happens with badly-designed ".pc" files...
12711 for cf_add_1lib in $LIBS
12713 for cf_add_2lib in $cf_add_libs
12715 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12721 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12723 LIBS="$cf_add_libs"
12725 cat >conftest.$ac_ext <<_ACEOF
12726 #line 12726 "configure"
12727 #include "confdefs.h"
12729 #include <pthread.h>
12735 int rc = pthread_create(0,0,0,0);
12736 int r2 = pthread_mutexattr_settype(0, 0);
12742 rm -f conftest.$ac_objext conftest$ac_exeext
12743 if { (eval echo "$as_me:12743: \"$ac_link\"") >&5
12744 (eval $ac_link) 2>&5
12746 echo "$as_me:12746: \$? = $ac_status" >&5
12747 (exit $ac_status); } &&
12748 { ac_try='test -s conftest$ac_exeext'
12749 { (eval echo "$as_me:12749: \"$ac_try\"") >&5
12750 (eval $ac_try) 2>&5
12752 echo "$as_me:12752: \$? = $ac_status" >&5
12753 (exit $ac_status); }; }; then
12756 echo "$as_me: failed program was:" >&5
12757 cat conftest.$ac_ext >&5
12760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12761 LIBS="$cf_save_LIBS"
12762 echo "$as_me:12762: result: $with_pthread" >&5
12763 echo "${ECHO_T}$with_pthread" >&6
12764 test "$with_pthread" = yes && break
12767 if test "$with_pthread" = yes ; then
12769 cf_add_libs="-l$cf_lib_pthread"
12770 # Filter out duplicates - this happens with badly-designed ".pc" files...
12771 for cf_add_1lib in $LIBS
12773 for cf_add_2lib in $cf_add_libs
12775 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12781 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12783 LIBS="$cf_add_libs"
12785 cat >>confdefs.h <<\EOF
12786 #define HAVE_LIBPTHREADS 1
12790 { { echo "$as_me:12790: error: Cannot link with pthread library" >&5
12791 echo "$as_me: error: Cannot link with pthread library" >&2;}
12792 { (exit 1); exit 1; }; }
12799 if test "x$with_pthread" != xno; then
12800 echo "$as_me:12800: checking for pthread_kill" >&5
12801 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
12802 if test "${ac_cv_func_pthread_kill+set}" = set; then
12803 echo $ECHO_N "(cached) $ECHO_C" >&6
12805 cat >conftest.$ac_ext <<_ACEOF
12806 #line 12806 "configure"
12807 #include "confdefs.h"
12808 /* System header to define __stub macros and hopefully few prototypes,
12809 which can conflict with char pthread_kill (); below. */
12810 #include <assert.h>
12811 /* Override any gcc2 internal prototype to avoid an error. */
12815 /* We use char because int might match the return type of a gcc2
12816 builtin and then its argument prototype would still apply. */
12817 char pthread_kill ();
12823 /* The GNU C library defines this for functions which it implements
12824 to always fail with ENOSYS. Some functions are actually named
12825 something starting with __ and the normal name is an alias. */
12826 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
12829 f = pthread_kill; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
12836 rm -f conftest.$ac_objext conftest$ac_exeext
12837 if { (eval echo "$as_me:12837: \"$ac_link\"") >&5
12838 (eval $ac_link) 2>&5
12840 echo "$as_me:12840: \$? = $ac_status" >&5
12841 (exit $ac_status); } &&
12842 { ac_try='test -s conftest$ac_exeext'
12843 { (eval echo "$as_me:12843: \"$ac_try\"") >&5
12844 (eval $ac_try) 2>&5
12846 echo "$as_me:12846: \$? = $ac_status" >&5
12847 (exit $ac_status); }; }; then
12848 ac_cv_func_pthread_kill=yes
12850 echo "$as_me: failed program was:" >&5
12851 cat conftest.$ac_ext >&5
12852 ac_cv_func_pthread_kill=no
12854 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12856 echo "$as_me:12856: result: $ac_cv_func_pthread_kill" >&5
12857 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
12858 if test $ac_cv_func_pthread_kill = yes; then
12860 echo "$as_me:12860: checking if you want to allow EINTR in wgetch with pthreads" >&5
12861 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
12863 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
12864 if test "${enable_pthreads_eintr+set}" = set; then
12865 enableval="$enable_pthreads_eintr"
12866 use_pthreads_eintr=$enableval
12868 use_pthreads_eintr=no
12870 echo "$as_me:12870: result: $use_pthreads_eintr" >&5
12871 echo "${ECHO_T}$use_pthreads_eintr" >&6
12872 if test "x$use_pthreads_eintr" = xyes ; then
12874 cat >>confdefs.h <<\EOF
12875 #define USE_PTHREADS_EINTR 1
12881 echo "$as_me:12881: checking if you want to use weak-symbols for pthreads" >&5
12882 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
12884 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
12885 if test "${enable_weak_symbols+set}" = set; then
12886 enableval="$enable_weak_symbols"
12887 use_weak_symbols=$enableval
12889 use_weak_symbols=no
12891 echo "$as_me:12891: result: $use_weak_symbols" >&5
12892 echo "${ECHO_T}$use_weak_symbols" >&6
12893 if test "x$use_weak_symbols" = xyes ; then
12895 echo "$as_me:12895: checking if $CC supports weak symbols" >&5
12896 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
12897 if test "${cf_cv_weak_symbols+set}" = set; then
12898 echo $ECHO_N "(cached) $ECHO_C" >&6
12901 cat >conftest.$ac_ext <<_ACEOF
12902 #line 12902 "configure"
12903 #include "confdefs.h"
12910 #if defined(__GNUC__)
12911 # if defined __USE_ISOC99
12912 # define _cat_pragma(exp) _Pragma(#exp)
12913 # define _weak_pragma(exp) _cat_pragma(weak name)
12915 # define _weak_pragma(exp)
12917 # define _declare(name) __extension__ extern __typeof__(name) name
12918 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
12921 weak_symbol(fopen);
12927 rm -f conftest.$ac_objext
12928 if { (eval echo "$as_me:12928: \"$ac_compile\"") >&5
12929 (eval $ac_compile) 2>&5
12931 echo "$as_me:12931: \$? = $ac_status" >&5
12932 (exit $ac_status); } &&
12933 { ac_try='test -s conftest.$ac_objext'
12934 { (eval echo "$as_me:12934: \"$ac_try\"") >&5
12935 (eval $ac_try) 2>&5
12937 echo "$as_me:12937: \$? = $ac_status" >&5
12938 (exit $ac_status); }; }; then
12939 cf_cv_weak_symbols=yes
12941 echo "$as_me: failed program was:" >&5
12942 cat conftest.$ac_ext >&5
12943 cf_cv_weak_symbols=no
12945 rm -f conftest.$ac_objext conftest.$ac_ext
12948 echo "$as_me:12948: result: $cf_cv_weak_symbols" >&5
12949 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
12952 cf_cv_weak_symbols=no
12955 if test "x$cf_cv_weak_symbols" = xyes ; then
12957 cat >>confdefs.h <<\EOF
12958 #define USE_WEAK_SYMBOLS 1
12965 if test "x$with_pthread" = "xyes" ; then
12967 cat >>confdefs.h <<\EOF
12968 #define USE_PTHREADS 1
12971 enable_reentrant=yes
12972 if test "x$cf_cv_weak_symbols" = xyes ; then
12977 # Reentrant code has to be opaque; there's little advantage to making ncurses
12978 # opaque outside of that, so there is no --enable-opaque option. We can use
12979 # this option without --with-pthreads, but this will be always set for
12981 echo "$as_me:12981: checking if you want reentrant code" >&5
12982 echo $ECHO_N "checking if you want reentrant code... $ECHO_C" >&6
12984 # Check whether --enable-reentrant or --disable-reentrant was given.
12985 if test "${enable_reentrant+set}" = set; then
12986 enableval="$enable_reentrant"
12987 with_reentrant=$enableval
12991 echo "$as_me:12991: result: $with_reentrant" >&5
12992 echo "${ECHO_T}$with_reentrant" >&6
12993 if test "x$with_reentrant" = xyes ; then
12994 cf_cv_enable_reentrant=1
12995 cf_cv_enable_opaque="NCURSES_INTERNALS"
12998 if test "x$cf_cv_weak_symbols" = xyes ; then
13000 # remove pthread library from $LIBS
13001 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
13003 cf_add_libs="-lpthread"
13004 # Filter out duplicates - this happens with badly-designed ".pc" files...
13005 for cf_add_1lib in $TEST_LIBS
13007 for cf_add_2lib in $cf_add_libs
13009 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13015 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13017 TEST_LIBS="$cf_add_libs"
13019 cf_add_libs="-lpthread"
13020 # Filter out duplicates - this happens with badly-designed ".pc" files...
13021 for cf_add_1lib in $TEST_LIBS2
13023 for cf_add_2lib in $cf_add_libs
13025 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13031 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13033 TEST_LIBS2="$cf_add_libs"
13036 # when not using weak symbols but with_reentrant,
13037 # add 't' to the library suffix on all platforms
13038 # except cygwin, where we only do that if ALSO
13039 # compiling with full thread support.
13041 (*cygwin* | *msys*)
13042 if test "$with_pthread" = "yes" ; then
13043 if test "x$disable_lib_suffixes" = "xno" ; then
13044 LIB_SUFFIX="t${LIB_SUFFIX}"
13048 if test "x$disable_lib_suffixes" = "xno" ; then
13049 LIB_SUFFIX="t${LIB_SUFFIX}"
13055 cat >>confdefs.h <<\EOF
13056 #define USE_REENTRANT 1
13059 if test "${with_abi_version+set}" != set; then
13060 case $cf_cv_rel_version in
13062 cf_cv_rel_version=6.0
13063 cf_cv_abi_version=6
13064 { echo "$as_me:13064: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
13065 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
13071 cf_cv_enable_reentrant=0
13072 cf_cv_enable_opaque="NCURSES_OPAQUE"
13074 NCURSES_SIZE_T=short
13077 ### Allow using a different wrap-prefix
13078 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
13079 echo "$as_me:13079: checking for prefix used to wrap public variables" >&5
13080 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
13082 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
13083 if test "${with_wrap_prefix+set}" = set; then
13084 withval="$with_wrap_prefix"
13085 NCURSES_WRAP_PREFIX=$withval
13087 NCURSES_WRAP_PREFIX=_nc_
13089 echo "$as_me:13089: result: $NCURSES_WRAP_PREFIX" >&5
13090 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
13092 NCURSES_WRAP_PREFIX=_nc_
13095 cat >>confdefs.h <<EOF
13096 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
13099 echo "$as_me:13099: checking if you want experimental safe-sprintf code" >&5
13100 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
13102 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
13103 if test "${enable_safe_sprintf+set}" = set; then
13104 enableval="$enable_safe_sprintf"
13105 with_safe_sprintf=$enableval
13107 with_safe_sprintf=no
13109 echo "$as_me:13109: result: $with_safe_sprintf" >&5
13110 echo "${ECHO_T}$with_safe_sprintf" >&6
13111 test "x$with_safe_sprintf" = xyes &&
13112 cat >>confdefs.h <<\EOF
13113 #define USE_SAFE_SPRINTF 1
13116 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
13117 # when hashmap is used scroll hints are useless
13118 if test "$with_hashmap" = no ; then
13119 echo "$as_me:13119: checking if you want to experiment without scrolling-hints code" >&5
13120 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
13122 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
13123 if test "${enable_scroll_hints+set}" = set; then
13124 enableval="$enable_scroll_hints"
13125 with_scroll_hints=$enableval
13127 with_scroll_hints=yes
13129 echo "$as_me:13129: result: $with_scroll_hints" >&5
13130 echo "${ECHO_T}$with_scroll_hints" >&6
13131 test "x$with_scroll_hints" = xyes &&
13132 cat >>confdefs.h <<\EOF
13133 #define USE_SCROLL_HINTS 1
13138 echo "$as_me:13138: checking if you want wgetch-events code" >&5
13139 echo $ECHO_N "checking if you want wgetch-events code... $ECHO_C" >&6
13141 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
13142 if test "${enable_wgetch_events+set}" = set; then
13143 enableval="$enable_wgetch_events"
13144 with_wgetch_events=$enableval
13146 with_wgetch_events=no
13148 echo "$as_me:13148: result: $with_wgetch_events" >&5
13149 echo "${ECHO_T}$with_wgetch_events" >&6
13150 test "x$with_wgetch_events" = xyes &&
13151 cat >>confdefs.h <<\EOF
13152 #define NCURSES_WGETCH_EVENTS 1
13155 ###############################################################################
13157 ### use option --disable-echo to suppress full display compiling commands
13159 echo "$as_me:13159: checking if you want to see long compiling messages" >&5
13160 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
13162 # Check whether --enable-echo or --disable-echo was given.
13163 if test "${enable_echo+set}" = set; then
13164 enableval="$enable_echo"
13165 test "$enableval" != no && enableval=yes
13166 if test "$enableval" != "yes" ; then
13169 ECHO_LD='@echo linking $@;'
13170 RULE_CC='@echo compiling $<'
13171 SHOW_CC='@echo compiling $@'
13193 echo "$as_me:13193: result: $enableval" >&5
13194 echo "${ECHO_T}$enableval" >&6
13196 if test "x$enable_echo" = xyes; then
13199 ECHO_LINK='@ echo linking $@ ... ;'
13200 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
13201 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
13204 ### use option --enable-warnings to turn on all gcc warnings
13205 echo "$as_me:13205: checking if you want to see compiler warnings" >&5
13206 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
13208 # Check whether --enable-warnings or --disable-warnings was given.
13209 if test "${enable_warnings+set}" = set; then
13210 enableval="$enable_warnings"
13211 with_warnings=$enableval
13213 echo "$as_me:13213: result: $with_warnings" >&5
13214 echo "${ECHO_T}$with_warnings" >&6
13216 if test "x$with_warnings" = "xyes"; then
13218 ADAFLAGS="$ADAFLAGS -gnatg"
13222 if test "$GCC" = yes ; then
13225 echo "$as_me:13225: checking if this is really Intel C compiler" >&5
13226 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
13227 cf_save_CFLAGS="$CFLAGS"
13228 CFLAGS="$CFLAGS -no-gcc"
13229 cat >conftest.$ac_ext <<_ACEOF
13230 #line 13230 "configure"
13231 #include "confdefs.h"
13237 #ifdef __INTEL_COMPILER
13246 rm -f conftest.$ac_objext
13247 if { (eval echo "$as_me:13247: \"$ac_compile\"") >&5
13248 (eval $ac_compile) 2>&5
13250 echo "$as_me:13250: \$? = $ac_status" >&5
13251 (exit $ac_status); } &&
13252 { ac_try='test -s conftest.$ac_objext'
13253 { (eval echo "$as_me:13253: \"$ac_try\"") >&5
13254 (eval $ac_try) 2>&5
13256 echo "$as_me:13256: \$? = $ac_status" >&5
13257 (exit $ac_status); }; }; then
13259 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
13262 echo "$as_me: failed program was:" >&5
13263 cat conftest.$ac_ext >&5
13265 rm -f conftest.$ac_objext conftest.$ac_ext
13266 CFLAGS="$cf_save_CFLAGS"
13267 echo "$as_me:13267: result: $INTEL_COMPILER" >&5
13268 echo "${ECHO_T}$INTEL_COMPILER" >&6
13275 if test "$GCC" = yes ; then
13276 echo "$as_me:13276: checking if this is really Clang C compiler" >&5
13277 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
13278 cf_save_CFLAGS="$CFLAGS"
13279 CFLAGS="$CFLAGS -Qunused-arguments"
13280 cat >conftest.$ac_ext <<_ACEOF
13281 #line 13281 "configure"
13282 #include "confdefs.h"
13297 rm -f conftest.$ac_objext
13298 if { (eval echo "$as_me:13298: \"$ac_compile\"") >&5
13299 (eval $ac_compile) 2>&5
13301 echo "$as_me:13301: \$? = $ac_status" >&5
13302 (exit $ac_status); } &&
13303 { ac_try='test -s conftest.$ac_objext'
13304 { (eval echo "$as_me:13304: \"$ac_try\"") >&5
13305 (eval $ac_try) 2>&5
13307 echo "$as_me:13307: \$? = $ac_status" >&5
13308 (exit $ac_status); }; }; then
13310 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
13313 echo "$as_me: failed program was:" >&5
13314 cat conftest.$ac_ext >&5
13316 rm -f conftest.$ac_objext conftest.$ac_ext
13317 CFLAGS="$cf_save_CFLAGS"
13318 echo "$as_me:13318: result: $CLANG_COMPILER" >&5
13319 echo "${ECHO_T}$CLANG_COMPILER" >&6
13322 cat > conftest.$ac_ext <<EOF
13323 #line 13323 "${as_me:-configure}"
13324 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
13327 if test "$INTEL_COMPILER" = yes
13329 # The "-wdXXX" options suppress warnings:
13330 # remark #1419: external declaration in primary source file
13331 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
13332 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
13333 # remark #193: zero used for undefined preprocessing identifier
13334 # remark #593: variable "curs_sb_left_arrow" was set but never used
13335 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
13336 # remark #869: parameter "tw" was never referenced
13337 # remark #981: operands are evaluated in unspecified order
13338 # warning #279: controlling expression is constant
13340 { echo "$as_me:13340: checking for $CC warning options..." >&5
13341 echo "$as_me: checking for $CC warning options..." >&6;}
13342 cf_save_CFLAGS="$CFLAGS"
13343 EXTRA_CFLAGS="-Wall"
13355 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
13356 if { (eval echo "$as_me:13356: \"$ac_compile\"") >&5
13357 (eval $ac_compile) 2>&5
13359 echo "$as_me:13359: \$? = $ac_status" >&5
13360 (exit $ac_status); }; then
13361 test -n "$verbose" && echo "$as_me:13361: result: ... -$cf_opt" >&5
13362 echo "${ECHO_T}... -$cf_opt" >&6
13363 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
13366 CFLAGS="$cf_save_CFLAGS"
13368 elif test "$GCC" = yes
13370 { echo "$as_me:13370: checking for $CC warning options..." >&5
13371 echo "$as_me: checking for $CC warning options..." >&6;}
13372 cf_save_CFLAGS="$CFLAGS"
13375 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
13376 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
13377 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
13378 for cf_opt in W Wall \
13379 Wbad-function-cast \
13382 Wdeclaration-after-statement \
13385 Wmissing-declarations \
13386 Wmissing-prototypes \
13390 Wstrict-prototypes \
13391 Wundef $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum
13393 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
13394 if { (eval echo "$as_me:13394: \"$ac_compile\"") >&5
13395 (eval $ac_compile) 2>&5
13397 echo "$as_me:13397: \$? = $ac_status" >&5
13398 (exit $ac_status); }; then
13399 test -n "$verbose" && echo "$as_me:13399: result: ... -$cf_opt" >&5
13400 echo "${ECHO_T}... -$cf_opt" >&6
13403 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
13406 case $GCC_VERSION in
13408 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
13410 echo "${as_me:-configure}:13410: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
13416 case $GCC_VERSION in
13418 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
13420 echo "${as_me:-configure}:13420: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
13426 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
13429 CFLAGS="$cf_save_CFLAGS"
13433 if test "x$cf_with_cxx" = xyes ; then
13437 if test "$GCC" = yes ; then
13440 echo "$as_me:13440: checking if this is really Intel C++ compiler" >&5
13441 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
13442 cf_save_CFLAGS="$CXXFLAGS"
13443 CXXFLAGS="$CXXFLAGS -no-gcc"
13444 cat >conftest.$ac_ext <<_ACEOF
13445 #line 13445 "configure"
13446 #include "confdefs.h"
13452 #ifdef __INTEL_COMPILER
13461 rm -f conftest.$ac_objext
13462 if { (eval echo "$as_me:13462: \"$ac_compile\"") >&5
13463 (eval $ac_compile) 2>&5
13465 echo "$as_me:13465: \$? = $ac_status" >&5
13466 (exit $ac_status); } &&
13467 { ac_try='test -s conftest.$ac_objext'
13468 { (eval echo "$as_me:13468: \"$ac_try\"") >&5
13469 (eval $ac_try) 2>&5
13471 echo "$as_me:13471: \$? = $ac_status" >&5
13472 (exit $ac_status); }; }; then
13473 INTEL_CPLUSPLUS=yes
13474 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
13477 echo "$as_me: failed program was:" >&5
13478 cat conftest.$ac_ext >&5
13480 rm -f conftest.$ac_objext conftest.$ac_ext
13481 CXXFLAGS="$cf_save_CFLAGS"
13482 echo "$as_me:13482: result: $INTEL_CPLUSPLUS" >&5
13483 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
13490 if test "$GCC" = yes ; then
13491 echo "$as_me:13491: checking if this is really Clang C++ compiler" >&5
13492 echo $ECHO_N "checking if this is really Clang C++ compiler... $ECHO_C" >&6
13493 cf_save_CFLAGS="$CXXFLAGS"
13494 CXXFLAGS="$CXXFLAGS -Qunused-arguments"
13495 cat >conftest.$ac_ext <<_ACEOF
13496 #line 13496 "configure"
13497 #include "confdefs.h"
13512 rm -f conftest.$ac_objext
13513 if { (eval echo "$as_me:13513: \"$ac_compile\"") >&5
13514 (eval $ac_compile) 2>&5
13516 echo "$as_me:13516: \$? = $ac_status" >&5
13517 (exit $ac_status); } &&
13518 { ac_try='test -s conftest.$ac_objext'
13519 { (eval echo "$as_me:13519: \"$ac_try\"") >&5
13520 (eval $ac_try) 2>&5
13522 echo "$as_me:13522: \$? = $ac_status" >&5
13523 (exit $ac_status); }; }; then
13524 CLANG_CPLUSPLUS=yes
13525 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
13528 echo "$as_me: failed program was:" >&5
13529 cat conftest.$ac_ext >&5
13531 rm -f conftest.$ac_objext conftest.$ac_ext
13532 CXXFLAGS="$cf_save_CFLAGS"
13533 echo "$as_me:13533: result: $CLANG_CPLUSPLUS" >&5
13534 echo "${ECHO_T}$CLANG_CPLUSPLUS" >&6
13538 ac_cpp='$CXXCPP $CPPFLAGS'
13539 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13540 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13541 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13542 ac_main_return=return
13544 cat > conftest.$ac_ext <<EOF
13545 #line 13545 "configure"
13546 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
13549 if test "$INTEL_CPLUSPLUS" = yes
13551 # The "-wdXXX" options suppress warnings:
13552 # remark #1419: external declaration in primary source file
13553 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
13554 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
13555 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
13556 # remark #193: zero used for undefined preprocessing identifier
13557 # remark #593: variable "curs_sb_left_arrow" was set but never used
13558 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
13559 # remark #869: parameter "tw" was never referenced
13560 # remark #981: operands are evaluated in unspecified order
13561 # warning #269: invalid format string conversion
13563 { echo "$as_me:13563: checking for $CC warning options..." >&5
13564 echo "$as_me: checking for $CC warning options..." >&6;}
13565 cf_save_CXXFLAGS="$CXXFLAGS"
13566 EXTRA_CXXFLAGS="-Wall"
13579 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
13580 if { (eval echo "$as_me:13580: \"$ac_compile\"") >&5
13581 (eval $ac_compile) 2>&5
13583 echo "$as_me:13583: \$? = $ac_status" >&5
13584 (exit $ac_status); }; then
13585 test -n "$verbose" && echo "$as_me:13585: result: ... -$cf_opt" >&5
13586 echo "${ECHO_T}... -$cf_opt" >&6
13587 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
13590 CXXFLAGS="$cf_save_CXXFLAGS"
13592 elif test "$GXX" = yes
13594 { echo "$as_me:13594: checking for $CXX warning options..." >&5
13595 echo "$as_me: checking for $CXX warning options..." >&6;}
13596 cf_save_CXXFLAGS="$CXXFLAGS"
13597 EXTRA_CXXFLAGS="-W -Wall"
13598 cf_gxx_extra_warnings=""
13599 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
13600 case "$GCC_VERSION" in
13604 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
13611 Wignored-qualifiers \
13613 Woverloaded-virtual \
13621 Wundef $cf_gxx_extra_warnings Wno-unused
13623 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
13624 if { (eval echo "$as_me:13624: \"$ac_compile\"") >&5
13625 (eval $ac_compile) 2>&5
13627 echo "$as_me:13627: \$? = $ac_status" >&5
13628 (exit $ac_status); }; then
13629 test -n "$verbose" && echo "$as_me:13629: result: ... -$cf_opt" >&5
13630 echo "${ECHO_T}... -$cf_opt" >&6
13631 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
13633 test -n "$verbose" && echo "$as_me:13633: result: ... no -$cf_opt" >&5
13634 echo "${ECHO_T}... no -$cf_opt" >&6
13637 CXXFLAGS="$cf_save_CXXFLAGS"
13642 ac_cpp='$CPP $CPPFLAGS'
13643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13646 ac_main_return=return
13651 if test "$GCC" = yes
13653 cat > conftest.i <<EOF
13655 #define GCC_PRINTF 0
13658 #define GCC_SCANF 0
13660 #ifndef GCC_NORETURN
13661 #define GCC_NORETURN /* nothing */
13664 #define GCC_UNUSED /* nothing */
13667 if test "$GCC" = yes
13669 { echo "$as_me:13669: checking for $CC __attribute__ directives..." >&5
13670 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
13671 cat > conftest.$ac_ext <<EOF
13672 #line 13672 "${as_me:-configure}"
13673 #include "confdefs.h"
13674 #include "conftest.h"
13675 #include "conftest.i"
13677 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
13679 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
13682 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
13684 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
13686 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
13687 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
13688 extern void foo(void) GCC_NORETURN;
13689 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
13691 cf_printf_attribute=no
13692 cf_scanf_attribute=no
13693 for cf_attribute in scanf printf unused noreturn
13696 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13698 cf_directive="__attribute__(($cf_attribute))"
13699 echo "checking for $CC $cf_directive" 1>&5
13701 case $cf_attribute in
13703 cf_printf_attribute=yes
13704 cat >conftest.h <<EOF
13705 #define GCC_$cf_ATTRIBUTE 1
13709 cf_scanf_attribute=yes
13710 cat >conftest.h <<EOF
13711 #define GCC_$cf_ATTRIBUTE 1
13715 cat >conftest.h <<EOF
13716 #define GCC_$cf_ATTRIBUTE $cf_directive
13721 if { (eval echo "$as_me:13721: \"$ac_compile\"") >&5
13722 (eval $ac_compile) 2>&5
13724 echo "$as_me:13724: \$? = $ac_status" >&5
13725 (exit $ac_status); }; then
13726 test -n "$verbose" && echo "$as_me:13726: result: ... $cf_attribute" >&5
13727 echo "${ECHO_T}... $cf_attribute" >&6
13728 cat conftest.h >>confdefs.h
13729 case $cf_attribute in
13732 cat >>confdefs.h <<EOF
13733 #define GCC_NORETURN $cf_directive
13738 cf_value='/* nothing */'
13739 if test "$cf_printf_attribute" != no ; then
13740 cf_value='__attribute__((format(printf,fmt,var)))'
13742 cat >>confdefs.h <<\EOF
13743 #define GCC_PRINTF 1
13748 cat >>confdefs.h <<EOF
13749 #define GCC_PRINTFLIKE(fmt,var) $cf_value
13754 cf_value='/* nothing */'
13755 if test "$cf_scanf_attribute" != no ; then
13756 cf_value='__attribute__((format(scanf,fmt,var)))'
13758 cat >>confdefs.h <<\EOF
13759 #define GCC_SCANF 1
13764 cat >>confdefs.h <<EOF
13765 #define GCC_SCANFLIKE(fmt,var) $cf_value
13771 cat >>confdefs.h <<EOF
13772 #define GCC_UNUSED $cf_directive
13780 fgrep define conftest.i >>confdefs.h
13785 echo "$as_me:13785: checking if you want to work around bogus compiler/loader warnings" >&5
13786 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
13788 # Check whether --enable-string-hacks or --disable-string-hacks was given.
13789 if test "${enable_string_hacks+set}" = set; then
13790 enableval="$enable_string_hacks"
13791 with_string_hacks=$enableval
13793 with_string_hacks=no
13795 echo "$as_me:13795: result: $with_string_hacks" >&5
13796 echo "${ECHO_T}$with_string_hacks" >&6
13798 if test "x$with_string_hacks" = "xyes"; then
13800 cat >>confdefs.h <<\EOF
13801 #define USE_STRING_HACKS 1
13804 { echo "$as_me:13804: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
13805 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
13806 echo "$as_me:13806: checking for strlcat" >&5
13807 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
13808 if test "${ac_cv_func_strlcat+set}" = set; then
13809 echo $ECHO_N "(cached) $ECHO_C" >&6
13811 cat >conftest.$ac_ext <<_ACEOF
13812 #line 13812 "configure"
13813 #include "confdefs.h"
13814 /* System header to define __stub macros and hopefully few prototypes,
13815 which can conflict with char strlcat (); below. */
13816 #include <assert.h>
13817 /* Override any gcc2 internal prototype to avoid an error. */
13821 /* We use char because int might match the return type of a gcc2
13822 builtin and then its argument prototype would still apply. */
13829 /* The GNU C library defines this for functions which it implements
13830 to always fail with ENOSYS. Some functions are actually named
13831 something starting with __ and the normal name is an alias. */
13832 #if defined (__stub_strlcat) || defined (__stub___strlcat)
13835 f = strlcat; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
13842 rm -f conftest.$ac_objext conftest$ac_exeext
13843 if { (eval echo "$as_me:13843: \"$ac_link\"") >&5
13844 (eval $ac_link) 2>&5
13846 echo "$as_me:13846: \$? = $ac_status" >&5
13847 (exit $ac_status); } &&
13848 { ac_try='test -s conftest$ac_exeext'
13849 { (eval echo "$as_me:13849: \"$ac_try\"") >&5
13850 (eval $ac_try) 2>&5
13852 echo "$as_me:13852: \$? = $ac_status" >&5
13853 (exit $ac_status); }; }; then
13854 ac_cv_func_strlcat=yes
13856 echo "$as_me: failed program was:" >&5
13857 cat conftest.$ac_ext >&5
13858 ac_cv_func_strlcat=no
13860 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13862 echo "$as_me:13862: result: $ac_cv_func_strlcat" >&5
13863 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
13864 if test $ac_cv_func_strlcat = yes; then
13866 cat >>confdefs.h <<\EOF
13867 #define HAVE_STRLCAT 1
13872 echo "$as_me:13872: checking for strlcat in -lbsd" >&5
13873 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
13874 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
13875 echo $ECHO_N "(cached) $ECHO_C" >&6
13877 ac_check_lib_save_LIBS=$LIBS
13879 cat >conftest.$ac_ext <<_ACEOF
13880 #line 13880 "configure"
13881 #include "confdefs.h"
13883 /* Override any gcc2 internal prototype to avoid an error. */
13887 /* We use char because int might match the return type of a gcc2
13888 builtin and then its argument prototype would still apply. */
13898 rm -f conftest.$ac_objext conftest$ac_exeext
13899 if { (eval echo "$as_me:13899: \"$ac_link\"") >&5
13900 (eval $ac_link) 2>&5
13902 echo "$as_me:13902: \$? = $ac_status" >&5
13903 (exit $ac_status); } &&
13904 { ac_try='test -s conftest$ac_exeext'
13905 { (eval echo "$as_me:13905: \"$ac_try\"") >&5
13906 (eval $ac_try) 2>&5
13908 echo "$as_me:13908: \$? = $ac_status" >&5
13909 (exit $ac_status); }; }; then
13910 ac_cv_lib_bsd_strlcat=yes
13912 echo "$as_me: failed program was:" >&5
13913 cat conftest.$ac_ext >&5
13914 ac_cv_lib_bsd_strlcat=no
13916 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13917 LIBS=$ac_check_lib_save_LIBS
13919 echo "$as_me:13919: result: $ac_cv_lib_bsd_strlcat" >&5
13920 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
13921 if test $ac_cv_lib_bsd_strlcat = yes; then
13923 cf_add_libs="-lbsd"
13924 # Filter out duplicates - this happens with badly-designed ".pc" files...
13925 for cf_add_1lib in $LIBS
13927 for cf_add_2lib in $cf_add_libs
13929 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13935 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13937 LIBS="$cf_add_libs"
13939 for ac_header in bsd/string.h
13941 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13942 echo "$as_me:13942: checking for $ac_header" >&5
13943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13945 echo $ECHO_N "(cached) $ECHO_C" >&6
13947 cat >conftest.$ac_ext <<_ACEOF
13948 #line 13948 "configure"
13949 #include "confdefs.h"
13950 #include <$ac_header>
13952 if { (eval echo "$as_me:13952: \"$ac_cpp conftest.$ac_ext\"") >&5
13953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13955 egrep -v '^ *\+' conftest.er1 >conftest.err
13957 cat conftest.err >&5
13958 echo "$as_me:13958: \$? = $ac_status" >&5
13959 (exit $ac_status); } >/dev/null; then
13960 if test -s conftest.err; then
13961 ac_cpp_err=$ac_c_preproc_warn_flag
13968 if test -z "$ac_cpp_err"; then
13969 eval "$as_ac_Header=yes"
13971 echo "$as_me: failed program was:" >&5
13972 cat conftest.$ac_ext >&5
13973 eval "$as_ac_Header=no"
13975 rm -f conftest.err conftest.$ac_ext
13977 echo "$as_me:13977: result: `eval echo '${'$as_ac_Header'}'`" >&5
13978 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13979 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13980 cat >>confdefs.h <<EOF
13981 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13987 cat >>confdefs.h <<\EOF
13988 #define HAVE_STRLCAT 1
13995 for ac_func in strlcpy snprintf
13997 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13998 echo "$as_me:13998: checking for $ac_func" >&5
13999 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14000 if eval "test \"\${$as_ac_var+set}\" = set"; then
14001 echo $ECHO_N "(cached) $ECHO_C" >&6
14003 cat >conftest.$ac_ext <<_ACEOF
14004 #line 14004 "configure"
14005 #include "confdefs.h"
14006 /* System header to define __stub macros and hopefully few prototypes,
14007 which can conflict with char $ac_func (); below. */
14008 #include <assert.h>
14009 /* Override any gcc2 internal prototype to avoid an error. */
14013 /* We use char because int might match the return type of a gcc2
14014 builtin and then its argument prototype would still apply. */
14021 /* The GNU C library defines this for functions which it implements
14022 to always fail with ENOSYS. Some functions are actually named
14023 something starting with __ and the normal name is an alias. */
14024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14027 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
14034 rm -f conftest.$ac_objext conftest$ac_exeext
14035 if { (eval echo "$as_me:14035: \"$ac_link\"") >&5
14036 (eval $ac_link) 2>&5
14038 echo "$as_me:14038: \$? = $ac_status" >&5
14039 (exit $ac_status); } &&
14040 { ac_try='test -s conftest$ac_exeext'
14041 { (eval echo "$as_me:14041: \"$ac_try\"") >&5
14042 (eval $ac_try) 2>&5
14044 echo "$as_me:14044: \$? = $ac_status" >&5
14045 (exit $ac_status); }; }; then
14046 eval "$as_ac_var=yes"
14048 echo "$as_me: failed program was:" >&5
14049 cat conftest.$ac_ext >&5
14050 eval "$as_ac_var=no"
14052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14054 echo "$as_me:14054: result: `eval echo '${'$as_ac_var'}'`" >&5
14055 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14056 if test `eval echo '${'$as_ac_var'}'` = yes; then
14057 cat >>confdefs.h <<EOF
14058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14066 ### use option --enable-assertions to turn on generation of assertion code
14067 echo "$as_me:14067: checking if you want to enable runtime assertions" >&5
14068 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
14070 # Check whether --enable-assertions or --disable-assertions was given.
14071 if test "${enable_assertions+set}" = set; then
14072 enableval="$enable_assertions"
14073 with_assertions=$enableval
14077 echo "$as_me:14077: result: $with_assertions" >&5
14078 echo "${ECHO_T}$with_assertions" >&6
14081 if test "$with_assertions" = no
14083 CPPFLAGS="$CPPFLAGS -DNDEBUG"
14086 ADAFLAGS="$ADAFLAGS -gnata"
14091 ### use option --disable-leaks to suppress "permanent" leaks, for testing
14093 echo "$as_me:14093: checking if you want to use dmalloc for testing" >&5
14094 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
14096 # Check whether --with-dmalloc or --without-dmalloc was given.
14097 if test "${with_dmalloc+set}" = set; then
14098 withval="$with_dmalloc"
14100 cat >>confdefs.h <<EOF
14101 #define USE_DMALLOC 1
14104 : ${with_cflags:=-g}
14105 : ${with_no_leaks:=yes}
14110 echo "$as_me:14110: result: ${with_dmalloc:-no}" >&5
14111 echo "${ECHO_T}${with_dmalloc:-no}" >&6
14113 case .$with_cflags in
14123 cf_new_extra_cppflags=
14125 for cf_add_cflags in -g
14127 case $cf_fix_cppflags in
14129 case $cf_add_cflags in
14130 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14131 case $cf_add_cflags in
14133 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14135 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14136 && test -z "${cf_tst_cflags}" \
14137 && cf_fix_cppflags=yes
14139 if test $cf_fix_cppflags = yes ; then
14140 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14142 elif test "${cf_tst_cflags}" = "\"'" ; then
14143 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14148 case "$CPPFLAGS" in
14152 case $cf_add_cflags in
14154 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14156 CPPFLAGS=`echo "$CPPFLAGS" | \
14157 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14158 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14162 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
14167 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
14172 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14174 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14176 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14177 && test -z "${cf_tst_cflags}" \
14178 && cf_fix_cppflags=no
14183 if test -n "$cf_new_cflags" ; then
14185 CFLAGS="$CFLAGS $cf_new_cflags"
14188 if test -n "$cf_new_cppflags" ; then
14190 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
14193 if test -n "$cf_new_extra_cppflags" ; then
14195 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
14203 if test "$with_dmalloc" = yes ; then
14204 echo "$as_me:14204: checking for dmalloc.h" >&5
14205 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
14206 if test "${ac_cv_header_dmalloc_h+set}" = set; then
14207 echo $ECHO_N "(cached) $ECHO_C" >&6
14209 cat >conftest.$ac_ext <<_ACEOF
14210 #line 14210 "configure"
14211 #include "confdefs.h"
14212 #include <dmalloc.h>
14214 if { (eval echo "$as_me:14214: \"$ac_cpp conftest.$ac_ext\"") >&5
14215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14217 egrep -v '^ *\+' conftest.er1 >conftest.err
14219 cat conftest.err >&5
14220 echo "$as_me:14220: \$? = $ac_status" >&5
14221 (exit $ac_status); } >/dev/null; then
14222 if test -s conftest.err; then
14223 ac_cpp_err=$ac_c_preproc_warn_flag
14230 if test -z "$ac_cpp_err"; then
14231 ac_cv_header_dmalloc_h=yes
14233 echo "$as_me: failed program was:" >&5
14234 cat conftest.$ac_ext >&5
14235 ac_cv_header_dmalloc_h=no
14237 rm -f conftest.err conftest.$ac_ext
14239 echo "$as_me:14239: result: $ac_cv_header_dmalloc_h" >&5
14240 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
14241 if test $ac_cv_header_dmalloc_h = yes; then
14243 echo "$as_me:14243: checking for dmalloc_debug in -ldmalloc" >&5
14244 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
14245 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
14246 echo $ECHO_N "(cached) $ECHO_C" >&6
14248 ac_check_lib_save_LIBS=$LIBS
14249 LIBS="-ldmalloc $LIBS"
14250 cat >conftest.$ac_ext <<_ACEOF
14251 #line 14251 "configure"
14252 #include "confdefs.h"
14254 /* Override any gcc2 internal prototype to avoid an error. */
14258 /* We use char because int might match the return type of a gcc2
14259 builtin and then its argument prototype would still apply. */
14260 char dmalloc_debug ();
14269 rm -f conftest.$ac_objext conftest$ac_exeext
14270 if { (eval echo "$as_me:14270: \"$ac_link\"") >&5
14271 (eval $ac_link) 2>&5
14273 echo "$as_me:14273: \$? = $ac_status" >&5
14274 (exit $ac_status); } &&
14275 { ac_try='test -s conftest$ac_exeext'
14276 { (eval echo "$as_me:14276: \"$ac_try\"") >&5
14277 (eval $ac_try) 2>&5
14279 echo "$as_me:14279: \$? = $ac_status" >&5
14280 (exit $ac_status); }; }; then
14281 ac_cv_lib_dmalloc_dmalloc_debug=yes
14283 echo "$as_me: failed program was:" >&5
14284 cat conftest.$ac_ext >&5
14285 ac_cv_lib_dmalloc_dmalloc_debug=no
14287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14288 LIBS=$ac_check_lib_save_LIBS
14290 echo "$as_me:14290: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
14291 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
14292 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
14293 cat >>confdefs.h <<EOF
14294 #define HAVE_LIBDMALLOC 1
14297 LIBS="-ldmalloc $LIBS"
14305 echo "$as_me:14305: checking if you want to use dbmalloc for testing" >&5
14306 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
14308 # Check whether --with-dbmalloc or --without-dbmalloc was given.
14309 if test "${with_dbmalloc+set}" = set; then
14310 withval="$with_dbmalloc"
14312 cat >>confdefs.h <<EOF
14313 #define USE_DBMALLOC 1
14316 : ${with_cflags:=-g}
14317 : ${with_no_leaks:=yes}
14322 echo "$as_me:14322: result: ${with_dbmalloc:-no}" >&5
14323 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
14325 case .$with_cflags in
14335 cf_new_extra_cppflags=
14337 for cf_add_cflags in -g
14339 case $cf_fix_cppflags in
14341 case $cf_add_cflags in
14342 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14343 case $cf_add_cflags in
14345 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14347 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14348 && test -z "${cf_tst_cflags}" \
14349 && cf_fix_cppflags=yes
14351 if test $cf_fix_cppflags = yes ; then
14352 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14354 elif test "${cf_tst_cflags}" = "\"'" ; then
14355 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14360 case "$CPPFLAGS" in
14364 case $cf_add_cflags in
14366 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14368 CPPFLAGS=`echo "$CPPFLAGS" | \
14369 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14370 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14374 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
14379 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
14384 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14386 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14388 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14389 && test -z "${cf_tst_cflags}" \
14390 && cf_fix_cppflags=no
14395 if test -n "$cf_new_cflags" ; then
14397 CFLAGS="$CFLAGS $cf_new_cflags"
14400 if test -n "$cf_new_cppflags" ; then
14402 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
14405 if test -n "$cf_new_extra_cppflags" ; then
14407 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
14415 if test "$with_dbmalloc" = yes ; then
14416 echo "$as_me:14416: checking for dbmalloc.h" >&5
14417 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
14418 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
14419 echo $ECHO_N "(cached) $ECHO_C" >&6
14421 cat >conftest.$ac_ext <<_ACEOF
14422 #line 14422 "configure"
14423 #include "confdefs.h"
14424 #include <dbmalloc.h>
14426 if { (eval echo "$as_me:14426: \"$ac_cpp conftest.$ac_ext\"") >&5
14427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14429 egrep -v '^ *\+' conftest.er1 >conftest.err
14431 cat conftest.err >&5
14432 echo "$as_me:14432: \$? = $ac_status" >&5
14433 (exit $ac_status); } >/dev/null; then
14434 if test -s conftest.err; then
14435 ac_cpp_err=$ac_c_preproc_warn_flag
14442 if test -z "$ac_cpp_err"; then
14443 ac_cv_header_dbmalloc_h=yes
14445 echo "$as_me: failed program was:" >&5
14446 cat conftest.$ac_ext >&5
14447 ac_cv_header_dbmalloc_h=no
14449 rm -f conftest.err conftest.$ac_ext
14451 echo "$as_me:14451: result: $ac_cv_header_dbmalloc_h" >&5
14452 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
14453 if test $ac_cv_header_dbmalloc_h = yes; then
14455 echo "$as_me:14455: checking for debug_malloc in -ldbmalloc" >&5
14456 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
14457 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
14458 echo $ECHO_N "(cached) $ECHO_C" >&6
14460 ac_check_lib_save_LIBS=$LIBS
14461 LIBS="-ldbmalloc $LIBS"
14462 cat >conftest.$ac_ext <<_ACEOF
14463 #line 14463 "configure"
14464 #include "confdefs.h"
14466 /* Override any gcc2 internal prototype to avoid an error. */
14470 /* We use char because int might match the return type of a gcc2
14471 builtin and then its argument prototype would still apply. */
14472 char debug_malloc ();
14481 rm -f conftest.$ac_objext conftest$ac_exeext
14482 if { (eval echo "$as_me:14482: \"$ac_link\"") >&5
14483 (eval $ac_link) 2>&5
14485 echo "$as_me:14485: \$? = $ac_status" >&5
14486 (exit $ac_status); } &&
14487 { ac_try='test -s conftest$ac_exeext'
14488 { (eval echo "$as_me:14488: \"$ac_try\"") >&5
14489 (eval $ac_try) 2>&5
14491 echo "$as_me:14491: \$? = $ac_status" >&5
14492 (exit $ac_status); }; }; then
14493 ac_cv_lib_dbmalloc_debug_malloc=yes
14495 echo "$as_me: failed program was:" >&5
14496 cat conftest.$ac_ext >&5
14497 ac_cv_lib_dbmalloc_debug_malloc=no
14499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14500 LIBS=$ac_check_lib_save_LIBS
14502 echo "$as_me:14502: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
14503 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
14504 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
14505 cat >>confdefs.h <<EOF
14506 #define HAVE_LIBDBMALLOC 1
14509 LIBS="-ldbmalloc $LIBS"
14517 echo "$as_me:14517: checking if you want to use valgrind for testing" >&5
14518 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
14520 # Check whether --with-valgrind or --without-valgrind was given.
14521 if test "${with_valgrind+set}" = set; then
14522 withval="$with_valgrind"
14524 cat >>confdefs.h <<EOF
14525 #define USE_VALGRIND 1
14528 : ${with_cflags:=-g}
14529 : ${with_no_leaks:=yes}
14534 echo "$as_me:14534: result: ${with_valgrind:-no}" >&5
14535 echo "${ECHO_T}${with_valgrind:-no}" >&6
14537 case .$with_cflags in
14547 cf_new_extra_cppflags=
14549 for cf_add_cflags in -g
14551 case $cf_fix_cppflags in
14553 case $cf_add_cflags in
14554 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14555 case $cf_add_cflags in
14557 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14559 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14560 && test -z "${cf_tst_cflags}" \
14561 && cf_fix_cppflags=yes
14563 if test $cf_fix_cppflags = yes ; then
14564 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14566 elif test "${cf_tst_cflags}" = "\"'" ; then
14567 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14572 case "$CPPFLAGS" in
14576 case $cf_add_cflags in
14578 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14580 CPPFLAGS=`echo "$CPPFLAGS" | \
14581 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14582 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14586 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
14591 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
14596 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14598 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14600 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14601 && test -z "${cf_tst_cflags}" \
14602 && cf_fix_cppflags=no
14607 if test -n "$cf_new_cflags" ; then
14609 CFLAGS="$CFLAGS $cf_new_cflags"
14612 if test -n "$cf_new_cppflags" ; then
14614 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
14617 if test -n "$cf_new_extra_cppflags" ; then
14619 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
14627 echo "$as_me:14627: checking if you want to perform memory-leak testing" >&5
14628 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
14630 # Check whether --enable-leaks or --disable-leaks was given.
14631 if test "${enable_leaks+set}" = set; then
14632 enableval="$enable_leaks"
14633 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
14635 : ${with_no_leaks:=no}
14637 echo "$as_me:14637: result: $with_no_leaks" >&5
14638 echo "${ECHO_T}$with_no_leaks" >&6
14640 if test "$with_no_leaks" = yes ; then
14642 cat >>confdefs.h <<\EOF
14646 cat >>confdefs.h <<\EOF
14647 #define YY_NO_LEAKS 1
14652 cat >>confdefs.h <<\EOF
14653 #define HAVE_NC_ALLOC_H 1
14656 ### use option --enable-expanded to generate certain macros as functions
14658 # Check whether --enable-expanded or --disable-expanded was given.
14659 if test "${enable_expanded+set}" = set; then
14660 enableval="$enable_expanded"
14661 test "x$enableval" = xyes &&
14662 cat >>confdefs.h <<\EOF
14663 #define NCURSES_EXPANDED 1
14668 ### use option --disable-macros to suppress macros in favor of functions
14670 # Check whether --enable-macros or --disable-macros was given.
14671 if test "${enable_macros+set}" = set; then
14672 enableval="$enable_macros"
14673 test "$enableval" = no &&
14674 cat >>confdefs.h <<\EOF
14675 #define NCURSES_NOMACROS 1
14680 # Normally we only add trace() to the debug-library. Allow this to be
14681 # extended to all models of the ncurses library:
14683 case "$CFLAGS $CPPFLAGS" in
14689 echo "$as_me:14689: checking whether to add trace feature to all models" >&5
14690 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
14692 # Check whether --with-trace or --without-trace was given.
14693 if test "${with_trace+set}" = set; then
14694 withval="$with_trace"
14695 cf_with_trace=$withval
14697 cf_with_trace=$cf_all_traces
14699 echo "$as_me:14699: result: $cf_with_trace" >&5
14700 echo "${ECHO_T}$cf_with_trace" >&6
14702 if test "x$cf_with_trace" = xyes ; then
14709 cf_new_extra_cppflags=
14711 for cf_add_cflags in -DTRACE
14713 case $cf_fix_cppflags in
14715 case $cf_add_cflags in
14716 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14717 case $cf_add_cflags in
14719 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14721 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14722 && test -z "${cf_tst_cflags}" \
14723 && cf_fix_cppflags=yes
14725 if test $cf_fix_cppflags = yes ; then
14726 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14728 elif test "${cf_tst_cflags}" = "\"'" ; then
14729 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14734 case "$CPPFLAGS" in
14738 case $cf_add_cflags in
14740 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14742 CPPFLAGS=`echo "$CPPFLAGS" | \
14743 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14744 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14748 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
14753 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
14758 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
14760 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14762 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14763 && test -z "${cf_tst_cflags}" \
14764 && cf_fix_cppflags=no
14769 if test -n "$cf_new_cflags" ; then
14771 CFLAGS="$CFLAGS $cf_new_cflags"
14774 if test -n "$cf_new_cppflags" ; then
14776 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
14779 if test -n "$cf_new_extra_cppflags" ; then
14781 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
14789 echo "$as_me:14789: checking if we want to use GNAT projects" >&5
14790 echo $ECHO_N "checking if we want to use GNAT projects... $ECHO_C" >&6
14792 # Check whether --enable-gnat-projects or --disable-gnat-projects was given.
14793 if test "${enable_gnat_projects+set}" = set; then
14794 enableval="$enable_gnat_projects"
14795 test "$enableval" != no && enableval=yes
14796 if test "$enableval" != "yes" ; then
14797 enable_gnat_projects=no
14799 enable_gnat_projects=yes
14803 enable_gnat_projects=yes
14806 echo "$as_me:14806: result: $enable_gnat_projects" >&5
14807 echo "${ECHO_T}$enable_gnat_projects" >&6
14809 ### Checks for libraries.
14810 case $cf_cv_system_name in
14811 (*mingw32*|*mingw64*)
14812 CPPFLAGS="$CPPFLAGS -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN"
14813 LIBS=" -lpsapi $LIBS"
14816 echo "$as_me:14816: checking for gettimeofday" >&5
14817 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
14818 if test "${ac_cv_func_gettimeofday+set}" = set; then
14819 echo $ECHO_N "(cached) $ECHO_C" >&6
14821 cat >conftest.$ac_ext <<_ACEOF
14822 #line 14822 "configure"
14823 #include "confdefs.h"
14824 /* System header to define __stub macros and hopefully few prototypes,
14825 which can conflict with char gettimeofday (); below. */
14826 #include <assert.h>
14827 /* Override any gcc2 internal prototype to avoid an error. */
14831 /* We use char because int might match the return type of a gcc2
14832 builtin and then its argument prototype would still apply. */
14833 char gettimeofday ();
14839 /* The GNU C library defines this for functions which it implements
14840 to always fail with ENOSYS. Some functions are actually named
14841 something starting with __ and the normal name is an alias. */
14842 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
14845 f = gettimeofday; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
14852 rm -f conftest.$ac_objext conftest$ac_exeext
14853 if { (eval echo "$as_me:14853: \"$ac_link\"") >&5
14854 (eval $ac_link) 2>&5
14856 echo "$as_me:14856: \$? = $ac_status" >&5
14857 (exit $ac_status); } &&
14858 { ac_try='test -s conftest$ac_exeext'
14859 { (eval echo "$as_me:14859: \"$ac_try\"") >&5
14860 (eval $ac_try) 2>&5
14862 echo "$as_me:14862: \$? = $ac_status" >&5
14863 (exit $ac_status); }; }; then
14864 ac_cv_func_gettimeofday=yes
14866 echo "$as_me: failed program was:" >&5
14867 cat conftest.$ac_ext >&5
14868 ac_cv_func_gettimeofday=no
14870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14872 echo "$as_me:14872: result: $ac_cv_func_gettimeofday" >&5
14873 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
14874 if test $ac_cv_func_gettimeofday = yes; then
14876 cat >>confdefs.h <<\EOF
14877 #define HAVE_GETTIMEOFDAY 1
14882 echo "$as_me:14882: checking for gettimeofday in -lbsd" >&5
14883 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
14884 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
14885 echo $ECHO_N "(cached) $ECHO_C" >&6
14887 ac_check_lib_save_LIBS=$LIBS
14889 cat >conftest.$ac_ext <<_ACEOF
14890 #line 14890 "configure"
14891 #include "confdefs.h"
14893 /* Override any gcc2 internal prototype to avoid an error. */
14897 /* We use char because int might match the return type of a gcc2
14898 builtin and then its argument prototype would still apply. */
14899 char gettimeofday ();
14908 rm -f conftest.$ac_objext conftest$ac_exeext
14909 if { (eval echo "$as_me:14909: \"$ac_link\"") >&5
14910 (eval $ac_link) 2>&5
14912 echo "$as_me:14912: \$? = $ac_status" >&5
14913 (exit $ac_status); } &&
14914 { ac_try='test -s conftest$ac_exeext'
14915 { (eval echo "$as_me:14915: \"$ac_try\"") >&5
14916 (eval $ac_try) 2>&5
14918 echo "$as_me:14918: \$? = $ac_status" >&5
14919 (exit $ac_status); }; }; then
14920 ac_cv_lib_bsd_gettimeofday=yes
14922 echo "$as_me: failed program was:" >&5
14923 cat conftest.$ac_ext >&5
14924 ac_cv_lib_bsd_gettimeofday=no
14926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14927 LIBS=$ac_check_lib_save_LIBS
14929 echo "$as_me:14929: result: $ac_cv_lib_bsd_gettimeofday" >&5
14930 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
14931 if test $ac_cv_lib_bsd_gettimeofday = yes; then
14933 cat >>confdefs.h <<\EOF
14934 #define HAVE_GETTIMEOFDAY 1
14937 cf_add_libs="-lbsd"
14938 # Filter out duplicates - this happens with badly-designed ".pc" files...
14939 for cf_add_1lib in $LIBS
14941 for cf_add_2lib in $cf_add_libs
14943 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14949 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14951 LIBS="$cf_add_libs"
14959 echo "$as_me:14959: checking if -lm needed for math functions" >&5
14960 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
14961 if test "${cf_cv_need_libm+set}" = set; then
14962 echo $ECHO_N "(cached) $ECHO_C" >&6
14965 cat >conftest.$ac_ext <<_ACEOF
14966 #line 14966 "configure"
14967 #include "confdefs.h"
14975 double x = rand(); printf("result = %g\n", pow(sin(x),x))
14980 rm -f conftest.$ac_objext conftest$ac_exeext
14981 if { (eval echo "$as_me:14981: \"$ac_link\"") >&5
14982 (eval $ac_link) 2>&5
14984 echo "$as_me:14984: \$? = $ac_status" >&5
14985 (exit $ac_status); } &&
14986 { ac_try='test -s conftest$ac_exeext'
14987 { (eval echo "$as_me:14987: \"$ac_try\"") >&5
14988 (eval $ac_try) 2>&5
14990 echo "$as_me:14990: \$? = $ac_status" >&5
14991 (exit $ac_status); }; }; then
14994 echo "$as_me: failed program was:" >&5
14995 cat conftest.$ac_ext >&5
14996 cf_cv_need_libm=yes
14998 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15000 echo "$as_me:15000: result: $cf_cv_need_libm" >&5
15001 echo "${ECHO_T}$cf_cv_need_libm" >&6
15002 if test "$cf_cv_need_libm" = yes
15007 ### Checks for header files.
15008 echo "$as_me:15008: checking for ANSI C header files" >&5
15009 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
15010 if test "${ac_cv_header_stdc+set}" = set; then
15011 echo $ECHO_N "(cached) $ECHO_C" >&6
15013 cat >conftest.$ac_ext <<_ACEOF
15014 #line 15014 "configure"
15015 #include "confdefs.h"
15016 #include <stdlib.h>
15017 #include <stdarg.h>
15018 #include <string.h>
15022 if { (eval echo "$as_me:15022: \"$ac_cpp conftest.$ac_ext\"") >&5
15023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15025 egrep -v '^ *\+' conftest.er1 >conftest.err
15027 cat conftest.err >&5
15028 echo "$as_me:15028: \$? = $ac_status" >&5
15029 (exit $ac_status); } >/dev/null; then
15030 if test -s conftest.err; then
15031 ac_cpp_err=$ac_c_preproc_warn_flag
15038 if test -z "$ac_cpp_err"; then
15039 ac_cv_header_stdc=yes
15041 echo "$as_me: failed program was:" >&5
15042 cat conftest.$ac_ext >&5
15043 ac_cv_header_stdc=no
15045 rm -f conftest.err conftest.$ac_ext
15047 if test $ac_cv_header_stdc = yes; then
15048 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15049 cat >conftest.$ac_ext <<_ACEOF
15050 #line 15050 "configure"
15051 #include "confdefs.h"
15052 #include <string.h>
15055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15056 egrep "memchr" >/dev/null 2>&1; then
15059 ac_cv_header_stdc=no
15065 if test $ac_cv_header_stdc = yes; then
15066 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15067 cat >conftest.$ac_ext <<_ACEOF
15068 #line 15068 "configure"
15069 #include "confdefs.h"
15070 #include <stdlib.h>
15073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15074 egrep "free" >/dev/null 2>&1; then
15077 ac_cv_header_stdc=no
15083 if test $ac_cv_header_stdc = yes; then
15084 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15085 if test "$cross_compiling" = yes; then
15088 cat >conftest.$ac_ext <<_ACEOF
15089 #line 15089 "configure"
15090 #include "confdefs.h"
15092 #if ((' ' & 0x0FF) == 0x020)
15093 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15094 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15096 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
15097 || ('j' <= (c) && (c) <= 'r') \
15098 || ('s' <= (c) && (c) <= 'z'))
15099 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15102 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15107 for (i = 0; i < 256; i++)
15108 if (XOR (islower (i), ISLOWER (i))
15109 || toupper (i) != TOUPPER (i))
15110 $ac_main_return(2);
15111 $ac_main_return (0);
15114 rm -f conftest$ac_exeext
15115 if { (eval echo "$as_me:15115: \"$ac_link\"") >&5
15116 (eval $ac_link) 2>&5
15118 echo "$as_me:15118: \$? = $ac_status" >&5
15119 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15120 { (eval echo "$as_me:15120: \"$ac_try\"") >&5
15121 (eval $ac_try) 2>&5
15123 echo "$as_me:15123: \$? = $ac_status" >&5
15124 (exit $ac_status); }; }; then
15127 echo "$as_me: program exited with status $ac_status" >&5
15128 echo "$as_me: failed program was:" >&5
15129 cat conftest.$ac_ext >&5
15130 ac_cv_header_stdc=no
15132 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15136 echo "$as_me:15136: result: $ac_cv_header_stdc" >&5
15137 echo "${ECHO_T}$ac_cv_header_stdc" >&6
15138 if test $ac_cv_header_stdc = yes; then
15140 cat >>confdefs.h <<\EOF
15141 #define STDC_HEADERS 1
15146 ac_header_dirent=no
15147 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15148 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15149 echo "$as_me:15149: checking for $ac_hdr that defines DIR" >&5
15150 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
15151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15152 echo $ECHO_N "(cached) $ECHO_C" >&6
15154 cat >conftest.$ac_ext <<_ACEOF
15155 #line 15155 "configure"
15156 #include "confdefs.h"
15157 #include <sys/types.h>
15169 rm -f conftest.$ac_objext
15170 if { (eval echo "$as_me:15170: \"$ac_compile\"") >&5
15171 (eval $ac_compile) 2>&5
15173 echo "$as_me:15173: \$? = $ac_status" >&5
15174 (exit $ac_status); } &&
15175 { ac_try='test -s conftest.$ac_objext'
15176 { (eval echo "$as_me:15176: \"$ac_try\"") >&5
15177 (eval $ac_try) 2>&5
15179 echo "$as_me:15179: \$? = $ac_status" >&5
15180 (exit $ac_status); }; }; then
15181 eval "$as_ac_Header=yes"
15183 echo "$as_me: failed program was:" >&5
15184 cat conftest.$ac_ext >&5
15185 eval "$as_ac_Header=no"
15187 rm -f conftest.$ac_objext conftest.$ac_ext
15189 echo "$as_me:15189: result: `eval echo '${'$as_ac_Header'}'`" >&5
15190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15191 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15192 cat >>confdefs.h <<EOF
15193 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15196 ac_header_dirent=$ac_hdr; break
15200 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15201 if test $ac_header_dirent = dirent.h; then
15202 echo "$as_me:15202: checking for opendir in -ldir" >&5
15203 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
15204 if test "${ac_cv_lib_dir_opendir+set}" = set; then
15205 echo $ECHO_N "(cached) $ECHO_C" >&6
15207 ac_check_lib_save_LIBS=$LIBS
15209 cat >conftest.$ac_ext <<_ACEOF
15210 #line 15210 "configure"
15211 #include "confdefs.h"
15213 /* Override any gcc2 internal prototype to avoid an error. */
15217 /* We use char because int might match the return type of a gcc2
15218 builtin and then its argument prototype would still apply. */
15228 rm -f conftest.$ac_objext conftest$ac_exeext
15229 if { (eval echo "$as_me:15229: \"$ac_link\"") >&5
15230 (eval $ac_link) 2>&5
15232 echo "$as_me:15232: \$? = $ac_status" >&5
15233 (exit $ac_status); } &&
15234 { ac_try='test -s conftest$ac_exeext'
15235 { (eval echo "$as_me:15235: \"$ac_try\"") >&5
15236 (eval $ac_try) 2>&5
15238 echo "$as_me:15238: \$? = $ac_status" >&5
15239 (exit $ac_status); }; }; then
15240 ac_cv_lib_dir_opendir=yes
15242 echo "$as_me: failed program was:" >&5
15243 cat conftest.$ac_ext >&5
15244 ac_cv_lib_dir_opendir=no
15246 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15247 LIBS=$ac_check_lib_save_LIBS
15249 echo "$as_me:15249: result: $ac_cv_lib_dir_opendir" >&5
15250 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
15251 if test $ac_cv_lib_dir_opendir = yes; then
15256 echo "$as_me:15256: checking for opendir in -lx" >&5
15257 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
15258 if test "${ac_cv_lib_x_opendir+set}" = set; then
15259 echo $ECHO_N "(cached) $ECHO_C" >&6
15261 ac_check_lib_save_LIBS=$LIBS
15263 cat >conftest.$ac_ext <<_ACEOF
15264 #line 15264 "configure"
15265 #include "confdefs.h"
15267 /* Override any gcc2 internal prototype to avoid an error. */
15271 /* We use char because int might match the return type of a gcc2
15272 builtin and then its argument prototype would still apply. */
15282 rm -f conftest.$ac_objext conftest$ac_exeext
15283 if { (eval echo "$as_me:15283: \"$ac_link\"") >&5
15284 (eval $ac_link) 2>&5
15286 echo "$as_me:15286: \$? = $ac_status" >&5
15287 (exit $ac_status); } &&
15288 { ac_try='test -s conftest$ac_exeext'
15289 { (eval echo "$as_me:15289: \"$ac_try\"") >&5
15290 (eval $ac_try) 2>&5
15292 echo "$as_me:15292: \$? = $ac_status" >&5
15293 (exit $ac_status); }; }; then
15294 ac_cv_lib_x_opendir=yes
15296 echo "$as_me: failed program was:" >&5
15297 cat conftest.$ac_ext >&5
15298 ac_cv_lib_x_opendir=no
15300 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15301 LIBS=$ac_check_lib_save_LIBS
15303 echo "$as_me:15303: result: $ac_cv_lib_x_opendir" >&5
15304 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
15305 if test $ac_cv_lib_x_opendir = yes; then
15311 echo "$as_me:15311: checking whether time.h and sys/time.h may both be included" >&5
15312 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
15313 if test "${ac_cv_header_time+set}" = set; then
15314 echo $ECHO_N "(cached) $ECHO_C" >&6
15316 cat >conftest.$ac_ext <<_ACEOF
15317 #line 15317 "configure"
15318 #include "confdefs.h"
15319 #include <sys/types.h>
15320 #include <sys/time.h>
15326 if ((struct tm *) 0)
15332 rm -f conftest.$ac_objext
15333 if { (eval echo "$as_me:15333: \"$ac_compile\"") >&5
15334 (eval $ac_compile) 2>&5
15336 echo "$as_me:15336: \$? = $ac_status" >&5
15337 (exit $ac_status); } &&
15338 { ac_try='test -s conftest.$ac_objext'
15339 { (eval echo "$as_me:15339: \"$ac_try\"") >&5
15340 (eval $ac_try) 2>&5
15342 echo "$as_me:15342: \$? = $ac_status" >&5
15343 (exit $ac_status); }; }; then
15344 ac_cv_header_time=yes
15346 echo "$as_me: failed program was:" >&5
15347 cat conftest.$ac_ext >&5
15348 ac_cv_header_time=no
15350 rm -f conftest.$ac_objext conftest.$ac_ext
15352 echo "$as_me:15352: result: $ac_cv_header_time" >&5
15353 echo "${ECHO_T}$ac_cv_header_time" >&6
15354 if test $ac_cv_header_time = yes; then
15356 cat >>confdefs.h <<\EOF
15357 #define TIME_WITH_SYS_TIME 1
15364 cf_regex_libs="regex re"
15367 cf_regex_libs="gnurx $cf_regex_libs"
15371 echo "$as_me:15371: checking for regcomp" >&5
15372 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
15373 if test "${ac_cv_func_regcomp+set}" = set; then
15374 echo $ECHO_N "(cached) $ECHO_C" >&6
15376 cat >conftest.$ac_ext <<_ACEOF
15377 #line 15377 "configure"
15378 #include "confdefs.h"
15379 /* System header to define __stub macros and hopefully few prototypes,
15380 which can conflict with char regcomp (); below. */
15381 #include <assert.h>
15382 /* Override any gcc2 internal prototype to avoid an error. */
15386 /* We use char because int might match the return type of a gcc2
15387 builtin and then its argument prototype would still apply. */
15394 /* The GNU C library defines this for functions which it implements
15395 to always fail with ENOSYS. Some functions are actually named
15396 something starting with __ and the normal name is an alias. */
15397 #if defined (__stub_regcomp) || defined (__stub___regcomp)
15400 f = regcomp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
15407 rm -f conftest.$ac_objext conftest$ac_exeext
15408 if { (eval echo "$as_me:15408: \"$ac_link\"") >&5
15409 (eval $ac_link) 2>&5
15411 echo "$as_me:15411: \$? = $ac_status" >&5
15412 (exit $ac_status); } &&
15413 { ac_try='test -s conftest$ac_exeext'
15414 { (eval echo "$as_me:15414: \"$ac_try\"") >&5
15415 (eval $ac_try) 2>&5
15417 echo "$as_me:15417: \$? = $ac_status" >&5
15418 (exit $ac_status); }; }; then
15419 ac_cv_func_regcomp=yes
15421 echo "$as_me: failed program was:" >&5
15422 cat conftest.$ac_ext >&5
15423 ac_cv_func_regcomp=no
15425 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15427 echo "$as_me:15427: result: $ac_cv_func_regcomp" >&5
15428 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
15429 if test $ac_cv_func_regcomp = yes; then
15430 cf_regex_func=regcomp
15433 for cf_regex_lib in $cf_regex_libs
15435 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
15436 echo "$as_me:15436: checking for regcomp in -l$cf_regex_lib" >&5
15437 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
15438 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
15439 echo $ECHO_N "(cached) $ECHO_C" >&6
15441 ac_check_lib_save_LIBS=$LIBS
15442 LIBS="-l$cf_regex_lib $LIBS"
15443 cat >conftest.$ac_ext <<_ACEOF
15444 #line 15444 "configure"
15445 #include "confdefs.h"
15447 /* Override any gcc2 internal prototype to avoid an error. */
15451 /* We use char because int might match the return type of a gcc2
15452 builtin and then its argument prototype would still apply. */
15462 rm -f conftest.$ac_objext conftest$ac_exeext
15463 if { (eval echo "$as_me:15463: \"$ac_link\"") >&5
15464 (eval $ac_link) 2>&5
15466 echo "$as_me:15466: \$? = $ac_status" >&5
15467 (exit $ac_status); } &&
15468 { ac_try='test -s conftest$ac_exeext'
15469 { (eval echo "$as_me:15469: \"$ac_try\"") >&5
15470 (eval $ac_try) 2>&5
15472 echo "$as_me:15472: \$? = $ac_status" >&5
15473 (exit $ac_status); }; }; then
15474 eval "$as_ac_Lib=yes"
15476 echo "$as_me: failed program was:" >&5
15477 cat conftest.$ac_ext >&5
15478 eval "$as_ac_Lib=no"
15480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15481 LIBS=$ac_check_lib_save_LIBS
15483 echo "$as_me:15483: result: `eval echo '${'$as_ac_Lib'}'`" >&5
15484 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
15485 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
15487 cf_add_libs="-l$cf_regex_lib"
15488 # Filter out duplicates - this happens with badly-designed ".pc" files...
15489 for cf_add_1lib in $LIBS
15491 for cf_add_2lib in $cf_add_libs
15493 if test "x$cf_add_1lib" = "x$cf_add_2lib"
15499 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
15501 LIBS="$cf_add_libs"
15503 cf_regex_func=regcomp
15511 if test "$cf_regex_func" = no ; then
15512 echo "$as_me:15512: checking for compile" >&5
15513 echo $ECHO_N "checking for compile... $ECHO_C" >&6
15514 if test "${ac_cv_func_compile+set}" = set; then
15515 echo $ECHO_N "(cached) $ECHO_C" >&6
15517 cat >conftest.$ac_ext <<_ACEOF
15518 #line 15518 "configure"
15519 #include "confdefs.h"
15520 /* System header to define __stub macros and hopefully few prototypes,
15521 which can conflict with char compile (); below. */
15522 #include <assert.h>
15523 /* Override any gcc2 internal prototype to avoid an error. */
15527 /* We use char because int might match the return type of a gcc2
15528 builtin and then its argument prototype would still apply. */
15535 /* The GNU C library defines this for functions which it implements
15536 to always fail with ENOSYS. Some functions are actually named
15537 something starting with __ and the normal name is an alias. */
15538 #if defined (__stub_compile) || defined (__stub___compile)
15541 f = compile; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
15548 rm -f conftest.$ac_objext conftest$ac_exeext
15549 if { (eval echo "$as_me:15549: \"$ac_link\"") >&5
15550 (eval $ac_link) 2>&5
15552 echo "$as_me:15552: \$? = $ac_status" >&5
15553 (exit $ac_status); } &&
15554 { ac_try='test -s conftest$ac_exeext'
15555 { (eval echo "$as_me:15555: \"$ac_try\"") >&5
15556 (eval $ac_try) 2>&5
15558 echo "$as_me:15558: \$? = $ac_status" >&5
15559 (exit $ac_status); }; }; then
15560 ac_cv_func_compile=yes
15562 echo "$as_me: failed program was:" >&5
15563 cat conftest.$ac_ext >&5
15564 ac_cv_func_compile=no
15566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15568 echo "$as_me:15568: result: $ac_cv_func_compile" >&5
15569 echo "${ECHO_T}$ac_cv_func_compile" >&6
15570 if test $ac_cv_func_compile = yes; then
15571 cf_regex_func=compile
15574 echo "$as_me:15574: checking for compile in -lgen" >&5
15575 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
15576 if test "${ac_cv_lib_gen_compile+set}" = set; then
15577 echo $ECHO_N "(cached) $ECHO_C" >&6
15579 ac_check_lib_save_LIBS=$LIBS
15581 cat >conftest.$ac_ext <<_ACEOF
15582 #line 15582 "configure"
15583 #include "confdefs.h"
15585 /* Override any gcc2 internal prototype to avoid an error. */
15589 /* We use char because int might match the return type of a gcc2
15590 builtin and then its argument prototype would still apply. */
15600 rm -f conftest.$ac_objext conftest$ac_exeext
15601 if { (eval echo "$as_me:15601: \"$ac_link\"") >&5
15602 (eval $ac_link) 2>&5
15604 echo "$as_me:15604: \$? = $ac_status" >&5
15605 (exit $ac_status); } &&
15606 { ac_try='test -s conftest$ac_exeext'
15607 { (eval echo "$as_me:15607: \"$ac_try\"") >&5
15608 (eval $ac_try) 2>&5
15610 echo "$as_me:15610: \$? = $ac_status" >&5
15611 (exit $ac_status); }; }; then
15612 ac_cv_lib_gen_compile=yes
15614 echo "$as_me: failed program was:" >&5
15615 cat conftest.$ac_ext >&5
15616 ac_cv_lib_gen_compile=no
15618 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15619 LIBS=$ac_check_lib_save_LIBS
15621 echo "$as_me:15621: result: $ac_cv_lib_gen_compile" >&5
15622 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
15623 if test $ac_cv_lib_gen_compile = yes; then
15625 cf_add_libs="-lgen"
15626 # Filter out duplicates - this happens with badly-designed ".pc" files...
15627 for cf_add_1lib in $LIBS
15629 for cf_add_2lib in $cf_add_libs
15631 if test "x$cf_add_1lib" = "x$cf_add_2lib"
15637 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
15639 LIBS="$cf_add_libs"
15641 cf_regex_func=compile
15648 if test "$cf_regex_func" = no ; then
15649 { echo "$as_me:15649: WARNING: cannot find regular expression library" >&5
15650 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
15653 echo "$as_me:15653: checking for regular-expression headers" >&5
15654 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
15655 if test "${cf_cv_regex_hdrs+set}" = set; then
15656 echo $ECHO_N "(cached) $ECHO_C" >&6
15659 cf_cv_regex_hdrs=no
15660 case $cf_regex_func in
15662 for cf_regex_hdr in regexp.h regexpr.h
15664 cat >conftest.$ac_ext <<_ACEOF
15665 #line 15665 "configure"
15666 #include "confdefs.h"
15667 #include <$cf_regex_hdr>
15672 char *p = compile("", "", "", 0);
15673 int x = step("", "");
15679 rm -f conftest.$ac_objext conftest$ac_exeext
15680 if { (eval echo "$as_me:15680: \"$ac_link\"") >&5
15681 (eval $ac_link) 2>&5
15683 echo "$as_me:15683: \$? = $ac_status" >&5
15684 (exit $ac_status); } &&
15685 { ac_try='test -s conftest$ac_exeext'
15686 { (eval echo "$as_me:15686: \"$ac_try\"") >&5
15687 (eval $ac_try) 2>&5
15689 echo "$as_me:15689: \$? = $ac_status" >&5
15690 (exit $ac_status); }; }; then
15692 cf_cv_regex_hdrs=$cf_regex_hdr
15696 echo "$as_me: failed program was:" >&5
15697 cat conftest.$ac_ext >&5
15699 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15703 for cf_regex_hdr in regex.h
15705 cat >conftest.$ac_ext <<_ACEOF
15706 #line 15706 "configure"
15707 #include "confdefs.h"
15708 #include <sys/types.h>
15709 #include <$cf_regex_hdr>
15715 int x = regcomp(p, "", 0);
15716 int y = regexec(p, "", 0, 0, 0);
15723 rm -f conftest.$ac_objext conftest$ac_exeext
15724 if { (eval echo "$as_me:15724: \"$ac_link\"") >&5
15725 (eval $ac_link) 2>&5
15727 echo "$as_me:15727: \$? = $ac_status" >&5
15728 (exit $ac_status); } &&
15729 { ac_try='test -s conftest$ac_exeext'
15730 { (eval echo "$as_me:15730: \"$ac_try\"") >&5
15731 (eval $ac_try) 2>&5
15733 echo "$as_me:15733: \$? = $ac_status" >&5
15734 (exit $ac_status); }; }; then
15736 cf_cv_regex_hdrs=$cf_regex_hdr
15740 echo "$as_me: failed program was:" >&5
15741 cat conftest.$ac_ext >&5
15743 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15749 echo "$as_me:15749: result: $cf_cv_regex_hdrs" >&5
15750 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
15752 case $cf_cv_regex_hdrs in
15753 (no) { echo "$as_me:15753: WARNING: no regular expression header found" >&5
15754 echo "$as_me: WARNING: no regular expression header found" >&2;} ;;
15756 cat >>confdefs.h <<\EOF
15757 #define HAVE_REGEX_H_FUNCS 1
15761 cat >>confdefs.h <<\EOF
15762 #define HAVE_REGEXP_H_FUNCS 1
15766 cat >>confdefs.h <<\EOF
15767 #define HAVE_REGEXPR_H_FUNCS 1
15791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15792 echo "$as_me:15792: checking for $ac_header" >&5
15793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15795 echo $ECHO_N "(cached) $ECHO_C" >&6
15797 cat >conftest.$ac_ext <<_ACEOF
15798 #line 15798 "configure"
15799 #include "confdefs.h"
15800 #include <$ac_header>
15802 if { (eval echo "$as_me:15802: \"$ac_cpp conftest.$ac_ext\"") >&5
15803 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15805 egrep -v '^ *\+' conftest.er1 >conftest.err
15807 cat conftest.err >&5
15808 echo "$as_me:15808: \$? = $ac_status" >&5
15809 (exit $ac_status); } >/dev/null; then
15810 if test -s conftest.err; then
15811 ac_cpp_err=$ac_c_preproc_warn_flag
15818 if test -z "$ac_cpp_err"; then
15819 eval "$as_ac_Header=yes"
15821 echo "$as_me: failed program was:" >&5
15822 cat conftest.$ac_ext >&5
15823 eval "$as_ac_Header=no"
15825 rm -f conftest.err conftest.$ac_ext
15827 echo "$as_me:15827: result: `eval echo '${'$as_ac_Header'}'`" >&5
15828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15830 cat >>confdefs.h <<EOF
15831 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15837 for ac_header in unistd.h getopt.h
15839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15840 echo "$as_me:15840: checking for $ac_header" >&5
15841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15843 echo $ECHO_N "(cached) $ECHO_C" >&6
15845 cat >conftest.$ac_ext <<_ACEOF
15846 #line 15846 "configure"
15847 #include "confdefs.h"
15848 #include <$ac_header>
15850 if { (eval echo "$as_me:15850: \"$ac_cpp conftest.$ac_ext\"") >&5
15851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15853 egrep -v '^ *\+' conftest.er1 >conftest.err
15855 cat conftest.err >&5
15856 echo "$as_me:15856: \$? = $ac_status" >&5
15857 (exit $ac_status); } >/dev/null; then
15858 if test -s conftest.err; then
15859 ac_cpp_err=$ac_c_preproc_warn_flag
15866 if test -z "$ac_cpp_err"; then
15867 eval "$as_ac_Header=yes"
15869 echo "$as_me: failed program was:" >&5
15870 cat conftest.$ac_ext >&5
15871 eval "$as_ac_Header=no"
15873 rm -f conftest.err conftest.$ac_ext
15875 echo "$as_me:15875: result: `eval echo '${'$as_ac_Header'}'`" >&5
15876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15878 cat >>confdefs.h <<EOF
15879 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15885 echo "$as_me:15885: checking for header declaring getopt variables" >&5
15886 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
15887 if test "${cf_cv_getopt_header+set}" = set; then
15888 echo $ECHO_N "(cached) $ECHO_C" >&6
15891 cf_cv_getopt_header=none
15892 for cf_header in stdio.h stdlib.h unistd.h getopt.h
15894 cat >conftest.$ac_ext <<_ACEOF
15895 #line 15895 "configure"
15896 #include "confdefs.h"
15898 #include <$cf_header>
15902 int x = optind; char *y = optarg
15907 rm -f conftest.$ac_objext
15908 if { (eval echo "$as_me:15908: \"$ac_compile\"") >&5
15909 (eval $ac_compile) 2>&5
15911 echo "$as_me:15911: \$? = $ac_status" >&5
15912 (exit $ac_status); } &&
15913 { ac_try='test -s conftest.$ac_objext'
15914 { (eval echo "$as_me:15914: \"$ac_try\"") >&5
15915 (eval $ac_try) 2>&5
15917 echo "$as_me:15917: \$? = $ac_status" >&5
15918 (exit $ac_status); }; }; then
15919 cf_cv_getopt_header=$cf_header
15922 echo "$as_me: failed program was:" >&5
15923 cat conftest.$ac_ext >&5
15925 rm -f conftest.$ac_objext conftest.$ac_ext
15929 echo "$as_me:15929: result: $cf_cv_getopt_header" >&5
15930 echo "${ECHO_T}$cf_cv_getopt_header" >&6
15931 if test $cf_cv_getopt_header != none ; then
15933 cat >>confdefs.h <<\EOF
15934 #define HAVE_GETOPT_HEADER 1
15938 if test $cf_cv_getopt_header = getopt.h ; then
15940 cat >>confdefs.h <<\EOF
15941 #define NEED_GETOPT_H 1
15946 # check for ISC (this may also define _POSIX_SOURCE)
15947 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
15948 if test "x$ISC" = xyes ; then
15950 echo "$as_me:15950: checking for main in -lcposix" >&5
15951 echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
15952 if test "${ac_cv_lib_cposix_main+set}" = set; then
15953 echo $ECHO_N "(cached) $ECHO_C" >&6
15955 ac_check_lib_save_LIBS=$LIBS
15956 LIBS="-lcposix $LIBS"
15957 cat >conftest.$ac_ext <<_ACEOF
15958 #line 15958 "configure"
15959 #include "confdefs.h"
15969 rm -f conftest.$ac_objext conftest$ac_exeext
15970 if { (eval echo "$as_me:15970: \"$ac_link\"") >&5
15971 (eval $ac_link) 2>&5
15973 echo "$as_me:15973: \$? = $ac_status" >&5
15974 (exit $ac_status); } &&
15975 { ac_try='test -s conftest$ac_exeext'
15976 { (eval echo "$as_me:15976: \"$ac_try\"") >&5
15977 (eval $ac_try) 2>&5
15979 echo "$as_me:15979: \$? = $ac_status" >&5
15980 (exit $ac_status); }; }; then
15981 ac_cv_lib_cposix_main=yes
15983 echo "$as_me: failed program was:" >&5
15984 cat conftest.$ac_ext >&5
15985 ac_cv_lib_cposix_main=no
15987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15988 LIBS=$ac_check_lib_save_LIBS
15990 echo "$as_me:15990: result: $ac_cv_lib_cposix_main" >&5
15991 echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
15992 if test $ac_cv_lib_cposix_main = yes; then
15993 cat >>confdefs.h <<EOF
15994 #define HAVE_LIBCPOSIX 1
15997 LIBS="-lcposix $LIBS"
16001 echo "$as_me:16001: checking for bzero in -linet" >&5
16002 echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
16003 if test "${ac_cv_lib_inet_bzero+set}" = set; then
16004 echo $ECHO_N "(cached) $ECHO_C" >&6
16006 ac_check_lib_save_LIBS=$LIBS
16007 LIBS="-linet $LIBS"
16008 cat >conftest.$ac_ext <<_ACEOF
16009 #line 16009 "configure"
16010 #include "confdefs.h"
16012 /* Override any gcc2 internal prototype to avoid an error. */
16016 /* We use char because int might match the return type of a gcc2
16017 builtin and then its argument prototype would still apply. */
16027 rm -f conftest.$ac_objext conftest$ac_exeext
16028 if { (eval echo "$as_me:16028: \"$ac_link\"") >&5
16029 (eval $ac_link) 2>&5
16031 echo "$as_me:16031: \$? = $ac_status" >&5
16032 (exit $ac_status); } &&
16033 { ac_try='test -s conftest$ac_exeext'
16034 { (eval echo "$as_me:16034: \"$ac_try\"") >&5
16035 (eval $ac_try) 2>&5
16037 echo "$as_me:16037: \$? = $ac_status" >&5
16038 (exit $ac_status); }; }; then
16039 ac_cv_lib_inet_bzero=yes
16041 echo "$as_me: failed program was:" >&5
16042 cat conftest.$ac_ext >&5
16043 ac_cv_lib_inet_bzero=no
16045 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16046 LIBS=$ac_check_lib_save_LIBS
16048 echo "$as_me:16048: result: $ac_cv_lib_inet_bzero" >&5
16049 echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
16050 if test $ac_cv_lib_inet_bzero = yes; then
16052 cf_add_libs="-linet"
16053 # Filter out duplicates - this happens with badly-designed ".pc" files...
16054 for cf_add_1lib in $LIBS
16056 for cf_add_2lib in $cf_add_libs
16058 if test "x$cf_add_1lib" = "x$cf_add_2lib"
16064 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
16066 LIBS="$cf_add_libs"
16071 echo "$as_me:16071: checking if sys/time.h works with sys/select.h" >&5
16072 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
16073 if test "${cf_cv_sys_time_select+set}" = set; then
16074 echo $ECHO_N "(cached) $ECHO_C" >&6
16077 cat >conftest.$ac_ext <<_ACEOF
16078 #line 16078 "configure"
16079 #include "confdefs.h"
16081 #include <sys/types.h>
16082 #ifdef HAVE_SYS_TIME_H
16083 #include <sys/time.h>
16085 #ifdef HAVE_SYS_SELECT_H
16086 #include <sys/select.h>
16097 rm -f conftest.$ac_objext
16098 if { (eval echo "$as_me:16098: \"$ac_compile\"") >&5
16099 (eval $ac_compile) 2>&5
16101 echo "$as_me:16101: \$? = $ac_status" >&5
16102 (exit $ac_status); } &&
16103 { ac_try='test -s conftest.$ac_objext'
16104 { (eval echo "$as_me:16104: \"$ac_try\"") >&5
16105 (eval $ac_try) 2>&5
16107 echo "$as_me:16107: \$? = $ac_status" >&5
16108 (exit $ac_status); }; }; then
16109 cf_cv_sys_time_select=yes
16111 echo "$as_me: failed program was:" >&5
16112 cat conftest.$ac_ext >&5
16113 cf_cv_sys_time_select=no
16115 rm -f conftest.$ac_objext conftest.$ac_ext
16119 echo "$as_me:16119: result: $cf_cv_sys_time_select" >&5
16120 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
16121 test "$cf_cv_sys_time_select" = yes &&
16122 cat >>confdefs.h <<\EOF
16123 #define HAVE_SYS_TIME_SELECT 1
16126 ### checks for compiler characteristics
16128 ac_cpp='$CPP $CPPFLAGS'
16129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16132 ac_main_return=return
16134 echo "$as_me:16134: checking for an ANSI C-conforming const" >&5
16135 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16136 if test "${ac_cv_c_const+set}" = set; then
16137 echo $ECHO_N "(cached) $ECHO_C" >&6
16139 cat >conftest.$ac_ext <<_ACEOF
16140 #line 16140 "configure"
16141 #include "confdefs.h"
16146 /* FIXME: Include the comments suggested by Paul. */
16147 #ifndef __cplusplus
16148 /* Ultrix mips cc rejects this. */
16149 typedef int charset[2];
16151 /* SunOS 4.1.1 cc rejects this. */
16152 char const *const *ccp;
16154 /* NEC SVR4.0.2 mips cc rejects this. */
16155 struct point {int x, y;};
16156 static struct point const zero = {0,0};
16157 /* AIX XL C 1.02.0.0 rejects this.
16158 It does not let you subtract one const X* pointer from another in
16159 an arm of an if-expression whose if-part is not a constant
16161 const char *g = "string";
16162 ccp = &g + (g ? g-g : 0);
16163 /* HPUX 7.0 cc rejects these. */
16166 ccp = (char const *const *) p;
16167 { /* SCO 3.2v4 cc rejects this. */
16169 char const *s = 0 ? (char *) 0 : (char const *) 0;
16173 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16174 int x[] = {25, 17};
16175 const int *foo = &x[0];
16178 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16179 typedef const int *iptr;
16183 { /* AIX XL C 1.02.0.0 rejects this saying
16184 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16185 struct s { int j; const int *ap[3]; };
16186 struct s *b; b->j = 5;
16188 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16189 const int foo = 10;
16197 rm -f conftest.$ac_objext
16198 if { (eval echo "$as_me:16198: \"$ac_compile\"") >&5
16199 (eval $ac_compile) 2>&5
16201 echo "$as_me:16201: \$? = $ac_status" >&5
16202 (exit $ac_status); } &&
16203 { ac_try='test -s conftest.$ac_objext'
16204 { (eval echo "$as_me:16204: \"$ac_try\"") >&5
16205 (eval $ac_try) 2>&5
16207 echo "$as_me:16207: \$? = $ac_status" >&5
16208 (exit $ac_status); }; }; then
16211 echo "$as_me: failed program was:" >&5
16212 cat conftest.$ac_ext >&5
16215 rm -f conftest.$ac_objext conftest.$ac_ext
16217 echo "$as_me:16217: result: $ac_cv_c_const" >&5
16218 echo "${ECHO_T}$ac_cv_c_const" >&6
16219 if test $ac_cv_c_const = no; then
16221 cat >>confdefs.h <<\EOF
16227 echo "$as_me:16227: checking for inline" >&5
16228 echo $ECHO_N "checking for inline... $ECHO_C" >&6
16229 if test "${ac_cv_c_inline+set}" = set; then
16230 echo $ECHO_N "(cached) $ECHO_C" >&6
16233 for ac_kw in inline __inline__ __inline; do
16234 cat >conftest.$ac_ext <<_ACEOF
16235 #line 16235 "configure"
16236 #include "confdefs.h"
16237 #ifndef __cplusplus
16238 static $ac_kw int static_foo () {return 0; }
16239 $ac_kw int foo () {return 0; }
16243 rm -f conftest.$ac_objext
16244 if { (eval echo "$as_me:16244: \"$ac_compile\"") >&5
16245 (eval $ac_compile) 2>&5
16247 echo "$as_me:16247: \$? = $ac_status" >&5
16248 (exit $ac_status); } &&
16249 { ac_try='test -s conftest.$ac_objext'
16250 { (eval echo "$as_me:16250: \"$ac_try\"") >&5
16251 (eval $ac_try) 2>&5
16253 echo "$as_me:16253: \$? = $ac_status" >&5
16254 (exit $ac_status); }; }; then
16255 ac_cv_c_inline=$ac_kw; break
16257 echo "$as_me: failed program was:" >&5
16258 cat conftest.$ac_ext >&5
16260 rm -f conftest.$ac_objext conftest.$ac_ext
16264 echo "$as_me:16264: result: $ac_cv_c_inline" >&5
16265 echo "${ECHO_T}$ac_cv_c_inline" >&6
16266 case $ac_cv_c_inline in
16269 cat >>confdefs.h <<\EOF
16273 *) cat >>confdefs.h <<EOF
16274 #define inline $ac_cv_c_inline
16280 if test "$ac_cv_c_inline" != no ; then
16281 NCURSES_INLINE=inline
16282 if test "$INTEL_COMPILER" = yes
16285 elif test "$CLANG_COMPILER" = yes
16288 elif test "$GCC" = yes
16290 echo "$as_me:16290: checking if $CC supports options to tune inlining" >&5
16291 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
16292 if test "${cf_cv_gcc_inline+set}" = set; then
16293 echo $ECHO_N "(cached) $ECHO_C" >&6
16296 cf_save_CFLAGS=$CFLAGS
16297 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
16298 cat >conftest.$ac_ext <<_ACEOF
16299 #line 16299 "configure"
16300 #include "confdefs.h"
16301 inline int foo(void) { return 1; }
16305 ${cf_cv_main_return:-return} foo()
16310 rm -f conftest.$ac_objext
16311 if { (eval echo "$as_me:16311: \"$ac_compile\"") >&5
16312 (eval $ac_compile) 2>&5
16314 echo "$as_me:16314: \$? = $ac_status" >&5
16315 (exit $ac_status); } &&
16316 { ac_try='test -s conftest.$ac_objext'
16317 { (eval echo "$as_me:16317: \"$ac_try\"") >&5
16318 (eval $ac_try) 2>&5
16320 echo "$as_me:16320: \$? = $ac_status" >&5
16321 (exit $ac_status); }; }; then
16322 cf_cv_gcc_inline=yes
16324 echo "$as_me: failed program was:" >&5
16325 cat conftest.$ac_ext >&5
16326 cf_cv_gcc_inline=no
16328 rm -f conftest.$ac_objext conftest.$ac_ext
16329 CFLAGS=$cf_save_CFLAGS
16332 echo "$as_me:16332: result: $cf_cv_gcc_inline" >&5
16333 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
16334 if test "$cf_cv_gcc_inline" = yes ; then
16339 cf_new_extra_cppflags=
16341 for cf_add_cflags in --param max-inline-insns-single=1200
16343 case $cf_fix_cppflags in
16345 case $cf_add_cflags in
16346 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16347 case $cf_add_cflags in
16349 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16351 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16352 && test -z "${cf_tst_cflags}" \
16353 && cf_fix_cppflags=yes
16355 if test $cf_fix_cppflags = yes ; then
16356 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16358 elif test "${cf_tst_cflags}" = "\"'" ; then
16359 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16364 case "$CPPFLAGS" in
16368 case $cf_add_cflags in
16370 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16372 CPPFLAGS=`echo "$CPPFLAGS" | \
16373 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16374 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16378 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
16383 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
16388 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16390 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16392 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16393 && test -z "${cf_tst_cflags}" \
16394 && cf_fix_cppflags=no
16399 if test -n "$cf_new_cflags" ; then
16401 CFLAGS="$CFLAGS $cf_new_cflags"
16404 if test -n "$cf_new_cppflags" ; then
16406 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
16409 if test -n "$cf_new_extra_cppflags" ; then
16411 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
16418 echo "$as_me:16418: checking for signal global datatype" >&5
16419 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
16420 if test "${cf_cv_sig_atomic_t+set}" = set; then
16421 echo $ECHO_N "(cached) $ECHO_C" >&6
16425 "volatile sig_atomic_t" \
16429 cat >conftest.$ac_ext <<_ACEOF
16430 #line 16430 "configure"
16431 #include "confdefs.h"
16433 #include <sys/types.h>
16434 #include <signal.h>
16439 static void handler(int sig)
16446 signal(SIGINT, handler);
16452 rm -f conftest.$ac_objext
16453 if { (eval echo "$as_me:16453: \"$ac_compile\"") >&5
16454 (eval $ac_compile) 2>&5
16456 echo "$as_me:16456: \$? = $ac_status" >&5
16457 (exit $ac_status); } &&
16458 { ac_try='test -s conftest.$ac_objext'
16459 { (eval echo "$as_me:16459: \"$ac_try\"") >&5
16460 (eval $ac_try) 2>&5
16462 echo "$as_me:16462: \$? = $ac_status" >&5
16463 (exit $ac_status); }; }; then
16464 cf_cv_sig_atomic_t=$cf_type
16466 echo "$as_me: failed program was:" >&5
16467 cat conftest.$ac_ext >&5
16468 cf_cv_sig_atomic_t=no
16470 rm -f conftest.$ac_objext conftest.$ac_ext
16471 test "$cf_cv_sig_atomic_t" != no && break
16476 echo "$as_me:16476: result: $cf_cv_sig_atomic_t" >&5
16477 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
16478 test "$cf_cv_sig_atomic_t" != no &&
16479 cat >>confdefs.h <<EOF
16480 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
16483 if test $NCURSES_CHTYPE = auto ; then
16485 echo "$as_me:16485: checking for type of chtype" >&5
16486 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
16487 if test "${cf_cv_typeof_chtype+set}" = set; then
16488 echo $ECHO_N "(cached) $ECHO_C" >&6
16491 if test "$cross_compiling" = yes; then
16492 cf_cv_typeof_chtype=long
16494 cat >conftest.$ac_ext <<_ACEOF
16495 #line 16495 "configure"
16496 #include "confdefs.h"
16498 #define WANT_BITS 31
16502 FILE *fp = fopen("cf_test.out", "w");
16504 char *result = "long";
16505 if (sizeof(unsigned long) > sizeof(unsigned int)) {
16508 for (n = 0; n < WANT_BITS; n++) {
16511 if (y != 1 || x == 0) {
16517 * If x is nonzero, an int is big enough for the bits
16520 result = (x != 0) ? "int" : "long";
16525 ${cf_cv_main_return:-return}(0);
16529 rm -f conftest$ac_exeext
16530 if { (eval echo "$as_me:16530: \"$ac_link\"") >&5
16531 (eval $ac_link) 2>&5
16533 echo "$as_me:16533: \$? = $ac_status" >&5
16534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16535 { (eval echo "$as_me:16535: \"$ac_try\"") >&5
16536 (eval $ac_try) 2>&5
16538 echo "$as_me:16538: \$? = $ac_status" >&5
16539 (exit $ac_status); }; }; then
16540 cf_cv_typeof_chtype=`cat cf_test.out`
16542 echo "$as_me: program exited with status $ac_status" >&5
16543 echo "$as_me: failed program was:" >&5
16544 cat conftest.$ac_ext >&5
16545 cf_cv_typeof_chtype=long
16547 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16553 echo "$as_me:16553: result: $cf_cv_typeof_chtype" >&5
16554 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
16556 cat >>confdefs.h <<EOF
16557 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
16561 cf_cv_typeof_chtype=$NCURSES_CHTYPE
16563 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
16565 echo "$as_me:16565: checking if unsigned literals are legal" >&5
16566 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
16567 if test "${cf_cv_unsigned_literals+set}" = set; then
16568 echo $ECHO_N "(cached) $ECHO_C" >&6
16571 cat >conftest.$ac_ext <<_ACEOF
16572 #line 16572 "configure"
16573 #include "confdefs.h"
16578 long x = 1L + 1UL + 1U + 1
16583 rm -f conftest.$ac_objext
16584 if { (eval echo "$as_me:16584: \"$ac_compile\"") >&5
16585 (eval $ac_compile) 2>&5
16587 echo "$as_me:16587: \$? = $ac_status" >&5
16588 (exit $ac_status); } &&
16589 { ac_try='test -s conftest.$ac_objext'
16590 { (eval echo "$as_me:16590: \"$ac_try\"") >&5
16591 (eval $ac_try) 2>&5
16593 echo "$as_me:16593: \$? = $ac_status" >&5
16594 (exit $ac_status); }; }; then
16595 cf_cv_unsigned_literals=yes
16597 echo "$as_me: failed program was:" >&5
16598 cat conftest.$ac_ext >&5
16599 cf_cv_unsigned_literals=no
16601 rm -f conftest.$ac_objext conftest.$ac_ext
16605 echo "$as_me:16605: result: $cf_cv_unsigned_literals" >&5
16606 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
16609 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
16610 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
16612 if test $NCURSES_MMASK_T = auto ; then
16613 cf_cv_typeof_mmask_t=long
16615 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
16617 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
16619 ### Checks for external-data
16621 echo "$as_me:16621: checking if external errno is declared" >&5
16622 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
16623 if test "${cf_cv_dcl_errno+set}" = set; then
16624 echo $ECHO_N "(cached) $ECHO_C" >&6
16627 cat >conftest.$ac_ext <<_ACEOF
16628 #line 16628 "configure"
16629 #include "confdefs.h"
16631 #ifdef HAVE_STDLIB_H
16632 #include <stdlib.h>
16635 #include <sys/types.h>
16640 int x = (int) errno
16645 rm -f conftest.$ac_objext
16646 if { (eval echo "$as_me:16646: \"$ac_compile\"") >&5
16647 (eval $ac_compile) 2>&5
16649 echo "$as_me:16649: \$? = $ac_status" >&5
16650 (exit $ac_status); } &&
16651 { ac_try='test -s conftest.$ac_objext'
16652 { (eval echo "$as_me:16652: \"$ac_try\"") >&5
16653 (eval $ac_try) 2>&5
16655 echo "$as_me:16655: \$? = $ac_status" >&5
16656 (exit $ac_status); }; }; then
16657 cf_cv_dcl_errno=yes
16659 echo "$as_me: failed program was:" >&5
16660 cat conftest.$ac_ext >&5
16663 rm -f conftest.$ac_objext conftest.$ac_ext
16666 echo "$as_me:16666: result: $cf_cv_dcl_errno" >&5
16667 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
16669 if test "$cf_cv_dcl_errno" = no ; then
16671 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16673 cat >>confdefs.h <<EOF
16674 #define $cf_result 1
16679 # It's possible (for near-UNIX clones) that the data doesn't exist
16681 echo "$as_me:16681: checking if external errno exists" >&5
16682 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
16683 if test "${cf_cv_have_errno+set}" = set; then
16684 echo $ECHO_N "(cached) $ECHO_C" >&6
16687 cat >conftest.$ac_ext <<_ACEOF
16688 #line 16688 "configure"
16689 #include "confdefs.h"
16702 rm -f conftest.$ac_objext conftest$ac_exeext
16703 if { (eval echo "$as_me:16703: \"$ac_link\"") >&5
16704 (eval $ac_link) 2>&5
16706 echo "$as_me:16706: \$? = $ac_status" >&5
16707 (exit $ac_status); } &&
16708 { ac_try='test -s conftest$ac_exeext'
16709 { (eval echo "$as_me:16709: \"$ac_try\"") >&5
16710 (eval $ac_try) 2>&5
16712 echo "$as_me:16712: \$? = $ac_status" >&5
16713 (exit $ac_status); }; }; then
16714 cf_cv_have_errno=yes
16716 echo "$as_me: failed program was:" >&5
16717 cat conftest.$ac_ext >&5
16718 cf_cv_have_errno=no
16720 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16723 echo "$as_me:16723: result: $cf_cv_have_errno" >&5
16724 echo "${ECHO_T}$cf_cv_have_errno" >&6
16726 if test "$cf_cv_have_errno" = yes ; then
16728 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16730 cat >>confdefs.h <<EOF
16731 #define $cf_result 1
16736 echo "$as_me:16736: checking if data-only library module links" >&5
16737 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
16738 if test "${cf_cv_link_dataonly+set}" = set; then
16739 echo $ECHO_N "(cached) $ECHO_C" >&6
16743 cat >conftest.$ac_ext <<EOF
16744 #line 16744 "configure"
16745 int testdata[3] = { 123, 456, 789 };
16747 if { (eval echo "$as_me:16747: \"$ac_compile\"") >&5
16748 (eval $ac_compile) 2>&5
16750 echo "$as_me:16750: \$? = $ac_status" >&5
16751 (exit $ac_status); } ; then
16752 mv conftest.o data.o && \
16753 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
16755 rm -f conftest.$ac_ext data.o
16756 cat >conftest.$ac_ext <<EOF
16757 #line 16757 "configure"
16761 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
16763 extern int testdata[3];
16764 return testdata[0] == 123
16765 && testdata[1] == 456
16766 && testdata[2] == 789;
16770 if { (eval echo "$as_me:16770: \"$ac_compile\"") >&5
16771 (eval $ac_compile) 2>&5
16773 echo "$as_me:16773: \$? = $ac_status" >&5
16774 (exit $ac_status); }; then
16775 mv conftest.o func.o && \
16776 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
16778 rm -f conftest.$ac_ext func.o
16779 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
16780 cf_saveLIBS="$LIBS"
16781 LIBS="conftest.a $LIBS"
16782 if test "$cross_compiling" = yes; then
16783 cf_cv_link_dataonly=unknown
16785 cat >conftest.$ac_ext <<_ACEOF
16786 #line 16786 "configure"
16787 #include "confdefs.h"
16791 extern int testfunc();
16792 ${cf_cv_main_return:-return} (!testfunc());
16796 rm -f conftest$ac_exeext
16797 if { (eval echo "$as_me:16797: \"$ac_link\"") >&5
16798 (eval $ac_link) 2>&5
16800 echo "$as_me:16800: \$? = $ac_status" >&5
16801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16802 { (eval echo "$as_me:16802: \"$ac_try\"") >&5
16803 (eval $ac_try) 2>&5
16805 echo "$as_me:16805: \$? = $ac_status" >&5
16806 (exit $ac_status); }; }; then
16807 cf_cv_link_dataonly=yes
16809 echo "$as_me: program exited with status $ac_status" >&5
16810 echo "$as_me: failed program was:" >&5
16811 cat conftest.$ac_ext >&5
16812 cf_cv_link_dataonly=no
16814 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16816 LIBS="$cf_saveLIBS"
16820 echo "$as_me:16820: result: $cf_cv_link_dataonly" >&5
16821 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
16823 if test "$cf_cv_link_dataonly" = no ; then
16825 cat >>confdefs.h <<\EOF
16826 #define BROKEN_LINKER 1
16832 ### Checks for library functions.
16858 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16859 echo "$as_me:16859: checking for $ac_func" >&5
16860 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16861 if eval "test \"\${$as_ac_var+set}\" = set"; then
16862 echo $ECHO_N "(cached) $ECHO_C" >&6
16864 cat >conftest.$ac_ext <<_ACEOF
16865 #line 16865 "configure"
16866 #include "confdefs.h"
16867 /* System header to define __stub macros and hopefully few prototypes,
16868 which can conflict with char $ac_func (); below. */
16869 #include <assert.h>
16870 /* Override any gcc2 internal prototype to avoid an error. */
16874 /* We use char because int might match the return type of a gcc2
16875 builtin and then its argument prototype would still apply. */
16882 /* The GNU C library defines this for functions which it implements
16883 to always fail with ENOSYS. Some functions are actually named
16884 something starting with __ and the normal name is an alias. */
16885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16888 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
16895 rm -f conftest.$ac_objext conftest$ac_exeext
16896 if { (eval echo "$as_me:16896: \"$ac_link\"") >&5
16897 (eval $ac_link) 2>&5
16899 echo "$as_me:16899: \$? = $ac_status" >&5
16900 (exit $ac_status); } &&
16901 { ac_try='test -s conftest$ac_exeext'
16902 { (eval echo "$as_me:16902: \"$ac_try\"") >&5
16903 (eval $ac_try) 2>&5
16905 echo "$as_me:16905: \$? = $ac_status" >&5
16906 (exit $ac_status); }; }; then
16907 eval "$as_ac_var=yes"
16909 echo "$as_me: failed program was:" >&5
16910 cat conftest.$ac_ext >&5
16911 eval "$as_ac_var=no"
16913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16915 echo "$as_me:16915: result: `eval echo '${'$as_ac_var'}'`" >&5
16916 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16917 if test `eval echo '${'$as_ac_var'}'` = yes; then
16918 cat >>confdefs.h <<EOF
16919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16925 if test "x$ac_cv_func_getopt" = xno &&
16926 test "x$cf_with_progs$cf_with_tests" != xnono; then
16927 { { echo "$as_me:16927: error: getopt is required for building programs" >&5
16928 echo "$as_me: error: getopt is required for building programs" >&2;}
16929 { (exit 1); exit 1; }; }
16932 if test "x$with_getcap" = "xyes" ; then
16934 echo "$as_me:16934: checking for terminal-capability database functions" >&5
16935 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
16936 if test "${cf_cv_cgetent+set}" = set; then
16937 echo $ECHO_N "(cached) $ECHO_C" >&6
16940 cat >conftest.$ac_ext <<_ACEOF
16941 #line 16941 "configure"
16942 #include "confdefs.h"
16944 #include <stdlib.h>
16951 char *db_array = temp;
16952 cgetent(&buf, &db_array, "vt100");
16953 cgetcap(buf, "tc", '=');
16954 cgetmatch(buf, "tc");
16960 rm -f conftest.$ac_objext conftest$ac_exeext
16961 if { (eval echo "$as_me:16961: \"$ac_link\"") >&5
16962 (eval $ac_link) 2>&5
16964 echo "$as_me:16964: \$? = $ac_status" >&5
16965 (exit $ac_status); } &&
16966 { ac_try='test -s conftest$ac_exeext'
16967 { (eval echo "$as_me:16967: \"$ac_try\"") >&5
16968 (eval $ac_try) 2>&5
16970 echo "$as_me:16970: \$? = $ac_status" >&5
16971 (exit $ac_status); }; }; then
16974 echo "$as_me: failed program was:" >&5
16975 cat conftest.$ac_ext >&5
16978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16981 echo "$as_me:16981: result: $cf_cv_cgetent" >&5
16982 echo "${ECHO_T}$cf_cv_cgetent" >&6
16984 if test "$cf_cv_cgetent" = yes
16987 cat >>confdefs.h <<\EOF
16988 #define HAVE_BSD_CGETENT 1
16991 echo "$as_me:16991: checking if cgetent uses const parameter" >&5
16992 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
16993 if test "${cf_cv_cgetent_const+set}" = set; then
16994 echo $ECHO_N "(cached) $ECHO_C" >&6
16997 cat >conftest.$ac_ext <<_ACEOF
16998 #line 16998 "configure"
16999 #include "confdefs.h"
17001 #include <stdlib.h>
17008 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
17009 const char *db_array = temp;
17010 cgetent(&buf, &db_array, "vt100");
17012 cgetcap(buf, "tc", '=');
17013 cgetmatch(buf, "tc");
17019 rm -f conftest.$ac_objext conftest$ac_exeext
17020 if { (eval echo "$as_me:17020: \"$ac_link\"") >&5
17021 (eval $ac_link) 2>&5
17023 echo "$as_me:17023: \$? = $ac_status" >&5
17024 (exit $ac_status); } &&
17025 { ac_try='test -s conftest$ac_exeext'
17026 { (eval echo "$as_me:17026: \"$ac_try\"") >&5
17027 (eval $ac_try) 2>&5
17029 echo "$as_me:17029: \$? = $ac_status" >&5
17030 (exit $ac_status); }; }; then
17031 cf_cv_cgetent_const=yes
17033 echo "$as_me: failed program was:" >&5
17034 cat conftest.$ac_ext >&5
17035 cf_cv_cgetent_const=no
17037 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17040 echo "$as_me:17040: result: $cf_cv_cgetent_const" >&5
17041 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
17042 if test "$cf_cv_cgetent_const" = yes
17045 cat >>confdefs.h <<EOF
17046 #define CGETENT_CONST const
17054 echo "$as_me:17054: checking for isascii" >&5
17055 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
17056 if test "${cf_cv_have_isascii+set}" = set; then
17057 echo $ECHO_N "(cached) $ECHO_C" >&6
17060 cat >conftest.$ac_ext <<_ACEOF
17061 #line 17061 "configure"
17062 #include "confdefs.h"
17067 int x = isascii(' ')
17072 rm -f conftest.$ac_objext conftest$ac_exeext
17073 if { (eval echo "$as_me:17073: \"$ac_link\"") >&5
17074 (eval $ac_link) 2>&5
17076 echo "$as_me:17076: \$? = $ac_status" >&5
17077 (exit $ac_status); } &&
17078 { ac_try='test -s conftest$ac_exeext'
17079 { (eval echo "$as_me:17079: \"$ac_try\"") >&5
17080 (eval $ac_try) 2>&5
17082 echo "$as_me:17082: \$? = $ac_status" >&5
17083 (exit $ac_status); }; }; then
17084 cf_cv_have_isascii=yes
17086 echo "$as_me: failed program was:" >&5
17087 cat conftest.$ac_ext >&5
17088 cf_cv_have_isascii=no
17090 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17093 echo "$as_me:17093: result: $cf_cv_have_isascii" >&5
17094 echo "${ECHO_T}$cf_cv_have_isascii" >&6
17095 test "$cf_cv_have_isascii" = yes &&
17096 cat >>confdefs.h <<\EOF
17097 #define HAVE_ISASCII 1
17100 if test "$ac_cv_func_sigaction" = yes; then
17101 echo "$as_me:17101: checking whether sigaction needs _POSIX_SOURCE" >&5
17102 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
17103 cat >conftest.$ac_ext <<_ACEOF
17104 #line 17104 "configure"
17105 #include "confdefs.h"
17107 #include <sys/types.h>
17108 #include <signal.h>
17112 struct sigaction act
17117 rm -f conftest.$ac_objext
17118 if { (eval echo "$as_me:17118: \"$ac_compile\"") >&5
17119 (eval $ac_compile) 2>&5
17121 echo "$as_me:17121: \$? = $ac_status" >&5
17122 (exit $ac_status); } &&
17123 { ac_try='test -s conftest.$ac_objext'
17124 { (eval echo "$as_me:17124: \"$ac_try\"") >&5
17125 (eval $ac_try) 2>&5
17127 echo "$as_me:17127: \$? = $ac_status" >&5
17128 (exit $ac_status); }; }; then
17131 echo "$as_me: failed program was:" >&5
17132 cat conftest.$ac_ext >&5
17134 cat >conftest.$ac_ext <<_ACEOF
17135 #line 17135 "configure"
17136 #include "confdefs.h"
17138 #define _POSIX_SOURCE
17139 #include <sys/types.h>
17140 #include <signal.h>
17144 struct sigaction act
17149 rm -f conftest.$ac_objext
17150 if { (eval echo "$as_me:17150: \"$ac_compile\"") >&5
17151 (eval $ac_compile) 2>&5
17153 echo "$as_me:17153: \$? = $ac_status" >&5
17154 (exit $ac_status); } &&
17155 { ac_try='test -s conftest.$ac_objext'
17156 { (eval echo "$as_me:17156: \"$ac_try\"") >&5
17157 (eval $ac_try) 2>&5
17159 echo "$as_me:17159: \$? = $ac_status" >&5
17160 (exit $ac_status); }; }; then
17163 cat >>confdefs.h <<\EOF
17164 #define _POSIX_SOURCE 1
17168 echo "$as_me: failed program was:" >&5
17169 cat conftest.$ac_ext >&5
17172 rm -f conftest.$ac_objext conftest.$ac_ext
17174 rm -f conftest.$ac_objext conftest.$ac_ext
17175 echo "$as_me:17175: result: $sigact_bad" >&5
17176 echo "${ECHO_T}$sigact_bad" >&6
17179 echo "$as_me:17179: checking if nanosleep really works" >&5
17180 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
17181 if test "${cf_cv_func_nanosleep+set}" = set; then
17182 echo $ECHO_N "(cached) $ECHO_C" >&6
17185 if test "$cross_compiling" = yes; then
17186 cf_cv_func_nanosleep=unknown
17188 cat >conftest.$ac_ext <<_ACEOF
17189 #line 17189 "configure"
17190 #include "confdefs.h"
17196 #ifdef HAVE_SYS_TIME_H
17197 #include <sys/time.h>
17201 struct timespec ts1, ts2;
17204 ts1.tv_nsec = 750000000;
17208 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
17209 ${cf_cv_main_return:-return}(code != 0);
17213 rm -f conftest$ac_exeext
17214 if { (eval echo "$as_me:17214: \"$ac_link\"") >&5
17215 (eval $ac_link) 2>&5
17217 echo "$as_me:17217: \$? = $ac_status" >&5
17218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17219 { (eval echo "$as_me:17219: \"$ac_try\"") >&5
17220 (eval $ac_try) 2>&5
17222 echo "$as_me:17222: \$? = $ac_status" >&5
17223 (exit $ac_status); }; }; then
17224 cf_cv_func_nanosleep=yes
17226 echo "$as_me: program exited with status $ac_status" >&5
17227 echo "$as_me: failed program was:" >&5
17228 cat conftest.$ac_ext >&5
17229 cf_cv_func_nanosleep=no
17231 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17234 echo "$as_me:17234: result: $cf_cv_func_nanosleep" >&5
17235 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
17237 test "$cf_cv_func_nanosleep" = "yes" &&
17238 cat >>confdefs.h <<\EOF
17239 #define HAVE_NANOSLEEP 1
17248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17249 echo "$as_me:17249: checking for $ac_header" >&5
17250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17252 echo $ECHO_N "(cached) $ECHO_C" >&6
17254 cat >conftest.$ac_ext <<_ACEOF
17255 #line 17255 "configure"
17256 #include "confdefs.h"
17257 #include <$ac_header>
17259 if { (eval echo "$as_me:17259: \"$ac_cpp conftest.$ac_ext\"") >&5
17260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17262 egrep -v '^ *\+' conftest.er1 >conftest.err
17264 cat conftest.err >&5
17265 echo "$as_me:17265: \$? = $ac_status" >&5
17266 (exit $ac_status); } >/dev/null; then
17267 if test -s conftest.err; then
17268 ac_cpp_err=$ac_c_preproc_warn_flag
17275 if test -z "$ac_cpp_err"; then
17276 eval "$as_ac_Header=yes"
17278 echo "$as_me: failed program was:" >&5
17279 cat conftest.$ac_ext >&5
17280 eval "$as_ac_Header=no"
17282 rm -f conftest.err conftest.$ac_ext
17284 echo "$as_me:17284: result: `eval echo '${'$as_ac_Header'}'`" >&5
17285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17286 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17287 cat >>confdefs.h <<EOF
17288 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17294 if test "$ISC" = yes ; then
17296 for ac_header in sys/termio.h
17298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17299 echo "$as_me:17299: checking for $ac_header" >&5
17300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17302 echo $ECHO_N "(cached) $ECHO_C" >&6
17304 cat >conftest.$ac_ext <<_ACEOF
17305 #line 17305 "configure"
17306 #include "confdefs.h"
17307 #include <$ac_header>
17309 if { (eval echo "$as_me:17309: \"$ac_cpp conftest.$ac_ext\"") >&5
17310 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17312 egrep -v '^ *\+' conftest.er1 >conftest.err
17314 cat conftest.err >&5
17315 echo "$as_me:17315: \$? = $ac_status" >&5
17316 (exit $ac_status); } >/dev/null; then
17317 if test -s conftest.err; then
17318 ac_cpp_err=$ac_c_preproc_warn_flag
17325 if test -z "$ac_cpp_err"; then
17326 eval "$as_ac_Header=yes"
17328 echo "$as_me: failed program was:" >&5
17329 cat conftest.$ac_ext >&5
17330 eval "$as_ac_Header=no"
17332 rm -f conftest.err conftest.$ac_ext
17334 echo "$as_me:17334: result: `eval echo '${'$as_ac_Header'}'`" >&5
17335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17337 cat >>confdefs.h <<EOF
17338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17345 if test "$ac_cv_header_termios_h" = yes ; then
17346 case "$CFLAGS $CPPFLAGS" in
17347 (*-D_POSIX_SOURCE*)
17348 termios_bad=dunno ;;
17349 (*) termios_bad=maybe ;;
17351 if test "$termios_bad" = maybe ; then
17352 echo "$as_me:17352: checking whether termios.h needs _POSIX_SOURCE" >&5
17353 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
17354 cat >conftest.$ac_ext <<_ACEOF
17355 #line 17355 "configure"
17356 #include "confdefs.h"
17357 #include <termios.h>
17361 struct termios foo; int x = foo.c_iflag
17366 rm -f conftest.$ac_objext
17367 if { (eval echo "$as_me:17367: \"$ac_compile\"") >&5
17368 (eval $ac_compile) 2>&5
17370 echo "$as_me:17370: \$? = $ac_status" >&5
17371 (exit $ac_status); } &&
17372 { ac_try='test -s conftest.$ac_objext'
17373 { (eval echo "$as_me:17373: \"$ac_try\"") >&5
17374 (eval $ac_try) 2>&5
17376 echo "$as_me:17376: \$? = $ac_status" >&5
17377 (exit $ac_status); }; }; then
17380 echo "$as_me: failed program was:" >&5
17381 cat conftest.$ac_ext >&5
17383 cat >conftest.$ac_ext <<_ACEOF
17384 #line 17384 "configure"
17385 #include "confdefs.h"
17387 #define _POSIX_SOURCE
17388 #include <termios.h>
17392 struct termios foo; int x = foo.c_iflag
17397 rm -f conftest.$ac_objext
17398 if { (eval echo "$as_me:17398: \"$ac_compile\"") >&5
17399 (eval $ac_compile) 2>&5
17401 echo "$as_me:17401: \$? = $ac_status" >&5
17402 (exit $ac_status); } &&
17403 { ac_try='test -s conftest.$ac_objext'
17404 { (eval echo "$as_me:17404: \"$ac_try\"") >&5
17405 (eval $ac_try) 2>&5
17407 echo "$as_me:17407: \$? = $ac_status" >&5
17408 (exit $ac_status); }; }; then
17409 termios_bad=unknown
17411 echo "$as_me: failed program was:" >&5
17412 cat conftest.$ac_ext >&5
17414 cat >>confdefs.h <<\EOF
17415 #define _POSIX_SOURCE 1
17419 rm -f conftest.$ac_objext conftest.$ac_ext
17422 rm -f conftest.$ac_objext conftest.$ac_ext
17423 echo "$as_me:17423: result: $termios_bad" >&5
17424 echo "${ECHO_T}$termios_bad" >&6
17428 echo "$as_me:17428: checking for tcgetattr" >&5
17429 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
17430 if test "${cf_cv_have_tcgetattr+set}" = set; then
17431 echo $ECHO_N "(cached) $ECHO_C" >&6
17434 cat >conftest.$ac_ext <<_ACEOF
17435 #line 17435 "configure"
17436 #include "confdefs.h"
17438 #include <sys/types.h>
17439 #ifdef HAVE_UNISTD_H
17440 #include <unistd.h>
17442 #ifdef HAVE_TERMIOS_H
17443 #include <termios.h>
17444 #define TTY struct termios
17446 #ifdef HAVE_TERMIO_H
17447 #include <termio.h>
17448 #define TTY struct termio
17457 tcgetattr(1, &foo);
17462 rm -f conftest.$ac_objext conftest$ac_exeext
17463 if { (eval echo "$as_me:17463: \"$ac_link\"") >&5
17464 (eval $ac_link) 2>&5
17466 echo "$as_me:17466: \$? = $ac_status" >&5
17467 (exit $ac_status); } &&
17468 { ac_try='test -s conftest$ac_exeext'
17469 { (eval echo "$as_me:17469: \"$ac_try\"") >&5
17470 (eval $ac_try) 2>&5
17472 echo "$as_me:17472: \$? = $ac_status" >&5
17473 (exit $ac_status); }; }; then
17474 cf_cv_have_tcgetattr=yes
17476 echo "$as_me: failed program was:" >&5
17477 cat conftest.$ac_ext >&5
17478 cf_cv_have_tcgetattr=no
17480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17482 echo "$as_me:17482: result: $cf_cv_have_tcgetattr" >&5
17483 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
17484 test "$cf_cv_have_tcgetattr" = yes &&
17485 cat >>confdefs.h <<\EOF
17486 #define HAVE_TCGETATTR 1
17489 echo "$as_me:17489: checking for vsscanf function or workaround" >&5
17490 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
17491 if test "${cf_cv_func_vsscanf+set}" = set; then
17492 echo $ECHO_N "(cached) $ECHO_C" >&6
17495 cat >conftest.$ac_ext <<_ACEOF
17496 #line 17496 "configure"
17497 #include "confdefs.h"
17499 #include <stdarg.h>
17506 vsscanf("from", "%d", ap)
17511 rm -f conftest.$ac_objext conftest$ac_exeext
17512 if { (eval echo "$as_me:17512: \"$ac_link\"") >&5
17513 (eval $ac_link) 2>&5
17515 echo "$as_me:17515: \$? = $ac_status" >&5
17516 (exit $ac_status); } &&
17517 { ac_try='test -s conftest$ac_exeext'
17518 { (eval echo "$as_me:17518: \"$ac_try\"") >&5
17519 (eval $ac_try) 2>&5
17521 echo "$as_me:17521: \$? = $ac_status" >&5
17522 (exit $ac_status); }; }; then
17523 cf_cv_func_vsscanf=vsscanf
17525 echo "$as_me: failed program was:" >&5
17526 cat conftest.$ac_ext >&5
17528 cat >conftest.$ac_ext <<_ACEOF
17529 #line 17529 "configure"
17530 #include "confdefs.h"
17532 #include <stdarg.h>
17539 char *str = "from";
17541 strbuf._flag = _IOREAD;
17542 strbuf._ptr = strbuf._base = (unsigned char *) str;
17543 strbuf._cnt = strlen(str);
17544 strbuf._file = _NFILE;
17545 return (vfscanf(&strbuf, "%d", ap))
17550 rm -f conftest.$ac_objext conftest$ac_exeext
17551 if { (eval echo "$as_me:17551: \"$ac_link\"") >&5
17552 (eval $ac_link) 2>&5
17554 echo "$as_me:17554: \$? = $ac_status" >&5
17555 (exit $ac_status); } &&
17556 { ac_try='test -s conftest$ac_exeext'
17557 { (eval echo "$as_me:17557: \"$ac_try\"") >&5
17558 (eval $ac_try) 2>&5
17560 echo "$as_me:17560: \$? = $ac_status" >&5
17561 (exit $ac_status); }; }; then
17562 cf_cv_func_vsscanf=vfscanf
17564 echo "$as_me: failed program was:" >&5
17565 cat conftest.$ac_ext >&5
17567 cat >conftest.$ac_ext <<_ACEOF
17568 #line 17568 "configure"
17569 #include "confdefs.h"
17571 #include <stdarg.h>
17578 char *str = "from";
17580 strbuf._flag = _IOREAD;
17581 strbuf._ptr = strbuf._base = (unsigned char *) str;
17582 strbuf._cnt = strlen(str);
17583 strbuf._file = _NFILE;
17584 return (_doscan(&strbuf, "%d", ap))
17589 rm -f conftest.$ac_objext conftest$ac_exeext
17590 if { (eval echo "$as_me:17590: \"$ac_link\"") >&5
17591 (eval $ac_link) 2>&5
17593 echo "$as_me:17593: \$? = $ac_status" >&5
17594 (exit $ac_status); } &&
17595 { ac_try='test -s conftest$ac_exeext'
17596 { (eval echo "$as_me:17596: \"$ac_try\"") >&5
17597 (eval $ac_try) 2>&5
17599 echo "$as_me:17599: \$? = $ac_status" >&5
17600 (exit $ac_status); }; }; then
17601 cf_cv_func_vsscanf=_doscan
17603 echo "$as_me: failed program was:" >&5
17604 cat conftest.$ac_ext >&5
17606 cf_cv_func_vsscanf=no
17608 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17610 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17612 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17614 echo "$as_me:17614: result: $cf_cv_func_vsscanf" >&5
17615 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
17617 case $cf_cv_func_vsscanf in
17619 cat >>confdefs.h <<\EOF
17620 #define HAVE_VSSCANF 1
17624 cat >>confdefs.h <<\EOF
17625 #define HAVE_VFSCANF 1
17629 cat >>confdefs.h <<\EOF
17630 #define HAVE__DOSCAN 1
17635 echo "$as_me:17635: checking for working mkstemp" >&5
17636 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
17637 if test "${cf_cv_func_mkstemp+set}" = set; then
17638 echo $ECHO_N "(cached) $ECHO_C" >&6
17642 if test "$cross_compiling" = yes; then
17643 cf_cv_func_mkstemp=maybe
17645 cat >conftest.$ac_ext <<_ACEOF
17646 #line 17646 "configure"
17647 #include "confdefs.h"
17649 #include <sys/types.h>
17650 #include <stdlib.h>
17652 #include <string.h>
17653 #include <sys/stat.h>
17656 char *tmpl = "conftestXXXXXX";
17664 for (n = 0; n < 2; ++n) {
17665 strcpy(name[n], tmpl);
17666 if ((fd = mkstemp(name[n])) >= 0) {
17667 if (!strcmp(name[n], tmpl)
17668 || stat(name[n], &sb) != 0
17669 || (sb.st_mode & S_IFMT) != S_IFREG
17670 || (sb.st_mode & 077) != 0) {
17677 && !strcmp(name[0], name[1]))
17679 ${cf_cv_main_return:-return}(result);
17683 rm -f conftest$ac_exeext
17684 if { (eval echo "$as_me:17684: \"$ac_link\"") >&5
17685 (eval $ac_link) 2>&5
17687 echo "$as_me:17687: \$? = $ac_status" >&5
17688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17689 { (eval echo "$as_me:17689: \"$ac_try\"") >&5
17690 (eval $ac_try) 2>&5
17692 echo "$as_me:17692: \$? = $ac_status" >&5
17693 (exit $ac_status); }; }; then
17694 cf_cv_func_mkstemp=yes
17697 echo "$as_me: program exited with status $ac_status" >&5
17698 echo "$as_me: failed program was:" >&5
17699 cat conftest.$ac_ext >&5
17700 cf_cv_func_mkstemp=no
17703 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17707 echo "$as_me:17707: result: $cf_cv_func_mkstemp" >&5
17708 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
17709 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
17710 echo "$as_me:17710: checking for mkstemp" >&5
17711 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
17712 if test "${ac_cv_func_mkstemp+set}" = set; then
17713 echo $ECHO_N "(cached) $ECHO_C" >&6
17715 cat >conftest.$ac_ext <<_ACEOF
17716 #line 17716 "configure"
17717 #include "confdefs.h"
17718 /* System header to define __stub macros and hopefully few prototypes,
17719 which can conflict with char mkstemp (); below. */
17720 #include <assert.h>
17721 /* Override any gcc2 internal prototype to avoid an error. */
17725 /* We use char because int might match the return type of a gcc2
17726 builtin and then its argument prototype would still apply. */
17733 /* The GNU C library defines this for functions which it implements
17734 to always fail with ENOSYS. Some functions are actually named
17735 something starting with __ and the normal name is an alias. */
17736 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
17739 f = mkstemp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
17746 rm -f conftest.$ac_objext conftest$ac_exeext
17747 if { (eval echo "$as_me:17747: \"$ac_link\"") >&5
17748 (eval $ac_link) 2>&5
17750 echo "$as_me:17750: \$? = $ac_status" >&5
17751 (exit $ac_status); } &&
17752 { ac_try='test -s conftest$ac_exeext'
17753 { (eval echo "$as_me:17753: \"$ac_try\"") >&5
17754 (eval $ac_try) 2>&5
17756 echo "$as_me:17756: \$? = $ac_status" >&5
17757 (exit $ac_status); }; }; then
17758 ac_cv_func_mkstemp=yes
17760 echo "$as_me: failed program was:" >&5
17761 cat conftest.$ac_ext >&5
17762 ac_cv_func_mkstemp=no
17764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17766 echo "$as_me:17766: result: $ac_cv_func_mkstemp" >&5
17767 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
17770 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
17772 cat >>confdefs.h <<\EOF
17773 #define HAVE_MKSTEMP 1
17778 # setup for prototype of fallback for vsscanf()
17780 if test "$cf_cv_func_vsscanf" = vsscanf ; then
17786 if test "x$cross_compiling" = xyes ; then
17787 { echo "$as_me:17787: WARNING: cross compiling: assume setvbuf params not reversed" >&5
17788 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
17790 echo "$as_me:17790: checking whether setvbuf arguments are reversed" >&5
17791 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
17792 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
17793 echo $ECHO_N "(cached) $ECHO_C" >&6
17795 if test "$cross_compiling" = yes; then
17796 { { echo "$as_me:17796: error: cannot run test program while cross compiling" >&5
17797 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
17798 { (exit 1); exit 1; }; }
17800 cat >conftest.$ac_ext <<_ACEOF
17801 #line 17801 "configure"
17802 #include "confdefs.h"
17804 /* If setvbuf has the reversed format, exit 0. */
17808 /* This call has the arguments reversed.
17809 A reversed system may check and see that the address of main
17810 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
17811 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
17812 $ac_main_return(1);
17813 putc('\r', stdout);
17814 $ac_main_return(0); /* Non-reversed systems segv here. */
17817 rm -f conftest$ac_exeext
17818 if { (eval echo "$as_me:17818: \"$ac_link\"") >&5
17819 (eval $ac_link) 2>&5
17821 echo "$as_me:17821: \$? = $ac_status" >&5
17822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17823 { (eval echo "$as_me:17823: \"$ac_try\"") >&5
17824 (eval $ac_try) 2>&5
17826 echo "$as_me:17826: \$? = $ac_status" >&5
17827 (exit $ac_status); }; }; then
17828 ac_cv_func_setvbuf_reversed=yes
17830 echo "$as_me: program exited with status $ac_status" >&5
17831 echo "$as_me: failed program was:" >&5
17832 cat conftest.$ac_ext >&5
17833 ac_cv_func_setvbuf_reversed=no
17835 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17837 rm -f core core.* *.core
17839 echo "$as_me:17839: result: $ac_cv_func_setvbuf_reversed" >&5
17840 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
17841 if test $ac_cv_func_setvbuf_reversed = yes; then
17843 cat >>confdefs.h <<\EOF
17844 #define SETVBUF_REVERSED 1
17850 echo "$as_me:17850: checking for intptr_t" >&5
17851 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
17852 if test "${ac_cv_type_intptr_t+set}" = set; then
17853 echo $ECHO_N "(cached) $ECHO_C" >&6
17855 cat >conftest.$ac_ext <<_ACEOF
17856 #line 17856 "configure"
17857 #include "confdefs.h"
17858 $ac_includes_default
17862 if ((intptr_t *) 0)
17864 if (sizeof (intptr_t))
17870 rm -f conftest.$ac_objext
17871 if { (eval echo "$as_me:17871: \"$ac_compile\"") >&5
17872 (eval $ac_compile) 2>&5
17874 echo "$as_me:17874: \$? = $ac_status" >&5
17875 (exit $ac_status); } &&
17876 { ac_try='test -s conftest.$ac_objext'
17877 { (eval echo "$as_me:17877: \"$ac_try\"") >&5
17878 (eval $ac_try) 2>&5
17880 echo "$as_me:17880: \$? = $ac_status" >&5
17881 (exit $ac_status); }; }; then
17882 ac_cv_type_intptr_t=yes
17884 echo "$as_me: failed program was:" >&5
17885 cat conftest.$ac_ext >&5
17886 ac_cv_type_intptr_t=no
17888 rm -f conftest.$ac_objext conftest.$ac_ext
17890 echo "$as_me:17890: result: $ac_cv_type_intptr_t" >&5
17891 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
17892 if test $ac_cv_type_intptr_t = yes; then
17896 cat >>confdefs.h <<EOF
17897 #define intptr_t long
17902 echo "$as_me:17902: checking for ssize_t" >&5
17903 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17904 if test "${ac_cv_type_ssize_t+set}" = set; then
17905 echo $ECHO_N "(cached) $ECHO_C" >&6
17907 cat >conftest.$ac_ext <<_ACEOF
17908 #line 17908 "configure"
17909 #include "confdefs.h"
17910 $ac_includes_default
17916 if (sizeof (ssize_t))
17922 rm -f conftest.$ac_objext
17923 if { (eval echo "$as_me:17923: \"$ac_compile\"") >&5
17924 (eval $ac_compile) 2>&5
17926 echo "$as_me:17926: \$? = $ac_status" >&5
17927 (exit $ac_status); } &&
17928 { ac_try='test -s conftest.$ac_objext'
17929 { (eval echo "$as_me:17929: \"$ac_try\"") >&5
17930 (eval $ac_try) 2>&5
17932 echo "$as_me:17932: \$? = $ac_status" >&5
17933 (exit $ac_status); }; }; then
17934 ac_cv_type_ssize_t=yes
17936 echo "$as_me: failed program was:" >&5
17937 cat conftest.$ac_ext >&5
17938 ac_cv_type_ssize_t=no
17940 rm -f conftest.$ac_objext conftest.$ac_ext
17942 echo "$as_me:17942: result: $ac_cv_type_ssize_t" >&5
17943 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17944 if test $ac_cv_type_ssize_t = yes; then
17948 cat >>confdefs.h <<EOF
17949 #define ssize_t int
17954 echo "$as_me:17954: checking for type sigaction_t" >&5
17955 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
17956 if test "${cf_cv_type_sigaction+set}" = set; then
17957 echo $ECHO_N "(cached) $ECHO_C" >&6
17960 cat >conftest.$ac_ext <<_ACEOF
17961 #line 17961 "configure"
17962 #include "confdefs.h"
17964 #include <signal.h>
17973 rm -f conftest.$ac_objext
17974 if { (eval echo "$as_me:17974: \"$ac_compile\"") >&5
17975 (eval $ac_compile) 2>&5
17977 echo "$as_me:17977: \$? = $ac_status" >&5
17978 (exit $ac_status); } &&
17979 { ac_try='test -s conftest.$ac_objext'
17980 { (eval echo "$as_me:17980: \"$ac_try\"") >&5
17981 (eval $ac_try) 2>&5
17983 echo "$as_me:17983: \$? = $ac_status" >&5
17984 (exit $ac_status); }; }; then
17985 cf_cv_type_sigaction=yes
17987 echo "$as_me: failed program was:" >&5
17988 cat conftest.$ac_ext >&5
17989 cf_cv_type_sigaction=no
17991 rm -f conftest.$ac_objext conftest.$ac_ext
17994 echo "$as_me:17994: result: $cf_cv_type_sigaction" >&5
17995 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
17996 test "$cf_cv_type_sigaction" = yes &&
17997 cat >>confdefs.h <<\EOF
17998 #define HAVE_TYPE_SIGACTION 1
18001 echo "$as_me:18001: checking declaration of size-change" >&5
18002 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
18003 if test "${cf_cv_sizechange+set}" = set; then
18004 echo $ECHO_N "(cached) $ECHO_C" >&6
18007 cf_cv_sizechange=unknown
18008 cf_save_CPPFLAGS="$CPPFLAGS"
18010 for cf_opts in "" "NEED_PTEM_H"
18013 CPPFLAGS="$cf_save_CPPFLAGS"
18014 test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts"
18015 cat >conftest.$ac_ext <<_ACEOF
18016 #line 18016 "configure"
18017 #include "confdefs.h"
18018 #include <sys/types.h>
18019 #ifdef HAVE_TERMIOS_H
18020 #include <termios.h>
18022 #ifdef HAVE_TERMIO_H
18023 #include <termio.h>
18027 /* This is a workaround for SCO: they neglected to define struct winsize in
18028 * termios.h -- it's only in termio.h and ptem.h
18030 #include <sys/stream.h>
18031 #include <sys/ptem.h>
18033 #if !defined(sun) || !defined(HAVE_TERMIOS_H)
18034 #include <sys/ioctl.h>
18042 struct ttysize win; /* FIXME: what system is this? */
18043 int y = win.ts_lines;
18044 int x = win.ts_cols;
18047 struct winsize win;
18048 int y = win.ws_row;
18049 int x = win.ws_col;
18051 no TIOCGSIZE or TIOCGWINSZ
18052 #endif /* TIOCGWINSZ */
18053 #endif /* TIOCGSIZE */
18059 rm -f conftest.$ac_objext
18060 if { (eval echo "$as_me:18060: \"$ac_compile\"") >&5
18061 (eval $ac_compile) 2>&5
18063 echo "$as_me:18063: \$? = $ac_status" >&5
18064 (exit $ac_status); } &&
18065 { ac_try='test -s conftest.$ac_objext'
18066 { (eval echo "$as_me:18066: \"$ac_try\"") >&5
18067 (eval $ac_try) 2>&5
18069 echo "$as_me:18069: \$? = $ac_status" >&5
18070 (exit $ac_status); }; }; then
18071 cf_cv_sizechange=yes
18073 echo "$as_me: failed program was:" >&5
18074 cat conftest.$ac_ext >&5
18075 cf_cv_sizechange=no
18077 rm -f conftest.$ac_objext conftest.$ac_ext
18079 CPPFLAGS="$cf_save_CPPFLAGS"
18080 if test "$cf_cv_sizechange" = yes ; then
18081 echo "size-change succeeded ($cf_opts)" >&5
18082 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
18088 echo "$as_me:18088: result: $cf_cv_sizechange" >&5
18089 echo "${ECHO_T}$cf_cv_sizechange" >&6
18090 if test "$cf_cv_sizechange" != no ; then
18092 cat >>confdefs.h <<\EOF
18093 #define HAVE_SIZECHANGE 1
18096 case $cf_cv_sizechange in
18098 cat >>confdefs.h <<EOF
18099 #define $cf_cv_sizechange 1
18106 echo "$as_me:18106: checking for memmove" >&5
18107 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
18108 if test "${ac_cv_func_memmove+set}" = set; then
18109 echo $ECHO_N "(cached) $ECHO_C" >&6
18111 cat >conftest.$ac_ext <<_ACEOF
18112 #line 18112 "configure"
18113 #include "confdefs.h"
18114 /* System header to define __stub macros and hopefully few prototypes,
18115 which can conflict with char memmove (); below. */
18116 #include <assert.h>
18117 /* Override any gcc2 internal prototype to avoid an error. */
18121 /* We use char because int might match the return type of a gcc2
18122 builtin and then its argument prototype would still apply. */
18129 /* The GNU C library defines this for functions which it implements
18130 to always fail with ENOSYS. Some functions are actually named
18131 something starting with __ and the normal name is an alias. */
18132 #if defined (__stub_memmove) || defined (__stub___memmove)
18135 f = memmove; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
18142 rm -f conftest.$ac_objext conftest$ac_exeext
18143 if { (eval echo "$as_me:18143: \"$ac_link\"") >&5
18144 (eval $ac_link) 2>&5
18146 echo "$as_me:18146: \$? = $ac_status" >&5
18147 (exit $ac_status); } &&
18148 { ac_try='test -s conftest$ac_exeext'
18149 { (eval echo "$as_me:18149: \"$ac_try\"") >&5
18150 (eval $ac_try) 2>&5
18152 echo "$as_me:18152: \$? = $ac_status" >&5
18153 (exit $ac_status); }; }; then
18154 ac_cv_func_memmove=yes
18156 echo "$as_me: failed program was:" >&5
18157 cat conftest.$ac_ext >&5
18158 ac_cv_func_memmove=no
18160 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18162 echo "$as_me:18162: result: $ac_cv_func_memmove" >&5
18163 echo "${ECHO_T}$ac_cv_func_memmove" >&6
18164 if test $ac_cv_func_memmove = yes; then
18168 echo "$as_me:18168: checking for bcopy" >&5
18169 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
18170 if test "${ac_cv_func_bcopy+set}" = set; then
18171 echo $ECHO_N "(cached) $ECHO_C" >&6
18173 cat >conftest.$ac_ext <<_ACEOF
18174 #line 18174 "configure"
18175 #include "confdefs.h"
18176 /* System header to define __stub macros and hopefully few prototypes,
18177 which can conflict with char bcopy (); below. */
18178 #include <assert.h>
18179 /* Override any gcc2 internal prototype to avoid an error. */
18183 /* We use char because int might match the return type of a gcc2
18184 builtin and then its argument prototype would still apply. */
18191 /* The GNU C library defines this for functions which it implements
18192 to always fail with ENOSYS. Some functions are actually named
18193 something starting with __ and the normal name is an alias. */
18194 #if defined (__stub_bcopy) || defined (__stub___bcopy)
18197 f = bcopy; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
18204 rm -f conftest.$ac_objext conftest$ac_exeext
18205 if { (eval echo "$as_me:18205: \"$ac_link\"") >&5
18206 (eval $ac_link) 2>&5
18208 echo "$as_me:18208: \$? = $ac_status" >&5
18209 (exit $ac_status); } &&
18210 { ac_try='test -s conftest$ac_exeext'
18211 { (eval echo "$as_me:18211: \"$ac_try\"") >&5
18212 (eval $ac_try) 2>&5
18214 echo "$as_me:18214: \$? = $ac_status" >&5
18215 (exit $ac_status); }; }; then
18216 ac_cv_func_bcopy=yes
18218 echo "$as_me: failed program was:" >&5
18219 cat conftest.$ac_ext >&5
18220 ac_cv_func_bcopy=no
18222 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18224 echo "$as_me:18224: result: $ac_cv_func_bcopy" >&5
18225 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
18226 if test $ac_cv_func_bcopy = yes; then
18228 echo "$as_me:18228: checking if bcopy does overlapping moves" >&5
18229 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
18230 if test "${cf_cv_good_bcopy+set}" = set; then
18231 echo $ECHO_N "(cached) $ECHO_C" >&6
18234 if test "$cross_compiling" = yes; then
18235 cf_cv_good_bcopy=unknown
18237 cat >conftest.$ac_ext <<_ACEOF
18238 #line 18238 "configure"
18239 #include "confdefs.h"
18242 static char data[] = "abcdefghijklmnopqrstuwwxyz";
18244 bcopy(data, temp, sizeof(data));
18245 bcopy(temp+10, temp, 15);
18246 bcopy(temp+5, temp+15, 10);
18247 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
18251 rm -f conftest$ac_exeext
18252 if { (eval echo "$as_me:18252: \"$ac_link\"") >&5
18253 (eval $ac_link) 2>&5
18255 echo "$as_me:18255: \$? = $ac_status" >&5
18256 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18257 { (eval echo "$as_me:18257: \"$ac_try\"") >&5
18258 (eval $ac_try) 2>&5
18260 echo "$as_me:18260: \$? = $ac_status" >&5
18261 (exit $ac_status); }; }; then
18262 cf_cv_good_bcopy=yes
18264 echo "$as_me: program exited with status $ac_status" >&5
18265 echo "$as_me: failed program was:" >&5
18266 cat conftest.$ac_ext >&5
18267 cf_cv_good_bcopy=no
18269 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18273 echo "$as_me:18273: result: $cf_cv_good_bcopy" >&5
18274 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
18277 cf_cv_good_bcopy=no
18280 if test "$cf_cv_good_bcopy" = yes ; then
18282 cat >>confdefs.h <<\EOF
18283 #define USE_OK_BCOPY 1
18288 cat >>confdefs.h <<\EOF
18289 #define USE_MY_MEMMOVE 1
18296 tty 2>&1 >/dev/null || {
18297 for ac_func in posix_openpt
18299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18300 echo "$as_me:18300: checking for $ac_func" >&5
18301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18302 if eval "test \"\${$as_ac_var+set}\" = set"; then
18303 echo $ECHO_N "(cached) $ECHO_C" >&6
18305 cat >conftest.$ac_ext <<_ACEOF
18306 #line 18306 "configure"
18307 #include "confdefs.h"
18308 /* System header to define __stub macros and hopefully few prototypes,
18309 which can conflict with char $ac_func (); below. */
18310 #include <assert.h>
18311 /* Override any gcc2 internal prototype to avoid an error. */
18315 /* We use char because int might match the return type of a gcc2
18316 builtin and then its argument prototype would still apply. */
18323 /* The GNU C library defines this for functions which it implements
18324 to always fail with ENOSYS. Some functions are actually named
18325 something starting with __ and the normal name is an alias. */
18326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18329 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
18336 rm -f conftest.$ac_objext conftest$ac_exeext
18337 if { (eval echo "$as_me:18337: \"$ac_link\"") >&5
18338 (eval $ac_link) 2>&5
18340 echo "$as_me:18340: \$? = $ac_status" >&5
18341 (exit $ac_status); } &&
18342 { ac_try='test -s conftest$ac_exeext'
18343 { (eval echo "$as_me:18343: \"$ac_try\"") >&5
18344 (eval $ac_try) 2>&5
18346 echo "$as_me:18346: \$? = $ac_status" >&5
18347 (exit $ac_status); }; }; then
18348 eval "$as_ac_var=yes"
18350 echo "$as_me: failed program was:" >&5
18351 cat conftest.$ac_ext >&5
18352 eval "$as_ac_var=no"
18354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18356 echo "$as_me:18356: result: `eval echo '${'$as_ac_var'}'`" >&5
18357 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18358 if test `eval echo '${'$as_ac_var'}'` = yes; then
18359 cat >>confdefs.h <<EOF
18360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18366 echo "$as_me:18366: checking if poll really works" >&5
18367 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
18368 if test "${cf_cv_working_poll+set}" = set; then
18369 echo $ECHO_N "(cached) $ECHO_C" >&6
18372 if test "$cross_compiling" = yes; then
18373 cf_cv_working_poll=unknown
18375 cat >conftest.$ac_ext <<_ACEOF
18376 #line 18376 "configure"
18377 #include "confdefs.h"
18379 #include <stdlib.h>
18381 #include <unistd.h>
18386 #include <sys/poll.h>
18389 struct pollfd myfds;
18392 /* check for Darwin bug with respect to "devices" */
18393 myfds.fd = open("/dev/null", 1); /* O_WRONLY */
18396 myfds.events = POLLIN;
18399 ret = poll(&myfds, 1, 100);
18401 if (ret < 0 || (myfds.revents & POLLNVAL)) {
18406 fd = open("/dev/tty", 2); /* O_RDWR */
18408 #ifdef HAVE_POSIX_OPENPT
18410 fd = posix_openpt(O_RDWR);
18415 /* also check with standard input */
18417 myfds.events = POLLIN;
18419 ret = poll(&myfds, 1, 100);
18424 ${cf_cv_main_return:-return}(ret < 0);
18427 rm -f conftest$ac_exeext
18428 if { (eval echo "$as_me:18428: \"$ac_link\"") >&5
18429 (eval $ac_link) 2>&5
18431 echo "$as_me:18431: \$? = $ac_status" >&5
18432 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18433 { (eval echo "$as_me:18433: \"$ac_try\"") >&5
18434 (eval $ac_try) 2>&5
18436 echo "$as_me:18436: \$? = $ac_status" >&5
18437 (exit $ac_status); }; }; then
18438 cf_cv_working_poll=yes
18440 echo "$as_me: program exited with status $ac_status" >&5
18441 echo "$as_me: failed program was:" >&5
18442 cat conftest.$ac_ext >&5
18443 cf_cv_working_poll=no
18445 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18448 echo "$as_me:18448: result: $cf_cv_working_poll" >&5
18449 echo "${ECHO_T}$cf_cv_working_poll" >&6
18450 test "$cf_cv_working_poll" = "yes" &&
18451 cat >>confdefs.h <<\EOF
18452 #define HAVE_WORKING_POLL 1
18455 echo "$as_me:18455: checking for va_copy" >&5
18456 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
18457 if test "${cf_cv_have_va_copy+set}" = set; then
18458 echo $ECHO_N "(cached) $ECHO_C" >&6
18461 cat >conftest.$ac_ext <<_ACEOF
18462 #line 18462 "configure"
18463 #include "confdefs.h"
18465 #include <stdarg.h>
18471 static va_list dst;
18472 static va_list src;
18478 rm -f conftest.$ac_objext conftest$ac_exeext
18479 if { (eval echo "$as_me:18479: \"$ac_link\"") >&5
18480 (eval $ac_link) 2>&5
18482 echo "$as_me:18482: \$? = $ac_status" >&5
18483 (exit $ac_status); } &&
18484 { ac_try='test -s conftest$ac_exeext'
18485 { (eval echo "$as_me:18485: \"$ac_try\"") >&5
18486 (eval $ac_try) 2>&5
18488 echo "$as_me:18488: \$? = $ac_status" >&5
18489 (exit $ac_status); }; }; then
18490 cf_cv_have_va_copy=yes
18492 echo "$as_me: failed program was:" >&5
18493 cat conftest.$ac_ext >&5
18494 cf_cv_have_va_copy=no
18496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18498 echo "$as_me:18498: result: $cf_cv_have_va_copy" >&5
18499 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
18501 test "$cf_cv_have_va_copy" = yes &&
18502 cat >>confdefs.h <<\EOF
18503 #define HAVE_VA_COPY 1
18506 echo "$as_me:18506: checking for __va_copy" >&5
18507 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
18508 if test "${cf_cv_have___va_copy+set}" = set; then
18509 echo $ECHO_N "(cached) $ECHO_C" >&6
18512 cat >conftest.$ac_ext <<_ACEOF
18513 #line 18513 "configure"
18514 #include "confdefs.h"
18516 #include <stdarg.h>
18522 static va_list dst;
18523 static va_list src;
18524 __va_copy(dst, src)
18529 rm -f conftest.$ac_objext conftest$ac_exeext
18530 if { (eval echo "$as_me:18530: \"$ac_link\"") >&5
18531 (eval $ac_link) 2>&5
18533 echo "$as_me:18533: \$? = $ac_status" >&5
18534 (exit $ac_status); } &&
18535 { ac_try='test -s conftest$ac_exeext'
18536 { (eval echo "$as_me:18536: \"$ac_try\"") >&5
18537 (eval $ac_try) 2>&5
18539 echo "$as_me:18539: \$? = $ac_status" >&5
18540 (exit $ac_status); }; }; then
18541 cf_cv_have___va_copy=yes
18543 echo "$as_me: failed program was:" >&5
18544 cat conftest.$ac_ext >&5
18545 cf_cv_have___va_copy=no
18547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18549 echo "$as_me:18549: result: $cf_cv_have___va_copy" >&5
18550 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
18552 test "$cf_cv_have___va_copy" = yes &&
18553 cat >>confdefs.h <<\EOF
18554 #define HAVE___VA_COPY 1
18557 echo "$as_me:18557: checking for pid_t" >&5
18558 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
18559 if test "${ac_cv_type_pid_t+set}" = set; then
18560 echo $ECHO_N "(cached) $ECHO_C" >&6
18562 cat >conftest.$ac_ext <<_ACEOF
18563 #line 18563 "configure"
18564 #include "confdefs.h"
18565 $ac_includes_default
18571 if (sizeof (pid_t))
18577 rm -f conftest.$ac_objext
18578 if { (eval echo "$as_me:18578: \"$ac_compile\"") >&5
18579 (eval $ac_compile) 2>&5
18581 echo "$as_me:18581: \$? = $ac_status" >&5
18582 (exit $ac_status); } &&
18583 { ac_try='test -s conftest.$ac_objext'
18584 { (eval echo "$as_me:18584: \"$ac_try\"") >&5
18585 (eval $ac_try) 2>&5
18587 echo "$as_me:18587: \$? = $ac_status" >&5
18588 (exit $ac_status); }; }; then
18589 ac_cv_type_pid_t=yes
18591 echo "$as_me: failed program was:" >&5
18592 cat conftest.$ac_ext >&5
18593 ac_cv_type_pid_t=no
18595 rm -f conftest.$ac_objext conftest.$ac_ext
18597 echo "$as_me:18597: result: $ac_cv_type_pid_t" >&5
18598 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
18599 if test $ac_cv_type_pid_t = yes; then
18603 cat >>confdefs.h <<EOF
18609 for ac_header in unistd.h vfork.h
18611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18612 echo "$as_me:18612: checking for $ac_header" >&5
18613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18615 echo $ECHO_N "(cached) $ECHO_C" >&6
18617 cat >conftest.$ac_ext <<_ACEOF
18618 #line 18618 "configure"
18619 #include "confdefs.h"
18620 #include <$ac_header>
18622 if { (eval echo "$as_me:18622: \"$ac_cpp conftest.$ac_ext\"") >&5
18623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18625 egrep -v '^ *\+' conftest.er1 >conftest.err
18627 cat conftest.err >&5
18628 echo "$as_me:18628: \$? = $ac_status" >&5
18629 (exit $ac_status); } >/dev/null; then
18630 if test -s conftest.err; then
18631 ac_cpp_err=$ac_c_preproc_warn_flag
18638 if test -z "$ac_cpp_err"; then
18639 eval "$as_ac_Header=yes"
18641 echo "$as_me: failed program was:" >&5
18642 cat conftest.$ac_ext >&5
18643 eval "$as_ac_Header=no"
18645 rm -f conftest.err conftest.$ac_ext
18647 echo "$as_me:18647: result: `eval echo '${'$as_ac_Header'}'`" >&5
18648 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18649 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18650 cat >>confdefs.h <<EOF
18651 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18657 for ac_func in fork vfork
18659 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18660 echo "$as_me:18660: checking for $ac_func" >&5
18661 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18662 if eval "test \"\${$as_ac_var+set}\" = set"; then
18663 echo $ECHO_N "(cached) $ECHO_C" >&6
18665 cat >conftest.$ac_ext <<_ACEOF
18666 #line 18666 "configure"
18667 #include "confdefs.h"
18668 /* System header to define __stub macros and hopefully few prototypes,
18669 which can conflict with char $ac_func (); below. */
18670 #include <assert.h>
18671 /* Override any gcc2 internal prototype to avoid an error. */
18675 /* We use char because int might match the return type of a gcc2
18676 builtin and then its argument prototype would still apply. */
18683 /* The GNU C library defines this for functions which it implements
18684 to always fail with ENOSYS. Some functions are actually named
18685 something starting with __ and the normal name is an alias. */
18686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18689 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
18696 rm -f conftest.$ac_objext conftest$ac_exeext
18697 if { (eval echo "$as_me:18697: \"$ac_link\"") >&5
18698 (eval $ac_link) 2>&5
18700 echo "$as_me:18700: \$? = $ac_status" >&5
18701 (exit $ac_status); } &&
18702 { ac_try='test -s conftest$ac_exeext'
18703 { (eval echo "$as_me:18703: \"$ac_try\"") >&5
18704 (eval $ac_try) 2>&5
18706 echo "$as_me:18706: \$? = $ac_status" >&5
18707 (exit $ac_status); }; }; then
18708 eval "$as_ac_var=yes"
18710 echo "$as_me: failed program was:" >&5
18711 cat conftest.$ac_ext >&5
18712 eval "$as_ac_var=no"
18714 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18716 echo "$as_me:18716: result: `eval echo '${'$as_ac_var'}'`" >&5
18717 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18718 if test `eval echo '${'$as_ac_var'}'` = yes; then
18719 cat >>confdefs.h <<EOF
18720 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18726 ac_cv_func_fork_works=$ac_cv_func_fork
18727 if test "x$ac_cv_func_fork" = xyes; then
18728 echo "$as_me:18728: checking for working fork" >&5
18729 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
18730 if test "${ac_cv_func_fork_works+set}" = set; then
18731 echo $ECHO_N "(cached) $ECHO_C" >&6
18733 if test "$cross_compiling" = yes; then
18734 ac_cv_func_fork_works=cross
18736 cat >conftest.$ac_ext <<_ACEOF
18737 /* By Rüdiger Kuhlmann. */
18738 #include <sys/types.h>
18740 # include <unistd.h>
18742 /* Some systems only have a dummy stub for fork() */
18746 $ac_main_return (1);
18747 $ac_main_return (0);
18750 rm -f conftest$ac_exeext
18751 if { (eval echo "$as_me:18751: \"$ac_link\"") >&5
18752 (eval $ac_link) 2>&5
18754 echo "$as_me:18754: \$? = $ac_status" >&5
18755 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18756 { (eval echo "$as_me:18756: \"$ac_try\"") >&5
18757 (eval $ac_try) 2>&5
18759 echo "$as_me:18759: \$? = $ac_status" >&5
18760 (exit $ac_status); }; }; then
18761 ac_cv_func_fork_works=yes
18763 echo "$as_me: program exited with status $ac_status" >&5
18764 echo "$as_me: failed program was:" >&5
18765 cat conftest.$ac_ext >&5
18766 ac_cv_func_fork_works=no
18768 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18771 echo "$as_me:18771: result: $ac_cv_func_fork_works" >&5
18772 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
18775 if test "x$ac_cv_func_fork_works" = xcross; then
18777 *-*-amigaos* | *-*-msdosdjgpp*)
18778 # Override, as these systems have only a dummy fork() stub
18779 ac_cv_func_fork_works=no
18782 ac_cv_func_fork_works=yes
18785 { echo "$as_me:18785: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
18786 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
18788 ac_cv_func_vfork_works=$ac_cv_func_vfork
18789 if test "x$ac_cv_func_vfork" = xyes; then
18790 echo "$as_me:18790: checking for working vfork" >&5
18791 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
18792 if test "${ac_cv_func_vfork_works+set}" = set; then
18793 echo $ECHO_N "(cached) $ECHO_C" >&6
18795 if test "$cross_compiling" = yes; then
18796 ac_cv_func_vfork_works=cross
18798 cat >conftest.$ac_ext <<_ACEOF
18799 #line 18799 "configure"
18800 #include "confdefs.h"
18801 /* Thanks to Paul Eggert for this test. */
18803 #include <sys/types.h>
18804 #include <sys/stat.h>
18806 # include <unistd.h>
18809 # include <vfork.h>
18811 /* On some sparc systems, changes by the child to local and incoming
18812 argument registers are propagated back to the parent. The compiler
18813 is told about this with #include <vfork.h>, but some compilers
18814 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
18815 static variable whose address is put into a register that is
18816 clobbered by the vfork. */
18819 sparc_address_test (int arg)
18821 sparc_address_test (arg) int arg;
18824 static pid_t child;
18842 pid_t parent = getpid ();
18845 sparc_address_test ();
18850 /* Here is another test for sparc vfork register problems. This
18851 test uses lots of local variables, at least as many local
18852 variables as main has allocated so far including compiler
18853 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
18854 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
18855 reuse the register of parent for one of the local variables,
18856 since it will think that parent can't possibly be used any more
18857 in this routine. Assigning to the local variable will thus
18858 munge parent in the parent process. */
18860 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
18861 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
18862 /* Convince the compiler that p..p7 are live; otherwise, it might
18863 use the same hardware register for all 8 local variables. */
18864 if (p != p1 || p != p2 || p != p3 || p != p4
18865 || p != p5 || p != p6 || p != p7)
18868 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
18869 from child file descriptors. If the child closes a descriptor
18870 before it execs or exits, this munges the parent's descriptor
18871 as well. Test for this by closing stdout in the child. */
18872 _exit(close(fileno(stdout)) != 0);
18877 while (wait(&status) != child)
18880 /* Was there some problem with vforking? */
18883 /* Did the child fail? (This shouldn't happen.) */
18886 /* Did the vfork/compiler bug occur? */
18887 || parent != getpid()
18889 /* Did the file descriptor bug occur? */
18890 || fstat(fileno(stdout), &st) != 0
18895 rm -f conftest$ac_exeext
18896 if { (eval echo "$as_me:18896: \"$ac_link\"") >&5
18897 (eval $ac_link) 2>&5
18899 echo "$as_me:18899: \$? = $ac_status" >&5
18900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18901 { (eval echo "$as_me:18901: \"$ac_try\"") >&5
18902 (eval $ac_try) 2>&5
18904 echo "$as_me:18904: \$? = $ac_status" >&5
18905 (exit $ac_status); }; }; then
18906 ac_cv_func_vfork_works=yes
18908 echo "$as_me: program exited with status $ac_status" >&5
18909 echo "$as_me: failed program was:" >&5
18910 cat conftest.$ac_ext >&5
18911 ac_cv_func_vfork_works=no
18913 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18916 echo "$as_me:18916: result: $ac_cv_func_vfork_works" >&5
18917 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
18920 if test "x$ac_cv_func_fork_works" = xcross; then
18921 ac_cv_func_vfork_works=ac_cv_func_vfork
18922 { echo "$as_me:18922: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
18923 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
18926 if test "x$ac_cv_func_vfork_works" = xyes; then
18928 cat >>confdefs.h <<\EOF
18929 #define HAVE_WORKING_VFORK 1
18934 cat >>confdefs.h <<\EOF
18939 if test "x$ac_cv_func_fork_works" = xyes; then
18941 cat >>confdefs.h <<\EOF
18942 #define HAVE_WORKING_FORK 1
18947 # special check for test/ditto.c
18949 echo "$as_me:18949: checking for openpty in -lutil" >&5
18950 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
18951 if test "${ac_cv_lib_util_openpty+set}" = set; then
18952 echo $ECHO_N "(cached) $ECHO_C" >&6
18954 ac_check_lib_save_LIBS=$LIBS
18955 LIBS="-lutil $LIBS"
18956 cat >conftest.$ac_ext <<_ACEOF
18957 #line 18957 "configure"
18958 #include "confdefs.h"
18960 /* Override any gcc2 internal prototype to avoid an error. */
18964 /* We use char because int might match the return type of a gcc2
18965 builtin and then its argument prototype would still apply. */
18975 rm -f conftest.$ac_objext conftest$ac_exeext
18976 if { (eval echo "$as_me:18976: \"$ac_link\"") >&5
18977 (eval $ac_link) 2>&5
18979 echo "$as_me:18979: \$? = $ac_status" >&5
18980 (exit $ac_status); } &&
18981 { ac_try='test -s conftest$ac_exeext'
18982 { (eval echo "$as_me:18982: \"$ac_try\"") >&5
18983 (eval $ac_try) 2>&5
18985 echo "$as_me:18985: \$? = $ac_status" >&5
18986 (exit $ac_status); }; }; then
18987 ac_cv_lib_util_openpty=yes
18989 echo "$as_me: failed program was:" >&5
18990 cat conftest.$ac_ext >&5
18991 ac_cv_lib_util_openpty=no
18993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18994 LIBS=$ac_check_lib_save_LIBS
18996 echo "$as_me:18996: result: $ac_cv_lib_util_openpty" >&5
18997 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
18998 if test $ac_cv_lib_util_openpty = yes; then
19004 echo "$as_me:19004: checking for openpty header" >&5
19005 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
19006 if test "${cf_cv_func_openpty+set}" = set; then
19007 echo $ECHO_N "(cached) $ECHO_C" >&6
19010 cf_save_LIBS="$LIBS"
19011 test $cf_cv_lib_util = yes && {
19012 cf_add_libs="-lutil"
19013 # Filter out duplicates - this happens with badly-designed ".pc" files...
19014 for cf_add_1lib in $LIBS
19016 for cf_add_2lib in $cf_add_libs
19018 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19024 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19026 LIBS="$cf_add_libs"
19028 for cf_header in pty.h libutil.h util.h
19030 cat >conftest.$ac_ext <<_ACEOF
19031 #line 19031 "configure"
19032 #include "confdefs.h"
19034 #include <$cf_header>
19040 int x = openpty((int *)0, (int *)0, (char *)0,
19041 (struct termios *)0, (struct winsize *)0);
19047 rm -f conftest.$ac_objext conftest$ac_exeext
19048 if { (eval echo "$as_me:19048: \"$ac_link\"") >&5
19049 (eval $ac_link) 2>&5
19051 echo "$as_me:19051: \$? = $ac_status" >&5
19052 (exit $ac_status); } &&
19053 { ac_try='test -s conftest$ac_exeext'
19054 { (eval echo "$as_me:19054: \"$ac_try\"") >&5
19055 (eval $ac_try) 2>&5
19057 echo "$as_me:19057: \$? = $ac_status" >&5
19058 (exit $ac_status); }; }; then
19060 cf_cv_func_openpty=$cf_header
19064 echo "$as_me: failed program was:" >&5
19065 cat conftest.$ac_ext >&5
19067 cf_cv_func_openpty=no
19070 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19072 LIBS="$cf_save_LIBS"
19075 echo "$as_me:19075: result: $cf_cv_func_openpty" >&5
19076 echo "${ECHO_T}$cf_cv_func_openpty" >&6
19078 if test "$cf_cv_func_openpty" != no ; then
19080 cat >>confdefs.h <<EOF
19081 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
19084 cat >>confdefs.h <<\EOF
19085 #define USE_XTERM_PTY 1
19088 if test "x$cf_cv_lib_util" = xyes ; then
19090 cf_add_libs="-lutil"
19091 # Filter out duplicates - this happens with badly-designed ".pc" files...
19092 for cf_add_1lib in $TEST_LIBS
19094 for cf_add_2lib in $cf_add_libs
19096 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19102 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19104 TEST_LIBS="$cf_add_libs"
19109 if test "$with_hashed_db" != no ; then
19111 cat >>confdefs.h <<\EOF
19112 #define USE_HASHED_DB 1
19115 case $with_hashed_db in
19119 if test -d "$with_hashed_db" ; then
19121 if test -n "$with_hashed_db/include" ; then
19122 for cf_add_incdir in $with_hashed_db/include
19124 while test $cf_add_incdir != /usr/include
19126 if test -d $cf_add_incdir
19129 if test -n "$CFLAGS$CPPFLAGS" ; then
19130 # a loop is needed to ensure we can add subdirs of existing dirs
19131 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
19132 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
19133 cf_have_incdir=yes; break
19138 if test "$cf_have_incdir" = no ; then
19139 if test "$cf_add_incdir" = /usr/local/include ; then
19140 if test "$GCC" = yes
19142 cf_save_CPPFLAGS=$CPPFLAGS
19143 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
19144 cat >conftest.$ac_ext <<_ACEOF
19145 #line 19145 "configure"
19146 #include "confdefs.h"
19156 rm -f conftest.$ac_objext
19157 if { (eval echo "$as_me:19157: \"$ac_compile\"") >&5
19158 (eval $ac_compile) 2>&5
19160 echo "$as_me:19160: \$? = $ac_status" >&5
19161 (exit $ac_status); } &&
19162 { ac_try='test -s conftest.$ac_objext'
19163 { (eval echo "$as_me:19163: \"$ac_try\"") >&5
19164 (eval $ac_try) 2>&5
19166 echo "$as_me:19166: \$? = $ac_status" >&5
19167 (exit $ac_status); }; }; then
19170 echo "$as_me: failed program was:" >&5
19171 cat conftest.$ac_ext >&5
19174 rm -f conftest.$ac_objext conftest.$ac_ext
19175 CPPFLAGS=$cf_save_CPPFLAGS
19180 if test "$cf_have_incdir" = no ; then
19181 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
19183 echo "${as_me:-configure}:19183: testing adding $cf_add_incdir to include-path ..." 1>&5
19185 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
19187 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
19188 test "$cf_top_incdir" = "$cf_add_incdir" && break
19189 cf_add_incdir="$cf_top_incdir"
19200 if test -n "$with_hashed_db/lib" ; then
19201 for cf_add_libdir in $with_hashed_db/lib
19203 if test $cf_add_libdir = /usr/lib ; then
19205 elif test -d $cf_add_libdir
19208 if test -n "$LDFLAGS$LIBS" ; then
19209 # a loop is needed to ensure we can add subdirs of existing dirs
19210 for cf_test_libdir in $LDFLAGS $LIBS ; do
19211 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
19212 cf_have_libdir=yes; break
19216 if test "$cf_have_libdir" = no ; then
19217 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
19219 echo "${as_me:-configure}:19219: testing adding $cf_add_libdir to library-path ..." 1>&5
19221 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
19228 case "$with_hashed_db" in
19230 { echo "$as_me:19230: WARNING: no such directory $with_hashed_db" >&5
19231 echo "$as_me: WARNING: no such directory $with_hashed_db" >&2;}
19237 test "x$prefix" != "xNONE" && \
19238 test -d "$prefix" && \
19240 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
19241 test -d $prefix/include && cf_search="$cf_search $prefix/include"
19242 test -d $prefix/include/$with_hashed_db && cf_search="$cf_search $prefix/include/$with_hashed_db"
19243 test -d $prefix/include/$with_hashed_db/include && cf_search="$cf_search $prefix/include/$with_hashed_db/include"
19244 test -d $prefix/$with_hashed_db/include && cf_search="$cf_search $prefix/$with_hashed_db/include"
19245 test -d $prefix/$with_hashed_db/include/$with_hashed_db && cf_search="$cf_search $prefix/$with_hashed_db/include/$with_hashed_db"
19248 for cf_subdir_prefix in \
19257 test "x$cf_subdir_prefix" != "x$prefix" && \
19258 test -d "$cf_subdir_prefix" && \
19259 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
19260 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
19261 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
19262 test -d $cf_subdir_prefix/include/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db"
19263 test -d $cf_subdir_prefix/include/$with_hashed_db/include && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db/include"
19264 test -d $cf_subdir_prefix/$with_hashed_db/include && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/include"
19265 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"
19270 for cf_item in $cf_search
19273 (*/$with_hashed_db)
19275 if test -n "$cf_item" ; then
19276 for cf_add_incdir in $cf_item
19278 while test $cf_add_incdir != /usr/include
19280 if test -d $cf_add_incdir
19283 if test -n "$CFLAGS$CPPFLAGS" ; then
19284 # a loop is needed to ensure we can add subdirs of existing dirs
19285 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
19286 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
19287 cf_have_incdir=yes; break
19292 if test "$cf_have_incdir" = no ; then
19293 if test "$cf_add_incdir" = /usr/local/include ; then
19294 if test "$GCC" = yes
19296 cf_save_CPPFLAGS=$CPPFLAGS
19297 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
19298 cat >conftest.$ac_ext <<_ACEOF
19299 #line 19299 "configure"
19300 #include "confdefs.h"
19310 rm -f conftest.$ac_objext
19311 if { (eval echo "$as_me:19311: \"$ac_compile\"") >&5
19312 (eval $ac_compile) 2>&5
19314 echo "$as_me:19314: \$? = $ac_status" >&5
19315 (exit $ac_status); } &&
19316 { ac_try='test -s conftest.$ac_objext'
19317 { (eval echo "$as_me:19317: \"$ac_try\"") >&5
19318 (eval $ac_try) 2>&5
19320 echo "$as_me:19320: \$? = $ac_status" >&5
19321 (exit $ac_status); }; }; then
19324 echo "$as_me: failed program was:" >&5
19325 cat conftest.$ac_ext >&5
19328 rm -f conftest.$ac_objext conftest.$ac_ext
19329 CPPFLAGS=$cf_save_CPPFLAGS
19334 if test "$cf_have_incdir" = no ; then
19335 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
19337 echo "${as_me:-configure}:19337: testing adding $cf_add_incdir to include-path ..." 1>&5
19339 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
19341 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
19342 test "$cf_top_incdir" = "$cf_add_incdir" && break
19343 cf_add_incdir="$cf_top_incdir"
19360 test "x$prefix" != "xNONE" && \
19361 test -d "$prefix" && \
19363 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
19364 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
19365 test -d $prefix/lib/$with_hashed_db && cf_search="$cf_search $prefix/lib/$with_hashed_db"
19366 test -d $prefix/lib/$with_hashed_db/lib && cf_search="$cf_search $prefix/lib/$with_hashed_db/lib"
19367 test -d $prefix/$with_hashed_db/lib && cf_search="$cf_search $prefix/$with_hashed_db/lib"
19368 test -d $prefix/$with_hashed_db/lib/$with_hashed_db && cf_search="$cf_search $prefix/$with_hashed_db/lib/$with_hashed_db"
19371 for cf_subdir_prefix in \
19380 test "x$cf_subdir_prefix" != "x$prefix" && \
19381 test -d "$cf_subdir_prefix" && \
19382 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
19383 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
19384 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
19385 test -d $cf_subdir_prefix/lib/$with_hashed_db && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db"
19386 test -d $cf_subdir_prefix/lib/$with_hashed_db/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db/lib"
19387 test -d $cf_subdir_prefix/$with_hashed_db/lib && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/lib"
19388 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"
19393 for cf_item in $cf_search
19396 (*/$with_hashed_db)
19398 if test -n "$cf_item" ; then
19399 for cf_add_libdir in $cf_item
19401 if test $cf_add_libdir = /usr/lib ; then
19403 elif test -d $cf_add_libdir
19406 if test -n "$LDFLAGS$LIBS" ; then
19407 # a loop is needed to ensure we can add subdirs of existing dirs
19408 for cf_test_libdir in $LDFLAGS $LIBS ; do
19409 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
19410 cf_have_libdir=yes; break
19414 if test "$cf_have_libdir" = no ; then
19415 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
19417 echo "${as_me:-configure}:19417: testing adding $cf_add_libdir to library-path ..." 1>&5
19419 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
19434 echo "$as_me:19434: checking for db.h" >&5
19435 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
19436 if test "${ac_cv_header_db_h+set}" = set; then
19437 echo $ECHO_N "(cached) $ECHO_C" >&6
19439 cat >conftest.$ac_ext <<_ACEOF
19440 #line 19440 "configure"
19441 #include "confdefs.h"
19444 if { (eval echo "$as_me:19444: \"$ac_cpp conftest.$ac_ext\"") >&5
19445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19447 egrep -v '^ *\+' conftest.er1 >conftest.err
19449 cat conftest.err >&5
19450 echo "$as_me:19450: \$? = $ac_status" >&5
19451 (exit $ac_status); } >/dev/null; then
19452 if test -s conftest.err; then
19453 ac_cpp_err=$ac_c_preproc_warn_flag
19460 if test -z "$ac_cpp_err"; then
19461 ac_cv_header_db_h=yes
19463 echo "$as_me: failed program was:" >&5
19464 cat conftest.$ac_ext >&5
19465 ac_cv_header_db_h=no
19467 rm -f conftest.err conftest.$ac_ext
19469 echo "$as_me:19469: result: $ac_cv_header_db_h" >&5
19470 echo "${ECHO_T}$ac_cv_header_db_h" >&6
19471 if test $ac_cv_header_db_h = yes; then
19473 echo "$as_me:19473: checking for version of db" >&5
19474 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
19475 if test "${cf_cv_hashed_db_version+set}" = set; then
19476 echo $ECHO_N "(cached) $ECHO_C" >&6
19479 cf_cv_hashed_db_version=unknown
19481 for cf_db_version in 1 2 3 4 5 6
19484 echo "${as_me:-configure}:19484: testing checking for db version $cf_db_version ..." 1>&5
19486 cat >conftest.$ac_ext <<_ACEOF
19487 #line 19487 "configure"
19488 #include "confdefs.h"
19490 $ac_includes_default
19493 #ifdef DB_VERSION_MAJOR
19494 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
19495 #if $cf_db_version == DB_VERSION_MAJOR
19501 #if $cf_db_version == 1
19502 /* ok: assuming this is DB 1.8.5 */
19516 rm -f conftest.$ac_objext
19517 if { (eval echo "$as_me:19517: \"$ac_compile\"") >&5
19518 (eval $ac_compile) 2>&5
19520 echo "$as_me:19520: \$? = $ac_status" >&5
19521 (exit $ac_status); } &&
19522 { ac_try='test -s conftest.$ac_objext'
19523 { (eval echo "$as_me:19523: \"$ac_try\"") >&5
19524 (eval $ac_try) 2>&5
19526 echo "$as_me:19526: \$? = $ac_status" >&5
19527 (exit $ac_status); }; }; then
19529 cf_cv_hashed_db_version=$cf_db_version
19533 echo "$as_me: failed program was:" >&5
19534 cat conftest.$ac_ext >&5
19536 rm -f conftest.$ac_objext conftest.$ac_ext
19540 echo "$as_me:19540: result: $cf_cv_hashed_db_version" >&5
19541 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
19543 if test "$cf_cv_hashed_db_version" = unknown ; then
19544 { { echo "$as_me:19544: error: Cannot determine version of db" >&5
19545 echo "$as_me: error: Cannot determine version of db" >&2;}
19546 { (exit 1); exit 1; }; }
19549 echo "$as_me:19549: checking for db libraries" >&5
19550 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
19551 if test "${cf_cv_hashed_db_libs+set}" = set; then
19552 echo $ECHO_N "(cached) $ECHO_C" >&6
19555 cf_cv_hashed_db_libs=unknown
19556 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
19558 cf_save_libs="$LIBS"
19559 if test -n "$cf_db_libs"; then
19561 cf_add_libs="-l$cf_db_libs"
19562 # Filter out duplicates - this happens with badly-designed ".pc" files...
19563 for cf_add_1lib in $LIBS
19565 for cf_add_2lib in $cf_add_libs
19567 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19573 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19575 LIBS="$cf_add_libs"
19579 echo "${as_me:-configure}:19579: testing checking for library "$cf_db_libs" ..." 1>&5
19581 cat >conftest.$ac_ext <<_ACEOF
19582 #line 19582 "configure"
19583 #include "confdefs.h"
19585 $ac_includes_default
19592 char *path = "/tmp/foo";
19593 #ifdef DB_VERSION_MAJOR
19594 #if DB_VERSION_MAJOR >= 4
19596 db_create(&result, NULL, 0);
19597 result->open(result,
19604 #elif DB_VERSION_MAJOR >= 3
19606 db_create(&result, NULL, 0);
19607 result->open(result,
19613 #elif DB_VERSION_MAJOR >= 2
19622 #endif /* DB_VERSION_MAJOR */
19624 DB *result = dbopen(path,
19630 ${cf_cv_main_return:-return}(result != 0)
19636 rm -f conftest.$ac_objext conftest$ac_exeext
19637 if { (eval echo "$as_me:19637: \"$ac_link\"") >&5
19638 (eval $ac_link) 2>&5
19640 echo "$as_me:19640: \$? = $ac_status" >&5
19641 (exit $ac_status); } &&
19642 { ac_try='test -s conftest$ac_exeext'
19643 { (eval echo "$as_me:19643: \"$ac_try\"") >&5
19644 (eval $ac_try) 2>&5
19646 echo "$as_me:19646: \$? = $ac_status" >&5
19647 (exit $ac_status); }; }; then
19649 if test -n "$cf_db_libs" ; then
19650 cf_cv_hashed_db_libs=$cf_db_libs
19652 cf_cv_hashed_db_libs=default
19654 LIBS="$cf_save_libs"
19658 echo "$as_me: failed program was:" >&5
19659 cat conftest.$ac_ext >&5
19661 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19662 LIBS="$cf_save_libs"
19666 echo "$as_me:19666: result: $cf_cv_hashed_db_libs" >&5
19667 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
19669 if test "$cf_cv_hashed_db_libs" = unknown ; then
19670 { { echo "$as_me:19670: error: Cannot determine library for db" >&5
19671 echo "$as_me: error: Cannot determine library for db" >&2;}
19672 { (exit 1); exit 1; }; }
19673 elif test "$cf_cv_hashed_db_libs" != default ; then
19675 cf_add_libs="-l$cf_cv_hashed_db_libs"
19676 # Filter out duplicates - this happens with badly-designed ".pc" files...
19677 for cf_add_1lib in $LIBS
19679 for cf_add_2lib in $cf_add_libs
19681 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19687 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19689 LIBS="$cf_add_libs"
19696 { { echo "$as_me:19696: error: Cannot find db.h" >&5
19697 echo "$as_me: error: Cannot find db.h" >&2;}
19698 { (exit 1); exit 1; }; }
19704 if test -z "$cf_user_CFLAGS" && test "$with_no_leaks" = no ; then
19705 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
19706 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
19709 # Just in case, check if the C compiler has a bool type.
19711 echo "$as_me:19711: checking if we should include stdbool.h" >&5
19712 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
19714 if test "${cf_cv_header_stdbool_h+set}" = set; then
19715 echo $ECHO_N "(cached) $ECHO_C" >&6
19718 cat >conftest.$ac_ext <<_ACEOF
19719 #line 19719 "configure"
19720 #include "confdefs.h"
19730 rm -f conftest.$ac_objext
19731 if { (eval echo "$as_me:19731: \"$ac_compile\"") >&5
19732 (eval $ac_compile) 2>&5
19734 echo "$as_me:19734: \$? = $ac_status" >&5
19735 (exit $ac_status); } &&
19736 { ac_try='test -s conftest.$ac_objext'
19737 { (eval echo "$as_me:19737: \"$ac_try\"") >&5
19738 (eval $ac_try) 2>&5
19740 echo "$as_me:19740: \$? = $ac_status" >&5
19741 (exit $ac_status); }; }; then
19742 cf_cv_header_stdbool_h=0
19744 echo "$as_me: failed program was:" >&5
19745 cat conftest.$ac_ext >&5
19746 cat >conftest.$ac_ext <<_ACEOF
19747 #line 19747 "configure"
19748 #include "confdefs.h"
19751 #include <stdbool.h>
19762 rm -f conftest.$ac_objext
19763 if { (eval echo "$as_me:19763: \"$ac_compile\"") >&5
19764 (eval $ac_compile) 2>&5
19766 echo "$as_me:19766: \$? = $ac_status" >&5
19767 (exit $ac_status); } &&
19768 { ac_try='test -s conftest.$ac_objext'
19769 { (eval echo "$as_me:19769: \"$ac_try\"") >&5
19770 (eval $ac_try) 2>&5
19772 echo "$as_me:19772: \$? = $ac_status" >&5
19773 (exit $ac_status); }; }; then
19774 cf_cv_header_stdbool_h=1
19776 echo "$as_me: failed program was:" >&5
19777 cat conftest.$ac_ext >&5
19778 cf_cv_header_stdbool_h=0
19780 rm -f conftest.$ac_objext conftest.$ac_ext
19782 rm -f conftest.$ac_objext conftest.$ac_ext
19785 if test "$cf_cv_header_stdbool_h" = 1
19786 then echo "$as_me:19786: result: yes" >&5
19787 echo "${ECHO_T}yes" >&6
19788 else echo "$as_me:19788: result: no" >&5
19789 echo "${ECHO_T}no" >&6
19792 echo "$as_me:19792: checking for builtin bool type" >&5
19793 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
19795 if test "${cf_cv_cc_bool_type+set}" = set; then
19796 echo $ECHO_N "(cached) $ECHO_C" >&6
19799 cat >conftest.$ac_ext <<_ACEOF
19800 #line 19800 "configure"
19801 #include "confdefs.h"
19804 #include <sys/types.h>
19814 rm -f conftest.$ac_objext
19815 if { (eval echo "$as_me:19815: \"$ac_compile\"") >&5
19816 (eval $ac_compile) 2>&5
19818 echo "$as_me:19818: \$? = $ac_status" >&5
19819 (exit $ac_status); } &&
19820 { ac_try='test -s conftest.$ac_objext'
19821 { (eval echo "$as_me:19821: \"$ac_try\"") >&5
19822 (eval $ac_try) 2>&5
19824 echo "$as_me:19824: \$? = $ac_status" >&5
19825 (exit $ac_status); }; }; then
19826 cf_cv_cc_bool_type=1
19828 echo "$as_me: failed program was:" >&5
19829 cat conftest.$ac_ext >&5
19830 cf_cv_cc_bool_type=0
19832 rm -f conftest.$ac_objext conftest.$ac_ext
19836 if test "$cf_cv_cc_bool_type" = 1
19837 then echo "$as_me:19837: result: yes" >&5
19838 echo "${ECHO_T}yes" >&6
19839 else echo "$as_me:19839: result: no" >&5
19840 echo "${ECHO_T}no" >&6
19843 # Check for C++ compiler characteristics (and ensure that it's there!)
19844 if test -n "$CXX" ; then
19846 ac_cpp='$CXXCPP $CPPFLAGS'
19847 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19848 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19849 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19850 ac_main_return=return
19852 if test -n "$GXX" ; then
19855 LIBS="$LIBS $CXXLIBS"
19856 echo "$as_me:19856: checking if we already have C++ library" >&5
19857 echo $ECHO_N "checking if we already have C++ library... $ECHO_C" >&6
19858 cat >conftest.$ac_ext <<_ACEOF
19859 #line 19859 "configure"
19860 #include "confdefs.h"
19862 #include <iostream>
19867 std::cout << "Hello World!" << std::endl;
19872 rm -f conftest.$ac_objext conftest$ac_exeext
19873 if { (eval echo "$as_me:19873: \"$ac_link\"") >&5
19874 (eval $ac_link) 2>&5
19876 echo "$as_me:19876: \$? = $ac_status" >&5
19877 (exit $ac_status); } &&
19878 { ac_try='test -s conftest$ac_exeext'
19879 { (eval echo "$as_me:19879: \"$ac_try\"") >&5
19880 (eval $ac_try) 2>&5
19882 echo "$as_me:19882: \$? = $ac_status" >&5
19883 (exit $ac_status); }; }; then
19884 cf_have_libstdcpp=yes
19886 echo "$as_me: failed program was:" >&5
19887 cat conftest.$ac_ext >&5
19888 cf_have_libstdcpp=no
19890 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19891 echo "$as_me:19891: result: $cf_have_libstdcpp" >&5
19892 echo "${ECHO_T}$cf_have_libstdcpp" >&6
19895 if test $cf_have_libstdcpp != yes
19897 case $cf_cv_system_name in
19899 if test -z "`g++ -dM -E - < /dev/null | grep __KLIBC__`"; then
19900 cf_stdcpp_libname=stdcpp
19902 cf_stdcpp_libname=stdc++
19906 cf_stdcpp_libname=stdc++
19910 echo "$as_me:19910: checking for library $cf_stdcpp_libname" >&5
19911 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
19912 if test "${cf_cv_libstdcpp+set}" = set; then
19913 echo $ECHO_N "(cached) $ECHO_C" >&6
19917 LIBS="$LIBS $CXXLIBS"
19919 cf_add_libs="-l$cf_stdcpp_libname"
19920 # Filter out duplicates - this happens with badly-designed ".pc" files...
19921 for cf_add_1lib in $LIBS
19923 for cf_add_2lib in $cf_add_libs
19925 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19931 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19933 LIBS="$cf_add_libs"
19935 cat >conftest.$ac_ext <<_ACEOF
19936 #line 19936 "configure"
19937 #include "confdefs.h"
19939 #include <iostream>
19944 std::cout << "Hello World!" << std::endl;
19949 rm -f conftest.$ac_objext conftest$ac_exeext
19950 if { (eval echo "$as_me:19950: \"$ac_link\"") >&5
19951 (eval $ac_link) 2>&5
19953 echo "$as_me:19953: \$? = $ac_status" >&5
19954 (exit $ac_status); } &&
19955 { ac_try='test -s conftest$ac_exeext'
19956 { (eval echo "$as_me:19956: \"$ac_try\"") >&5
19957 (eval $ac_try) 2>&5
19959 echo "$as_me:19959: \$? = $ac_status" >&5
19960 (exit $ac_status); }; }; then
19961 cf_cv_libstdcpp=yes
19963 echo "$as_me: failed program was:" >&5
19964 cat conftest.$ac_ext >&5
19967 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19971 echo "$as_me:19971: result: $cf_cv_libstdcpp" >&5
19972 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
19973 test "$cf_cv_libstdcpp" = yes && {
19974 cf_add_libs="-l$cf_stdcpp_libname"
19975 # Filter out duplicates - this happens with badly-designed ".pc" files...
19976 for cf_add_1lib in $CXXLIBS
19978 for cf_add_2lib in $cf_add_libs
19980 if test "x$cf_add_1lib" = "x$cf_add_2lib"
19986 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
19988 CXXLIBS="$cf_add_libs"
19993 echo "$as_me:19993: checking whether $CXX understands -c and -o together" >&5
19994 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
19995 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
19996 echo $ECHO_N "(cached) $ECHO_C" >&6
19999 cat > conftest.$ac_ext <<CF_EOF
20002 ${cf_cv_main_return:-return}(0);
20005 # We do the test twice because some compilers refuse to overwrite an
20006 # existing .o file with -o, though they will create one.
20007 ac_try='$CXX $CXXFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
20008 if { (eval echo "$as_me:20008: \"$ac_try\"") >&5
20009 (eval $ac_try) 2>&5
20011 echo "$as_me:20011: \$? = $ac_status" >&5
20012 (exit $ac_status); } &&
20013 test -f conftest2.$ac_objext && { (eval echo "$as_me:20013: \"$ac_try\"") >&5
20014 (eval $ac_try) 2>&5
20016 echo "$as_me:20016: \$? = $ac_status" >&5
20017 (exit $ac_status); };
20019 eval cf_cv_prog_CXX_c_o=yes
20021 eval cf_cv_prog_CXX_c_o=no
20026 if test $cf_cv_prog_CXX_c_o = yes; then
20027 echo "$as_me:20027: result: yes" >&5
20028 echo "${ECHO_T}yes" >&6
20030 echo "$as_me:20030: result: no" >&5
20031 echo "${ECHO_T}no" >&6
20034 case $GXX_VERSION in
20040 cf_cxx_library=unknown
20041 case $cf_cv_system_name in
20049 if test "$GXX" = yes; then
20050 echo "$as_me:20050: checking for lib$cf_gpp_libname" >&5
20051 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
20054 cf_add_libs="-l$cf_gpp_libname"
20055 # Filter out duplicates - this happens with badly-designed ".pc" files...
20056 for cf_add_1lib in $LIBS
20058 for cf_add_2lib in $cf_add_libs
20060 if test "x$cf_add_1lib" = "x$cf_add_2lib"
20066 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
20068 LIBS="$cf_add_libs"
20070 cat >conftest.$ac_ext <<_ACEOF
20071 #line 20071 "configure"
20072 #include "confdefs.h"
20074 #include <$cf_gpp_libname/builtin.h>
20079 two_arg_error_handler_t foo2 = lib_error_handler
20084 rm -f conftest.$ac_objext conftest$ac_exeext
20085 if { (eval echo "$as_me:20085: \"$ac_link\"") >&5
20086 (eval $ac_link) 2>&5
20088 echo "$as_me:20088: \$? = $ac_status" >&5
20089 (exit $ac_status); } &&
20090 { ac_try='test -s conftest$ac_exeext'
20091 { (eval echo "$as_me:20091: \"$ac_try\"") >&5
20092 (eval $ac_try) 2>&5
20094 echo "$as_me:20094: \$? = $ac_status" >&5
20095 (exit $ac_status); }; }; then
20098 cf_add_libs="-l$cf_gpp_libname"
20099 # Filter out duplicates - this happens with badly-designed ".pc" files...
20100 for cf_add_1lib in $CXXLIBS
20102 for cf_add_2lib in $cf_add_libs
20104 if test "x$cf_add_1lib" = "x$cf_add_2lib"
20110 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
20112 CXXLIBS="$cf_add_libs"
20114 if test "$cf_gpp_libname" = cpp ; then
20116 cat >>confdefs.h <<\EOF
20117 #define HAVE_GPP_BUILTIN_H 1
20122 cat >>confdefs.h <<\EOF
20123 #define HAVE_GXX_BUILTIN_H 1
20128 echo "$as_me: failed program was:" >&5
20129 cat conftest.$ac_ext >&5
20130 cat >conftest.$ac_ext <<_ACEOF
20131 #line 20131 "configure"
20132 #include "confdefs.h"
20134 #include <builtin.h>
20139 two_arg_error_handler_t foo2 = lib_error_handler
20144 rm -f conftest.$ac_objext conftest$ac_exeext
20145 if { (eval echo "$as_me:20145: \"$ac_link\"") >&5
20146 (eval $ac_link) 2>&5
20148 echo "$as_me:20148: \$? = $ac_status" >&5
20149 (exit $ac_status); } &&
20150 { ac_try='test -s conftest$ac_exeext'
20151 { (eval echo "$as_me:20151: \"$ac_try\"") >&5
20152 (eval $ac_try) 2>&5
20154 echo "$as_me:20154: \$? = $ac_status" >&5
20155 (exit $ac_status); }; }; then
20158 cf_add_libs="-l$cf_gpp_libname"
20159 # Filter out duplicates - this happens with badly-designed ".pc" files...
20160 for cf_add_1lib in $CXXLIBS
20162 for cf_add_2lib in $cf_add_libs
20164 if test "x$cf_add_1lib" = "x$cf_add_2lib"
20170 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
20172 CXXLIBS="$cf_add_libs"
20174 cat >>confdefs.h <<\EOF
20175 #define HAVE_BUILTIN_H 1
20179 echo "$as_me: failed program was:" >&5
20180 cat conftest.$ac_ext >&5
20183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20185 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20187 echo "$as_me:20187: result: $cf_cxx_library" >&5
20188 echo "${ECHO_T}$cf_cxx_library" >&6
20198 ac_cpp='$CXXCPP $CPPFLAGS'
20199 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20200 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20201 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20202 ac_main_return=return
20203 echo "$as_me:20203: checking how to run the C++ preprocessor" >&5
20204 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
20205 if test -z "$CXXCPP"; then
20206 if test "${ac_cv_prog_CXXCPP+set}" = set; then
20207 echo $ECHO_N "(cached) $ECHO_C" >&6
20209 # Double quotes because CXXCPP needs to be expanded
20210 for CXXCPP in "$CXX -E" "/lib/cpp"
20212 ac_preproc_ok=false
20213 for ac_cxx_preproc_warn_flag in '' yes
20215 # Use a header file that comes with gcc, so configuring glibc
20216 # with a fresh cross-compiler works.
20217 # On the NeXT, cc -E runs the code through the compiler's parser,
20218 # not just through cpp. "Syntax error" is here to catch this case.
20219 cat >conftest.$ac_ext <<_ACEOF
20220 #line 20220 "configure"
20221 #include "confdefs.h"
20222 #include <assert.h>
20225 if { (eval echo "$as_me:20225: \"$ac_cpp conftest.$ac_ext\"") >&5
20226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20228 egrep -v '^ *\+' conftest.er1 >conftest.err
20230 cat conftest.err >&5
20231 echo "$as_me:20231: \$? = $ac_status" >&5
20232 (exit $ac_status); } >/dev/null; then
20233 if test -s conftest.err; then
20234 ac_cpp_err=$ac_cxx_preproc_warn_flag
20241 if test -z "$ac_cpp_err"; then
20244 echo "$as_me: failed program was:" >&5
20245 cat conftest.$ac_ext >&5
20246 # Broken: fails on valid input.
20249 rm -f conftest.err conftest.$ac_ext
20251 # OK, works on sane cases. Now check whether non-existent headers
20252 # can be detected and how.
20253 cat >conftest.$ac_ext <<_ACEOF
20254 #line 20254 "configure"
20255 #include "confdefs.h"
20256 #include <ac_nonexistent.h>
20258 if { (eval echo "$as_me:20258: \"$ac_cpp conftest.$ac_ext\"") >&5
20259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20261 egrep -v '^ *\+' conftest.er1 >conftest.err
20263 cat conftest.err >&5
20264 echo "$as_me:20264: \$? = $ac_status" >&5
20265 (exit $ac_status); } >/dev/null; then
20266 if test -s conftest.err; then
20267 ac_cpp_err=$ac_cxx_preproc_warn_flag
20274 if test -z "$ac_cpp_err"; then
20275 # Broken: success on invalid input.
20278 echo "$as_me: failed program was:" >&5
20279 cat conftest.$ac_ext >&5
20280 # Passes both tests.
20284 rm -f conftest.err conftest.$ac_ext
20287 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20288 rm -f conftest.err conftest.$ac_ext
20289 if $ac_preproc_ok; then
20294 ac_cv_prog_CXXCPP=$CXXCPP
20297 CXXCPP=$ac_cv_prog_CXXCPP
20299 ac_cv_prog_CXXCPP=$CXXCPP
20301 echo "$as_me:20301: result: $CXXCPP" >&5
20302 echo "${ECHO_T}$CXXCPP" >&6
20303 ac_preproc_ok=false
20304 for ac_cxx_preproc_warn_flag in '' yes
20306 # Use a header file that comes with gcc, so configuring glibc
20307 # with a fresh cross-compiler works.
20308 # On the NeXT, cc -E runs the code through the compiler's parser,
20309 # not just through cpp. "Syntax error" is here to catch this case.
20310 cat >conftest.$ac_ext <<_ACEOF
20311 #line 20311 "configure"
20312 #include "confdefs.h"
20313 #include <assert.h>
20316 if { (eval echo "$as_me:20316: \"$ac_cpp conftest.$ac_ext\"") >&5
20317 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20319 egrep -v '^ *\+' conftest.er1 >conftest.err
20321 cat conftest.err >&5
20322 echo "$as_me:20322: \$? = $ac_status" >&5
20323 (exit $ac_status); } >/dev/null; then
20324 if test -s conftest.err; then
20325 ac_cpp_err=$ac_cxx_preproc_warn_flag
20332 if test -z "$ac_cpp_err"; then
20335 echo "$as_me: failed program was:" >&5
20336 cat conftest.$ac_ext >&5
20337 # Broken: fails on valid input.
20340 rm -f conftest.err conftest.$ac_ext
20342 # OK, works on sane cases. Now check whether non-existent headers
20343 # can be detected and how.
20344 cat >conftest.$ac_ext <<_ACEOF
20345 #line 20345 "configure"
20346 #include "confdefs.h"
20347 #include <ac_nonexistent.h>
20349 if { (eval echo "$as_me:20349: \"$ac_cpp conftest.$ac_ext\"") >&5
20350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20352 egrep -v '^ *\+' conftest.er1 >conftest.err
20354 cat conftest.err >&5
20355 echo "$as_me:20355: \$? = $ac_status" >&5
20356 (exit $ac_status); } >/dev/null; then
20357 if test -s conftest.err; then
20358 ac_cpp_err=$ac_cxx_preproc_warn_flag
20365 if test -z "$ac_cpp_err"; then
20366 # Broken: success on invalid input.
20369 echo "$as_me: failed program was:" >&5
20370 cat conftest.$ac_ext >&5
20371 # Passes both tests.
20375 rm -f conftest.err conftest.$ac_ext
20378 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20379 rm -f conftest.err conftest.$ac_ext
20380 if $ac_preproc_ok; then
20383 { { echo "$as_me:20383: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
20384 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
20385 { (exit 1); exit 1; }; }
20389 ac_cpp='$CXXCPP $CPPFLAGS'
20390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20393 ac_main_return=return
20395 for ac_header in typeinfo
20397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20398 echo "$as_me:20398: checking for $ac_header" >&5
20399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20401 echo $ECHO_N "(cached) $ECHO_C" >&6
20403 cat >conftest.$ac_ext <<_ACEOF
20404 #line 20404 "configure"
20405 #include "confdefs.h"
20406 #include <$ac_header>
20408 if { (eval echo "$as_me:20408: \"$ac_cpp conftest.$ac_ext\"") >&5
20409 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20411 egrep -v '^ *\+' conftest.er1 >conftest.err
20413 cat conftest.err >&5
20414 echo "$as_me:20414: \$? = $ac_status" >&5
20415 (exit $ac_status); } >/dev/null; then
20416 if test -s conftest.err; then
20417 ac_cpp_err=$ac_cxx_preproc_warn_flag
20424 if test -z "$ac_cpp_err"; then
20425 eval "$as_ac_Header=yes"
20427 echo "$as_me: failed program was:" >&5
20428 cat conftest.$ac_ext >&5
20429 eval "$as_ac_Header=no"
20431 rm -f conftest.err conftest.$ac_ext
20433 echo "$as_me:20433: result: `eval echo '${'$as_ac_Header'}'`" >&5
20434 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20436 cat >>confdefs.h <<EOF
20437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20443 for ac_header in iostream
20445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20446 echo "$as_me:20446: checking for $ac_header" >&5
20447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20449 echo $ECHO_N "(cached) $ECHO_C" >&6
20451 cat >conftest.$ac_ext <<_ACEOF
20452 #line 20452 "configure"
20453 #include "confdefs.h"
20454 #include <$ac_header>
20456 if { (eval echo "$as_me:20456: \"$ac_cpp conftest.$ac_ext\"") >&5
20457 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20459 egrep -v '^ *\+' conftest.er1 >conftest.err
20461 cat conftest.err >&5
20462 echo "$as_me:20462: \$? = $ac_status" >&5
20463 (exit $ac_status); } >/dev/null; then
20464 if test -s conftest.err; then
20465 ac_cpp_err=$ac_cxx_preproc_warn_flag
20472 if test -z "$ac_cpp_err"; then
20473 eval "$as_ac_Header=yes"
20475 echo "$as_me: failed program was:" >&5
20476 cat conftest.$ac_ext >&5
20477 eval "$as_ac_Header=no"
20479 rm -f conftest.err conftest.$ac_ext
20481 echo "$as_me:20481: result: `eval echo '${'$as_ac_Header'}'`" >&5
20482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20484 cat >>confdefs.h <<EOF
20485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20491 if test x"$ac_cv_header_iostream" = xyes ; then
20492 echo "$as_me:20492: checking if iostream uses std-namespace" >&5
20493 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
20494 cat >conftest.$ac_ext <<_ACEOF
20495 #line 20495 "configure"
20496 #include "confdefs.h"
20498 #include <iostream>
20505 cerr << "testing" << endl;
20511 rm -f conftest.$ac_objext
20512 if { (eval echo "$as_me:20512: \"$ac_compile\"") >&5
20513 (eval $ac_compile) 2>&5
20515 echo "$as_me:20515: \$? = $ac_status" >&5
20516 (exit $ac_status); } &&
20517 { ac_try='test -s conftest.$ac_objext'
20518 { (eval echo "$as_me:20518: \"$ac_try\"") >&5
20519 (eval $ac_try) 2>&5
20521 echo "$as_me:20521: \$? = $ac_status" >&5
20522 (exit $ac_status); }; }; then
20523 cf_iostream_namespace=yes
20525 echo "$as_me: failed program was:" >&5
20526 cat conftest.$ac_ext >&5
20527 cf_iostream_namespace=no
20529 rm -f conftest.$ac_objext conftest.$ac_ext
20530 echo "$as_me:20530: result: $cf_iostream_namespace" >&5
20531 echo "${ECHO_T}$cf_iostream_namespace" >&6
20532 if test "$cf_iostream_namespace" = yes ; then
20534 cat >>confdefs.h <<\EOF
20535 #define IOSTREAM_NAMESPACE 1
20541 echo "$as_me:20541: checking if we should include stdbool.h" >&5
20542 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
20544 if test "${cf_cv_header_stdbool_h+set}" = set; then
20545 echo $ECHO_N "(cached) $ECHO_C" >&6
20548 cat >conftest.$ac_ext <<_ACEOF
20549 #line 20549 "configure"
20550 #include "confdefs.h"
20560 rm -f conftest.$ac_objext
20561 if { (eval echo "$as_me:20561: \"$ac_compile\"") >&5
20562 (eval $ac_compile) 2>&5
20564 echo "$as_me:20564: \$? = $ac_status" >&5
20565 (exit $ac_status); } &&
20566 { ac_try='test -s conftest.$ac_objext'
20567 { (eval echo "$as_me:20567: \"$ac_try\"") >&5
20568 (eval $ac_try) 2>&5
20570 echo "$as_me:20570: \$? = $ac_status" >&5
20571 (exit $ac_status); }; }; then
20572 cf_cv_header_stdbool_h=0
20574 echo "$as_me: failed program was:" >&5
20575 cat conftest.$ac_ext >&5
20576 cat >conftest.$ac_ext <<_ACEOF
20577 #line 20577 "configure"
20578 #include "confdefs.h"
20581 #include <stdbool.h>
20592 rm -f conftest.$ac_objext
20593 if { (eval echo "$as_me:20593: \"$ac_compile\"") >&5
20594 (eval $ac_compile) 2>&5
20596 echo "$as_me:20596: \$? = $ac_status" >&5
20597 (exit $ac_status); } &&
20598 { ac_try='test -s conftest.$ac_objext'
20599 { (eval echo "$as_me:20599: \"$ac_try\"") >&5
20600 (eval $ac_try) 2>&5
20602 echo "$as_me:20602: \$? = $ac_status" >&5
20603 (exit $ac_status); }; }; then
20604 cf_cv_header_stdbool_h=1
20606 echo "$as_me: failed program was:" >&5
20607 cat conftest.$ac_ext >&5
20608 cf_cv_header_stdbool_h=0
20610 rm -f conftest.$ac_objext conftest.$ac_ext
20612 rm -f conftest.$ac_objext conftest.$ac_ext
20615 if test "$cf_cv_header_stdbool_h" = 1
20616 then echo "$as_me:20616: result: yes" >&5
20617 echo "${ECHO_T}yes" >&6
20618 else echo "$as_me:20618: result: no" >&5
20619 echo "${ECHO_T}no" >&6
20622 echo "$as_me:20622: checking for builtin bool type" >&5
20623 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
20625 if test "${cf_cv_builtin_bool+set}" = set; then
20626 echo $ECHO_N "(cached) $ECHO_C" >&6
20629 cat >conftest.$ac_ext <<_ACEOF
20630 #line 20630 "configure"
20631 #include "confdefs.h"
20634 #include <sys/types.h>
20644 rm -f conftest.$ac_objext
20645 if { (eval echo "$as_me:20645: \"$ac_compile\"") >&5
20646 (eval $ac_compile) 2>&5
20648 echo "$as_me:20648: \$? = $ac_status" >&5
20649 (exit $ac_status); } &&
20650 { ac_try='test -s conftest.$ac_objext'
20651 { (eval echo "$as_me:20651: \"$ac_try\"") >&5
20652 (eval $ac_try) 2>&5
20654 echo "$as_me:20654: \$? = $ac_status" >&5
20655 (exit $ac_status); }; }; then
20656 cf_cv_builtin_bool=1
20658 echo "$as_me: failed program was:" >&5
20659 cat conftest.$ac_ext >&5
20660 cf_cv_builtin_bool=0
20662 rm -f conftest.$ac_objext conftest.$ac_ext
20666 if test "$cf_cv_builtin_bool" = 1
20667 then echo "$as_me:20667: result: yes" >&5
20668 echo "${ECHO_T}yes" >&6
20669 else echo "$as_me:20669: result: no" >&5
20670 echo "${ECHO_T}no" >&6
20673 echo "$as_me:20673: checking for size of bool" >&5
20674 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
20675 if test "${cf_cv_type_of_bool+set}" = set; then
20676 echo $ECHO_N "(cached) $ECHO_C" >&6
20680 if test "$cross_compiling" = yes; then
20681 cf_cv_type_of_bool=unknown
20683 cat >conftest.$ac_ext <<_ACEOF
20684 #line 20684 "configure"
20685 #include "confdefs.h"
20687 #include <stdlib.h>
20690 #if defined(__cplusplus)
20692 #ifdef HAVE_GXX_BUILTIN_H
20693 #include <g++/builtin.h>
20694 #elif HAVE_GPP_BUILTIN_H
20695 #include <gpp/builtin.h>
20696 #elif HAVE_BUILTIN_H
20697 #include <builtin.h>
20702 #if $cf_cv_header_stdbool_h
20703 #include <stdbool.h>
20710 FILE *fp = fopen("cf_test.out", "w");
20713 if ((bool)(-x) >= 0)
20714 fputs("unsigned ", fp);
20715 if (sizeof(x) == sizeof(int)) fputs("int", fp);
20716 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
20717 else if (sizeof(x) == sizeof(short))fputs("short",fp);
20718 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
20721 ${cf_cv_main_return:-return}(0);
20725 rm -f conftest$ac_exeext
20726 if { (eval echo "$as_me:20726: \"$ac_link\"") >&5
20727 (eval $ac_link) 2>&5
20729 echo "$as_me:20729: \$? = $ac_status" >&5
20730 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20731 { (eval echo "$as_me:20731: \"$ac_try\"") >&5
20732 (eval $ac_try) 2>&5
20734 echo "$as_me:20734: \$? = $ac_status" >&5
20735 (exit $ac_status); }; }; then
20736 cf_cv_type_of_bool=`cat cf_test.out`
20737 if test -z "$cf_cv_type_of_bool"; then
20738 cf_cv_type_of_bool=unknown
20741 echo "$as_me: program exited with status $ac_status" >&5
20742 echo "$as_me: failed program was:" >&5
20743 cat conftest.$ac_ext >&5
20744 cf_cv_type_of_bool=unknown
20746 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20752 echo "$as_me:20752: result: $cf_cv_type_of_bool" >&5
20753 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
20754 if test "$cf_cv_type_of_bool" = unknown ; then
20755 case .$NCURSES_BOOL in
20756 (.auto|.) NCURSES_BOOL=unsigned;;
20758 { echo "$as_me:20758: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
20759 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
20760 cf_cv_type_of_bool=$NCURSES_BOOL
20763 echo "$as_me:20763: checking for special defines needed for etip.h" >&5
20764 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
20765 cf_save_CXXFLAGS="$CXXFLAGS"
20768 # etip.h includes ncurses.h which includes ncurses_dll.h
20769 # But ncurses_dll.h is generated - fix here.
20770 test -d include || mkdir include
20771 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
20773 for cf_math in "" MATH_H
20775 for cf_excp in "" MATH_EXCEPTION
20777 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include"
20778 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
20779 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
20780 cat >conftest.$ac_ext <<_ACEOF
20781 #line 20781 "configure"
20782 #include "confdefs.h"
20784 #include <etip.h.in>
20794 rm -f conftest.$ac_objext
20795 if { (eval echo "$as_me:20795: \"$ac_compile\"") >&5
20796 (eval $ac_compile) 2>&5
20798 echo "$as_me:20798: \$? = $ac_status" >&5
20799 (exit $ac_status); } &&
20800 { ac_try='test -s conftest.$ac_objext'
20801 { (eval echo "$as_me:20801: \"$ac_try\"") >&5
20802 (eval $ac_try) 2>&5
20804 echo "$as_me:20804: \$? = $ac_status" >&5
20805 (exit $ac_status); }; }; then
20807 test -n "$cf_math" && cat >>confdefs.h <<EOF
20808 #define ETIP_NEEDS_${cf_math} 1
20811 test -n "$cf_excp" && cat >>confdefs.h <<EOF
20812 #define ETIP_NEEDS_${cf_excp} 1
20815 cf_result="$cf_math $cf_excp"
20819 echo "$as_me: failed program was:" >&5
20820 cat conftest.$ac_ext >&5
20822 rm -f conftest.$ac_objext conftest.$ac_ext
20825 echo "$as_me:20825: result: $cf_result" >&5
20826 echo "${ECHO_T}$cf_result" >&6
20827 CXXFLAGS="$cf_save_CXXFLAGS"
20829 if test -n "$CXX"; then
20830 echo "$as_me:20830: checking if $CXX accepts parameter initialization" >&5
20831 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
20832 if test "${cf_cv_cpp_param_init+set}" = set; then
20833 echo $ECHO_N "(cached) $ECHO_C" >&6
20837 ac_cpp='$CXXCPP $CPPFLAGS'
20838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20841 ac_main_return=return
20843 if test "$cross_compiling" = yes; then
20844 cf_cv_cpp_param_init=unknown
20846 cat >conftest.$ac_ext <<_ACEOF
20847 #line 20847 "configure"
20848 #include "confdefs.h"
20858 TEST::TEST(int x = 1) // some compilers do not like second initializer
20865 rm -f conftest$ac_exeext
20866 if { (eval echo "$as_me:20866: \"$ac_link\"") >&5
20867 (eval $ac_link) 2>&5
20869 echo "$as_me:20869: \$? = $ac_status" >&5
20870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20871 { (eval echo "$as_me:20871: \"$ac_try\"") >&5
20872 (eval $ac_try) 2>&5
20874 echo "$as_me:20874: \$? = $ac_status" >&5
20875 (exit $ac_status); }; }; then
20876 cf_cv_cpp_param_init=yes
20878 echo "$as_me: program exited with status $ac_status" >&5
20879 echo "$as_me: failed program was:" >&5
20880 cat conftest.$ac_ext >&5
20881 cf_cv_cpp_param_init=no
20883 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20886 ac_cpp='$CXXCPP $CPPFLAGS'
20887 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20888 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20889 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20890 ac_main_return=return
20893 echo "$as_me:20893: result: $cf_cv_cpp_param_init" >&5
20894 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
20896 test "$cf_cv_cpp_param_init" = yes &&
20897 cat >>confdefs.h <<\EOF
20898 #define CPP_HAS_PARAM_INIT 1
20901 if test -n "$CXX"; then
20903 echo "$as_me:20903: checking if $CXX accepts static_cast" >&5
20904 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
20905 if test "${cf_cv_cpp_static_cast+set}" = set; then
20906 echo $ECHO_N "(cached) $ECHO_C" >&6
20910 ac_cpp='$CXXCPP $CPPFLAGS'
20911 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20912 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20913 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20914 ac_main_return=return
20916 cat >conftest.$ac_ext <<_ACEOF
20917 #line 20917 "configure"
20918 #include "confdefs.h"
20923 NCursesPanel(int nlines,
20933 template<class T> class NCursesUserPanel : public NCursesPanel
20936 NCursesUserPanel (int nlines,
20940 const T* p_UserData = static_cast<T*>(0))
20941 : NCursesPanel (nlines, ncols, begin_y, begin_x)
20944 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
20948 virtual ~NCursesUserPanel() {};
20955 const char* p_UserData = static_cast<char*>(0)
20960 rm -f conftest.$ac_objext
20961 if { (eval echo "$as_me:20961: \"$ac_compile\"") >&5
20962 (eval $ac_compile) 2>&5
20964 echo "$as_me:20964: \$? = $ac_status" >&5
20965 (exit $ac_status); } &&
20966 { ac_try='test -s conftest.$ac_objext'
20967 { (eval echo "$as_me:20967: \"$ac_try\"") >&5
20968 (eval $ac_try) 2>&5
20970 echo "$as_me:20970: \$? = $ac_status" >&5
20971 (exit $ac_status); }; }; then
20972 cf_cv_cpp_static_cast=yes
20974 echo "$as_me: failed program was:" >&5
20975 cat conftest.$ac_ext >&5
20976 cf_cv_cpp_static_cast=no
20978 rm -f conftest.$ac_objext conftest.$ac_ext
20981 ac_cpp='$CXXCPP $CPPFLAGS'
20982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20985 ac_main_return=return
20988 echo "$as_me:20988: result: $cf_cv_cpp_static_cast" >&5
20989 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
20993 test "$cf_cv_cpp_static_cast" = yes &&
20994 cat >>confdefs.h <<\EOF
20995 #define CPP_HAS_STATIC_CAST 1
20999 CXX_ARFLAGS='$(ARFLAGS)'
21000 case $cf_cv_system_name in
21002 if test "$GXX" != yes ; then
21004 CXX_ARFLAGS='-ar -o'
21008 CXXLDFLAGS="-u main"
21011 if test "$GXX" != yes ; then
21013 CXX_ARFLAGS='-xar -o'
21020 cf_cv_builtin_bool=1
21022 # Just because we are not configuring against C++ right now does not
21023 # mean that a user will not want to use C++. Some distributors disable
21024 # the C++ portion of this configuration as a shortcut (or just to avoid
21025 # compiling the demo in the c++ directory). So we need a reasonable
21026 # default for the 'bool' type.
21028 # Caveat: since the storage of the bool type is not standardized, it
21031 if test "$NCURSES_BOOL" != auto ; then
21032 cf_cv_type_of_bool=$NCURSES_BOOL
21033 cf_cv_header_stdbool_h=0
21035 if test "$cf_cv_header_stdbool_h" = 1 ; then
21037 echo "$as_me:21037: checking for size of bool" >&5
21038 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
21039 if test "${cf_cv_type_of_bool+set}" = set; then
21040 echo $ECHO_N "(cached) $ECHO_C" >&6
21044 if test "$cross_compiling" = yes; then
21045 cf_cv_type_of_bool=unknown
21047 cat >conftest.$ac_ext <<_ACEOF
21048 #line 21048 "configure"
21049 #include "confdefs.h"
21051 #include <stdlib.h>
21054 #if defined(__cplusplus)
21056 #ifdef HAVE_GXX_BUILTIN_H
21057 #include <g++/builtin.h>
21058 #elif HAVE_GPP_BUILTIN_H
21059 #include <gpp/builtin.h>
21060 #elif HAVE_BUILTIN_H
21061 #include <builtin.h>
21066 #if $cf_cv_header_stdbool_h
21067 #include <stdbool.h>
21074 FILE *fp = fopen("cf_test.out", "w");
21077 if ((bool)(-x) >= 0)
21078 fputs("unsigned ", fp);
21079 if (sizeof(x) == sizeof(int)) fputs("int", fp);
21080 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
21081 else if (sizeof(x) == sizeof(short))fputs("short",fp);
21082 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
21085 ${cf_cv_main_return:-return}(0);
21089 rm -f conftest$ac_exeext
21090 if { (eval echo "$as_me:21090: \"$ac_link\"") >&5
21091 (eval $ac_link) 2>&5
21093 echo "$as_me:21093: \$? = $ac_status" >&5
21094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21095 { (eval echo "$as_me:21095: \"$ac_try\"") >&5
21096 (eval $ac_try) 2>&5
21098 echo "$as_me:21098: \$? = $ac_status" >&5
21099 (exit $ac_status); }; }; then
21100 cf_cv_type_of_bool=`cat cf_test.out`
21101 if test -z "$cf_cv_type_of_bool"; then
21102 cf_cv_type_of_bool=unknown
21105 echo "$as_me: program exited with status $ac_status" >&5
21106 echo "$as_me: failed program was:" >&5
21107 cat conftest.$ac_ext >&5
21108 cf_cv_type_of_bool=unknown
21110 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21116 echo "$as_me:21116: result: $cf_cv_type_of_bool" >&5
21117 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
21118 if test "$cf_cv_type_of_bool" = unknown ; then
21119 case .$NCURSES_BOOL in
21120 (.auto|.) NCURSES_BOOL=unsigned;;
21122 { echo "$as_me:21122: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
21123 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
21124 cf_cv_type_of_bool=$NCURSES_BOOL
21128 echo "$as_me:21128: checking for fallback type of bool" >&5
21129 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
21130 case "$host_cpu" in
21131 (i?86) cf_cv_type_of_bool=char ;;
21132 (*) cf_cv_type_of_bool=int ;;
21134 echo "$as_me:21134: result: $cf_cv_type_of_bool" >&5
21135 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
21140 # If the C compiler did not declare bool, and we did not determine that the C++
21141 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
21142 # ncurses library use the same type as C++ bool. Note that this allows one to
21143 # specify the type of bool in a configure-script option and postpone
21144 # integration with the C++ compiler provided that the types are compatible.
21146 if test $cf_cv_cc_bool_type = 1
21148 # oops: C has a bool. Unlikely, but C++ could differ.
21150 elif test $cf_cv_builtin_bool = 0
21155 # this is the normal case
21156 USE_CXX_BOOL='defined(__cplusplus)'
21159 if test -f "${srcdir}/Ada95/Makefile.in" ; then
21161 if test "$cf_with_ada" != "no" ; then
21162 if test "$with_libtool" != "no"; then
21163 { echo "$as_me:21163: WARNING: libtool does not support Ada - disabling feature" >&5
21164 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
21169 if test "$cf_with_ada" != "no" ; then
21171 cf_ada_make=gnatmake
21172 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
21173 set dummy $cf_ada_make; ac_word=$2
21174 echo "$as_me:21174: checking for $ac_word" >&5
21175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21176 if test "${ac_cv_prog_gnat_exists+set}" = set; then
21177 echo $ECHO_N "(cached) $ECHO_C" >&6
21179 if test -n "$gnat_exists"; then
21180 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
21182 ac_save_IFS=$IFS; IFS=$ac_path_separator
21184 for ac_dir in $ac_dummy; do
21186 test -z "$ac_dir" && ac_dir=.
21187 $as_executable_p "$ac_dir/$ac_word" || continue
21188 ac_cv_prog_gnat_exists="yes"
21189 echo "$as_me:21189: found $ac_dir/$ac_word" >&5
21193 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
21196 gnat_exists=$ac_cv_prog_gnat_exists
21197 if test -n "$gnat_exists"; then
21198 echo "$as_me:21198: result: $gnat_exists" >&5
21199 echo "${ECHO_T}$gnat_exists" >&6
21201 echo "$as_me:21201: result: no" >&5
21202 echo "${ECHO_T}no" >&6
21205 if test "$ac_cv_prog_gnat_exists" = no; then
21207 cf_cv_prog_gnat_correct=no
21210 echo "$as_me:21210: checking for gnat version" >&5
21211 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
21212 cf_gnat_version=`${cf_ada_make:-gnatmake} -v 2>&1 | \
21213 grep '[0-9].[0-9][0-9]*' |\
21214 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
21215 echo "$as_me:21215: result: $cf_gnat_version" >&5
21216 echo "${ECHO_T}$cf_gnat_version" >&6
21218 case $cf_gnat_version in
21219 (3.1[1-9]*|3.[2-9]*|[4-9].*|20[0-9][0-9])
21220 cf_cv_prog_gnat_correct=yes
21223 { echo "$as_me:21223: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
21224 echo "$as_me: WARNING: Unsupported GNAT version $cf_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
21225 cf_cv_prog_gnat_correct=no
21229 # Extract the first word of "m4", so it can be a program name with args.
21230 set dummy m4; ac_word=$2
21231 echo "$as_me:21231: checking for $ac_word" >&5
21232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21233 if test "${ac_cv_prog_M4_exists+set}" = set; then
21234 echo $ECHO_N "(cached) $ECHO_C" >&6
21236 if test -n "$M4_exists"; then
21237 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
21239 ac_save_IFS=$IFS; IFS=$ac_path_separator
21241 for ac_dir in $ac_dummy; do
21243 test -z "$ac_dir" && ac_dir=.
21244 $as_executable_p "$ac_dir/$ac_word" || continue
21245 ac_cv_prog_M4_exists="yes"
21246 echo "$as_me:21246: found $ac_dir/$ac_word" >&5
21250 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
21253 M4_exists=$ac_cv_prog_M4_exists
21254 if test -n "$M4_exists"; then
21255 echo "$as_me:21255: result: $M4_exists" >&5
21256 echo "${ECHO_T}$M4_exists" >&6
21258 echo "$as_me:21258: result: no" >&5
21259 echo "${ECHO_T}no" >&6
21262 if test "$ac_cv_prog_M4_exists" = no; then
21263 cf_cv_prog_gnat_correct=no
21264 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
21266 if test "$cf_cv_prog_gnat_correct" = yes; then
21267 echo "$as_me:21267: checking if GNAT works" >&5
21268 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
21270 rm -rf conftest* *~conftest*
21271 cat >>conftest.ads <<CF_EOF
21272 procedure conftest;
21274 cat >>conftest.adb <<CF_EOF
21277 procedure conftest is
21279 Text_IO.Put ("Hello World");
21281 GNAT.OS_Lib.OS_Exit (0);
21284 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
21285 if ( ./conftest 1>&5 2>&1 ) ; then
21286 cf_cv_prog_gnat_correct=yes
21288 cf_cv_prog_gnat_correct=no
21291 cf_cv_prog_gnat_correct=no
21293 rm -rf conftest* *~conftest*
21295 echo "$as_me:21295: result: $cf_cv_prog_gnat_correct" >&5
21296 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
21300 if test "x$cf_cv_prog_gnat_correct" = xyes; then
21302 ADAFLAGS="$ADAFLAGS -gnatpn"
21304 echo "$as_me:21304: checking optimization options for ADAFLAGS" >&5
21305 echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
21309 ADAFLAGS="$ADAFLAGS -g"
21315 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
21317 ADAFLAGS="$ADAFLAGS $cf_O_flag"
21321 echo "$as_me:21321: result: $ADAFLAGS" >&5
21322 echo "${ECHO_T}$ADAFLAGS" >&6
21324 echo "$as_me:21324: checking if GNATPREP supports -T option" >&5
21325 echo $ECHO_N "checking if GNATPREP supports -T option... $ECHO_C" >&6
21326 if test "${cf_cv_gnatprep_opt_t+set}" = set; then
21327 echo $ECHO_N "(cached) $ECHO_C" >&6
21330 cf_cv_gnatprep_opt_t=no
21331 gnatprep -T 2>/dev/null >/dev/null && cf_cv_gnatprep_opt_t=yes
21334 echo "$as_me:21334: result: $cf_cv_gnatprep_opt_t" >&5
21335 echo "${ECHO_T}$cf_cv_gnatprep_opt_t" >&6
21336 test "$cf_cv_gnatprep_opt_t" = yes && GNATPREP_OPTS="-T $GNATPREP_OPTS"
21338 echo "$as_me:21338: checking if GNAT supports generics" >&5
21339 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
21340 case $cf_gnat_version in
21342 cf_gnat_generics=yes
21345 cf_gnat_generics=no
21348 echo "$as_me:21348: result: $cf_gnat_generics" >&5
21349 echo "${ECHO_T}$cf_gnat_generics" >&6
21351 if test "$cf_gnat_generics" = yes
21353 cf_compile_generics=generics
21354 cf_generic_objects="\${GENOBJS}"
21356 cf_compile_generics=
21357 cf_generic_objects=
21360 echo "$as_me:21360: checking if GNAT supports SIGINT" >&5
21361 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
21362 if test "${cf_cv_gnat_sigint+set}" = set; then
21363 echo $ECHO_N "(cached) $ECHO_C" >&6
21366 rm -rf conftest* *~conftest*
21367 cat >>conftest.ads <<CF_EOF
21368 with Ada.Interrupts.Names;
21370 package ConfTest is
21372 pragma Warnings (Off); -- the next pragma exists since 3.11p
21373 pragma Unreserve_All_Interrupts;
21374 pragma Warnings (On);
21376 protected Process is
21378 function Continue return Boolean;
21379 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
21381 Done : Boolean := False;
21386 cat >>conftest.adb <<CF_EOF
21387 package body ConfTest is
21388 protected body Process is
21393 function Continue return Boolean is
21400 if ( $cf_ada_make $ADAFLAGS conftest 1>&5 2>&1 ) ; then
21401 cf_cv_gnat_sigint=yes
21403 cf_cv_gnat_sigint=no
21405 rm -rf conftest* *~conftest*
21408 echo "$as_me:21408: result: $cf_cv_gnat_sigint" >&5
21409 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
21411 if test $cf_cv_gnat_sigint = yes ; then
21414 USE_GNAT_SIGINT="#"
21417 cf_gnat_libraries=no
21418 cf_gnat_projects=no
21420 if test "$enable_gnat_projects" != no ; then
21421 echo "$as_me:21421: checking if GNAT supports project files" >&5
21422 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
21423 case $cf_gnat_version in
21427 case $cf_cv_system_name in
21431 mkdir conftest.src conftest.bin conftest.lib
21433 rm -rf conftest* *~conftest*
21434 cat >>library.gpr <<CF_EOF
21436 Kind := External ("LIB_KIND");
21437 for Library_Name use "ConfTest";
21438 for Object_Dir use ".";
21439 for Library_ALI_Dir use External("LIBRARY_DIR");
21440 for Library_Version use External ("SONAME");
21441 for Library_Kind use Kind;
21442 for Library_Dir use External("BUILD_DIR");
21443 Source_Dir := External ("SOURCE_DIR");
21444 for Source_Dirs use (Source_Dir);
21447 cat >>confpackage.ads <<CF_EOF
21448 package ConfPackage is
21449 procedure conftest;
21452 cat >>confpackage.adb <<CF_EOF
21454 package body ConfPackage is
21455 procedure conftest is
21457 Text_IO.Put ("Hello World");
21462 if ( $cf_ada_make $ADAFLAGS \
21464 -XBUILD_DIR=`cd ../conftest.bin;pwd` \
21465 -XLIBRARY_DIR=`cd ../conftest.lib;pwd` \
21466 -XSOURCE_DIR=`pwd` \
21467 -XSONAME=libConfTest.so.1 \
21468 -XLIB_KIND=static 1>&5 2>&1 ) ; then
21469 cf_gnat_projects=yes
21472 if test -f conftest.lib/confpackage.ali
21474 cf_gnat_libraries=yes
21476 rm -rf conftest* *~conftest*
21481 echo "$as_me:21481: result: $cf_gnat_projects" >&5
21482 echo "${ECHO_T}$cf_gnat_projects" >&6
21483 fi # enable_gnat_projects
21485 if test $cf_gnat_projects = yes
21487 echo "$as_me:21487: checking if GNAT supports libraries" >&5
21488 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
21489 echo "$as_me:21489: result: $cf_gnat_libraries" >&5
21490 echo "${ECHO_T}$cf_gnat_libraries" >&6
21493 if test "$cf_gnat_projects" = yes
21495 USE_OLD_MAKERULES="#"
21496 USE_GNAT_PROJECTS=""
21498 USE_OLD_MAKERULES=""
21499 USE_GNAT_PROJECTS="#"
21502 if test "$cf_gnat_libraries" = yes
21504 USE_GNAT_LIBRARIES=""
21506 USE_GNAT_LIBRARIES="#"
21509 echo "$as_me:21509: checking for ada-compiler" >&5
21510 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
21512 # Check whether --with-ada-compiler or --without-ada-compiler was given.
21513 if test "${with_ada_compiler+set}" = set; then
21514 withval="$with_ada_compiler"
21515 cf_ada_compiler=$withval
21517 cf_ada_compiler=gnatmake
21520 echo "$as_me:21520: result: $cf_ada_compiler" >&5
21521 echo "${ECHO_T}$cf_ada_compiler" >&6
21523 cf_ada_package=terminal_interface
21525 echo "$as_me:21525: checking for ada-include" >&5
21526 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
21528 # Check whether --with-ada-include or --without-ada-include was given.
21529 if test "${with_ada_include+set}" = set; then
21530 withval="$with_ada_include"
21533 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
21534 fi; if test -n "$prefix/share/ada/adainclude" ; then
21536 if test "x$prefix" != xNONE; then
21537 cf_path_syntax="$prefix"
21539 cf_path_syntax="$ac_default_prefix"
21542 case ".$withval" in
21543 (.\$\(*\)*|.\'*\'*)
21547 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
21549 (.\${*prefix}*|.\${*dir}*)
21550 eval withval="$withval"
21551 case ".$withval" in
21553 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
21558 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
21561 { { echo "$as_me:21561: error: expected a pathname, not \"$withval\"" >&5
21562 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
21563 { (exit 1); exit 1; }; }
21568 eval ADA_INCLUDE="$withval"
21570 echo "$as_me:21570: result: $ADA_INCLUDE" >&5
21571 echo "${ECHO_T}$ADA_INCLUDE" >&6
21573 echo "$as_me:21573: checking for ada-objects" >&5
21574 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
21576 # Check whether --with-ada-objects or --without-ada-objects was given.
21577 if test "${with_ada_objects+set}" = set; then
21578 withval="$with_ada_objects"
21581 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
21582 fi; if test -n "$prefix/lib/ada/adalib" ; then
21584 if test "x$prefix" != xNONE; then
21585 cf_path_syntax="$prefix"
21587 cf_path_syntax="$ac_default_prefix"
21590 case ".$withval" in
21591 (.\$\(*\)*|.\'*\'*)
21595 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
21597 (.\${*prefix}*|.\${*dir}*)
21598 eval withval="$withval"
21599 case ".$withval" in
21601 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
21606 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
21609 { { echo "$as_me:21609: error: expected a pathname, not \"$withval\"" >&5
21610 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
21611 { (exit 1); exit 1; }; }
21616 eval ADA_OBJECTS="$withval"
21618 echo "$as_me:21618: result: $ADA_OBJECTS" >&5
21619 echo "${ECHO_T}$ADA_OBJECTS" >&6
21621 echo "$as_me:21621: checking if an Ada95 shared-library should be built" >&5
21622 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
21624 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
21625 if test "${with_ada_sharedlib+set}" = set; then
21626 withval="$with_ada_sharedlib"
21627 with_ada_sharedlib=$withval
21629 with_ada_sharedlib=no
21631 echo "$as_me:21631: result: $with_ada_sharedlib" >&5
21632 echo "${ECHO_T}$with_ada_sharedlib" >&6
21634 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
21635 MAKE_ADA_SHAREDLIB="#"
21637 if test "x$with_ada_sharedlib" != xno
21639 MAKE_ADA_SHAREDLIB=
21640 if test "x$with_ada_sharedlib" != xyes
21642 ADA_SHAREDLIB="$with_ada_sharedlib"
21652 # do this "late" to avoid conflict with header-checks
21653 if test "x$with_widec" = xyes ; then
21654 echo "$as_me:21654: checking for wchar_t" >&5
21655 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21656 if test "${ac_cv_type_wchar_t+set}" = set; then
21657 echo $ECHO_N "(cached) $ECHO_C" >&6
21659 cat >conftest.$ac_ext <<_ACEOF
21660 #line 21660 "configure"
21661 #include "confdefs.h"
21662 $ac_includes_default
21668 if (sizeof (wchar_t))
21674 rm -f conftest.$ac_objext
21675 if { (eval echo "$as_me:21675: \"$ac_compile\"") >&5
21676 (eval $ac_compile) 2>&5
21678 echo "$as_me:21678: \$? = $ac_status" >&5
21679 (exit $ac_status); } &&
21680 { ac_try='test -s conftest.$ac_objext'
21681 { (eval echo "$as_me:21681: \"$ac_try\"") >&5
21682 (eval $ac_try) 2>&5
21684 echo "$as_me:21684: \$? = $ac_status" >&5
21685 (exit $ac_status); }; }; then
21686 ac_cv_type_wchar_t=yes
21688 echo "$as_me: failed program was:" >&5
21689 cat conftest.$ac_ext >&5
21690 ac_cv_type_wchar_t=no
21692 rm -f conftest.$ac_objext conftest.$ac_ext
21694 echo "$as_me:21694: result: $ac_cv_type_wchar_t" >&5
21695 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21697 echo "$as_me:21697: checking size of wchar_t" >&5
21698 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
21699 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
21700 echo $ECHO_N "(cached) $ECHO_C" >&6
21702 if test "$ac_cv_type_wchar_t" = yes; then
21703 if test "$cross_compiling" = yes; then
21704 # Depending upon the size, compute the lo and hi bounds.
21705 cat >conftest.$ac_ext <<_ACEOF
21706 #line 21706 "configure"
21707 #include "confdefs.h"
21708 $ac_includes_default
21712 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= 0)]
21717 rm -f conftest.$ac_objext
21718 if { (eval echo "$as_me:21718: \"$ac_compile\"") >&5
21719 (eval $ac_compile) 2>&5
21721 echo "$as_me:21721: \$? = $ac_status" >&5
21722 (exit $ac_status); } &&
21723 { ac_try='test -s conftest.$ac_objext'
21724 { (eval echo "$as_me:21724: \"$ac_try\"") >&5
21725 (eval $ac_try) 2>&5
21727 echo "$as_me:21727: \$? = $ac_status" >&5
21728 (exit $ac_status); }; }; then
21731 cat >conftest.$ac_ext <<_ACEOF
21732 #line 21732 "configure"
21733 #include "confdefs.h"
21734 $ac_includes_default
21738 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
21743 rm -f conftest.$ac_objext
21744 if { (eval echo "$as_me:21744: \"$ac_compile\"") >&5
21745 (eval $ac_compile) 2>&5
21747 echo "$as_me:21747: \$? = $ac_status" >&5
21748 (exit $ac_status); } &&
21749 { ac_try='test -s conftest.$ac_objext'
21750 { (eval echo "$as_me:21750: \"$ac_try\"") >&5
21751 (eval $ac_try) 2>&5
21753 echo "$as_me:21753: \$? = $ac_status" >&5
21754 (exit $ac_status); }; }; then
21755 ac_hi=$ac_mid; break
21757 echo "$as_me: failed program was:" >&5
21758 cat conftest.$ac_ext >&5
21759 ac_lo=`expr $ac_mid + 1`; ac_mid=`expr 2 '*' $ac_mid + 1`
21761 rm -f conftest.$ac_objext conftest.$ac_ext
21764 echo "$as_me: failed program was:" >&5
21765 cat conftest.$ac_ext >&5
21768 cat >conftest.$ac_ext <<_ACEOF
21769 #line 21769 "configure"
21770 #include "confdefs.h"
21771 $ac_includes_default
21775 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= $ac_mid)]
21780 rm -f conftest.$ac_objext
21781 if { (eval echo "$as_me:21781: \"$ac_compile\"") >&5
21782 (eval $ac_compile) 2>&5
21784 echo "$as_me:21784: \$? = $ac_status" >&5
21785 (exit $ac_status); } &&
21786 { ac_try='test -s conftest.$ac_objext'
21787 { (eval echo "$as_me:21787: \"$ac_try\"") >&5
21788 (eval $ac_try) 2>&5
21790 echo "$as_me:21790: \$? = $ac_status" >&5
21791 (exit $ac_status); }; }; then
21792 ac_lo=$ac_mid; break
21794 echo "$as_me: failed program was:" >&5
21795 cat conftest.$ac_ext >&5
21796 ac_hi=`expr $ac_mid - 1`; ac_mid=`expr 2 '*' $ac_mid`
21798 rm -f conftest.$ac_objext conftest.$ac_ext
21801 rm -f conftest.$ac_objext conftest.$ac_ext
21802 # Binary search between lo and hi bounds.
21803 while test "x$ac_lo" != "x$ac_hi"; do
21804 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21805 cat >conftest.$ac_ext <<_ACEOF
21806 #line 21806 "configure"
21807 #include "confdefs.h"
21808 $ac_includes_default
21812 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
21817 rm -f conftest.$ac_objext
21818 if { (eval echo "$as_me:21818: \"$ac_compile\"") >&5
21819 (eval $ac_compile) 2>&5
21821 echo "$as_me:21821: \$? = $ac_status" >&5
21822 (exit $ac_status); } &&
21823 { ac_try='test -s conftest.$ac_objext'
21824 { (eval echo "$as_me:21824: \"$ac_try\"") >&5
21825 (eval $ac_try) 2>&5
21827 echo "$as_me:21827: \$? = $ac_status" >&5
21828 (exit $ac_status); }; }; then
21831 echo "$as_me: failed program was:" >&5
21832 cat conftest.$ac_ext >&5
21833 ac_lo=`expr $ac_mid + 1`
21835 rm -f conftest.$ac_objext conftest.$ac_ext
21837 ac_cv_sizeof_wchar_t=$ac_lo
21839 if test "$cross_compiling" = yes; then
21840 { { echo "$as_me:21840: error: cannot run test program while cross compiling" >&5
21841 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
21842 { (exit 1); exit 1; }; }
21844 cat >conftest.$ac_ext <<_ACEOF
21845 #line 21845 "configure"
21846 #include "confdefs.h"
21847 $ac_includes_default
21851 FILE *f = fopen ("conftest.val", "w");
21853 $ac_main_return (1);
21854 fprintf (f, "%d", (sizeof (wchar_t)));
21860 rm -f conftest$ac_exeext
21861 if { (eval echo "$as_me:21861: \"$ac_link\"") >&5
21862 (eval $ac_link) 2>&5
21864 echo "$as_me:21864: \$? = $ac_status" >&5
21865 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21866 { (eval echo "$as_me:21866: \"$ac_try\"") >&5
21867 (eval $ac_try) 2>&5
21869 echo "$as_me:21869: \$? = $ac_status" >&5
21870 (exit $ac_status); }; }; then
21871 ac_cv_sizeof_wchar_t=`cat conftest.val`
21873 echo "$as_me: program exited with status $ac_status" >&5
21874 echo "$as_me: failed program was:" >&5
21875 cat conftest.$ac_ext >&5
21877 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21882 ac_cv_sizeof_wchar_t=0
21885 echo "$as_me:21885: result: $ac_cv_sizeof_wchar_t" >&5
21886 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
21887 cat >>confdefs.h <<EOF
21888 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
21893 ### Construct the ncurses library-subsets, if any, from this set of keywords:
21894 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
21896 ### ticlib modules may be a separate library, otherwise contained in termlib.
21897 ### termlib modules may be a separate library, otherwise contained in ncurses.
21899 ### The of "+" or " " between the tokens controls the way the script
21900 ### chooses to split module lists into libraries.
21902 ### (see CF_LIB_RULES).
21903 echo "$as_me:21903: checking for library subsets" >&5
21904 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
21907 if test "x$cf_with_progs" = xyes || test "$with_ticlib" != no || test "$with_termcap" != no; then
21908 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
21909 if test "$with_ticlib" != no ; then
21910 LIB_SUBSETS="${LIB_SUBSETS} "
21912 LIB_SUBSETS="${LIB_SUBSETS}+"
21916 LIB_SUBSETS="${LIB_SUBSETS}termlib"
21917 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
21919 if test "$with_termlib" != no ; then
21920 LIB_SUBSETS="${LIB_SUBSETS} "
21922 LIB_SUBSETS="${LIB_SUBSETS}+"
21925 LIB_SUBSETS="${LIB_SUBSETS}base"
21927 # Most term-driver calls are to tinfo, but some like init_pair are to the
21928 # base library (so it resides in base).
21929 if test "$with_term_driver" != no ; then
21930 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
21931 case $cf_cv_system_name in
21932 (*mingw32*|*mingw64*)
21933 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
21934 CPPFLAGS="$CPPFLAGS -DUSE_WIN32CON_DRIVER"
21937 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
21942 test "x$with_widec" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
21943 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
21945 echo "$as_me:21945: result: $LIB_SUBSETS" >&5
21946 echo "${ECHO_T}$LIB_SUBSETS" >&6
21948 ### Construct the list of include-directories to be generated
21950 if test "$srcdir" != "."; then
21951 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
21953 CPPFLAGS="-I../include $CPPFLAGS"
21954 if test "$srcdir" != "."; then
21955 CPPFLAGS="-I\${srcdir} $CPPFLAGS"
21957 CPPFLAGS="-I. $CPPFLAGS"
21959 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
21960 if test "$srcdir" != "."; then
21961 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
21963 if test "$GCC" != yes; then
21964 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
21965 elif test "$includedir" != "/usr/include"; then
21966 if test "$includedir" = '${prefix}/include' ; then
21967 if test x$prefix != x/usr ; then
21968 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
21971 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
21975 ### Build up pieces for makefile rules
21976 echo "$as_me:21976: checking default library suffix" >&5
21977 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
21979 case $DFT_LWR_MODEL in
21980 (libtool) DFT_ARG_SUFFIX='' ;;
21981 (normal) DFT_ARG_SUFFIX='' ;;
21982 (debug) DFT_ARG_SUFFIX='_g' ;;
21983 (profile) DFT_ARG_SUFFIX='_p' ;;
21984 (shared) DFT_ARG_SUFFIX='' ;;
21986 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
21987 echo "$as_me:21987: result: $DFT_ARG_SUFFIX" >&5
21988 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
21990 echo "$as_me:21990: checking default library-dependency suffix" >&5
21991 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
21993 case X$DFT_LWR_MODEL in
21995 DFT_LIB_SUFFIX='.la'
21996 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
21999 DFT_LIB_SUFFIX='_g.a'
22000 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
22003 DFT_LIB_SUFFIX='_p.a'
22004 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
22007 case $cf_cv_system_name in
22009 DFT_LIB_SUFFIX='.so'
22010 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
22012 (cygwin*|msys*|mingw*)
22013 DFT_LIB_SUFFIX='.dll'
22014 DFT_DEP_SUFFIX='.dll.a'
22017 DFT_LIB_SUFFIX='.dylib'
22018 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
22023 DFT_LIB_SUFFIX='.so'
22024 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
22027 DFT_LIB_SUFFIX='.sl'
22028 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
22033 DFT_LIB_SUFFIX='.so'
22034 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
22039 DFT_LIB_SUFFIX='.a'
22040 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
22043 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
22045 DFT_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_LIB_SUFFIX}"
22046 DFT_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_DEP_SUFFIX}"
22048 echo "$as_me:22048: result: $DFT_DEP_SUFFIX" >&5
22049 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
22051 echo "$as_me:22051: checking default object directory" >&5
22052 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
22054 case $DFT_LWR_MODEL in
22055 (libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
22056 (normal) DFT_OBJ_SUBDIR='objects' ;;
22057 (debug) DFT_OBJ_SUBDIR='obj_g' ;;
22058 (profile) DFT_OBJ_SUBDIR='obj_p' ;;
22060 case $cf_cv_system_name in
22062 DFT_OBJ_SUBDIR='objects' ;;
22064 DFT_OBJ_SUBDIR='obj_s' ;;
22067 echo "$as_me:22067: result: $DFT_OBJ_SUBDIR" >&5
22068 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
22070 if test "x$cf_with_cxx" = xyes ; then
22071 echo "$as_me:22071: checking c++ library-dependency suffix" >&5
22072 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
22073 if test "$with_libtool" != "no"; then
22074 # libtool thinks it can make c++ shared libraries (perhaps only g++)
22075 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
22076 elif test "$with_shared_cxx" != "no"; then
22077 # also for g++ users...
22078 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
22080 # we normally make a static library because C/C++ library rules differ
22084 CXX_LIB_SUFFIX='.la'
22085 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
22088 CXX_LIB_SUFFIX='_g.a'
22089 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
22092 CXX_LIB_SUFFIX='_p.a'
22093 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
22096 case $cf_cv_system_name in
22098 CXX_LIB_SUFFIX='.so'
22099 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
22101 (cygwin*|msys*|mingw*)
22102 CXX_LIB_SUFFIX='.dll'
22103 CXX_DEP_SUFFIX='.dll.a'
22106 CXX_LIB_SUFFIX='.dylib'
22107 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
22112 CXX_LIB_SUFFIX='.so'
22113 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
22116 CXX_LIB_SUFFIX='.sl'
22117 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
22122 CXX_LIB_SUFFIX='.so'
22123 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
22128 CXX_LIB_SUFFIX='.a'
22129 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
22132 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
22134 CXX_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_LIB_SUFFIX}"
22135 CXX_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_DEP_SUFFIX}"
22139 echo "$as_me:22139: result: $CXX_LIB_SUFFIX" >&5
22140 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
22144 # do not want -ldl in build except as needed for -lncurses dependency
22145 if test "x$with_dlsym" = xyes ; then
22146 if test $DFT_LWR_MODEL = shared || \
22147 test $DFT_LWR_MODEL = libtool ; then
22149 # remove dl library from $LIBS
22150 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
22154 ### Set up low-level terminfo dependencies for makefiles.
22156 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
22157 # do not need libdl
22159 if test "x$with_dlsym" = xyes ; then
22161 # remove dl library from $SHLIB_LIST
22162 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
22166 USE_ARG_SUFFIX="${DFT_ARG_SUFFIX}${EXTRA_SUFFIX}"
22167 USE_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}"
22168 USE_CFG_SUFFIX=${DFT_ARG_SUFFIX}${cf_cv_abi_version}
22169 if test -n "$EXTRA_SUFFIX" && test "x$EXTRA_SUFFIX" != "x${cf_cv_abi_version}"
22171 USE_CFG_SUFFIX="${USE_CFG_SUFFIX}${EXTRA_SUFFIX}"
22174 if test "$with_ticlib" != no ; then
22176 if test "x$with_ticlib" != xyes ; then
22177 TICS_NAME=$with_ticlib
22178 TICS_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${USE_LIB_SUFFIX}//"`"
22179 TICS_ARG_SUFFIX="${with_ticlib}`echo ${USE_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
22180 TICS_DEP_SUFFIX="${with_ticlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
22181 TICS_LIB_SUFFIX="${with_ticlib}"
22183 TICS_SUFFIX=${DFT_LIB_SUFFIX}
22184 TICS_ARG_SUFFIX="${TICS_NAME}${USE_ARG_SUFFIX}"
22185 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
22186 TICS_LIB_SUFFIX="${TICS_NAME}${USE_LIB_SUFFIX}"
22188 TICS_LDFLAGS="-L${LIB_DIR}"
22189 TICS_LIBS="-l${TICS_ARG_SUFFIX}"
22191 TICS_SUFFIX=${DFT_LIB_SUFFIX}
22192 TICS_LDFLAGS="-L${LIB_DIR}"
22193 TICS_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
22196 if test "$with_termlib" != no ; then
22198 if test "x$with_termlib" != xyes ; then
22199 TINFO_NAME=$with_termlib
22200 TINFO_SUFFIX="`echo ${DFT_LIB_SUFFIX}|sed -e "s/^${USE_LIB_SUFFIX}//"`"
22201 TINFO_ARG_SUFFIX="${with_termlib}`echo ${USE_ARG_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
22202 TINFO_DEP_SUFFIX="${with_termlib}`echo ${DFT_DEP_SUFFIX}|sed -e "s/^${LIB_SUFFIX}//"`"
22203 TINFO_LIB_SUFFIX="${with_termlib}"
22205 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
22206 TINFO_ARG_SUFFIX="${TINFO_NAME}${USE_ARG_SUFFIX}"
22207 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
22208 TINFO_LIB_SUFFIX="${TINFO_NAME}${USE_LIB_SUFFIX}"
22211 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
22212 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
22213 if test "$DFT_LWR_MODEL" = "libtool"; then
22214 TEST_ARGS="${TEST_DEPS}"
22215 TEST_ARG2="${TEST_DEP2}"
22216 TINFO_LDFLAGS="-L${LIB_DIR}"
22217 TINFO_LIBS="$TEST_ARGS"
22218 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
22219 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
22221 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
22222 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
22223 if test "x$with_term_driver" != xno ; then
22224 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
22225 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${USE_ARG_SUFFIX}"
22226 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
22228 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
22229 TINFO_LIBS="$TEST_ARGS"
22231 TINFO_LDFLAGS="-L${LIB_DIR}"
22232 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
22235 # the next lines are needed for linking libtic over libncurses
22236 TINFO_NAME=${LIB_NAME}
22237 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
22238 TINFO_ARG_SUFFIX=${LIB_NAME}${USE_ARG_SUFFIX}
22239 if test "x$with_tic_depends" = xyes ; then
22240 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
22242 TICS_LIST="$SHLIB_LIST"
22245 TINFO_LDFLAGS="-L${LIB_DIR}"
22246 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
22249 if test "$DFT_LWR_MODEL" = shared ; then
22250 case $cf_cv_system_name in
22252 # "lib" files have ".dll.a" suffix, "cyg"or "msys-" files have ".dll"
22258 if test "x$with_dlsym" = xyes ; then
22260 # remove dl library from $TICS_LIST
22261 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
22265 if test "$DFT_LWR_MODEL" = "libtool"; then
22270 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
22272 case $DFT_LWR_MODEL in
22273 (normal|debug|profile)
22275 if test "$GCC" = yes ; then
22276 case $cf_cv_system_name in
22277 (OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*)
22281 (*) # normally, except when broken
22282 LDFLAGS_STATIC=-static
22283 LDFLAGS_SHARED=-dynamic
22287 case $cf_cv_system_name in
22288 (aix[4-7]*) # from ld manpage
22289 LDFLAGS_STATIC=-bstatic
22290 LDFLAGS_SHARED=-bdynamic
22292 (hpux*) # from ld manpage for hpux10.20, hpux11.11
22293 # We could also use just "archive" and "shared".
22294 LDFLAGS_STATIC=-Wl,-a,archive_shared
22295 LDFLAGS_SHARED=-Wl,-a,shared_archive
22297 (irix*) # from ld manpage IRIX64
22298 LDFLAGS_STATIC=-Bstatic
22299 LDFLAGS_SHARED=-Bdynamic
22301 (osf[45]*) # from ld manpage osf4.0d, osf5.1
22302 # alternative "-oldstyle_liblookup" (not in cc manpage)
22303 LDFLAGS_STATIC=-noso
22304 LDFLAGS_SHARED=-so_archive
22307 LDFLAGS_STATIC=-Bstatic
22308 LDFLAGS_SHARED=-Bdynamic
22313 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
22315 echo "$as_me:22315: checking if linker supports switching between static/dynamic" >&5
22316 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
22318 rm -f libconftest.a
22319 cat >conftest.$ac_ext <<EOF
22320 #line 22320 "configure"
22322 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
22324 if { (eval echo "$as_me:22324: \"$ac_compile\"") >&5
22325 (eval $ac_compile) 2>&5
22327 echo "$as_me:22327: \$? = $ac_status" >&5
22328 (exit $ac_status); } ; then
22329 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
22330 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
22334 cf_save_LIBS="$LIBS"
22336 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
22337 cat >conftest.$ac_ext <<_ACEOF
22338 #line 22338 "configure"
22339 #include "confdefs.h"
22341 #line 22341 "configure"
22343 int cf_ldflags_static(FILE *fp);
22349 return cf_ldflags_static(stdin);
22355 rm -f conftest.$ac_objext conftest$ac_exeext
22356 if { (eval echo "$as_me:22356: \"$ac_link\"") >&5
22357 (eval $ac_link) 2>&5
22359 echo "$as_me:22359: \$? = $ac_status" >&5
22360 (exit $ac_status); } &&
22361 { ac_try='test -s conftest$ac_exeext'
22362 { (eval echo "$as_me:22362: \"$ac_try\"") >&5
22363 (eval $ac_try) 2>&5
22365 echo "$as_me:22365: \$? = $ac_status" >&5
22366 (exit $ac_status); }; }; then
22368 # some linkers simply ignore the -dynamic
22369 case x`file conftest$ac_exeext 2>/dev/null` in
22371 cf_ldflags_static=no
22374 cf_ldflags_static=yes
22379 echo "$as_me: failed program was:" >&5
22380 cat conftest.$ac_ext >&5
22381 cf_ldflags_static=no
22383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22385 rm -f libconftest.*
22386 LIBS="$cf_save_LIBS"
22388 echo "$as_me:22388: result: $cf_ldflags_static" >&5
22389 echo "${ECHO_T}$cf_ldflags_static" >&6
22391 if test $cf_ldflags_static != yes
22404 echo "$as_me:22404: checking where we will install curses.h" >&5
22405 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
22408 if test "$with_overwrite" = no && \
22409 ( test "x$includedir" = 'x${prefix}/include' || \
22410 test "x$includedir" = "x${prefix}/include" )
22412 includesubdir="/ncurses${USE_LIB_SUFFIX}"
22414 echo "$as_me:22414: result: ${includedir}${includesubdir}" >&5
22415 echo "${ECHO_T}${includedir}${includesubdir}" >&6
22417 ### Resolve a conflict between normal and wide-curses by forcing applications
22418 ### that will need libutf8 to add it to their configure script.
22419 if test "$with_overwrite" != no ; then
22420 if test "$NCURSES_LIBUTF8" = 1 ; then
22421 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
22422 { echo "$as_me:22422: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
22423 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
22426 WITH_OVERWRITE=$with_overwrite
22428 # used to separate tack out of the tree
22431 ### predefined stuff for the test programs
22433 cat >>confdefs.h <<\EOF
22434 #define HAVE_SLK_COLOR 1
22437 ### Construct the list of subdirectories for which we'll customize makefiles
22438 ### with the appropriate compile-rules.
22440 echo "$as_me:22440: checking for src modules" >&5
22441 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
22443 # dependencies and linker-arguments for test-programs
22444 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
22445 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
22446 if test "$DFT_LWR_MODEL" = "libtool"; then
22447 TEST_ARGS="${TEST_DEPS}"
22448 TEST_ARG2="${TEST_DEP2}"
22450 TEST_ARGS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
22451 TEST_ARG2="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARG2"
22454 PC_MODULES_TO_MAKE="ncurses${USE_ARG_SUFFIX}"
22456 for cf_dir in $modules_to_build
22458 if test -f $srcdir/$cf_dir/modules; then
22460 # We may/may not have tack in the distribution, though the
22462 if test $cf_dir = tack ; then
22463 if test ! -f $srcdir/${cf_dir}/${cf_dir}.h; then
22468 if test -z "$cf_cv_src_modules"; then
22469 cf_cv_src_modules=$cf_dir
22471 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
22474 # Make the ncurses_cfg.h file record the library interface files as
22475 # well. These are header files that are the same name as their
22476 # directory. Ncurses is the only library that does not follow
22478 if test $cf_dir = tack ; then
22480 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
22482 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
22484 cat >>confdefs.h <<EOF
22485 #define HAVE_${cf_have_include}_H 1
22488 cat >>confdefs.h <<EOF
22489 #define HAVE_LIB${cf_have_include} 1
22492 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
22493 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEP2"
22494 if test "$DFT_LWR_MODEL" = "libtool"; then
22495 TEST_ARGS="${TEST_DEPS}"
22496 TEST_ARG2="${TEST_DEP2}"
22498 TEST_ARGS="-l${cf_dir}${USE_ARG_SUFFIX} $TEST_ARGS"
22499 TEST_ARG2="-l${cf_dir}${USE_ARG_SUFFIX} $TEST_ARG2"
22501 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${USE_ARG_SUFFIX}"
22505 echo "$as_me:22505: result: $cf_cv_src_modules" >&5
22506 echo "${ECHO_T}$cf_cv_src_modules" >&6
22508 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
22509 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
22512 if test "x$cf_with_manpages" != xno ; then
22513 SRC_SUBDIRS="$SRC_SUBDIRS man"
22515 SRC_SUBDIRS="$SRC_SUBDIRS include"
22516 for cf_dir in $cf_cv_src_modules
22518 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
22520 if test "x$cf_with_tests" != "xno" ; then
22521 SRC_SUBDIRS="$SRC_SUBDIRS test"
22523 # always make this, to install the ncurses-config script
22524 SRC_SUBDIRS="$SRC_SUBDIRS misc"
22525 if test "$cf_with_cxx_binding" != no; then
22526 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${USE_ARG_SUFFIX}"
22527 SRC_SUBDIRS="$SRC_SUBDIRS c++"
22530 test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX"
22531 test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX"
22534 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f $srcdir/Ada95/Makefile.in; then
22535 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
22536 ADA_SUBDIRS="gen src"
22537 if test "x$cf_with_tests" != "xno" ; then
22538 ADA_SUBDIRS="$ADA_SUBDIRS samples"
22543 for cf_dir in $SRC_SUBDIRS
22545 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
22548 if test -n "$ADA_SUBDIRS"; then
22549 for cf_dir in $ADA_SUBDIRS
22551 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
22556 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
22557 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${USE_CFG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
22558 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${USE_CFG_SUFFIX}-config.1:man/MKada_config.in"
22562 for cf_item in $cf_list_models
22566 (libtool) cf_subdir='obj_lo' ;;
22567 (normal) cf_subdir='objects' ;;
22568 (debug) cf_subdir='obj_g' ;;
22569 (profile) cf_subdir='obj_p' ;;
22571 case $cf_cv_system_name in
22573 cf_subdir='objects' ;;
22575 cf_subdir='obj_s' ;;
22579 for cf_item2 in $DIRS_TO_MAKE
22581 test $cf_item2 = $cf_subdir && break
22583 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
22585 for cf_dir in $DIRS_TO_MAKE
22587 test ! -d $cf_dir && mkdir $cf_dir
22590 # symbols that differ when compiling Ada95 by itself.
22591 NCURSES_SHLIB2=$SHELL' $(top_srcdir)/misc/shlib'
22593 # values to use as strings
22595 cat >>confdefs.h <<EOF
22596 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
22599 cat >>confdefs.h <<EOF
22600 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
22603 ### Now that we're done running tests, add the compiler-warnings, if any
22608 cf_new_extra_cppflags=
22610 for cf_add_cflags in $EXTRA_CFLAGS
22612 case $cf_fix_cppflags in
22614 case $cf_add_cflags in
22615 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
22616 case $cf_add_cflags in
22618 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
22620 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
22621 && test -z "${cf_tst_cflags}" \
22622 && cf_fix_cppflags=yes
22624 if test $cf_fix_cppflags = yes ; then
22625 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
22627 elif test "${cf_tst_cflags}" = "\"'" ; then
22628 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
22633 case "$CPPFLAGS" in
22637 case $cf_add_cflags in
22639 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
22641 CPPFLAGS=`echo "$CPPFLAGS" | \
22642 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
22643 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
22647 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
22652 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
22657 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
22659 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
22661 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
22662 && test -z "${cf_tst_cflags}" \
22663 && cf_fix_cppflags=no
22668 if test -n "$cf_new_cflags" ; then
22670 CFLAGS="$CFLAGS $cf_new_cflags"
22673 if test -n "$cf_new_cppflags" ; then
22675 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
22678 if test -n "$cf_new_extra_cppflags" ; then
22680 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
22683 ### Define substitutions for header files to avoid name-pollution
22685 if test "x$cf_cv_have_tcgetattr" = xyes ; then
22691 if test "x$ac_cv_header_stdint_h" = xyes ; then
22697 if test "x$ac_cv_header_termio_h" = xyes ; then
22703 if test "x$ac_cv_header_termios_h" = xyes ; then
22709 ################################################################################
22710 test "x$use_database" = xyes && \
22711 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
22713 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
22714 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${USE_CFG_SUFFIX}-config.1:man/MKncu_config.in"
22716 if test "x$enable_pc_files" = xyes && test -z "$MAKE_PC_FILES" ; then
22717 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
22720 # Extract the first word of "tic", so it can be a program name with args.
22721 set dummy tic; ac_word=$2
22722 echo "$as_me:22722: checking for $ac_word" >&5
22723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22724 if test "${ac_cv_path_TIC_PATH+set}" = set; then
22725 echo $ECHO_N "(cached) $ECHO_C" >&6
22729 ac_cv_path_TIC_PATH="$TIC_PATH" # Let the user override the test with a path.
22732 ac_save_IFS=$IFS; IFS=$ac_path_separator
22733 ac_dummy="$PATH:/usr/local/ncurses/bin"
22734 for ac_dir in $ac_dummy; do
22736 test -z "$ac_dir" && ac_dir=.
22737 if $as_executable_p "$ac_dir/$ac_word"; then
22738 ac_cv_path_TIC_PATH="$ac_dir/$ac_word"
22739 echo "$as_me:22739: found $ac_dir/$ac_word" >&5
22744 test -z "$ac_cv_path_TIC_PATH" && ac_cv_path_TIC_PATH="unknown"
22748 TIC_PATH=$ac_cv_path_TIC_PATH
22750 if test -n "$TIC_PATH"; then
22751 echo "$as_me:22751: result: $TIC_PATH" >&5
22752 echo "${ECHO_T}$TIC_PATH" >&6
22754 echo "$as_me:22754: result: no" >&5
22755 echo "${ECHO_T}no" >&6
22758 if test -n "$FALLBACK_LIST"
22760 if test "$TIC_PATH" = unknown
22762 { echo "$as_me:22762: WARNING: no tic program found for fallbacks" >&5
22763 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
22767 if test "x$cf_with_tests" != xno ; then
22773 ADAHTML_DIR=../../doc/html/ada
22775 # these could be configurable, but are not currently
22781 # workaround for OS/2 (20151017)
22782 case $cf_cv_system_name in
22784 LIBTOOL_OPTS_CXX="-os2dllname ncurs++"
22791 # workaround for g++ versus Solaris (20131116)
22792 case $cf_cv_system_name in
22794 case "x$CPPFLAGS" in
22795 (*-D_XOPEN_SOURCE_EXTENDED*)
22796 test -n "$verbose" && echo " moving _XOPEN_SOURCE_EXTENDED to work around g++ problem" 1>&6
22798 echo "${as_me:-configure}:22798: testing moving _XOPEN_SOURCE_EXTENDED to work around g++ problem ..." 1>&5
22800 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
22801 CPPFLAGS=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/-D_XOPEN_SOURCE_EXTENDED//'`
22807 # Help to automatically enable the extended curses features when using either
22808 # the *-config or the ".pc" files by adding defines.
22809 echo "$as_me:22809: checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script" >&5
22810 echo $ECHO_N "checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script... $ECHO_C" >&6
22812 for cf_loop1 in $CPPFLAGS_after_XOPEN
22815 for cf_loop2 in $CPPFLAGS_before_XOPEN
22817 if test "x$cf_loop1" = "x$cf_loop2"
22823 test "$cf_found" = no && PKG_CFLAGS="$PKG_CFLAGS $cf_loop1"
22825 echo "$as_me:22825: result: $PKG_CFLAGS" >&5
22826 echo "${ECHO_T}$PKG_CFLAGS" >&6
22828 # AC_CHECK_SIZEOF demands a literal parameter, no variables. So we do this.
22829 case "x$NCURSES_OSPEED" in
22838 cat >>confdefs.h <<EOF
22839 #define NCURSES_OSPEED_COMPAT $cf_compatible
22842 case "x$cf_cv_typeof_chtype" in
22843 (xshort|xint|xlong)
22844 cf_cv_typeof_chtype="unsigned $cf_cv_typeof_chtype"
22848 case "x$cf_cv_typeof_mmask_t" in
22849 (xshort|xint|xlong)
22850 cf_cv_typeof_mmask_t="unsigned $cf_cv_typeof_mmask_t"
22854 # substitute into misc/Makefile to suppress
22855 # (un)install.data from the
22856 # (un)install rules.
22857 if test "x$cf_with_db_install" = "xno"; then
22859 MISC_UNINSTALL_DATA=
22861 MISC_INSTALL_DATA=install.data
22862 MISC_UNINSTALL_DATA=uninstall.data
22867 if test -n "$PACKAGE"
22869 PACKAGE="${PACKAGE}${DFT_ARG_SUFFIX}"
22871 echo "package: $PACKAGE"
22877 if test -n "$RESULTING_SYMS"
22879 cf_filter_syms=$cf_dft_filter_syms
22880 test -n "$verbose" && echo " will map symbols to ABI=$cf_cv_abi_version" 1>&6
22882 echo "${as_me:-configure}:22882: testing will map symbols to ABI=$cf_cv_abi_version ..." 1>&5
22886 if test "x$WILDCARD_SYMS" = xno
22891 test "x$cf_with_trace" = xyes && NCURSES_INLINE=
22893 UNALTERED_SYMS=`echo "$RESULTING_SYMS" | sed -e 's/\\$/\\\\$/g'`
22894 if test $cf_filter_syms = yes
22896 RESULTING_SYMS=resulting.map
22899 if test "x$cross_compiling" = xyes ; then
22900 ADAGEN_LDFLAGS='$(CROSS_LDFLAGS)'
22902 ADAGEN_LDFLAGS='$(NATIVE_LDFLAGS)'
22905 ac_config_files="$ac_config_files include/MKterm.h.awk include/curses.head:include/curses.h.in include/ncurses_dll.h include/termcap.h include/unctrl.h $SUB_SCRIPTS $SUB_MAKEFILES Makefile"
22906 ac_config_commands="$ac_config_commands default"
22907 cat >confcache <<\_ACEOF
22908 # This file is a shell script that caches the results of configure
22909 # tests run on this system so they can be shared between configure
22910 # scripts and configure runs, see configure's option --config-cache.
22911 # It is not useful on other systems. If it contains results you don't
22912 # want to keep, you may remove or edit it.
22914 # config.status only pays attention to the cache file if you give it
22915 # the --recheck option to rerun configure.
22917 # `ac_cv_env_foo' variables (set or unset) will be overriden when
22918 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22919 # following values.
22923 # The following way of writing the cache mishandles newlines in values,
22924 # but we know of no workaround that is simple, portable, and efficient.
22925 # So, don't put newlines in cache variables' values.
22926 # Ultrix sh set writes to stderr and can't be redirected directly,
22927 # and sets the high bit in the cache file unless we assign to the vars.
22930 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22932 # `set' does not quote correctly, so add quotes (double-quote
22933 # substitution turns \\\\ into \\, and sed turns \\ into \).
22936 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22939 # `set' quotes correctly as required by POSIX, so do not add quotes.
22941 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22948 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22950 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22952 if cmp -s $cache_file confcache; then :; else
22953 if test -w $cache_file; then
22954 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22955 cat confcache >$cache_file
22957 echo "not updating unwritable cache $cache_file"
22962 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22963 # Let make expand exec_prefix.
22964 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22966 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22967 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22968 # trailing colons and then remove the whole line if VPATH becomes empty
22969 # (actually we leave an empty line to preserve line numbers).
22970 if test "x$srcdir" = x.; then
22971 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22972 s/:*\$(srcdir):*/:/;
22973 s/:*\${srcdir}:*/:/;
22975 s/^\([^=]*=[ ]*\):*/\1/;
22981 DEFS=-DHAVE_CONFIG_H
22983 : ${CONFIG_STATUS=./config.status}
22984 ac_clean_files_save=$ac_clean_files
22985 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22986 { echo "$as_me:22986: creating $CONFIG_STATUS" >&5
22987 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22988 cat >$CONFIG_STATUS <<_ACEOF
22990 # Generated automatically by configure.
22991 # Run this file to recreate the current configuration.
22992 # Compiler output produced by configure, useful for debugging
22993 # configure, is in config.log if it exists.
22996 SHELL=\${CONFIG_SHELL-$SHELL}
22997 ac_cs_invocation="\$0 \$@"
23001 cat >>$CONFIG_STATUS <<\_ACEOF
23002 # Be Bourne compatible
23003 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23006 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23010 # Name of the executable.
23011 as_me=`echo "$0" |sed 's,.*[\\/],,'`
23013 if expr a : '\(a\)' >/dev/null 2>&1; then
23019 rm -f conf$$ conf$$.exe conf$$.file
23021 if ln -s conf$$.file conf$$ 2>/dev/null; then
23022 # We could just check for DJGPP; but this test a) works b) is more generic
23023 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23024 if test -f conf$$.exe; then
23025 # Don't use ln at all; we don't have any links
23030 elif ln conf$$.file conf$$ 2>/dev/null; then
23035 rm -f conf$$ conf$$.exe conf$$.file
23037 as_executable_p="test -f"
23039 # Support unset when possible.
23040 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23047 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
23048 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
23049 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
23050 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
23051 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
23052 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
23053 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
23054 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
23057 # We need space, tab and new line, in precisely that order.
23063 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
23069 # Files that config.status was made for.
23070 if test -n "$ac_config_files"; then
23071 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23074 if test -n "$ac_config_headers"; then
23075 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23078 if test -n "$ac_config_links"; then
23079 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23082 if test -n "$ac_config_commands"; then
23083 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23086 cat >>$CONFIG_STATUS <<\EOF
23089 \`$as_me' instantiates files from templates according to the
23090 current configuration.
23092 Usage: $0 [OPTIONS] [FILE]...
23094 -h, --help print this help, then exit
23095 -V, --version print version number, then exit
23096 -d, --debug don't remove temporary files
23097 --recheck update $as_me by reconfiguring in the same conditions
23098 --file=FILE[:TEMPLATE]
23099 instantiate the configuration file FILE
23100 --header=FILE[:TEMPLATE]
23101 instantiate the configuration header FILE
23103 Configuration files:
23106 Configuration headers:
23109 Configuration commands:
23112 Report bugs to <dickey@invisible-island.net>."
23115 cat >>$CONFIG_STATUS <<EOF
23118 configured by $0, generated by GNU Autoconf 2.52.20150926,
23119 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23121 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23122 Free Software Foundation, Inc.
23123 This config.status script is free software; the Free Software Foundation
23124 gives unlimited permission to copy, distribute and modify it."
23129 cat >>$CONFIG_STATUS <<\EOF
23130 # If no file are specified by the user, then we need to provide default
23131 # value. By we need to know if files were specified by the user.
23137 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23138 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23140 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
23144 *) # This is not an option, so the user has probably given explicit
23146 ac_need_defaults=false;;
23150 # Handling of the options.
23152 cat >>$CONFIG_STATUS <<EOF
23153 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23154 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
23155 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
23157 cat >>$CONFIG_STATUS <<\EOF
23158 --version | --vers* | -V )
23159 echo "$ac_cs_version"; exit 0 ;;
23161 # Conflict between --help and --header
23162 { { echo "$as_me:23162: error: ambiguous option: $1
23163 Try \`$0 --help' for more information." >&5
23164 echo "$as_me: error: ambiguous option: $1
23165 Try \`$0 --help' for more information." >&2;}
23166 { (exit 1); exit 1; }; };;
23167 --help | --hel | -h )
23168 echo "$ac_cs_usage"; exit 0 ;;
23169 --debug | --d* | -d )
23171 --file | --fil | --fi | --f )
23173 CONFIG_FILES="$CONFIG_FILES $1"
23174 ac_need_defaults=false;;
23175 --header | --heade | --head | --hea )
23177 CONFIG_HEADERS="$CONFIG_HEADERS $1"
23178 ac_need_defaults=false;;
23180 # This is an error.
23181 -*) { { echo "$as_me:23181: error: unrecognized option: $1
23182 Try \`$0 --help' for more information." >&5
23183 echo "$as_me: error: unrecognized option: $1
23184 Try \`$0 --help' for more information." >&2;}
23185 { (exit 1); exit 1; }; } ;;
23187 *) ac_config_targets="$ac_config_targets $1" ;;
23196 ## ----------------------- ##
23197 ## Running config.status. ##
23198 ## ----------------------- ##
23200 This file was extended by $as_me 2.52.20150926, executed with
23201 CONFIG_FILES = $CONFIG_FILES
23202 CONFIG_HEADERS = $CONFIG_HEADERS
23203 CONFIG_LINKS = $CONFIG_LINKS
23204 CONFIG_COMMANDS = $CONFIG_COMMANDS
23205 > $ac_cs_invocation
23206 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23211 cat >>$CONFIG_STATUS <<EOF
23213 # INIT-COMMANDS section.
23216 ### Special initialization commands, used to pass information from the
23217 ### configuration-run into config.status
23220 ALTERNATE_SYMS="$ALTERNATE_SYMS"
23221 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
23222 DFT_LWR_MODEL="$DFT_LWR_MODEL"
23224 EXTRA_SUFFIX="$EXTRA_SUFFIX"
23225 LDCONFIG="$LDCONFIG"
23226 LIBTOOL_VERSION="$LIBTOOL_VERSION"
23227 LIB_NAME="$LIB_NAME"
23228 LIB_PREFIX="$LIB_PREFIX"
23229 LIB_SUBSETS="$LIB_SUBSETS"
23230 LIB_SUFFIX="$LIB_SUFFIX"
23231 LIB_TRACING="$LIB_TRACING"
23233 MAKE_TERMINFO="$MAKE_TERMINFO"
23234 NCURSES_MAJOR="$NCURSES_MAJOR"
23235 NCURSES_MINOR="$NCURSES_MINOR"
23236 NCURSES_OSPEED="$NCURSES_OSPEED"
23237 NCURSES_PATCH="$NCURSES_PATCH"
23238 SRC_SUBDIRS="$SRC_SUBDIRS"
23239 TERMINFO="$TERMINFO"
23240 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
23241 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
23242 TICS_NAME="$TICS_NAME"
23243 TICS_SUFFIX="$TICS_SUFFIX"
23244 TIC_PATH="$TIC_PATH"
23245 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
23246 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
23247 TINFO_NAME="$TINFO_NAME"
23248 TINFO_SUFFIX="$TINFO_SUFFIX"
23249 UNALTERED_SYMS="$UNALTERED_SYMS"
23250 USE_ARG_SUFFIX="$USE_ARG_SUFFIX"
23251 USE_CFG_SUFFIX="$USE_CFG_SUFFIX"
23252 USE_LIB_SUFFIX="$USE_LIB_SUFFIX"
23253 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
23254 WILDCARD_SYMS="$WILDCARD_SYMS"
23255 WITH_CURSES_H="$with_curses_h"
23256 WITH_ECHO="${enable_echo:=yes}"
23257 WITH_OVERWRITE="$with_overwrite"
23258 cf_LIST_MODELS="$cf_list_models"
23259 cf_cv_abi_version="$cf_cv_abi_version"
23260 cf_cv_do_relink="$cf_cv_do_relink"
23261 cf_cv_do_symlinks="$cf_cv_do_symlinks"
23262 cf_cv_enable_lp64="$cf_cv_enable_lp64"
23263 cf_cv_enable_opaque="$cf_cv_enable_opaque"
23264 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
23265 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
23266 cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
23267 cf_cv_rel_version="$cf_cv_rel_version"
23268 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
23269 cf_cv_shared_soname='$cf_cv_shared_soname'
23270 cf_cv_shlib_version="$cf_cv_shlib_version"
23271 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
23272 cf_cv_system_name="$cf_cv_system_name"
23273 cf_cv_term_driver="$with_term_driver"
23274 cf_with_ada="$cf_with_ada"
23275 cf_with_cxx_binding="$cf_with_cxx_binding"
23276 cf_with_db_install="$cf_with_db_install"
23277 cf_with_manpages="$cf_with_manpages"
23278 cf_with_tests="$cf_with_tests"
23281 with_shared_cxx="$with_shared_cxx"
23285 cat >>$CONFIG_STATUS <<\EOF
23286 for ac_config_target in $ac_config_targets
23288 case "$ac_config_target" in
23289 # Handling of arguments.
23290 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
23291 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
23292 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
23293 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
23294 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
23295 "$SUB_SCRIPTS" ) CONFIG_FILES="$CONFIG_FILES $SUB_SCRIPTS" ;;
23296 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
23297 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23298 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23299 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
23300 *) { { echo "$as_me:23300: error: invalid argument: $ac_config_target" >&5
23301 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23302 { (exit 1); exit 1; }; };;
23306 # If the user did not use the arguments to specify the items to instantiate,
23307 # then the envvar interface is used. Set only those that are not.
23308 # We use the long form for the default assignment because of an extremely
23309 # bizarre bug on SunOS 4.1.3.
23310 if $ac_need_defaults; then
23311 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23312 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23313 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23316 # Create a temporary directory, and hook for its removal unless debugging.
23319 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23320 trap '{ (exit 1); exit 1; }' 1 2 13 15
23323 # Create a (secure) tmp directory for tmp files.
23326 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
23327 test -n "$tmp" && test -d "$tmp"
23330 tmp=$TMPDIR/cs$$-$RANDOM
23331 (umask 077 && mkdir $tmp)
23334 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
23335 { (exit 1); exit 1; }
23340 cat >>$CONFIG_STATUS <<EOF
23343 # CONFIG_FILES section.
23346 # No need to generate the scripts if there are no CONFIG_FILES.
23347 # This happens for instance when ./config.status config.h
23348 if test -n "\$CONFIG_FILES"; then
23349 # Protect against being on the right side of a sed subst in config.status.
23350 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23351 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23352 s,@SHELL@,$SHELL,;t t
23353 s,@exec_prefix@,$exec_prefix,;t t
23354 s,@prefix@,$prefix,;t t
23355 s,@program_transform_name@,$program_transform_name,;t t
23356 s,@bindir@,$bindir,;t t
23357 s,@sbindir@,$sbindir,;t t
23358 s,@libexecdir@,$libexecdir,;t t
23359 s,@datarootdir@,$datarootdir,;t t
23360 s,@datadir@,$datadir,;t t
23361 s,@sysconfdir@,$sysconfdir,;t t
23362 s,@sharedstatedir@,$sharedstatedir,;t t
23363 s,@localstatedir@,$localstatedir,;t t
23364 s,@libdir@,$libdir,;t t
23365 s,@includedir@,$includedir,;t t
23366 s,@oldincludedir@,$oldincludedir,;t t
23367 s,@infodir@,$infodir,;t t
23368 s,@mandir@,$mandir,;t t
23369 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23370 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23371 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23372 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23373 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23374 s,@build_alias@,$build_alias,;t t
23375 s,@host_alias@,$host_alias,;t t
23376 s,@target_alias@,$target_alias,;t t
23377 s,@ECHO_C@,$ECHO_C,;t t
23378 s,@ECHO_N@,$ECHO_N,;t t
23379 s,@ECHO_T@,$ECHO_T,;t t
23380 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23381 s,@DEFS@,$DEFS,;t t
23382 s,@LIBS@,$LIBS,;t t
23383 s,@top_builddir@,$top_builddir,;t t
23384 s,@EGREP@,$EGREP,;t t
23385 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
23386 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
23387 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
23388 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
23389 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
23390 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
23391 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
23392 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
23393 s,@VERSION@,$VERSION,;t t
23394 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
23395 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
23396 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
23397 s,@PACKAGE@,$PACKAGE,;t t
23398 s,@build@,$build,;t t
23399 s,@build_cpu@,$build_cpu,;t t
23400 s,@build_vendor@,$build_vendor,;t t
23401 s,@build_os@,$build_os,;t t
23402 s,@host@,$host,;t t
23403 s,@host_cpu@,$host_cpu,;t t
23404 s,@host_vendor@,$host_vendor,;t t
23405 s,@host_os@,$host_os,;t t
23406 s,@target@,$target,;t t
23407 s,@target_cpu@,$target_cpu,;t t
23408 s,@target_vendor@,$target_vendor,;t t
23409 s,@target_os@,$target_os,;t t
23411 s,@CFLAGS@,$CFLAGS,;t t
23412 s,@LDFLAGS@,$LDFLAGS,;t t
23413 s,@CPPFLAGS@,$CPPFLAGS,;t t
23414 s,@ac_ct_CC@,$ac_ct_CC,;t t
23415 s,@EXEEXT@,$EXEEXT,;t t
23416 s,@OBJEXT@,$OBJEXT,;t t
23417 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
23419 s,@LDCONFIG@,$LDCONFIG,;t t
23421 s,@CXXFLAGS@,$CXXFLAGS,;t t
23422 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23424 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23425 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23426 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23427 s,@LINT@,$LINT,;t t
23428 s,@LINT_OPTS@,$LINT_OPTS,;t t
23429 s,@LN_S@,$LN_S,;t t
23430 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
23431 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
23432 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
23433 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
23434 s,@PC_MODULE_SUFFIX@,$PC_MODULE_SUFFIX,;t t
23435 s,@SET_MAKE@,$SET_MAKE,;t t
23436 s,@CTAGS@,$CTAGS,;t t
23437 s,@ETAGS@,$ETAGS,;t t
23438 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
23439 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
23440 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
23441 s,@RANLIB@,$RANLIB,;t t
23442 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23444 s,@ac_ct_LD@,$ac_ct_LD,;t t
23446 s,@ac_ct_AR@,$ac_ct_AR,;t t
23448 s,@ac_ct_NM@,$ac_ct_NM,;t t
23449 s,@ARFLAGS@,$ARFLAGS,;t t
23450 s,@DESTDIR@,$DESTDIR,;t t
23451 s,@BUILD_CC@,$BUILD_CC,;t t
23452 s,@BUILD_CPP@,$BUILD_CPP,;t t
23453 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
23454 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
23455 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
23456 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
23457 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
23458 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
23459 s,@cf_list_models@,$cf_list_models,;t t
23460 s,@ABI_VERSION@,$ABI_VERSION,;t t
23461 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
23462 s,@LIBTOOL@,$LIBTOOL,;t t
23463 s,@ac_ct_LIBTOOL@,$ac_ct_LIBTOOL,;t t
23464 s,@LT_UNDEF@,$LT_UNDEF,;t t
23465 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
23466 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
23467 s,@LIB_CREATE@,$LIB_CREATE,;t t
23468 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
23469 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
23470 s,@LIB_PREP@,$LIB_PREP,;t t
23471 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
23472 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
23473 s,@LIB_LINK@,$LIB_LINK,;t t
23474 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
23475 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
23476 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
23477 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
23478 s,@TICS_NAME@,$TICS_NAME,;t t
23479 s,@TINFO_NAME@,$TINFO_NAME,;t t
23480 s,@LIB_NAME@,$LIB_NAME,;t t
23481 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
23482 s,@CC_G_OPT@,$CC_G_OPT,;t t
23483 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
23484 s,@LD_MODEL@,$LD_MODEL,;t t
23485 s,@shlibdir@,$shlibdir,;t t
23486 s,@MAKE_DLLS@,$MAKE_DLLS,;t t
23487 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
23488 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
23489 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
23490 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
23491 s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t
23492 s,@LINK_PROGS@,$LINK_PROGS,;t t
23493 s,@LINK_TESTS@,$LINK_TESTS,;t t
23494 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
23495 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
23496 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
23497 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
23498 s,@RPATH_LIST@,$RPATH_LIST,;t t
23499 s,@EXPORT_SYMS@,$EXPORT_SYMS,;t t
23500 s,@RESULTING_SYMS@,$RESULTING_SYMS,;t t
23501 s,@VERSIONED_SYMS@,$VERSIONED_SYMS,;t t
23502 s,@WILDCARD_SYMS@,$WILDCARD_SYMS,;t t
23503 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
23504 s,@EXTRA_SUFFIX@,$EXTRA_SUFFIX,;t t
23505 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
23506 s,@NCURSES_USE_DATABASE@,$NCURSES_USE_DATABASE,;t t
23507 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
23508 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
23509 s,@XTERM_KBS@,$XTERM_KBS,;t t
23510 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
23511 s,@TERMINFO@,$TERMINFO,;t t
23512 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
23513 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
23514 s,@TERMPATH@,$TERMPATH,;t t
23515 s,@NCURSES_USE_TERMCAP@,$NCURSES_USE_TERMCAP,;t t
23516 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
23517 s,@NCURSES_WCWIDTH_GRAPHICS@,$NCURSES_WCWIDTH_GRAPHICS,;t t
23518 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
23519 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
23520 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
23521 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
23522 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
23523 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
23524 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
23525 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
23526 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
23527 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
23528 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
23529 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
23530 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
23531 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
23532 s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t
23533 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
23534 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
23535 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
23536 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
23537 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
23538 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
23539 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
23540 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
23541 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
23542 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
23543 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
23544 s,@PTHREAD@,$PTHREAD,;t t
23545 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
23546 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
23547 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
23548 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
23549 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
23550 s,@ECHO_LT@,$ECHO_LT,;t t
23551 s,@ECHO_LD@,$ECHO_LD,;t t
23552 s,@RULE_CC@,$RULE_CC,;t t
23553 s,@SHOW_CC@,$SHOW_CC,;t t
23554 s,@ECHO_CC@,$ECHO_CC,;t t
23555 s,@ECHO_LINK@,$ECHO_LINK,;t t
23556 s,@ADAFLAGS@,$ADAFLAGS,;t t
23557 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
23558 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
23559 s,@ADA_TRACE@,$ADA_TRACE,;t t
23560 s,@MATH_LIB@,$MATH_LIB,;t t
23561 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
23562 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
23563 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
23564 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
23565 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
23566 s,@TEST_LIBS@,$TEST_LIBS,;t t
23567 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
23568 s,@CXXCPP@,$CXXCPP,;t t
23569 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
23570 s,@CXX_AR@,$CXX_AR,;t t
23571 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
23572 s,@CXXLIBS@,$CXXLIBS,;t t
23573 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
23574 s,@gnat_exists@,$gnat_exists,;t t
23575 s,@M4_exists@,$M4_exists,;t t
23576 s,@cf_ada_make@,$cf_ada_make,;t t
23577 s,@GNATPREP_OPTS@,$GNATPREP_OPTS,;t t
23578 s,@cf_compile_generics@,$cf_compile_generics,;t t
23579 s,@cf_generic_objects@,$cf_generic_objects,;t t
23580 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
23581 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
23582 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
23583 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
23584 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
23585 s,@cf_ada_package@,$cf_ada_package,;t t
23586 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
23587 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
23588 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
23589 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
23590 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
23591 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
23592 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
23593 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
23594 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
23595 s,@USE_ARG_SUFFIX@,$USE_ARG_SUFFIX,;t t
23596 s,@USE_CFG_SUFFIX@,$USE_CFG_SUFFIX,;t t
23597 s,@USE_LIB_SUFFIX@,$USE_LIB_SUFFIX,;t t
23598 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
23599 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
23600 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
23601 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
23602 s,@TICS_LIBS@,$TICS_LIBS,;t t
23603 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
23604 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
23605 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
23606 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
23607 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
23608 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
23609 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
23610 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
23611 s,@includesubdir@,$includesubdir,;t t
23612 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
23613 s,@TICS_LIST@,$TICS_LIST,;t t
23614 s,@TINFO_LIST@,$TINFO_LIST,;t t
23615 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
23616 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
23617 s,@TEST_ARGS@,$TEST_ARGS,;t t
23618 s,@TEST_DEPS@,$TEST_DEPS,;t t
23619 s,@TEST_ARG2@,$TEST_ARG2,;t t
23620 s,@TEST_DEP2@,$TEST_DEP2,;t t
23621 s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t
23622 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
23623 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
23624 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
23625 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
23626 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
23627 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
23628 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
23629 s,@cross_compiling@,$cross_compiling,;t t
23630 s,@TIC_PATH@,$TIC_PATH,;t t
23631 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
23632 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
23633 s,@PANEL_NAME@,$PANEL_NAME,;t t
23634 s,@MENU_NAME@,$MENU_NAME,;t t
23635 s,@FORM_NAME@,$FORM_NAME,;t t
23636 s,@CXX_NAME@,$CXX_NAME,;t t
23637 s,@LIBTOOL_OPTS_CXX@,$LIBTOOL_OPTS_CXX,;t t
23638 s,@PKG_CFLAGS@,$PKG_CFLAGS,;t t
23639 s,@MISC_INSTALL_DATA@,$MISC_INSTALL_DATA,;t t
23640 s,@MISC_UNINSTALL_DATA@,$MISC_UNINSTALL_DATA,;t t
23641 s,@UNALTERED_SYMS@,$UNALTERED_SYMS,;t t
23642 s,@ADAGEN_LDFLAGS@,$ADAGEN_LDFLAGS,;t t
23647 cat >>$CONFIG_STATUS <<\EOF
23648 # Split the substitutions into bite-sized pieces for seds with
23649 # small command number limits, like on Digital OSF/1 and HP-UX.
23650 ac_max_sed_lines=48
23651 ac_sed_frag=1 # Number of current file.
23652 ac_beg=1 # First line for current file.
23653 ac_end=$ac_max_sed_lines # Line after last line for current file.
23656 while $ac_more_lines; do
23657 if test $ac_beg -gt 1; then
23658 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23660 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23662 if test ! -s $tmp/subs.frag; then
23663 ac_more_lines=false
23665 # The purpose of the label and of the branching condition is to
23666 # speed up the sed processing (if there are no `@' at all, there
23667 # is no need to browse any of the substitutions).
23668 # These are the two extra sed commands mentioned above.
23670 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23671 # It is possible to make a multiline substitution using escaped newlines.
23672 # Ensure that we do not split the substitution between script fragments.
23674 ac_END=`expr $ac_end + $ac_max_sed_lines`
23675 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
23676 if test -s $tmp/subs.next; then
23677 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
23678 if test ! -s $tmp/subs.edit; then
23679 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
23680 if test ! -s $tmp/subs.edit; then
23681 if test $ac_beg -gt 1; then
23682 ac_end=`expr $ac_end - 1`
23689 if test -z "$ac_sed_cmds"; then
23690 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
23692 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
23694 ac_sed_frag=`expr $ac_sed_frag + 1`
23696 ac_end=`expr $ac_end + $ac_max_sed_lines`
23699 if test -z "$ac_sed_cmds"; then
23702 fi # test -n "$CONFIG_FILES"
23705 cat >>$CONFIG_STATUS <<\EOF
23706 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23707 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23709 - | *:- | *:-:* ) # input from stdin
23711 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23712 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23713 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23714 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23715 * ) ac_file_in=$ac_file.in ;;
23718 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23719 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23720 X"$ac_file" : 'X\(//\)[^/]' \| \
23721 X"$ac_file" : 'X\(//\)$' \| \
23722 X"$ac_file" : 'X\(/\)' \| \
23723 . : '\(.\)' 2>/dev/null ||
23725 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23726 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23727 /^X\(\/\/\)$/{ s//\1/; q; }
23728 /^X\(\/\).*/{ s//\1/; q; }
23730 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23731 { case "$ac_dir" in
23732 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
23736 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
23737 case $as_mkdir_dir in
23738 # Skip DOS drivespec
23739 ?:) as_incr_dir=$as_mkdir_dir ;;
23741 as_incr_dir=$as_incr_dir/$as_mkdir_dir
23742 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
23747 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
23748 # A "../" for each directory in $ac_dir_suffix.
23749 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
23751 ac_dir_suffix= ac_dots=
23756 if test -z "$ac_dots"; then
23759 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
23761 [\\/]* | ?:[\\/]* )
23762 ac_srcdir=$srcdir$ac_dir_suffix;
23763 ac_top_srcdir=$srcdir ;;
23764 *) # Relative path.
23765 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
23766 ac_top_srcdir=$ac_dots$srcdir ;;
23770 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23771 *) ac_INSTALL=$ac_dots$INSTALL ;;
23774 if test x"$ac_file" != x-; then
23775 { echo "$as_me:23775: creating $ac_file" >&5
23776 echo "$as_me: creating $ac_file" >&6;}
23779 # Let's still pretend it is `configure' which instantiates (i.e., don't
23780 # use $as_me), people would be surprised to read:
23781 # /* config.h. Generated automatically by config.status. */
23782 configure_input="Generated automatically from `echo $ac_file_in |
23783 sed 's,.*/,,'` by configure."
23785 # First look for the input files in the build tree, otherwise in the
23787 ac_file_inputs=`IFS=:
23788 for f in $ac_file_in; do
23790 -) echo $tmp/stdin ;;
23792 # Absolute (can't be DOS-style, as IFS=:)
23793 test -f "$f" || { { echo "$as_me:23793: error: cannot find input file: $f" >&5
23794 echo "$as_me: error: cannot find input file: $f" >&2;}
23795 { (exit 1); exit 1; }; }
23798 if test -f "$f"; then
23801 elif test -f "$srcdir/$f"; then
23806 { { echo "$as_me:23806: error: cannot find input file: $f" >&5
23807 echo "$as_me: error: cannot find input file: $f" >&2;}
23808 { (exit 1); exit 1; }; }
23811 done` || { (exit 1); exit 1; }
23813 cat >>$CONFIG_STATUS <<\EOF
23814 ac_warn_datarootdir=no
23815 if test x"$ac_file" != x-; then
23816 for ac_item in $ac_file_inputs
23818 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
23819 if test -n "$ac_seen"; then
23820 ac_used=`grep '@datarootdir@' $ac_item`
23821 if test -z "$ac_used"; then
23822 { echo "$as_me:23822: WARNING: datarootdir was used implicitly but not set:
23824 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
23826 ac_warn_datarootdir=yes
23829 ac_seen=`grep '${datarootdir}' $ac_item`
23830 if test -n "$ac_seen"; then
23831 { echo "$as_me:23831: WARNING: datarootdir was used explicitly but not set:
23833 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
23835 ac_warn_datarootdir=yes
23840 if test "x$ac_warn_datarootdir" = xyes; then
23841 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
23845 cat >>$CONFIG_STATUS <<EOF
23849 cat >>$CONFIG_STATUS <<\EOF
23851 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23852 s,@configure_input@,$configure_input,;t t
23853 s,@srcdir@,$ac_srcdir,;t t
23854 s,@top_srcdir@,$ac_top_srcdir,;t t
23855 s,@INSTALL@,$ac_INSTALL,;t t
23856 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23858 if test x"$ac_file" != x-; then
23859 cp $tmp/out $ac_file
23861 for ac_name in prefix exec_prefix datarootdir
23863 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
23864 if test -n "$ac_seen"; then
23865 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
23866 if test -z "$ac_init"; then
23867 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
23868 { echo "$as_me:23868: WARNING: Variable $ac_name is used but was not set:
23870 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
23875 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
23876 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
23877 if test -s $tmp/out; then
23878 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
23879 { echo "$as_me:23879: WARNING: Some variables may not be substituted:
23881 echo "$as_me: WARNING: Some variables may not be substituted:
23891 cat >>$CONFIG_STATUS <<\EOF
23894 # CONFIG_HEADER section.
23897 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23898 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23900 # ac_d sets the value in "#define NAME VALUE" lines.
23901 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23902 ac_dB='[ ].*$,\1#\2'
23905 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
23906 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23907 ac_iB='\([ ]\),\1#\2define\3'
23910 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23911 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23912 ac_uB='$,\1#\2define\3'
23916 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23917 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23919 - | *:- | *:-:* ) # input from stdin
23921 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23922 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23923 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23924 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23925 * ) ac_file_in=$ac_file.in ;;
23928 test x"$ac_file" != x- && { echo "$as_me:23928: creating $ac_file" >&5
23929 echo "$as_me: creating $ac_file" >&6;}
23931 # First look for the input files in the build tree, otherwise in the
23933 ac_file_inputs=`IFS=:
23934 for f in $ac_file_in; do
23936 -) echo $tmp/stdin ;;
23938 # Absolute (can't be DOS-style, as IFS=:)
23939 test -f "$f" || { { echo "$as_me:23939: error: cannot find input file: $f" >&5
23940 echo "$as_me: error: cannot find input file: $f" >&2;}
23941 { (exit 1); exit 1; }; }
23944 if test -f "$f"; then
23947 elif test -f "$srcdir/$f"; then
23952 { { echo "$as_me:23952: error: cannot find input file: $f" >&5
23953 echo "$as_me: error: cannot find input file: $f" >&2;}
23954 { (exit 1); exit 1; }; }
23957 done` || { (exit 1); exit 1; }
23958 # Remove the trailing spaces.
23959 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23963 # Transform confdefs.h into a list of #define's. We won't use it as a sed
23964 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
23965 # be either 'cat' or 'sort'.
23966 cat confdefs.h | uniq >conftest.vals
23968 # Break up conftest.vals because some shells have a limit on
23969 # the size of here documents, and old seds have small limits too.
23971 rm -f conftest.tail
23972 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
23973 while grep . conftest.vals >/dev/null
23975 # Write chunks of a limited-size here document to conftest.frag.
23976 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
23977 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
23978 echo 'CEOF' >> $CONFIG_STATUS
23979 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
23980 rm -f conftest.vals
23981 mv conftest.tail conftest.vals
23983 rm -f conftest.vals
23985 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
23987 echo ' cat >> conftest.edit <<CEOF
23988 /@DEFS@/r conftest.frag
23991 sed -f conftest.edit $tmp/in > $tmp/out
23993 mv $tmp/out $tmp/in
23994 rm -f conftest.edit conftest.frag
23995 ' >> $CONFIG_STATUS
23997 cat >>$CONFIG_STATUS <<\EOF
23998 # Let's still pretend it is `configure' which instantiates (i.e., don't
23999 # use $as_me), people would be surprised to read:
24000 # /* config.h. Generated automatically by config.status. */
24001 if test x"$ac_file" = x-; then
24002 echo "/* Generated automatically by configure. */" >$tmp/config.h
24004 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
24006 cat $tmp/in >>$tmp/config.h
24008 if test x"$ac_file" != x-; then
24009 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
24010 { echo "$as_me:24010: $ac_file is unchanged" >&5
24011 echo "$as_me: $ac_file is unchanged" >&6;}
24013 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24014 X"$ac_file" : 'X\(//\)[^/]' \| \
24015 X"$ac_file" : 'X\(//\)$' \| \
24016 X"$ac_file" : 'X\(/\)' \| \
24017 . : '\(.\)' 2>/dev/null ||
24019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24020 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24021 /^X\(\/\/\)$/{ s//\1/; q; }
24022 /^X\(\/\).*/{ s//\1/; q; }
24024 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24025 { case "$ac_dir" in
24026 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
24030 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
24031 case $as_mkdir_dir in
24032 # Skip DOS drivespec
24033 ?:) as_incr_dir=$as_mkdir_dir ;;
24035 as_incr_dir=$as_incr_dir/$as_mkdir_dir
24036 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
24043 mv $tmp/config.h $ac_file
24047 rm -f $tmp/config.h
24051 cat >>$CONFIG_STATUS <<\EOF
24053 # CONFIG_COMMANDS section.
24055 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24056 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24057 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24061 if test "x$cf_with_tests" != xno ; then
24065 if test ! -d $srcdir/$cf_dir; then
24067 elif test -f $srcdir/$cf_dir/programs; then
24068 $AWK -f $srcdir/test/mk-test.awk INSTALL=no ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
24074 cf_prefix=$LIB_PREFIX
24076 case $cf_cv_shlib_version in
24077 (cygdll|msysdll|mingw)
24078 TINFO_NAME=$TINFO_ARG_SUFFIX
24083 if test -n "$TINFO_SUFFIX" ; then
24084 case $TINFO_SUFFIX in
24086 TINFO_NAME="${TINFO_NAME}tw${EXTRA_SUFFIX}"
24087 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^tw'$EXTRA_SUFFIX'//'`
24090 TINFO_NAME="${TINFO_NAME}t${EXTRA_SUFFIX}"
24091 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^t'$EXTRA_SUFFIX'//'`
24094 TINFO_NAME="${TINFO_NAME}w${EXTRA_SUFFIX}"
24095 TINFO_SUFFIX=`echo $TINFO_SUFFIX | sed 's/^w'$EXTRA_SUFFIX'//'`
24100 for cf_dir in $SRC_SUBDIRS
24102 if test ! -d $srcdir/$cf_dir ; then
24104 elif test -f $srcdir/$cf_dir/modules; then
24109 if test -n "${cf_cv_abi_version}" && test "x${cf_cv_abi_version}" != "x5"
24111 cf_awk_program="$cf_awk_program\
24112 /deprecated in ABI${cf_cv_abi_version}/ { next; }\
24113 { sub(\"NCURSES([WT]+)?\", \"&${cf_cv_abi_version}\"); }\
24117 if test "x$WILDCARD_SYMS" = xno
24119 cf_awk_program="$cf_awk_program\
24120 /[ ]_\\*;/ { skip=1; next; }\
24124 if test "x$cf_awk_program" != "x"
24126 cat >>$cf_dir/Makefile <<CF_EOF
24128 # Generated by CF_LIB_RULES
24129 resulting.map: $UNALTERED_SYMS
24130 $AWK 'BEGIN { skip = 1; last=""; } \
24132 { if ( last != "" && ( skip == 0 || \$\$0 !~ /}/ ) ) { print last; }\
24133 skip = 0; last = \$\$0; } \
24134 END { print last; }' < $UNALTERED_SYMS >\$@
24137 rm -f resulting.map
24141 for cf_item in $cf_LIST_MODELS
24147 cf_depsuf=$cf_suffix
24151 cf_depsuf=$cf_suffix
24155 cf_depsuf=$cf_suffix
24158 case $cf_cv_system_name in
24161 cf_depsuf=$cf_suffix
24163 (cygwin*|msys*|mingw*)
24169 cf_depsuf=$cf_suffix
24175 cf_depsuf=$cf_suffix
24179 cf_depsuf=$cf_suffix
24185 cf_depsuf=$cf_suffix
24191 cf_depsuf=$cf_suffix
24194 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
24196 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
24197 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
24201 test "$cf_dir" = c++ && cf_libname=ncurses++
24202 if test $cf_item = shared ; then
24203 if test -n "${LIB_SUFFIX}"
24205 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
24207 cf_shared_suffix="$cf_suffix"
24209 if test "$cf_cv_do_symlinks" = yes ; then
24212 case "$cf_cv_shlib_version" in
24214 cf_version_name=REL_VERSION
24217 cf_version_name=ABI_VERSION
24221 if test -n "$cf_version_name"
24223 case "$cf_cv_system_name" in
24226 cf_suffix="${USE_LIB_SUFFIX}"'.${'$cf_version_name'}'"$cf_shared_suffix"
24229 cf_suffix="$cf_suffix"'.${'$cf_version_name'}'
24233 if test -n "${USE_LIB_SUFFIX}"
24235 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
24237 cf_shared_suffix="$cf_suffix"
24240 # cygwin needs import library, and has unique naming convention
24241 # use autodetected ${cf_prefix} for import lib and static lib, but
24242 # use 'cyg' prefix for shared lib.
24243 case $cf_cv_shlib_version in
24245 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
24246 cf_add_lib="../lib/cyg${cf_libname}${cf_cygsuf}"
24249 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
24250 cf_add_lib="../lib/msys-${cf_libname}${cf_cygsuf}"
24253 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
24254 cf_add_lib="../lib/lib${cf_libname}${cf_cygsuf}"
24260 if test -n "$cf_add_lib"
24262 Libs_To_Make="$Libs_To_Make $cf_add_lib"
24266 cf_add_lib="../lib/${cf_prefix}${cf_libname}${cf_suffix}"
24267 Libs_To_Make="$Libs_To_Make $cf_add_lib"
24270 if test $cf_dir = ncurses ; then
24271 cf_subsets="$LIB_SUBSETS"
24272 cf_r_parts="$cf_subsets"
24273 cf_liblist="$Libs_To_Make"
24275 while test -n "$cf_r_parts"
24277 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
24278 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
24279 if test "$cf_l_parts" != "$cf_r_parts" ; then
24281 case $cf_l_parts in
24283 cf_add_lib=`echo $cf_liblist |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
24286 cf_add_lib=`echo $cf_liblist |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
24292 if test -n "$cf_add_lib"; then
24293 Libs_To_Make="$cf_add_lib $Libs_To_Make"
24300 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
24303 if test $cf_dir = c++; then
24304 if test "x$with_shared_cxx" != xyes && test -n "$cf_shared_suffix"; then
24306 for cf_item in $Libs_To_Make
24312 cf_item=`echo "$cf_item" | sed -e "s,"$cf_shared_suffix",.a,"`
24315 for cf_test in $cf_list
24317 if test "$cf_test" = "$cf_item"
24319 cf_LIST_MODELS=`echo "$cf_LIST_MODELS" | sed -e 's/normal//'`
24324 test -n "$cf_item" && cf_list="$cf_list $cf_item"
24326 Libs_To_Make="$cf_list"
24330 sed -e "s%@Libs_To_Make@%$Libs_To_Make%" \
24331 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
24332 $cf_dir/Makefile >$cf_dir/Makefile.out
24333 mv $cf_dir/Makefile.out $cf_dir/Makefile
24335 $AWK -f $srcdir/mk-0th.awk \
24336 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" ticlib="$TICS_LIB_SUFFIX" termlib="$TINFO_LIB_SUFFIX" \
24337 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
24339 for cf_subset in $cf_subsets
24342 for cf_item in $cf_LIST_MODELS
24345 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
24347 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
24350 if test "$CXX_MODEL" = SHARED; then
24351 case $cf_cv_shlib_version in
24352 (cygdll|msysdll|mingw)
24353 test "x$with_shared_cxx" = xno && test -n "$verbose" && echo " overriding CXX_MODEL to SHARED" 1>&6
24355 echo "${as_me:-configure}:24355: testing overriding CXX_MODEL to SHARED ..." 1>&5
24357 with_shared_cxx=yes
24360 test "x$with_shared_cxx" = xno && CXX_MODEL=NORMAL
24368 cf_depsuf=$cf_suffix
24372 cf_depsuf=$cf_suffix
24376 cf_depsuf=$cf_suffix
24379 case $cf_cv_system_name in
24382 cf_depsuf=$cf_suffix
24384 (cygwin*|msys*|mingw*)
24390 cf_depsuf=$cf_suffix
24396 cf_depsuf=$cf_suffix
24400 cf_depsuf=$cf_suffix
24406 cf_depsuf=$cf_suffix
24412 cf_depsuf=$cf_suffix
24415 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
24417 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
24418 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
24422 (libtool) cf_subdir='obj_lo' ;;
24423 (normal) cf_subdir='objects' ;;
24424 (debug) cf_subdir='obj_g' ;;
24425 (profile) cf_subdir='obj_p' ;;
24427 case $cf_cv_system_name in
24429 cf_subdir='objects' ;;
24431 cf_subdir='obj_s' ;;
24435 # Test for case where we build libtinfo with a different name.
24437 if test $cf_dir = ncurses ; then
24440 cf_libname=${cf_libname}$USE_LIB_SUFFIX
24443 cf_libname=$TINFO_LIB_SUFFIX
24446 cf_libname=$TICS_LIB_SUFFIX
24449 elif test $cf_dir = c++ ; then
24450 cf_libname=ncurses++$USE_LIB_SUFFIX
24452 cf_libname=${cf_libname}$USE_LIB_SUFFIX
24454 if test -n "${USE_ARG_SUFFIX}" ; then
24455 # undo $USE_LIB_SUFFIX add-on in CF_LIB_SUFFIX
24456 cf_suffix=`echo $cf_suffix |sed -e "s%^${USE_LIB_SUFFIX}%%"`
24459 # These dependencies really are for development, not
24460 # builds, but they are useful in porting, too.
24461 cf_depend="../include/ncurses_cfg.h"
24462 if test "$srcdir" = "."; then
24465 cf_reldir="\${srcdir}"
24468 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
24469 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
24470 elif test -f $srcdir/$cf_dir/curses.priv.h; then
24471 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
24475 old_cf_suffix="$cf_suffix"
24476 if test "$cf_cv_shlib_version_infix" = yes ; then
24477 if test -n "$USE_LIB_SUFFIX" ; then
24478 case $USE_LIB_SUFFIX in
24480 cf_libname=`echo $cf_libname | sed 's/tw'$EXTRA_SUFFIX'$//'`
24481 cf_suffix=`echo $cf_suffix | sed 's/^tw'$EXTRA_SUFFIX'//'`
24482 cf_dir_suffix=tw$EXTRA_SUFFIX
24485 cf_libname=`echo $cf_libname | sed 's/t'$EXTRA_SUFFIX'$//'`
24486 cf_suffix=`echo $cf_suffix | sed 's/^t'$EXTRA_SUFFIX'//'`
24487 cf_dir_suffix=t$EXTRA_SUFFIX
24490 cf_libname=`echo $cf_libname | sed 's/w'$EXTRA_SUFFIX'$//'`
24491 cf_suffix=`echo $cf_suffix | sed 's/^w'$EXTRA_SUFFIX'//'`
24492 cf_dir_suffix=w$EXTRA_SUFFIX
24495 cf_libname=`echo $cf_libname | sed 's/'$EXTRA_SUFFIX'$//'`
24496 cf_suffix=`echo $cf_suffix | sed 's/^'$EXTRA_SUFFIX'//'`
24497 cf_dir_suffix=$EXTRA_SUFFIX
24503 $AWK -f $srcdir/mk-1st.awk \
24504 name=${cf_libname}${cf_dir_suffix} \
24505 traces=$LIB_TRACING \
24507 CXX_MODEL=$CXX_MODEL \
24509 prefix=$cf_prefix \
24510 suffix=$cf_suffix \
24511 subset=$cf_subset \
24512 driver=$cf_cv_term_driver \
24514 TermlibRoot=$TINFO_NAME \
24515 TermlibSuffix=$TINFO_SUFFIX \
24516 ShlibVer=$cf_cv_shlib_version \
24517 ShlibVerInfix=$cf_cv_shlib_version_infix \
24518 ReLink=${cf_cv_do_relink:-no} \
24519 DoLinks=$cf_cv_do_symlinks \
24520 rmSoLocs=$cf_cv_rm_so_locs \
24521 ldconfig="$LDCONFIG" \
24522 overwrite=$WITH_OVERWRITE \
24523 depend="$cf_depend" \
24525 libtool_version="$LIBTOOL_VERSION" \
24526 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
24528 cf_suffix="$old_cf_suffix"
24530 for cf_subdir2 in $cf_subdirs lib
24532 test $cf_subdir = $cf_subdir2 && break
24534 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
24535 $AWK -f $srcdir/mk-2nd.awk \
24537 traces=$LIB_TRACING \
24540 subset=$cf_subset \
24543 crenames=$cf_cv_prog_CC_c_o \
24544 cxxrenames=$cf_cv_prog_CXX_c_o \
24545 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
24546 cf_subdirs="$cf_subdirs $cf_subdir"
24551 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >>Makefile
24554 for cf_dir in $SRC_SUBDIRS
24556 if test ! -d $srcdir/$cf_dir ; then
24560 if test -f $cf_dir/Makefile ; then
24563 echo 'libs \' >> Makefile
24564 echo 'install.libs \' >> Makefile
24565 echo 'uninstall.libs ::' >> Makefile
24566 echo ' cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@' >> Makefile
24571 if test -f $srcdir/$cf_dir/modules; then
24573 if test -f $srcdir/$cf_dir/headers; then
24574 cat >> Makefile <<CF_EOF
24575 install.includes \\
24576 uninstall.includes \\
24579 if test "$cf_dir" != "c++" ; then
24580 echo 'lint \' >> Makefile
24582 cat >> Makefile <<CF_EOF
24588 uninstall.$cf_dir ::
24589 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
24591 elif test -f $srcdir/$cf_dir/headers; then
24592 cat >> Makefile <<CF_EOF
24597 install.includes \\
24598 uninstall.includes ::
24599 cd $cf_dir && \${MAKE} \${TOP_MFLAGS} \$@
24604 if test "x$cf_with_db_install" = xyes; then
24605 cat >> Makefile <<CF_EOF
24607 install.libs uninstall.libs \\
24608 install.data uninstall.data ::
24609 $MAKE_TERMINFO cd misc && \${MAKE} \${TOP_MFLAGS} \$@
24612 cat >> Makefile <<CF_EOF
24614 install.libs uninstall.libs ::
24615 cd misc && \${MAKE} \${TOP_MFLAGS} \$@
24619 if test "x$cf_with_manpages" = xyes; then
24620 cat >> Makefile <<CF_EOF
24624 cd man && \${MAKE} \${TOP_MFLAGS} \$@
24628 cat >> Makefile <<CF_EOF
24631 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
24632 rm -f headers.sh headers.sed mk_shared_lib.sh
24633 rm -f edit_man.* man_alias.*
24634 rm -rf \${DIRS_TO_MAKE}
24637 # Special case: tack's manpage lives in its own directory.
24638 if test "x$cf_with_manpages" = xyes; then
24639 if test -d tack ; then
24640 if test -f $srcdir/$tack.h; then
24641 cat >> Makefile <<CF_EOF
24645 cd tack && \${MAKE} \${TOP_MFLAGS} \$@
24651 rm -f headers.sed headers.sh
24653 echo creating headers.sh
24654 cat >headers.sh <<CF_EOF
24656 # This shell script is generated by the 'configure' script. It is invoked in a
24657 # subdirectory of the build tree. It generates a sed-script in the parent
24658 # directory that is used to adjust includes for header files that reside in a
24659 # subdirectory of /usr/include, etc.
24661 while test \$# != 3
24663 PRG="\$PRG \$1"; shift
24668 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
24669 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
24670 echo installing \$SRC in \$DST
24673 if test $WITH_CURSES_H = yes; then
24674 cat >>headers.sh <<CF_EOF
24677 END=\`basename \$DST\`
24678 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
24680 NAME=\`basename \$i\`
24681 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
24685 echo "" >> \$TMPSED
24691 cat >>headers.sh <<CF_EOF
24694 END=\`basename \$DST\`
24695 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
24697 NAME=\`basename \$i\`
24698 if test "\$NAME" = "curses.h"
24700 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
24703 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
24707 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
24712 cat >>headers.sh <<CF_EOF
24714 sed -f \$TMPSED \$SRC > \$TMPSRC
24715 NAME=\`basename \$SRC\`
24717 if test $WITH_CURSES_H != yes; then
24718 cat >>headers.sh <<CF_EOF
24719 test "\$NAME" = "curses.h" && NAME=ncurses.h
24722 cat >>headers.sh <<CF_EOF
24723 # Just in case someone gzip'd manpages, remove the conflicting copy.
24724 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
24726 eval \$PRG \$TMPSRC \$DST/\$NAME
24727 rm -f \$TMPSRC \$TMPSED
24730 chmod 0755 headers.sh
24732 for cf_dir in $SRC_SUBDIRS
24734 if test ! -d $srcdir/$cf_dir ; then
24738 if test -f $srcdir/$cf_dir/headers; then
24739 $AWK -f $srcdir/mk-hdr.awk \
24740 subset="$LIB_SUBSETS" \
24741 compat="$WITH_CURSES_H" \
24742 $srcdir/$cf_dir/headers >>$cf_dir/Makefile
24745 if test -f $srcdir/$cf_dir/modules; then
24746 if test "$cf_dir" != "c++" ; then
24747 cat >>$cf_dir/Makefile <<"CF_EOF"
24748 depend : ${AUTO_SRC}
24749 makedepend -- ${CPPFLAGS} -- ${C_SRC}
24751 # DO NOT DELETE THIS LINE -- make depend depends on it.
24757 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
24758 if test -z "$USE_OLD_MAKERULES" ; then
24759 $AWK -f $srcdir/Ada95/mk-1st.awk <$srcdir/Ada95/src/modules >>Ada95/src/Makefile
24767 cat >>$CONFIG_STATUS <<\EOF
24769 { (exit 0); exit 0; }
24771 chmod +x $CONFIG_STATUS
24772 ac_clean_files=$ac_clean_files_save
24774 # configure is writing to config.log, and then calls config.status.
24775 # config.status does its own redirection, appending to config.log.
24776 # Unfortunately, on DOS this fails, as config.log is still kept open
24777 # by configure, so config.status won't be able to write to it; its
24778 # output is simply discarded. So we exec the FD to /dev/null,
24779 # effectively closing config.log, so it can be properly (re)opened and
24780 # appended to by config.status. When coming back to configure, we
24781 # need to make the FD available again.
24782 if test "$no_create" != yes; then
24785 $SHELL $CONFIG_STATUS || ac_cs_success=false
24787 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24788 # would make configure fail if this is the last instruction.
24789 $ac_cs_success || { (exit 1); exit 1; }
24791 ${MAKE:-make} preinstall