2 # From configure.in Revision: 1.764 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20230114.
6 # Copyright 2003-2022,2023 Thomas E. Dickey
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Avoid depending upon Character Ranges.
13 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16 as_cr_digits='0123456789'
17 as_cr_alnum=$as_cr_Letters$as_cr_digits
19 # Sed expression to map a string onto a valid variable name.
20 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22 # Sed expression to map a string onto a valid CPP name.
23 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
25 # Be Bourne compatible
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
33 # Name of the executable.
34 as_me=`echo "$0" |sed 's,.*[\\/],,'`
36 if expr a : '\(a\)' >/dev/null 2>&1; then
42 rm -f conf$$ conf$$.exe conf$$.file
44 if ln -s conf$$.file conf$$ 2>/dev/null; then
45 # We could just check for DJGPP; but this test a) works b) is more generic
46 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
47 if test -f conf$$.exe; then
48 # Don't use ln at all; we don't have any links
53 elif ln conf$$.file conf$$ 2>/dev/null; then
58 rm -f conf$$ conf$$.exe conf$$.file
60 as_executable_p="test -f"
62 # Support unset when possible.
63 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
70 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
71 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
72 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
73 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
74 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
75 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
76 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
77 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
80 # We need space, tab and new line, in precisely that order.
86 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
89 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
90 # so uname gets run too.
91 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
98 ac_default_prefix=/usr/local
103 SHELL=${CONFIG_SHELL-/bin/sh}
105 # Maximum number of lines to put in a shell here document.
106 # This variable seems obsolete. It should probably be removed, and
107 # only ac_max_sed_lines should be used.
108 : "${ac_max_here_lines=38}"
110 ac_unique_file="ncurses/base/lib_initscr.c"
111 # Factoring default headers for most tests.
112 ac_includes_default="\
115 # include <sys/types.h>
118 # include <sys/stat.h>
129 # if !STDC_HEADERS && HAVE_MEMORY_H
135 # include <strings.h>
138 # include <inttypes.h>
148 # Initialize some variables set by options.
150 ac_init_version=false
151 # The variables have the same names as the options, with
152 # dashes changed to underlines.
160 program_transform_name=s,x,x,
168 # Installation directory options.
169 # These are left unexpanded so users can "make install exec_prefix=/foo"
170 # and all the variables that are supposed to be based on exec_prefix
171 # by default will actually change.
172 # Use braces instead of parens because sh, perl, etc. also accept them.
173 bindir='${exec_prefix}/bin'
174 sbindir='${exec_prefix}/sbin'
175 libexecdir='${exec_prefix}/libexec'
176 datarootdir='${prefix}/share'
177 datadir='${datarootdir}'
178 sysconfdir='${prefix}/etc'
179 sharedstatedir='${prefix}/com'
180 localstatedir='${prefix}/var'
181 runstatedir='${localstatedir}/run'
182 libdir='${exec_prefix}/lib'
183 includedir='${prefix}/include'
184 oldincludedir='/usr/include'
185 infodir='${datarootdir}/info'
186 mandir='${datarootdir}/man'
188 # Identity of this package.
198 # If the previous option needs an argument, assign it.
199 if test -n "$ac_prev"; then
200 eval "$ac_prev=\$ac_option"
205 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
207 # Accept the important Cygnus configure options, so we can diagnose typos.
211 -bindir | --bindir | --bindi | --bind | --bin | --bi)
213 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
216 -build | --build | --buil | --bui | --bu)
217 ac_prev=build_alias ;;
218 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
219 build_alias=$ac_optarg ;;
221 -cache-file | --cache-file | --cache-fil | --cache-fi \
222 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
223 ac_prev=cache_file ;;
224 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
225 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
226 cache_file=$ac_optarg ;;
229 cache_file=config.cache ;;
231 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
233 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
235 datadir=$ac_optarg ;;
237 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
238 | --dataroo | --dataro | --datar)
239 ac_prev=datarootdir ;;
240 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
241 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
242 datarootdir=$ac_optarg ;;
244 -disable-* | --disable-*)
245 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
246 # Reject names that are not valid shell variable names.
247 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
248 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
249 { (exit 1); exit 1; }; }
250 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'`
251 eval "enable_$ac_feature=no" ;;
253 -enable-* | --enable-*)
254 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
255 # Reject names that are not valid shell variable names.
256 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
257 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
258 { (exit 1); exit 1; }; }
259 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'`
261 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
264 eval "enable_$ac_feature='$ac_optarg'" ;;
266 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
267 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
268 | --exec | --exe | --ex)
269 ac_prev=exec_prefix ;;
270 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
271 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
272 | --exec=* | --exe=* | --ex=*)
273 exec_prefix=$ac_optarg ;;
275 -gas | --gas | --ga | --g)
276 # Obsolete; use --with-gas.
279 -help | --help | --hel | --he | -h)
281 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
282 ac_init_help=recursive ;;
283 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
284 ac_init_help=short ;;
286 -host | --host | --hos | --ho)
287 ac_prev=host_alias ;;
288 -host=* | --host=* | --hos=* | --ho=*)
289 host_alias=$ac_optarg ;;
291 -includedir | --includedir | --includedi | --included | --include \
292 | --includ | --inclu | --incl | --inc)
293 ac_prev=includedir ;;
294 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
295 | --includ=* | --inclu=* | --incl=* | --inc=*)
296 includedir=$ac_optarg ;;
298 -infodir | --infodir | --infodi | --infod | --info | --inf)
300 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
301 infodir=$ac_optarg ;;
303 -libdir | --libdir | --libdi | --libd)
305 -libdir=* | --libdir=* | --libdi=* | --libd=*)
308 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
309 | --libexe | --libex | --libe)
310 ac_prev=libexecdir ;;
311 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
312 | --libexe=* | --libex=* | --libe=*)
313 libexecdir=$ac_optarg ;;
315 -localstatedir | --localstatedir | --localstatedi | --localstated \
316 | --localstate | --localstat | --localsta | --localst \
317 | --locals | --local | --loca | --loc | --lo)
318 ac_prev=localstatedir ;;
319 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
320 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
321 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
322 localstatedir=$ac_optarg ;;
324 -runstatedir | --runstatedir | --runstatedi | --runstated \
325 | --runstate | --runstat | --runsta | --runst \
326 | --runs | --run | --ru)
327 ac_prev=runstatedir ;;
328 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
329 | --runstate=* | --runstat=* | --runsta=* | --runst=* \
330 | --runs=* | --run=* | --ru=*)
331 runstatedir=$ac_optarg ;;
333 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
335 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
339 # Obsolete; use --without-fp.
342 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
346 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
347 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
350 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
351 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
352 | --oldin | --oldi | --old | --ol | --o)
353 ac_prev=oldincludedir ;;
354 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
355 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
356 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
357 oldincludedir=$ac_optarg ;;
359 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
361 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
364 -program-prefix | --program-prefix | --program-prefi | --program-pref \
365 | --program-pre | --program-pr | --program-p)
366 ac_prev=program_prefix ;;
367 -program-prefix=* | --program-prefix=* | --program-prefi=* \
368 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
369 program_prefix=$ac_optarg ;;
371 -program-suffix | --program-suffix | --program-suffi | --program-suff \
372 | --program-suf | --program-su | --program-s)
373 ac_prev=program_suffix ;;
374 -program-suffix=* | --program-suffix=* | --program-suffi=* \
375 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
376 program_suffix=$ac_optarg ;;
378 -program-transform-name | --program-transform-name \
379 | --program-transform-nam | --program-transform-na \
380 | --program-transform-n | --program-transform- \
381 | --program-transform | --program-transfor \
382 | --program-transfo | --program-transf \
383 | --program-trans | --program-tran \
384 | --progr-tra | --program-tr | --program-t)
385 ac_prev=program_transform_name ;;
386 -program-transform-name=* | --program-transform-name=* \
387 | --program-transform-nam=* | --program-transform-na=* \
388 | --program-transform-n=* | --program-transform-=* \
389 | --program-transform=* | --program-transfor=* \
390 | --program-transfo=* | --program-transf=* \
391 | --program-trans=* | --program-tran=* \
392 | --progr-tra=* | --program-tr=* | --program-t=*)
393 program_transform_name=$ac_optarg ;;
395 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
396 | -silent | --silent | --silen | --sile | --sil)
399 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
401 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
403 sbindir=$ac_optarg ;;
405 -sharedstatedir | --sharedstatedir | --sharedstatedi \
406 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
407 | --sharedst | --shareds | --shared | --share | --shar \
409 ac_prev=sharedstatedir ;;
410 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
411 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
412 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
414 sharedstatedir=$ac_optarg ;;
416 -site | --site | --sit)
418 -site=* | --site=* | --sit=*)
421 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
423 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
426 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
427 | --syscon | --sysco | --sysc | --sys | --sy)
428 ac_prev=sysconfdir ;;
429 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
430 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
431 sysconfdir=$ac_optarg ;;
433 -target | --target | --targe | --targ | --tar | --ta | --t)
434 ac_prev=target_alias ;;
435 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
436 target_alias=$ac_optarg ;;
438 -v | -verbose | --verbose | --verbos | --verbo | --verb)
441 -version | --version | --versio | --versi | --vers | -V)
445 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
446 # Reject names that are not valid shell variable names.
447 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
448 { echo "$as_me: error: invalid package name: $ac_package" >&2
449 { (exit 1); exit 1; }; }
450 ac_package=`echo "$ac_package" | sed 's/-/_/g'`
452 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
455 eval "with_$ac_package='$ac_optarg'" ;;
457 -without-* | --without-*)
458 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
459 # Reject names that are not valid shell variable names.
460 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
461 { echo "$as_me: error: invalid package name: $ac_package" >&2
462 { (exit 1); exit 1; }; }
463 ac_package=`echo "$ac_package" | sed 's/-/_/g'`
464 eval "with_$ac_package=no" ;;
467 # Obsolete; use --with-x.
470 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
471 | --x-incl | --x-inc | --x-in | --x-i)
472 ac_prev=x_includes ;;
473 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
474 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
475 x_includes=$ac_optarg ;;
477 -x-libraries | --x-libraries | --x-librarie | --x-librari \
478 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
479 ac_prev=x_libraries ;;
480 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
481 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
482 x_libraries=$ac_optarg ;;
484 -*) { echo "$as_me: error: unrecognized option: $ac_option
485 Try \`$0 --help' for more information." >&2
486 { (exit 1); exit 1; }; }
490 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
491 # Reject names that are not valid shell variable names.
492 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
493 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
494 { (exit 1); exit 1; }; }
495 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
496 eval "$ac_envvar='$ac_optarg'"
497 export "$ac_envvar" ;;
500 # FIXME: should be removed in autoconf 3.0.
501 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
502 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
503 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
504 : "${build_alias=$ac_option}" "${host_alias=$ac_option}" "${target_alias=$ac_option}"
510 if test -n "$ac_prev"; then
511 ac_option=--`echo "$ac_prev" | sed 's/_/-/g'`
512 { echo "$as_me: error: missing argument to $ac_option" >&2
513 { (exit 1); exit 1; }; }
516 # Be sure to have absolute paths.
517 for ac_var in exec_prefix prefix
519 eval ac_val=$`echo "$ac_var"`
521 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
522 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
523 { (exit 1); exit 1; }; };;
527 # Be sure to have absolute paths.
528 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
529 localstatedir libdir includedir oldincludedir infodir mandir
531 eval ac_val=$`echo "$ac_var"`
533 [\\/$]* | ?:[\\/]* ) ;;
534 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
535 { (exit 1); exit 1; }; };;
539 # There might be people who depend on the old broken behavior: `$host'
540 # used to hold the argument of --host etc.
545 # FIXME: should be removed in autoconf 3.0.
546 if test "x$host_alias" != x; then
547 if test "x$build_alias" = x; then
548 cross_compiling=maybe
549 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
550 If a cross compiler is detected then cross compile mode will be used." >&2
551 elif test "x$build_alias" != "x$host_alias"; then
557 test -n "$host_alias" && ac_tool_prefix=$host_alias-
559 test "$silent" = yes && exec 6>/dev/null
561 # Find the source files, if location was not specified.
562 if test -z "$srcdir"; then
563 ac_srcdir_defaulted=yes
564 # Try the directory containing this script, then its parent.
566 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
567 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
569 if test ! -r "$srcdir/$ac_unique_file"; then
573 ac_srcdir_defaulted=no
575 if test ! -r "$srcdir/$ac_unique_file"; then
576 if test "$ac_srcdir_defaulted" = yes; then
577 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
578 { (exit 1); exit 1; }; }
580 { echo "$as_me: error: cannot find sources in $srcdir" >&2
581 { (exit 1); exit 1; }; }
584 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
585 ac_env_build_alias_set=${build_alias+set}
586 ac_env_build_alias_value=$build_alias
587 ac_cv_env_build_alias_set=${build_alias+set}
588 ac_cv_env_build_alias_value=$build_alias
589 ac_env_host_alias_set=${host_alias+set}
590 ac_env_host_alias_value=$host_alias
591 ac_cv_env_host_alias_set=${host_alias+set}
592 ac_cv_env_host_alias_value=$host_alias
593 ac_env_target_alias_set=${target_alias+set}
594 ac_env_target_alias_value=$target_alias
595 ac_cv_env_target_alias_set=${target_alias+set}
596 ac_cv_env_target_alias_value=$target_alias
597 ac_env_CC_set=${CC+set}
599 ac_cv_env_CC_set=${CC+set}
600 ac_cv_env_CC_value=$CC
601 ac_env_CFLAGS_set=${CFLAGS+set}
602 ac_env_CFLAGS_value=$CFLAGS
603 ac_cv_env_CFLAGS_set=${CFLAGS+set}
604 ac_cv_env_CFLAGS_value=$CFLAGS
605 ac_env_LDFLAGS_set=${LDFLAGS+set}
606 ac_env_LDFLAGS_value=$LDFLAGS
607 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
608 ac_cv_env_LDFLAGS_value=$LDFLAGS
609 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
610 ac_env_CPPFLAGS_value=$CPPFLAGS
611 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
612 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
613 ac_env_CPP_set=${CPP+set}
614 ac_env_CPP_value=$CPP
615 ac_cv_env_CPP_set=${CPP+set}
616 ac_cv_env_CPP_value=$CPP
617 ac_env_CXX_set=${CXX+set}
618 ac_env_CXX_value=$CXX
619 ac_cv_env_CXX_set=${CXX+set}
620 ac_cv_env_CXX_value=$CXX
621 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
622 ac_env_CXXFLAGS_value=$CXXFLAGS
623 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
624 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
625 ac_env_CXXCPP_set=${CXXCPP+set}
626 ac_env_CXXCPP_value=$CXXCPP
627 ac_cv_env_CXXCPP_set=${CXXCPP+set}
628 ac_cv_env_CXXCPP_value=$CXXCPP
631 # Report the --help message.
633 if test "$ac_init_help" = "long"; then
634 # Omit some internal or obsolete options to make the list less imposing.
635 # This message is too long to be a string in the A/UX 3.1 sh.
637 \`configure' configures this package to adapt to many kinds of systems.
639 Usage: $0 [OPTION]... [VAR=VALUE]...
641 To assign environment variables (e.g., CC, CFLAGS...), specify them as
642 VAR=VALUE. See below for descriptions of some of the useful variables.
644 Defaults for the options are specified in brackets.
647 -h, --help display this help and exit
648 --help=short display options specific to this package
649 --help=recursive display the short help of all the included packages
650 -V, --version display version information and exit
651 -q, --quiet, --silent do not print \`checking...' messages
652 --cache-file=FILE cache test results in FILE [disabled]
653 -C, --config-cache alias for \`--cache-file=config.cache'
654 -n, --no-create do not create output files
655 --srcdir=DIR find the sources in DIR [configure dir or \`..']
660 Installation directories:
661 --prefix=PREFIX install architecture-independent files in PREFIX
663 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
666 By default, \`make install' will install all the files in
667 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
668 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
669 for instance \`--prefix=\$HOME'.
671 For better control, use the options below.
673 Fine tuning of the installation directories:
674 --bindir=DIR user executables [EPREFIX/bin]
675 --sbindir=DIR system admin executables [EPREFIX/sbin]
676 --libexecdir=DIR program executables [EPREFIX/libexec]
677 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
678 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
679 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
680 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
681 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
682 --runstatedir=DIR extra definition of runtime data [LOCALSTATEDIR/run]
683 --libdir=DIR object code libraries [EPREFIX/lib]
684 --includedir=DIR C header files [PREFIX/include]
685 --oldincludedir=DIR C header files for non-gcc [/usr/include]
686 --infodir=DIR info documentation [DATAROOTDIR/info]
687 --mandir=DIR man documentation [DATAROOTDIR/man]
693 --program-prefix=PREFIX prepend PREFIX to installed program names
694 --program-suffix=SUFFIX append SUFFIX to installed program names
695 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
698 --build=BUILD configure for building on BUILD [guessed]
699 --host=HOST build programs to run on HOST [BUILD]
700 --target=TARGET configure for building compilers for TARGET [HOST]
704 if test -n "$ac_init_help"; then
709 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
710 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
713 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
714 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
716 --with-rel-version=XXX override derived release version
717 --with-abi-version=XXX override derived ABI version
718 --with-system-type=XXX test: override derived host system-type
719 --with-abi-altered=XXX override visible ABI version, for packaging
720 --without-ada suppress check for Ada compiler, don't build demo
721 --without-cxx do not adjust ncurses bool to match C++
722 --without-cxx-binding do not build C++ binding and demo
723 --disable-db-install suppress install of terminal database
724 --without-manpages suppress install of manpages
725 --without-progs suppress build/install with programs (e.g., tic)
726 --without-tests suppress build/install with test-programs
727 --without-curses-h install curses.h as ncurses.h only
728 --with-config-suffix=X suffixes ncursesXX-config file
729 --with-pkg-config{=path} enable/disable use of pkg-config
730 --with-pkg-config-libdir=XXX use given directory for installing pc-files
731 --enable-pc-files generate and install .pc files for pkg-config
732 --with-pc-suffix suffixes pc-files
733 --enable-mixed-case tic should assume mixed-case filenames
734 --with-install-prefix prefixes actual install-location ($DESTDIR)
735 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
736 --with-build-cc=XXX the build C compiler ($BUILD_CC)
737 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
738 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
739 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
740 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
741 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
742 Options to Specify the Libraries Built/Used:
743 --disable-libtool-version enable to use libtool's incompatible naming scheme
744 --with-libtool generate libraries with libtool
745 --with-shared generate shared-libraries
746 --with-normal generate normal-libraries (default)
747 --with-debug generate debug-libraries (default)
748 --with-profile generate profile-libraries
749 --with-cxx-shared generate C++ shared-libraries
750 --with-lib-prefix override library-prefix
751 --with-termlib generate separate terminfo library
752 --with-ticlib generate separate tic library
753 --enable-rpath use rpath option when generating shared libraries
754 --disable-relink relink shared libraries during install
755 --with-shlib-version=X Specify rel or abi version for shared libs
756 --with-libtool-opts=XXX specify additional libtool options
757 --with-export-syms=XXX limit exported symbols using libtool
758 --with-versioned-syms=X markup versioned symbols using ld
759 --with-gpm use Alessandro Rubini's GPM library
760 --without-dlsym do not use dlsym() to load GPM dynamically
761 --with-pcre2 use PCRE2 for regular-expressions
762 --with-sysmouse use sysmouse (FreeBSD console)
763 --disable-lib-suffixes disable library suffixes
764 --disable-rpath-hack don't add rpath options for additional libraries
765 --disable-pkg-ldflags disable extra LDFLAGS for package-scripts
766 Fine-Tuning Your Configuration:
767 --with-extra-suffix=X append extra suffix to header/library paths
768 --disable-overwrite put headers in subdir, omit link to -lcurses
769 --disable-database do not use terminfo, only fallbacks/termcap
770 --with-database=XXX specify terminfo source to install
771 --with-hashed-db specify hashed-database library
772 --with-fallbacks=XXX specify list of fallback terminal descriptions
773 --with-tic-path=XXX specify path of tic for fallbacks
774 --with-infocmp-path=XXX specify path of infocmp for fallbacks
775 --without-xterm-new specify if xterm terminfo should be old version
776 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
777 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
778 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
779 --disable-big-core assume machine has little memory
780 --disable-big-strings assume compiler has only standard-size strings
781 --enable-termcap compile in termcap fallback support
782 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
783 --enable-getcap fast termcap load, no xrefs to terminfo
784 --enable-getcap-cache cache translated termcaps in ~/.terminfo
785 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
786 --disable-root-environ restrict root use of ncurses environment variables
787 --disable-root-access restrict file-access when running setuid
788 --disable-setuid-environ restrict setuid use of ncurses environment variables
789 --enable-symlinks make tic use symbolic links not hard links
790 --enable-broken_linker compile with broken-linker support code
791 --enable-bsdpad recognize BSD-style prefix padding
792 --enable-widec compile with wide-char/UTF-8 code
793 --disable-lp64 allow chtype to be long (ignore _LP64)
794 --disable-largefile omit support for large files
795 --disable-tparm-varargs compile tparm() without varargs interface
796 --disable-tic-depends link tic library without explicit dependency on ncurses library
797 --enable-wattr-macros enable wattr* macros
798 --with-x11-rgb=FILE file containing X11 rgb information (EPREFIX/lib/X11/rgb.txt)
799 --with-bool=TYPE override fallback type of bool variable
800 --with-caps=alt compile with alternate Caps file
801 --with-chtype=TYPE override type of chtype
802 --with-ospeed=TYPE override type of ospeed variable
803 --with-mmask-t=TYPE override type of mmask_t
804 --with-ccharw-max=XXX override size CCHARW_MAX
805 --enable-signed-char compile using signed Boolean's in term.h
806 --with-tparm-arg=TYPE override parameter type of tparm
807 --with-rcs-ids compile-in RCS identifiers
808 Options to Specify How Manpages are Installed:
809 --with-manpage-format specify manpage-format: gzip/compress/bzip2/xz,
810 BSDI/normal and optionally formatted/catonly,
812 --with-manpage-renames specify manpage-renaming
813 --with-manpage-aliases specify manpage-aliases using .so
814 --with-manpage-symlinks specify manpage-aliases using symlinks
815 --with-manpage-tbl specify manpage processing with tbl
817 --disable-ext-funcs disable function-extensions
818 --enable-sp-funcs enable SCREEN-extensions
819 --enable-term-driver enable terminal-driver
820 --enable-const compile with extra/non-standard const
821 --enable-ext-colors compile for 256-color support
822 --enable-ext-mouse compile for extended mouse-encoding
823 --enable-ext-putwin compile with extended putwin/screendump
824 --enable-no-padding compile with $NCURSES_NO_PADDING code
825 --enable-sigwinch compile with SIGWINCH handler
826 --enable-tcap-names compile with user-definable terminal capabilities
828 --with-pthread use POSIX thread library
829 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
830 --enable-weak-symbols enable weak-symbols for pthreads
831 --enable-reentrant compile with reentrant code
832 --enable-opaque-curses make curses WINDOW, etc., "opaque"
833 --enable-opaque-form make form-library structures "opaque"
834 --enable-opaque-menu make menu-library structures "opaque"
835 --enable-opaque-panel make panel-library structures "opaque"
836 --with-wrap-prefix=XXX override prefix used for public variables
838 --without-develop disable development options
839 --enable-hard-tabs compile with hard-tabs code
840 --enable-xmc-glitch compile with support for xmc (magic-cookie)
842 --disable-assumed-color do not assume anything about default-colors
843 --disable-hashmap compile without hashmap scrolling-optimization
844 --enable-colorfgbg compile-in experimental $COLORFGBG code
845 --enable-fvisibility compile with -fvisibility=hidden
846 --enable-interop compile-in interop bindings
847 --enable-safe-sprintf compile with experimental safe-sprintf code
848 --disable-scroll-hints compile without scroll-hints code
849 --enable-wgetch-events compile with wgetch-events code
850 --enable-exp-win32 compile with experimental-Windows driver
851 Testing/development Options:
852 --disable-echo do not display "compiling" commands
853 --disable-stripping do not strip (debug info) installed executables
854 --enable-warnings test: turn on gcc compiler warnings
855 --enable-stdnoreturn enable C11 _Noreturn feature for diagnostics
856 --enable-string-hacks work around bogus compiler/loader warnings
857 --enable-assertions test: turn on generation of assertion code
858 --with-dmalloc test: use Gray Watson's dmalloc library
859 --with-dbmalloc test: use Conor Cahill's dbmalloc library
860 --with-valgrind test: use valgrind
861 --disable-leaks test: free permanent memory, analyze leaks
862 --enable-expanded test: generate functions for certain macros
863 --disable-macros test: use functions rather than macros
864 --with-trace test: add trace() function to all models of ncurses
865 --disable-gnat-projects test: disable GNAT projects even if usable
867 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
868 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
869 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
870 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
871 --with-ada-libname=XXX override default Ada library-name
872 --with-form-libname=XXX override form basename of library
873 --with-menu-libname=XXX override menu basename of library
874 --with-panel-libname=XXX override panel basename of library
875 --with-cxx-libname=XXX override ncurses++ basename of library
877 Some influential environment variables:
878 CC C compiler command
879 CFLAGS C compiler flags
880 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
881 nonstandard directory <lib dir>
882 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
883 headers in a nonstandard directory <include dir>
885 CXX C++ compiler command
886 CXXFLAGS C++ compiler flags
887 CXXCPP C++ preprocessor
889 Use these variables to override the choices made by `configure' or to help
890 it to find libraries and programs with nonstandard names/locations.
895 if test "$ac_init_help" = "recursive"; then
896 # If there are subdirs, report their specific --help.
898 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
900 # A "../" for each directory in /$ac_subdir.
901 ac_dots=`echo "$ac_subdir" |
902 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
905 .) # No --srcdir option. We are building in place.
906 ac_sub_srcdir="$srcdir" ;;
907 [\\/]* | ?:[\\/]* ) # Absolute path.
908 ac_sub_srcdir="$srcdir/$ac_subdir" ;;
910 ac_sub_srcdir="$ac_dots$srcdir/$ac_subdir" ;;
913 # Check for guested configure; otherwise get Cygnus style configure.
914 if test -f "$ac_sub_srcdir/configure.gnu"; then
916 $SHELL "$ac_sub_srcdir/configure.gnu" --help=recursive
917 elif test -f "$ac_sub_srcdir/configure"; then
919 $SHELL "$ac_sub_srcdir/configure" --help=recursive
920 elif test -f "$ac_sub_srcdir/configure.ac" ||
921 test -f "$ac_sub_srcdir/configure.in"; then
923 "$ac_configure" --help
925 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
931 test -n "$ac_init_help" && exit 0
932 if "$ac_init_version"; then
935 Copyright 2003-2022,2023 Thomas E. Dickey
936 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
937 Free Software Foundation, Inc.
938 This configure script is free software; the Free Software Foundation
939 gives unlimited permission to copy, distribute and modify it.
945 This file contains any messages produced by compilers while
946 running configure, to aid debugging if configure makes a mistake.
948 It was created by $as_me, which was
949 generated by GNU Autoconf 2.52.20230114. Invocation command line was
960 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
961 uname -m = `(uname -m) 2>/dev/null || echo unknown`
962 uname -r = `(uname -r) 2>/dev/null || echo unknown`
963 uname -s = `(uname -s) 2>/dev/null || echo unknown`
964 uname -v = `(uname -v) 2>/dev/null || echo unknown`
966 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
967 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
969 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
970 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
971 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
972 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
973 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
974 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
975 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
989 # Keep a trace of the command line.
990 # Strip out --no-create and --no-recursion so they do not pile up.
991 # Also quote any args containing shell meta-characters.
997 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
998 | --no-cr | --no-c) ;;
999 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1000 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
1001 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1002 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1003 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1005 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
1008 # Get rid of the leading space.
1011 # When interrupted or exit'd, cleanup temporary files, and complete
1012 # config.log. We remove comments because anyway the quotes in there
1013 # would cause problems or look ugly.
1014 trap 'exit_status=$?
1015 # Save into config.log some information that might help in debugging.
1017 echo "## ----------------- ##" >&5
1018 echo "## Cache variables. ##" >&5
1019 echo "## ----------------- ##" >&5
1021 # The following way of writing the cache mishandles newlines in values,
1024 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1027 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1028 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1032 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1036 sed "/^$/d" confdefs.h >conftest.log
1037 if test -s conftest.log; then
1039 echo "## ------------ ##" >&5
1040 echo "## confdefs.h. ##" >&5
1041 echo "## ------------ ##" >&5
1043 cat conftest.log >&5
1046 test "$ac_signal" != 0 &&
1047 echo "$as_me: caught signal $ac_signal" >&5
1048 echo "$as_me: exit $exit_status" >&5
1049 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1052 for ac_signal in 1 2 13 15; do
1053 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' "$ac_signal"
1057 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1058 rm -rf conftest* confdefs.h
1059 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1062 # Let the site file select an alternate cache file if it wants to.
1063 # Prefer explicitly selected file to automatically selected ones.
1064 if test -z "$CONFIG_SITE"; then
1065 if test "x$prefix" != xNONE; then
1066 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1068 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1071 for ac_site_file in $CONFIG_SITE; do
1072 if test -r "$ac_site_file"; then
1073 { echo "$as_me:1073: loading site script $ac_site_file" >&5
1074 echo "$as_me: loading site script $ac_site_file" >&6;}
1075 cat "$ac_site_file" >&5
1080 if test -r "$cache_file"; then
1081 # Some versions of bash will fail to source /dev/null (special
1082 # files actually), so we avoid doing that.
1083 if test -f "$cache_file"; then
1084 { echo "$as_me:1084: loading cache $cache_file" >&5
1085 echo "$as_me: loading cache $cache_file" >&6;}
1087 [\\/]* | ?:[\\/]* ) . $cache_file;;
1088 *) . ./$cache_file;;
1092 { echo "$as_me:1092: creating cache $cache_file" >&5
1093 echo "$as_me: creating cache $cache_file" >&6;}
1097 # Check that the precious variables saved in the cache have kept the same
1099 ac_cache_corrupted=false
1100 for ac_var in `(set) 2>&1 |
1101 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1102 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1103 eval ac_new_set=\$ac_env_${ac_var}_set
1104 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1105 eval ac_new_val="\$ac_env_${ac_var}_value"
1106 case "$ac_old_set,$ac_new_set" in
1108 { echo "$as_me:1108: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1109 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1110 ac_cache_corrupted=: ;;
1112 { echo "$as_me:1112: error: \`$ac_var' was not set in the previous run" >&5
1113 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1114 ac_cache_corrupted=: ;;
1117 if test "x$ac_old_val" != "x$ac_new_val"; then
1118 { echo "$as_me:1118: error: \`$ac_var' has changed since the previous run:" >&5
1119 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1120 { echo "$as_me:1120: former value: $ac_old_val" >&5
1121 echo "$as_me: former value: $ac_old_val" >&2;}
1122 { echo "$as_me:1122: current value: $ac_new_val" >&5
1123 echo "$as_me: current value: $ac_new_val" >&2;}
1124 ac_cache_corrupted=:
1127 # Pass precious variables to config.status. It doesn't matter if
1128 # we pass some twice (in addition to the command line arguments).
1129 if test "$ac_new_set" = set; then
1130 case "$ac_new_val" in
1131 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1132 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1133 ac_configure_args="$ac_configure_args '$ac_arg'"
1135 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1140 if "$ac_cache_corrupted"; then
1141 { echo "$as_me:1141: error: changes in the environment can compromise the build" >&5
1142 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1143 { { echo "$as_me:1143: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1144 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1145 { (exit 1); exit 1; }; }
1149 ac_cpp='$CPP $CPPFLAGS'
1150 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1151 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1153 ac_main_return="return"
1155 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1157 ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1169 echo "#! $SHELL" >conftest.sh
1170 echo "exit 0" >>conftest.sh
1171 chmod +x conftest.sh
1172 if { (echo "$as_me:1172: PATH=\".;.\"; conftest.sh") >&5
1173 (PATH=".;."; conftest.sh) 2>&5
1175 echo "$as_me:1175: \$? = $ac_status" >&5
1176 (exit "$ac_status"); }; then
1177 ac_path_separator=';'
1181 PATH_SEPARATOR="$ac_path_separator"
1184 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1188 for ac_prog in ggrep grep
1190 # Extract the first word of "$ac_prog", so it can be a program name with args.
1191 set dummy $ac_prog; ac_word=$2
1192 echo "$as_me:1192: checking for $ac_word" >&5
1193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1194 if test "${ac_cv_prog_GREP+set}" = set; then
1195 echo $ECHO_N "(cached) $ECHO_C" >&6
1197 if test -n "$GREP"; then
1198 ac_cv_prog_GREP="$GREP" # Let the user override the test.
1200 ac_save_IFS=$IFS; IFS=$ac_path_separator
1202 for ac_dir in $ac_dummy; do
1204 test -z "$ac_dir" && ac_dir=.
1205 $as_executable_p "$ac_dir/$ac_word" || continue
1206 ac_cv_prog_GREP="$ac_prog"
1207 echo "$as_me:1207: found $ac_dir/$ac_word" >&5
1213 GREP=$ac_cv_prog_GREP
1214 if test -n "$GREP"; then
1215 echo "$as_me:1215: result: $GREP" >&5
1216 echo "${ECHO_T}$GREP" >&6
1218 echo "$as_me:1218: result: no" >&5
1219 echo "${ECHO_T}no" >&6
1222 test -n "$GREP" && break
1224 test -n "$GREP" || GREP=": "
1226 echo "$as_me:1226: checking for egrep" >&5
1227 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1228 if test "${ac_cv_path_EGREP+set}" = set; then
1229 echo $ECHO_N "(cached) $ECHO_C" >&6
1231 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
1232 then ac_cv_path_EGREP="$GREP -E"
1234 for ac_prog in gegrep egrep
1236 # Extract the first word of "$ac_prog", so it can be a program name with args.
1237 set dummy $ac_prog; ac_word=$2
1238 echo "$as_me:1238: checking for $ac_word" >&5
1239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1240 if test "${ac_cv_path_EGREP+set}" = set; then
1241 echo $ECHO_N "(cached) $ECHO_C" >&6
1245 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
1248 ac_save_IFS=$IFS; IFS=$ac_path_separator
1250 for ac_dir in $ac_dummy; do
1252 test -z "$ac_dir" && ac_dir=.
1253 if $as_executable_p "$ac_dir/$ac_word"; then
1254 ac_cv_path_EGREP="$ac_dir/$ac_word"
1255 echo "$as_me:1255: found $ac_dir/$ac_word" >&5
1263 EGREP=$ac_cv_path_EGREP
1265 if test -n "$EGREP"; then
1266 echo "$as_me:1266: result: $EGREP" >&5
1267 echo "${ECHO_T}$EGREP" >&6
1269 echo "$as_me:1269: result: no" >&5
1270 echo "${ECHO_T}no" >&6
1273 test -n "$EGREP" && break
1275 test -n "$EGREP" || EGREP=": "
1277 test "x$ac_cv_path_EGREP" = "x:" && { { echo "$as_me:1277: error: cannot find workable egrep" >&5
1278 echo "$as_me: error: cannot find workable egrep" >&2;}
1279 { (exit 1); exit 1; }; }
1282 echo "$as_me:1282: result: $ac_cv_path_EGREP" >&5
1283 echo "${ECHO_T}$ac_cv_path_EGREP" >&6
1284 EGREP="$ac_cv_path_EGREP"
1286 NCURSES_MAJOR="`${EGREP-egrep} '^NCURSES_MAJOR[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`"
1287 NCURSES_MINOR="`${EGREP-egrep} '^NCURSES_MINOR[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`"
1288 NCURSES_PATCH="`${EGREP-egrep} '^NCURSES_PATCH[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`"
1289 cf_cv_abi_version=${NCURSES_MAJOR}
1290 cf_cv_abi_default=${NCURSES_MAJOR}
1291 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1292 cf_cv_timestamp=`date`
1293 echo "$as_me:1293: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_default ($cf_cv_timestamp)" >&5
1294 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_default ($cf_cv_timestamp)" >&6
1296 if test -f "$srcdir/VERSION" ; then
1297 echo "$as_me:1297: checking for package version" >&5
1298 echo $ECHO_N "checking for package version... $ECHO_C" >&6
1300 # if there are not enough fields, cut returns the last one...
1301 cf_field1=`sed -e '2,$d' "$srcdir/VERSION" |cut -f1`
1302 cf_field2=`sed -e '2,$d' "$srcdir/VERSION" |cut -f2`
1303 cf_field3=`sed -e '2,$d' "$srcdir/VERSION" |cut -f3`
1305 # this is how CF_BUNDLED_INTL uses $VERSION:
1306 VERSION="$cf_field1"
1308 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
1309 test -z "$VERSION_MAJOR" && { { echo "$as_me:1309: error: missing major-version" >&5
1310 echo "$as_me: error: missing major-version" >&2;}
1311 { (exit 1); exit 1; }; }
1313 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
1314 test -z "$VERSION_MINOR" && { { echo "$as_me:1314: error: missing minor-version" >&5
1315 echo "$as_me: error: missing minor-version" >&2;}
1316 { (exit 1); exit 1; }; }
1318 echo "$as_me:1318: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
1319 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
1321 echo "$as_me:1321: checking for package patch date" >&5
1322 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
1323 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
1324 case .$VERSION_PATCH in
1326 { { echo "$as_me:1326: error: missing patch-date $VERSION_PATCH" >&5
1327 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
1328 { (exit 1); exit 1; }; }
1330 (.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
1333 { { echo "$as_me:1333: error: illegal patch-date $VERSION_PATCH" >&5
1334 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
1335 { (exit 1); exit 1; }; }
1338 echo "$as_me:1338: result: $VERSION_PATCH" >&5
1339 echo "${ECHO_T}$VERSION_PATCH" >&6
1341 { { echo "$as_me:1341: error: did not find $srcdir/VERSION" >&5
1342 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
1343 { (exit 1); exit 1; }; }
1346 # show the actual data that we have for versions:
1347 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
1349 echo "${as_me:-configure}:1349: testing ABI VERSION $VERSION ..." 1>&5
1351 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
1353 echo "${as_me:-configure}:1353: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
1355 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
1357 echo "${as_me:-configure}:1357: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
1359 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
1361 echo "${as_me:-configure}:1361: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
1366 cat >>confdefs.h <<EOF
1367 #define PACKAGE "$PACKAGE"
1370 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1372 cat >>confdefs.h <<EOF
1373 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
1376 cat >>confdefs.h <<EOF
1377 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
1380 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1382 # Check whether --with-rel-version or --without-rel-version was given.
1383 if test "${with_rel_version+set}" = set; then
1384 withval="$with_rel_version"
1385 { echo "$as_me:1385: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1386 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1387 cf_cv_rel_version=$withval
1390 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1391 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1392 test -n "NCURSES_MINOR" || NCURSES_MINOR=0
1394 if test -n "$NCURSES_MAJOR" ; then
1395 case `echo "$NCURSES_MAJOR" | sed -e 's/^[0-9]*$/0/g'` in
1399 { { echo "$as_me:1399: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1400 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1401 { (exit 1); exit 1; }; }
1405 { { echo "$as_me:1405: error: Release major-version value is empty" >&5
1406 echo "$as_me: error: Release major-version value is empty" >&2;}
1407 { (exit 1); exit 1; }; }
1410 if test -n "$NCURSES_MINOR" ; then
1411 case `echo "$NCURSES_MINOR" | sed -e 's/^[0-9]*$/0/g'` in
1415 { { echo "$as_me:1415: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1416 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1417 { (exit 1); exit 1; }; }
1421 { { echo "$as_me:1421: error: Release minor-version value is empty" >&5
1422 echo "$as_me: error: Release minor-version value is empty" >&2;}
1423 { (exit 1); exit 1; }; }
1426 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1428 # Check whether --with-abi-version or --without-abi-version was given.
1429 if test "${with_abi_version+set}" = set; then
1430 withval="$with_abi_version"
1432 if test "x$cf_cv_abi_version" != "x$withval"
1434 { echo "$as_me:1434: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1435 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1436 case "$cf_cv_rel_version" in
1438 cf_cv_rel_version=$withval.0
1441 cf_cv_rel_version=$withval.9 # FIXME: should be 10 as of 6.0 release
1445 cf_cv_abi_version=$withval
1448 if test -n "$cf_cv_abi_version" ; then
1449 case `echo "$cf_cv_abi_version" | sed -e 's/^[0-9]*$/0/g'` in
1453 { { echo "$as_me:1453: error: ABI version is not a number: $cf_cv_abi_version" >&5
1454 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1455 { (exit 1); exit 1; }; }
1459 { { echo "$as_me:1459: error: ABI version value is empty" >&5
1460 echo "$as_me: error: ABI version value is empty" >&2;}
1461 { (exit 1); exit 1; }; }
1464 cf_cv_abi_default=$cf_cv_abi_version
1466 if test "x$cf_cv_abi_version" != "x$with_abi_version"
1468 case "$cf_cv_rel_version" in
1470 cf_cv_rel_version=$with_abi_version.0
1476 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1477 if test -f "$ac_dir/install-sh"; then
1479 ac_install_sh="$ac_aux_dir/install-sh -c"
1481 elif test -f "$ac_dir/install.sh"; then
1483 ac_install_sh="$ac_aux_dir/install.sh -c"
1485 elif test -f "$ac_dir/shtool"; then
1487 ac_install_sh="$ac_aux_dir/shtool install -c"
1491 if test -z "$ac_aux_dir"; then
1492 { { echo "$as_me:1492: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1493 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1494 { (exit 1); exit 1; }; }
1496 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1497 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1498 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1500 # Make sure we can run config.sub.
1501 $ac_config_sub sun4 >/dev/null 2>&1 ||
1502 { { echo "$as_me:1502: error: cannot run $ac_config_sub" >&5
1503 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1504 { (exit 1); exit 1; }; }
1506 echo "$as_me:1506: checking build system type" >&5
1507 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1508 if test "${ac_cv_build+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1511 ac_cv_build_alias=$build_alias
1512 test -z "$ac_cv_build_alias" &&
1513 ac_cv_build_alias=`$ac_config_guess`
1514 test -z "$ac_cv_build_alias" &&
1515 { { echo "$as_me:1515: error: cannot guess build type; you must specify one" >&5
1516 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1517 { (exit 1); exit 1; }; }
1518 ac_cv_build=`$ac_config_sub "$ac_cv_build_alias"` ||
1519 { { echo "$as_me:1519: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1520 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1521 { (exit 1); exit 1; }; }
1524 echo "$as_me:1524: result: $ac_cv_build" >&5
1525 echo "${ECHO_T}$ac_cv_build" >&6
1527 build_cpu=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1528 build_vendor=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1529 build_os=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1531 echo "$as_me:1531: checking host system type" >&5
1532 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1533 if test "${ac_cv_host+set}" = set; then
1534 echo $ECHO_N "(cached) $ECHO_C" >&6
1536 ac_cv_host_alias=$host_alias
1537 test -z "$ac_cv_host_alias" &&
1538 ac_cv_host_alias=$ac_cv_build_alias
1539 ac_cv_host=`$ac_config_sub "$ac_cv_host_alias"` ||
1540 { { echo "$as_me:1540: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1541 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1542 { (exit 1); exit 1; }; }
1545 echo "$as_me:1545: result: $ac_cv_host" >&5
1546 echo "${ECHO_T}$ac_cv_host" >&6
1548 host_cpu=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1549 host_vendor=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1550 host_os=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1552 if test -f "$srcdir/config.guess" || test -f "$ac_aux_dir/config.guess" ; then
1553 echo "$as_me:1553: checking target system type" >&5
1554 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1555 if test "${ac_cv_target+set}" = set; then
1556 echo $ECHO_N "(cached) $ECHO_C" >&6
1558 ac_cv_target_alias=$target_alias
1559 test "x$ac_cv_target_alias" = "x" &&
1560 ac_cv_target_alias=$ac_cv_host_alias
1561 ac_cv_target=`$ac_config_sub "$ac_cv_target_alias"` ||
1562 { { echo "$as_me:1562: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1563 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1564 { (exit 1); exit 1; }; }
1567 echo "$as_me:1567: result: $ac_cv_target" >&5
1568 echo "${ECHO_T}$ac_cv_target" >&6
1569 target=$ac_cv_target
1570 target_cpu=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1571 target_vendor=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1572 target_os=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1574 # The aliases save the names the user supplied, while $host etc.
1575 # will get canonicalized.
1576 test -n "$target_alias" &&
1577 test "$program_prefix$program_suffix$program_transform_name" = \
1579 program_prefix=${target_alias}-
1580 system_name="$host_os"
1582 system_name="`(uname -s -r) 2>/dev/null`"
1583 if test -z "$system_name" ; then
1584 system_name="`(hostname) 2>/dev/null`"
1587 test -n "$system_name" &&
1588 cat >>confdefs.h <<EOF
1589 #define SYSTEM_NAME "$system_name"
1592 if test "${cf_cv_system_name+set}" = set; then
1593 echo $ECHO_N "(cached) $ECHO_C" >&6
1595 cf_cv_system_name="$system_name"
1598 test -z "$system_name" && system_name="$cf_cv_system_name"
1599 test -n "$cf_cv_system_name" && echo "$as_me:1599: result: Configuring for $cf_cv_system_name" >&5
1600 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1602 if test ".$system_name" != ".$cf_cv_system_name" ; then
1603 echo "$as_me:1603: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1604 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1605 { { echo "$as_me:1605: error: \"Please remove config.cache and try again.\"" >&5
1606 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1607 { (exit 1); exit 1; }; }
1610 # Check whether --with-system-type or --without-system-type was given.
1611 if test "${with_system_type+set}" = set; then
1612 withval="$with_system_type"
1613 { echo "$as_me:1613: WARNING: overriding system type to $withval" >&5
1614 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1615 cf_cv_system_name=$withval
1620 ### Save the given $CFLAGS to allow user-override.
1621 cf_user_CFLAGS="$CFLAGS"
1623 ### Default install-location
1624 echo "$as_me:1624: checking for fgrep" >&5
1625 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
1626 if test "${ac_cv_path_FGREP+set}" = set; then
1627 echo $ECHO_N "(cached) $ECHO_C" >&6
1629 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
1630 then ac_cv_path_FGREP="$GREP -F"
1632 for ac_prog in gfgrep fgrep
1634 # Extract the first word of "$ac_prog", so it can be a program name with args.
1635 set dummy $ac_prog; ac_word=$2
1636 echo "$as_me:1636: checking for $ac_word" >&5
1637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638 if test "${ac_cv_path_FGREP+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1643 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
1646 ac_save_IFS=$IFS; IFS=$ac_path_separator
1648 for ac_dir in $ac_dummy; do
1650 test -z "$ac_dir" && ac_dir=.
1651 if $as_executable_p "$ac_dir/$ac_word"; then
1652 ac_cv_path_FGREP="$ac_dir/$ac_word"
1653 echo "$as_me:1653: found $ac_dir/$ac_word" >&5
1661 FGREP=$ac_cv_path_FGREP
1663 if test -n "$FGREP"; then
1664 echo "$as_me:1664: result: $FGREP" >&5
1665 echo "${ECHO_T}$FGREP" >&6
1667 echo "$as_me:1667: result: no" >&5
1668 echo "${ECHO_T}no" >&6
1671 test -n "$FGREP" && break
1673 test -n "$FGREP" || FGREP=": "
1675 test "x$ac_cv_path_FGREP" = "x:" && { { echo "$as_me:1675: error: cannot find workable fgrep" >&5
1676 echo "$as_me: error: cannot find workable fgrep" >&2;}
1677 { (exit 1); exit 1; }; }
1680 echo "$as_me:1680: result: $ac_cv_path_FGREP" >&5
1681 echo "${ECHO_T}$ac_cv_path_FGREP" >&6
1682 FGREP="$ac_cv_path_FGREP"
1684 echo "$as_me:1684: checking for prefix" >&5
1685 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1686 if test "x$prefix" = "xNONE" ; then
1687 case "$cf_cv_system_name" in
1688 # non-vendor systems don't have a conflict
1689 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1692 (*) prefix=$ac_default_prefix
1696 echo "$as_me:1696: result: $prefix" >&5
1697 echo "${ECHO_T}$prefix" >&6
1699 if test "x$prefix" = "xNONE" ; then
1700 echo "$as_me:1700: checking for default include-directory" >&5
1701 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1702 test -n "$verbose" && echo 1>&6
1705 "$includedir/ncurses" \
1707 "$prefix/include/ncurses" \
1708 /usr/local/include \
1709 /usr/local/include/ncurses \
1711 /usr/include/ncurses
1713 cf_dir=`eval echo "$cf_symbol"`
1714 if test -f "$cf_dir/curses.h" ; then
1715 if ( ${FGREP-fgrep} NCURSES_VERSION "$cf_dir/curses.h" >/dev/null 2>&1 ) ; then
1716 includedir="$cf_symbol"
1717 test -n "$verbose" && echo $ECHO_N " found " 1>&6
1721 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1723 echo "$as_me:1723: result: $includedir" >&5
1724 echo "${ECHO_T}$includedir" >&6
1727 ### Defaults for ncurses ABI
1732 cf_dft_ext_colors=no
1735 cf_dft_ext_putwin=no
1736 cf_dft_ext_spfuncs=no
1737 cf_dft_filter_syms=no
1740 cf_dft_opaque_curses=no
1741 cf_dft_ordinate_type=short
1742 cf_dft_signed_char=no
1743 cf_dft_tparm_arg=long
1747 case x$cf_cv_abi_default in
1749 cf_dft_chtype=uint32_t
1750 cf_dft_ext_colors=yes
1751 cf_dft_ext_const=yes
1752 cf_dft_ext_mouse=yes
1753 cf_dft_ext_putwin=yes
1754 cf_dft_ext_spfuncs=yes
1755 cf_dft_filter_syms=yes
1757 cf_dft_mmask_t=uint32_t
1758 cf_dft_tparm_arg=intptr_t
1759 cf_dft_with_lp64=yes
1764 case x$cf_cv_abi_default in
1767 cf_dft_mmask_t=uint64_t
1768 cf_dft_opaque_curses=yes
1769 cf_dft_ordinate_type=int
1770 cf_dft_signed_char=yes
1771 # also: remove the wgetch-events feature in ABI 7
1775 ### override ABI version, e.g., packagers
1777 # Check whether --with-abi-altered or --without-abi-altered was given.
1778 if test "${with_abi_altered+set}" = set; then
1779 withval="$with_abi_altered"
1781 if test -n "$withval" ; then
1782 case `echo "$withval" | sed -e 's/^[0-9]*$/0/g'` in
1786 { { echo "$as_me:1786: error: ABI altered is not a number: $withval" >&5
1787 echo "$as_me: error: ABI altered is not a number: $withval" >&2;}
1788 { (exit 1); exit 1; }; }
1792 { { echo "$as_me:1792: error: ABI altered value is empty" >&5
1793 echo "$as_me: error: ABI altered value is empty" >&2;}
1794 { (exit 1); exit 1; }; }
1797 if test "$cf_cv_abi_version" != "$withval"
1799 { echo "$as_me:1799: WARNING: altering visible ABI from $cf_cv_abi_version to $withval" >&5
1800 echo "$as_me: WARNING: altering visible ABI from $cf_cv_abi_version to $withval" >&2;}
1801 cf_cv_abi_version=$withval
1806 ### Checks for programs.
1808 # Check whether --with-ada or --without-ada was given.
1809 if test "${with_ada+set}" = set; then
1811 cf_with_ada=$withval
1816 if test "x$cf_with_ada" = xyes
1818 cf_prog_cc="gnatgcc gcc cc"
1824 ac_cpp='$CPP $CPPFLAGS'
1825 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1826 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1828 ac_main_return="return"
1829 if test -n "$ac_tool_prefix"; then
1830 for ac_prog in $cf_prog_cc
1832 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1833 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1834 echo "$as_me:1834: checking for $ac_word" >&5
1835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1836 if test "${ac_cv_prog_CC+set}" = set; then
1837 echo $ECHO_N "(cached) $ECHO_C" >&6
1839 if test -n "$CC"; then
1840 ac_cv_prog_CC="$CC" # Let the user override the test.
1842 ac_save_IFS=$IFS; IFS=$ac_path_separator
1844 for ac_dir in $ac_dummy; do
1846 test -z "$ac_dir" && ac_dir=.
1847 $as_executable_p "$ac_dir/$ac_word" || continue
1848 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1849 echo "$as_me:1849: found $ac_dir/$ac_word" >&5
1856 if test -n "$CC"; then
1857 echo "$as_me:1857: result: $CC" >&5
1858 echo "${ECHO_T}$CC" >&6
1860 echo "$as_me:1860: result: no" >&5
1861 echo "${ECHO_T}no" >&6
1864 test -n "$CC" && break
1867 if test -z "$CC"; then
1869 for ac_prog in $cf_prog_cc
1871 # Extract the first word of "$ac_prog", so it can be a program name with args.
1872 set dummy $ac_prog; ac_word=$2
1873 echo "$as_me:1873: checking for $ac_word" >&5
1874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1875 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1876 echo $ECHO_N "(cached) $ECHO_C" >&6
1878 if test -n "$ac_ct_CC"; then
1879 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1881 ac_save_IFS=$IFS; IFS=$ac_path_separator
1883 for ac_dir in $ac_dummy; do
1885 test -z "$ac_dir" && ac_dir=.
1886 $as_executable_p "$ac_dir/$ac_word" || continue
1887 ac_cv_prog_ac_ct_CC="$ac_prog"
1888 echo "$as_me:1888: found $ac_dir/$ac_word" >&5
1894 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1895 if test -n "$ac_ct_CC"; then
1896 echo "$as_me:1896: result: $ac_ct_CC" >&5
1897 echo "${ECHO_T}$ac_ct_CC" >&6
1899 echo "$as_me:1899: result: no" >&5
1900 echo "${ECHO_T}no" >&6
1903 test -n "$ac_ct_CC" && break
1909 test -z "$CC" && { { echo "$as_me:1909: error: no acceptable cc found in \$PATH" >&5
1910 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1911 { (exit 1); exit 1; }; }
1913 # Provide some information about the compiler.
1914 echo "$as_me:1914:" \
1915 "checking for C compiler version" >&5
1916 ac_compiler=`set X $ac_compile; echo "$2"`
1917 { (eval echo "$as_me:1917: \"$ac_compiler --version </dev/null >&5\"") >&5
1918 (eval $ac_compiler --version </dev/null >&5) 2>&5
1920 echo "$as_me:1920: \$? = $ac_status" >&5
1921 (exit "$ac_status"); }
1922 { (eval echo "$as_me:1922: \"$ac_compiler -v </dev/null >&5\"") >&5
1923 (eval $ac_compiler -v </dev/null >&5) 2>&5
1925 echo "$as_me:1925: \$? = $ac_status" >&5
1926 (exit "$ac_status"); }
1927 { (eval echo "$as_me:1927: \"$ac_compiler -V </dev/null >&5\"") >&5
1928 (eval $ac_compiler -V </dev/null >&5) 2>&5
1930 echo "$as_me:1930: \$? = $ac_status" >&5
1931 (exit "$ac_status"); }
1933 cat >"conftest.$ac_ext" <<_ACEOF
1934 #line 1934 "configure"
1935 #include "confdefs.h"
1945 ac_clean_files_save=$ac_clean_files
1946 ac_clean_files="$ac_clean_files a.out a.exe"
1947 # Try to create an executable without -o first, disregard a.out.
1948 # It will help us diagnose broken compilers, and finding out an intuition
1950 echo "$as_me:1950: checking for C compiler default output" >&5
1951 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1952 ac_link_default=`echo "$ac_link" | sed 's/ -o *"conftest[^"]*"//'`
1953 if { (eval echo "$as_me:1953: \"$ac_link_default\"") >&5
1954 (eval $ac_link_default) 2>&5
1956 echo "$as_me:1956: \$? = $ac_status" >&5
1957 (exit "$ac_status"); }; then
1958 # Find the output, starting from the most likely. This scheme is
1959 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1961 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1962 ls a.out conftest 2>/dev/null;
1963 ls a.* conftest.* 2>/dev/null`; do
1965 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1966 a.out ) # We found the default executable, but exeext='' is most
1969 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1970 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1977 echo "$as_me: failed program was:" >&5
1978 cat "conftest.$ac_ext" >&5
1979 { { echo "$as_me:1979: error: C compiler cannot create executables" >&5
1980 echo "$as_me: error: C compiler cannot create executables" >&2;}
1981 { (exit 77); exit 77; }; }
1984 ac_exeext=$ac_cv_exeext
1985 echo "$as_me:1985: result: $ac_file" >&5
1986 echo "${ECHO_T}$ac_file" >&6
1988 # Check the compiler produces executables we can run. If not, either
1989 # the compiler is broken, or we cross compile.
1990 echo "$as_me:1990: checking whether the C compiler works" >&5
1991 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1992 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1993 # If not cross compiling, check that we can run a simple program.
1994 if test "$cross_compiling" != yes; then
1995 if { ac_try='./$ac_file'
1996 { (eval echo "$as_me:1996: \"$ac_try\"") >&5
1999 echo "$as_me:1999: \$? = $ac_status" >&5
2000 (exit "$ac_status"); }; }; then
2003 if test "$cross_compiling" = maybe; then
2006 { { echo "$as_me:2006: error: cannot run C compiled programs.
2007 If you meant to cross compile, use \`--host'." >&5
2008 echo "$as_me: error: cannot run C compiled programs.
2009 If you meant to cross compile, use \`--host'." >&2;}
2010 { (exit 1); exit 1; }; }
2014 echo "$as_me:2014: result: yes" >&5
2015 echo "${ECHO_T}yes" >&6
2017 rm -f a.out a.exe "conftest$ac_cv_exeext"
2018 ac_clean_files=$ac_clean_files_save
2019 # Check the compiler produces executables we can run. If not, either
2020 # the compiler is broken, or we cross compile.
2021 echo "$as_me:2021: checking whether we are cross compiling" >&5
2022 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2023 echo "$as_me:2023: result: $cross_compiling" >&5
2024 echo "${ECHO_T}$cross_compiling" >&6
2026 echo "$as_me:2026: checking for executable suffix" >&5
2027 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
2028 if { (eval echo "$as_me:2028: \"$ac_link\"") >&5
2029 (eval $ac_link) 2>&5
2031 echo "$as_me:2031: \$? = $ac_status" >&5
2032 (exit "$ac_status"); }; then
2033 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2034 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2035 # work properly (i.e., refer to `conftest.exe'), while it won't with
2037 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2039 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2040 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2047 { { echo "$as_me:2047: error: cannot compute EXEEXT: cannot compile and link" >&5
2048 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2049 { (exit 1); exit 1; }; }
2052 rm -f "conftest$ac_cv_exeext"
2053 echo "$as_me:2053: result: $ac_cv_exeext" >&5
2054 echo "${ECHO_T}$ac_cv_exeext" >&6
2056 rm -f "conftest.$ac_ext"
2057 EXEEXT=$ac_cv_exeext
2059 echo "$as_me:2059: checking for object suffix" >&5
2060 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2061 if test "${ac_cv_objext+set}" = set; then
2062 echo $ECHO_N "(cached) $ECHO_C" >&6
2064 cat >"conftest.$ac_ext" <<_ACEOF
2065 #line 2065 "configure"
2066 #include "confdefs.h"
2076 rm -f conftest.o conftest.obj
2077 if { (eval echo "$as_me:2077: \"$ac_compile\"") >&5
2078 (eval $ac_compile) 2>&5
2080 echo "$as_me:2080: \$? = $ac_status" >&5
2081 (exit "$ac_status"); }; then
2082 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2084 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
2085 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2090 echo "$as_me: failed program was:" >&5
2091 cat "conftest.$ac_ext" >&5
2092 { { echo "$as_me:2092: error: cannot compute OBJEXT: cannot compile" >&5
2093 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2094 { (exit 1); exit 1; }; }
2097 rm -f "conftest.$ac_cv_objext" "conftest.$ac_ext"
2099 echo "$as_me:2099: result: $ac_cv_objext" >&5
2100 echo "${ECHO_T}$ac_cv_objext" >&6
2101 OBJEXT=$ac_cv_objext
2103 echo "$as_me:2103: checking whether we are using the GNU C compiler" >&5
2104 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2105 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2108 cat >"conftest.$ac_ext" <<_ACEOF
2109 #line 2109 "configure"
2110 #include "confdefs.h"
2123 rm -f "conftest.$ac_objext"
2124 if { (eval echo "$as_me:2124: \"$ac_compile\"") >&5
2125 (eval $ac_compile) 2>&5
2127 echo "$as_me:2127: \$? = $ac_status" >&5
2128 (exit "$ac_status"); } &&
2129 { ac_try='test -s "conftest.$ac_objext"'
2130 { (eval echo "$as_me:2130: \"$ac_try\"") >&5
2133 echo "$as_me:2133: \$? = $ac_status" >&5
2134 (exit "$ac_status"); }; }; then
2137 echo "$as_me: failed program was:" >&5
2138 cat "conftest.$ac_ext" >&5
2141 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2142 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2145 echo "$as_me:2145: result: $ac_cv_c_compiler_gnu" >&5
2146 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2147 GCC=`test $ac_compiler_gnu = yes && echo yes`
2148 ac_test_CFLAGS=${CFLAGS+set}
2149 ac_save_CFLAGS=$CFLAGS
2151 echo "$as_me:2151: checking whether $CC accepts -g" >&5
2152 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2153 if test "${ac_cv_prog_cc_g+set}" = set; then
2154 echo $ECHO_N "(cached) $ECHO_C" >&6
2156 cat >"conftest.$ac_ext" <<_ACEOF
2157 #line 2157 "configure"
2158 #include "confdefs.h"
2168 rm -f "conftest.$ac_objext"
2169 if { (eval echo "$as_me:2169: \"$ac_compile\"") >&5
2170 (eval $ac_compile) 2>&5
2172 echo "$as_me:2172: \$? = $ac_status" >&5
2173 (exit "$ac_status"); } &&
2174 { ac_try='test -s "conftest.$ac_objext"'
2175 { (eval echo "$as_me:2175: \"$ac_try\"") >&5
2178 echo "$as_me:2178: \$? = $ac_status" >&5
2179 (exit "$ac_status"); }; }; then
2182 echo "$as_me: failed program was:" >&5
2183 cat "conftest.$ac_ext" >&5
2186 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2188 echo "$as_me:2188: result: $ac_cv_prog_cc_g" >&5
2189 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2190 if test "$ac_test_CFLAGS" = set; then
2191 CFLAGS=$ac_save_CFLAGS
2192 elif test $ac_cv_prog_cc_g = yes; then
2193 if test "$GCC" = yes; then
2199 if test "$GCC" = yes; then
2205 # Some people use a C++ compiler to compile C. Since we use `exit',
2206 # in C++ we need to declare it. In case someone uses the same compiler
2207 # for both compiling C and C++ we need to have the C++ compiler decide
2208 # the declaration of exit, since it's the most demanding environment.
2209 cat >"conftest.$ac_ext" <<_ACEOF
2214 rm -f "conftest.$ac_objext"
2215 if { (eval echo "$as_me:2215: \"$ac_compile\"") >&5
2216 (eval $ac_compile) 2>&5
2218 echo "$as_me:2218: \$? = $ac_status" >&5
2219 (exit "$ac_status"); } &&
2220 { ac_try='test -s "conftest.$ac_objext"'
2221 { (eval echo "$as_me:2221: \"$ac_try\"") >&5
2224 echo "$as_me:2224: \$? = $ac_status" >&5
2225 (exit "$ac_status"); }; }; then
2226 for ac_declaration in \
2228 '#include <stdlib.h>' \
2229 'extern "C" void std::exit (int) throw (); using std::exit;' \
2230 'extern "C" void std::exit (int); using std::exit;' \
2231 'extern "C" void exit (int) throw ();' \
2232 'extern "C" void exit (int);' \
2235 cat >"conftest.$ac_ext" <<_ACEOF
2236 #line 2236 "configure"
2237 #include "confdefs.h"
2248 rm -f "conftest.$ac_objext"
2249 if { (eval echo "$as_me:2249: \"$ac_compile\"") >&5
2250 (eval $ac_compile) 2>&5
2252 echo "$as_me:2252: \$? = $ac_status" >&5
2253 (exit "$ac_status"); } &&
2254 { ac_try='test -s "conftest.$ac_objext"'
2255 { (eval echo "$as_me:2255: \"$ac_try\"") >&5
2258 echo "$as_me:2258: \$? = $ac_status" >&5
2259 (exit "$ac_status"); }; }; then
2262 echo "$as_me: failed program was:" >&5
2263 cat "conftest.$ac_ext" >&5
2266 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2267 cat >"conftest.$ac_ext" <<_ACEOF
2268 #line 2268 "configure"
2269 #include "confdefs.h"
2279 rm -f "conftest.$ac_objext"
2280 if { (eval echo "$as_me:2280: \"$ac_compile\"") >&5
2281 (eval $ac_compile) 2>&5
2283 echo "$as_me:2283: \$? = $ac_status" >&5
2284 (exit "$ac_status"); } &&
2285 { ac_try='test -s "conftest.$ac_objext"'
2286 { (eval echo "$as_me:2286: \"$ac_try\"") >&5
2289 echo "$as_me:2289: \$? = $ac_status" >&5
2290 (exit "$ac_status"); }; }; then
2293 echo "$as_me: failed program was:" >&5
2294 cat "conftest.$ac_ext" >&5
2296 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2299 if test -n "$ac_declaration"; then
2300 echo '#ifdef __cplusplus' >>confdefs.h
2301 echo "$ac_declaration" >>confdefs.h
2302 echo '#endif' >>confdefs.h
2306 echo "$as_me: failed program was:" >&5
2307 cat "conftest.$ac_ext" >&5
2309 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2311 ac_cpp='$CPP $CPPFLAGS'
2312 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2313 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2315 ac_main_return="return"
2318 if test "$GCC" = yes ; then
2319 echo "$as_me:2319: checking version of $CC" >&5
2320 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2321 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^[^(]*([^)][^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2322 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2323 echo "$as_me:2323: result: $GCC_VERSION" >&5
2324 echo "${ECHO_T}$GCC_VERSION" >&6
2329 if test "$GCC" = yes ; then
2332 echo "$as_me:2332: checking if this is really Intel C compiler" >&5
2333 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
2334 cf_save_CFLAGS="$CFLAGS"
2335 CFLAGS="$CFLAGS -no-gcc"
2336 cat >"conftest.$ac_ext" <<_ACEOF
2337 #line 2337 "configure"
2338 #include "confdefs.h"
2344 #ifdef __INTEL_COMPILER
2346 #error __INTEL_COMPILER is not defined
2353 rm -f "conftest.$ac_objext"
2354 if { (eval echo "$as_me:2354: \"$ac_compile\"") >&5
2355 (eval $ac_compile) 2>&5
2357 echo "$as_me:2357: \$? = $ac_status" >&5
2358 (exit "$ac_status"); } &&
2359 { ac_try='test -s "conftest.$ac_objext"'
2360 { (eval echo "$as_me:2360: \"$ac_try\"") >&5
2363 echo "$as_me:2363: \$? = $ac_status" >&5
2364 (exit "$ac_status"); }; }; then
2366 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
2369 echo "$as_me: failed program was:" >&5
2370 cat "conftest.$ac_ext" >&5
2372 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2373 CFLAGS="$cf_save_CFLAGS"
2374 echo "$as_me:2374: result: $INTEL_COMPILER" >&5
2375 echo "${ECHO_T}$INTEL_COMPILER" >&6
2382 if test "$GCC" = yes ; then
2383 echo "$as_me:2383: checking if this is really Clang C compiler" >&5
2384 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
2385 cf_save_CFLAGS="$CFLAGS"
2386 cat >"conftest.$ac_ext" <<_ACEOF
2387 #line 2387 "configure"
2388 #include "confdefs.h"
2396 #error __clang__ is not defined
2403 rm -f "conftest.$ac_objext"
2404 if { (eval echo "$as_me:2404: \"$ac_compile\"") >&5
2405 (eval $ac_compile) 2>&5
2407 echo "$as_me:2407: \$? = $ac_status" >&5
2408 (exit "$ac_status"); } &&
2409 { ac_try='test -s "conftest.$ac_objext"'
2410 { (eval echo "$as_me:2410: \"$ac_try\"") >&5
2413 echo "$as_me:2413: \$? = $ac_status" >&5
2414 (exit "$ac_status"); }; }; then
2418 echo "$as_me: failed program was:" >&5
2419 cat "conftest.$ac_ext" >&5
2421 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2422 CFLAGS="$cf_save_CFLAGS"
2423 echo "$as_me:2423: result: $CLANG_COMPILER" >&5
2424 echo "${ECHO_T}$CLANG_COMPILER" >&6
2429 if test "x$CLANG_COMPILER" = "xyes" ; then
2431 (c[1-9][0-9]|*/c[1-9][0-9])
2432 { echo "$as_me:2432: WARNING: replacing broken compiler alias $CC" >&5
2433 echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;}
2434 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
2439 echo "$as_me:2439: checking version of $CC" >&5
2440 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2441 CLANG_VERSION="`$CC --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(CLANG[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2442 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
2443 echo "$as_me:2443: result: $CLANG_VERSION" >&5
2444 echo "${ECHO_T}$CLANG_VERSION" >&6
2446 for cf_clang_opt in \
2447 -Qunused-arguments \
2448 -Wno-error=implicit-function-declaration
2450 echo "$as_me:2450: checking if option $cf_clang_opt works" >&5
2451 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
2452 cf_save_CFLAGS="$CFLAGS"
2453 CFLAGS="$CFLAGS $cf_clang_opt"
2454 cat >"conftest.$ac_ext" <<_ACEOF
2455 #line 2455 "configure"
2456 #include "confdefs.h"
2463 printf("hello!\\n");
2468 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
2469 if { (eval echo "$as_me:2469: \"$ac_link\"") >&5
2470 (eval $ac_link) 2>&5
2472 echo "$as_me:2472: \$? = $ac_status" >&5
2473 (exit "$ac_status"); } &&
2474 { ac_try='test -s "conftest$ac_exeext"'
2475 { (eval echo "$as_me:2475: \"$ac_try\"") >&5
2478 echo "$as_me:2478: \$? = $ac_status" >&5
2479 (exit "$ac_status"); }; }; then
2483 echo "$as_me: failed program was:" >&5
2484 cat "conftest.$ac_ext" >&5
2488 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
2489 echo "$as_me:2489: result: $cf_clang_optok" >&5
2490 echo "${ECHO_T}$cf_clang_optok" >&6
2491 CFLAGS="$cf_save_CFLAGS"
2492 if test "$cf_clang_optok" = yes; then
2493 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6
2495 echo "${as_me:-configure}:2495: testing adding option $cf_clang_opt ..." 1>&5
2497 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2498 CFLAGS="${CFLAGS}$cf_clang_opt"
2504 echo "$as_me:2504: checking for $CC option to accept ANSI C" >&5
2505 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2506 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2509 ac_cv_prog_cc_stdc=no
2511 cat >"conftest.$ac_ext" <<_ACEOF
2512 #line 2512 "configure"
2513 #include "confdefs.h"
2516 #include <sys/types.h>
2517 #include <sys/stat.h>
2518 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2519 struct buf { int x; };
2520 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2521 static char *e (char **p, int i)
2525 static char *f (char * (*g) (char **, int), char **p, ...)
2530 s = g (p, va_arg (v,int));
2534 int test (int i, double x);
2535 struct s1 {int (*f) (int a);};
2536 struct s2 {int (*f) (double a);};
2537 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2543 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2548 # Don't try gcc -ansi; that turns off useful extensions and
2549 # breaks some systems' header files.
2550 # AIX -qlanglvl=ansi
2551 # Ultrix and OSF/1 -std1
2552 # HP-UX 10.20 and later -Ae
2553 # HP-UX older versions -Aa -D_HPUX_SOURCE
2554 # SVR4 -Xc -D__EXTENSIONS__
2555 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2557 CC="$ac_save_CC $ac_arg"
2558 rm -f "conftest.$ac_objext"
2559 if { (eval echo "$as_me:2559: \"$ac_compile\"") >&5
2560 (eval $ac_compile) 2>&5
2562 echo "$as_me:2562: \$? = $ac_status" >&5
2563 (exit "$ac_status"); } &&
2564 { ac_try='test -s "conftest.$ac_objext"'
2565 { (eval echo "$as_me:2565: \"$ac_try\"") >&5
2568 echo "$as_me:2568: \$? = $ac_status" >&5
2569 (exit "$ac_status"); }; }; then
2570 ac_cv_prog_cc_stdc=$ac_arg
2573 echo "$as_me: failed program was:" >&5
2574 cat "conftest.$ac_ext" >&5
2576 rm -f "conftest.$ac_objext"
2578 rm -f "conftest.$ac_ext" "conftest.$ac_objext"
2583 case "x$ac_cv_prog_cc_stdc" in
2585 echo "$as_me:2585: result: none needed" >&5
2586 echo "${ECHO_T}none needed" >&6 ;;
2588 echo "$as_me:2588: result: $ac_cv_prog_cc_stdc" >&5
2589 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2590 CC="$CC $ac_cv_prog_cc_stdc" ;;
2593 # This should have been defined by AC_PROG_CC
2596 echo "$as_me:2596: checking \$CFLAGS variable" >&5
2597 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
2600 echo "$as_me:2600: result: broken" >&5
2601 echo "${ECHO_T}broken" >&6
2602 { echo "$as_me:2602: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
2603 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
2606 for cf_arg in $cf_flags
2612 cf_new_extra_cppflags=
2614 for cf_add_cflags in $cf_arg
2616 case "$cf_fix_cppflags" in
2618 case "$cf_add_cflags" in
2619 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2620 case "$cf_add_cflags" in
2622 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2624 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2625 && test -z "${cf_tst_cflags}" \
2626 && cf_fix_cppflags=yes
2628 if test "$cf_fix_cppflags" = yes ; then
2630 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2631 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2634 elif test "${cf_tst_cflags}" = "\"'" ; then
2636 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2637 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2647 case "$cf_add_cflags" in
2649 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2651 CPPFLAGS=`echo "$CPPFLAGS" | \
2652 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2653 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2658 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2659 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2666 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2667 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2674 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2675 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2677 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2679 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2680 && test -z "${cf_tst_cflags}" \
2681 && cf_fix_cppflags=no
2686 if test -n "$cf_new_cflags" ; then
2688 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2689 CFLAGS="${CFLAGS}$cf_new_cflags"
2693 if test -n "$cf_new_cppflags" ; then
2695 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2696 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2700 if test -n "$cf_new_extra_cppflags" ; then
2702 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2703 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2710 echo "$as_me:2710: result: ok" >&5
2711 echo "${ECHO_T}ok" >&6
2715 echo "$as_me:2715: checking \$CC variable" >&5
2716 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2719 echo "$as_me:2719: result: broken" >&5
2720 echo "${ECHO_T}broken" >&6
2721 { echo "$as_me:2721: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2722 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2724 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2725 cf_flags=`echo "$CC" | sed -e "s%^$cf_prog%%"`
2727 for cf_arg in $cf_flags
2735 cf_new_extra_cppflags=
2737 for cf_add_cflags in $cf_arg
2739 case "$cf_fix_cppflags" in
2741 case "$cf_add_cflags" in
2742 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2743 case "$cf_add_cflags" in
2745 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2747 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2748 && test -z "${cf_tst_cflags}" \
2749 && cf_fix_cppflags=yes
2751 if test "$cf_fix_cppflags" = yes ; then
2753 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2754 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2757 elif test "${cf_tst_cflags}" = "\"'" ; then
2759 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2760 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2770 case "$cf_add_cflags" in
2772 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2774 CPPFLAGS=`echo "$CPPFLAGS" | \
2775 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2776 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2781 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2782 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2789 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2790 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2797 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2798 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2800 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2802 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2803 && test -z "${cf_tst_cflags}" \
2804 && cf_fix_cppflags=no
2809 if test -n "$cf_new_cflags" ; then
2811 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2812 CFLAGS="${CFLAGS}$cf_new_cflags"
2816 if test -n "$cf_new_cppflags" ; then
2818 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2819 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2823 if test -n "$cf_new_extra_cppflags" ; then
2825 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2826 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2836 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2838 echo "${as_me:-configure}:2838: testing resulting CC: '$CC' ..." 1>&5
2840 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2842 echo "${as_me:-configure}:2842: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2844 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2846 echo "${as_me:-configure}:2846: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2850 echo "$as_me:2850: result: ok" >&5
2851 echo "${ECHO_T}ok" >&6
2856 ac_cpp='$CPP $CPPFLAGS'
2857 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2858 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2860 ac_main_return="return"
2861 echo "$as_me:2861: checking how to run the C preprocessor" >&5
2862 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2863 # On Suns, sometimes $CPP names a directory.
2864 if test -n "$CPP" && test -d "$CPP"; then
2867 if test -z "$CPP"; then
2868 if test "${ac_cv_prog_CPP+set}" = set; then
2869 echo $ECHO_N "(cached) $ECHO_C" >&6
2871 # Double quotes because CPP needs to be expanded
2872 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2875 for ac_c_preproc_warn_flag in '' yes
2877 # Use a header file that comes with gcc, so configuring glibc
2878 # with a fresh cross-compiler works.
2879 # On the NeXT, cc -E runs the code through the compiler's parser,
2880 # not just through cpp. "Syntax error" is here to catch this case.
2881 cat >"conftest.$ac_ext" <<_ACEOF
2882 #line 2882 "configure"
2883 #include "confdefs.h"
2887 if { (eval echo "$as_me:2887: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2888 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2890 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2892 cat conftest.err >&5
2893 echo "$as_me:2893: \$? = $ac_status" >&5
2894 (exit "$ac_status"); } >/dev/null; then
2895 if test -s conftest.err; then
2896 ac_cpp_err=$ac_c_preproc_warn_flag
2903 if test -z "$ac_cpp_err"; then
2906 echo "$as_me: failed program was:" >&5
2907 cat "conftest.$ac_ext" >&5
2908 # Broken: fails on valid input.
2911 rm -f conftest.err "conftest.$ac_ext"
2913 # OK, works on sane cases. Now check whether non-existent headers
2914 # can be detected and how.
2915 cat >"conftest.$ac_ext" <<_ACEOF
2916 #line 2916 "configure"
2917 #include "confdefs.h"
2918 #include <ac_nonexistent.h>
2920 if { (eval echo "$as_me:2920: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2921 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2923 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2925 cat conftest.err >&5
2926 echo "$as_me:2926: \$? = $ac_status" >&5
2927 (exit "$ac_status"); } >/dev/null; then
2928 if test -s conftest.err; then
2929 ac_cpp_err=$ac_c_preproc_warn_flag
2936 if test -z "$ac_cpp_err"; then
2937 # Broken: success on invalid input.
2940 echo "$as_me: failed program was:" >&5
2941 cat "conftest.$ac_ext" >&5
2942 # Passes both tests.
2946 rm -f conftest.err "conftest.$ac_ext"
2949 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2950 rm -f conftest.err "conftest.$ac_ext"
2951 if $ac_preproc_ok; then
2963 echo "$as_me:2963: result: $CPP" >&5
2964 echo "${ECHO_T}$CPP" >&6
2966 for ac_c_preproc_warn_flag in '' yes
2968 # Use a header file that comes with gcc, so configuring glibc
2969 # with a fresh cross-compiler works.
2970 # On the NeXT, cc -E runs the code through the compiler's parser,
2971 # not just through cpp. "Syntax error" is here to catch this case.
2972 cat >"conftest.$ac_ext" <<_ACEOF
2973 #line 2973 "configure"
2974 #include "confdefs.h"
2978 if { (eval echo "$as_me:2978: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2979 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2981 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2983 cat conftest.err >&5
2984 echo "$as_me:2984: \$? = $ac_status" >&5
2985 (exit "$ac_status"); } >/dev/null; then
2986 if test -s conftest.err; then
2987 ac_cpp_err=$ac_c_preproc_warn_flag
2994 if test -z "$ac_cpp_err"; then
2997 echo "$as_me: failed program was:" >&5
2998 cat "conftest.$ac_ext" >&5
2999 # Broken: fails on valid input.
3002 rm -f conftest.err "conftest.$ac_ext"
3004 # OK, works on sane cases. Now check whether non-existent headers
3005 # can be detected and how.
3006 cat >"conftest.$ac_ext" <<_ACEOF
3007 #line 3007 "configure"
3008 #include "confdefs.h"
3009 #include <ac_nonexistent.h>
3011 if { (eval echo "$as_me:3011: \"$ac_cpp "conftest.$ac_ext"\"") >&5
3012 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
3014 $EGREP -v '^ *\+' conftest.er1 >conftest.err
3016 cat conftest.err >&5
3017 echo "$as_me:3017: \$? = $ac_status" >&5
3018 (exit "$ac_status"); } >/dev/null; then
3019 if test -s conftest.err; then
3020 ac_cpp_err=$ac_c_preproc_warn_flag
3027 if test -z "$ac_cpp_err"; then
3028 # Broken: success on invalid input.
3031 echo "$as_me: failed program was:" >&5
3032 cat "conftest.$ac_ext" >&5
3033 # Passes both tests.
3037 rm -f conftest.err "conftest.$ac_ext"
3040 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3041 rm -f conftest.err "conftest.$ac_ext"
3042 if $ac_preproc_ok; then
3045 { { echo "$as_me:3045: error: C preprocessor \"$CPP\" fails sanity check" >&5
3046 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3047 { (exit 1); exit 1; }; }
3051 ac_cpp='$CPP $CPPFLAGS'
3052 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3053 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3055 ac_main_return="return"
3057 if test $ac_cv_c_compiler_gnu = yes; then
3058 echo "$as_me:3058: checking whether $CC needs -traditional" >&5
3059 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3060 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3063 ac_pattern="Autoconf.*'x'"
3064 cat >"conftest.$ac_ext" <<_ACEOF
3065 #line 3065 "configure"
3066 #include "confdefs.h"
3068 int Autoconf = TIOCGETP;
3070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3071 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3072 ac_cv_prog_gcc_traditional=yes
3074 ac_cv_prog_gcc_traditional=no
3078 if test $ac_cv_prog_gcc_traditional = no; then
3079 cat >"conftest.$ac_ext" <<_ACEOF
3080 #line 3080 "configure"
3081 #include "confdefs.h"
3083 int Autoconf = TCGETA;
3085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3086 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3087 ac_cv_prog_gcc_traditional=yes
3093 echo "$as_me:3093: result: $ac_cv_prog_gcc_traditional" >&5
3094 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3095 if test $ac_cv_prog_gcc_traditional = yes; then
3096 CC="$CC -traditional"
3100 echo "$as_me:3100: checking whether $CC understands -c and -o together" >&5
3101 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
3102 if test "${cf_cv_prog_CC_c_o+set}" = set; then
3103 echo $ECHO_N "(cached) $ECHO_C" >&6
3106 cat > conftest.$ac_ext <<CF_EOF
3109 ${cf_cv_main_return:-return}(0);
3112 # We do the test twice because some compilers refuse to overwrite an
3113 # existing .o file with -o, though they will create one.
3114 ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3115 if { (eval echo "$as_me:3115: \"$ac_try\"") >&5
3118 echo "$as_me:3118: \$? = $ac_status" >&5
3119 (exit "$ac_status"); } &&
3120 test -f conftest2.$ac_objext && { (eval echo "$as_me:3120: \"$ac_try\"") >&5
3123 echo "$as_me:3123: \$? = $ac_status" >&5
3124 (exit "$ac_status"); };
3126 eval cf_cv_prog_CC_c_o=yes
3128 eval cf_cv_prog_CC_c_o=no
3133 if test "$cf_cv_prog_CC_c_o" = yes; then
3134 echo "$as_me:3134: result: yes" >&5
3135 echo "${ECHO_T}yes" >&6
3137 echo "$as_me:3137: result: no" >&5
3138 echo "${ECHO_T}no" >&6
3141 if test "$cross_compiling" = yes ; then
3144 case "$cf_cv_system_name" in
3145 (dragonfly*|mirbsd*|freebsd*)
3146 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
3148 (*) LDPATH=$PATH:/sbin:/usr/sbin
3149 # Extract the first word of "ldconfig", so it can be a program name with args.
3150 set dummy ldconfig; ac_word=$2
3151 echo "$as_me:3151: checking for $ac_word" >&5
3152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3153 if test "${ac_cv_path_LDCONFIG+set}" = set; then
3154 echo $ECHO_N "(cached) $ECHO_C" >&6
3158 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
3161 ac_save_IFS=$IFS; IFS=$ac_path_separator
3163 for ac_dir in $ac_dummy; do
3165 test -z "$ac_dir" && ac_dir=.
3166 if $as_executable_p "$ac_dir/$ac_word"; then
3167 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
3168 echo "$as_me:3168: found $ac_dir/$ac_word" >&5
3176 LDCONFIG=$ac_cv_path_LDCONFIG
3178 if test -n "$LDCONFIG"; then
3179 echo "$as_me:3179: result: $LDCONFIG" >&5
3180 echo "${ECHO_T}$LDCONFIG" >&6
3182 echo "$as_me:3182: result: no" >&5
3183 echo "${ECHO_T}no" >&6
3190 echo "$as_me:3190: checking if you want to ensure bool is consistent with C++" >&5
3191 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
3193 # Check whether --with-cxx or --without-cxx was given.
3194 if test "${with_cxx+set}" = set; then
3196 cf_with_cxx=$withval
3200 echo "$as_me:3200: result: $cf_with_cxx" >&5
3201 echo "${ECHO_T}$cf_with_cxx" >&6
3202 if test "X$cf_with_cxx" = Xno ; then
3206 # with autoconf 2.13, we can change the error to a warning:
3208 ac_cpp='$CXXCPP $CPPFLAGS'
3209 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3210 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3211 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3212 ac_main_return="return"
3213 if test -n "$ac_tool_prefix"; then
3214 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3216 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3217 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3218 echo "$as_me:3218: checking for $ac_word" >&5
3219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3220 if test "${ac_cv_prog_CXX+set}" = set; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 if test -n "$CXX"; then
3224 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3226 ac_save_IFS=$IFS; IFS=$ac_path_separator
3228 for ac_dir in $ac_dummy; do
3230 test -z "$ac_dir" && ac_dir=.
3231 $as_executable_p "$ac_dir/$ac_word" || continue
3232 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3233 echo "$as_me:3233: found $ac_dir/$ac_word" >&5
3240 if test -n "$CXX"; then
3241 echo "$as_me:3241: result: $CXX" >&5
3242 echo "${ECHO_T}$CXX" >&6
3244 echo "$as_me:3244: result: no" >&5
3245 echo "${ECHO_T}no" >&6
3248 test -n "$CXX" && break
3251 if test -z "$CXX"; then
3253 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3255 # Extract the first word of "$ac_prog", so it can be a program name with args.
3256 set dummy $ac_prog; ac_word=$2
3257 echo "$as_me:3257: checking for $ac_word" >&5
3258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3259 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3260 echo $ECHO_N "(cached) $ECHO_C" >&6
3262 if test -n "$ac_ct_CXX"; then
3263 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3265 ac_save_IFS=$IFS; IFS=$ac_path_separator
3267 for ac_dir in $ac_dummy; do
3269 test -z "$ac_dir" && ac_dir=.
3270 $as_executable_p "$ac_dir/$ac_word" || continue
3271 ac_cv_prog_ac_ct_CXX="$ac_prog"
3272 echo "$as_me:3272: found $ac_dir/$ac_word" >&5
3278 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3279 if test -n "$ac_ct_CXX"; then
3280 echo "$as_me:3280: result: $ac_ct_CXX" >&5
3281 echo "${ECHO_T}$ac_ct_CXX" >&6
3283 echo "$as_me:3283: result: no" >&5
3284 echo "${ECHO_T}no" >&6
3287 test -n "$ac_ct_CXX" && break
3289 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3294 # Provide some information about the compiler.
3295 echo "$as_me:3295:" \
3296 "checking for C++ compiler version" >&5
3297 ac_compiler=`set X $ac_compile; echo $2`
3298 { (eval echo "$as_me:3298: \"$ac_compiler --version </dev/null >&5\"") >&5
3299 (eval $ac_compiler --version </dev/null >&5) 2>&5
3301 echo "$as_me:3301: \$? = $ac_status" >&5
3302 (exit "$ac_status"); }
3303 { (eval echo "$as_me:3303: \"$ac_compiler -v </dev/null >&5\"") >&5
3304 (eval $ac_compiler -v </dev/null >&5) 2>&5
3306 echo "$as_me:3306: \$? = $ac_status" >&5
3307 (exit "$ac_status"); }
3308 { (eval echo "$as_me:3308: \"$ac_compiler -V </dev/null >&5\"") >&5
3309 (eval $ac_compiler -V </dev/null >&5) 2>&5
3311 echo "$as_me:3311: \$? = $ac_status" >&5
3312 (exit "$ac_status"); }
3314 echo "$as_me:3314: checking whether we are using the GNU C++ compiler" >&5
3315 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3316 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 cat >"conftest.$ac_ext" <<_ACEOF
3320 #line 3320 "configure"
3321 #include "confdefs.h"
3334 rm -f "conftest.$ac_objext"
3335 if { (eval echo "$as_me:3335: \"$ac_compile\"") >&5
3336 (eval $ac_compile) 2>&5
3338 echo "$as_me:3338: \$? = $ac_status" >&5
3339 (exit "$ac_status"); } &&
3340 { ac_try='test -s "conftest.$ac_objext"'
3341 { (eval echo "$as_me:3341: \"$ac_try\"") >&5
3344 echo "$as_me:3344: \$? = $ac_status" >&5
3345 (exit "$ac_status"); }; }; then
3348 echo "$as_me: failed program was:" >&5
3349 cat "conftest.$ac_ext" >&5
3352 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3353 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3356 echo "$as_me:3356: result: $ac_cv_cxx_compiler_gnu" >&5
3357 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3358 GXX=`test $ac_compiler_gnu = yes && echo yes`
3359 ac_test_CXXFLAGS=${CXXFLAGS+set}
3360 ac_save_CXXFLAGS=$CXXFLAGS
3362 echo "$as_me:3362: checking whether $CXX accepts -g" >&5
3363 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3364 if test "${ac_cv_prog_cxx_g+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
3367 cat >"conftest.$ac_ext" <<_ACEOF
3368 #line 3368 "configure"
3369 #include "confdefs.h"
3379 rm -f "conftest.$ac_objext"
3380 if { (eval echo "$as_me:3380: \"$ac_compile\"") >&5
3381 (eval $ac_compile) 2>&5
3383 echo "$as_me:3383: \$? = $ac_status" >&5
3384 (exit "$ac_status"); } &&
3385 { ac_try='test -s "conftest.$ac_objext"'
3386 { (eval echo "$as_me:3386: \"$ac_try\"") >&5
3389 echo "$as_me:3389: \$? = $ac_status" >&5
3390 (exit "$ac_status"); }; }; then
3391 ac_cv_prog_cxx_g=yes
3393 echo "$as_me: failed program was:" >&5
3394 cat "conftest.$ac_ext" >&5
3397 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3399 echo "$as_me:3399: result: $ac_cv_prog_cxx_g" >&5
3400 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3401 if test "$ac_test_CXXFLAGS" = set; then
3402 CXXFLAGS=$ac_save_CXXFLAGS
3403 elif test $ac_cv_prog_cxx_g = yes; then
3404 if test "$GXX" = yes; then
3410 if test "$GXX" = yes; then
3416 for ac_declaration in \
3418 '#include <stdlib.h>' \
3419 'extern "C" void std::exit (int) throw (); using std::exit;' \
3420 'extern "C" void std::exit (int); using std::exit;' \
3421 'extern "C" void exit (int) throw ();' \
3422 'extern "C" void exit (int);' \
3425 cat >"conftest.$ac_ext" <<_ACEOF
3426 #line 3426 "configure"
3427 #include "confdefs.h"
3438 rm -f "conftest.$ac_objext"
3439 if { (eval echo "$as_me:3439: \"$ac_compile\"") >&5
3440 (eval $ac_compile) 2>&5
3442 echo "$as_me:3442: \$? = $ac_status" >&5
3443 (exit "$ac_status"); } &&
3444 { ac_try='test -s "conftest.$ac_objext"'
3445 { (eval echo "$as_me:3445: \"$ac_try\"") >&5
3448 echo "$as_me:3448: \$? = $ac_status" >&5
3449 (exit "$ac_status"); }; }; then
3452 echo "$as_me: failed program was:" >&5
3453 cat "conftest.$ac_ext" >&5
3456 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3457 cat >"conftest.$ac_ext" <<_ACEOF
3458 #line 3458 "configure"
3459 #include "confdefs.h"
3469 rm -f "conftest.$ac_objext"
3470 if { (eval echo "$as_me:3470: \"$ac_compile\"") >&5
3471 (eval $ac_compile) 2>&5
3473 echo "$as_me:3473: \$? = $ac_status" >&5
3474 (exit "$ac_status"); } &&
3475 { ac_try='test -s "conftest.$ac_objext"'
3476 { (eval echo "$as_me:3476: \"$ac_try\"") >&5
3479 echo "$as_me:3479: \$? = $ac_status" >&5
3480 (exit "$ac_status"); }; }; then
3483 echo "$as_me: failed program was:" >&5
3484 cat "conftest.$ac_ext" >&5
3486 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3489 if test -n "$ac_declaration"; then
3490 echo '#ifdef __cplusplus' >>confdefs.h
3491 echo "$ac_declaration" >>confdefs.h
3492 echo '#endif' >>confdefs.h
3496 ac_cpp='$CPP $CPPFLAGS'
3497 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3498 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3500 ac_main_return="return"
3503 ac_cpp='$CXXCPP $CPPFLAGS'
3504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3505 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3507 ac_main_return="return"
3509 if test "x$cf_with_cxx" != xno
3511 # Several of the C++ configurations do not work, particularly when
3512 # cross-compiling (20140913 -TD)
3513 echo "$as_me:3513: checking if $CXX works" >&5
3514 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
3516 save_CPPFLAGS="$CPPFLAGS"
3517 eval cf_includedir=${includedir}
3518 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
3520 cat >"conftest.$ac_ext" <<_ACEOF
3521 #line 3521 "configure"
3522 #include "confdefs.h"
3531 printf("Hello world!\n")
3537 rm -f "conftest.$ac_objext"
3538 if { (eval echo "$as_me:3538: \"$ac_compile\"") >&5
3539 (eval $ac_compile) 2>&5
3541 echo "$as_me:3541: \$? = $ac_status" >&5
3542 (exit "$ac_status"); } &&
3543 { ac_try='test -s "conftest.$ac_objext"'
3544 { (eval echo "$as_me:3544: \"$ac_try\"") >&5
3547 echo "$as_me:3547: \$? = $ac_status" >&5
3548 (exit "$ac_status"); }; }; then
3551 echo "$as_me: failed program was:" >&5
3552 cat "conftest.$ac_ext" >&5
3555 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3556 CPPFLAGS="$save_CPPFLAGS"
3558 echo "$as_me:3558: result: $cf_cxx_works" >&5
3559 echo "${ECHO_T}$cf_cxx_works" >&6
3560 if test "x$cf_cxx_works" = xno
3562 { echo "$as_me:3562: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
3563 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
3564 cf_with_cxx=no; CXX=""; GXX="";
3568 ac_cpp='$CPP $CPPFLAGS'
3569 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3570 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3572 ac_main_return="return"
3574 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
3575 if test "$CXX" = "g++" ; then
3576 # Extract the first word of "g++", so it can be a program name with args.
3577 set dummy g++; ac_word=$2
3578 echo "$as_me:3578: checking for $ac_word" >&5
3579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3580 if test "${ac_cv_path_CXX+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3585 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3588 ac_save_IFS=$IFS; IFS=$ac_path_separator
3590 for ac_dir in $ac_dummy; do
3592 test -z "$ac_dir" && ac_dir=.
3593 if $as_executable_p "$ac_dir/$ac_word"; then
3594 ac_cv_path_CXX="$ac_dir/$ac_word"
3595 echo "$as_me:3595: found $ac_dir/$ac_word" >&5
3605 if test -n "$CXX"; then
3606 echo "$as_me:3606: result: $CXX" >&5
3607 echo "${ECHO_T}$CXX" >&6
3609 echo "$as_me:3609: result: no" >&5
3610 echo "${ECHO_T}no" >&6
3616 { echo "$as_me:3616: WARNING: You don't have any C++ compiler, too bad" >&5
3617 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
3618 cf_with_cxx=no; CXX=""; GXX="";
3624 if test "$GXX" = yes; then
3625 echo "$as_me:3625: checking version of ${CXX:-g++}" >&5
3626 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
3627 GXX_VERSION="`${CXX:-g++} --version 2>/dev/null | sed -e '2,$d' -e 's/^[^(]*([^)][^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3628 if test -z "$GXX_VERSION"
3633 echo "$as_me:3633: result: $GXX_VERSION" >&5
3634 echo "${ECHO_T}$GXX_VERSION" >&6
3637 case "$GXX_VERSION" in
3641 { echo "$as_me:3641: WARNING: templates do not work" >&5
3642 echo "$as_me: WARNING: templates do not work" >&2;}
3646 echo "$as_me:3646: checking if you want to build C++ binding and demo" >&5
3647 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3649 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3650 if test "${with_cxx_binding+set}" = set; then
3651 withval="$with_cxx_binding"
3652 cf_with_cxx_binding=$withval
3654 cf_with_cxx_binding=$cf_with_cxx
3656 echo "$as_me:3656: result: $cf_with_cxx_binding" >&5
3657 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3659 echo "$as_me:3659: checking if you want to build with Ada" >&5
3660 echo $ECHO_N "checking if you want to build with Ada... $ECHO_C" >&6
3661 echo "$as_me:3661: result: $cf_with_ada" >&5
3662 echo "${ECHO_T}$cf_with_ada" >&6
3664 echo "$as_me:3664: checking if you want to install terminal database" >&5
3665 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
3667 # Check whether --enable-db-install or --disable-db-install was given.
3668 if test "${enable_db_install+set}" = set; then
3669 enableval="$enable_db_install"
3670 cf_with_db_install=$enableval
3672 cf_with_db_install=yes
3674 echo "$as_me:3674: result: $cf_with_db_install" >&5
3675 echo "${ECHO_T}$cf_with_db_install" >&6
3677 echo "$as_me:3677: checking if you want to install manpages" >&5
3678 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3680 # Check whether --with-manpages or --without-manpages was given.
3681 if test "${with_manpages+set}" = set; then
3682 withval="$with_manpages"
3683 cf_with_manpages=$withval
3685 cf_with_manpages=yes
3687 echo "$as_me:3687: result: $cf_with_manpages" >&5
3688 echo "${ECHO_T}$cf_with_manpages" >&6
3690 echo "$as_me:3690: checking if you want to build programs such as tic" >&5
3691 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3693 # Check whether --with-progs or --without-progs was given.
3694 if test "${with_progs+set}" = set; then
3695 withval="$with_progs"
3696 cf_with_progs=$withval
3700 echo "$as_me:3700: result: $cf_with_progs" >&5
3701 echo "${ECHO_T}$cf_with_progs" >&6
3703 echo "$as_me:3703: checking if you want to build test-programs" >&5
3704 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3706 # Check whether --with-tests or --without-tests was given.
3707 if test "${with_tests+set}" = set; then
3708 withval="$with_tests"
3709 cf_with_tests=$withval
3713 echo "$as_me:3713: result: $cf_with_tests" >&5
3714 echo "${ECHO_T}$cf_with_tests" >&6
3716 echo "$as_me:3716: checking if you wish to install curses.h" >&5
3717 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3719 # Check whether --with-curses-h or --without-curses-h was given.
3720 if test "${with_curses_h+set}" = set; then
3721 withval="$with_curses_h"
3722 with_curses_h=$withval
3726 echo "$as_me:3726: result: $with_curses_h" >&5
3727 echo "${ECHO_T}$with_curses_h" >&6
3729 modules_to_build="ncurses"
3730 test "X$cf_with_progs" != Xno && modules_to_build="$modules_to_build progs"
3731 modules_to_build="$modules_to_build panel menu form"
3733 test "$program_prefix" != NONE &&
3734 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3735 # Use a double $ so make ignores it.
3736 test "$program_suffix" != NONE &&
3737 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3738 # Double any \ or $. echo might interpret backslashes.
3739 # By default was `s,x,x', remove it if useless.
3740 cat <<\_ACEOF >conftest.sed
3741 s/[\\$]/&&/g;s/;s,x,x,$//
3743 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3746 for ac_prog in mawk gawk nawk awk
3748 # Extract the first word of "$ac_prog", so it can be a program name with args.
3749 set dummy $ac_prog; ac_word=$2
3750 echo "$as_me:3750: checking for $ac_word" >&5
3751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3752 if test "${ac_cv_prog_AWK+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3755 if test -n "$AWK"; then
3756 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3758 ac_save_IFS=$IFS; IFS=$ac_path_separator
3760 for ac_dir in $ac_dummy; do
3762 test -z "$ac_dir" && ac_dir=.
3763 $as_executable_p "$ac_dir/$ac_word" || continue
3764 ac_cv_prog_AWK="$ac_prog"
3765 echo "$as_me:3765: found $ac_dir/$ac_word" >&5
3772 if test -n "$AWK"; then
3773 echo "$as_me:3773: result: $AWK" >&5
3774 echo "${ECHO_T}$AWK" >&6
3776 echo "$as_me:3776: result: no" >&5
3777 echo "${ECHO_T}no" >&6
3780 test -n "$AWK" && break
3783 test -z "$AWK" && { { echo "$as_me:3783: error: No awk program found" >&5
3784 echo "$as_me: error: No awk program found" >&2;}
3785 { (exit 1); exit 1; }; }
3787 # Find a good install program. We prefer a C program (faster),
3788 # so one script is as good as another. But avoid the broken or
3789 # incompatible versions:
3790 # SysV /etc/install, /usr/sbin/install
3791 # SunOS /usr/etc/install
3792 # IRIX /sbin/install
3794 # AmigaOS /C/install, which installs bootblocks on floppy discs
3795 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3796 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3797 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3798 # ./install, which can be erroneously created by make from ./install.sh.
3799 echo "$as_me:3799: checking for a BSD compatible install" >&5
3800 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3801 if test -z "$INSTALL"; then
3802 if test "${ac_cv_path_install+set}" = set; then
3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3805 ac_save_IFS=$IFS; IFS=$ac_path_separator
3806 for ac_dir in $PATH; do
3808 # Account for people who put trailing slashes in PATH elements.
3810 / | ./ | .// | /cC/* \
3811 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3814 # OSF1 and SCO ODT 3.0 have their own names for install.
3815 # Don't use installbsd from OSF since it installs stuff as root
3817 for ac_prog in ginstall scoinst install; do
3818 if $as_executable_p "$ac_dir/$ac_prog"; then
3819 if test $ac_prog = install &&
3820 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3821 # AIX install. It has an incompatible calling convention.
3823 elif test $ac_prog = install &&
3824 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3825 # program-specific install script used by HP pwplus--don't use.
3828 ac_cv_path_install="$ac_dir/$ac_prog -c"
3838 if test "${ac_cv_path_install+set}" = set; then
3839 INSTALL=$ac_cv_path_install
3841 # As a last resort, use the slow shell script. We don't cache a
3842 # path for INSTALL within a source directory, because that will
3843 # break other packages using the cache if that directory is
3844 # removed, or if the path is relative.
3845 INSTALL=$ac_install_sh
3848 echo "$as_me:3848: result: $INSTALL" >&5
3849 echo "${ECHO_T}$INSTALL" >&6
3851 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3852 # It thinks the first close brace ends the variable substitution.
3853 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3855 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3857 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3863 cf_dir=`echo "$INSTALL" | sed -e 's%/[^/]*$%%'`
3864 test -z "$cf_dir" && cf_dir=.
3865 INSTALL="`cd \"$cf_dir\" && pwd`"/"`echo "$INSTALL" | sed -e 's%^.*/%%'`"
3869 for ac_prog in lint cppcheck splint
3871 # Extract the first word of "$ac_prog", so it can be a program name with args.
3872 set dummy $ac_prog; ac_word=$2
3873 echo "$as_me:3873: checking for $ac_word" >&5
3874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3875 if test "${ac_cv_prog_LINT+set}" = set; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
3878 if test -n "$LINT"; then
3879 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3881 ac_save_IFS=$IFS; IFS=$ac_path_separator
3883 for ac_dir in $ac_dummy; do
3885 test -z "$ac_dir" && ac_dir=.
3886 $as_executable_p "$ac_dir/$ac_word" || continue
3887 ac_cv_prog_LINT="$ac_prog"
3888 echo "$as_me:3888: found $ac_dir/$ac_word" >&5
3894 LINT=$ac_cv_prog_LINT
3895 if test -n "$LINT"; then
3896 echo "$as_me:3896: result: $LINT" >&5
3897 echo "${ECHO_T}$LINT" >&6
3899 echo "$as_me:3899: result: no" >&5
3900 echo "${ECHO_T}no" >&6
3903 test -n "$LINT" && break
3907 (xcppcheck|x*/cppcheck)
3908 test -z "$LINT_OPTS" && LINT_OPTS="--enable=all"
3912 echo "$as_me:3912: checking whether ln -s works" >&5
3913 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3915 if test "$LN_S" = "ln -s"; then
3916 echo "$as_me:3916: result: yes" >&5
3917 echo "${ECHO_T}yes" >&6
3919 echo "$as_me:3919: result: no, using $LN_S" >&5
3920 echo "${ECHO_T}no, using $LN_S" >&6
3923 echo "$as_me:3923: checking if $LN_S -f options work" >&5
3924 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3926 rm -f conf$$.src conf$$dst
3928 echo first >conf$$.src
3929 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3934 rm -f conf$$.dst conf$$src
3935 echo "$as_me:3935: result: $cf_prog_ln_sf" >&5
3936 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3938 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3940 echo "$as_me:3940: checking for long file names" >&5
3941 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3942 if test "${ac_cv_sys_long_file_names+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3945 ac_cv_sys_long_file_names=yes
3946 # Test for long file names in all the places we know might matter:
3947 # . the current directory, where building will happen
3948 # $prefix/lib where we will be installing things
3949 # $exec_prefix/lib likewise
3950 # eval it to expand exec_prefix.
3951 # $TMPDIR if set, where it might want to write temporary files
3952 # if $TMPDIR is not set:
3953 # /tmp where it might want to write temporary files
3956 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3959 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3961 for ac_dir in . $ac_tmpdirs `eval echo "$prefix/lib" "$exec_prefix/lib"` ; do
3962 test -d "$ac_dir" || continue
3963 test -w "$ac_dir" || continue # It is less confusing to not echo anything here.
3964 ac_xdir=$ac_dir/cf$$
3965 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
3966 ac_tf1=$ac_xdir/conftest9012345
3967 ac_tf2=$ac_xdir/conftest9012346
3968 (echo 1 >"$ac_tf1") 2>/dev/null
3969 (echo 2 >"$ac_tf2") 2>/dev/null
3970 ac_val=`cat "$ac_tf1" 2>/dev/null`
3971 if test ! -f "$ac_tf1" || test "$ac_val" != 1; then
3972 ac_cv_sys_long_file_names=no
3973 rm -rf "$ac_xdir" 2>/dev/null
3976 rm -rf "$ac_xdir" 2>/dev/null
3979 echo "$as_me:3979: result: $ac_cv_sys_long_file_names" >&5
3980 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3981 if test "$ac_cv_sys_long_file_names" = yes; then
3983 cat >>confdefs.h <<\EOF
3984 #define HAVE_LONG_FILE_NAMES 1
3989 # Provide for renaming "ncurses5-config" to "ncurses5X-config", etc., in case
3990 # of package conflict.
3993 # Check whether --with-config-suffix or --without-config-suffix was given.
3994 if test "${with_config_suffix+set}" = set; then
3995 withval="$with_config_suffix"
3998 { echo "$as_me:3998: WARNING: expected a value for config-suffix option" >&5
3999 echo "$as_me: WARNING: expected a value for config-suffix option" >&2;}
4001 (*) cf_config_suffix="$withval"
4006 # If we find pkg-config, check if we should install the ".pc" files.
4008 echo "$as_me:4008: checking if you want to use pkg-config" >&5
4009 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
4011 # Check whether --with-pkg-config or --without-pkg-config was given.
4012 if test "${with_pkg_config+set}" = set; then
4013 withval="$with_pkg_config"
4014 cf_pkg_config=$withval
4018 echo "$as_me:4018: result: $cf_pkg_config" >&5
4019 echo "${ECHO_T}$cf_pkg_config" >&6
4021 case "$cf_pkg_config" in
4027 if test -n "$ac_tool_prefix"; then
4028 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4029 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4030 echo "$as_me:4030: checking for $ac_word" >&5
4031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4032 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
4037 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4040 ac_save_IFS=$IFS; IFS=$ac_path_separator
4042 for ac_dir in $ac_dummy; do
4044 test -z "$ac_dir" && ac_dir=.
4045 if $as_executable_p "$ac_dir/$ac_word"; then
4046 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4047 echo "$as_me:4047: found $ac_dir/$ac_word" >&5
4055 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4057 if test -n "$PKG_CONFIG"; then
4058 echo "$as_me:4058: result: $PKG_CONFIG" >&5
4059 echo "${ECHO_T}$PKG_CONFIG" >&6
4061 echo "$as_me:4061: result: no" >&5
4062 echo "${ECHO_T}no" >&6
4066 if test -z "$ac_cv_path_PKG_CONFIG"; then
4067 ac_pt_PKG_CONFIG=$PKG_CONFIG
4068 # Extract the first word of "pkg-config", so it can be a program name with args.
4069 set dummy pkg-config; ac_word=$2
4070 echo "$as_me:4070: checking for $ac_word" >&5
4071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4072 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4075 case $ac_pt_PKG_CONFIG in
4077 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4080 ac_save_IFS=$IFS; IFS=$ac_path_separator
4082 for ac_dir in $ac_dummy; do
4084 test -z "$ac_dir" && ac_dir=.
4085 if $as_executable_p "$ac_dir/$ac_word"; then
4086 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
4087 echo "$as_me:4087: found $ac_dir/$ac_word" >&5
4092 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
4096 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4098 if test -n "$ac_pt_PKG_CONFIG"; then
4099 echo "$as_me:4099: result: $ac_pt_PKG_CONFIG" >&5
4100 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4102 echo "$as_me:4102: result: no" >&5
4103 echo "${ECHO_T}no" >&6
4106 PKG_CONFIG=$ac_pt_PKG_CONFIG
4108 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4117 test -z "$PKG_CONFIG" && PKG_CONFIG=none
4118 if test "$PKG_CONFIG" != none ; then
4120 if test "x$prefix" != xNONE; then
4121 cf_path_syntax="$prefix"
4123 cf_path_syntax="$ac_default_prefix"
4126 case ".$PKG_CONFIG" in
4131 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4133 (.\$\{*prefix\}*|.\$\{*dir\}*)
4134 eval PKG_CONFIG="$PKG_CONFIG"
4135 case ".$PKG_CONFIG" in
4137 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
4142 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
4145 { { echo "$as_me:4145: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
4146 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
4147 { (exit 1); exit 1; }; }
4151 elif test "x$cf_pkg_config" != xno ; then
4152 { echo "$as_me:4152: WARNING: pkg-config is not installed" >&5
4153 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
4156 case "$PKG_CONFIG" in
4158 echo "$as_me:4158: checking for pkg-config library directory" >&5
4159 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
4162 echo "$as_me:4162: checking for $PKG_CONFIG library directory" >&5
4163 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
4167 # if $PKG_CONFIG_LIBDIR is set, try to use that
4168 if test -n "$PKG_CONFIG_PATH"; then
4169 cf_search_path=`echo "$PKG_CONFIG_PATH" | sed -e 's/:/ /g' -e 's,^[ ]*,,' -e 's,[ ]*$,,'`
4170 elif test -n "$PKG_CONFIG_LIBDIR"; then
4171 cf_search_path=`echo "$PKG_CONFIG_LIBDIR" | sed -e 's/:/ /g' -e 's,^[ ]*,,' -e 's,[ ]*$,,'`
4176 # if the option is used, let that override. otherwise default to "libdir"
4178 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
4179 if test "${with_pkg_config_libdir+set}" = set; then
4180 withval="$with_pkg_config_libdir"
4181 cf_search_path=$withval
4183 test "x$PKG_CONFIG" != xnone && test -z "$cf_search_path" && cf_search_path=libdir
4186 case "x$cf_search_path" in
4188 PKG_CONFIG_LIBDIR='${libdir}/pkgconfig'
4189 echo "$as_me:4189: result: $PKG_CONFIG_LIBDIR" >&5
4190 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
4199 PKG_CONFIG_LIBDIR="$cf_search_path"
4200 echo "$as_me:4200: result: $PKG_CONFIG_LIBDIR" >&5
4201 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
4205 echo "$as_me:4205: result: auto" >&5
4206 echo "${ECHO_T}auto" >&6
4208 # Look for the library directory using the same prefix as the executable
4209 echo "$as_me:4209: checking for search-list" >&5
4210 echo $ECHO_N "checking for search-list... $ECHO_C" >&6
4211 if test "x$PKG_CONFIG" != xnone
4213 # works for pkg-config since version 0.24 (2009)
4214 # works for pkgconf since version 0.8.3 (2012)
4215 for cf_pkg_program in \
4216 `echo "$PKG_CONFIG" | sed -e 's,^.*/,,'` \
4220 cf_search_path=`"$PKG_CONFIG" --variable=pc_path "$cf_pkg_program" 2>/dev/null | tr : ' '`
4221 test -n "$cf_search_path" && break
4224 # works for pkg-config since import in 2005 of original 2001 HP code.
4225 test -z "$cf_search_path" && \
4227 "$PKG_CONFIG" --debug --exists no-such-package 2>&1 | $AWK "\
4228 /^Scanning directory (#[1-9][0-9]* )?'.*'$/{ \
4229 sub(\"^[^']*'\",\"\"); \
4230 sub(\"'.*\",\"\"); \
4231 printf \" %s\", \\$0; } \
4236 echo "$as_me:4236: result: $cf_search_path" >&5
4237 echo "${ECHO_T}$cf_search_path" >&6
4240 { { echo "$as_me:4240: error: Unexpected option value: $cf_search_path" >&5
4241 echo "$as_me: error: Unexpected option value: $cf_search_path" >&2;}
4242 { (exit 1); exit 1; }; }
4246 if test -n "$cf_search_path"
4248 echo "$as_me:4248: checking for first directory" >&5
4249 echo $ECHO_N "checking for first directory... $ECHO_C" >&6
4250 cf_pkg_config_path=none
4251 for cf_config in $cf_search_path
4253 if test -d "$cf_config"
4255 cf_pkg_config_path=$cf_config
4259 echo "$as_me:4259: result: $cf_pkg_config_path" >&5
4260 echo "${ECHO_T}$cf_pkg_config_path" >&6
4262 if test "x$cf_pkg_config_path" != xnone ; then
4263 # limit this to the first directory found
4264 PKG_CONFIG_LIBDIR="$cf_pkg_config_path"
4267 if test -z "$PKG_CONFIG_LIBDIR" && test -n "$cf_search_path"
4269 echo "$as_me:4269: checking for workaround" >&5
4270 echo $ECHO_N "checking for workaround... $ECHO_C" >&6
4271 if test "$prefix" = "NONE" ; then
4272 cf_prefix="$ac_default_prefix"
4276 eval cf_libdir=$libdir
4277 cf_libdir=`echo "$cf_libdir" | sed -e "s,^NONE,$cf_prefix,"`
4279 for cf_config in $cf_search_path
4282 $cf_libdir/pkgconfig)
4283 PKG_CONFIG_LIBDIR=$cf_libdir/pkgconfig
4287 test -z "$cf_backup" && cf_backup=$cf_config
4291 test -z "$PKG_CONFIG_LIBDIR" && PKG_CONFIG_LIBDIR=$cf_backup
4292 echo "$as_me:4292: result: $PKG_CONFIG_LIBDIR" >&5
4293 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
4297 if test "x$PKG_CONFIG" != xnone
4299 echo "$as_me:4299: checking if we should install .pc files for $PKG_CONFIG" >&5
4300 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
4302 echo "$as_me:4302: checking if we should install .pc files" >&5
4303 echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6
4306 # Check whether --enable-pc-files or --disable-pc-files was given.
4307 if test "${enable_pc_files+set}" = set; then
4308 enableval="$enable_pc_files"
4309 enable_pc_files=$enableval
4313 echo "$as_me:4313: result: $enable_pc_files" >&5
4314 echo "${ECHO_T}$enable_pc_files" >&6
4316 if test "x$enable_pc_files" != xno
4319 case "x$PKG_CONFIG_LIBDIR" in
4321 { echo "$as_me:4321: WARNING: no PKG_CONFIG_LIBDIR was found" >&5
4322 echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;}
4325 cf_pkg_config_libdir="$PKG_CONFIG_LIBDIR"
4327 if test "x$prefix" != xNONE; then
4328 cf_path_syntax="$prefix"
4330 cf_path_syntax="$ac_default_prefix"
4333 case ".$cf_pkg_config_libdir" in
4338 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4340 (.\$\{*prefix\}*|.\$\{*dir\}*)
4341 eval cf_pkg_config_libdir="$cf_pkg_config_libdir"
4342 case ".$cf_pkg_config_libdir" in
4344 cf_pkg_config_libdir=`echo "$cf_pkg_config_libdir" | sed -e s%NONE%$cf_path_syntax%`
4349 cf_pkg_config_libdir=`echo "$cf_pkg_config_libdir" | sed -e s%NONE%$cf_path_syntax%`
4352 { { echo "$as_me:4352: error: expected a pathname, not \"$cf_pkg_config_libdir\"" >&5
4353 echo "$as_me: error: expected a pathname, not \"$cf_pkg_config_libdir\"" >&2;}
4354 { (exit 1); exit 1; }; }
4364 if test -z "$MAKE_PC_FILES"
4366 echo "$as_me:4366: checking for suffix to add to pc-files" >&5
4367 echo $ECHO_N "checking for suffix to add to pc-files... $ECHO_C" >&6
4369 # Check whether --with-pc-suffix or --without-pc-suffix was given.
4370 if test "${with_pc_suffix+set}" = set; then
4371 withval="$with_pc_suffix"
4376 (*) PC_MODULE_SUFFIX="$withval"
4380 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
4381 echo "$as_me:4381: result: $PC_MODULE_SUFFIX" >&5
4382 echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6
4383 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
4387 echo "$as_me:4387: checking if we should assume mixed-case filenames" >&5
4388 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
4390 # Check whether --enable-mixed-case or --disable-mixed-case was given.
4391 if test "${enable_mixed_case+set}" = set; then
4392 enableval="$enable_mixed_case"
4393 enable_mixedcase=$enableval
4395 enable_mixedcase=auto
4397 echo "$as_me:4397: result: $enable_mixedcase" >&5
4398 echo "${ECHO_T}$enable_mixedcase" >&6
4399 if test "$enable_mixedcase" = "auto" ; then
4401 echo "$as_me:4401: checking if filesystem supports mixed-case filenames" >&5
4402 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
4403 if test "${cf_cv_mixedcase+set}" = set; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4407 if test "$cross_compiling" = yes ; then
4408 case "$target_alias" in
4409 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*|darwin*)
4417 rm -f conftest CONFTEST
4419 if test -f CONFTEST ; then
4424 rm -f conftest CONFTEST
4428 echo "$as_me:4428: result: $cf_cv_mixedcase" >&5
4429 echo "${ECHO_T}$cf_cv_mixedcase" >&6
4430 test "$cf_cv_mixedcase" = yes &&
4431 cat >>confdefs.h <<\EOF
4432 #define MIXEDCASE_FILENAMES 1
4436 cf_cv_mixedcase=$enable_mixedcase
4437 if test "x$enable_mixedcase" = "xyes" ; then
4439 cat >>confdefs.h <<\EOF
4440 #define MIXEDCASE_FILENAMES 1
4446 # do this after mixed-case option (tags/TAGS is not as important as tic).
4447 echo "$as_me:4447: checking whether ${MAKE-make} sets \${MAKE}" >&5
4448 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
4449 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4450 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4451 echo $ECHO_N "(cached) $ECHO_C" >&6
4453 cat >conftest.make <<\EOF
4455 @echo 'ac_maketemp="${MAKE}"'
4457 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4458 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4459 if test -n "$ac_maketemp"; then
4460 eval ac_cv_prog_make_${ac_make}_set=yes
4462 eval ac_cv_prog_make_${ac_make}_set=no
4466 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4467 echo "$as_me:4467: result: yes" >&5
4468 echo "${ECHO_T}yes" >&6
4471 echo "$as_me:4471: result: no" >&5
4472 echo "${ECHO_T}no" >&6
4473 SET_MAKE="MAKE=${MAKE-make}"
4476 echo "$as_me:4476: checking for \".PHONY\" make-support" >&5
4477 echo $ECHO_N "checking for \".PHONY\" make-support... $ECHO_C" >&6
4478 if test "${cf_cv_make_PHONY+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4484 mkdir conftest || exit 1
4486 cat >makefile <<'CF_EOF'
4490 @echo "** making $@ $(DATA)"
4492 @echo "** making $@ $(DATA)"
4494 @echo "** making $@ $(DATA)"
4497 @echo "** making $@ $(DATA)"
4500 for cf_data in 1 2 3
4502 ${MAKE:-make} always DATA=$cf_data
4503 ${MAKE:-make} once DATA=$cf_data
4504 ${MAKE:-make} -t always once
4505 if test -f always ; then
4506 echo "no (case 1)" > ../conftest.tmp
4507 elif test ! -f always.out ; then
4508 echo "no (case 2)" > ../conftest.tmp
4509 elif test ! -f once.out ; then
4510 echo "no (case 3)" > ../conftest.tmp
4511 elif ! cmp -s always.out once.out ; then
4512 echo "no (case 4)" > ../conftest.tmp
4513 diff always.out once.out
4515 cf_check="`cat always.out`"
4516 if test "x$cf_check" != "x$cf_data" ; then
4517 echo "no (case 5)" > ../conftest.tmp
4519 echo yes > ../conftest.tmp
4527 cf_cv_make_PHONY="`cat conftest.tmp`"
4531 echo "$as_me:4531: result: $cf_cv_make_PHONY" >&5
4532 echo "${ECHO_T}$cf_cv_make_PHONY" >&6
4535 test "x$cf_cv_make_PHONY" = xyes && MAKE_PHONY=
4536 test "x$cf_cv_make_PHONY" != xyes && MAKE_NO_PHONY=
4538 for ac_prog in exctags ctags
4540 # Extract the first word of "$ac_prog", so it can be a program name with args.
4541 set dummy $ac_prog; ac_word=$2
4542 echo "$as_me:4542: checking for $ac_word" >&5
4543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4544 if test "${ac_cv_prog_CTAGS+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 if test -n "$CTAGS"; then
4548 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
4550 ac_save_IFS=$IFS; IFS=$ac_path_separator
4552 for ac_dir in $ac_dummy; do
4554 test -z "$ac_dir" && ac_dir=.
4555 $as_executable_p "$ac_dir/$ac_word" || continue
4556 ac_cv_prog_CTAGS="$ac_prog"
4557 echo "$as_me:4557: found $ac_dir/$ac_word" >&5
4563 CTAGS=$ac_cv_prog_CTAGS
4564 if test -n "$CTAGS"; then
4565 echo "$as_me:4565: result: $CTAGS" >&5
4566 echo "${ECHO_T}$CTAGS" >&6
4568 echo "$as_me:4568: result: no" >&5
4569 echo "${ECHO_T}no" >&6
4572 test -n "$CTAGS" && break
4575 for ac_prog in exetags etags
4577 # Extract the first word of "$ac_prog", so it can be a program name with args.
4578 set dummy $ac_prog; ac_word=$2
4579 echo "$as_me:4579: checking for $ac_word" >&5
4580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4581 if test "${ac_cv_prog_ETAGS+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4584 if test -n "$ETAGS"; then
4585 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
4587 ac_save_IFS=$IFS; IFS=$ac_path_separator
4589 for ac_dir in $ac_dummy; do
4591 test -z "$ac_dir" && ac_dir=.
4592 $as_executable_p "$ac_dir/$ac_word" || continue
4593 ac_cv_prog_ETAGS="$ac_prog"
4594 echo "$as_me:4594: found $ac_dir/$ac_word" >&5
4600 ETAGS=$ac_cv_prog_ETAGS
4601 if test -n "$ETAGS"; then
4602 echo "$as_me:4602: result: $ETAGS" >&5
4603 echo "${ECHO_T}$ETAGS" >&6
4605 echo "$as_me:4605: result: no" >&5
4606 echo "${ECHO_T}no" >&6
4609 test -n "$ETAGS" && break
4612 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
4613 set dummy ${CTAGS:-ctags}; ac_word=$2
4614 echo "$as_me:4614: checking for $ac_word" >&5
4615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4616 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
4617 echo $ECHO_N "(cached) $ECHO_C" >&6
4619 if test -n "$MAKE_LOWER_TAGS"; then
4620 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
4622 ac_save_IFS=$IFS; IFS=$ac_path_separator
4624 for ac_dir in $ac_dummy; do
4626 test -z "$ac_dir" && ac_dir=.
4627 $as_executable_p "$ac_dir/$ac_word" || continue
4628 ac_cv_prog_MAKE_LOWER_TAGS="yes"
4629 echo "$as_me:4629: found $ac_dir/$ac_word" >&5
4633 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
4636 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
4637 if test -n "$MAKE_LOWER_TAGS"; then
4638 echo "$as_me:4638: result: $MAKE_LOWER_TAGS" >&5
4639 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
4641 echo "$as_me:4641: result: no" >&5
4642 echo "${ECHO_T}no" >&6
4645 if test "$cf_cv_mixedcase" = yes ; then
4646 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
4647 set dummy ${ETAGS:-etags}; ac_word=$2
4648 echo "$as_me:4648: checking for $ac_word" >&5
4649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4650 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4653 if test -n "$MAKE_UPPER_TAGS"; then
4654 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
4656 ac_save_IFS=$IFS; IFS=$ac_path_separator
4658 for ac_dir in $ac_dummy; do
4660 test -z "$ac_dir" && ac_dir=.
4661 $as_executable_p "$ac_dir/$ac_word" || continue
4662 ac_cv_prog_MAKE_UPPER_TAGS="yes"
4663 echo "$as_me:4663: found $ac_dir/$ac_word" >&5
4667 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
4670 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
4671 if test -n "$MAKE_UPPER_TAGS"; then
4672 echo "$as_me:4672: result: $MAKE_UPPER_TAGS" >&5
4673 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
4675 echo "$as_me:4675: result: no" >&5
4676 echo "${ECHO_T}no" >&6
4683 if test "$MAKE_UPPER_TAGS" = yes ; then
4689 if test "$MAKE_LOWER_TAGS" = yes ; then
4695 echo "$as_me:4695: checking for makeflags variable" >&5
4696 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
4697 if test "${cf_cv_makeflags+set}" = set; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
4702 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4704 cat >cf_makeflags.tmp <<CF_EOF
4707 @ echo '.$cf_option'
4709 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | ${FGREP-fgrep} -v "ing directory" | sed -e 's,[ ]*$,,'`
4710 case "$cf_result" in
4712 cf_result="`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`"
4713 case "$cf_result" in
4714 (.*CC=*) cf_cv_makeflags=
4716 (*) cf_cv_makeflags=$cf_option
4725 echo "${as_me:-configure}:4725: testing given option \"$cf_option\",no match \"$cf_result\" ..." 1>&5
4730 rm -f cf_makeflags.tmp
4733 echo "$as_me:4733: result: $cf_cv_makeflags" >&5
4734 echo "${ECHO_T}$cf_cv_makeflags" >&6
4736 if test -n "$ac_tool_prefix"; then
4737 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4738 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4739 echo "$as_me:4739: checking for $ac_word" >&5
4740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4741 if test "${ac_cv_prog_RANLIB+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4744 if test -n "$RANLIB"; then
4745 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4747 ac_save_IFS=$IFS; IFS=$ac_path_separator
4749 for ac_dir in $ac_dummy; do
4751 test -z "$ac_dir" && ac_dir=.
4752 $as_executable_p "$ac_dir/$ac_word" || continue
4753 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4754 echo "$as_me:4754: found $ac_dir/$ac_word" >&5
4760 RANLIB=$ac_cv_prog_RANLIB
4761 if test -n "$RANLIB"; then
4762 echo "$as_me:4762: result: $RANLIB" >&5
4763 echo "${ECHO_T}$RANLIB" >&6
4765 echo "$as_me:4765: result: no" >&5
4766 echo "${ECHO_T}no" >&6
4770 if test -z "$ac_cv_prog_RANLIB"; then
4771 ac_ct_RANLIB=$RANLIB
4772 # Extract the first word of "ranlib", so it can be a program name with args.
4773 set dummy ranlib; ac_word=$2
4774 echo "$as_me:4774: checking for $ac_word" >&5
4775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4776 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4779 if test -n "$ac_ct_RANLIB"; then
4780 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4782 ac_save_IFS=$IFS; IFS=$ac_path_separator
4784 for ac_dir in $ac_dummy; do
4786 test -z "$ac_dir" && ac_dir=.
4787 $as_executable_p "$ac_dir/$ac_word" || continue
4788 ac_cv_prog_ac_ct_RANLIB="ranlib"
4789 echo "$as_me:4789: found $ac_dir/$ac_word" >&5
4793 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4796 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4797 if test -n "$ac_ct_RANLIB"; then
4798 echo "$as_me:4798: result: $ac_ct_RANLIB" >&5
4799 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4801 echo "$as_me:4801: result: no" >&5
4802 echo "${ECHO_T}no" >&6
4805 RANLIB=$ac_ct_RANLIB
4807 RANLIB="$ac_cv_prog_RANLIB"
4810 if test -n "$ac_tool_prefix"; then
4811 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4812 set dummy ${ac_tool_prefix}ld; ac_word=$2
4813 echo "$as_me:4813: checking for $ac_word" >&5
4814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4815 if test "${ac_cv_prog_LD+set}" = set; then
4816 echo $ECHO_N "(cached) $ECHO_C" >&6
4818 if test -n "$LD"; then
4819 ac_cv_prog_LD="$LD" # Let the user override the test.
4821 ac_save_IFS=$IFS; IFS=$ac_path_separator
4823 for ac_dir in $ac_dummy; do
4825 test -z "$ac_dir" && ac_dir=.
4826 $as_executable_p "$ac_dir/$ac_word" || continue
4827 ac_cv_prog_LD="${ac_tool_prefix}ld"
4828 echo "$as_me:4828: found $ac_dir/$ac_word" >&5
4835 if test -n "$LD"; then
4836 echo "$as_me:4836: result: $LD" >&5
4837 echo "${ECHO_T}$LD" >&6
4839 echo "$as_me:4839: result: no" >&5
4840 echo "${ECHO_T}no" >&6
4844 if test -z "$ac_cv_prog_LD"; then
4846 # Extract the first word of "ld", so it can be a program name with args.
4847 set dummy ld; ac_word=$2
4848 echo "$as_me:4848: checking for $ac_word" >&5
4849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4850 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4853 if test -n "$ac_ct_LD"; then
4854 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4856 ac_save_IFS=$IFS; IFS=$ac_path_separator
4858 for ac_dir in $ac_dummy; do
4860 test -z "$ac_dir" && ac_dir=.
4861 $as_executable_p "$ac_dir/$ac_word" || continue
4862 ac_cv_prog_ac_ct_LD="ld"
4863 echo "$as_me:4863: found $ac_dir/$ac_word" >&5
4867 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4870 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4871 if test -n "$ac_ct_LD"; then
4872 echo "$as_me:4872: result: $ac_ct_LD" >&5
4873 echo "${ECHO_T}$ac_ct_LD" >&6
4875 echo "$as_me:4875: result: no" >&5
4876 echo "${ECHO_T}no" >&6
4884 if test -n "$ac_tool_prefix"; then
4885 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4886 set dummy ${ac_tool_prefix}ar; ac_word=$2
4887 echo "$as_me:4887: checking for $ac_word" >&5
4888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4889 if test "${ac_cv_prog_AR+set}" = set; then
4890 echo $ECHO_N "(cached) $ECHO_C" >&6
4892 if test -n "$AR"; then
4893 ac_cv_prog_AR="$AR" # Let the user override the test.
4895 ac_save_IFS=$IFS; IFS=$ac_path_separator
4897 for ac_dir in $ac_dummy; do
4899 test -z "$ac_dir" && ac_dir=.
4900 $as_executable_p "$ac_dir/$ac_word" || continue
4901 ac_cv_prog_AR="${ac_tool_prefix}ar"
4902 echo "$as_me:4902: found $ac_dir/$ac_word" >&5
4909 if test -n "$AR"; then
4910 echo "$as_me:4910: result: $AR" >&5
4911 echo "${ECHO_T}$AR" >&6
4913 echo "$as_me:4913: result: no" >&5
4914 echo "${ECHO_T}no" >&6
4918 if test -z "$ac_cv_prog_AR"; then
4920 # Extract the first word of "ar", so it can be a program name with args.
4921 set dummy ar; ac_word=$2
4922 echo "$as_me:4922: checking for $ac_word" >&5
4923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4924 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4925 echo $ECHO_N "(cached) $ECHO_C" >&6
4927 if test -n "$ac_ct_AR"; then
4928 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4930 ac_save_IFS=$IFS; IFS=$ac_path_separator
4932 for ac_dir in $ac_dummy; do
4934 test -z "$ac_dir" && ac_dir=.
4935 $as_executable_p "$ac_dir/$ac_word" || continue
4936 ac_cv_prog_ac_ct_AR="ar"
4937 echo "$as_me:4937: found $ac_dir/$ac_word" >&5
4941 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4944 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4945 if test -n "$ac_ct_AR"; then
4946 echo "$as_me:4946: result: $ac_ct_AR" >&5
4947 echo "${ECHO_T}$ac_ct_AR" >&6
4949 echo "$as_me:4949: result: no" >&5
4950 echo "${ECHO_T}no" >&6
4958 if test -n "$ac_tool_prefix"; then
4959 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4960 set dummy ${ac_tool_prefix}nm; ac_word=$2
4961 echo "$as_me:4961: checking for $ac_word" >&5
4962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4963 if test "${ac_cv_prog_NM+set}" = set; then
4964 echo $ECHO_N "(cached) $ECHO_C" >&6
4966 if test -n "$NM"; then
4967 ac_cv_prog_NM="$NM" # Let the user override the test.
4969 ac_save_IFS=$IFS; IFS=$ac_path_separator
4971 for ac_dir in $ac_dummy; do
4973 test -z "$ac_dir" && ac_dir=.
4974 $as_executable_p "$ac_dir/$ac_word" || continue
4975 ac_cv_prog_NM="${ac_tool_prefix}nm"
4976 echo "$as_me:4976: found $ac_dir/$ac_word" >&5
4983 if test -n "$NM"; then
4984 echo "$as_me:4984: result: $NM" >&5
4985 echo "${ECHO_T}$NM" >&6
4987 echo "$as_me:4987: result: no" >&5
4988 echo "${ECHO_T}no" >&6
4992 if test -z "$ac_cv_prog_NM"; then
4994 # Extract the first word of "nm", so it can be a program name with args.
4995 set dummy nm; ac_word=$2
4996 echo "$as_me:4996: checking for $ac_word" >&5
4997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4998 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4999 echo $ECHO_N "(cached) $ECHO_C" >&6
5001 if test -n "$ac_ct_NM"; then
5002 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5004 ac_save_IFS=$IFS; IFS=$ac_path_separator
5006 for ac_dir in $ac_dummy; do
5008 test -z "$ac_dir" && ac_dir=.
5009 $as_executable_p "$ac_dir/$ac_word" || continue
5010 ac_cv_prog_ac_ct_NM="nm"
5011 echo "$as_me:5011: found $ac_dir/$ac_word" >&5
5015 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
5018 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5019 if test -n "$ac_ct_NM"; then
5020 echo "$as_me:5020: result: $ac_ct_NM" >&5
5021 echo "${ECHO_T}$ac_ct_NM" >&6
5023 echo "$as_me:5023: result: no" >&5
5024 echo "${ECHO_T}no" >&6
5032 if test -n "$ac_tool_prefix"; then
5033 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5034 set dummy ${ac_tool_prefix}ar; ac_word=$2
5035 echo "$as_me:5035: checking for $ac_word" >&5
5036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5037 if test "${ac_cv_prog_AR+set}" = set; then
5038 echo $ECHO_N "(cached) $ECHO_C" >&6
5040 if test -n "$AR"; then
5041 ac_cv_prog_AR="$AR" # Let the user override the test.
5043 ac_save_IFS=$IFS; IFS=$ac_path_separator
5045 for ac_dir in $ac_dummy; do
5047 test -z "$ac_dir" && ac_dir=.
5048 $as_executable_p "$ac_dir/$ac_word" || continue
5049 ac_cv_prog_AR="${ac_tool_prefix}ar"
5050 echo "$as_me:5050: found $ac_dir/$ac_word" >&5
5057 if test -n "$AR"; then
5058 echo "$as_me:5058: result: $AR" >&5
5059 echo "${ECHO_T}$AR" >&6
5061 echo "$as_me:5061: result: no" >&5
5062 echo "${ECHO_T}no" >&6
5066 if test -z "$ac_cv_prog_AR"; then
5068 # Extract the first word of "ar", so it can be a program name with args.
5069 set dummy ar; ac_word=$2
5070 echo "$as_me:5070: checking for $ac_word" >&5
5071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5072 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5075 if test -n "$ac_ct_AR"; then
5076 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5078 ac_save_IFS=$IFS; IFS=$ac_path_separator
5080 for ac_dir in $ac_dummy; do
5082 test -z "$ac_dir" && ac_dir=.
5083 $as_executable_p "$ac_dir/$ac_word" || continue
5084 ac_cv_prog_ac_ct_AR="ar"
5085 echo "$as_me:5085: found $ac_dir/$ac_word" >&5
5089 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
5092 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5093 if test -n "$ac_ct_AR"; then
5094 echo "$as_me:5094: result: $ac_ct_AR" >&5
5095 echo "${ECHO_T}$ac_ct_AR" >&6
5097 echo "$as_me:5097: result: no" >&5
5098 echo "${ECHO_T}no" >&6
5106 echo "$as_me:5106: checking for options to update archives" >&5
5107 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
5108 if test "${cf_cv_ar_flags+set}" = set; then
5109 echo $ECHO_N "(cached) $ECHO_C" >&6
5112 case "$cf_cv_system_name" in
5115 cat >mk_static_lib.sh <<-EOF
5120 exec \$MSVC_BIN -out:"\$out" \$@
5122 chmod +x mk_static_lib.sh
5123 AR=`pwd`/mk_static_lib.sh
5126 cf_cv_ar_flags=unknown
5127 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
5130 # check if $ARFLAGS already contains this choice
5131 if test "x$ARFLAGS" != "x" ; then
5132 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
5133 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
5139 rm -f "conftest.$ac_cv_objext"
5142 cat >"conftest.$ac_ext" <<EOF
5143 #line 5143 "configure"
5144 int testdata[3] = { 123, 456, 789 };
5146 if { (eval echo "$as_me:5146: \"$ac_compile\"") >&5
5147 (eval $ac_compile) 2>&5
5149 echo "$as_me:5149: \$? = $ac_status" >&5
5150 (exit "$ac_status"); } ; then
5151 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
5152 $AR $ARFLAGS "$cf_ar_flags" conftest.a "conftest.$ac_cv_objext" 2>&5 1>/dev/null
5153 if test -f conftest.a ; then
5154 cf_cv_ar_flags="$cf_ar_flags"
5158 test -n "$verbose" && echo " cannot compile test-program" 1>&6
5160 echo "${as_me:-configure}:5160: testing cannot compile test-program ..." 1>&5
5165 rm -f conftest.a "conftest.$ac_ext" "conftest.$ac_cv_objext"
5170 echo "$as_me:5170: result: $cf_cv_ar_flags" >&5
5171 echo "${ECHO_T}$cf_cv_ar_flags" >&6
5173 if test -n "$ARFLAGS" ; then
5174 if test -n "$cf_cv_ar_flags" ; then
5175 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
5178 ARFLAGS=$cf_cv_ar_flags
5181 echo "$as_me:5181: checking if you have specified an install-prefix" >&5
5182 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
5184 # Check whether --with-install-prefix or --without-install-prefix was given.
5185 if test "${with_install_prefix+set}" = set; then
5186 withval="$with_install_prefix"
5190 (*) DESTDIR="$withval"
5194 echo "$as_me:5194: result: $DESTDIR" >&5
5195 echo "${ECHO_T}$DESTDIR" >&6
5197 ###############################################################################
5199 # If we're cross-compiling, allow the user to override the tools and their
5200 # options. The configure script is oriented toward identifying the host
5201 # compiler, etc., but we need a build compiler to generate parts of the source.
5203 case "$cf_cv_system_name" in
5205 LDFLAGS="$LDFLAGS user32.lib"
5210 if test "$cross_compiling" = yes ; then
5212 # defaults that we might want to override
5213 : ${BUILD_CFLAGS:=''}
5214 : ${BUILD_CPPFLAGS:=''}
5215 : ${BUILD_LDFLAGS:=''}
5217 : ${BUILD_EXEEXT:='$x'}
5218 : ${BUILD_OBJEXT:='o'}
5220 # Check whether --with-build-cc or --without-build-cc was given.
5221 if test "${with_build_cc+set}" = set; then
5222 withval="$with_build_cc"
5225 for ac_prog in gcc clang c99 c89 cc cl
5227 # Extract the first word of "$ac_prog", so it can be a program name with args.
5228 set dummy $ac_prog; ac_word=$2
5229 echo "$as_me:5229: checking for $ac_word" >&5
5230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5231 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
5232 echo $ECHO_N "(cached) $ECHO_C" >&6
5234 if test -n "$BUILD_CC"; then
5235 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5237 ac_save_IFS=$IFS; IFS=$ac_path_separator
5239 for ac_dir in $ac_dummy; do
5241 test -z "$ac_dir" && ac_dir=.
5242 $as_executable_p "$ac_dir/$ac_word" || continue
5243 ac_cv_prog_BUILD_CC="$ac_prog"
5244 echo "$as_me:5244: found $ac_dir/$ac_word" >&5
5250 BUILD_CC=$ac_cv_prog_BUILD_CC
5251 if test -n "$BUILD_CC"; then
5252 echo "$as_me:5252: result: $BUILD_CC" >&5
5253 echo "${ECHO_T}$BUILD_CC" >&6
5255 echo "$as_me:5255: result: no" >&5
5256 echo "${ECHO_T}no" >&6
5259 test -n "$BUILD_CC" && break
5261 test -n "$BUILD_CC" || BUILD_CC="none"
5264 echo "$as_me:5264: checking for native build C compiler" >&5
5265 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
5266 echo "$as_me:5266: result: $BUILD_CC" >&5
5267 echo "${ECHO_T}$BUILD_CC" >&6
5269 echo "$as_me:5269: checking for native build C preprocessor" >&5
5270 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
5272 # Check whether --with-build-cpp or --without-build-cpp was given.
5273 if test "${with_build_cpp+set}" = set; then
5274 withval="$with_build_cpp"
5275 BUILD_CPP="$withval"
5277 BUILD_CPP='${BUILD_CC} -E'
5279 echo "$as_me:5279: result: $BUILD_CPP" >&5
5280 echo "${ECHO_T}$BUILD_CPP" >&6
5282 echo "$as_me:5282: checking for native build C flags" >&5
5283 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
5285 # Check whether --with-build-cflags or --without-build-cflags was given.
5286 if test "${with_build_cflags+set}" = set; then
5287 withval="$with_build_cflags"
5288 BUILD_CFLAGS="$withval"
5290 echo "$as_me:5290: result: $BUILD_CFLAGS" >&5
5291 echo "${ECHO_T}$BUILD_CFLAGS" >&6
5293 echo "$as_me:5293: checking for native build C preprocessor-flags" >&5
5294 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
5296 # Check whether --with-build-cppflags or --without-build-cppflags was given.
5297 if test "${with_build_cppflags+set}" = set; then
5298 withval="$with_build_cppflags"
5299 BUILD_CPPFLAGS="$withval"
5301 echo "$as_me:5301: result: $BUILD_CPPFLAGS" >&5
5302 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
5304 echo "$as_me:5304: checking for native build linker-flags" >&5
5305 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
5307 # Check whether --with-build-ldflags or --without-build-ldflags was given.
5308 if test "${with_build_ldflags+set}" = set; then
5309 withval="$with_build_ldflags"
5310 BUILD_LDFLAGS="$withval"
5312 echo "$as_me:5312: result: $BUILD_LDFLAGS" >&5
5313 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
5315 echo "$as_me:5315: checking for native build linker-libraries" >&5
5316 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
5318 # Check whether --with-build-libs or --without-build-libs was given.
5319 if test "${with_build_libs+set}" = set; then
5320 withval="$with_build_libs"
5321 BUILD_LIBS="$withval"
5323 echo "$as_me:5323: result: $BUILD_LIBS" >&5
5324 echo "${ECHO_T}$BUILD_LIBS" >&6
5326 # this assumes we're on Unix.
5330 : ${BUILD_CC:='${CC}'}
5332 echo "$as_me:5332: checking if the build-compiler \"$BUILD_CC\" works" >&5
5333 echo $ECHO_N "checking if the build-compiler \"$BUILD_CC\" works... $ECHO_C" >&6
5335 cf_save_crossed=$cross_compiling
5336 cf_save_ac_link=$ac_link
5338 cf_build_cppflags=$BUILD_CPPFLAGS
5339 test "$cf_build_cppflags" = "#" && cf_build_cppflags=
5340 ac_link='$BUILD_CC -o "conftest$ac_exeext" $BUILD_CFLAGS $cf_build_cppflags $BUILD_LDFLAGS "conftest.$ac_ext" $BUILD_LIBS >&5'
5342 if test "$cross_compiling" = yes; then
5343 cf_ok_build_cc=unknown
5345 cat >"conftest.$ac_ext" <<_ACEOF
5346 #line 5346 "configure"
5347 #include "confdefs.h"
5349 int main(int argc, char *argv[])
5351 ${cf_cv_main_return:-return}(argc < 0 || argv == 0 || argv[0] == 0);
5355 rm -f "conftest$ac_exeext"
5356 if { (eval echo "$as_me:5356: \"$ac_link\"") >&5
5357 (eval $ac_link) 2>&5
5359 echo "$as_me:5359: \$? = $ac_status" >&5
5360 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
5361 { (eval echo "$as_me:5361: \"$ac_try\"") >&5
5364 echo "$as_me:5364: \$? = $ac_status" >&5
5365 (exit "$ac_status"); }; }; then
5368 echo "$as_me: program exited with status $ac_status" >&5
5369 echo "$as_me: failed program was:" >&5
5370 cat "conftest.$ac_ext" >&5
5373 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
5376 cross_compiling=$cf_save_crossed
5377 ac_link=$cf_save_ac_link
5379 echo "$as_me:5379: result: $cf_ok_build_cc" >&5
5380 echo "${ECHO_T}$cf_ok_build_cc" >&6
5382 if test "$cf_ok_build_cc" != yes
5384 { { echo "$as_me:5384: error: Cross-build requires two compilers.
5385 Use --with-build-cc to specify the native compiler." >&5
5386 echo "$as_me: error: Cross-build requires two compilers.
5387 Use --with-build-cc to specify the native compiler." >&2;}
5388 { (exit 1); exit 1; }; }
5392 : ${BUILD_CC:='${CC}'}
5393 : ${BUILD_CPP:='${CPP}'}
5394 : ${BUILD_CFLAGS:='${CFLAGS}'}
5395 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
5396 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
5397 : ${BUILD_LIBS:='${LIBS}'}
5398 : ${BUILD_EXEEXT:='$x'}
5399 : ${BUILD_OBJEXT:='o'}
5402 ###############################################################################
5404 ### Options to allow the user to specify the set of libraries which are used.
5405 ### Use "--without-normal --with-shared" to allow the default model to be
5406 ### shared, for example.
5409 echo "$as_me:5409: checking if libtool -version-number should be used" >&5
5410 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
5412 # Check whether --enable-libtool-version or --disable-libtool-version was given.
5413 if test "${enable_libtool_version+set}" = set; then
5414 enableval="$enable_libtool_version"
5415 test "$enableval" != no && enableval=yes
5416 if test "$enableval" != "yes" ; then
5417 cf_libtool_version=no
5419 cf_libtool_version=yes
5423 cf_libtool_version=yes
5426 echo "$as_me:5426: result: $cf_libtool_version" >&5
5427 echo "${ECHO_T}$cf_libtool_version" >&6
5429 if test "$cf_libtool_version" = yes ; then
5430 LIBTOOL_VERSION="-version-number"
5432 LIBTOOL_VERSION="-version-info"
5435 { echo "$as_me:5435: WARNING: VERSION was not set" >&5
5436 echo "$as_me: WARNING: VERSION was not set" >&2;}
5439 ABI_VERSION="$VERSION"
5440 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
5442 echo "${as_me:-configure}:5442: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
5446 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'`
5447 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
5449 echo "${as_me:-configure}:5449: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
5453 { echo "$as_me:5453: WARNING: unexpected VERSION value: $VERSION" >&5
5454 echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;}
5461 # common library maintenance symbols that are convenient for libtool scripts:
5462 LIB_CREATE='${AR} -cr'
5463 LIB_OBJECT='${OBJECTS}'
5467 # symbols used to prop libtool up to enable it to determine what it should be
5475 echo "$as_me:5475: checking if you want to build libraries with libtool" >&5
5476 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
5478 # Check whether --with-libtool or --without-libtool was given.
5479 if test "${with_libtool+set}" = set; then
5480 withval="$with_libtool"
5481 with_libtool=$withval
5485 echo "$as_me:5485: result: $with_libtool" >&5
5486 echo "${ECHO_T}$with_libtool" >&6
5487 if test "$with_libtool" != "no"; then
5489 if test "$with_libtool" != "yes" ; then
5491 if test "x$prefix" != xNONE; then
5492 cf_path_syntax="$prefix"
5494 cf_path_syntax="$ac_default_prefix"
5497 case ".$with_libtool" in
5502 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
5504 (.\$\{*prefix\}*|.\$\{*dir\}*)
5505 eval with_libtool="$with_libtool"
5506 case ".$with_libtool" in
5508 with_libtool=`echo "$with_libtool" | sed -e s%NONE%$cf_path_syntax%`
5513 with_libtool=`echo "$with_libtool" | sed -e s%NONE%$cf_path_syntax%`
5516 { { echo "$as_me:5516: error: expected a pathname, not \"$with_libtool\"" >&5
5517 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
5518 { (exit 1); exit 1; }; }
5522 LIBTOOL=$with_libtool
5524 if test -n "$ac_tool_prefix"; then
5525 for ac_prog in libtool glibtool
5527 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5528 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5529 echo "$as_me:5529: checking for $ac_word" >&5
5530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5531 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
5532 echo $ECHO_N "(cached) $ECHO_C" >&6
5534 if test -n "$LIBTOOL"; then
5535 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
5537 ac_save_IFS=$IFS; IFS=$ac_path_separator
5539 for ac_dir in $ac_dummy; do
5541 test -z "$ac_dir" && ac_dir=.
5542 $as_executable_p "$ac_dir/$ac_word" || continue
5543 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5544 echo "$as_me:5544: found $ac_dir/$ac_word" >&5
5550 LIBTOOL=$ac_cv_prog_LIBTOOL
5551 if test -n "$LIBTOOL"; then
5552 echo "$as_me:5552: result: $LIBTOOL" >&5
5553 echo "${ECHO_T}$LIBTOOL" >&6
5555 echo "$as_me:5555: result: no" >&5
5556 echo "${ECHO_T}no" >&6
5559 test -n "$LIBTOOL" && break
5562 if test -z "$LIBTOOL"; then
5563 ac_ct_LIBTOOL=$LIBTOOL
5564 for ac_prog in libtool glibtool
5566 # Extract the first word of "$ac_prog", so it can be a program name with args.
5567 set dummy $ac_prog; ac_word=$2
5568 echo "$as_me:5568: checking for $ac_word" >&5
5569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5570 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5571 echo $ECHO_N "(cached) $ECHO_C" >&6
5573 if test -n "$ac_ct_LIBTOOL"; then
5574 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5576 ac_save_IFS=$IFS; IFS=$ac_path_separator
5578 for ac_dir in $ac_dummy; do
5580 test -z "$ac_dir" && ac_dir=.
5581 $as_executable_p "$ac_dir/$ac_word" || continue
5582 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5583 echo "$as_me:5583: found $ac_dir/$ac_word" >&5
5589 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5590 if test -n "$ac_ct_LIBTOOL"; then
5591 echo "$as_me:5591: result: $ac_ct_LIBTOOL" >&5
5592 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5594 echo "$as_me:5594: result: no" >&5
5595 echo "${ECHO_T}no" >&6
5598 test -n "$ac_ct_LIBTOOL" && break
5600 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5602 LIBTOOL=$ac_ct_LIBTOOL
5605 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5607 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.].*//'`
5609 cf_cv_libtool_version=
5611 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5613 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool
5616 unset ac_cv_prog_ac_ct_LIBTOOL
5620 if test -n "$ac_tool_prefix"; then
5621 for ac_prog in glibtool
5623 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5624 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5625 echo "$as_me:5625: checking for $ac_word" >&5
5626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5627 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5630 if test -n "$LIBTOOL"; then
5631 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
5633 ac_save_IFS=$IFS; IFS=$ac_path_separator
5635 for ac_dir in $ac_dummy; do
5637 test -z "$ac_dir" && ac_dir=.
5638 $as_executable_p "$ac_dir/$ac_word" || continue
5639 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5640 echo "$as_me:5640: found $ac_dir/$ac_word" >&5
5646 LIBTOOL=$ac_cv_prog_LIBTOOL
5647 if test -n "$LIBTOOL"; then
5648 echo "$as_me:5648: result: $LIBTOOL" >&5
5649 echo "${ECHO_T}$LIBTOOL" >&6
5651 echo "$as_me:5651: result: no" >&5
5652 echo "${ECHO_T}no" >&6
5655 test -n "$LIBTOOL" && break
5658 if test -z "$LIBTOOL"; then
5659 ac_ct_LIBTOOL=$LIBTOOL
5660 for ac_prog in glibtool
5662 # Extract the first word of "$ac_prog", so it can be a program name with args.
5663 set dummy $ac_prog; ac_word=$2
5664 echo "$as_me:5664: checking for $ac_word" >&5
5665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5666 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
5669 if test -n "$ac_ct_LIBTOOL"; then
5670 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5672 ac_save_IFS=$IFS; IFS=$ac_path_separator
5674 for ac_dir in $ac_dummy; do
5676 test -z "$ac_dir" && ac_dir=.
5677 $as_executable_p "$ac_dir/$ac_word" || continue
5678 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5679 echo "$as_me:5679: found $ac_dir/$ac_word" >&5
5685 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5686 if test -n "$ac_ct_LIBTOOL"; then
5687 echo "$as_me:5687: result: $ac_ct_LIBTOOL" >&5
5688 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5690 echo "$as_me:5690: result: no" >&5
5691 echo "${ECHO_T}no" >&6
5694 test -n "$ac_ct_LIBTOOL" && break
5696 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5698 LIBTOOL=$ac_ct_LIBTOOL
5701 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5703 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.].*//'`
5705 cf_cv_libtool_version=
5707 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5711 if test -z "$LIBTOOL" ; then
5712 { { echo "$as_me:5712: error: Cannot find libtool" >&5
5713 echo "$as_me: error: Cannot find libtool" >&2;}
5714 { (exit 1); exit 1; }; }
5716 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${libdir} ${LIBTOOL_VERSION} `cut -f1 ${top_srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
5717 LIB_OBJECT='${OBJECTS:.o=.lo}'
5719 LIB_CLEAN='${LIBTOOL} --mode=clean'
5720 LIB_COMPILE='${LIBTOOL} --mode=compile'
5721 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
5722 LIB_INSTALL='${LIBTOOL} --mode=install'
5723 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
5726 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5728 echo "$as_me:5728: checking version of $LIBTOOL" >&5
5729 echo $ECHO_N "checking version of $LIBTOOL... $ECHO_C" >&6
5731 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5733 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.].*//'`
5735 cf_cv_libtool_version=
5737 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5739 echo "$as_me:5739: result: $cf_cv_libtool_version" >&5
5740 echo "${ECHO_T}$cf_cv_libtool_version" >&6
5741 if test -n "$cf_cv_libtool_version"
5743 cf_check_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' -e 's,[()],...,g' -e 's,[ ],-,g' -e '2,$d'`
5744 case "x$cf_check_libtool_version" in
5745 (*...GNU-libtool...*)
5748 { { echo "$as_me:5748: error: This is not GNU libtool" >&5
5749 echo "$as_me: error: This is not GNU libtool" >&2;}
5750 { (exit 1); exit 1; }; }
5754 { { echo "$as_me:5754: error: No version found for $LIBTOOL" >&5
5755 echo "$as_me: error: No version found for $LIBTOOL" >&2;}
5756 { (exit 1); exit 1; }; }
5759 { { echo "$as_me:5759: error: GNU libtool has not been found" >&5
5760 echo "$as_me: error: GNU libtool has not been found" >&2;}
5761 { (exit 1); exit 1; }; }
5764 # special hack to add -no-undefined (which libtool should do for itself)
5766 case "$cf_cv_system_name" in
5767 (cygwin*|msys*|mingw32*|os2*|uwin*|aix[4-7])
5768 LT_UNDEF=-no-undefined
5772 # special hack to add --tag option for C++ compiler
5773 case "$cf_cv_libtool_version" in
5774 (1.[5-9]*|[2-9].[0-9.a-z]*)
5775 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
5776 LIBTOOL="$LIBTOOL --tag=CC"
5779 LIBTOOL_CXX="$LIBTOOL"
5787 test -z "$LIBTOOL" && ECHO_LT=
5789 if test "$with_libtool" != "no" ; then
5791 cf_list_models="$cf_list_models libtool"
5795 echo "$as_me:5795: checking if you want to build shared libraries" >&5
5796 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
5798 # Check whether --with-shared or --without-shared was given.
5799 if test "${with_shared+set}" = set; then
5800 withval="$with_shared"
5801 with_shared=$withval
5805 echo "$as_me:5805: result: $with_shared" >&5
5806 echo "${ECHO_T}$with_shared" >&6
5807 test "x$with_shared" = "xyes" && cf_list_models="$cf_list_models shared"
5809 echo "$as_me:5809: checking if you want to build static libraries" >&5
5810 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
5812 # Check whether --with-normal or --without-normal was given.
5813 if test "${with_normal+set}" = set; then
5814 withval="$with_normal"
5815 with_normal=$withval
5819 echo "$as_me:5819: result: $with_normal" >&5
5820 echo "${ECHO_T}$with_normal" >&6
5821 test "x$with_normal" = "xyes" && cf_list_models="$cf_list_models normal"
5823 echo "$as_me:5823: checking if you want to build debug libraries" >&5
5824 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
5826 # Check whether --with-debug or --without-debug was given.
5827 if test "${with_debug+set}" = set; then
5828 withval="$with_debug"
5833 echo "$as_me:5833: result: $with_debug" >&5
5834 echo "${ECHO_T}$with_debug" >&6
5835 test "x$with_debug" = "xyes" && cf_list_models="$cf_list_models debug"
5837 echo "$as_me:5837: checking if you want to build profiling libraries" >&5
5838 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
5840 # Check whether --with-profile or --without-profile was given.
5841 if test "${with_profile+set}" = set; then
5842 withval="$with_profile"
5843 with_profile=$withval
5847 echo "$as_me:5847: result: $with_profile" >&5
5848 echo "${ECHO_T}$with_profile" >&6
5849 test "x$with_profile" = "xyes" && cf_list_models="$cf_list_models profile"
5853 if test "X$cf_with_cxx_binding" != Xno; then
5854 if test "x$with_shared" = "xyes"; then
5855 echo "$as_me:5855: checking if you want to build C++ shared libraries" >&5
5856 echo $ECHO_N "checking if you want to build C++ shared libraries... $ECHO_C" >&6
5858 # Check whether --with-cxx-shared or --without-cxx-shared was given.
5859 if test "${with_cxx_shared+set}" = set; then
5860 withval="$with_cxx_shared"
5861 with_shared_cxx=$withval
5865 echo "$as_me:5865: result: $with_shared_cxx" >&5
5866 echo "${ECHO_T}$with_shared_cxx" >&6
5870 ###############################################################################
5872 echo "$as_me:5872: checking for specified models" >&5
5873 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
5874 test -z "$cf_list_models" && cf_list_models=normal
5875 test "$with_libtool" != "no" && cf_list_models=libtool
5876 echo "$as_me:5876: result: $cf_list_models" >&5
5877 echo "${ECHO_T}$cf_list_models" >&6
5879 ### Use the first model as the default, and save its suffix for use in building
5880 ### up test-applications.
5881 echo "$as_me:5881: checking for default model" >&5
5882 echo $ECHO_N "checking for default model... $ECHO_C" >&6
5883 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
5884 echo "$as_me:5884: result: $DFT_LWR_MODEL" >&5
5885 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
5887 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5898 echo "$as_me:5898: checking if you want to have a library-prefix" >&5
5899 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
5901 # Check whether --with-lib-prefix or --without-lib-prefix was given.
5902 if test "${with_lib_prefix+set}" = set; then
5903 withval="$with_lib_prefix"
5904 with_lib_prefix=$withval
5906 with_lib_prefix=auto
5908 echo "$as_me:5908: result: $with_lib_prefix" >&5
5909 echo "${ECHO_T}$with_lib_prefix" >&6
5911 if test "$with_lib_prefix" = auto
5914 case "$cf_cv_system_name" in
5916 if test "$DFT_LWR_MODEL" = libtool; then
5925 (*) LIB_PREFIX='lib'
5928 cf_prefix=$LIB_PREFIX
5930 elif test "$with_lib_prefix" = no
5934 LIB_PREFIX=$with_lib_prefix
5939 echo "$as_me:5939: checking for PATH separator" >&5
5940 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
5941 case "$cf_cv_system_name" in
5942 (os2*) PATH_SEPARATOR=';' ;;
5943 (*) ${PATH_SEPARATOR:=':'} ;;
5946 echo "$as_me:5946: result: $PATH_SEPARATOR" >&5
5947 echo "${ECHO_T}$PATH_SEPARATOR" >&6
5949 # headers needed for checks...
5950 echo "$as_me:5950: checking for ANSI C header files" >&5
5951 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5952 if test "${ac_cv_header_stdc+set}" = set; then
5953 echo $ECHO_N "(cached) $ECHO_C" >&6
5955 cat >"conftest.$ac_ext" <<_ACEOF
5956 #line 5956 "configure"
5957 #include "confdefs.h"
5964 if { (eval echo "$as_me:5964: \"$ac_cpp "conftest.$ac_ext"\"") >&5
5965 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
5967 $EGREP -v '^ *\+' conftest.er1 >conftest.err
5969 cat conftest.err >&5
5970 echo "$as_me:5970: \$? = $ac_status" >&5
5971 (exit "$ac_status"); } >/dev/null; then
5972 if test -s conftest.err; then
5973 ac_cpp_err=$ac_c_preproc_warn_flag
5980 if test -z "$ac_cpp_err"; then
5981 ac_cv_header_stdc=yes
5983 echo "$as_me: failed program was:" >&5
5984 cat "conftest.$ac_ext" >&5
5985 ac_cv_header_stdc=no
5987 rm -f conftest.err "conftest.$ac_ext"
5989 if test $ac_cv_header_stdc = yes; then
5990 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5991 cat >"conftest.$ac_ext" <<_ACEOF
5992 #line 5992 "configure"
5993 #include "confdefs.h"
5997 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5998 $EGREP "memchr" >/dev/null 2>&1; then
6001 ac_cv_header_stdc=no
6007 if test $ac_cv_header_stdc = yes; then
6008 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6009 cat >"conftest.$ac_ext" <<_ACEOF
6010 #line 6010 "configure"
6011 #include "confdefs.h"
6015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6016 $EGREP "free" >/dev/null 2>&1; then
6019 ac_cv_header_stdc=no
6025 if test $ac_cv_header_stdc = yes; then
6026 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6027 if test "$cross_compiling" = yes; then
6030 cat >"conftest.$ac_ext" <<_ACEOF
6031 #line 6031 "configure"
6032 #include "confdefs.h"
6034 #if ((' ' & 0x0FF) == 0x020)
6035 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6036 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6038 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
6039 || ('j' <= (c) && (c) <= 'r') \
6040 || ('s' <= (c) && (c) <= 'z'))
6041 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6044 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6049 for (i = 0; i < 256; i++)
6050 if (XOR (islower (i), ISLOWER (i))
6051 || toupper (i) != TOUPPER (i))
6053 $ac_main_return (0);
6056 rm -f "conftest$ac_exeext"
6057 if { (eval echo "$as_me:6057: \"$ac_link\"") >&5
6058 (eval $ac_link) 2>&5
6060 echo "$as_me:6060: \$? = $ac_status" >&5
6061 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
6062 { (eval echo "$as_me:6062: \"$ac_try\"") >&5
6065 echo "$as_me:6065: \$? = $ac_status" >&5
6066 (exit "$ac_status"); }; }; then
6069 echo "$as_me: program exited with status $ac_status" >&5
6070 echo "$as_me: failed program was:" >&5
6071 cat "conftest.$ac_ext" >&5
6072 ac_cv_header_stdc=no
6074 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
6078 echo "$as_me:6078: result: $ac_cv_header_stdc" >&5
6079 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6080 if test $ac_cv_header_stdc = yes; then
6082 cat >>confdefs.h <<\EOF
6083 #define STDC_HEADERS 1
6088 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6090 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6091 inttypes.h stdint.h unistd.h
6093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6094 echo "$as_me:6094: checking for $ac_header" >&5
6095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6097 echo $ECHO_N "(cached) $ECHO_C" >&6
6099 cat >"conftest.$ac_ext" <<_ACEOF
6100 #line 6100 "configure"
6101 #include "confdefs.h"
6102 $ac_includes_default
6103 #include <$ac_header>
6105 rm -f "conftest.$ac_objext"
6106 if { (eval echo "$as_me:6106: \"$ac_compile\"") >&5
6107 (eval $ac_compile) 2>&5
6109 echo "$as_me:6109: \$? = $ac_status" >&5
6110 (exit "$ac_status"); } &&
6111 { ac_try='test -s "conftest.$ac_objext"'
6112 { (eval echo "$as_me:6112: \"$ac_try\"") >&5
6115 echo "$as_me:6115: \$? = $ac_status" >&5
6116 (exit "$ac_status"); }; }; then
6117 eval "$as_ac_Header=yes"
6119 echo "$as_me: failed program was:" >&5
6120 cat "conftest.$ac_ext" >&5
6121 eval "$as_ac_Header=no"
6123 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6125 echo "$as_me:6125: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
6126 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
6127 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
6128 cat >>confdefs.h <<EOF
6129 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6135 echo "$as_me:6135: checking whether exit is declared" >&5
6136 echo $ECHO_N "checking whether exit is declared... $ECHO_C" >&6
6137 if test "${ac_cv_have_decl_exit+set}" = set; then
6138 echo $ECHO_N "(cached) $ECHO_C" >&6
6140 cat >"conftest.$ac_ext" <<_ACEOF
6141 #line 6141 "configure"
6142 #include "confdefs.h"
6143 $ac_includes_default
6148 char *p = (char *) exit; (void) p;
6155 rm -f "conftest.$ac_objext"
6156 if { (eval echo "$as_me:6156: \"$ac_compile\"") >&5
6157 (eval $ac_compile) 2>&5
6159 echo "$as_me:6159: \$? = $ac_status" >&5
6160 (exit "$ac_status"); } &&
6161 { ac_try='test -s "conftest.$ac_objext"'
6162 { (eval echo "$as_me:6162: \"$ac_try\"") >&5
6165 echo "$as_me:6165: \$? = $ac_status" >&5
6166 (exit "$ac_status"); }; }; then
6167 ac_cv_have_decl_exit=yes
6169 echo "$as_me: failed program was:" >&5
6170 cat "conftest.$ac_ext" >&5
6171 ac_cv_have_decl_exit=no
6173 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6175 echo "$as_me:6175: result: $ac_cv_have_decl_exit" >&5
6176 echo "${ECHO_T}$ac_cv_have_decl_exit" >&6
6179 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6180 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6181 echo "$as_me:6181: checking for $ac_hdr that defines DIR" >&5
6182 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6184 echo $ECHO_N "(cached) $ECHO_C" >&6
6186 cat >"conftest.$ac_ext" <<_ACEOF
6187 #line 6187 "configure"
6188 #include "confdefs.h"
6189 #include <sys/types.h>
6201 rm -f "conftest.$ac_objext"
6202 if { (eval echo "$as_me:6202: \"$ac_compile\"") >&5
6203 (eval $ac_compile) 2>&5
6205 echo "$as_me:6205: \$? = $ac_status" >&5
6206 (exit "$ac_status"); } &&
6207 { ac_try='test -s "conftest.$ac_objext"'
6208 { (eval echo "$as_me:6208: \"$ac_try\"") >&5
6211 echo "$as_me:6211: \$? = $ac_status" >&5
6212 (exit "$ac_status"); }; }; then
6213 eval "$as_ac_Header=yes"
6215 echo "$as_me: failed program was:" >&5
6216 cat "conftest.$ac_ext" >&5
6217 eval "$as_ac_Header=no"
6219 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6221 echo "$as_me:6221: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
6222 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
6223 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
6224 cat >>confdefs.h <<EOF
6225 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6228 ac_header_dirent=$ac_hdr; break
6232 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6233 if test $ac_header_dirent = dirent.h; then
6234 echo "$as_me:6234: checking for opendir in -ldir" >&5
6235 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
6236 if test "${ac_cv_lib_dir_opendir+set}" = set; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6239 ac_check_lib_save_LIBS=$LIBS
6241 cat >"conftest.$ac_ext" <<_ACEOF
6242 #line 6242 "configure"
6243 #include "confdefs.h"
6245 /* Override any gcc2 internal prototype to avoid an error. */
6249 /* We use char because int might match the return type of a gcc2
6250 builtin and then its argument prototype would still apply. */
6260 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6261 if { (eval echo "$as_me:6261: \"$ac_link\"") >&5
6262 (eval $ac_link) 2>&5
6264 echo "$as_me:6264: \$? = $ac_status" >&5
6265 (exit "$ac_status"); } &&
6266 { ac_try='test -s "conftest$ac_exeext"'
6267 { (eval echo "$as_me:6267: \"$ac_try\"") >&5
6270 echo "$as_me:6270: \$? = $ac_status" >&5
6271 (exit "$ac_status"); }; }; then
6272 ac_cv_lib_dir_opendir=yes
6274 echo "$as_me: failed program was:" >&5
6275 cat "conftest.$ac_ext" >&5
6276 ac_cv_lib_dir_opendir=no
6278 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6279 LIBS=$ac_check_lib_save_LIBS
6281 echo "$as_me:6281: result: $ac_cv_lib_dir_opendir" >&5
6282 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
6283 if test "$ac_cv_lib_dir_opendir" = yes; then
6288 echo "$as_me:6288: checking for opendir in -lx" >&5
6289 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
6290 if test "${ac_cv_lib_x_opendir+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6293 ac_check_lib_save_LIBS=$LIBS
6295 cat >"conftest.$ac_ext" <<_ACEOF
6296 #line 6296 "configure"
6297 #include "confdefs.h"
6299 /* Override any gcc2 internal prototype to avoid an error. */
6303 /* We use char because int might match the return type of a gcc2
6304 builtin and then its argument prototype would still apply. */
6314 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6315 if { (eval echo "$as_me:6315: \"$ac_link\"") >&5
6316 (eval $ac_link) 2>&5
6318 echo "$as_me:6318: \$? = $ac_status" >&5
6319 (exit "$ac_status"); } &&
6320 { ac_try='test -s "conftest$ac_exeext"'
6321 { (eval echo "$as_me:6321: \"$ac_try\"") >&5
6324 echo "$as_me:6324: \$? = $ac_status" >&5
6325 (exit "$ac_status"); }; }; then
6326 ac_cv_lib_x_opendir=yes
6328 echo "$as_me: failed program was:" >&5
6329 cat "conftest.$ac_ext" >&5
6330 ac_cv_lib_x_opendir=no
6332 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6333 LIBS=$ac_check_lib_save_LIBS
6335 echo "$as_me:6335: result: $ac_cv_lib_x_opendir" >&5
6336 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
6337 if test "$ac_cv_lib_x_opendir" = yes; then
6343 ###############################################################################
6345 echo "$as_me:6345: checking if you want to build a separate terminfo library" >&5
6346 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
6348 # Check whether --with-termlib or --without-termlib was given.
6349 if test "${with_termlib+set}" = set; then
6350 withval="$with_termlib"
6351 with_termlib=$withval
6355 echo "$as_me:6355: result: $with_termlib" >&5
6356 echo "${ECHO_T}$with_termlib" >&6
6358 echo "$as_me:6358: checking if you want to build a separate tic library" >&5
6359 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
6361 # Check whether --with-ticlib or --without-ticlib was given.
6362 if test "${with_ticlib+set}" = set; then
6363 withval="$with_ticlib"
6364 with_ticlib=$withval
6368 echo "$as_me:6368: result: $with_ticlib" >&5
6369 echo "${ECHO_T}$with_ticlib" >&6
6371 if test X"$CC_G_OPT" = X"" ; then
6373 test -n "$GCC" && test "x${ac_cv_prog_cc_g}" != xyes && CC_G_OPT=''
6376 if test X"$CXX_G_OPT" = X"" ; then
6378 test -n "$GXX" && test "x${ac_cv_prog_cxx_g}" != xyes && CXX_G_OPT=''
6381 echo "$as_me:6381: checking for default loader flags" >&5
6382 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
6383 case "$DFT_LWR_MODEL" in
6384 (libtool) LD_MODEL='' ;;
6385 (normal) LD_MODEL='' ;;
6386 (debug) LD_MODEL=$CC_G_OPT ;;
6387 (profile) LD_MODEL='-pg';;
6388 (shared) LD_MODEL='' ;;
6390 echo "$as_me:6390: result: $LD_MODEL" >&5
6391 echo "${ECHO_T}$LD_MODEL" >&6
6393 case "$DFT_LWR_MODEL" in
6396 echo "$as_me:6396: checking if rpath option should be used" >&5
6397 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
6399 # Check whether --enable-rpath or --disable-rpath was given.
6400 if test "${enable_rpath+set}" = set; then
6401 enableval="$enable_rpath"
6402 cf_cv_enable_rpath=$enableval
6404 cf_cv_enable_rpath=no
6406 echo "$as_me:6406: result: $cf_cv_enable_rpath" >&5
6407 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
6409 echo "$as_me:6409: checking if shared libraries should be relinked during install" >&5
6410 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
6412 # Check whether --enable-relink or --disable-relink was given.
6413 if test "${enable_relink+set}" = set; then
6414 enableval="$enable_relink"
6415 cf_cv_do_relink=$enableval
6419 echo "$as_me:6419: result: $cf_cv_do_relink" >&5
6420 echo "${ECHO_T}$cf_cv_do_relink" >&6
6424 # we will build libraries one-level down.
6428 if test "x$cf_cv_enable_rpath" != xno
6430 echo "$as_me:6430: checking for an rpath option" >&5
6431 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
6432 case "$cf_cv_system_name" in
6434 if test "$GCC" = yes; then
6435 LD_RPATH_OPT="-Wl,-rpath,"
6437 LD_RPATH_OPT="-rpath "
6440 (linux*|gnu*|k*bsd*-gnu|freebsd*)
6441 LD_RPATH_OPT="-Wl,-rpath,"
6443 (openbsd[2-9].*|mirbsd*)
6444 LD_RPATH_OPT="-Wl,-rpath,"
6447 LD_RPATH_OPT="-rpath "
6450 LD_RPATH_OPT="-Wl,-rpath,"
6453 LD_RPATH_OPT="-rpath "
6461 echo "$as_me:6461: result: $LD_RPATH_OPT" >&5
6462 echo "${ECHO_T}$LD_RPATH_OPT" >&6
6464 case "x$LD_RPATH_OPT" in
6466 echo "$as_me:6466: checking if we need a space after rpath option" >&5
6467 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
6468 cf_save_LIBS="$LIBS"
6473 for cf_add_1lib in ${LD_RPATH_OPT}$libdir; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
6475 for cf_add_1lib in $cf_add_0lib; do
6476 for cf_add_2lib in $cf_add_libs; do
6477 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
6482 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
6486 cat >"conftest.$ac_ext" <<_ACEOF
6487 #line 6487 "configure"
6488 #include "confdefs.h"
6498 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6499 if { (eval echo "$as_me:6499: \"$ac_link\"") >&5
6500 (eval $ac_link) 2>&5
6502 echo "$as_me:6502: \$? = $ac_status" >&5
6503 (exit "$ac_status"); } &&
6504 { ac_try='test -s "conftest$ac_exeext"'
6505 { (eval echo "$as_me:6505: \"$ac_try\"") >&5
6508 echo "$as_me:6508: \$? = $ac_status" >&5
6509 (exit "$ac_status"); }; }; then
6512 echo "$as_me: failed program was:" >&5
6513 cat "conftest.$ac_ext" >&5
6516 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6517 LIBS="$cf_save_LIBS"
6518 echo "$as_me:6518: result: $cf_rpath_space" >&5
6519 echo "${ECHO_T}$cf_rpath_space" >&6
6520 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
6529 INSTALL_LIB="-m 644"
6530 : ${rel_builddir:=.}
6536 cf_cv_do_symlinks=no
6538 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
6540 echo "$as_me:6540: checking if release/abi version should be used for shared libs" >&5
6541 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
6543 # Check whether --with-shlib-version or --without-shlib-version was given.
6544 if test "${with_shlib_version+set}" = set; then
6545 withval="$with_shlib_version"
6546 test -z "$withval" && withval=auto
6549 cf_cv_shlib_version=auto
6552 cf_cv_shlib_version=$withval
6555 echo "$as_me:6555: result: $withval" >&5
6556 echo "${ECHO_T}$withval" >&6
6557 { { echo "$as_me:6557: error: option value must be one of: rel, abi, or auto" >&5
6558 echo "$as_me: error: option value must be one of: rel, abi, or auto" >&2;}
6559 { (exit 1); exit 1; }; }
6564 cf_cv_shlib_version=auto
6566 echo "$as_me:6566: result: $cf_cv_shlib_version" >&5
6567 echo "${ECHO_T}$cf_cv_shlib_version" >&6
6572 # Some less-capable ports of gcc support only -fpic
6576 if test "$GCC" = yes
6580 case "$cf_cv_system_name" in
6581 (*linux*) # e.g., PGI compiler
6587 if test "$cf_try_fPIC" = yes
6589 echo "$as_me:6589: checking which $CC option to use" >&5
6590 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
6591 cf_save_CFLAGS="$CFLAGS"
6592 for CC_SHARED_OPTS in -fPIC -fpic ''
6594 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
6595 cat >"conftest.$ac_ext" <<_ACEOF
6596 #line 6596 "configure"
6597 #include "confdefs.h"
6607 rm -f "conftest.$ac_objext"
6608 if { (eval echo "$as_me:6608: \"$ac_compile\"") >&5
6609 (eval $ac_compile) 2>&5
6611 echo "$as_me:6611: \$? = $ac_status" >&5
6612 (exit "$ac_status"); } &&
6613 { ac_try='test -s "conftest.$ac_objext"'
6614 { (eval echo "$as_me:6614: \"$ac_try\"") >&5
6617 echo "$as_me:6617: \$? = $ac_status" >&5
6618 (exit "$ac_status"); }; }; then
6621 echo "$as_me: failed program was:" >&5
6622 cat "conftest.$ac_ext" >&5
6624 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6626 echo "$as_me:6626: result: $CC_SHARED_OPTS" >&5
6627 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
6628 CFLAGS="$cf_save_CFLAGS"
6631 cf_cv_shlib_version_infix=no
6633 case "$cf_cv_system_name" in
6634 (aix4.3-9*|aix[5-7]*)
6635 if test "$GCC" = yes; then
6636 CC_SHARED_OPTS='-Wl,-brtl'
6637 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6639 CC_SHARED_OPTS='-brtl'
6640 # as well as '-qpic=large -G' or perhaps "-bM:SRE -bnoentry -bexpall"
6641 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6645 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
6649 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6650 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6651 cf_cv_shlib_version=cygdll
6652 cf_cv_shlib_version_infix=cygdll
6655 cat >mk_shared_lib.sh <<-CF_EOF
6658 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6661 Linking shared library
6662 ** SHARED_LIB \$SHARED_LIB
6663 ** IMPORT_LIB \$IMPORT_LIB
6665 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6667 chmod +x mk_shared_lib.sh
6671 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6672 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6673 cf_cv_shlib_version=msysdll
6674 cf_cv_shlib_version_infix=msysdll
6677 cat >mk_shared_lib.sh <<-CF_EOF
6680 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6683 Linking shared library
6684 ** SHARED_LIB \$SHARED_LIB
6685 ** IMPORT_LIB \$IMPORT_LIB
6687 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6689 chmod +x mk_shared_lib.sh
6692 cf_try_cflags="no-cpp-precomp"
6693 CC_SHARED_OPTS="-dynamic"
6694 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
6695 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
6696 cf_cv_shlib_version_infix=yes
6697 echo "$as_me:6697: checking if ld -search_paths_first works" >&5
6698 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
6699 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6703 cf_save_LDFLAGS=$LDFLAGS
6704 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6705 cat >"conftest.$ac_ext" <<_ACEOF
6706 #line 6706 "configure"
6707 #include "confdefs.h"
6717 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6718 if { (eval echo "$as_me:6718: \"$ac_link\"") >&5
6719 (eval $ac_link) 2>&5
6721 echo "$as_me:6721: \$? = $ac_status" >&5
6722 (exit "$ac_status"); } &&
6723 { ac_try='test -s "conftest$ac_exeext"'
6724 { (eval echo "$as_me:6724: \"$ac_try\"") >&5
6727 echo "$as_me:6727: \$? = $ac_status" >&5
6728 (exit "$ac_status"); }; }; then
6729 cf_cv_ldflags_search_paths_first=yes
6731 echo "$as_me: failed program was:" >&5
6732 cat "conftest.$ac_ext" >&5
6733 cf_cv_ldflags_search_paths_first=no
6735 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6736 LDFLAGS=$cf_save_LDFLAGS
6738 echo "$as_me:6738: result: $cf_cv_ldflags_search_paths_first" >&5
6739 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
6740 if test "$cf_cv_ldflags_search_paths_first" = yes; then
6741 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6746 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6747 if test "$cf_cv_shlib_version" = rel; then
6748 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6750 cf_cv_shared_soname='`basename $@`'
6753 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6756 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
6757 if test "$GCC" != yes; then
6760 MK_SHARED_LIB='${LD} ${LDFLAGS} -b -o $@'
6761 INSTALL_LIB="-m 555"
6764 # (tested with gcc 2.7.2 -- I don't have c89)
6765 if test "$GCC" = yes; then
6766 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
6769 LD_SHARED_OPTS='-Wl,+b,${libdir}'
6771 MK_SHARED_LIB='${LD} ${LDFLAGS} +b ${libdir} -b -o $@'
6772 # HP-UX shared libraries must be executable, and should be
6773 # readonly to exploit a quirk in the memory manager.
6774 INSTALL_LIB="-m 555"
6777 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6778 if test "$cf_cv_shlib_version" = rel; then
6779 cf_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6781 cf_shared_soname='`basename $@`'
6784 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o $@'
6787 if test "$cf_cv_enable_rpath" = yes ; then
6788 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6790 # tested with IRIX 5.2 and 'cc'.
6791 if test "$GCC" != yes; then
6792 CC_SHARED_OPTS='-KPIC'
6793 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -rdata_shared -soname `basename $@` -o $@'
6795 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,`basename $@` -o $@'
6797 cf_cv_rm_so_locs=yes
6799 (linux*|gnu*|k*bsd*-gnu)
6800 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6801 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6802 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6804 if test "$cf_cv_enable_rpath" = yes ; then
6805 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6808 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6809 if test "$cf_cv_shlib_version" = rel; then
6810 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6812 cf_cv_shared_soname='`basename $@`'
6815 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6818 cf_cv_shlib_version=msvcdll
6819 cf_cv_shlib_version_infix=msvcdll
6822 if test "$DFT_LWR_MODEL" = "shared" ; then
6823 LOCAL_LDFLAGS="-link -dll"
6824 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6825 EXTRA_LDFLAGS="-link -dll $EXTRA_LDFLAGS"
6828 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${LD} ${CFLAGS}'
6829 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.lib"
6830 cat >mk_shared_lib.sh <<-CF_EOF
6833 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.lib/'\`
6838 Linking shared library
6839 ** SHARED LIB \$SHARED_LIB
6840 ** IMPORT_LIB \$IMPORT_LIB
6842 args=\$(echo \$* | sed -E "s#-l(\w*)#\1.dll.lib#g" | sed -E "s#-L(\w*)#-LIBPATH:\1#g")
6843 exec \$my_ld -DLL -IMPLIB:"\${IMPORT_LIB}" -OUT:"\${SHARED_LIB}" ${LDFLAGS} \$args
6844 mv "\${IMPORT_LIB}" "\${IMPORT_LIB}"
6846 chmod +x mk_shared_lib.sh
6847 cat >mk_prog.sh <<-CF_EOF
6850 # Ignore first argument (compiler) and use LD (link.exe) unconditionally
6853 ldopts=("/subsystem:console")
6856 while test \$# -gt 0; do
6859 # ignore -link argument
6862 # ignore runtime-library option
6877 libs+=("\`echo \"\$1\" | sed \"s/^-l//\"\`")
6880 ldopts+=("\`echo \"\$1\" | sed \"s/^-L/-LIBPATH:/\"\`")
6886 for linkarg in \`echo '\$1' | sed -e 's/-Wl,//' -e 's/,/ /'\`; do
6887 ldopts+=("\${linkarg}")
6895 ldopts+=("-out:\$1")
6904 if [ "\$isdll" -ne 0 ]; then
6905 for lib in \${libs[*]}; do
6906 ldopts+=("\$lib.dll.lib")
6909 for lib in \${libs[*]}; do
6910 ldopts+=("\$lib.lib")
6915 ** ld options: "\${ldopts[@]}"
6917 exec \$LD \${ldopts[@]}
6920 LINK_PROGS="$SHELL ${rel_builddir}/mk_prog.sh"
6921 LINK_TESTS="$SHELL ${rel_builddir}/mk_prog.sh"
6924 cf_cv_shlib_version=mingw
6925 cf_cv_shlib_version_infix=mingw
6928 if test "$DFT_LWR_MODEL" = "shared" ; then
6929 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
6930 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6931 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
6934 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6935 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6936 cat >mk_shared_lib.sh <<-CF_EOF
6939 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
6942 Linking shared library
6943 ** SHARED_LIB \$SHARED_LIB
6944 ** IMPORT_LIB \$IMPORT_LIB
6946 exec \$* ${LDFLAGS} -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6948 chmod +x mk_shared_lib.sh
6950 (openbsd[2-9].*|mirbsd*)
6951 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6952 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6953 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6955 if test "$cf_cv_enable_rpath" = yes ; then
6956 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6958 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6960 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6961 if test "$cf_cv_shlib_version" = rel; then
6962 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6964 cf_cv_shared_soname='`basename $@`'
6967 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6971 MK_SHARED_LIB='${LD} -Wshared -Weld=-export_all -o $@'
6975 MK_SHARED_LIB='${LD} -Wshared -Wxld=-export_all -o $@'
6977 (nto-qnx*|openbsd*|freebsd[12].*)
6978 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6979 MK_SHARED_LIB='${LD} ${LDFLAGS} -Bshareable -o $@'
6980 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6982 (dragonfly*|freebsd*)
6983 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6984 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6985 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6986 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
6987 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6990 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6991 if test "$cf_cv_shlib_version" = rel; then
6992 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6994 cf_cv_shared_soname='`basename $@`'
6997 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
7000 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
7001 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
7002 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
7003 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7004 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
7005 if test "$cf_cv_shlib_version" = auto; then
7006 if test -f /usr/libexec/ld.elf_so; then
7007 cf_cv_shlib_version=abi
7009 cf_cv_shlib_version=rel
7013 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7014 if test "$cf_cv_shlib_version" = rel; then
7015 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7017 cf_cv_shared_soname='`basename $@`'
7020 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
7022 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -o $@'
7026 # tested with OSF/1 V3.2 and 'cc'
7027 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
7028 # link with shared libs).
7029 MK_SHARED_LIB='${LD} ${LDFLAGS} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
7032 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
7035 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
7036 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
7037 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
7038 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7040 cf_cv_rm_so_locs=yes
7042 (sco3.2v5*) # also uw2* and UW7: hops 13-Apr-98
7043 # tested with osr5.0.5
7044 if test "$GCC" != yes; then
7045 CC_SHARED_OPTS='-belf -KPIC'
7047 MK_SHARED_LIB='${LD} ${LDFLAGS} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
7048 if test "$cf_cv_enable_rpath" = yes ; then
7049 # only way is to set LD_RUN_PATH but no switch for it
7052 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7053 LINK_PROGS='LD_RUN_PATH=${libdir}'
7054 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
7057 # tested with SunOS 4.1.1 and gcc 2.7.0
7058 if test "$GCC" != yes; then
7059 CC_SHARED_OPTS='-KPIC'
7061 MK_SHARED_LIB='${LD} ${LDFLAGS} -assert pure-text -o $@'
7062 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7065 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
7066 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
7067 if test "$DFT_LWR_MODEL" = "shared" ; then
7068 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
7069 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
7071 if test "$cf_cv_enable_rpath" = yes ; then
7072 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
7075 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
7076 if test "$cf_cv_shlib_version" = rel; then
7077 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
7079 cf_cv_shared_soname='`basename $@`'
7082 if test "$GCC" != yes; then
7083 cf_save_CFLAGS="$CFLAGS"
7084 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
7086 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
7087 cat >"conftest.$ac_ext" <<_ACEOF
7088 #line 7088 "configure"
7089 #include "confdefs.h"
7099 rm -f "conftest.$ac_objext"
7100 if { (eval echo "$as_me:7100: \"$ac_compile\"") >&5
7101 (eval $ac_compile) 2>&5
7103 echo "$as_me:7103: \$? = $ac_status" >&5
7104 (exit "$ac_status"); } &&
7105 { ac_try='test -s "conftest.$ac_objext"'
7106 { (eval echo "$as_me:7106: \"$ac_try\"") >&5
7109 echo "$as_me:7109: \$? = $ac_status" >&5
7110 (exit "$ac_status"); }; }; then
7113 echo "$as_me: failed program was:" >&5
7114 cat "conftest.$ac_ext" >&5
7116 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
7118 CFLAGS="$cf_save_CFLAGS"
7119 CC_SHARED_OPTS=$cf_shared_opts
7120 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dy -G -h '$cf_cv_shared_soname' -o $@'
7122 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
7125 (sysv5uw7*|unix_sv*)
7126 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
7127 if test "$GCC" != yes; then
7128 CC_SHARED_OPTS='-KPIC'
7130 MK_SHARED_LIB='${LD} ${LDFLAGS} -d y -G -o $@'
7133 CC_SHARED_OPTS='unknown'
7134 MK_SHARED_LIB='echo unknown'
7138 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
7139 case "$cf_cv_shlib_version" in
7141 case "$MK_SHARED_LIB" in
7143 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
7146 { echo "$as_me:7146: WARNING: ignored --with-shlib-version" >&5
7147 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
7153 if test -n "$cf_try_cflags"
7155 cat > conftest.$ac_ext <<EOF
7156 #line 7156 "${as_me:-configure}"
7158 int main(int argc, char *argv[])
7161 return (argv[argc-1] == 0) ;
7164 cf_save_CFLAGS="$CFLAGS"
7165 for cf_opt in $cf_try_cflags
7167 CFLAGS="$cf_save_CFLAGS -$cf_opt"
7168 echo "$as_me:7168: checking if CFLAGS option -$cf_opt works" >&5
7169 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
7170 if { (eval echo "$as_me:7170: \"$ac_compile\"") >&5
7171 (eval $ac_compile) 2>&5
7173 echo "$as_me:7173: \$? = $ac_status" >&5
7174 (exit "$ac_status"); }; then
7175 echo "$as_me:7175: result: yes" >&5
7176 echo "${ECHO_T}yes" >&6
7177 cf_save_CFLAGS="$CFLAGS"
7179 echo "$as_me:7179: result: no" >&5
7180 echo "${ECHO_T}no" >&6
7183 CFLAGS="$cf_save_CFLAGS"
7186 # RPATH_LIST is a colon-separated list of directories
7187 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
7188 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
7190 test "$cf_cv_rm_so_locs" = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations"
7192 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
7194 echo "${as_me:-configure}:7194: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
7196 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
7198 echo "${as_me:-configure}:7198: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
7200 for model in $cf_list_models ; do
7204 echo "$as_me:7204: checking for additional libtool options" >&5
7205 echo $ECHO_N "checking for additional libtool options... $ECHO_C" >&6
7207 # Check whether --with-libtool-opts or --without-libtool-opts was given.
7208 if test "${with_libtool_opts+set}" = set; then
7209 withval="$with_libtool_opts"
7210 with_libtool_opts=$withval
7212 with_libtool_opts=no
7214 echo "$as_me:7214: result: $with_libtool_opts" >&5
7215 echo "${ECHO_T}$with_libtool_opts" >&6
7217 case .$with_libtool_opts in
7221 LIBTOOL_OPTS="$LIBTOOL_OPTS $with_libtool_opts"
7225 echo "$as_me:7225: checking if exported-symbols file should be used" >&5
7226 echo $ECHO_N "checking if exported-symbols file should be used... $ECHO_C" >&6
7228 # Check whether --with-export-syms or --without-export-syms was given.
7229 if test "${with_export_syms+set}" = set; then
7230 withval="$with_export_syms"
7231 with_export_syms=$withval
7235 if test "x$with_export_syms" = xyes
7237 with_export_syms='${top_srcdir}/package/${PACKAGE}.sym'
7240 echo "$as_me:7240: result: $with_export_syms" >&5
7241 echo "${ECHO_T}$with_export_syms" >&6
7242 if test "x$with_export_syms" != xno
7244 EXPORT_SYMS="-export-symbols $with_export_syms"
7250 if test "$CC_SHARED_OPTS" = "unknown"; then
7251 { { echo "$as_me:7251: error: Shared libraries are not supported in this version" >&5
7252 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
7253 { (exit 1); exit 1; }; }
7255 # workaround for inept transition to PIE vs PIC...
7256 echo "$as_me:7256: checking if current CFLAGS link properly" >&5
7257 echo $ECHO_N "checking if current CFLAGS link properly... $ECHO_C" >&6
7258 cat >"conftest.$ac_ext" <<_ACEOF
7259 #line 7259 "configure"
7260 #include "confdefs.h"
7265 printf("Hello work\\n");
7270 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7271 if { (eval echo "$as_me:7271: \"$ac_link\"") >&5
7272 (eval $ac_link) 2>&5
7274 echo "$as_me:7274: \$? = $ac_status" >&5
7275 (exit "$ac_status"); } &&
7276 { ac_try='test -s "conftest$ac_exeext"'
7277 { (eval echo "$as_me:7277: \"$ac_try\"") >&5
7280 echo "$as_me:7280: \$? = $ac_status" >&5
7281 (exit "$ac_status"); }; }; then
7284 echo "$as_me: failed program was:" >&5
7285 cat "conftest.$ac_ext" >&5
7288 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7289 echo "$as_me:7289: result: $cf_cflags_work" >&5
7290 echo "${ECHO_T}$cf_cflags_work" >&6
7291 if test "$cf_cflags_work" = no
7293 test -n "$verbose" && echo " try to work around by appending shared-options" 1>&6
7295 echo "${as_me:-configure}:7295: testing try to work around by appending shared-options ..." 1>&5
7297 CFLAGS="$CFLAGS $CC_SHARED_OPTS"
7300 echo "$as_me:7300: checking if versioned-symbols file should be used" >&5
7301 echo $ECHO_N "checking if versioned-symbols file should be used... $ECHO_C" >&6
7303 # Check whether --with-versioned-syms or --without-versioned-syms was given.
7304 if test "${with_versioned_syms+set}" = set; then
7305 withval="$with_versioned_syms"
7306 with_versioned_syms=$withval
7308 with_versioned_syms=no
7310 case "x$with_versioned_syms" in
7312 with_versioned_syms='${top_srcdir}/package/${PACKAGE}.map'
7318 test -f "$with_versioned_syms" || { { echo "$as_me:7318: error: expected a filename: $with_versioned_syms" >&5
7319 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
7320 { (exit 1); exit 1; }; }
7323 test -f "$with_versioned_syms" || { { echo "$as_me:7323: error: expected a filename: $with_versioned_syms" >&5
7324 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
7325 { (exit 1); exit 1; }; }
7326 with_versioned_syms=`pwd`/"$with_versioned_syms"
7329 echo "$as_me:7329: result: $with_versioned_syms" >&5
7330 echo "${ECHO_T}$with_versioned_syms" >&6
7336 if test "x$with_versioned_syms" != xno
7338 RESULTING_SYMS=$with_versioned_syms
7339 case "x$MK_SHARED_LIB" in
7341 VERSIONED_SYMS="-Wl,--version-script,\${RESULTING_SYMS}"
7342 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-Wl,%\\${VERSIONED_SYMS} -Wl,%"`
7343 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
7345 echo "${as_me:-configure}:7345: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
7349 VERSIONED_SYMS="-Wl,-M,\${RESULTING_SYMS}"
7350 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-dy%\\${VERSIONED_SYMS} -dy%"`
7351 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
7353 echo "${as_me:-configure}:7353: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
7357 { echo "$as_me:7357: WARNING: this system does not support versioned-symbols" >&5
7358 echo "$as_me: WARNING: this system does not support versioned-symbols" >&2;}
7362 # Linux ld can selectively override scope, e.g., of symbols beginning with
7363 # "_" by first declaring some as global, and then using a wildcard to
7364 # declare the others as local. Some other loaders cannot do this. Check
7365 # by constructing a (very) simple shared library and inspecting its
7367 if test "x$VERSIONED_SYMS" != "x"
7369 echo "$as_me:7369: checking if wildcards can be used to selectively omit symbols" >&5
7370 echo $ECHO_N "checking if wildcards can be used to selectively omit symbols... $ECHO_C" >&6
7376 cat >conftest.ver <<EOF
7405 cat >conftest.$ac_ext <<EOF
7406 #line 7406 "configure"
7407 int _ismissing(void) { return 1; }
7408 int _localf1(void) { return 1; }
7409 int _localf2(void) { return 2; }
7410 int globalf1(void) { return 1; }
7411 int globalf2(void) { return 2; }
7412 int _sublocalf1(void) { return 1; }
7413 int _sublocalf2(void) { return 2; }
7414 int subglobalf1(void) { return 1; }
7415 int subglobalf2(void) { return 2; }
7417 cat >conftest.mk <<EOF
7420 CPPFLAGS=${CPPFLAGS}
7423 VERSIONED_SYMS=${VERSIONED_SYMS}
7424 RESULTING_SYMS=conftest.ver
7425 MK_SHARED_LIB=${MK_SHARED_LIB}
7426 conftest.so: conftest.$ac_cv_objext
7427 \$(MK_SHARED_LIB) conftest.$ac_cv_objext
7430 # compile source, make library
7431 if make -f conftest.mk 2>&5 >/dev/null
7433 # test for missing symbol in either Data or Text section
7434 cf_missing="`nm -P conftest.so 2>&5 |${FGREP-fgrep} _ismissing | ${EGREP-egrep} '[ ][DT][ ]'`"
7435 test -n "$cf_missing" && WILDCARD_SYMS=yes
7437 echo "$as_me:7437: result: $WILDCARD_SYMS" >&5
7438 echo "${ECHO_T}$WILDCARD_SYMS" >&6
7447 ### Checks for special libraries, must be done up-front.
7450 echo "$as_me:7450: checking if you want to link with the GPM mouse library" >&5
7451 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
7453 # Check whether --with-gpm or --without-gpm was given.
7454 if test "${with_gpm+set}" = set; then
7460 echo "$as_me:7460: result: $with_gpm" >&5
7461 echo "${ECHO_T}$with_gpm" >&6
7463 if test "$with_gpm" != no ; then
7464 echo "$as_me:7464: checking for gpm.h" >&5
7465 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
7466 if test "${ac_cv_header_gpm_h+set}" = set; then
7467 echo $ECHO_N "(cached) $ECHO_C" >&6
7469 cat >"conftest.$ac_ext" <<_ACEOF
7470 #line 7470 "configure"
7471 #include "confdefs.h"
7474 if { (eval echo "$as_me:7474: \"$ac_cpp "conftest.$ac_ext"\"") >&5
7475 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
7477 $EGREP -v '^ *\+' conftest.er1 >conftest.err
7479 cat conftest.err >&5
7480 echo "$as_me:7480: \$? = $ac_status" >&5
7481 (exit "$ac_status"); } >/dev/null; then
7482 if test -s conftest.err; then
7483 ac_cpp_err=$ac_c_preproc_warn_flag
7490 if test -z "$ac_cpp_err"; then
7491 ac_cv_header_gpm_h=yes
7493 echo "$as_me: failed program was:" >&5
7494 cat "conftest.$ac_ext" >&5
7495 ac_cv_header_gpm_h=no
7497 rm -f conftest.err "conftest.$ac_ext"
7499 echo "$as_me:7499: result: $ac_cv_header_gpm_h" >&5
7500 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
7501 if test "$ac_cv_header_gpm_h" = yes; then
7503 cat >>confdefs.h <<\EOF
7504 #define HAVE_GPM_H 1
7507 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
7508 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
7510 echo "${as_me:-configure}:7510: testing assuming we really have GPM library ..." 1>&5
7512 cat >>confdefs.h <<\EOF
7513 #define HAVE_LIBGPM 1
7518 echo "$as_me:7518: checking for Gpm_Open in -lgpm" >&5
7519 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
7520 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
7521 echo $ECHO_N "(cached) $ECHO_C" >&6
7523 ac_check_lib_save_LIBS=$LIBS
7525 cat >"conftest.$ac_ext" <<_ACEOF
7526 #line 7526 "configure"
7527 #include "confdefs.h"
7529 /* Override any gcc2 internal prototype to avoid an error. */
7533 /* We use char because int might match the return type of a gcc2
7534 builtin and then its argument prototype would still apply. */
7544 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7545 if { (eval echo "$as_me:7545: \"$ac_link\"") >&5
7546 (eval $ac_link) 2>&5
7548 echo "$as_me:7548: \$? = $ac_status" >&5
7549 (exit "$ac_status"); } &&
7550 { ac_try='test -s "conftest$ac_exeext"'
7551 { (eval echo "$as_me:7551: \"$ac_try\"") >&5
7554 echo "$as_me:7554: \$? = $ac_status" >&5
7555 (exit "$ac_status"); }; }; then
7556 ac_cv_lib_gpm_Gpm_Open=yes
7558 echo "$as_me: failed program was:" >&5
7559 cat "conftest.$ac_ext" >&5
7560 ac_cv_lib_gpm_Gpm_Open=no
7562 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7563 LIBS=$ac_check_lib_save_LIBS
7565 echo "$as_me:7565: result: $ac_cv_lib_gpm_Gpm_Open" >&5
7566 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
7567 if test "$ac_cv_lib_gpm_Gpm_Open" = yes; then
7571 if test "$with_gpm" = maybe; then
7572 { echo "$as_me:7572: WARNING: Cannot link with GPM library" >&5
7573 echo "$as_me: WARNING: Cannot link with GPM library" >&2;}
7576 { { echo "$as_me:7576: error: Cannot link with GPM library" >&5
7577 echo "$as_me: error: Cannot link with GPM library" >&2;}
7578 { (exit 1); exit 1; }; }
7587 test "$with_gpm" != maybe && { echo "$as_me:7587: WARNING: Cannot find GPM header" >&5
7588 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
7595 if test "$with_gpm" != no ; then
7596 echo "$as_me:7596: checking if you want to load GPM dynamically" >&5
7597 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
7599 # Check whether --with-dlsym or --without-dlsym was given.
7600 if test "${with_dlsym+set}" = set; then
7601 withval="$with_dlsym"
7606 echo "$as_me:7606: result: $with_dlsym" >&5
7607 echo "${ECHO_T}$with_dlsym" >&6
7608 if test "x$with_dlsym" = xyes ; then
7611 echo "$as_me:7611: checking for dlsym" >&5
7612 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
7613 if test "${ac_cv_func_dlsym+set}" = set; then
7614 echo $ECHO_N "(cached) $ECHO_C" >&6
7616 cat >"conftest.$ac_ext" <<_ACEOF
7617 #line 7617 "configure"
7618 #include "confdefs.h"
7619 #define dlsym autoconf_temporary
7620 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
7627 /* We use char because int might match the return type of a gcc2
7628 builtin and then its argument prototype would still apply. */
7635 /* The GNU C library defines stubs for functions which it implements
7636 to always fail with ENOSYS. Some functions are actually named
7637 something starting with __ and the normal name is an alias. */
7638 #if defined (__stub_dlsym) || defined (__stub___dlsym)
7639 #error found stub for dlsym
7647 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7648 if { (eval echo "$as_me:7648: \"$ac_link\"") >&5
7649 (eval $ac_link) 2>&5
7651 echo "$as_me:7651: \$? = $ac_status" >&5
7652 (exit "$ac_status"); } &&
7653 { ac_try='test -s "conftest$ac_exeext"'
7654 { (eval echo "$as_me:7654: \"$ac_try\"") >&5
7657 echo "$as_me:7657: \$? = $ac_status" >&5
7658 (exit "$ac_status"); }; }; then
7659 ac_cv_func_dlsym=yes
7661 echo "$as_me: failed program was:" >&5
7662 cat "conftest.$ac_ext" >&5
7665 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7667 echo "$as_me:7667: result: $ac_cv_func_dlsym" >&5
7668 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
7669 if test "$ac_cv_func_dlsym" = yes; then
7674 echo "$as_me:7674: checking for dlsym in -ldl" >&5
7675 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
7676 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
7677 echo $ECHO_N "(cached) $ECHO_C" >&6
7679 ac_check_lib_save_LIBS=$LIBS
7681 cat >"conftest.$ac_ext" <<_ACEOF
7682 #line 7682 "configure"
7683 #include "confdefs.h"
7685 /* Override any gcc2 internal prototype to avoid an error. */
7689 /* We use char because int might match the return type of a gcc2
7690 builtin and then its argument prototype would still apply. */
7700 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7701 if { (eval echo "$as_me:7701: \"$ac_link\"") >&5
7702 (eval $ac_link) 2>&5
7704 echo "$as_me:7704: \$? = $ac_status" >&5
7705 (exit "$ac_status"); } &&
7706 { ac_try='test -s "conftest$ac_exeext"'
7707 { (eval echo "$as_me:7707: \"$ac_try\"") >&5
7710 echo "$as_me:7710: \$? = $ac_status" >&5
7711 (exit "$ac_status"); }; }; then
7712 ac_cv_lib_dl_dlsym=yes
7714 echo "$as_me: failed program was:" >&5
7715 cat "conftest.$ac_ext" >&5
7716 ac_cv_lib_dl_dlsym=no
7718 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7719 LIBS=$ac_check_lib_save_LIBS
7721 echo "$as_me:7721: result: $ac_cv_lib_dl_dlsym" >&5
7722 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
7723 if test "$ac_cv_lib_dl_dlsym" = yes; then
7731 if test "$cf_have_dlsym" = yes ; then
7732 test "$cf_have_libdl" = yes && {
7736 for cf_add_1lib in -ldl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7738 for cf_add_1lib in $cf_add_0lib; do
7739 for cf_add_2lib in $cf_add_libs; do
7740 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7745 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7750 echo "$as_me:7750: checking whether able to link to dl*() functions" >&5
7751 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
7752 cat >"conftest.$ac_ext" <<_ACEOF
7753 #line 7753 "configure"
7754 #include "confdefs.h"
7761 if ((obj = dlopen("filename", 0)) != 0) {
7762 if (dlsym(obj, "symbolname") == 0) {
7770 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7771 if { (eval echo "$as_me:7771: \"$ac_link\"") >&5
7772 (eval $ac_link) 2>&5
7774 echo "$as_me:7774: \$? = $ac_status" >&5
7775 (exit "$ac_status"); } &&
7776 { ac_try='test -s "conftest$ac_exeext"'
7777 { (eval echo "$as_me:7777: \"$ac_try\"") >&5
7780 echo "$as_me:7780: \$? = $ac_status" >&5
7781 (exit "$ac_status"); }; }; then
7783 cat >>confdefs.h <<\EOF
7784 #define HAVE_LIBDL 1
7788 echo "$as_me: failed program was:" >&5
7789 cat "conftest.$ac_ext" >&5
7791 { { echo "$as_me:7791: error: Cannot link test program for libdl" >&5
7792 echo "$as_me: error: Cannot link test program for libdl" >&2;}
7793 { (exit 1); exit 1; }; }
7795 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7796 echo "$as_me:7796: result: ok" >&5
7797 echo "${ECHO_T}ok" >&6
7799 { { echo "$as_me:7799: error: Cannot find dlsym function" >&5
7800 echo "$as_me: error: Cannot find dlsym function" >&2;}
7801 { (exit 1); exit 1; }; }
7804 if test "x$with_gpm" != xyes ; then
7805 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
7807 echo "${as_me:-configure}:7807: testing assuming soname for gpm is $with_gpm ..." 1>&5
7809 cf_cv_gpm_soname="$with_gpm"
7812 echo "$as_me:7812: checking for soname of gpm library" >&5
7813 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
7814 if test "${cf_cv_gpm_soname+set}" = set; then
7815 echo $ECHO_N "(cached) $ECHO_C" >&6
7818 cf_cv_gpm_soname=unknown
7819 if test "$cross_compiling" != yes ; then
7820 cat >conftest.$ac_ext <<CF_EOF
7824 if (Gpm_Open(0,0)) Gpm_Close();
7825 ${cf_cv_main_return:-return}(0);
7828 cf_save_LIBS="$LIBS"
7833 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7835 for cf_add_1lib in $cf_add_0lib; do
7836 for cf_add_2lib in $cf_add_libs; do
7837 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7842 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7846 if { (eval echo "$as_me:7846: \"$ac_compile\"") >&5
7847 (eval $ac_compile) 2>&5
7849 echo "$as_me:7849: \$? = $ac_status" >&5
7850 (exit "$ac_status"); } ; then
7851 if { (eval echo "$as_me:7851: \"$ac_link\"") >&5
7852 (eval $ac_link) 2>&5
7854 echo "$as_me:7854: \$? = $ac_status" >&5
7855 (exit "$ac_status"); } ; then
7856 cf_cv_gpm_soname="`ldd \"conftest$ac_exeext\" 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | ${FGREP-fgrep} libgpm.`"
7857 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
7861 LIBS="$cf_save_LIBS"
7865 echo "$as_me:7865: result: $cf_cv_gpm_soname" >&5
7866 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
7869 test "$cf_cv_gpm_soname" != "unknown" &&
7870 cat >>confdefs.h <<EOF
7871 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
7874 SHLIB_LIST="-ldl $SHLIB_LIST"
7876 cf_add_libs="$PRIVATE_LIBS"
7879 for cf_add_1lib in -ldl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7881 for cf_add_1lib in $cf_add_0lib; do
7882 for cf_add_2lib in $cf_add_libs; do
7883 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7888 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7890 PRIVATE_LIBS="$cf_add_libs"
7893 SHLIB_LIST="-lgpm $SHLIB_LIST"
7895 cf_add_libs="$TEST_LIBS"
7898 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7900 for cf_add_1lib in $cf_add_0lib; do
7901 for cf_add_2lib in $cf_add_libs; do
7902 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7907 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7909 TEST_LIBS="$cf_add_libs"
7911 cf_add_libs="$PRIVATE_LIBS"
7914 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7916 for cf_add_1lib in $cf_add_0lib; do
7917 for cf_add_2lib in $cf_add_libs; do
7918 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7923 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7925 PRIVATE_LIBS="$cf_add_libs"
7929 cat >>confdefs.h <<\EOF
7930 #define HAVE_LIBGPM 1
7933 echo "$as_me:7933: checking for Gpm_Wgetch in -lgpm" >&5
7934 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
7935 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
7936 echo $ECHO_N "(cached) $ECHO_C" >&6
7938 ac_check_lib_save_LIBS=$LIBS
7940 cat >"conftest.$ac_ext" <<_ACEOF
7941 #line 7941 "configure"
7942 #include "confdefs.h"
7944 /* Override any gcc2 internal prototype to avoid an error. */
7948 /* We use char because int might match the return type of a gcc2
7949 builtin and then its argument prototype would still apply. */
7959 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7960 if { (eval echo "$as_me:7960: \"$ac_link\"") >&5
7961 (eval $ac_link) 2>&5
7963 echo "$as_me:7963: \$? = $ac_status" >&5
7964 (exit "$ac_status"); } &&
7965 { ac_try='test -s "conftest$ac_exeext"'
7966 { (eval echo "$as_me:7966: \"$ac_try\"") >&5
7969 echo "$as_me:7969: \$? = $ac_status" >&5
7970 (exit "$ac_status"); }; }; then
7971 ac_cv_lib_gpm_Gpm_Wgetch=yes
7973 echo "$as_me: failed program was:" >&5
7974 cat "conftest.$ac_ext" >&5
7975 ac_cv_lib_gpm_Gpm_Wgetch=no
7977 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7978 LIBS=$ac_check_lib_save_LIBS
7980 echo "$as_me:7980: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
7981 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
7982 if test "$ac_cv_lib_gpm_Gpm_Wgetch" = yes; then
7984 echo "$as_me:7984: checking if GPM is weakly bound to curses library" >&5
7985 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
7986 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
7987 echo $ECHO_N "(cached) $ECHO_C" >&6
7990 cf_cv_check_gpm_wgetch=unknown
7991 if test "$cross_compiling" != yes ; then
7993 cat >conftest.$ac_ext <<CF_EOF
7998 ${cf_cv_main_return:-return}(0);
8002 cf_save_LIBS="$LIBS"
8003 # This only works if we can look at the symbol table. If a shared
8004 # library is stripped for install, we cannot use that. So we're forced
8005 # to rely on the static library, noting that some packagers may not
8007 LIBS="-static -lgpm -dynamic $LIBS"
8008 if { (eval echo "$as_me:8008: \"$ac_compile\"") >&5
8009 (eval $ac_compile) 2>&5
8011 echo "$as_me:8011: \$? = $ac_status" >&5
8012 (exit "$ac_status"); } ; then
8013 if { (eval echo "$as_me:8013: \"$ac_link\"") >&5
8014 (eval $ac_link) 2>&5
8016 echo "$as_me:8016: \$? = $ac_status" >&5
8017 (exit "$ac_status"); } ; then
8018 cf_cv_check_gpm_wgetch="`nm \"conftest$ac_exeext\" | ${EGREP-egrep} '\<wgetch\>' | ${EGREP-egrep} '\<[vVwW]\>'`"
8019 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
8020 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
8024 LIBS="$cf_save_LIBS"
8028 echo "$as_me:8028: result: $cf_cv_check_gpm_wgetch" >&5
8029 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
8031 if test "$cf_cv_check_gpm_wgetch" != yes ; then
8032 { echo "$as_me:8032: WARNING: GPM library is already linked with curses - read the FAQ" >&5
8033 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
8040 echo "$as_me:8040: checking if you want to use PCRE2 for regular-expressions" >&5
8041 echo $ECHO_N "checking if you want to use PCRE2 for regular-expressions... $ECHO_C" >&6
8043 # Check whether --with-pcre2 or --without-pcre2 was given.
8044 if test "${with_pcre2+set}" = set; then
8045 withval="$with_pcre2"
8048 test -z "$with_pcre2" && with_pcre2=no
8049 echo "$as_me:8049: result: $with_pcre2" >&5
8050 echo "${ECHO_T}$with_pcre2" >&6
8052 if test "x$with_pcre2" != xno ; then
8054 for cf_with_pcre2 in libpcre2 libpcre2-posix libpcre
8057 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "$cf_with_pcre2"; then
8058 test -n "$verbose" && echo " found package $cf_with_pcre2" 1>&6
8060 echo "${as_me:-configure}:8060: testing found package $cf_with_pcre2 ..." 1>&5
8062 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "$cf_with_pcre2" 2>/dev/null`"
8063 cf_pkgconfig_libs="`$PKG_CONFIG --libs "$cf_with_pcre2" 2>/dev/null`"
8064 test -n "$verbose" && echo " package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs" 1>&6
8066 echo "${as_me:-configure}:8066: testing package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
8068 test -n "$verbose" && echo " package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs" 1>&6
8070 echo "${as_me:-configure}:8070: testing package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs ..." 1>&5
8075 cf_new_extra_cppflags=
8077 for cf_add_cflags in $cf_pkgconfig_incs
8079 case "$cf_fix_cppflags" in
8081 case "$cf_add_cflags" in
8082 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8083 case "$cf_add_cflags" in
8085 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8087 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8088 && test -z "${cf_tst_cflags}" \
8089 && cf_fix_cppflags=yes
8091 if test "$cf_fix_cppflags" = yes ; then
8093 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8094 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8097 elif test "${cf_tst_cflags}" = "\"'" ; then
8099 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8100 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8110 case "$cf_add_cflags" in
8112 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8114 CPPFLAGS=`echo "$CPPFLAGS" | \
8115 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8116 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8121 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
8122 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
8129 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
8130 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
8137 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8138 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8140 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
8142 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8143 && test -z "${cf_tst_cflags}" \
8144 && cf_fix_cppflags=no
8149 if test -n "$cf_new_cflags" ; then
8151 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
8152 CFLAGS="${CFLAGS}$cf_new_cflags"
8156 if test -n "$cf_new_cppflags" ; then
8158 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8159 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
8163 if test -n "$cf_new_extra_cppflags" ; then
8165 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
8166 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
8173 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8175 for cf_add_1lib in $cf_add_0lib; do
8176 for cf_add_2lib in $cf_add_libs; do
8177 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8182 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8186 cf_with_pcre2_ok=yes; break
8194 cf_with_pcre2_ok=yes || { { echo "$as_me:8194: error: Cannot find PCRE2 library" >&5
8195 echo "$as_me: error: Cannot find PCRE2 library" >&2;}
8196 { (exit 1); exit 1; }; }
8198 cat >>confdefs.h <<\EOF
8199 #define HAVE_LIB_PCRE2 1
8202 # if pkgconfig gave no results, look for the libraries directly
8204 (*pcre2-posix*|*pcreposix*)
8207 echo "$as_me:8207: checking for regcomp in -lpcre2-posix" >&5
8208 echo $ECHO_N "checking for regcomp in -lpcre2-posix... $ECHO_C" >&6
8209 if test "${ac_cv_lib_pcre2_posix_regcomp+set}" = set; then
8210 echo $ECHO_N "(cached) $ECHO_C" >&6
8212 ac_check_lib_save_LIBS=$LIBS
8213 LIBS="-lpcre2-posix $LIBS"
8214 cat >"conftest.$ac_ext" <<_ACEOF
8215 #line 8215 "configure"
8216 #include "confdefs.h"
8218 /* Override any gcc2 internal prototype to avoid an error. */
8222 /* We use char because int might match the return type of a gcc2
8223 builtin and then its argument prototype would still apply. */
8233 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8234 if { (eval echo "$as_me:8234: \"$ac_link\"") >&5
8235 (eval $ac_link) 2>&5
8237 echo "$as_me:8237: \$? = $ac_status" >&5
8238 (exit "$ac_status"); } &&
8239 { ac_try='test -s "conftest$ac_exeext"'
8240 { (eval echo "$as_me:8240: \"$ac_try\"") >&5
8243 echo "$as_me:8243: \$? = $ac_status" >&5
8244 (exit "$ac_status"); }; }; then
8245 ac_cv_lib_pcre2_posix_regcomp=yes
8247 echo "$as_me: failed program was:" >&5
8248 cat "conftest.$ac_ext" >&5
8249 ac_cv_lib_pcre2_posix_regcomp=no
8251 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8252 LIBS=$ac_check_lib_save_LIBS
8254 echo "$as_me:8254: result: $ac_cv_lib_pcre2_posix_regcomp" >&5
8255 echo "${ECHO_T}$ac_cv_lib_pcre2_posix_regcomp" >&6
8256 if test "$ac_cv_lib_pcre2_posix_regcomp" = yes; then
8261 for cf_add_1lib in -lpcre2-posix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8263 for cf_add_1lib in $cf_add_0lib; do
8264 for cf_add_2lib in $cf_add_libs; do
8265 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8270 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8275 echo "$as_me:8275: checking for regcomp in -lpcreposix" >&5
8276 echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6
8277 if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then
8278 echo $ECHO_N "(cached) $ECHO_C" >&6
8280 ac_check_lib_save_LIBS=$LIBS
8281 LIBS="-lpcreposix $LIBS"
8282 cat >"conftest.$ac_ext" <<_ACEOF
8283 #line 8283 "configure"
8284 #include "confdefs.h"
8286 /* Override any gcc2 internal prototype to avoid an error. */
8290 /* We use char because int might match the return type of a gcc2
8291 builtin and then its argument prototype would still apply. */
8301 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8302 if { (eval echo "$as_me:8302: \"$ac_link\"") >&5
8303 (eval $ac_link) 2>&5
8305 echo "$as_me:8305: \$? = $ac_status" >&5
8306 (exit "$ac_status"); } &&
8307 { ac_try='test -s "conftest$ac_exeext"'
8308 { (eval echo "$as_me:8308: \"$ac_try\"") >&5
8311 echo "$as_me:8311: \$? = $ac_status" >&5
8312 (exit "$ac_status"); }; }; then
8313 ac_cv_lib_pcreposix_regcomp=yes
8315 echo "$as_me: failed program was:" >&5
8316 cat "conftest.$ac_ext" >&5
8317 ac_cv_lib_pcreposix_regcomp=no
8319 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8320 LIBS=$ac_check_lib_save_LIBS
8322 echo "$as_me:8322: result: $ac_cv_lib_pcreposix_regcomp" >&5
8323 echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6
8324 if test "$ac_cv_lib_pcreposix_regcomp" = yes; then
8329 for cf_add_1lib in -lpcreposix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8331 for cf_add_1lib in $cf_add_0lib; do
8332 for cf_add_2lib in $cf_add_libs; do
8333 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8338 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8343 { { echo "$as_me:8343: error: Cannot find PCRE2 POSIX library" >&5
8344 echo "$as_me: error: Cannot find PCRE2 POSIX library" >&2;}
8345 { (exit 1); exit 1; }; }
8353 # either way, check for the library header files
8355 for ac_header in pcre2posix.h pcreposix.h
8357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8358 echo "$as_me:8358: checking for $ac_header" >&5
8359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8361 echo $ECHO_N "(cached) $ECHO_C" >&6
8363 cat >"conftest.$ac_ext" <<_ACEOF
8364 #line 8364 "configure"
8365 #include "confdefs.h"
8366 #include <$ac_header>
8368 if { (eval echo "$as_me:8368: \"$ac_cpp "conftest.$ac_ext"\"") >&5
8369 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
8371 $EGREP -v '^ *\+' conftest.er1 >conftest.err
8373 cat conftest.err >&5
8374 echo "$as_me:8374: \$? = $ac_status" >&5
8375 (exit "$ac_status"); } >/dev/null; then
8376 if test -s conftest.err; then
8377 ac_cpp_err=$ac_c_preproc_warn_flag
8384 if test -z "$ac_cpp_err"; then
8385 eval "$as_ac_Header=yes"
8387 echo "$as_me: failed program was:" >&5
8388 cat "conftest.$ac_ext" >&5
8389 eval "$as_ac_Header=no"
8391 rm -f conftest.err "conftest.$ac_ext"
8393 echo "$as_me:8393: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
8394 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
8395 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
8396 cat >>confdefs.h <<EOF
8397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8403 for ac_func in PCRE2regcomp
8405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8406 echo "$as_me:8406: checking for $ac_func" >&5
8407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8408 if eval "test \"\${$as_ac_var+set}\" = set"; then
8409 echo $ECHO_N "(cached) $ECHO_C" >&6
8411 cat >"conftest.$ac_ext" <<_ACEOF
8412 #line 8412 "configure"
8413 #include "confdefs.h"
8414 #define $ac_func autoconf_temporary
8415 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
8422 /* We use char because int might match the return type of a gcc2
8423 builtin and then its argument prototype would still apply. */
8424 char $ac_func (void);
8430 /* The GNU C library defines stubs for functions which it implements
8431 to always fail with ENOSYS. Some functions are actually named
8432 something starting with __ and the normal name is an alias. */
8433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8434 #error found stub for $ac_func
8442 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8443 if { (eval echo "$as_me:8443: \"$ac_link\"") >&5
8444 (eval $ac_link) 2>&5
8446 echo "$as_me:8446: \$? = $ac_status" >&5
8447 (exit "$ac_status"); } &&
8448 { ac_try='test -s "conftest$ac_exeext"'
8449 { (eval echo "$as_me:8449: \"$ac_try\"") >&5
8452 echo "$as_me:8452: \$? = $ac_status" >&5
8453 (exit "$ac_status"); }; }; then
8454 eval "$as_ac_var=yes"
8456 echo "$as_me: failed program was:" >&5
8457 cat "conftest.$ac_ext" >&5
8458 eval "$as_ac_var=no"
8460 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8462 echo "$as_me:8462: result: `eval echo '${'"$as_ac_var"'}'`" >&5
8463 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
8464 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
8465 cat >>confdefs.h <<EOF
8466 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8474 # not everyone has "test -c"
8475 if test -c /dev/sysmouse 2>/dev/null ; then
8476 echo "$as_me:8476: checking if you want to use sysmouse" >&5
8477 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
8479 # Check whether --with-sysmouse or --without-sysmouse was given.
8480 if test "${with_sysmouse+set}" = set; then
8481 withval="$with_sysmouse"
8482 cf_with_sysmouse=$withval
8484 cf_with_sysmouse=maybe
8486 if test "$cf_with_sysmouse" != no ; then
8487 cat >"conftest.$ac_ext" <<_ACEOF
8488 #line 8488 "configure"
8489 #include "confdefs.h"
8491 #include <osreldate.h>
8492 #if (__FreeBSD_version >= 400017)
8493 #include <sys/consio.h>
8494 #include <sys/fbio.h>
8496 #include <machine/console.h>
8503 struct mouse_info the_mouse;
8504 ioctl(0, CONS_MOUSECTL, &the_mouse);
8510 rm -f "conftest.$ac_objext"
8511 if { (eval echo "$as_me:8511: \"$ac_compile\"") >&5
8512 (eval $ac_compile) 2>&5
8514 echo "$as_me:8514: \$? = $ac_status" >&5
8515 (exit "$ac_status"); } &&
8516 { ac_try='test -s "conftest.$ac_objext"'
8517 { (eval echo "$as_me:8517: \"$ac_try\"") >&5
8520 echo "$as_me:8520: \$? = $ac_status" >&5
8521 (exit "$ac_status"); }; }; then
8522 cf_with_sysmouse=yes
8524 echo "$as_me: failed program was:" >&5
8525 cat "conftest.$ac_ext" >&5
8528 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
8530 echo "$as_me:8530: result: $cf_with_sysmouse" >&5
8531 echo "${ECHO_T}$cf_with_sysmouse" >&6
8532 test "$cf_with_sysmouse" = yes &&
8533 cat >>confdefs.h <<\EOF
8534 #define USE_SYSMOUSE 1
8539 # pretend that ncurses==ncursesw==ncursest
8540 echo "$as_me:8540: checking if you want to disable library suffixes" >&5
8541 echo $ECHO_N "checking if you want to disable library suffixes... $ECHO_C" >&6
8543 # Check whether --enable-lib-suffixes or --disable-lib-suffixes was given.
8544 if test "${enable_lib_suffixes+set}" = set; then
8545 enableval="$enable_lib_suffixes"
8546 test "$enableval" != no && enableval=yes
8547 if test "$enableval" != "yes" ; then
8548 disable_lib_suffixes=yes
8550 disable_lib_suffixes=no
8554 disable_lib_suffixes=no
8557 echo "$as_me:8557: result: $disable_lib_suffixes" >&5
8558 echo "${ECHO_T}$disable_lib_suffixes" >&6
8560 ### If we're building with rpath, try to link non-standard libs that way too.
8561 if test "$DFT_LWR_MODEL" = "shared" && test "x$cf_cv_enable_rpath" != xno; then
8563 echo "$as_me:8563: checking if rpath-hack should be disabled" >&5
8564 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
8566 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
8567 if test "${enable_rpath_hack+set}" = set; then
8568 enableval="$enable_rpath_hack"
8569 test "$enableval" != no && enableval=yes
8570 if test "$enableval" != "yes" ; then
8571 enable_rpath_hack=no
8573 enable_rpath_hack=yes
8577 enable_rpath_hack=yes
8580 if test "x$enable_rpath_hack" = xno; then cf_disable_rpath_hack=yes; else cf_disable_rpath_hack=no; fi
8581 echo "$as_me:8581: result: $cf_disable_rpath_hack" >&5
8582 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
8584 if test "$enable_rpath_hack" = yes ; then
8586 echo "$as_me:8586: checking for updated LDFLAGS" >&5
8587 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
8588 if test -n "$LD_RPATH_OPT" ; then
8589 echo "$as_me:8589: result: maybe" >&5
8590 echo "${ECHO_T}maybe" >&6
8594 # Extract the first word of "$ac_prog", so it can be a program name with args.
8595 set dummy $ac_prog; ac_word=$2
8596 echo "$as_me:8596: checking for $ac_word" >&5
8597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8598 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
8599 echo $ECHO_N "(cached) $ECHO_C" >&6
8601 if test -n "$cf_ldd_prog"; then
8602 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
8604 ac_save_IFS=$IFS; IFS=$ac_path_separator
8606 for ac_dir in $ac_dummy; do
8608 test -z "$ac_dir" && ac_dir=.
8609 $as_executable_p "$ac_dir/$ac_word" || continue
8610 ac_cv_prog_cf_ldd_prog="$ac_prog"
8611 echo "$as_me:8611: found $ac_dir/$ac_word" >&5
8617 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
8618 if test -n "$cf_ldd_prog"; then
8619 echo "$as_me:8619: result: $cf_ldd_prog" >&5
8620 echo "${ECHO_T}$cf_ldd_prog" >&6
8622 echo "$as_me:8622: result: no" >&5
8623 echo "${ECHO_T}no" >&6
8626 test -n "$cf_ldd_prog" && break
8628 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
8630 cf_rpath_list="/usr/lib /lib"
8631 if test "$cf_ldd_prog" != no
8635 cat >"conftest.$ac_ext" <<_ACEOF
8636 #line 8636 "configure"
8637 #include "confdefs.h"
8647 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8648 if { (eval echo "$as_me:8648: \"$ac_link\"") >&5
8649 (eval $ac_link) 2>&5
8651 echo "$as_me:8651: \$? = $ac_status" >&5
8652 (exit "$ac_status"); } &&
8653 { ac_try='test -s "conftest$ac_exeext"'
8654 { (eval echo "$as_me:8654: \"$ac_try\"") >&5
8657 echo "$as_me:8657: \$? = $ac_status" >&5
8658 (exit "$ac_status"); }; }; then
8659 cf_rpath_oops=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
8660 cf_rpath_list=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
8662 echo "$as_me: failed program was:" >&5
8663 cat "conftest.$ac_ext" >&5
8665 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8667 # If we passed the link-test, but get a "not found" on a given library,
8668 # this could be due to inept reconfiguration of gcc to make it only
8669 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
8670 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
8671 # /usr/local libraries.
8672 if test -n "$cf_rpath_oops"
8674 for cf_rpath_src in $cf_rpath_oops
8676 for cf_rpath_dir in \
8681 if test -f "$cf_rpath_dir/lib/$cf_rpath_src"
8683 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
8685 echo "${as_me:-configure}:8685: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
8687 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
8695 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
8697 echo "${as_me:-configure}:8697: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
8699 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
8701 echo "${as_me:-configure}:8701: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
8704 for cf_rpath_src in $LDFLAGS
8706 case "$cf_rpath_src" in
8709 # check if this refers to a directory which we will ignore
8711 if test -n "$cf_rpath_list"
8713 for cf_rpath_item in $cf_rpath_list
8715 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
8723 if test "$cf_rpath_skip" = no
8725 # transform the option
8726 if test "$LD_RPATH_OPT" = "-R " ; then
8727 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
8729 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
8732 # if we have not already added this, add it now
8733 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
8734 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
8736 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
8738 echo "${as_me:-configure}:8738: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
8740 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
8745 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
8747 LDFLAGS=$cf_rpath_dst
8749 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
8751 echo "${as_me:-configure}:8751: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
8753 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
8755 echo "${as_me:-configure}:8755: testing ...checking LIBS $LIBS ..." 1>&5
8758 for cf_rpath_src in $LIBS
8760 case "$cf_rpath_src" in
8763 # check if this refers to a directory which we will ignore
8765 if test -n "$cf_rpath_list"
8767 for cf_rpath_item in $cf_rpath_list
8769 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
8777 if test "$cf_rpath_skip" = no
8779 # transform the option
8780 if test "$LD_RPATH_OPT" = "-R " ; then
8781 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
8783 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
8786 # if we have not already added this, add it now
8787 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
8788 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
8790 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
8792 echo "${as_me:-configure}:8792: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
8794 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
8799 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
8803 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
8805 echo "${as_me:-configure}:8805: testing ...checked LIBS $LIBS ..." 1>&5
8807 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
8809 echo "${as_me:-configure}:8809: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
8812 echo "$as_me:8812: result: no" >&5
8813 echo "${ECHO_T}no" >&6
8820 ### Depending on the system, someone may use rpath to build ncurses but not
8821 # want users of the package to rely upon that feature. Give those people an
8822 # option to suppress that detail from EXTRA_LDFLAGS.
8823 EXTRA_PKG_LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
8824 if test -n "$EXTRA_PKG_LDFLAGS"
8826 echo "$as_me:8826: checking if you want to disable extra LDFLAGS for package-scripts" >&5
8827 echo $ECHO_N "checking if you want to disable extra LDFLAGS for package-scripts... $ECHO_C" >&6
8829 # Check whether --enable-pkg-ldflags or --disable-pkg-ldflags was given.
8830 if test "${enable_pkg_ldflags+set}" = set; then
8831 enableval="$enable_pkg_ldflags"
8832 test "$enableval" != no && enableval=yes
8833 if test "$enableval" != "yes" ; then
8834 disable_pkg_ldflags=yes
8836 disable_pkg_ldflags=no
8840 disable_pkg_ldflags=no
8843 echo "$as_me:8843: result: $disable_pkg_ldflags" >&5
8844 echo "${ECHO_T}$disable_pkg_ldflags" >&6
8845 test "$disable_pkg_ldflags" = yes && EXTRA_PKG_LDFLAGS=
8848 ###############################################################################
8850 ### use option --with-extra-suffix to append suffix to headers and libraries
8851 echo "$as_me:8851: checking if you wish to append extra suffix to header/library paths" >&5
8852 echo $ECHO_N "checking if you wish to append extra suffix to header/library paths... $ECHO_C" >&6
8855 # Check whether --with-extra-suffix or --without-extra-suffix was given.
8856 if test "${with_extra_suffix+set}" = set; then
8857 withval="$with_extra_suffix"
8862 EXTRA_SUFFIX=$cf_cv_abi_version
8865 EXTRA_SUFFIX=$withval
8870 echo "$as_me:8870: result: $EXTRA_SUFFIX" >&5
8871 echo "${ECHO_T}$EXTRA_SUFFIX" >&6
8873 ### use option --disable-overwrite to leave out the link to -lcurses
8874 echo "$as_me:8874: checking if you wish to install ncurses overwriting curses" >&5
8875 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
8877 # Check whether --enable-overwrite or --disable-overwrite was given.
8878 if test "${enable_overwrite+set}" = set; then
8879 enableval="$enable_overwrite"
8880 with_overwrite=$enableval
8882 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
8884 echo "$as_me:8884: result: $with_overwrite" >&5
8885 echo "${ECHO_T}$with_overwrite" >&6
8887 echo "$as_me:8887: checking if external terminfo-database is used" >&5
8888 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
8890 # Check whether --enable-database or --disable-database was given.
8891 if test "${enable_database+set}" = set; then
8892 enableval="$enable_database"
8893 use_database=$enableval
8897 echo "$as_me:8897: result: $use_database" >&5
8898 echo "${ECHO_T}$use_database" >&6
8902 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
8905 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
8909 NCURSES_USE_DATABASE=0
8910 if test "$use_database" != no ; then
8911 NCURSES_USE_DATABASE=1
8913 echo "$as_me:8913: checking which terminfo source-file will be installed" >&5
8914 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
8916 # Check whether --with-database or --without-database was given.
8917 if test "${with_database+set}" = set; then
8918 withval="$with_database"
8919 TERMINFO_SRC=$withval
8921 echo "$as_me:8921: result: $TERMINFO_SRC" >&5
8922 echo "${ECHO_T}$TERMINFO_SRC" >&6
8924 echo "$as_me:8924: checking whether to use hashed database instead of directory/tree" >&5
8925 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
8927 # Check whether --with-hashed-db or --without-hashed-db was given.
8928 if test "${with_hashed_db+set}" = set; then
8929 withval="$with_hashed_db"
8934 echo "$as_me:8934: result: $with_hashed_db" >&5
8935 echo "${ECHO_T}$with_hashed_db" >&6
8940 echo "$as_me:8940: checking for list of fallback descriptions" >&5
8941 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
8943 # Check whether --with-fallbacks or --without-fallbacks was given.
8944 if test "${with_fallbacks+set}" = set; then
8945 withval="$with_fallbacks"
8946 with_fallback=$withval
8950 echo "$as_me:8950: result: $with_fallback" >&5
8951 echo "${ECHO_T}$with_fallback" >&6
8953 case ".$with_fallback" in
8958 { echo "$as_me:8958: WARNING: expected a list of terminal descriptions" >&5
8959 echo "$as_me: WARNING: expected a list of terminal descriptions" >&2;}
8962 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
8966 # The fallback feature in ncurses relies upon tic/infocmp outside the build
8967 # tree for generating the terminal descriptions that will be compiled into the
8968 # library. If your toolchain is old, it may not handle current terminal
8969 # databases. Use configure-options to point to the tools which will be used,
8970 # rather than the first ones found on the $PATH.
8971 if test -n "$ac_tool_prefix"; then
8972 # Extract the first word of "${ac_tool_prefix}tic", so it can be a program name with args.
8973 set dummy ${ac_tool_prefix}tic; ac_word=$2
8974 echo "$as_me:8974: checking for $ac_word" >&5
8975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8976 if test "${ac_cv_prog_TIC+set}" = set; then
8977 echo $ECHO_N "(cached) $ECHO_C" >&6
8979 if test -n "$TIC"; then
8980 ac_cv_prog_TIC="$TIC" # Let the user override the test.
8982 ac_save_IFS=$IFS; IFS=$ac_path_separator
8984 for ac_dir in $ac_dummy; do
8986 test -z "$ac_dir" && ac_dir=.
8987 $as_executable_p "$ac_dir/$ac_word" || continue
8988 ac_cv_prog_TIC="${ac_tool_prefix}tic"
8989 echo "$as_me:8989: found $ac_dir/$ac_word" >&5
8996 if test -n "$TIC"; then
8997 echo "$as_me:8997: result: $TIC" >&5
8998 echo "${ECHO_T}$TIC" >&6
9000 echo "$as_me:9000: result: no" >&5
9001 echo "${ECHO_T}no" >&6
9005 if test -z "$ac_cv_prog_TIC"; then
9007 # Extract the first word of "tic", so it can be a program name with args.
9008 set dummy tic; ac_word=$2
9009 echo "$as_me:9009: checking for $ac_word" >&5
9010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9011 if test "${ac_cv_prog_ac_ct_TIC+set}" = set; then
9012 echo $ECHO_N "(cached) $ECHO_C" >&6
9014 if test -n "$ac_ct_TIC"; then
9015 ac_cv_prog_ac_ct_TIC="$ac_ct_TIC" # Let the user override the test.
9017 ac_save_IFS=$IFS; IFS=$ac_path_separator
9019 for ac_dir in $ac_dummy; do
9021 test -z "$ac_dir" && ac_dir=.
9022 $as_executable_p "$ac_dir/$ac_word" || continue
9023 ac_cv_prog_ac_ct_TIC="tic"
9024 echo "$as_me:9024: found $ac_dir/$ac_word" >&5
9030 ac_ct_TIC=$ac_cv_prog_ac_ct_TIC
9031 if test -n "$ac_ct_TIC"; then
9032 echo "$as_me:9032: result: $ac_ct_TIC" >&5
9033 echo "${ECHO_T}$ac_ct_TIC" >&6
9035 echo "$as_me:9035: result: no" >&5
9036 echo "${ECHO_T}no" >&6
9041 TIC="$ac_cv_prog_TIC"
9044 if test -n "$ac_tool_prefix"; then
9045 # Extract the first word of "${ac_tool_prefix}infocmp", so it can be a program name with args.
9046 set dummy ${ac_tool_prefix}infocmp; ac_word=$2
9047 echo "$as_me:9047: checking for $ac_word" >&5
9048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9049 if test "${ac_cv_prog_INFOCMP+set}" = set; then
9050 echo $ECHO_N "(cached) $ECHO_C" >&6
9052 if test -n "$INFOCMP"; then
9053 ac_cv_prog_INFOCMP="$INFOCMP" # Let the user override the test.
9055 ac_save_IFS=$IFS; IFS=$ac_path_separator
9057 for ac_dir in $ac_dummy; do
9059 test -z "$ac_dir" && ac_dir=.
9060 $as_executable_p "$ac_dir/$ac_word" || continue
9061 ac_cv_prog_INFOCMP="${ac_tool_prefix}infocmp"
9062 echo "$as_me:9062: found $ac_dir/$ac_word" >&5
9068 INFOCMP=$ac_cv_prog_INFOCMP
9069 if test -n "$INFOCMP"; then
9070 echo "$as_me:9070: result: $INFOCMP" >&5
9071 echo "${ECHO_T}$INFOCMP" >&6
9073 echo "$as_me:9073: result: no" >&5
9074 echo "${ECHO_T}no" >&6
9078 if test -z "$ac_cv_prog_INFOCMP"; then
9079 ac_ct_INFOCMP=$INFOCMP
9080 # Extract the first word of "infocmp", so it can be a program name with args.
9081 set dummy infocmp; ac_word=$2
9082 echo "$as_me:9082: checking for $ac_word" >&5
9083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9084 if test "${ac_cv_prog_ac_ct_INFOCMP+set}" = set; then
9085 echo $ECHO_N "(cached) $ECHO_C" >&6
9087 if test -n "$ac_ct_INFOCMP"; then
9088 ac_cv_prog_ac_ct_INFOCMP="$ac_ct_INFOCMP" # Let the user override the test.
9090 ac_save_IFS=$IFS; IFS=$ac_path_separator
9092 for ac_dir in $ac_dummy; do
9094 test -z "$ac_dir" && ac_dir=.
9095 $as_executable_p "$ac_dir/$ac_word" || continue
9096 ac_cv_prog_ac_ct_INFOCMP="infocmp"
9097 echo "$as_me:9097: found $ac_dir/$ac_word" >&5
9103 ac_ct_INFOCMP=$ac_cv_prog_ac_ct_INFOCMP
9104 if test -n "$ac_ct_INFOCMP"; then
9105 echo "$as_me:9105: result: $ac_ct_INFOCMP" >&5
9106 echo "${ECHO_T}$ac_ct_INFOCMP" >&6
9108 echo "$as_me:9108: result: no" >&5
9109 echo "${ECHO_T}no" >&6
9112 INFOCMP=$ac_ct_INFOCMP
9114 INFOCMP="$ac_cv_prog_INFOCMP"
9117 if test -n "$FALLBACK_LIST"
9120 # Check whether --with-tic-path or --without-tic-path was given.
9121 if test "${with_tic_path+set}" = set; then
9122 withval="$with_tic_path"
9123 echo "$as_me:9123: checking for tic program for fallbacks" >&5
9124 echo $ECHO_N "checking for tic program for fallbacks... $ECHO_C" >&6
9126 echo "$as_me:9126: result: $TIC" >&5
9127 echo "${ECHO_T}$TIC" >&6
9129 if test "x$prefix" != xNONE; then
9130 cf_path_syntax="$prefix"
9132 cf_path_syntax="$ac_default_prefix"
9140 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9142 (.\$\{*prefix\}*|.\$\{*dir\}*)
9146 TIC=`echo "$TIC" | sed -e s%NONE%$cf_path_syntax%`
9151 TIC=`echo "$TIC" | sed -e s%NONE%$cf_path_syntax%`
9154 { { echo "$as_me:9154: error: expected a pathname, not \"$TIC\"" >&5
9155 echo "$as_me: error: expected a pathname, not \"$TIC\"" >&2;}
9156 { (exit 1); exit 1; }; }
9162 test -z "$TIC" && TIC="tic"
9163 for ac_prog in $TIC tic
9165 # Extract the first word of "$ac_prog", so it can be a program name with args.
9166 set dummy $ac_prog; ac_word=$2
9167 echo "$as_me:9167: checking for $ac_word" >&5
9168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9169 if test "${ac_cv_path_TIC+set}" = set; then
9170 echo $ECHO_N "(cached) $ECHO_C" >&6
9174 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
9177 ac_save_IFS=$IFS; IFS=$ac_path_separator
9178 ac_dummy="$PATH:/usr/local/ncurses/bin"
9179 for ac_dir in $ac_dummy; do
9181 test -z "$ac_dir" && ac_dir=.
9182 if $as_executable_p "$ac_dir/$ac_word"; then
9183 ac_cv_path_TIC="$ac_dir/$ac_word"
9184 echo "$as_me:9184: found $ac_dir/$ac_word" >&5
9194 if test -n "$TIC"; then
9195 echo "$as_me:9195: result: $TIC" >&5
9196 echo "${ECHO_T}$TIC" >&6
9198 echo "$as_me:9198: result: no" >&5
9199 echo "${ECHO_T}no" >&6
9202 test -n "$TIC" && break
9204 test -n "$TIC" || TIC="$TIC"
9208 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
9209 for cf_temp in $ac_cv_path_TIC
9211 if test -z "$cf_path_prog" ; then
9212 if test "$with_full_paths" = yes ; then
9214 if test "x$prefix" != xNONE; then
9215 cf_path_syntax="$prefix"
9217 cf_path_syntax="$ac_default_prefix"
9225 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9227 (.\$\{*prefix\}*|.\$\{*dir\}*)
9228 eval cf_temp="$cf_temp"
9231 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
9236 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
9243 cf_path_prog="$cf_temp"
9245 cf_path_prog="`basename "$cf_temp"`"
9247 elif test -z "$cf_path_args" ; then
9248 cf_path_args="$cf_temp"
9250 cf_path_args="$cf_path_args $cf_temp"
9255 if test -n "$cf_path_prog" ; then
9257 echo "${as_me:-configure}:9257: testing defining path for ${cf_path_prog} ..." 1>&5
9259 cat >>confdefs.h <<EOF
9260 #define TIC_PATH "$cf_path_prog"
9263 test -n "$cf_path_args" &&
9264 cat >>confdefs.h <<EOF
9265 #define TIC_ARGS "$cf_path_args"
9272 { echo "$as_me:9272: WARNING: no tic program found for fallbacks" >&5
9273 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
9278 # Check whether --with-infocmp-path or --without-infocmp-path was given.
9279 if test "${with_infocmp_path+set}" = set; then
9280 withval="$with_infocmp_path"
9281 echo "$as_me:9281: checking for infocmp program for fallbacks" >&5
9282 echo $ECHO_N "checking for infocmp program for fallbacks... $ECHO_C" >&6
9284 echo "$as_me:9284: result: $INFOCMP" >&5
9285 echo "${ECHO_T}$INFOCMP" >&6
9287 if test "x$prefix" != xNONE; then
9288 cf_path_syntax="$prefix"
9290 cf_path_syntax="$ac_default_prefix"
9298 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9300 (.\$\{*prefix\}*|.\$\{*dir\}*)
9301 eval INFOCMP="$INFOCMP"
9304 INFOCMP=`echo "$INFOCMP" | sed -e s%NONE%$cf_path_syntax%`
9309 INFOCMP=`echo "$INFOCMP" | sed -e s%NONE%$cf_path_syntax%`
9312 { { echo "$as_me:9312: error: expected a pathname, not \"$INFOCMP\"" >&5
9313 echo "$as_me: error: expected a pathname, not \"$INFOCMP\"" >&2;}
9314 { (exit 1); exit 1; }; }
9320 test -z "$INFOCMP" && INFOCMP="infocmp"
9321 for ac_prog in $INFOCMP infocmp
9323 # Extract the first word of "$ac_prog", so it can be a program name with args.
9324 set dummy $ac_prog; ac_word=$2
9325 echo "$as_me:9325: checking for $ac_word" >&5
9326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9327 if test "${ac_cv_path_INFOCMP+set}" = set; then
9328 echo $ECHO_N "(cached) $ECHO_C" >&6
9332 ac_cv_path_INFOCMP="$INFOCMP" # Let the user override the test with a path.
9335 ac_save_IFS=$IFS; IFS=$ac_path_separator
9336 ac_dummy="$PATH:/usr/local/ncurses/bin"
9337 for ac_dir in $ac_dummy; do
9339 test -z "$ac_dir" && ac_dir=.
9340 if $as_executable_p "$ac_dir/$ac_word"; then
9341 ac_cv_path_INFOCMP="$ac_dir/$ac_word"
9342 echo "$as_me:9342: found $ac_dir/$ac_word" >&5
9350 INFOCMP=$ac_cv_path_INFOCMP
9352 if test -n "$INFOCMP"; then
9353 echo "$as_me:9353: result: $INFOCMP" >&5
9354 echo "${ECHO_T}$INFOCMP" >&6
9356 echo "$as_me:9356: result: no" >&5
9357 echo "${ECHO_T}no" >&6
9360 test -n "$INFOCMP" && break
9362 test -n "$INFOCMP" || INFOCMP="$INFOCMP"
9366 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
9367 for cf_temp in $ac_cv_path_INFOCMP
9369 if test -z "$cf_path_prog" ; then
9370 if test "$with_full_paths" = yes ; then
9372 if test "x$prefix" != xNONE; then
9373 cf_path_syntax="$prefix"
9375 cf_path_syntax="$ac_default_prefix"
9383 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9385 (.\$\{*prefix\}*|.\$\{*dir\}*)
9386 eval cf_temp="$cf_temp"
9389 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
9394 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
9401 cf_path_prog="$cf_temp"
9403 cf_path_prog="`basename "$cf_temp"`"
9405 elif test -z "$cf_path_args" ; then
9406 cf_path_args="$cf_temp"
9408 cf_path_args="$cf_path_args $cf_temp"
9413 if test -n "$cf_path_prog" ; then
9415 echo "${as_me:-configure}:9415: testing defining path for ${cf_path_prog} ..." 1>&5
9417 cat >>confdefs.h <<EOF
9418 #define INFOCMP_PATH "$cf_path_prog"
9421 test -n "$cf_path_args" &&
9422 cat >>confdefs.h <<EOF
9423 #define INFOCMP_ARGS "$cf_path_args"
9428 if test -z "$INFOCMP"
9430 { echo "$as_me:9430: WARNING: no infocmp program found for fallbacks" >&5
9431 echo "$as_me: WARNING: no infocmp program found for fallbacks" >&2;}
9436 test -z "$TIC" && FALLBACK_LIST=
9437 test -z "$INFOCMP" && FALLBACK_LIST=
9438 if test -z "$FALLBACK_LIST"
9440 { echo "$as_me:9440: WARNING: ignoring fallback option because tic/infocmp are not available" >&5
9441 echo "$as_me: WARNING: ignoring fallback option because tic/infocmp are not available" >&2;}
9446 test -z "$FALLBACK_LIST" && USE_FALLBACKS="#"
9448 echo "$as_me:9448: checking if you want modern xterm or antique" >&5
9449 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
9451 # Check whether --with-xterm-new or --without-xterm-new was given.
9452 if test "${with_xterm_new+set}" = set; then
9453 withval="$with_xterm_new"
9454 with_xterm_new=$withval
9458 case "$with_xterm_new" in
9459 (no) with_xterm_new=xterm-old;;
9460 (*) with_xterm_new=xterm-new;;
9462 echo "$as_me:9462: result: $with_xterm_new" >&5
9463 echo "${ECHO_T}$with_xterm_new" >&6
9464 WHICH_XTERM=$with_xterm_new
9467 (*linux-gnu|*cygwin|*mingw32|*msys)
9475 echo "$as_me:9475: checking if xterm backspace sends BS or DEL" >&5
9476 echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6
9478 # Check whether --with-xterm-kbs or --without-xterm-kbs was given.
9479 if test "${with_xterm_kbs+set}" = set; then
9480 withval="$with_xterm_kbs"
9481 with_xterm_kbs=$withval
9485 case x$with_xterm_kbs in
9486 (xyes|xno|xBS|xbs|x8)
9493 with_xterm_kbs=$withval
9496 echo "$as_me:9496: result: $with_xterm_kbs" >&5
9497 echo "${ECHO_T}$with_xterm_kbs" >&6
9498 XTERM_KBS=$with_xterm_kbs
9500 if test "x$with_xterm_kbs" != "x$want_xterm_kbs"
9502 { echo "$as_me:9502: WARNING: expected --with-xterm-kbs=$want_xterm_kbs for $host_os" >&5
9503 echo "$as_me: WARNING: expected --with-xterm-kbs=$want_xterm_kbs for $host_os" >&2;}
9507 if test "$use_database" = no ; then
9508 TERMINFO="${datadir}/terminfo"
9512 echo "$as_me:9512: checking for list of terminfo directories" >&5
9513 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
9515 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
9516 if test "${with_terminfo_dirs+set}" = set; then
9517 withval="$with_terminfo_dirs"
9520 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
9522 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
9524 for cf_src_path in $withval
9527 if test "x$prefix" != xNONE; then
9528 cf_path_syntax="$prefix"
9530 cf_path_syntax="$ac_default_prefix"
9533 case ".$cf_src_path" in
9538 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9540 (.\$\{*prefix\}*|.\$\{*dir\}*)
9541 eval cf_src_path="$cf_src_path"
9542 case ".$cf_src_path" in
9544 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9549 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9552 { { echo "$as_me:9552: error: expected a pathname, not \"$cf_src_path\"" >&5
9553 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
9554 { (exit 1); exit 1; }; }
9558 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
9559 cf_dst_path="${cf_dst_path}${cf_src_path}"
9563 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
9564 # so we have to check/work around. We do prefer the result of "eval"...
9565 eval cf_dst_eval="$cf_dst_path"
9566 case "x$cf_dst_eval" in
9568 TERMINFO_DIRS=$cf_dst_path
9571 TERMINFO_DIRS="$cf_dst_eval"
9575 echo "$as_me:9575: result: $TERMINFO_DIRS" >&5
9576 echo "${ECHO_T}$TERMINFO_DIRS" >&6
9577 test -n "$TERMINFO_DIRS" &&
9578 cat >>confdefs.h <<EOF
9579 #define TERMINFO_DIRS "$TERMINFO_DIRS"
9582 case "x$TERMINFO" in
9584 { echo "$as_me:9584: WARNING: ignoring non-directory/file TERMINFO value" >&5
9585 echo "$as_me: WARNING: ignoring non-directory/file TERMINFO value" >&2;}
9590 echo "$as_me:9590: checking for default terminfo directory" >&5
9591 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
9593 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
9594 if test "${with_default_terminfo_dir+set}" = set; then
9595 withval="$with_default_terminfo_dir"
9598 withval="${TERMINFO:-${datadir}/terminfo}"
9599 fi; if test -n "${datadir}/terminfo" ; then
9601 if test "x$prefix" != xNONE; then
9602 cf_path_syntax="$prefix"
9604 cf_path_syntax="$ac_default_prefix"
9612 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9614 (.\$\{*prefix\}*|.\$\{*dir\}*)
9615 eval withval="$withval"
9618 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
9623 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
9626 { { echo "$as_me:9626: error: expected a pathname, not \"$withval\"" >&5
9627 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
9628 { (exit 1); exit 1; }; }
9633 eval TERMINFO="$withval"
9635 echo "$as_me:9635: result: $TERMINFO" >&5
9636 echo "${ECHO_T}$TERMINFO" >&6
9638 cat >>confdefs.h <<EOF
9639 #define TERMINFO "$TERMINFO"
9644 ### use option --disable-big-core to make tic run on small machines
9645 ### We need 4Mb, check if we can allocate 50% more than that.
9646 echo "$as_me:9646: checking if big-core option selected" >&5
9647 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
9649 # Check whether --enable-big-core or --disable-big-core was given.
9650 if test "${enable_big_core+set}" = set; then
9651 enableval="$enable_big_core"
9652 with_big_core=$enableval
9654 if test "$cross_compiling" = yes; then
9657 cat >"conftest.$ac_ext" <<_ACEOF
9658 #line 9658 "configure"
9659 #include "confdefs.h"
9664 unsigned long n = 6000000L;
9665 char *s = malloc(n);
9668 ${cf_cv_main_return:-return}(s == 0);
9671 rm -f "conftest$ac_exeext"
9672 if { (eval echo "$as_me:9672: \"$ac_link\"") >&5
9673 (eval $ac_link) 2>&5
9675 echo "$as_me:9675: \$? = $ac_status" >&5
9676 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
9677 { (eval echo "$as_me:9677: \"$ac_try\"") >&5
9680 echo "$as_me:9680: \$? = $ac_status" >&5
9681 (exit "$ac_status"); }; }; then
9684 echo "$as_me: program exited with status $ac_status" >&5
9685 echo "$as_me: failed program was:" >&5
9686 cat "conftest.$ac_ext" >&5
9689 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
9692 echo "$as_me:9692: result: $with_big_core" >&5
9693 echo "${ECHO_T}$with_big_core" >&6
9694 test "x$with_big_core" = "xyes" &&
9695 cat >>confdefs.h <<\EOF
9696 #define HAVE_BIG_CORE 1
9699 ### ISO C only guarantees 512-char strings, we have tables which load faster
9700 ### when constructed using "big" strings. More than the C compiler, the awk
9701 ### program is a limit on most vendor UNIX systems. Check that we can build.
9702 echo "$as_me:9702: checking if big-strings option selected" >&5
9703 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
9705 # Check whether --enable-big-strings or --disable-big-strings was given.
9706 if test "${enable_big_strings+set}" = set; then
9707 enableval="$enable_big_strings"
9708 with_big_strings=$enableval
9713 eval with_big_strings=no
9716 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \
9717 | $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
9718 eval with_big_strings=yes
9720 eval with_big_strings=no
9726 echo "$as_me:9726: result: $with_big_strings" >&5
9727 echo "${ECHO_T}$with_big_strings" >&6
9730 test "x$with_big_strings" = "xyes" && USE_BIG_STRINGS=1
9732 ### use option --enable-termcap to compile in the termcap fallback support
9733 echo "$as_me:9733: checking if you want termcap-fallback support" >&5
9734 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
9736 # Check whether --enable-termcap or --disable-termcap was given.
9737 if test "${enable_termcap+set}" = set; then
9738 enableval="$enable_termcap"
9739 with_termcap=$enableval
9743 echo "$as_me:9743: result: $with_termcap" >&5
9744 echo "${ECHO_T}$with_termcap" >&6
9746 NCURSES_USE_TERMCAP=0
9747 if test "x$with_termcap" != "xyes" ; then
9748 if test "$use_database" = no ; then
9749 if test -z "$with_fallback" ; then
9750 { { echo "$as_me:9750: error: You have disabled the database w/o specifying fallbacks" >&5
9751 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
9752 { (exit 1); exit 1; }; }
9756 cat >>confdefs.h <<\EOF
9757 #define PURE_TERMINFO 1
9762 if test "$with_ticlib" != no ; then
9763 { { echo "$as_me:9763: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
9764 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
9765 { (exit 1); exit 1; }; }
9768 NCURSES_USE_TERMCAP=1
9769 echo "$as_me:9769: checking for list of termcap files" >&5
9770 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
9772 # Check whether --with-termpath or --without-termpath was given.
9773 if test "${with_termpath+set}" = set; then
9774 withval="$with_termpath"
9777 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
9779 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
9781 for cf_src_path in $withval
9784 if test "x$prefix" != xNONE; then
9785 cf_path_syntax="$prefix"
9787 cf_path_syntax="$ac_default_prefix"
9790 case ".$cf_src_path" in
9795 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9797 (.\$\{*prefix\}*|.\$\{*dir\}*)
9798 eval cf_src_path="$cf_src_path"
9799 case ".$cf_src_path" in
9801 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9806 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9809 { { echo "$as_me:9809: error: expected a pathname, not \"$cf_src_path\"" >&5
9810 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
9811 { (exit 1); exit 1; }; }
9815 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
9816 cf_dst_path="${cf_dst_path}${cf_src_path}"
9820 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
9821 # so we have to check/work around. We do prefer the result of "eval"...
9822 eval cf_dst_eval="$cf_dst_path"
9823 case "x$cf_dst_eval" in
9825 TERMPATH=$cf_dst_path
9828 TERMPATH="$cf_dst_eval"
9832 echo "$as_me:9832: result: $TERMPATH" >&5
9833 echo "${ECHO_T}$TERMPATH" >&6
9834 test -n "$TERMPATH" &&
9835 cat >>confdefs.h <<EOF
9836 #define TERMPATH "$TERMPATH"
9839 ### use option --enable-getcap to use a hacked getcap for reading termcaps
9840 echo "$as_me:9840: checking if fast termcap-loader is needed" >&5
9841 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
9843 # Check whether --enable-getcap or --disable-getcap was given.
9844 if test "${enable_getcap+set}" = set; then
9845 enableval="$enable_getcap"
9846 with_getcap=$enableval
9850 echo "$as_me:9850: result: $with_getcap" >&5
9851 echo "${ECHO_T}$with_getcap" >&6
9852 test "x$with_getcap" = "xyes" &&
9853 cat >>confdefs.h <<\EOF
9854 #define USE_GETCAP 1
9857 echo "$as_me:9857: checking if translated termcaps will be cached in ~/.terminfo" >&5
9858 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
9860 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
9861 if test "${enable_getcap_cache+set}" = set; then
9862 enableval="$enable_getcap_cache"
9863 with_getcap_cache=$enableval
9865 with_getcap_cache=no
9867 echo "$as_me:9867: result: $with_getcap_cache" >&5
9868 echo "${ECHO_T}$with_getcap_cache" >&6
9869 test "x$with_getcap_cache" = "xyes" &&
9870 cat >>confdefs.h <<\EOF
9871 #define USE_GETCAP_CACHE 1
9876 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
9877 echo "$as_me:9877: checking if ~/.terminfo is wanted" >&5
9878 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
9880 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
9881 if test "${enable_home_terminfo+set}" = set; then
9882 enableval="$enable_home_terminfo"
9883 with_home_terminfo=$enableval
9885 with_home_terminfo=yes
9887 echo "$as_me:9887: result: $with_home_terminfo" >&5
9888 echo "${ECHO_T}$with_home_terminfo" >&6
9889 test "x$with_home_terminfo" = "xyes" &&
9890 cat >>confdefs.h <<\EOF
9891 #define USE_HOME_TERMINFO 1
9894 echo "$as_me:9894: checking if you want to permit root to use ncurses environment variables" >&5
9895 echo $ECHO_N "checking if you want to permit root to use ncurses environment variables... $ECHO_C" >&6
9897 # Check whether --enable-root-environ or --disable-root-environ was given.
9898 if test "${enable_root_environ+set}" = set; then
9899 enableval="$enable_root_environ"
9900 with_root_environ=$enableval
9902 with_root_environ=yes
9904 echo "$as_me:9904: result: $with_root_environ" >&5
9905 echo "${ECHO_T}$with_root_environ" >&6
9906 test "x$with_root_environ" = xyes &&
9907 cat >>confdefs.h <<\EOF
9908 #define USE_ROOT_ENVIRON 1
9911 echo "$as_me:9911: checking if you want to permit setuid programs to access all files" >&5
9912 echo $ECHO_N "checking if you want to permit setuid programs to access all files... $ECHO_C" >&6
9914 # Check whether --enable-root-access or --disable-root-access was given.
9915 if test "${enable_root_access+set}" = set; then
9916 enableval="$enable_root_access"
9917 with_root_access=$enableval
9919 with_root_access=yes
9921 echo "$as_me:9921: result: $with_root_access" >&5
9922 echo "${ECHO_T}$with_root_access" >&6
9923 test "x$with_root_access" = xyes &&
9924 cat >>confdefs.h <<\EOF
9925 #define USE_ROOT_ACCESS 1
9928 echo "$as_me:9928: checking if you want to permit setuid use of ncurses environment variables" >&5
9929 echo $ECHO_N "checking if you want to permit setuid use of ncurses environment variables... $ECHO_C" >&6
9931 # Check whether --enable-setuid-environ or --disable-setuid-environ was given.
9932 if test "${enable_setuid_environ+set}" = set; then
9933 enableval="$enable_setuid_environ"
9934 with_setuid_environ=$enableval
9936 with_setuid_environ=$with_root_environ
9938 echo "$as_me:9938: result: $with_setuid_environ" >&5
9939 echo "${ECHO_T}$with_setuid_environ" >&6
9940 test "x$with_setuid_environ" = xyes &&
9941 cat >>confdefs.h <<\EOF
9942 #define USE_SETUID_ENVIRON 1
9945 ### Use option --enable-symlinks to make tic use symlinks, not hard links
9946 ### to reduce storage requirements for the terminfo database.
9952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9953 echo "$as_me:9953: checking for $ac_header" >&5
9954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9956 echo $ECHO_N "(cached) $ECHO_C" >&6
9958 cat >"conftest.$ac_ext" <<_ACEOF
9959 #line 9959 "configure"
9960 #include "confdefs.h"
9961 #include <$ac_header>
9963 if { (eval echo "$as_me:9963: \"$ac_cpp "conftest.$ac_ext"\"") >&5
9964 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
9966 $EGREP -v '^ *\+' conftest.er1 >conftest.err
9968 cat conftest.err >&5
9969 echo "$as_me:9969: \$? = $ac_status" >&5
9970 (exit "$ac_status"); } >/dev/null; then
9971 if test -s conftest.err; then
9972 ac_cpp_err=$ac_c_preproc_warn_flag
9979 if test -z "$ac_cpp_err"; then
9980 eval "$as_ac_Header=yes"
9982 echo "$as_me: failed program was:" >&5
9983 cat "conftest.$ac_ext" >&5
9984 eval "$as_ac_Header=no"
9986 rm -f conftest.err "conftest.$ac_ext"
9988 echo "$as_me:9988: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
9989 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
9990 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
9991 cat >>confdefs.h <<EOF
9992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10003 echo "$as_me:10003: checking for $ac_func" >&5
10004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10005 if eval "test \"\${$as_ac_var+set}\" = set"; then
10006 echo $ECHO_N "(cached) $ECHO_C" >&6
10008 cat >"conftest.$ac_ext" <<_ACEOF
10009 #line 10009 "configure"
10010 #include "confdefs.h"
10011 #define $ac_func autoconf_temporary
10012 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
10019 /* We use char because int might match the return type of a gcc2
10020 builtin and then its argument prototype would still apply. */
10021 char $ac_func (void);
10027 /* The GNU C library defines stubs for functions which it implements
10028 to always fail with ENOSYS. Some functions are actually named
10029 something starting with __ and the normal name is an alias. */
10030 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10031 #error found stub for $ac_func
10034 return $ac_func ();
10039 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
10040 if { (eval echo "$as_me:10040: \"$ac_link\"") >&5
10041 (eval $ac_link) 2>&5
10043 echo "$as_me:10043: \$? = $ac_status" >&5
10044 (exit "$ac_status"); } &&
10045 { ac_try='test -s "conftest$ac_exeext"'
10046 { (eval echo "$as_me:10046: \"$ac_try\"") >&5
10047 (eval $ac_try) 2>&5
10049 echo "$as_me:10049: \$? = $ac_status" >&5
10050 (exit "$ac_status"); }; }; then
10051 eval "$as_ac_var=yes"
10053 echo "$as_me: failed program was:" >&5
10054 cat "conftest.$ac_ext" >&5
10055 eval "$as_ac_var=no"
10057 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10059 echo "$as_me:10059: result: `eval echo '${'"$as_ac_var"'}'`" >&5
10060 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
10061 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
10062 cat >>confdefs.h <<EOF
10063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10069 if test "$cross_compiling" = yes ; then
10075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10076 echo "$as_me:10076: checking for $ac_func" >&5
10077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10078 if eval "test \"\${$as_ac_var+set}\" = set"; then
10079 echo $ECHO_N "(cached) $ECHO_C" >&6
10081 cat >"conftest.$ac_ext" <<_ACEOF
10082 #line 10082 "configure"
10083 #include "confdefs.h"
10084 #define $ac_func autoconf_temporary
10085 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
10092 /* We use char because int might match the return type of a gcc2
10093 builtin and then its argument prototype would still apply. */
10094 char $ac_func (void);
10100 /* The GNU C library defines stubs for functions which it implements
10101 to always fail with ENOSYS. Some functions are actually named
10102 something starting with __ and the normal name is an alias. */
10103 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10104 #error found stub for $ac_func
10107 return $ac_func ();
10112 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
10113 if { (eval echo "$as_me:10113: \"$ac_link\"") >&5
10114 (eval $ac_link) 2>&5
10116 echo "$as_me:10116: \$? = $ac_status" >&5
10117 (exit "$ac_status"); } &&
10118 { ac_try='test -s "conftest$ac_exeext"'
10119 { (eval echo "$as_me:10119: \"$ac_try\"") >&5
10120 (eval $ac_try) 2>&5
10122 echo "$as_me:10122: \$? = $ac_status" >&5
10123 (exit "$ac_status"); }; }; then
10124 eval "$as_ac_var=yes"
10126 echo "$as_me: failed program was:" >&5
10127 cat "conftest.$ac_ext" >&5
10128 eval "$as_ac_var=no"
10130 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
10132 echo "$as_me:10132: result: `eval echo '${'"$as_ac_var"'}'`" >&5
10133 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
10134 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
10135 cat >>confdefs.h <<EOF
10136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10143 echo "$as_me:10143: checking if link/symlink functions work" >&5
10144 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
10145 if test "${cf_cv_link_funcs+set}" = set; then
10146 echo $ECHO_N "(cached) $ECHO_C" >&6
10150 for cf_func in link symlink ; do
10151 if test "$cross_compiling" = yes; then
10153 eval 'ac_cv_func_'$cf_func'=error'
10155 cat >"conftest.$ac_ext" <<_ACEOF
10156 #line 10156 "configure"
10157 #include "confdefs.h"
10159 $ac_includes_default
10164 char *src = "conftest.tmp";
10165 char *dst = "conftest.chk";
10166 struct stat src_sb, dst_sb;
10167 FILE *fp = fopen(src, "w");
10168 if (fp == 0) { fail = 3; } else {
10169 fclose(fp); stat(src, &src_sb);
10170 if ($cf_func(src, dst) < 0) {
10172 } else if (stat(dst, &dst_sb) < 0) {
10175 long diff = (dst_sb.st_mtime - src_sb.st_mtime);
10176 if (diff < 0) diff = -diff;
10177 if (diff > 2) fail = 3;
10181 unlink(dst); unlink(src);
10183 remove(dst); remove(src);
10185 ${cf_cv_main_return:-return} (fail);
10189 rm -f "conftest$ac_exeext"
10190 if { (eval echo "$as_me:10190: \"$ac_link\"") >&5
10191 (eval $ac_link) 2>&5
10193 echo "$as_me:10193: \$? = $ac_status" >&5
10194 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
10195 { (eval echo "$as_me:10195: \"$ac_try\"") >&5
10196 (eval $ac_try) 2>&5
10198 echo "$as_me:10198: \$? = $ac_status" >&5
10199 (exit "$ac_status"); }; }; then
10201 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
10202 eval 'ac_cv_func_'$cf_func'=yes'
10204 echo "$as_me: program exited with status $ac_status" >&5
10205 echo "$as_me: failed program was:" >&5
10206 cat "conftest.$ac_ext" >&5
10208 eval 'ac_cv_func_'$cf_func'=no'
10210 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
10213 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
10216 echo "$as_me:10216: result: $cf_cv_link_funcs" >&5
10217 echo "${ECHO_T}$cf_cv_link_funcs" >&6
10218 test "$ac_cv_func_link" = yes &&
10219 cat >>confdefs.h <<\EOF
10220 #define HAVE_LINK 1
10223 test "$ac_cv_func_symlink" = yes &&
10224 cat >>confdefs.h <<\EOF
10225 #define HAVE_SYMLINK 1
10233 # soft links (symbolic links) are useful for some systems where hard links do
10234 # not work, or to make it simpler to copy terminfo trees around.
10235 if test "x$ac_cv_func_symlink" = xyes ; then
10236 echo "$as_me:10236: checking if tic should use symbolic links" >&5
10237 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
10239 # Check whether --enable-symlinks or --disable-symlinks was given.
10240 if test "${enable_symlinks+set}" = set; then
10241 enableval="$enable_symlinks"
10242 with_symlinks=$enableval
10246 echo "$as_me:10246: result: $with_symlinks" >&5
10247 echo "${ECHO_T}$with_symlinks" >&6
10250 # If we have hard links and did not choose to use soft links instead, there is
10251 # no reason to make this choice optional - use the hard links.
10252 if test "$with_symlinks" = no ; then
10253 echo "$as_me:10253: checking if tic should use hard links" >&5
10254 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
10255 if test "x$ac_cv_func_link" = xyes ; then
10260 echo "$as_me:10260: result: $with_links" >&5
10261 echo "${ECHO_T}$with_links" >&6
10264 test "x$with_links" = xyes &&
10265 cat >>confdefs.h <<\EOF
10266 #define USE_LINKS 1
10269 test "x$with_symlinks" = xyes &&
10270 cat >>confdefs.h <<\EOF
10271 #define USE_SYMLINKS 1
10274 ### use option --enable-broken-linker to force on use of broken-linker support
10276 echo "$as_me:10276: checking if you want broken-linker support code" >&5
10277 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
10279 # Check whether --enable-broken_linker or --disable-broken_linker was given.
10280 if test "${enable_broken_linker+set}" = set; then
10281 enableval="$enable_broken_linker"
10282 with_broken_linker=$enableval
10284 with_broken_linker=no
10286 echo "$as_me:10286: result: $with_broken_linker" >&5
10287 echo "${ECHO_T}$with_broken_linker" >&6
10289 : "${BROKEN_LINKER:=0}"
10290 if test "x$with_broken_linker" = xyes ; then
10292 cat >>confdefs.h <<\EOF
10293 #define BROKEN_LINKER 1
10299 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
10300 echo "$as_me:10300: checking if tputs should process BSD-style prefix padding" >&5
10301 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
10303 # Check whether --enable-bsdpad or --disable-bsdpad was given.
10304 if test "${enable_bsdpad+set}" = set; then
10305 enableval="$enable_bsdpad"
10306 with_bsdpad=$enableval
10310 echo "$as_me:10310: result: $with_bsdpad" >&5
10311 echo "${ECHO_T}$with_bsdpad" >&6
10312 test "x$with_bsdpad" = xyes &&
10313 cat >>confdefs.h <<\EOF
10314 #define BSD_TPUTS 1
10317 ### use option --enable-widec to turn on use of wide-character support
10318 NCURSES_CH_T=chtype
10322 NCURSES_MBSTATE_T=0
10326 # Check to define _XOPEN_SOURCE "automatically"
10327 CPPFLAGS_before_XOPEN="$CPPFLAGS"
10329 echo "$as_me:10329: checking if the POSIX test-macros are already defined" >&5
10330 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
10331 if test "${cf_cv_posix_visible+set}" = set; then
10332 echo $ECHO_N "(cached) $ECHO_C" >&6
10335 cat >"conftest.$ac_ext" <<_ACEOF
10336 #line 10336 "configure"
10337 #include "confdefs.h"
10343 #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
10344 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
10345 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
10346 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
10347 #error conflicting symbols found
10354 rm -f "conftest.$ac_objext"
10355 if { (eval echo "$as_me:10355: \"$ac_compile\"") >&5
10356 (eval $ac_compile) 2>&5
10358 echo "$as_me:10358: \$? = $ac_status" >&5
10359 (exit "$ac_status"); } &&
10360 { ac_try='test -s "conftest.$ac_objext"'
10361 { (eval echo "$as_me:10361: \"$ac_try\"") >&5
10362 (eval $ac_try) 2>&5
10364 echo "$as_me:10364: \$? = $ac_status" >&5
10365 (exit "$ac_status"); }; }; then
10366 cf_cv_posix_visible=no
10368 echo "$as_me: failed program was:" >&5
10369 cat "conftest.$ac_ext" >&5
10370 cf_cv_posix_visible=yes
10372 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10375 echo "$as_me:10375: result: $cf_cv_posix_visible" >&5
10376 echo "${ECHO_T}$cf_cv_posix_visible" >&6
10378 if test "$cf_cv_posix_visible" = no; then
10380 cf_XOPEN_SOURCE=600
10381 cf_POSIX_C_SOURCE=199506L
10386 cf_xopen_source="-D_ALL_SOURCE"
10389 cf_xopen_source="-D_APPLE_C_SOURCE"
10392 cf_xopen_source="-D_DARWIN_C_SOURCE"
10395 (freebsd*|dragonfly*|midnightbsd*)
10396 # 5.x headers associate
10397 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
10398 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
10399 cf_POSIX_C_SOURCE=200112L
10400 cf_XOPEN_SOURCE=600
10401 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
10404 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
10407 cf_xopen_source="-D_HPUX_SOURCE"
10410 cf_xopen_source="-D_SGI_SOURCE"
10413 (linux*gnu|linux*gnuabi64|linux*gnuabin32|linux*gnueabi|linux*gnueabihf|linux*gnux32|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin|msys|mingw*)
10415 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
10417 echo "$as_me:10417: checking if this is the GNU C library" >&5
10418 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
10419 if test "${cf_cv_gnu_library+set}" = set; then
10420 echo $ECHO_N "(cached) $ECHO_C" >&6
10423 cat >"conftest.$ac_ext" <<_ACEOF
10424 #line 10424 "configure"
10425 #include "confdefs.h"
10426 #include <sys/types.h>
10431 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
10433 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0
10436 # error not GNU C library
10442 rm -f "conftest.$ac_objext"
10443 if { (eval echo "$as_me:10443: \"$ac_compile\"") >&5
10444 (eval $ac_compile) 2>&5
10446 echo "$as_me:10446: \$? = $ac_status" >&5
10447 (exit "$ac_status"); } &&
10448 { ac_try='test -s "conftest.$ac_objext"'
10449 { (eval echo "$as_me:10449: \"$ac_try\"") >&5
10450 (eval $ac_try) 2>&5
10452 echo "$as_me:10452: \$? = $ac_status" >&5
10453 (exit "$ac_status"); }; }; then
10454 cf_cv_gnu_library=yes
10456 echo "$as_me: failed program was:" >&5
10457 cat "conftest.$ac_ext" >&5
10458 cf_cv_gnu_library=no
10460 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10463 echo "$as_me:10463: result: $cf_cv_gnu_library" >&5
10464 echo "${ECHO_T}$cf_cv_gnu_library" >&6
10466 if test x$cf_cv_gnu_library = xyes; then
10468 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
10469 # was changed to help a little. newlib incorporated the change about 4
10471 echo "$as_me:10471: checking if _DEFAULT_SOURCE can be used as a basis" >&5
10472 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
10473 if test "${cf_cv_gnu_library_219+set}" = set; then
10474 echo $ECHO_N "(cached) $ECHO_C" >&6
10477 cf_save="$CPPFLAGS"
10479 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10480 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
10482 cat >"conftest.$ac_ext" <<_ACEOF
10483 #line 10483 "configure"
10484 #include "confdefs.h"
10485 #include <sys/types.h>
10490 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
10492 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3)
10495 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
10501 rm -f "conftest.$ac_objext"
10502 if { (eval echo "$as_me:10502: \"$ac_compile\"") >&5
10503 (eval $ac_compile) 2>&5
10505 echo "$as_me:10505: \$? = $ac_status" >&5
10506 (exit "$ac_status"); } &&
10507 { ac_try='test -s "conftest.$ac_objext"'
10508 { (eval echo "$as_me:10508: \"$ac_try\"") >&5
10509 (eval $ac_try) 2>&5
10511 echo "$as_me:10511: \$? = $ac_status" >&5
10512 (exit "$ac_status"); }; }; then
10513 cf_cv_gnu_library_219=yes
10515 echo "$as_me: failed program was:" >&5
10516 cat "conftest.$ac_ext" >&5
10517 cf_cv_gnu_library_219=no
10519 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10520 CPPFLAGS="$cf_save"
10523 echo "$as_me:10523: result: $cf_cv_gnu_library_219" >&5
10524 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
10526 if test "x$cf_cv_gnu_library_219" = xyes; then
10527 cf_save="$CPPFLAGS"
10528 echo "$as_me:10528: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
10529 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
10530 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
10531 echo $ECHO_N "(cached) $ECHO_C" >&6
10537 cf_new_extra_cppflags=
10539 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
10541 case "$cf_fix_cppflags" in
10543 case "$cf_add_cflags" in
10544 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10545 case "$cf_add_cflags" in
10547 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10549 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10550 && test -z "${cf_tst_cflags}" \
10551 && cf_fix_cppflags=yes
10553 if test "$cf_fix_cppflags" = yes ; then
10555 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10556 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10559 elif test "${cf_tst_cflags}" = "\"'" ; then
10561 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10562 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10568 case "$CPPFLAGS" in
10572 case "$cf_add_cflags" in
10574 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10576 CPPFLAGS=`echo "$CPPFLAGS" | \
10577 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10578 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10583 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10584 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10591 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10592 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10599 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10600 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10602 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10604 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10605 && test -z "${cf_tst_cflags}" \
10606 && cf_fix_cppflags=no
10611 if test -n "$cf_new_cflags" ; then
10613 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10614 CFLAGS="${CFLAGS}$cf_new_cflags"
10618 if test -n "$cf_new_cppflags" ; then
10620 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10621 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10625 if test -n "$cf_new_extra_cppflags" ; then
10627 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10628 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10632 cat >"conftest.$ac_ext" <<_ACEOF
10633 #line 10633 "configure"
10634 #include "confdefs.h"
10636 #include <limits.h>
10637 #include <sys/types.h>
10643 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
10646 # error GNU C library is too old
10652 rm -f "conftest.$ac_objext"
10653 if { (eval echo "$as_me:10653: \"$ac_compile\"") >&5
10654 (eval $ac_compile) 2>&5
10656 echo "$as_me:10656: \$? = $ac_status" >&5
10657 (exit "$ac_status"); } &&
10658 { ac_try='test -s "conftest.$ac_objext"'
10659 { (eval echo "$as_me:10659: \"$ac_try\"") >&5
10660 (eval $ac_try) 2>&5
10662 echo "$as_me:10662: \$? = $ac_status" >&5
10663 (exit "$ac_status"); }; }; then
10664 cf_cv_gnu_dftsrc_219=yes
10666 echo "$as_me: failed program was:" >&5
10667 cat "conftest.$ac_ext" >&5
10668 cf_cv_gnu_dftsrc_219=no
10670 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10673 echo "$as_me:10673: result: $cf_cv_gnu_dftsrc_219" >&5
10674 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
10675 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
10677 cf_cv_gnu_dftsrc_219=maybe
10680 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
10682 echo "$as_me:10682: checking if we must define _GNU_SOURCE" >&5
10683 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
10684 if test "${cf_cv_gnu_source+set}" = set; then
10685 echo $ECHO_N "(cached) $ECHO_C" >&6
10688 cat >"conftest.$ac_ext" <<_ACEOF
10689 #line 10689 "configure"
10690 #include "confdefs.h"
10691 #include <sys/types.h>
10696 #ifndef _XOPEN_SOURCE
10697 #error expected _XOPEN_SOURCE to be defined
10703 rm -f "conftest.$ac_objext"
10704 if { (eval echo "$as_me:10704: \"$ac_compile\"") >&5
10705 (eval $ac_compile) 2>&5
10707 echo "$as_me:10707: \$? = $ac_status" >&5
10708 (exit "$ac_status"); } &&
10709 { ac_try='test -s "conftest.$ac_objext"'
10710 { (eval echo "$as_me:10710: \"$ac_try\"") >&5
10711 (eval $ac_try) 2>&5
10713 echo "$as_me:10713: \$? = $ac_status" >&5
10714 (exit "$ac_status"); }; }; then
10715 cf_cv_gnu_source=no
10717 echo "$as_me: failed program was:" >&5
10718 cat "conftest.$ac_ext" >&5
10719 cf_save="$CPPFLAGS"
10724 cf_new_extra_cppflags=
10726 for cf_add_cflags in -D_GNU_SOURCE
10728 case "$cf_fix_cppflags" in
10730 case "$cf_add_cflags" in
10731 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10732 case "$cf_add_cflags" in
10734 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10736 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10737 && test -z "${cf_tst_cflags}" \
10738 && cf_fix_cppflags=yes
10740 if test "$cf_fix_cppflags" = yes ; then
10742 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10743 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10746 elif test "${cf_tst_cflags}" = "\"'" ; then
10748 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10749 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10755 case "$CPPFLAGS" in
10759 case "$cf_add_cflags" in
10761 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10763 CPPFLAGS=`echo "$CPPFLAGS" | \
10764 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10765 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10770 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10771 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10778 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10779 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10786 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10787 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10789 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10791 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10792 && test -z "${cf_tst_cflags}" \
10793 && cf_fix_cppflags=no
10798 if test -n "$cf_new_cflags" ; then
10800 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10801 CFLAGS="${CFLAGS}$cf_new_cflags"
10805 if test -n "$cf_new_cppflags" ; then
10807 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10808 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10812 if test -n "$cf_new_extra_cppflags" ; then
10814 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10815 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10819 cat >"conftest.$ac_ext" <<_ACEOF
10820 #line 10820 "configure"
10821 #include "confdefs.h"
10822 #include <sys/types.h>
10827 #ifdef _XOPEN_SOURCE
10828 #error expected _XOPEN_SOURCE to be undefined
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
10846 cf_cv_gnu_source=no
10848 echo "$as_me: failed program was:" >&5
10849 cat "conftest.$ac_ext" >&5
10850 cf_cv_gnu_source=yes
10852 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10853 CPPFLAGS="$cf_save"
10856 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10859 echo "$as_me:10859: result: $cf_cv_gnu_source" >&5
10860 echo "${ECHO_T}$cf_cv_gnu_source" >&6
10862 if test "$cf_cv_gnu_source" = yes
10864 echo "$as_me:10864: checking if we should also define _DEFAULT_SOURCE" >&5
10865 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
10866 if test "${cf_cv_default_source+set}" = set; then
10867 echo $ECHO_N "(cached) $ECHO_C" >&6
10870 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10871 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
10873 cat >"conftest.$ac_ext" <<_ACEOF
10874 #line 10874 "configure"
10875 #include "confdefs.h"
10876 #include <sys/types.h>
10881 #ifdef _DEFAULT_SOURCE
10882 #error expected _DEFAULT_SOURCE to be undefined
10888 rm -f "conftest.$ac_objext"
10889 if { (eval echo "$as_me:10889: \"$ac_compile\"") >&5
10890 (eval $ac_compile) 2>&5
10892 echo "$as_me:10892: \$? = $ac_status" >&5
10893 (exit "$ac_status"); } &&
10894 { ac_try='test -s "conftest.$ac_objext"'
10895 { (eval echo "$as_me:10895: \"$ac_try\"") >&5
10896 (eval $ac_try) 2>&5
10898 echo "$as_me:10898: \$? = $ac_status" >&5
10899 (exit "$ac_status"); }; }; then
10900 cf_cv_default_source=no
10902 echo "$as_me: failed program was:" >&5
10903 cat "conftest.$ac_ext" >&5
10904 cf_cv_default_source=yes
10906 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10909 echo "$as_me:10909: result: $cf_cv_default_source" >&5
10910 echo "${ECHO_T}$cf_cv_default_source" >&6
10911 if test "$cf_cv_default_source" = yes
10914 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10915 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
10925 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
10928 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
10931 if test "$cf_cv_posix_visible" = no; then
10933 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
10935 cf_save_CFLAGS="$CFLAGS"
10936 cf_save_CPPFLAGS="$CPPFLAGS"
10938 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
10939 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10940 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10942 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
10943 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10944 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10946 echo "$as_me:10946: checking if we should define _POSIX_C_SOURCE" >&5
10947 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
10948 if test "${cf_cv_posix_c_source+set}" = set; then
10949 echo $ECHO_N "(cached) $ECHO_C" >&6
10952 echo "${as_me:-configure}:10952: testing if the symbol is already defined go no further ..." 1>&5
10954 cat >"conftest.$ac_ext" <<_ACEOF
10955 #line 10955 "configure"
10956 #include "confdefs.h"
10957 #include <sys/types.h>
10962 #ifndef _POSIX_C_SOURCE
10963 #error _POSIX_C_SOURCE is not defined
10969 rm -f "conftest.$ac_objext"
10970 if { (eval echo "$as_me:10970: \"$ac_compile\"") >&5
10971 (eval $ac_compile) 2>&5
10973 echo "$as_me:10973: \$? = $ac_status" >&5
10974 (exit "$ac_status"); } &&
10975 { ac_try='test -s "conftest.$ac_objext"'
10976 { (eval echo "$as_me:10976: \"$ac_try\"") >&5
10977 (eval $ac_try) 2>&5
10979 echo "$as_me:10979: \$? = $ac_status" >&5
10980 (exit "$ac_status"); }; }; then
10981 cf_cv_posix_c_source=no
10983 echo "$as_me: failed program was:" >&5
10984 cat "conftest.$ac_ext" >&5
10985 cf_want_posix_source=no
10986 case .$cf_POSIX_C_SOURCE in
10988 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10991 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10992 cf_want_posix_source=yes
10995 cf_want_posix_source=yes
10998 if test "$cf_want_posix_source" = yes ; then
10999 cat >"conftest.$ac_ext" <<_ACEOF
11000 #line 11000 "configure"
11001 #include "confdefs.h"
11002 #include <sys/types.h>
11007 #ifdef _POSIX_SOURCE
11008 #error _POSIX_SOURCE is defined
11014 rm -f "conftest.$ac_objext"
11015 if { (eval echo "$as_me:11015: \"$ac_compile\"") >&5
11016 (eval $ac_compile) 2>&5
11018 echo "$as_me:11018: \$? = $ac_status" >&5
11019 (exit "$ac_status"); } &&
11020 { ac_try='test -s "conftest.$ac_objext"'
11021 { (eval echo "$as_me:11021: \"$ac_try\"") >&5
11022 (eval $ac_try) 2>&5
11024 echo "$as_me:11024: \$? = $ac_status" >&5
11025 (exit "$ac_status"); }; }; then
11028 echo "$as_me: failed program was:" >&5
11029 cat "conftest.$ac_ext" >&5
11030 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
11032 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11035 echo "${as_me:-configure}:11035: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
11037 CFLAGS="$cf_trim_CFLAGS"
11038 CPPFLAGS="$cf_trim_CPPFLAGS"
11040 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11041 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
11043 echo "${as_me:-configure}:11043: testing if the second compile does not leave our definition intact error ..." 1>&5
11045 cat >"conftest.$ac_ext" <<_ACEOF
11046 #line 11046 "configure"
11047 #include "confdefs.h"
11048 #include <sys/types.h>
11053 #ifndef _POSIX_C_SOURCE
11054 #error _POSIX_C_SOURCE is not defined
11060 rm -f "conftest.$ac_objext"
11061 if { (eval echo "$as_me:11061: \"$ac_compile\"") >&5
11062 (eval $ac_compile) 2>&5
11064 echo "$as_me:11064: \$? = $ac_status" >&5
11065 (exit "$ac_status"); } &&
11066 { ac_try='test -s "conftest.$ac_objext"'
11067 { (eval echo "$as_me:11067: \"$ac_try\"") >&5
11068 (eval $ac_try) 2>&5
11070 echo "$as_me:11070: \$? = $ac_status" >&5
11071 (exit "$ac_status"); }; }; then
11074 echo "$as_me: failed program was:" >&5
11075 cat "conftest.$ac_ext" >&5
11076 cf_cv_posix_c_source=no
11078 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11079 CFLAGS="$cf_save_CFLAGS"
11080 CPPFLAGS="$cf_save_CPPFLAGS"
11083 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11086 echo "$as_me:11086: result: $cf_cv_posix_c_source" >&5
11087 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
11089 if test "$cf_cv_posix_c_source" != no ; then
11090 CFLAGS="$cf_trim_CFLAGS"
11091 CPPFLAGS="$cf_trim_CPPFLAGS"
11096 cf_new_extra_cppflags=
11098 for cf_add_cflags in $cf_cv_posix_c_source
11100 case "$cf_fix_cppflags" in
11102 case "$cf_add_cflags" in
11103 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11104 case "$cf_add_cflags" in
11106 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11108 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11109 && test -z "${cf_tst_cflags}" \
11110 && cf_fix_cppflags=yes
11112 if test "$cf_fix_cppflags" = yes ; then
11114 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11115 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11118 elif test "${cf_tst_cflags}" = "\"'" ; then
11120 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11121 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11127 case "$CPPFLAGS" in
11131 case "$cf_add_cflags" in
11133 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11135 CPPFLAGS=`echo "$CPPFLAGS" | \
11136 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11137 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11142 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11143 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11150 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11151 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11158 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11159 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11161 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11163 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11164 && test -z "${cf_tst_cflags}" \
11165 && cf_fix_cppflags=no
11170 if test -n "$cf_new_cflags" ; then
11172 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11173 CFLAGS="${CFLAGS}$cf_new_cflags"
11177 if test -n "$cf_new_cppflags" ; then
11179 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11180 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11184 if test -n "$cf_new_extra_cppflags" ; then
11186 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11187 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11193 fi # cf_cv_posix_visible
11197 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
11200 # OpenBSD 6.x has broken locale support, both compile-time and runtime.
11201 # see https://www.mail-archive.com/bugs@openbsd.org/msg13200.html
11202 # Abusing the conformance level is a workaround.
11203 { echo "$as_me:11203: WARNING: this system does not provide usable locale support" >&5
11204 echo "$as_me: WARNING: this system does not provide usable locale support" >&2;}
11205 cf_xopen_source="-D_BSD_SOURCE"
11206 cf_XOPEN_SOURCE=700
11209 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
11210 cf_xopen_source="-D_BSD_SOURCE"
11211 cf_XOPEN_SOURCE=600
11214 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
11217 cf_xopen_source="-D_OSF_SOURCE"
11220 cf_xopen_source="-D_QNX_SOURCE"
11223 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
11226 cf_xopen_source="-D__EXTENSIONS__"
11227 cf_cv_xopen_source=broken
11229 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
11235 echo "$as_me:11235: checking if we should define _XOPEN_SOURCE" >&5
11236 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
11237 if test "${cf_cv_xopen_source+set}" = set; then
11238 echo $ECHO_N "(cached) $ECHO_C" >&6
11241 cat >"conftest.$ac_ext" <<_ACEOF
11242 #line 11242 "configure"
11243 #include "confdefs.h"
11245 $ac_includes_default
11251 #ifndef _XOPEN_SOURCE
11252 #error _XOPEN_SOURCE is not defined
11259 rm -f "conftest.$ac_objext"
11260 if { (eval echo "$as_me:11260: \"$ac_compile\"") >&5
11261 (eval $ac_compile) 2>&5
11263 echo "$as_me:11263: \$? = $ac_status" >&5
11264 (exit "$ac_status"); } &&
11265 { ac_try='test -s "conftest.$ac_objext"'
11266 { (eval echo "$as_me:11266: \"$ac_try\"") >&5
11267 (eval $ac_try) 2>&5
11269 echo "$as_me:11269: \$? = $ac_status" >&5
11270 (exit "$ac_status"); }; }; then
11271 cf_cv_xopen_source=no
11273 echo "$as_me: failed program was:" >&5
11274 cat "conftest.$ac_ext" >&5
11275 cf_save="$CPPFLAGS"
11277 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11278 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
11280 cat >"conftest.$ac_ext" <<_ACEOF
11281 #line 11281 "configure"
11282 #include "confdefs.h"
11284 $ac_includes_default
11290 #ifndef _XOPEN_SOURCE
11291 #error _XOPEN_SOURCE is not defined
11298 rm -f "conftest.$ac_objext"
11299 if { (eval echo "$as_me:11299: \"$ac_compile\"") >&5
11300 (eval $ac_compile) 2>&5
11302 echo "$as_me:11302: \$? = $ac_status" >&5
11303 (exit "$ac_status"); } &&
11304 { ac_try='test -s "conftest.$ac_objext"'
11305 { (eval echo "$as_me:11305: \"$ac_try\"") >&5
11306 (eval $ac_try) 2>&5
11308 echo "$as_me:11308: \$? = $ac_status" >&5
11309 (exit "$ac_status"); }; }; then
11310 cf_cv_xopen_source=no
11312 echo "$as_me: failed program was:" >&5
11313 cat "conftest.$ac_ext" >&5
11314 cf_cv_xopen_source=$cf_XOPEN_SOURCE
11316 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11317 CPPFLAGS="$cf_save"
11320 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11323 echo "$as_me:11323: result: $cf_cv_xopen_source" >&5
11324 echo "${ECHO_T}$cf_cv_xopen_source" >&6
11326 if test "$cf_cv_xopen_source" != no ; then
11328 CFLAGS=`echo "$CFLAGS" | \
11329 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11330 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
11332 CPPFLAGS=`echo "$CPPFLAGS" | \
11333 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11334 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
11336 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
11338 for cf_add_cflags in $cf_temp_xopen_source
11340 case "x$cf_add_cflags" in
11343 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11346 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
11347 test "$CFLAGS" != "$cf_old_cflag" || break
11349 CFLAGS="$cf_old_cflag"
11352 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11355 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
11356 test "$CPPFLAGS" != "$cf_old_cflag" || break
11358 CPPFLAGS="$cf_old_cflag"
11367 cf_new_extra_cppflags=
11369 for cf_add_cflags in $cf_add_cflags
11371 case "$cf_fix_cppflags" in
11373 case "$cf_add_cflags" in
11374 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11375 case "$cf_add_cflags" in
11377 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11379 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11380 && test -z "${cf_tst_cflags}" \
11381 && cf_fix_cppflags=yes
11383 if test "$cf_fix_cppflags" = yes ; then
11385 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11386 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11389 elif test "${cf_tst_cflags}" = "\"'" ; then
11391 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11392 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11398 case "$CPPFLAGS" in
11402 case "$cf_add_cflags" in
11404 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11406 CPPFLAGS=`echo "$CPPFLAGS" | \
11407 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11408 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11413 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11414 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11421 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11422 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11429 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11430 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11432 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11434 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11435 && test -z "${cf_tst_cflags}" \
11436 && cf_fix_cppflags=no
11441 if test -n "$cf_new_cflags" ; then
11443 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11444 CFLAGS="${CFLAGS}$cf_new_cflags"
11448 if test -n "$cf_new_cppflags" ; then
11450 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11451 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11455 if test -n "$cf_new_extra_cppflags" ; then
11457 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11458 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11466 cf_save_xopen_cppflags="$CPPFLAGS"
11468 if test "$cf_cv_posix_visible" = no; then
11470 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
11472 cf_save_CFLAGS="$CFLAGS"
11473 cf_save_CPPFLAGS="$CPPFLAGS"
11475 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
11476 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11477 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
11479 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
11480 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11481 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
11483 echo "$as_me:11483: checking if we should define _POSIX_C_SOURCE" >&5
11484 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
11485 if test "${cf_cv_posix_c_source+set}" = set; then
11486 echo $ECHO_N "(cached) $ECHO_C" >&6
11489 echo "${as_me:-configure}:11489: testing if the symbol is already defined go no further ..." 1>&5
11491 cat >"conftest.$ac_ext" <<_ACEOF
11492 #line 11492 "configure"
11493 #include "confdefs.h"
11494 #include <sys/types.h>
11499 #ifndef _POSIX_C_SOURCE
11500 #error _POSIX_C_SOURCE is not defined
11506 rm -f "conftest.$ac_objext"
11507 if { (eval echo "$as_me:11507: \"$ac_compile\"") >&5
11508 (eval $ac_compile) 2>&5
11510 echo "$as_me:11510: \$? = $ac_status" >&5
11511 (exit "$ac_status"); } &&
11512 { ac_try='test -s "conftest.$ac_objext"'
11513 { (eval echo "$as_me:11513: \"$ac_try\"") >&5
11514 (eval $ac_try) 2>&5
11516 echo "$as_me:11516: \$? = $ac_status" >&5
11517 (exit "$ac_status"); }; }; then
11518 cf_cv_posix_c_source=no
11520 echo "$as_me: failed program was:" >&5
11521 cat "conftest.$ac_ext" >&5
11522 cf_want_posix_source=no
11523 case .$cf_POSIX_C_SOURCE in
11525 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
11528 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
11529 cf_want_posix_source=yes
11532 cf_want_posix_source=yes
11535 if test "$cf_want_posix_source" = yes ; then
11536 cat >"conftest.$ac_ext" <<_ACEOF
11537 #line 11537 "configure"
11538 #include "confdefs.h"
11539 #include <sys/types.h>
11544 #ifdef _POSIX_SOURCE
11545 #error _POSIX_SOURCE is defined
11551 rm -f "conftest.$ac_objext"
11552 if { (eval echo "$as_me:11552: \"$ac_compile\"") >&5
11553 (eval $ac_compile) 2>&5
11555 echo "$as_me:11555: \$? = $ac_status" >&5
11556 (exit "$ac_status"); } &&
11557 { ac_try='test -s "conftest.$ac_objext"'
11558 { (eval echo "$as_me:11558: \"$ac_try\"") >&5
11559 (eval $ac_try) 2>&5
11561 echo "$as_me:11561: \$? = $ac_status" >&5
11562 (exit "$ac_status"); }; }; then
11565 echo "$as_me: failed program was:" >&5
11566 cat "conftest.$ac_ext" >&5
11567 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
11569 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11572 echo "${as_me:-configure}:11572: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
11574 CFLAGS="$cf_trim_CFLAGS"
11575 CPPFLAGS="$cf_trim_CPPFLAGS"
11577 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11578 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
11580 echo "${as_me:-configure}:11580: testing if the second compile does not leave our definition intact error ..." 1>&5
11582 cat >"conftest.$ac_ext" <<_ACEOF
11583 #line 11583 "configure"
11584 #include "confdefs.h"
11585 #include <sys/types.h>
11590 #ifndef _POSIX_C_SOURCE
11591 #error _POSIX_C_SOURCE is not defined
11597 rm -f "conftest.$ac_objext"
11598 if { (eval echo "$as_me:11598: \"$ac_compile\"") >&5
11599 (eval $ac_compile) 2>&5
11601 echo "$as_me:11601: \$? = $ac_status" >&5
11602 (exit "$ac_status"); } &&
11603 { ac_try='test -s "conftest.$ac_objext"'
11604 { (eval echo "$as_me:11604: \"$ac_try\"") >&5
11605 (eval $ac_try) 2>&5
11607 echo "$as_me:11607: \$? = $ac_status" >&5
11608 (exit "$ac_status"); }; }; then
11611 echo "$as_me: failed program was:" >&5
11612 cat "conftest.$ac_ext" >&5
11613 cf_cv_posix_c_source=no
11615 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11616 CFLAGS="$cf_save_CFLAGS"
11617 CPPFLAGS="$cf_save_CPPFLAGS"
11620 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11623 echo "$as_me:11623: result: $cf_cv_posix_c_source" >&5
11624 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
11626 if test "$cf_cv_posix_c_source" != no ; then
11627 CFLAGS="$cf_trim_CFLAGS"
11628 CPPFLAGS="$cf_trim_CPPFLAGS"
11633 cf_new_extra_cppflags=
11635 for cf_add_cflags in $cf_cv_posix_c_source
11637 case "$cf_fix_cppflags" in
11639 case "$cf_add_cflags" in
11640 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11641 case "$cf_add_cflags" in
11643 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11645 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11646 && test -z "${cf_tst_cflags}" \
11647 && cf_fix_cppflags=yes
11649 if test "$cf_fix_cppflags" = yes ; then
11651 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11652 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11655 elif test "${cf_tst_cflags}" = "\"'" ; then
11657 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11658 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11664 case "$CPPFLAGS" in
11668 case "$cf_add_cflags" in
11670 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11672 CPPFLAGS=`echo "$CPPFLAGS" | \
11673 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11674 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11679 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11680 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11687 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11688 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11695 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11696 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11698 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11700 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11701 && test -z "${cf_tst_cflags}" \
11702 && cf_fix_cppflags=no
11707 if test -n "$cf_new_cflags" ; then
11709 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11710 CFLAGS="${CFLAGS}$cf_new_cflags"
11714 if test -n "$cf_new_cppflags" ; then
11716 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11717 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11721 if test -n "$cf_new_extra_cppflags" ; then
11723 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11724 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11730 fi # cf_cv_posix_visible
11732 # Some of these niche implementations use copy/paste, double-check...
11733 if test "$cf_cv_xopen_source" = no ; then
11734 test -n "$verbose" && echo " checking if _POSIX_C_SOURCE interferes with _XOPEN_SOURCE" 1>&6
11736 echo "${as_me:-configure}:11736: testing checking if _POSIX_C_SOURCE interferes with _XOPEN_SOURCE ..." 1>&5
11738 cat >"conftest.$ac_ext" <<_ACEOF
11739 #line 11739 "configure"
11740 #include "confdefs.h"
11742 $ac_includes_default
11748 #ifndef _XOPEN_SOURCE
11749 #error _XOPEN_SOURCE is not defined
11756 rm -f "conftest.$ac_objext"
11757 if { (eval echo "$as_me:11757: \"$ac_compile\"") >&5
11758 (eval $ac_compile) 2>&5
11760 echo "$as_me:11760: \$? = $ac_status" >&5
11761 (exit "$ac_status"); } &&
11762 { ac_try='test -s "conftest.$ac_objext"'
11763 { (eval echo "$as_me:11763: \"$ac_try\"") >&5
11764 (eval $ac_try) 2>&5
11766 echo "$as_me:11766: \$? = $ac_status" >&5
11767 (exit "$ac_status"); }; }; then
11770 echo "$as_me: failed program was:" >&5
11771 cat "conftest.$ac_ext" >&5
11773 { echo "$as_me:11773: WARNING: _POSIX_C_SOURCE definition is not usable" >&5
11774 echo "$as_me: WARNING: _POSIX_C_SOURCE definition is not usable" >&2;}
11775 CPPFLAGS="$cf_save_xopen_cppflags"
11777 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11782 if test -n "$cf_xopen_source" ; then
11784 for cf_add_cflags in $cf_xopen_source
11786 case "x$cf_add_cflags" in
11789 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11792 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
11793 test "$CFLAGS" != "$cf_old_cflag" || break
11794 test -n "$verbose" && echo " removing old option $cf_add_cflags from CFLAGS" 1>&6
11796 echo "${as_me:-configure}:11796: testing removing old option $cf_add_cflags from CFLAGS ..." 1>&5
11798 CFLAGS="$cf_old_cflag"
11801 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11804 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
11805 test "$CPPFLAGS" != "$cf_old_cflag" || break
11806 test -n "$verbose" && echo " removing old option $cf_add_cflags from CPPFLAGS" 1>&6
11808 echo "${as_me:-configure}:11808: testing removing old option $cf_add_cflags from CPPFLAGS ..." 1>&5
11810 CPPFLAGS="$cf_old_cflag"
11819 cf_new_extra_cppflags=
11821 for cf_add_cflags in $cf_add_cflags
11823 case "$cf_fix_cppflags" in
11825 case "$cf_add_cflags" in
11826 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11827 case "$cf_add_cflags" in
11829 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11831 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11832 && test -z "${cf_tst_cflags}" \
11833 && cf_fix_cppflags=yes
11835 if test "$cf_fix_cppflags" = yes ; then
11837 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11838 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11841 elif test "${cf_tst_cflags}" = "\"'" ; then
11843 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11844 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11850 case "$CPPFLAGS" in
11854 case "$cf_add_cflags" in
11856 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11858 CPPFLAGS=`echo "$CPPFLAGS" | \
11859 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11860 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11865 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11866 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11873 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11874 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11881 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11882 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11884 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11886 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11887 && test -z "${cf_tst_cflags}" \
11888 && cf_fix_cppflags=no
11893 if test -n "$cf_new_cflags" ; then
11894 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
11896 echo "${as_me:-configure}:11896: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
11898 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11899 CFLAGS="${CFLAGS}$cf_new_cflags"
11903 if test -n "$cf_new_cppflags" ; then
11904 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
11906 echo "${as_me:-configure}:11906: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
11908 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11909 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11913 if test -n "$cf_new_extra_cppflags" ; then
11914 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
11916 echo "${as_me:-configure}:11916: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
11918 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11919 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11927 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
11928 echo "$as_me:11928: checking if _XOPEN_SOURCE really is set" >&5
11929 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
11930 cat >"conftest.$ac_ext" <<_ACEOF
11931 #line 11931 "configure"
11932 #include "confdefs.h"
11933 #include <stdlib.h>
11938 #ifndef _XOPEN_SOURCE
11939 #error _XOPEN_SOURCE is not defined
11945 rm -f "conftest.$ac_objext"
11946 if { (eval echo "$as_me:11946: \"$ac_compile\"") >&5
11947 (eval $ac_compile) 2>&5
11949 echo "$as_me:11949: \$? = $ac_status" >&5
11950 (exit "$ac_status"); } &&
11951 { ac_try='test -s "conftest.$ac_objext"'
11952 { (eval echo "$as_me:11952: \"$ac_try\"") >&5
11953 (eval $ac_try) 2>&5
11955 echo "$as_me:11955: \$? = $ac_status" >&5
11956 (exit "$ac_status"); }; }; then
11957 cf_XOPEN_SOURCE_set=yes
11959 echo "$as_me: failed program was:" >&5
11960 cat "conftest.$ac_ext" >&5
11961 cf_XOPEN_SOURCE_set=no
11963 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11964 echo "$as_me:11964: result: $cf_XOPEN_SOURCE_set" >&5
11965 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
11966 if test "$cf_XOPEN_SOURCE_set" = yes
11968 cat >"conftest.$ac_ext" <<_ACEOF
11969 #line 11969 "configure"
11970 #include "confdefs.h"
11971 #include <stdlib.h>
11976 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
11977 #error (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
11983 rm -f "conftest.$ac_objext"
11984 if { (eval echo "$as_me:11984: \"$ac_compile\"") >&5
11985 (eval $ac_compile) 2>&5
11987 echo "$as_me:11987: \$? = $ac_status" >&5
11988 (exit "$ac_status"); } &&
11989 { ac_try='test -s "conftest.$ac_objext"'
11990 { (eval echo "$as_me:11990: \"$ac_try\"") >&5
11991 (eval $ac_try) 2>&5
11993 echo "$as_me:11993: \$? = $ac_status" >&5
11994 (exit "$ac_status"); }; }; then
11995 cf_XOPEN_SOURCE_set_ok=yes
11997 echo "$as_me: failed program was:" >&5
11998 cat "conftest.$ac_ext" >&5
11999 cf_XOPEN_SOURCE_set_ok=no
12001 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12002 if test "$cf_XOPEN_SOURCE_set_ok" = no
12004 { echo "$as_me:12004: WARNING: _XOPEN_SOURCE is lower than requested" >&5
12005 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
12009 echo "$as_me:12009: checking if we should define _XOPEN_SOURCE" >&5
12010 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
12011 if test "${cf_cv_xopen_source+set}" = set; then
12012 echo $ECHO_N "(cached) $ECHO_C" >&6
12015 cat >"conftest.$ac_ext" <<_ACEOF
12016 #line 12016 "configure"
12017 #include "confdefs.h"
12019 $ac_includes_default
12025 #ifndef _XOPEN_SOURCE
12026 #error _XOPEN_SOURCE is not defined
12033 rm -f "conftest.$ac_objext"
12034 if { (eval echo "$as_me:12034: \"$ac_compile\"") >&5
12035 (eval $ac_compile) 2>&5
12037 echo "$as_me:12037: \$? = $ac_status" >&5
12038 (exit "$ac_status"); } &&
12039 { ac_try='test -s "conftest.$ac_objext"'
12040 { (eval echo "$as_me:12040: \"$ac_try\"") >&5
12041 (eval $ac_try) 2>&5
12043 echo "$as_me:12043: \$? = $ac_status" >&5
12044 (exit "$ac_status"); }; }; then
12045 cf_cv_xopen_source=no
12047 echo "$as_me: failed program was:" >&5
12048 cat "conftest.$ac_ext" >&5
12049 cf_save="$CPPFLAGS"
12051 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12052 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
12054 cat >"conftest.$ac_ext" <<_ACEOF
12055 #line 12055 "configure"
12056 #include "confdefs.h"
12058 $ac_includes_default
12064 #ifndef _XOPEN_SOURCE
12065 #error _XOPEN_SOURCE is not defined
12072 rm -f "conftest.$ac_objext"
12073 if { (eval echo "$as_me:12073: \"$ac_compile\"") >&5
12074 (eval $ac_compile) 2>&5
12076 echo "$as_me:12076: \$? = $ac_status" >&5
12077 (exit "$ac_status"); } &&
12078 { ac_try='test -s "conftest.$ac_objext"'
12079 { (eval echo "$as_me:12079: \"$ac_try\"") >&5
12080 (eval $ac_try) 2>&5
12082 echo "$as_me:12082: \$? = $ac_status" >&5
12083 (exit "$ac_status"); }; }; then
12084 cf_cv_xopen_source=no
12086 echo "$as_me: failed program was:" >&5
12087 cat "conftest.$ac_ext" >&5
12088 cf_cv_xopen_source=$cf_XOPEN_SOURCE
12090 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12091 CPPFLAGS="$cf_save"
12094 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12097 echo "$as_me:12097: result: $cf_cv_xopen_source" >&5
12098 echo "${ECHO_T}$cf_cv_xopen_source" >&6
12100 if test "$cf_cv_xopen_source" != no ; then
12102 CFLAGS=`echo "$CFLAGS" | \
12103 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
12104 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
12106 CPPFLAGS=`echo "$CPPFLAGS" | \
12107 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
12108 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
12110 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
12112 for cf_add_cflags in $cf_temp_xopen_source
12114 case "x$cf_add_cflags" in
12117 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
12120 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
12121 test "$CFLAGS" != "$cf_old_cflag" || break
12123 CFLAGS="$cf_old_cflag"
12126 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
12129 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
12130 test "$CPPFLAGS" != "$cf_old_cflag" || break
12132 CPPFLAGS="$cf_old_cflag"
12141 cf_new_extra_cppflags=
12143 for cf_add_cflags in $cf_add_cflags
12145 case "$cf_fix_cppflags" in
12147 case "$cf_add_cflags" in
12148 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12149 case "$cf_add_cflags" in
12151 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12153 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12154 && test -z "${cf_tst_cflags}" \
12155 && cf_fix_cppflags=yes
12157 if test "$cf_fix_cppflags" = yes ; then
12159 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12160 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12163 elif test "${cf_tst_cflags}" = "\"'" ; then
12165 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12166 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12172 case "$CPPFLAGS" in
12176 case "$cf_add_cflags" in
12178 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12180 CPPFLAGS=`echo "$CPPFLAGS" | \
12181 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12182 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12187 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
12188 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
12195 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
12196 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
12203 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12204 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12206 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
12208 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12209 && test -z "${cf_tst_cflags}" \
12210 && cf_fix_cppflags=no
12215 if test -n "$cf_new_cflags" ; then
12217 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12218 CFLAGS="${CFLAGS}$cf_new_cflags"
12222 if test -n "$cf_new_cppflags" ; then
12224 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12225 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12229 if test -n "$cf_new_extra_cppflags" ; then
12231 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12232 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
12242 fi # cf_cv_posix_visible
12244 CPPFLAGS_after_XOPEN="$CPPFLAGS"
12246 # Work around breakage on OS X
12248 echo "$as_me:12248: checking if SIGWINCH is defined" >&5
12249 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
12250 if test "${cf_cv_define_sigwinch+set}" = set; then
12251 echo $ECHO_N "(cached) $ECHO_C" >&6
12254 cat >"conftest.$ac_ext" <<_ACEOF
12255 #line 12255 "configure"
12256 #include "confdefs.h"
12258 #include <sys/types.h>
12259 #include <sys/signal.h>
12264 int x = SIGWINCH; (void)x
12269 rm -f "conftest.$ac_objext"
12270 if { (eval echo "$as_me:12270: \"$ac_compile\"") >&5
12271 (eval $ac_compile) 2>&5
12273 echo "$as_me:12273: \$? = $ac_status" >&5
12274 (exit "$ac_status"); } &&
12275 { ac_try='test -s "conftest.$ac_objext"'
12276 { (eval echo "$as_me:12276: \"$ac_try\"") >&5
12277 (eval $ac_try) 2>&5
12279 echo "$as_me:12279: \$? = $ac_status" >&5
12280 (exit "$ac_status"); }; }; then
12281 cf_cv_define_sigwinch=yes
12283 echo "$as_me: failed program was:" >&5
12284 cat "conftest.$ac_ext" >&5
12285 cat >"conftest.$ac_ext" <<_ACEOF
12286 #line 12286 "configure"
12287 #include "confdefs.h"
12289 #undef _XOPEN_SOURCE
12290 #undef _POSIX_SOURCE
12291 #undef _POSIX_C_SOURCE
12292 #include <sys/types.h>
12293 #include <sys/signal.h>
12298 int x = SIGWINCH; (void)x
12303 rm -f "conftest.$ac_objext"
12304 if { (eval echo "$as_me:12304: \"$ac_compile\"") >&5
12305 (eval $ac_compile) 2>&5
12307 echo "$as_me:12307: \$? = $ac_status" >&5
12308 (exit "$ac_status"); } &&
12309 { ac_try='test -s "conftest.$ac_objext"'
12310 { (eval echo "$as_me:12310: \"$ac_try\"") >&5
12311 (eval $ac_try) 2>&5
12313 echo "$as_me:12313: \$? = $ac_status" >&5
12314 (exit "$ac_status"); }; }; then
12315 cf_cv_define_sigwinch=maybe
12317 echo "$as_me: failed program was:" >&5
12318 cat "conftest.$ac_ext" >&5
12319 cf_cv_define_sigwinch=no
12321 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12324 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12327 echo "$as_me:12327: result: $cf_cv_define_sigwinch" >&5
12328 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
12330 if test "$cf_cv_define_sigwinch" = maybe ; then
12331 echo "$as_me:12331: checking for actual SIGWINCH definition" >&5
12332 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
12333 if test "${cf_cv_fixup_sigwinch+set}" = set; then
12334 echo $ECHO_N "(cached) $ECHO_C" >&6
12337 cf_cv_fixup_sigwinch=unknown
12339 while test "$cf_sigwinch" != 1
12341 cat >"conftest.$ac_ext" <<_ACEOF
12342 #line 12342 "configure"
12343 #include "confdefs.h"
12345 #undef _XOPEN_SOURCE
12346 #undef _POSIX_SOURCE
12347 #undef _POSIX_C_SOURCE
12348 #include <sys/types.h>
12349 #include <sys/signal.h>
12355 #if SIGWINCH != $cf_sigwinch
12356 #error SIGWINCH is not $cf_sigwinch
12358 int x = SIGWINCH; (void)x
12363 rm -f "conftest.$ac_objext"
12364 if { (eval echo "$as_me:12364: \"$ac_compile\"") >&5
12365 (eval $ac_compile) 2>&5
12367 echo "$as_me:12367: \$? = $ac_status" >&5
12368 (exit "$ac_status"); } &&
12369 { ac_try='test -s "conftest.$ac_objext"'
12370 { (eval echo "$as_me:12370: \"$ac_try\"") >&5
12371 (eval $ac_try) 2>&5
12373 echo "$as_me:12373: \$? = $ac_status" >&5
12374 (exit "$ac_status"); }; }; then
12375 cf_cv_fixup_sigwinch=$cf_sigwinch
12378 echo "$as_me: failed program was:" >&5
12379 cat "conftest.$ac_ext" >&5
12381 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12383 cf_sigwinch="`expr "$cf_sigwinch" - 1`"
12387 echo "$as_me:12387: result: $cf_cv_fixup_sigwinch" >&5
12388 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
12390 if test "$cf_cv_fixup_sigwinch" != unknown ; then
12391 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
12395 # Checks for CODESET support.
12397 echo "$as_me:12397: checking for nl_langinfo and CODESET" >&5
12398 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
12399 if test "${am_cv_langinfo_codeset+set}" = set; then
12400 echo $ECHO_N "(cached) $ECHO_C" >&6
12402 cat >"conftest.$ac_ext" <<_ACEOF
12403 #line 12403 "configure"
12404 #include "confdefs.h"
12406 $ac_includes_default
12407 #include <langinfo.h>
12411 char* cs = nl_langinfo(CODESET); (void)cs
12416 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12417 if { (eval echo "$as_me:12417: \"$ac_link\"") >&5
12418 (eval $ac_link) 2>&5
12420 echo "$as_me:12420: \$? = $ac_status" >&5
12421 (exit "$ac_status"); } &&
12422 { ac_try='test -s "conftest$ac_exeext"'
12423 { (eval echo "$as_me:12423: \"$ac_try\"") >&5
12424 (eval $ac_try) 2>&5
12426 echo "$as_me:12426: \$? = $ac_status" >&5
12427 (exit "$ac_status"); }; }; then
12428 am_cv_langinfo_codeset=yes
12430 echo "$as_me: failed program was:" >&5
12431 cat "conftest.$ac_ext" >&5
12432 am_cv_langinfo_codeset=no
12434 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12437 echo "$as_me:12437: result: $am_cv_langinfo_codeset" >&5
12438 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
12439 if test "$am_cv_langinfo_codeset" = yes; then
12441 cat >>confdefs.h <<\EOF
12442 #define HAVE_LANGINFO_CODESET 1
12447 # use these variables to work around a defect in gcc's fixincludes.
12448 NCURSES_OK_WCHAR_T=
12451 echo "$as_me:12451: checking if you want wide-character code" >&5
12452 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
12454 # Check whether --enable-widec or --disable-widec was given.
12455 if test "${enable_widec+set}" = set; then
12456 enableval="$enable_widec"
12457 with_widec=$enableval
12461 echo "$as_me:12461: result: $with_widec" >&5
12462 echo "${ECHO_T}$with_widec" >&6
12464 NCURSES_WCWIDTH_GRAPHICS=1
12466 if test "x$with_widec" = xyes ; then
12467 if test "x$disable_lib_suffixes" = xno ; then
12468 LIB_SUFFIX="w${LIB_SUFFIX}"
12471 cat >>confdefs.h <<\EOF
12472 #define USE_WIDEC_SUPPORT 1
12475 cat >>confdefs.h <<\EOF
12476 #define NCURSES_WIDECHAR 1
12479 case "$CPPFLAGS" in
12483 { echo "$as_me:12483: WARNING: _XOPEN_SOURCE feature test macro appears to be predefined" >&5
12484 echo "$as_me: WARNING: _XOPEN_SOURCE feature test macro appears to be predefined" >&2;}
12485 # CPPFLAGS="$CPPFLAGS -DNCURSES_WIDECHAR"
12486 CPPFLAGS_after_XOPEN="$CPPFLAGS_after_XOPEN -DNCURSES_WIDECHAR"
12495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12496 echo "$as_me:12496: checking for $ac_header" >&5
12497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12499 echo $ECHO_N "(cached) $ECHO_C" >&6
12501 cat >"conftest.$ac_ext" <<_ACEOF
12502 #line 12502 "configure"
12503 #include "confdefs.h"
12504 #include <$ac_header>
12506 if { (eval echo "$as_me:12506: \"$ac_cpp "conftest.$ac_ext"\"") >&5
12507 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
12509 $EGREP -v '^ *\+' conftest.er1 >conftest.err
12511 cat conftest.err >&5
12512 echo "$as_me:12512: \$? = $ac_status" >&5
12513 (exit "$ac_status"); } >/dev/null; then
12514 if test -s conftest.err; then
12515 ac_cpp_err=$ac_c_preproc_warn_flag
12522 if test -z "$ac_cpp_err"; then
12523 eval "$as_ac_Header=yes"
12525 echo "$as_me: failed program was:" >&5
12526 cat "conftest.$ac_ext" >&5
12527 eval "$as_ac_Header=no"
12529 rm -f conftest.err "conftest.$ac_ext"
12531 echo "$as_me:12531: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
12532 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
12533 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
12534 cat >>confdefs.h <<EOF
12535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12541 echo "$as_me:12541: checking if wchar.h can be used as is" >&5
12542 echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6
12543 if test "${cf_cv_wchar_h_okay+set}" = set; then
12544 echo $ECHO_N "(cached) $ECHO_C" >&6
12547 cat >"conftest.$ac_ext" <<_ACEOF
12548 #line 12548 "configure"
12549 #include "confdefs.h"
12551 $ac_includes_default
12552 #ifdef HAVE_WCHAR_H
12555 #ifdef HAVE_WCTYPE_H
12556 #include <wctype.h>
12564 int bar = iswpunct(foo)
12569 rm -f "conftest.$ac_objext"
12570 if { (eval echo "$as_me:12570: \"$ac_compile\"") >&5
12571 (eval $ac_compile) 2>&5
12573 echo "$as_me:12573: \$? = $ac_status" >&5
12574 (exit "$ac_status"); } &&
12575 { ac_try='test -s "conftest.$ac_objext"'
12576 { (eval echo "$as_me:12576: \"$ac_try\"") >&5
12577 (eval $ac_try) 2>&5
12579 echo "$as_me:12579: \$? = $ac_status" >&5
12580 (exit "$ac_status"); }; }; then
12581 cf_cv_wchar_h_okay=yes
12583 echo "$as_me: failed program was:" >&5
12584 cat "conftest.$ac_ext" >&5
12585 cf_cv_wchar_h_okay=no
12587 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12589 echo "$as_me:12589: result: $cf_cv_wchar_h_okay" >&5
12590 echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6
12592 if test "$cf_cv_wchar_h_okay" = no
12595 echo "$as_me:12595: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
12596 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
12597 cat >"conftest.$ac_ext" <<_ACEOF
12598 #line 12598 "configure"
12599 #include "confdefs.h"
12600 #include <sys/types.h>
12606 #ifndef _XOPEN_SOURCE_EXTENDED
12607 #error _XOPEN_SOURCE_EXTENDED is not defined
12613 rm -f "conftest.$ac_objext"
12614 if { (eval echo "$as_me:12614: \"$ac_compile\"") >&5
12615 (eval $ac_compile) 2>&5
12617 echo "$as_me:12617: \$? = $ac_status" >&5
12618 (exit "$ac_status"); } &&
12619 { ac_try='test -s "conftest.$ac_objext"'
12620 { (eval echo "$as_me:12620: \"$ac_try\"") >&5
12621 (eval $ac_try) 2>&5
12623 echo "$as_me:12623: \$? = $ac_status" >&5
12624 (exit "$ac_status"); }; }; then
12627 echo "$as_me: failed program was:" >&5
12628 cat "conftest.$ac_ext" >&5
12631 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12632 echo "$as_me:12632: result: $cf_result" >&5
12633 echo "${ECHO_T}$cf_result" >&6
12635 if test "$cf_result" = yes ; then
12636 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
12637 elif test "x" != "x" ; then
12638 echo "$as_me:12638: checking checking for compatible value versus " >&5
12639 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
12640 cat >"conftest.$ac_ext" <<_ACEOF
12641 #line 12641 "configure"
12642 #include "confdefs.h"
12643 #include <sys/types.h>
12649 #if _XOPEN_SOURCE_EXTENDED- < 0
12650 #error _XOPEN_SOURCE_EXTENDED- is negative
12656 rm -f "conftest.$ac_objext"
12657 if { (eval echo "$as_me:12657: \"$ac_compile\"") >&5
12658 (eval $ac_compile) 2>&5
12660 echo "$as_me:12660: \$? = $ac_status" >&5
12661 (exit "$ac_status"); } &&
12662 { ac_try='test -s "conftest.$ac_objext"'
12663 { (eval echo "$as_me:12663: \"$ac_try\"") >&5
12664 (eval $ac_try) 2>&5
12666 echo "$as_me:12666: \$? = $ac_status" >&5
12667 (exit "$ac_status"); }; }; then
12670 echo "$as_me: failed program was:" >&5
12671 cat "conftest.$ac_ext" >&5
12674 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12675 echo "$as_me:12675: result: $cf_result" >&5
12676 echo "${ECHO_T}$cf_result" >&6
12677 if test "$cf_result" = no ; then
12678 # perhaps we can override it - try...
12679 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
12685 echo "$as_me:12685: checking if wcwidth agrees graphics are single-width" >&5
12686 echo $ECHO_N "checking if wcwidth agrees graphics are single-width... $ECHO_C" >&6
12687 if test "${cf_cv_wcwidth_graphics+set}" = set; then
12688 echo $ECHO_N "(cached) $ECHO_C" >&6
12691 cat >conftest.in <<CF_EOF
12693 0x250c upper left corner
12694 0x2514 lower left corner
12695 0x2510 upper right corner
12696 0x2518 lower right corner
12697 0x251c tee pointing left
12698 0x2524 tee pointing right
12699 0x2534 tee pointing up
12700 0x252c tee pointing down
12701 0x2500 horizontal line
12702 0x2502 vertical line
12703 0x253c large plus or crossover
12707 0x2592 checker board (stipple)
12708 0x00b0 degree symbol
12711 - Teletype 5410v1 symbols
12712 0x2190 arrow pointing left
12713 0x2192 arrow pointing right
12714 0x2193 arrow pointing down
12715 0x2191 arrow pointing up
12716 0x2592 board of squares
12717 0x2603 lantern symbol
12718 0x25ae solid square block
12719 - these defaults were invented for ncurses
12722 0x2264 less-than-or-equal-to
12723 0x2265 greater-than-or-equal-to
12726 0x00a3 pound-sterling symbol
12727 - thick-line-drawing
12728 0x250f upper left corner
12729 0x2517 lower left corner
12730 0x2513 upper right corner
12731 0x251b lower right corner
12732 0x2523 tee pointing left
12733 0x252b tee pointing right
12734 0x253b tee pointing up
12735 0x2533 tee pointing down
12736 0x2501 horizontal line
12737 0x2503 vertical line
12738 0x254b large plus or crossover
12739 - double-line-drawing
12740 0x2554 upper left corner
12741 0x255a lower left corner
12742 0x2557 upper right corner
12743 0x255d lower right corner
12744 0x2563 tee pointing left
12745 0x2560 tee pointing right
12746 0x2569 tee pointing up
12747 0x2566 tee pointing down
12748 0x2550 horizontal line
12749 0x2551 vertical line
12750 0x256c large plus or crossover
12752 if test "$cross_compiling" = yes; then
12753 cf_cv_wcwidth_graphics=unknown
12755 cat >"conftest.$ac_ext" <<_ACEOF
12756 #line 12756 "configure"
12757 #include "confdefs.h"
12759 $ac_includes_default
12761 #include <locale.h>
12771 char buffer[MY_LEN + 1];
12772 char notes[MY_LEN + 1];
12776 if (setlocale(LC_ALL, "en_US.UTF8") ||
12777 setlocale(LC_ALL, "en_US.UTF-8") ||
12778 setlocale(LC_ALL, "en_US.utf8") ||
12779 setlocale(LC_ALL, "en_US.utf-8")) {
12780 if ((fp = fopen("conftest.in", "r")) != 0) {
12781 while (fgets(buffer, MY_LEN, fp) != 0) {
12782 if (*buffer == '-') {
12783 fprintf(stderr, "\\t%s", buffer);
12784 } else if (sscanf(buffer, "%x %s", &value, notes) == 2) {
12786 if (wcwidth(value) == 1)
12788 fprintf(stderr, "%d\\t%s", wcwidth(value), buffer);
12790 fprintf(stderr, "?\\t%s", buffer);
12795 fprintf(stderr, "%d/%d passed wcwidth/graphics check\\n", passed, totals);
12796 return (totals == passed) ? 0 : 1;
12800 rm -f "conftest$ac_exeext"
12801 if { (eval echo "$as_me:12801: \"$ac_link\"") >&5
12802 (eval $ac_link) 2>&5
12804 echo "$as_me:12804: \$? = $ac_status" >&5
12805 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
12806 { (eval echo "$as_me:12806: \"$ac_try\"") >&5
12807 (eval $ac_try) 2>&5
12809 echo "$as_me:12809: \$? = $ac_status" >&5
12810 (exit "$ac_status"); }; }; then
12811 cf_cv_wcwidth_graphics=yes
12813 echo "$as_me: program exited with status $ac_status" >&5
12814 echo "$as_me: failed program was:" >&5
12815 cat "conftest.$ac_ext" >&5
12816 cf_cv_wcwidth_graphics=no
12818 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
12822 echo "$as_me:12822: result: $cf_cv_wcwidth_graphics" >&5
12823 echo "${ECHO_T}$cf_cv_wcwidth_graphics" >&6
12825 test "$cf_cv_wcwidth_graphics" = no && NCURSES_WCWIDTH_GRAPHICS=0
12827 # with_overwrite=no
12828 NCURSES_CH_T=cchar_t
12830 for ac_func in putwc btowc wctob wmemchr mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
12832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12833 echo "$as_me:12833: checking for $ac_func" >&5
12834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12835 if eval "test \"\${$as_ac_var+set}\" = set"; then
12836 echo $ECHO_N "(cached) $ECHO_C" >&6
12838 cat >"conftest.$ac_ext" <<_ACEOF
12839 #line 12839 "configure"
12840 #include "confdefs.h"
12841 #define $ac_func autoconf_temporary
12842 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
12849 /* We use char because int might match the return type of a gcc2
12850 builtin and then its argument prototype would still apply. */
12851 char $ac_func (void);
12857 /* The GNU C library defines stubs for functions which it implements
12858 to always fail with ENOSYS. Some functions are actually named
12859 something starting with __ and the normal name is an alias. */
12860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12861 #error found stub for $ac_func
12864 return $ac_func ();
12869 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12870 if { (eval echo "$as_me:12870: \"$ac_link\"") >&5
12871 (eval $ac_link) 2>&5
12873 echo "$as_me:12873: \$? = $ac_status" >&5
12874 (exit "$ac_status"); } &&
12875 { ac_try='test -s "conftest$ac_exeext"'
12876 { (eval echo "$as_me:12876: \"$ac_try\"") >&5
12877 (eval $ac_try) 2>&5
12879 echo "$as_me:12879: \$? = $ac_status" >&5
12880 (exit "$ac_status"); }; }; then
12881 eval "$as_ac_var=yes"
12883 echo "$as_me: failed program was:" >&5
12884 cat "conftest.$ac_ext" >&5
12885 eval "$as_ac_var=no"
12887 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12889 echo "$as_me:12889: result: `eval echo '${'"$as_ac_var"'}'`" >&5
12890 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
12891 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
12892 cat >>confdefs.h <<EOF
12893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12899 if test "x$ac_cv_func_putwc" != xyes ; then
12901 for ac_header in wchar.h
12903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12904 echo "$as_me:12904: checking for $ac_header" >&5
12905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12907 echo $ECHO_N "(cached) $ECHO_C" >&6
12909 cat >"conftest.$ac_ext" <<_ACEOF
12910 #line 12910 "configure"
12911 #include "confdefs.h"
12912 #include <$ac_header>
12914 if { (eval echo "$as_me:12914: \"$ac_cpp "conftest.$ac_ext"\"") >&5
12915 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
12917 $EGREP -v '^ *\+' conftest.er1 >conftest.err
12919 cat conftest.err >&5
12920 echo "$as_me:12920: \$? = $ac_status" >&5
12921 (exit "$ac_status"); } >/dev/null; then
12922 if test -s conftest.err; then
12923 ac_cpp_err=$ac_c_preproc_warn_flag
12930 if test -z "$ac_cpp_err"; then
12931 eval "$as_ac_Header=yes"
12933 echo "$as_me: failed program was:" >&5
12934 cat "conftest.$ac_ext" >&5
12935 eval "$as_ac_Header=no"
12937 rm -f conftest.err "conftest.$ac_ext"
12939 echo "$as_me:12939: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
12940 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
12941 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
12942 cat >>confdefs.h <<EOF
12943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12949 echo "$as_me:12949: checking for multibyte character support" >&5
12950 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
12951 if test "${cf_cv_utf8_lib+set}" = set; then
12952 echo $ECHO_N "(cached) $ECHO_C" >&6
12955 cf_save_LIBS="$LIBS"
12956 cat >"conftest.$ac_ext" <<_ACEOF
12957 #line 12957 "configure"
12958 #include "confdefs.h"
12960 $ac_includes_default
12961 #ifdef HAVE_WCHAR_H
12973 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12974 if { (eval echo "$as_me:12974: \"$ac_link\"") >&5
12975 (eval $ac_link) 2>&5
12977 echo "$as_me:12977: \$? = $ac_status" >&5
12978 (exit "$ac_status"); } &&
12979 { ac_try='test -s "conftest$ac_exeext"'
12980 { (eval echo "$as_me:12980: \"$ac_try\"") >&5
12981 (eval $ac_try) 2>&5
12983 echo "$as_me:12983: \$? = $ac_status" >&5
12984 (exit "$ac_status"); }; }; then
12987 echo "$as_me: failed program was:" >&5
12988 cat "conftest.$ac_ext" >&5
12990 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
12991 # will be set on completion of the AC_TRY_LINK below.
12992 cf_cv_header_path_utf8=
12993 cf_cv_library_path_utf8=
12995 echo "${as_me:-configure}:12995: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
12997 cf_save_LIBS="$LIBS"
12999 cat >"conftest.$ac_ext" <<_ACEOF
13000 #line 13000 "configure"
13001 #include "confdefs.h"
13003 #include <libutf8.h>
13012 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13013 if { (eval echo "$as_me:13013: \"$ac_link\"") >&5
13014 (eval $ac_link) 2>&5
13016 echo "$as_me:13016: \$? = $ac_status" >&5
13017 (exit "$ac_status"); } &&
13018 { ac_try='test -s "conftest$ac_exeext"'
13019 { (eval echo "$as_me:13019: \"$ac_try\"") >&5
13020 (eval $ac_try) 2>&5
13022 echo "$as_me:13022: \$? = $ac_status" >&5
13023 (exit "$ac_status"); }; }; then
13025 cf_cv_find_linkage_utf8=yes
13026 cf_cv_header_path_utf8=/usr/include
13027 cf_cv_library_path_utf8=/usr/lib
13030 echo "$as_me: failed program was:" >&5
13031 cat "conftest.$ac_ext" >&5
13033 LIBS="-lutf8 $cf_save_LIBS"
13035 cat >"conftest.$ac_ext" <<_ACEOF
13036 #line 13036 "configure"
13037 #include "confdefs.h"
13039 #include <libutf8.h>
13048 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13049 if { (eval echo "$as_me:13049: \"$ac_link\"") >&5
13050 (eval $ac_link) 2>&5
13052 echo "$as_me:13052: \$? = $ac_status" >&5
13053 (exit "$ac_status"); } &&
13054 { ac_try='test -s "conftest$ac_exeext"'
13055 { (eval echo "$as_me:13055: \"$ac_try\"") >&5
13056 (eval $ac_try) 2>&5
13058 echo "$as_me:13058: \$? = $ac_status" >&5
13059 (exit "$ac_status"); }; }; then
13061 cf_cv_find_linkage_utf8=yes
13062 cf_cv_header_path_utf8=/usr/include
13063 cf_cv_library_path_utf8=/usr/lib
13064 cf_cv_library_file_utf8="-lutf8"
13067 echo "$as_me: failed program was:" >&5
13068 cat "conftest.$ac_ext" >&5
13070 cf_cv_find_linkage_utf8=no
13071 LIBS="$cf_save_LIBS"
13073 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
13075 echo "${as_me:-configure}:13075: testing find linkage for utf8 library ..." 1>&5
13077 echo "${as_me:-configure}:13077: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
13079 cf_save_CPPFLAGS="$CPPFLAGS"
13080 cf_test_CPPFLAGS="$CPPFLAGS"
13084 # collect the current set of include-directories from compiler flags
13085 cf_header_path_list=""
13086 if test -n "${CFLAGS}${CPPFLAGS}" ; then
13087 for cf_header_path in $CPPFLAGS $CFLAGS
13089 case "$cf_header_path" in
13091 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
13093 test "x$cf_header_path" != "xNONE" && \
13094 test -d "$cf_header_path" && \
13096 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
13097 test -d "$cf_header_path/include" && cf_search="$cf_search $cf_header_path/include"
13098 test -d "$cf_header_path/include/utf8" && cf_search="$cf_search $cf_header_path/include/utf8"
13099 test -d "$cf_header_path/include/utf8/include" && cf_search="$cf_search $cf_header_path/include/utf8/include"
13100 test -d "$cf_header_path/utf8/include" && cf_search="$cf_search $cf_header_path/utf8/include"
13101 test -d "$cf_header_path/utf8/include/utf8" && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
13104 cf_header_path_list="$cf_header_path_list $cf_search"
13110 # add the variations for the package we are looking for
13114 test "x$prefix" != "xNONE" && \
13115 test -d "$prefix" && \
13117 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
13118 test -d "$prefix/include" && cf_search="$cf_search $prefix/include"
13119 test -d "$prefix/include/utf8" && cf_search="$cf_search $prefix/include/utf8"
13120 test -d "$prefix/include/utf8/include" && cf_search="$cf_search $prefix/include/utf8/include"
13121 test -d "$prefix/utf8/include" && cf_search="$cf_search $prefix/utf8/include"
13122 test -d "$prefix/utf8/include/utf8" && cf_search="$cf_search $prefix/utf8/include/utf8"
13125 for cf_subdir_prefix in \
13134 test "x$cf_subdir_prefix" != "x$prefix" && \
13135 test -d "$cf_subdir_prefix" && \
13136 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
13137 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
13138 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
13139 test -d "$cf_subdir_prefix/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
13140 test -d "$cf_subdir_prefix/include/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
13141 test -d "$cf_subdir_prefix/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
13142 test -d "$cf_subdir_prefix/utf8/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
13147 test "$includedir" != NONE && \
13148 test "$includedir" != "/usr/include" && \
13149 test -d "$includedir" && {
13150 test -d "$includedir" && cf_search="$cf_search $includedir"
13151 test -d "$includedir/utf8" && cf_search="$cf_search $includedir/utf8"
13154 test "$oldincludedir" != NONE && \
13155 test "$oldincludedir" != "/usr/include" && \
13156 test -d "$oldincludedir" && {
13157 test -d "$oldincludedir" && cf_search="$cf_search $oldincludedir"
13158 test -d "$oldincludedir/utf8" && cf_search="$cf_search $oldincludedir/utf8"
13161 cf_search="$cf_search $cf_header_path_list"
13163 for cf_cv_header_path_utf8 in $cf_search
13165 if test -d "$cf_cv_header_path_utf8" ; then
13166 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
13168 echo "${as_me:-configure}:13168: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
13170 CPPFLAGS="$cf_save_CPPFLAGS"
13172 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13173 CPPFLAGS="${CPPFLAGS}-I$cf_cv_header_path_utf8"
13175 cat >"conftest.$ac_ext" <<_ACEOF
13176 #line 13176 "configure"
13177 #include "confdefs.h"
13179 #include <libutf8.h>
13188 rm -f "conftest.$ac_objext"
13189 if { (eval echo "$as_me:13189: \"$ac_compile\"") >&5
13190 (eval $ac_compile) 2>&5
13192 echo "$as_me:13192: \$? = $ac_status" >&5
13193 (exit "$ac_status"); } &&
13194 { ac_try='test -s "conftest.$ac_objext"'
13195 { (eval echo "$as_me:13195: \"$ac_try\"") >&5
13196 (eval $ac_try) 2>&5
13198 echo "$as_me:13198: \$? = $ac_status" >&5
13199 (exit "$ac_status"); }; }; then
13201 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
13203 echo "${as_me:-configure}:13203: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
13205 cf_cv_find_linkage_utf8=maybe
13206 cf_test_CPPFLAGS="$CPPFLAGS"
13209 echo "$as_me: failed program was:" >&5
13210 cat "conftest.$ac_ext" >&5
13212 CPPFLAGS="$cf_save_CPPFLAGS"
13215 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13219 if test "$cf_cv_find_linkage_utf8" = maybe ; then
13221 echo "${as_me:-configure}:13221: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
13223 cf_save_LIBS="$LIBS"
13224 cf_save_LDFLAGS="$LDFLAGS"
13226 if test "$cf_cv_find_linkage_utf8" != yes ; then
13229 cf_library_path_list=""
13230 if test -n "${LDFLAGS}${LIBS}" ; then
13231 for cf_library_path in $LDFLAGS $LIBS
13233 case "$cf_library_path" in
13235 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
13237 test "x$cf_library_path" != "xNONE" && \
13238 test -d "$cf_library_path" && \
13240 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
13241 test -d "$cf_library_path/lib" && cf_search="$cf_search $cf_library_path/lib"
13242 test -d "$cf_library_path/lib/utf8" && cf_search="$cf_search $cf_library_path/lib/utf8"
13243 test -d "$cf_library_path/lib/utf8/lib" && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
13244 test -d "$cf_library_path/utf8/lib" && cf_search="$cf_search $cf_library_path/utf8/lib"
13245 test -d "$cf_library_path/utf8/lib/utf8" && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
13248 cf_library_path_list="$cf_library_path_list $cf_search"
13256 test "x$prefix" != "xNONE" && \
13257 test -d "$prefix" && \
13259 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
13260 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
13261 test -d "$prefix/lib/utf8" && cf_search="$cf_search $prefix/lib/utf8"
13262 test -d "$prefix/lib/utf8/lib" && cf_search="$cf_search $prefix/lib/utf8/lib"
13263 test -d "$prefix/utf8/lib" && cf_search="$cf_search $prefix/utf8/lib"
13264 test -d "$prefix/utf8/lib/utf8" && cf_search="$cf_search $prefix/utf8/lib/utf8"
13267 for cf_subdir_prefix in \
13276 test "x$cf_subdir_prefix" != "x$prefix" && \
13277 test -d "$cf_subdir_prefix" && \
13278 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
13279 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
13280 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
13281 test -d "$cf_subdir_prefix/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
13282 test -d "$cf_subdir_prefix/lib/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
13283 test -d "$cf_subdir_prefix/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
13284 test -d "$cf_subdir_prefix/utf8/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
13289 cf_search="$cf_library_path_list $cf_search"
13291 for cf_cv_library_path_utf8 in $cf_search
13293 if test -d "$cf_cv_library_path_utf8" ; then
13294 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
13296 echo "${as_me:-configure}:13296: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
13298 CPPFLAGS="$cf_test_CPPFLAGS"
13299 LIBS="-lutf8 $cf_save_LIBS"
13300 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
13301 cat >"conftest.$ac_ext" <<_ACEOF
13302 #line 13302 "configure"
13303 #include "confdefs.h"
13305 #include <libutf8.h>
13314 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13315 if { (eval echo "$as_me:13315: \"$ac_link\"") >&5
13316 (eval $ac_link) 2>&5
13318 echo "$as_me:13318: \$? = $ac_status" >&5
13319 (exit "$ac_status"); } &&
13320 { ac_try='test -s "conftest$ac_exeext"'
13321 { (eval echo "$as_me:13321: \"$ac_try\"") >&5
13322 (eval $ac_try) 2>&5
13324 echo "$as_me:13324: \$? = $ac_status" >&5
13325 (exit "$ac_status"); }; }; then
13327 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
13329 echo "${as_me:-configure}:13329: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
13331 cf_cv_find_linkage_utf8=yes
13332 cf_cv_library_file_utf8="-lutf8"
13335 echo "$as_me: failed program was:" >&5
13336 cat "conftest.$ac_ext" >&5
13338 CPPFLAGS="$cf_save_CPPFLAGS"
13339 LIBS="$cf_save_LIBS"
13340 LDFLAGS="$cf_save_LDFLAGS"
13343 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13346 CPPFLAGS="$cf_save_CPPFLAGS"
13347 LDFLAGS="$cf_save_LDFLAGS"
13351 cf_cv_find_linkage_utf8=no
13355 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13358 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13360 LIBS="$cf_save_LIBS"
13362 if test "$cf_cv_find_linkage_utf8" = yes ; then
13363 cf_cv_utf8_lib=add-on
13369 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13371 echo "$as_me:13371: result: $cf_cv_utf8_lib" >&5
13372 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
13374 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
13375 # ncurses/ncursesw:
13376 if test "$cf_cv_utf8_lib" = "add-on" ; then
13378 cat >>confdefs.h <<\EOF
13379 #define HAVE_LIBUTF8_H 1
13382 if test -n "$cf_cv_header_path_utf8" ; then
13383 for cf_add_incdir in $cf_cv_header_path_utf8
13385 while test "$cf_add_incdir" != /usr/include
13387 if test -d "$cf_add_incdir"
13390 if test -n "$CFLAGS$CPPFLAGS" ; then
13391 # a loop is needed to ensure we can add subdirs of existing dirs
13392 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
13393 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
13394 cf_have_incdir=yes; break
13399 if test "$cf_have_incdir" = no ; then
13400 if test "$cf_add_incdir" = /usr/local/include ; then
13401 if test "$GCC" = yes
13403 cf_save_CPPFLAGS=$CPPFLAGS
13405 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13406 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
13408 cat >"conftest.$ac_ext" <<_ACEOF
13409 #line 13409 "configure"
13410 #include "confdefs.h"
13420 rm -f "conftest.$ac_objext"
13421 if { (eval echo "$as_me:13421: \"$ac_compile\"") >&5
13422 (eval $ac_compile) 2>&5
13424 echo "$as_me:13424: \$? = $ac_status" >&5
13425 (exit "$ac_status"); } &&
13426 { ac_try='test -s "conftest.$ac_objext"'
13427 { (eval echo "$as_me:13427: \"$ac_try\"") >&5
13428 (eval $ac_try) 2>&5
13430 echo "$as_me:13430: \$? = $ac_status" >&5
13431 (exit "$ac_status"); }; }; then
13434 echo "$as_me: failed program was:" >&5
13435 cat "conftest.$ac_ext" >&5
13438 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13439 CPPFLAGS=$cf_save_CPPFLAGS
13444 if test "$cf_have_incdir" = no ; then
13445 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
13447 echo "${as_me:-configure}:13447: testing adding $cf_add_incdir to include-path ..." 1>&5
13449 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
13451 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
13452 test "$cf_top_incdir" = "$cf_add_incdir" && break
13453 cf_add_incdir="$cf_top_incdir"
13464 if test -n "$cf_cv_library_path_utf8" ; then
13465 for cf_add_libdir in $cf_cv_library_path_utf8
13467 if test "$cf_add_libdir" = /usr/lib ; then
13469 elif test -d "$cf_add_libdir"
13472 if test -n "$LDFLAGS$LIBS" ; then
13473 # a loop is needed to ensure we can add subdirs of existing dirs
13474 for cf_test_libdir in $LDFLAGS $LIBS ; do
13475 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
13476 cf_have_libdir=yes; break
13480 if test "$cf_have_libdir" = no ; then
13481 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
13483 echo "${as_me:-configure}:13483: testing adding $cf_add_libdir to library-path ..." 1>&5
13485 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
13491 cf_add_libs="$LIBS"
13494 for cf_add_1lib in $cf_cv_library_file_utf8; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13495 # filter duplicates
13496 for cf_add_1lib in $cf_add_0lib; do
13497 for cf_add_2lib in $cf_add_libs; do
13498 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13503 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13505 LIBS="$cf_add_libs"
13509 if test "$cf_cv_utf8_lib" != no ; then
13514 # This is needed on Tru64 5.0 to declare mbstate_t
13515 echo "$as_me:13515: checking if we must include wchar.h to declare mbstate_t" >&5
13516 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
13517 if test "${cf_cv_mbstate_t+set}" = set; then
13518 echo $ECHO_N "(cached) $ECHO_C" >&6
13521 cat >"conftest.$ac_ext" <<_ACEOF
13522 #line 13522 "configure"
13523 #include "confdefs.h"
13525 #include <stdlib.h>
13526 #include <stdarg.h>
13528 #ifdef HAVE_LIBUTF8_H
13529 #include <libutf8.h>
13539 rm -f "conftest.$ac_objext"
13540 if { (eval echo "$as_me:13540: \"$ac_compile\"") >&5
13541 (eval $ac_compile) 2>&5
13543 echo "$as_me:13543: \$? = $ac_status" >&5
13544 (exit "$ac_status"); } &&
13545 { ac_try='test -s "conftest.$ac_objext"'
13546 { (eval echo "$as_me:13546: \"$ac_try\"") >&5
13547 (eval $ac_try) 2>&5
13549 echo "$as_me:13549: \$? = $ac_status" >&5
13550 (exit "$ac_status"); }; }; then
13553 echo "$as_me: failed program was:" >&5
13554 cat "conftest.$ac_ext" >&5
13555 cat >"conftest.$ac_ext" <<_ACEOF
13556 #line 13556 "configure"
13557 #include "confdefs.h"
13559 #include <stdlib.h>
13560 #include <stdarg.h>
13563 #ifdef HAVE_LIBUTF8_H
13564 #include <libutf8.h>
13574 rm -f "conftest.$ac_objext"
13575 if { (eval echo "$as_me:13575: \"$ac_compile\"") >&5
13576 (eval $ac_compile) 2>&5
13578 echo "$as_me:13578: \$? = $ac_status" >&5
13579 (exit "$ac_status"); } &&
13580 { ac_try='test -s "conftest.$ac_objext"'
13581 { (eval echo "$as_me:13581: \"$ac_try\"") >&5
13582 (eval $ac_try) 2>&5
13584 echo "$as_me:13584: \$? = $ac_status" >&5
13585 (exit "$ac_status"); }; }; then
13586 cf_cv_mbstate_t=yes
13588 echo "$as_me: failed program was:" >&5
13589 cat "conftest.$ac_ext" >&5
13590 cf_cv_mbstate_t=unknown
13592 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13594 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13596 echo "$as_me:13596: result: $cf_cv_mbstate_t" >&5
13597 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
13599 if test "$cf_cv_mbstate_t" = yes ; then
13601 cat >>confdefs.h <<\EOF
13602 #define NEED_WCHAR_H 1
13608 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
13609 if test "$cf_cv_mbstate_t" = unknown ; then
13610 NCURSES_MBSTATE_T=1
13613 # This is needed on Tru64 5.0 to declare wchar_t
13614 echo "$as_me:13614: checking if we must include wchar.h to declare wchar_t" >&5
13615 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
13616 if test "${cf_cv_wchar_t+set}" = set; then
13617 echo $ECHO_N "(cached) $ECHO_C" >&6
13620 cat >"conftest.$ac_ext" <<_ACEOF
13621 #line 13621 "configure"
13622 #include "confdefs.h"
13624 #include <stdlib.h>
13625 #include <stdarg.h>
13627 #ifdef HAVE_LIBUTF8_H
13628 #include <libutf8.h>
13638 rm -f "conftest.$ac_objext"
13639 if { (eval echo "$as_me:13639: \"$ac_compile\"") >&5
13640 (eval $ac_compile) 2>&5
13642 echo "$as_me:13642: \$? = $ac_status" >&5
13643 (exit "$ac_status"); } &&
13644 { ac_try='test -s "conftest.$ac_objext"'
13645 { (eval echo "$as_me:13645: \"$ac_try\"") >&5
13646 (eval $ac_try) 2>&5
13648 echo "$as_me:13648: \$? = $ac_status" >&5
13649 (exit "$ac_status"); }; }; then
13652 echo "$as_me: failed program was:" >&5
13653 cat "conftest.$ac_ext" >&5
13654 cat >"conftest.$ac_ext" <<_ACEOF
13655 #line 13655 "configure"
13656 #include "confdefs.h"
13658 #include <stdlib.h>
13659 #include <stdarg.h>
13662 #ifdef HAVE_LIBUTF8_H
13663 #include <libutf8.h>
13673 rm -f "conftest.$ac_objext"
13674 if { (eval echo "$as_me:13674: \"$ac_compile\"") >&5
13675 (eval $ac_compile) 2>&5
13677 echo "$as_me:13677: \$? = $ac_status" >&5
13678 (exit "$ac_status"); } &&
13679 { ac_try='test -s "conftest.$ac_objext"'
13680 { (eval echo "$as_me:13680: \"$ac_try\"") >&5
13681 (eval $ac_try) 2>&5
13683 echo "$as_me:13683: \$? = $ac_status" >&5
13684 (exit "$ac_status"); }; }; then
13687 echo "$as_me: failed program was:" >&5
13688 cat "conftest.$ac_ext" >&5
13689 cf_cv_wchar_t=unknown
13691 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13693 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13695 echo "$as_me:13695: result: $cf_cv_wchar_t" >&5
13696 echo "${ECHO_T}$cf_cv_wchar_t" >&6
13698 if test "$cf_cv_wchar_t" = yes ; then
13700 cat >>confdefs.h <<\EOF
13701 #define NEED_WCHAR_H 1
13707 # if we do not find wchar_t in either place, use substitution to provide a fallback.
13708 if test "$cf_cv_wchar_t" = unknown ; then
13712 # if we find wchar_t in either place, use substitution to provide a fallback.
13713 if test "$cf_cv_wchar_t" != unknown ; then
13714 NCURSES_OK_WCHAR_T=1
13717 # This is needed on Tru64 5.0 to declare wint_t
13718 echo "$as_me:13718: checking if we must include wchar.h to declare wint_t" >&5
13719 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
13720 if test "${cf_cv_wint_t+set}" = set; then
13721 echo $ECHO_N "(cached) $ECHO_C" >&6
13724 cat >"conftest.$ac_ext" <<_ACEOF
13725 #line 13725 "configure"
13726 #include "confdefs.h"
13728 #include <stdlib.h>
13729 #include <stdarg.h>
13731 #ifdef HAVE_LIBUTF8_H
13732 #include <libutf8.h>
13742 rm -f "conftest.$ac_objext"
13743 if { (eval echo "$as_me:13743: \"$ac_compile\"") >&5
13744 (eval $ac_compile) 2>&5
13746 echo "$as_me:13746: \$? = $ac_status" >&5
13747 (exit "$ac_status"); } &&
13748 { ac_try='test -s "conftest.$ac_objext"'
13749 { (eval echo "$as_me:13749: \"$ac_try\"") >&5
13750 (eval $ac_try) 2>&5
13752 echo "$as_me:13752: \$? = $ac_status" >&5
13753 (exit "$ac_status"); }; }; then
13756 echo "$as_me: failed program was:" >&5
13757 cat "conftest.$ac_ext" >&5
13758 cat >"conftest.$ac_ext" <<_ACEOF
13759 #line 13759 "configure"
13760 #include "confdefs.h"
13762 #include <stdlib.h>
13763 #include <stdarg.h>
13766 #ifdef HAVE_LIBUTF8_H
13767 #include <libutf8.h>
13777 rm -f "conftest.$ac_objext"
13778 if { (eval echo "$as_me:13778: \"$ac_compile\"") >&5
13779 (eval $ac_compile) 2>&5
13781 echo "$as_me:13781: \$? = $ac_status" >&5
13782 (exit "$ac_status"); } &&
13783 { ac_try='test -s "conftest.$ac_objext"'
13784 { (eval echo "$as_me:13784: \"$ac_try\"") >&5
13785 (eval $ac_try) 2>&5
13787 echo "$as_me:13787: \$? = $ac_status" >&5
13788 (exit "$ac_status"); }; }; then
13791 echo "$as_me: failed program was:" >&5
13792 cat "conftest.$ac_ext" >&5
13793 cf_cv_wint_t=unknown
13795 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13797 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13799 echo "$as_me:13799: result: $cf_cv_wint_t" >&5
13800 echo "${ECHO_T}$cf_cv_wint_t" >&6
13802 if test "$cf_cv_wint_t" = yes ; then
13804 cat >>confdefs.h <<\EOF
13805 #define NEED_WCHAR_H 1
13811 # if we do not find wint_t in either place, use substitution to provide a fallback.
13812 if test "$cf_cv_wint_t" = unknown ; then
13816 # if we find wint_t in either place, use substitution to provide a fallback.
13817 if test "$cf_cv_wint_t" != unknown ; then
13818 NCURSES_OK_WINT_T=1
13821 if test "$NCURSES_MBSTATE_T" != 0; then
13823 cat >>confdefs.h <<\EOF
13824 #define NEED_MBSTATE_T_DEF 1
13830 ### use option --disable-lp64 to allow long chtype
13831 echo "$as_me:13831: checking whether to enable _LP64 definition in curses.h" >&5
13832 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
13834 # Check whether --enable-lp64 or --disable-lp64 was given.
13835 if test "${enable_lp64+set}" = set; then
13836 enableval="$enable_lp64"
13837 with_lp64=$enableval
13839 with_lp64=$cf_dft_with_lp64
13841 echo "$as_me:13841: result: $with_lp64" >&5
13842 echo "${ECHO_T}$with_lp64" >&6
13844 if test "x$with_lp64" = xyes ; then
13845 cf_cv_enable_lp64=1
13847 cf_cv_enable_lp64=0
13850 # Check whether --enable-largefile or --disable-largefile was given.
13851 if test "${enable_largefile+set}" = set; then
13852 enableval="$enable_largefile"
13855 if test "$enable_largefile" != no; then
13857 echo "$as_me:13857: checking for special C compiler options needed for large files" >&5
13858 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
13859 if test "${ac_cv_sys_largefile_CC+set}" = set; then
13860 echo $ECHO_N "(cached) $ECHO_C" >&6
13862 ac_cv_sys_largefile_CC=no
13863 if test "$GCC" != yes; then
13866 # IRIX 6.2 and later do not support large files by default,
13867 # so use the C compiler's -n32 option if that helps.
13868 cat >"conftest.$ac_ext" <<_ACEOF
13869 #line 13869 "configure"
13870 #include "confdefs.h"
13871 #include <sys/types.h>
13872 /* Check that off_t can represent 2**63 - 1 correctly.
13873 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13874 since some C++ compilers masquerading as C compilers
13875 incorrectly reject 9223372036854775807. */
13876 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13877 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13878 && LARGE_OFF_T % 2147483647 == 1)
13888 rm -f "conftest.$ac_objext"
13889 if { (eval echo "$as_me:13889: \"$ac_compile\"") >&5
13890 (eval $ac_compile) 2>&5
13892 echo "$as_me:13892: \$? = $ac_status" >&5
13893 (exit "$ac_status"); } &&
13894 { ac_try='test -s "conftest.$ac_objext"'
13895 { (eval echo "$as_me:13895: \"$ac_try\"") >&5
13896 (eval $ac_try) 2>&5
13898 echo "$as_me:13898: \$? = $ac_status" >&5
13899 (exit "$ac_status"); }; }; then
13902 echo "$as_me: failed program was:" >&5
13903 cat "conftest.$ac_ext" >&5
13905 rm -f "conftest.$ac_objext"
13907 rm -f "conftest.$ac_objext"
13908 if { (eval echo "$as_me:13908: \"$ac_compile\"") >&5
13909 (eval $ac_compile) 2>&5
13911 echo "$as_me:13911: \$? = $ac_status" >&5
13912 (exit "$ac_status"); } &&
13913 { ac_try='test -s "conftest.$ac_objext"'
13914 { (eval echo "$as_me:13914: \"$ac_try\"") >&5
13915 (eval $ac_try) 2>&5
13917 echo "$as_me:13917: \$? = $ac_status" >&5
13918 (exit "$ac_status"); }; }; then
13919 ac_cv_sys_largefile_CC=' -n32'; break
13921 echo "$as_me: failed program was:" >&5
13922 cat "conftest.$ac_ext" >&5
13924 rm -f "conftest.$ac_objext"
13928 rm -f "conftest.$ac_ext"
13931 echo "$as_me:13931: result: $ac_cv_sys_largefile_CC" >&5
13932 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
13933 if test "$ac_cv_sys_largefile_CC" != no; then
13934 CC=$CC$ac_cv_sys_largefile_CC
13937 echo "$as_me:13937: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13938 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
13939 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
13940 echo $ECHO_N "(cached) $ECHO_C" >&6
13943 ac_cv_sys_file_offset_bits=no
13944 cat >"conftest.$ac_ext" <<_ACEOF
13945 #line 13945 "configure"
13946 #include "confdefs.h"
13947 #include <sys/types.h>
13948 /* Check that off_t can represent 2**63 - 1 correctly.
13949 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13950 since some C++ compilers masquerading as C compilers
13951 incorrectly reject 9223372036854775807. */
13952 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13953 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13954 && LARGE_OFF_T % 2147483647 == 1)
13964 rm -f "conftest.$ac_objext"
13965 if { (eval echo "$as_me:13965: \"$ac_compile\"") >&5
13966 (eval $ac_compile) 2>&5
13968 echo "$as_me:13968: \$? = $ac_status" >&5
13969 (exit "$ac_status"); } &&
13970 { ac_try='test -s "conftest.$ac_objext"'
13971 { (eval echo "$as_me:13971: \"$ac_try\"") >&5
13972 (eval $ac_try) 2>&5
13974 echo "$as_me:13974: \$? = $ac_status" >&5
13975 (exit "$ac_status"); }; }; then
13978 echo "$as_me: failed program was:" >&5
13979 cat "conftest.$ac_ext" >&5
13981 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13982 cat >"conftest.$ac_ext" <<_ACEOF
13983 #line 13983 "configure"
13984 #include "confdefs.h"
13985 #define _FILE_OFFSET_BITS 64
13986 #include <sys/types.h>
13987 /* Check that off_t can represent 2**63 - 1 correctly.
13988 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13989 since some C++ compilers masquerading as C compilers
13990 incorrectly reject 9223372036854775807. */
13991 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13992 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13993 && LARGE_OFF_T % 2147483647 == 1)
14003 rm -f "conftest.$ac_objext"
14004 if { (eval echo "$as_me:14004: \"$ac_compile\"") >&5
14005 (eval $ac_compile) 2>&5
14007 echo "$as_me:14007: \$? = $ac_status" >&5
14008 (exit "$ac_status"); } &&
14009 { ac_try='test -s "conftest.$ac_objext"'
14010 { (eval echo "$as_me:14010: \"$ac_try\"") >&5
14011 (eval $ac_try) 2>&5
14013 echo "$as_me:14013: \$? = $ac_status" >&5
14014 (exit "$ac_status"); }; }; then
14015 ac_cv_sys_file_offset_bits=64; break
14017 echo "$as_me: failed program was:" >&5
14018 cat "conftest.$ac_ext" >&5
14020 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14024 echo "$as_me:14024: result: $ac_cv_sys_file_offset_bits" >&5
14025 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
14026 if test "$ac_cv_sys_file_offset_bits" != no; then
14028 cat >>confdefs.h <<EOF
14029 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14034 echo "$as_me:14034: checking for _LARGE_FILES value needed for large files" >&5
14035 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
14036 if test "${ac_cv_sys_large_files+set}" = set; then
14037 echo $ECHO_N "(cached) $ECHO_C" >&6
14040 ac_cv_sys_large_files=no
14041 cat >"conftest.$ac_ext" <<_ACEOF
14042 #line 14042 "configure"
14043 #include "confdefs.h"
14044 #include <sys/types.h>
14045 /* Check that off_t can represent 2**63 - 1 correctly.
14046 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14047 since some C++ compilers masquerading as C compilers
14048 incorrectly reject 9223372036854775807. */
14049 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14050 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14051 && LARGE_OFF_T % 2147483647 == 1)
14061 rm -f "conftest.$ac_objext"
14062 if { (eval echo "$as_me:14062: \"$ac_compile\"") >&5
14063 (eval $ac_compile) 2>&5
14065 echo "$as_me:14065: \$? = $ac_status" >&5
14066 (exit "$ac_status"); } &&
14067 { ac_try='test -s "conftest.$ac_objext"'
14068 { (eval echo "$as_me:14068: \"$ac_try\"") >&5
14069 (eval $ac_try) 2>&5
14071 echo "$as_me:14071: \$? = $ac_status" >&5
14072 (exit "$ac_status"); }; }; then
14075 echo "$as_me: failed program was:" >&5
14076 cat "conftest.$ac_ext" >&5
14078 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14079 cat >"conftest.$ac_ext" <<_ACEOF
14080 #line 14080 "configure"
14081 #include "confdefs.h"
14082 #define _LARGE_FILES 1
14083 #include <sys/types.h>
14084 /* Check that off_t can represent 2**63 - 1 correctly.
14085 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14086 since some C++ compilers masquerading as C compilers
14087 incorrectly reject 9223372036854775807. */
14088 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
14089 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14090 && LARGE_OFF_T % 2147483647 == 1)
14100 rm -f "conftest.$ac_objext"
14101 if { (eval echo "$as_me:14101: \"$ac_compile\"") >&5
14102 (eval $ac_compile) 2>&5
14104 echo "$as_me:14104: \$? = $ac_status" >&5
14105 (exit "$ac_status"); } &&
14106 { ac_try='test -s "conftest.$ac_objext"'
14107 { (eval echo "$as_me:14107: \"$ac_try\"") >&5
14108 (eval $ac_try) 2>&5
14110 echo "$as_me:14110: \$? = $ac_status" >&5
14111 (exit "$ac_status"); }; }; then
14112 ac_cv_sys_large_files=1; break
14114 echo "$as_me: failed program was:" >&5
14115 cat "conftest.$ac_ext" >&5
14117 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14121 echo "$as_me:14121: result: $ac_cv_sys_large_files" >&5
14122 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
14123 if test "$ac_cv_sys_large_files" != no; then
14125 cat >>confdefs.h <<EOF
14126 #define _LARGE_FILES $ac_cv_sys_large_files
14133 if test "$enable_largefile" != no ; then
14134 echo "$as_me:14134: checking for _LARGEFILE_SOURCE value needed for large files" >&5
14135 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
14136 if test "${ac_cv_sys_largefile_source+set}" = set; then
14137 echo $ECHO_N "(cached) $ECHO_C" >&6
14140 ac_cv_sys_largefile_source=no
14141 cat >"conftest.$ac_ext" <<_ACEOF
14142 #line 14142 "configure"
14143 #include "confdefs.h"
14153 rm -f "conftest.$ac_objext"
14154 if { (eval echo "$as_me:14154: \"$ac_compile\"") >&5
14155 (eval $ac_compile) 2>&5
14157 echo "$as_me:14157: \$? = $ac_status" >&5
14158 (exit "$ac_status"); } &&
14159 { ac_try='test -s "conftest.$ac_objext"'
14160 { (eval echo "$as_me:14160: \"$ac_try\"") >&5
14161 (eval $ac_try) 2>&5
14163 echo "$as_me:14163: \$? = $ac_status" >&5
14164 (exit "$ac_status"); }; }; then
14167 echo "$as_me: failed program was:" >&5
14168 cat "conftest.$ac_ext" >&5
14170 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14171 cat >"conftest.$ac_ext" <<_ACEOF
14172 #line 14172 "configure"
14173 #include "confdefs.h"
14174 #define _LARGEFILE_SOURCE 1
14184 rm -f "conftest.$ac_objext"
14185 if { (eval echo "$as_me:14185: \"$ac_compile\"") >&5
14186 (eval $ac_compile) 2>&5
14188 echo "$as_me:14188: \$? = $ac_status" >&5
14189 (exit "$ac_status"); } &&
14190 { ac_try='test -s "conftest.$ac_objext"'
14191 { (eval echo "$as_me:14191: \"$ac_try\"") >&5
14192 (eval $ac_try) 2>&5
14194 echo "$as_me:14194: \$? = $ac_status" >&5
14195 (exit "$ac_status"); }; }; then
14196 ac_cv_sys_largefile_source=1; break
14198 echo "$as_me: failed program was:" >&5
14199 cat "conftest.$ac_ext" >&5
14201 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14205 echo "$as_me:14205: result: $ac_cv_sys_largefile_source" >&5
14206 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
14207 if test "$ac_cv_sys_largefile_source" != no; then
14209 cat >>confdefs.h <<EOF
14210 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
14216 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
14217 # in glibc 2.1.3, but that breaks too many other things.
14218 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
14219 echo "$as_me:14219: checking for fseeko" >&5
14220 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
14221 if test "${ac_cv_func_fseeko+set}" = set; then
14222 echo $ECHO_N "(cached) $ECHO_C" >&6
14224 cat >"conftest.$ac_ext" <<_ACEOF
14225 #line 14225 "configure"
14226 #include "confdefs.h"
14231 return fseeko && fseeko (stdin, 0, 0);
14236 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
14237 if { (eval echo "$as_me:14237: \"$ac_link\"") >&5
14238 (eval $ac_link) 2>&5
14240 echo "$as_me:14240: \$? = $ac_status" >&5
14241 (exit "$ac_status"); } &&
14242 { ac_try='test -s "conftest$ac_exeext"'
14243 { (eval echo "$as_me:14243: \"$ac_try\"") >&5
14244 (eval $ac_try) 2>&5
14246 echo "$as_me:14246: \$? = $ac_status" >&5
14247 (exit "$ac_status"); }; }; then
14248 ac_cv_func_fseeko=yes
14250 echo "$as_me: failed program was:" >&5
14251 cat "conftest.$ac_ext" >&5
14252 ac_cv_func_fseeko=no
14254 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
14256 echo "$as_me:14256: result: $ac_cv_func_fseeko" >&5
14257 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
14258 if test $ac_cv_func_fseeko = yes; then
14260 cat >>confdefs.h <<\EOF
14261 #define HAVE_FSEEKO 1
14266 # Normally we would collect these definitions in the config.h,
14267 # but (like _XOPEN_SOURCE), some environments rely on having these
14268 # defined before any of the system headers are included. Another
14269 # case comes up with C++, e.g., on AIX the compiler compiles the
14270 # header files by themselves before looking at the body files it is
14271 # told to compile. For ncurses, those header files do not include
14273 if test "$ac_cv_sys_large_files" != no
14276 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14277 CPPFLAGS="${CPPFLAGS}-D_LARGE_FILES"
14280 if test "$ac_cv_sys_largefile_source" != no
14283 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14284 CPPFLAGS="${CPPFLAGS}-D_LARGEFILE_SOURCE"
14287 if test "$ac_cv_sys_file_offset_bits" != no
14290 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14291 CPPFLAGS="${CPPFLAGS}-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
14295 echo "$as_me:14295: checking whether to use struct dirent64" >&5
14296 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
14297 if test "${cf_cv_struct_dirent64+set}" = set; then
14298 echo $ECHO_N "(cached) $ECHO_C" >&6
14301 cat >"conftest.$ac_ext" <<_ACEOF
14302 #line 14302 "configure"
14303 #include "confdefs.h"
14305 #pragma GCC diagnostic error "-Wincompatible-pointer-types"
14306 #include <sys/types.h>
14307 #include <dirent.h>
14313 /* if transitional largefile support is setup, this is true */
14314 extern struct dirent64 * readdir(DIR *);
14315 struct dirent64 *x = readdir((DIR *)0);
14316 struct dirent *y = readdir((DIR *)0);
14324 rm -f "conftest.$ac_objext"
14325 if { (eval echo "$as_me:14325: \"$ac_compile\"") >&5
14326 (eval $ac_compile) 2>&5
14328 echo "$as_me:14328: \$? = $ac_status" >&5
14329 (exit "$ac_status"); } &&
14330 { ac_try='test -s "conftest.$ac_objext"'
14331 { (eval echo "$as_me:14331: \"$ac_try\"") >&5
14332 (eval $ac_try) 2>&5
14334 echo "$as_me:14334: \$? = $ac_status" >&5
14335 (exit "$ac_status"); }; }; then
14336 cf_cv_struct_dirent64=yes
14338 echo "$as_me: failed program was:" >&5
14339 cat "conftest.$ac_ext" >&5
14340 cf_cv_struct_dirent64=no
14342 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14345 echo "$as_me:14345: result: $cf_cv_struct_dirent64" >&5
14346 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
14347 test "$cf_cv_struct_dirent64" = yes &&
14348 cat >>confdefs.h <<\EOF
14349 #define HAVE_STRUCT_DIRENT64 1
14354 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
14355 echo "$as_me:14355: checking if you want tparm not to use X/Open fixed-parameter list" >&5
14356 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
14358 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
14359 if test "${enable_tparm_varargs+set}" = set; then
14360 enableval="$enable_tparm_varargs"
14361 with_tparm_varargs=$enableval
14363 with_tparm_varargs=yes
14365 echo "$as_me:14365: result: $with_tparm_varargs" >&5
14366 echo "${ECHO_T}$with_tparm_varargs" >&6
14367 NCURSES_TPARM_VARARGS=0
14368 test "x$with_tparm_varargs" = xyes && NCURSES_TPARM_VARARGS=1
14370 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
14371 if test "$with_ticlib" != no ; then
14372 echo "$as_me:14372: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
14373 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
14375 # Check whether --enable-tic-depends or --disable-tic-depends was given.
14376 if test "${enable_tic_depends+set}" = set; then
14377 enableval="$enable_tic_depends"
14378 with_tic_depends=$enableval
14380 with_tic_depends=yes
14382 echo "$as_me:14382: result: $with_tic_depends" >&5
14383 echo "${ECHO_T}$with_tic_depends" >&6
14385 with_tic_depends=no
14388 ### use option --enable-wattr-macros to enable wattr* macros in curses.h
14389 echo "$as_me:14389: checking if you want to enable wattr* macros" >&5
14390 echo $ECHO_N "checking if you want to enable wattr* macros... $ECHO_C" >&6
14392 # Check whether --enable-wattr-macros or --disable-wattr-macros was given.
14393 if test "${enable_wattr_macros+set}" = set; then
14394 enableval="$enable_wattr_macros"
14395 with_wattr_macros=$enableval
14397 with_wattr_macros=no
14399 if [ "x$with_wattr_macros" != xyes ]; then
14400 NCURSES_WATTR_MACROS=0
14401 echo "$as_me:14401: result: no" >&5
14402 echo "${ECHO_T}no" >&6
14404 NCURSES_WATTR_MACROS=1
14405 echo "$as_me:14405: result: yes" >&5
14406 echo "${ECHO_T}yes" >&6
14409 echo "$as_me:14409: checking for X11 rgb file" >&5
14410 echo $ECHO_N "checking for X11 rgb file... $ECHO_C" >&6
14412 # Check whether --with-x11-rgb or --without-x11-rgb was given.
14413 if test "${with_x11_rgb+set}" = set; then
14414 withval="$with_x11_rgb"
14420 if test "x$RGB_PATH" = xauto
14422 RGB_PATH='${exec_prefix}/lib/X11/rgb.txt'
14424 /opt/local/share/X11/rgb.txt \
14425 /opt/X11/share/X11/rgb.txt \
14426 /usr/share/X11/rgb.txt \
14427 /usr/X11/share/X11/rgb.txt \
14428 /usr/X11/lib/X11/rgb.txt \
14429 /usr/lib/X11/rgb.txt \
14431 /usr/pkg/lib/X11/rgb.txt \
14432 /usr/X11R7/lib/X11/rgb.txt \
14433 /usr/X11R6/lib/X11/rgb.txt \
14434 /usr/X11R5/lib/X11/rgb.txt \
14435 /usr/X11R4/lib/X11/rgb.txt \
14436 /usr/local/lib/X11/rgb.txt \
14437 /usr/local/share/X11/rgb.txt \
14438 /usr/lib64/X11/rgb.txt
14440 if test -f "$cf_path" ; then
14441 RGB_PATH="$cf_path"
14448 if test "x$prefix" != xNONE; then
14449 cf_path_syntax="$prefix"
14451 cf_path_syntax="$ac_default_prefix"
14454 case ".$cf_path" in
14455 (.\$\(*\)*|.\'*\'*)
14459 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
14461 (.\$\{*prefix\}*|.\$\{*dir\}*)
14462 eval cf_path="$cf_path"
14463 case ".$cf_path" in
14465 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
14470 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
14473 { { echo "$as_me:14473: error: expected a pathname, not \"$cf_path\"" >&5
14474 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
14475 { (exit 1); exit 1; }; }
14481 echo "$as_me:14481: result: $RGB_PATH" >&5
14482 echo "${ECHO_T}$RGB_PATH" >&6
14484 cat >>confdefs.h <<EOF
14485 #define RGB_PATH "$cf_path"
14489 if test "$RGB_PATH" = no
14494 ### use option --with-bool to override bool's type
14495 echo "$as_me:14495: checking for type of bool" >&5
14496 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
14498 # Check whether --with-bool or --without-bool was given.
14499 if test "${with_bool+set}" = set; then
14500 withval="$with_bool"
14501 NCURSES_BOOL="$withval"
14505 echo "$as_me:14505: result: $NCURSES_BOOL" >&5
14506 echo "${ECHO_T}$NCURSES_BOOL" >&6
14508 echo "$as_me:14508: checking for alternate terminal capabilities file" >&5
14509 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
14511 # Check whether --with-caps or --without-caps was given.
14512 if test "${with_caps+set}" = set; then
14513 withval="$with_caps"
14514 TERMINFO_CAPS=Caps.$withval
14518 if test ! -f "${srcdir}/include/${TERMINFO_CAPS}"
14520 { echo "$as_me:14520: WARNING: file not found: \"${srcdir}/include/${TERMINFO_CAPS}\"" >&5
14521 echo "$as_me: WARNING: file not found: \"${srcdir}/include/${TERMINFO_CAPS}\"" >&2;}
14524 echo "$as_me:14524: result: $TERMINFO_CAPS" >&5
14525 echo "${ECHO_T}$TERMINFO_CAPS" >&6
14527 ### use option --with-chtype to override chtype's type
14528 echo "$as_me:14528: checking for type of chtype" >&5
14529 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
14531 # Check whether --with-chtype or --without-chtype was given.
14532 if test "${with_chtype+set}" = set; then
14533 withval="$with_chtype"
14534 NCURSES_CHTYPE="$withval"
14536 NCURSES_CHTYPE=$cf_dft_chtype
14538 echo "$as_me:14538: result: $NCURSES_CHTYPE" >&5
14539 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
14541 ### use option --with-ospeed to override ospeed's type
14542 echo "$as_me:14542: checking for type of ospeed" >&5
14543 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
14545 # Check whether --with-ospeed or --without-ospeed was given.
14546 if test "${with_ospeed+set}" = set; then
14547 withval="$with_ospeed"
14548 NCURSES_OSPEED="$withval"
14550 NCURSES_OSPEED=short
14552 echo "$as_me:14552: result: $NCURSES_OSPEED" >&5
14553 echo "${ECHO_T}$NCURSES_OSPEED" >&6
14555 ### use option --with-mmask-t to override mmask_t's type
14556 echo "$as_me:14556: checking for type of mmask_t" >&5
14557 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
14559 # Check whether --with-mmask-t or --without-mmask-t was given.
14560 if test "${with_mmask_t+set}" = set; then
14561 withval="$with_mmask_t"
14562 NCURSES_MMASK_T="$withval"
14564 NCURSES_MMASK_T=$cf_dft_mmask_t
14566 echo "$as_me:14566: result: $NCURSES_MMASK_T" >&5
14567 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
14569 ### use option --with-ccharw-max to override CCHARW_MAX size
14570 echo "$as_me:14570: checking for size CCHARW_MAX" >&5
14571 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
14573 # Check whether --with-ccharw-max or --without-ccharw-max was given.
14574 if test "${with_ccharw_max+set}" = set; then
14575 withval="$with_ccharw_max"
14576 NCURSES_CCHARW_MAX="$withval"
14578 NCURSES_CCHARW_MAX=$cf_dft_ccharw_max
14580 echo "$as_me:14580: result: $NCURSES_CCHARW_MAX" >&5
14581 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
14583 echo "$as_me:14583: checking for signed char" >&5
14584 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
14585 if test "${ac_cv_type_signed_char+set}" = set; then
14586 echo $ECHO_N "(cached) $ECHO_C" >&6
14588 cat >"conftest.$ac_ext" <<_ACEOF
14589 #line 14589 "configure"
14590 #include "confdefs.h"
14591 $ac_includes_default
14595 if ((signed char *) 0)
14597 if (sizeof (signed char))
14603 rm -f "conftest.$ac_objext"
14604 if { (eval echo "$as_me:14604: \"$ac_compile\"") >&5
14605 (eval $ac_compile) 2>&5
14607 echo "$as_me:14607: \$? = $ac_status" >&5
14608 (exit "$ac_status"); } &&
14609 { ac_try='test -s "conftest.$ac_objext"'
14610 { (eval echo "$as_me:14610: \"$ac_try\"") >&5
14611 (eval $ac_try) 2>&5
14613 echo "$as_me:14613: \$? = $ac_status" >&5
14614 (exit "$ac_status"); }; }; then
14615 ac_cv_type_signed_char=yes
14617 echo "$as_me: failed program was:" >&5
14618 cat "conftest.$ac_ext" >&5
14619 ac_cv_type_signed_char=no
14621 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14623 echo "$as_me:14623: result: $ac_cv_type_signed_char" >&5
14624 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
14626 echo "$as_me:14626: checking size of signed char" >&5
14627 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
14628 if test "${ac_cv_sizeof_signed_char+set}" = set; then
14629 echo $ECHO_N "(cached) $ECHO_C" >&6
14631 if test "$ac_cv_type_signed_char" = yes; then
14632 if test "$cross_compiling" = yes; then
14633 # Depending upon the size, compute the lo and hi bounds.
14634 cat >"conftest.$ac_ext" <<_ACEOF
14635 #line 14635 "configure"
14636 #include "confdefs.h"
14637 $ac_includes_default
14641 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
14646 rm -f "conftest.$ac_objext"
14647 if { (eval echo "$as_me:14647: \"$ac_compile\"") >&5
14648 (eval $ac_compile) 2>&5
14650 echo "$as_me:14650: \$? = $ac_status" >&5
14651 (exit "$ac_status"); } &&
14652 { ac_try='test -s "conftest.$ac_objext"'
14653 { (eval echo "$as_me:14653: \"$ac_try\"") >&5
14654 (eval $ac_try) 2>&5
14656 echo "$as_me:14656: \$? = $ac_status" >&5
14657 (exit "$ac_status"); }; }; then
14660 cat >"conftest.$ac_ext" <<_ACEOF
14661 #line 14661 "configure"
14662 #include "confdefs.h"
14663 $ac_includes_default
14667 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
14672 rm -f "conftest.$ac_objext"
14673 if { (eval echo "$as_me:14673: \"$ac_compile\"") >&5
14674 (eval $ac_compile) 2>&5
14676 echo "$as_me:14676: \$? = $ac_status" >&5
14677 (exit "$ac_status"); } &&
14678 { ac_try='test -s "conftest.$ac_objext"'
14679 { (eval echo "$as_me:14679: \"$ac_try\"") >&5
14680 (eval $ac_try) 2>&5
14682 echo "$as_me:14682: \$? = $ac_status" >&5
14683 (exit "$ac_status"); }; }; then
14684 ac_hi=$ac_mid; break
14686 echo "$as_me: failed program was:" >&5
14687 cat "conftest.$ac_ext" >&5
14688 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
14690 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14693 echo "$as_me: failed program was:" >&5
14694 cat "conftest.$ac_ext" >&5
14697 cat >"conftest.$ac_ext" <<_ACEOF
14698 #line 14698 "configure"
14699 #include "confdefs.h"
14700 $ac_includes_default
14704 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
14709 rm -f "conftest.$ac_objext"
14710 if { (eval echo "$as_me:14710: \"$ac_compile\"") >&5
14711 (eval $ac_compile) 2>&5
14713 echo "$as_me:14713: \$? = $ac_status" >&5
14714 (exit "$ac_status"); } &&
14715 { ac_try='test -s "conftest.$ac_objext"'
14716 { (eval echo "$as_me:14716: \"$ac_try\"") >&5
14717 (eval $ac_try) 2>&5
14719 echo "$as_me:14719: \$? = $ac_status" >&5
14720 (exit "$ac_status"); }; }; then
14721 ac_lo=$ac_mid; break
14723 echo "$as_me: failed program was:" >&5
14724 cat "conftest.$ac_ext" >&5
14725 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
14727 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14730 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14731 # Binary search between lo and hi bounds.
14732 while test "x$ac_lo" != "x$ac_hi"; do
14733 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
14734 cat >"conftest.$ac_ext" <<_ACEOF
14735 #line 14735 "configure"
14736 #include "confdefs.h"
14737 $ac_includes_default
14741 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
14746 rm -f "conftest.$ac_objext"
14747 if { (eval echo "$as_me:14747: \"$ac_compile\"") >&5
14748 (eval $ac_compile) 2>&5
14750 echo "$as_me:14750: \$? = $ac_status" >&5
14751 (exit "$ac_status"); } &&
14752 { ac_try='test -s "conftest.$ac_objext"'
14753 { (eval echo "$as_me:14753: \"$ac_try\"") >&5
14754 (eval $ac_try) 2>&5
14756 echo "$as_me:14756: \$? = $ac_status" >&5
14757 (exit "$ac_status"); }; }; then
14760 echo "$as_me: failed program was:" >&5
14761 cat "conftest.$ac_ext" >&5
14762 ac_lo=`expr "$ac_mid" + 1`
14764 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14766 ac_cv_sizeof_signed_char=$ac_lo
14768 if test "$cross_compiling" = yes; then
14769 { { echo "$as_me:14769: error: cannot run test program while cross compiling" >&5
14770 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14771 { (exit 1); exit 1; }; }
14773 cat >"conftest.$ac_ext" <<_ACEOF
14774 #line 14774 "configure"
14775 #include "confdefs.h"
14776 $ac_includes_default
14780 FILE *f = fopen ("conftest.val", "w");
14782 $ac_main_return (1);
14783 fprintf (f, "%ld", (long)(sizeof (signed char)));
14789 rm -f "conftest$ac_exeext"
14790 if { (eval echo "$as_me:14790: \"$ac_link\"") >&5
14791 (eval $ac_link) 2>&5
14793 echo "$as_me:14793: \$? = $ac_status" >&5
14794 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
14795 { (eval echo "$as_me:14795: \"$ac_try\"") >&5
14796 (eval $ac_try) 2>&5
14798 echo "$as_me:14798: \$? = $ac_status" >&5
14799 (exit "$ac_status"); }; }; then
14800 ac_cv_sizeof_signed_char=`cat conftest.val`
14802 echo "$as_me: program exited with status $ac_status" >&5
14803 echo "$as_me: failed program was:" >&5
14804 cat "conftest.$ac_ext" >&5
14806 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
14811 ac_cv_sizeof_signed_char=0
14814 echo "$as_me:14814: result: $ac_cv_sizeof_signed_char" >&5
14815 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
14816 cat >>confdefs.h <<EOF
14817 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
14820 if test "$ac_cv_sizeof_signed_char" = 1 ; then
14821 NCURSES_SBOOL="signed char"
14823 NCURSES_SBOOL="char"
14825 echo "$as_me:14825: checking if you want to use signed Boolean array in term.h" >&5
14826 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
14828 # Check whether --enable-signed-char or --disable-signed-char was given.
14829 if test "${enable_signed_char+set}" = set; then
14830 enableval="$enable_signed_char"
14831 with_signed_char=$enableval
14833 with_signed_char=$cf_dft_signed_char
14835 echo "$as_me:14835: result: $with_signed_char" >&5
14836 echo "${ECHO_T}$with_signed_char" >&6
14837 test "x$with_signed_char" != xyes && NCURSES_SBOOL="char"
14839 ### use option --with-tparm-arg to override tparm's argument type
14840 echo "$as_me:14840: checking for type of tparm args" >&5
14841 echo $ECHO_N "checking for type of tparm args... $ECHO_C" >&6
14843 # Check whether --with-tparm-arg or --without-tparm-arg was given.
14844 if test "${with_tparm_arg+set}" = set; then
14845 withval="$with_tparm_arg"
14846 NCURSES_TPARM_ARG="$withval"
14848 NCURSES_TPARM_ARG=$cf_dft_tparm_arg
14850 echo "$as_me:14850: result: $NCURSES_TPARM_ARG" >&5
14851 echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6
14853 ### Enable compiling-in rcs id's
14854 echo "$as_me:14854: checking if RCS identifiers should be compiled-in" >&5
14855 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
14857 # Check whether --with-rcs-ids or --without-rcs-ids was given.
14858 if test "${with_rcs_ids+set}" = set; then
14859 withval="$with_rcs_ids"
14860 with_rcs_ids=$withval
14864 echo "$as_me:14864: result: $with_rcs_ids" >&5
14865 echo "${ECHO_T}$with_rcs_ids" >&6
14866 test "x$with_rcs_ids" = xyes &&
14867 cat >>confdefs.h <<\EOF
14868 #define USE_RCS_IDS 1
14871 ###############################################################################
14873 echo "$as_me:14873: checking format of man-pages" >&5
14874 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
14876 # Check whether --with-manpage-format or --without-manpage-format was given.
14877 if test "${with_manpage_format+set}" = set; then
14878 withval="$with_manpage_format"
14879 MANPAGE_FORMAT=$withval
14881 MANPAGE_FORMAT=unknown
14884 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
14885 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
14889 case "$MANPAGE_FORMAT" in
14891 if test -z "$MANPATH" ; then
14892 MANPATH="/usr/man:/usr/share/man"
14895 # look for the 'date' man-page (it is most likely to be installed!)
14901 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
14902 for cf_dir in $MANPATH; do
14903 test -z "$cf_dir" && cf_dir=/usr/man
14904 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
14906 cf_test=`echo "$cf_name" | sed -e 's/*//'`
14907 if test "x$cf_test" = "x$cf_name" ; then
14910 (*.bz2) MANPAGE_FORMAT="$MANPAGE_FORMAT bzip2";;
14911 (*.xz) MANPAGE_FORMAT="$MANPAGE_FORMAT xz";;
14912 (*.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
14913 (*.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
14914 (*.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
14915 (*) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
14929 # if we found a match in either man* or cat*, stop looking
14930 if test -n "$MANPAGE_FORMAT" ; then
14932 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
14933 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
14939 test "$cf_found" = yes && break
14942 # only check the first directory in $MANPATH where we find manpages
14943 if test -n "$MANPAGE_FORMAT" ; then
14947 # if we did not find the example, just assume it is normal
14948 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
14952 for cf_option in $MANPAGE_FORMAT; do
14953 case "$cf_option" in
14954 (xz|bzip2|gzip|compress|BSDI|normal|formatted|catonly)
14957 cf_unknown="$cf_unknown $cf_option"
14964 echo "$as_me:14964: result: $MANPAGE_FORMAT" >&5
14965 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
14966 if test -n "$cf_unknown" ; then
14967 { echo "$as_me:14967: WARNING: Unexpected manpage-format $cf_unknown" >&5
14968 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
14971 cf_manpage_format=no
14972 cf_manpage_inboth=no
14973 cf_manpage_so_strip=
14974 cf_manpage_compress=
14976 for cf_item in $MANPAGE_FORMAT
14980 cf_manpage_format=yes
14981 cf_manpage_inboth=no
14984 cf_manpage_format=yes
14985 cf_manpage_inboth=yes
14988 cf_manpage_so_strip="Z"
14989 cf_manpage_compress=compress
14992 cf_manpage_so_strip="gz"
14993 cf_manpage_compress=gzip
14996 cf_manpage_so_strip="bz2"
14997 cf_manpage_compress=bzip2
15000 cf_manpage_so_strip="xz"
15001 cf_manpage_compress=xz
15006 echo "$as_me:15006: checking for manpage renaming" >&5
15007 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
15009 # Check whether --with-manpage-renames or --without-manpage-renames was given.
15010 if test "${with_manpage_renames+set}" = set; then
15011 withval="$with_manpage_renames"
15012 MANPAGE_RENAMES=$withval
15014 MANPAGE_RENAMES=yes
15017 case ".$MANPAGE_RENAMES" in
15021 # Debian 'man' program?
15022 if test -f /etc/debian_version ; then
15023 MANPAGE_RENAMES=man/man_db.renames
15030 if test "$MANPAGE_RENAMES" = man/man_db.renames ; then
15031 MANPAGE_RENAMES=`pwd`/$MANPAGE_RENAMES
15032 elif test "$MANPAGE_RENAMES" = no ; then
15034 elif test ! -f "$MANPAGE_RENAMES" ; then
15035 { { echo "$as_me:15035: error: not a filename: $MANPAGE_RENAMES" >&5
15036 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
15037 { (exit 1); exit 1; }; }
15040 echo "$as_me:15040: result: $MANPAGE_RENAMES" >&5
15041 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
15043 echo "$as_me:15043: checking if manpage aliases will be installed" >&5
15044 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
15046 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
15047 if test "${with_manpage_aliases+set}" = set; then
15048 withval="$with_manpage_aliases"
15049 MANPAGE_ALIASES=$withval
15051 MANPAGE_ALIASES=yes
15054 echo "$as_me:15054: result: $MANPAGE_ALIASES" >&5
15055 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
15059 cf_use_symlinks=yes
15066 MANPAGE_SYMLINKS=no
15067 if test "$MANPAGE_ALIASES" = yes ; then
15068 echo "$as_me:15068: checking if manpage symlinks should be used" >&5
15069 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
15071 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
15072 if test "${with_manpage_symlinks+set}" = set; then
15073 withval="$with_manpage_symlinks"
15074 MANPAGE_SYMLINKS=$withval
15076 MANPAGE_SYMLINKS=$cf_use_symlinks
15079 if test "$cf_use_symlinks" = no; then
15080 if test "$MANPAGE_SYMLINKS" = yes ; then
15081 { echo "$as_me:15081: WARNING: cannot make symlinks" >&5
15082 echo "$as_me: WARNING: cannot make symlinks" >&2;}
15083 MANPAGE_SYMLINKS=no
15087 echo "$as_me:15087: result: $MANPAGE_SYMLINKS" >&5
15088 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
15091 echo "$as_me:15091: checking for manpage tbl" >&5
15092 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
15094 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
15095 if test "${with_manpage_tbl+set}" = set; then
15096 withval="$with_manpage_tbl"
15097 MANPAGE_TBL=$withval
15102 echo "$as_me:15102: result: $MANPAGE_TBL" >&5
15103 echo "${ECHO_T}$MANPAGE_TBL" >&6
15105 if test "$prefix" = "NONE" ; then
15106 cf_prefix="$ac_default_prefix"
15108 cf_prefix="$prefix"
15111 test ! -d man && mkdir man
15113 cf_edit_man=./edit_man.sh
15114 cf_man_alias=`pwd`/man_alias.sed
15116 cat >$cf_edit_man <<CF_EOF
15118 # this script is generated by the configure-script CF_MAN_PAGES macro.
15120 prefix="$cf_prefix"
15121 datarootdir="$datarootdir"
15124 NCURSES_MAJOR="$NCURSES_MAJOR"
15125 NCURSES_MINOR="$NCURSES_MINOR"
15126 NCURSES_PATCH="$NCURSES_PATCH"
15128 NCURSES_OSPEED="$NCURSES_OSPEED"
15129 TERMINFO="$TERMINFO"
15132 INSTALL_DATA="$INSTALL_DATA"
15134 transform="$program_transform_name"
15136 TMP=\${TMPDIR:=/tmp}/man\$\$
15137 trap "rm -f \$TMP; exit 1" 1 2 3 15
15138 trap "rm -f \$TMP" 0
15150 top_srcdir=\$srcdir/..
15153 if test "\$form" = normal ; then
15154 if test "$cf_manpage_format" = yes ; then
15155 if test "$cf_manpage_inboth" = no ; then
15156 $SHELL "\$0" format "\$verb" "\$mandir" "\$srcdir" "\$@"
15160 cf_subdir=\$mandir/man
15161 cf_tables=$MANPAGE_TBL
15163 cf_subdir=\$mandir/cat
15167 # process the list of source-files
15168 for i in "\$@" ; do
15172 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
15173 if test "\$verb" = installing ; then
15174 if test ! -d "\$cf_subdir\${section}" ; then
15175 mkdir -p "\$cf_subdir\$section"
15179 # replace variables in man page
15180 if test ! -f "$cf_man_alias" ; then
15181 cat >>$cf_man_alias <<-CF_EOF2
15182 s,@DATADIR@,\$datadir,g
15183 s,@TERMINFO@,\${TERMINFO:="no default value"},g
15184 s,@TERMINFO_DIRS@,\${TERMINFO_DIRS:="no default value"},g
15185 s,@NCURSES_MAJOR@,\${NCURSES_MAJOR:="no default value"},g
15186 s,@NCURSES_MINOR@,\${NCURSES_MINOR:="no default value"},g
15187 s,@NCURSES_PATCH@,\${NCURSES_PATCH:="no default value"},g
15188 s,@NCURSES_OSPEED@,\${NCURSES_OSPEED:="no default value"},g
15191 for cf_name in captoinfo clear infocmp infotocap reset tabs tic toe tput tset
15193 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15194 cf_name=`echo "$cf_name" | sed "$program_transform_name"`
15195 cat >>$cf_edit_man <<-CF_EOF
15196 s,@$cf_NAME@,$cf_name,g
15200 cat >>$cf_edit_man <<CF_EOF
15202 echo "...made $cf_man_alias"
15206 cf_source=\`basename "\$i"\`
15207 cf_full_alias=\$cf_source
15208 test ! -f "\$cf_full_alias" && cf_full_alias="\$srcdir/\$cf_full_alias"
15209 if test ! -f "\$cf_full_alias" ; then
15210 echo ".. skipped \$cf_source"
15215 if test "$MANPAGE_ALIASES" != no ; then
15216 cat >>$cf_edit_man <<CF_EOF
15218 cf_part_alias=\`echo \$cf_full_alias| sed -e 's,^.*/,,'\`
15219 test "$with_curses_h" = yes && nCurses=ncurses.3x
15220 aliases=\`sed -f "\$top_srcdir/man/manlinks.sed" "\$cf_full_alias" |sed -f "$cf_man_alias" | sort -u; test "\$cf_part_alias" = "\$nCurses" && echo curses\`
15224 if test "$MANPAGE_RENAMES" = no ; then
15225 cat >>$cf_edit_man <<CF_EOF
15226 # perform program transformations for section 1 man pages
15227 if test \$section = 1 ; then
15228 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
15230 cf_target=\$cf_subdir\${section}/\$cf_source
15234 cat >>$cf_edit_man <<CF_EOF
15235 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
15236 if test -z "\$cf_target" ; then
15237 echo "? missing rename for \$cf_source"
15238 cf_target="\$cf_source"
15240 cf_target="\$cf_subdir\${section}/\${cf_target}"
15245 cat >>$cf_edit_man <<CF_EOF
15246 sed -f "$cf_man_alias" \\
15249 if test "$MANPAGE_RENAMES" != no ; then
15250 cat >>$cf_edit_man <<CF_EOF
15251 < "\$i" | sed -f `pwd`/edit_man.sed >\$TMP
15254 cat >>$cf_edit_man <<CF_EOF
15259 cat >>$cf_edit_man <<CF_EOF
15260 if test \$cf_tables = yes ; then
15261 tbl \$TMP >\$TMP.out
15266 if test "$with_overwrite" != yes ; then
15267 cat >>$cf_edit_man <<CF_EOF
15268 sed -e "/\\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
15273 if test "$with_curses_h" != yes ; then
15274 cat >>$cf_edit_man <<CF_EOF
15275 sed -e "/\\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
15280 cat >>$cf_edit_man <<CF_EOF
15281 if test "\$form" = format ; then
15282 nroff -man \$TMP >\$TMP.out
15287 if test -n "$cf_manpage_compress" ; then
15288 cat >>$cf_edit_man <<CF_EOF
15289 if test "\$verb" = installing ; then
15290 if ( "$cf_manpage_compress" -f \$TMP )
15292 mv \$TMP.$cf_manpage_so_strip \$TMP
15295 cf_target="\$cf_target.$cf_manpage_so_strip"
15299 case "$MANPAGE_FORMAT" in
15301 cat >>$cf_edit_man <<CF_EOF
15302 if test "\$form" = format ; then
15303 # BSDI installs only .0 suffixes in the cat directories
15304 cf_target="\`echo \$cf_target|sed -e 's/\\.[1-9]\\+[a-z]*/.0/'\`"
15310 cat >>$cf_edit_man <<CF_EOF
15311 suffix=\`basename "\$cf_target" | sed -e 's%^[^.]*%%'\`
15312 if test "\$verb" = installing ; then
15313 echo "\$verb \$cf_target"
15314 \$INSTALL_DATA \$TMP "\$cf_target"
15315 test -d "\$cf_subdir\${section}" &&
15316 test -n "\$aliases" && (
15317 cd "\$cf_subdir\${section}" && (
15318 cf_source=\`echo "\$cf_target" |sed -e 's%^.*/\\([^/][^/]*/[^/][^/]*$\\)%\\1%'\`
15319 test -n "$cf_manpage_so_strip" && cf_source=\`echo "\$cf_source" |sed -e 's%\\.$cf_manpage_so_strip\$%%'\`
15320 cf_target=\`basename "\$cf_target"\`
15321 for cf_alias in \$aliases
15323 if test "\$section" = 1 ; then
15324 cf_alias=\`echo "\$cf_alias" |sed "\${transform}"\`
15327 if test "$MANPAGE_SYMLINKS" = yes ; then
15328 if test -f "\$cf_alias\${suffix}" ; then
15329 if ( cmp -s "\$cf_target" "\$cf_alias\${suffix}" )
15334 echo ".. \$verb alias \$cf_alias\${suffix}"
15338 cat >>$cf_edit_man <<CF_EOF
15339 $LN_S "\$cf_target" "\$cf_alias\${suffix}"
15343 cat >>$cf_edit_man <<CF_EOF
15344 rm -f "\$cf_alias\${suffix}"
15345 $LN_S "\$cf_target" "\$cf_alias\${suffix}"
15349 cat >>$cf_edit_man <<CF_EOF
15350 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
15351 echo ".so \$cf_source" >\$TMP
15353 if test -n "$cf_manpage_compress" ; then
15354 cat >>$cf_edit_man <<CF_EOF
15355 if test -n "$cf_manpage_so_strip" ; then
15356 "$cf_manpage_compress" -f \$TMP
15357 mv \$TMP.$cf_manpage_so_strip \$TMP
15361 cat >>$cf_edit_man <<CF_EOF
15362 echo ".. \$verb alias \$cf_alias\${suffix}"
15363 rm -f "\$cf_alias\${suffix}"
15364 \$INSTALL_DATA \$TMP "\$cf_alias\${suffix}"
15369 elif test "\$verb" = removing ; then
15370 test -f "\$cf_target" && (
15371 echo "\$verb \$cf_target"
15372 rm -f "\$cf_target"
15374 test -d "\$cf_subdir\${section}" &&
15375 test -n "\$aliases" && (
15376 cd "\$cf_subdir\${section}" && (
15377 for cf_alias in \$aliases
15379 if test "\$section" = 1 ; then
15380 cf_alias=\`echo "\$cf_alias" |sed "\${transform}"\`
15383 echo ".. \$verb alias \$cf_alias\${suffix}"
15384 rm -f "\$cf_alias\${suffix}"
15396 if test "$cf_manpage_inboth" = yes ; then
15397 if test "\$form" != format ; then
15398 $SHELL "\$0" format "\$verb" "\$mandir" "\$srcdir" "\$@"
15404 chmod 755 "$cf_edit_man"
15406 ###############################################################################
15408 ### Note that some functions (such as const) are normally disabled anyway.
15409 echo "$as_me:15409: checking if you want to build with function extensions" >&5
15410 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
15412 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
15413 if test "${enable_ext_funcs+set}" = set; then
15414 enableval="$enable_ext_funcs"
15415 with_ext_funcs=$enableval
15419 echo "$as_me:15419: result: $with_ext_funcs" >&5
15420 echo "${ECHO_T}$with_ext_funcs" >&6
15421 if test "x$with_ext_funcs" = xyes ; then
15422 NCURSES_EXT_FUNCS=1
15424 cat >>confdefs.h <<\EOF
15425 #define NCURSES_EXT_FUNCS 1
15428 cat >>confdefs.h <<\EOF
15429 #define HAVE_ASSUME_DEFAULT_COLORS 1
15432 cat >>confdefs.h <<\EOF
15433 #define HAVE_CURSES_VERSION 1
15436 cat >>confdefs.h <<\EOF
15437 #define HAVE_HAS_KEY 1
15440 cat >>confdefs.h <<\EOF
15441 #define HAVE_RESIZETERM 1
15444 cat >>confdefs.h <<\EOF
15445 #define HAVE_RESIZE_TERM 1
15448 cat >>confdefs.h <<\EOF
15449 #define HAVE_TERM_ENTRY_H 1
15452 cat >>confdefs.h <<\EOF
15453 #define HAVE_USE_DEFAULT_COLORS 1
15456 cat >>confdefs.h <<\EOF
15457 #define HAVE_USE_SCREEN 1
15460 cat >>confdefs.h <<\EOF
15461 #define HAVE_USE_WINDOW 1
15464 cat >>confdefs.h <<\EOF
15465 #define HAVE_WRESIZE 1
15468 GENERATED_EXT_FUNCS=generated
15469 test "x$with_ext_funcs" = xyes || cf_dft_ext_spfuncs=no
15471 NCURSES_EXT_FUNCS=0
15472 GENERATED_EXT_FUNCS=
15475 echo "$as_me:15475: checking if you want to build with SCREEN extensions" >&5
15476 echo $ECHO_N "checking if you want to build with SCREEN extensions... $ECHO_C" >&6
15478 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
15479 if test "${enable_sp_funcs+set}" = set; then
15480 enableval="$enable_sp_funcs"
15481 with_sp_funcs=$enableval
15483 with_sp_funcs=$cf_dft_ext_spfuncs
15485 echo "$as_me:15485: result: $with_sp_funcs" >&5
15486 echo "${ECHO_T}$with_sp_funcs" >&6
15487 if test "x$with_sp_funcs" = xyes ; then
15490 cat >>confdefs.h <<\EOF
15491 #define NCURSES_SP_FUNCS 1
15494 cat >>confdefs.h <<\EOF
15495 #define HAVE_TPUTS_SP 1
15498 GENERATED_SP_FUNCS=generated
15501 GENERATED_SP_FUNCS=
15504 echo "$as_me:15504: checking if you want to build with terminal-driver" >&5
15505 echo $ECHO_N "checking if you want to build with terminal-driver... $ECHO_C" >&6
15507 # Check whether --enable-term-driver or --disable-term-driver was given.
15508 if test "${enable_term_driver+set}" = set; then
15509 enableval="$enable_term_driver"
15510 with_term_driver=$enableval
15512 with_term_driver=no
15514 echo "$as_me:15514: result: $with_term_driver" >&5
15515 echo "${ECHO_T}$with_term_driver" >&6
15516 if test "x$with_term_driver" = xyes ; then
15518 cat >>confdefs.h <<\EOF
15519 #define USE_TERM_DRIVER 1
15522 if test "x$with_termlib" != xno ; then
15523 { { echo "$as_me:15523: error: The term-driver option conflicts with the termlib option" >&5
15524 echo "$as_me: error: The term-driver option conflicts with the termlib option" >&2;}
15525 { (exit 1); exit 1; }; }
15527 if test "x$with_sp_funcs" != xyes ; then
15528 { { echo "$as_me:15528: error: The term-driver option relies upon sp-funcs" >&5
15529 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
15530 { (exit 1); exit 1; }; }
15534 ### use option --enable-const to turn on use of const beyond that in XSI.
15535 echo "$as_me:15535: checking for extended use of const keyword" >&5
15536 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
15538 # Check whether --enable-const or --disable-const was given.
15539 if test "${enable_const+set}" = set; then
15540 enableval="$enable_const"
15541 with_ext_const=$enableval
15543 with_ext_const=$cf_dft_ext_const
15545 echo "$as_me:15545: result: $with_ext_const" >&5
15546 echo "${ECHO_T}$with_ext_const" >&6
15547 NCURSES_CONST='/*nothing*/'
15548 if test "x$with_ext_const" = xyes ; then
15549 NCURSES_CONST=const
15552 ### use option --enable-ext-colors to turn on use of colors beyond 16.
15553 echo "$as_me:15553: checking if you want to use extended colors" >&5
15554 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
15556 # Check whether --enable-ext-colors or --disable-ext-colors was given.
15557 if test "${enable_ext_colors+set}" = set; then
15558 enableval="$enable_ext_colors"
15559 with_ext_colors=$enableval
15561 with_ext_colors=$cf_dft_ext_colors
15563 echo "$as_me:15563: result: $with_ext_colors" >&5
15564 echo "${ECHO_T}$with_ext_colors" >&6
15565 NCURSES_EXT_COLORS=0
15566 if test "x$with_ext_colors" = xyes ; then
15567 if test "x$with_widec" != xyes ; then
15568 { echo "$as_me:15568: WARNING: This option applies only to wide-character library" >&5
15569 echo "$as_me: WARNING: This option applies only to wide-character library" >&2;}
15571 # cannot be ABI 5 since it changes sizeof(cchar_t)
15573 if test "${with_abi_version+set}" != set; then
15574 case "$cf_cv_rel_version" in
15576 cf_cv_rel_version=6.0
15577 cf_cv_abi_version=6
15578 cf_cv_abi_default=6
15579 { echo "$as_me:15579: WARNING: overriding ABI version to $cf_cv_abi_default" >&5
15580 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_default" >&2;}
15585 NCURSES_EXT_COLORS=1
15587 cat >>confdefs.h <<\EOF
15588 #define NCURSES_EXT_COLORS 1
15591 cat >>confdefs.h <<\EOF
15592 #define HAVE_ALLOC_PAIR 1
15595 cat >>confdefs.h <<\EOF
15596 #define HAVE_INIT_EXTENDED_COLOR 1
15599 cat >>confdefs.h <<\EOF
15600 #define HAVE_RESET_COLOR_PAIRS 1
15606 ### use option --enable-ext-mouse to modify coding to support 5-button mice
15607 echo "$as_me:15607: checking if you want to use extended mouse encoding" >&5
15608 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
15610 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
15611 if test "${enable_ext_mouse+set}" = set; then
15612 enableval="$enable_ext_mouse"
15613 with_ext_mouse=$enableval
15615 with_ext_mouse=$cf_dft_ext_mouse
15617 echo "$as_me:15617: result: $with_ext_mouse" >&5
15618 echo "${ECHO_T}$with_ext_mouse" >&6
15619 if test "x$with_ext_mouse" = xyes ; then
15621 if test "${with_abi_version+set}" != set; then
15622 case "$cf_cv_rel_version" in
15624 cf_cv_rel_version=6.0
15625 cf_cv_abi_version=6
15626 cf_cv_abi_default=6
15627 { echo "$as_me:15627: WARNING: overriding ABI version to $cf_cv_abi_default" >&5
15628 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_default" >&2;}
15635 if test $cf_cv_abi_default -le 5 ; then
15636 NCURSES_MOUSE_VERSION=1
15637 elif test $cf_cv_abi_default -le 6 ; then
15638 NCURSES_MOUSE_VERSION=2
15640 NCURSES_MOUSE_VERSION=3
15643 ### use option --enable-ext-putwin to turn on extended screendumps
15644 echo "$as_me:15644: checking if you want to use extended putwin/screendump" >&5
15645 echo $ECHO_N "checking if you want to use extended putwin/screendump... $ECHO_C" >&6
15647 # Check whether --enable-ext-putwin or --disable-ext-putwin was given.
15648 if test "${enable_ext_putwin+set}" = set; then
15649 enableval="$enable_ext_putwin"
15650 with_ext_putwin=$enableval
15652 with_ext_putwin=$cf_dft_ext_putwin
15654 echo "$as_me:15654: result: $with_ext_putwin" >&5
15655 echo "${ECHO_T}$with_ext_putwin" >&6
15656 if test "x$with_ext_putwin" = xyes ; then
15658 cat >>confdefs.h <<\EOF
15659 #define NCURSES_EXT_PUTWIN 1
15664 echo "$as_me:15664: checking if you want \$NCURSES_NO_PADDING code" >&5
15665 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
15667 # Check whether --enable-no-padding or --disable-no-padding was given.
15668 if test "${enable_no_padding+set}" = set; then
15669 enableval="$enable_no_padding"
15670 with_no_padding=$enableval
15672 with_no_padding=$with_ext_funcs
15674 echo "$as_me:15674: result: $with_no_padding" >&5
15675 echo "${ECHO_T}$with_no_padding" >&6
15676 test "x$with_no_padding" = xyes &&
15677 cat >>confdefs.h <<\EOF
15678 #define NCURSES_NO_PADDING 1
15681 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
15682 echo "$as_me:15682: checking if you want SIGWINCH handler" >&5
15683 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
15685 # Check whether --enable-sigwinch or --disable-sigwinch was given.
15686 if test "${enable_sigwinch+set}" = set; then
15687 enableval="$enable_sigwinch"
15688 with_sigwinch=$enableval
15690 with_sigwinch=$with_ext_funcs
15692 echo "$as_me:15692: result: $with_sigwinch" >&5
15693 echo "${ECHO_T}$with_sigwinch" >&6
15694 test "x$with_sigwinch" = xyes &&
15695 cat >>confdefs.h <<\EOF
15696 #define USE_SIGWINCH 1
15699 ### use option --enable-tcap-names to allow user to define new capabilities
15700 echo "$as_me:15700: checking if you want user-definable terminal capabilities like termcap" >&5
15701 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
15703 # Check whether --enable-tcap-names or --disable-tcap-names was given.
15704 if test "${enable_tcap_names+set}" = set; then
15705 enableval="$enable_tcap_names"
15706 with_tcap_names=$enableval
15708 with_tcap_names=$with_ext_funcs
15710 echo "$as_me:15710: result: $with_tcap_names" >&5
15711 echo "${ECHO_T}$with_tcap_names" >&6
15713 if test "x$with_tcap_names" = xyes; then
15716 cat >>confdefs.h <<\EOF
15717 #define NCURSES_XNAMES 1
15722 ##############################################################################
15724 echo "$as_me:15724: checking if you want to link with the pthread library" >&5
15725 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
15727 # Check whether --with-pthread or --without-pthread was given.
15728 if test "${with_pthread+set}" = set; then
15729 withval="$with_pthread"
15730 with_pthread=$withval
15734 echo "$as_me:15734: result: $with_pthread" >&5
15735 echo "${ECHO_T}$with_pthread" >&6
15737 if test "$with_pthread" != no ; then
15738 echo "$as_me:15738: checking for pthread.h" >&5
15739 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
15740 if test "${ac_cv_header_pthread_h+set}" = set; then
15741 echo $ECHO_N "(cached) $ECHO_C" >&6
15743 cat >"conftest.$ac_ext" <<_ACEOF
15744 #line 15744 "configure"
15745 #include "confdefs.h"
15746 #include <pthread.h>
15748 if { (eval echo "$as_me:15748: \"$ac_cpp "conftest.$ac_ext"\"") >&5
15749 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
15751 $EGREP -v '^ *\+' conftest.er1 >conftest.err
15753 cat conftest.err >&5
15754 echo "$as_me:15754: \$? = $ac_status" >&5
15755 (exit "$ac_status"); } >/dev/null; then
15756 if test -s conftest.err; then
15757 ac_cpp_err=$ac_c_preproc_warn_flag
15764 if test -z "$ac_cpp_err"; then
15765 ac_cv_header_pthread_h=yes
15767 echo "$as_me: failed program was:" >&5
15768 cat "conftest.$ac_ext" >&5
15769 ac_cv_header_pthread_h=no
15771 rm -f conftest.err "conftest.$ac_ext"
15773 echo "$as_me:15773: result: $ac_cv_header_pthread_h" >&5
15774 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
15775 if test "$ac_cv_header_pthread_h" = yes; then
15777 cat >>confdefs.h <<\EOF
15778 #define HAVE_PTHREADS_H 1
15781 for cf_lib_pthread in pthread c_r
15783 echo "$as_me:15783: checking if we can link with the $cf_lib_pthread library" >&5
15784 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
15785 cf_save_LIBS="$LIBS"
15787 cf_add_libs="$LIBS"
15790 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15791 # filter duplicates
15792 for cf_add_1lib in $cf_add_0lib; do
15793 for cf_add_2lib in $cf_add_libs; do
15794 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15799 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15801 LIBS="$cf_add_libs"
15803 cat >"conftest.$ac_ext" <<_ACEOF
15804 #line 15804 "configure"
15805 #include "confdefs.h"
15807 #include <pthread.h>
15813 int rc = pthread_create(0,0,0,0);
15814 int r2 = pthread_mutexattr_settype(0, 0);
15820 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15821 if { (eval echo "$as_me:15821: \"$ac_link\"") >&5
15822 (eval $ac_link) 2>&5
15824 echo "$as_me:15824: \$? = $ac_status" >&5
15825 (exit "$ac_status"); } &&
15826 { ac_try='test -s "conftest$ac_exeext"'
15827 { (eval echo "$as_me:15827: \"$ac_try\"") >&5
15828 (eval $ac_try) 2>&5
15830 echo "$as_me:15830: \$? = $ac_status" >&5
15831 (exit "$ac_status"); }; }; then
15834 echo "$as_me: failed program was:" >&5
15835 cat "conftest.$ac_ext" >&5
15838 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15839 LIBS="$cf_save_LIBS"
15840 echo "$as_me:15840: result: $with_pthread" >&5
15841 echo "${ECHO_T}$with_pthread" >&6
15842 test "$with_pthread" = yes && break
15845 if test "$with_pthread" = yes ; then
15847 cf_add_libs="$LIBS"
15850 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15851 # filter duplicates
15852 for cf_add_1lib in $cf_add_0lib; do
15853 for cf_add_2lib in $cf_add_libs; do
15854 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15859 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15861 LIBS="$cf_add_libs"
15863 cat >>confdefs.h <<\EOF
15864 #define HAVE_LIBPTHREADS 1
15868 { { echo "$as_me:15868: error: Cannot link with pthread library" >&5
15869 echo "$as_me: error: Cannot link with pthread library" >&2;}
15870 { (exit 1); exit 1; }; }
15877 if test "x$with_pthread" != xno; then
15878 echo "$as_me:15878: checking for pthread_kill" >&5
15879 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
15880 if test "${ac_cv_func_pthread_kill+set}" = set; then
15881 echo $ECHO_N "(cached) $ECHO_C" >&6
15883 cat >"conftest.$ac_ext" <<_ACEOF
15884 #line 15884 "configure"
15885 #include "confdefs.h"
15886 #define pthread_kill autoconf_temporary
15887 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
15888 #undef pthread_kill
15894 /* We use char because int might match the return type of a gcc2
15895 builtin and then its argument prototype would still apply. */
15896 char pthread_kill (void);
15902 /* The GNU C library defines stubs for functions which it implements
15903 to always fail with ENOSYS. Some functions are actually named
15904 something starting with __ and the normal name is an alias. */
15905 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
15906 #error found stub for pthread_kill
15909 return pthread_kill ();
15914 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15915 if { (eval echo "$as_me:15915: \"$ac_link\"") >&5
15916 (eval $ac_link) 2>&5
15918 echo "$as_me:15918: \$? = $ac_status" >&5
15919 (exit "$ac_status"); } &&
15920 { ac_try='test -s "conftest$ac_exeext"'
15921 { (eval echo "$as_me:15921: \"$ac_try\"") >&5
15922 (eval $ac_try) 2>&5
15924 echo "$as_me:15924: \$? = $ac_status" >&5
15925 (exit "$ac_status"); }; }; then
15926 ac_cv_func_pthread_kill=yes
15928 echo "$as_me: failed program was:" >&5
15929 cat "conftest.$ac_ext" >&5
15930 ac_cv_func_pthread_kill=no
15932 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15934 echo "$as_me:15934: result: $ac_cv_func_pthread_kill" >&5
15935 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
15936 if test "$ac_cv_func_pthread_kill" = yes; then
15938 echo "$as_me:15938: checking if you want to allow EINTR in wgetch with pthreads" >&5
15939 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
15941 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
15942 if test "${enable_pthreads_eintr+set}" = set; then
15943 enableval="$enable_pthreads_eintr"
15944 use_pthreads_eintr=$enableval
15946 use_pthreads_eintr=no
15948 echo "$as_me:15948: result: $use_pthreads_eintr" >&5
15949 echo "${ECHO_T}$use_pthreads_eintr" >&6
15950 if test "x$use_pthreads_eintr" = xyes ; then
15952 cat >>confdefs.h <<\EOF
15953 #define USE_PTHREADS_EINTR 1
15959 echo "$as_me:15959: checking if you want to use weak-symbols for pthreads" >&5
15960 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
15962 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
15963 if test "${enable_weak_symbols+set}" = set; then
15964 enableval="$enable_weak_symbols"
15965 use_weak_symbols=$enableval
15967 use_weak_symbols=no
15969 echo "$as_me:15969: result: $use_weak_symbols" >&5
15970 echo "${ECHO_T}$use_weak_symbols" >&6
15971 if test "x$use_weak_symbols" = xyes ; then
15973 echo "$as_me:15973: checking if $CC supports weak symbols" >&5
15974 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
15975 if test "${cf_cv_weak_symbols+set}" = set; then
15976 echo $ECHO_N "(cached) $ECHO_C" >&6
15979 cat >"conftest.$ac_ext" <<_ACEOF
15980 #line 15980 "configure"
15981 #include "confdefs.h"
15988 #if defined(__GNUC__)
15989 # if defined __USE_ISOC99
15990 # define _cat_pragma(exp) _Pragma(#exp)
15991 # define _weak_pragma(exp) _cat_pragma(weak name)
15993 # define _weak_pragma(exp)
15995 # define _declare(name) __extension__ extern __typeof__(name) name
15996 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
15999 weak_symbol(fopen);
16005 rm -f "conftest.$ac_objext"
16006 if { (eval echo "$as_me:16006: \"$ac_compile\"") >&5
16007 (eval $ac_compile) 2>&5
16009 echo "$as_me:16009: \$? = $ac_status" >&5
16010 (exit "$ac_status"); } &&
16011 { ac_try='test -s "conftest.$ac_objext"'
16012 { (eval echo "$as_me:16012: \"$ac_try\"") >&5
16013 (eval $ac_try) 2>&5
16015 echo "$as_me:16015: \$? = $ac_status" >&5
16016 (exit "$ac_status"); }; }; then
16017 cf_cv_weak_symbols=yes
16019 echo "$as_me: failed program was:" >&5
16020 cat "conftest.$ac_ext" >&5
16021 cf_cv_weak_symbols=no
16023 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
16026 echo "$as_me:16026: result: $cf_cv_weak_symbols" >&5
16027 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
16030 cf_cv_weak_symbols=no
16033 if test "x$cf_cv_weak_symbols" = xyes ; then
16035 cat >>confdefs.h <<\EOF
16036 #define USE_WEAK_SYMBOLS 1
16043 if test "x$with_pthread" = "xyes" ; then
16045 cat >>confdefs.h <<\EOF
16046 #define USE_PTHREADS 1
16049 enable_reentrant=yes
16050 if test "x$cf_cv_weak_symbols" = xyes ; then
16053 cf_add_libs="$PRIVATE_LIBS"
16056 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16057 # filter duplicates
16058 for cf_add_1lib in $cf_add_0lib; do
16059 for cf_add_2lib in $cf_add_libs; do
16060 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16065 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16067 PRIVATE_LIBS="$cf_add_libs"
16072 # Reentrant code has to be opaque; there's little advantage to making ncurses
16073 # opaque outside of that, so there is no --enable-opaque option. We can use
16074 # this option without --with-pthreads, but this will be always set for
16076 echo "$as_me:16076: checking if you want reentrant code" >&5
16077 echo $ECHO_N "checking if you want reentrant code... $ECHO_C" >&6
16079 # Check whether --enable-reentrant or --disable-reentrant was given.
16080 if test "${enable_reentrant+set}" = set; then
16081 enableval="$enable_reentrant"
16082 with_reentrant=$enableval
16086 echo "$as_me:16086: result: $with_reentrant" >&5
16087 echo "${ECHO_T}$with_reentrant" >&6
16088 if test "x$with_reentrant" = xyes ; then
16089 cf_cv_enable_reentrant=1
16090 cf_cv_enable_opaque="NCURSES_INTERNALS"
16092 if test "x$cf_cv_weak_symbols" = xyes ; then
16094 # remove pthread library from $LIBS
16095 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
16097 cf_add_libs="$TEST_LIBS"
16100 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16101 # filter duplicates
16102 for cf_add_1lib in $cf_add_0lib; do
16103 for cf_add_2lib in $cf_add_libs; do
16104 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16109 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16111 TEST_LIBS="$cf_add_libs"
16113 cf_add_libs="$TEST_LIBS2"
16116 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16117 # filter duplicates
16118 for cf_add_1lib in $cf_add_0lib; do
16119 for cf_add_2lib in $cf_add_libs; do
16120 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16125 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16127 TEST_LIBS2="$cf_add_libs"
16129 cf_add_libs="$PRIVATE_LIBS"
16132 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16133 # filter duplicates
16134 for cf_add_1lib in $cf_add_0lib; do
16135 for cf_add_2lib in $cf_add_libs; do
16136 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16141 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16143 PRIVATE_LIBS="$cf_add_libs"
16146 # when not using weak symbols but with_reentrant,
16147 # add 't' to the library suffix on all platforms
16148 # except cygwin, where we only do that if ALSO
16149 # compiling with full thread support.
16151 (*cygwin* | *msys*)
16152 if test "$with_pthread" = "yes" ; then
16153 if test "x$disable_lib_suffixes" = "xno" ; then
16154 LIB_SUFFIX="t${LIB_SUFFIX}"
16158 if test "x$disable_lib_suffixes" = "xno" ; then
16159 LIB_SUFFIX="t${LIB_SUFFIX}"
16165 cat >>confdefs.h <<\EOF
16166 #define USE_REENTRANT 1
16169 if test "${with_abi_version+set}" != set; then
16170 case "$cf_cv_rel_version" in
16172 cf_cv_rel_version=6.0
16173 cf_cv_abi_version=6
16174 cf_cv_abi_default=6
16175 { echo "$as_me:16175: WARNING: overriding ABI version to $cf_cv_abi_default" >&5
16176 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_default" >&2;}
16182 cf_cv_enable_reentrant=0
16183 cf_cv_enable_opaque="NCURSES_OPAQUE"
16184 NCURSES_SIZE_T=$cf_dft_ordinate_type
16187 echo "$as_me:16187: checking if you want opaque curses-library structures" >&5
16188 echo $ECHO_N "checking if you want opaque curses-library structures... $ECHO_C" >&6
16190 # Check whether --enable-opaque-curses or --disable-opaque-curses was given.
16191 if test "${enable_opaque_curses+set}" = set; then
16192 enableval="$enable_opaque_curses"
16193 test "$enableval" != yes && enableval=no
16194 if test "$enableval" != "no" ; then
16195 enable_opaque_curses=yes
16198 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
16199 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=$cf_dft_opaque_curses
16205 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
16206 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=$cf_dft_opaque_curses
16209 echo "$as_me:16209: result: $enable_opaque_curses" >&5
16210 echo "${ECHO_T}$enable_opaque_curses" >&6
16212 test "$cf_cv_enable_reentrant" = 1 && \
16213 test "$enable_opaque_curses" = no && \
16214 { { echo "$as_me:16214: error: reentrant configuration requires opaque library" >&5
16215 echo "$as_me: error: reentrant configuration requires opaque library" >&2;}
16216 { (exit 1); exit 1; }; }
16218 echo "$as_me:16218: checking if you want opaque form-library structures" >&5
16219 echo $ECHO_N "checking if you want opaque form-library structures... $ECHO_C" >&6
16221 # Check whether --enable-opaque-form or --disable-opaque-form was given.
16222 if test "${enable_opaque_form+set}" = set; then
16223 enableval="$enable_opaque_form"
16224 enable_opaque_form=yes
16226 enable_opaque_form=no
16228 echo "$as_me:16228: result: $enable_opaque_form" >&5
16229 echo "${ECHO_T}$enable_opaque_form" >&6
16231 echo "$as_me:16231: checking if you want opaque menu-library structures" >&5
16232 echo $ECHO_N "checking if you want opaque menu-library structures... $ECHO_C" >&6
16234 # Check whether --enable-opaque-menu or --disable-opaque-menu was given.
16235 if test "${enable_opaque_menu+set}" = set; then
16236 enableval="$enable_opaque_menu"
16237 enable_opaque_menu=yes
16239 enable_opaque_menu=no
16241 echo "$as_me:16241: result: $enable_opaque_menu" >&5
16242 echo "${ECHO_T}$enable_opaque_menu" >&6
16244 echo "$as_me:16244: checking if you want opaque panel-library structures" >&5
16245 echo $ECHO_N "checking if you want opaque panel-library structures... $ECHO_C" >&6
16247 # Check whether --enable-opaque-panel or --disable-opaque-panel was given.
16248 if test "${enable_opaque_panel+set}" = set; then
16249 enableval="$enable_opaque_panel"
16250 enable_opaque_panel=yes
16252 enable_opaque_panel=no
16254 echo "$as_me:16254: result: $enable_opaque_panel" >&5
16255 echo "${ECHO_T}$enable_opaque_panel" >&6
16257 NCURSES_OPAQUE=0; test "$enable_opaque_curses" = yes && NCURSES_OPAQUE=1
16258 NCURSES_OPAQUE_FORM=0; test "$enable_opaque_form" = yes && NCURSES_OPAQUE_FORM=1
16259 NCURSES_OPAQUE_MENU=0; test "$enable_opaque_menu" = yes && NCURSES_OPAQUE_MENU=1
16260 NCURSES_OPAQUE_PANEL=0; test "$enable_opaque_panel" = yes && NCURSES_OPAQUE_PANEL=1
16262 ### Allow using a different wrap-prefix
16263 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
16264 echo "$as_me:16264: checking for prefix used to wrap public variables" >&5
16265 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
16267 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
16268 if test "${with_wrap_prefix+set}" = set; then
16269 withval="$with_wrap_prefix"
16270 NCURSES_WRAP_PREFIX=$withval
16272 NCURSES_WRAP_PREFIX=_nc_
16274 echo "$as_me:16274: result: $NCURSES_WRAP_PREFIX" >&5
16275 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
16277 NCURSES_WRAP_PREFIX=_nc_
16280 cat >>confdefs.h <<EOF
16281 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
16284 ###############################################################################
16285 # These options are relatively safe to experiment with.
16287 echo "$as_me:16287: checking if you want all development code" >&5
16288 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
16290 # Check whether --with-develop or --without-develop was given.
16291 if test "${with_develop+set}" = set; then
16292 withval="$with_develop"
16293 with_develop=$withval
16297 echo "$as_me:16297: result: $with_develop" >&5
16298 echo "${ECHO_T}$with_develop" >&6
16300 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
16301 echo "$as_me:16301: checking if you want hard-tabs code" >&5
16302 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
16304 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
16305 if test "${enable_hard_tabs+set}" = set; then
16306 enableval="$enable_hard_tabs"
16309 enable_hard_tabs=$with_develop
16311 echo "$as_me:16311: result: $enable_hard_tabs" >&5
16312 echo "${ECHO_T}$enable_hard_tabs" >&6
16313 test "x$enable_hard_tabs" = xyes &&
16314 cat >>confdefs.h <<\EOF
16315 #define USE_HARD_TABS 1
16318 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
16319 echo "$as_me:16319: checking if you want limited support for xmc" >&5
16320 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
16322 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
16323 if test "${enable_xmc_glitch+set}" = set; then
16324 enableval="$enable_xmc_glitch"
16327 enable_xmc_glitch=$with_develop
16329 echo "$as_me:16329: result: $enable_xmc_glitch" >&5
16330 echo "${ECHO_T}$enable_xmc_glitch" >&6
16331 test "x$enable_xmc_glitch" = xyes &&
16332 cat >>confdefs.h <<\EOF
16333 #define USE_XMC_SUPPORT 1
16336 ###############################################################################
16337 # These are just experimental, probably should not be in a package:
16339 echo "$as_me:16339: checking if you do not want to assume colors are white-on-black" >&5
16340 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
16342 # Check whether --enable-assumed-color or --disable-assumed-color was given.
16343 if test "${enable_assumed_color+set}" = set; then
16344 enableval="$enable_assumed_color"
16345 with_assumed_color=$enableval
16347 with_assumed_color=yes
16349 echo "$as_me:16349: result: $with_assumed_color" >&5
16350 echo "${ECHO_T}$with_assumed_color" >&6
16351 test "x$with_assumed_color" = xyes &&
16352 cat >>confdefs.h <<\EOF
16353 #define USE_ASSUMED_COLOR 1
16356 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
16357 echo "$as_me:16357: checking if you want hashmap scrolling-optimization code" >&5
16358 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
16360 # Check whether --enable-hashmap or --disable-hashmap was given.
16361 if test "${enable_hashmap+set}" = set; then
16362 enableval="$enable_hashmap"
16363 with_hashmap=$enableval
16367 echo "$as_me:16367: result: $with_hashmap" >&5
16368 echo "${ECHO_T}$with_hashmap" >&6
16369 test "x$with_hashmap" = xyes &&
16370 cat >>confdefs.h <<\EOF
16371 #define USE_HASHMAP 1
16374 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
16375 echo "$as_me:16375: checking if you want colorfgbg code" >&5
16376 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
16378 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
16379 if test "${enable_colorfgbg+set}" = set; then
16380 enableval="$enable_colorfgbg"
16381 with_colorfgbg=$enableval
16385 echo "$as_me:16385: result: $with_colorfgbg" >&5
16386 echo "${ECHO_T}$with_colorfgbg" >&6
16387 test "x$with_colorfgbg" = xyes &&
16388 cat >>confdefs.h <<\EOF
16389 #define USE_COLORFGBG 1
16392 ### use option --enable-fvisibility to turn on use of gcc-specific feature
16393 echo "$as_me:16393: checking if you want to use gcc -fvisibility option" >&5
16394 echo $ECHO_N "checking if you want to use gcc -fvisibility option... $ECHO_C" >&6
16396 # Check whether --enable-fvisibility or --disable-fvisibility was given.
16397 if test "${enable_fvisibility+set}" = set; then
16398 enableval="$enable_fvisibility"
16399 cf_with_fvisibility=$enableval
16401 cf_with_fvisibility=no
16403 echo "$as_me:16403: result: $cf_with_fvisibility" >&5
16404 echo "${ECHO_T}$cf_with_fvisibility" >&6
16407 NCURSES_CXX_IMPEXP=
16408 if test "x$cf_with_fvisibility" = xyes; then
16410 echo "$as_me:16410: checking if $CC -fvisibility=hidden option works" >&5
16411 echo $ECHO_N "checking if $CC -fvisibility=hidden option works... $ECHO_C" >&6
16412 if test "${cf_cv_fvisibility_hidden+set}" = set; then
16413 echo $ECHO_N "(cached) $ECHO_C" >&6
16416 cf_save_cflags="$CFLAGS"
16417 CFLAGS="$CFLAGS -fvisibility=hidden"
16418 cat >"conftest.$ac_ext" <<_ACEOF
16419 #line 16419 "configure"
16420 #include "confdefs.h"
16422 __attribute__ ((visibility("default"))) int somefunc() {return 42;}
16428 if (somefunc()) return 1;
16434 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16435 if { (eval echo "$as_me:16435: \"$ac_link\"") >&5
16436 (eval $ac_link) 2>&5
16438 echo "$as_me:16438: \$? = $ac_status" >&5
16439 (exit "$ac_status"); } &&
16440 { ac_try='test -s "conftest$ac_exeext"'
16441 { (eval echo "$as_me:16441: \"$ac_try\"") >&5
16442 (eval $ac_try) 2>&5
16444 echo "$as_me:16444: \$? = $ac_status" >&5
16445 (exit "$ac_status"); }; }; then
16446 cf_cv_fvisibility_hidden=yes
16448 echo "$as_me: failed program was:" >&5
16449 cat "conftest.$ac_ext" >&5
16450 cf_cv_fvisibility_hidden=no
16452 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16453 CFLAGS=$cf_save_cflags
16456 echo "$as_me:16456: result: $cf_cv_fvisibility_hidden" >&5
16457 echo "${ECHO_T}$cf_cv_fvisibility_hidden" >&6
16459 if test "x$cf_cv_fvisibility_hidden" = xyes
16465 cf_new_extra_cppflags=
16467 for cf_add_cflags in -fvisibility=hidden
16469 case "$cf_fix_cppflags" in
16471 case "$cf_add_cflags" in
16472 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16473 case "$cf_add_cflags" in
16475 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16477 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16478 && test -z "${cf_tst_cflags}" \
16479 && cf_fix_cppflags=yes
16481 if test "$cf_fix_cppflags" = yes ; then
16483 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16484 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16487 elif test "${cf_tst_cflags}" = "\"'" ; then
16489 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16490 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16496 case "$CPPFLAGS" in
16500 case "$cf_add_cflags" in
16502 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16504 CPPFLAGS=`echo "$CPPFLAGS" | \
16505 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16506 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16511 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16512 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16519 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16520 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16527 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16528 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16530 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
16532 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16533 && test -z "${cf_tst_cflags}" \
16534 && cf_fix_cppflags=no
16539 if test -n "$cf_new_cflags" ; then
16541 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16542 CFLAGS="${CFLAGS}$cf_new_cflags"
16546 if test -n "$cf_new_cppflags" ; then
16548 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16549 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16553 if test -n "$cf_new_extra_cppflags" ; then
16555 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16556 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16560 NCURSES_IMPEXP="__attribute__ ((visibility(\"default\")))"
16565 ac_cpp='$CXXCPP $CPPFLAGS'
16566 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
16567 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
16568 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16569 ac_main_return="return"
16571 echo "$as_me:16571: checking if $CXX -fvisibility=hidden option works" >&5
16572 echo $ECHO_N "checking if $CXX -fvisibility=hidden option works... $ECHO_C" >&6
16573 if test "${cf_cv_fvisibility_hidden2+set}" = set; then
16574 echo $ECHO_N "(cached) $ECHO_C" >&6
16577 cf_save_cflags="$CXXFLAGS"
16578 CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
16579 cat >"conftest.$ac_ext" <<_ACEOF
16580 #line 16580 "configure"
16581 #include "confdefs.h"
16583 __attribute__ ((visibility("default"))) int somefunc() {return 42;}
16589 if (somefunc()) return 1;
16595 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16596 if { (eval echo "$as_me:16596: \"$ac_link\"") >&5
16597 (eval $ac_link) 2>&5
16599 echo "$as_me:16599: \$? = $ac_status" >&5
16600 (exit "$ac_status"); } &&
16601 { ac_try='test -s "conftest$ac_exeext"'
16602 { (eval echo "$as_me:16602: \"$ac_try\"") >&5
16603 (eval $ac_try) 2>&5
16605 echo "$as_me:16605: \$? = $ac_status" >&5
16606 (exit "$ac_status"); }; }; then
16607 cf_cv_fvisibility_hidden2=yes
16609 echo "$as_me: failed program was:" >&5
16610 cat "conftest.$ac_ext" >&5
16611 cf_cv_fvisibility_hidden2=no
16613 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16614 CXXFLAGS=$cf_save_cflags
16617 echo "$as_me:16617: result: $cf_cv_fvisibility_hidden2" >&5
16618 echo "${ECHO_T}$cf_cv_fvisibility_hidden2" >&6
16620 if test "x$cf_cv_fvisibility_hidden2" = xyes
16623 cf_save_CXXFLAGS="$CFLAGS"
16629 cf_new_extra_cppflags=
16631 for cf_add_cflags in -fvisibility=hidden
16633 case "$cf_fix_cppflags" in
16635 case "$cf_add_cflags" in
16636 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16637 case "$cf_add_cflags" in
16639 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16641 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16642 && test -z "${cf_tst_cflags}" \
16643 && cf_fix_cppflags=yes
16645 if test "$cf_fix_cppflags" = yes ; then
16647 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16648 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16651 elif test "${cf_tst_cflags}" = "\"'" ; then
16653 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16654 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16660 case "$CPPFLAGS" in
16664 case "$cf_add_cflags" in
16666 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16668 CPPFLAGS=`echo "$CPPFLAGS" | \
16669 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16670 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16675 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16676 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16683 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16684 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16691 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16692 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16694 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
16696 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16697 && test -z "${cf_tst_cflags}" \
16698 && cf_fix_cppflags=no
16703 if test -n "$cf_new_cflags" ; then
16705 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16706 CFLAGS="${CFLAGS}$cf_new_cflags"
16710 if test -n "$cf_new_cppflags" ; then
16712 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16713 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16717 if test -n "$cf_new_extra_cppflags" ; then
16719 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16720 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16725 CFLAGS="$cf_save_CXXFLAGS"
16727 NCURSES_CXX_IMPEXP="__attribute__ ((visibility(\"default\")))"
16730 ac_cpp='$CPP $CPPFLAGS'
16731 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
16732 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
16733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16734 ac_main_return="return"
16739 ### use option --enable-interop to turn on use of bindings used for interop
16740 echo "$as_me:16740: checking if you want interop bindings" >&5
16741 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
16743 # Check whether --enable-interop or --disable-interop was given.
16744 if test "${enable_interop+set}" = set; then
16745 enableval="$enable_interop"
16746 with_exp_interop=$enableval
16748 with_exp_interop=$cf_dft_interop
16750 echo "$as_me:16750: result: $with_exp_interop" >&5
16751 echo "${ECHO_T}$with_exp_interop" >&6
16753 NCURSES_INTEROP_FUNCS=0
16754 test "x$with_exp_interop" = xyes && NCURSES_INTEROP_FUNCS=1
16756 echo "$as_me:16756: checking if you want experimental safe-sprintf code" >&5
16757 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
16759 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
16760 if test "${enable_safe_sprintf+set}" = set; then
16761 enableval="$enable_safe_sprintf"
16762 with_safe_sprintf=$enableval
16764 with_safe_sprintf=no
16766 echo "$as_me:16766: result: $with_safe_sprintf" >&5
16767 echo "${ECHO_T}$with_safe_sprintf" >&6
16769 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
16770 # when hashmap is used scroll hints are useless
16771 if test "$with_hashmap" = no ; then
16772 echo "$as_me:16772: checking if you want to experiment without scrolling-hints code" >&5
16773 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
16775 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
16776 if test "${enable_scroll_hints+set}" = set; then
16777 enableval="$enable_scroll_hints"
16778 with_scroll_hints=$enableval
16780 with_scroll_hints=yes
16782 echo "$as_me:16782: result: $with_scroll_hints" >&5
16783 echo "${ECHO_T}$with_scroll_hints" >&6
16784 test "x$with_scroll_hints" = xyes &&
16785 cat >>confdefs.h <<\EOF
16786 #define USE_SCROLL_HINTS 1
16791 echo "$as_me:16791: checking if you want wgetch-events code" >&5
16792 echo $ECHO_N "checking if you want wgetch-events code... $ECHO_C" >&6
16794 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
16795 if test "${enable_wgetch_events+set}" = set; then
16796 enableval="$enable_wgetch_events"
16797 with_wgetch_events=$enableval
16799 with_wgetch_events=no
16801 echo "$as_me:16801: result: $with_wgetch_events" >&5
16802 echo "${ECHO_T}$with_wgetch_events" >&6
16803 if test "x$with_wgetch_events" = xyes ; then
16805 cat >>confdefs.h <<\EOF
16806 #define NCURSES_WGETCH_EVENTS 1
16809 NCURSES_WGETCH_EVENTS=1
16811 NCURSES_WGETCH_EVENTS=0
16814 case "$cf_cv_system_name" in
16815 (*mingw32*|*mingw64*|*-msvc*)
16816 echo "$as_me:16816: checking if you want experimental-Windows driver" >&5
16817 echo $ECHO_N "checking if you want experimental-Windows driver... $ECHO_C" >&6
16819 # Check whether --enable-exp-win32 or --disable-exp-win32 was given.
16820 if test "${enable_exp_win32+set}" = set; then
16821 enableval="$enable_exp_win32"
16822 with_exp_win32=$enableval
16826 echo "$as_me:16826: result: $with_exp_win32" >&5
16827 echo "${ECHO_T}$with_exp_win32" >&6
16828 if test "x$with_exp_win32" = xyes
16831 cat >>confdefs.h <<\EOF
16832 #define EXP_WIN32_DRIVER 1
16836 INTERNALS_HDR='$(INCDIR)/nc_win32.h'
16838 INTERNALS_HDR='$(INCDIR)/nc_mingw.h'
16848 ###############################################################################
16850 ### use option --disable-echo to suppress full display compiling commands
16852 echo "$as_me:16852: checking if you want to see long compiling messages" >&5
16853 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
16855 # Check whether --enable-echo or --disable-echo was given.
16856 if test "${enable_echo+set}" = set; then
16857 enableval="$enable_echo"
16858 test "$enableval" != no && enableval=yes
16859 if test "$enableval" != "yes" ; then
16862 ECHO_LD='@echo linking $@;'
16863 RULE_CC='@echo compiling $<'
16864 SHOW_CC='@echo compiling $@'
16886 echo "$as_me:16886: result: $enableval" >&5
16887 echo "${ECHO_T}$enableval" >&6
16889 if test "x$enable_echo" = xyes; then
16892 ECHO_LINK='@ echo linking $@ ... ;'
16893 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
16894 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
16897 # --disable-stripping is used for debugging
16899 echo "$as_me:16899: checking if you want to install stripped executables" >&5
16900 echo $ECHO_N "checking if you want to install stripped executables... $ECHO_C" >&6
16902 # Check whether --enable-stripping or --disable-stripping was given.
16903 if test "${enable_stripping+set}" = set; then
16904 enableval="$enable_stripping"
16905 test "$enableval" != no && enableval=yes
16906 if test "$enableval" != "yes" ; then
16907 enable_stripping=no
16909 enable_stripping=yes
16913 enable_stripping=yes
16916 echo "$as_me:16916: result: $enable_stripping" >&5
16917 echo "${ECHO_T}$enable_stripping" >&6
16919 if test "$enable_stripping" = yes
16926 : "${INSTALL:=install}"
16927 echo "$as_me:16927: checking if install accepts -p option" >&5
16928 echo $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6
16929 if test "${cf_cv_install_p+set}" = set; then
16930 echo $ECHO_N "(cached) $ECHO_C" >&6
16937 if $INSTALL -p conftest.in conftest.out 2>/dev/null
16939 if test -f conftest.out/conftest.in
16941 test conftest.in -nt conftest.out/conftest.in 2>conftest.err && \
16942 test conftest.out/conftest.in -nt conftest.in 2>conftest.err
16943 if test -s conftest.err
16947 cf_cv_install_p=yes
16958 echo "$as_me:16958: result: $cf_cv_install_p" >&5
16959 echo "${ECHO_T}$cf_cv_install_p" >&6
16961 echo "$as_me:16961: checking if install needs to be told about ownership" >&5
16962 echo $ECHO_N "checking if install needs to be told about ownership... $ECHO_C" >&6
16963 case `$ac_config_guess` in
16972 echo "$as_me:16972: result: $with_install_o" >&5
16973 echo "${ECHO_T}$with_install_o" >&6
16974 if test "x$with_install_o" = xyes
16976 INSTALL_OPT_O="`id root|sed -e 's/uid=[0-9]*(/ -o /' -e 's/gid=[0-9]*(/ -g /' -e 's/ [^=[:space:]][^=[:space:]]*=.*/ /' -e 's/)//g'`"
16981 # If we're avoiding relinking of shared libraries during install, that is to
16982 # avoid modifying the build-tree. For the same reason, avoid doing ranlib if
16983 # the install program has "-p" (for preserving timestamps).
16984 cf_cv_do_reranlib=yes
16985 if test "x$cf_cv_install_p" = xyes
16987 if test "x$cf_cv_do_relink" != xyes
16989 cf_cv_do_reranlib=no
16991 INSTALL_LIB="$INSTALL_LIB $INSTALL_OPT_P"
16995 ### use option --enable-warnings to turn on all gcc warnings
16997 echo "$as_me:16997: checking if you want to use C11 _Noreturn feature" >&5
16998 echo $ECHO_N "checking if you want to use C11 _Noreturn feature... $ECHO_C" >&6
17000 # Check whether --enable-stdnoreturn or --disable-stdnoreturn was given.
17001 if test "${enable_stdnoreturn+set}" = set; then
17002 enableval="$enable_stdnoreturn"
17003 test "$enableval" != yes && enableval=no
17004 if test "$enableval" != "no" ; then
17005 enable_stdnoreturn=yes
17007 enable_stdnoreturn=no
17011 enable_stdnoreturn=no
17014 echo "$as_me:17014: result: $enable_stdnoreturn" >&5
17015 echo "${ECHO_T}$enable_stdnoreturn" >&6
17017 if test $enable_stdnoreturn = yes; then
17018 echo "$as_me:17018: checking for C11 _Noreturn feature" >&5
17019 echo $ECHO_N "checking for C11 _Noreturn feature... $ECHO_C" >&6
17020 if test "${cf_cv_c11_noreturn+set}" = set; then
17021 echo $ECHO_N "(cached) $ECHO_C" >&6
17023 cat >"conftest.$ac_ext" <<_ACEOF
17024 #line 17024 "configure"
17025 #include "confdefs.h"
17027 $ac_includes_default
17028 #include <stdnoreturn.h>
17029 static _Noreturn void giveup(void) { exit(0); }
17034 if (feof(stdin)) giveup()
17039 rm -f "conftest.$ac_objext"
17040 if { (eval echo "$as_me:17040: \"$ac_compile\"") >&5
17041 (eval $ac_compile) 2>&5
17043 echo "$as_me:17043: \$? = $ac_status" >&5
17044 (exit "$ac_status"); } &&
17045 { ac_try='test -s "conftest.$ac_objext"'
17046 { (eval echo "$as_me:17046: \"$ac_try\"") >&5
17047 (eval $ac_try) 2>&5
17049 echo "$as_me:17049: \$? = $ac_status" >&5
17050 (exit "$ac_status"); }; }; then
17051 cf_cv_c11_noreturn=yes
17053 echo "$as_me: failed program was:" >&5
17054 cat "conftest.$ac_ext" >&5
17055 cf_cv_c11_noreturn=no
17057 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17060 echo "$as_me:17060: result: $cf_cv_c11_noreturn" >&5
17061 echo "${ECHO_T}$cf_cv_c11_noreturn" >&6
17063 cf_cv_c11_noreturn=no,
17066 if test "$cf_cv_c11_noreturn" = yes; then
17068 cat >>confdefs.h <<\EOF
17069 #define HAVE_STDNORETURN_H 1
17072 cat >>confdefs.h <<EOF
17073 #define STDC_NORETURN _Noreturn
17076 HAVE_STDNORETURN_H=1
17078 HAVE_STDNORETURN_H=0
17081 if test "$GCC" = yes || test "$GXX" = yes
17084 if test "$GCC" = yes || test "$GXX" = yes
17089 for cf_temp_scan in $CFLAGS
17091 case "x$cf_temp_scan" in
17094 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17095 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17100 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
17101 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
17106 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17107 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17112 if test "x$CFLAGS" != "x$cf_temp_flags"
17114 test -n "$verbose" && echo " repairing CFLAGS: $CFLAGS" 1>&6
17116 echo "${as_me:-configure}:17116: testing repairing CFLAGS: $CFLAGS ..." 1>&5
17118 CFLAGS="$cf_temp_flags"
17119 test -n "$verbose" && echo " ... fixed $CFLAGS" 1>&6
17121 echo "${as_me:-configure}:17121: testing ... fixed $CFLAGS ..." 1>&5
17123 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
17125 echo "${as_me:-configure}:17125: testing ... extra $EXTRA_CFLAGS ..." 1>&5
17132 if test "$GCC" = yes || test "$GXX" = yes
17137 for cf_temp_scan in $CPPFLAGS
17139 case "x$cf_temp_scan" in
17142 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17143 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17148 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
17149 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
17154 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17155 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17160 if test "x$CPPFLAGS" != "x$cf_temp_flags"
17162 test -n "$verbose" && echo " repairing CPPFLAGS: $CPPFLAGS" 1>&6
17164 echo "${as_me:-configure}:17164: testing repairing CPPFLAGS: $CPPFLAGS ..." 1>&5
17166 CPPFLAGS="$cf_temp_flags"
17167 test -n "$verbose" && echo " ... fixed $CPPFLAGS" 1>&6
17169 echo "${as_me:-configure}:17169: testing ... fixed $CPPFLAGS ..." 1>&5
17171 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
17173 echo "${as_me:-configure}:17173: testing ... extra $EXTRA_CFLAGS ..." 1>&5
17180 if test "$GCC" = yes || test "$GXX" = yes
17185 for cf_temp_scan in $LDFLAGS
17187 case "x$cf_temp_scan" in
17190 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17191 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17196 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
17197 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
17202 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
17203 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
17208 if test "x$LDFLAGS" != "x$cf_temp_flags"
17210 test -n "$verbose" && echo " repairing LDFLAGS: $LDFLAGS" 1>&6
17212 echo "${as_me:-configure}:17212: testing repairing LDFLAGS: $LDFLAGS ..." 1>&5
17214 LDFLAGS="$cf_temp_flags"
17215 test -n "$verbose" && echo " ... fixed $LDFLAGS" 1>&6
17217 echo "${as_me:-configure}:17217: testing ... fixed $LDFLAGS ..." 1>&5
17219 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
17221 echo "${as_me:-configure}:17221: testing ... extra $EXTRA_CFLAGS ..." 1>&5
17228 echo "$as_me:17228: checking if you want to turn on gcc warnings" >&5
17229 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
17231 # Check whether --enable-warnings or --disable-warnings was given.
17232 if test "${enable_warnings+set}" = set; then
17233 enableval="$enable_warnings"
17234 test "$enableval" != yes && enableval=no
17235 if test "$enableval" != "no" ; then
17236 enable_warnings=yes
17245 echo "$as_me:17245: result: $enable_warnings" >&5
17246 echo "${ECHO_T}$enable_warnings" >&6
17247 if test "$enable_warnings" = "yes"
17250 if test "x$have_x" = xyes; then
17252 cf_save_LIBS_CF_CONST_X_STRING="$LIBS"
17253 cf_save_CFLAGS_CF_CONST_X_STRING="$CFLAGS"
17254 cf_save_CPPFLAGS_CF_CONST_X_STRING="$CPPFLAGS"
17255 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
17256 for cf_X_CFLAGS in $X_CFLAGS
17258 case "x$cf_X_CFLAGS" in
17260 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
17263 CFLAGS="$CFLAGS $cf_X_CFLAGS"
17268 cat >"conftest.$ac_ext" <<_ACEOF
17269 #line 17269 "configure"
17270 #include "confdefs.h"
17272 #include <stdlib.h>
17273 #include <X11/Intrinsic.h>
17278 String foo = malloc(1); free((void*)foo)
17283 rm -f "conftest.$ac_objext"
17284 if { (eval echo "$as_me:17284: \"$ac_compile\"") >&5
17285 (eval $ac_compile) 2>&5
17287 echo "$as_me:17287: \$? = $ac_status" >&5
17288 (exit "$ac_status"); } &&
17289 { ac_try='test -s "conftest.$ac_objext"'
17290 { (eval echo "$as_me:17290: \"$ac_try\"") >&5
17291 (eval $ac_try) 2>&5
17293 echo "$as_me:17293: \$? = $ac_status" >&5
17294 (exit "$ac_status"); }; }; then
17296 echo "$as_me:17296: checking for X11/Xt const-feature" >&5
17297 echo $ECHO_N "checking for X11/Xt const-feature... $ECHO_C" >&6
17298 if test "${cf_cv_const_x_string+set}" = set; then
17299 echo $ECHO_N "(cached) $ECHO_C" >&6
17302 cat >"conftest.$ac_ext" <<_ACEOF
17303 #line 17303 "configure"
17304 #include "confdefs.h"
17306 #define _CONST_X_STRING /* X11R7.8 (perhaps) */
17307 #undef XTSTRINGDEFINES /* X11R5 and later */
17308 #include <stdlib.h>
17309 #include <X11/Intrinsic.h>
17314 String foo = malloc(1); *foo = 0
17319 rm -f "conftest.$ac_objext"
17320 if { (eval echo "$as_me:17320: \"$ac_compile\"") >&5
17321 (eval $ac_compile) 2>&5
17323 echo "$as_me:17323: \$? = $ac_status" >&5
17324 (exit "$ac_status"); } &&
17325 { ac_try='test -s "conftest.$ac_objext"'
17326 { (eval echo "$as_me:17326: \"$ac_try\"") >&5
17327 (eval $ac_try) 2>&5
17329 echo "$as_me:17329: \$? = $ac_status" >&5
17330 (exit "$ac_status"); }; }; then
17332 cf_cv_const_x_string=no
17335 echo "$as_me: failed program was:" >&5
17336 cat "conftest.$ac_ext" >&5
17338 cf_cv_const_x_string=yes
17341 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17344 echo "$as_me:17344: result: $cf_cv_const_x_string" >&5
17345 echo "${ECHO_T}$cf_cv_const_x_string" >&6
17347 LIBS="$cf_save_LIBS_CF_CONST_X_STRING"
17348 CFLAGS="$cf_save_CFLAGS_CF_CONST_X_STRING"
17349 CPPFLAGS="$cf_save_CPPFLAGS_CF_CONST_X_STRING"
17351 case "$cf_cv_const_x_string" in
17354 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17355 CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES"
17360 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17361 CPPFLAGS="${CPPFLAGS}-D_CONST_X_STRING"
17367 echo "$as_me: failed program was:" >&5
17368 cat "conftest.$ac_ext" >&5
17370 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17372 cat > "conftest.$ac_ext" <<EOF
17373 #line 17373 "${as_me:-configure}"
17374 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
17376 if test "$INTEL_COMPILER" = yes
17378 # The "-wdXXX" options suppress warnings:
17379 # remark #1419: external declaration in primary source file
17380 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
17381 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
17382 # remark #193: zero used for undefined preprocessing identifier
17383 # remark #593: variable "curs_sb_left_arrow" was set but never used
17384 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
17385 # remark #869: parameter "tw" was never referenced
17386 # remark #981: operands are evaluated in unspecified order
17387 # warning #279: controlling expression is constant
17389 { echo "$as_me:17389: checking for $CC warning options..." >&5
17390 echo "$as_me: checking for $CC warning options..." >&6;}
17391 cf_save_CFLAGS="$CFLAGS"
17392 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
17404 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
17405 if { (eval echo "$as_me:17405: \"$ac_compile\"") >&5
17406 (eval $ac_compile) 2>&5
17408 echo "$as_me:17408: \$? = $ac_status" >&5
17409 (exit "$ac_status"); }; then
17410 test -n "$verbose" && echo "$as_me:17410: result: ... -$cf_opt" >&5
17411 echo "${ECHO_T}... -$cf_opt" >&6
17412 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
17415 CFLAGS="$cf_save_CFLAGS"
17416 elif test "$GCC" = yes && test "$GCC_VERSION" != "unknown"
17418 { echo "$as_me:17418: checking for $CC warning options..." >&5
17419 echo "$as_me: checking for $CC warning options..." >&6;}
17420 cf_save_CFLAGS="$CFLAGS"
17422 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
17423 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
17424 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
17425 for cf_opt in W Wall \
17426 Wbad-function-cast \
17429 Wdeclaration-after-statement \
17432 Wmissing-declarations \
17433 Wmissing-prototypes \
17437 Wstrict-prototypes \
17438 Wundef Wno-inline $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum
17440 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
17441 if { (eval echo "$as_me:17441: \"$ac_compile\"") >&5
17442 (eval $ac_compile) 2>&5
17444 echo "$as_me:17444: \$? = $ac_status" >&5
17445 (exit "$ac_status"); }; then
17446 test -n "$verbose" && echo "$as_me:17446: result: ... -$cf_opt" >&5
17447 echo "${ECHO_T}... -$cf_opt" >&6
17450 case "$GCC_VERSION" in
17452 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
17454 echo "${as_me:-configure}:17454: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
17460 case "$GCC_VERSION" in
17462 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
17464 echo "${as_me:-configure}:17464: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
17470 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
17473 CFLAGS="$cf_save_CFLAGS"
17479 if test "$GCC" = yes || test "$GXX" = yes
17481 cat > conftest.i <<EOF
17483 #define GCC_PRINTF 0
17486 #define GCC_SCANF 0
17488 #ifndef GCC_NORETURN
17489 #define GCC_NORETURN /* nothing */
17492 #define GCC_UNUSED /* nothing */
17495 if test "$GCC" = yes
17497 { echo "$as_me:17497: checking for $CC __attribute__ directives..." >&5
17498 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
17499 cat > "conftest.$ac_ext" <<EOF
17500 #line 17500 "${as_me:-configure}"
17502 #include "confdefs.h"
17503 #include "conftest.h"
17504 #include "conftest.i"
17506 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
17508 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
17511 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
17513 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
17515 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
17516 extern GCC_NORETURN void oops(char *,...) GCC_PRINTFLIKE(1,2);
17517 extern GCC_NORETURN void foo(void);
17518 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; }
17520 cf_printf_attribute=no
17521 cf_scanf_attribute=no
17522 for cf_attribute in scanf printf unused noreturn
17525 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17527 cf_directive="__attribute__(($cf_attribute))"
17528 echo "checking for $CC $cf_directive" 1>&5
17530 case "$cf_attribute" in
17532 cf_printf_attribute=yes
17533 cat >conftest.h <<EOF
17534 #define GCC_$cf_ATTRIBUTE 1
17538 cf_scanf_attribute=yes
17539 cat >conftest.h <<EOF
17540 #define GCC_$cf_ATTRIBUTE 1
17544 cat >conftest.h <<EOF
17545 #define GCC_$cf_ATTRIBUTE $cf_directive
17550 if { (eval echo "$as_me:17550: \"$ac_compile\"") >&5
17551 (eval $ac_compile) 2>&5
17553 echo "$as_me:17553: \$? = $ac_status" >&5
17554 (exit "$ac_status"); }; then
17555 test -n "$verbose" && echo "$as_me:17555: result: ... $cf_attribute" >&5
17556 echo "${ECHO_T}... $cf_attribute" >&6
17557 cat conftest.h >>confdefs.h
17558 case "$cf_attribute" in
17561 cat >>confdefs.h <<EOF
17562 #define GCC_NORETURN $cf_directive
17567 cf_value='/* nothing */'
17568 if test "$cf_printf_attribute" != no ; then
17569 cf_value='__attribute__((format(printf,fmt,var)))'
17571 cat >>confdefs.h <<\EOF
17572 #define GCC_PRINTF 1
17577 cat >>confdefs.h <<EOF
17578 #define GCC_PRINTFLIKE(fmt,var) $cf_value
17583 cf_value='/* nothing */'
17584 if test "$cf_scanf_attribute" != no ; then
17585 cf_value='__attribute__((format(scanf,fmt,var)))'
17587 cat >>confdefs.h <<\EOF
17588 #define GCC_SCANF 1
17593 cat >>confdefs.h <<EOF
17594 #define GCC_SCANFLIKE(fmt,var) $cf_value
17600 cat >>confdefs.h <<EOF
17601 #define GCC_UNUSED $cf_directive
17609 ${FGREP-fgrep} define conftest.i >>confdefs.h
17616 if test "x$enable_warnings" = "xyes"; then
17618 ADAFLAGS="$ADAFLAGS -gnatwa -gnatyg"
17620 if test "x$cf_with_cxx" = xyes ; then
17624 if test "$GCC" = yes ; then
17627 echo "$as_me:17627: checking if this is really Intel C++ compiler" >&5
17628 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
17629 cf_save_CFLAGS="$CXXFLAGS"
17630 CXXFLAGS="$CXXFLAGS -no-gcc"
17631 cat >"conftest.$ac_ext" <<_ACEOF
17632 #line 17632 "configure"
17633 #include "confdefs.h"
17639 #ifdef __INTEL_COMPILER
17641 #error __INTEL_COMPILER is not defined
17648 rm -f "conftest.$ac_objext"
17649 if { (eval echo "$as_me:17649: \"$ac_compile\"") >&5
17650 (eval $ac_compile) 2>&5
17652 echo "$as_me:17652: \$? = $ac_status" >&5
17653 (exit "$ac_status"); } &&
17654 { ac_try='test -s "conftest.$ac_objext"'
17655 { (eval echo "$as_me:17655: \"$ac_try\"") >&5
17656 (eval $ac_try) 2>&5
17658 echo "$as_me:17658: \$? = $ac_status" >&5
17659 (exit "$ac_status"); }; }; then
17660 INTEL_CPLUSPLUS=yes
17661 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
17664 echo "$as_me: failed program was:" >&5
17665 cat "conftest.$ac_ext" >&5
17667 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17668 CXXFLAGS="$cf_save_CFLAGS"
17669 echo "$as_me:17669: result: $INTEL_CPLUSPLUS" >&5
17670 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
17677 if test "$GCC" = yes ; then
17678 echo "$as_me:17678: checking if this is really Clang C++ compiler" >&5
17679 echo $ECHO_N "checking if this is really Clang C++ compiler... $ECHO_C" >&6
17680 cf_save_CFLAGS="$CXXFLAGS"
17681 cat >"conftest.$ac_ext" <<_ACEOF
17682 #line 17682 "configure"
17683 #include "confdefs.h"
17691 #error __clang__ is not defined
17698 rm -f "conftest.$ac_objext"
17699 if { (eval echo "$as_me:17699: \"$ac_compile\"") >&5
17700 (eval $ac_compile) 2>&5
17702 echo "$as_me:17702: \$? = $ac_status" >&5
17703 (exit "$ac_status"); } &&
17704 { ac_try='test -s "conftest.$ac_objext"'
17705 { (eval echo "$as_me:17705: \"$ac_try\"") >&5
17706 (eval $ac_try) 2>&5
17708 echo "$as_me:17708: \$? = $ac_status" >&5
17709 (exit "$ac_status"); }; }; then
17710 CLANG_CPLUSPLUS=yes
17713 echo "$as_me: failed program was:" >&5
17714 cat "conftest.$ac_ext" >&5
17716 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17717 CXXFLAGS="$cf_save_CFLAGS"
17718 echo "$as_me:17718: result: $CLANG_CPLUSPLUS" >&5
17719 echo "${ECHO_T}$CLANG_CPLUSPLUS" >&6
17724 if test "x$CLANG_CPLUSPLUS" = "xyes" ; then
17726 (c[1-9][0-9]|*/c[1-9][0-9])
17727 { echo "$as_me:17727: WARNING: replacing broken compiler alias $CC" >&5
17728 echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;}
17729 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
17734 echo "$as_me:17734: checking version of $CC" >&5
17735 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
17736 CLANG_VERSION="`$CC --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(CLANG[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
17737 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
17738 echo "$as_me:17738: result: $CLANG_VERSION" >&5
17739 echo "${ECHO_T}$CLANG_VERSION" >&6
17741 for cf_clang_opt in \
17742 -Qunused-arguments \
17743 -Wno-error=implicit-function-declaration
17745 echo "$as_me:17745: checking if option $cf_clang_opt works" >&5
17746 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
17747 cf_save_CFLAGS="$CFLAGS"
17748 CFLAGS="$CFLAGS $cf_clang_opt"
17749 cat >"conftest.$ac_ext" <<_ACEOF
17750 #line 17750 "configure"
17751 #include "confdefs.h"
17758 printf("hello!\\n");
17763 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17764 if { (eval echo "$as_me:17764: \"$ac_link\"") >&5
17765 (eval $ac_link) 2>&5
17767 echo "$as_me:17767: \$? = $ac_status" >&5
17768 (exit "$ac_status"); } &&
17769 { ac_try='test -s "conftest$ac_exeext"'
17770 { (eval echo "$as_me:17770: \"$ac_try\"") >&5
17771 (eval $ac_try) 2>&5
17773 echo "$as_me:17773: \$? = $ac_status" >&5
17774 (exit "$ac_status"); }; }; then
17778 echo "$as_me: failed program was:" >&5
17779 cat "conftest.$ac_ext" >&5
17783 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17784 echo "$as_me:17784: result: $cf_clang_optok" >&5
17785 echo "${ECHO_T}$cf_clang_optok" >&6
17786 CFLAGS="$cf_save_CFLAGS"
17787 if test "$cf_clang_optok" = yes; then
17788 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6
17790 echo "${as_me:-configure}:17790: testing adding option $cf_clang_opt ..." 1>&5
17792 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17793 CFLAGS="${CFLAGS}$cf_clang_opt"
17800 ac_cpp='$CXXCPP $CPPFLAGS'
17801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
17802 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
17803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17804 ac_main_return="return"
17806 cat > conftest.$ac_ext <<EOF
17807 #line 17807 "configure"
17808 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
17811 if test "$INTEL_CPLUSPLUS" = yes
17813 # The "-wdXXX" options suppress warnings:
17814 # remark #1419: external declaration in primary source file
17815 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
17816 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
17817 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
17818 # remark #193: zero used for undefined preprocessing identifier
17819 # remark #593: variable "curs_sb_left_arrow" was set but never used
17820 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
17821 # remark #869: parameter "tw" was never referenced
17822 # remark #981: operands are evaluated in unspecified order
17823 # warning #269: invalid format string conversion
17825 { echo "$as_me:17825: checking for $CC warning options..." >&5
17826 echo "$as_me: checking for $CC warning options..." >&6;}
17827 cf_save_CXXFLAGS="$CXXFLAGS"
17828 EXTRA_CXXFLAGS="-Wall"
17841 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
17842 if { (eval echo "$as_me:17842: \"$ac_compile\"") >&5
17843 (eval $ac_compile) 2>&5
17845 echo "$as_me:17845: \$? = $ac_status" >&5
17846 (exit "$ac_status"); }; then
17847 test -n "$verbose" && echo "$as_me:17847: result: ... -$cf_opt" >&5
17848 echo "${ECHO_T}... -$cf_opt" >&6
17849 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
17852 CXXFLAGS="$cf_save_CXXFLAGS"
17854 elif test "$GXX" = yes
17856 { echo "$as_me:17856: checking for $CXX warning options..." >&5
17857 echo "$as_me: checking for $CXX warning options..." >&6;}
17858 cf_save_CXXFLAGS="$CXXFLAGS"
17859 EXTRA_CXXFLAGS="-W -Wall"
17860 cf_gxx_extra_warnings=""
17861 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
17862 case "$GXX_VERSION" in
17866 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
17873 Wignored-qualifiers \
17875 Woverloaded-virtual \
17883 Wundef $cf_gxx_extra_warnings Wno-unused
17885 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
17886 if { (eval echo "$as_me:17886: \"$ac_compile\"") >&5
17887 (eval $ac_compile) 2>&5
17889 echo "$as_me:17889: \$? = $ac_status" >&5
17890 (exit "$ac_status"); }; then
17891 test -n "$verbose" && echo "$as_me:17891: result: ... -$cf_opt" >&5
17892 echo "${ECHO_T}... -$cf_opt" >&6
17893 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
17895 test -n "$verbose" && echo "$as_me:17895: result: ... no -$cf_opt" >&5
17896 echo "${ECHO_T}... no -$cf_opt" >&6
17899 CXXFLAGS="$cf_save_CXXFLAGS"
17904 ac_cpp='$CPP $CPPFLAGS'
17905 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
17906 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
17907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17908 ac_main_return="return"
17913 echo "$as_me:17913: checking if you want to work around bogus compiler/loader warnings" >&5
17914 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
17916 # Check whether --enable-string-hacks or --disable-string-hacks was given.
17917 if test "${enable_string_hacks+set}" = set; then
17918 enableval="$enable_string_hacks"
17919 enable_string_hacks=$enableval
17921 enable_string_hacks=no
17923 echo "$as_me:17923: result: $enable_string_hacks" >&5
17924 echo "${ECHO_T}$enable_string_hacks" >&6
17926 if test "x$enable_string_hacks" = "xyes"; then
17928 cat >>confdefs.h <<\EOF
17929 #define USE_STRING_HACKS 1
17932 { echo "$as_me:17932: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
17933 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
17934 echo "$as_me:17934: checking for strlcat" >&5
17935 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
17936 if test "${ac_cv_func_strlcat+set}" = set; then
17937 echo $ECHO_N "(cached) $ECHO_C" >&6
17939 cat >"conftest.$ac_ext" <<_ACEOF
17940 #line 17940 "configure"
17941 #include "confdefs.h"
17942 #define strlcat autoconf_temporary
17943 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
17950 /* We use char because int might match the return type of a gcc2
17951 builtin and then its argument prototype would still apply. */
17952 char strlcat (void);
17958 /* The GNU C library defines stubs for functions which it implements
17959 to always fail with ENOSYS. Some functions are actually named
17960 something starting with __ and the normal name is an alias. */
17961 #if defined (__stub_strlcat) || defined (__stub___strlcat)
17962 #error found stub for strlcat
17970 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17971 if { (eval echo "$as_me:17971: \"$ac_link\"") >&5
17972 (eval $ac_link) 2>&5
17974 echo "$as_me:17974: \$? = $ac_status" >&5
17975 (exit "$ac_status"); } &&
17976 { ac_try='test -s "conftest$ac_exeext"'
17977 { (eval echo "$as_me:17977: \"$ac_try\"") >&5
17978 (eval $ac_try) 2>&5
17980 echo "$as_me:17980: \$? = $ac_status" >&5
17981 (exit "$ac_status"); }; }; then
17982 ac_cv_func_strlcat=yes
17984 echo "$as_me: failed program was:" >&5
17985 cat "conftest.$ac_ext" >&5
17986 ac_cv_func_strlcat=no
17988 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17990 echo "$as_me:17990: result: $ac_cv_func_strlcat" >&5
17991 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
17992 if test "$ac_cv_func_strlcat" = yes; then
17994 cat >>confdefs.h <<\EOF
17995 #define HAVE_STRLCAT 1
18000 echo "$as_me:18000: checking for strlcat in -lbsd" >&5
18001 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
18002 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
18003 echo $ECHO_N "(cached) $ECHO_C" >&6
18005 ac_check_lib_save_LIBS=$LIBS
18007 cat >"conftest.$ac_ext" <<_ACEOF
18008 #line 18008 "configure"
18009 #include "confdefs.h"
18011 /* Override any gcc2 internal prototype to avoid an error. */
18015 /* We use char because int might match the return type of a gcc2
18016 builtin and then its argument prototype would still apply. */
18026 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18027 if { (eval echo "$as_me:18027: \"$ac_link\"") >&5
18028 (eval $ac_link) 2>&5
18030 echo "$as_me:18030: \$? = $ac_status" >&5
18031 (exit "$ac_status"); } &&
18032 { ac_try='test -s "conftest$ac_exeext"'
18033 { (eval echo "$as_me:18033: \"$ac_try\"") >&5
18034 (eval $ac_try) 2>&5
18036 echo "$as_me:18036: \$? = $ac_status" >&5
18037 (exit "$ac_status"); }; }; then
18038 ac_cv_lib_bsd_strlcat=yes
18040 echo "$as_me: failed program was:" >&5
18041 cat "conftest.$ac_ext" >&5
18042 ac_cv_lib_bsd_strlcat=no
18044 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18045 LIBS=$ac_check_lib_save_LIBS
18047 echo "$as_me:18047: result: $ac_cv_lib_bsd_strlcat" >&5
18048 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
18049 if test "$ac_cv_lib_bsd_strlcat" = yes; then
18051 cf_add_libs="$LIBS"
18054 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
18055 # filter duplicates
18056 for cf_add_1lib in $cf_add_0lib; do
18057 for cf_add_2lib in $cf_add_libs; do
18058 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
18063 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18065 LIBS="$cf_add_libs"
18067 for ac_header in bsd/string.h
18069 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18070 echo "$as_me:18070: checking for $ac_header" >&5
18071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18073 echo $ECHO_N "(cached) $ECHO_C" >&6
18075 cat >"conftest.$ac_ext" <<_ACEOF
18076 #line 18076 "configure"
18077 #include "confdefs.h"
18078 #include <$ac_header>
18080 if { (eval echo "$as_me:18080: \"$ac_cpp "conftest.$ac_ext"\"") >&5
18081 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
18083 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18085 cat conftest.err >&5
18086 echo "$as_me:18086: \$? = $ac_status" >&5
18087 (exit "$ac_status"); } >/dev/null; then
18088 if test -s conftest.err; then
18089 ac_cpp_err=$ac_c_preproc_warn_flag
18096 if test -z "$ac_cpp_err"; then
18097 eval "$as_ac_Header=yes"
18099 echo "$as_me: failed program was:" >&5
18100 cat "conftest.$ac_ext" >&5
18101 eval "$as_ac_Header=no"
18103 rm -f conftest.err "conftest.$ac_ext"
18105 echo "$as_me:18105: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
18106 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
18107 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
18108 cat >>confdefs.h <<EOF
18109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18115 cat >>confdefs.h <<\EOF
18116 #define HAVE_STRLCAT 1
18123 for ac_func in strlcpy snprintf
18125 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18126 echo "$as_me:18126: checking for $ac_func" >&5
18127 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18128 if eval "test \"\${$as_ac_var+set}\" = set"; then
18129 echo $ECHO_N "(cached) $ECHO_C" >&6
18131 cat >"conftest.$ac_ext" <<_ACEOF
18132 #line 18132 "configure"
18133 #include "confdefs.h"
18134 #define $ac_func autoconf_temporary
18135 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18142 /* We use char because int might match the return type of a gcc2
18143 builtin and then its argument prototype would still apply. */
18144 char $ac_func (void);
18150 /* The GNU C library defines stubs for functions which it implements
18151 to always fail with ENOSYS. Some functions are actually named
18152 something starting with __ and the normal name is an alias. */
18153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18154 #error found stub for $ac_func
18157 return $ac_func ();
18162 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18163 if { (eval echo "$as_me:18163: \"$ac_link\"") >&5
18164 (eval $ac_link) 2>&5
18166 echo "$as_me:18166: \$? = $ac_status" >&5
18167 (exit "$ac_status"); } &&
18168 { ac_try='test -s "conftest$ac_exeext"'
18169 { (eval echo "$as_me:18169: \"$ac_try\"") >&5
18170 (eval $ac_try) 2>&5
18172 echo "$as_me:18172: \$? = $ac_status" >&5
18173 (exit "$ac_status"); }; }; then
18174 eval "$as_ac_var=yes"
18176 echo "$as_me: failed program was:" >&5
18177 cat "conftest.$ac_ext" >&5
18178 eval "$as_ac_var=no"
18180 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18182 echo "$as_me:18182: result: `eval echo '${'"$as_ac_var"'}'`" >&5
18183 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
18184 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
18185 cat >>confdefs.h <<EOF
18186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18194 ### use option --enable-assertions to turn on generation of assertion code
18195 echo "$as_me:18195: checking if you want to enable runtime assertions" >&5
18196 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
18198 # Check whether --enable-assertions or --disable-assertions was given.
18199 if test "${enable_assertions+set}" = set; then
18200 enableval="$enable_assertions"
18201 with_assertions=$enableval
18205 echo "$as_me:18205: result: $with_assertions" >&5
18206 echo "${ECHO_T}$with_assertions" >&6
18209 if test "$with_assertions" = no
18211 CPPFLAGS="$CPPFLAGS -DNDEBUG"
18214 ADAFLAGS="$ADAFLAGS -gnata"
18219 ### use option --disable-leaks to suppress "permanent" leaks, for testing
18221 echo "$as_me:18221: checking if you want to use dmalloc for testing" >&5
18222 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
18224 # Check whether --with-dmalloc or --without-dmalloc was given.
18225 if test "${with_dmalloc+set}" = set; then
18226 withval="$with_dmalloc"
18227 case "x$withval" in
18230 : "${with_cflags:=-g}"
18231 : "${enable_leaks:=no}"
18234 cat >>confdefs.h <<EOF
18235 #define USE_DMALLOC 1
18243 echo "$as_me:18243: result: ${with_dmalloc:-no}" >&5
18244 echo "${ECHO_T}${with_dmalloc:-no}" >&6
18246 case ".$with_cflags" in
18256 cf_new_extra_cppflags=
18258 for cf_add_cflags in -g
18260 case "$cf_fix_cppflags" in
18262 case "$cf_add_cflags" in
18263 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18264 case "$cf_add_cflags" in
18266 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18268 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18269 && test -z "${cf_tst_cflags}" \
18270 && cf_fix_cppflags=yes
18272 if test "$cf_fix_cppflags" = yes ; then
18274 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18275 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18278 elif test "${cf_tst_cflags}" = "\"'" ; then
18280 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18281 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18287 case "$CPPFLAGS" in
18291 case "$cf_add_cflags" in
18293 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18295 CPPFLAGS=`echo "$CPPFLAGS" | \
18296 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18297 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18302 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18303 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18310 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18311 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18318 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18319 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18321 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18323 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18324 && test -z "${cf_tst_cflags}" \
18325 && cf_fix_cppflags=no
18330 if test -n "$cf_new_cflags" ; then
18332 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18333 CFLAGS="${CFLAGS}$cf_new_cflags"
18337 if test -n "$cf_new_cppflags" ; then
18339 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18340 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18344 if test -n "$cf_new_extra_cppflags" ; then
18346 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18347 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18356 if test "$with_dmalloc" = yes ; then
18357 echo "$as_me:18357: checking for dmalloc.h" >&5
18358 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
18359 if test "${ac_cv_header_dmalloc_h+set}" = set; then
18360 echo $ECHO_N "(cached) $ECHO_C" >&6
18362 cat >"conftest.$ac_ext" <<_ACEOF
18363 #line 18363 "configure"
18364 #include "confdefs.h"
18365 #include <dmalloc.h>
18367 if { (eval echo "$as_me:18367: \"$ac_cpp "conftest.$ac_ext"\"") >&5
18368 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
18370 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18372 cat conftest.err >&5
18373 echo "$as_me:18373: \$? = $ac_status" >&5
18374 (exit "$ac_status"); } >/dev/null; then
18375 if test -s conftest.err; then
18376 ac_cpp_err=$ac_c_preproc_warn_flag
18383 if test -z "$ac_cpp_err"; then
18384 ac_cv_header_dmalloc_h=yes
18386 echo "$as_me: failed program was:" >&5
18387 cat "conftest.$ac_ext" >&5
18388 ac_cv_header_dmalloc_h=no
18390 rm -f conftest.err "conftest.$ac_ext"
18392 echo "$as_me:18392: result: $ac_cv_header_dmalloc_h" >&5
18393 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
18394 if test "$ac_cv_header_dmalloc_h" = yes; then
18396 echo "$as_me:18396: checking for dmalloc_debug in -ldmalloc" >&5
18397 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
18398 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
18399 echo $ECHO_N "(cached) $ECHO_C" >&6
18401 ac_check_lib_save_LIBS=$LIBS
18402 LIBS="-ldmalloc $LIBS"
18403 cat >"conftest.$ac_ext" <<_ACEOF
18404 #line 18404 "configure"
18405 #include "confdefs.h"
18407 /* Override any gcc2 internal prototype to avoid an error. */
18411 /* We use char because int might match the return type of a gcc2
18412 builtin and then its argument prototype would still apply. */
18413 char dmalloc_debug ();
18422 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18423 if { (eval echo "$as_me:18423: \"$ac_link\"") >&5
18424 (eval $ac_link) 2>&5
18426 echo "$as_me:18426: \$? = $ac_status" >&5
18427 (exit "$ac_status"); } &&
18428 { ac_try='test -s "conftest$ac_exeext"'
18429 { (eval echo "$as_me:18429: \"$ac_try\"") >&5
18430 (eval $ac_try) 2>&5
18432 echo "$as_me:18432: \$? = $ac_status" >&5
18433 (exit "$ac_status"); }; }; then
18434 ac_cv_lib_dmalloc_dmalloc_debug=yes
18436 echo "$as_me: failed program was:" >&5
18437 cat "conftest.$ac_ext" >&5
18438 ac_cv_lib_dmalloc_dmalloc_debug=no
18440 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18441 LIBS=$ac_check_lib_save_LIBS
18443 echo "$as_me:18443: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
18444 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
18445 if test "$ac_cv_lib_dmalloc_dmalloc_debug" = yes; then
18446 cat >>confdefs.h <<EOF
18447 #define HAVE_LIBDMALLOC 1
18450 LIBS="-ldmalloc $LIBS"
18458 echo "$as_me:18458: checking if you want to use dbmalloc for testing" >&5
18459 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
18461 # Check whether --with-dbmalloc or --without-dbmalloc was given.
18462 if test "${with_dbmalloc+set}" = set; then
18463 withval="$with_dbmalloc"
18464 case "x$withval" in
18467 : "${with_cflags:=-g}"
18468 : "${enable_leaks:=no}"
18471 cat >>confdefs.h <<EOF
18472 #define USE_DBMALLOC 1
18480 echo "$as_me:18480: result: ${with_dbmalloc:-no}" >&5
18481 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
18483 case ".$with_cflags" in
18493 cf_new_extra_cppflags=
18495 for cf_add_cflags in -g
18497 case "$cf_fix_cppflags" in
18499 case "$cf_add_cflags" in
18500 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18501 case "$cf_add_cflags" in
18503 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18505 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18506 && test -z "${cf_tst_cflags}" \
18507 && cf_fix_cppflags=yes
18509 if test "$cf_fix_cppflags" = yes ; then
18511 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18512 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18515 elif test "${cf_tst_cflags}" = "\"'" ; then
18517 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18518 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18524 case "$CPPFLAGS" in
18528 case "$cf_add_cflags" in
18530 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18532 CPPFLAGS=`echo "$CPPFLAGS" | \
18533 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18534 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18539 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18540 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18547 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18548 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18555 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18556 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18558 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18560 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18561 && test -z "${cf_tst_cflags}" \
18562 && cf_fix_cppflags=no
18567 if test -n "$cf_new_cflags" ; then
18569 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18570 CFLAGS="${CFLAGS}$cf_new_cflags"
18574 if test -n "$cf_new_cppflags" ; then
18576 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18577 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18581 if test -n "$cf_new_extra_cppflags" ; then
18583 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18584 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18593 if test "$with_dbmalloc" = yes ; then
18594 echo "$as_me:18594: checking for dbmalloc.h" >&5
18595 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
18596 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
18597 echo $ECHO_N "(cached) $ECHO_C" >&6
18599 cat >"conftest.$ac_ext" <<_ACEOF
18600 #line 18600 "configure"
18601 #include "confdefs.h"
18602 #include <dbmalloc.h>
18604 if { (eval echo "$as_me:18604: \"$ac_cpp "conftest.$ac_ext"\"") >&5
18605 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
18607 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18609 cat conftest.err >&5
18610 echo "$as_me:18610: \$? = $ac_status" >&5
18611 (exit "$ac_status"); } >/dev/null; then
18612 if test -s conftest.err; then
18613 ac_cpp_err=$ac_c_preproc_warn_flag
18620 if test -z "$ac_cpp_err"; then
18621 ac_cv_header_dbmalloc_h=yes
18623 echo "$as_me: failed program was:" >&5
18624 cat "conftest.$ac_ext" >&5
18625 ac_cv_header_dbmalloc_h=no
18627 rm -f conftest.err "conftest.$ac_ext"
18629 echo "$as_me:18629: result: $ac_cv_header_dbmalloc_h" >&5
18630 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
18631 if test "$ac_cv_header_dbmalloc_h" = yes; then
18633 echo "$as_me:18633: checking for debug_malloc in -ldbmalloc" >&5
18634 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
18635 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
18636 echo $ECHO_N "(cached) $ECHO_C" >&6
18638 ac_check_lib_save_LIBS=$LIBS
18639 LIBS="-ldbmalloc $LIBS"
18640 cat >"conftest.$ac_ext" <<_ACEOF
18641 #line 18641 "configure"
18642 #include "confdefs.h"
18644 /* Override any gcc2 internal prototype to avoid an error. */
18648 /* We use char because int might match the return type of a gcc2
18649 builtin and then its argument prototype would still apply. */
18650 char debug_malloc ();
18659 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18660 if { (eval echo "$as_me:18660: \"$ac_link\"") >&5
18661 (eval $ac_link) 2>&5
18663 echo "$as_me:18663: \$? = $ac_status" >&5
18664 (exit "$ac_status"); } &&
18665 { ac_try='test -s "conftest$ac_exeext"'
18666 { (eval echo "$as_me:18666: \"$ac_try\"") >&5
18667 (eval $ac_try) 2>&5
18669 echo "$as_me:18669: \$? = $ac_status" >&5
18670 (exit "$ac_status"); }; }; then
18671 ac_cv_lib_dbmalloc_debug_malloc=yes
18673 echo "$as_me: failed program was:" >&5
18674 cat "conftest.$ac_ext" >&5
18675 ac_cv_lib_dbmalloc_debug_malloc=no
18677 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18678 LIBS=$ac_check_lib_save_LIBS
18680 echo "$as_me:18680: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
18681 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
18682 if test "$ac_cv_lib_dbmalloc_debug_malloc" = yes; then
18683 cat >>confdefs.h <<EOF
18684 #define HAVE_LIBDBMALLOC 1
18687 LIBS="-ldbmalloc $LIBS"
18695 echo "$as_me:18695: checking if you want to use valgrind for testing" >&5
18696 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
18698 # Check whether --with-valgrind or --without-valgrind was given.
18699 if test "${with_valgrind+set}" = set; then
18700 withval="$with_valgrind"
18701 case "x$withval" in
18704 : "${with_cflags:=-g}"
18705 : "${enable_leaks:=no}"
18708 cat >>confdefs.h <<EOF
18709 #define USE_VALGRIND 1
18717 echo "$as_me:18717: result: ${with_valgrind:-no}" >&5
18718 echo "${ECHO_T}${with_valgrind:-no}" >&6
18720 case ".$with_cflags" in
18730 cf_new_extra_cppflags=
18732 for cf_add_cflags in -g
18734 case "$cf_fix_cppflags" in
18736 case "$cf_add_cflags" in
18737 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18738 case "$cf_add_cflags" in
18740 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18742 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18743 && test -z "${cf_tst_cflags}" \
18744 && cf_fix_cppflags=yes
18746 if test "$cf_fix_cppflags" = yes ; then
18748 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18749 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18752 elif test "${cf_tst_cflags}" = "\"'" ; then
18754 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18755 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18761 case "$CPPFLAGS" in
18765 case "$cf_add_cflags" in
18767 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18769 CPPFLAGS=`echo "$CPPFLAGS" | \
18770 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18771 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18776 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18777 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18784 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18785 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18792 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18793 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18795 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18797 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18798 && test -z "${cf_tst_cflags}" \
18799 && cf_fix_cppflags=no
18804 if test -n "$cf_new_cflags" ; then
18806 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18807 CFLAGS="${CFLAGS}$cf_new_cflags"
18811 if test -n "$cf_new_cppflags" ; then
18813 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18814 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18818 if test -n "$cf_new_extra_cppflags" ; then
18820 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18821 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18830 echo "$as_me:18830: checking if you want to perform memory-leak testing" >&5
18831 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
18833 # Check whether --enable-leaks or --disable-leaks was given.
18834 if test "${enable_leaks+set}" = set; then
18835 enableval="$enable_leaks"
18836 enable_leaks=$enableval
18840 if test "x$enable_leaks" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
18841 echo "$as_me:18841: result: $with_no_leaks" >&5
18842 echo "${ECHO_T}$with_no_leaks" >&6
18844 if test "$enable_leaks" = no ; then
18846 cat >>confdefs.h <<\EOF
18850 cat >>confdefs.h <<\EOF
18851 #define YY_NO_LEAKS 1
18856 cat >>confdefs.h <<\EOF
18857 #define HAVE_NC_ALLOC_H 1
18860 ### use option --enable-expanded to generate certain macros as functions
18862 # Check whether --enable-expanded or --disable-expanded was given.
18863 if test "${enable_expanded+set}" = set; then
18864 enableval="$enable_expanded"
18865 test "x$enableval" = xyes &&
18866 cat >>confdefs.h <<\EOF
18867 #define NCURSES_EXPANDED 1
18872 ### use option --disable-macros to suppress macros in favor of functions
18874 # Check whether --enable-macros or --disable-macros was given.
18875 if test "${enable_macros+set}" = set; then
18876 enableval="$enable_macros"
18877 test "$enableval" = no &&
18878 cat >>confdefs.h <<\EOF
18879 #define NCURSES_NOMACROS 1
18884 # Normally we only add trace() to the debug-library. Allow this to be
18885 # extended to all models of the ncurses library:
18887 case "$CFLAGS $CPPFLAGS" in
18893 echo "$as_me:18893: checking whether to add trace feature to all models" >&5
18894 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
18896 # Check whether --with-trace or --without-trace was given.
18897 if test "${with_trace+set}" = set; then
18898 withval="$with_trace"
18899 cf_with_trace=$withval
18901 cf_with_trace=$cf_all_traces
18903 echo "$as_me:18903: result: $cf_with_trace" >&5
18904 echo "${ECHO_T}$cf_with_trace" >&6
18906 if test "x$cf_with_trace" = xyes ; then
18913 cf_new_extra_cppflags=
18915 for cf_add_cflags in -DTRACE
18917 case "$cf_fix_cppflags" in
18919 case "$cf_add_cflags" in
18920 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18921 case "$cf_add_cflags" in
18923 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18925 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18926 && test -z "${cf_tst_cflags}" \
18927 && cf_fix_cppflags=yes
18929 if test "$cf_fix_cppflags" = yes ; then
18931 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18932 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18935 elif test "${cf_tst_cflags}" = "\"'" ; then
18937 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18938 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18944 case "$CPPFLAGS" in
18948 case "$cf_add_cflags" in
18950 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18952 CPPFLAGS=`echo "$CPPFLAGS" | \
18953 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18954 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18959 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18960 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18967 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18968 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18975 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18976 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18978 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18980 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18981 && test -z "${cf_tst_cflags}" \
18982 && cf_fix_cppflags=no
18987 if test -n "$cf_new_cflags" ; then
18989 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18990 CFLAGS="${CFLAGS}$cf_new_cflags"
18994 if test -n "$cf_new_cppflags" ; then
18996 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18997 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
19001 if test -n "$cf_new_extra_cppflags" ; then
19003 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
19004 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
19008 cat >>confdefs.h <<\EOF
19009 #define HAVE__TRACEF 1
19017 echo "$as_me:19017: checking if we want to use GNAT projects" >&5
19018 echo $ECHO_N "checking if we want to use GNAT projects... $ECHO_C" >&6
19020 # Check whether --enable-gnat-projects or --disable-gnat-projects was given.
19021 if test "${enable_gnat_projects+set}" = set; then
19022 enableval="$enable_gnat_projects"
19023 test "$enableval" != no && enableval=yes
19024 if test "$enableval" != "yes" ; then
19025 enable_gnat_projects=no
19027 enable_gnat_projects=yes
19031 enable_gnat_projects=yes
19034 echo "$as_me:19034: result: $enable_gnat_projects" >&5
19035 echo "${ECHO_T}$enable_gnat_projects" >&6
19037 ### Checks for libraries.
19038 case "$cf_cv_system_name" in
19039 (*mingw32*|*mingw64*)
19040 # Note: WINVER may be a problem with Windows 10
19041 if test "x$with_exp_win32" = xyes ; then
19042 CPPFLAGS="$CPPFLAGS -DWINVER=0x0600 -DWIN32_LEAN_AND_MEAN"
19044 CPPFLAGS="$CPPFLAGS -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN"
19047 echo "$as_me:19047: checking if ssp library is needed" >&5
19048 echo $ECHO_N "checking if ssp library is needed... $ECHO_C" >&6
19049 if test "${cf_cv_need_libssp+set}" = set; then
19050 echo $ECHO_N "(cached) $ECHO_C" >&6
19053 cat >"conftest.$ac_ext" <<_ACEOF
19054 #line 19054 "configure"
19055 #include "confdefs.h"
19057 #include <sys/types.h>
19058 #include <dirent.h>
19064 DIR *dp = opendir(".");
19070 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19071 if { (eval echo "$as_me:19071: \"$ac_link\"") >&5
19072 (eval $ac_link) 2>&5
19074 echo "$as_me:19074: \$? = $ac_status" >&5
19075 (exit "$ac_status"); } &&
19076 { ac_try='test -s "conftest$ac_exeext"'
19077 { (eval echo "$as_me:19077: \"$ac_try\"") >&5
19078 (eval $ac_try) 2>&5
19080 echo "$as_me:19080: \$? = $ac_status" >&5
19081 (exit "$ac_status"); }; }; then
19082 cf_cv_need_libssp=no
19084 echo "$as_me: failed program was:" >&5
19085 cat "conftest.$ac_ext" >&5
19087 cf_save_LIBS="$LIBS"
19089 cat >"conftest.$ac_ext" <<_ACEOF
19090 #line 19090 "configure"
19091 #include "confdefs.h"
19093 #include <sys/types.h>
19094 #include <dirent.h>
19100 DIR *dp = opendir(".");
19106 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19107 if { (eval echo "$as_me:19107: \"$ac_link\"") >&5
19108 (eval $ac_link) 2>&5
19110 echo "$as_me:19110: \$? = $ac_status" >&5
19111 (exit "$ac_status"); } &&
19112 { ac_try='test -s "conftest$ac_exeext"'
19113 { (eval echo "$as_me:19113: \"$ac_try\"") >&5
19114 (eval $ac_try) 2>&5
19116 echo "$as_me:19116: \$? = $ac_status" >&5
19117 (exit "$ac_status"); }; }; then
19118 cf_cv_need_libssp=yes
19120 echo "$as_me: failed program was:" >&5
19121 cat "conftest.$ac_ext" >&5
19122 cf_cv_need_libssp=maybe
19124 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19125 LIBS="$cf_save_LIBS"
19128 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19130 echo "$as_me:19130: result: $cf_cv_need_libssp" >&5
19131 echo "${ECHO_T}$cf_cv_need_libssp" >&6
19133 if test "x$cf_cv_need_libssp" = xyes
19136 cf_add_libs="$LIBS"
19139 for cf_add_1lib in -lssp; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19140 # filter duplicates
19141 for cf_add_1lib in $cf_add_0lib; do
19142 for cf_add_2lib in $cf_add_libs; do
19143 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19148 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19150 LIBS="$cf_add_libs"
19159 echo "$as_me:19159: checking if -lm needed for math functions" >&5
19160 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
19161 if test "${cf_cv_need_libm+set}" = set; then
19162 echo $ECHO_N "(cached) $ECHO_C" >&6
19165 cat >"conftest.$ac_ext" <<_ACEOF
19166 #line 19166 "configure"
19167 #include "confdefs.h"
19170 #include <stdlib.h>
19176 double x = rand(); printf("result = %g\\n", pow(sin(x),x))
19181 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19182 if { (eval echo "$as_me:19182: \"$ac_link\"") >&5
19183 (eval $ac_link) 2>&5
19185 echo "$as_me:19185: \$? = $ac_status" >&5
19186 (exit "$ac_status"); } &&
19187 { ac_try='test -s "conftest$ac_exeext"'
19188 { (eval echo "$as_me:19188: \"$ac_try\"") >&5
19189 (eval $ac_try) 2>&5
19191 echo "$as_me:19191: \$? = $ac_status" >&5
19192 (exit "$ac_status"); }; }; then
19195 echo "$as_me: failed program was:" >&5
19196 cat "conftest.$ac_ext" >&5
19197 cf_cv_need_libm=yes
19199 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19201 echo "$as_me:19201: result: $cf_cv_need_libm" >&5
19202 echo "${ECHO_T}$cf_cv_need_libm" >&6
19204 if test "$cf_cv_need_libm" = yes
19207 cf_save_LIBS="$LIBS"
19209 echo "$as_me:19209: checking if -lm is available for math functions" >&5
19210 echo $ECHO_N "checking if -lm is available for math functions... $ECHO_C" >&6
19211 if test "${cf_cv_have_libm+set}" = set; then
19212 echo $ECHO_N "(cached) $ECHO_C" >&6
19215 cat >"conftest.$ac_ext" <<_ACEOF
19216 #line 19216 "configure"
19217 #include "confdefs.h"
19220 #include <stdlib.h>
19226 double x = rand(); printf("result = %g\\n", pow(sin(x),x))
19231 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19232 if { (eval echo "$as_me:19232: \"$ac_link\"") >&5
19233 (eval $ac_link) 2>&5
19235 echo "$as_me:19235: \$? = $ac_status" >&5
19236 (exit "$ac_status"); } &&
19237 { ac_try='test -s "conftest$ac_exeext"'
19238 { (eval echo "$as_me:19238: \"$ac_try\"") >&5
19239 (eval $ac_try) 2>&5
19241 echo "$as_me:19241: \$? = $ac_status" >&5
19242 (exit "$ac_status"); }; }; then
19243 cf_cv_have_libm=yes
19245 echo "$as_me: failed program was:" >&5
19246 cat "conftest.$ac_ext" >&5
19249 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19251 echo "$as_me:19251: result: $cf_cv_have_libm" >&5
19252 echo "${ECHO_T}$cf_cv_have_libm" >&6
19253 LIBS="$cf_save_LIBS"
19255 if test "$cf_cv_have_libm" = yes
19260 cf_cv_have_libm=yes
19263 if test "$cf_cv_have_libm" = yes
19266 cat >>confdefs.h <<\EOF
19267 #define HAVE_MATH_FUNCS 1
19272 ### Checks for header files.
19273 echo "$as_me:19273: checking whether time.h and sys/time.h may both be included" >&5
19274 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19275 if test "${ac_cv_header_time+set}" = set; then
19276 echo $ECHO_N "(cached) $ECHO_C" >&6
19278 cat >"conftest.$ac_ext" <<_ACEOF
19279 #line 19279 "configure"
19280 #include "confdefs.h"
19281 #include <sys/types.h>
19282 #include <sys/time.h>
19288 if ((struct tm *) 0)
19294 rm -f "conftest.$ac_objext"
19295 if { (eval echo "$as_me:19295: \"$ac_compile\"") >&5
19296 (eval $ac_compile) 2>&5
19298 echo "$as_me:19298: \$? = $ac_status" >&5
19299 (exit "$ac_status"); } &&
19300 { ac_try='test -s "conftest.$ac_objext"'
19301 { (eval echo "$as_me:19301: \"$ac_try\"") >&5
19302 (eval $ac_try) 2>&5
19304 echo "$as_me:19304: \$? = $ac_status" >&5
19305 (exit "$ac_status"); }; }; then
19306 ac_cv_header_time=yes
19308 echo "$as_me: failed program was:" >&5
19309 cat "conftest.$ac_ext" >&5
19310 ac_cv_header_time=no
19312 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
19314 echo "$as_me:19314: result: $ac_cv_header_time" >&5
19315 echo "${ECHO_T}$ac_cv_header_time" >&6
19316 if test $ac_cv_header_time = yes; then
19318 cat >>confdefs.h <<\EOF
19319 #define TIME_WITH_SYS_TIME 1
19328 # -lsystre -ltre -lintl -liconv
19329 echo "$as_me:19329: checking for regcomp in -lsystre" >&5
19330 echo $ECHO_N "checking for regcomp in -lsystre... $ECHO_C" >&6
19331 if test "${ac_cv_lib_systre_regcomp+set}" = set; then
19332 echo $ECHO_N "(cached) $ECHO_C" >&6
19334 ac_check_lib_save_LIBS=$LIBS
19335 LIBS="-lsystre $LIBS"
19336 cat >"conftest.$ac_ext" <<_ACEOF
19337 #line 19337 "configure"
19338 #include "confdefs.h"
19340 /* Override any gcc2 internal prototype to avoid an error. */
19344 /* We use char because int might match the return type of a gcc2
19345 builtin and then its argument prototype would still apply. */
19355 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19356 if { (eval echo "$as_me:19356: \"$ac_link\"") >&5
19357 (eval $ac_link) 2>&5
19359 echo "$as_me:19359: \$? = $ac_status" >&5
19360 (exit "$ac_status"); } &&
19361 { ac_try='test -s "conftest$ac_exeext"'
19362 { (eval echo "$as_me:19362: \"$ac_try\"") >&5
19363 (eval $ac_try) 2>&5
19365 echo "$as_me:19365: \$? = $ac_status" >&5
19366 (exit "$ac_status"); }; }; then
19367 ac_cv_lib_systre_regcomp=yes
19369 echo "$as_me: failed program was:" >&5
19370 cat "conftest.$ac_ext" >&5
19371 ac_cv_lib_systre_regcomp=no
19373 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19374 LIBS=$ac_check_lib_save_LIBS
19376 echo "$as_me:19376: result: $ac_cv_lib_systre_regcomp" >&5
19377 echo "${ECHO_T}$ac_cv_lib_systre_regcomp" >&6
19378 if test "$ac_cv_lib_systre_regcomp" = yes; then
19380 echo "$as_me:19380: checking for libiconv_open in -liconv" >&5
19381 echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6
19382 if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then
19383 echo $ECHO_N "(cached) $ECHO_C" >&6
19385 ac_check_lib_save_LIBS=$LIBS
19386 LIBS="-liconv $LIBS"
19387 cat >"conftest.$ac_ext" <<_ACEOF
19388 #line 19388 "configure"
19389 #include "confdefs.h"
19391 /* Override any gcc2 internal prototype to avoid an error. */
19395 /* We use char because int might match the return type of a gcc2
19396 builtin and then its argument prototype would still apply. */
19397 char libiconv_open ();
19406 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19407 if { (eval echo "$as_me:19407: \"$ac_link\"") >&5
19408 (eval $ac_link) 2>&5
19410 echo "$as_me:19410: \$? = $ac_status" >&5
19411 (exit "$ac_status"); } &&
19412 { ac_try='test -s "conftest$ac_exeext"'
19413 { (eval echo "$as_me:19413: \"$ac_try\"") >&5
19414 (eval $ac_try) 2>&5
19416 echo "$as_me:19416: \$? = $ac_status" >&5
19417 (exit "$ac_status"); }; }; then
19418 ac_cv_lib_iconv_libiconv_open=yes
19420 echo "$as_me: failed program was:" >&5
19421 cat "conftest.$ac_ext" >&5
19422 ac_cv_lib_iconv_libiconv_open=no
19424 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19425 LIBS=$ac_check_lib_save_LIBS
19427 echo "$as_me:19427: result: $ac_cv_lib_iconv_libiconv_open" >&5
19428 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6
19429 if test "$ac_cv_lib_iconv_libiconv_open" = yes; then
19431 cf_add_libs="$LIBS"
19434 for cf_add_1lib in -liconv; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19435 # filter duplicates
19436 for cf_add_1lib in $cf_add_0lib; do
19437 for cf_add_2lib in $cf_add_libs; do
19438 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19443 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19445 LIBS="$cf_add_libs"
19449 echo "$as_me:19449: checking for libintl_gettext in -lintl" >&5
19450 echo $ECHO_N "checking for libintl_gettext in -lintl... $ECHO_C" >&6
19451 if test "${ac_cv_lib_intl_libintl_gettext+set}" = set; then
19452 echo $ECHO_N "(cached) $ECHO_C" >&6
19454 ac_check_lib_save_LIBS=$LIBS
19455 LIBS="-lintl $LIBS"
19456 cat >"conftest.$ac_ext" <<_ACEOF
19457 #line 19457 "configure"
19458 #include "confdefs.h"
19460 /* Override any gcc2 internal prototype to avoid an error. */
19464 /* We use char because int might match the return type of a gcc2
19465 builtin and then its argument prototype would still apply. */
19466 char libintl_gettext ();
19470 libintl_gettext ();
19475 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19476 if { (eval echo "$as_me:19476: \"$ac_link\"") >&5
19477 (eval $ac_link) 2>&5
19479 echo "$as_me:19479: \$? = $ac_status" >&5
19480 (exit "$ac_status"); } &&
19481 { ac_try='test -s "conftest$ac_exeext"'
19482 { (eval echo "$as_me:19482: \"$ac_try\"") >&5
19483 (eval $ac_try) 2>&5
19485 echo "$as_me:19485: \$? = $ac_status" >&5
19486 (exit "$ac_status"); }; }; then
19487 ac_cv_lib_intl_libintl_gettext=yes
19489 echo "$as_me: failed program was:" >&5
19490 cat "conftest.$ac_ext" >&5
19491 ac_cv_lib_intl_libintl_gettext=no
19493 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19494 LIBS=$ac_check_lib_save_LIBS
19496 echo "$as_me:19496: result: $ac_cv_lib_intl_libintl_gettext" >&5
19497 echo "${ECHO_T}$ac_cv_lib_intl_libintl_gettext" >&6
19498 if test "$ac_cv_lib_intl_libintl_gettext" = yes; then
19500 cf_add_libs="$LIBS"
19503 for cf_add_1lib in -lintl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19504 # filter duplicates
19505 for cf_add_1lib in $cf_add_0lib; do
19506 for cf_add_2lib in $cf_add_libs; do
19507 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19512 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19514 LIBS="$cf_add_libs"
19518 echo "$as_me:19518: checking for tre_regcomp in -ltre" >&5
19519 echo $ECHO_N "checking for tre_regcomp in -ltre... $ECHO_C" >&6
19520 if test "${ac_cv_lib_tre_tre_regcomp+set}" = set; then
19521 echo $ECHO_N "(cached) $ECHO_C" >&6
19523 ac_check_lib_save_LIBS=$LIBS
19525 cat >"conftest.$ac_ext" <<_ACEOF
19526 #line 19526 "configure"
19527 #include "confdefs.h"
19529 /* Override any gcc2 internal prototype to avoid an error. */
19533 /* We use char because int might match the return type of a gcc2
19534 builtin and then its argument prototype would still apply. */
19535 char tre_regcomp ();
19544 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19545 if { (eval echo "$as_me:19545: \"$ac_link\"") >&5
19546 (eval $ac_link) 2>&5
19548 echo "$as_me:19548: \$? = $ac_status" >&5
19549 (exit "$ac_status"); } &&
19550 { ac_try='test -s "conftest$ac_exeext"'
19551 { (eval echo "$as_me:19551: \"$ac_try\"") >&5
19552 (eval $ac_try) 2>&5
19554 echo "$as_me:19554: \$? = $ac_status" >&5
19555 (exit "$ac_status"); }; }; then
19556 ac_cv_lib_tre_tre_regcomp=yes
19558 echo "$as_me: failed program was:" >&5
19559 cat "conftest.$ac_ext" >&5
19560 ac_cv_lib_tre_tre_regcomp=no
19562 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19563 LIBS=$ac_check_lib_save_LIBS
19565 echo "$as_me:19565: result: $ac_cv_lib_tre_tre_regcomp" >&5
19566 echo "${ECHO_T}$ac_cv_lib_tre_tre_regcomp" >&6
19567 if test "$ac_cv_lib_tre_tre_regcomp" = yes; then
19569 cf_add_libs="$LIBS"
19572 for cf_add_1lib in -ltre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19573 # filter duplicates
19574 for cf_add_1lib in $cf_add_0lib; do
19575 for cf_add_2lib in $cf_add_libs; do
19576 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19581 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19583 LIBS="$cf_add_libs"
19587 cf_add_libs="$LIBS"
19590 for cf_add_1lib in -lsystre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19591 # filter duplicates
19592 for cf_add_1lib in $cf_add_0lib; do
19593 for cf_add_2lib in $cf_add_libs; do
19594 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19599 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19601 LIBS="$cf_add_libs"
19603 cf_regex_func=regcomp
19607 echo "$as_me:19607: checking for regcomp in -lgnurx" >&5
19608 echo $ECHO_N "checking for regcomp in -lgnurx... $ECHO_C" >&6
19609 if test "${ac_cv_lib_gnurx_regcomp+set}" = set; then
19610 echo $ECHO_N "(cached) $ECHO_C" >&6
19612 ac_check_lib_save_LIBS=$LIBS
19613 LIBS="-lgnurx $LIBS"
19614 cat >"conftest.$ac_ext" <<_ACEOF
19615 #line 19615 "configure"
19616 #include "confdefs.h"
19618 /* Override any gcc2 internal prototype to avoid an error. */
19622 /* We use char because int might match the return type of a gcc2
19623 builtin and then its argument prototype would still apply. */
19633 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19634 if { (eval echo "$as_me:19634: \"$ac_link\"") >&5
19635 (eval $ac_link) 2>&5
19637 echo "$as_me:19637: \$? = $ac_status" >&5
19638 (exit "$ac_status"); } &&
19639 { ac_try='test -s "conftest$ac_exeext"'
19640 { (eval echo "$as_me:19640: \"$ac_try\"") >&5
19641 (eval $ac_try) 2>&5
19643 echo "$as_me:19643: \$? = $ac_status" >&5
19644 (exit "$ac_status"); }; }; then
19645 ac_cv_lib_gnurx_regcomp=yes
19647 echo "$as_me: failed program was:" >&5
19648 cat "conftest.$ac_ext" >&5
19649 ac_cv_lib_gnurx_regcomp=no
19651 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19652 LIBS=$ac_check_lib_save_LIBS
19654 echo "$as_me:19654: result: $ac_cv_lib_gnurx_regcomp" >&5
19655 echo "${ECHO_T}$ac_cv_lib_gnurx_regcomp" >&6
19656 if test "$ac_cv_lib_gnurx_regcomp" = yes; then
19658 cf_add_libs="$LIBS"
19661 for cf_add_1lib in -lgnurx; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19662 # filter duplicates
19663 for cf_add_1lib in $cf_add_0lib; do
19664 for cf_add_2lib in $cf_add_libs; do
19665 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19670 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19672 LIBS="$cf_add_libs"
19674 cf_regex_func=regcomp
19681 cf_regex_libs="regex re"
19682 echo "$as_me:19682: checking for regcomp" >&5
19683 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
19684 if test "${ac_cv_func_regcomp+set}" = set; then
19685 echo $ECHO_N "(cached) $ECHO_C" >&6
19687 cat >"conftest.$ac_ext" <<_ACEOF
19688 #line 19688 "configure"
19689 #include "confdefs.h"
19690 #define regcomp autoconf_temporary
19691 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19698 /* We use char because int might match the return type of a gcc2
19699 builtin and then its argument prototype would still apply. */
19700 char regcomp (void);
19706 /* The GNU C library defines stubs for functions which it implements
19707 to always fail with ENOSYS. Some functions are actually named
19708 something starting with __ and the normal name is an alias. */
19709 #if defined (__stub_regcomp) || defined (__stub___regcomp)
19710 #error found stub for regcomp
19718 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19719 if { (eval echo "$as_me:19719: \"$ac_link\"") >&5
19720 (eval $ac_link) 2>&5
19722 echo "$as_me:19722: \$? = $ac_status" >&5
19723 (exit "$ac_status"); } &&
19724 { ac_try='test -s "conftest$ac_exeext"'
19725 { (eval echo "$as_me:19725: \"$ac_try\"") >&5
19726 (eval $ac_try) 2>&5
19728 echo "$as_me:19728: \$? = $ac_status" >&5
19729 (exit "$ac_status"); }; }; then
19730 ac_cv_func_regcomp=yes
19732 echo "$as_me: failed program was:" >&5
19733 cat "conftest.$ac_ext" >&5
19734 ac_cv_func_regcomp=no
19736 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19738 echo "$as_me:19738: result: $ac_cv_func_regcomp" >&5
19739 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
19740 if test "$ac_cv_func_regcomp" = yes; then
19741 cf_regex_func=regcomp
19744 for cf_regex_lib in $cf_regex_libs
19746 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
19747 echo "$as_me:19747: checking for regcomp in -l$cf_regex_lib" >&5
19748 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
19749 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
19750 echo $ECHO_N "(cached) $ECHO_C" >&6
19752 ac_check_lib_save_LIBS=$LIBS
19753 LIBS="-l$cf_regex_lib $LIBS"
19754 cat >"conftest.$ac_ext" <<_ACEOF
19755 #line 19755 "configure"
19756 #include "confdefs.h"
19758 /* Override any gcc2 internal prototype to avoid an error. */
19762 /* We use char because int might match the return type of a gcc2
19763 builtin and then its argument prototype would still apply. */
19773 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19774 if { (eval echo "$as_me:19774: \"$ac_link\"") >&5
19775 (eval $ac_link) 2>&5
19777 echo "$as_me:19777: \$? = $ac_status" >&5
19778 (exit "$ac_status"); } &&
19779 { ac_try='test -s "conftest$ac_exeext"'
19780 { (eval echo "$as_me:19780: \"$ac_try\"") >&5
19781 (eval $ac_try) 2>&5
19783 echo "$as_me:19783: \$? = $ac_status" >&5
19784 (exit "$ac_status"); }; }; then
19785 eval "$as_ac_Lib=yes"
19787 echo "$as_me: failed program was:" >&5
19788 cat "conftest.$ac_ext" >&5
19789 eval "$as_ac_Lib=no"
19791 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19792 LIBS=$ac_check_lib_save_LIBS
19794 echo "$as_me:19794: result: `eval echo '${'"$as_ac_Lib"'}'`" >&5
19795 echo "${ECHO_T}`eval echo '${'"$as_ac_Lib"'}'`" >&6
19796 if test "`eval echo '${'"$as_ac_Lib"'}'`" = yes; then
19798 cf_add_libs="$LIBS"
19801 for cf_add_1lib in -l$cf_regex_lib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19802 # filter duplicates
19803 for cf_add_1lib in $cf_add_0lib; do
19804 for cf_add_2lib in $cf_add_libs; do
19805 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19810 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19812 LIBS="$cf_add_libs"
19814 cf_regex_func=regcomp
19825 if test "$cf_regex_func" = no ; then
19826 echo "$as_me:19826: checking for compile" >&5
19827 echo $ECHO_N "checking for compile... $ECHO_C" >&6
19828 if test "${ac_cv_func_compile+set}" = set; then
19829 echo $ECHO_N "(cached) $ECHO_C" >&6
19831 cat >"conftest.$ac_ext" <<_ACEOF
19832 #line 19832 "configure"
19833 #include "confdefs.h"
19834 #define compile autoconf_temporary
19835 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19842 /* We use char because int might match the return type of a gcc2
19843 builtin and then its argument prototype would still apply. */
19844 char compile (void);
19850 /* The GNU C library defines stubs for functions which it implements
19851 to always fail with ENOSYS. Some functions are actually named
19852 something starting with __ and the normal name is an alias. */
19853 #if defined (__stub_compile) || defined (__stub___compile)
19854 #error found stub for compile
19862 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19863 if { (eval echo "$as_me:19863: \"$ac_link\"") >&5
19864 (eval $ac_link) 2>&5
19866 echo "$as_me:19866: \$? = $ac_status" >&5
19867 (exit "$ac_status"); } &&
19868 { ac_try='test -s "conftest$ac_exeext"'
19869 { (eval echo "$as_me:19869: \"$ac_try\"") >&5
19870 (eval $ac_try) 2>&5
19872 echo "$as_me:19872: \$? = $ac_status" >&5
19873 (exit "$ac_status"); }; }; then
19874 ac_cv_func_compile=yes
19876 echo "$as_me: failed program was:" >&5
19877 cat "conftest.$ac_ext" >&5
19878 ac_cv_func_compile=no
19880 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19882 echo "$as_me:19882: result: $ac_cv_func_compile" >&5
19883 echo "${ECHO_T}$ac_cv_func_compile" >&6
19884 if test "$ac_cv_func_compile" = yes; then
19885 cf_regex_func=compile
19888 echo "$as_me:19888: checking for compile in -lgen" >&5
19889 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
19890 if test "${ac_cv_lib_gen_compile+set}" = set; then
19891 echo $ECHO_N "(cached) $ECHO_C" >&6
19893 ac_check_lib_save_LIBS=$LIBS
19895 cat >"conftest.$ac_ext" <<_ACEOF
19896 #line 19896 "configure"
19897 #include "confdefs.h"
19899 /* Override any gcc2 internal prototype to avoid an error. */
19903 /* We use char because int might match the return type of a gcc2
19904 builtin and then its argument prototype would still apply. */
19914 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19915 if { (eval echo "$as_me:19915: \"$ac_link\"") >&5
19916 (eval $ac_link) 2>&5
19918 echo "$as_me:19918: \$? = $ac_status" >&5
19919 (exit "$ac_status"); } &&
19920 { ac_try='test -s "conftest$ac_exeext"'
19921 { (eval echo "$as_me:19921: \"$ac_try\"") >&5
19922 (eval $ac_try) 2>&5
19924 echo "$as_me:19924: \$? = $ac_status" >&5
19925 (exit "$ac_status"); }; }; then
19926 ac_cv_lib_gen_compile=yes
19928 echo "$as_me: failed program was:" >&5
19929 cat "conftest.$ac_ext" >&5
19930 ac_cv_lib_gen_compile=no
19932 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19933 LIBS=$ac_check_lib_save_LIBS
19935 echo "$as_me:19935: result: $ac_cv_lib_gen_compile" >&5
19936 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
19937 if test "$ac_cv_lib_gen_compile" = yes; then
19939 cf_add_libs="$LIBS"
19942 for cf_add_1lib in -lgen; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19943 # filter duplicates
19944 for cf_add_1lib in $cf_add_0lib; do
19945 for cf_add_2lib in $cf_add_libs; do
19946 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19951 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19953 LIBS="$cf_add_libs"
19955 cf_regex_func=compile
19962 if test "$cf_regex_func" = no ; then
19963 { echo "$as_me:19963: WARNING: cannot find regular expression library" >&5
19964 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
19967 echo "$as_me:19967: checking for regular-expression headers" >&5
19968 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
19969 if test "${cf_cv_regex_hdrs+set}" = set; then
19970 echo $ECHO_N "(cached) $ECHO_C" >&6
19973 cf_cv_regex_hdrs=no
19974 case "$cf_regex_func" in
19976 for cf_regex_hdr in regexp.h regexpr.h
19978 cat >"conftest.$ac_ext" <<_ACEOF
19979 #line 19979 "configure"
19980 #include "confdefs.h"
19981 #include <$cf_regex_hdr>
19986 char *p = compile("", "", "", 0);
19987 int x = step("", "");
19995 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19996 if { (eval echo "$as_me:19996: \"$ac_link\"") >&5
19997 (eval $ac_link) 2>&5
19999 echo "$as_me:19999: \$? = $ac_status" >&5
20000 (exit "$ac_status"); } &&
20001 { ac_try='test -s "conftest$ac_exeext"'
20002 { (eval echo "$as_me:20002: \"$ac_try\"") >&5
20003 (eval $ac_try) 2>&5
20005 echo "$as_me:20005: \$? = $ac_status" >&5
20006 (exit "$ac_status"); }; }; then
20008 cf_cv_regex_hdrs=$cf_regex_hdr
20012 echo "$as_me: failed program was:" >&5
20013 cat "conftest.$ac_ext" >&5
20015 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20019 for cf_regex_hdr in regex.h
20021 cat >"conftest.$ac_ext" <<_ACEOF
20022 #line 20022 "configure"
20023 #include "confdefs.h"
20024 #include <sys/types.h>
20025 #include <$cf_regex_hdr>
20031 int x = regcomp(p, "", 0);
20032 int y = regexec(p, "", 0, 0, 0);
20041 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20042 if { (eval echo "$as_me:20042: \"$ac_link\"") >&5
20043 (eval $ac_link) 2>&5
20045 echo "$as_me:20045: \$? = $ac_status" >&5
20046 (exit "$ac_status"); } &&
20047 { ac_try='test -s "conftest$ac_exeext"'
20048 { (eval echo "$as_me:20048: \"$ac_try\"") >&5
20049 (eval $ac_try) 2>&5
20051 echo "$as_me:20051: \$? = $ac_status" >&5
20052 (exit "$ac_status"); }; }; then
20054 cf_cv_regex_hdrs=$cf_regex_hdr
20058 echo "$as_me: failed program was:" >&5
20059 cat "conftest.$ac_ext" >&5
20061 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20067 echo "$as_me:20067: result: $cf_cv_regex_hdrs" >&5
20068 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
20070 case "$cf_cv_regex_hdrs" in
20071 (no) { echo "$as_me:20071: WARNING: no regular expression header found" >&5
20072 echo "$as_me: WARNING: no regular expression header found" >&2;} ;;
20074 cat >>confdefs.h <<\EOF
20075 #define HAVE_REGEX_H_FUNCS 1
20079 cat >>confdefs.h <<\EOF
20080 #define HAVE_REGEXP_H_FUNCS 1
20084 cat >>confdefs.h <<\EOF
20085 #define HAVE_REGEXPR_H_FUNCS 1
20108 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20109 echo "$as_me:20109: checking for $ac_header" >&5
20110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20112 echo $ECHO_N "(cached) $ECHO_C" >&6
20114 cat >"conftest.$ac_ext" <<_ACEOF
20115 #line 20115 "configure"
20116 #include "confdefs.h"
20117 #include <$ac_header>
20119 if { (eval echo "$as_me:20119: \"$ac_cpp "conftest.$ac_ext"\"") >&5
20120 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
20122 $EGREP -v '^ *\+' conftest.er1 >conftest.err
20124 cat conftest.err >&5
20125 echo "$as_me:20125: \$? = $ac_status" >&5
20126 (exit "$ac_status"); } >/dev/null; then
20127 if test -s conftest.err; then
20128 ac_cpp_err=$ac_c_preproc_warn_flag
20135 if test -z "$ac_cpp_err"; then
20136 eval "$as_ac_Header=yes"
20138 echo "$as_me: failed program was:" >&5
20139 cat "conftest.$ac_ext" >&5
20140 eval "$as_ac_Header=no"
20142 rm -f conftest.err "conftest.$ac_ext"
20144 echo "$as_me:20144: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
20145 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
20146 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
20147 cat >>confdefs.h <<EOF
20148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20154 for ac_header in unistd.h getopt.h
20156 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20157 echo "$as_me:20157: checking for $ac_header" >&5
20158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20160 echo $ECHO_N "(cached) $ECHO_C" >&6
20162 cat >"conftest.$ac_ext" <<_ACEOF
20163 #line 20163 "configure"
20164 #include "confdefs.h"
20165 #include <$ac_header>
20167 if { (eval echo "$as_me:20167: \"$ac_cpp "conftest.$ac_ext"\"") >&5
20168 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
20170 $EGREP -v '^ *\+' conftest.er1 >conftest.err
20172 cat conftest.err >&5
20173 echo "$as_me:20173: \$? = $ac_status" >&5
20174 (exit "$ac_status"); } >/dev/null; then
20175 if test -s conftest.err; then
20176 ac_cpp_err=$ac_c_preproc_warn_flag
20183 if test -z "$ac_cpp_err"; then
20184 eval "$as_ac_Header=yes"
20186 echo "$as_me: failed program was:" >&5
20187 cat "conftest.$ac_ext" >&5
20188 eval "$as_ac_Header=no"
20190 rm -f conftest.err "conftest.$ac_ext"
20192 echo "$as_me:20192: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
20193 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
20194 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
20195 cat >>confdefs.h <<EOF
20196 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20202 echo "$as_me:20202: checking for header declaring getopt variables" >&5
20203 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
20204 if test "${cf_cv_getopt_header+set}" = set; then
20205 echo $ECHO_N "(cached) $ECHO_C" >&6
20208 cf_cv_getopt_header=none
20209 for cf_header in stdio.h stdlib.h unistd.h getopt.h
20211 cat >"conftest.$ac_ext" <<_ACEOF
20212 #line 20212 "configure"
20213 #include "confdefs.h"
20215 #include <$cf_header>
20219 int x = optind; char *y = optarg; (void)x; (void)y
20224 rm -f "conftest.$ac_objext"
20225 if { (eval echo "$as_me:20225: \"$ac_compile\"") >&5
20226 (eval $ac_compile) 2>&5
20228 echo "$as_me:20228: \$? = $ac_status" >&5
20229 (exit "$ac_status"); } &&
20230 { ac_try='test -s "conftest.$ac_objext"'
20231 { (eval echo "$as_me:20231: \"$ac_try\"") >&5
20232 (eval $ac_try) 2>&5
20234 echo "$as_me:20234: \$? = $ac_status" >&5
20235 (exit "$ac_status"); }; }; then
20236 cf_cv_getopt_header=$cf_header
20239 echo "$as_me: failed program was:" >&5
20240 cat "conftest.$ac_ext" >&5
20242 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20246 echo "$as_me:20246: result: $cf_cv_getopt_header" >&5
20247 echo "${ECHO_T}$cf_cv_getopt_header" >&6
20248 if test "$cf_cv_getopt_header" != none ; then
20250 cat >>confdefs.h <<\EOF
20251 #define HAVE_GETOPT_HEADER 1
20255 if test "$cf_cv_getopt_header" = getopt.h ; then
20257 cat >>confdefs.h <<\EOF
20258 #define NEED_GETOPT_H 1
20263 echo "$as_me:20263: checking if external environ is declared" >&5
20264 echo $ECHO_N "checking if external environ is declared... $ECHO_C" >&6
20265 if test "${cf_cv_dcl_environ+set}" = set; then
20266 echo $ECHO_N "(cached) $ECHO_C" >&6
20269 cat >"conftest.$ac_ext" <<_ACEOF
20270 #line 20270 "configure"
20271 #include "confdefs.h"
20273 $ac_includes_default
20277 void* x = (void*) environ; (void)x
20282 rm -f "conftest.$ac_objext"
20283 if { (eval echo "$as_me:20283: \"$ac_compile\"") >&5
20284 (eval $ac_compile) 2>&5
20286 echo "$as_me:20286: \$? = $ac_status" >&5
20287 (exit "$ac_status"); } &&
20288 { ac_try='test -s "conftest.$ac_objext"'
20289 { (eval echo "$as_me:20289: \"$ac_try\"") >&5
20290 (eval $ac_try) 2>&5
20292 echo "$as_me:20292: \$? = $ac_status" >&5
20293 (exit "$ac_status"); }; }; then
20294 cf_cv_dcl_environ=yes
20296 echo "$as_me: failed program was:" >&5
20297 cat "conftest.$ac_ext" >&5
20298 cf_cv_dcl_environ=no
20300 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20303 echo "$as_me:20303: result: $cf_cv_dcl_environ" >&5
20304 echo "${ECHO_T}$cf_cv_dcl_environ" >&6
20306 if test "$cf_cv_dcl_environ" = no ; then
20308 cf_result=`echo "decl_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20310 cat >>confdefs.h <<EOF
20311 #define $cf_result 1
20316 # It's possible (for near-UNIX clones) that the data doesn't exist
20318 echo "$as_me:20318: checking if external environ exists" >&5
20319 echo $ECHO_N "checking if external environ exists... $ECHO_C" >&6
20320 if test "${cf_cv_have_environ+set}" = set; then
20321 echo $ECHO_N "(cached) $ECHO_C" >&6
20324 cat >"conftest.$ac_ext" <<_ACEOF
20325 #line 20325 "configure"
20326 #include "confdefs.h"
20329 extern int environ;
20339 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20340 if { (eval echo "$as_me:20340: \"$ac_link\"") >&5
20341 (eval $ac_link) 2>&5
20343 echo "$as_me:20343: \$? = $ac_status" >&5
20344 (exit "$ac_status"); } &&
20345 { ac_try='test -s "conftest$ac_exeext"'
20346 { (eval echo "$as_me:20346: \"$ac_try\"") >&5
20347 (eval $ac_try) 2>&5
20349 echo "$as_me:20349: \$? = $ac_status" >&5
20350 (exit "$ac_status"); }; }; then
20351 cf_cv_have_environ=yes
20353 echo "$as_me: failed program was:" >&5
20354 cat "conftest.$ac_ext" >&5
20355 cf_cv_have_environ=no
20357 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20360 echo "$as_me:20360: result: $cf_cv_have_environ" >&5
20361 echo "${ECHO_T}$cf_cv_have_environ" >&6
20363 if test "$cf_cv_have_environ" = yes ; then
20365 cf_result=`echo "have_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20367 cat >>confdefs.h <<EOF
20368 #define $cf_result 1
20373 echo "$as_me:20373: checking for getenv" >&5
20374 echo $ECHO_N "checking for getenv... $ECHO_C" >&6
20375 if test "${ac_cv_func_getenv+set}" = set; then
20376 echo $ECHO_N "(cached) $ECHO_C" >&6
20378 cat >"conftest.$ac_ext" <<_ACEOF
20379 #line 20379 "configure"
20380 #include "confdefs.h"
20381 #define getenv autoconf_temporary
20382 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20389 /* We use char because int might match the return type of a gcc2
20390 builtin and then its argument prototype would still apply. */
20391 char getenv (void);
20397 /* The GNU C library defines stubs for functions which it implements
20398 to always fail with ENOSYS. Some functions are actually named
20399 something starting with __ and the normal name is an alias. */
20400 #if defined (__stub_getenv) || defined (__stub___getenv)
20401 #error found stub for getenv
20409 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20410 if { (eval echo "$as_me:20410: \"$ac_link\"") >&5
20411 (eval $ac_link) 2>&5
20413 echo "$as_me:20413: \$? = $ac_status" >&5
20414 (exit "$ac_status"); } &&
20415 { ac_try='test -s "conftest$ac_exeext"'
20416 { (eval echo "$as_me:20416: \"$ac_try\"") >&5
20417 (eval $ac_try) 2>&5
20419 echo "$as_me:20419: \$? = $ac_status" >&5
20420 (exit "$ac_status"); }; }; then
20421 ac_cv_func_getenv=yes
20423 echo "$as_me: failed program was:" >&5
20424 cat "conftest.$ac_ext" >&5
20425 ac_cv_func_getenv=no
20427 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20429 echo "$as_me:20429: result: $ac_cv_func_getenv" >&5
20430 echo "${ECHO_T}$ac_cv_func_getenv" >&6
20432 for ac_func in putenv setenv strdup
20434 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20435 echo "$as_me:20435: checking for $ac_func" >&5
20436 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20437 if eval "test \"\${$as_ac_var+set}\" = set"; then
20438 echo $ECHO_N "(cached) $ECHO_C" >&6
20440 cat >"conftest.$ac_ext" <<_ACEOF
20441 #line 20441 "configure"
20442 #include "confdefs.h"
20443 #define $ac_func autoconf_temporary
20444 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20451 /* We use char because int might match the return type of a gcc2
20452 builtin and then its argument prototype would still apply. */
20453 char $ac_func (void);
20459 /* The GNU C library defines stubs for functions which it implements
20460 to always fail with ENOSYS. Some functions are actually named
20461 something starting with __ and the normal name is an alias. */
20462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20463 #error found stub for $ac_func
20466 return $ac_func ();
20471 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20472 if { (eval echo "$as_me:20472: \"$ac_link\"") >&5
20473 (eval $ac_link) 2>&5
20475 echo "$as_me:20475: \$? = $ac_status" >&5
20476 (exit "$ac_status"); } &&
20477 { ac_try='test -s "conftest$ac_exeext"'
20478 { (eval echo "$as_me:20478: \"$ac_try\"") >&5
20479 (eval $ac_try) 2>&5
20481 echo "$as_me:20481: \$? = $ac_status" >&5
20482 (exit "$ac_status"); }; }; then
20483 eval "$as_ac_var=yes"
20485 echo "$as_me: failed program was:" >&5
20486 cat "conftest.$ac_ext" >&5
20487 eval "$as_ac_var=no"
20489 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20491 echo "$as_me:20491: result: `eval echo '${'"$as_ac_var"'}'`" >&5
20492 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
20493 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
20494 cat >>confdefs.h <<EOF
20495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20501 echo "$as_me:20501: checking if getenv returns consistent values" >&5
20502 echo $ECHO_N "checking if getenv returns consistent values... $ECHO_C" >&6
20503 if test "${cf_cv_consistent_getenv+set}" = set; then
20504 echo $ECHO_N "(cached) $ECHO_C" >&6
20507 if test "$cross_compiling" = yes; then
20508 cf_cv_consistent_getenv=unknown
20510 cat >"conftest.$ac_ext" <<_ACEOF
20511 #line 20511 "configure"
20512 #include "confdefs.h"
20514 $ac_includes_default
20516 #if defined(HAVE_ENVIRON) && defined(DECL_ENVIRON) && !defined(environ)
20517 extern char **environ; /* POSIX, but some systems are not... */
20520 #if defined(HAVE_STRDUP)
20521 #define str_alloc(s) strdup(s)
20523 #define str_alloc(s) strcpy(malloc(strlen(s) + 1, s))
20526 static void set_value(const char *name, const char *value)
20528 #if defined(HAVE_SETENV)
20529 setenv(name, value, 1);
20530 #elif defined(HAVE_PUTENV)
20532 sprintf(buffer, "%s=%s", name, value);
20533 putenv(str_alloc(buffer));
20535 #error neither putenv/setenv found
20541 size_t numenv, limit, j;
20546 for (numenv = 0; environ[numenv]; ++numenv) ;
20547 limit = numenv + 10;
20548 mynames = (char **) calloc(limit + 1, sizeof(char *));
20549 myvalues = (char **) calloc(limit + 1, sizeof(char *));
20550 mypointer = (char **) calloc(limit + 1, sizeof(char *));
20551 #if defined(HAVE_ENVIRON)
20552 for (j = 0; environ[j]; ++j) {
20553 mynames[j] = str_alloc(environ[j]);
20554 equals = strchr(mynames[j], '=');
20557 myvalues[j] = str_alloc(equals);
20559 myvalues[j] = str_alloc("");
20563 for (j = numenv; j < limit; ++j) {
20571 sprintf(name, "TERM%lu", (unsigned long) k);
20572 for (jk = 0; jk < j; ++jk) {
20573 if (!strcmp(name, mynames[jk])) {
20580 sprintf(value, "%lu:%p", (unsigned long) k, &mynames[j]);
20581 set_value(name, value);
20582 mynames[j] = str_alloc(name);
20583 myvalues[j] = str_alloc(value);
20585 for (pass = 0; pass < 3; ++pass) {
20586 for (j = 0; j < limit; ++j) {
20587 char *value = getenv(mynames[j]);
20590 fprintf(stderr, "getenv returned null for %s\\n", mynames[j]);
20591 ${cf_cv_main_return:-return}(1);
20592 } else if (value != mypointer[j]) {
20593 fprintf(stderr, "getenv returned different pointer for %s\\n", mynames[j]);
20594 ${cf_cv_main_return:-return}(1);
20595 } else if (strcmp(value, myvalues[j])) {
20596 fprintf(stderr, "getenv returned different value for %s\\n", mynames[j]);
20597 ${cf_cv_main_return:-return}(1);
20601 mypointer[j] = value;
20602 for (k = 0; k < j; ++k) {
20603 if (mypointer[j] == mypointer[k]) {
20604 fprintf(stderr, "getenv returned same pointer for %s and %s\\n", mynames[j], mynames[k]);
20605 ${cf_cv_main_return:-return}(1);
20611 ${cf_cv_main_return:-return}(0);
20615 rm -f "conftest$ac_exeext"
20616 if { (eval echo "$as_me:20616: \"$ac_link\"") >&5
20617 (eval $ac_link) 2>&5
20619 echo "$as_me:20619: \$? = $ac_status" >&5
20620 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
20621 { (eval echo "$as_me:20621: \"$ac_try\"") >&5
20622 (eval $ac_try) 2>&5
20624 echo "$as_me:20624: \$? = $ac_status" >&5
20625 (exit "$ac_status"); }; }; then
20626 cf_cv_consistent_getenv=yes
20628 echo "$as_me: program exited with status $ac_status" >&5
20629 echo "$as_me: failed program was:" >&5
20630 cat "conftest.$ac_ext" >&5
20631 cf_cv_consistent_getenv=no
20633 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
20637 echo "$as_me:20637: result: $cf_cv_consistent_getenv" >&5
20638 echo "${ECHO_T}$cf_cv_consistent_getenv" >&6
20640 if test "x$cf_cv_consistent_getenv" = xno
20643 cat >>confdefs.h <<\EOF
20644 #define HAVE_CONSISTENT_GETENV 1
20649 if test "x$cf_cv_consistent_getenv" = xno && \
20650 test "x$cf_with_trace" = xyes
20652 { echo "$as_me:20652: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&5
20653 echo "$as_me: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&2;}
20656 echo "$as_me:20656: checking if sys/time.h works with sys/select.h" >&5
20657 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
20658 if test "${cf_cv_sys_time_select+set}" = set; then
20659 echo $ECHO_N "(cached) $ECHO_C" >&6
20662 cat >"conftest.$ac_ext" <<_ACEOF
20663 #line 20663 "configure"
20664 #include "confdefs.h"
20666 #include <sys/types.h>
20667 #ifdef HAVE_SYS_TIME_H
20668 #include <sys/time.h>
20670 #ifdef HAVE_SYS_SELECT_H
20671 #include <sys/select.h>
20682 rm -f "conftest.$ac_objext"
20683 if { (eval echo "$as_me:20683: \"$ac_compile\"") >&5
20684 (eval $ac_compile) 2>&5
20686 echo "$as_me:20686: \$? = $ac_status" >&5
20687 (exit "$ac_status"); } &&
20688 { ac_try='test -s "conftest.$ac_objext"'
20689 { (eval echo "$as_me:20689: \"$ac_try\"") >&5
20690 (eval $ac_try) 2>&5
20692 echo "$as_me:20692: \$? = $ac_status" >&5
20693 (exit "$ac_status"); }; }; then
20694 cf_cv_sys_time_select=yes
20696 echo "$as_me: failed program was:" >&5
20697 cat "conftest.$ac_ext" >&5
20698 cf_cv_sys_time_select=no
20700 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20704 echo "$as_me:20704: result: $cf_cv_sys_time_select" >&5
20705 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
20706 test "$cf_cv_sys_time_select" = yes &&
20707 cat >>confdefs.h <<\EOF
20708 #define HAVE_SYS_TIME_SELECT 1
20711 ### checks for compiler characteristics
20713 ac_cpp='$CPP $CPPFLAGS'
20714 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
20715 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
20716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20717 ac_main_return="return"
20719 echo "$as_me:20719: checking for an ANSI C-conforming const" >&5
20720 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20721 if test "${ac_cv_c_const+set}" = set; then
20722 echo $ECHO_N "(cached) $ECHO_C" >&6
20724 cat >"conftest.$ac_ext" <<_ACEOF
20725 #line 20725 "configure"
20726 #include "confdefs.h"
20731 /* FIXME: Include the comments suggested by Paul. */
20732 #ifndef __cplusplus
20733 /* Ultrix mips cc rejects this. */
20734 typedef int charset[2];
20736 /* SunOS 4.1.1 cc rejects this. */
20737 char const *const *ccp;
20739 /* NEC SVR4.0.2 mips cc rejects this. */
20740 struct point {int x, y;};
20741 static struct point const zero = {0,0};
20742 /* AIX XL C 1.02.0.0 rejects this.
20743 It does not let you subtract one const X* pointer from another in
20744 an arm of an if-expression whose if-part is not a constant
20746 const char *g = "string";
20747 ccp = &g + (g ? g-g : 0);
20748 /* HPUX 7.0 cc rejects these. */
20751 ccp = (char const *const *) p;
20752 { /* SCO 3.2v4 cc rejects this. */
20754 char const *s = 0 ? (char *) 0 : (char const *) 0;
20758 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20759 int x[] = {25, 17};
20760 const int *foo = &x[0];
20763 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20764 typedef const int *iptr;
20768 { /* AIX XL C 1.02.0.0 rejects this saying
20769 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20770 struct s { int j; const int *ap[3]; };
20771 struct s *b; b->j = 5;
20773 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20774 const int foo = 10;
20782 rm -f "conftest.$ac_objext"
20783 if { (eval echo "$as_me:20783: \"$ac_compile\"") >&5
20784 (eval $ac_compile) 2>&5
20786 echo "$as_me:20786: \$? = $ac_status" >&5
20787 (exit "$ac_status"); } &&
20788 { ac_try='test -s "conftest.$ac_objext"'
20789 { (eval echo "$as_me:20789: \"$ac_try\"") >&5
20790 (eval $ac_try) 2>&5
20792 echo "$as_me:20792: \$? = $ac_status" >&5
20793 (exit "$ac_status"); }; }; then
20796 echo "$as_me: failed program was:" >&5
20797 cat "conftest.$ac_ext" >&5
20800 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20802 echo "$as_me:20802: result: $ac_cv_c_const" >&5
20803 echo "${ECHO_T}$ac_cv_c_const" >&6
20804 if test $ac_cv_c_const = no; then
20806 cat >>confdefs.h <<\EOF
20812 echo "$as_me:20812: checking for inline" >&5
20813 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20814 if test "${ac_cv_c_inline+set}" = set; then
20815 echo $ECHO_N "(cached) $ECHO_C" >&6
20818 for ac_kw in inline __inline__ __inline; do
20819 cat >"conftest.$ac_ext" <<_ACEOF
20820 #line 20820 "configure"
20821 #include "confdefs.h"
20822 #ifndef __cplusplus
20823 static $ac_kw int static_foo () {return 0; }
20824 $ac_kw int foo () {return 0; }
20828 rm -f "conftest.$ac_objext"
20829 if { (eval echo "$as_me:20829: \"$ac_compile\"") >&5
20830 (eval $ac_compile) 2>&5
20832 echo "$as_me:20832: \$? = $ac_status" >&5
20833 (exit "$ac_status"); } &&
20834 { ac_try='test -s "conftest.$ac_objext"'
20835 { (eval echo "$as_me:20835: \"$ac_try\"") >&5
20836 (eval $ac_try) 2>&5
20838 echo "$as_me:20838: \$? = $ac_status" >&5
20839 (exit "$ac_status"); }; }; then
20840 ac_cv_c_inline=$ac_kw; break
20842 echo "$as_me: failed program was:" >&5
20843 cat "conftest.$ac_ext" >&5
20845 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20849 echo "$as_me:20849: result: $ac_cv_c_inline" >&5
20850 echo "${ECHO_T}$ac_cv_c_inline" >&6
20851 case $ac_cv_c_inline in
20854 cat >>confdefs.h <<\EOF
20858 *) cat >>confdefs.h <<EOF
20859 #define inline $ac_cv_c_inline
20865 if test "$ac_cv_c_inline" != no ; then
20866 NCURSES_INLINE=inline
20867 if test "$INTEL_COMPILER" = yes
20870 elif test "$CLANG_COMPILER" = yes
20873 elif test "$GCC" = yes
20875 echo "$as_me:20875: checking if $CC supports options to tune inlining" >&5
20876 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
20877 if test "${cf_cv_gcc_inline+set}" = set; then
20878 echo $ECHO_N "(cached) $ECHO_C" >&6
20881 cf_save_CFLAGS=$CFLAGS
20882 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
20883 cat >"conftest.$ac_ext" <<_ACEOF
20884 #line 20884 "configure"
20885 #include "confdefs.h"
20886 inline int foo(void) { return 1; }
20890 ${cf_cv_main_return:-return} foo()
20895 rm -f "conftest.$ac_objext"
20896 if { (eval echo "$as_me:20896: \"$ac_compile\"") >&5
20897 (eval $ac_compile) 2>&5
20899 echo "$as_me:20899: \$? = $ac_status" >&5
20900 (exit "$ac_status"); } &&
20901 { ac_try='test -s "conftest.$ac_objext"'
20902 { (eval echo "$as_me:20902: \"$ac_try\"") >&5
20903 (eval $ac_try) 2>&5
20905 echo "$as_me:20905: \$? = $ac_status" >&5
20906 (exit "$ac_status"); }; }; then
20907 cf_cv_gcc_inline=yes
20909 echo "$as_me: failed program was:" >&5
20910 cat "conftest.$ac_ext" >&5
20911 cf_cv_gcc_inline=no
20913 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20914 CFLAGS=$cf_save_CFLAGS
20917 echo "$as_me:20917: result: $cf_cv_gcc_inline" >&5
20918 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
20919 if test "$cf_cv_gcc_inline" = yes ; then
20924 cf_new_extra_cppflags=
20926 for cf_add_cflags in --param max-inline-insns-single=1200
20928 case "$cf_fix_cppflags" in
20930 case "$cf_add_cflags" in
20931 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
20932 case "$cf_add_cflags" in
20934 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
20936 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20937 && test -z "${cf_tst_cflags}" \
20938 && cf_fix_cppflags=yes
20940 if test "$cf_fix_cppflags" = yes ; then
20942 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20943 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20946 elif test "${cf_tst_cflags}" = "\"'" ; then
20948 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20949 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20955 case "$CPPFLAGS" in
20959 case "$cf_add_cflags" in
20961 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
20963 CPPFLAGS=`echo "$CPPFLAGS" | \
20964 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
20965 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
20970 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
20971 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
20978 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
20979 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
20986 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20987 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20989 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
20991 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20992 && test -z "${cf_tst_cflags}" \
20993 && cf_fix_cppflags=no
20998 if test -n "$cf_new_cflags" ; then
21000 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
21001 CFLAGS="${CFLAGS}$cf_new_cflags"
21005 if test -n "$cf_new_cppflags" ; then
21007 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
21008 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
21012 if test -n "$cf_new_extra_cppflags" ; then
21014 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
21015 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
21023 echo "$as_me:21023: checking for signal global datatype" >&5
21024 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
21025 if test "${cf_cv_sig_atomic_t+set}" = set; then
21026 echo $ECHO_N "(cached) $ECHO_C" >&6
21030 "volatile sig_atomic_t" \
21034 cat >"conftest.$ac_ext" <<_ACEOF
21035 #line 21035 "configure"
21036 #include "confdefs.h"
21038 #include <sys/types.h>
21039 #include <signal.h>
21044 static void handler(int sig)
21052 signal(SIGINT, handler);
21058 rm -f "conftest.$ac_objext"
21059 if { (eval echo "$as_me:21059: \"$ac_compile\"") >&5
21060 (eval $ac_compile) 2>&5
21062 echo "$as_me:21062: \$? = $ac_status" >&5
21063 (exit "$ac_status"); } &&
21064 { ac_try='test -s "conftest.$ac_objext"'
21065 { (eval echo "$as_me:21065: \"$ac_try\"") >&5
21066 (eval $ac_try) 2>&5
21068 echo "$as_me:21068: \$? = $ac_status" >&5
21069 (exit "$ac_status"); }; }; then
21070 cf_cv_sig_atomic_t=$cf_type
21072 echo "$as_me: failed program was:" >&5
21073 cat "conftest.$ac_ext" >&5
21074 cf_cv_sig_atomic_t=no
21076 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21077 test "$cf_cv_sig_atomic_t" != no && break
21082 echo "$as_me:21082: result: $cf_cv_sig_atomic_t" >&5
21083 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
21084 test "$cf_cv_sig_atomic_t" != no &&
21085 cat >>confdefs.h <<EOF
21086 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
21089 if test "$NCURSES_CHTYPE" = auto ; then
21091 echo "$as_me:21091: checking for type of chtype" >&5
21092 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
21093 if test "${cf_cv_typeof_chtype+set}" = set; then
21094 echo $ECHO_N "(cached) $ECHO_C" >&6
21097 if test "$cross_compiling" = yes; then
21098 cf_cv_typeof_chtype=long
21100 cat >"conftest.$ac_ext" <<_ACEOF
21101 #line 21101 "configure"
21102 #include "confdefs.h"
21104 $ac_includes_default
21105 #define WANT_BITS 31
21108 FILE *fp = fopen("cf_test.out", "w");
21110 char *result = "long";
21111 if (sizeof(unsigned long) > sizeof(unsigned int)) {
21114 for (n = 0; n < WANT_BITS; n++) {
21117 if (y != 1 || x == 0) {
21123 * If x is nonzero, an int is big enough for the bits
21126 result = (x != 0) ? "int" : "long";
21131 ${cf_cv_main_return:-return}(0);
21135 rm -f "conftest$ac_exeext"
21136 if { (eval echo "$as_me:21136: \"$ac_link\"") >&5
21137 (eval $ac_link) 2>&5
21139 echo "$as_me:21139: \$? = $ac_status" >&5
21140 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
21141 { (eval echo "$as_me:21141: \"$ac_try\"") >&5
21142 (eval $ac_try) 2>&5
21144 echo "$as_me:21144: \$? = $ac_status" >&5
21145 (exit "$ac_status"); }; }; then
21146 cf_cv_typeof_chtype=`cat cf_test.out`
21148 echo "$as_me: program exited with status $ac_status" >&5
21149 echo "$as_me: failed program was:" >&5
21150 cat "conftest.$ac_ext" >&5
21151 cf_cv_typeof_chtype=long
21153 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
21159 echo "$as_me:21159: result: $cf_cv_typeof_chtype" >&5
21160 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
21162 cat >>confdefs.h <<EOF
21163 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
21167 cf_cv_typeof_chtype=$NCURSES_CHTYPE
21169 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
21171 echo "$as_me:21171: checking if unsigned literals are legal" >&5
21172 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
21173 if test "${cf_cv_unsigned_literals+set}" = set; then
21174 echo $ECHO_N "(cached) $ECHO_C" >&6
21177 cat >"conftest.$ac_ext" <<_ACEOF
21178 #line 21178 "configure"
21179 #include "confdefs.h"
21184 long x = 1L + 1UL + 1U + 1
21189 rm -f "conftest.$ac_objext"
21190 if { (eval echo "$as_me:21190: \"$ac_compile\"") >&5
21191 (eval $ac_compile) 2>&5
21193 echo "$as_me:21193: \$? = $ac_status" >&5
21194 (exit "$ac_status"); } &&
21195 { ac_try='test -s "conftest.$ac_objext"'
21196 { (eval echo "$as_me:21196: \"$ac_try\"") >&5
21197 (eval $ac_try) 2>&5
21199 echo "$as_me:21199: \$? = $ac_status" >&5
21200 (exit "$ac_status"); }; }; then
21201 cf_cv_unsigned_literals=yes
21203 echo "$as_me: failed program was:" >&5
21204 cat "conftest.$ac_ext" >&5
21205 cf_cv_unsigned_literals=no
21207 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21211 echo "$as_me:21211: result: $cf_cv_unsigned_literals" >&5
21212 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
21215 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
21216 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
21218 if test "$NCURSES_MMASK_T" = auto ; then
21219 cf_cv_typeof_mmask_t=long
21221 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
21223 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
21225 ### Checks for external-data
21227 echo "$as_me:21227: checking if external errno is declared" >&5
21228 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
21229 if test "${cf_cv_dcl_errno+set}" = set; then
21230 echo $ECHO_N "(cached) $ECHO_C" >&6
21233 cat >"conftest.$ac_ext" <<_ACEOF
21234 #line 21234 "configure"
21235 #include "confdefs.h"
21237 $ac_includes_default
21242 int x = (int) errno; (void)x
21247 rm -f "conftest.$ac_objext"
21248 if { (eval echo "$as_me:21248: \"$ac_compile\"") >&5
21249 (eval $ac_compile) 2>&5
21251 echo "$as_me:21251: \$? = $ac_status" >&5
21252 (exit "$ac_status"); } &&
21253 { ac_try='test -s "conftest.$ac_objext"'
21254 { (eval echo "$as_me:21254: \"$ac_try\"") >&5
21255 (eval $ac_try) 2>&5
21257 echo "$as_me:21257: \$? = $ac_status" >&5
21258 (exit "$ac_status"); }; }; then
21259 cf_cv_dcl_errno=yes
21261 echo "$as_me: failed program was:" >&5
21262 cat "conftest.$ac_ext" >&5
21265 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21268 echo "$as_me:21268: result: $cf_cv_dcl_errno" >&5
21269 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
21271 if test "$cf_cv_dcl_errno" = no ; then
21273 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
21275 cat >>confdefs.h <<EOF
21276 #define $cf_result 1
21281 # It's possible (for near-UNIX clones) that the data doesn't exist
21283 echo "$as_me:21283: checking if external errno exists" >&5
21284 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
21285 if test "${cf_cv_have_errno+set}" = set; then
21286 echo $ECHO_N "(cached) $ECHO_C" >&6
21289 cat >"conftest.$ac_ext" <<_ACEOF
21290 #line 21290 "configure"
21291 #include "confdefs.h"
21304 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21305 if { (eval echo "$as_me:21305: \"$ac_link\"") >&5
21306 (eval $ac_link) 2>&5
21308 echo "$as_me:21308: \$? = $ac_status" >&5
21309 (exit "$ac_status"); } &&
21310 { ac_try='test -s "conftest$ac_exeext"'
21311 { (eval echo "$as_me:21311: \"$ac_try\"") >&5
21312 (eval $ac_try) 2>&5
21314 echo "$as_me:21314: \$? = $ac_status" >&5
21315 (exit "$ac_status"); }; }; then
21316 cf_cv_have_errno=yes
21318 echo "$as_me: failed program was:" >&5
21319 cat "conftest.$ac_ext" >&5
21320 cf_cv_have_errno=no
21322 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21325 echo "$as_me:21325: result: $cf_cv_have_errno" >&5
21326 echo "${ECHO_T}$cf_cv_have_errno" >&6
21328 if test "$cf_cv_have_errno" = yes ; then
21330 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
21332 cat >>confdefs.h <<EOF
21333 #define $cf_result 1
21338 echo "$as_me:21338: checking if data-only library module links" >&5
21339 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
21340 if test "${cf_cv_link_dataonly+set}" = set; then
21341 echo $ECHO_N "(cached) $ECHO_C" >&6
21345 cat >conftest.$ac_ext <<EOF
21346 #line 21346 "configure"
21347 int testdata[3] = { 123, 456, 789 };
21349 if { (eval echo "$as_me:21349: \"$ac_compile\"") >&5
21350 (eval $ac_compile) 2>&5
21352 echo "$as_me:21352: \$? = $ac_status" >&5
21353 (exit "$ac_status"); } ; then
21354 mv conftest.o data.o && \
21355 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
21357 rm -f conftest.$ac_ext data.o
21358 cat >conftest.$ac_ext <<EOF
21359 #line 21359 "configure"
21363 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
21365 extern int testdata[3];
21366 return testdata[0] == 123
21367 && testdata[1] == 456
21368 && testdata[2] == 789;
21372 if { (eval echo "$as_me:21372: \"$ac_compile\"") >&5
21373 (eval $ac_compile) 2>&5
21375 echo "$as_me:21375: \$? = $ac_status" >&5
21376 (exit "$ac_status"); }; then
21377 mv conftest.o func.o && \
21378 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
21380 rm -f conftest.$ac_ext func.o
21381 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
21382 cf_saveLIBS="$LIBS"
21383 LIBS="conftest.a $LIBS"
21384 if test "$cross_compiling" = yes; then
21385 cf_cv_link_dataonly=unknown
21387 cat >"conftest.$ac_ext" <<_ACEOF
21388 #line 21388 "configure"
21389 #include "confdefs.h"
21393 extern int testfunc();
21394 ${cf_cv_main_return:-return} (!testfunc());
21398 rm -f "conftest$ac_exeext"
21399 if { (eval echo "$as_me:21399: \"$ac_link\"") >&5
21400 (eval $ac_link) 2>&5
21402 echo "$as_me:21402: \$? = $ac_status" >&5
21403 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
21404 { (eval echo "$as_me:21404: \"$ac_try\"") >&5
21405 (eval $ac_try) 2>&5
21407 echo "$as_me:21407: \$? = $ac_status" >&5
21408 (exit "$ac_status"); }; }; then
21409 cf_cv_link_dataonly=yes
21411 echo "$as_me: program exited with status $ac_status" >&5
21412 echo "$as_me: failed program was:" >&5
21413 cat "conftest.$ac_ext" >&5
21414 cf_cv_link_dataonly=no
21416 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
21418 LIBS="$cf_saveLIBS"
21422 echo "$as_me:21422: result: $cf_cv_link_dataonly" >&5
21423 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
21425 if test "$cf_cv_link_dataonly" = no ; then
21427 cat >>confdefs.h <<\EOF
21428 #define BROKEN_LINKER 1
21434 ### Checks for library functions.
21436 echo "$as_me:21436: checking for clock_gettime" >&5
21437 echo $ECHO_N "checking for clock_gettime... $ECHO_C" >&6
21438 if test "${cf_cv_func_clock_gettime+set}" = set; then
21439 echo $ECHO_N "(cached) $ECHO_C" >&6
21442 cat >"conftest.$ac_ext" <<_ACEOF
21443 #line 21443 "configure"
21444 #include "confdefs.h"
21449 struct timespec ts;
21450 int rc = clock_gettime(CLOCK_REALTIME, &ts); (void) rc; (void)ts
21455 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21456 if { (eval echo "$as_me:21456: \"$ac_link\"") >&5
21457 (eval $ac_link) 2>&5
21459 echo "$as_me:21459: \$? = $ac_status" >&5
21460 (exit "$ac_status"); } &&
21461 { ac_try='test -s "conftest$ac_exeext"'
21462 { (eval echo "$as_me:21462: \"$ac_try\"") >&5
21463 (eval $ac_try) 2>&5
21465 echo "$as_me:21465: \$? = $ac_status" >&5
21466 (exit "$ac_status"); }; }; then
21467 cf_cv_func_clock_gettime=yes
21469 echo "$as_me: failed program was:" >&5
21470 cat "conftest.$ac_ext" >&5
21471 cf_cv_func_clock_gettime=no
21473 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21476 echo "$as_me:21476: result: $cf_cv_func_clock_gettime" >&5
21477 echo "${ECHO_T}$cf_cv_func_clock_gettime" >&6
21479 if test "$cf_cv_func_clock_gettime" = yes
21482 cat >>confdefs.h <<\EOF
21483 #define HAVE_CLOCK_GETTIME 1
21487 echo "$as_me:21487: checking for gettimeofday" >&5
21488 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
21489 if test "${ac_cv_func_gettimeofday+set}" = set; then
21490 echo $ECHO_N "(cached) $ECHO_C" >&6
21492 cat >"conftest.$ac_ext" <<_ACEOF
21493 #line 21493 "configure"
21494 #include "confdefs.h"
21495 #define gettimeofday autoconf_temporary
21496 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21497 #undef gettimeofday
21503 /* We use char because int might match the return type of a gcc2
21504 builtin and then its argument prototype would still apply. */
21505 char gettimeofday (void);
21511 /* The GNU C library defines stubs for functions which it implements
21512 to always fail with ENOSYS. Some functions are actually named
21513 something starting with __ and the normal name is an alias. */
21514 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
21515 #error found stub for gettimeofday
21518 return gettimeofday ();
21523 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21524 if { (eval echo "$as_me:21524: \"$ac_link\"") >&5
21525 (eval $ac_link) 2>&5
21527 echo "$as_me:21527: \$? = $ac_status" >&5
21528 (exit "$ac_status"); } &&
21529 { ac_try='test -s "conftest$ac_exeext"'
21530 { (eval echo "$as_me:21530: \"$ac_try\"") >&5
21531 (eval $ac_try) 2>&5
21533 echo "$as_me:21533: \$? = $ac_status" >&5
21534 (exit "$ac_status"); }; }; then
21535 ac_cv_func_gettimeofday=yes
21537 echo "$as_me: failed program was:" >&5
21538 cat "conftest.$ac_ext" >&5
21539 ac_cv_func_gettimeofday=no
21541 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21543 echo "$as_me:21543: result: $ac_cv_func_gettimeofday" >&5
21544 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
21545 if test "$ac_cv_func_gettimeofday" = yes; then
21547 cat >>confdefs.h <<\EOF
21548 #define HAVE_GETTIMEOFDAY 1
21553 echo "$as_me:21553: checking for gettimeofday in -lbsd" >&5
21554 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
21555 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
21556 echo $ECHO_N "(cached) $ECHO_C" >&6
21558 ac_check_lib_save_LIBS=$LIBS
21560 cat >"conftest.$ac_ext" <<_ACEOF
21561 #line 21561 "configure"
21562 #include "confdefs.h"
21564 /* Override any gcc2 internal prototype to avoid an error. */
21568 /* We use char because int might match the return type of a gcc2
21569 builtin and then its argument prototype would still apply. */
21570 char gettimeofday ();
21579 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21580 if { (eval echo "$as_me:21580: \"$ac_link\"") >&5
21581 (eval $ac_link) 2>&5
21583 echo "$as_me:21583: \$? = $ac_status" >&5
21584 (exit "$ac_status"); } &&
21585 { ac_try='test -s "conftest$ac_exeext"'
21586 { (eval echo "$as_me:21586: \"$ac_try\"") >&5
21587 (eval $ac_try) 2>&5
21589 echo "$as_me:21589: \$? = $ac_status" >&5
21590 (exit "$ac_status"); }; }; then
21591 ac_cv_lib_bsd_gettimeofday=yes
21593 echo "$as_me: failed program was:" >&5
21594 cat "conftest.$ac_ext" >&5
21595 ac_cv_lib_bsd_gettimeofday=no
21597 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21598 LIBS=$ac_check_lib_save_LIBS
21600 echo "$as_me:21600: result: $ac_cv_lib_bsd_gettimeofday" >&5
21601 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
21602 if test "$ac_cv_lib_bsd_gettimeofday" = yes; then
21604 cat >>confdefs.h <<\EOF
21605 #define HAVE_GETTIMEOFDAY 1
21608 cf_add_libs="$LIBS"
21611 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
21612 # filter duplicates
21613 for cf_add_1lib in $cf_add_0lib; do
21614 for cf_add_2lib in $cf_add_libs; do
21615 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
21620 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
21622 LIBS="$cf_add_libs"
21660 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21661 echo "$as_me:21661: checking for $ac_func" >&5
21662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21663 if eval "test \"\${$as_ac_var+set}\" = set"; then
21664 echo $ECHO_N "(cached) $ECHO_C" >&6
21666 cat >"conftest.$ac_ext" <<_ACEOF
21667 #line 21667 "configure"
21668 #include "confdefs.h"
21669 #define $ac_func autoconf_temporary
21670 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21677 /* We use char because int might match the return type of a gcc2
21678 builtin and then its argument prototype would still apply. */
21679 char $ac_func (void);
21685 /* The GNU C library defines stubs for functions which it implements
21686 to always fail with ENOSYS. Some functions are actually named
21687 something starting with __ and the normal name is an alias. */
21688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21689 #error found stub for $ac_func
21692 return $ac_func ();
21697 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21698 if { (eval echo "$as_me:21698: \"$ac_link\"") >&5
21699 (eval $ac_link) 2>&5
21701 echo "$as_me:21701: \$? = $ac_status" >&5
21702 (exit "$ac_status"); } &&
21703 { ac_try='test -s "conftest$ac_exeext"'
21704 { (eval echo "$as_me:21704: \"$ac_try\"") >&5
21705 (eval $ac_try) 2>&5
21707 echo "$as_me:21707: \$? = $ac_status" >&5
21708 (exit "$ac_status"); }; }; then
21709 eval "$as_ac_var=yes"
21711 echo "$as_me: failed program was:" >&5
21712 cat "conftest.$ac_ext" >&5
21713 eval "$as_ac_var=no"
21715 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21717 echo "$as_me:21717: result: `eval echo '${'"$as_ac_var"'}'`" >&5
21718 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
21719 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
21720 cat >>confdefs.h <<EOF
21721 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21727 echo "$as_me:21727: checking if _PATH_TTYS is defined in ttyent.h" >&5
21728 echo $ECHO_N "checking if _PATH_TTYS is defined in ttyent.h... $ECHO_C" >&6
21729 if test "${cf_cv_PATH_TTYS+set}" = set; then
21730 echo $ECHO_N "(cached) $ECHO_C" >&6
21733 cat >"conftest.$ac_ext" <<_ACEOF
21734 #line 21734 "configure"
21735 #include "confdefs.h"
21738 #include <ttyent.h>
21743 FILE *fp = fopen(_PATH_TTYS, "r"); (void)fp
21748 rm -f "conftest.$ac_objext"
21749 if { (eval echo "$as_me:21749: \"$ac_compile\"") >&5
21750 (eval $ac_compile) 2>&5
21752 echo "$as_me:21752: \$? = $ac_status" >&5
21753 (exit "$ac_status"); } &&
21754 { ac_try='test -s "conftest.$ac_objext"'
21755 { (eval echo "$as_me:21755: \"$ac_try\"") >&5
21756 (eval $ac_try) 2>&5
21758 echo "$as_me:21758: \$? = $ac_status" >&5
21759 (exit "$ac_status"); }; }; then
21760 cf_cv_PATH_TTYS=yes
21762 echo "$as_me: failed program was:" >&5
21763 cat "conftest.$ac_ext" >&5
21766 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21768 echo "$as_me:21768: result: $cf_cv_PATH_TTYS" >&5
21769 echo "${ECHO_T}$cf_cv_PATH_TTYS" >&6
21771 if test $cf_cv_PATH_TTYS = no
21773 for cf_ttys in /etc/ttytype /etc/ttys
21775 if test -f $cf_ttys
21777 cf_cv_PATH_TTYS=maybe
21779 cat >>confdefs.h <<\EOF
21780 #define _PATH_TTYS $cf_ttys
21788 if test $cf_cv_PATH_TTYS != no
21790 echo "$as_me:21790: checking if _PATH_TTYS file exists" >&5
21791 echo $ECHO_N "checking if _PATH_TTYS file exists... $ECHO_C" >&6
21792 if test "${cf_cv_have_PATH_TTYS+set}" = set; then
21793 echo $ECHO_N "(cached) $ECHO_C" >&6
21796 if test "$cross_compiling" = yes; then
21797 cf_cv_have_PATH_TTYS=unknown
21799 cat >"conftest.$ac_ext" <<_ACEOF
21800 #line 21800 "configure"
21801 #include "confdefs.h"
21803 $ac_includes_default
21805 #include <ttyent.h>
21808 FILE *fp = fopen(_PATH_TTYS, "r");
21809 ${cf_cv_main_return:-return} (fp == 0);
21812 rm -f "conftest$ac_exeext"
21813 if { (eval echo "$as_me:21813: \"$ac_link\"") >&5
21814 (eval $ac_link) 2>&5
21816 echo "$as_me:21816: \$? = $ac_status" >&5
21817 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
21818 { (eval echo "$as_me:21818: \"$ac_try\"") >&5
21819 (eval $ac_try) 2>&5
21821 echo "$as_me:21821: \$? = $ac_status" >&5
21822 (exit "$ac_status"); }; }; then
21823 cf_cv_have_PATH_TTYS=yes
21825 echo "$as_me: program exited with status $ac_status" >&5
21826 echo "$as_me: failed program was:" >&5
21827 cat "conftest.$ac_ext" >&5
21828 cf_cv_have_PATH_TTYS=no
21830 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
21833 echo "$as_me:21833: result: $cf_cv_have_PATH_TTYS" >&5
21834 echo "${ECHO_T}$cf_cv_have_PATH_TTYS" >&6
21835 test "$cf_cv_have_PATH_TTYS" = no && cf_cv_PATH_TTYS=no
21838 if test $cf_cv_PATH_TTYS != no
21841 cat >>confdefs.h <<\EOF
21842 #define HAVE_PATH_TTYS 1
21845 echo "$as_me:21845: checking for getttynam" >&5
21846 echo $ECHO_N "checking for getttynam... $ECHO_C" >&6
21847 if test "${cf_cv_func_getttynam+set}" = set; then
21848 echo $ECHO_N "(cached) $ECHO_C" >&6
21851 cat >"conftest.$ac_ext" <<_ACEOF
21852 #line 21852 "configure"
21853 #include "confdefs.h"
21854 #include <ttyent.h>
21858 struct ttyent *fp = getttynam("/dev/tty"); (void)fp
21863 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21864 if { (eval echo "$as_me:21864: \"$ac_link\"") >&5
21865 (eval $ac_link) 2>&5
21867 echo "$as_me:21867: \$? = $ac_status" >&5
21868 (exit "$ac_status"); } &&
21869 { ac_try='test -s "conftest$ac_exeext"'
21870 { (eval echo "$as_me:21870: \"$ac_try\"") >&5
21871 (eval $ac_try) 2>&5
21873 echo "$as_me:21873: \$? = $ac_status" >&5
21874 (exit "$ac_status"); }; }; then
21875 cf_cv_func_getttynam=yes
21877 echo "$as_me: failed program was:" >&5
21878 cat "conftest.$ac_ext" >&5
21879 cf_cv_func_getttynam=no
21881 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21883 echo "$as_me:21883: result: $cf_cv_func_getttynam" >&5
21884 echo "${ECHO_T}$cf_cv_func_getttynam" >&6
21885 test "$cf_cv_func_getttynam" = yes && cat >>confdefs.h <<\EOF
21886 #define HAVE_GETTTYNAM 1
21891 if test "x$ac_cv_func_getopt" = xno && \
21892 test "x$cf_with_progs$cf_with_tests" != xnono; then
21893 { { echo "$as_me:21893: error: getopt is required for building programs" >&5
21894 echo "$as_me: error: getopt is required for building programs" >&2;}
21895 { (exit 1); exit 1; }; }
21898 if test "x$with_safe_sprintf" = xyes
21900 if test "x$ac_cv_func_vsnprintf" = xyes
21902 { echo "$as_me:21902: WARNING: will use vsnprintf instead of safe-sprintf option" >&5
21903 echo "$as_me: WARNING: will use vsnprintf instead of safe-sprintf option" >&2;}
21906 cat >>confdefs.h <<\EOF
21907 #define USE_SAFE_SPRINTF 1
21913 if test "x$with_getcap" = "xyes" ; then
21915 echo "$as_me:21915: checking for terminal-capability database functions" >&5
21916 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
21917 if test "${cf_cv_cgetent+set}" = set; then
21918 echo $ECHO_N "(cached) $ECHO_C" >&6
21921 cat >"conftest.$ac_ext" <<_ACEOF
21922 #line 21922 "configure"
21923 #include "confdefs.h"
21925 $ac_includes_default
21932 char *db_array = temp;
21933 cgetent(&buf, &db_array, "vt100");
21934 cgetcap(buf, "tc", '=');
21935 cgetmatch(buf, "tc");
21941 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21942 if { (eval echo "$as_me:21942: \"$ac_link\"") >&5
21943 (eval $ac_link) 2>&5
21945 echo "$as_me:21945: \$? = $ac_status" >&5
21946 (exit "$ac_status"); } &&
21947 { ac_try='test -s "conftest$ac_exeext"'
21948 { (eval echo "$as_me:21948: \"$ac_try\"") >&5
21949 (eval $ac_try) 2>&5
21951 echo "$as_me:21951: \$? = $ac_status" >&5
21952 (exit "$ac_status"); }; }; then
21955 echo "$as_me: failed program was:" >&5
21956 cat "conftest.$ac_ext" >&5
21959 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21962 echo "$as_me:21962: result: $cf_cv_cgetent" >&5
21963 echo "${ECHO_T}$cf_cv_cgetent" >&6
21965 if test "$cf_cv_cgetent" = yes
21968 cat >>confdefs.h <<\EOF
21969 #define HAVE_BSD_CGETENT 1
21972 echo "$as_me:21972: checking if cgetent uses const parameter" >&5
21973 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
21974 if test "${cf_cv_cgetent_const+set}" = set; then
21975 echo $ECHO_N "(cached) $ECHO_C" >&6
21978 cat >"conftest.$ac_ext" <<_ACEOF
21979 #line 21979 "configure"
21980 #include "confdefs.h"
21982 #pragma GCC diagnostic error "-Wincompatible-pointer-types-discards-qualifiers"
21983 $ac_includes_default
21990 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
21991 const char *db_array = temp;
21992 cgetent(&buf, &db_array, "vt100");
21994 cgetcap(buf, "tc", '=');
21995 cgetmatch(buf, "tc");
22001 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22002 if { (eval echo "$as_me:22002: \"$ac_link\"") >&5
22003 (eval $ac_link) 2>&5
22005 echo "$as_me:22005: \$? = $ac_status" >&5
22006 (exit "$ac_status"); } &&
22007 { ac_try='test -s "conftest$ac_exeext"'
22008 { (eval echo "$as_me:22008: \"$ac_try\"") >&5
22009 (eval $ac_try) 2>&5
22011 echo "$as_me:22011: \$? = $ac_status" >&5
22012 (exit "$ac_status"); }; }; then
22013 cf_cv_cgetent_const=yes
22015 echo "$as_me: failed program was:" >&5
22016 cat "conftest.$ac_ext" >&5
22017 cf_cv_cgetent_const=no
22019 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22022 echo "$as_me:22022: result: $cf_cv_cgetent_const" >&5
22023 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
22024 if test "$cf_cv_cgetent_const" = yes
22027 cat >>confdefs.h <<EOF
22028 #define CGETENT_CONST const
22036 echo "$as_me:22036: checking for isascii" >&5
22037 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
22038 if test "${cf_cv_have_isascii+set}" = set; then
22039 echo $ECHO_N "(cached) $ECHO_C" >&6
22042 cat >"conftest.$ac_ext" <<_ACEOF
22043 #line 22043 "configure"
22044 #include "confdefs.h"
22049 int x = isascii(' ')
22054 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22055 if { (eval echo "$as_me:22055: \"$ac_link\"") >&5
22056 (eval $ac_link) 2>&5
22058 echo "$as_me:22058: \$? = $ac_status" >&5
22059 (exit "$ac_status"); } &&
22060 { ac_try='test -s "conftest$ac_exeext"'
22061 { (eval echo "$as_me:22061: \"$ac_try\"") >&5
22062 (eval $ac_try) 2>&5
22064 echo "$as_me:22064: \$? = $ac_status" >&5
22065 (exit "$ac_status"); }; }; then
22066 cf_cv_have_isascii=yes
22068 echo "$as_me: failed program was:" >&5
22069 cat "conftest.$ac_ext" >&5
22070 cf_cv_have_isascii=no
22072 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22075 echo "$as_me:22075: result: $cf_cv_have_isascii" >&5
22076 echo "${ECHO_T}$cf_cv_have_isascii" >&6
22077 test "$cf_cv_have_isascii" = yes &&
22078 cat >>confdefs.h <<\EOF
22079 #define HAVE_ISASCII 1
22082 if test "$ac_cv_func_sigaction" = yes; then
22083 echo "$as_me:22083: checking whether sigaction needs _POSIX_SOURCE" >&5
22084 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
22085 cat >"conftest.$ac_ext" <<_ACEOF
22086 #line 22086 "configure"
22087 #include "confdefs.h"
22089 #include <sys/types.h>
22090 #include <signal.h>
22094 struct sigaction act
22099 rm -f "conftest.$ac_objext"
22100 if { (eval echo "$as_me:22100: \"$ac_compile\"") >&5
22101 (eval $ac_compile) 2>&5
22103 echo "$as_me:22103: \$? = $ac_status" >&5
22104 (exit "$ac_status"); } &&
22105 { ac_try='test -s "conftest.$ac_objext"'
22106 { (eval echo "$as_me:22106: \"$ac_try\"") >&5
22107 (eval $ac_try) 2>&5
22109 echo "$as_me:22109: \$? = $ac_status" >&5
22110 (exit "$ac_status"); }; }; then
22113 echo "$as_me: failed program was:" >&5
22114 cat "conftest.$ac_ext" >&5
22116 cat >"conftest.$ac_ext" <<_ACEOF
22117 #line 22117 "configure"
22118 #include "confdefs.h"
22120 #define _POSIX_SOURCE
22121 #include <sys/types.h>
22122 #include <signal.h>
22126 struct sigaction act
22131 rm -f "conftest.$ac_objext"
22132 if { (eval echo "$as_me:22132: \"$ac_compile\"") >&5
22133 (eval $ac_compile) 2>&5
22135 echo "$as_me:22135: \$? = $ac_status" >&5
22136 (exit "$ac_status"); } &&
22137 { ac_try='test -s "conftest.$ac_objext"'
22138 { (eval echo "$as_me:22138: \"$ac_try\"") >&5
22139 (eval $ac_try) 2>&5
22141 echo "$as_me:22141: \$? = $ac_status" >&5
22142 (exit "$ac_status"); }; }; then
22145 cat >>confdefs.h <<\EOF
22146 #define _POSIX_SOURCE 1
22150 echo "$as_me: failed program was:" >&5
22151 cat "conftest.$ac_ext" >&5
22154 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22156 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22157 echo "$as_me:22157: result: $sigact_bad" >&5
22158 echo "${ECHO_T}$sigact_bad" >&6
22161 echo "$as_me:22161: checking if nanosleep really works" >&5
22162 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
22163 if test "${cf_cv_func_nanosleep+set}" = set; then
22164 echo $ECHO_N "(cached) $ECHO_C" >&6
22167 if test "$cross_compiling" = yes; then
22168 cf_cv_func_nanosleep=unknown
22170 cat >"conftest.$ac_ext" <<_ACEOF
22171 #line 22171 "configure"
22172 #include "confdefs.h"
22174 $ac_includes_default
22179 #ifdef HAVE_SYS_TIME_H
22180 #include <sys/time.h>
22184 struct timespec ts1, ts2;
22187 ts1.tv_nsec = 750000000;
22191 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
22192 ${cf_cv_main_return:-return}(code != 0);
22196 rm -f "conftest$ac_exeext"
22197 if { (eval echo "$as_me:22197: \"$ac_link\"") >&5
22198 (eval $ac_link) 2>&5
22200 echo "$as_me:22200: \$? = $ac_status" >&5
22201 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
22202 { (eval echo "$as_me:22202: \"$ac_try\"") >&5
22203 (eval $ac_try) 2>&5
22205 echo "$as_me:22205: \$? = $ac_status" >&5
22206 (exit "$ac_status"); }; }; then
22207 cf_cv_func_nanosleep=yes
22209 echo "$as_me: program exited with status $ac_status" >&5
22210 echo "$as_me: failed program was:" >&5
22211 cat "conftest.$ac_ext" >&5
22212 cf_cv_func_nanosleep=no
22214 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22217 echo "$as_me:22217: result: $cf_cv_func_nanosleep" >&5
22218 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
22220 test "$cf_cv_func_nanosleep" = "yes" &&
22221 cat >>confdefs.h <<\EOF
22222 #define HAVE_NANOSLEEP 1
22233 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22234 echo "$as_me:22234: checking for $ac_header" >&5
22235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22237 echo $ECHO_N "(cached) $ECHO_C" >&6
22239 cat >"conftest.$ac_ext" <<_ACEOF
22240 #line 22240 "configure"
22241 #include "confdefs.h"
22242 #include <$ac_header>
22244 if { (eval echo "$as_me:22244: \"$ac_cpp "conftest.$ac_ext"\"") >&5
22245 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
22247 $EGREP -v '^ *\+' conftest.er1 >conftest.err
22249 cat conftest.err >&5
22250 echo "$as_me:22250: \$? = $ac_status" >&5
22251 (exit "$ac_status"); } >/dev/null; then
22252 if test -s conftest.err; then
22253 ac_cpp_err=$ac_c_preproc_warn_flag
22260 if test -z "$ac_cpp_err"; then
22261 eval "$as_ac_Header=yes"
22263 echo "$as_me: failed program was:" >&5
22264 cat "conftest.$ac_ext" >&5
22265 eval "$as_ac_Header=no"
22267 rm -f conftest.err "conftest.$ac_ext"
22269 echo "$as_me:22269: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
22270 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
22271 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
22272 cat >>confdefs.h <<EOF
22273 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22279 if test "$ac_cv_header_termios_h" = yes ; then
22280 case "$CFLAGS $CPPFLAGS" in
22281 (*-D_POSIX_SOURCE*)
22282 termios_bad=dunno ;;
22283 (*) termios_bad=maybe ;;
22285 if test "$termios_bad" = maybe ; then
22286 echo "$as_me:22286: checking whether termios.h needs _POSIX_SOURCE" >&5
22287 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
22288 cat >"conftest.$ac_ext" <<_ACEOF
22289 #line 22289 "configure"
22290 #include "confdefs.h"
22291 #include <termios.h>
22295 struct termios foo; int x = foo.c_iflag = 1; (void)x
22300 rm -f "conftest.$ac_objext"
22301 if { (eval echo "$as_me:22301: \"$ac_compile\"") >&5
22302 (eval $ac_compile) 2>&5
22304 echo "$as_me:22304: \$? = $ac_status" >&5
22305 (exit "$ac_status"); } &&
22306 { ac_try='test -s "conftest.$ac_objext"'
22307 { (eval echo "$as_me:22307: \"$ac_try\"") >&5
22308 (eval $ac_try) 2>&5
22310 echo "$as_me:22310: \$? = $ac_status" >&5
22311 (exit "$ac_status"); }; }; then
22314 echo "$as_me: failed program was:" >&5
22315 cat "conftest.$ac_ext" >&5
22317 cat >"conftest.$ac_ext" <<_ACEOF
22318 #line 22318 "configure"
22319 #include "confdefs.h"
22321 #define _POSIX_SOURCE
22322 #include <termios.h>
22326 struct termios foo; int x = foo.c_iflag = 2; (void)x
22331 rm -f "conftest.$ac_objext"
22332 if { (eval echo "$as_me:22332: \"$ac_compile\"") >&5
22333 (eval $ac_compile) 2>&5
22335 echo "$as_me:22335: \$? = $ac_status" >&5
22336 (exit "$ac_status"); } &&
22337 { ac_try='test -s "conftest.$ac_objext"'
22338 { (eval echo "$as_me:22338: \"$ac_try\"") >&5
22339 (eval $ac_try) 2>&5
22341 echo "$as_me:22341: \$? = $ac_status" >&5
22342 (exit "$ac_status"); }; }; then
22343 termios_bad=unknown
22345 echo "$as_me: failed program was:" >&5
22346 cat "conftest.$ac_ext" >&5
22348 cat >>confdefs.h <<\EOF
22349 #define _POSIX_SOURCE 1
22353 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22356 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22357 echo "$as_me:22357: result: $termios_bad" >&5
22358 echo "${ECHO_T}$termios_bad" >&6
22362 echo "$as_me:22362: checking for tcgetattr" >&5
22363 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
22364 if test "${cf_cv_have_tcgetattr+set}" = set; then
22365 echo $ECHO_N "(cached) $ECHO_C" >&6
22368 cat >"conftest.$ac_ext" <<_ACEOF
22369 #line 22369 "configure"
22370 #include "confdefs.h"
22372 #include <sys/types.h>
22373 #ifdef HAVE_UNISTD_H
22374 #include <unistd.h>
22376 #ifdef HAVE_TERMIOS_H
22377 #include <termios.h>
22378 #define TTY struct termios
22380 #ifdef HAVE_TERMIO_H
22381 #include <termio.h>
22382 #define TTY struct termio
22391 tcgetattr(1, &foo);
22396 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22397 if { (eval echo "$as_me:22397: \"$ac_link\"") >&5
22398 (eval $ac_link) 2>&5
22400 echo "$as_me:22400: \$? = $ac_status" >&5
22401 (exit "$ac_status"); } &&
22402 { ac_try='test -s "conftest$ac_exeext"'
22403 { (eval echo "$as_me:22403: \"$ac_try\"") >&5
22404 (eval $ac_try) 2>&5
22406 echo "$as_me:22406: \$? = $ac_status" >&5
22407 (exit "$ac_status"); }; }; then
22408 cf_cv_have_tcgetattr=yes
22410 echo "$as_me: failed program was:" >&5
22411 cat "conftest.$ac_ext" >&5
22412 cf_cv_have_tcgetattr=no
22414 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22416 echo "$as_me:22416: result: $cf_cv_have_tcgetattr" >&5
22417 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
22418 test "$cf_cv_have_tcgetattr" = yes &&
22419 cat >>confdefs.h <<\EOF
22420 #define HAVE_TCGETATTR 1
22423 echo "$as_me:22423: checking for vsscanf function or workaround" >&5
22424 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
22425 if test "${cf_cv_func_vsscanf+set}" = set; then
22426 echo $ECHO_N "(cached) $ECHO_C" >&6
22429 cat >"conftest.$ac_ext" <<_ACEOF
22430 #line 22430 "configure"
22431 #include "confdefs.h"
22433 #include <stdarg.h>
22440 vsscanf("from", "%d", ap)
22445 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22446 if { (eval echo "$as_me:22446: \"$ac_link\"") >&5
22447 (eval $ac_link) 2>&5
22449 echo "$as_me:22449: \$? = $ac_status" >&5
22450 (exit "$ac_status"); } &&
22451 { ac_try='test -s "conftest$ac_exeext"'
22452 { (eval echo "$as_me:22452: \"$ac_try\"") >&5
22453 (eval $ac_try) 2>&5
22455 echo "$as_me:22455: \$? = $ac_status" >&5
22456 (exit "$ac_status"); }; }; then
22457 cf_cv_func_vsscanf=vsscanf
22459 echo "$as_me: failed program was:" >&5
22460 cat "conftest.$ac_ext" >&5
22462 cat >"conftest.$ac_ext" <<_ACEOF
22463 #line 22463 "configure"
22464 #include "confdefs.h"
22466 #include <stdarg.h>
22473 char *str = "from";
22475 strbuf._flag = _IOREAD;
22476 strbuf._ptr = strbuf._base = (unsigned char *) str;
22477 strbuf._cnt = strlen(str);
22478 strbuf._file = _NFILE;
22479 return (vfscanf(&strbuf, "%d", ap))
22484 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22485 if { (eval echo "$as_me:22485: \"$ac_link\"") >&5
22486 (eval $ac_link) 2>&5
22488 echo "$as_me:22488: \$? = $ac_status" >&5
22489 (exit "$ac_status"); } &&
22490 { ac_try='test -s "conftest$ac_exeext"'
22491 { (eval echo "$as_me:22491: \"$ac_try\"") >&5
22492 (eval $ac_try) 2>&5
22494 echo "$as_me:22494: \$? = $ac_status" >&5
22495 (exit "$ac_status"); }; }; then
22496 cf_cv_func_vsscanf=vfscanf
22498 echo "$as_me: failed program was:" >&5
22499 cat "conftest.$ac_ext" >&5
22501 cat >"conftest.$ac_ext" <<_ACEOF
22502 #line 22502 "configure"
22503 #include "confdefs.h"
22505 #include <stdarg.h>
22512 char *str = "from";
22514 strbuf._flag = _IOREAD;
22515 strbuf._ptr = strbuf._base = (unsigned char *) str;
22516 strbuf._cnt = strlen(str);
22517 strbuf._file = _NFILE;
22518 return (_doscan(&strbuf, "%d", ap))
22523 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22524 if { (eval echo "$as_me:22524: \"$ac_link\"") >&5
22525 (eval $ac_link) 2>&5
22527 echo "$as_me:22527: \$? = $ac_status" >&5
22528 (exit "$ac_status"); } &&
22529 { ac_try='test -s "conftest$ac_exeext"'
22530 { (eval echo "$as_me:22530: \"$ac_try\"") >&5
22531 (eval $ac_try) 2>&5
22533 echo "$as_me:22533: \$? = $ac_status" >&5
22534 (exit "$ac_status"); }; }; then
22535 cf_cv_func_vsscanf=_doscan
22537 echo "$as_me: failed program was:" >&5
22538 cat "conftest.$ac_ext" >&5
22540 cf_cv_func_vsscanf=no
22542 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22544 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22546 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22548 echo "$as_me:22548: result: $cf_cv_func_vsscanf" >&5
22549 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
22551 case "$cf_cv_func_vsscanf" in
22553 cat >>confdefs.h <<\EOF
22554 #define HAVE_VSSCANF 1
22558 cat >>confdefs.h <<\EOF
22559 #define HAVE_VFSCANF 1
22563 cat >>confdefs.h <<\EOF
22564 #define HAVE__DOSCAN 1
22573 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22574 echo "$as_me:22574: checking for $ac_header" >&5
22575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22577 echo $ECHO_N "(cached) $ECHO_C" >&6
22579 cat >"conftest.$ac_ext" <<_ACEOF
22580 #line 22580 "configure"
22581 #include "confdefs.h"
22582 #include <$ac_header>
22584 if { (eval echo "$as_me:22584: \"$ac_cpp "conftest.$ac_ext"\"") >&5
22585 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
22587 $EGREP -v '^ *\+' conftest.er1 >conftest.err
22589 cat conftest.err >&5
22590 echo "$as_me:22590: \$? = $ac_status" >&5
22591 (exit "$ac_status"); } >/dev/null; then
22592 if test -s conftest.err; then
22593 ac_cpp_err=$ac_c_preproc_warn_flag
22600 if test -z "$ac_cpp_err"; then
22601 eval "$as_ac_Header=yes"
22603 echo "$as_me: failed program was:" >&5
22604 cat "conftest.$ac_ext" >&5
22605 eval "$as_ac_Header=no"
22607 rm -f conftest.err "conftest.$ac_ext"
22609 echo "$as_me:22609: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
22610 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
22611 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
22612 cat >>confdefs.h <<EOF
22613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22619 echo "$as_me:22619: checking for working mkstemp" >&5
22620 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
22621 if test "${cf_cv_func_mkstemp+set}" = set; then
22622 echo $ECHO_N "(cached) $ECHO_C" >&6
22626 if test "$cross_compiling" = yes; then
22627 cf_cv_func_mkstemp=maybe
22629 cat >"conftest.$ac_ext" <<_ACEOF
22630 #line 22630 "configure"
22631 #include "confdefs.h"
22633 $ac_includes_default
22637 char *tmpl = "conftestXXXXXX";
22645 for (n = 0; n < 2; ++n) {
22646 strcpy(name[n], tmpl);
22647 if ((fd = mkstemp(name[n])) >= 0) {
22648 if (!strcmp(name[n], tmpl)
22649 || stat(name[n], &sb) != 0
22650 || (sb.st_mode & S_IFMT) != S_IFREG
22651 || (sb.st_mode & 077) != 0) {
22658 && !strcmp(name[0], name[1]))
22660 ${cf_cv_main_return:-return}(result);
22664 rm -f "conftest$ac_exeext"
22665 if { (eval echo "$as_me:22665: \"$ac_link\"") >&5
22666 (eval $ac_link) 2>&5
22668 echo "$as_me:22668: \$? = $ac_status" >&5
22669 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
22670 { (eval echo "$as_me:22670: \"$ac_try\"") >&5
22671 (eval $ac_try) 2>&5
22673 echo "$as_me:22673: \$? = $ac_status" >&5
22674 (exit "$ac_status"); }; }; then
22675 cf_cv_func_mkstemp=yes
22678 echo "$as_me: program exited with status $ac_status" >&5
22679 echo "$as_me: failed program was:" >&5
22680 cat "conftest.$ac_ext" >&5
22681 cf_cv_func_mkstemp=no
22684 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22688 echo "$as_me:22688: result: $cf_cv_func_mkstemp" >&5
22689 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
22690 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
22691 echo "$as_me:22691: checking for mkstemp" >&5
22692 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
22693 if test "${ac_cv_func_mkstemp+set}" = set; then
22694 echo $ECHO_N "(cached) $ECHO_C" >&6
22696 cat >"conftest.$ac_ext" <<_ACEOF
22697 #line 22697 "configure"
22698 #include "confdefs.h"
22699 #define mkstemp autoconf_temporary
22700 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
22707 /* We use char because int might match the return type of a gcc2
22708 builtin and then its argument prototype would still apply. */
22709 char mkstemp (void);
22715 /* The GNU C library defines stubs for functions which it implements
22716 to always fail with ENOSYS. Some functions are actually named
22717 something starting with __ and the normal name is an alias. */
22718 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
22719 #error found stub for mkstemp
22727 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22728 if { (eval echo "$as_me:22728: \"$ac_link\"") >&5
22729 (eval $ac_link) 2>&5
22731 echo "$as_me:22731: \$? = $ac_status" >&5
22732 (exit "$ac_status"); } &&
22733 { ac_try='test -s "conftest$ac_exeext"'
22734 { (eval echo "$as_me:22734: \"$ac_try\"") >&5
22735 (eval $ac_try) 2>&5
22737 echo "$as_me:22737: \$? = $ac_status" >&5
22738 (exit "$ac_status"); }; }; then
22739 ac_cv_func_mkstemp=yes
22741 echo "$as_me: failed program was:" >&5
22742 cat "conftest.$ac_ext" >&5
22743 ac_cv_func_mkstemp=no
22745 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22747 echo "$as_me:22747: result: $ac_cv_func_mkstemp" >&5
22748 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
22751 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
22753 cat >>confdefs.h <<\EOF
22754 #define HAVE_MKSTEMP 1
22759 # setup for prototype of fallback for vsscanf()
22761 if test "$cf_cv_func_vsscanf" = vsscanf ; then
22767 if test "x$cross_compiling" = xyes ; then
22768 { echo "$as_me:22768: WARNING: cross compiling: assume setvbuf params not reversed" >&5
22769 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
22771 echo "$as_me:22771: checking whether setvbuf arguments are reversed" >&5
22772 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
22773 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
22774 echo $ECHO_N "(cached) $ECHO_C" >&6
22776 if test "$cross_compiling" = yes; then
22777 { { echo "$as_me:22777: error: cannot run test program while cross compiling" >&5
22778 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
22779 { (exit 1); exit 1; }; }
22781 cat >"conftest.$ac_ext" <<_ACEOF
22782 #line 22782 "configure"
22783 #include "confdefs.h"
22785 /* If setvbuf has the reversed format, exit 0. */
22789 /* This call has the arguments reversed.
22790 A reversed system may check and see that the address of main
22791 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
22792 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
22793 $ac_main_return(1);
22794 putc('\r', stdout);
22795 $ac_main_return(0); /* Non-reversed systems segv here. */
22798 rm -f "conftest$ac_exeext"
22799 if { (eval echo "$as_me:22799: \"$ac_link\"") >&5
22800 (eval $ac_link) 2>&5
22802 echo "$as_me:22802: \$? = $ac_status" >&5
22803 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
22804 { (eval echo "$as_me:22804: \"$ac_try\"") >&5
22805 (eval $ac_try) 2>&5
22807 echo "$as_me:22807: \$? = $ac_status" >&5
22808 (exit "$ac_status"); }; }; then
22809 ac_cv_func_setvbuf_reversed=yes
22811 echo "$as_me: program exited with status $ac_status" >&5
22812 echo "$as_me: failed program was:" >&5
22813 cat "conftest.$ac_ext" >&5
22814 ac_cv_func_setvbuf_reversed=no
22816 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22818 rm -f core ./core.* ./*.core
22820 echo "$as_me:22820: result: $ac_cv_func_setvbuf_reversed" >&5
22821 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
22822 if test $ac_cv_func_setvbuf_reversed = yes; then
22824 cat >>confdefs.h <<\EOF
22825 #define SETVBUF_REVERSED 1
22831 echo "$as_me:22831: checking for intptr_t" >&5
22832 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
22833 if test "${ac_cv_type_intptr_t+set}" = set; then
22834 echo $ECHO_N "(cached) $ECHO_C" >&6
22836 cat >"conftest.$ac_ext" <<_ACEOF
22837 #line 22837 "configure"
22838 #include "confdefs.h"
22839 $ac_includes_default
22843 if ((intptr_t *) 0)
22845 if (sizeof (intptr_t))
22851 rm -f "conftest.$ac_objext"
22852 if { (eval echo "$as_me:22852: \"$ac_compile\"") >&5
22853 (eval $ac_compile) 2>&5
22855 echo "$as_me:22855: \$? = $ac_status" >&5
22856 (exit "$ac_status"); } &&
22857 { ac_try='test -s "conftest.$ac_objext"'
22858 { (eval echo "$as_me:22858: \"$ac_try\"") >&5
22859 (eval $ac_try) 2>&5
22861 echo "$as_me:22861: \$? = $ac_status" >&5
22862 (exit "$ac_status"); }; }; then
22863 ac_cv_type_intptr_t=yes
22865 echo "$as_me: failed program was:" >&5
22866 cat "conftest.$ac_ext" >&5
22867 ac_cv_type_intptr_t=no
22869 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22871 echo "$as_me:22871: result: $ac_cv_type_intptr_t" >&5
22872 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
22873 if test "$ac_cv_type_intptr_t" = yes; then
22877 cat >>confdefs.h <<EOF
22878 #define intptr_t long
22883 echo "$as_me:22883: checking for ssize_t" >&5
22884 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
22885 if test "${ac_cv_type_ssize_t+set}" = set; then
22886 echo $ECHO_N "(cached) $ECHO_C" >&6
22888 cat >"conftest.$ac_ext" <<_ACEOF
22889 #line 22889 "configure"
22890 #include "confdefs.h"
22891 $ac_includes_default
22897 if (sizeof (ssize_t))
22903 rm -f "conftest.$ac_objext"
22904 if { (eval echo "$as_me:22904: \"$ac_compile\"") >&5
22905 (eval $ac_compile) 2>&5
22907 echo "$as_me:22907: \$? = $ac_status" >&5
22908 (exit "$ac_status"); } &&
22909 { ac_try='test -s "conftest.$ac_objext"'
22910 { (eval echo "$as_me:22910: \"$ac_try\"") >&5
22911 (eval $ac_try) 2>&5
22913 echo "$as_me:22913: \$? = $ac_status" >&5
22914 (exit "$ac_status"); }; }; then
22915 ac_cv_type_ssize_t=yes
22917 echo "$as_me: failed program was:" >&5
22918 cat "conftest.$ac_ext" >&5
22919 ac_cv_type_ssize_t=no
22921 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22923 echo "$as_me:22923: result: $ac_cv_type_ssize_t" >&5
22924 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
22925 if test "$ac_cv_type_ssize_t" = yes; then
22929 cat >>confdefs.h <<EOF
22930 #define ssize_t int
22935 echo "$as_me:22935: checking for type sigaction_t" >&5
22936 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
22937 if test "${cf_cv_type_sigaction+set}" = set; then
22938 echo $ECHO_N "(cached) $ECHO_C" >&6
22941 cat >"conftest.$ac_ext" <<_ACEOF
22942 #line 22942 "configure"
22943 #include "confdefs.h"
22945 #include <signal.h>
22954 rm -f "conftest.$ac_objext"
22955 if { (eval echo "$as_me:22955: \"$ac_compile\"") >&5
22956 (eval $ac_compile) 2>&5
22958 echo "$as_me:22958: \$? = $ac_status" >&5
22959 (exit "$ac_status"); } &&
22960 { ac_try='test -s "conftest.$ac_objext"'
22961 { (eval echo "$as_me:22961: \"$ac_try\"") >&5
22962 (eval $ac_try) 2>&5
22964 echo "$as_me:22964: \$? = $ac_status" >&5
22965 (exit "$ac_status"); }; }; then
22966 cf_cv_type_sigaction=yes
22968 echo "$as_me: failed program was:" >&5
22969 cat "conftest.$ac_ext" >&5
22970 cf_cv_type_sigaction=no
22972 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22975 echo "$as_me:22975: result: $cf_cv_type_sigaction" >&5
22976 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
22977 test "$cf_cv_type_sigaction" = yes &&
22978 cat >>confdefs.h <<\EOF
22979 #define HAVE_TYPE_SIGACTION 1
22982 echo "$as_me:22982: checking declaration of size-change" >&5
22983 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
22984 if test "${cf_cv_sizechange+set}" = set; then
22985 echo $ECHO_N "(cached) $ECHO_C" >&6
22988 cf_cv_sizechange=unknown
22989 cf_save_CPPFLAGS="$CPPFLAGS"
22991 for cf_opts in "" "NEED_PTEM_H"
22994 CPPFLAGS="$cf_save_CPPFLAGS"
22995 if test -n "$cf_opts"
22998 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
22999 CPPFLAGS="${CPPFLAGS}-D$cf_opts"
23002 cat >"conftest.$ac_ext" <<_ACEOF
23003 #line 23003 "configure"
23004 #include "confdefs.h"
23005 #include <sys/types.h>
23006 #ifdef HAVE_TERMIOS_H
23007 #include <termios.h>
23009 #ifdef HAVE_TERMIO_H
23010 #include <termio.h>
23015 /* This is a workaround for SCO: they neglected to define struct winsize in
23016 * termios.h -- it is only in termio.h and ptem.h
23018 #include <sys/stream.h>
23019 #include <sys/ptem.h>
23022 #ifdef HAVE_SYS_IOCTL_H
23023 #include <sys/ioctl.h>
23031 struct ttysize win; /* SunOS 3.0... */
23032 int y = win.ts_lines = 2;
23033 int x = win.ts_cols = 1;
23038 struct winsize win; /* everything else */
23039 int y = win.ws_row = 2;
23040 int x = win.ws_col = 1;
23044 no TIOCGSIZE or TIOCGWINSZ
23045 #endif /* TIOCGWINSZ */
23046 #endif /* TIOCGSIZE */
23052 rm -f "conftest.$ac_objext"
23053 if { (eval echo "$as_me:23053: \"$ac_compile\"") >&5
23054 (eval $ac_compile) 2>&5
23056 echo "$as_me:23056: \$? = $ac_status" >&5
23057 (exit "$ac_status"); } &&
23058 { ac_try='test -s "conftest.$ac_objext"'
23059 { (eval echo "$as_me:23059: \"$ac_try\"") >&5
23060 (eval $ac_try) 2>&5
23062 echo "$as_me:23062: \$? = $ac_status" >&5
23063 (exit "$ac_status"); }; }; then
23064 cf_cv_sizechange=yes
23066 echo "$as_me: failed program was:" >&5
23067 cat "conftest.$ac_ext" >&5
23068 cf_cv_sizechange=no
23070 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23072 CPPFLAGS="$cf_save_CPPFLAGS"
23073 if test "$cf_cv_sizechange" = yes ; then
23074 echo "size-change succeeded ($cf_opts)" >&5
23075 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
23081 echo "$as_me:23081: result: $cf_cv_sizechange" >&5
23082 echo "${ECHO_T}$cf_cv_sizechange" >&6
23083 if test "$cf_cv_sizechange" != no ; then
23085 cat >>confdefs.h <<\EOF
23086 #define HAVE_SIZECHANGE 1
23089 case "$cf_cv_sizechange" in
23091 cat >>confdefs.h <<EOF
23092 #define $cf_cv_sizechange 1
23099 echo "$as_me:23099: checking for memmove" >&5
23100 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
23101 if test "${ac_cv_func_memmove+set}" = set; then
23102 echo $ECHO_N "(cached) $ECHO_C" >&6
23104 cat >"conftest.$ac_ext" <<_ACEOF
23105 #line 23105 "configure"
23106 #include "confdefs.h"
23107 #define memmove autoconf_temporary
23108 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23115 /* We use char because int might match the return type of a gcc2
23116 builtin and then its argument prototype would still apply. */
23117 char memmove (void);
23123 /* The GNU C library defines stubs for functions which it implements
23124 to always fail with ENOSYS. Some functions are actually named
23125 something starting with __ and the normal name is an alias. */
23126 #if defined (__stub_memmove) || defined (__stub___memmove)
23127 #error found stub for memmove
23135 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23136 if { (eval echo "$as_me:23136: \"$ac_link\"") >&5
23137 (eval $ac_link) 2>&5
23139 echo "$as_me:23139: \$? = $ac_status" >&5
23140 (exit "$ac_status"); } &&
23141 { ac_try='test -s "conftest$ac_exeext"'
23142 { (eval echo "$as_me:23142: \"$ac_try\"") >&5
23143 (eval $ac_try) 2>&5
23145 echo "$as_me:23145: \$? = $ac_status" >&5
23146 (exit "$ac_status"); }; }; then
23147 ac_cv_func_memmove=yes
23149 echo "$as_me: failed program was:" >&5
23150 cat "conftest.$ac_ext" >&5
23151 ac_cv_func_memmove=no
23153 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23155 echo "$as_me:23155: result: $ac_cv_func_memmove" >&5
23156 echo "${ECHO_T}$ac_cv_func_memmove" >&6
23157 if test "$ac_cv_func_memmove" = yes; then
23161 echo "$as_me:23161: checking for bcopy" >&5
23162 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
23163 if test "${ac_cv_func_bcopy+set}" = set; then
23164 echo $ECHO_N "(cached) $ECHO_C" >&6
23166 cat >"conftest.$ac_ext" <<_ACEOF
23167 #line 23167 "configure"
23168 #include "confdefs.h"
23169 #define bcopy autoconf_temporary
23170 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23177 /* We use char because int might match the return type of a gcc2
23178 builtin and then its argument prototype would still apply. */
23185 /* The GNU C library defines stubs for functions which it implements
23186 to always fail with ENOSYS. Some functions are actually named
23187 something starting with __ and the normal name is an alias. */
23188 #if defined (__stub_bcopy) || defined (__stub___bcopy)
23189 #error found stub for bcopy
23197 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23198 if { (eval echo "$as_me:23198: \"$ac_link\"") >&5
23199 (eval $ac_link) 2>&5
23201 echo "$as_me:23201: \$? = $ac_status" >&5
23202 (exit "$ac_status"); } &&
23203 { ac_try='test -s "conftest$ac_exeext"'
23204 { (eval echo "$as_me:23204: \"$ac_try\"") >&5
23205 (eval $ac_try) 2>&5
23207 echo "$as_me:23207: \$? = $ac_status" >&5
23208 (exit "$ac_status"); }; }; then
23209 ac_cv_func_bcopy=yes
23211 echo "$as_me: failed program was:" >&5
23212 cat "conftest.$ac_ext" >&5
23213 ac_cv_func_bcopy=no
23215 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23217 echo "$as_me:23217: result: $ac_cv_func_bcopy" >&5
23218 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
23219 if test "$ac_cv_func_bcopy" = yes; then
23221 echo "$as_me:23221: checking if bcopy does overlapping moves" >&5
23222 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
23223 if test "${cf_cv_good_bcopy+set}" = set; then
23224 echo $ECHO_N "(cached) $ECHO_C" >&6
23227 if test "$cross_compiling" = yes; then
23228 cf_cv_good_bcopy=unknown
23230 cat >"conftest.$ac_ext" <<_ACEOF
23231 #line 23231 "configure"
23232 #include "confdefs.h"
23234 $ac_includes_default
23237 static char data[] = "abcdefghijklmnopqrstuwwxyz";
23239 bcopy(data, temp, sizeof(data));
23240 bcopy(temp+10, temp, 15);
23241 bcopy(temp+5, temp+15, 10);
23242 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
23246 rm -f "conftest$ac_exeext"
23247 if { (eval echo "$as_me:23247: \"$ac_link\"") >&5
23248 (eval $ac_link) 2>&5
23250 echo "$as_me:23250: \$? = $ac_status" >&5
23251 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23252 { (eval echo "$as_me:23252: \"$ac_try\"") >&5
23253 (eval $ac_try) 2>&5
23255 echo "$as_me:23255: \$? = $ac_status" >&5
23256 (exit "$ac_status"); }; }; then
23257 cf_cv_good_bcopy=yes
23259 echo "$as_me: program exited with status $ac_status" >&5
23260 echo "$as_me: failed program was:" >&5
23261 cat "conftest.$ac_ext" >&5
23262 cf_cv_good_bcopy=no
23264 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
23268 echo "$as_me:23268: result: $cf_cv_good_bcopy" >&5
23269 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
23272 cf_cv_good_bcopy=no
23275 if test "$cf_cv_good_bcopy" = yes ; then
23277 cat >>confdefs.h <<\EOF
23278 #define USE_OK_BCOPY 1
23283 cat >>confdefs.h <<\EOF
23284 #define USE_MY_MEMMOVE 1
23291 tty >/dev/null 2>&1 || {
23292 for ac_func in posix_openpt
23294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23295 echo "$as_me:23295: checking for $ac_func" >&5
23296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23297 if eval "test \"\${$as_ac_var+set}\" = set"; then
23298 echo $ECHO_N "(cached) $ECHO_C" >&6
23300 cat >"conftest.$ac_ext" <<_ACEOF
23301 #line 23301 "configure"
23302 #include "confdefs.h"
23303 #define $ac_func autoconf_temporary
23304 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23311 /* We use char because int might match the return type of a gcc2
23312 builtin and then its argument prototype would still apply. */
23313 char $ac_func (void);
23319 /* The GNU C library defines stubs for functions which it implements
23320 to always fail with ENOSYS. Some functions are actually named
23321 something starting with __ and the normal name is an alias. */
23322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23323 #error found stub for $ac_func
23326 return $ac_func ();
23331 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23332 if { (eval echo "$as_me:23332: \"$ac_link\"") >&5
23333 (eval $ac_link) 2>&5
23335 echo "$as_me:23335: \$? = $ac_status" >&5
23336 (exit "$ac_status"); } &&
23337 { ac_try='test -s "conftest$ac_exeext"'
23338 { (eval echo "$as_me:23338: \"$ac_try\"") >&5
23339 (eval $ac_try) 2>&5
23341 echo "$as_me:23341: \$? = $ac_status" >&5
23342 (exit "$ac_status"); }; }; then
23343 eval "$as_ac_var=yes"
23345 echo "$as_me: failed program was:" >&5
23346 cat "conftest.$ac_ext" >&5
23347 eval "$as_ac_var=no"
23349 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23351 echo "$as_me:23351: result: `eval echo '${'"$as_ac_var"'}'`" >&5
23352 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
23353 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
23354 cat >>confdefs.h <<EOF
23355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23361 echo "$as_me:23361: checking if poll really works" >&5
23362 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
23363 if test "${cf_cv_working_poll+set}" = set; then
23364 echo $ECHO_N "(cached) $ECHO_C" >&6
23367 if test "$cross_compiling" = yes; then
23368 cf_cv_working_poll=unknown
23370 cat >"conftest.$ac_ext" <<_ACEOF
23371 #line 23371 "configure"
23372 #include "confdefs.h"
23374 $ac_includes_default
23381 #include <sys/poll.h>
23385 struct pollfd myfds;
23388 /* check for Darwin bug with respect to "devices" */
23389 myfds.fd = open("/dev/null", 1); /* O_WRONLY */
23392 myfds.events = POLLIN;
23395 ret = poll(&myfds, 1, 100);
23397 if (ret < 0 || (myfds.revents & POLLNVAL)) {
23402 fd = open("/dev/tty", 2); /* O_RDWR */
23404 #ifdef HAVE_POSIX_OPENPT
23406 fd = posix_openpt(O_RDWR);
23411 /* also check with standard input */
23413 myfds.events = POLLIN;
23415 ret = poll(&myfds, 1, 100);
23420 ${cf_cv_main_return:-return}(ret < 0);
23423 rm -f "conftest$ac_exeext"
23424 if { (eval echo "$as_me:23424: \"$ac_link\"") >&5
23425 (eval $ac_link) 2>&5
23427 echo "$as_me:23427: \$? = $ac_status" >&5
23428 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23429 { (eval echo "$as_me:23429: \"$ac_try\"") >&5
23430 (eval $ac_try) 2>&5
23432 echo "$as_me:23432: \$? = $ac_status" >&5
23433 (exit "$ac_status"); }; }; then
23434 cf_cv_working_poll=yes
23436 echo "$as_me: program exited with status $ac_status" >&5
23437 echo "$as_me: failed program was:" >&5
23438 cat "conftest.$ac_ext" >&5
23439 cf_cv_working_poll=no
23441 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
23444 echo "$as_me:23444: result: $cf_cv_working_poll" >&5
23445 echo "${ECHO_T}$cf_cv_working_poll" >&6
23446 test "$cf_cv_working_poll" = "yes" &&
23447 cat >>confdefs.h <<\EOF
23448 #define HAVE_WORKING_POLL 1
23451 echo "$as_me:23451: checking for va_copy" >&5
23452 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
23453 if test "${cf_cv_have_va_copy+set}" = set; then
23454 echo $ECHO_N "(cached) $ECHO_C" >&6
23457 cat >"conftest.$ac_ext" <<_ACEOF
23458 #line 23458 "configure"
23459 #include "confdefs.h"
23461 #include <stdarg.h>
23467 static va_list dst;
23468 static va_list src;
23474 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23475 if { (eval echo "$as_me:23475: \"$ac_link\"") >&5
23476 (eval $ac_link) 2>&5
23478 echo "$as_me:23478: \$? = $ac_status" >&5
23479 (exit "$ac_status"); } &&
23480 { ac_try='test -s "conftest$ac_exeext"'
23481 { (eval echo "$as_me:23481: \"$ac_try\"") >&5
23482 (eval $ac_try) 2>&5
23484 echo "$as_me:23484: \$? = $ac_status" >&5
23485 (exit "$ac_status"); }; }; then
23486 cf_cv_have_va_copy=yes
23488 echo "$as_me: failed program was:" >&5
23489 cat "conftest.$ac_ext" >&5
23490 cf_cv_have_va_copy=no
23492 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23494 echo "$as_me:23494: result: $cf_cv_have_va_copy" >&5
23495 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
23497 if test "$cf_cv_have_va_copy" = yes;
23500 cat >>confdefs.h <<\EOF
23501 #define HAVE_VA_COPY 1
23504 else # !cf_cv_have_va_copy
23506 echo "$as_me:23506: checking for __va_copy" >&5
23507 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
23508 if test "${cf_cv_have___va_copy+set}" = set; then
23509 echo $ECHO_N "(cached) $ECHO_C" >&6
23512 cat >"conftest.$ac_ext" <<_ACEOF
23513 #line 23513 "configure"
23514 #include "confdefs.h"
23516 #include <stdarg.h>
23522 static va_list dst;
23523 static va_list src;
23524 __va_copy(dst, src)
23529 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23530 if { (eval echo "$as_me:23530: \"$ac_link\"") >&5
23531 (eval $ac_link) 2>&5
23533 echo "$as_me:23533: \$? = $ac_status" >&5
23534 (exit "$ac_status"); } &&
23535 { ac_try='test -s "conftest$ac_exeext"'
23536 { (eval echo "$as_me:23536: \"$ac_try\"") >&5
23537 (eval $ac_try) 2>&5
23539 echo "$as_me:23539: \$? = $ac_status" >&5
23540 (exit "$ac_status"); }; }; then
23541 cf_cv_have___va_copy=yes
23543 echo "$as_me: failed program was:" >&5
23544 cat "conftest.$ac_ext" >&5
23545 cf_cv_have___va_copy=no
23547 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23549 echo "$as_me:23549: result: $cf_cv_have___va_copy" >&5
23550 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
23552 if test "$cf_cv_have___va_copy" = yes
23555 cat >>confdefs.h <<\EOF
23556 #define HAVE___VA_COPY 1
23559 else # !cf_cv_have___va_copy
23561 echo "$as_me:23561: checking for __builtin_va_copy" >&5
23562 echo $ECHO_N "checking for __builtin_va_copy... $ECHO_C" >&6
23563 if test "${cf_cv_have___builtin_va_copy+set}" = set; then
23564 echo $ECHO_N "(cached) $ECHO_C" >&6
23567 cat >"conftest.$ac_ext" <<_ACEOF
23568 #line 23568 "configure"
23569 #include "confdefs.h"
23571 #include <stdarg.h>
23577 static va_list dst;
23578 static va_list src;
23579 __builtin_va_copy(dst, src)
23584 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23585 if { (eval echo "$as_me:23585: \"$ac_link\"") >&5
23586 (eval $ac_link) 2>&5
23588 echo "$as_me:23588: \$? = $ac_status" >&5
23589 (exit "$ac_status"); } &&
23590 { ac_try='test -s "conftest$ac_exeext"'
23591 { (eval echo "$as_me:23591: \"$ac_try\"") >&5
23592 (eval $ac_try) 2>&5
23594 echo "$as_me:23594: \$? = $ac_status" >&5
23595 (exit "$ac_status"); }; }; then
23596 cf_cv_have___builtin_va_copy=yes
23598 echo "$as_me: failed program was:" >&5
23599 cat "conftest.$ac_ext" >&5
23600 cf_cv_have___builtin_va_copy=no
23602 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23604 echo "$as_me:23604: result: $cf_cv_have___builtin_va_copy" >&5
23605 echo "${ECHO_T}$cf_cv_have___builtin_va_copy" >&6
23607 test "$cf_cv_have___builtin_va_copy" = yes &&
23609 cat >>confdefs.h <<\EOF
23610 #define HAVE___BUILTIN_VA_COPY 1
23613 fi # cf_cv_have___va_copy
23615 fi # cf_cv_have_va_copy
23617 case "${cf_cv_have_va_copy}${cf_cv_have___va_copy}${cf_cv_have___builtin_va_copy}" in
23622 echo "$as_me:23622: checking if we can simply copy va_list" >&5
23623 echo $ECHO_N "checking if we can simply copy va_list... $ECHO_C" >&6
23624 if test "${cf_cv_pointer_va_list+set}" = set; then
23625 echo $ECHO_N "(cached) $ECHO_C" >&6
23628 cat >"conftest.$ac_ext" <<_ACEOF
23629 #line 23629 "configure"
23630 #include "confdefs.h"
23632 #include <stdarg.h>
23645 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23646 if { (eval echo "$as_me:23646: \"$ac_link\"") >&5
23647 (eval $ac_link) 2>&5
23649 echo "$as_me:23649: \$? = $ac_status" >&5
23650 (exit "$ac_status"); } &&
23651 { ac_try='test -s "conftest$ac_exeext"'
23652 { (eval echo "$as_me:23652: \"$ac_try\"") >&5
23653 (eval $ac_try) 2>&5
23655 echo "$as_me:23655: \$? = $ac_status" >&5
23656 (exit "$ac_status"); }; }; then
23657 cf_cv_pointer_va_list=yes
23659 echo "$as_me: failed program was:" >&5
23660 cat "conftest.$ac_ext" >&5
23661 cf_cv_pointer_va_list=no
23663 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23665 echo "$as_me:23665: result: $cf_cv_pointer_va_list" >&5
23666 echo "${ECHO_T}$cf_cv_pointer_va_list" >&6
23668 if test "$cf_cv_pointer_va_list" = no
23670 echo "$as_me:23670: checking if we can copy va_list indirectly" >&5
23671 echo $ECHO_N "checking if we can copy va_list indirectly... $ECHO_C" >&6
23672 if test "${cf_cv_array_va_list+set}" = set; then
23673 echo $ECHO_N "(cached) $ECHO_C" >&6
23676 cat >"conftest.$ac_ext" <<_ACEOF
23677 #line 23677 "configure"
23678 #include "confdefs.h"
23680 #include <stdarg.h>
23693 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23694 if { (eval echo "$as_me:23694: \"$ac_link\"") >&5
23695 (eval $ac_link) 2>&5
23697 echo "$as_me:23697: \$? = $ac_status" >&5
23698 (exit "$ac_status"); } &&
23699 { ac_try='test -s "conftest$ac_exeext"'
23700 { (eval echo "$as_me:23700: \"$ac_try\"") >&5
23701 (eval $ac_try) 2>&5
23703 echo "$as_me:23703: \$? = $ac_status" >&5
23704 (exit "$ac_status"); }; }; then
23705 cf_cv_array_va_list=yes
23707 echo "$as_me: failed program was:" >&5
23708 cat "conftest.$ac_ext" >&5
23709 cf_cv_array_va_list=no
23711 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23713 echo "$as_me:23713: result: $cf_cv_array_va_list" >&5
23714 echo "${ECHO_T}$cf_cv_array_va_list" >&6
23715 test "$cf_cv_array_va_list" = yes &&
23716 cat >>confdefs.h <<\EOF
23717 #define ARRAY_VA_LIST 1
23724 echo "$as_me:23724: checking for pid_t" >&5
23725 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
23726 if test "${ac_cv_type_pid_t+set}" = set; then
23727 echo $ECHO_N "(cached) $ECHO_C" >&6
23729 cat >"conftest.$ac_ext" <<_ACEOF
23730 #line 23730 "configure"
23731 #include "confdefs.h"
23732 $ac_includes_default
23738 if (sizeof (pid_t))
23744 rm -f "conftest.$ac_objext"
23745 if { (eval echo "$as_me:23745: \"$ac_compile\"") >&5
23746 (eval $ac_compile) 2>&5
23748 echo "$as_me:23748: \$? = $ac_status" >&5
23749 (exit "$ac_status"); } &&
23750 { ac_try='test -s "conftest.$ac_objext"'
23751 { (eval echo "$as_me:23751: \"$ac_try\"") >&5
23752 (eval $ac_try) 2>&5
23754 echo "$as_me:23754: \$? = $ac_status" >&5
23755 (exit "$ac_status"); }; }; then
23756 ac_cv_type_pid_t=yes
23758 echo "$as_me: failed program was:" >&5
23759 cat "conftest.$ac_ext" >&5
23760 ac_cv_type_pid_t=no
23762 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23764 echo "$as_me:23764: result: $ac_cv_type_pid_t" >&5
23765 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
23766 if test "$ac_cv_type_pid_t" = yes; then
23770 cat >>confdefs.h <<EOF
23776 for ac_header in unistd.h vfork.h
23778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23779 echo "$as_me:23779: checking for $ac_header" >&5
23780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23782 echo $ECHO_N "(cached) $ECHO_C" >&6
23784 cat >"conftest.$ac_ext" <<_ACEOF
23785 #line 23785 "configure"
23786 #include "confdefs.h"
23787 #include <$ac_header>
23789 if { (eval echo "$as_me:23789: \"$ac_cpp "conftest.$ac_ext"\"") >&5
23790 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
23792 $EGREP -v '^ *\+' conftest.er1 >conftest.err
23794 cat conftest.err >&5
23795 echo "$as_me:23795: \$? = $ac_status" >&5
23796 (exit "$ac_status"); } >/dev/null; then
23797 if test -s conftest.err; then
23798 ac_cpp_err=$ac_c_preproc_warn_flag
23805 if test -z "$ac_cpp_err"; then
23806 eval "$as_ac_Header=yes"
23808 echo "$as_me: failed program was:" >&5
23809 cat "conftest.$ac_ext" >&5
23810 eval "$as_ac_Header=no"
23812 rm -f conftest.err "conftest.$ac_ext"
23814 echo "$as_me:23814: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
23815 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
23816 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
23817 cat >>confdefs.h <<EOF
23818 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23824 for ac_func in fork vfork
23826 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23827 echo "$as_me:23827: checking for $ac_func" >&5
23828 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23829 if eval "test \"\${$as_ac_var+set}\" = set"; then
23830 echo $ECHO_N "(cached) $ECHO_C" >&6
23832 cat >"conftest.$ac_ext" <<_ACEOF
23833 #line 23833 "configure"
23834 #include "confdefs.h"
23835 #define $ac_func autoconf_temporary
23836 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23843 /* We use char because int might match the return type of a gcc2
23844 builtin and then its argument prototype would still apply. */
23845 char $ac_func (void);
23851 /* The GNU C library defines stubs for functions which it implements
23852 to always fail with ENOSYS. Some functions are actually named
23853 something starting with __ and the normal name is an alias. */
23854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23855 #error found stub for $ac_func
23858 return $ac_func ();
23863 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23864 if { (eval echo "$as_me:23864: \"$ac_link\"") >&5
23865 (eval $ac_link) 2>&5
23867 echo "$as_me:23867: \$? = $ac_status" >&5
23868 (exit "$ac_status"); } &&
23869 { ac_try='test -s "conftest$ac_exeext"'
23870 { (eval echo "$as_me:23870: \"$ac_try\"") >&5
23871 (eval $ac_try) 2>&5
23873 echo "$as_me:23873: \$? = $ac_status" >&5
23874 (exit "$ac_status"); }; }; then
23875 eval "$as_ac_var=yes"
23877 echo "$as_me: failed program was:" >&5
23878 cat "conftest.$ac_ext" >&5
23879 eval "$as_ac_var=no"
23881 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23883 echo "$as_me:23883: result: `eval echo '${'"$as_ac_var"'}'`" >&5
23884 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
23885 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
23886 cat >>confdefs.h <<EOF
23887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23893 ac_cv_func_fork_works=$ac_cv_func_fork
23894 if test "x$ac_cv_func_fork" = xyes; then
23895 echo "$as_me:23895: checking for working fork" >&5
23896 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
23897 if test "${ac_cv_func_fork_works+set}" = set; then
23898 echo $ECHO_N "(cached) $ECHO_C" >&6
23900 if test "$cross_compiling" = yes; then
23901 ac_cv_func_fork_works=cross
23903 cat >"conftest.$ac_ext" <<_ACEOF
23904 /* By Rüdiger Kuhlmann. */
23905 #include <sys/types.h>
23907 # include <unistd.h>
23909 /* Some systems only have a dummy stub for fork() */
23913 $ac_main_return (1);
23914 $ac_main_return (0);
23917 rm -f "conftest$ac_exeext"
23918 if { (eval echo "$as_me:23918: \"$ac_link\"") >&5
23919 (eval $ac_link) 2>&5
23921 echo "$as_me:23921: \$? = $ac_status" >&5
23922 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23923 { (eval echo "$as_me:23923: \"$ac_try\"") >&5
23924 (eval $ac_try) 2>&5
23926 echo "$as_me:23926: \$? = $ac_status" >&5
23927 (exit "$ac_status"); }; }; then
23928 ac_cv_func_fork_works=yes
23930 echo "$as_me: program exited with status $ac_status" >&5
23931 echo "$as_me: failed program was:" >&5
23932 cat "conftest.$ac_ext" >&5
23933 ac_cv_func_fork_works=no
23935 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
23938 echo "$as_me:23938: result: $ac_cv_func_fork_works" >&5
23939 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
23942 if test "x$ac_cv_func_fork_works" = xcross; then
23944 *-*-amigaos* | *-*-msdosdjgpp*)
23945 # Override, as these systems have only a dummy fork() stub
23946 ac_cv_func_fork_works=no
23949 ac_cv_func_fork_works=yes
23952 { echo "$as_me:23952: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
23953 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
23955 ac_cv_func_vfork_works=$ac_cv_func_vfork
23956 if test "x$ac_cv_func_vfork" = xyes; then
23957 echo "$as_me:23957: checking for working vfork" >&5
23958 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
23959 if test "${ac_cv_func_vfork_works+set}" = set; then
23960 echo $ECHO_N "(cached) $ECHO_C" >&6
23962 if test "$cross_compiling" = yes; then
23963 ac_cv_func_vfork_works=cross
23965 cat >"conftest.$ac_ext" <<_ACEOF
23966 #line 23966 "configure"
23967 #include "confdefs.h"
23968 /* Thanks to Paul Eggert for this test. */
23970 #include <sys/types.h>
23971 #include <sys/stat.h>
23973 # include <unistd.h>
23976 # include <vfork.h>
23978 /* On some sparc systems, changes by the child to local and incoming
23979 argument registers are propagated back to the parent. The compiler
23980 is told about this with #include <vfork.h>, but some compilers
23981 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23982 static variable whose address is put into a register that is
23983 clobbered by the vfork. */
23986 sparc_address_test (int arg)
23988 sparc_address_test (arg) int arg;
23991 static pid_t child;
24009 pid_t parent = getpid ();
24012 sparc_address_test ();
24017 /* Here is another test for sparc vfork register problems. This
24018 test uses lots of local variables, at least as many local
24019 variables as main has allocated so far including compiler
24020 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24021 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24022 reuse the register of parent for one of the local variables,
24023 since it will think that parent can't possibly be used any more
24024 in this routine. Assigning to the local variable will thus
24025 munge parent in the parent process. */
24027 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24028 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24029 /* Convince the compiler that p..p7 are live; otherwise, it might
24030 use the same hardware register for all 8 local variables. */
24031 if (p != p1 || p != p2 || p != p3 || p != p4
24032 || p != p5 || p != p6 || p != p7)
24035 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24036 from child file descriptors. If the child closes a descriptor
24037 before it execs or exits, this munges the parent's descriptor
24038 as well. Test for this by closing stdout in the child. */
24039 _exit(close(fileno(stdout)) != 0);
24044 while (wait(&status) != child)
24047 /* Was there some problem with vforking? */
24050 /* Did the child fail? (This shouldn't happen.) */
24053 /* Did the vfork/compiler bug occur? */
24054 || parent != getpid()
24056 /* Did the file descriptor bug occur? */
24057 || fstat(fileno(stdout), &st) != 0
24062 rm -f "conftest$ac_exeext"
24063 if { (eval echo "$as_me:24063: \"$ac_link\"") >&5
24064 (eval $ac_link) 2>&5
24066 echo "$as_me:24066: \$? = $ac_status" >&5
24067 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
24068 { (eval echo "$as_me:24068: \"$ac_try\"") >&5
24069 (eval $ac_try) 2>&5
24071 echo "$as_me:24071: \$? = $ac_status" >&5
24072 (exit "$ac_status"); }; }; then
24073 ac_cv_func_vfork_works=yes
24075 echo "$as_me: program exited with status $ac_status" >&5
24076 echo "$as_me: failed program was:" >&5
24077 cat "conftest.$ac_ext" >&5
24078 ac_cv_func_vfork_works=no
24080 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
24083 echo "$as_me:24083: result: $ac_cv_func_vfork_works" >&5
24084 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
24087 if test "x$ac_cv_func_fork_works" = xcross; then
24088 ac_cv_func_vfork_works=ac_cv_func_vfork
24089 { echo "$as_me:24089: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
24090 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
24093 if test "x$ac_cv_func_vfork_works" = xyes; then
24095 cat >>confdefs.h <<\EOF
24096 #define HAVE_WORKING_VFORK 1
24101 cat >>confdefs.h <<\EOF
24106 if test "x$ac_cv_func_fork_works" = xyes; then
24108 cat >>confdefs.h <<\EOF
24109 #define HAVE_WORKING_FORK 1
24114 echo "$as_me:24114: checking if fopen accepts explicit binary mode" >&5
24115 echo $ECHO_N "checking if fopen accepts explicit binary mode... $ECHO_C" >&6
24116 if test "${cf_cv_fopen_bin_r+set}" = set; then
24117 echo $ECHO_N "(cached) $ECHO_C" >&6
24120 if test "$cross_compiling" = yes; then
24121 cf_cv_fopen_bin_r=unknown
24123 cat >"conftest.$ac_ext" <<_ACEOF
24124 #line 24124 "configure"
24125 #include "confdefs.h"
24127 $ac_includes_default
24131 FILE *fp = fopen("conftest.tmp", "wb");
24135 for (p = 0; p < 256; ++p) {
24139 fp = fopen("conftest.tmp", "rb");
24141 for (p = 0; p < 256; ++p) {
24154 ${cf_cv_main_return:-return} (rc);
24158 rm -f "conftest$ac_exeext"
24159 if { (eval echo "$as_me:24159: \"$ac_link\"") >&5
24160 (eval $ac_link) 2>&5
24162 echo "$as_me:24162: \$? = $ac_status" >&5
24163 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
24164 { (eval echo "$as_me:24164: \"$ac_try\"") >&5
24165 (eval $ac_try) 2>&5
24167 echo "$as_me:24167: \$? = $ac_status" >&5
24168 (exit "$ac_status"); }; }; then
24169 cf_cv_fopen_bin_r=yes
24171 echo "$as_me: program exited with status $ac_status" >&5
24172 echo "$as_me: failed program was:" >&5
24173 cat "conftest.$ac_ext" >&5
24174 cf_cv_fopen_bin_r=no
24176 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
24180 echo "$as_me:24180: result: $cf_cv_fopen_bin_r" >&5
24181 echo "${ECHO_T}$cf_cv_fopen_bin_r" >&6
24182 test "x$cf_cv_fopen_bin_r" != xno &&
24183 cat >>confdefs.h <<\EOF
24184 #define USE_FOPEN_BIN_R 1
24187 # special check for test/ditto.c
24189 echo "$as_me:24189: checking for openpty in -lutil" >&5
24190 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
24191 if test "${ac_cv_lib_util_openpty+set}" = set; then
24192 echo $ECHO_N "(cached) $ECHO_C" >&6
24194 ac_check_lib_save_LIBS=$LIBS
24195 LIBS="-lutil $LIBS"
24196 cat >"conftest.$ac_ext" <<_ACEOF
24197 #line 24197 "configure"
24198 #include "confdefs.h"
24200 /* Override any gcc2 internal prototype to avoid an error. */
24204 /* We use char because int might match the return type of a gcc2
24205 builtin and then its argument prototype would still apply. */
24215 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24216 if { (eval echo "$as_me:24216: \"$ac_link\"") >&5
24217 (eval $ac_link) 2>&5
24219 echo "$as_me:24219: \$? = $ac_status" >&5
24220 (exit "$ac_status"); } &&
24221 { ac_try='test -s "conftest$ac_exeext"'
24222 { (eval echo "$as_me:24222: \"$ac_try\"") >&5
24223 (eval $ac_try) 2>&5
24225 echo "$as_me:24225: \$? = $ac_status" >&5
24226 (exit "$ac_status"); }; }; then
24227 ac_cv_lib_util_openpty=yes
24229 echo "$as_me: failed program was:" >&5
24230 cat "conftest.$ac_ext" >&5
24231 ac_cv_lib_util_openpty=no
24233 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24234 LIBS=$ac_check_lib_save_LIBS
24236 echo "$as_me:24236: result: $ac_cv_lib_util_openpty" >&5
24237 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
24238 if test "$ac_cv_lib_util_openpty" = yes; then
24244 echo "$as_me:24244: checking for openpty header" >&5
24245 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
24246 if test "${cf_cv_func_openpty+set}" = set; then
24247 echo $ECHO_N "(cached) $ECHO_C" >&6
24250 cf_save_LIBS="$LIBS"
24251 test "$cf_cv_lib_util" = yes && {
24252 cf_add_libs="$LIBS"
24255 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24256 # filter duplicates
24257 for cf_add_1lib in $cf_add_0lib; do
24258 for cf_add_2lib in $cf_add_libs; do
24259 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24264 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24266 LIBS="$cf_add_libs"
24268 for cf_header in pty.h libutil.h util.h
24270 cat >"conftest.$ac_ext" <<_ACEOF
24271 #line 24271 "configure"
24272 #include "confdefs.h"
24274 #include <$cf_header>
24280 int x = openpty((int *)0, (int *)0, (char *)0,
24281 (struct termios *)0, (struct winsize *)0);
24287 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24288 if { (eval echo "$as_me:24288: \"$ac_link\"") >&5
24289 (eval $ac_link) 2>&5
24291 echo "$as_me:24291: \$? = $ac_status" >&5
24292 (exit "$ac_status"); } &&
24293 { ac_try='test -s "conftest$ac_exeext"'
24294 { (eval echo "$as_me:24294: \"$ac_try\"") >&5
24295 (eval $ac_try) 2>&5
24297 echo "$as_me:24297: \$? = $ac_status" >&5
24298 (exit "$ac_status"); }; }; then
24300 cf_cv_func_openpty=$cf_header
24304 echo "$as_me: failed program was:" >&5
24305 cat "conftest.$ac_ext" >&5
24307 cf_cv_func_openpty=no
24310 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24312 LIBS="$cf_save_LIBS"
24315 echo "$as_me:24315: result: $cf_cv_func_openpty" >&5
24316 echo "${ECHO_T}$cf_cv_func_openpty" >&6
24318 if test "$cf_cv_func_openpty" != no ; then
24320 cat >>confdefs.h <<EOF
24321 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
24324 cat >>confdefs.h <<\EOF
24325 #define USE_XTERM_PTY 1
24328 if test "x$cf_cv_lib_util" = xyes ; then
24330 cf_add_libs="$TEST_LIBS"
24333 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24334 # filter duplicates
24335 for cf_add_1lib in $cf_add_0lib; do
24336 for cf_add_2lib in $cf_add_libs; do
24337 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24342 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24344 TEST_LIBS="$cf_add_libs"
24349 if test "$with_hashed_db" != no ; then
24351 cat >>confdefs.h <<\EOF
24352 #define USE_HASHED_DB 1
24355 case $with_hashed_db in
24359 if test -d "$with_hashed_db" ; then
24361 if test -n "$with_hashed_db/include" ; then
24362 for cf_add_incdir in $with_hashed_db/include
24364 while test "$cf_add_incdir" != /usr/include
24366 if test -d "$cf_add_incdir"
24369 if test -n "$CFLAGS$CPPFLAGS" ; then
24370 # a loop is needed to ensure we can add subdirs of existing dirs
24371 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
24372 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
24373 cf_have_incdir=yes; break
24378 if test "$cf_have_incdir" = no ; then
24379 if test "$cf_add_incdir" = /usr/local/include ; then
24380 if test "$GCC" = yes
24382 cf_save_CPPFLAGS=$CPPFLAGS
24384 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
24385 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
24387 cat >"conftest.$ac_ext" <<_ACEOF
24388 #line 24388 "configure"
24389 #include "confdefs.h"
24399 rm -f "conftest.$ac_objext"
24400 if { (eval echo "$as_me:24400: \"$ac_compile\"") >&5
24401 (eval $ac_compile) 2>&5
24403 echo "$as_me:24403: \$? = $ac_status" >&5
24404 (exit "$ac_status"); } &&
24405 { ac_try='test -s "conftest.$ac_objext"'
24406 { (eval echo "$as_me:24406: \"$ac_try\"") >&5
24407 (eval $ac_try) 2>&5
24409 echo "$as_me:24409: \$? = $ac_status" >&5
24410 (exit "$ac_status"); }; }; then
24413 echo "$as_me: failed program was:" >&5
24414 cat "conftest.$ac_ext" >&5
24417 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24418 CPPFLAGS=$cf_save_CPPFLAGS
24423 if test "$cf_have_incdir" = no ; then
24424 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
24426 echo "${as_me:-configure}:24426: testing adding $cf_add_incdir to include-path ..." 1>&5
24428 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
24430 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
24431 test "$cf_top_incdir" = "$cf_add_incdir" && break
24432 cf_add_incdir="$cf_top_incdir"
24443 if test -n "$with_hashed_db/lib" ; then
24444 for cf_add_libdir in $with_hashed_db/lib
24446 if test "$cf_add_libdir" = /usr/lib ; then
24448 elif test -d "$cf_add_libdir"
24451 if test -n "$LDFLAGS$LIBS" ; then
24452 # a loop is needed to ensure we can add subdirs of existing dirs
24453 for cf_test_libdir in $LDFLAGS $LIBS ; do
24454 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
24455 cf_have_libdir=yes; break
24459 if test "$cf_have_libdir" = no ; then
24460 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
24462 echo "${as_me:-configure}:24462: testing adding $cf_add_libdir to library-path ..." 1>&5
24464 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
24471 case "$with_hashed_db" in
24473 { echo "$as_me:24473: WARNING: no such directory $with_hashed_db" >&5
24474 echo "$as_me: WARNING: no such directory $with_hashed_db" >&2;}
24480 test "x$prefix" != "xNONE" && \
24481 test -d "$prefix" && \
24483 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
24484 test -d "$prefix/include" && cf_search="$cf_search $prefix/include"
24485 test -d "$prefix/include/$with_hashed_db" && cf_search="$cf_search $prefix/include/$with_hashed_db"
24486 test -d "$prefix/include/$with_hashed_db/include" && cf_search="$cf_search $prefix/include/$with_hashed_db/include"
24487 test -d "$prefix/$with_hashed_db/include" && cf_search="$cf_search $prefix/$with_hashed_db/include"
24488 test -d "$prefix/$with_hashed_db/include/$with_hashed_db" && cf_search="$cf_search $prefix/$with_hashed_db/include/$with_hashed_db"
24491 for cf_subdir_prefix in \
24500 test "x$cf_subdir_prefix" != "x$prefix" && \
24501 test -d "$cf_subdir_prefix" && \
24502 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
24503 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
24504 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
24505 test -d "$cf_subdir_prefix/include/$with_hashed_db" && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db"
24506 test -d "$cf_subdir_prefix/include/$with_hashed_db/include" && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db/include"
24507 test -d "$cf_subdir_prefix/$with_hashed_db/include" && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/include"
24508 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"
24513 for cf_item in $cf_search
24516 (*/$with_hashed_db)
24518 if test -n "$cf_item" ; then
24519 for cf_add_incdir in $cf_item
24521 while test "$cf_add_incdir" != /usr/include
24523 if test -d "$cf_add_incdir"
24526 if test -n "$CFLAGS$CPPFLAGS" ; then
24527 # a loop is needed to ensure we can add subdirs of existing dirs
24528 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
24529 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
24530 cf_have_incdir=yes; break
24535 if test "$cf_have_incdir" = no ; then
24536 if test "$cf_add_incdir" = /usr/local/include ; then
24537 if test "$GCC" = yes
24539 cf_save_CPPFLAGS=$CPPFLAGS
24541 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
24542 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
24544 cat >"conftest.$ac_ext" <<_ACEOF
24545 #line 24545 "configure"
24546 #include "confdefs.h"
24556 rm -f "conftest.$ac_objext"
24557 if { (eval echo "$as_me:24557: \"$ac_compile\"") >&5
24558 (eval $ac_compile) 2>&5
24560 echo "$as_me:24560: \$? = $ac_status" >&5
24561 (exit "$ac_status"); } &&
24562 { ac_try='test -s "conftest.$ac_objext"'
24563 { (eval echo "$as_me:24563: \"$ac_try\"") >&5
24564 (eval $ac_try) 2>&5
24566 echo "$as_me:24566: \$? = $ac_status" >&5
24567 (exit "$ac_status"); }; }; then
24570 echo "$as_me: failed program was:" >&5
24571 cat "conftest.$ac_ext" >&5
24574 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24575 CPPFLAGS=$cf_save_CPPFLAGS
24580 if test "$cf_have_incdir" = no ; then
24581 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
24583 echo "${as_me:-configure}:24583: testing adding $cf_add_incdir to include-path ..." 1>&5
24585 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
24587 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
24588 test "$cf_top_incdir" = "$cf_add_incdir" && break
24589 cf_add_incdir="$cf_top_incdir"
24606 test "x$prefix" != "xNONE" && \
24607 test -d "$prefix" && \
24609 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
24610 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
24611 test -d "$prefix/lib/$with_hashed_db" && cf_search="$cf_search $prefix/lib/$with_hashed_db"
24612 test -d "$prefix/lib/$with_hashed_db/lib" && cf_search="$cf_search $prefix/lib/$with_hashed_db/lib"
24613 test -d "$prefix/$with_hashed_db/lib" && cf_search="$cf_search $prefix/$with_hashed_db/lib"
24614 test -d "$prefix/$with_hashed_db/lib/$with_hashed_db" && cf_search="$cf_search $prefix/$with_hashed_db/lib/$with_hashed_db"
24617 for cf_subdir_prefix in \
24626 test "x$cf_subdir_prefix" != "x$prefix" && \
24627 test -d "$cf_subdir_prefix" && \
24628 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
24629 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
24630 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
24631 test -d "$cf_subdir_prefix/lib/$with_hashed_db" && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db"
24632 test -d "$cf_subdir_prefix/lib/$with_hashed_db/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db/lib"
24633 test -d "$cf_subdir_prefix/$with_hashed_db/lib" && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/lib"
24634 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"
24639 for cf_item in $cf_search
24642 (*/$with_hashed_db)
24644 if test -n "$cf_item" ; then
24645 for cf_add_libdir in $cf_item
24647 if test "$cf_add_libdir" = /usr/lib ; then
24649 elif test -d "$cf_add_libdir"
24652 if test -n "$LDFLAGS$LIBS" ; then
24653 # a loop is needed to ensure we can add subdirs of existing dirs
24654 for cf_test_libdir in $LDFLAGS $LIBS ; do
24655 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
24656 cf_have_libdir=yes; break
24660 if test "$cf_have_libdir" = no ; then
24661 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
24663 echo "${as_me:-configure}:24663: testing adding $cf_add_libdir to library-path ..." 1>&5
24665 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
24680 echo "$as_me:24680: checking for db.h" >&5
24681 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
24682 if test "${ac_cv_header_db_h+set}" = set; then
24683 echo $ECHO_N "(cached) $ECHO_C" >&6
24685 cat >"conftest.$ac_ext" <<_ACEOF
24686 #line 24686 "configure"
24687 #include "confdefs.h"
24690 if { (eval echo "$as_me:24690: \"$ac_cpp "conftest.$ac_ext"\"") >&5
24691 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
24693 $EGREP -v '^ *\+' conftest.er1 >conftest.err
24695 cat conftest.err >&5
24696 echo "$as_me:24696: \$? = $ac_status" >&5
24697 (exit "$ac_status"); } >/dev/null; then
24698 if test -s conftest.err; then
24699 ac_cpp_err=$ac_c_preproc_warn_flag
24706 if test -z "$ac_cpp_err"; then
24707 ac_cv_header_db_h=yes
24709 echo "$as_me: failed program was:" >&5
24710 cat "conftest.$ac_ext" >&5
24711 ac_cv_header_db_h=no
24713 rm -f conftest.err "conftest.$ac_ext"
24715 echo "$as_me:24715: result: $ac_cv_header_db_h" >&5
24716 echo "${ECHO_T}$ac_cv_header_db_h" >&6
24717 if test "$ac_cv_header_db_h" = yes; then
24719 echo "$as_me:24719: checking for version of db" >&5
24720 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
24721 if test "${cf_cv_hashed_db_version+set}" = set; then
24722 echo $ECHO_N "(cached) $ECHO_C" >&6
24725 cf_cv_hashed_db_version=unknown
24727 for cf_db_version in 1 2 3 4 5 6
24730 echo "${as_me:-configure}:24730: testing checking for db version $cf_db_version ..." 1>&5
24732 cat >"conftest.$ac_ext" <<_ACEOF
24733 #line 24733 "configure"
24734 #include "confdefs.h"
24736 $ac_includes_default
24739 #ifdef DB_VERSION_MAJOR
24740 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
24741 #if $cf_db_version == DB_VERSION_MAJOR
24744 #error $cf_db_version is not DB_VERSION_MAJOR
24747 #if $cf_db_version == 1
24748 /* ok: assuming this is DB 1.8.5 */
24750 #error $cf_db_version is not 1
24762 rm -f "conftest.$ac_objext"
24763 if { (eval echo "$as_me:24763: \"$ac_compile\"") >&5
24764 (eval $ac_compile) 2>&5
24766 echo "$as_me:24766: \$? = $ac_status" >&5
24767 (exit "$ac_status"); } &&
24768 { ac_try='test -s "conftest.$ac_objext"'
24769 { (eval echo "$as_me:24769: \"$ac_try\"") >&5
24770 (eval $ac_try) 2>&5
24772 echo "$as_me:24772: \$? = $ac_status" >&5
24773 (exit "$ac_status"); }; }; then
24775 cf_cv_hashed_db_version=$cf_db_version
24779 echo "$as_me: failed program was:" >&5
24780 cat "conftest.$ac_ext" >&5
24782 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24786 echo "$as_me:24786: result: $cf_cv_hashed_db_version" >&5
24787 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
24789 if test "$cf_cv_hashed_db_version" = unknown ; then
24790 { { echo "$as_me:24790: error: Cannot determine version of db" >&5
24791 echo "$as_me: error: Cannot determine version of db" >&2;}
24792 { (exit 1); exit 1; }; }
24795 echo "$as_me:24795: checking for db libraries" >&5
24796 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
24797 if test "${cf_cv_hashed_db_libs+set}" = set; then
24798 echo $ECHO_N "(cached) $ECHO_C" >&6
24801 cf_cv_hashed_db_libs=unknown
24802 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
24804 cf_save_libs="$LIBS"
24805 if test -n "$cf_db_libs"; then
24807 cf_add_libs="$LIBS"
24810 for cf_add_1lib in -l$cf_db_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24811 # filter duplicates
24812 for cf_add_1lib in $cf_add_0lib; do
24813 for cf_add_2lib in $cf_add_libs; do
24814 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24819 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24821 LIBS="$cf_add_libs"
24825 echo "${as_me:-configure}:24825: testing checking for library $cf_db_libs ..." 1>&5
24827 cat >"conftest.$ac_ext" <<_ACEOF
24828 #line 24828 "configure"
24829 #include "confdefs.h"
24831 $ac_includes_default
24838 char *path = "/tmp/foo";
24839 #ifdef DB_VERSION_MAJOR
24840 #if DB_VERSION_MAJOR >= 4
24842 db_create(&result, NULL, 0);
24843 result->open(result,
24850 #elif DB_VERSION_MAJOR >= 3
24852 db_create(&result, NULL, 0);
24853 result->open(result,
24859 #elif DB_VERSION_MAJOR >= 2
24868 #endif /* DB_VERSION_MAJOR */
24870 DB *result = dbopen(path,
24876 ${cf_cv_main_return:-return}(result != 0)
24882 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24883 if { (eval echo "$as_me:24883: \"$ac_link\"") >&5
24884 (eval $ac_link) 2>&5
24886 echo "$as_me:24886: \$? = $ac_status" >&5
24887 (exit "$ac_status"); } &&
24888 { ac_try='test -s "conftest$ac_exeext"'
24889 { (eval echo "$as_me:24889: \"$ac_try\"") >&5
24890 (eval $ac_try) 2>&5
24892 echo "$as_me:24892: \$? = $ac_status" >&5
24893 (exit "$ac_status"); }; }; then
24895 if test -n "$cf_db_libs" ; then
24896 cf_cv_hashed_db_libs=$cf_db_libs
24898 cf_cv_hashed_db_libs=default
24900 LIBS="$cf_save_libs"
24904 echo "$as_me: failed program was:" >&5
24905 cat "conftest.$ac_ext" >&5
24907 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24908 LIBS="$cf_save_libs"
24912 echo "$as_me:24912: result: $cf_cv_hashed_db_libs" >&5
24913 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
24915 if test "$cf_cv_hashed_db_libs" = unknown ; then
24916 { { echo "$as_me:24916: error: Cannot determine library for db" >&5
24917 echo "$as_me: error: Cannot determine library for db" >&2;}
24918 { (exit 1); exit 1; }; }
24919 elif test "$cf_cv_hashed_db_libs" != default ; then
24921 cf_add_libs="$LIBS"
24924 for cf_add_1lib in -l$cf_cv_hashed_db_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24925 # filter duplicates
24926 for cf_add_1lib in $cf_add_0lib; do
24927 for cf_add_2lib in $cf_add_libs; do
24928 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24933 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24935 LIBS="$cf_add_libs"
24942 { { echo "$as_me:24942: error: Cannot find db.h" >&5
24943 echo "$as_me: error: Cannot find db.h" >&2;}
24944 { (exit 1); exit 1; }; }
24950 if test -z "$cf_user_CFLAGS" && test "$enable_leaks" = yes ; then
24951 CFLAGS=`echo "${CFLAGS}" | sed -e 's%-g %%' -e 's%-g$%%' -e 's%[ ]% %g' -e 's% [ ]*% %g' -e 's%^ %%' -e 's% $%%'`
24952 CXXFLAGS=`echo "${CXXFLAGS}" | sed -e 's%-g %%' -e 's%-g$%%' -e 's%[ ]% %g' -e 's% [ ]*% %g' -e 's%^ %%' -e 's% $%%'`
24955 # Just in case, check if the C compiler has a bool type.
24957 echo "$as_me:24957: checking if we should include stdbool.h" >&5
24958 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
24960 if test "${cf_cv_header_stdbool_h+set}" = set; then
24961 echo $ECHO_N "(cached) $ECHO_C" >&6
24964 cat >"conftest.$ac_ext" <<_ACEOF
24965 #line 24965 "configure"
24966 #include "confdefs.h"
24976 rm -f "conftest.$ac_objext"
24977 if { (eval echo "$as_me:24977: \"$ac_compile\"") >&5
24978 (eval $ac_compile) 2>&5
24980 echo "$as_me:24980: \$? = $ac_status" >&5
24981 (exit "$ac_status"); } &&
24982 { ac_try='test -s "conftest.$ac_objext"'
24983 { (eval echo "$as_me:24983: \"$ac_try\"") >&5
24984 (eval $ac_try) 2>&5
24986 echo "$as_me:24986: \$? = $ac_status" >&5
24987 (exit "$ac_status"); }; }; then
24988 cf_cv_header_stdbool_h=0
24990 echo "$as_me: failed program was:" >&5
24991 cat "conftest.$ac_ext" >&5
24992 cat >"conftest.$ac_ext" <<_ACEOF
24993 #line 24993 "configure"
24994 #include "confdefs.h"
24997 #include <stdbool.h>
25008 rm -f "conftest.$ac_objext"
25009 if { (eval echo "$as_me:25009: \"$ac_compile\"") >&5
25010 (eval $ac_compile) 2>&5
25012 echo "$as_me:25012: \$? = $ac_status" >&5
25013 (exit "$ac_status"); } &&
25014 { ac_try='test -s "conftest.$ac_objext"'
25015 { (eval echo "$as_me:25015: \"$ac_try\"") >&5
25016 (eval $ac_try) 2>&5
25018 echo "$as_me:25018: \$? = $ac_status" >&5
25019 (exit "$ac_status"); }; }; then
25020 cf_cv_header_stdbool_h=1
25022 echo "$as_me: failed program was:" >&5
25023 cat "conftest.$ac_ext" >&5
25024 cf_cv_header_stdbool_h=0
25026 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25028 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25031 if test "$cf_cv_header_stdbool_h" = 1
25032 then echo "$as_me:25032: result: yes" >&5
25033 echo "${ECHO_T}yes" >&6
25034 else echo "$as_me:25034: result: no" >&5
25035 echo "${ECHO_T}no" >&6
25038 echo "$as_me:25038: checking for builtin bool type" >&5
25039 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
25041 if test "${cf_cv_cc_bool_type+set}" = set; then
25042 echo $ECHO_N "(cached) $ECHO_C" >&6
25045 cat >"conftest.$ac_ext" <<_ACEOF
25046 #line 25046 "configure"
25047 #include "confdefs.h"
25050 #include <sys/types.h>
25060 rm -f "conftest.$ac_objext"
25061 if { (eval echo "$as_me:25061: \"$ac_compile\"") >&5
25062 (eval $ac_compile) 2>&5
25064 echo "$as_me:25064: \$? = $ac_status" >&5
25065 (exit "$ac_status"); } &&
25066 { ac_try='test -s "conftest.$ac_objext"'
25067 { (eval echo "$as_me:25067: \"$ac_try\"") >&5
25068 (eval $ac_try) 2>&5
25070 echo "$as_me:25070: \$? = $ac_status" >&5
25071 (exit "$ac_status"); }; }; then
25072 cf_cv_cc_bool_type=1
25074 echo "$as_me: failed program was:" >&5
25075 cat "conftest.$ac_ext" >&5
25076 cf_cv_cc_bool_type=0
25078 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25082 if test "$cf_cv_cc_bool_type" = 1
25083 then echo "$as_me:25083: result: yes" >&5
25084 echo "${ECHO_T}yes" >&6
25085 else echo "$as_me:25085: result: no" >&5
25086 echo "${ECHO_T}no" >&6
25089 # Check for C++ compiler characteristics (and ensure that it's there!)
25090 if test -n "$CXX" ; then
25092 ac_cpp='$CXXCPP $CPPFLAGS'
25093 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
25094 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
25095 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25096 ac_main_return="return"
25098 if test -n "$GXX" ; then
25101 LIBS="$LIBS $CXXLIBS"
25102 echo "$as_me:25102: checking if we already have C++ library" >&5
25103 echo $ECHO_N "checking if we already have C++ library... $ECHO_C" >&6
25104 cat >"conftest.$ac_ext" <<_ACEOF
25105 #line 25105 "configure"
25106 #include "confdefs.h"
25108 #include <iostream>
25113 std::cout << "Hello World!" << std::endl;
25118 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
25119 if { (eval echo "$as_me:25119: \"$ac_link\"") >&5
25120 (eval $ac_link) 2>&5
25122 echo "$as_me:25122: \$? = $ac_status" >&5
25123 (exit "$ac_status"); } &&
25124 { ac_try='test -s "conftest$ac_exeext"'
25125 { (eval echo "$as_me:25125: \"$ac_try\"") >&5
25126 (eval $ac_try) 2>&5
25128 echo "$as_me:25128: \$? = $ac_status" >&5
25129 (exit "$ac_status"); }; }; then
25130 cf_have_libstdcpp=yes
25132 echo "$as_me: failed program was:" >&5
25133 cat "conftest.$ac_ext" >&5
25134 cf_have_libstdcpp=no
25136 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
25137 echo "$as_me:25137: result: $cf_have_libstdcpp" >&5
25138 echo "${ECHO_T}$cf_have_libstdcpp" >&6
25141 if test "$cf_have_libstdcpp" != yes
25143 case "$cf_cv_system_name" in
25145 if test -z "`g++ -dM -E - < /dev/null | grep __KLIBC__`"; then
25146 cf_stdcpp_libname=stdcpp
25148 cf_stdcpp_libname=stdc++
25152 cf_stdcpp_libname=stdc++
25156 echo "$as_me:25156: checking for library $cf_stdcpp_libname" >&5
25157 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
25158 if test "${cf_cv_libstdcpp+set}" = set; then
25159 echo $ECHO_N "(cached) $ECHO_C" >&6
25163 LIBS="$LIBS $CXXLIBS"
25165 cf_add_libs="$LIBS"
25168 for cf_add_1lib in -l$cf_stdcpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25169 # filter duplicates
25170 for cf_add_1lib in $cf_add_0lib; do
25171 for cf_add_2lib in $cf_add_libs; do
25172 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25177 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25179 LIBS="$cf_add_libs"
25181 cat >"conftest.$ac_ext" <<_ACEOF
25182 #line 25182 "configure"
25183 #include "confdefs.h"
25185 #include <iostream>
25190 std::cout << "Hello World!" << std::endl;
25195 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
25196 if { (eval echo "$as_me:25196: \"$ac_link\"") >&5
25197 (eval $ac_link) 2>&5
25199 echo "$as_me:25199: \$? = $ac_status" >&5
25200 (exit "$ac_status"); } &&
25201 { ac_try='test -s "conftest$ac_exeext"'
25202 { (eval echo "$as_me:25202: \"$ac_try\"") >&5
25203 (eval $ac_try) 2>&5
25205 echo "$as_me:25205: \$? = $ac_status" >&5
25206 (exit "$ac_status"); }; }; then
25207 cf_cv_libstdcpp=yes
25209 echo "$as_me: failed program was:" >&5
25210 cat "conftest.$ac_ext" >&5
25213 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
25217 echo "$as_me:25217: result: $cf_cv_libstdcpp" >&5
25218 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
25219 test "$cf_cv_libstdcpp" = yes && {
25220 cf_add_libs="$CXXLIBS"
25223 for cf_add_1lib in -l$cf_stdcpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25224 # filter duplicates
25225 for cf_add_1lib in $cf_add_0lib; do
25226 for cf_add_2lib in $cf_add_libs; do
25227 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25232 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25234 CXXLIBS="$cf_add_libs"
25239 echo "$as_me:25239: checking whether $CXX understands -c and -o together" >&5
25240 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
25241 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
25242 echo $ECHO_N "(cached) $ECHO_C" >&6
25245 cat > conftest.$ac_ext <<CF_EOF
25248 ${cf_cv_main_return:-return}(0);
25251 # We do the test twice because some compilers refuse to overwrite an
25252 # existing .o file with -o, though they will create one.
25253 ac_try='$CXX $CXXFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
25254 if { (eval echo "$as_me:25254: \"$ac_try\"") >&5
25255 (eval $ac_try) 2>&5
25257 echo "$as_me:25257: \$? = $ac_status" >&5
25258 (exit "$ac_status"); } &&
25259 test -f conftest2.$ac_objext && { (eval echo "$as_me:25259: \"$ac_try\"") >&5
25260 (eval $ac_try) 2>&5
25262 echo "$as_me:25262: \$? = $ac_status" >&5
25263 (exit "$ac_status"); };
25265 eval cf_cv_prog_CXX_c_o=yes
25267 eval cf_cv_prog_CXX_c_o=no
25272 if test "$cf_cv_prog_CXX_c_o" = yes; then
25273 echo "$as_me:25273: result: yes" >&5
25274 echo "${ECHO_T}yes" >&6
25276 echo "$as_me:25276: result: no" >&5
25277 echo "${ECHO_T}no" >&6
25280 case "$GXX_VERSION" in
25281 (1.*|2.[0-6]*|[1-9][0-9].*)
25286 cf_cxx_library=unknown
25287 case "$cf_cv_system_name" in
25295 if test "$GXX" = yes; then
25296 echo "$as_me:25296: checking for lib$cf_gpp_libname" >&5
25297 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
25300 cf_add_libs="$LIBS"
25303 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25304 # filter duplicates
25305 for cf_add_1lib in $cf_add_0lib; do
25306 for cf_add_2lib in $cf_add_libs; do
25307 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25312 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25314 LIBS="$cf_add_libs"
25316 cat >"conftest.$ac_ext" <<_ACEOF
25317 #line 25317 "configure"
25318 #include "confdefs.h"
25320 #include <$cf_gpp_libname/builtin.h>
25325 two_arg_error_handler_t foo2 = lib_error_handler
25330 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
25331 if { (eval echo "$as_me:25331: \"$ac_link\"") >&5
25332 (eval $ac_link) 2>&5
25334 echo "$as_me:25334: \$? = $ac_status" >&5
25335 (exit "$ac_status"); } &&
25336 { ac_try='test -s "conftest$ac_exeext"'
25337 { (eval echo "$as_me:25337: \"$ac_try\"") >&5
25338 (eval $ac_try) 2>&5
25340 echo "$as_me:25340: \$? = $ac_status" >&5
25341 (exit "$ac_status"); }; }; then
25344 cf_add_libs="$CXXLIBS"
25347 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25348 # filter duplicates
25349 for cf_add_1lib in $cf_add_0lib; do
25350 for cf_add_2lib in $cf_add_libs; do
25351 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25356 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25358 CXXLIBS="$cf_add_libs"
25360 if test "$cf_gpp_libname" = cpp ; then
25362 cat >>confdefs.h <<\EOF
25363 #define HAVE_GPP_BUILTIN_H 1
25368 cat >>confdefs.h <<\EOF
25369 #define HAVE_GXX_BUILTIN_H 1
25374 echo "$as_me: failed program was:" >&5
25375 cat "conftest.$ac_ext" >&5
25376 cat >"conftest.$ac_ext" <<_ACEOF
25377 #line 25377 "configure"
25378 #include "confdefs.h"
25380 #include <builtin.h>
25385 two_arg_error_handler_t foo2 = lib_error_handler
25390 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
25391 if { (eval echo "$as_me:25391: \"$ac_link\"") >&5
25392 (eval $ac_link) 2>&5
25394 echo "$as_me:25394: \$? = $ac_status" >&5
25395 (exit "$ac_status"); } &&
25396 { ac_try='test -s "conftest$ac_exeext"'
25397 { (eval echo "$as_me:25397: \"$ac_try\"") >&5
25398 (eval $ac_try) 2>&5
25400 echo "$as_me:25400: \$? = $ac_status" >&5
25401 (exit "$ac_status"); }; }; then
25404 cf_add_libs="$CXXLIBS"
25407 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
25408 # filter duplicates
25409 for cf_add_1lib in $cf_add_0lib; do
25410 for cf_add_2lib in $cf_add_libs; do
25411 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
25416 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
25418 CXXLIBS="$cf_add_libs"
25420 cat >>confdefs.h <<\EOF
25421 #define HAVE_BUILTIN_H 1
25425 echo "$as_me: failed program was:" >&5
25426 cat "conftest.$ac_ext" >&5
25429 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
25431 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
25433 echo "$as_me:25433: result: $cf_cxx_library" >&5
25434 echo "${ECHO_T}$cf_cxx_library" >&6
25444 ac_cpp='$CXXCPP $CPPFLAGS'
25445 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
25446 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
25447 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25448 ac_main_return="return"
25449 echo "$as_me:25449: checking how to run the C++ preprocessor" >&5
25450 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
25451 if test -z "$CXXCPP"; then
25452 if test "${ac_cv_prog_CXXCPP+set}" = set; then
25453 echo $ECHO_N "(cached) $ECHO_C" >&6
25455 # Double quotes because CXXCPP needs to be expanded
25456 for CXXCPP in "$CXX -E" "/lib/cpp"
25458 ac_preproc_ok=false
25459 for ac_cxx_preproc_warn_flag in '' yes
25461 # Use a header file that comes with gcc, so configuring glibc
25462 # with a fresh cross-compiler works.
25463 # On the NeXT, cc -E runs the code through the compiler's parser,
25464 # not just through cpp. "Syntax error" is here to catch this case.
25465 cat >"conftest.$ac_ext" <<_ACEOF
25466 #line 25466 "configure"
25467 #include "confdefs.h"
25468 #include <assert.h>
25471 if { (eval echo "$as_me:25471: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25472 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25474 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25476 cat conftest.err >&5
25477 echo "$as_me:25477: \$? = $ac_status" >&5
25478 (exit "$ac_status"); } >/dev/null; then
25479 if test -s conftest.err; then
25480 ac_cpp_err=$ac_cxx_preproc_warn_flag
25487 if test -z "$ac_cpp_err"; then
25490 echo "$as_me: failed program was:" >&5
25491 cat "conftest.$ac_ext" >&5
25492 # Broken: fails on valid input.
25495 rm -f conftest.err "conftest.$ac_ext"
25497 # OK, works on sane cases. Now check whether non-existent headers
25498 # can be detected and how.
25499 cat >"conftest.$ac_ext" <<_ACEOF
25500 #line 25500 "configure"
25501 #include "confdefs.h"
25502 #include <ac_nonexistent.h>
25504 if { (eval echo "$as_me:25504: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25505 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25507 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25509 cat conftest.err >&5
25510 echo "$as_me:25510: \$? = $ac_status" >&5
25511 (exit "$ac_status"); } >/dev/null; then
25512 if test -s conftest.err; then
25513 ac_cpp_err=$ac_cxx_preproc_warn_flag
25520 if test -z "$ac_cpp_err"; then
25521 # Broken: success on invalid input.
25524 echo "$as_me: failed program was:" >&5
25525 cat "conftest.$ac_ext" >&5
25526 # Passes both tests.
25530 rm -f conftest.err "conftest.$ac_ext"
25533 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
25534 rm -f conftest.err "conftest.$ac_ext"
25535 if $ac_preproc_ok; then
25540 ac_cv_prog_CXXCPP=$CXXCPP
25543 CXXCPP=$ac_cv_prog_CXXCPP
25545 ac_cv_prog_CXXCPP=$CXXCPP
25547 echo "$as_me:25547: result: $CXXCPP" >&5
25548 echo "${ECHO_T}$CXXCPP" >&6
25549 ac_preproc_ok=false
25550 for ac_cxx_preproc_warn_flag in '' yes
25552 # Use a header file that comes with gcc, so configuring glibc
25553 # with a fresh cross-compiler works.
25554 # On the NeXT, cc -E runs the code through the compiler's parser,
25555 # not just through cpp. "Syntax error" is here to catch this case.
25556 cat >"conftest.$ac_ext" <<_ACEOF
25557 #line 25557 "configure"
25558 #include "confdefs.h"
25559 #include <assert.h>
25562 if { (eval echo "$as_me:25562: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25563 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25565 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25567 cat conftest.err >&5
25568 echo "$as_me:25568: \$? = $ac_status" >&5
25569 (exit "$ac_status"); } >/dev/null; then
25570 if test -s conftest.err; then
25571 ac_cpp_err=$ac_cxx_preproc_warn_flag
25578 if test -z "$ac_cpp_err"; then
25581 echo "$as_me: failed program was:" >&5
25582 cat "conftest.$ac_ext" >&5
25583 # Broken: fails on valid input.
25586 rm -f conftest.err "conftest.$ac_ext"
25588 # OK, works on sane cases. Now check whether non-existent headers
25589 # can be detected and how.
25590 cat >"conftest.$ac_ext" <<_ACEOF
25591 #line 25591 "configure"
25592 #include "confdefs.h"
25593 #include <ac_nonexistent.h>
25595 if { (eval echo "$as_me:25595: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25596 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25598 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25600 cat conftest.err >&5
25601 echo "$as_me:25601: \$? = $ac_status" >&5
25602 (exit "$ac_status"); } >/dev/null; then
25603 if test -s conftest.err; then
25604 ac_cpp_err=$ac_cxx_preproc_warn_flag
25611 if test -z "$ac_cpp_err"; then
25612 # Broken: success on invalid input.
25615 echo "$as_me: failed program was:" >&5
25616 cat "conftest.$ac_ext" >&5
25617 # Passes both tests.
25621 rm -f conftest.err "conftest.$ac_ext"
25624 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
25625 rm -f conftest.err "conftest.$ac_ext"
25626 if $ac_preproc_ok; then
25629 { { echo "$as_me:25629: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
25630 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
25631 { (exit 1); exit 1; }; }
25635 ac_cpp='$CXXCPP $CPPFLAGS'
25636 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
25637 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
25638 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25639 ac_main_return="return"
25641 for ac_header in typeinfo
25643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25644 echo "$as_me:25644: checking for $ac_header" >&5
25645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25647 echo $ECHO_N "(cached) $ECHO_C" >&6
25649 cat >"conftest.$ac_ext" <<_ACEOF
25650 #line 25650 "configure"
25651 #include "confdefs.h"
25652 #include <$ac_header>
25654 if { (eval echo "$as_me:25654: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25655 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25657 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25659 cat conftest.err >&5
25660 echo "$as_me:25660: \$? = $ac_status" >&5
25661 (exit "$ac_status"); } >/dev/null; then
25662 if test -s conftest.err; then
25663 ac_cpp_err=$ac_cxx_preproc_warn_flag
25670 if test -z "$ac_cpp_err"; then
25671 eval "$as_ac_Header=yes"
25673 echo "$as_me: failed program was:" >&5
25674 cat "conftest.$ac_ext" >&5
25675 eval "$as_ac_Header=no"
25677 rm -f conftest.err "conftest.$ac_ext"
25679 echo "$as_me:25679: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
25680 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
25681 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
25682 cat >>confdefs.h <<EOF
25683 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25689 for ac_header in iostream
25691 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25692 echo "$as_me:25692: checking for $ac_header" >&5
25693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25695 echo $ECHO_N "(cached) $ECHO_C" >&6
25697 cat >"conftest.$ac_ext" <<_ACEOF
25698 #line 25698 "configure"
25699 #include "confdefs.h"
25700 #include <$ac_header>
25702 if { (eval echo "$as_me:25702: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25703 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25705 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25707 cat conftest.err >&5
25708 echo "$as_me:25708: \$? = $ac_status" >&5
25709 (exit "$ac_status"); } >/dev/null; then
25710 if test -s conftest.err; then
25711 ac_cpp_err=$ac_cxx_preproc_warn_flag
25718 if test -z "$ac_cpp_err"; then
25719 eval "$as_ac_Header=yes"
25721 echo "$as_me: failed program was:" >&5
25722 cat "conftest.$ac_ext" >&5
25723 eval "$as_ac_Header=no"
25725 rm -f conftest.err "conftest.$ac_ext"
25727 echo "$as_me:25727: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
25728 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
25729 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
25730 cat >>confdefs.h <<EOF
25731 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25737 if test x"$ac_cv_header_iostream" = xyes ; then
25738 echo "$as_me:25738: checking if iostream uses std-namespace" >&5
25739 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
25740 cat >"conftest.$ac_ext" <<_ACEOF
25741 #line 25741 "configure"
25742 #include "confdefs.h"
25744 #include <iostream>
25751 cerr << "testing" << endl;
25757 rm -f "conftest.$ac_objext"
25758 if { (eval echo "$as_me:25758: \"$ac_compile\"") >&5
25759 (eval $ac_compile) 2>&5
25761 echo "$as_me:25761: \$? = $ac_status" >&5
25762 (exit "$ac_status"); } &&
25763 { ac_try='test -s "conftest.$ac_objext"'
25764 { (eval echo "$as_me:25764: \"$ac_try\"") >&5
25765 (eval $ac_try) 2>&5
25767 echo "$as_me:25767: \$? = $ac_status" >&5
25768 (exit "$ac_status"); }; }; then
25769 cf_iostream_namespace=yes
25771 echo "$as_me: failed program was:" >&5
25772 cat "conftest.$ac_ext" >&5
25773 cf_iostream_namespace=no
25775 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25776 echo "$as_me:25776: result: $cf_iostream_namespace" >&5
25777 echo "${ECHO_T}$cf_iostream_namespace" >&6
25778 if test "$cf_iostream_namespace" = yes ; then
25780 cat >>confdefs.h <<\EOF
25781 #define IOSTREAM_NAMESPACE 1
25787 echo "$as_me:25787: checking if we should include stdbool.h" >&5
25788 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
25790 if test "${cf_cv_header_stdbool_h+set}" = set; then
25791 echo $ECHO_N "(cached) $ECHO_C" >&6
25794 cat >"conftest.$ac_ext" <<_ACEOF
25795 #line 25795 "configure"
25796 #include "confdefs.h"
25806 rm -f "conftest.$ac_objext"
25807 if { (eval echo "$as_me:25807: \"$ac_compile\"") >&5
25808 (eval $ac_compile) 2>&5
25810 echo "$as_me:25810: \$? = $ac_status" >&5
25811 (exit "$ac_status"); } &&
25812 { ac_try='test -s "conftest.$ac_objext"'
25813 { (eval echo "$as_me:25813: \"$ac_try\"") >&5
25814 (eval $ac_try) 2>&5
25816 echo "$as_me:25816: \$? = $ac_status" >&5
25817 (exit "$ac_status"); }; }; then
25818 cf_cv_header_stdbool_h=0
25820 echo "$as_me: failed program was:" >&5
25821 cat "conftest.$ac_ext" >&5
25822 cat >"conftest.$ac_ext" <<_ACEOF
25823 #line 25823 "configure"
25824 #include "confdefs.h"
25827 #include <stdbool.h>
25838 rm -f "conftest.$ac_objext"
25839 if { (eval echo "$as_me:25839: \"$ac_compile\"") >&5
25840 (eval $ac_compile) 2>&5
25842 echo "$as_me:25842: \$? = $ac_status" >&5
25843 (exit "$ac_status"); } &&
25844 { ac_try='test -s "conftest.$ac_objext"'
25845 { (eval echo "$as_me:25845: \"$ac_try\"") >&5
25846 (eval $ac_try) 2>&5
25848 echo "$as_me:25848: \$? = $ac_status" >&5
25849 (exit "$ac_status"); }; }; then
25850 cf_cv_header_stdbool_h=1
25852 echo "$as_me: failed program was:" >&5
25853 cat "conftest.$ac_ext" >&5
25854 cf_cv_header_stdbool_h=0
25856 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25858 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25861 if test "$cf_cv_header_stdbool_h" = 1
25862 then echo "$as_me:25862: result: yes" >&5
25863 echo "${ECHO_T}yes" >&6
25864 else echo "$as_me:25864: result: no" >&5
25865 echo "${ECHO_T}no" >&6
25868 echo "$as_me:25868: checking for builtin bool type" >&5
25869 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
25871 if test "${cf_cv_builtin_bool+set}" = set; then
25872 echo $ECHO_N "(cached) $ECHO_C" >&6
25875 cat >"conftest.$ac_ext" <<_ACEOF
25876 #line 25876 "configure"
25877 #include "confdefs.h"
25880 #include <sys/types.h>
25890 rm -f "conftest.$ac_objext"
25891 if { (eval echo "$as_me:25891: \"$ac_compile\"") >&5
25892 (eval $ac_compile) 2>&5
25894 echo "$as_me:25894: \$? = $ac_status" >&5
25895 (exit "$ac_status"); } &&
25896 { ac_try='test -s "conftest.$ac_objext"'
25897 { (eval echo "$as_me:25897: \"$ac_try\"") >&5
25898 (eval $ac_try) 2>&5
25900 echo "$as_me:25900: \$? = $ac_status" >&5
25901 (exit "$ac_status"); }; }; then
25902 cf_cv_builtin_bool=1
25904 echo "$as_me: failed program was:" >&5
25905 cat "conftest.$ac_ext" >&5
25906 cf_cv_builtin_bool=0
25908 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25912 if test "$cf_cv_builtin_bool" = 1
25913 then echo "$as_me:25913: result: yes" >&5
25914 echo "${ECHO_T}yes" >&6
25915 else echo "$as_me:25915: result: no" >&5
25916 echo "${ECHO_T}no" >&6
25919 echo "$as_me:25919: checking for bool" >&5
25920 echo $ECHO_N "checking for bool... $ECHO_C" >&6
25921 if test "${ac_cv_type_bool+set}" = set; then
25922 echo $ECHO_N "(cached) $ECHO_C" >&6
25924 cat >"conftest.$ac_ext" <<_ACEOF
25925 #line 25925 "configure"
25926 #include "confdefs.h"
25928 $ac_includes_default
25930 #if defined(__cplusplus)
25932 #ifdef HAVE_GXX_BUILTIN_H
25933 #include <g++/builtin.h>
25934 #elif HAVE_GPP_BUILTIN_H
25935 #include <gpp/builtin.h>
25936 #elif HAVE_BUILTIN_H
25937 #include <builtin.h>
25942 #if $cf_cv_header_stdbool_h
25943 #include <stdbool.h>
25959 rm -f "conftest.$ac_objext"
25960 if { (eval echo "$as_me:25960: \"$ac_compile\"") >&5
25961 (eval $ac_compile) 2>&5
25963 echo "$as_me:25963: \$? = $ac_status" >&5
25964 (exit "$ac_status"); } &&
25965 { ac_try='test -s "conftest.$ac_objext"'
25966 { (eval echo "$as_me:25966: \"$ac_try\"") >&5
25967 (eval $ac_try) 2>&5
25969 echo "$as_me:25969: \$? = $ac_status" >&5
25970 (exit "$ac_status"); }; }; then
25971 ac_cv_type_bool=yes
25973 echo "$as_me: failed program was:" >&5
25974 cat "conftest.$ac_ext" >&5
25977 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25979 echo "$as_me:25979: result: $ac_cv_type_bool" >&5
25980 echo "${ECHO_T}$ac_cv_type_bool" >&6
25982 echo "$as_me:25982: checking size of bool" >&5
25983 echo $ECHO_N "checking size of bool... $ECHO_C" >&6
25984 if test "${ac_cv_sizeof_bool+set}" = set; then
25985 echo $ECHO_N "(cached) $ECHO_C" >&6
25987 if test "$ac_cv_type_bool" = yes; then
25988 if test "$cross_compiling" = yes; then
25989 # Depending upon the size, compute the lo and hi bounds.
25990 cat >"conftest.$ac_ext" <<_ACEOF
25991 #line 25991 "configure"
25992 #include "confdefs.h"
25994 $ac_includes_default
25996 #if defined(__cplusplus)
25998 #ifdef HAVE_GXX_BUILTIN_H
25999 #include <g++/builtin.h>
26000 #elif HAVE_GPP_BUILTIN_H
26001 #include <gpp/builtin.h>
26002 #elif HAVE_BUILTIN_H
26003 #include <builtin.h>
26008 #if $cf_cv_header_stdbool_h
26009 #include <stdbool.h>
26017 int _array_ [1 - 2 * !((sizeof (bool)) >= 0)]
26022 rm -f "conftest.$ac_objext"
26023 if { (eval echo "$as_me:26023: \"$ac_compile\"") >&5
26024 (eval $ac_compile) 2>&5
26026 echo "$as_me:26026: \$? = $ac_status" >&5
26027 (exit "$ac_status"); } &&
26028 { ac_try='test -s "conftest.$ac_objext"'
26029 { (eval echo "$as_me:26029: \"$ac_try\"") >&5
26030 (eval $ac_try) 2>&5
26032 echo "$as_me:26032: \$? = $ac_status" >&5
26033 (exit "$ac_status"); }; }; then
26036 cat >"conftest.$ac_ext" <<_ACEOF
26037 #line 26037 "configure"
26038 #include "confdefs.h"
26040 $ac_includes_default
26042 #if defined(__cplusplus)
26044 #ifdef HAVE_GXX_BUILTIN_H
26045 #include <g++/builtin.h>
26046 #elif HAVE_GPP_BUILTIN_H
26047 #include <gpp/builtin.h>
26048 #elif HAVE_BUILTIN_H
26049 #include <builtin.h>
26054 #if $cf_cv_header_stdbool_h
26055 #include <stdbool.h>
26063 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
26068 rm -f "conftest.$ac_objext"
26069 if { (eval echo "$as_me:26069: \"$ac_compile\"") >&5
26070 (eval $ac_compile) 2>&5
26072 echo "$as_me:26072: \$? = $ac_status" >&5
26073 (exit "$ac_status"); } &&
26074 { ac_try='test -s "conftest.$ac_objext"'
26075 { (eval echo "$as_me:26075: \"$ac_try\"") >&5
26076 (eval $ac_try) 2>&5
26078 echo "$as_me:26078: \$? = $ac_status" >&5
26079 (exit "$ac_status"); }; }; then
26080 ac_hi=$ac_mid; break
26082 echo "$as_me: failed program was:" >&5
26083 cat "conftest.$ac_ext" >&5
26084 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
26086 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26089 echo "$as_me: failed program was:" >&5
26090 cat "conftest.$ac_ext" >&5
26093 cat >"conftest.$ac_ext" <<_ACEOF
26094 #line 26094 "configure"
26095 #include "confdefs.h"
26097 $ac_includes_default
26099 #if defined(__cplusplus)
26101 #ifdef HAVE_GXX_BUILTIN_H
26102 #include <g++/builtin.h>
26103 #elif HAVE_GPP_BUILTIN_H
26104 #include <gpp/builtin.h>
26105 #elif HAVE_BUILTIN_H
26106 #include <builtin.h>
26111 #if $cf_cv_header_stdbool_h
26112 #include <stdbool.h>
26120 int _array_ [1 - 2 * !((sizeof (bool)) >= $ac_mid)]
26125 rm -f "conftest.$ac_objext"
26126 if { (eval echo "$as_me:26126: \"$ac_compile\"") >&5
26127 (eval $ac_compile) 2>&5
26129 echo "$as_me:26129: \$? = $ac_status" >&5
26130 (exit "$ac_status"); } &&
26131 { ac_try='test -s "conftest.$ac_objext"'
26132 { (eval echo "$as_me:26132: \"$ac_try\"") >&5
26133 (eval $ac_try) 2>&5
26135 echo "$as_me:26135: \$? = $ac_status" >&5
26136 (exit "$ac_status"); }; }; then
26137 ac_lo=$ac_mid; break
26139 echo "$as_me: failed program was:" >&5
26140 cat "conftest.$ac_ext" >&5
26141 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
26143 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26146 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26147 # Binary search between lo and hi bounds.
26148 while test "x$ac_lo" != "x$ac_hi"; do
26149 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
26150 cat >"conftest.$ac_ext" <<_ACEOF
26151 #line 26151 "configure"
26152 #include "confdefs.h"
26154 $ac_includes_default
26156 #if defined(__cplusplus)
26158 #ifdef HAVE_GXX_BUILTIN_H
26159 #include <g++/builtin.h>
26160 #elif HAVE_GPP_BUILTIN_H
26161 #include <gpp/builtin.h>
26162 #elif HAVE_BUILTIN_H
26163 #include <builtin.h>
26168 #if $cf_cv_header_stdbool_h
26169 #include <stdbool.h>
26177 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
26182 rm -f "conftest.$ac_objext"
26183 if { (eval echo "$as_me:26183: \"$ac_compile\"") >&5
26184 (eval $ac_compile) 2>&5
26186 echo "$as_me:26186: \$? = $ac_status" >&5
26187 (exit "$ac_status"); } &&
26188 { ac_try='test -s "conftest.$ac_objext"'
26189 { (eval echo "$as_me:26189: \"$ac_try\"") >&5
26190 (eval $ac_try) 2>&5
26192 echo "$as_me:26192: \$? = $ac_status" >&5
26193 (exit "$ac_status"); }; }; then
26196 echo "$as_me: failed program was:" >&5
26197 cat "conftest.$ac_ext" >&5
26198 ac_lo=`expr "$ac_mid" + 1`
26200 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26202 ac_cv_sizeof_bool=$ac_lo
26204 if test "$cross_compiling" = yes; then
26205 { { echo "$as_me:26205: error: cannot run test program while cross compiling" >&5
26206 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
26207 { (exit 1); exit 1; }; }
26209 cat >"conftest.$ac_ext" <<_ACEOF
26210 #line 26210 "configure"
26211 #include "confdefs.h"
26213 $ac_includes_default
26215 #if defined(__cplusplus)
26217 #ifdef HAVE_GXX_BUILTIN_H
26218 #include <g++/builtin.h>
26219 #elif HAVE_GPP_BUILTIN_H
26220 #include <gpp/builtin.h>
26221 #elif HAVE_BUILTIN_H
26222 #include <builtin.h>
26227 #if $cf_cv_header_stdbool_h
26228 #include <stdbool.h>
26236 FILE *f = fopen ("conftest.val", "w");
26238 $ac_main_return (1);
26239 fprintf (f, "%ld", (long)(sizeof (bool)));
26245 rm -f "conftest$ac_exeext"
26246 if { (eval echo "$as_me:26246: \"$ac_link\"") >&5
26247 (eval $ac_link) 2>&5
26249 echo "$as_me:26249: \$? = $ac_status" >&5
26250 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26251 { (eval echo "$as_me:26251: \"$ac_try\"") >&5
26252 (eval $ac_try) 2>&5
26254 echo "$as_me:26254: \$? = $ac_status" >&5
26255 (exit "$ac_status"); }; }; then
26256 ac_cv_sizeof_bool=`cat conftest.val`
26258 echo "$as_me: program exited with status $ac_status" >&5
26259 echo "$as_me: failed program was:" >&5
26260 cat "conftest.$ac_ext" >&5
26262 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26267 ac_cv_sizeof_bool=0
26270 echo "$as_me:26270: result: $ac_cv_sizeof_bool" >&5
26271 echo "${ECHO_T}$ac_cv_sizeof_bool" >&6
26272 cat >>confdefs.h <<EOF
26273 #define SIZEOF_BOOL $ac_cv_sizeof_bool
26276 echo "$as_me:26276: checking for type of bool" >&5
26277 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
26278 if test "${cf_cv_type_of_bool+set}" = set; then
26279 echo $ECHO_N "(cached) $ECHO_C" >&6
26283 if test "$cross_compiling" = yes; then
26285 case x$ac_cv_sizeof_bool in
26286 (x1) cf_cv_type_of_bool="unsigned char";;
26287 (x2) cf_cv_type_of_bool="unsigned short";;
26288 (x4) cf_cv_type_of_bool="unsigned int";;
26289 (x8) cf_cv_type_of_bool="unsigned long";;
26290 (*) cf_cv_type_of_bool=unknown;;
26294 cat >"conftest.$ac_ext" <<_ACEOF
26295 #line 26295 "configure"
26296 #include "confdefs.h"
26298 $ac_includes_default
26300 #if defined(__cplusplus)
26302 #ifdef HAVE_GXX_BUILTIN_H
26303 #include <g++/builtin.h>
26304 #elif HAVE_GPP_BUILTIN_H
26305 #include <gpp/builtin.h>
26306 #elif HAVE_BUILTIN_H
26307 #include <builtin.h>
26312 #if $cf_cv_header_stdbool_h
26313 #include <stdbool.h>
26320 FILE *fp = fopen("cf_test.out", "w");
26323 if ((bool)(-x) >= 0)
26324 fputs("unsigned ", fp);
26325 if (sizeof(x) == sizeof(int)) fputs("int", fp);
26326 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
26327 else if (sizeof(x) == sizeof(short))fputs("short",fp);
26328 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
26331 ${cf_cv_main_return:-return}(0);
26335 rm -f "conftest$ac_exeext"
26336 if { (eval echo "$as_me:26336: \"$ac_link\"") >&5
26337 (eval $ac_link) 2>&5
26339 echo "$as_me:26339: \$? = $ac_status" >&5
26340 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26341 { (eval echo "$as_me:26341: \"$ac_try\"") >&5
26342 (eval $ac_try) 2>&5
26344 echo "$as_me:26344: \$? = $ac_status" >&5
26345 (exit "$ac_status"); }; }; then
26346 cf_cv_type_of_bool=`cat cf_test.out`
26347 if test -z "$cf_cv_type_of_bool"; then
26348 cf_cv_type_of_bool=unknown
26351 echo "$as_me: program exited with status $ac_status" >&5
26352 echo "$as_me: failed program was:" >&5
26353 cat "conftest.$ac_ext" >&5
26354 cf_cv_type_of_bool=unknown
26356 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26361 echo "$as_me:26361: result: $cf_cv_type_of_bool" >&5
26362 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
26364 if test "$cf_cv_type_of_bool" = unknown ; then
26365 case .$NCURSES_BOOL in
26366 (.auto|.) NCURSES_BOOL=unsigned;;
26368 { echo "$as_me:26368: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
26369 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
26370 cf_cv_type_of_bool=$NCURSES_BOOL
26373 echo "$as_me:26373: checking for special defines needed for etip.h" >&5
26374 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
26375 cf_save_CXXFLAGS="$CXXFLAGS"
26378 # etip.h includes ncurses.h which includes ncurses_dll.h
26379 # But ncurses_dll.h is generated - fix here.
26380 test -d include || mkdir include
26381 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
26383 for cf_math in "" MATH_H
26385 for cf_excp in "" MATH_EXCEPTION
26387 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include"
26388 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
26389 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
26390 cat >"conftest.$ac_ext" <<_ACEOF
26391 #line 26391 "configure"
26392 #include "confdefs.h"
26394 #include <etip.h.in>
26404 rm -f "conftest.$ac_objext"
26405 if { (eval echo "$as_me:26405: \"$ac_compile\"") >&5
26406 (eval $ac_compile) 2>&5
26408 echo "$as_me:26408: \$? = $ac_status" >&5
26409 (exit "$ac_status"); } &&
26410 { ac_try='test -s "conftest.$ac_objext"'
26411 { (eval echo "$as_me:26411: \"$ac_try\"") >&5
26412 (eval $ac_try) 2>&5
26414 echo "$as_me:26414: \$? = $ac_status" >&5
26415 (exit "$ac_status"); }; }; then
26417 test -n "$cf_math" && cat >>confdefs.h <<EOF
26418 #define ETIP_NEEDS_${cf_math} 1
26421 test -n "$cf_excp" && cat >>confdefs.h <<EOF
26422 #define ETIP_NEEDS_${cf_excp} 1
26425 cf_result="$cf_math $cf_excp"
26429 echo "$as_me: failed program was:" >&5
26430 cat "conftest.$ac_ext" >&5
26432 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26435 echo "$as_me:26435: result: $cf_result" >&5
26436 echo "${ECHO_T}$cf_result" >&6
26437 CXXFLAGS="$cf_save_CXXFLAGS"
26439 if test -n "$CXX"; then
26440 echo "$as_me:26440: checking if $CXX accepts override keyword" >&5
26441 echo $ECHO_N "checking if $CXX accepts override keyword... $ECHO_C" >&6
26442 if test "${cf_cv_cpp_override+set}" = set; then
26443 echo $ECHO_N "(cached) $ECHO_C" >&6
26447 ac_cpp='$CXXCPP $CPPFLAGS'
26448 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26449 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26450 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26451 ac_main_return="return"
26453 if test "$cross_compiling" = yes; then
26454 cf_cv_cpp_override=unknown
26456 cat >"conftest.$ac_ext" <<_ACEOF
26457 #line 26457 "configure"
26458 #include "confdefs.h"
26463 virtual int foo(float x) = 0;
26466 class derived: public base
26469 int foo(float x) override { return x != 0.0 ? 1 : 0; }
26475 rm -f "conftest$ac_exeext"
26476 if { (eval echo "$as_me:26476: \"$ac_link\"") >&5
26477 (eval $ac_link) 2>&5
26479 echo "$as_me:26479: \$? = $ac_status" >&5
26480 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26481 { (eval echo "$as_me:26481: \"$ac_try\"") >&5
26482 (eval $ac_try) 2>&5
26484 echo "$as_me:26484: \$? = $ac_status" >&5
26485 (exit "$ac_status"); }; }; then
26486 cf_cv_cpp_override=yes
26488 echo "$as_me: program exited with status $ac_status" >&5
26489 echo "$as_me: failed program was:" >&5
26490 cat "conftest.$ac_ext" >&5
26491 cf_cv_cpp_override=no
26493 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26496 ac_cpp='$CXXCPP $CPPFLAGS'
26497 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26498 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26499 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26500 ac_main_return="return"
26503 echo "$as_me:26503: result: $cf_cv_cpp_override" >&5
26504 echo "${ECHO_T}$cf_cv_cpp_override" >&6
26506 test "$cf_cv_cpp_override" = yes &&
26507 cat >>confdefs.h <<\EOF
26508 #define CPP_HAS_OVERRIDE 1
26511 if test -n "$CXX"; then
26512 echo "$as_me:26512: checking if $CXX accepts parameter initialization" >&5
26513 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
26514 if test "${cf_cv_cpp_param_init+set}" = set; then
26515 echo $ECHO_N "(cached) $ECHO_C" >&6
26519 ac_cpp='$CXXCPP $CPPFLAGS'
26520 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26521 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26522 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26523 ac_main_return="return"
26525 if test "$cross_compiling" = yes; then
26526 cf_cv_cpp_param_init=unknown
26528 cat >"conftest.$ac_ext" <<_ACEOF
26529 #line 26529 "configure"
26530 #include "confdefs.h"
26540 TEST::TEST(int x = 1) // some compilers do not like second initializer
26547 rm -f "conftest$ac_exeext"
26548 if { (eval echo "$as_me:26548: \"$ac_link\"") >&5
26549 (eval $ac_link) 2>&5
26551 echo "$as_me:26551: \$? = $ac_status" >&5
26552 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26553 { (eval echo "$as_me:26553: \"$ac_try\"") >&5
26554 (eval $ac_try) 2>&5
26556 echo "$as_me:26556: \$? = $ac_status" >&5
26557 (exit "$ac_status"); }; }; then
26558 cf_cv_cpp_param_init=yes
26560 echo "$as_me: program exited with status $ac_status" >&5
26561 echo "$as_me: failed program was:" >&5
26562 cat "conftest.$ac_ext" >&5
26563 cf_cv_cpp_param_init=no
26565 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26568 ac_cpp='$CXXCPP $CPPFLAGS'
26569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26570 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26572 ac_main_return="return"
26575 echo "$as_me:26575: result: $cf_cv_cpp_param_init" >&5
26576 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
26578 test "$cf_cv_cpp_param_init" = yes &&
26579 cat >>confdefs.h <<\EOF
26580 #define CPP_HAS_PARAM_INIT 1
26583 if test -n "$CXX"; then
26585 echo "$as_me:26585: checking if $CXX accepts static_cast" >&5
26586 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
26587 if test "${cf_cv_cpp_static_cast+set}" = set; then
26588 echo $ECHO_N "(cached) $ECHO_C" >&6
26592 ac_cpp='$CXXCPP $CPPFLAGS'
26593 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26594 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26595 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26596 ac_main_return="return"
26598 cat >"conftest.$ac_ext" <<_ACEOF
26599 #line 26599 "configure"
26600 #include "confdefs.h"
26605 NCursesPanel(int nlines,
26615 template<class T> class NCursesUserPanel : public NCursesPanel
26618 NCursesUserPanel (int nlines,
26622 const T* p_UserData = static_cast<T*>(0))
26623 : NCursesPanel (nlines, ncols, begin_y, begin_x)
26626 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
26630 virtual ~NCursesUserPanel() {};
26637 const char* p_UserData = static_cast<char*>(0)
26642 rm -f "conftest.$ac_objext"
26643 if { (eval echo "$as_me:26643: \"$ac_compile\"") >&5
26644 (eval $ac_compile) 2>&5
26646 echo "$as_me:26646: \$? = $ac_status" >&5
26647 (exit "$ac_status"); } &&
26648 { ac_try='test -s "conftest.$ac_objext"'
26649 { (eval echo "$as_me:26649: \"$ac_try\"") >&5
26650 (eval $ac_try) 2>&5
26652 echo "$as_me:26652: \$? = $ac_status" >&5
26653 (exit "$ac_status"); }; }; then
26654 cf_cv_cpp_static_cast=yes
26656 echo "$as_me: failed program was:" >&5
26657 cat "conftest.$ac_ext" >&5
26658 cf_cv_cpp_static_cast=no
26660 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26663 ac_cpp='$CXXCPP $CPPFLAGS'
26664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26665 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26667 ac_main_return="return"
26670 echo "$as_me:26670: result: $cf_cv_cpp_static_cast" >&5
26671 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
26675 test "$cf_cv_cpp_static_cast" = yes &&
26676 cat >>confdefs.h <<\EOF
26677 #define CPP_HAS_STATIC_CAST 1
26681 CXX_ARFLAGS='$(ARFLAGS)'
26682 case "$cf_cv_system_name" in
26684 if test "$GXX" != yes ; then
26686 CXX_ARFLAGS='-ar -o'
26690 CXXLDFLAGS="-u main"
26693 if test "$GXX" != yes ; then
26695 CXX_ARFLAGS='-xar -o'
26702 cf_cv_builtin_bool=1
26704 # Just because we are not configuring against C++ right now does not
26705 # mean that a user will not want to use C++. Some distributors disable
26706 # the C++ portion of this configuration as a shortcut (or just to avoid
26707 # compiling the demo in the c++ directory). So we need a reasonable
26708 # default for the 'bool' type.
26710 # Caveat: since the storage of the bool type is not standardized, it
26713 if test "$NCURSES_BOOL" != auto ; then
26714 cf_cv_type_of_bool=$NCURSES_BOOL
26715 cf_cv_header_stdbool_h=0
26717 if test "$cf_cv_header_stdbool_h" = 1 ; then
26719 echo "$as_me:26719: checking for bool" >&5
26720 echo $ECHO_N "checking for bool... $ECHO_C" >&6
26721 if test "${ac_cv_type_bool+set}" = set; then
26722 echo $ECHO_N "(cached) $ECHO_C" >&6
26724 cat >"conftest.$ac_ext" <<_ACEOF
26725 #line 26725 "configure"
26726 #include "confdefs.h"
26728 $ac_includes_default
26730 #if defined(__cplusplus)
26732 #ifdef HAVE_GXX_BUILTIN_H
26733 #include <g++/builtin.h>
26734 #elif HAVE_GPP_BUILTIN_H
26735 #include <gpp/builtin.h>
26736 #elif HAVE_BUILTIN_H
26737 #include <builtin.h>
26742 #if $cf_cv_header_stdbool_h
26743 #include <stdbool.h>
26759 rm -f "conftest.$ac_objext"
26760 if { (eval echo "$as_me:26760: \"$ac_compile\"") >&5
26761 (eval $ac_compile) 2>&5
26763 echo "$as_me:26763: \$? = $ac_status" >&5
26764 (exit "$ac_status"); } &&
26765 { ac_try='test -s "conftest.$ac_objext"'
26766 { (eval echo "$as_me:26766: \"$ac_try\"") >&5
26767 (eval $ac_try) 2>&5
26769 echo "$as_me:26769: \$? = $ac_status" >&5
26770 (exit "$ac_status"); }; }; then
26771 ac_cv_type_bool=yes
26773 echo "$as_me: failed program was:" >&5
26774 cat "conftest.$ac_ext" >&5
26777 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26779 echo "$as_me:26779: result: $ac_cv_type_bool" >&5
26780 echo "${ECHO_T}$ac_cv_type_bool" >&6
26782 echo "$as_me:26782: checking size of bool" >&5
26783 echo $ECHO_N "checking size of bool... $ECHO_C" >&6
26784 if test "${ac_cv_sizeof_bool+set}" = set; then
26785 echo $ECHO_N "(cached) $ECHO_C" >&6
26787 if test "$ac_cv_type_bool" = yes; then
26788 if test "$cross_compiling" = yes; then
26789 # Depending upon the size, compute the lo and hi bounds.
26790 cat >"conftest.$ac_ext" <<_ACEOF
26791 #line 26791 "configure"
26792 #include "confdefs.h"
26794 $ac_includes_default
26796 #if defined(__cplusplus)
26798 #ifdef HAVE_GXX_BUILTIN_H
26799 #include <g++/builtin.h>
26800 #elif HAVE_GPP_BUILTIN_H
26801 #include <gpp/builtin.h>
26802 #elif HAVE_BUILTIN_H
26803 #include <builtin.h>
26808 #if $cf_cv_header_stdbool_h
26809 #include <stdbool.h>
26817 int _array_ [1 - 2 * !((sizeof (bool)) >= 0)]
26822 rm -f "conftest.$ac_objext"
26823 if { (eval echo "$as_me:26823: \"$ac_compile\"") >&5
26824 (eval $ac_compile) 2>&5
26826 echo "$as_me:26826: \$? = $ac_status" >&5
26827 (exit "$ac_status"); } &&
26828 { ac_try='test -s "conftest.$ac_objext"'
26829 { (eval echo "$as_me:26829: \"$ac_try\"") >&5
26830 (eval $ac_try) 2>&5
26832 echo "$as_me:26832: \$? = $ac_status" >&5
26833 (exit "$ac_status"); }; }; then
26836 cat >"conftest.$ac_ext" <<_ACEOF
26837 #line 26837 "configure"
26838 #include "confdefs.h"
26840 $ac_includes_default
26842 #if defined(__cplusplus)
26844 #ifdef HAVE_GXX_BUILTIN_H
26845 #include <g++/builtin.h>
26846 #elif HAVE_GPP_BUILTIN_H
26847 #include <gpp/builtin.h>
26848 #elif HAVE_BUILTIN_H
26849 #include <builtin.h>
26854 #if $cf_cv_header_stdbool_h
26855 #include <stdbool.h>
26863 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
26868 rm -f "conftest.$ac_objext"
26869 if { (eval echo "$as_me:26869: \"$ac_compile\"") >&5
26870 (eval $ac_compile) 2>&5
26872 echo "$as_me:26872: \$? = $ac_status" >&5
26873 (exit "$ac_status"); } &&
26874 { ac_try='test -s "conftest.$ac_objext"'
26875 { (eval echo "$as_me:26875: \"$ac_try\"") >&5
26876 (eval $ac_try) 2>&5
26878 echo "$as_me:26878: \$? = $ac_status" >&5
26879 (exit "$ac_status"); }; }; then
26880 ac_hi=$ac_mid; break
26882 echo "$as_me: failed program was:" >&5
26883 cat "conftest.$ac_ext" >&5
26884 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
26886 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26889 echo "$as_me: failed program was:" >&5
26890 cat "conftest.$ac_ext" >&5
26893 cat >"conftest.$ac_ext" <<_ACEOF
26894 #line 26894 "configure"
26895 #include "confdefs.h"
26897 $ac_includes_default
26899 #if defined(__cplusplus)
26901 #ifdef HAVE_GXX_BUILTIN_H
26902 #include <g++/builtin.h>
26903 #elif HAVE_GPP_BUILTIN_H
26904 #include <gpp/builtin.h>
26905 #elif HAVE_BUILTIN_H
26906 #include <builtin.h>
26911 #if $cf_cv_header_stdbool_h
26912 #include <stdbool.h>
26920 int _array_ [1 - 2 * !((sizeof (bool)) >= $ac_mid)]
26925 rm -f "conftest.$ac_objext"
26926 if { (eval echo "$as_me:26926: \"$ac_compile\"") >&5
26927 (eval $ac_compile) 2>&5
26929 echo "$as_me:26929: \$? = $ac_status" >&5
26930 (exit "$ac_status"); } &&
26931 { ac_try='test -s "conftest.$ac_objext"'
26932 { (eval echo "$as_me:26932: \"$ac_try\"") >&5
26933 (eval $ac_try) 2>&5
26935 echo "$as_me:26935: \$? = $ac_status" >&5
26936 (exit "$ac_status"); }; }; then
26937 ac_lo=$ac_mid; break
26939 echo "$as_me: failed program was:" >&5
26940 cat "conftest.$ac_ext" >&5
26941 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
26943 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26946 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26947 # Binary search between lo and hi bounds.
26948 while test "x$ac_lo" != "x$ac_hi"; do
26949 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
26950 cat >"conftest.$ac_ext" <<_ACEOF
26951 #line 26951 "configure"
26952 #include "confdefs.h"
26954 $ac_includes_default
26956 #if defined(__cplusplus)
26958 #ifdef HAVE_GXX_BUILTIN_H
26959 #include <g++/builtin.h>
26960 #elif HAVE_GPP_BUILTIN_H
26961 #include <gpp/builtin.h>
26962 #elif HAVE_BUILTIN_H
26963 #include <builtin.h>
26968 #if $cf_cv_header_stdbool_h
26969 #include <stdbool.h>
26977 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
26982 rm -f "conftest.$ac_objext"
26983 if { (eval echo "$as_me:26983: \"$ac_compile\"") >&5
26984 (eval $ac_compile) 2>&5
26986 echo "$as_me:26986: \$? = $ac_status" >&5
26987 (exit "$ac_status"); } &&
26988 { ac_try='test -s "conftest.$ac_objext"'
26989 { (eval echo "$as_me:26989: \"$ac_try\"") >&5
26990 (eval $ac_try) 2>&5
26992 echo "$as_me:26992: \$? = $ac_status" >&5
26993 (exit "$ac_status"); }; }; then
26996 echo "$as_me: failed program was:" >&5
26997 cat "conftest.$ac_ext" >&5
26998 ac_lo=`expr "$ac_mid" + 1`
27000 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27002 ac_cv_sizeof_bool=$ac_lo
27004 if test "$cross_compiling" = yes; then
27005 { { echo "$as_me:27005: error: cannot run test program while cross compiling" >&5
27006 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
27007 { (exit 1); exit 1; }; }
27009 cat >"conftest.$ac_ext" <<_ACEOF
27010 #line 27010 "configure"
27011 #include "confdefs.h"
27013 $ac_includes_default
27015 #if defined(__cplusplus)
27017 #ifdef HAVE_GXX_BUILTIN_H
27018 #include <g++/builtin.h>
27019 #elif HAVE_GPP_BUILTIN_H
27020 #include <gpp/builtin.h>
27021 #elif HAVE_BUILTIN_H
27022 #include <builtin.h>
27027 #if $cf_cv_header_stdbool_h
27028 #include <stdbool.h>
27036 FILE *f = fopen ("conftest.val", "w");
27038 $ac_main_return (1);
27039 fprintf (f, "%ld", (long)(sizeof (bool)));
27045 rm -f "conftest$ac_exeext"
27046 if { (eval echo "$as_me:27046: \"$ac_link\"") >&5
27047 (eval $ac_link) 2>&5
27049 echo "$as_me:27049: \$? = $ac_status" >&5
27050 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
27051 { (eval echo "$as_me:27051: \"$ac_try\"") >&5
27052 (eval $ac_try) 2>&5
27054 echo "$as_me:27054: \$? = $ac_status" >&5
27055 (exit "$ac_status"); }; }; then
27056 ac_cv_sizeof_bool=`cat conftest.val`
27058 echo "$as_me: program exited with status $ac_status" >&5
27059 echo "$as_me: failed program was:" >&5
27060 cat "conftest.$ac_ext" >&5
27062 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
27067 ac_cv_sizeof_bool=0
27070 echo "$as_me:27070: result: $ac_cv_sizeof_bool" >&5
27071 echo "${ECHO_T}$ac_cv_sizeof_bool" >&6
27072 cat >>confdefs.h <<EOF
27073 #define SIZEOF_BOOL $ac_cv_sizeof_bool
27076 echo "$as_me:27076: checking for type of bool" >&5
27077 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
27078 if test "${cf_cv_type_of_bool+set}" = set; then
27079 echo $ECHO_N "(cached) $ECHO_C" >&6
27083 if test "$cross_compiling" = yes; then
27085 case x$ac_cv_sizeof_bool in
27086 (x1) cf_cv_type_of_bool="unsigned char";;
27087 (x2) cf_cv_type_of_bool="unsigned short";;
27088 (x4) cf_cv_type_of_bool="unsigned int";;
27089 (x8) cf_cv_type_of_bool="unsigned long";;
27090 (*) cf_cv_type_of_bool=unknown;;
27094 cat >"conftest.$ac_ext" <<_ACEOF
27095 #line 27095 "configure"
27096 #include "confdefs.h"
27098 $ac_includes_default
27100 #if defined(__cplusplus)
27102 #ifdef HAVE_GXX_BUILTIN_H
27103 #include <g++/builtin.h>
27104 #elif HAVE_GPP_BUILTIN_H
27105 #include <gpp/builtin.h>
27106 #elif HAVE_BUILTIN_H
27107 #include <builtin.h>
27112 #if $cf_cv_header_stdbool_h
27113 #include <stdbool.h>
27120 FILE *fp = fopen("cf_test.out", "w");
27123 if ((bool)(-x) >= 0)
27124 fputs("unsigned ", fp);
27125 if (sizeof(x) == sizeof(int)) fputs("int", fp);
27126 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
27127 else if (sizeof(x) == sizeof(short))fputs("short",fp);
27128 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
27131 ${cf_cv_main_return:-return}(0);
27135 rm -f "conftest$ac_exeext"
27136 if { (eval echo "$as_me:27136: \"$ac_link\"") >&5
27137 (eval $ac_link) 2>&5
27139 echo "$as_me:27139: \$? = $ac_status" >&5
27140 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
27141 { (eval echo "$as_me:27141: \"$ac_try\"") >&5
27142 (eval $ac_try) 2>&5
27144 echo "$as_me:27144: \$? = $ac_status" >&5
27145 (exit "$ac_status"); }; }; then
27146 cf_cv_type_of_bool=`cat cf_test.out`
27147 if test -z "$cf_cv_type_of_bool"; then
27148 cf_cv_type_of_bool=unknown
27151 echo "$as_me: program exited with status $ac_status" >&5
27152 echo "$as_me: failed program was:" >&5
27153 cat "conftest.$ac_ext" >&5
27154 cf_cv_type_of_bool=unknown
27156 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
27161 echo "$as_me:27161: result: $cf_cv_type_of_bool" >&5
27162 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
27164 if test "$cf_cv_type_of_bool" = unknown ; then
27165 case .$NCURSES_BOOL in
27166 (.auto|.) NCURSES_BOOL=unsigned;;
27168 { echo "$as_me:27168: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
27169 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
27170 cf_cv_type_of_bool=$NCURSES_BOOL
27174 echo "$as_me:27174: checking for fallback type of bool" >&5
27175 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
27176 case "$host_cpu" in
27177 (i?86) cf_cv_type_of_bool=char ;;
27178 (*) cf_cv_type_of_bool=int ;;
27180 echo "$as_me:27180: result: $cf_cv_type_of_bool" >&5
27181 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
27186 # If the C compiler did not declare bool, and we did not determine that the C++
27187 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
27188 # ncurses library use the same type as C++ bool. Note that this allows one to
27189 # specify the type of bool in a configure-script option and postpone
27190 # integration with the C++ compiler provided that the types are compatible.
27192 if test "$cf_cv_cc_bool_type" = 1
27194 # oops: C has a bool. Unlikely, but C++ could differ.
27196 elif test "$cf_cv_builtin_bool" = 0
27201 # this is the normal case
27202 USE_CXX_BOOL='defined(__cplusplus)'
27205 if test -f "${srcdir}/Ada95/Makefile.in" ; then
27207 if test "$cf_with_ada" != "no" ; then
27208 if test "$with_libtool" != "no"; then
27209 { echo "$as_me:27209: WARNING: libtool does not support Ada - disabling feature" >&5
27210 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
27215 if test "$cf_with_ada" != "no" ; then
27217 for cf_prog_gnat in gnat gnatmake gprconfig gprbuild
27220 cf_upper_prog_gnat=`echo "${cf_prog_gnat}" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
27222 unset ac_cv_path_cf_TEMP_gnat
27224 # Extract the first word of "$cf_prog_gnat", so it can be a program name with args.
27225 set dummy $cf_prog_gnat; ac_word=$2
27226 echo "$as_me:27226: checking for $ac_word" >&5
27227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27228 if test "${ac_cv_path_cf_TEMP_gnat+set}" = set; then
27229 echo $ECHO_N "(cached) $ECHO_C" >&6
27231 case $cf_TEMP_gnat in
27233 ac_cv_path_cf_TEMP_gnat="$cf_TEMP_gnat" # Let the user override the test with a path.
27236 ac_save_IFS=$IFS; IFS=$ac_path_separator
27238 for ac_dir in $ac_dummy; do
27240 test -z "$ac_dir" && ac_dir=.
27241 if $as_executable_p "$ac_dir/$ac_word"; then
27242 ac_cv_path_cf_TEMP_gnat="$ac_dir/$ac_word"
27243 echo "$as_me:27243: found $ac_dir/$ac_word" >&5
27248 test -z "$ac_cv_path_cf_TEMP_gnat" && ac_cv_path_cf_TEMP_gnat="no"
27252 cf_TEMP_gnat=$ac_cv_path_cf_TEMP_gnat
27254 if test -n "$cf_TEMP_gnat"; then
27255 echo "$as_me:27255: result: $cf_TEMP_gnat" >&5
27256 echo "${ECHO_T}$cf_TEMP_gnat" >&6
27258 echo "$as_me:27258: result: no" >&5
27259 echo "${ECHO_T}no" >&6
27262 eval "cf_cv_PATH_$cf_upper_prog_gnat=$ac_cv_path_cf_TEMP_gnat"
27264 if test "x$cf_TEMP_gnat" != xno; then
27265 unset cf_cv_gnat_version
27268 echo "$as_me:27268: checking for $cf_prog_gnat version" >&5
27269 echo $ECHO_N "checking for $cf_prog_gnat version... $ECHO_C" >&6
27270 if test "${cf_cv_gnat_version+set}" = set; then
27271 echo $ECHO_N "(cached) $ECHO_C" >&6
27274 cf_cv_gnat_version=`$cf_prog_gnat --version 2>&1 | \
27275 grep '[0-9].[0-9][0-9]*' |\
27276 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
27279 echo "$as_me:27279: result: $cf_cv_gnat_version" >&5
27280 echo "${ECHO_T}$cf_cv_gnat_version" >&6
27281 test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
27282 eval cf_TEMP_gnat=$cf_cv_gnat_version; unset cf_cv_gnat_version
27285 eval "cf_cv_VERSION_$cf_upper_prog_gnat=$cf_TEMP_gnat"
27288 unset cf_cv_gnat_version
27289 unset ac_cv_path_cf_TEMP_gnat
27292 if test "x$cf_cv_VERSION_GNATMAKE" = "xno"; then
27294 cf_cv_prog_gnat_correct=no
27296 cf_ada_make=gnatmake
27297 if test "x$cf_cv_VERSION_GPRCONFIG" = "xno"; then
27298 # gprconfig is newer than gnatmake; we can continue...
27301 rm -rf ./conftest* ./*~conftest*
27302 if mkdir conftest.src
27306 for cf_gprconfig in Ada C
27308 echo "$as_me:27308: checking for gprconfig name for $cf_gprconfig" >&5
27309 echo $ECHO_N "checking for gprconfig name for $cf_gprconfig... $ECHO_C" >&6
27310 if test "$cf_gprconfig" = C
27312 for cf_gprconfig_param in \
27313 "$cf_gprconfig,,,,GNATGCC" \
27314 "$cf_gprconfig,,,,GCC" \
27317 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
27318 test -n "$cf_gprconfig_value" && break
27321 cf_gprconfig_param=$cf_gprconfig
27322 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
27324 if test -n "$cf_gprconfig_value"
27326 eval "cf_ada_config_$cf_gprconfig=$cf_gprconfig_value"
27327 echo "$as_me:27327: result: $cf_gprconfig_value" >&5
27328 echo "${ECHO_T}$cf_gprconfig_value" >&6
27330 echo "$as_me:27330: result: missing" >&5
27331 echo "${ECHO_T}missing" >&6
27337 rm -rf ./conftest* ./*~conftest*
27340 if test "x$cf_ada_config" != "x#"
27343 echo "$as_me:27343: checking for gnat version" >&5
27344 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
27345 if test "${cf_cv_gnat_version+set}" = set; then
27346 echo $ECHO_N "(cached) $ECHO_C" >&6
27349 cf_cv_gnat_version=`${cf_ada_make:-gnatmake} --version 2>&1 | \
27350 grep '[0-9].[0-9][0-9]*' |\
27351 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
27354 echo "$as_me:27354: result: $cf_cv_gnat_version" >&5
27355 echo "${ECHO_T}$cf_cv_gnat_version" >&6
27356 test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
27358 case "$cf_cv_gnat_version" in
27359 (3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
27360 cf_cv_prog_gnat_correct=yes
27363 { echo "$as_me:27363: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
27364 echo "$as_me: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
27365 cf_cv_prog_gnat_correct=no
27369 # Extract the first word of "m4", so it can be a program name with args.
27370 set dummy m4; ac_word=$2
27371 echo "$as_me:27371: checking for $ac_word" >&5
27372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27373 if test "${ac_cv_prog_M4_exists+set}" = set; then
27374 echo $ECHO_N "(cached) $ECHO_C" >&6
27376 if test -n "$M4_exists"; then
27377 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
27379 ac_save_IFS=$IFS; IFS=$ac_path_separator
27381 for ac_dir in $ac_dummy; do
27383 test -z "$ac_dir" && ac_dir=.
27384 $as_executable_p "$ac_dir/$ac_word" || continue
27385 ac_cv_prog_M4_exists="yes"
27386 echo "$as_me:27386: found $ac_dir/$ac_word" >&5
27390 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
27393 M4_exists=$ac_cv_prog_M4_exists
27394 if test -n "$M4_exists"; then
27395 echo "$as_me:27395: result: $M4_exists" >&5
27396 echo "${ECHO_T}$M4_exists" >&6
27398 echo "$as_me:27398: result: no" >&5
27399 echo "${ECHO_T}no" >&6
27402 if test "$ac_cv_prog_M4_exists" = no; then
27403 cf_cv_prog_gnat_correct=no
27404 { echo "$as_me:27404: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&5
27405 echo "$as_me: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&2;}
27407 if test "$cf_cv_prog_gnat_correct" = yes; then
27408 echo "$as_me:27408: checking if GNAT works" >&5
27409 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
27411 rm -rf ./conftest* ./*~conftest*
27412 cat >>conftest.ads <<CF_EOF
27413 procedure conftest;
27415 cat >>conftest.adb <<CF_EOF
27418 procedure conftest is
27420 Text_IO.Put ("Hello World");
27422 GNAT.OS_Lib.OS_Exit (0);
27425 if ( "$cf_ada_make" $ADAFLAGS conftest 1>&5 2>&1 ) ; then
27426 if ( ./conftest 1>&5 2>&1 ) ; then
27427 cf_cv_prog_gnat_correct=yes
27429 cf_cv_prog_gnat_correct=no
27432 cf_cv_prog_gnat_correct=no
27434 rm -rf ./conftest* ./*~conftest*
27436 echo "$as_me:27436: result: $cf_cv_prog_gnat_correct" >&5
27437 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
27440 cf_cv_prog_gnat_correct=no
27444 if test "x$cf_cv_prog_gnat_correct" = xyes; then
27446 ADAFLAGS="$ADAFLAGS -gnatpn"
27448 echo "$as_me:27448: checking optimization options for ADAFLAGS" >&5
27449 echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
27453 ADAFLAGS="$ADAFLAGS -g"
27459 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
27461 ADAFLAGS="$ADAFLAGS $cf_O_flag"
27465 echo "$as_me:27465: result: $ADAFLAGS" >&5
27466 echo "${ECHO_T}$ADAFLAGS" >&6
27468 echo "$as_me:27468: checking if GNATPREP supports -T option" >&5
27469 echo $ECHO_N "checking if GNATPREP supports -T option... $ECHO_C" >&6
27470 if test "${cf_cv_gnatprep_opt_t+set}" = set; then
27471 echo $ECHO_N "(cached) $ECHO_C" >&6
27474 cf_cv_gnatprep_opt_t=no
27475 gnatprep -T 2>/dev/null >/dev/null && cf_cv_gnatprep_opt_t=yes
27478 echo "$as_me:27478: result: $cf_cv_gnatprep_opt_t" >&5
27479 echo "${ECHO_T}$cf_cv_gnatprep_opt_t" >&6
27480 test "$cf_cv_gnatprep_opt_t" = yes && GNATPREP_OPTS="-T $GNATPREP_OPTS"
27482 echo "$as_me:27482: checking if GNAT supports generics" >&5
27483 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
27484 case "$cf_cv_gnat_version" in
27485 (3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
27486 cf_gnat_generics=yes
27489 cf_gnat_generics=no
27492 echo "$as_me:27492: result: $cf_gnat_generics" >&5
27493 echo "${ECHO_T}$cf_gnat_generics" >&6
27495 if test "$cf_gnat_generics" = yes
27497 cf_compile_generics=generics
27498 cf_generic_objects="\${GENOBJS}"
27500 cf_compile_generics=
27501 cf_generic_objects=
27504 echo "$as_me:27504: checking if GNAT supports SIGINT" >&5
27505 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
27506 if test "${cf_cv_gnat_sigint+set}" = set; then
27507 echo $ECHO_N "(cached) $ECHO_C" >&6
27510 rm -rf ./conftest* ./*~conftest*
27511 cat >>conftest.ads <<CF_EOF
27512 with Ada.Interrupts.Names;
27514 package ConfTest is
27516 pragma Warnings (Off); -- the next pragma exists since 3.11p
27517 pragma Unreserve_All_Interrupts;
27518 pragma Warnings (On);
27520 protected Process is
27522 function Continue return Boolean;
27523 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
27525 Done : Boolean := False;
27530 cat >>conftest.adb <<CF_EOF
27531 package body ConfTest is
27532 protected body Process is
27537 function Continue return Boolean is
27544 if ( "$cf_ada_make" $ADAFLAGS conftest 1>&5 2>&1 ) ; then
27545 cf_cv_gnat_sigint=yes
27547 cf_cv_gnat_sigint=no
27549 rm -rf ./conftest* ./*~conftest*
27552 echo "$as_me:27552: result: $cf_cv_gnat_sigint" >&5
27553 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
27555 if test "$cf_cv_gnat_sigint" = yes ; then
27558 USE_GNAT_SIGINT="#"
27561 cf_gnat_libraries=no
27562 cf_gnat_projects=no
27564 if test "$enable_gnat_projects" != no ; then
27565 echo "$as_me:27565: checking if GNAT supports project files" >&5
27566 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
27567 case "$cf_cv_gnat_version" in
27571 case "$cf_cv_system_name" in
27575 rm -rf ./conftest* ./*~conftest*
27576 if mkdir conftest.src conftest.bin conftest.lib
27579 rm -rf ./conftest* ./*~conftest*
27580 cat >>library.gpr <<CF_EOF
27582 Kind := External ("LIB_KIND");
27583 for Library_Name use "ConfTest";
27584 for Object_Dir use ".";
27585 for Library_ALI_Dir use External("LIBRARY_DIR");
27586 for Library_Version use External ("SONAME");
27587 for Library_Kind use Kind;
27588 for Library_Dir use External("BUILD_DIR");
27589 Source_Dir := External ("SOURCE_DIR");
27590 for Source_Dirs use (Source_Dir);
27593 cat >>confpackage.ads <<CF_EOF
27594 package ConfPackage is
27595 procedure conftest;
27598 cat >>confpackage.adb <<CF_EOF
27600 package body ConfPackage is
27601 procedure conftest is
27603 Text_IO.Put ("Hello World");
27608 if ( "$cf_ada_make" $ADAFLAGS \
27610 -XBUILD_DIR="`cd ../conftest.bin;pwd`" \
27611 -XLIBRARY_DIR="`cd ../conftest.lib;pwd`" \
27612 -XSOURCE_DIR="`pwd`" \
27613 -XSONAME=libConfTest.so.1 \
27614 -XLIB_KIND=static 1>&5 2>&1 ) ; then
27615 cf_gnat_projects=yes
27619 if test -f conftest.lib/confpackage.ali
27621 cf_gnat_libraries=yes
27623 rm -rf ./conftest* ./*~conftest*
27628 echo "$as_me:27628: result: $cf_gnat_projects" >&5
27629 echo "${ECHO_T}$cf_gnat_projects" >&6
27630 fi # enable_gnat_projects
27632 if test "$cf_gnat_projects" = yes
27634 echo "$as_me:27634: checking if GNAT supports libraries" >&5
27635 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
27636 echo "$as_me:27636: result: $cf_gnat_libraries" >&5
27637 echo "${ECHO_T}$cf_gnat_libraries" >&6
27640 USE_OLD_MAKERULES=""
27641 USE_GNAT_PROJECTS="#"
27642 USE_GNAT_MAKE_GPR="#"
27643 USE_GNAT_GPRBUILD="#"
27645 if test "$cf_gnat_projects" = yes
27647 USE_OLD_MAKERULES="#"
27648 USE_GNAT_PROJECTS=""
27649 if test "$cf_cv_VERSION_GPRBUILD" != no
27651 USE_GNAT_GPRBUILD=""
27652 elif test "$cf_cv_VERSION_GNATMAKE" != no
27654 USE_GNAT_MAKE_GPR=""
27656 { echo "$as_me:27656: WARNING: use old makefile rules since tools are missing" >&5
27657 echo "$as_me: WARNING: use old makefile rules since tools are missing" >&2;}
27661 if test "$cf_gnat_libraries" = yes
27663 USE_GNAT_LIBRARIES=""
27665 USE_GNAT_LIBRARIES="#"
27668 echo "$as_me:27668: checking for ada-compiler" >&5
27669 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
27671 # Check whether --with-ada-compiler or --without-ada-compiler was given.
27672 if test "${with_ada_compiler+set}" = set; then
27673 withval="$with_ada_compiler"
27674 cf_ada_compiler=$withval
27676 cf_ada_compiler=gnatmake
27679 echo "$as_me:27679: result: $cf_ada_compiler" >&5
27680 echo "${ECHO_T}$cf_ada_compiler" >&6
27682 cf_ada_package=terminal_interface
27684 echo "$as_me:27684: checking for ada-include" >&5
27685 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
27687 # Check whether --with-ada-include or --without-ada-include was given.
27688 if test "${with_ada_include+set}" = set; then
27689 withval="$with_ada_include"
27692 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
27693 fi; if test -n "$prefix/share/ada/adainclude" ; then
27695 if test "x$prefix" != xNONE; then
27696 cf_path_syntax="$prefix"
27698 cf_path_syntax="$ac_default_prefix"
27701 case ".$withval" in
27702 (.\$\(*\)*|.\'*\'*)
27706 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
27708 (.\$\{*prefix\}*|.\$\{*dir\}*)
27709 eval withval="$withval"
27710 case ".$withval" in
27712 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27717 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27720 { { echo "$as_me:27720: error: expected a pathname, not \"$withval\"" >&5
27721 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
27722 { (exit 1); exit 1; }; }
27727 eval ADA_INCLUDE="$withval"
27729 echo "$as_me:27729: result: $ADA_INCLUDE" >&5
27730 echo "${ECHO_T}$ADA_INCLUDE" >&6
27732 echo "$as_me:27732: checking for ada-objects" >&5
27733 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
27735 # Check whether --with-ada-objects or --without-ada-objects was given.
27736 if test "${with_ada_objects+set}" = set; then
27737 withval="$with_ada_objects"
27740 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
27741 fi; if test -n "$prefix/lib/ada/adalib" ; then
27743 if test "x$prefix" != xNONE; then
27744 cf_path_syntax="$prefix"
27746 cf_path_syntax="$ac_default_prefix"
27749 case ".$withval" in
27750 (.\$\(*\)*|.\'*\'*)
27754 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
27756 (.\$\{*prefix\}*|.\$\{*dir\}*)
27757 eval withval="$withval"
27758 case ".$withval" in
27760 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27765 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27768 { { echo "$as_me:27768: error: expected a pathname, not \"$withval\"" >&5
27769 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
27770 { (exit 1); exit 1; }; }
27775 eval ADA_OBJECTS="$withval"
27777 echo "$as_me:27777: result: $ADA_OBJECTS" >&5
27778 echo "${ECHO_T}$ADA_OBJECTS" >&6
27780 echo "$as_me:27780: checking if an Ada95 shared-library should be built" >&5
27781 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
27783 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
27784 if test "${with_ada_sharedlib+set}" = set; then
27785 withval="$with_ada_sharedlib"
27786 with_ada_sharedlib=$withval
27788 with_ada_sharedlib=no
27790 echo "$as_me:27790: result: $with_ada_sharedlib" >&5
27791 echo "${ECHO_T}$with_ada_sharedlib" >&6
27793 if test "x$with_ada_sharedlib" != xno
27795 if test "x$cf_gnat_projects" != xyes
27797 { echo "$as_me:27797: WARNING: disabling shared-library since GNAT projects are not supported" >&5
27798 echo "$as_me: WARNING: disabling shared-library since GNAT projects are not supported" >&2;}
27799 with_ada_sharedlib=no
27803 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
27804 MAKE_ADA_SHAREDLIB="#"
27806 if test "x$with_ada_sharedlib" != xno
27808 MAKE_ADA_SHAREDLIB=
27809 if test "x$with_ada_sharedlib" != xyes
27811 ADA_SHAREDLIB="$with_ada_sharedlib"
27815 # allow the Ada binding to be renamed
27817 echo "$as_me:27817: checking for ada-libname" >&5
27818 echo $ECHO_N "checking for ada-libname... $ECHO_C" >&6
27820 # Check whether --with-ada-libname or --without-ada-libname was given.
27821 if test "${with_ada_libname+set}" = set; then
27822 withval="$with_ada_libname"
27823 ADA_LIBNAME=$withval
27825 ADA_LIBNAME=AdaCurses
27827 case "x$ADA_LIBNAME" in
27829 ADA_LIBNAME=AdaCurses
27833 echo "$as_me:27833: result: $ADA_LIBNAME" >&5
27834 echo "${ECHO_T}$ADA_LIBNAME" >&6
27842 # do this "late" to avoid conflict with header-checks
27843 if test "x$with_widec" = xyes ; then
27844 echo "$as_me:27844: checking for wchar_t" >&5
27845 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
27846 if test "${ac_cv_type_wchar_t+set}" = set; then
27847 echo $ECHO_N "(cached) $ECHO_C" >&6
27849 cat >"conftest.$ac_ext" <<_ACEOF
27850 #line 27850 "configure"
27851 #include "confdefs.h"
27852 $ac_includes_default
27858 if (sizeof (wchar_t))
27864 rm -f "conftest.$ac_objext"
27865 if { (eval echo "$as_me:27865: \"$ac_compile\"") >&5
27866 (eval $ac_compile) 2>&5
27868 echo "$as_me:27868: \$? = $ac_status" >&5
27869 (exit "$ac_status"); } &&
27870 { ac_try='test -s "conftest.$ac_objext"'
27871 { (eval echo "$as_me:27871: \"$ac_try\"") >&5
27872 (eval $ac_try) 2>&5
27874 echo "$as_me:27874: \$? = $ac_status" >&5
27875 (exit "$ac_status"); }; }; then
27876 ac_cv_type_wchar_t=yes
27878 echo "$as_me: failed program was:" >&5
27879 cat "conftest.$ac_ext" >&5
27880 ac_cv_type_wchar_t=no
27882 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27884 echo "$as_me:27884: result: $ac_cv_type_wchar_t" >&5
27885 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
27887 echo "$as_me:27887: checking size of wchar_t" >&5
27888 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
27889 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
27890 echo $ECHO_N "(cached) $ECHO_C" >&6
27892 if test "$ac_cv_type_wchar_t" = yes; then
27893 if test "$cross_compiling" = yes; then
27894 # Depending upon the size, compute the lo and hi bounds.
27895 cat >"conftest.$ac_ext" <<_ACEOF
27896 #line 27896 "configure"
27897 #include "confdefs.h"
27898 $ac_includes_default
27902 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= 0)]
27907 rm -f "conftest.$ac_objext"
27908 if { (eval echo "$as_me:27908: \"$ac_compile\"") >&5
27909 (eval $ac_compile) 2>&5
27911 echo "$as_me:27911: \$? = $ac_status" >&5
27912 (exit "$ac_status"); } &&
27913 { ac_try='test -s "conftest.$ac_objext"'
27914 { (eval echo "$as_me:27914: \"$ac_try\"") >&5
27915 (eval $ac_try) 2>&5
27917 echo "$as_me:27917: \$? = $ac_status" >&5
27918 (exit "$ac_status"); }; }; then
27921 cat >"conftest.$ac_ext" <<_ACEOF
27922 #line 27922 "configure"
27923 #include "confdefs.h"
27924 $ac_includes_default
27928 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
27933 rm -f "conftest.$ac_objext"
27934 if { (eval echo "$as_me:27934: \"$ac_compile\"") >&5
27935 (eval $ac_compile) 2>&5
27937 echo "$as_me:27937: \$? = $ac_status" >&5
27938 (exit "$ac_status"); } &&
27939 { ac_try='test -s "conftest.$ac_objext"'
27940 { (eval echo "$as_me:27940: \"$ac_try\"") >&5
27941 (eval $ac_try) 2>&5
27943 echo "$as_me:27943: \$? = $ac_status" >&5
27944 (exit "$ac_status"); }; }; then
27945 ac_hi=$ac_mid; break
27947 echo "$as_me: failed program was:" >&5
27948 cat "conftest.$ac_ext" >&5
27949 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
27951 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27954 echo "$as_me: failed program was:" >&5
27955 cat "conftest.$ac_ext" >&5
27958 cat >"conftest.$ac_ext" <<_ACEOF
27959 #line 27959 "configure"
27960 #include "confdefs.h"
27961 $ac_includes_default
27965 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= $ac_mid)]
27970 rm -f "conftest.$ac_objext"
27971 if { (eval echo "$as_me:27971: \"$ac_compile\"") >&5
27972 (eval $ac_compile) 2>&5
27974 echo "$as_me:27974: \$? = $ac_status" >&5
27975 (exit "$ac_status"); } &&
27976 { ac_try='test -s "conftest.$ac_objext"'
27977 { (eval echo "$as_me:27977: \"$ac_try\"") >&5
27978 (eval $ac_try) 2>&5
27980 echo "$as_me:27980: \$? = $ac_status" >&5
27981 (exit "$ac_status"); }; }; then
27982 ac_lo=$ac_mid; break
27984 echo "$as_me: failed program was:" >&5
27985 cat "conftest.$ac_ext" >&5
27986 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
27988 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27991 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27992 # Binary search between lo and hi bounds.
27993 while test "x$ac_lo" != "x$ac_hi"; do
27994 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
27995 cat >"conftest.$ac_ext" <<_ACEOF
27996 #line 27996 "configure"
27997 #include "confdefs.h"
27998 $ac_includes_default
28002 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
28007 rm -f "conftest.$ac_objext"
28008 if { (eval echo "$as_me:28008: \"$ac_compile\"") >&5
28009 (eval $ac_compile) 2>&5
28011 echo "$as_me:28011: \$? = $ac_status" >&5
28012 (exit "$ac_status"); } &&
28013 { ac_try='test -s "conftest.$ac_objext"'
28014 { (eval echo "$as_me:28014: \"$ac_try\"") >&5
28015 (eval $ac_try) 2>&5
28017 echo "$as_me:28017: \$? = $ac_status" >&5
28018 (exit "$ac_status"); }; }; then
28021 echo "$as_me: failed program was:" >&5
28022 cat "conftest.$ac_ext" >&5
28023 ac_lo=`expr "$ac_mid" + 1`
28025 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
28027 ac_cv_sizeof_wchar_t=$ac_lo
28029 if test "$cross_compiling" = yes; then
28030 { { echo "$as_me:28030: error: cannot run test program while cross compiling" >&5
28031 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
28032 { (exit 1); exit 1; }; }
28034 cat >"conftest.$ac_ext" <<_ACEOF
28035 #line 28035 "configure"
28036 #include "confdefs.h"
28037 $ac_includes_default
28041 FILE *f = fopen ("conftest.val", "w");
28043 $ac_main_return (1);
28044 fprintf (f, "%ld", (long)(sizeof (wchar_t)));
28050 rm -f "conftest$ac_exeext"
28051 if { (eval echo "$as_me:28051: \"$ac_link\"") >&5
28052 (eval $ac_link) 2>&5
28054 echo "$as_me:28054: \$? = $ac_status" >&5
28055 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
28056 { (eval echo "$as_me:28056: \"$ac_try\"") >&5
28057 (eval $ac_try) 2>&5
28059 echo "$as_me:28059: \$? = $ac_status" >&5
28060 (exit "$ac_status"); }; }; then
28061 ac_cv_sizeof_wchar_t=`cat conftest.val`
28063 echo "$as_me: program exited with status $ac_status" >&5
28064 echo "$as_me: failed program was:" >&5
28065 cat "conftest.$ac_ext" >&5
28067 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
28072 ac_cv_sizeof_wchar_t=0
28075 echo "$as_me:28075: result: $ac_cv_sizeof_wchar_t" >&5
28076 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
28077 cat >>confdefs.h <<EOF
28078 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
28081 # cross-compiling to mingw can run into the problem that attempting to
28082 # link with the regex library fails, causing the test to not set this to
28083 # a number. "recent" autoconf does not address this problem either -TD
28084 if test -z "$ac_cv_sizeof_wchar_t"
28086 test -n "$verbose" && echo " test failed (assume 2)" 1>&6
28088 echo "${as_me:-configure}:28088: testing test failed (assume 2) ..." 1>&5
28090 sed /SIZEOF_WCHAR_T/d confdefs.h >confdefs.tmp
28091 mv confdefs.tmp confdefs.h
28092 echo "#define SIZEOF_WCHAR_T 2" >>confdefs.h
28096 ### Construct the ncurses library-subsets, if any, from this set of keywords:
28097 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
28099 ### ticlib modules may be a separate library, otherwise contained in termlib.
28100 ### termlib modules may be a separate library, otherwise contained in ncurses.
28102 ### The of "+" or " " between the tokens controls the way the script
28103 ### chooses to split module lists into libraries.
28105 ### (see CF_LIB_RULES).
28106 echo "$as_me:28106: checking for library subsets" >&5
28107 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
28110 if test "x$cf_with_progs" = xyes || test "$with_ticlib" != no || test "$with_termcap" != no; then
28111 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
28112 if test "$with_ticlib" != no ; then
28113 LIB_SUBSETS="${LIB_SUBSETS} "
28115 LIB_SUBSETS="${LIB_SUBSETS}+"
28119 LIB_SUBSETS="${LIB_SUBSETS}termlib"
28120 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
28122 if test "$with_termlib" != no ; then
28123 LIB_SUBSETS="${LIB_SUBSETS} "
28125 LIB_SUBSETS="${LIB_SUBSETS}+"
28128 LIB_SUBSETS="${LIB_SUBSETS}base"
28130 # Most term-driver calls are to tinfo, but some like init_pair are to the
28131 # base library (so it resides in base).
28132 if test "$with_term_driver" != no ; then
28133 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
28134 case "$cf_cv_system_name" in
28135 (*mingw32*|*mingw64*)
28136 if test "x$with_exp_win32" = xyes ; then
28137 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32"
28139 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
28141 CPPFLAGS="$CPPFLAGS -DUSE_WIN32CON_DRIVER"
28144 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
28147 elif test "x$with_exp_win32" = xyes ; then
28148 case "$cf_cv_system_name" in
28149 (*mingw32*|*mingw64*)
28150 LIB_SUBSETS="${LIB_SUBSETS}+port_win32"
28157 test "x$with_widec" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
28158 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
28160 echo "$as_me:28160: result: $LIB_SUBSETS" >&5
28161 echo "${ECHO_T}$LIB_SUBSETS" >&6
28163 ### Construct the list of include-directories to be generated
28165 if test "$srcdir" != "."; then
28166 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
28168 CPPFLAGS="-I../include $CPPFLAGS"
28169 if test "$srcdir" != "."; then
28170 CPPFLAGS="-I\${srcdir} $CPPFLAGS"
28172 CPPFLAGS="-I. $CPPFLAGS"
28174 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
28175 if test "$srcdir" != "."; then
28176 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
28178 if test "$GCC" != yes; then
28179 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
28180 elif test "$includedir" != "/usr/include"; then
28181 if test "$includedir" = '${prefix}/include' ; then
28182 if test x$prefix != x/usr ; then
28183 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
28186 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
28190 ### Build up pieces for makefile rules
28191 echo "$as_me:28191: checking default library suffix" >&5
28192 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
28194 case $DFT_LWR_MODEL in
28195 (libtool) DFT_ARG_SUFFIX='' ;;
28196 (normal) DFT_ARG_SUFFIX='' ;;
28197 (debug) DFT_ARG_SUFFIX='_g' ;;
28198 (profile) DFT_ARG_SUFFIX='_p' ;;
28199 (shared) DFT_ARG_SUFFIX='' ;;
28201 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
28202 echo "$as_me:28202: result: $DFT_ARG_SUFFIX" >&5
28203 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
28205 echo "$as_me:28205: checking default library-dependency suffix" >&5
28206 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
28208 case X$DFT_LWR_MODEL in
28210 DFT_LIB_SUFFIX='.la'
28211 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28214 case "$cf_cv_system_name" in
28216 DFT_LIB_SUFFIX='_g.lib'
28219 DFT_LIB_SUFFIX='_g.a'
28222 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28225 case "$cf_cv_system_name" in
28227 DFT_LIB_SUFFIX='_p.lib'
28230 DFT_LIB_SUFFIX='_p.a'
28233 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28236 case "$cf_cv_system_name" in
28238 DFT_LIB_SUFFIX='.so'
28239 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28242 DFT_LIB_SUFFIX='.dll'
28243 DFT_DEP_SUFFIX='.dll.lib'
28245 (cygwin*|msys*|mingw*)
28246 DFT_LIB_SUFFIX='.dll'
28247 DFT_DEP_SUFFIX='.dll.a'
28250 DFT_LIB_SUFFIX='.dylib'
28251 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28256 DFT_LIB_SUFFIX='.so'
28257 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28260 DFT_LIB_SUFFIX='.sl'
28261 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28266 DFT_LIB_SUFFIX='.so'
28267 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28274 DFT_LIB_SUFFIX='.lib'
28277 DFT_LIB_SUFFIX='.a'
28280 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
28283 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
28285 DFT_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_LIB_SUFFIX}"
28286 DFT_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_DEP_SUFFIX}"
28288 echo "$as_me:28288: result: $DFT_DEP_SUFFIX" >&5
28289 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
28291 echo "$as_me:28291: checking default object directory" >&5
28292 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
28294 case $DFT_LWR_MODEL in
28295 (libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
28296 (normal) DFT_OBJ_SUBDIR='objects' ;;
28297 (debug) DFT_OBJ_SUBDIR='obj_g' ;;
28298 (profile) DFT_OBJ_SUBDIR='obj_p' ;;
28300 case "$cf_cv_system_name" in
28302 DFT_OBJ_SUBDIR='objects' ;;
28304 DFT_OBJ_SUBDIR='obj_s' ;;
28307 echo "$as_me:28307: result: $DFT_OBJ_SUBDIR" >&5
28308 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
28310 if test "x$cf_with_cxx" = xyes ; then
28311 echo "$as_me:28311: checking c++ library-dependency suffix" >&5
28312 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
28313 if test "$with_libtool" != "no"; then
28314 # libtool thinks it can make c++ shared libraries (perhaps only g++)
28315 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
28316 elif test "$with_shared_cxx" != "no"; then
28317 # also for g++ users...
28318 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
28320 # we normally make a static library because C/C++ library rules differ
28324 CXX_LIB_SUFFIX='.la'
28325 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28328 case "$cf_cv_system_name" in
28330 CXX_LIB_SUFFIX='_g.lib'
28333 CXX_LIB_SUFFIX='_g.a'
28336 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28339 case "$cf_cv_system_name" in
28341 CXX_LIB_SUFFIX='_p.lib'
28344 CXX_LIB_SUFFIX='_p.a'
28347 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28350 case "$cf_cv_system_name" in
28352 CXX_LIB_SUFFIX='.so'
28353 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28356 CXX_LIB_SUFFIX='.dll'
28357 CXX_DEP_SUFFIX='.dll.lib'
28359 (cygwin*|msys*|mingw*)
28360 CXX_LIB_SUFFIX='.dll'
28361 CXX_DEP_SUFFIX='.dll.a'
28364 CXX_LIB_SUFFIX='.dylib'
28365 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28370 CXX_LIB_SUFFIX='.so'
28371 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28374 CXX_LIB_SUFFIX='.sl'
28375 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28380 CXX_LIB_SUFFIX='.so'
28381 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28388 CXX_LIB_SUFFIX='.lib'
28391 CXX_LIB_SUFFIX='.a'
28394 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
28397 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
28399 CXX_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_LIB_SUFFIX}"
28400 CXX_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_DEP_SUFFIX}"
28404 echo "$as_me:28404: result: $CXX_LIB_SUFFIX" >&5
28405 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
28409 # do not want -ldl in build except as needed for -lncurses dependency
28410 if test "x$with_dlsym" = xyes ; then
28411 if test "$DFT_LWR_MODEL" = shared || \
28412 test "$DFT_LWR_MODEL" = libtool ; then
28414 # remove dl library from $LIBS
28415 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
28419 ### Set up low-level terminfo dependencies for makefiles.
28421 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
28422 # do not need libdl
28424 if test "x$with_dlsym" = xyes ; then
28426 # remove dl library from $SHLIB_LIST
28427 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
28431 USE_ARG_SUFFIX="${DFT_ARG_SUFFIX}${EXTRA_SUFFIX}"
28432 USE_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}"
28433 USE_CFG_SUFFIX=${DFT_ARG_SUFFIX}${cf_cv_abi_version}
28434 if test -n "$EXTRA_SUFFIX" && test "x$EXTRA_SUFFIX" != "x${cf_cv_abi_version}"
28436 USE_CFG_SUFFIX="${USE_CFG_SUFFIX}${EXTRA_SUFFIX}"
28439 if test "$with_ticlib" != no ; then
28441 if test "x$with_ticlib" != xyes ; then
28442 TICS_NAME=$with_ticlib
28443 TICS_SUFFIX="`echo "${DFT_LIB_SUFFIX}" |sed -e "s/^${USE_LIB_SUFFIX}//"`"
28444 TICS_ARG_SUFFIX="${with_ticlib}`echo "${USE_ARG_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
28445 TICS_DEP_SUFFIX="${with_ticlib}`echo "${DFT_DEP_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
28446 TICS_LIB_SUFFIX="${with_ticlib}"
28448 TICS_SUFFIX=${DFT_LIB_SUFFIX}
28449 TICS_ARG_SUFFIX="${TICS_NAME}${USE_ARG_SUFFIX}"
28450 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
28451 TICS_LIB_SUFFIX="${TICS_NAME}${USE_LIB_SUFFIX}"
28453 TICS_LDFLAGS="-L${LIB_DIR}"
28454 TICS_LIBS="-l${TICS_ARG_SUFFIX}"
28456 TICS_SUFFIX=${DFT_LIB_SUFFIX}
28457 TICS_LDFLAGS="-L${LIB_DIR}"
28458 TICS_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
28461 if test "$with_termlib" != no ; then
28463 if test "x$with_termlib" != xyes ; then
28464 TINFO_NAME=$with_termlib
28465 TINFO_SUFFIX="`echo "${DFT_LIB_SUFFIX}" |sed -e "s/^${USE_LIB_SUFFIX}//"`"
28466 TINFO_ARG_SUFFIX="${with_termlib}`echo "${USE_ARG_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
28467 TINFO_DEP_SUFFIX="${with_termlib}`echo "${DFT_DEP_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
28468 TINFO_LIB_SUFFIX="${with_termlib}"
28470 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
28471 TINFO_ARG_SUFFIX="${TINFO_NAME}${USE_ARG_SUFFIX}"
28472 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
28473 TINFO_LIB_SUFFIX="${TINFO_NAME}${USE_LIB_SUFFIX}"
28476 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
28477 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
28478 if test "$DFT_LWR_MODEL" = "libtool"; then
28479 TEST_ARGS="${TEST_DEPS}"
28480 TEST_ARG2="${TEST_DEP2}"
28481 TINFO_LDFLAGS="-L${LIB_DIR}"
28482 TINFO_LIBS="$TEST_ARGS"
28483 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
28484 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
28486 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
28487 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
28488 if test "x$with_term_driver" != xno ; then
28489 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
28490 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${USE_ARG_SUFFIX}"
28491 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
28493 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
28494 TINFO_LIBS="$TEST_ARGS"
28496 TINFO_LDFLAGS="-L${LIB_DIR}"
28497 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
28500 # the next lines are needed for linking libtic over libncurses
28501 TINFO_NAME=${LIB_NAME}
28502 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
28503 TINFO_ARG_SUFFIX=${LIB_NAME}${USE_ARG_SUFFIX}
28504 if test "x$with_tic_depends" = xyes ; then
28505 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
28507 TICS_LIST="$SHLIB_LIST"
28510 TINFO_LDFLAGS="-L${LIB_DIR}"
28511 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
28514 if test "$DFT_LWR_MODEL" = shared ; then
28515 case "$cf_cv_system_name" in
28517 # "lib" files have ".dll.a" suffix, "cyg"or "msys-" files have ".dll"
28523 if test "x$with_dlsym" = xyes ; then
28525 # remove dl library from $TICS_LIST
28526 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
28530 if test "$DFT_LWR_MODEL" = "libtool"; then
28535 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
28537 case "$DFT_LWR_MODEL" in
28538 (normal|debug|profile)
28540 if test "$GCC" = yes ; then
28541 case "$cf_cv_system_name" in
28542 (OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*)
28546 (*) # normally, except when broken
28547 LDFLAGS_STATIC=-static
28548 LDFLAGS_SHARED=-dynamic
28552 case "$cf_cv_system_name" in
28553 (aix[4-7]*) # from ld manpage
28554 LDFLAGS_STATIC=-bstatic
28555 LDFLAGS_SHARED=-bdynamic
28557 (hpux*) # from ld manpage for hpux10.20, hpux11.11
28558 # We could also use just "archive" and "shared".
28559 LDFLAGS_STATIC=-Wl,-a,archive_shared
28560 LDFLAGS_SHARED=-Wl,-a,shared_archive
28562 (irix*) # from ld manpage IRIX64
28563 LDFLAGS_STATIC=-Bstatic
28564 LDFLAGS_SHARED=-Bdynamic
28566 (osf[45]*) # from ld manpage osf4.0d, osf5.1
28567 # alternative "-oldstyle_liblookup" (not in cc manpage)
28568 LDFLAGS_STATIC=-noso
28569 LDFLAGS_SHARED=-so_archive
28572 LDFLAGS_STATIC=-Bstatic
28573 LDFLAGS_SHARED=-Bdynamic
28578 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
28580 echo "$as_me:28580: checking if linker supports switching between static/dynamic" >&5
28581 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
28583 rm -f libconftest.a
28584 cat >conftest.$ac_ext <<EOF
28585 #line 28585 "configure"
28587 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
28589 if { (eval echo "$as_me:28589: \"$ac_compile\"") >&5
28590 (eval $ac_compile) 2>&5
28592 echo "$as_me:28592: \$? = $ac_status" >&5
28593 (exit "$ac_status"); } ; then
28594 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
28595 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
28599 cf_save_LIBS="$LIBS"
28601 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
28602 cat >"conftest.$ac_ext" <<_ACEOF
28603 #line 28603 "configure"
28604 #include "confdefs.h"
28606 #line 28606 "configure"
28608 int cf_ldflags_static(FILE *fp);
28614 return cf_ldflags_static(stdin);
28620 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
28621 if { (eval echo "$as_me:28621: \"$ac_link\"") >&5
28622 (eval $ac_link) 2>&5
28624 echo "$as_me:28624: \$? = $ac_status" >&5
28625 (exit "$ac_status"); } &&
28626 { ac_try='test -s "conftest$ac_exeext"'
28627 { (eval echo "$as_me:28627: \"$ac_try\"") >&5
28628 (eval $ac_try) 2>&5
28630 echo "$as_me:28630: \$? = $ac_status" >&5
28631 (exit "$ac_status"); }; }; then
28633 # some linkers simply ignore the -dynamic
28634 case x`file "conftest$ac_exeext" 2>/dev/null` in
28636 cf_ldflags_static=no
28639 cf_ldflags_static=yes
28644 echo "$as_me: failed program was:" >&5
28645 cat "conftest.$ac_ext" >&5
28646 cf_ldflags_static=no
28648 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
28650 rm -f libconftest.*
28651 LIBS="$cf_save_LIBS"
28653 echo "$as_me:28653: result: $cf_ldflags_static" >&5
28654 echo "${ECHO_T}$cf_ldflags_static" >&6
28656 if test "$cf_ldflags_static" != yes
28669 echo "$as_me:28669: checking where we will install curses.h" >&5
28670 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
28673 if test "$with_overwrite" = no && \
28674 { test "x$includedir" = 'x${prefix}/include' || \
28675 test "x$includedir" = "x${prefix}/include"; }
28677 includesubdir="/ncurses${USE_LIB_SUFFIX}"
28679 echo "$as_me:28679: result: ${includedir}${includesubdir}" >&5
28680 echo "${ECHO_T}${includedir}${includesubdir}" >&6
28682 ### Resolve a conflict between normal and wide-curses by forcing applications
28683 ### that will need libutf8 to add it to their configure script.
28684 if test "$with_overwrite" != no ; then
28685 if test "$NCURSES_LIBUTF8" = 1 ; then
28686 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
28687 { echo "$as_me:28687: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
28688 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
28691 WITH_OVERWRITE=$with_overwrite
28693 ### At least on MinGW a shared library build without libtool
28694 ### requires adding the additional libs to the link list.
28695 case "$cf_cv_system_name" in
28696 (*mingw32*|*mingw64*)
28697 if test "$DFT_LWR_MODEL" != "libtool"; then
28698 SHLIB_LIST="$SHLIB_LIST ${LIBS}"
28704 ### predefined stuff for the test programs
28706 cat >>confdefs.h <<\EOF
28707 #define HAVE_SLK_COLOR 1
28710 # pkgsrc uses these
28712 echo "$as_me:28712: checking for desired basename for form library" >&5
28713 echo $ECHO_N "checking for desired basename for form library... $ECHO_C" >&6
28715 # Check whether --with-form-libname or --without-form-libname was given.
28716 if test "${with_form_libname+set}" = set; then
28717 withval="$with_form_libname"
28718 with_lib_basename=$withval
28720 with_lib_basename=form
28722 FORM_NAME="$with_lib_basename"
28724 case "x$FORM_NAME" in
28732 echo "$as_me:28732: result: $FORM_NAME" >&5
28733 echo "${ECHO_T}$FORM_NAME" >&6
28735 echo "$as_me:28735: checking for desired basename for menu library" >&5
28736 echo $ECHO_N "checking for desired basename for menu library... $ECHO_C" >&6
28738 # Check whether --with-menu-libname or --without-menu-libname was given.
28739 if test "${with_menu_libname+set}" = set; then
28740 withval="$with_menu_libname"
28741 with_lib_basename=$withval
28743 with_lib_basename=menu
28745 MENU_NAME="$with_lib_basename"
28747 case "x$MENU_NAME" in
28755 echo "$as_me:28755: result: $MENU_NAME" >&5
28756 echo "${ECHO_T}$MENU_NAME" >&6
28758 echo "$as_me:28758: checking for desired basename for panel library" >&5
28759 echo $ECHO_N "checking for desired basename for panel library... $ECHO_C" >&6
28761 # Check whether --with-panel-libname or --without-panel-libname was given.
28762 if test "${with_panel_libname+set}" = set; then
28763 withval="$with_panel_libname"
28764 with_lib_basename=$withval
28766 with_lib_basename=panel
28768 PANEL_NAME="$with_lib_basename"
28770 case "x$PANEL_NAME" in
28778 echo "$as_me:28778: result: $PANEL_NAME" >&5
28779 echo "${ECHO_T}$PANEL_NAME" >&6
28781 echo "$as_me:28781: checking for desired basename for cxx library" >&5
28782 echo $ECHO_N "checking for desired basename for cxx library... $ECHO_C" >&6
28784 # Check whether --with-cxx-libname or --without-cxx-libname was given.
28785 if test "${with_cxx_libname+set}" = set; then
28786 withval="$with_cxx_libname"
28787 with_lib_basename=$withval
28789 with_lib_basename=ncurses++
28791 CXX_NAME="$with_lib_basename"
28793 case "x$CXX_NAME" in
28801 echo "$as_me:28801: result: $CXX_NAME" >&5
28802 echo "${ECHO_T}$CXX_NAME" >&6
28804 ### Construct the list of subdirectories for which we'll customize makefiles
28805 ### with the appropriate compile-rules.
28807 echo "$as_me:28807: checking for src modules" >&5
28808 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
28810 # dependencies and linker-arguments for test-programs
28811 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
28812 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
28813 if test "$DFT_LWR_MODEL" = "libtool"; then
28814 TEST_ARGS="${TEST_DEPS}"
28815 TEST_ARG2="${TEST_DEP2}"
28817 TEST_ARGS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
28818 TEST_ARG2="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARG2"
28821 PC_MODULES_TO_MAKE="ncurses${USE_ARG_SUFFIX}"
28823 for cf_dir in $modules_to_build
28825 if test -f "$srcdir/$cf_dir/modules" ; then
28827 if test -z "$cf_cv_src_modules"; then
28828 cf_cv_src_modules=$cf_dir
28830 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
28833 # Make the ncurses_cfg.h file record the library interface files as
28834 # well. These are header files that are the same name as their
28835 # directory. Ncurses is the only library that does not follow
28837 if test -f "$srcdir/${cf_dir}/${cf_dir}.h" ; then
28839 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
28841 cat >>confdefs.h <<EOF
28842 #define HAVE_${cf_have_include}_H 1
28845 cat >>confdefs.h <<EOF
28846 #define HAVE_LIB${cf_have_include} 1
28849 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
28851 eval TEST_ROOT="\$${cf_map_lib_basename}_NAME"
28853 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TEST_ROOT}${DFT_DEP_SUFFIX} $TEST_DEPS"
28854 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TEST_ROOT}${DFT_DEP_SUFFIX} $TEST_DEP2"
28855 if test "$DFT_LWR_MODEL" = "libtool"; then
28856 TEST_ARGS="${TEST_DEPS}"
28857 TEST_ARG2="${TEST_DEP2}"
28859 TEST_ARGS="-l${TEST_ROOT}${USE_ARG_SUFFIX} $TEST_ARGS"
28860 TEST_ARG2="-l${TEST_ROOT}${USE_ARG_SUFFIX} $TEST_ARG2"
28862 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${USE_ARG_SUFFIX}"
28866 echo "$as_me:28866: result: $cf_cv_src_modules" >&5
28867 echo "${ECHO_T}$cf_cv_src_modules" >&6
28869 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
28870 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
28873 if test "x$cf_with_manpages" != xno ; then
28874 SRC_SUBDIRS="$SRC_SUBDIRS man"
28876 SRC_SUBDIRS="$SRC_SUBDIRS include"
28877 for cf_dir in $cf_cv_src_modules
28879 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
28881 if test "x$cf_with_tests" != "xno" ; then
28882 SRC_SUBDIRS="$SRC_SUBDIRS test"
28884 # always make this, to install the ncurses-config script
28885 SRC_SUBDIRS="$SRC_SUBDIRS misc"
28886 if test "$cf_with_cxx_binding" != no; then
28887 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${USE_ARG_SUFFIX}"
28888 SRC_SUBDIRS="$SRC_SUBDIRS c++"
28891 test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX"
28892 test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX"
28895 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f "$srcdir/Ada95/Makefile.in" ; then
28896 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
28897 ADA_SUBDIRS="gen src"
28898 if test "x$cf_with_tests" != "xno" ; then
28899 ADA_SUBDIRS="$ADA_SUBDIRS samples"
28904 for cf_dir in $SRC_SUBDIRS
28906 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
28909 if test -n "$ADA_SUBDIRS"; then
28910 for cf_dir in $ADA_SUBDIRS
28912 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
28917 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
28918 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/src/library.gpr:Ada95/src/library.gpr.in"
28919 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${USE_CFG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
28920 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${USE_CFG_SUFFIX}-config.1:man/MKada_config.in"
28924 for cf_item in $cf_list_models
28928 (libtool) cf_subdir='obj_lo' ;;
28929 (normal) cf_subdir='objects' ;;
28930 (debug) cf_subdir='obj_g' ;;
28931 (profile) cf_subdir='obj_p' ;;
28933 case "$cf_cv_system_name" in
28935 cf_subdir='objects' ;;
28937 cf_subdir='obj_s' ;;
28941 for cf_item2 in $DIRS_TO_MAKE
28943 test "$cf_item2" = "$cf_subdir" && break
28945 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
28947 for cf_dir in $DIRS_TO_MAKE
28949 test ! -d "$cf_dir" && mkdir "$cf_dir"
28952 # symbols that differ when compiling Ada95 by itself.
28953 NCURSES_SHLIB2=$SHELL' $(top_srcdir)/misc/shlib'
28955 # values to use as strings
28957 cat >>confdefs.h <<EOF
28958 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
28961 cat >>confdefs.h <<EOF
28962 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
28965 ### Define substitutions for header files to avoid name-pollution
28967 if test "x$cf_cv_have_tcgetattr" = xyes ; then
28973 if test "x$ac_cv_header_stdint_h" = xyes ; then
28979 if test "x$ac_cv_header_termio_h" = xyes ; then
28985 if test "x$ac_cv_header_termios_h" = xyes ; then
28991 ################################################################################
28992 test "x$use_database" = xyes && \
28993 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
28995 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
28996 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${USE_CFG_SUFFIX}-config.1:man/MKncu_config.in"
28998 if test "x$enable_pc_files" = xyes && test -z "$MAKE_PC_FILES" ; then
28999 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
29002 if test "x$cf_with_tests" != xno ; then
29008 ADAHTML_DIR=../../doc/html/ada
29010 # workaround for OS/2 (20151017)
29011 case "$cf_cv_system_name" in
29013 LIBTOOL_OPTS_CXX="-os2dllname ncurs++"
29020 # workaround for g++ versus Solaris (20131116)
29021 case "$cf_cv_system_name" in
29023 case "x$CPPFLAGS" in
29024 (*-D_XOPEN_SOURCE_EXTENDED*)
29025 test -n "$verbose" && echo " moving _XOPEN_SOURCE_EXTENDED to work around g++ problem" 1>&6
29027 echo "${as_me:-configure}:29027: testing moving _XOPEN_SOURCE_EXTENDED to work around g++ problem ..." 1>&5
29029 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
29030 CPPFLAGS=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/-D_XOPEN_SOURCE_EXTENDED//'`
29036 # Help to automatically enable the extended curses features when using either
29037 # the *-config or the ".pc" files by adding defines.
29038 echo "$as_me:29038: checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script" >&5
29039 echo $ECHO_N "checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script... $ECHO_C" >&6
29041 for cf_loop1 in $CPPFLAGS_after_XOPEN
29044 for cf_loop2 in $CPPFLAGS_before_XOPEN
29046 if test "x$cf_loop1" = "x$cf_loop2"
29052 test "$cf_found" = no && PKG_CFLAGS="$PKG_CFLAGS $cf_loop1"
29054 echo "$as_me:29054: result: $PKG_CFLAGS" >&5
29055 echo "${ECHO_T}$PKG_CFLAGS" >&6
29057 # AC_CHECK_SIZEOF demands a literal parameter, no variables. So we do this.
29058 case "x$NCURSES_OSPEED" in
29067 cat >>confdefs.h <<EOF
29068 #define NCURSES_OSPEED_COMPAT $cf_compatible
29071 case "x$cf_cv_typeof_chtype" in
29072 (xshort|xint|xlong)
29073 cf_cv_typeof_chtype="unsigned $cf_cv_typeof_chtype"
29077 case "x$cf_cv_typeof_mmask_t" in
29078 (xshort|xint|xlong)
29079 cf_cv_typeof_mmask_t="unsigned $cf_cv_typeof_mmask_t"
29083 # substitute into misc/Makefile to suppress
29084 # (un)install.data from the
29085 # (un)install rules.
29086 if test "x$cf_with_db_install" = "xno"; then
29088 MISC_UNINSTALL_DATA=
29090 MISC_INSTALL_DATA=install.data
29091 MISC_UNINSTALL_DATA=uninstall.data
29094 if test "x$cf_with_db_install" = "xno" || test "x$TERMINFO_SRC" = "xno"; then
29097 MAKE_DATABASE="$MAKE_TERMINFO"
29100 if test -n "$PACKAGE"
29102 PACKAGE="${PACKAGE}${DFT_ARG_SUFFIX}"
29104 echo "package: $PACKAGE"
29110 if test -n "$RESULTING_SYMS"
29112 cf_filter_syms=$cf_dft_filter_syms
29113 test -n "$verbose" && echo " will map symbols to ABI=$cf_cv_abi_default" 1>&6
29115 echo "${as_me:-configure}:29115: testing will map symbols to ABI=$cf_cv_abi_default ..." 1>&5
29119 if test "x$WILDCARD_SYMS" = xno
29124 test "x$cf_with_trace" = xyes && NCURSES_INLINE=
29126 UNALTERED_SYMS=`echo "$RESULTING_SYMS" | sed -e 's/\\$/\\\\$/g'`
29127 if test "$cf_filter_syms" = yes
29129 RESULTING_SYMS=resulting.map
29132 if test "x$cross_compiling" = xyes ; then
29133 ADAGEN_LDFLAGS='$(CROSS_LDFLAGS)'
29136 ADAGEN_LDFLAGS='$(NATIVE_LDFLAGS)'
29140 # This is used for the *-config script and *.pc data files.
29142 echo "$as_me:29142: checking for linker search path" >&5
29143 echo $ECHO_N "checking for linker search path... $ECHO_C" >&6
29144 if test "${cf_cv_ld_searchpath+set}" = set; then
29145 echo $ECHO_N "(cached) $ECHO_C" >&6
29148 if test "$cross_compiling" != yes ; then
29150 # GNU binutils' ld does not involve permissions which may stop ldconfig.
29151 cf_pathlist=`${LD:-ld} --verbose 2>/dev/null | grep SEARCH_DIR | sed -e 's,SEARCH_DIR[("=][("=]*,,g' -e 's/"[)];//gp' | sort -u`
29153 # The -NX options tell newer versions of Linux ldconfig to not attempt to
29154 # update the cache, which makes it run faster.
29155 test -z "$cf_pathlist" && \
29156 cf_pathlist=`(ldconfig -NX -v) 2>/dev/null | sed -e '/^[ ]/d' -e 's/:$//' | sort -u`
29158 test -z "$cf_pathlist" &&
29159 cf_pathlist=`(ldconfig -v) 2>/dev/null | sed -n -e '/^[ ]/d' -e 's/:$//p' | sort -u`
29161 # This works with OpenBSD 6.5, which lists only filenames
29162 test -z "$cf_pathlist" &&
29163 cf_pathlist=`(ldconfig -v) 2>/dev/null | sed -n -e 's,^Adding \(.*\)/.*$,\1,p' | sort -u`
29165 if test -z "$cf_pathlist"
29167 # dyld default path with MacOS
29168 if test -f /usr/bin/otool && test "x`uname -s`" = xDarwin
29170 # do this to bypass check
29171 cf_cv_ld_searchpath='$HOME/lib'
29172 cf_pathlist="/usr/local/lib /lib /usr/lib"
29176 if test -z "$cf_pathlist"
29178 # Solaris is "SunOS"
29179 if test -f /usr/bin/isainfo && test "x`uname -s`" = xSunOS
29181 case x`(isainfo -b)` in
29183 cf_pathlist="$cf_pathlist /lib/64 /usr/lib/64"
29186 test -d /usr/ccs/lib && cf_pathlist="$cf_pathlist /usr/ccs/lib"
29187 cf_pathlist="$cf_pathlist /lib /usr/lib"
29190 { echo "$as_me:29190: WARNING: problem with Solaris architecture" >&5
29191 echo "$as_me: WARNING: problem with Solaris architecture" >&2;}
29197 if test -z "$cf_pathlist"
29200 if test x"`uname -s`" = xHP-UX
29202 case x`getconf LONG_BIT` in
29204 cf_pathlist="/usr/lib/hpux64"
29207 cf_pathlist="/usr/lib/hpux32"
29215 # If nothing else, assume it is conventional
29216 test -z "$cf_pathlist" && cf_pathlist="/usr/lib /lib"
29218 # Finally, check that this is only directories
29219 for cf_path in $0 $cf_pathlist
29221 if test -d "$cf_path"; then
29222 test -n "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath="${cf_cv_ld_searchpath} "
29223 cf_cv_ld_searchpath="${cf_cv_ld_searchpath}${cf_path}"
29227 # Ensure that it is nonempty
29228 test -z "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath=/usr/lib
29231 echo "$as_me:29231: result: $cf_cv_ld_searchpath" >&5
29232 echo "${ECHO_T}$cf_cv_ld_searchpath" >&6
29234 LD_SEARCHPATH=`echo "$cf_cv_ld_searchpath"|sed -e 's/ /|/g'`
29236 ac_config_files="$ac_config_files include/MKterm.h.awk include/curses.head:include/curses.h.in include/ncurses_dll.h include/termcap.h include/unctrl.h man/man_db.renames $SUB_MAKEFILES Makefile"
29237 ac_config_commands="$ac_config_commands default"
29238 cat >confcache <<\_ACEOF
29239 # This file is a shell script that caches the results of configure
29240 # tests run on this system so they can be shared between configure
29241 # scripts and configure runs, see configure's option --config-cache.
29242 # It is not useful on other systems. If it contains results you don't
29243 # want to keep, you may remove or edit it.
29245 # config.status only pays attention to the cache file if you give it
29246 # the --recheck option to rerun configure.
29248 # `ac_cv_env_foo' variables (set or unset) will be overriden when
29249 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29250 # following values.
29254 # The following way of writing the cache mishandles newlines in values,
29255 # but we know of no workaround that is simple, portable, and efficient.
29256 # So, don't put newlines in cache variables' values.
29257 # Ultrix sh set writes to stderr and can't be redirected directly,
29258 # and sets the high bit in the cache file unless we assign to the vars.
29261 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29263 # `set' does not quote correctly, so add quotes (double-quote
29264 # substitution turns \\\\ into \\, and sed turns \\ into \).
29267 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29270 # `set' quotes correctly as required by POSIX, so do not add quotes.
29272 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29279 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29281 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29283 if cmp -s $cache_file confcache; then :; else
29284 if test -w $cache_file; then
29285 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29286 cat confcache >$cache_file
29288 echo "not updating unwritable cache $cache_file"
29293 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29294 # Let make expand exec_prefix.
29295 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29297 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29298 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29299 # trailing colons and then remove the whole line if VPATH becomes empty
29300 # (actually we leave an empty line to preserve line numbers).
29301 if test "x$srcdir" = x.; then
29302 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29303 s/:*\$(srcdir):*/:/;
29304 s/:*\${srcdir}:*/:/;
29306 s/^\([^=]*=[ ]*\):*/\1/;
29312 DEFS=-DHAVE_CONFIG_H
29314 : "${CONFIG_STATUS=./config.status}"
29315 ac_clean_files_save=$ac_clean_files
29316 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29317 { echo "$as_me:29317: creating $CONFIG_STATUS" >&5
29318 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29319 cat >"$CONFIG_STATUS" <<_ACEOF
29321 # Generated automatically by configure.
29322 # Run this file to recreate the current configuration.
29323 # Compiler output produced by configure, useful for debugging
29324 # configure, is in config.log if it exists.
29326 me=\`echo "\$0" | sed -e 's,.*\\/,,'\`
29329 SHELL=\${CONFIG_SHELL-$SHELL}
29330 ac_cs_invocation="\$0 \$@"
29332 CLICOLOR_FORCE= GREP_OPTIONS=
29333 unset CLICOLOR_FORCE GREP_OPTIONS
29336 cat >>"$CONFIG_STATUS" <<\_ACEOF
29337 # Be Bourne compatible
29338 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29341 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29345 # Name of the executable.
29346 as_me=`echo "$0" |sed 's,.*[\\/],,'`
29348 if expr a : '\(a\)' >/dev/null 2>&1; then
29354 rm -f conf$$ conf$$.exe conf$$.file
29356 if ln -s conf$$.file conf$$ 2>/dev/null; then
29357 # We could just check for DJGPP; but this test a) works b) is more generic
29358 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29359 if test -f conf$$.exe; then
29360 # Don't use ln at all; we don't have any links
29365 elif ln conf$$.file conf$$ 2>/dev/null; then
29370 rm -f conf$$ conf$$.exe conf$$.file
29372 as_executable_p="test -f"
29374 # Support unset when possible.
29375 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
29382 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
29383 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
29384 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
29385 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
29386 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
29387 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
29388 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
29389 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
29392 # We need space, tab and new line, in precisely that order.
29398 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
29404 # Files that config.status was made for.
29405 if test -n "$ac_config_files"; then
29406 echo "config_files=\"$ac_config_files\"" >>"$CONFIG_STATUS"
29409 if test -n "$ac_config_headers"; then
29410 echo "config_headers=\"$ac_config_headers\"" >>"$CONFIG_STATUS"
29413 if test -n "$ac_config_links"; then
29414 echo "config_links=\"$ac_config_links\"" >>"$CONFIG_STATUS"
29417 if test -n "$ac_config_commands"; then
29418 echo "config_commands=\"$ac_config_commands\"" >>"$CONFIG_STATUS"
29421 cat >>"$CONFIG_STATUS" <<\EOF
29424 \`$as_me' instantiates files from templates according to the
29425 current configuration.
29427 Usage: $0 [OPTIONS] [FILE]...
29429 -h, --help print this help, then exit
29430 -V, --version print version number, then exit
29431 -d, --debug don't remove temporary files
29432 --recheck update $as_me by reconfiguring in the same conditions
29433 --file=FILE[:TEMPLATE]
29434 instantiate the configuration file FILE
29435 --header=FILE[:TEMPLATE]
29436 instantiate the configuration header FILE
29438 Configuration files:
29441 Configuration headers:
29444 Configuration commands:
29447 Report bugs to <dickey@invisible-island.net>."
29450 cat >>"$CONFIG_STATUS" <<EOF
29453 configured by $0, generated by GNU Autoconf 2.52.20230114,
29454 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
29456 Copyright 2003-2022,2023 Thomas E. Dickey
29457 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
29458 Free Software Foundation, Inc.
29459 This config.status script is free software; the Free Software Foundation
29460 gives unlimited permission to copy, distribute and modify it."
29465 cat >>"$CONFIG_STATUS" <<\EOF
29466 # If no file are specified by the user, then we need to provide default
29467 # value. By we need to know if files were specified by the user.
29473 ac_option=`expr "x$1" : 'x\([^=]*\)='`
29474 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
29476 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
29480 *) # This is not an option, so the user has probably given explicit
29482 ac_need_defaults=false;;
29486 # Handling of the options.
29488 cat >>"$CONFIG_STATUS" <<EOF
29489 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29490 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
29491 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
29493 cat >>"$CONFIG_STATUS" <<\EOF
29494 --version | --vers* | -V )
29495 echo "$ac_cs_version"; exit 0 ;;
29497 # Conflict between --help and --header
29498 { { echo "$as_me:29498: error: ambiguous option: $1
29499 Try \`$0 --help' for more information." >&5
29500 echo "$as_me: error: ambiguous option: $1
29501 Try \`$0 --help' for more information." >&2;}
29502 { (exit 1); exit 1; }; };;
29503 --help | --hel | -h )
29504 echo "$ac_cs_usage"; exit 0 ;;
29505 --debug | --d* | -d )
29507 --file | --fil | --fi | --f )
29509 CONFIG_FILES="$CONFIG_FILES $1"
29510 ac_need_defaults=false;;
29511 --header | --heade | --head | --hea )
29513 CONFIG_HEADERS="$CONFIG_HEADERS $1"
29514 ac_need_defaults=false;;
29516 # This is an error.
29517 -*) { { echo "$as_me:29517: error: unrecognized option: $1
29518 Try \`$0 --help' for more information." >&5
29519 echo "$as_me: error: unrecognized option: $1
29520 Try \`$0 --help' for more information." >&2;}
29521 { (exit 1); exit 1; }; } ;;
29523 *) ac_config_targets="$ac_config_targets $1" ;;
29532 ## ----------------------- ##
29533 ## Running config.status. ##
29534 ## ----------------------- ##
29536 This file was extended by $as_me 2.52.20230114, executed with
29537 CONFIG_FILES = $CONFIG_FILES
29538 CONFIG_HEADERS = $CONFIG_HEADERS
29539 CONFIG_LINKS = $CONFIG_LINKS
29540 CONFIG_COMMANDS = $CONFIG_COMMANDS
29541 > "$ac_cs_invocation"
29542 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29547 cat >>"$CONFIG_STATUS" <<EOF
29549 # INIT-COMMANDS section.
29552 ### Special initialization commands, used to pass information from the
29553 ### configuration-run into config.status
29555 ALTERNATE_SYMS="$ALTERNATE_SYMS"
29557 CXX_NAME="$CXX_NAME"
29558 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
29559 DFT_LWR_MODEL="$DFT_LWR_MODEL"
29561 EXTRA_SUFFIX="$EXTRA_SUFFIX"
29562 FORM_NAME="$FORM_NAME"
29563 LDCONFIG="$LDCONFIG"
29564 LIBTOOL_VERSION="$LIBTOOL_VERSION"
29565 LIB_NAME="$LIB_NAME"
29566 LIB_PREFIX="$LIB_PREFIX"
29567 LIB_SUBSETS="$LIB_SUBSETS"
29568 LIB_SUFFIX="$LIB_SUFFIX"
29569 LIB_TRACING="$LIB_TRACING"
29571 MAKE_TERMINFO="$MAKE_TERMINFO"
29572 MANPAGE_RENAMES="$MANPAGE_RENAMES"
29573 MENU_NAME="$MENU_NAME"
29574 NCURSES_MAJOR="$NCURSES_MAJOR"
29575 NCURSES_MINOR="$NCURSES_MINOR"
29576 NCURSES_OSPEED="$NCURSES_OSPEED"
29577 NCURSES_PATCH="$NCURSES_PATCH"
29578 PANEL_NAME="$PANEL_NAME"
29579 SRC_SUBDIRS="$SRC_SUBDIRS"
29580 TERMINFO="$TERMINFO"
29581 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
29582 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
29583 TICS_NAME="$TICS_NAME"
29584 TICS_SUFFIX="$TICS_SUFFIX"
29585 TIC_PATH="$TIC_PATH"
29586 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
29587 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
29588 TINFO_NAME="$TINFO_NAME"
29589 TINFO_SUFFIX="$TINFO_SUFFIX"
29590 UNALTERED_SYMS="$UNALTERED_SYMS"
29591 USE_ARG_SUFFIX="$USE_ARG_SUFFIX"
29592 USE_CFG_SUFFIX="$USE_CFG_SUFFIX"
29593 USE_LIB_SUFFIX="$USE_LIB_SUFFIX"
29594 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
29595 WILDCARD_SYMS="$WILDCARD_SYMS"
29596 WITH_CURSES_H="$with_curses_h"
29597 WITH_ECHO="${enable_echo:=yes}"
29598 WITH_OVERWRITE="$with_overwrite"
29599 cf_LIST_MODELS="$cf_list_models"
29600 cf_cv_VERSION_GNATMAKE=$cf_cv_VERSION_GNATMAKE
29601 cf_cv_VERSION_GPRBUILD=$cf_cv_VERSION_GPRBUILD
29602 cf_cv_abi_default="$cf_cv_abi_default"
29603 cf_cv_abi_version="$cf_cv_abi_version"
29604 cf_cv_do_relink="$cf_cv_do_relink"
29605 cf_cv_do_reranlib="$cf_cv_do_reranlib"
29606 cf_cv_do_symlinks="$cf_cv_do_symlinks"
29607 cf_cv_enable_lp64="$cf_cv_enable_lp64"
29608 cf_cv_enable_opaque="$cf_cv_enable_opaque"
29609 cf_cv_make_PHONY="$cf_cv_make_PHONY"
29610 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
29611 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
29612 cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
29613 cf_cv_rel_version="$cf_cv_rel_version"
29614 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
29615 cf_cv_shared_soname='$cf_cv_shared_soname'
29616 cf_cv_shlib_version="$cf_cv_shlib_version"
29617 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
29618 cf_cv_system_name="$cf_cv_system_name"
29619 cf_cv_term_driver="$with_term_driver"
29620 cf_with_ada="$cf_with_ada"
29621 cf_with_cxx_binding="$cf_with_cxx_binding"
29622 cf_with_db_install="$cf_with_db_install"
29623 cf_with_manpages="$cf_with_manpages"
29624 cf_with_tests="$cf_with_tests"
29628 with_shared_cxx="$with_shared_cxx"
29632 cat >>"$CONFIG_STATUS" <<\EOF
29633 for ac_config_target in $ac_config_targets
29635 case "$ac_config_target" in
29636 # Handling of arguments.
29637 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
29638 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
29639 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
29640 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
29641 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
29642 "man/man_db.renames" ) CONFIG_FILES="$CONFIG_FILES man/man_db.renames" ;;
29643 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
29644 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29645 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29646 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
29647 *) { { echo "$as_me:29647: error: invalid argument: $ac_config_target" >&5
29648 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29649 { (exit 1); exit 1; }; };;
29653 # If the user did not use the arguments to specify the items to instantiate,
29654 # then the envvar interface is used. Set only those that are not.
29655 # We use the long form for the default assignment because of an extremely
29656 # bizarre bug on SunOS 4.1.3.
29657 if "$ac_need_defaults"; then
29658 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29659 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29660 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29663 # Create a temporary directory, and hook for its removal unless debugging.
29666 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29667 trap '{ (exit 1); exit 1; }' 1 2 13 15
29670 # Create a (secure) tmp directory for tmp files.
29673 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
29674 test -n "$tmp" && test -d "$tmp"
29677 tmp=$TMPDIR/cs$$-$RANDOM
29678 (umask 077 && mkdir "$tmp")
29681 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
29682 { (exit 1); exit 1; }
29687 cat >>"$CONFIG_STATUS" <<EOF
29690 # CONFIG_FILES section.
29693 # No need to generate the scripts if there are no CONFIG_FILES.
29694 # This happens for instance when ./config.status config.h
29695 if test -n "\$CONFIG_FILES"; then
29696 # Protect against being on the right side of a sed subst in config.status.
29697 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29698 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >"\$tmp"/subs.sed <<\\CEOF
29699 s,@SHELL@,$SHELL,;t t
29700 s,@exec_prefix@,$exec_prefix,;t t
29701 s,@prefix@,$prefix,;t t
29702 s,@program_transform_name@,$program_transform_name,;t t
29703 s,@bindir@,$bindir,;t t
29704 s,@sbindir@,$sbindir,;t t
29705 s,@libexecdir@,$libexecdir,;t t
29706 s,@datarootdir@,$datarootdir,;t t
29707 s,@datadir@,$datadir,;t t
29708 s,@sysconfdir@,$sysconfdir,;t t
29709 s,@sharedstatedir@,$sharedstatedir,;t t
29710 s,@localstatedir@,$localstatedir,;t t
29711 s,@runstatedir@,$runstatedir,;t t
29712 s,@libdir@,$libdir,;t t
29713 s,@includedir@,$includedir,;t t
29714 s,@oldincludedir@,$oldincludedir,;t t
29715 s,@infodir@,$infodir,;t t
29716 s,@mandir@,$mandir,;t t
29717 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29718 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29719 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29720 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29721 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29722 s,@build_alias@,$build_alias,;t t
29723 s,@host_alias@,$host_alias,;t t
29724 s,@target_alias@,$target_alias,;t t
29725 s,@ECHO_C@,$ECHO_C,;t t
29726 s,@ECHO_N@,$ECHO_N,;t t
29727 s,@ECHO_T@,$ECHO_T,;t t
29728 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29729 s,@DEFS@,$DEFS,;t t
29730 s,@LIBS@,$LIBS,;t t
29731 s,@top_builddir@,$top_builddir,;t t
29732 s,@GREP@,$GREP,;t t
29733 s,@EGREP@,$EGREP,;t t
29734 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
29735 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
29736 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
29737 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
29738 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
29739 s,@cf_cv_abi_default@,$cf_cv_abi_default,;t t
29740 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
29741 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
29742 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
29743 s,@VERSION@,$VERSION,;t t
29744 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
29745 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
29746 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
29747 s,@PACKAGE@,$PACKAGE,;t t
29748 s,@build@,$build,;t t
29749 s,@build_cpu@,$build_cpu,;t t
29750 s,@build_vendor@,$build_vendor,;t t
29751 s,@build_os@,$build_os,;t t
29752 s,@host@,$host,;t t
29753 s,@host_cpu@,$host_cpu,;t t
29754 s,@host_vendor@,$host_vendor,;t t
29755 s,@host_os@,$host_os,;t t
29756 s,@target@,$target,;t t
29757 s,@target_cpu@,$target_cpu,;t t
29758 s,@target_vendor@,$target_vendor,;t t
29759 s,@target_os@,$target_os,;t t
29760 s,@FGREP@,$FGREP,;t t
29762 s,@CFLAGS@,$CFLAGS,;t t
29763 s,@LDFLAGS@,$LDFLAGS,;t t
29764 s,@CPPFLAGS@,$CPPFLAGS,;t t
29765 s,@ac_ct_CC@,$ac_ct_CC,;t t
29766 s,@EXEEXT@,$EXEEXT,;t t
29767 s,@OBJEXT@,$OBJEXT,;t t
29768 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
29770 s,@LDCONFIG@,$LDCONFIG,;t t
29772 s,@CXXFLAGS@,$CXXFLAGS,;t t
29773 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
29775 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29776 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29777 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29778 s,@LINT@,$LINT,;t t
29779 s,@LINT_OPTS@,$LINT_OPTS,;t t
29780 s,@LINT_LIBS@,$LINT_LIBS,;t t
29781 s,@LN_S@,$LN_S,;t t
29782 s,@cf_config_suffix@,$cf_config_suffix,;t t
29783 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
29784 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
29785 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
29786 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
29787 s,@PC_MODULE_SUFFIX@,$PC_MODULE_SUFFIX,;t t
29788 s,@SET_MAKE@,$SET_MAKE,;t t
29789 s,@MAKE_NO_PHONY@,$MAKE_NO_PHONY,;t t
29790 s,@MAKE_PHONY@,$MAKE_PHONY,;t t
29791 s,@CTAGS@,$CTAGS,;t t
29792 s,@ETAGS@,$ETAGS,;t t
29793 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
29794 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
29795 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
29796 s,@RANLIB@,$RANLIB,;t t
29797 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29799 s,@ac_ct_LD@,$ac_ct_LD,;t t
29801 s,@ac_ct_AR@,$ac_ct_AR,;t t
29803 s,@ac_ct_NM@,$ac_ct_NM,;t t
29804 s,@ARFLAGS@,$ARFLAGS,;t t
29805 s,@DESTDIR@,$DESTDIR,;t t
29806 s,@BUILD_CC@,$BUILD_CC,;t t
29807 s,@BUILD_CPP@,$BUILD_CPP,;t t
29808 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
29809 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
29810 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
29811 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
29812 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
29813 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
29814 s,@cf_list_models@,$cf_list_models,;t t
29815 s,@ABI_VERSION@,$ABI_VERSION,;t t
29816 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
29817 s,@LIBTOOL@,$LIBTOOL,;t t
29818 s,@ac_ct_LIBTOOL@,$ac_ct_LIBTOOL,;t t
29819 s,@LT_UNDEF@,$LT_UNDEF,;t t
29820 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
29821 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
29822 s,@LIB_CREATE@,$LIB_CREATE,;t t
29823 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
29824 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
29825 s,@LIB_PREP@,$LIB_PREP,;t t
29826 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
29827 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
29828 s,@LIB_LINK@,$LIB_LINK,;t t
29829 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
29830 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
29831 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
29832 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
29833 s,@TICS_NAME@,$TICS_NAME,;t t
29834 s,@TINFO_NAME@,$TINFO_NAME,;t t
29835 s,@LIB_NAME@,$LIB_NAME,;t t
29836 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
29837 s,@CC_G_OPT@,$CC_G_OPT,;t t
29838 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
29839 s,@LD_MODEL@,$LD_MODEL,;t t
29840 s,@shlibdir@,$shlibdir,;t t
29841 s,@MAKE_DLLS@,$MAKE_DLLS,;t t
29842 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
29843 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
29844 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
29845 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
29846 s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t
29847 s,@LINK_PROGS@,$LINK_PROGS,;t t
29848 s,@LINK_TESTS@,$LINK_TESTS,;t t
29849 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
29850 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
29851 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
29852 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
29853 s,@RPATH_LIST@,$RPATH_LIST,;t t
29854 s,@EXPORT_SYMS@,$EXPORT_SYMS,;t t
29855 s,@RESULTING_SYMS@,$RESULTING_SYMS,;t t
29856 s,@VERSIONED_SYMS@,$VERSIONED_SYMS,;t t
29857 s,@WILDCARD_SYMS@,$WILDCARD_SYMS,;t t
29858 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
29859 s,@EXTRA_PKG_LDFLAGS@,$EXTRA_PKG_LDFLAGS,;t t
29860 s,@EXTRA_SUFFIX@,$EXTRA_SUFFIX,;t t
29861 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
29862 s,@NCURSES_USE_DATABASE@,$NCURSES_USE_DATABASE,;t t
29864 s,@ac_ct_TIC@,$ac_ct_TIC,;t t
29865 s,@INFOCMP@,$INFOCMP,;t t
29866 s,@ac_ct_INFOCMP@,$ac_ct_INFOCMP,;t t
29867 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
29868 s,@USE_FALLBACKS@,$USE_FALLBACKS,;t t
29869 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
29870 s,@XTERM_KBS@,$XTERM_KBS,;t t
29871 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
29872 s,@TERMINFO@,$TERMINFO,;t t
29873 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
29874 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
29875 s,@TERMPATH@,$TERMPATH,;t t
29876 s,@NCURSES_USE_TERMCAP@,$NCURSES_USE_TERMCAP,;t t
29877 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
29878 s,@NCURSES_WCWIDTH_GRAPHICS@,$NCURSES_WCWIDTH_GRAPHICS,;t t
29879 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
29880 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
29881 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
29882 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
29883 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
29884 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
29885 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
29886 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
29887 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
29888 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
29889 s,@NCURSES_WATTR_MACROS@,$NCURSES_WATTR_MACROS,;t t
29890 s,@RGB_PATH@,$RGB_PATH,;t t
29891 s,@no_x11_rgb@,$no_x11_rgb,;t t
29892 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
29893 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
29894 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
29895 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
29896 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
29897 s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t
29898 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
29899 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
29900 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
29901 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
29902 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
29903 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
29904 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
29905 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
29906 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
29907 s,@PTHREAD@,$PTHREAD,;t t
29908 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
29909 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
29910 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
29911 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
29912 s,@NCURSES_OPAQUE_FORM@,$NCURSES_OPAQUE_FORM,;t t
29913 s,@NCURSES_OPAQUE_MENU@,$NCURSES_OPAQUE_MENU,;t t
29914 s,@NCURSES_OPAQUE_PANEL@,$NCURSES_OPAQUE_PANEL,;t t
29915 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
29916 s,@NCURSES_IMPEXP@,$NCURSES_IMPEXP,;t t
29917 s,@NCURSES_CXX_IMPEXP@,$NCURSES_CXX_IMPEXP,;t t
29918 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
29919 s,@NCURSES_WGETCH_EVENTS@,$NCURSES_WGETCH_EVENTS,;t t
29920 s,@EXP_WIN32_DRIVER@,$EXP_WIN32_DRIVER,;t t
29921 s,@INTERNALS_HDR@,$INTERNALS_HDR,;t t
29922 s,@ECHO_LT@,$ECHO_LT,;t t
29923 s,@ECHO_LD@,$ECHO_LD,;t t
29924 s,@RULE_CC@,$RULE_CC,;t t
29925 s,@SHOW_CC@,$SHOW_CC,;t t
29926 s,@ECHO_CC@,$ECHO_CC,;t t
29927 s,@ECHO_LINK@,$ECHO_LINK,;t t
29928 s,@INSTALL_OPT_S@,$INSTALL_OPT_S,;t t
29929 s,@INSTALL_OPT_O@,$INSTALL_OPT_O,;t t
29930 s,@INSTALL_OPT_P@,$INSTALL_OPT_P,;t t
29931 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
29932 s,@HAVE_STDNORETURN_H@,$HAVE_STDNORETURN_H,;t t
29933 s,@STDC_NORETURN@,$STDC_NORETURN,;t t
29934 s,@ADAFLAGS@,$ADAFLAGS,;t t
29935 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
29936 s,@ADA_TRACE@,$ADA_TRACE,;t t
29937 s,@MATH_LIB@,$MATH_LIB,;t t
29938 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
29939 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
29940 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
29941 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
29942 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
29943 s,@TEST_LIBS@,$TEST_LIBS,;t t
29944 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
29945 s,@CXXCPP@,$CXXCPP,;t t
29946 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
29947 s,@CXX_AR@,$CXX_AR,;t t
29948 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
29949 s,@CXXLIBS@,$CXXLIBS,;t t
29950 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
29951 s,@cf_TEMP_gnat@,$cf_TEMP_gnat,;t t
29952 s,@M4_exists@,$M4_exists,;t t
29953 s,@cf_ada_make@,$cf_ada_make,;t t
29954 s,@cf_ada_config@,$cf_ada_config,;t t
29955 s,@cf_ada_config_Ada@,$cf_ada_config_Ada,;t t
29956 s,@cf_ada_config_C@,$cf_ada_config_C,;t t
29957 s,@GNATPREP_OPTS@,$GNATPREP_OPTS,;t t
29958 s,@cf_compile_generics@,$cf_compile_generics,;t t
29959 s,@cf_generic_objects@,$cf_generic_objects,;t t
29960 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
29961 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
29962 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
29963 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
29964 s,@USE_GNAT_MAKE_GPR@,$USE_GNAT_MAKE_GPR,;t t
29965 s,@USE_GNAT_GPRBUILD@,$USE_GNAT_GPRBUILD,;t t
29966 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
29967 s,@cf_ada_package@,$cf_ada_package,;t t
29968 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
29969 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
29970 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
29971 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
29972 s,@ADA_LIBNAME@,$ADA_LIBNAME,;t t
29973 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
29974 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
29975 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
29976 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
29977 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
29978 s,@USE_ARG_SUFFIX@,$USE_ARG_SUFFIX,;t t
29979 s,@USE_CFG_SUFFIX@,$USE_CFG_SUFFIX,;t t
29980 s,@USE_LIB_SUFFIX@,$USE_LIB_SUFFIX,;t t
29981 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
29982 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
29983 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
29984 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
29985 s,@TICS_LIBS@,$TICS_LIBS,;t t
29986 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
29987 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
29988 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
29989 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
29990 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
29991 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
29992 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
29993 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
29994 s,@includesubdir@,$includesubdir,;t t
29995 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
29996 s,@TICS_LIST@,$TICS_LIST,;t t
29997 s,@TINFO_LIST@,$TINFO_LIST,;t t
29998 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
29999 s,@FORM_NAME@,$FORM_NAME,;t t
30000 s,@MENU_NAME@,$MENU_NAME,;t t
30001 s,@PANEL_NAME@,$PANEL_NAME,;t t
30002 s,@CXX_NAME@,$CXX_NAME,;t t
30003 s,@TEST_ARGS@,$TEST_ARGS,;t t
30004 s,@TEST_DEPS@,$TEST_DEPS,;t t
30005 s,@TEST_ARG2@,$TEST_ARG2,;t t
30006 s,@TEST_DEP2@,$TEST_DEP2,;t t
30007 s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t
30008 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
30009 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
30010 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
30011 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
30012 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
30013 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
30014 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
30015 s,@cross_compiling@,$cross_compiling,;t t
30016 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
30017 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
30018 s,@LIBTOOL_OPTS_CXX@,$LIBTOOL_OPTS_CXX,;t t
30019 s,@PKG_CFLAGS@,$PKG_CFLAGS,;t t
30020 s,@MISC_INSTALL_DATA@,$MISC_INSTALL_DATA,;t t
30021 s,@MISC_UNINSTALL_DATA@,$MISC_UNINSTALL_DATA,;t t
30022 s,@MAKE_DATABASE@,$MAKE_DATABASE,;t t
30023 s,@UNALTERED_SYMS@,$UNALTERED_SYMS,;t t
30024 s,@ADAGEN_LDFLAGS@,$ADAGEN_LDFLAGS,;t t
30025 s,@CHECK_BUILD@,$CHECK_BUILD,;t t
30026 s,@PRIVATE_LIBS@,$PRIVATE_LIBS,;t t
30027 s,@LD_SEARCHPATH@,$LD_SEARCHPATH,;t t
30032 cat >>"$CONFIG_STATUS" <<\EOF
30033 # Split the substitutions into bite-sized pieces for seds with
30034 # small command number limits, like on Digital OSF/1 and HP-UX.
30035 ac_max_sed_lines=48
30036 ac_sed_frag=1 # Number of current file.
30037 ac_beg=1 # First line for current file.
30038 ac_end=$ac_max_sed_lines # Line after last line for current file.
30041 while "$ac_more_lines"; do
30042 if test "$ac_beg" -gt 1; then
30043 sed "1,${ac_beg}d; ${ac_end}q" "$tmp"/subs.sed >"$tmp"/subs.frag
30045 sed "${ac_end}q" "$tmp"/subs.sed >"$tmp"/subs.frag
30047 if test ! -s "$tmp"/subs.frag; then
30048 ac_more_lines=false
30050 # The purpose of the label and of the branching condition is to
30051 # speed up the sed processing (if there are no `@' at all, there
30052 # is no need to browse any of the substitutions).
30053 # These are the two extra sed commands mentioned above.
30055 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat "$tmp"/subs.frag) >"$tmp"/subs-$ac_sed_frag.sed
30056 # It is possible to make a multiline substitution using escaped newlines.
30057 # Ensure that we do not split the substitution between script fragments.
30059 ac_END=`expr "$ac_end" + "$ac_max_sed_lines"`
30060 sed "1,${ac_BEG}d; ${ac_END}p; q" "$tmp"/subs.sed >"$tmp"/subs.next
30061 if test -s "$tmp"/subs.next; then
30062 grep '^s,@[^@,][^@,]*@,.*\\$' "$tmp"/subs.next >"$tmp"/subs.edit
30063 if test ! -s "$tmp"/subs.edit; then
30064 grep "^s,@[^@,][^@,]*@,.*,;t t$" "$tmp"/subs.next >"$tmp"/subs.edit
30065 if test ! -s "$tmp"/subs.edit; then
30066 if test "$ac_beg" -gt 1; then
30067 ac_end=`expr "$ac_end" - 1`
30074 if test -z "$ac_sed_cmds"; then
30075 ac_sed_cmds="sed -f \"$tmp\"/subs-$ac_sed_frag.sed"
30077 ac_sed_cmds="$ac_sed_cmds | sed -f \"$tmp\"/subs-$ac_sed_frag.sed"
30079 ac_sed_frag=`expr "$ac_sed_frag" + 1`
30081 ac_end=`expr "$ac_end" + "$ac_max_sed_lines"`
30084 if test -z "$ac_sed_cmds"; then
30087 fi # test -n "$CONFIG_FILES"
30090 cat >>"$CONFIG_STATUS" <<\EOF
30091 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30092 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30094 - | *:- | *:-:* ) # input from stdin
30096 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30097 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30098 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30099 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30100 * ) ac_file_in=$ac_file.in ;;
30103 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30104 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30105 X"$ac_file" : 'X\(//\)[^/]' \| \
30106 X"$ac_file" : 'X\(//\)$' \| \
30107 X"$ac_file" : 'X\(/\)' \| \
30108 . : '\(.\)' 2>/dev/null ||
30110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30111 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30112 /^X\(\/\/\)$/{ s//\1/; q; }
30113 /^X\(\/\).*/{ s//\1/; q; }
30115 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
30116 { case "$ac_dir" in
30117 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
30121 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
30122 case $as_mkdir_dir in
30123 # Skip DOS drivespec
30124 ?:) as_incr_dir=$as_mkdir_dir ;;
30126 as_incr_dir=$as_incr_dir/$as_mkdir_dir
30127 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
30132 ac_dir_suffix="/`echo "$ac_dir"|sed 's,^\./,,'`"
30133 # A "../" for each directory in $ac_dir_suffix.
30134 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
30136 ac_dir_suffix= ac_dots=
30141 if test -z "$ac_dots"; then
30144 ac_top_srcdir=`echo "$ac_dots" | sed 's,/$,,'`
30146 [\\/]* | ?:[\\/]* )
30147 ac_srcdir="$srcdir$ac_dir_suffix";
30148 ac_top_srcdir="$srcdir" ;;
30149 *) # Relative path.
30150 ac_srcdir="$ac_dots$srcdir$ac_dir_suffix"
30151 ac_top_srcdir="$ac_dots$srcdir" ;;
30155 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30156 *) ac_INSTALL=$ac_dots$INSTALL ;;
30159 if test x"$ac_file" != x-; then
30160 { echo "$as_me:30160: creating $ac_file" >&5
30161 echo "$as_me: creating $ac_file" >&6;}
30164 # Let's still pretend it is `configure' which instantiates (i.e., don't
30165 # use $as_me), people would be surprised to read:
30166 # /* config.h. Generated automatically by config.status. */
30167 configure_input="Generated automatically from `echo $ac_file_in |
30168 sed 's,.*/,,'` by configure."
30170 # First look for the input files in the build tree, otherwise in the
30172 ac_file_inputs=`IFS=:
30173 for f in $ac_file_in; do
30175 -) echo "$tmp"/stdin ;;
30177 # Absolute (can't be DOS-style, as IFS=:)
30178 test -f "$f" || { { echo "$as_me:30178: error: cannot find input file: $f" >&5
30179 echo "$as_me: error: cannot find input file: $f" >&2;}
30180 { (exit 1); exit 1; }; }
30183 if test -f "$f"; then
30186 elif test -f "$srcdir/$f"; then
30191 { { echo "$as_me:30191: error: cannot find input file: $f" >&5
30192 echo "$as_me: error: cannot find input file: $f" >&2;}
30193 { (exit 1); exit 1; }; }
30196 done` || { (exit 1); exit 1; }
30198 cat >>"$CONFIG_STATUS" <<\EOF
30199 ac_warn_datarootdir=no
30200 if test x"$ac_file" != x-; then
30201 for ac_item in $ac_file_inputs
30203 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' "$ac_item"`
30204 if test -n "$ac_seen"; then
30205 ac_used=`grep '@datarootdir@' "$ac_item"`
30206 if test -z "$ac_used"; then
30207 { echo "$as_me:30207: WARNING: datarootdir was used implicitly but not set:
30209 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
30211 ac_warn_datarootdir=yes
30214 ac_seen=`grep '${datarootdir}' "$ac_item"`
30215 if test -n "$ac_seen"; then
30216 { echo "$as_me:30216: WARNING: datarootdir was used explicitly but not set:
30218 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
30220 ac_warn_datarootdir=yes
30225 if test "x$ac_warn_datarootdir" = xyes; then
30226 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
30230 cat >>"$CONFIG_STATUS" <<EOF
30234 cat >>"$CONFIG_STATUS" <<\EOF
30236 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30237 s,@configure_input@,$configure_input,;t t
30238 s,@srcdir@,$ac_srcdir,;t t
30239 s,@top_srcdir@,$ac_top_srcdir,;t t
30240 s,@INSTALL@,$ac_INSTALL,;t t
30241 " $ac_file_inputs | (eval "$ac_sed_cmds") >"$tmp"/out
30244 : "${FGREP:=grep -F}"
30245 : "${EGREP:=grep -E}"
30246 cat >>"$CONFIG_STATUS" <<EOF
30247 : "\${FGREP:=$FGREP}"
30248 : "\${EGREP:=$EGREP}"
30250 cat >>"$CONFIG_STATUS" <<\EOF
30251 if test x"$ac_file" != x-; then
30252 cp "$tmp/out" "$ac_file"
30254 for ac_name in prefix exec_prefix datarootdir
30256 ac_seen=`$FGREP -n '${'$ac_name'[:=].*}' "$ac_file"`
30257 if test -n "$ac_seen"; then
30258 ac_init=`$EGREP '[ ]*'$ac_name'[ ]*=' "$ac_file"`
30259 if test -z "$ac_init"; then
30260 ac_seen=`echo "$ac_seen" |sed -e 's,^,'"$ac_file"':,'`
30261 { echo "$as_me:30261: WARNING: Variable $ac_name is used but was not set:
30263 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
30268 $EGREP -n '@[a-z_][a-z_0-9]+@' "$ac_file" >"$tmp"/out
30269 $EGREP -n '@[A-Z_][A-Z_0-9]+@' "$ac_file" >>"$tmp"/out
30270 if test -s "$tmp"/out; then
30271 ac_seen=`sed -e 's,^,'"$ac_file"':,' < "$tmp"/out`
30272 { echo "$as_me:30272: WARNING: Some variables may not be substituted:
30274 echo "$as_me: WARNING: Some variables may not be substituted:
30284 cat >>"$CONFIG_STATUS" <<\EOF
30287 # CONFIG_HEADER section.
30290 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30291 # NAME is the cpp macro being defined and VALUE is the value it is being given.
30293 # ac_d sets the value in "#define NAME VALUE" lines.
30294 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
30295 ac_dB='[ ].*$,\1#\2'
30298 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
30299 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
30300 ac_iB='\([ ]\),\1#\2define\3'
30303 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
30304 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
30305 ac_uB='$,\1#\2define\3'
30309 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30310 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30312 - | *:- | *:-:* ) # input from stdin
30314 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30315 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30316 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30317 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30318 * ) ac_file_in=$ac_file.in ;;
30321 test x"$ac_file" != x- && { echo "$as_me:30321: creating $ac_file" >&5
30322 echo "$as_me: creating $ac_file" >&6;}
30324 # First look for the input files in the build tree, otherwise in the
30326 ac_file_inputs=`IFS=:
30327 for f in $ac_file_in; do
30329 -) echo "$tmp"/stdin ;;
30331 # Absolute (can't be DOS-style, as IFS=:)
30332 test -f "$f" || { { echo "$as_me:30332: error: cannot find input file: $f" >&5
30333 echo "$as_me: error: cannot find input file: $f" >&2;}
30334 { (exit 1); exit 1; }; }
30337 if test -f "$f"; then
30340 elif test -f "$srcdir/$f"; then
30345 { { echo "$as_me:30345: error: cannot find input file: $f" >&5
30346 echo "$as_me: error: cannot find input file: $f" >&2;}
30347 { (exit 1); exit 1; }; }
30350 done` || { (exit 1); exit 1; }
30351 # Remove the trailing spaces.
30352 sed 's/[ ]*$//' $ac_file_inputs >"$tmp"/in
30356 # Transform confdefs.h into a list of #define's. We won't use it as a sed
30357 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
30358 # be either 'cat' or 'sort'.
30359 cat confdefs.h | uniq >conftest.vals
30361 # Break up conftest.vals because some shells have a limit on
30362 # the size of here documents, and old seds have small limits too.
30364 rm -f conftest.tail
30365 echo ' rm -f conftest.frag' >> "$CONFIG_STATUS"
30366 while grep . conftest.vals >/dev/null
30368 # Write chunks of a limited-size here document to conftest.frag.
30369 echo ' cat >> conftest.frag <<CEOF' >> "$CONFIG_STATUS"
30370 sed "${ac_max_here_lines}q" conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> "$CONFIG_STATUS"
30371 echo 'CEOF' >> "$CONFIG_STATUS"
30372 sed "1,${ac_max_here_lines}d" conftest.vals > conftest.tail
30373 rm -f conftest.vals
30374 mv conftest.tail conftest.vals
30376 rm -f conftest.vals
30378 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
30380 echo ' cat >> conftest.edit <<CEOF
30381 /@DEFS@/r conftest.frag
30384 sed -f conftest.edit "$tmp"/in > "$tmp"/out
30386 mv "$tmp"/out "$tmp"/in
30387 rm -f conftest.edit conftest.frag
30388 ' >> "$CONFIG_STATUS"
30390 cat >>"$CONFIG_STATUS" <<\EOF
30391 # Let's still pretend it is `configure' which instantiates (i.e., don't
30392 # use $as_me), people would be surprised to read:
30393 # /* config.h. Generated automatically by config.status. */
30394 if test x"$ac_file" = x-; then
30395 echo "/* Generated automatically by configure. */" >"$tmp"/config.h
30397 echo "/* $ac_file. Generated automatically by configure. */" >"$tmp"/config.h
30399 cat "$tmp"/in >>"$tmp"/config.h
30401 if test x"$ac_file" != x-; then
30402 if cmp -s "$ac_file" "$tmp/config.h" 2>/dev/null; then
30403 { echo "$as_me:30403: $ac_file is unchanged" >&5
30404 echo "$as_me: $ac_file is unchanged" >&6;}
30406 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30407 X"$ac_file" : 'X\(//\)[^/]' \| \
30408 X"$ac_file" : 'X\(//\)$' \| \
30409 X"$ac_file" : 'X\(/\)' \| \
30410 . : '\(.\)' 2>/dev/null ||
30412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30413 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30414 /^X\(\/\/\)$/{ s//\1/; q; }
30415 /^X\(\/\).*/{ s//\1/; q; }
30417 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
30418 { case "$ac_dir" in
30419 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
30423 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
30424 case $as_mkdir_dir in
30425 # Skip DOS drivespec
30426 ?:) as_incr_dir=$as_mkdir_dir ;;
30428 as_incr_dir=$as_incr_dir/$as_mkdir_dir
30429 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
30436 mv "$tmp/config.h" "$ac_file"
30439 cat "$tmp"/config.h
30440 rm -f "$tmp"/config.h
30444 cat >>"$CONFIG_STATUS" <<\EOF
30446 # CONFIG_COMMANDS section.
30448 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30449 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30450 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30454 if test "x$cf_with_tests" != xno ; then
30458 if test ! -d "$srcdir/$cf_dir" ; then
30460 elif test -f "$srcdir/$cf_dir/programs" ; then
30461 $AWK -f "$srcdir/test/mk-test.awk" INSTALL=no ECHO_LINK="$ECHO_LD" "$srcdir/$cf_dir/programs" >>$cf_dir/Makefile
30467 cf_prefix=$LIB_PREFIX
30469 case "$cf_cv_shlib_version" in
30470 (cygdll|msysdll|mingw|msvcdll)
30471 TINFO_NAME=$TINFO_ARG_SUFFIX
30476 if test -n "$TINFO_SUFFIX" ; then
30477 case "$TINFO_SUFFIX" in
30479 TINFO_NAME="${TINFO_NAME}tw${EXTRA_SUFFIX}"
30480 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^tw'$EXTRA_SUFFIX'//'`
30483 TINFO_NAME="${TINFO_NAME}t${EXTRA_SUFFIX}"
30484 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^t'$EXTRA_SUFFIX'//'`
30487 TINFO_NAME="${TINFO_NAME}w${EXTRA_SUFFIX}"
30488 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^w'$EXTRA_SUFFIX'//'`
30493 for cf_dir in $SRC_SUBDIRS
30495 if test ! -d "$srcdir/$cf_dir" ; then
30497 elif test -f "$srcdir/$cf_dir/modules" ; then
30502 if test -n "${cf_cv_abi_default}" && test "x${cf_cv_abi_default}" != "x5"
30504 cf_awk_program="$cf_awk_program\
30505 /deprecated in ABI${cf_cv_abi_default}/ { next; }\
30506 { sub(\"NCURSES([WT]+)?\", \"&${cf_cv_abi_default}\"); }\
30510 if test "x$WILDCARD_SYMS" = xno
30512 cf_awk_program="$cf_awk_program\
30513 /[ ]_\\*;/ { skip=1; next; }\
30517 if test "x$cf_awk_program" != "x"
30519 cat >>$cf_dir/Makefile <<CF_EOF
30521 # Generated by CF_LIB_RULES
30522 resulting.map: $UNALTERED_SYMS
30523 $AWK 'BEGIN { skip = 1; last=""; } \
30525 { if ( last != "" && ( skip == 0 || \$\$0 !~ /}/ ) ) { print last; }\
30526 skip = 0; last = \$\$0; } \
30527 END { print last; }' < "$UNALTERED_SYMS" >\$@
30530 rm -f resulting.map
30534 for cf_item in $cf_LIST_MODELS
30540 cf_depsuf=$cf_suffix
30543 case "$cf_cv_system_name" in
30551 cf_depsuf=$cf_suffix
30554 case "$cf_cv_system_name" in
30562 cf_depsuf=$cf_suffix
30565 case "$cf_cv_system_name" in
30568 cf_depsuf=$cf_suffix
30572 cf_depsuf='.dll.lib'
30574 (cygwin*|msys*|mingw*)
30580 cf_depsuf=$cf_suffix
30586 cf_depsuf=$cf_suffix
30590 cf_depsuf=$cf_suffix
30596 cf_depsuf=$cf_suffix
30609 cf_depsuf=$cf_suffix
30612 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
30614 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
30615 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
30618 if test "$cf_dir" = "c++"
30621 cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30623 eval cf_libname="\$${cf_map_lib_basename}_NAME"
30627 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30629 eval cf_libname="\$${cf_map_lib_basename}_NAME"
30632 test -z "$cf_libname" && cf_libname="$cf_dir"
30633 if test "$cf_item" = shared ; then
30634 if test -n "${LIB_SUFFIX}"
30636 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
30638 cf_shared_suffix="$cf_suffix"
30640 if test "$cf_cv_do_symlinks" = yes ; then
30643 case "$cf_cv_shlib_version" in
30645 cf_version_name=REL_VERSION
30648 cf_version_name=ABI_VERSION
30652 if test -n "$cf_version_name"
30654 case "$cf_cv_system_name" in
30657 cf_suffix="${USE_LIB_SUFFIX}"'.${'$cf_version_name'}'"$cf_shared_suffix"
30660 cf_suffix="$cf_suffix"'.${'$cf_version_name'}'
30664 if test -n "${USE_LIB_SUFFIX}"
30666 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
30668 cf_shared_suffix="$cf_suffix"
30671 # cygwin needs import library, and has unique naming convention
30672 # use autodetected ${cf_prefix} for import lib and static lib, but
30673 # use 'cyg' prefix for shared lib.
30674 case "$cf_cv_shlib_version" in
30676 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30677 cf_add_lib="../lib/cyg${cf_libname}${cf_cygsuf}"
30680 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30681 cf_add_lib="../lib/msys-${cf_libname}${cf_cygsuf}"
30684 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30685 cf_add_lib="../lib/lib${cf_libname}${cf_cygsuf}"
30688 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30689 cf_add_lib="../lib/${cf_libname}${cf_cygsuf}"
30695 if test -n "$cf_add_lib"
30697 Libs_To_Make="$Libs_To_Make $cf_add_lib"
30701 cf_add_lib="../lib/${cf_prefix}${cf_libname}${cf_suffix}"
30702 Libs_To_Make="$Libs_To_Make $cf_add_lib"
30705 if test "$cf_dir" = ncurses ; then
30706 cf_subsets="$LIB_SUBSETS"
30707 cf_r_parts="$cf_subsets"
30708 cf_liblist="$Libs_To_Make"
30710 while test -n "$cf_r_parts"
30712 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
30713 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
30714 if test "$cf_l_parts" != "$cf_r_parts" ; then
30716 case "$cf_l_parts" in
30718 cf_add_lib=`echo "$cf_liblist" |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
30721 cf_add_lib=`echo "$cf_liblist" |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
30727 if test -n "$cf_add_lib"; then
30728 Libs_To_Make="$cf_add_lib $Libs_To_Make"
30735 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
30738 if test "$cf_dir" = c++; then
30739 if test "x$with_shared_cxx" != xyes && test -n "$cf_shared_suffix"; then
30741 for cf_item in $Libs_To_Make
30747 cf_item=`echo "$cf_item" | sed -e "s,"$cf_shared_suffix",.a,"`
30750 for cf_test in $cf_list
30752 if test "$cf_test" = "$cf_item"
30754 cf_LIST_MODELS=`echo "$cf_LIST_MODELS" | sed -e 's/normal//'`
30759 test -n "$cf_item" && cf_list="$cf_list $cf_item"
30761 Libs_To_Make="$cf_list"
30765 sed -e "s%@Libs_To_Make@%$Libs_To_Make%" \
30766 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
30767 "$cf_dir/Makefile" >$cf_dir/Makefile.out
30768 mv "$cf_dir/Makefile.out" "$cf_dir/Makefile"
30770 $AWK -f "$srcdir/mk-0th.awk" \
30771 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" ticlib="$TICS_LIB_SUFFIX" termlib="$TINFO_LIB_SUFFIX" \
30772 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
30774 for cf_subset in $cf_subsets
30777 for cf_item in $cf_LIST_MODELS
30780 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
30782 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30785 if test "$CXX_MODEL" = SHARED; then
30786 case "$cf_cv_shlib_version" in
30787 (cygdll|msysdll|mingw|msvcdll)
30788 test "x$with_shared_cxx" = xno && test -n "$verbose" && echo " overriding CXX_MODEL to SHARED" 1>&6
30790 echo "${as_me:-configure}:30790: testing overriding CXX_MODEL to SHARED ..." 1>&5
30792 with_shared_cxx=yes
30795 test "x$with_shared_cxx" = xno && CXX_MODEL=NORMAL
30803 cf_depsuf=$cf_suffix
30806 case "$cf_cv_system_name" in
30814 cf_depsuf=$cf_suffix
30817 case "$cf_cv_system_name" in
30825 cf_depsuf=$cf_suffix
30828 case "$cf_cv_system_name" in
30831 cf_depsuf=$cf_suffix
30835 cf_depsuf='.dll.lib'
30837 (cygwin*|msys*|mingw*)
30843 cf_depsuf=$cf_suffix
30849 cf_depsuf=$cf_suffix
30853 cf_depsuf=$cf_suffix
30859 cf_depsuf=$cf_suffix
30872 cf_depsuf=$cf_suffix
30875 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
30877 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
30878 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
30882 (libtool) cf_subdir='obj_lo' ;;
30883 (normal) cf_subdir='objects' ;;
30884 (debug) cf_subdir='obj_g' ;;
30885 (profile) cf_subdir='obj_p' ;;
30887 case "$cf_cv_system_name" in
30889 cf_subdir='objects' ;;
30891 cf_subdir='obj_s' ;;
30895 # Test for case where we build libtinfo with a different name.
30897 if test "$cf_dir" = ncurses ; then
30898 case "$cf_subset" in
30900 cf_libname=${cf_libname}$USE_LIB_SUFFIX
30903 cf_libname=$TINFO_LIB_SUFFIX
30906 cf_libname=$TICS_LIB_SUFFIX
30909 elif test "$cf_dir" = c++ ; then
30911 cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30913 eval cf_libname="\$${cf_map_lib_basename}_NAME"
30915 cf_libname=${cf_libname}$USE_LIB_SUFFIX
30918 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30920 eval cf_libname="\$${cf_map_lib_basename}_NAME"
30922 cf_libname=${cf_libname}$USE_LIB_SUFFIX
30924 if test -n "${USE_ARG_SUFFIX}" ; then
30925 # undo $USE_LIB_SUFFIX add-on in CF_LIB_SUFFIX
30926 cf_suffix=`echo "$cf_suffix" |sed -e "s%^${USE_LIB_SUFFIX}%%"`
30929 # These dependencies really are for development, not
30930 # builds, but they are useful in porting, too.
30931 cf_depend="../include/ncurses_cfg.h"
30932 if test "$srcdir" = "."; then
30935 cf_reldir="\${srcdir}"
30938 if test -f "$srcdir/$cf_dir/$cf_dir.priv.h" ; then
30939 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
30940 elif test -f "$srcdir/$cf_dir/curses.priv.h" ; then
30941 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
30945 old_cf_suffix="$cf_suffix"
30946 if test "$cf_cv_shlib_version_infix" = yes ; then
30947 if test -n "$USE_LIB_SUFFIX" ; then
30948 case "$USE_LIB_SUFFIX" in
30950 cf_libname=`echo "$cf_libname" | sed 's/tw'$EXTRA_SUFFIX'$//'`
30951 cf_suffix=`echo "$cf_suffix" | sed 's/^tw'$EXTRA_SUFFIX'//'`
30952 cf_dir_suffix=tw$EXTRA_SUFFIX
30955 cf_libname=`echo "$cf_libname" | sed 's/t'$EXTRA_SUFFIX'$//'`
30956 cf_suffix=`echo "$cf_suffix" | sed 's/^t'$EXTRA_SUFFIX'//'`
30957 cf_dir_suffix=t$EXTRA_SUFFIX
30960 cf_libname=`echo "$cf_libname" | sed 's/w'$EXTRA_SUFFIX'$//'`
30961 cf_suffix=`echo "$cf_suffix" | sed 's/^w'$EXTRA_SUFFIX'//'`
30962 cf_dir_suffix=w$EXTRA_SUFFIX
30965 cf_libname=`echo "$cf_libname" | sed 's/'$EXTRA_SUFFIX'$//'`
30966 cf_suffix=`echo "$cf_suffix" | sed 's/^'$EXTRA_SUFFIX'//'`
30967 cf_dir_suffix=$EXTRA_SUFFIX
30973 $AWK -f "$srcdir/mk-1st.awk" \
30974 name=${cf_libname}${cf_dir_suffix} \
30975 traces=$LIB_TRACING \
30977 CXX_MODEL=$CXX_MODEL \
30978 LIB_SUFFIX=$LIB_SUFFIX \
30979 USE_LIB_SUFFIX=$USE_LIB_SUFFIX \
30980 make_phony="${cf_cv_make_PHONY:-no}" \
30982 prefix=$cf_prefix \
30983 suffix=$cf_suffix \
30984 subset=$cf_subset \
30985 driver=$cf_cv_term_driver \
30987 TermlibRoot=$TINFO_NAME \
30988 TermlibSuffix=$TINFO_SUFFIX \
30989 ShlibVer=$cf_cv_shlib_version \
30990 ShlibVerInfix=$cf_cv_shlib_version_infix \
30991 ReLink=${cf_cv_do_relink:-no} \
30992 ReRanlib=${cf_cv_do_reranlib:-yes} \
30993 DoLinks=$cf_cv_do_symlinks \
30994 rmSoLocs=$cf_cv_rm_so_locs \
30995 ldconfig="$LDCONFIG" \
30996 overwrite=$WITH_OVERWRITE \
30997 depend="$cf_depend" \
30999 libtool_version="$LIBTOOL_VERSION" \
31000 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
31002 cf_suffix="$old_cf_suffix"
31004 for cf_subdir2 in $cf_subdirs lib
31006 test "$cf_subdir" = "$cf_subdir2" && break
31008 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
31009 $AWK -f "$srcdir/mk-2nd.awk" \
31011 traces=$LIB_TRACING \
31014 subset=$cf_subset \
31017 crenames=$cf_cv_prog_CC_c_o \
31018 cxxrenames=$cf_cv_prog_CXX_c_o \
31019 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
31020 cf_subdirs="$cf_subdirs $cf_subdir"
31025 echo ' ( cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@ )' >>Makefile
31029 echo '# generated by CF_LIB_RULES' >> Makefile
31031 if test "x$cf_cv_make_PHONY" = xyes ; then
31032 cat >> Makefile <<-CF_EOF
31036 .PHONY : install.includes
31037 .PHONY : uninstall.includes
31038 .PHONY : install.libs
31039 .PHONY : uninstall.libs
31043 for cf_dir in $SRC_SUBDIRS
31045 if test ! -d "$srcdir/$cf_dir" ; then
31049 if test -f "$cf_dir/Makefile" ; then
31052 echo 'libs \' >> Makefile
31053 echo 'install.libs \' >> Makefile
31054 echo 'uninstall.libs ::' >> Makefile
31055 echo ' ( cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@ )' >> Makefile
31060 if test -f "$srcdir/$cf_dir/modules" ; then
31062 if test "x$cf_cv_make_PHONY" = xyes ; then
31063 cat >> Makefile <<-CF_EOF
31065 .PHONY : install.$cf_dir
31066 .PHONY : uninstall.$cf_dir
31071 if test -f "$srcdir/$cf_dir/headers" ; then
31072 cat >> Makefile <<CF_EOF
31073 install.includes \\
31074 uninstall.includes \\
31078 cat >> Makefile <<CF_EOF
31085 uninstall.$cf_dir ::
31086 ( cd "$cf_dir" && \${MAKE} \${TOP_MFLAGS} \$@ )
31088 elif test -f "$srcdir/$cf_dir/headers" ; then
31089 cat >> Makefile <<CF_EOF
31094 install.includes \\
31095 uninstall.includes ::
31096 ( cd "$cf_dir" && \${MAKE} \${TOP_MFLAGS} \$@ )
31101 if test "x$cf_cv_make_PHONY" = xyes ; then
31102 cat >> Makefile <<-CF_EOF
31104 .PHONY : install.data
31105 .PHONY : uninstall.data
31109 if test "x$cf_with_db_install" = xyes; then
31110 cat >> Makefile <<CF_EOF
31112 install.libs uninstall.libs \\
31113 install.data uninstall.data ::
31114 $MAKE_TERMINFO ( cd misc && \${MAKE} \${TOP_MFLAGS} \$@ )
31117 cat >> Makefile <<CF_EOF
31119 install.libs uninstall.libs ::
31120 ( cd misc && \${MAKE} \${TOP_MFLAGS} \$@ )
31124 if test "x$cf_with_manpages" = xyes; then
31126 if test "x$cf_cv_make_PHONY" = xyes ; then
31127 cat >> Makefile <<-CF_EOF
31129 .PHONY : install.man
31130 .PHONY : uninstall.man
31134 cat >> Makefile <<CF_EOF
31138 ( cd man && \${MAKE} \${TOP_MFLAGS} \$@ )
31142 cat >> Makefile <<CF_EOF
31145 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
31146 rm -f headers.sh headers.sed mk_shared_lib.sh
31147 rm -f edit_man.* man_alias.*
31148 rm -rf \${DIRS_TO_MAKE}
31151 rm -f headers.sed headers.sh
31153 echo creating headers.sh
31154 cat >headers.sh <<CF_EOF
31156 # This shell script is generated by the 'configure' script. It is invoked in a
31157 # subdirectory of the build tree. It generates a sed-script in the parent
31158 # directory that is used to adjust includes for header files that reside in a
31159 # subdirectory of /usr/include, etc.
31161 while test \$# != 3
31163 PRG="\$PRG \$1"; shift
31168 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
31169 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
31170 echo installing \$SRC in \$DST
31173 if test "$WITH_CURSES_H" = yes; then
31174 cat >>headers.sh <<CF_EOF
31177 END=\`basename \$DST\`
31178 for i in \`cat \$REF/../*/headers |${FGREP-fgrep} -v "#"\`
31180 NAME=\`basename \$i\`
31181 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
31185 echo "" >> \$TMPSED
31191 cat >>headers.sh <<CF_EOF
31194 END=\`basename \$DST\`
31195 for i in \`cat \$REF/../*/headers |${FGREP-fgrep} -v "#"\`
31197 NAME=\`basename \$i\`
31198 if test "\$NAME" = "curses.h"
31200 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
31203 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
31207 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
31212 cat >>headers.sh <<CF_EOF
31214 sed -f \$TMPSED \$SRC > \$TMPSRC
31215 NAME=\`basename \$SRC\`
31217 if test "$WITH_CURSES_H" != yes; then
31218 cat >>headers.sh <<CF_EOF
31219 test "\$NAME" = "curses.h" && NAME=ncurses.h
31222 cat >>headers.sh <<CF_EOF
31223 # Just in case someone gzip'd manpages, remove the conflicting copy.
31224 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
31226 eval \$PRG \$TMPSRC \$DST/\$NAME
31227 rm -f \$TMPSRC \$TMPSED
31230 chmod 0755 headers.sh
31232 for cf_dir in $SRC_SUBDIRS
31234 if test ! -d "$srcdir/$cf_dir" ; then
31238 if test -f "$srcdir/$cf_dir/headers" ; then
31239 $AWK -f "$srcdir/mk-hdr.awk" \
31240 subset="$LIB_SUBSETS" \
31241 compat="$WITH_CURSES_H" \
31242 "$srcdir/$cf_dir/headers" >>$cf_dir/Makefile
31245 if test -f "$srcdir/$cf_dir/modules" ; then
31246 if test "$cf_dir" != "c++" ; then
31247 if test "x$cf_cv_make_PHONY" = xyes ; then
31248 cat >> $cf_dir/Makefile <<-CF_EOF
31254 cat >>$cf_dir/Makefile <<"CF_EOF"
31255 depend : ${AUTO_SRC}
31256 makedepend -- ${CPPFLAGS} -- ${C_SRC}
31258 # DO NOT DELETE THIS LINE -- make depend depends on it.
31264 if test "$MANPAGE_RENAMES" != no ; then
31265 # Construct a sed-script to perform renaming within man-pages
31266 test -n "$verbose" && echo "creating edit_man.sed"
31267 test ! -d man && mkdir man
31268 FGREP="${FGREP-grep -F}" $SHELL "$srcdir/man/make_sed.sh" "$MANPAGE_RENAMES" >./edit_man.sed
31271 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
31272 if test -z "$USE_OLD_MAKERULES" ; then
31273 $AWK -f "$srcdir/Ada95/mk-1st.awk" <"$srcdir/Ada95/src/modules" >>Ada95/src/Makefile
31281 cat >>"$CONFIG_STATUS" <<\EOF
31283 { (exit 0); exit 0; }
31285 chmod +x "$CONFIG_STATUS"
31286 ac_clean_files=$ac_clean_files_save
31288 # configure is writing to config.log, and then calls config.status.
31289 # config.status does its own redirection, appending to config.log.
31290 # Unfortunately, on DOS this fails, as config.log is still kept open
31291 # by configure, so config.status won't be able to write to it; its
31292 # output is simply discarded. So we exec the FD to /dev/null,
31293 # effectively closing config.log, so it can be properly (re)opened and
31294 # appended to by config.status. When coming back to configure, we
31295 # need to make the FD available again.
31296 if test "$no_create" != yes; then
31299 $SHELL "$CONFIG_STATUS" || ac_cs_success=false
31301 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31302 # would make configure fail if this is the last instruction.
31303 "$ac_cs_success" || { (exit 1); exit 1; }
31305 ${MAKE:-make} preinstall