2 # From configure.in Revision: 1.736 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20210509.
6 # Copyright 2003-2020,2021 Thomas E. Dickey
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Avoid depending upon Character Ranges.
13 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16 as_cr_digits='0123456789'
17 as_cr_alnum=$as_cr_Letters$as_cr_digits
19 # Sed expression to map a string onto a valid variable name.
20 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22 # Sed expression to map a string onto a valid CPP name.
23 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
25 # Be Bourne compatible
26 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
33 # Name of the executable.
34 as_me=`echo "$0" |sed 's,.*[\\/],,'`
36 if expr a : '\(a\)' >/dev/null 2>&1; then
42 rm -f conf$$ conf$$.exe conf$$.file
44 if ln -s conf$$.file conf$$ 2>/dev/null; then
45 # We could just check for DJGPP; but this test a) works b) is more generic
46 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
47 if test -f conf$$.exe; then
48 # Don't use ln at all; we don't have any links
53 elif ln conf$$.file conf$$ 2>/dev/null; then
58 rm -f conf$$ conf$$.exe conf$$.file
60 as_executable_p="test -f"
62 # Support unset when possible.
63 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
70 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
71 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
72 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
73 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
74 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
75 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
76 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
77 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
80 # We need space, tab and new line, in precisely that order.
86 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
89 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
90 # so uname gets run too.
91 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
98 ac_default_prefix=/usr/local
103 SHELL=${CONFIG_SHELL-/bin/sh}
105 # Maximum number of lines to put in a shell here document.
106 # This variable seems obsolete. It should probably be removed, and
107 # only ac_max_sed_lines should be used.
108 : "${ac_max_here_lines=38}"
110 ac_unique_file="ncurses/base/lib_initscr.c"
111 # Factoring default headers for most tests.
112 ac_includes_default="\
115 # include <sys/types.h>
118 # include <sys/stat.h>
129 # if !STDC_HEADERS && HAVE_MEMORY_H
135 # include <strings.h>
138 # include <inttypes.h>
148 # Initialize some variables set by options.
150 ac_init_version=false
151 # The variables have the same names as the options, with
152 # dashes changed to underlines.
160 program_transform_name=s,x,x,
168 # Installation directory options.
169 # These are left unexpanded so users can "make install exec_prefix=/foo"
170 # and all the variables that are supposed to be based on exec_prefix
171 # by default will actually change.
172 # Use braces instead of parens because sh, perl, etc. also accept them.
173 bindir='${exec_prefix}/bin'
174 sbindir='${exec_prefix}/sbin'
175 libexecdir='${exec_prefix}/libexec'
176 datarootdir='${prefix}/share'
177 datadir='${datarootdir}'
178 sysconfdir='${prefix}/etc'
179 sharedstatedir='${prefix}/com'
180 localstatedir='${prefix}/var'
181 runstatedir='${localstatedir}/run'
182 libdir='${exec_prefix}/lib'
183 includedir='${prefix}/include'
184 oldincludedir='/usr/include'
185 infodir='${datarootdir}/info'
186 mandir='${datarootdir}/man'
188 # Identity of this package.
198 # If the previous option needs an argument, assign it.
199 if test -n "$ac_prev"; then
200 eval "$ac_prev=\$ac_option"
205 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
207 # Accept the important Cygnus configure options, so we can diagnose typos.
211 -bindir | --bindir | --bindi | --bind | --bin | --bi)
213 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
216 -build | --build | --buil | --bui | --bu)
217 ac_prev=build_alias ;;
218 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
219 build_alias=$ac_optarg ;;
221 -cache-file | --cache-file | --cache-fil | --cache-fi \
222 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
223 ac_prev=cache_file ;;
224 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
225 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
226 cache_file=$ac_optarg ;;
229 cache_file=config.cache ;;
231 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
233 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
235 datadir=$ac_optarg ;;
237 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
238 | --dataroo | --dataro | --datar)
239 ac_prev=datarootdir ;;
240 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
241 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
242 datarootdir=$ac_optarg ;;
244 -disable-* | --disable-*)
245 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
246 # Reject names that are not valid shell variable names.
247 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
248 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
249 { (exit 1); exit 1; }; }
250 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'`
251 eval "enable_$ac_feature=no" ;;
253 -enable-* | --enable-*)
254 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
255 # Reject names that are not valid shell variable names.
256 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
257 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
258 { (exit 1); exit 1; }; }
259 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'`
261 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
264 eval "enable_$ac_feature='$ac_optarg'" ;;
266 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
267 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
268 | --exec | --exe | --ex)
269 ac_prev=exec_prefix ;;
270 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
271 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
272 | --exec=* | --exe=* | --ex=*)
273 exec_prefix=$ac_optarg ;;
275 -gas | --gas | --ga | --g)
276 # Obsolete; use --with-gas.
279 -help | --help | --hel | --he | -h)
281 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
282 ac_init_help=recursive ;;
283 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
284 ac_init_help=short ;;
286 -host | --host | --hos | --ho)
287 ac_prev=host_alias ;;
288 -host=* | --host=* | --hos=* | --ho=*)
289 host_alias=$ac_optarg ;;
291 -includedir | --includedir | --includedi | --included | --include \
292 | --includ | --inclu | --incl | --inc)
293 ac_prev=includedir ;;
294 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
295 | --includ=* | --inclu=* | --incl=* | --inc=*)
296 includedir=$ac_optarg ;;
298 -infodir | --infodir | --infodi | --infod | --info | --inf)
300 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
301 infodir=$ac_optarg ;;
303 -libdir | --libdir | --libdi | --libd)
305 -libdir=* | --libdir=* | --libdi=* | --libd=*)
308 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
309 | --libexe | --libex | --libe)
310 ac_prev=libexecdir ;;
311 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
312 | --libexe=* | --libex=* | --libe=*)
313 libexecdir=$ac_optarg ;;
315 -localstatedir | --localstatedir | --localstatedi | --localstated \
316 | --localstate | --localstat | --localsta | --localst \
317 | --locals | --local | --loca | --loc | --lo)
318 ac_prev=localstatedir ;;
319 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
320 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
321 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
322 localstatedir=$ac_optarg ;;
324 -runstatedir | --runstatedir | --runstatedi | --runstated \
325 | --runstate | --runstat | --runsta | --runst \
326 | --runs | --run | --ru)
327 ac_prev=runstatedir ;;
328 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
329 | --runstate=* | --runstat=* | --runsta=* | --runst=* \
330 | --runs=* | --run=* | --ru=*)
331 runstatedir=$ac_optarg ;;
333 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
335 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
339 # Obsolete; use --without-fp.
342 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
346 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
347 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
350 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
351 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
352 | --oldin | --oldi | --old | --ol | --o)
353 ac_prev=oldincludedir ;;
354 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
355 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
356 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
357 oldincludedir=$ac_optarg ;;
359 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
361 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
364 -program-prefix | --program-prefix | --program-prefi | --program-pref \
365 | --program-pre | --program-pr | --program-p)
366 ac_prev=program_prefix ;;
367 -program-prefix=* | --program-prefix=* | --program-prefi=* \
368 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
369 program_prefix=$ac_optarg ;;
371 -program-suffix | --program-suffix | --program-suffi | --program-suff \
372 | --program-suf | --program-su | --program-s)
373 ac_prev=program_suffix ;;
374 -program-suffix=* | --program-suffix=* | --program-suffi=* \
375 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
376 program_suffix=$ac_optarg ;;
378 -program-transform-name | --program-transform-name \
379 | --program-transform-nam | --program-transform-na \
380 | --program-transform-n | --program-transform- \
381 | --program-transform | --program-transfor \
382 | --program-transfo | --program-transf \
383 | --program-trans | --program-tran \
384 | --progr-tra | --program-tr | --program-t)
385 ac_prev=program_transform_name ;;
386 -program-transform-name=* | --program-transform-name=* \
387 | --program-transform-nam=* | --program-transform-na=* \
388 | --program-transform-n=* | --program-transform-=* \
389 | --program-transform=* | --program-transfor=* \
390 | --program-transfo=* | --program-transf=* \
391 | --program-trans=* | --program-tran=* \
392 | --progr-tra=* | --program-tr=* | --program-t=*)
393 program_transform_name=$ac_optarg ;;
395 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
396 | -silent | --silent | --silen | --sile | --sil)
399 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
401 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
403 sbindir=$ac_optarg ;;
405 -sharedstatedir | --sharedstatedir | --sharedstatedi \
406 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
407 | --sharedst | --shareds | --shared | --share | --shar \
409 ac_prev=sharedstatedir ;;
410 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
411 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
412 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
414 sharedstatedir=$ac_optarg ;;
416 -site | --site | --sit)
418 -site=* | --site=* | --sit=*)
421 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
423 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
426 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
427 | --syscon | --sysco | --sysc | --sys | --sy)
428 ac_prev=sysconfdir ;;
429 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
430 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
431 sysconfdir=$ac_optarg ;;
433 -target | --target | --targe | --targ | --tar | --ta | --t)
434 ac_prev=target_alias ;;
435 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
436 target_alias=$ac_optarg ;;
438 -v | -verbose | --verbose | --verbos | --verbo | --verb)
441 -version | --version | --versio | --versi | --vers | -V)
445 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
446 # Reject names that are not valid shell variable names.
447 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
448 { echo "$as_me: error: invalid package name: $ac_package" >&2
449 { (exit 1); exit 1; }; }
450 ac_package=`echo "$ac_package" | sed 's/-/_/g'`
452 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
455 eval "with_$ac_package='$ac_optarg'" ;;
457 -without-* | --without-*)
458 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
459 # Reject names that are not valid shell variable names.
460 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
461 { echo "$as_me: error: invalid package name: $ac_package" >&2
462 { (exit 1); exit 1; }; }
463 ac_package=`echo "$ac_package" | sed 's/-/_/g'`
464 eval "with_$ac_package=no" ;;
467 # Obsolete; use --with-x.
470 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
471 | --x-incl | --x-inc | --x-in | --x-i)
472 ac_prev=x_includes ;;
473 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
474 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
475 x_includes=$ac_optarg ;;
477 -x-libraries | --x-libraries | --x-librarie | --x-librari \
478 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
479 ac_prev=x_libraries ;;
480 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
481 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
482 x_libraries=$ac_optarg ;;
484 -*) { echo "$as_me: error: unrecognized option: $ac_option
485 Try \`$0 --help' for more information." >&2
486 { (exit 1); exit 1; }; }
490 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
491 # Reject names that are not valid shell variable names.
492 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
493 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
494 { (exit 1); exit 1; }; }
495 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
496 eval "$ac_envvar='$ac_optarg'"
497 export "$ac_envvar" ;;
500 # FIXME: should be removed in autoconf 3.0.
501 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
502 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
503 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
504 : "${build_alias=$ac_option}" "${host_alias=$ac_option}" "${target_alias=$ac_option}"
510 if test -n "$ac_prev"; then
511 ac_option=--`echo "$ac_prev" | sed 's/_/-/g'`
512 { echo "$as_me: error: missing argument to $ac_option" >&2
513 { (exit 1); exit 1; }; }
516 # Be sure to have absolute paths.
517 for ac_var in exec_prefix prefix
519 eval ac_val=$`echo "$ac_var"`
521 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
522 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
523 { (exit 1); exit 1; }; };;
527 # Be sure to have absolute paths.
528 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
529 localstatedir libdir includedir oldincludedir infodir mandir
531 eval ac_val=$`echo "$ac_var"`
533 [\\/$]* | ?:[\\/]* ) ;;
534 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
535 { (exit 1); exit 1; }; };;
539 # There might be people who depend on the old broken behavior: `$host'
540 # used to hold the argument of --host etc.
545 # FIXME: should be removed in autoconf 3.0.
546 if test "x$host_alias" != x; then
547 if test "x$build_alias" = x; then
548 cross_compiling=maybe
549 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
550 If a cross compiler is detected then cross compile mode will be used." >&2
551 elif test "x$build_alias" != "x$host_alias"; then
557 test -n "$host_alias" && ac_tool_prefix=$host_alias-
559 test "$silent" = yes && exec 6>/dev/null
561 # Find the source files, if location was not specified.
562 if test -z "$srcdir"; then
563 ac_srcdir_defaulted=yes
564 # Try the directory containing this script, then its parent.
566 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
567 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
569 if test ! -r "$srcdir/$ac_unique_file"; then
573 ac_srcdir_defaulted=no
575 if test ! -r "$srcdir/$ac_unique_file"; then
576 if test "$ac_srcdir_defaulted" = yes; then
577 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
578 { (exit 1); exit 1; }; }
580 { echo "$as_me: error: cannot find sources in $srcdir" >&2
581 { (exit 1); exit 1; }; }
584 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
585 ac_env_build_alias_set=${build_alias+set}
586 ac_env_build_alias_value=$build_alias
587 ac_cv_env_build_alias_set=${build_alias+set}
588 ac_cv_env_build_alias_value=$build_alias
589 ac_env_host_alias_set=${host_alias+set}
590 ac_env_host_alias_value=$host_alias
591 ac_cv_env_host_alias_set=${host_alias+set}
592 ac_cv_env_host_alias_value=$host_alias
593 ac_env_target_alias_set=${target_alias+set}
594 ac_env_target_alias_value=$target_alias
595 ac_cv_env_target_alias_set=${target_alias+set}
596 ac_cv_env_target_alias_value=$target_alias
597 ac_env_CC_set=${CC+set}
599 ac_cv_env_CC_set=${CC+set}
600 ac_cv_env_CC_value=$CC
601 ac_env_CFLAGS_set=${CFLAGS+set}
602 ac_env_CFLAGS_value=$CFLAGS
603 ac_cv_env_CFLAGS_set=${CFLAGS+set}
604 ac_cv_env_CFLAGS_value=$CFLAGS
605 ac_env_LDFLAGS_set=${LDFLAGS+set}
606 ac_env_LDFLAGS_value=$LDFLAGS
607 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
608 ac_cv_env_LDFLAGS_value=$LDFLAGS
609 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
610 ac_env_CPPFLAGS_value=$CPPFLAGS
611 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
612 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
613 ac_env_CPP_set=${CPP+set}
614 ac_env_CPP_value=$CPP
615 ac_cv_env_CPP_set=${CPP+set}
616 ac_cv_env_CPP_value=$CPP
617 ac_env_CXX_set=${CXX+set}
618 ac_env_CXX_value=$CXX
619 ac_cv_env_CXX_set=${CXX+set}
620 ac_cv_env_CXX_value=$CXX
621 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
622 ac_env_CXXFLAGS_value=$CXXFLAGS
623 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
624 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
625 ac_env_CXXCPP_set=${CXXCPP+set}
626 ac_env_CXXCPP_value=$CXXCPP
627 ac_cv_env_CXXCPP_set=${CXXCPP+set}
628 ac_cv_env_CXXCPP_value=$CXXCPP
631 # Report the --help message.
633 if test "$ac_init_help" = "long"; then
634 # Omit some internal or obsolete options to make the list less imposing.
635 # This message is too long to be a string in the A/UX 3.1 sh.
637 \`configure' configures this package to adapt to many kinds of systems.
639 Usage: $0 [OPTION]... [VAR=VALUE]...
641 To assign environment variables (e.g., CC, CFLAGS...), specify them as
642 VAR=VALUE. See below for descriptions of some of the useful variables.
644 Defaults for the options are specified in brackets.
647 -h, --help display this help and exit
648 --help=short display options specific to this package
649 --help=recursive display the short help of all the included packages
650 -V, --version display version information and exit
651 -q, --quiet, --silent do not print \`checking...' messages
652 --cache-file=FILE cache test results in FILE [disabled]
653 -C, --config-cache alias for \`--cache-file=config.cache'
654 -n, --no-create do not create output files
655 --srcdir=DIR find the sources in DIR [configure dir or \`..']
660 Installation directories:
661 --prefix=PREFIX install architecture-independent files in PREFIX
663 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
666 By default, \`make install' will install all the files in
667 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
668 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
669 for instance \`--prefix=\$HOME'.
671 For better control, use the options below.
673 Fine tuning of the installation directories:
674 --bindir=DIR user executables [EPREFIX/bin]
675 --sbindir=DIR system admin executables [EPREFIX/sbin]
676 --libexecdir=DIR program executables [EPREFIX/libexec]
677 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
678 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
679 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
680 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
681 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
682 --runstatedir=DIR extra definition of runtime data [LOCALSTATEDIR/run]
683 --libdir=DIR object code libraries [EPREFIX/lib]
684 --includedir=DIR C header files [PREFIX/include]
685 --oldincludedir=DIR C header files for non-gcc [/usr/include]
686 --infodir=DIR info documentation [DATAROOTDIR/info]
687 --mandir=DIR man documentation [DATAROOTDIR/man]
693 --program-prefix=PREFIX prepend PREFIX to installed program names
694 --program-suffix=SUFFIX append SUFFIX to installed program names
695 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
698 --build=BUILD configure for building on BUILD [guessed]
699 --host=HOST build programs to run on HOST [BUILD]
700 --target=TARGET configure for building compilers for TARGET [HOST]
704 if test -n "$ac_init_help"; then
709 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
710 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
713 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
714 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
716 --with-rel-version=XXX override derived release version
717 --with-abi-version=XXX override derived ABI version
718 --with-system-type=XXX test: override derived host system-type
719 --without-ada suppress check for Ada compiler, don't build demo
720 --without-cxx do not adjust ncurses bool to match C++
721 --without-cxx-binding do not build C++ binding and demo
722 --disable-db-install suppress install of terminal database
723 --without-manpages suppress install of manpages
724 --without-progs suppress build/install with programs (e.g., tic)
725 --without-tack suppress build/install with tack program
726 --without-tests suppress build/install with test-programs
727 --without-curses-h install curses.h as ncurses.h only
728 --with-config-suffix=X suffixes ncursesXX-config file
729 --with-pkg-config{=path} enable/disable use of pkg-config
730 --with-pkg-config-libdir=XXX use given directory for installing pc-files
731 --enable-pc-files generate and install .pc files for pkg-config
732 --with-pc-suffix suffixes pc-files
733 --enable-mixed-case tic should assume mixed-case filenames
734 --with-install-prefix prefixes actual install-location ($DESTDIR)
735 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
736 --with-build-cc=XXX the build C compiler ($BUILD_CC)
737 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
738 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
739 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
740 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
741 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
742 Options to Specify the Libraries Built/Used:
743 --disable-libtool-version enable to use libtool's incompatible naming scheme
744 --with-libtool generate libraries with libtool
745 --with-shared generate shared-libraries
746 --with-normal generate normal-libraries (default)
747 --with-debug generate debug-libraries (default)
748 --with-profile generate profile-libraries
749 --with-cxx-shared generate C++ shared-libraries
750 --with-lib-prefix override library-prefix
751 --with-termlib generate separate terminfo library
752 --with-ticlib generate separate tic library
753 --enable-rpath use rpath option when generating shared libraries
754 --disable-relink relink shared libraries during install
755 --with-shlib-version=X Specify rel or abi version for shared libs
756 --with-libtool-opts=XXX specify additional libtool options
757 --with-export-syms=XXX limit exported symbols using libtool
758 --with-versioned-syms=X markup versioned symbols using ld
759 --with-gpm use Alessandro Rubini's GPM library
760 --without-dlsym do not use dlsym() to load GPM dynamically
761 --with-pcre2 use PCRE2 for regular-expressions
762 --with-sysmouse use sysmouse (FreeBSD console)
763 --disable-lib-suffixes disable library suffixes
764 --disable-rpath-hack don't add rpath options for additional libraries
765 --disable-pkg-ldflags disable extra LDFLAGS for package-scripts
766 Fine-Tuning Your Configuration:
767 --with-extra-suffix=X append extra suffix to header/library paths
768 --disable-overwrite put headers in subdir, omit link to -lcurses
769 --disable-database do not use terminfo, only fallbacks/termcap
770 --with-database=XXX specify terminfo source to install
771 --with-hashed-db specify hashed-database library
772 --with-fallbacks=XXX specify list of fallback terminal descriptions
773 --with-tic-path=XXX specify path of tic for fallbacks
774 --with-infocmp-path=XXX specify path of infocmp for fallbacks
775 --without-xterm-new specify if xterm terminfo should be old version
776 --with-xterm-kbs=XXX specify if xterm backspace sends BS or DEL
777 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
778 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
779 --disable-big-core assume machine has little memory
780 --disable-big-strings assume compiler has only standard-size strings
781 --enable-termcap compile in termcap fallback support
782 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
783 --enable-getcap fast termcap load, no xrefs to terminfo
784 --enable-getcap-cache cache translated termcaps in ~/.terminfo
785 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
786 --disable-root-environ restrict root use of ncurses environment variables
787 --disable-root-access restrict file-access when running setuid
788 --enable-symlinks make tic use symbolic links not hard links
789 --enable-broken_linker compile with broken-linker support code
790 --enable-bsdpad recognize BSD-style prefix padding
791 --enable-widec compile with wide-char/UTF-8 code
792 --disable-lp64 allow chtype to be long (ignore _LP64)
793 --disable-largefile omit support for large files
794 --disable-tparm-varargs compile tparm() without varargs interface
795 --disable-tic-depends link tic library without explicit dependency on ncurses library
796 --enable-wattr-macros enable wattr* macros
797 --with-x11-rgb=FILE file containing X11 rgb information (EPREFIX/lib/X11/rgb.txt)
798 --with-bool=TYPE override fallback type of bool variable
799 --with-caps=alt compile with alternate Caps file
800 --with-chtype=TYPE override type of chtype
801 --with-ospeed=TYPE override type of ospeed variable
802 --with-mmask-t=TYPE override type of mmask_t
803 --with-ccharw-max=XXX override size CCHARW_MAX
804 --enable-signed-char compile using signed Boolean's in term.h
805 --with-tparm-arg=TYPE override parameter type of tparm
806 --with-rcs-ids compile-in RCS identifiers
807 Options to Specify How Manpages are Installed:
808 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
809 optionally formatted/catonly, e.g., gzip,formatted
810 --with-manpage-renames specify manpage-renaming
811 --with-manpage-aliases specify manpage-aliases using .so
812 --with-manpage-symlinks specify manpage-aliases using symlinks
813 --with-manpage-tbl specify manpage processing with tbl
815 --disable-ext-funcs disable function-extensions
816 --enable-sp-funcs enable SCREEN-extensions
817 --enable-term-driver enable terminal-driver
818 --enable-const compile with extra/non-standard const
819 --enable-ext-colors compile for 256-color support
820 --enable-ext-mouse compile for extended mouse-encoding
821 --enable-ext-putwin compile with extended putwin/screendump
822 --enable-no-padding compile with $NCURSES_NO_PADDING code
823 --enable-sigwinch compile with SIGWINCH handler
824 --enable-tcap-names compile with user-definable terminal capabilities
826 --with-pthread use POSIX thread library
827 --enable-pthreads-eintr enable EINTR in wgetch with pthreads
828 --enable-weak-symbols enable weak-symbols for pthreads
829 --enable-reentrant compile with reentrant code
830 --enable-opaque-curses make curses WINDOW, etc., "opaque"
831 --enable-opaque-form make form-library structures "opaque"
832 --enable-opaque-menu make menu-library structures "opaque"
833 --enable-opaque-panel make panel-library structures "opaque"
834 --with-wrap-prefix=XXX override prefix used for public variables
836 --without-develop disable development options
837 --enable-hard-tabs compile with hard-tabs code
838 --enable-xmc-glitch compile with support for xmc (magic-cookie)
840 --disable-assumed-color do not assume anything about default-colors
841 --disable-hashmap compile without hashmap scrolling-optimization
842 --enable-colorfgbg compile-in experimental $COLORFGBG code
843 --enable-fvisibility compile with -fvisibility=hidden
844 --enable-interop compile-in interop bindings
845 --enable-safe-sprintf compile with experimental safe-sprintf code
846 --disable-scroll-hints compile without scroll-hints code
847 --enable-wgetch-events compile with wgetch-events code
848 --enable-exp-win32 compile with experimental-Windows driver
849 Testing/development Options:
850 --disable-echo do not display "compiling" commands
851 --disable-stripping do not strip (debug info) installed executables
852 --enable-warnings test: turn on gcc compiler warnings
853 --enable-stdnoreturn enable C11 _Noreturn feature for diagnostics
854 --enable-string-hacks work around bogus compiler/loader warnings
855 --enable-assertions test: turn on generation of assertion code
856 --with-dmalloc test: use Gray Watson's dmalloc library
857 --with-dbmalloc test: use Conor Cahill's dbmalloc library
858 --with-valgrind test: use valgrind
859 --disable-leaks test: free permanent memory, analyze leaks
860 --enable-expanded test: generate functions for certain macros
861 --disable-macros test: use functions rather than macros
862 --with-trace test: add trace() function to all models of ncurses
863 --disable-gnat-projects test: disable GNAT projects even if usable
865 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
866 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/share/ada/adainclude)
867 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
868 --with-ada-sharedlib=soname build shared-library (requires GNAT projects)
869 --with-ada-libname=XXX override default Ada library-name
870 --with-form-libname=XXX override form basename of library
871 --with-menu-libname=XXX override menu basename of library
872 --with-panel-libname=XXX override panel basename of library
873 --with-cxx-libname=XXX override ncurses++ basename of library
875 Some influential environment variables:
876 CC C compiler command
877 CFLAGS C compiler flags
878 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
879 nonstandard directory <lib dir>
880 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
881 headers in a nonstandard directory <include dir>
883 CXX C++ compiler command
884 CXXFLAGS C++ compiler flags
885 CXXCPP C++ preprocessor
887 Use these variables to override the choices made by `configure' or to help
888 it to find libraries and programs with nonstandard names/locations.
893 if test "$ac_init_help" = "recursive"; then
894 # If there are subdirs, report their specific --help.
896 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
898 # A "../" for each directory in /$ac_subdir.
899 ac_dots=`echo "$ac_subdir" |
900 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
903 .) # No --srcdir option. We are building in place.
904 ac_sub_srcdir="$srcdir" ;;
905 [\\/]* | ?:[\\/]* ) # Absolute path.
906 ac_sub_srcdir="$srcdir/$ac_subdir" ;;
908 ac_sub_srcdir="$ac_dots$srcdir/$ac_subdir" ;;
911 # Check for guested configure; otherwise get Cygnus style configure.
912 if test -f "$ac_sub_srcdir/configure.gnu"; then
914 $SHELL "$ac_sub_srcdir/configure.gnu" --help=recursive
915 elif test -f "$ac_sub_srcdir/configure"; then
917 $SHELL "$ac_sub_srcdir/configure" --help=recursive
918 elif test -f "$ac_sub_srcdir/configure.ac" ||
919 test -f "$ac_sub_srcdir/configure.in"; then
921 "$ac_configure" --help
923 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
929 test -n "$ac_init_help" && exit 0
930 if "$ac_init_version"; then
933 Copyright 2003-2020,2021 Thomas E. Dickey
934 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
935 Free Software Foundation, Inc.
936 This configure script is free software; the Free Software Foundation
937 gives unlimited permission to copy, distribute and modify it.
943 This file contains any messages produced by compilers while
944 running configure, to aid debugging if configure makes a mistake.
946 It was created by $as_me, which was
947 generated by GNU Autoconf 2.52.20210509. Invocation command line was
958 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
959 uname -m = `(uname -m) 2>/dev/null || echo unknown`
960 uname -r = `(uname -r) 2>/dev/null || echo unknown`
961 uname -s = `(uname -s) 2>/dev/null || echo unknown`
962 uname -v = `(uname -v) 2>/dev/null || echo unknown`
964 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
965 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
967 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
968 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
969 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
970 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
971 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
972 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
973 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
987 # Keep a trace of the command line.
988 # Strip out --no-create and --no-recursion so they do not pile up.
989 # Also quote any args containing shell meta-characters.
995 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
996 | --no-cr | --no-c) ;;
997 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
999 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1000 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
1001 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1003 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
1006 # Get rid of the leading space.
1009 # When interrupted or exit'd, cleanup temporary files, and complete
1010 # config.log. We remove comments because anyway the quotes in there
1011 # would cause problems or look ugly.
1012 trap 'exit_status=$?
1013 # Save into config.log some information that might help in debugging.
1015 echo "## ----------------- ##" >&5
1016 echo "## Cache variables. ##" >&5
1017 echo "## ----------------- ##" >&5
1019 # The following way of writing the cache mishandles newlines in values,
1022 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1025 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1026 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1030 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1034 sed "/^$/d" confdefs.h >conftest.log
1035 if test -s conftest.log; then
1037 echo "## ------------ ##" >&5
1038 echo "## confdefs.h. ##" >&5
1039 echo "## ------------ ##" >&5
1041 cat conftest.log >&5
1044 test "$ac_signal" != 0 &&
1045 echo "$as_me: caught signal $ac_signal" >&5
1046 echo "$as_me: exit $exit_status" >&5
1047 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1050 for ac_signal in 1 2 13 15; do
1051 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' "$ac_signal"
1055 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1056 rm -rf conftest* confdefs.h
1057 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1060 # Let the site file select an alternate cache file if it wants to.
1061 # Prefer explicitly selected file to automatically selected ones.
1062 if test -z "$CONFIG_SITE"; then
1063 if test "x$prefix" != xNONE; then
1064 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1066 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1069 for ac_site_file in $CONFIG_SITE; do
1070 if test -r "$ac_site_file"; then
1071 { echo "$as_me:1071: loading site script $ac_site_file" >&5
1072 echo "$as_me: loading site script $ac_site_file" >&6;}
1073 cat "$ac_site_file" >&5
1078 if test -r "$cache_file"; then
1079 # Some versions of bash will fail to source /dev/null (special
1080 # files actually), so we avoid doing that.
1081 if test -f "$cache_file"; then
1082 { echo "$as_me:1082: loading cache $cache_file" >&5
1083 echo "$as_me: loading cache $cache_file" >&6;}
1085 [\\/]* | ?:[\\/]* ) . $cache_file;;
1086 *) . ./$cache_file;;
1090 { echo "$as_me:1090: creating cache $cache_file" >&5
1091 echo "$as_me: creating cache $cache_file" >&6;}
1095 # Check that the precious variables saved in the cache have kept the same
1097 ac_cache_corrupted=false
1098 for ac_var in `(set) 2>&1 |
1099 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1100 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1101 eval ac_new_set=\$ac_env_${ac_var}_set
1102 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1103 eval ac_new_val="\$ac_env_${ac_var}_value"
1104 case "$ac_old_set,$ac_new_set" in
1106 { echo "$as_me:1106: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1107 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1108 ac_cache_corrupted=: ;;
1110 { echo "$as_me:1110: error: \`$ac_var' was not set in the previous run" >&5
1111 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1112 ac_cache_corrupted=: ;;
1115 if test "x$ac_old_val" != "x$ac_new_val"; then
1116 { echo "$as_me:1116: error: \`$ac_var' has changed since the previous run:" >&5
1117 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1118 { echo "$as_me:1118: former value: $ac_old_val" >&5
1119 echo "$as_me: former value: $ac_old_val" >&2;}
1120 { echo "$as_me:1120: current value: $ac_new_val" >&5
1121 echo "$as_me: current value: $ac_new_val" >&2;}
1122 ac_cache_corrupted=:
1125 # Pass precious variables to config.status. It doesn't matter if
1126 # we pass some twice (in addition to the command line arguments).
1127 if test "$ac_new_set" = set; then
1128 case "$ac_new_val" in
1129 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1130 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1131 ac_configure_args="$ac_configure_args '$ac_arg'"
1133 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1138 if "$ac_cache_corrupted"; then
1139 { echo "$as_me:1139: error: changes in the environment can compromise the build" >&5
1140 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1141 { { echo "$as_me:1141: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1142 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1143 { (exit 1); exit 1; }; }
1147 ac_cpp='$CPP $CPPFLAGS'
1148 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1149 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1151 ac_main_return="return"
1153 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1155 ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1167 echo "#! $SHELL" >conftest.sh
1168 echo "exit 0" >>conftest.sh
1169 chmod +x conftest.sh
1170 if { (echo "$as_me:1170: PATH=\".;.\"; conftest.sh") >&5
1171 (PATH=".;."; conftest.sh) 2>&5
1173 echo "$as_me:1173: \$? = $ac_status" >&5
1174 (exit "$ac_status"); }; then
1175 ac_path_separator=';'
1179 PATH_SEPARATOR="$ac_path_separator"
1182 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1186 for ac_prog in ggrep grep
1188 # Extract the first word of "$ac_prog", so it can be a program name with args.
1189 set dummy $ac_prog; ac_word=$2
1190 echo "$as_me:1190: checking for $ac_word" >&5
1191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1192 if test "${ac_cv_prog_GREP+set}" = set; then
1193 echo $ECHO_N "(cached) $ECHO_C" >&6
1195 if test -n "$GREP"; then
1196 ac_cv_prog_GREP="$GREP" # Let the user override the test.
1198 ac_save_IFS=$IFS; IFS=$ac_path_separator
1200 for ac_dir in $ac_dummy; do
1202 test -z "$ac_dir" && ac_dir=.
1203 $as_executable_p "$ac_dir/$ac_word" || continue
1204 ac_cv_prog_GREP="$ac_prog"
1205 echo "$as_me:1205: found $ac_dir/$ac_word" >&5
1211 GREP=$ac_cv_prog_GREP
1212 if test -n "$GREP"; then
1213 echo "$as_me:1213: result: $GREP" >&5
1214 echo "${ECHO_T}$GREP" >&6
1216 echo "$as_me:1216: result: no" >&5
1217 echo "${ECHO_T}no" >&6
1220 test -n "$GREP" && break
1222 test -n "$GREP" || GREP=": "
1224 echo "$as_me:1224: checking for egrep" >&5
1225 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1226 if test "${ac_cv_path_EGREP+set}" = set; then
1227 echo $ECHO_N "(cached) $ECHO_C" >&6
1229 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
1230 then ac_cv_path_EGREP="$GREP -E"
1232 for ac_prog in gegrep egrep
1234 # Extract the first word of "$ac_prog", so it can be a program name with args.
1235 set dummy $ac_prog; ac_word=$2
1236 echo "$as_me:1236: checking for $ac_word" >&5
1237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1238 if test "${ac_cv_path_EGREP+set}" = set; then
1239 echo $ECHO_N "(cached) $ECHO_C" >&6
1243 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
1246 ac_save_IFS=$IFS; IFS=$ac_path_separator
1248 for ac_dir in $ac_dummy; do
1250 test -z "$ac_dir" && ac_dir=.
1251 if $as_executable_p "$ac_dir/$ac_word"; then
1252 ac_cv_path_EGREP="$ac_dir/$ac_word"
1253 echo "$as_me:1253: found $ac_dir/$ac_word" >&5
1261 EGREP=$ac_cv_path_EGREP
1263 if test -n "$EGREP"; then
1264 echo "$as_me:1264: result: $EGREP" >&5
1265 echo "${ECHO_T}$EGREP" >&6
1267 echo "$as_me:1267: result: no" >&5
1268 echo "${ECHO_T}no" >&6
1271 test -n "$EGREP" && break
1273 test -n "$EGREP" || EGREP=": "
1275 test "x$ac_cv_path_EGREP" = "x:" && { { echo "$as_me:1275: error: cannot find workable egrep" >&5
1276 echo "$as_me: error: cannot find workable egrep" >&2;}
1277 { (exit 1); exit 1; }; }
1280 echo "$as_me:1280: result: $ac_cv_path_EGREP" >&5
1281 echo "${ECHO_T}$ac_cv_path_EGREP" >&6
1282 EGREP="$ac_cv_path_EGREP"
1284 NCURSES_MAJOR="`${EGREP-egrep} '^NCURSES_MAJOR[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`"
1285 NCURSES_MINOR="`${EGREP-egrep} '^NCURSES_MINOR[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`"
1286 NCURSES_PATCH="`${EGREP-egrep} '^NCURSES_PATCH[ ]*=' "$srcdir/dist.mk" | sed -e 's/^[^0-9]*//'`"
1287 cf_cv_abi_version=${NCURSES_MAJOR}
1288 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1289 cf_cv_timestamp=`date`
1290 echo "$as_me:1290: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1291 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1293 if test -f "$srcdir/VERSION" ; then
1294 echo "$as_me:1294: checking for package version" >&5
1295 echo $ECHO_N "checking for package version... $ECHO_C" >&6
1297 # if there are not enough fields, cut returns the last one...
1298 cf_field1=`sed -e '2,$d' "$srcdir/VERSION" |cut -f1`
1299 cf_field2=`sed -e '2,$d' "$srcdir/VERSION" |cut -f2`
1300 cf_field3=`sed -e '2,$d' "$srcdir/VERSION" |cut -f3`
1302 # this is how CF_BUNDLED_INTL uses $VERSION:
1303 VERSION="$cf_field1"
1305 VERSION_MAJOR=`echo "$cf_field2" | sed -e 's/\..*//'`
1306 test -z "$VERSION_MAJOR" && { { echo "$as_me:1306: error: missing major-version" >&5
1307 echo "$as_me: error: missing major-version" >&2;}
1308 { (exit 1); exit 1; }; }
1310 VERSION_MINOR=`echo "$cf_field2" | sed -e 's/^[^.]*\.//' -e 's/-.*//'`
1311 test -z "$VERSION_MINOR" && { { echo "$as_me:1311: error: missing minor-version" >&5
1312 echo "$as_me: error: missing minor-version" >&2;}
1313 { (exit 1); exit 1; }; }
1315 echo "$as_me:1315: result: ${VERSION_MAJOR}.${VERSION_MINOR}" >&5
1316 echo "${ECHO_T}${VERSION_MAJOR}.${VERSION_MINOR}" >&6
1318 echo "$as_me:1318: checking for package patch date" >&5
1319 echo $ECHO_N "checking for package patch date... $ECHO_C" >&6
1320 VERSION_PATCH=`echo "$cf_field3" | sed -e 's/^[^-]*-//'`
1321 case .$VERSION_PATCH in
1323 { { echo "$as_me:1323: error: missing patch-date $VERSION_PATCH" >&5
1324 echo "$as_me: error: missing patch-date $VERSION_PATCH" >&2;}
1325 { (exit 1); exit 1; }; }
1327 (.[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
1330 { { echo "$as_me:1330: error: illegal patch-date $VERSION_PATCH" >&5
1331 echo "$as_me: error: illegal patch-date $VERSION_PATCH" >&2;}
1332 { (exit 1); exit 1; }; }
1335 echo "$as_me:1335: result: $VERSION_PATCH" >&5
1336 echo "${ECHO_T}$VERSION_PATCH" >&6
1338 { { echo "$as_me:1338: error: did not find $srcdir/VERSION" >&5
1339 echo "$as_me: error: did not find $srcdir/VERSION" >&2;}
1340 { (exit 1); exit 1; }; }
1343 # show the actual data that we have for versions:
1344 test -n "$verbose" && echo " ABI VERSION $VERSION" 1>&6
1346 echo "${as_me:-configure}:1346: testing ABI VERSION $VERSION ..." 1>&5
1348 test -n "$verbose" && echo " VERSION_MAJOR $VERSION_MAJOR" 1>&6
1350 echo "${as_me:-configure}:1350: testing VERSION_MAJOR $VERSION_MAJOR ..." 1>&5
1352 test -n "$verbose" && echo " VERSION_MINOR $VERSION_MINOR" 1>&6
1354 echo "${as_me:-configure}:1354: testing VERSION_MINOR $VERSION_MINOR ..." 1>&5
1356 test -n "$verbose" && echo " VERSION_PATCH $VERSION_PATCH" 1>&6
1358 echo "${as_me:-configure}:1358: testing VERSION_PATCH $VERSION_PATCH ..." 1>&5
1363 cat >>confdefs.h <<EOF
1364 #define PACKAGE "$PACKAGE"
1367 cf_PACKAGE=`echo "$cf_PACKAGE" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
1369 cat >>confdefs.h <<EOF
1370 #define ${cf_PACKAGE}_VERSION "${VERSION_MAJOR}.${VERSION_MINOR}"
1373 cat >>confdefs.h <<EOF
1374 #define ${cf_PACKAGE}_PATCHDATE ${VERSION_PATCH}
1377 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1379 # Check whether --with-rel-version or --without-rel-version was given.
1380 if test "${with_rel_version+set}" = set; then
1381 withval="$with_rel_version"
1382 { echo "$as_me:1382: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1383 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1384 cf_cv_rel_version=$withval
1387 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1388 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1390 if test -n "$NCURSES_MAJOR" ; then
1391 case $NCURSES_MAJOR in
1395 { { echo "$as_me:1395: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1396 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1397 { (exit 1); exit 1; }; }
1401 { { echo "$as_me:1401: error: Release major-version value is empty" >&5
1402 echo "$as_me: error: Release major-version value is empty" >&2;}
1403 { (exit 1); exit 1; }; }
1406 if test -n "$NCURSES_MINOR" ; then
1407 case $NCURSES_MINOR in
1411 { { echo "$as_me:1411: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1412 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1413 { (exit 1); exit 1; }; }
1417 { { echo "$as_me:1417: error: Release minor-version value is empty" >&5
1418 echo "$as_me: error: Release minor-version value is empty" >&2;}
1419 { (exit 1); exit 1; }; }
1422 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1424 # Check whether --with-abi-version or --without-abi-version was given.
1425 if test "${with_abi_version+set}" = set; then
1426 withval="$with_abi_version"
1428 if test "x$cf_cv_abi_version" != "x$withval"
1430 { echo "$as_me:1430: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1431 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1432 case "$cf_cv_rel_version" in
1434 cf_cv_rel_version=$withval.0
1437 cf_cv_rel_version=$withval.9 # FIXME: should be 10 as of 6.0 release
1441 cf_cv_abi_version=$withval
1444 if test -n "$cf_cv_abi_version" ; then
1445 case $cf_cv_abi_version in
1449 { { echo "$as_me:1449: error: ABI version is not a number: $cf_cv_abi_version" >&5
1450 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1451 { (exit 1); exit 1; }; }
1455 { { echo "$as_me:1455: error: ABI version value is empty" >&5
1456 echo "$as_me: error: ABI version value is empty" >&2;}
1457 { (exit 1); exit 1; }; }
1460 if test "x$cf_cv_abi_version" != "x$with_abi_version"
1462 case "$cf_cv_rel_version" in
1464 cf_cv_rel_version=$with_abi_version.0
1470 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1471 if test -f "$ac_dir/install-sh"; then
1473 ac_install_sh="$ac_aux_dir/install-sh -c"
1475 elif test -f "$ac_dir/install.sh"; then
1477 ac_install_sh="$ac_aux_dir/install.sh -c"
1479 elif test -f "$ac_dir/shtool"; then
1481 ac_install_sh="$ac_aux_dir/shtool install -c"
1485 if test -z "$ac_aux_dir"; then
1486 { { echo "$as_me:1486: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1487 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1488 { (exit 1); exit 1; }; }
1490 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1491 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1492 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1494 # Make sure we can run config.sub.
1495 $ac_config_sub sun4 >/dev/null 2>&1 ||
1496 { { echo "$as_me:1496: error: cannot run $ac_config_sub" >&5
1497 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1498 { (exit 1); exit 1; }; }
1500 echo "$as_me:1500: checking build system type" >&5
1501 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1502 if test "${ac_cv_build+set}" = set; then
1503 echo $ECHO_N "(cached) $ECHO_C" >&6
1505 ac_cv_build_alias=$build_alias
1506 test -z "$ac_cv_build_alias" &&
1507 ac_cv_build_alias=`$ac_config_guess`
1508 test -z "$ac_cv_build_alias" &&
1509 { { echo "$as_me:1509: error: cannot guess build type; you must specify one" >&5
1510 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1511 { (exit 1); exit 1; }; }
1512 ac_cv_build=`$ac_config_sub "$ac_cv_build_alias"` ||
1513 { { echo "$as_me:1513: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1514 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1515 { (exit 1); exit 1; }; }
1518 echo "$as_me:1518: result: $ac_cv_build" >&5
1519 echo "${ECHO_T}$ac_cv_build" >&6
1521 build_cpu=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1522 build_vendor=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1523 build_os=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1525 echo "$as_me:1525: checking host system type" >&5
1526 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1527 if test "${ac_cv_host+set}" = set; then
1528 echo $ECHO_N "(cached) $ECHO_C" >&6
1530 ac_cv_host_alias=$host_alias
1531 test -z "$ac_cv_host_alias" &&
1532 ac_cv_host_alias=$ac_cv_build_alias
1533 ac_cv_host=`$ac_config_sub "$ac_cv_host_alias"` ||
1534 { { echo "$as_me:1534: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1535 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1536 { (exit 1); exit 1; }; }
1539 echo "$as_me:1539: result: $ac_cv_host" >&5
1540 echo "${ECHO_T}$ac_cv_host" >&6
1542 host_cpu=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1543 host_vendor=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1544 host_os=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1546 if test -f "$srcdir/config.guess" || test -f "$ac_aux_dir/config.guess" ; then
1547 echo "$as_me:1547: checking target system type" >&5
1548 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1549 if test "${ac_cv_target+set}" = set; then
1550 echo $ECHO_N "(cached) $ECHO_C" >&6
1552 ac_cv_target_alias=$target_alias
1553 test "x$ac_cv_target_alias" = "x" &&
1554 ac_cv_target_alias=$ac_cv_host_alias
1555 ac_cv_target=`$ac_config_sub "$ac_cv_target_alias"` ||
1556 { { echo "$as_me:1556: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1557 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1558 { (exit 1); exit 1; }; }
1561 echo "$as_me:1561: result: $ac_cv_target" >&5
1562 echo "${ECHO_T}$ac_cv_target" >&6
1563 target=$ac_cv_target
1564 target_cpu=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1565 target_vendor=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1566 target_os=`echo "$ac_cv_target" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1568 # The aliases save the names the user supplied, while $host etc.
1569 # will get canonicalized.
1570 test -n "$target_alias" &&
1571 test "$program_prefix$program_suffix$program_transform_name" = \
1573 program_prefix=${target_alias}-
1574 system_name="$host_os"
1576 system_name="`(uname -s -r) 2>/dev/null`"
1577 if test -z "$system_name" ; then
1578 system_name="`(hostname) 2>/dev/null`"
1581 test -n "$system_name" &&
1582 cat >>confdefs.h <<EOF
1583 #define SYSTEM_NAME "$system_name"
1586 if test "${cf_cv_system_name+set}" = set; then
1587 echo $ECHO_N "(cached) $ECHO_C" >&6
1589 cf_cv_system_name="$system_name"
1592 test -z "$system_name" && system_name="$cf_cv_system_name"
1593 test -n "$cf_cv_system_name" && echo "$as_me:1593: result: Configuring for $cf_cv_system_name" >&5
1594 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1596 if test ".$system_name" != ".$cf_cv_system_name" ; then
1597 echo "$as_me:1597: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1598 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1599 { { echo "$as_me:1599: error: \"Please remove config.cache and try again.\"" >&5
1600 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1601 { (exit 1); exit 1; }; }
1604 # Check whether --with-system-type or --without-system-type was given.
1605 if test "${with_system_type+set}" = set; then
1606 withval="$with_system_type"
1607 { echo "$as_me:1607: WARNING: overriding system type to $withval" >&5
1608 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1609 cf_cv_system_name=$withval
1614 ### Save the given $CFLAGS to allow user-override.
1615 cf_user_CFLAGS="$CFLAGS"
1617 ### Default install-location
1618 echo "$as_me:1618: checking for fgrep" >&5
1619 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
1620 if test "${ac_cv_path_FGREP+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1623 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
1624 then ac_cv_path_FGREP="$GREP -F"
1626 for ac_prog in gfgrep fgrep
1628 # Extract the first word of "$ac_prog", so it can be a program name with args.
1629 set dummy $ac_prog; ac_word=$2
1630 echo "$as_me:1630: checking for $ac_word" >&5
1631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1632 if test "${ac_cv_path_FGREP+set}" = set; then
1633 echo $ECHO_N "(cached) $ECHO_C" >&6
1637 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
1640 ac_save_IFS=$IFS; IFS=$ac_path_separator
1642 for ac_dir in $ac_dummy; do
1644 test -z "$ac_dir" && ac_dir=.
1645 if $as_executable_p "$ac_dir/$ac_word"; then
1646 ac_cv_path_FGREP="$ac_dir/$ac_word"
1647 echo "$as_me:1647: found $ac_dir/$ac_word" >&5
1655 FGREP=$ac_cv_path_FGREP
1657 if test -n "$FGREP"; then
1658 echo "$as_me:1658: result: $FGREP" >&5
1659 echo "${ECHO_T}$FGREP" >&6
1661 echo "$as_me:1661: result: no" >&5
1662 echo "${ECHO_T}no" >&6
1665 test -n "$FGREP" && break
1667 test -n "$FGREP" || FGREP=": "
1669 test "x$ac_cv_path_FGREP" = "x:" && { { echo "$as_me:1669: error: cannot find workable fgrep" >&5
1670 echo "$as_me: error: cannot find workable fgrep" >&2;}
1671 { (exit 1); exit 1; }; }
1674 echo "$as_me:1674: result: $ac_cv_path_FGREP" >&5
1675 echo "${ECHO_T}$ac_cv_path_FGREP" >&6
1676 FGREP="$ac_cv_path_FGREP"
1678 echo "$as_me:1678: checking for prefix" >&5
1679 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1680 if test "x$prefix" = "xNONE" ; then
1681 case "$cf_cv_system_name" in
1682 # non-vendor systems don't have a conflict
1683 (openbsd*|freebsd*|mirbsd*|linux*|cygwin*|msys*|k*bsd*-gnu|mingw*)
1686 (*) prefix=$ac_default_prefix
1690 echo "$as_me:1690: result: $prefix" >&5
1691 echo "${ECHO_T}$prefix" >&6
1693 if test "x$prefix" = "xNONE" ; then
1694 echo "$as_me:1694: checking for default include-directory" >&5
1695 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1696 test -n "$verbose" && echo 1>&6
1699 "$includedir/ncurses" \
1701 "$prefix/include/ncurses" \
1702 /usr/local/include \
1703 /usr/local/include/ncurses \
1705 /usr/include/ncurses
1707 cf_dir=`eval echo "$cf_symbol"`
1708 if test -f "$cf_dir/curses.h" ; then
1709 if ( ${FGREP-fgrep} NCURSES_VERSION "$cf_dir/curses.h" >/dev/null 2>&1 ) ; then
1710 includedir="$cf_symbol"
1711 test -n "$verbose" && echo $ECHO_N " found " 1>&6
1715 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1717 echo "$as_me:1717: result: $includedir" >&5
1718 echo "${ECHO_T}$includedir" >&6
1721 ### Defaults for ncurses ABI
1723 case x$cf_cv_abi_version in
1725 cf_dft_ext_colors=yes
1726 cf_dft_ext_const=yes
1727 cf_dft_ext_mouse=yes
1728 cf_dft_ext_putwin=yes
1729 cf_dft_ext_spfuncs=yes
1730 cf_dft_filter_syms=yes
1731 cf_dft_chtype=uint32_t
1732 cf_dft_mmask_t=uint32_t
1734 cf_dft_tparm_arg=intptr_t
1735 cf_dft_with_lp64=yes
1738 cf_dft_ext_colors=no
1741 cf_dft_ext_putwin=no
1742 cf_dft_ext_spfuncs=no
1743 cf_dft_filter_syms=no
1747 cf_dft_tparm_arg=long
1752 ### Checks for programs.
1754 # Check whether --with-ada or --without-ada was given.
1755 if test "${with_ada+set}" = set; then
1757 cf_with_ada=$withval
1762 if test "x$cf_with_ada" = xyes
1764 cf_prog_cc="gnatgcc gcc cc"
1770 ac_cpp='$CPP $CPPFLAGS'
1771 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1772 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1774 ac_main_return="return"
1775 if test -n "$ac_tool_prefix"; then
1776 for ac_prog in $cf_prog_cc
1778 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1779 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1780 echo "$as_me:1780: checking for $ac_word" >&5
1781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1782 if test "${ac_cv_prog_CC+set}" = set; then
1783 echo $ECHO_N "(cached) $ECHO_C" >&6
1785 if test -n "$CC"; then
1786 ac_cv_prog_CC="$CC" # Let the user override the test.
1788 ac_save_IFS=$IFS; IFS=$ac_path_separator
1790 for ac_dir in $ac_dummy; do
1792 test -z "$ac_dir" && ac_dir=.
1793 $as_executable_p "$ac_dir/$ac_word" || continue
1794 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1795 echo "$as_me:1795: found $ac_dir/$ac_word" >&5
1802 if test -n "$CC"; then
1803 echo "$as_me:1803: result: $CC" >&5
1804 echo "${ECHO_T}$CC" >&6
1806 echo "$as_me:1806: result: no" >&5
1807 echo "${ECHO_T}no" >&6
1810 test -n "$CC" && break
1813 if test -z "$CC"; then
1815 for ac_prog in $cf_prog_cc
1817 # Extract the first word of "$ac_prog", so it can be a program name with args.
1818 set dummy $ac_prog; ac_word=$2
1819 echo "$as_me:1819: checking for $ac_word" >&5
1820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1821 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1822 echo $ECHO_N "(cached) $ECHO_C" >&6
1824 if test -n "$ac_ct_CC"; then
1825 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1827 ac_save_IFS=$IFS; IFS=$ac_path_separator
1829 for ac_dir in $ac_dummy; do
1831 test -z "$ac_dir" && ac_dir=.
1832 $as_executable_p "$ac_dir/$ac_word" || continue
1833 ac_cv_prog_ac_ct_CC="$ac_prog"
1834 echo "$as_me:1834: found $ac_dir/$ac_word" >&5
1840 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1841 if test -n "$ac_ct_CC"; then
1842 echo "$as_me:1842: result: $ac_ct_CC" >&5
1843 echo "${ECHO_T}$ac_ct_CC" >&6
1845 echo "$as_me:1845: result: no" >&5
1846 echo "${ECHO_T}no" >&6
1849 test -n "$ac_ct_CC" && break
1855 test -z "$CC" && { { echo "$as_me:1855: error: no acceptable cc found in \$PATH" >&5
1856 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1857 { (exit 1); exit 1; }; }
1859 # Provide some information about the compiler.
1860 echo "$as_me:1860:" \
1861 "checking for C compiler version" >&5
1862 ac_compiler=`set X $ac_compile; echo "$2"`
1863 { (eval echo "$as_me:1863: \"$ac_compiler --version </dev/null >&5\"") >&5
1864 (eval $ac_compiler --version </dev/null >&5) 2>&5
1866 echo "$as_me:1866: \$? = $ac_status" >&5
1867 (exit "$ac_status"); }
1868 { (eval echo "$as_me:1868: \"$ac_compiler -v </dev/null >&5\"") >&5
1869 (eval $ac_compiler -v </dev/null >&5) 2>&5
1871 echo "$as_me:1871: \$? = $ac_status" >&5
1872 (exit "$ac_status"); }
1873 { (eval echo "$as_me:1873: \"$ac_compiler -V </dev/null >&5\"") >&5
1874 (eval $ac_compiler -V </dev/null >&5) 2>&5
1876 echo "$as_me:1876: \$? = $ac_status" >&5
1877 (exit "$ac_status"); }
1879 cat >"conftest.$ac_ext" <<_ACEOF
1880 #line 1880 "configure"
1881 #include "confdefs.h"
1891 ac_clean_files_save=$ac_clean_files
1892 ac_clean_files="$ac_clean_files a.out a.exe"
1893 # Try to create an executable without -o first, disregard a.out.
1894 # It will help us diagnose broken compilers, and finding out an intuition
1896 echo "$as_me:1896: checking for C compiler default output" >&5
1897 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1898 ac_link_default=`echo "$ac_link" | sed 's/ -o *"conftest[^"]*"//'`
1899 if { (eval echo "$as_me:1899: \"$ac_link_default\"") >&5
1900 (eval $ac_link_default) 2>&5
1902 echo "$as_me:1902: \$? = $ac_status" >&5
1903 (exit "$ac_status"); }; then
1904 # Find the output, starting from the most likely. This scheme is
1905 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1907 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1908 ls a.out conftest 2>/dev/null;
1909 ls a.* conftest.* 2>/dev/null`; do
1911 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1912 a.out ) # We found the default executable, but exeext='' is most
1915 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1916 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1923 echo "$as_me: failed program was:" >&5
1924 cat "conftest.$ac_ext" >&5
1925 { { echo "$as_me:1925: error: C compiler cannot create executables" >&5
1926 echo "$as_me: error: C compiler cannot create executables" >&2;}
1927 { (exit 77); exit 77; }; }
1930 ac_exeext=$ac_cv_exeext
1931 echo "$as_me:1931: result: $ac_file" >&5
1932 echo "${ECHO_T}$ac_file" >&6
1934 # Check the compiler produces executables we can run. If not, either
1935 # the compiler is broken, or we cross compile.
1936 echo "$as_me:1936: checking whether the C compiler works" >&5
1937 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1938 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1939 # If not cross compiling, check that we can run a simple program.
1940 if test "$cross_compiling" != yes; then
1941 if { ac_try='./$ac_file'
1942 { (eval echo "$as_me:1942: \"$ac_try\"") >&5
1945 echo "$as_me:1945: \$? = $ac_status" >&5
1946 (exit "$ac_status"); }; }; then
1949 if test "$cross_compiling" = maybe; then
1952 { { echo "$as_me:1952: error: cannot run C compiled programs.
1953 If you meant to cross compile, use \`--host'." >&5
1954 echo "$as_me: error: cannot run C compiled programs.
1955 If you meant to cross compile, use \`--host'." >&2;}
1956 { (exit 1); exit 1; }; }
1960 echo "$as_me:1960: result: yes" >&5
1961 echo "${ECHO_T}yes" >&6
1963 rm -f a.out a.exe "conftest$ac_cv_exeext"
1964 ac_clean_files=$ac_clean_files_save
1965 # Check the compiler produces executables we can run. If not, either
1966 # the compiler is broken, or we cross compile.
1967 echo "$as_me:1967: checking whether we are cross compiling" >&5
1968 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1969 echo "$as_me:1969: result: $cross_compiling" >&5
1970 echo "${ECHO_T}$cross_compiling" >&6
1972 echo "$as_me:1972: checking for executable suffix" >&5
1973 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1974 if { (eval echo "$as_me:1974: \"$ac_link\"") >&5
1975 (eval $ac_link) 2>&5
1977 echo "$as_me:1977: \$? = $ac_status" >&5
1978 (exit "$ac_status"); }; then
1979 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1980 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1981 # work properly (i.e., refer to `conftest.exe'), while it won't with
1983 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1985 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1986 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1993 { { echo "$as_me:1993: error: cannot compute EXEEXT: cannot compile and link" >&5
1994 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1995 { (exit 1); exit 1; }; }
1998 rm -f "conftest$ac_cv_exeext"
1999 echo "$as_me:1999: result: $ac_cv_exeext" >&5
2000 echo "${ECHO_T}$ac_cv_exeext" >&6
2002 rm -f "conftest.$ac_ext"
2003 EXEEXT=$ac_cv_exeext
2005 echo "$as_me:2005: checking for object suffix" >&5
2006 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2007 if test "${ac_cv_objext+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 cat >"conftest.$ac_ext" <<_ACEOF
2011 #line 2011 "configure"
2012 #include "confdefs.h"
2022 rm -f conftest.o conftest.obj
2023 if { (eval echo "$as_me:2023: \"$ac_compile\"") >&5
2024 (eval $ac_compile) 2>&5
2026 echo "$as_me:2026: \$? = $ac_status" >&5
2027 (exit "$ac_status"); }; then
2028 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2030 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
2031 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2036 echo "$as_me: failed program was:" >&5
2037 cat "conftest.$ac_ext" >&5
2038 { { echo "$as_me:2038: error: cannot compute OBJEXT: cannot compile" >&5
2039 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2040 { (exit 1); exit 1; }; }
2043 rm -f "conftest.$ac_cv_objext" "conftest.$ac_ext"
2045 echo "$as_me:2045: result: $ac_cv_objext" >&5
2046 echo "${ECHO_T}$ac_cv_objext" >&6
2047 OBJEXT=$ac_cv_objext
2049 echo "$as_me:2049: checking whether we are using the GNU C compiler" >&5
2050 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2051 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2054 cat >"conftest.$ac_ext" <<_ACEOF
2055 #line 2055 "configure"
2056 #include "confdefs.h"
2069 rm -f "conftest.$ac_objext"
2070 if { (eval echo "$as_me:2070: \"$ac_compile\"") >&5
2071 (eval $ac_compile) 2>&5
2073 echo "$as_me:2073: \$? = $ac_status" >&5
2074 (exit "$ac_status"); } &&
2075 { ac_try='test -s "conftest.$ac_objext"'
2076 { (eval echo "$as_me:2076: \"$ac_try\"") >&5
2079 echo "$as_me:2079: \$? = $ac_status" >&5
2080 (exit "$ac_status"); }; }; then
2083 echo "$as_me: failed program was:" >&5
2084 cat "conftest.$ac_ext" >&5
2087 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2088 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2091 echo "$as_me:2091: result: $ac_cv_c_compiler_gnu" >&5
2092 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2093 GCC=`test $ac_compiler_gnu = yes && echo yes`
2094 ac_test_CFLAGS=${CFLAGS+set}
2095 ac_save_CFLAGS=$CFLAGS
2097 echo "$as_me:2097: checking whether $CC accepts -g" >&5
2098 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2099 if test "${ac_cv_prog_cc_g+set}" = set; then
2100 echo $ECHO_N "(cached) $ECHO_C" >&6
2102 cat >"conftest.$ac_ext" <<_ACEOF
2103 #line 2103 "configure"
2104 #include "confdefs.h"
2114 rm -f "conftest.$ac_objext"
2115 if { (eval echo "$as_me:2115: \"$ac_compile\"") >&5
2116 (eval $ac_compile) 2>&5
2118 echo "$as_me:2118: \$? = $ac_status" >&5
2119 (exit "$ac_status"); } &&
2120 { ac_try='test -s "conftest.$ac_objext"'
2121 { (eval echo "$as_me:2121: \"$ac_try\"") >&5
2124 echo "$as_me:2124: \$? = $ac_status" >&5
2125 (exit "$ac_status"); }; }; then
2128 echo "$as_me: failed program was:" >&5
2129 cat "conftest.$ac_ext" >&5
2132 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2134 echo "$as_me:2134: result: $ac_cv_prog_cc_g" >&5
2135 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2136 if test "$ac_test_CFLAGS" = set; then
2137 CFLAGS=$ac_save_CFLAGS
2138 elif test $ac_cv_prog_cc_g = yes; then
2139 if test "$GCC" = yes; then
2145 if test "$GCC" = yes; then
2151 # Some people use a C++ compiler to compile C. Since we use `exit',
2152 # in C++ we need to declare it. In case someone uses the same compiler
2153 # for both compiling C and C++ we need to have the C++ compiler decide
2154 # the declaration of exit, since it's the most demanding environment.
2155 cat >"conftest.$ac_ext" <<_ACEOF
2160 rm -f "conftest.$ac_objext"
2161 if { (eval echo "$as_me:2161: \"$ac_compile\"") >&5
2162 (eval $ac_compile) 2>&5
2164 echo "$as_me:2164: \$? = $ac_status" >&5
2165 (exit "$ac_status"); } &&
2166 { ac_try='test -s "conftest.$ac_objext"'
2167 { (eval echo "$as_me:2167: \"$ac_try\"") >&5
2170 echo "$as_me:2170: \$? = $ac_status" >&5
2171 (exit "$ac_status"); }; }; then
2172 for ac_declaration in \
2174 '#include <stdlib.h>' \
2175 'extern "C" void std::exit (int) throw (); using std::exit;' \
2176 'extern "C" void std::exit (int); using std::exit;' \
2177 'extern "C" void exit (int) throw ();' \
2178 'extern "C" void exit (int);' \
2181 cat >"conftest.$ac_ext" <<_ACEOF
2182 #line 2182 "configure"
2183 #include "confdefs.h"
2194 rm -f "conftest.$ac_objext"
2195 if { (eval echo "$as_me:2195: \"$ac_compile\"") >&5
2196 (eval $ac_compile) 2>&5
2198 echo "$as_me:2198: \$? = $ac_status" >&5
2199 (exit "$ac_status"); } &&
2200 { ac_try='test -s "conftest.$ac_objext"'
2201 { (eval echo "$as_me:2201: \"$ac_try\"") >&5
2204 echo "$as_me:2204: \$? = $ac_status" >&5
2205 (exit "$ac_status"); }; }; then
2208 echo "$as_me: failed program was:" >&5
2209 cat "conftest.$ac_ext" >&5
2212 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2213 cat >"conftest.$ac_ext" <<_ACEOF
2214 #line 2214 "configure"
2215 #include "confdefs.h"
2225 rm -f "conftest.$ac_objext"
2226 if { (eval echo "$as_me:2226: \"$ac_compile\"") >&5
2227 (eval $ac_compile) 2>&5
2229 echo "$as_me:2229: \$? = $ac_status" >&5
2230 (exit "$ac_status"); } &&
2231 { ac_try='test -s "conftest.$ac_objext"'
2232 { (eval echo "$as_me:2232: \"$ac_try\"") >&5
2235 echo "$as_me:2235: \$? = $ac_status" >&5
2236 (exit "$ac_status"); }; }; then
2239 echo "$as_me: failed program was:" >&5
2240 cat "conftest.$ac_ext" >&5
2242 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2245 if test -n "$ac_declaration"; then
2246 echo '#ifdef __cplusplus' >>confdefs.h
2247 echo "$ac_declaration" >>confdefs.h
2248 echo '#endif' >>confdefs.h
2252 echo "$as_me: failed program was:" >&5
2253 cat "conftest.$ac_ext" >&5
2255 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2257 ac_cpp='$CPP $CPPFLAGS'
2258 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2259 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2261 ac_main_return="return"
2264 if test "$GCC" = yes ; then
2265 echo "$as_me:2265: checking version of $CC" >&5
2266 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2267 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2268 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2269 echo "$as_me:2269: result: $GCC_VERSION" >&5
2270 echo "${ECHO_T}$GCC_VERSION" >&6
2275 if test "$GCC" = yes ; then
2278 echo "$as_me:2278: checking if this is really Intel C compiler" >&5
2279 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
2280 cf_save_CFLAGS="$CFLAGS"
2281 CFLAGS="$CFLAGS -no-gcc"
2282 cat >"conftest.$ac_ext" <<_ACEOF
2283 #line 2283 "configure"
2284 #include "confdefs.h"
2290 #ifdef __INTEL_COMPILER
2299 rm -f "conftest.$ac_objext"
2300 if { (eval echo "$as_me:2300: \"$ac_compile\"") >&5
2301 (eval $ac_compile) 2>&5
2303 echo "$as_me:2303: \$? = $ac_status" >&5
2304 (exit "$ac_status"); } &&
2305 { ac_try='test -s "conftest.$ac_objext"'
2306 { (eval echo "$as_me:2306: \"$ac_try\"") >&5
2309 echo "$as_me:2309: \$? = $ac_status" >&5
2310 (exit "$ac_status"); }; }; then
2312 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
2315 echo "$as_me: failed program was:" >&5
2316 cat "conftest.$ac_ext" >&5
2318 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2319 CFLAGS="$cf_save_CFLAGS"
2320 echo "$as_me:2320: result: $INTEL_COMPILER" >&5
2321 echo "${ECHO_T}$INTEL_COMPILER" >&6
2328 if test "$GCC" = yes ; then
2329 echo "$as_me:2329: checking if this is really Clang C compiler" >&5
2330 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
2331 cf_save_CFLAGS="$CFLAGS"
2332 cat >"conftest.$ac_ext" <<_ACEOF
2333 #line 2333 "configure"
2334 #include "confdefs.h"
2349 rm -f "conftest.$ac_objext"
2350 if { (eval echo "$as_me:2350: \"$ac_compile\"") >&5
2351 (eval $ac_compile) 2>&5
2353 echo "$as_me:2353: \$? = $ac_status" >&5
2354 (exit "$ac_status"); } &&
2355 { ac_try='test -s "conftest.$ac_objext"'
2356 { (eval echo "$as_me:2356: \"$ac_try\"") >&5
2359 echo "$as_me:2359: \$? = $ac_status" >&5
2360 (exit "$ac_status"); }; }; then
2364 echo "$as_me: failed program was:" >&5
2365 cat "conftest.$ac_ext" >&5
2367 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2368 CFLAGS="$cf_save_CFLAGS"
2369 echo "$as_me:2369: result: $CLANG_COMPILER" >&5
2370 echo "${ECHO_T}$CLANG_COMPILER" >&6
2375 if test "x$CLANG_COMPILER" = "xyes" ; then
2377 (c[1-9][0-9]|*/c[1-9][0-9])
2378 { echo "$as_me:2378: WARNING: replacing broken compiler alias $CC" >&5
2379 echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;}
2380 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
2385 echo "$as_me:2385: checking version of $CC" >&5
2386 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2387 CLANG_VERSION="`$CC --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(CLANG[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2388 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
2389 echo "$as_me:2389: result: $CLANG_VERSION" >&5
2390 echo "${ECHO_T}$CLANG_VERSION" >&6
2392 for cf_clang_opt in \
2393 -Qunused-arguments \
2394 -Wno-error=implicit-function-declaration
2396 echo "$as_me:2396: checking if option $cf_clang_opt works" >&5
2397 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
2398 cf_save_CFLAGS="$CFLAGS"
2399 CFLAGS="$CFLAGS $cf_clang_opt"
2400 cat >"conftest.$ac_ext" <<_ACEOF
2401 #line 2401 "configure"
2402 #include "confdefs.h"
2409 printf("hello!\\n");
2414 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
2415 if { (eval echo "$as_me:2415: \"$ac_link\"") >&5
2416 (eval $ac_link) 2>&5
2418 echo "$as_me:2418: \$? = $ac_status" >&5
2419 (exit "$ac_status"); } &&
2420 { ac_try='test -s "conftest$ac_exeext"'
2421 { (eval echo "$as_me:2421: \"$ac_try\"") >&5
2424 echo "$as_me:2424: \$? = $ac_status" >&5
2425 (exit "$ac_status"); }; }; then
2429 echo "$as_me: failed program was:" >&5
2430 cat "conftest.$ac_ext" >&5
2434 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
2435 echo "$as_me:2435: result: $cf_clang_optok" >&5
2436 echo "${ECHO_T}$cf_clang_optok" >&6
2437 CFLAGS="$cf_save_CFLAGS"
2438 if test "$cf_clang_optok" = yes; then
2439 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6
2441 echo "${as_me:-configure}:2441: testing adding option $cf_clang_opt ..." 1>&5
2443 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2444 CFLAGS="${CFLAGS}$cf_clang_opt"
2450 echo "$as_me:2450: checking for $CC option to accept ANSI C" >&5
2451 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2452 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2453 echo $ECHO_N "(cached) $ECHO_C" >&6
2455 ac_cv_prog_cc_stdc=no
2457 cat >"conftest.$ac_ext" <<_ACEOF
2458 #line 2458 "configure"
2459 #include "confdefs.h"
2462 #include <sys/types.h>
2463 #include <sys/stat.h>
2464 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2465 struct buf { int x; };
2466 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2467 static char *e (p, i)
2473 static char *f (char * (*g) (char **, int), char **p, ...)
2478 s = g (p, va_arg (v,int));
2482 int test (int i, double x);
2483 struct s1 {int (*f) (int a);};
2484 struct s2 {int (*f) (double a);};
2485 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2491 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2496 # Don't try gcc -ansi; that turns off useful extensions and
2497 # breaks some systems' header files.
2498 # AIX -qlanglvl=ansi
2499 # Ultrix and OSF/1 -std1
2500 # HP-UX 10.20 and later -Ae
2501 # HP-UX older versions -Aa -D_HPUX_SOURCE
2502 # SVR4 -Xc -D__EXTENSIONS__
2503 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2505 CC="$ac_save_CC $ac_arg"
2506 rm -f "conftest.$ac_objext"
2507 if { (eval echo "$as_me:2507: \"$ac_compile\"") >&5
2508 (eval $ac_compile) 2>&5
2510 echo "$as_me:2510: \$? = $ac_status" >&5
2511 (exit "$ac_status"); } &&
2512 { ac_try='test -s "conftest.$ac_objext"'
2513 { (eval echo "$as_me:2513: \"$ac_try\"") >&5
2516 echo "$as_me:2516: \$? = $ac_status" >&5
2517 (exit "$ac_status"); }; }; then
2518 ac_cv_prog_cc_stdc=$ac_arg
2521 echo "$as_me: failed program was:" >&5
2522 cat "conftest.$ac_ext" >&5
2524 rm -f "conftest.$ac_objext"
2526 rm -f "conftest.$ac_ext" "conftest.$ac_objext"
2531 case "x$ac_cv_prog_cc_stdc" in
2533 echo "$as_me:2533: result: none needed" >&5
2534 echo "${ECHO_T}none needed" >&6 ;;
2536 echo "$as_me:2536: result: $ac_cv_prog_cc_stdc" >&5
2537 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2538 CC="$CC $ac_cv_prog_cc_stdc" ;;
2541 # This should have been defined by AC_PROG_CC
2544 echo "$as_me:2544: checking \$CFLAGS variable" >&5
2545 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
2548 echo "$as_me:2548: result: broken" >&5
2549 echo "${ECHO_T}broken" >&6
2550 { echo "$as_me:2550: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
2551 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
2554 for cf_arg in $cf_flags
2560 cf_new_extra_cppflags=
2562 for cf_add_cflags in $cf_arg
2564 case "$cf_fix_cppflags" in
2566 case "$cf_add_cflags" in
2567 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2568 case "$cf_add_cflags" in
2570 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2572 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2573 && test -z "${cf_tst_cflags}" \
2574 && cf_fix_cppflags=yes
2576 if test "$cf_fix_cppflags" = yes ; then
2578 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2579 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2582 elif test "${cf_tst_cflags}" = "\"'" ; then
2584 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2585 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2595 case "$cf_add_cflags" in
2597 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2599 CPPFLAGS=`echo "$CPPFLAGS" | \
2600 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2601 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2606 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2607 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2614 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2615 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2622 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2623 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2625 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2627 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2628 && test -z "${cf_tst_cflags}" \
2629 && cf_fix_cppflags=no
2634 if test -n "$cf_new_cflags" ; then
2636 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2637 CFLAGS="${CFLAGS}$cf_new_cflags"
2641 if test -n "$cf_new_cppflags" ; then
2643 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2644 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2648 if test -n "$cf_new_extra_cppflags" ; then
2650 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2651 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2658 echo "$as_me:2658: result: ok" >&5
2659 echo "${ECHO_T}ok" >&6
2663 echo "$as_me:2663: checking \$CC variable" >&5
2664 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2667 echo "$as_me:2667: result: broken" >&5
2668 echo "${ECHO_T}broken" >&6
2669 { echo "$as_me:2669: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2670 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2672 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2673 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
2675 for cf_arg in $cf_flags
2683 cf_new_extra_cppflags=
2685 for cf_add_cflags in $cf_arg
2687 case "$cf_fix_cppflags" in
2689 case "$cf_add_cflags" in
2690 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2691 case "$cf_add_cflags" in
2693 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2695 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2696 && test -z "${cf_tst_cflags}" \
2697 && cf_fix_cppflags=yes
2699 if test "$cf_fix_cppflags" = yes ; then
2701 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2702 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2705 elif test "${cf_tst_cflags}" = "\"'" ; then
2707 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2708 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2718 case "$cf_add_cflags" in
2720 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2722 CPPFLAGS=`echo "$CPPFLAGS" | \
2723 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2724 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2729 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2730 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2737 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2738 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2745 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2746 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2748 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2750 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2751 && test -z "${cf_tst_cflags}" \
2752 && cf_fix_cppflags=no
2757 if test -n "$cf_new_cflags" ; then
2759 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2760 CFLAGS="${CFLAGS}$cf_new_cflags"
2764 if test -n "$cf_new_cppflags" ; then
2766 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2767 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2771 if test -n "$cf_new_extra_cppflags" ; then
2773 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2774 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2784 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2786 echo "${as_me:-configure}:2786: testing resulting CC: '$CC' ..." 1>&5
2788 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2790 echo "${as_me:-configure}:2790: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2792 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2794 echo "${as_me:-configure}:2794: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2798 echo "$as_me:2798: result: ok" >&5
2799 echo "${ECHO_T}ok" >&6
2804 ac_cpp='$CPP $CPPFLAGS'
2805 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2806 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2808 ac_main_return="return"
2809 echo "$as_me:2809: checking how to run the C preprocessor" >&5
2810 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2811 # On Suns, sometimes $CPP names a directory.
2812 if test -n "$CPP" && test -d "$CPP"; then
2815 if test -z "$CPP"; then
2816 if test "${ac_cv_prog_CPP+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2819 # Double quotes because CPP needs to be expanded
2820 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2823 for ac_c_preproc_warn_flag in '' yes
2825 # Use a header file that comes with gcc, so configuring glibc
2826 # with a fresh cross-compiler works.
2827 # On the NeXT, cc -E runs the code through the compiler's parser,
2828 # not just through cpp. "Syntax error" is here to catch this case.
2829 cat >"conftest.$ac_ext" <<_ACEOF
2830 #line 2830 "configure"
2831 #include "confdefs.h"
2835 if { (eval echo "$as_me:2835: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2836 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2838 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2840 cat conftest.err >&5
2841 echo "$as_me:2841: \$? = $ac_status" >&5
2842 (exit "$ac_status"); } >/dev/null; then
2843 if test -s conftest.err; then
2844 ac_cpp_err=$ac_c_preproc_warn_flag
2851 if test -z "$ac_cpp_err"; then
2854 echo "$as_me: failed program was:" >&5
2855 cat "conftest.$ac_ext" >&5
2856 # Broken: fails on valid input.
2859 rm -f conftest.err "conftest.$ac_ext"
2861 # OK, works on sane cases. Now check whether non-existent headers
2862 # can be detected and how.
2863 cat >"conftest.$ac_ext" <<_ACEOF
2864 #line 2864 "configure"
2865 #include "confdefs.h"
2866 #include <ac_nonexistent.h>
2868 if { (eval echo "$as_me:2868: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2869 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2871 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2873 cat conftest.err >&5
2874 echo "$as_me:2874: \$? = $ac_status" >&5
2875 (exit "$ac_status"); } >/dev/null; then
2876 if test -s conftest.err; then
2877 ac_cpp_err=$ac_c_preproc_warn_flag
2884 if test -z "$ac_cpp_err"; then
2885 # Broken: success on invalid input.
2888 echo "$as_me: failed program was:" >&5
2889 cat "conftest.$ac_ext" >&5
2890 # Passes both tests.
2894 rm -f conftest.err "conftest.$ac_ext"
2897 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2898 rm -f conftest.err "conftest.$ac_ext"
2899 if $ac_preproc_ok; then
2911 echo "$as_me:2911: result: $CPP" >&5
2912 echo "${ECHO_T}$CPP" >&6
2914 for ac_c_preproc_warn_flag in '' yes
2916 # Use a header file that comes with gcc, so configuring glibc
2917 # with a fresh cross-compiler works.
2918 # On the NeXT, cc -E runs the code through the compiler's parser,
2919 # not just through cpp. "Syntax error" is here to catch this case.
2920 cat >"conftest.$ac_ext" <<_ACEOF
2921 #line 2921 "configure"
2922 #include "confdefs.h"
2926 if { (eval echo "$as_me:2926: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2927 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2929 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2931 cat conftest.err >&5
2932 echo "$as_me:2932: \$? = $ac_status" >&5
2933 (exit "$ac_status"); } >/dev/null; then
2934 if test -s conftest.err; then
2935 ac_cpp_err=$ac_c_preproc_warn_flag
2942 if test -z "$ac_cpp_err"; then
2945 echo "$as_me: failed program was:" >&5
2946 cat "conftest.$ac_ext" >&5
2947 # Broken: fails on valid input.
2950 rm -f conftest.err "conftest.$ac_ext"
2952 # OK, works on sane cases. Now check whether non-existent headers
2953 # can be detected and how.
2954 cat >"conftest.$ac_ext" <<_ACEOF
2955 #line 2955 "configure"
2956 #include "confdefs.h"
2957 #include <ac_nonexistent.h>
2959 if { (eval echo "$as_me:2959: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2960 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2962 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2964 cat conftest.err >&5
2965 echo "$as_me:2965: \$? = $ac_status" >&5
2966 (exit "$ac_status"); } >/dev/null; then
2967 if test -s conftest.err; then
2968 ac_cpp_err=$ac_c_preproc_warn_flag
2975 if test -z "$ac_cpp_err"; then
2976 # Broken: success on invalid input.
2979 echo "$as_me: failed program was:" >&5
2980 cat "conftest.$ac_ext" >&5
2981 # Passes both tests.
2985 rm -f conftest.err "conftest.$ac_ext"
2988 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2989 rm -f conftest.err "conftest.$ac_ext"
2990 if $ac_preproc_ok; then
2993 { { echo "$as_me:2993: error: C preprocessor \"$CPP\" fails sanity check" >&5
2994 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2995 { (exit 1); exit 1; }; }
2999 ac_cpp='$CPP $CPPFLAGS'
3000 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3001 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3003 ac_main_return="return"
3005 if test $ac_cv_c_compiler_gnu = yes; then
3006 echo "$as_me:3006: checking whether $CC needs -traditional" >&5
3007 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3008 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3009 echo $ECHO_N "(cached) $ECHO_C" >&6
3011 ac_pattern="Autoconf.*'x'"
3012 cat >"conftest.$ac_ext" <<_ACEOF
3013 #line 3013 "configure"
3014 #include "confdefs.h"
3016 int Autoconf = TIOCGETP;
3018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3019 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3020 ac_cv_prog_gcc_traditional=yes
3022 ac_cv_prog_gcc_traditional=no
3026 if test $ac_cv_prog_gcc_traditional = no; then
3027 cat >"conftest.$ac_ext" <<_ACEOF
3028 #line 3028 "configure"
3029 #include "confdefs.h"
3031 int Autoconf = TCGETA;
3033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3034 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3035 ac_cv_prog_gcc_traditional=yes
3041 echo "$as_me:3041: result: $ac_cv_prog_gcc_traditional" >&5
3042 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3043 if test $ac_cv_prog_gcc_traditional = yes; then
3044 CC="$CC -traditional"
3048 echo "$as_me:3048: checking whether $CC understands -c and -o together" >&5
3049 echo $ECHO_N "checking whether $CC understands -c and -o together... $ECHO_C" >&6
3050 if test "${cf_cv_prog_CC_c_o+set}" = set; then
3051 echo $ECHO_N "(cached) $ECHO_C" >&6
3054 cat > conftest.$ac_ext <<CF_EOF
3057 ${cf_cv_main_return:-return}(0);
3060 # We do the test twice because some compilers refuse to overwrite an
3061 # existing .o file with -o, though they will create one.
3062 ac_try='$CC $CFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3063 if { (eval echo "$as_me:3063: \"$ac_try\"") >&5
3066 echo "$as_me:3066: \$? = $ac_status" >&5
3067 (exit "$ac_status"); } &&
3068 test -f conftest2.$ac_objext && { (eval echo "$as_me:3068: \"$ac_try\"") >&5
3071 echo "$as_me:3071: \$? = $ac_status" >&5
3072 (exit "$ac_status"); };
3074 eval cf_cv_prog_CC_c_o=yes
3076 eval cf_cv_prog_CC_c_o=no
3081 if test "$cf_cv_prog_CC_c_o" = yes; then
3082 echo "$as_me:3082: result: yes" >&5
3083 echo "${ECHO_T}yes" >&6
3085 echo "$as_me:3085: result: no" >&5
3086 echo "${ECHO_T}no" >&6
3089 if test "$cross_compiling" = yes ; then
3092 case "$cf_cv_system_name" in
3093 (dragonfly*|mirbsd*|freebsd*)
3094 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
3096 (*) LDPATH=$PATH:/sbin:/usr/sbin
3097 # Extract the first word of "ldconfig", so it can be a program name with args.
3098 set dummy ldconfig; ac_word=$2
3099 echo "$as_me:3099: checking for $ac_word" >&5
3100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3101 if test "${ac_cv_path_LDCONFIG+set}" = set; then
3102 echo $ECHO_N "(cached) $ECHO_C" >&6
3106 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
3109 ac_save_IFS=$IFS; IFS=$ac_path_separator
3111 for ac_dir in $ac_dummy; do
3113 test -z "$ac_dir" && ac_dir=.
3114 if $as_executable_p "$ac_dir/$ac_word"; then
3115 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
3116 echo "$as_me:3116: found $ac_dir/$ac_word" >&5
3124 LDCONFIG=$ac_cv_path_LDCONFIG
3126 if test -n "$LDCONFIG"; then
3127 echo "$as_me:3127: result: $LDCONFIG" >&5
3128 echo "${ECHO_T}$LDCONFIG" >&6
3130 echo "$as_me:3130: result: no" >&5
3131 echo "${ECHO_T}no" >&6
3138 echo "$as_me:3138: checking if you want to ensure bool is consistent with C++" >&5
3139 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
3141 # Check whether --with-cxx or --without-cxx was given.
3142 if test "${with_cxx+set}" = set; then
3144 cf_with_cxx=$withval
3148 echo "$as_me:3148: result: $cf_with_cxx" >&5
3149 echo "${ECHO_T}$cf_with_cxx" >&6
3150 if test "X$cf_with_cxx" = Xno ; then
3154 # with autoconf 2.13, we can change the error to a warning:
3156 ac_cpp='$CXXCPP $CPPFLAGS'
3157 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3158 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3159 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3160 ac_main_return="return"
3161 if test -n "$ac_tool_prefix"; then
3162 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3164 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3165 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3166 echo "$as_me:3166: checking for $ac_word" >&5
3167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3168 if test "${ac_cv_prog_CXX+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3171 if test -n "$CXX"; then
3172 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3174 ac_save_IFS=$IFS; IFS=$ac_path_separator
3176 for ac_dir in $ac_dummy; do
3178 test -z "$ac_dir" && ac_dir=.
3179 $as_executable_p "$ac_dir/$ac_word" || continue
3180 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3181 echo "$as_me:3181: found $ac_dir/$ac_word" >&5
3188 if test -n "$CXX"; then
3189 echo "$as_me:3189: result: $CXX" >&5
3190 echo "${ECHO_T}$CXX" >&6
3192 echo "$as_me:3192: result: no" >&5
3193 echo "${ECHO_T}no" >&6
3196 test -n "$CXX" && break
3199 if test -z "$CXX"; then
3201 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3203 # Extract the first word of "$ac_prog", so it can be a program name with args.
3204 set dummy $ac_prog; ac_word=$2
3205 echo "$as_me:3205: checking for $ac_word" >&5
3206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3207 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3210 if test -n "$ac_ct_CXX"; then
3211 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3213 ac_save_IFS=$IFS; IFS=$ac_path_separator
3215 for ac_dir in $ac_dummy; do
3217 test -z "$ac_dir" && ac_dir=.
3218 $as_executable_p "$ac_dir/$ac_word" || continue
3219 ac_cv_prog_ac_ct_CXX="$ac_prog"
3220 echo "$as_me:3220: found $ac_dir/$ac_word" >&5
3226 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3227 if test -n "$ac_ct_CXX"; then
3228 echo "$as_me:3228: result: $ac_ct_CXX" >&5
3229 echo "${ECHO_T}$ac_ct_CXX" >&6
3231 echo "$as_me:3231: result: no" >&5
3232 echo "${ECHO_T}no" >&6
3235 test -n "$ac_ct_CXX" && break
3237 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3242 # Provide some information about the compiler.
3243 echo "$as_me:3243:" \
3244 "checking for C++ compiler version" >&5
3245 ac_compiler=`set X $ac_compile; echo $2`
3246 { (eval echo "$as_me:3246: \"$ac_compiler --version </dev/null >&5\"") >&5
3247 (eval $ac_compiler --version </dev/null >&5) 2>&5
3249 echo "$as_me:3249: \$? = $ac_status" >&5
3250 (exit "$ac_status"); }
3251 { (eval echo "$as_me:3251: \"$ac_compiler -v </dev/null >&5\"") >&5
3252 (eval $ac_compiler -v </dev/null >&5) 2>&5
3254 echo "$as_me:3254: \$? = $ac_status" >&5
3255 (exit "$ac_status"); }
3256 { (eval echo "$as_me:3256: \"$ac_compiler -V </dev/null >&5\"") >&5
3257 (eval $ac_compiler -V </dev/null >&5) 2>&5
3259 echo "$as_me:3259: \$? = $ac_status" >&5
3260 (exit "$ac_status"); }
3262 echo "$as_me:3262: checking whether we are using the GNU C++ compiler" >&5
3263 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3264 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3265 echo $ECHO_N "(cached) $ECHO_C" >&6
3267 cat >"conftest.$ac_ext" <<_ACEOF
3268 #line 3268 "configure"
3269 #include "confdefs.h"
3282 rm -f "conftest.$ac_objext"
3283 if { (eval echo "$as_me:3283: \"$ac_compile\"") >&5
3284 (eval $ac_compile) 2>&5
3286 echo "$as_me:3286: \$? = $ac_status" >&5
3287 (exit "$ac_status"); } &&
3288 { ac_try='test -s "conftest.$ac_objext"'
3289 { (eval echo "$as_me:3289: \"$ac_try\"") >&5
3292 echo "$as_me:3292: \$? = $ac_status" >&5
3293 (exit "$ac_status"); }; }; then
3296 echo "$as_me: failed program was:" >&5
3297 cat "conftest.$ac_ext" >&5
3300 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3301 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3304 echo "$as_me:3304: result: $ac_cv_cxx_compiler_gnu" >&5
3305 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3306 GXX=`test $ac_compiler_gnu = yes && echo yes`
3307 ac_test_CXXFLAGS=${CXXFLAGS+set}
3308 ac_save_CXXFLAGS=$CXXFLAGS
3310 echo "$as_me:3310: checking whether $CXX accepts -g" >&5
3311 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3312 if test "${ac_cv_prog_cxx_g+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 cat >"conftest.$ac_ext" <<_ACEOF
3316 #line 3316 "configure"
3317 #include "confdefs.h"
3327 rm -f "conftest.$ac_objext"
3328 if { (eval echo "$as_me:3328: \"$ac_compile\"") >&5
3329 (eval $ac_compile) 2>&5
3331 echo "$as_me:3331: \$? = $ac_status" >&5
3332 (exit "$ac_status"); } &&
3333 { ac_try='test -s "conftest.$ac_objext"'
3334 { (eval echo "$as_me:3334: \"$ac_try\"") >&5
3337 echo "$as_me:3337: \$? = $ac_status" >&5
3338 (exit "$ac_status"); }; }; then
3339 ac_cv_prog_cxx_g=yes
3341 echo "$as_me: failed program was:" >&5
3342 cat "conftest.$ac_ext" >&5
3345 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3347 echo "$as_me:3347: result: $ac_cv_prog_cxx_g" >&5
3348 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3349 if test "$ac_test_CXXFLAGS" = set; then
3350 CXXFLAGS=$ac_save_CXXFLAGS
3351 elif test $ac_cv_prog_cxx_g = yes; then
3352 if test "$GXX" = yes; then
3358 if test "$GXX" = yes; then
3364 for ac_declaration in \
3366 '#include <stdlib.h>' \
3367 'extern "C" void std::exit (int) throw (); using std::exit;' \
3368 'extern "C" void std::exit (int); using std::exit;' \
3369 'extern "C" void exit (int) throw ();' \
3370 'extern "C" void exit (int);' \
3373 cat >"conftest.$ac_ext" <<_ACEOF
3374 #line 3374 "configure"
3375 #include "confdefs.h"
3386 rm -f "conftest.$ac_objext"
3387 if { (eval echo "$as_me:3387: \"$ac_compile\"") >&5
3388 (eval $ac_compile) 2>&5
3390 echo "$as_me:3390: \$? = $ac_status" >&5
3391 (exit "$ac_status"); } &&
3392 { ac_try='test -s "conftest.$ac_objext"'
3393 { (eval echo "$as_me:3393: \"$ac_try\"") >&5
3396 echo "$as_me:3396: \$? = $ac_status" >&5
3397 (exit "$ac_status"); }; }; then
3400 echo "$as_me: failed program was:" >&5
3401 cat "conftest.$ac_ext" >&5
3404 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3405 cat >"conftest.$ac_ext" <<_ACEOF
3406 #line 3406 "configure"
3407 #include "confdefs.h"
3417 rm -f "conftest.$ac_objext"
3418 if { (eval echo "$as_me:3418: \"$ac_compile\"") >&5
3419 (eval $ac_compile) 2>&5
3421 echo "$as_me:3421: \$? = $ac_status" >&5
3422 (exit "$ac_status"); } &&
3423 { ac_try='test -s "conftest.$ac_objext"'
3424 { (eval echo "$as_me:3424: \"$ac_try\"") >&5
3427 echo "$as_me:3427: \$? = $ac_status" >&5
3428 (exit "$ac_status"); }; }; then
3431 echo "$as_me: failed program was:" >&5
3432 cat "conftest.$ac_ext" >&5
3434 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3437 if test -n "$ac_declaration"; then
3438 echo '#ifdef __cplusplus' >>confdefs.h
3439 echo "$ac_declaration" >>confdefs.h
3440 echo '#endif' >>confdefs.h
3444 ac_cpp='$CPP $CPPFLAGS'
3445 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3446 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3448 ac_main_return="return"
3451 ac_cpp='$CXXCPP $CPPFLAGS'
3452 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3453 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3454 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3455 ac_main_return="return"
3457 if test "x$cf_with_cxx" != xno
3459 # Several of the C++ configurations do not work, particularly when
3460 # cross-compiling (20140913 -TD)
3461 echo "$as_me:3461: checking if $CXX works" >&5
3462 echo $ECHO_N "checking if $CXX works... $ECHO_C" >&6
3464 save_CPPFLAGS="$CPPFLAGS"
3465 eval cf_includedir=${includedir}
3466 CPPFLAGS="$CPPFLAGS -I${cf_includedir}"
3468 cat >"conftest.$ac_ext" <<_ACEOF
3469 #line 3469 "configure"
3470 #include "confdefs.h"
3479 printf("Hello world!\n")
3485 rm -f "conftest.$ac_objext"
3486 if { (eval echo "$as_me:3486: \"$ac_compile\"") >&5
3487 (eval $ac_compile) 2>&5
3489 echo "$as_me:3489: \$? = $ac_status" >&5
3490 (exit "$ac_status"); } &&
3491 { ac_try='test -s "conftest.$ac_objext"'
3492 { (eval echo "$as_me:3492: \"$ac_try\"") >&5
3495 echo "$as_me:3495: \$? = $ac_status" >&5
3496 (exit "$ac_status"); }; }; then
3499 echo "$as_me: failed program was:" >&5
3500 cat "conftest.$ac_ext" >&5
3503 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3504 CPPFLAGS="$save_CPPFLAGS"
3506 echo "$as_me:3506: result: $cf_cxx_works" >&5
3507 echo "${ECHO_T}$cf_cxx_works" >&6
3508 if test "x$cf_cxx_works" = xno
3510 { echo "$as_me:3510: WARNING: Ignore $CXX, since it cannot compile hello-world." >&5
3511 echo "$as_me: WARNING: Ignore $CXX, since it cannot compile hello-world." >&2;}
3512 cf_with_cxx=no; CXX=""; GXX="";
3516 ac_cpp='$CPP $CPPFLAGS'
3517 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
3518 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
3519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3520 ac_main_return="return"
3522 # autoconf 2.5x removed the error (hardcoding it to g++, or just blank)
3523 if test "$CXX" = "g++" ; then
3524 # Extract the first word of "g++", so it can be a program name with args.
3525 set dummy g++; ac_word=$2
3526 echo "$as_me:3526: checking for $ac_word" >&5
3527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3528 if test "${ac_cv_path_CXX+set}" = set; then
3529 echo $ECHO_N "(cached) $ECHO_C" >&6
3533 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3536 ac_save_IFS=$IFS; IFS=$ac_path_separator
3538 for ac_dir in $ac_dummy; do
3540 test -z "$ac_dir" && ac_dir=.
3541 if $as_executable_p "$ac_dir/$ac_word"; then
3542 ac_cv_path_CXX="$ac_dir/$ac_word"
3543 echo "$as_me:3543: found $ac_dir/$ac_word" >&5
3553 if test -n "$CXX"; then
3554 echo "$as_me:3554: result: $CXX" >&5
3555 echo "${ECHO_T}$CXX" >&6
3557 echo "$as_me:3557: result: no" >&5
3558 echo "${ECHO_T}no" >&6
3564 { echo "$as_me:3564: WARNING: You don't have any C++ compiler, too bad" >&5
3565 echo "$as_me: WARNING: You don't have any C++ compiler, too bad" >&2;}
3566 cf_with_cxx=no; CXX=""; GXX="";
3572 if test "$GXX" = yes; then
3573 echo "$as_me:3573: checking version of ${CXX:-g++}" >&5
3574 echo $ECHO_N "checking version of ${CXX:-g++}... $ECHO_C" >&6
3575 GXX_VERSION="`${CXX:-g++} --version| sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3576 if test -z "$GXX_VERSION"
3581 echo "$as_me:3581: result: $GXX_VERSION" >&5
3582 echo "${ECHO_T}$GXX_VERSION" >&6
3585 case "$GXX_VERSION" in
3589 { echo "$as_me:3589: WARNING: templates do not work" >&5
3590 echo "$as_me: WARNING: templates do not work" >&2;}
3594 echo "$as_me:3594: checking if you want to build C++ binding and demo" >&5
3595 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
3597 # Check whether --with-cxx-binding or --without-cxx-binding was given.
3598 if test "${with_cxx_binding+set}" = set; then
3599 withval="$with_cxx_binding"
3600 cf_with_cxx_binding=$withval
3602 cf_with_cxx_binding=$cf_with_cxx
3604 echo "$as_me:3604: result: $cf_with_cxx_binding" >&5
3605 echo "${ECHO_T}$cf_with_cxx_binding" >&6
3607 echo "$as_me:3607: checking if you want to build with Ada" >&5
3608 echo $ECHO_N "checking if you want to build with Ada... $ECHO_C" >&6
3609 echo "$as_me:3609: result: $cf_with_ada" >&5
3610 echo "${ECHO_T}$cf_with_ada" >&6
3612 echo "$as_me:3612: checking if you want to install terminal database" >&5
3613 echo $ECHO_N "checking if you want to install terminal database... $ECHO_C" >&6
3615 # Check whether --enable-db-install or --disable-db-install was given.
3616 if test "${enable_db_install+set}" = set; then
3617 enableval="$enable_db_install"
3618 cf_with_db_install=$enableval
3620 cf_with_db_install=yes
3622 echo "$as_me:3622: result: $cf_with_db_install" >&5
3623 echo "${ECHO_T}$cf_with_db_install" >&6
3625 echo "$as_me:3625: checking if you want to install manpages" >&5
3626 echo $ECHO_N "checking if you want to install manpages... $ECHO_C" >&6
3628 # Check whether --with-manpages or --without-manpages was given.
3629 if test "${with_manpages+set}" = set; then
3630 withval="$with_manpages"
3631 cf_with_manpages=$withval
3633 cf_with_manpages=yes
3635 echo "$as_me:3635: result: $cf_with_manpages" >&5
3636 echo "${ECHO_T}$cf_with_manpages" >&6
3638 echo "$as_me:3638: checking if you want to build programs such as tic" >&5
3639 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
3641 # Check whether --with-progs or --without-progs was given.
3642 if test "${with_progs+set}" = set; then
3643 withval="$with_progs"
3644 cf_with_progs=$withval
3648 echo "$as_me:3648: result: $cf_with_progs" >&5
3649 echo "${ECHO_T}$cf_with_progs" >&6
3651 if test -f "$srcdir/tack/tack.h" ; then
3652 if test "x$cross_compiling" = xyes ; then
3653 test -n "$verbose" && echo " ignoring tack because we are cross-compiling" 1>&6
3655 echo "${as_me:-configure}:3655: testing ignoring tack because we are cross-compiling ..." 1>&5
3659 echo "$as_me:3659: checking if you want to build the tack program" >&5
3660 echo $ECHO_N "checking if you want to build the tack program... $ECHO_C" >&6
3662 # Check whether --with-tack or --without-tack was given.
3663 if test "${with_tack+set}" = set; then
3664 withval="$with_tack"
3665 cf_with_tack=$withval
3667 cf_with_tack=$cf_with_progs
3669 echo "$as_me:3669: result: $cf_with_tack" >&5
3670 echo "${ECHO_T}$cf_with_tack" >&6
3676 echo "$as_me:3676: checking if you want to build test-programs" >&5
3677 echo $ECHO_N "checking if you want to build test-programs... $ECHO_C" >&6
3679 # Check whether --with-tests or --without-tests was given.
3680 if test "${with_tests+set}" = set; then
3681 withval="$with_tests"
3682 cf_with_tests=$withval
3686 echo "$as_me:3686: result: $cf_with_tests" >&5
3687 echo "${ECHO_T}$cf_with_tests" >&6
3689 echo "$as_me:3689: checking if you wish to install curses.h" >&5
3690 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
3692 # Check whether --with-curses-h or --without-curses-h was given.
3693 if test "${with_curses_h+set}" = set; then
3694 withval="$with_curses_h"
3695 with_curses_h=$withval
3699 echo "$as_me:3699: result: $with_curses_h" >&5
3700 echo "${ECHO_T}$with_curses_h" >&6
3702 modules_to_build="ncurses"
3703 test "X$cf_with_progs" != Xno && modules_to_build="$modules_to_build progs"
3704 test "X$cf_with_tack" != Xno && modules_to_build="$modules_to_build tack"
3705 modules_to_build="$modules_to_build panel menu form"
3707 test "$program_prefix" != NONE &&
3708 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3709 # Use a double $ so make ignores it.
3710 test "$program_suffix" != NONE &&
3711 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3712 # Double any \ or $. echo might interpret backslashes.
3713 # By default was `s,x,x', remove it if useless.
3714 cat <<\_ACEOF >conftest.sed
3715 s/[\\$]/&&/g;s/;s,x,x,$//
3717 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3720 for ac_prog in mawk gawk nawk awk
3722 # Extract the first word of "$ac_prog", so it can be a program name with args.
3723 set dummy $ac_prog; ac_word=$2
3724 echo "$as_me:3724: checking for $ac_word" >&5
3725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3726 if test "${ac_cv_prog_AWK+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3729 if test -n "$AWK"; then
3730 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3732 ac_save_IFS=$IFS; IFS=$ac_path_separator
3734 for ac_dir in $ac_dummy; do
3736 test -z "$ac_dir" && ac_dir=.
3737 $as_executable_p "$ac_dir/$ac_word" || continue
3738 ac_cv_prog_AWK="$ac_prog"
3739 echo "$as_me:3739: found $ac_dir/$ac_word" >&5
3746 if test -n "$AWK"; then
3747 echo "$as_me:3747: result: $AWK" >&5
3748 echo "${ECHO_T}$AWK" >&6
3750 echo "$as_me:3750: result: no" >&5
3751 echo "${ECHO_T}no" >&6
3754 test -n "$AWK" && break
3757 test -z "$AWK" && { { echo "$as_me:3757: error: No awk program found" >&5
3758 echo "$as_me: error: No awk program found" >&2;}
3759 { (exit 1); exit 1; }; }
3761 # Find a good install program. We prefer a C program (faster),
3762 # so one script is as good as another. But avoid the broken or
3763 # incompatible versions:
3764 # SysV /etc/install, /usr/sbin/install
3765 # SunOS /usr/etc/install
3766 # IRIX /sbin/install
3768 # AmigaOS /C/install, which installs bootblocks on floppy discs
3769 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3770 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3771 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3772 # ./install, which can be erroneously created by make from ./install.sh.
3773 echo "$as_me:3773: checking for a BSD compatible install" >&5
3774 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3775 if test -z "$INSTALL"; then
3776 if test "${ac_cv_path_install+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3779 ac_save_IFS=$IFS; IFS=$ac_path_separator
3780 for ac_dir in $PATH; do
3782 # Account for people who put trailing slashes in PATH elements.
3784 / | ./ | .// | /cC/* \
3785 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3788 # OSF1 and SCO ODT 3.0 have their own names for install.
3789 # Don't use installbsd from OSF since it installs stuff as root
3791 for ac_prog in ginstall scoinst install; do
3792 if $as_executable_p "$ac_dir/$ac_prog"; then
3793 if test $ac_prog = install &&
3794 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3795 # AIX install. It has an incompatible calling convention.
3797 elif test $ac_prog = install &&
3798 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3799 # program-specific install script used by HP pwplus--don't use.
3802 ac_cv_path_install="$ac_dir/$ac_prog -c"
3812 if test "${ac_cv_path_install+set}" = set; then
3813 INSTALL=$ac_cv_path_install
3815 # As a last resort, use the slow shell script. We don't cache a
3816 # path for INSTALL within a source directory, because that will
3817 # break other packages using the cache if that directory is
3818 # removed, or if the path is relative.
3819 INSTALL=$ac_install_sh
3822 echo "$as_me:3822: result: $INSTALL" >&5
3823 echo "${ECHO_T}$INSTALL" >&6
3825 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3826 # It thinks the first close brace ends the variable substitution.
3827 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3829 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3831 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3837 cf_dir=`echo "$INSTALL" | sed -e 's%/[^/]*$%%'`
3838 test -z "$cf_dir" && cf_dir=.
3839 INSTALL="`cd \"$cf_dir\" && pwd`"/"`echo "$INSTALL" | sed -e 's%^.*/%%'`"
3843 for ac_prog in lint cppcheck splint
3845 # Extract the first word of "$ac_prog", so it can be a program name with args.
3846 set dummy $ac_prog; ac_word=$2
3847 echo "$as_me:3847: checking for $ac_word" >&5
3848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3849 if test "${ac_cv_prog_LINT+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3852 if test -n "$LINT"; then
3853 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3855 ac_save_IFS=$IFS; IFS=$ac_path_separator
3857 for ac_dir in $ac_dummy; do
3859 test -z "$ac_dir" && ac_dir=.
3860 $as_executable_p "$ac_dir/$ac_word" || continue
3861 ac_cv_prog_LINT="$ac_prog"
3862 echo "$as_me:3862: found $ac_dir/$ac_word" >&5
3868 LINT=$ac_cv_prog_LINT
3869 if test -n "$LINT"; then
3870 echo "$as_me:3870: result: $LINT" >&5
3871 echo "${ECHO_T}$LINT" >&6
3873 echo "$as_me:3873: result: no" >&5
3874 echo "${ECHO_T}no" >&6
3877 test -n "$LINT" && break
3881 (xcppcheck|x*/cppcheck)
3882 test -z "$LINT_OPTS" && LINT_OPTS="--enable=all"
3886 echo "$as_me:3886: checking whether ln -s works" >&5
3887 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3889 if test "$LN_S" = "ln -s"; then
3890 echo "$as_me:3890: result: yes" >&5
3891 echo "${ECHO_T}yes" >&6
3893 echo "$as_me:3893: result: no, using $LN_S" >&5
3894 echo "${ECHO_T}no, using $LN_S" >&6
3897 echo "$as_me:3897: checking if $LN_S -f options work" >&5
3898 echo $ECHO_N "checking if $LN_S -f options work... $ECHO_C" >&6
3900 rm -f conf$$.src conf$$dst
3902 echo first >conf$$.src
3903 if $LN_S -f conf$$.src conf$$.dst 2>/dev/null; then
3908 rm -f conf$$.dst conf$$src
3909 echo "$as_me:3909: result: $cf_prog_ln_sf" >&5
3910 echo "${ECHO_T}$cf_prog_ln_sf" >&6
3912 test "$cf_prog_ln_sf" = yes && LN_S="$LN_S -f"
3914 echo "$as_me:3914: checking for long file names" >&5
3915 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3916 if test "${ac_cv_sys_long_file_names+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3919 ac_cv_sys_long_file_names=yes
3920 # Test for long file names in all the places we know might matter:
3921 # . the current directory, where building will happen
3922 # $prefix/lib where we will be installing things
3923 # $exec_prefix/lib likewise
3924 # eval it to expand exec_prefix.
3925 # $TMPDIR if set, where it might want to write temporary files
3926 # if $TMPDIR is not set:
3927 # /tmp where it might want to write temporary files
3930 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3933 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3935 for ac_dir in . $ac_tmpdirs `eval echo "$prefix/lib" "$exec_prefix/lib"` ; do
3936 test -d "$ac_dir" || continue
3937 test -w "$ac_dir" || continue # It is less confusing to not echo anything here.
3938 ac_xdir=$ac_dir/cf$$
3939 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
3940 ac_tf1=$ac_xdir/conftest9012345
3941 ac_tf2=$ac_xdir/conftest9012346
3942 (echo 1 >"$ac_tf1") 2>/dev/null
3943 (echo 2 >"$ac_tf2") 2>/dev/null
3944 ac_val=`cat "$ac_tf1" 2>/dev/null`
3945 if test ! -f "$ac_tf1" || test "$ac_val" != 1; then
3946 ac_cv_sys_long_file_names=no
3947 rm -rf "$ac_xdir" 2>/dev/null
3950 rm -rf "$ac_xdir" 2>/dev/null
3953 echo "$as_me:3953: result: $ac_cv_sys_long_file_names" >&5
3954 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3955 if test "$ac_cv_sys_long_file_names" = yes; then
3957 cat >>confdefs.h <<\EOF
3958 #define HAVE_LONG_FILE_NAMES 1
3963 # Provide for renaming "ncurses5-config" to "ncurses5X-config", etc., in case
3964 # of package conflict.
3967 # Check whether --with-config-suffix or --without-config-suffix was given.
3968 if test "${with_config_suffix+set}" = set; then
3969 withval="$with_config_suffix"
3972 { echo "$as_me:3972: WARNING: expected a value for config-suffix option" >&5
3973 echo "$as_me: WARNING: expected a value for config-suffix option" >&2;}
3975 (*) cf_config_suffix="$withval"
3980 # If we find pkg-config, check if we should install the ".pc" files.
3982 echo "$as_me:3982: checking if you want to use pkg-config" >&5
3983 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
3985 # Check whether --with-pkg-config or --without-pkg-config was given.
3986 if test "${with_pkg_config+set}" = set; then
3987 withval="$with_pkg_config"
3988 cf_pkg_config=$withval
3992 echo "$as_me:3992: result: $cf_pkg_config" >&5
3993 echo "${ECHO_T}$cf_pkg_config" >&6
3995 case "$cf_pkg_config" in
4001 if test -n "$ac_tool_prefix"; then
4002 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4003 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4004 echo "$as_me:4004: checking for $ac_word" >&5
4005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4006 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4011 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4014 ac_save_IFS=$IFS; IFS=$ac_path_separator
4016 for ac_dir in $ac_dummy; do
4018 test -z "$ac_dir" && ac_dir=.
4019 if $as_executable_p "$ac_dir/$ac_word"; then
4020 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4021 echo "$as_me:4021: found $ac_dir/$ac_word" >&5
4029 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4031 if test -n "$PKG_CONFIG"; then
4032 echo "$as_me:4032: result: $PKG_CONFIG" >&5
4033 echo "${ECHO_T}$PKG_CONFIG" >&6
4035 echo "$as_me:4035: result: no" >&5
4036 echo "${ECHO_T}no" >&6
4040 if test -z "$ac_cv_path_PKG_CONFIG"; then
4041 ac_pt_PKG_CONFIG=$PKG_CONFIG
4042 # Extract the first word of "pkg-config", so it can be a program name with args.
4043 set dummy pkg-config; ac_word=$2
4044 echo "$as_me:4044: checking for $ac_word" >&5
4045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4046 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4049 case $ac_pt_PKG_CONFIG in
4051 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4054 ac_save_IFS=$IFS; IFS=$ac_path_separator
4056 for ac_dir in $ac_dummy; do
4058 test -z "$ac_dir" && ac_dir=.
4059 if $as_executable_p "$ac_dir/$ac_word"; then
4060 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
4061 echo "$as_me:4061: found $ac_dir/$ac_word" >&5
4066 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
4070 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4072 if test -n "$ac_pt_PKG_CONFIG"; then
4073 echo "$as_me:4073: result: $ac_pt_PKG_CONFIG" >&5
4074 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4076 echo "$as_me:4076: result: no" >&5
4077 echo "${ECHO_T}no" >&6
4080 PKG_CONFIG=$ac_pt_PKG_CONFIG
4082 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4091 test -z "$PKG_CONFIG" && PKG_CONFIG=none
4092 if test "$PKG_CONFIG" != none ; then
4094 if test "x$prefix" != xNONE; then
4095 cf_path_syntax="$prefix"
4097 cf_path_syntax="$ac_default_prefix"
4100 case ".$PKG_CONFIG" in
4105 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4107 (.\$\{*prefix\}*|.\$\{*dir\}*)
4108 eval PKG_CONFIG="$PKG_CONFIG"
4109 case ".$PKG_CONFIG" in
4111 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
4116 PKG_CONFIG=`echo "$PKG_CONFIG" | sed -e s%NONE%$cf_path_syntax%`
4119 { { echo "$as_me:4119: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
4120 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
4121 { (exit 1); exit 1; }; }
4125 elif test "x$cf_pkg_config" != xno ; then
4126 { echo "$as_me:4126: WARNING: pkg-config is not installed" >&5
4127 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
4130 case "$PKG_CONFIG" in
4132 echo "$as_me:4132: checking for pkg-config library directory" >&5
4133 echo $ECHO_N "checking for pkg-config library directory... $ECHO_C" >&6
4136 echo "$as_me:4136: checking for $PKG_CONFIG library directory" >&5
4137 echo $ECHO_N "checking for $PKG_CONFIG library directory... $ECHO_C" >&6
4141 cf_search_path=`echo "$PKG_CONFIG_LIBDIR" | sed -e 's/:/ /g' -e 's,^[ ]*,,'`
4143 # Check whether --with-pkg-config-libdir or --without-pkg-config-libdir was given.
4144 if test "${with_pkg_config_libdir+set}" = set; then
4145 withval="$with_pkg_config_libdir"
4146 cf_search_path=$withval
4148 test "x$PKG_CONFIG" != xnone && cf_search_path=yes
4151 case x$cf_search_path in
4156 test -n "$verbose" && echo " auto..." 1>&6
4158 echo "${as_me:-configure}:4158: testing auto... ..." 1>&5
4160 # Look for the library directory using the same prefix as the executable
4161 echo "$as_me:4161: checking for search-list" >&5
4162 echo $ECHO_N "checking for search-list... $ECHO_C" >&6
4163 if test "x$PKG_CONFIG" != xnone
4165 # works for pkg-config since version 0.24 (2009)
4166 cf_pkg_program=`echo "$PKG_CONFIG" | sed -e 's,^.*/,,'`
4167 cf_search_path=`"$PKG_CONFIG" --variable=pc_path "$cf_pkg_program" 2>/dev/null | tr : ' '`
4169 # works for pkgconf since version 0.8.3 (2012)
4170 test -z "$cf_search_path" && \
4171 cf_search_path=`pkgconf --variable=pc_path pkgconf 2>/dev/null | tr : ' '`
4173 # works for pkg-config since import in 2005 of original 2001 HP code.
4174 test -z "$cf_search_path" && \
4176 "$PKG_CONFIG" --debug --exists no-such-package 2>&1 | $AWK "\
4177 /^Scanning directory (#[1-9][0-9]* )?'.*'$/{ \
4178 sub(\"^[^']*'\",\"\"); \
4179 sub(\"'.*\",\"\"); \
4180 printf \" %s\", \\$0; } \
4185 echo "$as_me:4185: result: $cf_search_path" >&5
4186 echo "${ECHO_T}$cf_search_path" >&6
4193 echo "$as_me:4193: checking for first directory" >&5
4194 echo $ECHO_N "checking for first directory... $ECHO_C" >&6
4195 cf_pkg_config_path=none
4196 for cf_config in $cf_search_path
4198 if test -d "$cf_config"
4200 cf_pkg_config_path=$cf_config
4204 echo "$as_me:4204: result: $cf_pkg_config_path" >&5
4205 echo "${ECHO_T}$cf_pkg_config_path" >&6
4207 if test "x$cf_pkg_config_path" != xnone ; then
4208 # limit this to the first directory found
4209 PKG_CONFIG_LIBDIR="$cf_pkg_config_path"
4212 if test -z "$PKG_CONFIG_LIBDIR" && test -n "$cf_search_path"
4214 echo "$as_me:4214: checking for workaround" >&5
4215 echo $ECHO_N "checking for workaround... $ECHO_C" >&6
4216 if test "$prefix" = "NONE" ; then
4217 cf_prefix="$ac_default_prefix"
4221 eval cf_libdir=$libdir
4222 cf_libdir=`echo "$cf_libdir" | sed -e "s,^NONE,$cf_prefix,"`
4224 for cf_config in $cf_search_path
4227 $cf_libdir/pkgconfig)
4228 PKG_CONFIG_LIBDIR=$cf_libdir/pkgconfig
4232 test -z "$cf_backup" && cf_backup=$cf_config
4236 test -z "$PKG_CONFIG_LIBDIR" && PKG_CONFIG_LIBDIR=$cf_backup
4237 echo "$as_me:4237: result: $PKG_CONFIG_LIBDIR" >&5
4238 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
4241 if test "x$PKG_CONFIG" != xnone
4243 echo "$as_me:4243: checking if we should install .pc files for $PKG_CONFIG" >&5
4244 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
4246 echo "$as_me:4246: checking if we should install .pc files" >&5
4247 echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6
4250 # Check whether --enable-pc-files or --disable-pc-files was given.
4251 if test "${enable_pc_files+set}" = set; then
4252 enableval="$enable_pc_files"
4253 enable_pc_files=$enableval
4257 echo "$as_me:4257: result: $enable_pc_files" >&5
4258 echo "${ECHO_T}$enable_pc_files" >&6
4260 if test "x$enable_pc_files" != xno
4263 case "x$PKG_CONFIG_LIBDIR" in
4265 { echo "$as_me:4265: WARNING: no PKG_CONFIG_LIBDIR was found" >&5
4266 echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;}
4270 if test "x$prefix" != xNONE; then
4271 cf_path_syntax="$prefix"
4273 cf_path_syntax="$ac_default_prefix"
4276 case ".$PKG_CONFIG_LIBDIR" in
4281 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4283 (.\$\{*prefix\}*|.\$\{*dir\}*)
4284 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
4285 case ".$PKG_CONFIG_LIBDIR" in
4287 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG_LIBDIR" | sed -e s%NONE%$cf_path_syntax%`
4292 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG_LIBDIR" | sed -e s%NONE%$cf_path_syntax%`
4295 { { echo "$as_me:4295: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
4296 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
4297 { (exit 1); exit 1; }; }
4307 if test -z "$MAKE_PC_FILES"
4309 echo "$as_me:4309: checking for suffix to add to pc-files" >&5
4310 echo $ECHO_N "checking for suffix to add to pc-files... $ECHO_C" >&6
4312 # Check whether --with-pc-suffix or --without-pc-suffix was given.
4313 if test "${with_pc_suffix+set}" = set; then
4314 withval="$with_pc_suffix"
4319 (*) PC_MODULE_SUFFIX="$withval"
4323 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
4324 echo "$as_me:4324: result: $PC_MODULE_SUFFIX" >&5
4325 echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6
4326 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
4330 echo "$as_me:4330: checking if we should assume mixed-case filenames" >&5
4331 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
4333 # Check whether --enable-mixed-case or --disable-mixed-case was given.
4334 if test "${enable_mixed_case+set}" = set; then
4335 enableval="$enable_mixed_case"
4336 enable_mixedcase=$enableval
4338 enable_mixedcase=auto
4340 echo "$as_me:4340: result: $enable_mixedcase" >&5
4341 echo "${ECHO_T}$enable_mixedcase" >&6
4342 if test "$enable_mixedcase" = "auto" ; then
4344 echo "$as_me:4344: checking if filesystem supports mixed-case filenames" >&5
4345 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
4346 if test "${cf_cv_mixedcase+set}" = set; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4350 if test "$cross_compiling" = yes ; then
4351 case "$target_alias" in
4352 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*|darwin*)
4360 rm -f conftest CONFTEST
4362 if test -f CONFTEST ; then
4367 rm -f conftest CONFTEST
4371 echo "$as_me:4371: result: $cf_cv_mixedcase" >&5
4372 echo "${ECHO_T}$cf_cv_mixedcase" >&6
4373 test "$cf_cv_mixedcase" = yes &&
4374 cat >>confdefs.h <<\EOF
4375 #define MIXEDCASE_FILENAMES 1
4379 cf_cv_mixedcase=$enable_mixedcase
4380 if test "x$enable_mixedcase" = "xyes" ; then
4382 cat >>confdefs.h <<\EOF
4383 #define MIXEDCASE_FILENAMES 1
4389 # do this after mixed-case option (tags/TAGS is not as important as tic).
4390 echo "$as_me:4390: checking whether ${MAKE-make} sets \${MAKE}" >&5
4391 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
4392 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4393 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 cat >conftest.make <<\EOF
4398 @echo 'ac_maketemp="${MAKE}"'
4400 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4401 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4402 if test -n "$ac_maketemp"; then
4403 eval ac_cv_prog_make_${ac_make}_set=yes
4405 eval ac_cv_prog_make_${ac_make}_set=no
4409 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4410 echo "$as_me:4410: result: yes" >&5
4411 echo "${ECHO_T}yes" >&6
4414 echo "$as_me:4414: result: no" >&5
4415 echo "${ECHO_T}no" >&6
4416 SET_MAKE="MAKE=${MAKE-make}"
4419 echo "$as_me:4419: checking for \".PHONY\" make-support" >&5
4420 echo $ECHO_N "checking for \".PHONY\" make-support... $ECHO_C" >&6
4421 if test "${cf_cv_make_PHONY+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4427 mkdir conftest || exit 1
4429 cat >makefile <<'CF_EOF'
4433 @echo "** making $@ $(DATA)"
4435 @echo "** making $@ $(DATA)"
4437 @echo "** making $@ $(DATA)"
4440 @echo "** making $@ $(DATA)"
4443 for cf_data in 1 2 3
4445 ${MAKE:-make} always DATA=$cf_data
4446 ${MAKE:-make} once DATA=$cf_data
4447 ${MAKE:-make} -t always once
4448 if test -f always ; then
4449 echo "no (case 1)" > ../conftest.tmp
4450 elif test ! -f always.out ; then
4451 echo "no (case 2)" > ../conftest.tmp
4452 elif test ! -f once.out ; then
4453 echo "no (case 3)" > ../conftest.tmp
4454 elif ! cmp -s always.out once.out ; then
4455 echo "no (case 4)" > ../conftest.tmp
4456 diff always.out once.out
4458 cf_check="`cat always.out`"
4459 if test "x$cf_check" != "x$cf_data" ; then
4460 echo "no (case 5)" > ../conftest.tmp
4462 echo yes > ../conftest.tmp
4470 cf_cv_make_PHONY="`cat conftest.tmp`"
4474 echo "$as_me:4474: result: $cf_cv_make_PHONY" >&5
4475 echo "${ECHO_T}$cf_cv_make_PHONY" >&6
4478 test "x$cf_cv_make_PHONY" = xyes && MAKE_PHONY=
4479 test "x$cf_cv_make_PHONY" != xyes && MAKE_NO_PHONY=
4481 for ac_prog in exctags ctags
4483 # Extract the first word of "$ac_prog", so it can be a program name with args.
4484 set dummy $ac_prog; ac_word=$2
4485 echo "$as_me:4485: checking for $ac_word" >&5
4486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4487 if test "${ac_cv_prog_CTAGS+set}" = set; then
4488 echo $ECHO_N "(cached) $ECHO_C" >&6
4490 if test -n "$CTAGS"; then
4491 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
4493 ac_save_IFS=$IFS; IFS=$ac_path_separator
4495 for ac_dir in $ac_dummy; do
4497 test -z "$ac_dir" && ac_dir=.
4498 $as_executable_p "$ac_dir/$ac_word" || continue
4499 ac_cv_prog_CTAGS="$ac_prog"
4500 echo "$as_me:4500: found $ac_dir/$ac_word" >&5
4506 CTAGS=$ac_cv_prog_CTAGS
4507 if test -n "$CTAGS"; then
4508 echo "$as_me:4508: result: $CTAGS" >&5
4509 echo "${ECHO_T}$CTAGS" >&6
4511 echo "$as_me:4511: result: no" >&5
4512 echo "${ECHO_T}no" >&6
4515 test -n "$CTAGS" && break
4518 for ac_prog in exetags etags
4520 # Extract the first word of "$ac_prog", so it can be a program name with args.
4521 set dummy $ac_prog; ac_word=$2
4522 echo "$as_me:4522: checking for $ac_word" >&5
4523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4524 if test "${ac_cv_prog_ETAGS+set}" = set; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
4527 if test -n "$ETAGS"; then
4528 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
4530 ac_save_IFS=$IFS; IFS=$ac_path_separator
4532 for ac_dir in $ac_dummy; do
4534 test -z "$ac_dir" && ac_dir=.
4535 $as_executable_p "$ac_dir/$ac_word" || continue
4536 ac_cv_prog_ETAGS="$ac_prog"
4537 echo "$as_me:4537: found $ac_dir/$ac_word" >&5
4543 ETAGS=$ac_cv_prog_ETAGS
4544 if test -n "$ETAGS"; then
4545 echo "$as_me:4545: result: $ETAGS" >&5
4546 echo "${ECHO_T}$ETAGS" >&6
4548 echo "$as_me:4548: result: no" >&5
4549 echo "${ECHO_T}no" >&6
4552 test -n "$ETAGS" && break
4555 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
4556 set dummy ${CTAGS:-ctags}; ac_word=$2
4557 echo "$as_me:4557: checking for $ac_word" >&5
4558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4559 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 if test -n "$MAKE_LOWER_TAGS"; then
4563 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
4565 ac_save_IFS=$IFS; IFS=$ac_path_separator
4567 for ac_dir in $ac_dummy; do
4569 test -z "$ac_dir" && ac_dir=.
4570 $as_executable_p "$ac_dir/$ac_word" || continue
4571 ac_cv_prog_MAKE_LOWER_TAGS="yes"
4572 echo "$as_me:4572: found $ac_dir/$ac_word" >&5
4576 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
4579 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
4580 if test -n "$MAKE_LOWER_TAGS"; then
4581 echo "$as_me:4581: result: $MAKE_LOWER_TAGS" >&5
4582 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
4584 echo "$as_me:4584: result: no" >&5
4585 echo "${ECHO_T}no" >&6
4588 if test "$cf_cv_mixedcase" = yes ; then
4589 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
4590 set dummy ${ETAGS:-etags}; ac_word=$2
4591 echo "$as_me:4591: checking for $ac_word" >&5
4592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4593 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 if test -n "$MAKE_UPPER_TAGS"; then
4597 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
4599 ac_save_IFS=$IFS; IFS=$ac_path_separator
4601 for ac_dir in $ac_dummy; do
4603 test -z "$ac_dir" && ac_dir=.
4604 $as_executable_p "$ac_dir/$ac_word" || continue
4605 ac_cv_prog_MAKE_UPPER_TAGS="yes"
4606 echo "$as_me:4606: found $ac_dir/$ac_word" >&5
4610 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
4613 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
4614 if test -n "$MAKE_UPPER_TAGS"; then
4615 echo "$as_me:4615: result: $MAKE_UPPER_TAGS" >&5
4616 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
4618 echo "$as_me:4618: result: no" >&5
4619 echo "${ECHO_T}no" >&6
4626 if test "$MAKE_UPPER_TAGS" = yes ; then
4632 if test "$MAKE_LOWER_TAGS" = yes ; then
4638 echo "$as_me:4638: checking for makeflags variable" >&5
4639 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
4640 if test "${cf_cv_makeflags+set}" = set; then
4641 echo $ECHO_N "(cached) $ECHO_C" >&6
4645 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4647 cat >cf_makeflags.tmp <<CF_EOF
4650 @ echo '.$cf_option'
4652 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | ${FGREP-fgrep} -v "ing directory" | sed -e 's,[ ]*$,,'`
4653 case "$cf_result" in
4655 cf_result="`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`"
4656 case "$cf_result" in
4657 (.*CC=*) cf_cv_makeflags=
4659 (*) cf_cv_makeflags=$cf_option
4668 echo "${as_me:-configure}:4668: testing given option \"$cf_option\",no match \"$cf_result\" ..." 1>&5
4673 rm -f cf_makeflags.tmp
4676 echo "$as_me:4676: result: $cf_cv_makeflags" >&5
4677 echo "${ECHO_T}$cf_cv_makeflags" >&6
4679 if test -n "$ac_tool_prefix"; then
4680 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4681 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4682 echo "$as_me:4682: checking for $ac_word" >&5
4683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4684 if test "${ac_cv_prog_RANLIB+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4687 if test -n "$RANLIB"; then
4688 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4690 ac_save_IFS=$IFS; IFS=$ac_path_separator
4692 for ac_dir in $ac_dummy; do
4694 test -z "$ac_dir" && ac_dir=.
4695 $as_executable_p "$ac_dir/$ac_word" || continue
4696 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4697 echo "$as_me:4697: found $ac_dir/$ac_word" >&5
4703 RANLIB=$ac_cv_prog_RANLIB
4704 if test -n "$RANLIB"; then
4705 echo "$as_me:4705: result: $RANLIB" >&5
4706 echo "${ECHO_T}$RANLIB" >&6
4708 echo "$as_me:4708: result: no" >&5
4709 echo "${ECHO_T}no" >&6
4713 if test -z "$ac_cv_prog_RANLIB"; then
4714 ac_ct_RANLIB=$RANLIB
4715 # Extract the first word of "ranlib", so it can be a program name with args.
4716 set dummy ranlib; ac_word=$2
4717 echo "$as_me:4717: checking for $ac_word" >&5
4718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4719 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4722 if test -n "$ac_ct_RANLIB"; then
4723 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4725 ac_save_IFS=$IFS; IFS=$ac_path_separator
4727 for ac_dir in $ac_dummy; do
4729 test -z "$ac_dir" && ac_dir=.
4730 $as_executable_p "$ac_dir/$ac_word" || continue
4731 ac_cv_prog_ac_ct_RANLIB="ranlib"
4732 echo "$as_me:4732: found $ac_dir/$ac_word" >&5
4736 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4739 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4740 if test -n "$ac_ct_RANLIB"; then
4741 echo "$as_me:4741: result: $ac_ct_RANLIB" >&5
4742 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4744 echo "$as_me:4744: result: no" >&5
4745 echo "${ECHO_T}no" >&6
4748 RANLIB=$ac_ct_RANLIB
4750 RANLIB="$ac_cv_prog_RANLIB"
4753 if test -n "$ac_tool_prefix"; then
4754 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4755 set dummy ${ac_tool_prefix}ld; ac_word=$2
4756 echo "$as_me:4756: checking for $ac_word" >&5
4757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4758 if test "${ac_cv_prog_LD+set}" = set; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 if test -n "$LD"; then
4762 ac_cv_prog_LD="$LD" # Let the user override the test.
4764 ac_save_IFS=$IFS; IFS=$ac_path_separator
4766 for ac_dir in $ac_dummy; do
4768 test -z "$ac_dir" && ac_dir=.
4769 $as_executable_p "$ac_dir/$ac_word" || continue
4770 ac_cv_prog_LD="${ac_tool_prefix}ld"
4771 echo "$as_me:4771: found $ac_dir/$ac_word" >&5
4778 if test -n "$LD"; then
4779 echo "$as_me:4779: result: $LD" >&5
4780 echo "${ECHO_T}$LD" >&6
4782 echo "$as_me:4782: result: no" >&5
4783 echo "${ECHO_T}no" >&6
4787 if test -z "$ac_cv_prog_LD"; then
4789 # Extract the first word of "ld", so it can be a program name with args.
4790 set dummy ld; ac_word=$2
4791 echo "$as_me:4791: checking for $ac_word" >&5
4792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4793 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4794 echo $ECHO_N "(cached) $ECHO_C" >&6
4796 if test -n "$ac_ct_LD"; then
4797 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4799 ac_save_IFS=$IFS; IFS=$ac_path_separator
4801 for ac_dir in $ac_dummy; do
4803 test -z "$ac_dir" && ac_dir=.
4804 $as_executable_p "$ac_dir/$ac_word" || continue
4805 ac_cv_prog_ac_ct_LD="ld"
4806 echo "$as_me:4806: found $ac_dir/$ac_word" >&5
4810 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4813 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4814 if test -n "$ac_ct_LD"; then
4815 echo "$as_me:4815: result: $ac_ct_LD" >&5
4816 echo "${ECHO_T}$ac_ct_LD" >&6
4818 echo "$as_me:4818: result: no" >&5
4819 echo "${ECHO_T}no" >&6
4827 if test -n "$ac_tool_prefix"; then
4828 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4829 set dummy ${ac_tool_prefix}ar; ac_word=$2
4830 echo "$as_me:4830: checking for $ac_word" >&5
4831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4832 if test "${ac_cv_prog_AR+set}" = set; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
4835 if test -n "$AR"; then
4836 ac_cv_prog_AR="$AR" # Let the user override the test.
4838 ac_save_IFS=$IFS; IFS=$ac_path_separator
4840 for ac_dir in $ac_dummy; do
4842 test -z "$ac_dir" && ac_dir=.
4843 $as_executable_p "$ac_dir/$ac_word" || continue
4844 ac_cv_prog_AR="${ac_tool_prefix}ar"
4845 echo "$as_me:4845: found $ac_dir/$ac_word" >&5
4852 if test -n "$AR"; then
4853 echo "$as_me:4853: result: $AR" >&5
4854 echo "${ECHO_T}$AR" >&6
4856 echo "$as_me:4856: result: no" >&5
4857 echo "${ECHO_T}no" >&6
4861 if test -z "$ac_cv_prog_AR"; then
4863 # Extract the first word of "ar", so it can be a program name with args.
4864 set dummy ar; ac_word=$2
4865 echo "$as_me:4865: checking for $ac_word" >&5
4866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4867 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4870 if test -n "$ac_ct_AR"; then
4871 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4873 ac_save_IFS=$IFS; IFS=$ac_path_separator
4875 for ac_dir in $ac_dummy; do
4877 test -z "$ac_dir" && ac_dir=.
4878 $as_executable_p "$ac_dir/$ac_word" || continue
4879 ac_cv_prog_ac_ct_AR="ar"
4880 echo "$as_me:4880: found $ac_dir/$ac_word" >&5
4884 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4887 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4888 if test -n "$ac_ct_AR"; then
4889 echo "$as_me:4889: result: $ac_ct_AR" >&5
4890 echo "${ECHO_T}$ac_ct_AR" >&6
4892 echo "$as_me:4892: result: no" >&5
4893 echo "${ECHO_T}no" >&6
4901 if test -n "$ac_tool_prefix"; then
4902 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4903 set dummy ${ac_tool_prefix}nm; ac_word=$2
4904 echo "$as_me:4904: checking for $ac_word" >&5
4905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4906 if test "${ac_cv_prog_NM+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4909 if test -n "$NM"; then
4910 ac_cv_prog_NM="$NM" # Let the user override the test.
4912 ac_save_IFS=$IFS; IFS=$ac_path_separator
4914 for ac_dir in $ac_dummy; do
4916 test -z "$ac_dir" && ac_dir=.
4917 $as_executable_p "$ac_dir/$ac_word" || continue
4918 ac_cv_prog_NM="${ac_tool_prefix}nm"
4919 echo "$as_me:4919: found $ac_dir/$ac_word" >&5
4926 if test -n "$NM"; then
4927 echo "$as_me:4927: result: $NM" >&5
4928 echo "${ECHO_T}$NM" >&6
4930 echo "$as_me:4930: result: no" >&5
4931 echo "${ECHO_T}no" >&6
4935 if test -z "$ac_cv_prog_NM"; then
4937 # Extract the first word of "nm", so it can be a program name with args.
4938 set dummy nm; ac_word=$2
4939 echo "$as_me:4939: checking for $ac_word" >&5
4940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4941 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
4944 if test -n "$ac_ct_NM"; then
4945 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4947 ac_save_IFS=$IFS; IFS=$ac_path_separator
4949 for ac_dir in $ac_dummy; do
4951 test -z "$ac_dir" && ac_dir=.
4952 $as_executable_p "$ac_dir/$ac_word" || continue
4953 ac_cv_prog_ac_ct_NM="nm"
4954 echo "$as_me:4954: found $ac_dir/$ac_word" >&5
4958 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
4961 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4962 if test -n "$ac_ct_NM"; then
4963 echo "$as_me:4963: result: $ac_ct_NM" >&5
4964 echo "${ECHO_T}$ac_ct_NM" >&6
4966 echo "$as_me:4966: result: no" >&5
4967 echo "${ECHO_T}no" >&6
4975 if test -n "$ac_tool_prefix"; then
4976 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4977 set dummy ${ac_tool_prefix}ar; ac_word=$2
4978 echo "$as_me:4978: checking for $ac_word" >&5
4979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4980 if test "${ac_cv_prog_AR+set}" = set; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
4983 if test -n "$AR"; then
4984 ac_cv_prog_AR="$AR" # Let the user override the test.
4986 ac_save_IFS=$IFS; IFS=$ac_path_separator
4988 for ac_dir in $ac_dummy; do
4990 test -z "$ac_dir" && ac_dir=.
4991 $as_executable_p "$ac_dir/$ac_word" || continue
4992 ac_cv_prog_AR="${ac_tool_prefix}ar"
4993 echo "$as_me:4993: found $ac_dir/$ac_word" >&5
5000 if test -n "$AR"; then
5001 echo "$as_me:5001: result: $AR" >&5
5002 echo "${ECHO_T}$AR" >&6
5004 echo "$as_me:5004: result: no" >&5
5005 echo "${ECHO_T}no" >&6
5009 if test -z "$ac_cv_prog_AR"; then
5011 # Extract the first word of "ar", so it can be a program name with args.
5012 set dummy ar; ac_word=$2
5013 echo "$as_me:5013: checking for $ac_word" >&5
5014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5015 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5018 if test -n "$ac_ct_AR"; then
5019 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5021 ac_save_IFS=$IFS; IFS=$ac_path_separator
5023 for ac_dir in $ac_dummy; do
5025 test -z "$ac_dir" && ac_dir=.
5026 $as_executable_p "$ac_dir/$ac_word" || continue
5027 ac_cv_prog_ac_ct_AR="ar"
5028 echo "$as_me:5028: found $ac_dir/$ac_word" >&5
5032 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
5035 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5036 if test -n "$ac_ct_AR"; then
5037 echo "$as_me:5037: result: $ac_ct_AR" >&5
5038 echo "${ECHO_T}$ac_ct_AR" >&6
5040 echo "$as_me:5040: result: no" >&5
5041 echo "${ECHO_T}no" >&6
5049 echo "$as_me:5049: checking for options to update archives" >&5
5050 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
5051 if test "${cf_cv_ar_flags+set}" = set; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5055 case "$cf_cv_system_name" in
5058 cat >mk_static_lib.sh <<-EOF
5063 exec \$MSVC_BIN -out:"\$out" \$@
5065 chmod +x mk_static_lib.sh
5066 AR=`pwd`/mk_static_lib.sh
5069 cf_cv_ar_flags=unknown
5070 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
5073 # check if $ARFLAGS already contains this choice
5074 if test "x$ARFLAGS" != "x" ; then
5075 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
5076 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
5082 rm -f "conftest.$ac_cv_objext"
5085 cat >"conftest.$ac_ext" <<EOF
5086 #line 5086 "configure"
5087 int testdata[3] = { 123, 456, 789 };
5089 if { (eval echo "$as_me:5089: \"$ac_compile\"") >&5
5090 (eval $ac_compile) 2>&5
5092 echo "$as_me:5092: \$? = $ac_status" >&5
5093 (exit "$ac_status"); } ; then
5094 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
5095 $AR $ARFLAGS "$cf_ar_flags" conftest.a "conftest.$ac_cv_objext" 2>&5 1>/dev/null
5096 if test -f conftest.a ; then
5097 cf_cv_ar_flags="$cf_ar_flags"
5101 test -n "$verbose" && echo " cannot compile test-program" 1>&6
5103 echo "${as_me:-configure}:5103: testing cannot compile test-program ..." 1>&5
5108 rm -f conftest.a "conftest.$ac_ext" "conftest.$ac_cv_objext"
5113 echo "$as_me:5113: result: $cf_cv_ar_flags" >&5
5114 echo "${ECHO_T}$cf_cv_ar_flags" >&6
5116 if test -n "$ARFLAGS" ; then
5117 if test -n "$cf_cv_ar_flags" ; then
5118 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
5121 ARFLAGS=$cf_cv_ar_flags
5124 echo "$as_me:5124: checking if you have specified an install-prefix" >&5
5125 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
5127 # Check whether --with-install-prefix or --without-install-prefix was given.
5128 if test "${with_install_prefix+set}" = set; then
5129 withval="$with_install_prefix"
5133 (*) DESTDIR="$withval"
5137 echo "$as_me:5137: result: $DESTDIR" >&5
5138 echo "${ECHO_T}$DESTDIR" >&6
5140 ###############################################################################
5142 # If we're cross-compiling, allow the user to override the tools and their
5143 # options. The configure script is oriented toward identifying the host
5144 # compiler, etc., but we need a build compiler to generate parts of the source.
5146 case "$cf_cv_system_name" in
5148 LDFLAGS="$LDFLAGS user32.lib"
5153 if test "$cross_compiling" = yes ; then
5155 # defaults that we might want to override
5156 : ${BUILD_CFLAGS:=''}
5157 : ${BUILD_CPPFLAGS:=''}
5158 : ${BUILD_LDFLAGS:=''}
5160 : ${BUILD_EXEEXT:='$x'}
5161 : ${BUILD_OBJEXT:='o'}
5163 # Check whether --with-build-cc or --without-build-cc was given.
5164 if test "${with_build_cc+set}" = set; then
5165 withval="$with_build_cc"
5168 for ac_prog in gcc clang c99 c89 cc cl
5170 # Extract the first word of "$ac_prog", so it can be a program name with args.
5171 set dummy $ac_prog; ac_word=$2
5172 echo "$as_me:5172: checking for $ac_word" >&5
5173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5174 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5177 if test -n "$BUILD_CC"; then
5178 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5180 ac_save_IFS=$IFS; IFS=$ac_path_separator
5182 for ac_dir in $ac_dummy; do
5184 test -z "$ac_dir" && ac_dir=.
5185 $as_executable_p "$ac_dir/$ac_word" || continue
5186 ac_cv_prog_BUILD_CC="$ac_prog"
5187 echo "$as_me:5187: found $ac_dir/$ac_word" >&5
5193 BUILD_CC=$ac_cv_prog_BUILD_CC
5194 if test -n "$BUILD_CC"; then
5195 echo "$as_me:5195: result: $BUILD_CC" >&5
5196 echo "${ECHO_T}$BUILD_CC" >&6
5198 echo "$as_me:5198: result: no" >&5
5199 echo "${ECHO_T}no" >&6
5202 test -n "$BUILD_CC" && break
5204 test -n "$BUILD_CC" || BUILD_CC="none"
5207 echo "$as_me:5207: checking for native build C compiler" >&5
5208 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
5209 echo "$as_me:5209: result: $BUILD_CC" >&5
5210 echo "${ECHO_T}$BUILD_CC" >&6
5212 echo "$as_me:5212: checking for native build C preprocessor" >&5
5213 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
5215 # Check whether --with-build-cpp or --without-build-cpp was given.
5216 if test "${with_build_cpp+set}" = set; then
5217 withval="$with_build_cpp"
5218 BUILD_CPP="$withval"
5220 BUILD_CPP='${BUILD_CC} -E'
5222 echo "$as_me:5222: result: $BUILD_CPP" >&5
5223 echo "${ECHO_T}$BUILD_CPP" >&6
5225 echo "$as_me:5225: checking for native build C flags" >&5
5226 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
5228 # Check whether --with-build-cflags or --without-build-cflags was given.
5229 if test "${with_build_cflags+set}" = set; then
5230 withval="$with_build_cflags"
5231 BUILD_CFLAGS="$withval"
5233 echo "$as_me:5233: result: $BUILD_CFLAGS" >&5
5234 echo "${ECHO_T}$BUILD_CFLAGS" >&6
5236 echo "$as_me:5236: checking for native build C preprocessor-flags" >&5
5237 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
5239 # Check whether --with-build-cppflags or --without-build-cppflags was given.
5240 if test "${with_build_cppflags+set}" = set; then
5241 withval="$with_build_cppflags"
5242 BUILD_CPPFLAGS="$withval"
5244 echo "$as_me:5244: result: $BUILD_CPPFLAGS" >&5
5245 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
5247 echo "$as_me:5247: checking for native build linker-flags" >&5
5248 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
5250 # Check whether --with-build-ldflags or --without-build-ldflags was given.
5251 if test "${with_build_ldflags+set}" = set; then
5252 withval="$with_build_ldflags"
5253 BUILD_LDFLAGS="$withval"
5255 echo "$as_me:5255: result: $BUILD_LDFLAGS" >&5
5256 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
5258 echo "$as_me:5258: checking for native build linker-libraries" >&5
5259 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
5261 # Check whether --with-build-libs or --without-build-libs was given.
5262 if test "${with_build_libs+set}" = set; then
5263 withval="$with_build_libs"
5264 BUILD_LIBS="$withval"
5266 echo "$as_me:5266: result: $BUILD_LIBS" >&5
5267 echo "${ECHO_T}$BUILD_LIBS" >&6
5269 # this assumes we're on Unix.
5273 : ${BUILD_CC:='${CC}'}
5275 if { test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}'; } ; then
5276 { { echo "$as_me:5276: error: Cross-build requires two compilers.
5277 Use --with-build-cc to specify the native compiler." >&5
5278 echo "$as_me: error: Cross-build requires two compilers.
5279 Use --with-build-cc to specify the native compiler." >&2;}
5280 { (exit 1); exit 1; }; }
5284 : ${BUILD_CC:='${CC}'}
5285 : ${BUILD_CPP:='${CPP}'}
5286 : ${BUILD_CFLAGS:='${CFLAGS}'}
5287 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
5288 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
5289 : ${BUILD_LIBS:='${LIBS}'}
5290 : ${BUILD_EXEEXT:='$x'}
5291 : ${BUILD_OBJEXT:='o'}
5294 ###############################################################################
5296 ### Options to allow the user to specify the set of libraries which are used.
5297 ### Use "--without-normal --with-shared" to allow the default model to be
5298 ### shared, for example.
5301 echo "$as_me:5301: checking if libtool -version-number should be used" >&5
5302 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
5304 # Check whether --enable-libtool-version or --disable-libtool-version was given.
5305 if test "${enable_libtool_version+set}" = set; then
5306 enableval="$enable_libtool_version"
5307 test "$enableval" != no && enableval=yes
5308 if test "$enableval" != "yes" ; then
5309 cf_libtool_version=no
5311 cf_libtool_version=yes
5315 cf_libtool_version=yes
5318 echo "$as_me:5318: result: $cf_libtool_version" >&5
5319 echo "${ECHO_T}$cf_libtool_version" >&6
5321 if test "$cf_libtool_version" = yes ; then
5322 LIBTOOL_VERSION="-version-number"
5324 LIBTOOL_VERSION="-version-info"
5327 { echo "$as_me:5327: WARNING: VERSION was not set" >&5
5328 echo "$as_me: WARNING: VERSION was not set" >&2;}
5331 ABI_VERSION="$VERSION"
5332 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
5334 echo "${as_me:-configure}:5334: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
5338 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'`
5339 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
5341 echo "${as_me:-configure}:5341: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
5345 { echo "$as_me:5345: WARNING: unexpected VERSION value: $VERSION" >&5
5346 echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;}
5353 # common library maintenance symbols that are convenient for libtool scripts:
5354 LIB_CREATE='${AR} -cr'
5355 LIB_OBJECT='${OBJECTS}'
5359 # symbols used to prop libtool up to enable it to determine what it should be
5367 echo "$as_me:5367: checking if you want to build libraries with libtool" >&5
5368 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
5370 # Check whether --with-libtool or --without-libtool was given.
5371 if test "${with_libtool+set}" = set; then
5372 withval="$with_libtool"
5373 with_libtool=$withval
5377 echo "$as_me:5377: result: $with_libtool" >&5
5378 echo "${ECHO_T}$with_libtool" >&6
5379 if test "$with_libtool" != "no"; then
5381 if test "$with_libtool" != "yes" ; then
5383 if test "x$prefix" != xNONE; then
5384 cf_path_syntax="$prefix"
5386 cf_path_syntax="$ac_default_prefix"
5389 case ".$with_libtool" in
5394 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
5396 (.\$\{*prefix\}*|.\$\{*dir\}*)
5397 eval with_libtool="$with_libtool"
5398 case ".$with_libtool" in
5400 with_libtool=`echo "$with_libtool" | sed -e s%NONE%$cf_path_syntax%`
5405 with_libtool=`echo "$with_libtool" | sed -e s%NONE%$cf_path_syntax%`
5408 { { echo "$as_me:5408: error: expected a pathname, not \"$with_libtool\"" >&5
5409 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
5410 { (exit 1); exit 1; }; }
5414 LIBTOOL=$with_libtool
5416 if test -n "$ac_tool_prefix"; then
5417 for ac_prog in libtool glibtool
5419 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5420 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5421 echo "$as_me:5421: checking for $ac_word" >&5
5422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5423 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5426 if test -n "$LIBTOOL"; then
5427 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
5429 ac_save_IFS=$IFS; IFS=$ac_path_separator
5431 for ac_dir in $ac_dummy; do
5433 test -z "$ac_dir" && ac_dir=.
5434 $as_executable_p "$ac_dir/$ac_word" || continue
5435 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5436 echo "$as_me:5436: found $ac_dir/$ac_word" >&5
5442 LIBTOOL=$ac_cv_prog_LIBTOOL
5443 if test -n "$LIBTOOL"; then
5444 echo "$as_me:5444: result: $LIBTOOL" >&5
5445 echo "${ECHO_T}$LIBTOOL" >&6
5447 echo "$as_me:5447: result: no" >&5
5448 echo "${ECHO_T}no" >&6
5451 test -n "$LIBTOOL" && break
5454 if test -z "$LIBTOOL"; then
5455 ac_ct_LIBTOOL=$LIBTOOL
5456 for ac_prog in libtool glibtool
5458 # Extract the first word of "$ac_prog", so it can be a program name with args.
5459 set dummy $ac_prog; ac_word=$2
5460 echo "$as_me:5460: checking for $ac_word" >&5
5461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5462 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5465 if test -n "$ac_ct_LIBTOOL"; then
5466 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5468 ac_save_IFS=$IFS; IFS=$ac_path_separator
5470 for ac_dir in $ac_dummy; do
5472 test -z "$ac_dir" && ac_dir=.
5473 $as_executable_p "$ac_dir/$ac_word" || continue
5474 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5475 echo "$as_me:5475: found $ac_dir/$ac_word" >&5
5481 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5482 if test -n "$ac_ct_LIBTOOL"; then
5483 echo "$as_me:5483: result: $ac_ct_LIBTOOL" >&5
5484 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5486 echo "$as_me:5486: result: no" >&5
5487 echo "${ECHO_T}no" >&6
5490 test -n "$ac_ct_LIBTOOL" && break
5492 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5494 LIBTOOL=$ac_ct_LIBTOOL
5497 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5499 cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' |sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'`
5501 cf_cv_libtool_version=
5503 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5505 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool
5508 unset ac_cv_prog_ac_ct_LIBTOOL
5512 if test -n "$ac_tool_prefix"; then
5513 for ac_prog in glibtool
5515 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5516 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5517 echo "$as_me:5517: checking for $ac_word" >&5
5518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5519 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
5520 echo $ECHO_N "(cached) $ECHO_C" >&6
5522 if test -n "$LIBTOOL"; then
5523 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
5525 ac_save_IFS=$IFS; IFS=$ac_path_separator
5527 for ac_dir in $ac_dummy; do
5529 test -z "$ac_dir" && ac_dir=.
5530 $as_executable_p "$ac_dir/$ac_word" || continue
5531 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5532 echo "$as_me:5532: found $ac_dir/$ac_word" >&5
5538 LIBTOOL=$ac_cv_prog_LIBTOOL
5539 if test -n "$LIBTOOL"; then
5540 echo "$as_me:5540: result: $LIBTOOL" >&5
5541 echo "${ECHO_T}$LIBTOOL" >&6
5543 echo "$as_me:5543: result: no" >&5
5544 echo "${ECHO_T}no" >&6
5547 test -n "$LIBTOOL" && break
5550 if test -z "$LIBTOOL"; then
5551 ac_ct_LIBTOOL=$LIBTOOL
5552 for ac_prog in glibtool
5554 # Extract the first word of "$ac_prog", so it can be a program name with args.
5555 set dummy $ac_prog; ac_word=$2
5556 echo "$as_me:5556: checking for $ac_word" >&5
5557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5558 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5559 echo $ECHO_N "(cached) $ECHO_C" >&6
5561 if test -n "$ac_ct_LIBTOOL"; then
5562 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5564 ac_save_IFS=$IFS; IFS=$ac_path_separator
5566 for ac_dir in $ac_dummy; do
5568 test -z "$ac_dir" && ac_dir=.
5569 $as_executable_p "$ac_dir/$ac_word" || continue
5570 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5571 echo "$as_me:5571: found $ac_dir/$ac_word" >&5
5577 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5578 if test -n "$ac_ct_LIBTOOL"; then
5579 echo "$as_me:5579: result: $ac_ct_LIBTOOL" >&5
5580 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5582 echo "$as_me:5582: result: no" >&5
5583 echo "${ECHO_T}no" >&6
5586 test -n "$ac_ct_LIBTOOL" && break
5588 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5590 LIBTOOL=$ac_ct_LIBTOOL
5593 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5595 cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' |sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'`
5597 cf_cv_libtool_version=
5599 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5603 if test -z "$LIBTOOL" ; then
5604 { { echo "$as_me:5604: error: Cannot find libtool" >&5
5605 echo "$as_me: error: Cannot find libtool" >&2;}
5606 { (exit 1); exit 1; }; }
5608 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${libdir} ${LIBTOOL_VERSION} `cut -f1 ${top_srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
5609 LIB_OBJECT='${OBJECTS:.o=.lo}'
5611 LIB_CLEAN='${LIBTOOL} --mode=clean'
5612 LIB_COMPILE='${LIBTOOL} --mode=compile'
5613 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
5614 LIB_INSTALL='${LIBTOOL} --mode=install'
5615 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
5618 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5620 echo "$as_me:5620: checking version of $LIBTOOL" >&5
5621 echo $ECHO_N "checking version of $LIBTOOL... $ECHO_C" >&6
5623 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5625 cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' |sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'`
5627 cf_cv_libtool_version=
5629 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5631 echo "$as_me:5631: result: $cf_cv_libtool_version" >&5
5632 echo "${ECHO_T}$cf_cv_libtool_version" >&6
5633 if test -n "$cf_cv_libtool_version"
5635 cf_check_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' -e 's,[()],...,g' -e 's,[ ],-,g' -e '2,$d'`
5636 case "x$cf_check_libtool_version" in
5637 (*...GNU-libtool...*)
5640 { { echo "$as_me:5640: error: This is not GNU libtool" >&5
5641 echo "$as_me: error: This is not GNU libtool" >&2;}
5642 { (exit 1); exit 1; }; }
5646 { { echo "$as_me:5646: error: No version found for $LIBTOOL" >&5
5647 echo "$as_me: error: No version found for $LIBTOOL" >&2;}
5648 { (exit 1); exit 1; }; }
5651 { { echo "$as_me:5651: error: GNU libtool has not been found" >&5
5652 echo "$as_me: error: GNU libtool has not been found" >&2;}
5653 { (exit 1); exit 1; }; }
5656 # special hack to add -no-undefined (which libtool should do for itself)
5658 case "$cf_cv_system_name" in
5659 (cygwin*|msys*|mingw32*|os2*|uwin*|aix[4-7])
5660 LT_UNDEF=-no-undefined
5664 # special hack to add --tag option for C++ compiler
5665 case "$cf_cv_libtool_version" in
5666 (1.[5-9]*|[2-9].[0-9.a-z]*)
5667 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
5668 LIBTOOL="$LIBTOOL --tag=CC"
5671 LIBTOOL_CXX="$LIBTOOL"
5679 test -z "$LIBTOOL" && ECHO_LT=
5681 if test "$with_libtool" != "no" ; then
5683 cf_list_models="$cf_list_models libtool"
5687 echo "$as_me:5687: checking if you want to build shared libraries" >&5
5688 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
5690 # Check whether --with-shared or --without-shared was given.
5691 if test "${with_shared+set}" = set; then
5692 withval="$with_shared"
5693 with_shared=$withval
5697 echo "$as_me:5697: result: $with_shared" >&5
5698 echo "${ECHO_T}$with_shared" >&6
5699 test "x$with_shared" = "xyes" && cf_list_models="$cf_list_models shared"
5701 echo "$as_me:5701: checking if you want to build static libraries" >&5
5702 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
5704 # Check whether --with-normal or --without-normal was given.
5705 if test "${with_normal+set}" = set; then
5706 withval="$with_normal"
5707 with_normal=$withval
5711 echo "$as_me:5711: result: $with_normal" >&5
5712 echo "${ECHO_T}$with_normal" >&6
5713 test "x$with_normal" = "xyes" && cf_list_models="$cf_list_models normal"
5715 echo "$as_me:5715: checking if you want to build debug libraries" >&5
5716 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
5718 # Check whether --with-debug or --without-debug was given.
5719 if test "${with_debug+set}" = set; then
5720 withval="$with_debug"
5725 echo "$as_me:5725: result: $with_debug" >&5
5726 echo "${ECHO_T}$with_debug" >&6
5727 test "x$with_debug" = "xyes" && cf_list_models="$cf_list_models debug"
5729 echo "$as_me:5729: checking if you want to build profiling libraries" >&5
5730 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
5732 # Check whether --with-profile or --without-profile was given.
5733 if test "${with_profile+set}" = set; then
5734 withval="$with_profile"
5735 with_profile=$withval
5739 echo "$as_me:5739: result: $with_profile" >&5
5740 echo "${ECHO_T}$with_profile" >&6
5741 test "x$with_profile" = "xyes" && cf_list_models="$cf_list_models profile"
5745 if test "X$cf_with_cxx_binding" != Xno; then
5746 if test "x$with_shared" = "xyes"; then
5747 echo "$as_me:5747: checking if you want to build C++ shared libraries" >&5
5748 echo $ECHO_N "checking if you want to build C++ shared libraries... $ECHO_C" >&6
5750 # Check whether --with-cxx-shared or --without-cxx-shared was given.
5751 if test "${with_cxx_shared+set}" = set; then
5752 withval="$with_cxx_shared"
5753 with_shared_cxx=$withval
5757 echo "$as_me:5757: result: $with_shared_cxx" >&5
5758 echo "${ECHO_T}$with_shared_cxx" >&6
5762 ###############################################################################
5764 echo "$as_me:5764: checking for specified models" >&5
5765 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
5766 test -z "$cf_list_models" && cf_list_models=normal
5767 test "$with_libtool" != "no" && cf_list_models=libtool
5768 echo "$as_me:5768: result: $cf_list_models" >&5
5769 echo "${ECHO_T}$cf_list_models" >&6
5771 ### Use the first model as the default, and save its suffix for use in building
5772 ### up test-applications.
5773 echo "$as_me:5773: checking for default model" >&5
5774 echo $ECHO_N "checking for default model... $ECHO_C" >&6
5775 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
5776 echo "$as_me:5776: result: $DFT_LWR_MODEL" >&5
5777 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
5779 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5790 echo "$as_me:5790: checking if you want to have a library-prefix" >&5
5791 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
5793 # Check whether --with-lib-prefix or --without-lib-prefix was given.
5794 if test "${with_lib_prefix+set}" = set; then
5795 withval="$with_lib_prefix"
5796 with_lib_prefix=$withval
5798 with_lib_prefix=auto
5800 echo "$as_me:5800: result: $with_lib_prefix" >&5
5801 echo "${ECHO_T}$with_lib_prefix" >&6
5803 if test "$with_lib_prefix" = auto
5806 case "$cf_cv_system_name" in
5808 if test "$DFT_LWR_MODEL" = libtool; then
5817 (*) LIB_PREFIX='lib'
5820 cf_prefix=$LIB_PREFIX
5822 elif test "$with_lib_prefix" = no
5826 LIB_PREFIX=$with_lib_prefix
5831 echo "$as_me:5831: checking for PATH separator" >&5
5832 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
5833 case "$cf_cv_system_name" in
5834 (os2*) PATH_SEPARATOR=';' ;;
5835 (*) ${PATH_SEPARATOR:=':'} ;;
5838 echo "$as_me:5838: result: $PATH_SEPARATOR" >&5
5839 echo "${ECHO_T}$PATH_SEPARATOR" >&6
5841 ###############################################################################
5843 echo "$as_me:5843: checking if you want to build a separate terminfo library" >&5
5844 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
5846 # Check whether --with-termlib or --without-termlib was given.
5847 if test "${with_termlib+set}" = set; then
5848 withval="$with_termlib"
5849 with_termlib=$withval
5853 echo "$as_me:5853: result: $with_termlib" >&5
5854 echo "${ECHO_T}$with_termlib" >&6
5856 echo "$as_me:5856: checking if you want to build a separate tic library" >&5
5857 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
5859 # Check whether --with-ticlib or --without-ticlib was given.
5860 if test "${with_ticlib+set}" = set; then
5861 withval="$with_ticlib"
5862 with_ticlib=$withval
5866 echo "$as_me:5866: result: $with_ticlib" >&5
5867 echo "${ECHO_T}$with_ticlib" >&6
5869 if test X"$CC_G_OPT" = X"" ; then
5871 test -n "$GCC" && test "x${ac_cv_prog_cc_g}" != xyes && CC_G_OPT=''
5874 if test X"$CXX_G_OPT" = X"" ; then
5876 test -n "$GXX" && test "x${ac_cv_prog_cxx_g}" != xyes && CXX_G_OPT=''
5879 echo "$as_me:5879: checking for default loader flags" >&5
5880 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5881 case "$DFT_LWR_MODEL" in
5882 (libtool) LD_MODEL='' ;;
5883 (normal) LD_MODEL='' ;;
5884 (debug) LD_MODEL=$CC_G_OPT ;;
5885 (profile) LD_MODEL='-pg';;
5886 (shared) LD_MODEL='' ;;
5888 echo "$as_me:5888: result: $LD_MODEL" >&5
5889 echo "${ECHO_T}$LD_MODEL" >&6
5891 case "$DFT_LWR_MODEL" in
5894 echo "$as_me:5894: checking if rpath option should be used" >&5
5895 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5897 # Check whether --enable-rpath or --disable-rpath was given.
5898 if test "${enable_rpath+set}" = set; then
5899 enableval="$enable_rpath"
5900 cf_cv_enable_rpath=$enableval
5902 cf_cv_enable_rpath=no
5904 echo "$as_me:5904: result: $cf_cv_enable_rpath" >&5
5905 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
5907 echo "$as_me:5907: checking if shared libraries should be relinked during install" >&5
5908 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5910 # Check whether --enable-relink or --disable-relink was given.
5911 if test "${enable_relink+set}" = set; then
5912 enableval="$enable_relink"
5913 cf_cv_do_relink=$enableval
5917 echo "$as_me:5917: result: $cf_cv_do_relink" >&5
5918 echo "${ECHO_T}$cf_cv_do_relink" >&6
5922 # we will build libraries one-level down.
5926 if test "x$cf_cv_enable_rpath" != xno
5928 echo "$as_me:5928: checking for an rpath option" >&5
5929 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
5930 case "$cf_cv_system_name" in
5932 if test "$GCC" = yes; then
5933 LD_RPATH_OPT="-Wl,-rpath,"
5935 LD_RPATH_OPT="-rpath "
5938 (linux*|gnu*|k*bsd*-gnu|freebsd*)
5939 LD_RPATH_OPT="-Wl,-rpath,"
5941 (openbsd[2-9].*|mirbsd*)
5942 LD_RPATH_OPT="-Wl,-rpath,"
5945 LD_RPATH_OPT="-rpath "
5948 LD_RPATH_OPT="-Wl,-rpath,"
5951 LD_RPATH_OPT="-rpath "
5959 echo "$as_me:5959: result: $LD_RPATH_OPT" >&5
5960 echo "${ECHO_T}$LD_RPATH_OPT" >&6
5962 case "x$LD_RPATH_OPT" in
5964 echo "$as_me:5964: checking if we need a space after rpath option" >&5
5965 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5966 cf_save_LIBS="$LIBS"
5971 for cf_add_1lib in ${LD_RPATH_OPT}$libdir; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
5973 for cf_add_1lib in $cf_add_0lib; do
5974 for cf_add_2lib in $cf_add_libs; do
5975 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
5980 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
5984 cat >"conftest.$ac_ext" <<_ACEOF
5985 #line 5985 "configure"
5986 #include "confdefs.h"
5996 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
5997 if { (eval echo "$as_me:5997: \"$ac_link\"") >&5
5998 (eval $ac_link) 2>&5
6000 echo "$as_me:6000: \$? = $ac_status" >&5
6001 (exit "$ac_status"); } &&
6002 { ac_try='test -s "conftest$ac_exeext"'
6003 { (eval echo "$as_me:6003: \"$ac_try\"") >&5
6006 echo "$as_me:6006: \$? = $ac_status" >&5
6007 (exit "$ac_status"); }; }; then
6010 echo "$as_me: failed program was:" >&5
6011 cat "conftest.$ac_ext" >&5
6014 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6015 LIBS="$cf_save_LIBS"
6016 echo "$as_me:6016: result: $cf_rpath_space" >&5
6017 echo "${ECHO_T}$cf_rpath_space" >&6
6018 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
6027 INSTALL_LIB="-m 644"
6028 : ${rel_builddir:=.}
6034 cf_cv_do_symlinks=no
6036 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
6038 echo "$as_me:6038: checking if release/abi version should be used for shared libs" >&5
6039 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
6041 # Check whether --with-shlib-version or --without-shlib-version was given.
6042 if test "${with_shlib_version+set}" = set; then
6043 withval="$with_shlib_version"
6044 test -z "$withval" && withval=auto
6047 cf_cv_shlib_version=auto
6050 cf_cv_shlib_version=$withval
6053 echo "$as_me:6053: result: $withval" >&5
6054 echo "${ECHO_T}$withval" >&6
6055 { { echo "$as_me:6055: error: option value must be one of: rel, abi, or auto" >&5
6056 echo "$as_me: error: option value must be one of: rel, abi, or auto" >&2;}
6057 { (exit 1); exit 1; }; }
6062 cf_cv_shlib_version=auto
6064 echo "$as_me:6064: result: $cf_cv_shlib_version" >&5
6065 echo "${ECHO_T}$cf_cv_shlib_version" >&6
6070 # Some less-capable ports of gcc support only -fpic
6074 if test "$GCC" = yes
6078 case "$cf_cv_system_name" in
6079 (*linux*) # e.g., PGI compiler
6085 if test "$cf_try_fPIC" = yes
6087 echo "$as_me:6087: checking which $CC option to use" >&5
6088 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
6089 cf_save_CFLAGS="$CFLAGS"
6090 for CC_SHARED_OPTS in -fPIC -fpic ''
6092 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
6093 cat >"conftest.$ac_ext" <<_ACEOF
6094 #line 6094 "configure"
6095 #include "confdefs.h"
6105 rm -f "conftest.$ac_objext"
6106 if { (eval echo "$as_me:6106: \"$ac_compile\"") >&5
6107 (eval $ac_compile) 2>&5
6109 echo "$as_me:6109: \$? = $ac_status" >&5
6110 (exit "$ac_status"); } &&
6111 { ac_try='test -s "conftest.$ac_objext"'
6112 { (eval echo "$as_me:6112: \"$ac_try\"") >&5
6115 echo "$as_me:6115: \$? = $ac_status" >&5
6116 (exit "$ac_status"); }; }; then
6119 echo "$as_me: failed program was:" >&5
6120 cat "conftest.$ac_ext" >&5
6122 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6124 echo "$as_me:6124: result: $CC_SHARED_OPTS" >&5
6125 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
6126 CFLAGS="$cf_save_CFLAGS"
6129 cf_cv_shlib_version_infix=no
6131 case "$cf_cv_system_name" in
6132 (aix4.3-9*|aix[5-7]*)
6133 if test "$GCC" = yes; then
6134 CC_SHARED_OPTS='-Wl,-brtl'
6135 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6137 CC_SHARED_OPTS='-brtl'
6138 # as well as '-qpic=large -G' or perhaps "-bM:SRE -bnoentry -bexpall"
6139 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6143 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
6147 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6148 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6149 cf_cv_shlib_version=cygdll
6150 cf_cv_shlib_version_infix=cygdll
6153 cat >mk_shared_lib.sh <<-CF_EOF
6156 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6159 Linking shared library
6160 ** SHARED_LIB \$SHARED_LIB
6161 ** IMPORT_LIB \$IMPORT_LIB
6163 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6165 chmod +x mk_shared_lib.sh
6169 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6170 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6171 cf_cv_shlib_version=msysdll
6172 cf_cv_shlib_version_infix=msysdll
6175 cat >mk_shared_lib.sh <<-CF_EOF
6178 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6181 Linking shared library
6182 ** SHARED_LIB \$SHARED_LIB
6183 ** IMPORT_LIB \$IMPORT_LIB
6185 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6187 chmod +x mk_shared_lib.sh
6190 cf_try_cflags="no-cpp-precomp"
6191 CC_SHARED_OPTS="-dynamic"
6192 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
6193 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
6194 cf_cv_shlib_version_infix=yes
6195 echo "$as_me:6195: checking if ld -search_paths_first works" >&5
6196 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
6197 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 cf_save_LDFLAGS=$LDFLAGS
6202 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6203 cat >"conftest.$ac_ext" <<_ACEOF
6204 #line 6204 "configure"
6205 #include "confdefs.h"
6215 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6216 if { (eval echo "$as_me:6216: \"$ac_link\"") >&5
6217 (eval $ac_link) 2>&5
6219 echo "$as_me:6219: \$? = $ac_status" >&5
6220 (exit "$ac_status"); } &&
6221 { ac_try='test -s "conftest$ac_exeext"'
6222 { (eval echo "$as_me:6222: \"$ac_try\"") >&5
6225 echo "$as_me:6225: \$? = $ac_status" >&5
6226 (exit "$ac_status"); }; }; then
6227 cf_cv_ldflags_search_paths_first=yes
6229 echo "$as_me: failed program was:" >&5
6230 cat "conftest.$ac_ext" >&5
6231 cf_cv_ldflags_search_paths_first=no
6233 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6234 LDFLAGS=$cf_save_LDFLAGS
6236 echo "$as_me:6236: result: $cf_cv_ldflags_search_paths_first" >&5
6237 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
6238 if test "$cf_cv_ldflags_search_paths_first" = yes; then
6239 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6244 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6245 if test "$cf_cv_shlib_version" = rel; then
6246 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6248 cf_cv_shared_soname='`basename $@`'
6251 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6254 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
6255 if test "$GCC" != yes; then
6258 MK_SHARED_LIB='${LD} ${LDFLAGS} -b -o $@'
6259 INSTALL_LIB="-m 555"
6262 # (tested with gcc 2.7.2 -- I don't have c89)
6263 if test "$GCC" = yes; then
6264 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
6267 LD_SHARED_OPTS='-Wl,+b,${libdir}'
6269 MK_SHARED_LIB='${LD} ${LDFLAGS} +b ${libdir} -b -o $@'
6270 # HP-UX shared libraries must be executable, and should be
6271 # readonly to exploit a quirk in the memory manager.
6272 INSTALL_LIB="-m 555"
6275 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6276 if test "$cf_cv_shlib_version" = rel; then
6277 cf_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6279 cf_shared_soname='`basename $@`'
6282 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o $@'
6285 if test "$cf_cv_enable_rpath" = yes ; then
6286 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6288 # tested with IRIX 5.2 and 'cc'.
6289 if test "$GCC" != yes; then
6290 CC_SHARED_OPTS='-KPIC'
6291 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -rdata_shared -soname `basename $@` -o $@'
6293 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,`basename $@` -o $@'
6295 cf_cv_rm_so_locs=yes
6297 (linux*|gnu*|k*bsd*-gnu)
6298 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6299 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6300 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6302 if test "$cf_cv_enable_rpath" = yes ; then
6303 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6306 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6307 if test "$cf_cv_shlib_version" = rel; then
6308 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6310 cf_cv_shared_soname='`basename $@`'
6313 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6316 cf_cv_shlib_version=msvcdll
6317 cf_cv_shlib_version_infix=msvcdll
6320 if test "$DFT_LWR_MODEL" = "shared" ; then
6321 LOCAL_LDFLAGS="-link -dll"
6322 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6323 EXTRA_LDFLAGS="-link -dll $EXTRA_LDFLAGS"
6326 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${LD} ${CFLAGS}'
6327 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.lib"
6328 cat >mk_shared_lib.sh <<-CF_EOF
6331 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.lib/'\`
6336 Linking shared library
6337 ** SHARED LIB \$SHARED_LIB
6338 ** IMPORT_LIB \$IMPORT_LIB
6340 args=\$(echo \$* | sed -E "s#-l(\w*)#\1.dll.lib#g" | sed -E "s#-L(\w*)#-LIBPATH:\1#g")
6341 exec \$my_ld -DLL -IMPLIB:"\${IMPORT_LIB}" -OUT:"\${SHARED_LIB}" ${LDFLAGS} \$args
6342 mv "\${IMPORT_LIB}" "\${IMPORT_LIB}"
6344 chmod +x mk_shared_lib.sh
6345 cat >mk_prog.sh <<-CF_EOF
6348 # Ignore first argument (compiler) and use LD (link.exe) unconditionally
6351 ldopts=("/subsystem:console")
6354 while test \$# -gt 0; do
6357 # ignore -link argument
6360 # ignore runtime-library option
6375 libs+=("\`echo \"\$1\" | sed \"s/^-l//\"\`")
6378 ldopts+=("\`echo \"\$1\" | sed \"s/^-L/-LIBPATH:/\"\`")
6384 for linkarg in \`echo '\$1' | sed -e 's/-Wl,//' -e 's/,/ /'\`; do
6385 ldopts+=("\${linkarg}")
6393 ldopts+=("-out:\$1")
6402 if [ "\$isdll" -ne 0 ]; then
6403 for lib in \${libs[*]}; do
6404 ldopts+=("\$lib.dll.lib")
6407 for lib in \${libs[*]}; do
6408 ldopts+=("\$lib.lib")
6413 ** ld options: "\${ldopts[@]}"
6415 exec \$LD \${ldopts[@]}
6418 LINK_PROGS="$SHELL ${rel_builddir}/mk_prog.sh"
6419 LINK_TESTS="$SHELL ${rel_builddir}/mk_prog.sh"
6422 cf_cv_shlib_version=mingw
6423 cf_cv_shlib_version_infix=mingw
6426 if test "$DFT_LWR_MODEL" = "shared" ; then
6427 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
6428 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6429 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
6432 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6433 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6434 cat >mk_shared_lib.sh <<-CF_EOF
6437 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
6440 Linking shared library
6441 ** SHARED_LIB \$SHARED_LIB
6442 ** IMPORT_LIB \$IMPORT_LIB
6444 exec \$* ${LDFLAGS} -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6446 chmod +x mk_shared_lib.sh
6448 (openbsd[2-9].*|mirbsd*)
6449 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6450 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6451 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6453 if test "$cf_cv_enable_rpath" = yes ; then
6454 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6456 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6458 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6459 if test "$cf_cv_shlib_version" = rel; then
6460 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6462 cf_cv_shared_soname='`basename $@`'
6465 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6469 MK_SHARED_LIB='${LD} -Wshared -Weld=-export_all -o $@'
6473 MK_SHARED_LIB='${LD} -Wshared -Wxld=-export_all -o $@'
6475 (nto-qnx*|openbsd*|freebsd[12].*)
6476 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6477 MK_SHARED_LIB='${LD} ${LDFLAGS} -Bshareable -o $@'
6478 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6480 (dragonfly*|freebsd*)
6481 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6482 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6483 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6484 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
6485 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6488 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6489 if test "$cf_cv_shlib_version" = rel; then
6490 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6492 cf_cv_shared_soname='`basename $@`'
6495 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6498 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6499 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6500 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6501 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6502 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6503 if test "$cf_cv_shlib_version" = auto; then
6504 if test -f /usr/libexec/ld.elf_so; then
6505 cf_cv_shlib_version=abi
6507 cf_cv_shlib_version=rel
6511 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6512 if test "$cf_cv_shlib_version" = rel; then
6513 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6515 cf_cv_shared_soname='`basename $@`'
6518 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
6520 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -o $@'
6524 # tested with OSF/1 V3.2 and 'cc'
6525 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
6526 # link with shared libs).
6527 MK_SHARED_LIB='${LD} ${LDFLAGS} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
6530 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
6533 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
6534 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6535 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6536 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6538 cf_cv_rm_so_locs=yes
6540 (sco3.2v5*) # also uw2* and UW7: hops 13-Apr-98
6541 # tested with osr5.0.5
6542 if test "$GCC" != yes; then
6543 CC_SHARED_OPTS='-belf -KPIC'
6545 MK_SHARED_LIB='${LD} ${LDFLAGS} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
6546 if test "$cf_cv_enable_rpath" = yes ; then
6547 # only way is to set LD_RUN_PATH but no switch for it
6550 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6551 LINK_PROGS='LD_RUN_PATH=${libdir}'
6552 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
6555 # tested with SunOS 4.1.1 and gcc 2.7.0
6556 if test "$GCC" != yes; then
6557 CC_SHARED_OPTS='-KPIC'
6559 MK_SHARED_LIB='${LD} ${LDFLAGS} -assert pure-text -o $@'
6560 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6563 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
6564 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
6565 if test "$DFT_LWR_MODEL" = "shared" ; then
6566 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
6567 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6569 if test "$cf_cv_enable_rpath" = yes ; then
6570 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
6573 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6574 if test "$cf_cv_shlib_version" = rel; then
6575 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6577 cf_cv_shared_soname='`basename $@`'
6580 if test "$GCC" != yes; then
6581 cf_save_CFLAGS="$CFLAGS"
6582 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
6584 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
6585 cat >"conftest.$ac_ext" <<_ACEOF
6586 #line 6586 "configure"
6587 #include "confdefs.h"
6597 rm -f "conftest.$ac_objext"
6598 if { (eval echo "$as_me:6598: \"$ac_compile\"") >&5
6599 (eval $ac_compile) 2>&5
6601 echo "$as_me:6601: \$? = $ac_status" >&5
6602 (exit "$ac_status"); } &&
6603 { ac_try='test -s "conftest.$ac_objext"'
6604 { (eval echo "$as_me:6604: \"$ac_try\"") >&5
6607 echo "$as_me:6607: \$? = $ac_status" >&5
6608 (exit "$ac_status"); }; }; then
6611 echo "$as_me: failed program was:" >&5
6612 cat "conftest.$ac_ext" >&5
6614 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6616 CFLAGS="$cf_save_CFLAGS"
6617 CC_SHARED_OPTS=$cf_shared_opts
6618 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dy -G -h '$cf_cv_shared_soname' -o $@'
6620 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
6623 (sysv5uw7*|unix_sv*)
6624 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
6625 if test "$GCC" != yes; then
6626 CC_SHARED_OPTS='-KPIC'
6628 MK_SHARED_LIB='${LD} ${LDFLAGS} -d y -G -o $@'
6631 CC_SHARED_OPTS='unknown'
6632 MK_SHARED_LIB='echo unknown'
6636 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
6637 case "$cf_cv_shlib_version" in
6639 case "$MK_SHARED_LIB" in
6641 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
6644 { echo "$as_me:6644: WARNING: ignored --with-shlib-version" >&5
6645 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
6651 if test -n "$cf_try_cflags"
6653 cat > conftest.$ac_ext <<EOF
6654 #line 6654 "${as_me:-configure}"
6656 int main(int argc, char *argv[])
6659 return (argv[argc-1] == 0) ;
6662 cf_save_CFLAGS="$CFLAGS"
6663 for cf_opt in $cf_try_cflags
6665 CFLAGS="$cf_save_CFLAGS -$cf_opt"
6666 echo "$as_me:6666: checking if CFLAGS option -$cf_opt works" >&5
6667 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
6668 if { (eval echo "$as_me:6668: \"$ac_compile\"") >&5
6669 (eval $ac_compile) 2>&5
6671 echo "$as_me:6671: \$? = $ac_status" >&5
6672 (exit "$ac_status"); }; then
6673 echo "$as_me:6673: result: yes" >&5
6674 echo "${ECHO_T}yes" >&6
6675 cf_save_CFLAGS="$CFLAGS"
6677 echo "$as_me:6677: result: no" >&5
6678 echo "${ECHO_T}no" >&6
6681 CFLAGS="$cf_save_CFLAGS"
6684 # RPATH_LIST is a colon-separated list of directories
6685 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
6686 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
6688 test "$cf_cv_rm_so_locs" = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations"
6690 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
6692 echo "${as_me:-configure}:6692: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
6694 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6696 echo "${as_me:-configure}:6696: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6698 for model in $cf_list_models ; do
6702 echo "$as_me:6702: checking for additional libtool options" >&5
6703 echo $ECHO_N "checking for additional libtool options... $ECHO_C" >&6
6705 # Check whether --with-libtool-opts or --without-libtool-opts was given.
6706 if test "${with_libtool_opts+set}" = set; then
6707 withval="$with_libtool_opts"
6708 with_libtool_opts=$withval
6710 with_libtool_opts=no
6712 echo "$as_me:6712: result: $with_libtool_opts" >&5
6713 echo "${ECHO_T}$with_libtool_opts" >&6
6715 case .$with_libtool_opts in
6719 LIBTOOL_OPTS="$LIBTOOL_OPTS $with_libtool_opts"
6723 echo "$as_me:6723: checking if exported-symbols file should be used" >&5
6724 echo $ECHO_N "checking if exported-symbols file should be used... $ECHO_C" >&6
6726 # Check whether --with-export-syms or --without-export-syms was given.
6727 if test "${with_export_syms+set}" = set; then
6728 withval="$with_export_syms"
6729 with_export_syms=$withval
6733 if test "x$with_export_syms" = xyes
6735 with_export_syms='${top_srcdir}/package/${PACKAGE}.sym'
6738 echo "$as_me:6738: result: $with_export_syms" >&5
6739 echo "${ECHO_T}$with_export_syms" >&6
6740 if test "x$with_export_syms" != xno
6742 EXPORT_SYMS="-export-symbols $with_export_syms"
6748 if test "$CC_SHARED_OPTS" = "unknown"; then
6749 { { echo "$as_me:6749: error: Shared libraries are not supported in this version" >&5
6750 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
6751 { (exit 1); exit 1; }; }
6753 # workaround for inept transition to PIE vs PIC...
6754 echo "$as_me:6754: checking if current CFLAGS link properly" >&5
6755 echo $ECHO_N "checking if current CFLAGS link properly... $ECHO_C" >&6
6756 cat >"conftest.$ac_ext" <<_ACEOF
6757 #line 6757 "configure"
6758 #include "confdefs.h"
6763 printf("Hello work\\n");
6768 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6769 if { (eval echo "$as_me:6769: \"$ac_link\"") >&5
6770 (eval $ac_link) 2>&5
6772 echo "$as_me:6772: \$? = $ac_status" >&5
6773 (exit "$ac_status"); } &&
6774 { ac_try='test -s "conftest$ac_exeext"'
6775 { (eval echo "$as_me:6775: \"$ac_try\"") >&5
6778 echo "$as_me:6778: \$? = $ac_status" >&5
6779 (exit "$ac_status"); }; }; then
6782 echo "$as_me: failed program was:" >&5
6783 cat "conftest.$ac_ext" >&5
6786 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6787 echo "$as_me:6787: result: $cf_cflags_work" >&5
6788 echo "${ECHO_T}$cf_cflags_work" >&6
6789 if test "$cf_cflags_work" = no
6791 test -n "$verbose" && echo " try to work around by appending shared-options" 1>&6
6793 echo "${as_me:-configure}:6793: testing try to work around by appending shared-options ..." 1>&5
6795 CFLAGS="$CFLAGS $CC_SHARED_OPTS"
6798 echo "$as_me:6798: checking if versioned-symbols file should be used" >&5
6799 echo $ECHO_N "checking if versioned-symbols file should be used... $ECHO_C" >&6
6801 # Check whether --with-versioned-syms or --without-versioned-syms was given.
6802 if test "${with_versioned_syms+set}" = set; then
6803 withval="$with_versioned_syms"
6804 with_versioned_syms=$withval
6806 with_versioned_syms=no
6808 case "x$with_versioned_syms" in
6810 with_versioned_syms='${top_srcdir}/package/${PACKAGE}.map'
6816 test -f "$with_versioned_syms" || { { echo "$as_me:6816: error: expected a filename: $with_versioned_syms" >&5
6817 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
6818 { (exit 1); exit 1; }; }
6821 test -f "$with_versioned_syms" || { { echo "$as_me:6821: error: expected a filename: $with_versioned_syms" >&5
6822 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
6823 { (exit 1); exit 1; }; }
6824 with_versioned_syms=`pwd`/"$with_versioned_syms"
6827 echo "$as_me:6827: result: $with_versioned_syms" >&5
6828 echo "${ECHO_T}$with_versioned_syms" >&6
6834 if test "x$with_versioned_syms" != xno
6836 RESULTING_SYMS=$with_versioned_syms
6837 case "x$MK_SHARED_LIB" in
6839 VERSIONED_SYMS="-Wl,--version-script,\${RESULTING_SYMS}"
6840 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-Wl,%\\${VERSIONED_SYMS} -Wl,%"`
6841 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6843 echo "${as_me:-configure}:6843: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6847 VERSIONED_SYMS="-Wl,-M,\${RESULTING_SYMS}"
6848 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-dy%\\${VERSIONED_SYMS} -dy%"`
6849 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6851 echo "${as_me:-configure}:6851: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6855 { echo "$as_me:6855: WARNING: this system does not support versioned-symbols" >&5
6856 echo "$as_me: WARNING: this system does not support versioned-symbols" >&2;}
6860 # Linux ld can selectively override scope, e.g., of symbols beginning with
6861 # "_" by first declaring some as global, and then using a wildcard to
6862 # declare the others as local. Some other loaders cannot do this. Check
6863 # by constructing a (very) simple shared library and inspecting its
6865 if test "x$VERSIONED_SYMS" != "x"
6867 echo "$as_me:6867: checking if wildcards can be used to selectively omit symbols" >&5
6868 echo $ECHO_N "checking if wildcards can be used to selectively omit symbols... $ECHO_C" >&6
6874 cat >conftest.ver <<EOF
6903 cat >conftest.$ac_ext <<EOF
6904 #line 6904 "configure"
6905 int _ismissing(void) { return 1; }
6906 int _localf1(void) { return 1; }
6907 int _localf2(void) { return 2; }
6908 int globalf1(void) { return 1; }
6909 int globalf2(void) { return 2; }
6910 int _sublocalf1(void) { return 1; }
6911 int _sublocalf2(void) { return 2; }
6912 int subglobalf1(void) { return 1; }
6913 int subglobalf2(void) { return 2; }
6915 cat >conftest.mk <<EOF
6918 CPPFLAGS=${CPPFLAGS}
6921 VERSIONED_SYMS=${VERSIONED_SYMS}
6922 RESULTING_SYMS=conftest.ver
6923 MK_SHARED_LIB=${MK_SHARED_LIB}
6924 conftest.so: conftest.$ac_cv_objext
6925 \$(MK_SHARED_LIB) conftest.$ac_cv_objext
6928 # compile source, make library
6929 if make -f conftest.mk 2>&5 >/dev/null
6931 # test for missing symbol in either Data or Text section
6932 cf_missing="`nm -P conftest.so 2>&5 |${FGREP-fgrep} _ismissing | ${EGREP-egrep} '[ ][DT][ ]'`"
6933 test -n "$cf_missing" && WILDCARD_SYMS=yes
6935 echo "$as_me:6935: result: $WILDCARD_SYMS" >&5
6936 echo "${ECHO_T}$WILDCARD_SYMS" >&6
6945 ### Checks for special libraries, must be done up-front.
6948 echo "$as_me:6948: checking if you want to link with the GPM mouse library" >&5
6949 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
6951 # Check whether --with-gpm or --without-gpm was given.
6952 if test "${with_gpm+set}" = set; then
6958 echo "$as_me:6958: result: $with_gpm" >&5
6959 echo "${ECHO_T}$with_gpm" >&6
6961 if test "$with_gpm" != no ; then
6962 echo "$as_me:6962: checking for gpm.h" >&5
6963 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
6964 if test "${ac_cv_header_gpm_h+set}" = set; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6967 cat >"conftest.$ac_ext" <<_ACEOF
6968 #line 6968 "configure"
6969 #include "confdefs.h"
6972 if { (eval echo "$as_me:6972: \"$ac_cpp "conftest.$ac_ext"\"") >&5
6973 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
6975 $EGREP -v '^ *\+' conftest.er1 >conftest.err
6977 cat conftest.err >&5
6978 echo "$as_me:6978: \$? = $ac_status" >&5
6979 (exit "$ac_status"); } >/dev/null; then
6980 if test -s conftest.err; then
6981 ac_cpp_err=$ac_c_preproc_warn_flag
6988 if test -z "$ac_cpp_err"; then
6989 ac_cv_header_gpm_h=yes
6991 echo "$as_me: failed program was:" >&5
6992 cat "conftest.$ac_ext" >&5
6993 ac_cv_header_gpm_h=no
6995 rm -f conftest.err "conftest.$ac_ext"
6997 echo "$as_me:6997: result: $ac_cv_header_gpm_h" >&5
6998 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
6999 if test "$ac_cv_header_gpm_h" = yes; then
7001 cat >>confdefs.h <<\EOF
7002 #define HAVE_GPM_H 1
7005 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
7006 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
7008 echo "${as_me:-configure}:7008: testing assuming we really have GPM library ..." 1>&5
7010 cat >>confdefs.h <<\EOF
7011 #define HAVE_LIBGPM 1
7016 echo "$as_me:7016: checking for Gpm_Open in -lgpm" >&5
7017 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
7018 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
7019 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 ac_check_lib_save_LIBS=$LIBS
7023 cat >"conftest.$ac_ext" <<_ACEOF
7024 #line 7024 "configure"
7025 #include "confdefs.h"
7027 /* Override any gcc2 internal prototype to avoid an error. */
7031 /* We use char because int might match the return type of a gcc2
7032 builtin and then its argument prototype would still apply. */
7042 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7043 if { (eval echo "$as_me:7043: \"$ac_link\"") >&5
7044 (eval $ac_link) 2>&5
7046 echo "$as_me:7046: \$? = $ac_status" >&5
7047 (exit "$ac_status"); } &&
7048 { ac_try='test -s "conftest$ac_exeext"'
7049 { (eval echo "$as_me:7049: \"$ac_try\"") >&5
7052 echo "$as_me:7052: \$? = $ac_status" >&5
7053 (exit "$ac_status"); }; }; then
7054 ac_cv_lib_gpm_Gpm_Open=yes
7056 echo "$as_me: failed program was:" >&5
7057 cat "conftest.$ac_ext" >&5
7058 ac_cv_lib_gpm_Gpm_Open=no
7060 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7061 LIBS=$ac_check_lib_save_LIBS
7063 echo "$as_me:7063: result: $ac_cv_lib_gpm_Gpm_Open" >&5
7064 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
7065 if test "$ac_cv_lib_gpm_Gpm_Open" = yes; then
7069 if test "$with_gpm" = maybe; then
7070 { echo "$as_me:7070: WARNING: Cannot link with GPM library" >&5
7071 echo "$as_me: WARNING: Cannot link with GPM library" >&2;}
7074 { { echo "$as_me:7074: error: Cannot link with GPM library" >&5
7075 echo "$as_me: error: Cannot link with GPM library" >&2;}
7076 { (exit 1); exit 1; }; }
7085 test "$with_gpm" != maybe && { echo "$as_me:7085: WARNING: Cannot find GPM header" >&5
7086 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
7093 if test "$with_gpm" != no ; then
7094 echo "$as_me:7094: checking if you want to load GPM dynamically" >&5
7095 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
7097 # Check whether --with-dlsym or --without-dlsym was given.
7098 if test "${with_dlsym+set}" = set; then
7099 withval="$with_dlsym"
7104 echo "$as_me:7104: result: $with_dlsym" >&5
7105 echo "${ECHO_T}$with_dlsym" >&6
7106 if test "x$with_dlsym" = xyes ; then
7109 echo "$as_me:7109: checking for dlsym" >&5
7110 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
7111 if test "${ac_cv_func_dlsym+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7114 cat >"conftest.$ac_ext" <<_ACEOF
7115 #line 7115 "configure"
7116 #include "confdefs.h"
7117 #define dlsym autoconf_temporary
7118 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
7125 /* We use char because int might match the return type of a gcc2
7126 builtin and then its argument prototype would still apply. */
7133 /* The GNU C library defines stubs for functions which it implements
7134 to always fail with ENOSYS. Some functions are actually named
7135 something starting with __ and the normal name is an alias. */
7136 #if defined (__stub_dlsym) || defined (__stub___dlsym)
7137 #error found stub for dlsym
7145 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7146 if { (eval echo "$as_me:7146: \"$ac_link\"") >&5
7147 (eval $ac_link) 2>&5
7149 echo "$as_me:7149: \$? = $ac_status" >&5
7150 (exit "$ac_status"); } &&
7151 { ac_try='test -s "conftest$ac_exeext"'
7152 { (eval echo "$as_me:7152: \"$ac_try\"") >&5
7155 echo "$as_me:7155: \$? = $ac_status" >&5
7156 (exit "$ac_status"); }; }; then
7157 ac_cv_func_dlsym=yes
7159 echo "$as_me: failed program was:" >&5
7160 cat "conftest.$ac_ext" >&5
7163 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7165 echo "$as_me:7165: result: $ac_cv_func_dlsym" >&5
7166 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
7167 if test "$ac_cv_func_dlsym" = yes; then
7172 echo "$as_me:7172: checking for dlsym in -ldl" >&5
7173 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
7174 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7177 ac_check_lib_save_LIBS=$LIBS
7179 cat >"conftest.$ac_ext" <<_ACEOF
7180 #line 7180 "configure"
7181 #include "confdefs.h"
7183 /* Override any gcc2 internal prototype to avoid an error. */
7187 /* We use char because int might match the return type of a gcc2
7188 builtin and then its argument prototype would still apply. */
7198 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7199 if { (eval echo "$as_me:7199: \"$ac_link\"") >&5
7200 (eval $ac_link) 2>&5
7202 echo "$as_me:7202: \$? = $ac_status" >&5
7203 (exit "$ac_status"); } &&
7204 { ac_try='test -s "conftest$ac_exeext"'
7205 { (eval echo "$as_me:7205: \"$ac_try\"") >&5
7208 echo "$as_me:7208: \$? = $ac_status" >&5
7209 (exit "$ac_status"); }; }; then
7210 ac_cv_lib_dl_dlsym=yes
7212 echo "$as_me: failed program was:" >&5
7213 cat "conftest.$ac_ext" >&5
7214 ac_cv_lib_dl_dlsym=no
7216 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7217 LIBS=$ac_check_lib_save_LIBS
7219 echo "$as_me:7219: result: $ac_cv_lib_dl_dlsym" >&5
7220 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
7221 if test "$ac_cv_lib_dl_dlsym" = yes; then
7229 if test "$cf_have_dlsym" = yes ; then
7230 test "$cf_have_libdl" = yes && {
7234 for cf_add_1lib in -ldl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7236 for cf_add_1lib in $cf_add_0lib; do
7237 for cf_add_2lib in $cf_add_libs; do
7238 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7243 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7248 echo "$as_me:7248: checking whether able to link to dl*() functions" >&5
7249 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
7250 cat >"conftest.$ac_ext" <<_ACEOF
7251 #line 7251 "configure"
7252 #include "confdefs.h"
7259 if ((obj = dlopen("filename", 0)) != 0) {
7260 if (dlsym(obj, "symbolname") == 0) {
7268 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7269 if { (eval echo "$as_me:7269: \"$ac_link\"") >&5
7270 (eval $ac_link) 2>&5
7272 echo "$as_me:7272: \$? = $ac_status" >&5
7273 (exit "$ac_status"); } &&
7274 { ac_try='test -s "conftest$ac_exeext"'
7275 { (eval echo "$as_me:7275: \"$ac_try\"") >&5
7278 echo "$as_me:7278: \$? = $ac_status" >&5
7279 (exit "$ac_status"); }; }; then
7281 cat >>confdefs.h <<\EOF
7282 #define HAVE_LIBDL 1
7286 echo "$as_me: failed program was:" >&5
7287 cat "conftest.$ac_ext" >&5
7289 { { echo "$as_me:7289: error: Cannot link test program for libdl" >&5
7290 echo "$as_me: error: Cannot link test program for libdl" >&2;}
7291 { (exit 1); exit 1; }; }
7293 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7294 echo "$as_me:7294: result: ok" >&5
7295 echo "${ECHO_T}ok" >&6
7297 { { echo "$as_me:7297: error: Cannot find dlsym function" >&5
7298 echo "$as_me: error: Cannot find dlsym function" >&2;}
7299 { (exit 1); exit 1; }; }
7302 if test "x$with_gpm" != xyes ; then
7303 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
7305 echo "${as_me:-configure}:7305: testing assuming soname for gpm is $with_gpm ..." 1>&5
7307 cf_cv_gpm_soname="$with_gpm"
7310 echo "$as_me:7310: checking for soname of gpm library" >&5
7311 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
7312 if test "${cf_cv_gpm_soname+set}" = set; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7316 cf_cv_gpm_soname=unknown
7317 if test "$cross_compiling" != yes ; then
7318 cat >conftest.$ac_ext <<CF_EOF
7322 if (Gpm_Open(0,0)) Gpm_Close();
7323 ${cf_cv_main_return:-return}(0);
7326 cf_save_LIBS="$LIBS"
7331 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7333 for cf_add_1lib in $cf_add_0lib; do
7334 for cf_add_2lib in $cf_add_libs; do
7335 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7340 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7344 if { (eval echo "$as_me:7344: \"$ac_compile\"") >&5
7345 (eval $ac_compile) 2>&5
7347 echo "$as_me:7347: \$? = $ac_status" >&5
7348 (exit "$ac_status"); } ; then
7349 if { (eval echo "$as_me:7349: \"$ac_link\"") >&5
7350 (eval $ac_link) 2>&5
7352 echo "$as_me:7352: \$? = $ac_status" >&5
7353 (exit "$ac_status"); } ; then
7354 cf_cv_gpm_soname="`ldd \"conftest$ac_exeext\" 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | ${FGREP-fgrep} libgpm.`"
7355 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
7359 LIBS="$cf_save_LIBS"
7363 echo "$as_me:7363: result: $cf_cv_gpm_soname" >&5
7364 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
7367 test "$cf_cv_gpm_soname" != "unknown" &&
7368 cat >>confdefs.h <<EOF
7369 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
7372 SHLIB_LIST="-ldl $SHLIB_LIST"
7374 cf_add_libs="$PRIVATE_LIBS"
7377 for cf_add_1lib in -ldl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7379 for cf_add_1lib in $cf_add_0lib; do
7380 for cf_add_2lib in $cf_add_libs; do
7381 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7386 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7388 PRIVATE_LIBS="$cf_add_libs"
7391 SHLIB_LIST="-lgpm $SHLIB_LIST"
7393 cf_add_libs="$TEST_LIBS"
7396 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7398 for cf_add_1lib in $cf_add_0lib; do
7399 for cf_add_2lib in $cf_add_libs; do
7400 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7405 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7407 TEST_LIBS="$cf_add_libs"
7409 cf_add_libs="$PRIVATE_LIBS"
7412 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7414 for cf_add_1lib in $cf_add_0lib; do
7415 for cf_add_2lib in $cf_add_libs; do
7416 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7421 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7423 PRIVATE_LIBS="$cf_add_libs"
7427 cat >>confdefs.h <<\EOF
7428 #define HAVE_LIBGPM 1
7431 echo "$as_me:7431: checking for Gpm_Wgetch in -lgpm" >&5
7432 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
7433 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
7434 echo $ECHO_N "(cached) $ECHO_C" >&6
7436 ac_check_lib_save_LIBS=$LIBS
7438 cat >"conftest.$ac_ext" <<_ACEOF
7439 #line 7439 "configure"
7440 #include "confdefs.h"
7442 /* Override any gcc2 internal prototype to avoid an error. */
7446 /* We use char because int might match the return type of a gcc2
7447 builtin and then its argument prototype would still apply. */
7457 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7458 if { (eval echo "$as_me:7458: \"$ac_link\"") >&5
7459 (eval $ac_link) 2>&5
7461 echo "$as_me:7461: \$? = $ac_status" >&5
7462 (exit "$ac_status"); } &&
7463 { ac_try='test -s "conftest$ac_exeext"'
7464 { (eval echo "$as_me:7464: \"$ac_try\"") >&5
7467 echo "$as_me:7467: \$? = $ac_status" >&5
7468 (exit "$ac_status"); }; }; then
7469 ac_cv_lib_gpm_Gpm_Wgetch=yes
7471 echo "$as_me: failed program was:" >&5
7472 cat "conftest.$ac_ext" >&5
7473 ac_cv_lib_gpm_Gpm_Wgetch=no
7475 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7476 LIBS=$ac_check_lib_save_LIBS
7478 echo "$as_me:7478: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
7479 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
7480 if test "$ac_cv_lib_gpm_Gpm_Wgetch" = yes; then
7482 echo "$as_me:7482: checking if GPM is weakly bound to curses library" >&5
7483 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
7484 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
7485 echo $ECHO_N "(cached) $ECHO_C" >&6
7488 cf_cv_check_gpm_wgetch=unknown
7489 if test "$cross_compiling" != yes ; then
7491 cat >conftest.$ac_ext <<CF_EOF
7496 ${cf_cv_main_return:-return}(0);
7500 cf_save_LIBS="$LIBS"
7501 # This only works if we can look at the symbol table. If a shared
7502 # library is stripped for install, we cannot use that. So we're forced
7503 # to rely on the static library, noting that some packagers may not
7505 LIBS="-static -lgpm -dynamic $LIBS"
7506 if { (eval echo "$as_me:7506: \"$ac_compile\"") >&5
7507 (eval $ac_compile) 2>&5
7509 echo "$as_me:7509: \$? = $ac_status" >&5
7510 (exit "$ac_status"); } ; then
7511 if { (eval echo "$as_me:7511: \"$ac_link\"") >&5
7512 (eval $ac_link) 2>&5
7514 echo "$as_me:7514: \$? = $ac_status" >&5
7515 (exit "$ac_status"); } ; then
7516 cf_cv_check_gpm_wgetch="`nm \"conftest$ac_exeext\" | ${EGREP-egrep} '\<wgetch\>' | ${EGREP-egrep} '\<[vVwW]\>'`"
7517 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
7518 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
7522 LIBS="$cf_save_LIBS"
7526 echo "$as_me:7526: result: $cf_cv_check_gpm_wgetch" >&5
7527 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
7529 if test "$cf_cv_check_gpm_wgetch" != yes ; then
7530 { echo "$as_me:7530: WARNING: GPM library is already linked with curses - read the FAQ" >&5
7531 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
7538 echo "$as_me:7538: checking if you want to use PCRE2 for regular-expressions" >&5
7539 echo $ECHO_N "checking if you want to use PCRE2 for regular-expressions... $ECHO_C" >&6
7541 # Check whether --with-pcre2 or --without-pcre2 was given.
7542 if test "${with_pcre2+set}" = set; then
7543 withval="$with_pcre2"
7546 test -z "$with_pcre2" && with_pcre2=no
7547 echo "$as_me:7547: result: $with_pcre2" >&5
7548 echo "${ECHO_T}$with_pcre2" >&6
7550 if test "x$with_pcre2" != xno ; then
7552 for cf_with_pcre2 in libpcre2 libpcre2-posix libpcre
7555 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "$cf_with_pcre2"; then
7556 test -n "$verbose" && echo " found package $cf_with_pcre2" 1>&6
7558 echo "${as_me:-configure}:7558: testing found package $cf_with_pcre2 ..." 1>&5
7560 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "$cf_with_pcre2" 2>/dev/null`"
7561 cf_pkgconfig_libs="`$PKG_CONFIG --libs "$cf_with_pcre2" 2>/dev/null`"
7562 test -n "$verbose" && echo " package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs" 1>&6
7564 echo "${as_me:-configure}:7564: testing package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
7566 test -n "$verbose" && echo " package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs" 1>&6
7568 echo "${as_me:-configure}:7568: testing package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs ..." 1>&5
7573 cf_new_extra_cppflags=
7575 for cf_add_cflags in $cf_pkgconfig_incs
7577 case "$cf_fix_cppflags" in
7579 case "$cf_add_cflags" in
7580 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
7581 case "$cf_add_cflags" in
7583 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7585 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7586 && test -z "${cf_tst_cflags}" \
7587 && cf_fix_cppflags=yes
7589 if test "$cf_fix_cppflags" = yes ; then
7591 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7592 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7595 elif test "${cf_tst_cflags}" = "\"'" ; then
7597 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7598 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7608 case "$cf_add_cflags" in
7610 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7612 CPPFLAGS=`echo "$CPPFLAGS" | \
7613 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7614 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7619 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
7620 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
7627 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
7628 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
7635 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7636 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7638 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
7640 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7641 && test -z "${cf_tst_cflags}" \
7642 && cf_fix_cppflags=no
7647 if test -n "$cf_new_cflags" ; then
7649 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
7650 CFLAGS="${CFLAGS}$cf_new_cflags"
7654 if test -n "$cf_new_cppflags" ; then
7656 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7657 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
7661 if test -n "$cf_new_extra_cppflags" ; then
7663 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
7664 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
7671 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7673 for cf_add_1lib in $cf_add_0lib; do
7674 for cf_add_2lib in $cf_add_libs; do
7675 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7680 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7684 cf_with_pcre2_ok=yes; break
7692 cf_with_pcre2_ok=yes || { { echo "$as_me:7692: error: Cannot find PCRE2 library" >&5
7693 echo "$as_me: error: Cannot find PCRE2 library" >&2;}
7694 { (exit 1); exit 1; }; }
7696 cat >>confdefs.h <<\EOF
7697 #define HAVE_LIB_PCRE2 1
7700 # if pkgconfig gave no results, look for the libraries directly
7702 (*pcre2-posix*|*pcreposix*)
7705 echo "$as_me:7705: checking for regcomp in -lpcre2-posix" >&5
7706 echo $ECHO_N "checking for regcomp in -lpcre2-posix... $ECHO_C" >&6
7707 if test "${ac_cv_lib_pcre2_posix_regcomp+set}" = set; then
7708 echo $ECHO_N "(cached) $ECHO_C" >&6
7710 ac_check_lib_save_LIBS=$LIBS
7711 LIBS="-lpcre2-posix $LIBS"
7712 cat >"conftest.$ac_ext" <<_ACEOF
7713 #line 7713 "configure"
7714 #include "confdefs.h"
7716 /* Override any gcc2 internal prototype to avoid an error. */
7720 /* We use char because int might match the return type of a gcc2
7721 builtin and then its argument prototype would still apply. */
7731 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7732 if { (eval echo "$as_me:7732: \"$ac_link\"") >&5
7733 (eval $ac_link) 2>&5
7735 echo "$as_me:7735: \$? = $ac_status" >&5
7736 (exit "$ac_status"); } &&
7737 { ac_try='test -s "conftest$ac_exeext"'
7738 { (eval echo "$as_me:7738: \"$ac_try\"") >&5
7741 echo "$as_me:7741: \$? = $ac_status" >&5
7742 (exit "$ac_status"); }; }; then
7743 ac_cv_lib_pcre2_posix_regcomp=yes
7745 echo "$as_me: failed program was:" >&5
7746 cat "conftest.$ac_ext" >&5
7747 ac_cv_lib_pcre2_posix_regcomp=no
7749 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7750 LIBS=$ac_check_lib_save_LIBS
7752 echo "$as_me:7752: result: $ac_cv_lib_pcre2_posix_regcomp" >&5
7753 echo "${ECHO_T}$ac_cv_lib_pcre2_posix_regcomp" >&6
7754 if test "$ac_cv_lib_pcre2_posix_regcomp" = yes; then
7759 for cf_add_1lib in -lpcre2-posix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7761 for cf_add_1lib in $cf_add_0lib; do
7762 for cf_add_2lib in $cf_add_libs; do
7763 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7768 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7773 echo "$as_me:7773: checking for regcomp in -lpcreposix" >&5
7774 echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6
7775 if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then
7776 echo $ECHO_N "(cached) $ECHO_C" >&6
7778 ac_check_lib_save_LIBS=$LIBS
7779 LIBS="-lpcreposix $LIBS"
7780 cat >"conftest.$ac_ext" <<_ACEOF
7781 #line 7781 "configure"
7782 #include "confdefs.h"
7784 /* Override any gcc2 internal prototype to avoid an error. */
7788 /* We use char because int might match the return type of a gcc2
7789 builtin and then its argument prototype would still apply. */
7799 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7800 if { (eval echo "$as_me:7800: \"$ac_link\"") >&5
7801 (eval $ac_link) 2>&5
7803 echo "$as_me:7803: \$? = $ac_status" >&5
7804 (exit "$ac_status"); } &&
7805 { ac_try='test -s "conftest$ac_exeext"'
7806 { (eval echo "$as_me:7806: \"$ac_try\"") >&5
7809 echo "$as_me:7809: \$? = $ac_status" >&5
7810 (exit "$ac_status"); }; }; then
7811 ac_cv_lib_pcreposix_regcomp=yes
7813 echo "$as_me: failed program was:" >&5
7814 cat "conftest.$ac_ext" >&5
7815 ac_cv_lib_pcreposix_regcomp=no
7817 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7818 LIBS=$ac_check_lib_save_LIBS
7820 echo "$as_me:7820: result: $ac_cv_lib_pcreposix_regcomp" >&5
7821 echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6
7822 if test "$ac_cv_lib_pcreposix_regcomp" = yes; then
7827 for cf_add_1lib in -lpcreposix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7829 for cf_add_1lib in $cf_add_0lib; do
7830 for cf_add_2lib in $cf_add_libs; do
7831 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7836 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7841 { { echo "$as_me:7841: error: Cannot find PCRE2 POSIX library" >&5
7842 echo "$as_me: error: Cannot find PCRE2 POSIX library" >&2;}
7843 { (exit 1); exit 1; }; }
7851 # either way, check for the library header files
7853 for ac_header in pcre2posix.h pcreposix.h
7855 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7856 echo "$as_me:7856: checking for $ac_header" >&5
7857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7858 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7859 echo $ECHO_N "(cached) $ECHO_C" >&6
7861 cat >"conftest.$ac_ext" <<_ACEOF
7862 #line 7862 "configure"
7863 #include "confdefs.h"
7864 #include <$ac_header>
7866 if { (eval echo "$as_me:7866: \"$ac_cpp "conftest.$ac_ext"\"") >&5
7867 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
7869 $EGREP -v '^ *\+' conftest.er1 >conftest.err
7871 cat conftest.err >&5
7872 echo "$as_me:7872: \$? = $ac_status" >&5
7873 (exit "$ac_status"); } >/dev/null; then
7874 if test -s conftest.err; then
7875 ac_cpp_err=$ac_c_preproc_warn_flag
7882 if test -z "$ac_cpp_err"; then
7883 eval "$as_ac_Header=yes"
7885 echo "$as_me: failed program was:" >&5
7886 cat "conftest.$ac_ext" >&5
7887 eval "$as_ac_Header=no"
7889 rm -f conftest.err "conftest.$ac_ext"
7891 echo "$as_me:7891: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
7892 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
7893 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
7894 cat >>confdefs.h <<EOF
7895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7901 for ac_func in PCRE2regcomp
7903 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7904 echo "$as_me:7904: checking for $ac_func" >&5
7905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7906 if eval "test \"\${$as_ac_var+set}\" = set"; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7909 cat >"conftest.$ac_ext" <<_ACEOF
7910 #line 7910 "configure"
7911 #include "confdefs.h"
7912 #define $ac_func autoconf_temporary
7913 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
7920 /* We use char because int might match the return type of a gcc2
7921 builtin and then its argument prototype would still apply. */
7922 char $ac_func (void);
7928 /* The GNU C library defines stubs for functions which it implements
7929 to always fail with ENOSYS. Some functions are actually named
7930 something starting with __ and the normal name is an alias. */
7931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7932 #error found stub for $ac_func
7940 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7941 if { (eval echo "$as_me:7941: \"$ac_link\"") >&5
7942 (eval $ac_link) 2>&5
7944 echo "$as_me:7944: \$? = $ac_status" >&5
7945 (exit "$ac_status"); } &&
7946 { ac_try='test -s "conftest$ac_exeext"'
7947 { (eval echo "$as_me:7947: \"$ac_try\"") >&5
7950 echo "$as_me:7950: \$? = $ac_status" >&5
7951 (exit "$ac_status"); }; }; then
7952 eval "$as_ac_var=yes"
7954 echo "$as_me: failed program was:" >&5
7955 cat "conftest.$ac_ext" >&5
7956 eval "$as_ac_var=no"
7958 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7960 echo "$as_me:7960: result: `eval echo '${'"$as_ac_var"'}'`" >&5
7961 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
7962 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
7963 cat >>confdefs.h <<EOF
7964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7972 # not everyone has "test -c"
7973 if test -c /dev/sysmouse 2>/dev/null ; then
7974 echo "$as_me:7974: checking if you want to use sysmouse" >&5
7975 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
7977 # Check whether --with-sysmouse or --without-sysmouse was given.
7978 if test "${with_sysmouse+set}" = set; then
7979 withval="$with_sysmouse"
7980 cf_with_sysmouse=$withval
7982 cf_with_sysmouse=maybe
7984 if test "$cf_with_sysmouse" != no ; then
7985 cat >"conftest.$ac_ext" <<_ACEOF
7986 #line 7986 "configure"
7987 #include "confdefs.h"
7989 #include <osreldate.h>
7990 #if (__FreeBSD_version >= 400017)
7991 #include <sys/consio.h>
7992 #include <sys/fbio.h>
7994 #include <machine/console.h>
8001 struct mouse_info the_mouse;
8002 ioctl(0, CONS_MOUSECTL, &the_mouse);
8008 rm -f "conftest.$ac_objext"
8009 if { (eval echo "$as_me:8009: \"$ac_compile\"") >&5
8010 (eval $ac_compile) 2>&5
8012 echo "$as_me:8012: \$? = $ac_status" >&5
8013 (exit "$ac_status"); } &&
8014 { ac_try='test -s "conftest.$ac_objext"'
8015 { (eval echo "$as_me:8015: \"$ac_try\"") >&5
8018 echo "$as_me:8018: \$? = $ac_status" >&5
8019 (exit "$ac_status"); }; }; then
8020 cf_with_sysmouse=yes
8022 echo "$as_me: failed program was:" >&5
8023 cat "conftest.$ac_ext" >&5
8026 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
8028 echo "$as_me:8028: result: $cf_with_sysmouse" >&5
8029 echo "${ECHO_T}$cf_with_sysmouse" >&6
8030 test "$cf_with_sysmouse" = yes &&
8031 cat >>confdefs.h <<\EOF
8032 #define USE_SYSMOUSE 1
8037 # pretend that ncurses==ncursesw==ncursest
8038 echo "$as_me:8038: checking if you want to disable library suffixes" >&5
8039 echo $ECHO_N "checking if you want to disable library suffixes... $ECHO_C" >&6
8041 # Check whether --enable-lib-suffixes or --disable-lib-suffixes was given.
8042 if test "${enable_lib_suffixes+set}" = set; then
8043 enableval="$enable_lib_suffixes"
8044 test "$enableval" != no && enableval=yes
8045 if test "$enableval" != "yes" ; then
8046 disable_lib_suffixes=yes
8048 disable_lib_suffixes=no
8052 disable_lib_suffixes=no
8055 echo "$as_me:8055: result: $disable_lib_suffixes" >&5
8056 echo "${ECHO_T}$disable_lib_suffixes" >&6
8058 ### If we're building with rpath, try to link non-standard libs that way too.
8059 if test "$DFT_LWR_MODEL" = "shared" && test "x$cf_cv_enable_rpath" != xno; then
8061 echo "$as_me:8061: checking if rpath-hack should be disabled" >&5
8062 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
8064 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
8065 if test "${enable_rpath_hack+set}" = set; then
8066 enableval="$enable_rpath_hack"
8067 test "$enableval" != no && enableval=yes
8068 if test "$enableval" != "yes" ; then
8069 enable_rpath_hack=no
8071 enable_rpath_hack=yes
8075 enable_rpath_hack=yes
8078 if test "x$enable_rpath_hack" = xno; then cf_disable_rpath_hack=yes; else cf_disable_rpath_hack=no; fi
8079 echo "$as_me:8079: result: $cf_disable_rpath_hack" >&5
8080 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
8082 if test "$enable_rpath_hack" = yes ; then
8084 echo "$as_me:8084: checking for updated LDFLAGS" >&5
8085 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
8086 if test -n "$LD_RPATH_OPT" ; then
8087 echo "$as_me:8087: result: maybe" >&5
8088 echo "${ECHO_T}maybe" >&6
8092 # Extract the first word of "$ac_prog", so it can be a program name with args.
8093 set dummy $ac_prog; ac_word=$2
8094 echo "$as_me:8094: checking for $ac_word" >&5
8095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8096 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
8097 echo $ECHO_N "(cached) $ECHO_C" >&6
8099 if test -n "$cf_ldd_prog"; then
8100 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
8102 ac_save_IFS=$IFS; IFS=$ac_path_separator
8104 for ac_dir in $ac_dummy; do
8106 test -z "$ac_dir" && ac_dir=.
8107 $as_executable_p "$ac_dir/$ac_word" || continue
8108 ac_cv_prog_cf_ldd_prog="$ac_prog"
8109 echo "$as_me:8109: found $ac_dir/$ac_word" >&5
8115 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
8116 if test -n "$cf_ldd_prog"; then
8117 echo "$as_me:8117: result: $cf_ldd_prog" >&5
8118 echo "${ECHO_T}$cf_ldd_prog" >&6
8120 echo "$as_me:8120: result: no" >&5
8121 echo "${ECHO_T}no" >&6
8124 test -n "$cf_ldd_prog" && break
8126 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
8128 cf_rpath_list="/usr/lib /lib"
8129 if test "$cf_ldd_prog" != no
8133 cat >"conftest.$ac_ext" <<_ACEOF
8134 #line 8134 "configure"
8135 #include "confdefs.h"
8145 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8146 if { (eval echo "$as_me:8146: \"$ac_link\"") >&5
8147 (eval $ac_link) 2>&5
8149 echo "$as_me:8149: \$? = $ac_status" >&5
8150 (exit "$ac_status"); } &&
8151 { ac_try='test -s "conftest$ac_exeext"'
8152 { (eval echo "$as_me:8152: \"$ac_try\"") >&5
8155 echo "$as_me:8155: \$? = $ac_status" >&5
8156 (exit "$ac_status"); }; }; then
8157 cf_rpath_oops=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
8158 cf_rpath_list=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
8160 echo "$as_me: failed program was:" >&5
8161 cat "conftest.$ac_ext" >&5
8163 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8165 # If we passed the link-test, but get a "not found" on a given library,
8166 # this could be due to inept reconfiguration of gcc to make it only
8167 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
8168 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
8169 # /usr/local libraries.
8170 if test -n "$cf_rpath_oops"
8172 for cf_rpath_src in $cf_rpath_oops
8174 for cf_rpath_dir in \
8179 if test -f "$cf_rpath_dir/lib/$cf_rpath_src"
8181 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
8183 echo "${as_me:-configure}:8183: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
8185 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
8193 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
8195 echo "${as_me:-configure}:8195: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
8197 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
8199 echo "${as_me:-configure}:8199: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
8202 for cf_rpath_src in $LDFLAGS
8204 case "$cf_rpath_src" in
8207 # check if this refers to a directory which we will ignore
8209 if test -n "$cf_rpath_list"
8211 for cf_rpath_item in $cf_rpath_list
8213 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
8221 if test "$cf_rpath_skip" = no
8223 # transform the option
8224 if test "$LD_RPATH_OPT" = "-R " ; then
8225 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
8227 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
8230 # if we have not already added this, add it now
8231 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
8232 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
8234 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
8236 echo "${as_me:-configure}:8236: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
8238 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
8243 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
8245 LDFLAGS=$cf_rpath_dst
8247 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
8249 echo "${as_me:-configure}:8249: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
8251 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
8253 echo "${as_me:-configure}:8253: testing ...checking LIBS $LIBS ..." 1>&5
8256 for cf_rpath_src in $LIBS
8258 case "$cf_rpath_src" in
8261 # check if this refers to a directory which we will ignore
8263 if test -n "$cf_rpath_list"
8265 for cf_rpath_item in $cf_rpath_list
8267 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
8275 if test "$cf_rpath_skip" = no
8277 # transform the option
8278 if test "$LD_RPATH_OPT" = "-R " ; then
8279 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
8281 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
8284 # if we have not already added this, add it now
8285 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
8286 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
8288 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
8290 echo "${as_me:-configure}:8290: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
8292 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
8297 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
8301 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
8303 echo "${as_me:-configure}:8303: testing ...checked LIBS $LIBS ..." 1>&5
8305 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
8307 echo "${as_me:-configure}:8307: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
8310 echo "$as_me:8310: result: no" >&5
8311 echo "${ECHO_T}no" >&6
8318 ### Depending on the system, someone may use rpath to build ncurses but not
8319 # want users of the package to rely upon that feature. Give those people an
8320 # option to suppress that detail from EXTRA_LDFLAGS.
8321 EXTRA_PKG_LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
8322 if test -n "$EXTRA_PKG_LDFLAGS"
8324 echo "$as_me:8324: checking if you want to disable extra LDFLAGS for package-scripts" >&5
8325 echo $ECHO_N "checking if you want to disable extra LDFLAGS for package-scripts... $ECHO_C" >&6
8327 # Check whether --enable-pkg-ldflags or --disable-pkg-ldflags was given.
8328 if test "${enable_pkg_ldflags+set}" = set; then
8329 enableval="$enable_pkg_ldflags"
8330 test "$enableval" != no && enableval=yes
8331 if test "$enableval" != "yes" ; then
8332 disable_pkg_ldflags=yes
8334 disable_pkg_ldflags=no
8338 disable_pkg_ldflags=no
8341 echo "$as_me:8341: result: $disable_pkg_ldflags" >&5
8342 echo "${ECHO_T}$disable_pkg_ldflags" >&6
8343 test "$disable_pkg_ldflags" = yes && EXTRA_PKG_LDFLAGS=
8346 ###############################################################################
8348 ### use option --with-extra-suffix to append suffix to headers and libraries
8349 echo "$as_me:8349: checking if you wish to append extra suffix to header/library paths" >&5
8350 echo $ECHO_N "checking if you wish to append extra suffix to header/library paths... $ECHO_C" >&6
8353 # Check whether --with-extra-suffix or --without-extra-suffix was given.
8354 if test "${with_extra_suffix+set}" = set; then
8355 withval="$with_extra_suffix"
8360 EXTRA_SUFFIX=$cf_cv_abi_version
8363 EXTRA_SUFFIX=$withval
8368 echo "$as_me:8368: result: $EXTRA_SUFFIX" >&5
8369 echo "${ECHO_T}$EXTRA_SUFFIX" >&6
8371 ### use option --disable-overwrite to leave out the link to -lcurses
8372 echo "$as_me:8372: checking if you wish to install ncurses overwriting curses" >&5
8373 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
8375 # Check whether --enable-overwrite or --disable-overwrite was given.
8376 if test "${enable_overwrite+set}" = set; then
8377 enableval="$enable_overwrite"
8378 with_overwrite=$enableval
8380 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
8382 echo "$as_me:8382: result: $with_overwrite" >&5
8383 echo "${ECHO_T}$with_overwrite" >&6
8385 echo "$as_me:8385: checking if external terminfo-database is used" >&5
8386 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
8388 # Check whether --enable-database or --disable-database was given.
8389 if test "${enable_database+set}" = set; then
8390 enableval="$enable_database"
8391 use_database=$enableval
8395 echo "$as_me:8395: result: $use_database" >&5
8396 echo "${ECHO_T}$use_database" >&6
8400 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
8403 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
8407 NCURSES_USE_DATABASE=0
8408 if test "$use_database" != no ; then
8409 NCURSES_USE_DATABASE=1
8411 echo "$as_me:8411: checking which terminfo source-file will be installed" >&5
8412 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
8414 # Check whether --with-database or --without-database was given.
8415 if test "${with_database+set}" = set; then
8416 withval="$with_database"
8417 TERMINFO_SRC=$withval
8419 echo "$as_me:8419: result: $TERMINFO_SRC" >&5
8420 echo "${ECHO_T}$TERMINFO_SRC" >&6
8422 echo "$as_me:8422: checking whether to use hashed database instead of directory/tree" >&5
8423 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
8425 # Check whether --with-hashed-db or --without-hashed-db was given.
8426 if test "${with_hashed_db+set}" = set; then
8427 withval="$with_hashed_db"
8432 echo "$as_me:8432: result: $with_hashed_db" >&5
8433 echo "${ECHO_T}$with_hashed_db" >&6
8438 echo "$as_me:8438: checking for list of fallback descriptions" >&5
8439 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
8441 # Check whether --with-fallbacks or --without-fallbacks was given.
8442 if test "${with_fallbacks+set}" = set; then
8443 withval="$with_fallbacks"
8444 with_fallback=$withval
8448 echo "$as_me:8448: result: $with_fallback" >&5
8449 echo "${ECHO_T}$with_fallback" >&6
8451 case ".$with_fallback" in
8456 { echo "$as_me:8456: WARNING: expected a list of terminal descriptions" >&5
8457 echo "$as_me: WARNING: expected a list of terminal descriptions" >&2;}
8460 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
8464 # The fallback feature in ncurses relies upon tic/infocmp outside the build
8465 # tree for generating the terminal descriptions that will be compiled into the
8466 # library. If your toolchain is old, it may not handle current terminal
8467 # databases. Use configure-options to point to the tools which will be used,
8468 # rather than the first ones found on the $PATH.
8469 if test -n "$ac_tool_prefix"; then
8470 # Extract the first word of "${ac_tool_prefix}tic", so it can be a program name with args.
8471 set dummy ${ac_tool_prefix}tic; ac_word=$2
8472 echo "$as_me:8472: checking for $ac_word" >&5
8473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8474 if test "${ac_cv_prog_TIC+set}" = set; then
8475 echo $ECHO_N "(cached) $ECHO_C" >&6
8477 if test -n "$TIC"; then
8478 ac_cv_prog_TIC="$TIC" # Let the user override the test.
8480 ac_save_IFS=$IFS; IFS=$ac_path_separator
8482 for ac_dir in $ac_dummy; do
8484 test -z "$ac_dir" && ac_dir=.
8485 $as_executable_p "$ac_dir/$ac_word" || continue
8486 ac_cv_prog_TIC="${ac_tool_prefix}tic"
8487 echo "$as_me:8487: found $ac_dir/$ac_word" >&5
8494 if test -n "$TIC"; then
8495 echo "$as_me:8495: result: $TIC" >&5
8496 echo "${ECHO_T}$TIC" >&6
8498 echo "$as_me:8498: result: no" >&5
8499 echo "${ECHO_T}no" >&6
8503 if test -z "$ac_cv_prog_TIC"; then
8505 # Extract the first word of "tic", so it can be a program name with args.
8506 set dummy tic; ac_word=$2
8507 echo "$as_me:8507: checking for $ac_word" >&5
8508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8509 if test "${ac_cv_prog_ac_ct_TIC+set}" = set; then
8510 echo $ECHO_N "(cached) $ECHO_C" >&6
8512 if test -n "$ac_ct_TIC"; then
8513 ac_cv_prog_ac_ct_TIC="$ac_ct_TIC" # Let the user override the test.
8515 ac_save_IFS=$IFS; IFS=$ac_path_separator
8517 for ac_dir in $ac_dummy; do
8519 test -z "$ac_dir" && ac_dir=.
8520 $as_executable_p "$ac_dir/$ac_word" || continue
8521 ac_cv_prog_ac_ct_TIC="tic"
8522 echo "$as_me:8522: found $ac_dir/$ac_word" >&5
8528 ac_ct_TIC=$ac_cv_prog_ac_ct_TIC
8529 if test -n "$ac_ct_TIC"; then
8530 echo "$as_me:8530: result: $ac_ct_TIC" >&5
8531 echo "${ECHO_T}$ac_ct_TIC" >&6
8533 echo "$as_me:8533: result: no" >&5
8534 echo "${ECHO_T}no" >&6
8539 TIC="$ac_cv_prog_TIC"
8542 if test -n "$ac_tool_prefix"; then
8543 # Extract the first word of "${ac_tool_prefix}infocmp", so it can be a program name with args.
8544 set dummy ${ac_tool_prefix}infocmp; ac_word=$2
8545 echo "$as_me:8545: checking for $ac_word" >&5
8546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8547 if test "${ac_cv_prog_INFOCMP+set}" = set; then
8548 echo $ECHO_N "(cached) $ECHO_C" >&6
8550 if test -n "$INFOCMP"; then
8551 ac_cv_prog_INFOCMP="$INFOCMP" # Let the user override the test.
8553 ac_save_IFS=$IFS; IFS=$ac_path_separator
8555 for ac_dir in $ac_dummy; do
8557 test -z "$ac_dir" && ac_dir=.
8558 $as_executable_p "$ac_dir/$ac_word" || continue
8559 ac_cv_prog_INFOCMP="${ac_tool_prefix}infocmp"
8560 echo "$as_me:8560: found $ac_dir/$ac_word" >&5
8566 INFOCMP=$ac_cv_prog_INFOCMP
8567 if test -n "$INFOCMP"; then
8568 echo "$as_me:8568: result: $INFOCMP" >&5
8569 echo "${ECHO_T}$INFOCMP" >&6
8571 echo "$as_me:8571: result: no" >&5
8572 echo "${ECHO_T}no" >&6
8576 if test -z "$ac_cv_prog_INFOCMP"; then
8577 ac_ct_INFOCMP=$INFOCMP
8578 # Extract the first word of "infocmp", so it can be a program name with args.
8579 set dummy infocmp; ac_word=$2
8580 echo "$as_me:8580: checking for $ac_word" >&5
8581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8582 if test "${ac_cv_prog_ac_ct_INFOCMP+set}" = set; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
8585 if test -n "$ac_ct_INFOCMP"; then
8586 ac_cv_prog_ac_ct_INFOCMP="$ac_ct_INFOCMP" # Let the user override the test.
8588 ac_save_IFS=$IFS; IFS=$ac_path_separator
8590 for ac_dir in $ac_dummy; do
8592 test -z "$ac_dir" && ac_dir=.
8593 $as_executable_p "$ac_dir/$ac_word" || continue
8594 ac_cv_prog_ac_ct_INFOCMP="infocmp"
8595 echo "$as_me:8595: found $ac_dir/$ac_word" >&5
8601 ac_ct_INFOCMP=$ac_cv_prog_ac_ct_INFOCMP
8602 if test -n "$ac_ct_INFOCMP"; then
8603 echo "$as_me:8603: result: $ac_ct_INFOCMP" >&5
8604 echo "${ECHO_T}$ac_ct_INFOCMP" >&6
8606 echo "$as_me:8606: result: no" >&5
8607 echo "${ECHO_T}no" >&6
8610 INFOCMP=$ac_ct_INFOCMP
8612 INFOCMP="$ac_cv_prog_INFOCMP"
8615 if test -n "$FALLBACK_LIST"
8618 # Check whether --with-tic-path or --without-tic-path was given.
8619 if test "${with_tic_path+set}" = set; then
8620 withval="$with_tic_path"
8621 echo "$as_me:8621: checking for tic program for fallbacks" >&5
8622 echo $ECHO_N "checking for tic program for fallbacks... $ECHO_C" >&6
8624 echo "$as_me:8624: result: $TIC" >&5
8625 echo "${ECHO_T}$TIC" >&6
8627 if test "x$prefix" != xNONE; then
8628 cf_path_syntax="$prefix"
8630 cf_path_syntax="$ac_default_prefix"
8638 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8640 (.\$\{*prefix\}*|.\$\{*dir\}*)
8644 TIC=`echo "$TIC" | sed -e s%NONE%$cf_path_syntax%`
8649 TIC=`echo "$TIC" | sed -e s%NONE%$cf_path_syntax%`
8652 { { echo "$as_me:8652: error: expected a pathname, not \"$TIC\"" >&5
8653 echo "$as_me: error: expected a pathname, not \"$TIC\"" >&2;}
8654 { (exit 1); exit 1; }; }
8660 test -z "$TIC" && TIC="tic"
8661 for ac_prog in $TIC tic
8663 # Extract the first word of "$ac_prog", so it can be a program name with args.
8664 set dummy $ac_prog; ac_word=$2
8665 echo "$as_me:8665: checking for $ac_word" >&5
8666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8667 if test "${ac_cv_path_TIC+set}" = set; then
8668 echo $ECHO_N "(cached) $ECHO_C" >&6
8672 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
8675 ac_save_IFS=$IFS; IFS=$ac_path_separator
8676 ac_dummy="$PATH:/usr/local/ncurses/bin"
8677 for ac_dir in $ac_dummy; do
8679 test -z "$ac_dir" && ac_dir=.
8680 if $as_executable_p "$ac_dir/$ac_word"; then
8681 ac_cv_path_TIC="$ac_dir/$ac_word"
8682 echo "$as_me:8682: found $ac_dir/$ac_word" >&5
8692 if test -n "$TIC"; then
8693 echo "$as_me:8693: result: $TIC" >&5
8694 echo "${ECHO_T}$TIC" >&6
8696 echo "$as_me:8696: result: no" >&5
8697 echo "${ECHO_T}no" >&6
8700 test -n "$TIC" && break
8702 test -n "$TIC" || TIC="$TIC"
8706 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
8707 for cf_temp in $ac_cv_path_TIC
8709 if test -z "$cf_path_prog" ; then
8710 if test "$with_full_paths" = yes ; then
8712 if test "x$prefix" != xNONE; then
8713 cf_path_syntax="$prefix"
8715 cf_path_syntax="$ac_default_prefix"
8723 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8725 (.\$\{*prefix\}*|.\$\{*dir\}*)
8726 eval cf_temp="$cf_temp"
8729 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
8734 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
8741 cf_path_prog="$cf_temp"
8743 cf_path_prog="`basename "$cf_temp"`"
8745 elif test -z "$cf_path_args" ; then
8746 cf_path_args="$cf_temp"
8748 cf_path_args="$cf_path_args $cf_temp"
8753 if test -n "$cf_path_prog" ; then
8755 echo "${as_me:-configure}:8755: testing defining path for ${cf_path_prog} ..." 1>&5
8757 cat >>confdefs.h <<EOF
8758 #define TIC_PATH "$cf_path_prog"
8761 test -n "$cf_path_args" &&
8762 cat >>confdefs.h <<EOF
8763 #define TIC_ARGS "$cf_path_args"
8770 { echo "$as_me:8770: WARNING: no tic program found for fallbacks" >&5
8771 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
8776 # Check whether --with-infocmp-path or --without-infocmp-path was given.
8777 if test "${with_infocmp_path+set}" = set; then
8778 withval="$with_infocmp_path"
8779 echo "$as_me:8779: checking for infocmp program for fallbacks" >&5
8780 echo $ECHO_N "checking for infocmp program for fallbacks... $ECHO_C" >&6
8782 echo "$as_me:8782: result: $INFOCMP" >&5
8783 echo "${ECHO_T}$INFOCMP" >&6
8785 if test "x$prefix" != xNONE; then
8786 cf_path_syntax="$prefix"
8788 cf_path_syntax="$ac_default_prefix"
8796 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8798 (.\$\{*prefix\}*|.\$\{*dir\}*)
8799 eval INFOCMP="$INFOCMP"
8802 INFOCMP=`echo "$INFOCMP" | sed -e s%NONE%$cf_path_syntax%`
8807 INFOCMP=`echo "$INFOCMP" | sed -e s%NONE%$cf_path_syntax%`
8810 { { echo "$as_me:8810: error: expected a pathname, not \"$INFOCMP\"" >&5
8811 echo "$as_me: error: expected a pathname, not \"$INFOCMP\"" >&2;}
8812 { (exit 1); exit 1; }; }
8818 test -z "$INFOCMP" && INFOCMP="infocmp"
8819 for ac_prog in $INFOCMP infocmp
8821 # Extract the first word of "$ac_prog", so it can be a program name with args.
8822 set dummy $ac_prog; ac_word=$2
8823 echo "$as_me:8823: checking for $ac_word" >&5
8824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8825 if test "${ac_cv_path_INFOCMP+set}" = set; then
8826 echo $ECHO_N "(cached) $ECHO_C" >&6
8830 ac_cv_path_INFOCMP="$INFOCMP" # Let the user override the test with a path.
8833 ac_save_IFS=$IFS; IFS=$ac_path_separator
8834 ac_dummy="$PATH:/usr/local/ncurses/bin"
8835 for ac_dir in $ac_dummy; do
8837 test -z "$ac_dir" && ac_dir=.
8838 if $as_executable_p "$ac_dir/$ac_word"; then
8839 ac_cv_path_INFOCMP="$ac_dir/$ac_word"
8840 echo "$as_me:8840: found $ac_dir/$ac_word" >&5
8848 INFOCMP=$ac_cv_path_INFOCMP
8850 if test -n "$INFOCMP"; then
8851 echo "$as_me:8851: result: $INFOCMP" >&5
8852 echo "${ECHO_T}$INFOCMP" >&6
8854 echo "$as_me:8854: result: no" >&5
8855 echo "${ECHO_T}no" >&6
8858 test -n "$INFOCMP" && break
8860 test -n "$INFOCMP" || INFOCMP="$INFOCMP"
8864 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
8865 for cf_temp in $ac_cv_path_INFOCMP
8867 if test -z "$cf_path_prog" ; then
8868 if test "$with_full_paths" = yes ; then
8870 if test "x$prefix" != xNONE; then
8871 cf_path_syntax="$prefix"
8873 cf_path_syntax="$ac_default_prefix"
8881 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8883 (.\$\{*prefix\}*|.\$\{*dir\}*)
8884 eval cf_temp="$cf_temp"
8887 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
8892 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
8899 cf_path_prog="$cf_temp"
8901 cf_path_prog="`basename "$cf_temp"`"
8903 elif test -z "$cf_path_args" ; then
8904 cf_path_args="$cf_temp"
8906 cf_path_args="$cf_path_args $cf_temp"
8911 if test -n "$cf_path_prog" ; then
8913 echo "${as_me:-configure}:8913: testing defining path for ${cf_path_prog} ..." 1>&5
8915 cat >>confdefs.h <<EOF
8916 #define INFOCMP_PATH "$cf_path_prog"
8919 test -n "$cf_path_args" &&
8920 cat >>confdefs.h <<EOF
8921 #define INFOCMP_ARGS "$cf_path_args"
8926 if test -z "$INFOCMP"
8928 { echo "$as_me:8928: WARNING: no infocmp program found for fallbacks" >&5
8929 echo "$as_me: WARNING: no infocmp program found for fallbacks" >&2;}
8934 test -z "$TIC" && FALLBACK_LIST=
8935 test -z "$INFOCMP" && FALLBACK_LIST=
8936 if test -z "$FALLBACK_LIST"
8938 { echo "$as_me:8938: WARNING: ignoring fallback option because tic/infocmp are not available" >&5
8939 echo "$as_me: WARNING: ignoring fallback option because tic/infocmp are not available" >&2;}
8944 test -z "$FALLBACK_LIST" && USE_FALLBACKS="#"
8946 echo "$as_me:8946: checking if you want modern xterm or antique" >&5
8947 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
8949 # Check whether --with-xterm-new or --without-xterm-new was given.
8950 if test "${with_xterm_new+set}" = set; then
8951 withval="$with_xterm_new"
8952 with_xterm_new=$withval
8956 case "$with_xterm_new" in
8957 (no) with_xterm_new=xterm-old;;
8958 (*) with_xterm_new=xterm-new;;
8960 echo "$as_me:8960: result: $with_xterm_new" >&5
8961 echo "${ECHO_T}$with_xterm_new" >&6
8962 WHICH_XTERM=$with_xterm_new
8964 echo "$as_me:8964: checking if xterm backspace sends BS or DEL" >&5
8965 echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6
8967 # Check whether --with-xterm-kbs or --without-xterm-kbs was given.
8968 if test "${with_xterm_kbs+set}" = set; then
8969 withval="$with_xterm_kbs"
8970 with_xterm_kbs=$withval
8974 case x$with_xterm_kbs in
8975 (xyes|xno|xBS|xbs|x8)
8982 with_xterm_kbs=$withval
8985 echo "$as_me:8985: result: $with_xterm_kbs" >&5
8986 echo "${ECHO_T}$with_xterm_kbs" >&6
8987 XTERM_KBS=$with_xterm_kbs
8990 if test "$use_database" = no ; then
8991 TERMINFO="${datadir}/terminfo"
8995 echo "$as_me:8995: checking for list of terminfo directories" >&5
8996 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
8998 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
8999 if test "${with_terminfo_dirs+set}" = set; then
9000 withval="$with_terminfo_dirs"
9003 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
9005 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
9007 for cf_src_path in $withval
9010 if test "x$prefix" != xNONE; then
9011 cf_path_syntax="$prefix"
9013 cf_path_syntax="$ac_default_prefix"
9016 case ".$cf_src_path" in
9021 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9023 (.\$\{*prefix\}*|.\$\{*dir\}*)
9024 eval cf_src_path="$cf_src_path"
9025 case ".$cf_src_path" in
9027 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9032 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9035 { { echo "$as_me:9035: error: expected a pathname, not \"$cf_src_path\"" >&5
9036 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
9037 { (exit 1); exit 1; }; }
9041 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
9042 cf_dst_path="${cf_dst_path}${cf_src_path}"
9046 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
9047 # so we have to check/work around. We do prefer the result of "eval"...
9048 eval cf_dst_eval="$cf_dst_path"
9049 case "x$cf_dst_eval" in
9051 TERMINFO_DIRS=$cf_dst_path
9054 TERMINFO_DIRS="$cf_dst_eval"
9058 echo "$as_me:9058: result: $TERMINFO_DIRS" >&5
9059 echo "${ECHO_T}$TERMINFO_DIRS" >&6
9060 test -n "$TERMINFO_DIRS" &&
9061 cat >>confdefs.h <<EOF
9062 #define TERMINFO_DIRS "$TERMINFO_DIRS"
9065 case "x$TERMINFO" in
9067 { echo "$as_me:9067: WARNING: ignoring non-directory/file TERMINFO value" >&5
9068 echo "$as_me: WARNING: ignoring non-directory/file TERMINFO value" >&2;}
9073 echo "$as_me:9073: checking for default terminfo directory" >&5
9074 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
9076 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
9077 if test "${with_default_terminfo_dir+set}" = set; then
9078 withval="$with_default_terminfo_dir"
9081 withval="${TERMINFO:-${datadir}/terminfo}"
9082 fi; if test -n "${datadir}/terminfo" ; then
9084 if test "x$prefix" != xNONE; then
9085 cf_path_syntax="$prefix"
9087 cf_path_syntax="$ac_default_prefix"
9095 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9097 (.\$\{*prefix\}*|.\$\{*dir\}*)
9098 eval withval="$withval"
9101 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
9106 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
9109 { { echo "$as_me:9109: error: expected a pathname, not \"$withval\"" >&5
9110 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
9111 { (exit 1); exit 1; }; }
9116 eval TERMINFO="$withval"
9118 echo "$as_me:9118: result: $TERMINFO" >&5
9119 echo "${ECHO_T}$TERMINFO" >&6
9121 cat >>confdefs.h <<EOF
9122 #define TERMINFO "$TERMINFO"
9127 ### use option --disable-big-core to make tic run on small machines
9128 ### We need 4Mb, check if we can allocate 50% more than that.
9129 echo "$as_me:9129: checking if big-core option selected" >&5
9130 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
9132 # Check whether --enable-big-core or --disable-big-core was given.
9133 if test "${enable_big_core+set}" = set; then
9134 enableval="$enable_big_core"
9135 with_big_core=$enableval
9137 if test "$cross_compiling" = yes; then
9140 cat >"conftest.$ac_ext" <<_ACEOF
9141 #line 9141 "configure"
9142 #include "confdefs.h"
9147 unsigned long n = 6000000L;
9148 char *s = malloc(n);
9151 ${cf_cv_main_return:-return}(s == 0);
9154 rm -f "conftest$ac_exeext"
9155 if { (eval echo "$as_me:9155: \"$ac_link\"") >&5
9156 (eval $ac_link) 2>&5
9158 echo "$as_me:9158: \$? = $ac_status" >&5
9159 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
9160 { (eval echo "$as_me:9160: \"$ac_try\"") >&5
9163 echo "$as_me:9163: \$? = $ac_status" >&5
9164 (exit "$ac_status"); }; }; then
9167 echo "$as_me: program exited with status $ac_status" >&5
9168 echo "$as_me: failed program was:" >&5
9169 cat "conftest.$ac_ext" >&5
9172 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
9175 echo "$as_me:9175: result: $with_big_core" >&5
9176 echo "${ECHO_T}$with_big_core" >&6
9177 test "x$with_big_core" = "xyes" &&
9178 cat >>confdefs.h <<\EOF
9179 #define HAVE_BIG_CORE 1
9182 ### ISO C only guarantees 512-char strings, we have tables which load faster
9183 ### when constructed using "big" strings. More than the C compiler, the awk
9184 ### program is a limit on most vendor UNIX systems. Check that we can build.
9185 echo "$as_me:9185: checking if big-strings option selected" >&5
9186 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
9188 # Check whether --enable-big-strings or --disable-big-strings was given.
9189 if test "${enable_big_strings+set}" = set; then
9190 enableval="$enable_big_strings"
9191 with_big_strings=$enableval
9196 eval with_big_strings=no
9199 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \
9200 | $AWK '{ printf "%d\n", length($0); }' 2>/dev/null | $AWK 'BEGIN { eqls=0; recs=0; } { recs++; if ($0 == 12000) eqls++; } END { if (recs != 1 || eqls != 1) exit 1; }' 2>/dev/null >/dev/null ) ; then
9201 eval with_big_strings=yes
9203 eval with_big_strings=no
9209 echo "$as_me:9209: result: $with_big_strings" >&5
9210 echo "${ECHO_T}$with_big_strings" >&6
9213 test "x$with_big_strings" = "xyes" && USE_BIG_STRINGS=1
9215 ### use option --enable-termcap to compile in the termcap fallback support
9216 echo "$as_me:9216: checking if you want termcap-fallback support" >&5
9217 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
9219 # Check whether --enable-termcap or --disable-termcap was given.
9220 if test "${enable_termcap+set}" = set; then
9221 enableval="$enable_termcap"
9222 with_termcap=$enableval
9226 echo "$as_me:9226: result: $with_termcap" >&5
9227 echo "${ECHO_T}$with_termcap" >&6
9229 NCURSES_USE_TERMCAP=0
9230 if test "x$with_termcap" != "xyes" ; then
9231 if test "$use_database" = no ; then
9232 if test -z "$with_fallback" ; then
9233 { { echo "$as_me:9233: error: You have disabled the database w/o specifying fallbacks" >&5
9234 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
9235 { (exit 1); exit 1; }; }
9239 cat >>confdefs.h <<\EOF
9240 #define PURE_TERMINFO 1
9245 if test "$with_ticlib" != no ; then
9246 { { echo "$as_me:9246: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
9247 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
9248 { (exit 1); exit 1; }; }
9251 NCURSES_USE_TERMCAP=1
9252 echo "$as_me:9252: checking for list of termcap files" >&5
9253 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
9255 # Check whether --with-termpath or --without-termpath was given.
9256 if test "${with_termpath+set}" = set; then
9257 withval="$with_termpath"
9260 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
9262 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
9264 for cf_src_path in $withval
9267 if test "x$prefix" != xNONE; then
9268 cf_path_syntax="$prefix"
9270 cf_path_syntax="$ac_default_prefix"
9273 case ".$cf_src_path" in
9278 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9280 (.\$\{*prefix\}*|.\$\{*dir\}*)
9281 eval cf_src_path="$cf_src_path"
9282 case ".$cf_src_path" in
9284 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9289 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9292 { { echo "$as_me:9292: error: expected a pathname, not \"$cf_src_path\"" >&5
9293 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
9294 { (exit 1); exit 1; }; }
9298 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
9299 cf_dst_path="${cf_dst_path}${cf_src_path}"
9303 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
9304 # so we have to check/work around. We do prefer the result of "eval"...
9305 eval cf_dst_eval="$cf_dst_path"
9306 case "x$cf_dst_eval" in
9308 TERMPATH=$cf_dst_path
9311 TERMPATH="$cf_dst_eval"
9315 echo "$as_me:9315: result: $TERMPATH" >&5
9316 echo "${ECHO_T}$TERMPATH" >&6
9317 test -n "$TERMPATH" &&
9318 cat >>confdefs.h <<EOF
9319 #define TERMPATH "$TERMPATH"
9322 ### use option --enable-getcap to use a hacked getcap for reading termcaps
9323 echo "$as_me:9323: checking if fast termcap-loader is needed" >&5
9324 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
9326 # Check whether --enable-getcap or --disable-getcap was given.
9327 if test "${enable_getcap+set}" = set; then
9328 enableval="$enable_getcap"
9329 with_getcap=$enableval
9333 echo "$as_me:9333: result: $with_getcap" >&5
9334 echo "${ECHO_T}$with_getcap" >&6
9335 test "x$with_getcap" = "xyes" &&
9336 cat >>confdefs.h <<\EOF
9337 #define USE_GETCAP 1
9340 echo "$as_me:9340: checking if translated termcaps will be cached in ~/.terminfo" >&5
9341 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
9343 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
9344 if test "${enable_getcap_cache+set}" = set; then
9345 enableval="$enable_getcap_cache"
9346 with_getcap_cache=$enableval
9348 with_getcap_cache=no
9350 echo "$as_me:9350: result: $with_getcap_cache" >&5
9351 echo "${ECHO_T}$with_getcap_cache" >&6
9352 test "x$with_getcap_cache" = "xyes" &&
9353 cat >>confdefs.h <<\EOF
9354 #define USE_GETCAP_CACHE 1
9359 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
9360 echo "$as_me:9360: checking if ~/.terminfo is wanted" >&5
9361 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
9363 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
9364 if test "${enable_home_terminfo+set}" = set; then
9365 enableval="$enable_home_terminfo"
9366 with_home_terminfo=$enableval
9368 with_home_terminfo=yes
9370 echo "$as_me:9370: result: $with_home_terminfo" >&5
9371 echo "${ECHO_T}$with_home_terminfo" >&6
9372 test "x$with_home_terminfo" = "xyes" &&
9373 cat >>confdefs.h <<\EOF
9374 #define USE_HOME_TERMINFO 1
9377 echo "$as_me:9377: checking if you want to permit root to use ncurses environment variables" >&5
9378 echo $ECHO_N "checking if you want to permit root to use ncurses environment variables... $ECHO_C" >&6
9380 # Check whether --enable-root-environ or --disable-root-environ was given.
9381 if test "${enable_root_environ+set}" = set; then
9382 enableval="$enable_root_environ"
9383 with_root_environ=$enableval
9385 with_root_environ=yes
9387 echo "$as_me:9387: result: $with_root_environ" >&5
9388 echo "${ECHO_T}$with_root_environ" >&6
9389 test "x$with_root_environ" = xyes &&
9390 cat >>confdefs.h <<\EOF
9391 #define USE_ROOT_ENVIRON 1
9394 echo "$as_me:9394: checking if you want to permit setuid programs to access all files" >&5
9395 echo $ECHO_N "checking if you want to permit setuid programs to access all files... $ECHO_C" >&6
9397 # Check whether --enable-root-environ or --disable-root-environ was given.
9398 if test "${enable_root_environ+set}" = set; then
9399 enableval="$enable_root_environ"
9400 with_root_access=$enableval
9402 with_root_access=yes
9404 echo "$as_me:9404: result: $with_root_access" >&5
9405 echo "${ECHO_T}$with_root_access" >&6
9406 test "x$with_root_access" = xyes &&
9407 cat >>confdefs.h <<\EOF
9408 #define USE_ROOT_ACCESS 1
9411 ### Use option --enable-symlinks to make tic use symlinks, not hard links
9412 ### to reduce storage requirements for the terminfo database.
9418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9419 echo "$as_me:9419: checking for $ac_header" >&5
9420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9422 echo $ECHO_N "(cached) $ECHO_C" >&6
9424 cat >"conftest.$ac_ext" <<_ACEOF
9425 #line 9425 "configure"
9426 #include "confdefs.h"
9427 #include <$ac_header>
9429 if { (eval echo "$as_me:9429: \"$ac_cpp "conftest.$ac_ext"\"") >&5
9430 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
9432 $EGREP -v '^ *\+' conftest.er1 >conftest.err
9434 cat conftest.err >&5
9435 echo "$as_me:9435: \$? = $ac_status" >&5
9436 (exit "$ac_status"); } >/dev/null; then
9437 if test -s conftest.err; then
9438 ac_cpp_err=$ac_c_preproc_warn_flag
9445 if test -z "$ac_cpp_err"; then
9446 eval "$as_ac_Header=yes"
9448 echo "$as_me: failed program was:" >&5
9449 cat "conftest.$ac_ext" >&5
9450 eval "$as_ac_Header=no"
9452 rm -f conftest.err "conftest.$ac_ext"
9454 echo "$as_me:9454: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
9455 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
9456 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
9457 cat >>confdefs.h <<EOF
9458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9468 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9469 echo "$as_me:9469: checking for $ac_func" >&5
9470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9471 if eval "test \"\${$as_ac_var+set}\" = set"; then
9472 echo $ECHO_N "(cached) $ECHO_C" >&6
9474 cat >"conftest.$ac_ext" <<_ACEOF
9475 #line 9475 "configure"
9476 #include "confdefs.h"
9477 #define $ac_func autoconf_temporary
9478 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
9485 /* We use char because int might match the return type of a gcc2
9486 builtin and then its argument prototype would still apply. */
9487 char $ac_func (void);
9493 /* The GNU C library defines stubs for functions which it implements
9494 to always fail with ENOSYS. Some functions are actually named
9495 something starting with __ and the normal name is an alias. */
9496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9497 #error found stub for $ac_func
9505 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9506 if { (eval echo "$as_me:9506: \"$ac_link\"") >&5
9507 (eval $ac_link) 2>&5
9509 echo "$as_me:9509: \$? = $ac_status" >&5
9510 (exit "$ac_status"); } &&
9511 { ac_try='test -s "conftest$ac_exeext"'
9512 { (eval echo "$as_me:9512: \"$ac_try\"") >&5
9515 echo "$as_me:9515: \$? = $ac_status" >&5
9516 (exit "$ac_status"); }; }; then
9517 eval "$as_ac_var=yes"
9519 echo "$as_me: failed program was:" >&5
9520 cat "conftest.$ac_ext" >&5
9521 eval "$as_ac_var=no"
9523 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9525 echo "$as_me:9525: result: `eval echo '${'"$as_ac_var"'}'`" >&5
9526 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
9527 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
9528 cat >>confdefs.h <<EOF
9529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9535 if test "$cross_compiling" = yes ; then
9541 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9542 echo "$as_me:9542: checking for $ac_func" >&5
9543 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9544 if eval "test \"\${$as_ac_var+set}\" = set"; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9547 cat >"conftest.$ac_ext" <<_ACEOF
9548 #line 9548 "configure"
9549 #include "confdefs.h"
9550 #define $ac_func autoconf_temporary
9551 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
9558 /* We use char because int might match the return type of a gcc2
9559 builtin and then its argument prototype would still apply. */
9560 char $ac_func (void);
9566 /* The GNU C library defines stubs for functions which it implements
9567 to always fail with ENOSYS. Some functions are actually named
9568 something starting with __ and the normal name is an alias. */
9569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9570 #error found stub for $ac_func
9578 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9579 if { (eval echo "$as_me:9579: \"$ac_link\"") >&5
9580 (eval $ac_link) 2>&5
9582 echo "$as_me:9582: \$? = $ac_status" >&5
9583 (exit "$ac_status"); } &&
9584 { ac_try='test -s "conftest$ac_exeext"'
9585 { (eval echo "$as_me:9585: \"$ac_try\"") >&5
9588 echo "$as_me:9588: \$? = $ac_status" >&5
9589 (exit "$ac_status"); }; }; then
9590 eval "$as_ac_var=yes"
9592 echo "$as_me: failed program was:" >&5
9593 cat "conftest.$ac_ext" >&5
9594 eval "$as_ac_var=no"
9596 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9598 echo "$as_me:9598: result: `eval echo '${'"$as_ac_var"'}'`" >&5
9599 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
9600 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
9601 cat >>confdefs.h <<EOF
9602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9609 echo "$as_me:9609: checking if link/symlink functions work" >&5
9610 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
9611 if test "${cf_cv_link_funcs+set}" = set; then
9612 echo $ECHO_N "(cached) $ECHO_C" >&6
9616 for cf_func in link symlink ; do
9617 if test "$cross_compiling" = yes; then
9619 eval 'ac_cv_func_'$cf_func'=error'
9621 cat >"conftest.$ac_ext" <<_ACEOF
9622 #line 9622 "configure"
9623 #include "confdefs.h"
9626 #include <sys/types.h>
9627 #include <sys/stat.h>
9628 #ifdef HAVE_UNISTD_H
9634 char *src = "conftest.tmp";
9635 char *dst = "conftest.chk";
9636 struct stat src_sb, dst_sb;
9637 FILE *fp = fopen(src, "w");
9638 if (fp == 0) { fail = 3; } else {
9639 fclose(fp); stat(src, &src_sb);
9640 if ($cf_func(src, dst) < 0) {
9642 } else if (stat(dst, &dst_sb) < 0) {
9645 long diff = (dst_sb.st_mtime - src_sb.st_mtime);
9646 if (diff < 0) diff = -diff;
9647 if (diff > 2) fail = 3;
9651 unlink(dst); unlink(src);
9653 remove(dst); remove(src);
9655 ${cf_cv_main_return:-return} (fail);
9659 rm -f "conftest$ac_exeext"
9660 if { (eval echo "$as_me:9660: \"$ac_link\"") >&5
9661 (eval $ac_link) 2>&5
9663 echo "$as_me:9663: \$? = $ac_status" >&5
9664 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
9665 { (eval echo "$as_me:9665: \"$ac_try\"") >&5
9668 echo "$as_me:9668: \$? = $ac_status" >&5
9669 (exit "$ac_status"); }; }; then
9671 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
9672 eval 'ac_cv_func_'$cf_func'=yes'
9674 echo "$as_me: program exited with status $ac_status" >&5
9675 echo "$as_me: failed program was:" >&5
9676 cat "conftest.$ac_ext" >&5
9678 eval 'ac_cv_func_'$cf_func'=no'
9680 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
9683 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
9686 echo "$as_me:9686: result: $cf_cv_link_funcs" >&5
9687 echo "${ECHO_T}$cf_cv_link_funcs" >&6
9688 test "$ac_cv_func_link" = yes &&
9689 cat >>confdefs.h <<\EOF
9693 test "$ac_cv_func_symlink" = yes &&
9694 cat >>confdefs.h <<\EOF
9695 #define HAVE_SYMLINK 1
9703 # soft links (symbolic links) are useful for some systems where hard links do
9704 # not work, or to make it simpler to copy terminfo trees around.
9705 if test "x$ac_cv_func_symlink" = xyes ; then
9706 echo "$as_me:9706: checking if tic should use symbolic links" >&5
9707 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
9709 # Check whether --enable-symlinks or --disable-symlinks was given.
9710 if test "${enable_symlinks+set}" = set; then
9711 enableval="$enable_symlinks"
9712 with_symlinks=$enableval
9716 echo "$as_me:9716: result: $with_symlinks" >&5
9717 echo "${ECHO_T}$with_symlinks" >&6
9720 # If we have hard links and did not choose to use soft links instead, there is
9721 # no reason to make this choice optional - use the hard links.
9722 if test "$with_symlinks" = no ; then
9723 echo "$as_me:9723: checking if tic should use hard links" >&5
9724 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
9725 if test "x$ac_cv_func_link" = xyes ; then
9730 echo "$as_me:9730: result: $with_links" >&5
9731 echo "${ECHO_T}$with_links" >&6
9734 test "x$with_links" = xyes &&
9735 cat >>confdefs.h <<\EOF
9739 test "x$with_symlinks" = xyes &&
9740 cat >>confdefs.h <<\EOF
9741 #define USE_SYMLINKS 1
9744 ### use option --enable-broken-linker to force on use of broken-linker support
9746 echo "$as_me:9746: checking if you want broken-linker support code" >&5
9747 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
9749 # Check whether --enable-broken_linker or --disable-broken_linker was given.
9750 if test "${enable_broken_linker+set}" = set; then
9751 enableval="$enable_broken_linker"
9752 with_broken_linker=$enableval
9754 with_broken_linker=no
9756 echo "$as_me:9756: result: $with_broken_linker" >&5
9757 echo "${ECHO_T}$with_broken_linker" >&6
9759 : "${BROKEN_LINKER:=0}"
9760 if test "x$with_broken_linker" = xyes ; then
9762 cat >>confdefs.h <<\EOF
9763 #define BROKEN_LINKER 1
9769 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
9770 echo "$as_me:9770: checking if tputs should process BSD-style prefix padding" >&5
9771 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
9773 # Check whether --enable-bsdpad or --disable-bsdpad was given.
9774 if test "${enable_bsdpad+set}" = set; then
9775 enableval="$enable_bsdpad"
9776 with_bsdpad=$enableval
9780 echo "$as_me:9780: result: $with_bsdpad" >&5
9781 echo "${ECHO_T}$with_bsdpad" >&6
9782 test "x$with_bsdpad" = xyes &&
9783 cat >>confdefs.h <<\EOF
9787 ### use option --enable-widec to turn on use of wide-character support
9796 # Check to define _XOPEN_SOURCE "automatically"
9797 CPPFLAGS_before_XOPEN="$CPPFLAGS"
9799 echo "$as_me:9799: checking if the POSIX test-macros are already defined" >&5
9800 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
9801 if test "${cf_cv_posix_visible+set}" = set; then
9802 echo $ECHO_N "(cached) $ECHO_C" >&6
9805 cat >"conftest.$ac_ext" <<_ACEOF
9806 #line 9806 "configure"
9807 #include "confdefs.h"
9813 #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
9814 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
9815 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
9816 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
9817 #error conflicting symbols found
9824 rm -f "conftest.$ac_objext"
9825 if { (eval echo "$as_me:9825: \"$ac_compile\"") >&5
9826 (eval $ac_compile) 2>&5
9828 echo "$as_me:9828: \$? = $ac_status" >&5
9829 (exit "$ac_status"); } &&
9830 { ac_try='test -s "conftest.$ac_objext"'
9831 { (eval echo "$as_me:9831: \"$ac_try\"") >&5
9834 echo "$as_me:9834: \$? = $ac_status" >&5
9835 (exit "$ac_status"); }; }; then
9836 cf_cv_posix_visible=no
9838 echo "$as_me: failed program was:" >&5
9839 cat "conftest.$ac_ext" >&5
9840 cf_cv_posix_visible=yes
9842 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9845 echo "$as_me:9845: result: $cf_cv_posix_visible" >&5
9846 echo "${ECHO_T}$cf_cv_posix_visible" >&6
9848 if test "$cf_cv_posix_visible" = no; then
9851 cf_POSIX_C_SOURCE=199506L
9856 cf_xopen_source="-D_ALL_SOURCE"
9862 cf_xopen_source="-D_APPLE_C_SOURCE"
9865 cf_xopen_source="-D_DARWIN_C_SOURCE"
9868 (freebsd*|dragonfly*|midnightbsd*)
9869 # 5.x headers associate
9870 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
9871 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
9872 cf_POSIX_C_SOURCE=200112L
9874 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
9877 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
9880 cf_xopen_source="-D_HPUX_SOURCE"
9883 cf_xopen_source="-D_SGI_SOURCE"
9886 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
9888 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
9890 echo "$as_me:9890: checking if this is the GNU C library" >&5
9891 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
9892 if test "${cf_cv_gnu_library+set}" = set; then
9893 echo $ECHO_N "(cached) $ECHO_C" >&6
9896 cat >"conftest.$ac_ext" <<_ACEOF
9897 #line 9897 "configure"
9898 #include "confdefs.h"
9899 #include <sys/types.h>
9904 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
9906 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0
9909 # error not GNU C library
9915 rm -f "conftest.$ac_objext"
9916 if { (eval echo "$as_me:9916: \"$ac_compile\"") >&5
9917 (eval $ac_compile) 2>&5
9919 echo "$as_me:9919: \$? = $ac_status" >&5
9920 (exit "$ac_status"); } &&
9921 { ac_try='test -s "conftest.$ac_objext"'
9922 { (eval echo "$as_me:9922: \"$ac_try\"") >&5
9925 echo "$as_me:9925: \$? = $ac_status" >&5
9926 (exit "$ac_status"); }; }; then
9927 cf_cv_gnu_library=yes
9929 echo "$as_me: failed program was:" >&5
9930 cat "conftest.$ac_ext" >&5
9931 cf_cv_gnu_library=no
9933 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9936 echo "$as_me:9936: result: $cf_cv_gnu_library" >&5
9937 echo "${ECHO_T}$cf_cv_gnu_library" >&6
9939 if test x$cf_cv_gnu_library = xyes; then
9941 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
9942 # was changed to help a little. newlib incorporated the change about 4
9944 echo "$as_me:9944: checking if _DEFAULT_SOURCE can be used as a basis" >&5
9945 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
9946 if test "${cf_cv_gnu_library_219+set}" = set; then
9947 echo $ECHO_N "(cached) $ECHO_C" >&6
9952 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9953 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
9955 cat >"conftest.$ac_ext" <<_ACEOF
9956 #line 9956 "configure"
9957 #include "confdefs.h"
9958 #include <sys/types.h>
9963 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
9965 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3)
9968 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
9974 rm -f "conftest.$ac_objext"
9975 if { (eval echo "$as_me:9975: \"$ac_compile\"") >&5
9976 (eval $ac_compile) 2>&5
9978 echo "$as_me:9978: \$? = $ac_status" >&5
9979 (exit "$ac_status"); } &&
9980 { ac_try='test -s "conftest.$ac_objext"'
9981 { (eval echo "$as_me:9981: \"$ac_try\"") >&5
9984 echo "$as_me:9984: \$? = $ac_status" >&5
9985 (exit "$ac_status"); }; }; then
9986 cf_cv_gnu_library_219=yes
9988 echo "$as_me: failed program was:" >&5
9989 cat "conftest.$ac_ext" >&5
9990 cf_cv_gnu_library_219=no
9992 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9996 echo "$as_me:9996: result: $cf_cv_gnu_library_219" >&5
9997 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
9999 if test "x$cf_cv_gnu_library_219" = xyes; then
10000 cf_save="$CPPFLAGS"
10001 echo "$as_me:10001: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
10002 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
10003 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
10004 echo $ECHO_N "(cached) $ECHO_C" >&6
10010 cf_new_extra_cppflags=
10012 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
10014 case "$cf_fix_cppflags" in
10016 case "$cf_add_cflags" in
10017 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10018 case "$cf_add_cflags" in
10020 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10022 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10023 && test -z "${cf_tst_cflags}" \
10024 && cf_fix_cppflags=yes
10026 if test "$cf_fix_cppflags" = yes ; then
10028 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10029 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10032 elif test "${cf_tst_cflags}" = "\"'" ; then
10034 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10035 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10041 case "$CPPFLAGS" in
10045 case "$cf_add_cflags" in
10047 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10049 CPPFLAGS=`echo "$CPPFLAGS" | \
10050 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10051 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10056 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10057 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10064 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10065 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10072 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10073 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10075 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10077 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10078 && test -z "${cf_tst_cflags}" \
10079 && cf_fix_cppflags=no
10084 if test -n "$cf_new_cflags" ; then
10086 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10087 CFLAGS="${CFLAGS}$cf_new_cflags"
10091 if test -n "$cf_new_cppflags" ; then
10093 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10094 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10098 if test -n "$cf_new_extra_cppflags" ; then
10100 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10101 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10105 cat >"conftest.$ac_ext" <<_ACEOF
10106 #line 10106 "configure"
10107 #include "confdefs.h"
10109 #include <limits.h>
10110 #include <sys/types.h>
10116 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
10119 # error GNU C library is too old
10125 rm -f "conftest.$ac_objext"
10126 if { (eval echo "$as_me:10126: \"$ac_compile\"") >&5
10127 (eval $ac_compile) 2>&5
10129 echo "$as_me:10129: \$? = $ac_status" >&5
10130 (exit "$ac_status"); } &&
10131 { ac_try='test -s "conftest.$ac_objext"'
10132 { (eval echo "$as_me:10132: \"$ac_try\"") >&5
10133 (eval $ac_try) 2>&5
10135 echo "$as_me:10135: \$? = $ac_status" >&5
10136 (exit "$ac_status"); }; }; then
10137 cf_cv_gnu_dftsrc_219=yes
10139 echo "$as_me: failed program was:" >&5
10140 cat "conftest.$ac_ext" >&5
10141 cf_cv_gnu_dftsrc_219=no
10143 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10146 echo "$as_me:10146: result: $cf_cv_gnu_dftsrc_219" >&5
10147 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
10148 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
10150 cf_cv_gnu_dftsrc_219=maybe
10153 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
10155 echo "$as_me:10155: checking if we must define _GNU_SOURCE" >&5
10156 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
10157 if test "${cf_cv_gnu_source+set}" = set; then
10158 echo $ECHO_N "(cached) $ECHO_C" >&6
10161 cat >"conftest.$ac_ext" <<_ACEOF
10162 #line 10162 "configure"
10163 #include "confdefs.h"
10164 #include <sys/types.h>
10169 #ifndef _XOPEN_SOURCE
10170 #error expected _XOPEN_SOURCE to be defined
10176 rm -f "conftest.$ac_objext"
10177 if { (eval echo "$as_me:10177: \"$ac_compile\"") >&5
10178 (eval $ac_compile) 2>&5
10180 echo "$as_me:10180: \$? = $ac_status" >&5
10181 (exit "$ac_status"); } &&
10182 { ac_try='test -s "conftest.$ac_objext"'
10183 { (eval echo "$as_me:10183: \"$ac_try\"") >&5
10184 (eval $ac_try) 2>&5
10186 echo "$as_me:10186: \$? = $ac_status" >&5
10187 (exit "$ac_status"); }; }; then
10188 cf_cv_gnu_source=no
10190 echo "$as_me: failed program was:" >&5
10191 cat "conftest.$ac_ext" >&5
10192 cf_save="$CPPFLAGS"
10197 cf_new_extra_cppflags=
10199 for cf_add_cflags in -D_GNU_SOURCE
10201 case "$cf_fix_cppflags" in
10203 case "$cf_add_cflags" in
10204 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10205 case "$cf_add_cflags" in
10207 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10209 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10210 && test -z "${cf_tst_cflags}" \
10211 && cf_fix_cppflags=yes
10213 if test "$cf_fix_cppflags" = yes ; then
10215 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10216 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10219 elif test "${cf_tst_cflags}" = "\"'" ; then
10221 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10222 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10228 case "$CPPFLAGS" in
10232 case "$cf_add_cflags" in
10234 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10236 CPPFLAGS=`echo "$CPPFLAGS" | \
10237 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10238 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10243 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10244 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10251 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10252 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10259 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10260 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10262 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10264 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10265 && test -z "${cf_tst_cflags}" \
10266 && cf_fix_cppflags=no
10271 if test -n "$cf_new_cflags" ; then
10273 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10274 CFLAGS="${CFLAGS}$cf_new_cflags"
10278 if test -n "$cf_new_cppflags" ; then
10280 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10281 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10285 if test -n "$cf_new_extra_cppflags" ; then
10287 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10288 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10292 cat >"conftest.$ac_ext" <<_ACEOF
10293 #line 10293 "configure"
10294 #include "confdefs.h"
10295 #include <sys/types.h>
10300 #ifdef _XOPEN_SOURCE
10301 #error expected _XOPEN_SOURCE to be undefined
10307 rm -f "conftest.$ac_objext"
10308 if { (eval echo "$as_me:10308: \"$ac_compile\"") >&5
10309 (eval $ac_compile) 2>&5
10311 echo "$as_me:10311: \$? = $ac_status" >&5
10312 (exit "$ac_status"); } &&
10313 { ac_try='test -s "conftest.$ac_objext"'
10314 { (eval echo "$as_me:10314: \"$ac_try\"") >&5
10315 (eval $ac_try) 2>&5
10317 echo "$as_me:10317: \$? = $ac_status" >&5
10318 (exit "$ac_status"); }; }; then
10319 cf_cv_gnu_source=no
10321 echo "$as_me: failed program was:" >&5
10322 cat "conftest.$ac_ext" >&5
10323 cf_cv_gnu_source=yes
10325 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10326 CPPFLAGS="$cf_save"
10329 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10332 echo "$as_me:10332: result: $cf_cv_gnu_source" >&5
10333 echo "${ECHO_T}$cf_cv_gnu_source" >&6
10335 if test "$cf_cv_gnu_source" = yes
10337 echo "$as_me:10337: checking if we should also define _DEFAULT_SOURCE" >&5
10338 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
10339 if test "${cf_cv_default_source+set}" = set; then
10340 echo $ECHO_N "(cached) $ECHO_C" >&6
10343 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10344 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
10346 cat >"conftest.$ac_ext" <<_ACEOF
10347 #line 10347 "configure"
10348 #include "confdefs.h"
10349 #include <sys/types.h>
10354 #ifdef _DEFAULT_SOURCE
10355 #error expected _DEFAULT_SOURCE to be undefined
10361 rm -f "conftest.$ac_objext"
10362 if { (eval echo "$as_me:10362: \"$ac_compile\"") >&5
10363 (eval $ac_compile) 2>&5
10365 echo "$as_me:10365: \$? = $ac_status" >&5
10366 (exit "$ac_status"); } &&
10367 { ac_try='test -s "conftest.$ac_objext"'
10368 { (eval echo "$as_me:10368: \"$ac_try\"") >&5
10369 (eval $ac_try) 2>&5
10371 echo "$as_me:10371: \$? = $ac_status" >&5
10372 (exit "$ac_status"); }; }; then
10373 cf_cv_default_source=no
10375 echo "$as_me: failed program was:" >&5
10376 cat "conftest.$ac_ext" >&5
10377 cf_cv_default_source=yes
10379 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10382 echo "$as_me:10382: result: $cf_cv_default_source" >&5
10383 echo "${ECHO_T}$cf_cv_default_source" >&6
10384 if test "$cf_cv_default_source" = yes
10387 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10388 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
10398 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
10401 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
10404 if test "$cf_cv_posix_visible" = no; then
10406 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
10408 cf_save_CFLAGS="$CFLAGS"
10409 cf_save_CPPFLAGS="$CPPFLAGS"
10411 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
10412 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10413 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10415 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
10416 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10417 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10419 echo "$as_me:10419: checking if we should define _POSIX_C_SOURCE" >&5
10420 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
10421 if test "${cf_cv_posix_c_source+set}" = set; then
10422 echo $ECHO_N "(cached) $ECHO_C" >&6
10425 echo "${as_me:-configure}:10425: testing if the symbol is already defined go no further ..." 1>&5
10427 cat >"conftest.$ac_ext" <<_ACEOF
10428 #line 10428 "configure"
10429 #include "confdefs.h"
10430 #include <sys/types.h>
10435 #ifndef _POSIX_C_SOURCE
10442 rm -f "conftest.$ac_objext"
10443 if { (eval echo "$as_me:10443: \"$ac_compile\"") >&5
10444 (eval $ac_compile) 2>&5
10446 echo "$as_me:10446: \$? = $ac_status" >&5
10447 (exit "$ac_status"); } &&
10448 { ac_try='test -s "conftest.$ac_objext"'
10449 { (eval echo "$as_me:10449: \"$ac_try\"") >&5
10450 (eval $ac_try) 2>&5
10452 echo "$as_me:10452: \$? = $ac_status" >&5
10453 (exit "$ac_status"); }; }; then
10454 cf_cv_posix_c_source=no
10456 echo "$as_me: failed program was:" >&5
10457 cat "conftest.$ac_ext" >&5
10458 cf_want_posix_source=no
10459 case .$cf_POSIX_C_SOURCE in
10461 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10464 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10465 cf_want_posix_source=yes
10468 cf_want_posix_source=yes
10471 if test "$cf_want_posix_source" = yes ; then
10472 cat >"conftest.$ac_ext" <<_ACEOF
10473 #line 10473 "configure"
10474 #include "confdefs.h"
10475 #include <sys/types.h>
10480 #ifdef _POSIX_SOURCE
10487 rm -f "conftest.$ac_objext"
10488 if { (eval echo "$as_me:10488: \"$ac_compile\"") >&5
10489 (eval $ac_compile) 2>&5
10491 echo "$as_me:10491: \$? = $ac_status" >&5
10492 (exit "$ac_status"); } &&
10493 { ac_try='test -s "conftest.$ac_objext"'
10494 { (eval echo "$as_me:10494: \"$ac_try\"") >&5
10495 (eval $ac_try) 2>&5
10497 echo "$as_me:10497: \$? = $ac_status" >&5
10498 (exit "$ac_status"); }; }; then
10501 echo "$as_me: failed program was:" >&5
10502 cat "conftest.$ac_ext" >&5
10503 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
10505 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10508 echo "${as_me:-configure}:10508: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
10510 CFLAGS="$cf_trim_CFLAGS"
10511 CPPFLAGS="$cf_trim_CPPFLAGS"
10513 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10514 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
10516 echo "${as_me:-configure}:10516: testing if the second compile does not leave our definition intact error ..." 1>&5
10518 cat >"conftest.$ac_ext" <<_ACEOF
10519 #line 10519 "configure"
10520 #include "confdefs.h"
10521 #include <sys/types.h>
10526 #ifndef _POSIX_C_SOURCE
10533 rm -f "conftest.$ac_objext"
10534 if { (eval echo "$as_me:10534: \"$ac_compile\"") >&5
10535 (eval $ac_compile) 2>&5
10537 echo "$as_me:10537: \$? = $ac_status" >&5
10538 (exit "$ac_status"); } &&
10539 { ac_try='test -s "conftest.$ac_objext"'
10540 { (eval echo "$as_me:10540: \"$ac_try\"") >&5
10541 (eval $ac_try) 2>&5
10543 echo "$as_me:10543: \$? = $ac_status" >&5
10544 (exit "$ac_status"); }; }; then
10547 echo "$as_me: failed program was:" >&5
10548 cat "conftest.$ac_ext" >&5
10549 cf_cv_posix_c_source=no
10551 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10552 CFLAGS="$cf_save_CFLAGS"
10553 CPPFLAGS="$cf_save_CPPFLAGS"
10556 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10559 echo "$as_me:10559: result: $cf_cv_posix_c_source" >&5
10560 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
10562 if test "$cf_cv_posix_c_source" != no ; then
10563 CFLAGS="$cf_trim_CFLAGS"
10564 CPPFLAGS="$cf_trim_CPPFLAGS"
10569 cf_new_extra_cppflags=
10571 for cf_add_cflags in $cf_cv_posix_c_source
10573 case "$cf_fix_cppflags" in
10575 case "$cf_add_cflags" in
10576 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10577 case "$cf_add_cflags" in
10579 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10581 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10582 && test -z "${cf_tst_cflags}" \
10583 && cf_fix_cppflags=yes
10585 if test "$cf_fix_cppflags" = yes ; then
10587 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10588 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10591 elif test "${cf_tst_cflags}" = "\"'" ; then
10593 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10594 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10600 case "$CPPFLAGS" in
10604 case "$cf_add_cflags" in
10606 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10608 CPPFLAGS=`echo "$CPPFLAGS" | \
10609 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10610 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10615 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10616 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10623 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10624 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10631 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10632 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10634 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10636 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10637 && test -z "${cf_tst_cflags}" \
10638 && cf_fix_cppflags=no
10643 if test -n "$cf_new_cflags" ; then
10645 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10646 CFLAGS="${CFLAGS}$cf_new_cflags"
10650 if test -n "$cf_new_cppflags" ; then
10652 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10653 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10657 if test -n "$cf_new_extra_cppflags" ; then
10659 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10660 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10666 fi # cf_cv_posix_visible
10670 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
10673 # OpenBSD 6.x has broken locale support, both compile-time and runtime.
10674 # see https://www.mail-archive.com/bugs@openbsd.org/msg13200.html
10675 # Abusing the conformance level is a workaround.
10676 { echo "$as_me:10676: WARNING: this system does not provide usable locale support" >&5
10677 echo "$as_me: WARNING: this system does not provide usable locale support" >&2;}
10678 cf_xopen_source="-D_BSD_SOURCE"
10679 cf_XOPEN_SOURCE=700
10682 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
10683 cf_xopen_source="-D_BSD_SOURCE"
10684 cf_XOPEN_SOURCE=600
10687 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
10690 cf_xopen_source="-D_OSF_SOURCE"
10693 cf_xopen_source="-D_QNX_SOURCE"
10696 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
10699 cf_xopen_source="-D__EXTENSIONS__"
10700 cf_cv_xopen_source=broken
10702 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
10708 echo "$as_me:10708: checking if we should define _XOPEN_SOURCE" >&5
10709 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
10710 if test "${cf_cv_xopen_source+set}" = set; then
10711 echo $ECHO_N "(cached) $ECHO_C" >&6
10714 cat >"conftest.$ac_ext" <<_ACEOF
10715 #line 10715 "configure"
10716 #include "confdefs.h"
10718 #include <stdlib.h>
10719 #include <string.h>
10720 #include <sys/types.h>
10726 #ifndef _XOPEN_SOURCE
10733 rm -f "conftest.$ac_objext"
10734 if { (eval echo "$as_me:10734: \"$ac_compile\"") >&5
10735 (eval $ac_compile) 2>&5
10737 echo "$as_me:10737: \$? = $ac_status" >&5
10738 (exit "$ac_status"); } &&
10739 { ac_try='test -s "conftest.$ac_objext"'
10740 { (eval echo "$as_me:10740: \"$ac_try\"") >&5
10741 (eval $ac_try) 2>&5
10743 echo "$as_me:10743: \$? = $ac_status" >&5
10744 (exit "$ac_status"); }; }; then
10745 cf_cv_xopen_source=no
10747 echo "$as_me: failed program was:" >&5
10748 cat "conftest.$ac_ext" >&5
10749 cf_save="$CPPFLAGS"
10751 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10752 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
10754 cat >"conftest.$ac_ext" <<_ACEOF
10755 #line 10755 "configure"
10756 #include "confdefs.h"
10758 #include <stdlib.h>
10759 #include <string.h>
10760 #include <sys/types.h>
10766 #ifdef _XOPEN_SOURCE
10773 rm -f "conftest.$ac_objext"
10774 if { (eval echo "$as_me:10774: \"$ac_compile\"") >&5
10775 (eval $ac_compile) 2>&5
10777 echo "$as_me:10777: \$? = $ac_status" >&5
10778 (exit "$ac_status"); } &&
10779 { ac_try='test -s "conftest.$ac_objext"'
10780 { (eval echo "$as_me:10780: \"$ac_try\"") >&5
10781 (eval $ac_try) 2>&5
10783 echo "$as_me:10783: \$? = $ac_status" >&5
10784 (exit "$ac_status"); }; }; then
10785 cf_cv_xopen_source=no
10787 echo "$as_me: failed program was:" >&5
10788 cat "conftest.$ac_ext" >&5
10789 cf_cv_xopen_source=$cf_XOPEN_SOURCE
10791 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10792 CPPFLAGS="$cf_save"
10795 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10798 echo "$as_me:10798: result: $cf_cv_xopen_source" >&5
10799 echo "${ECHO_T}$cf_cv_xopen_source" >&6
10801 if test "$cf_cv_xopen_source" != no ; then
10803 CFLAGS=`echo "$CFLAGS" | \
10804 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10805 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
10807 CPPFLAGS=`echo "$CPPFLAGS" | \
10808 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10809 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
10811 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
10813 for cf_add_cflags in $cf_temp_xopen_source
10815 case "x$cf_add_cflags" in
10818 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
10821 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
10822 test "$CFLAGS" != "$cf_old_cflag" || break
10824 CFLAGS="$cf_old_cflag"
10827 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
10830 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
10831 test "$CPPFLAGS" != "$cf_old_cflag" || break
10833 CPPFLAGS="$cf_old_cflag"
10842 cf_new_extra_cppflags=
10844 for cf_add_cflags in $cf_add_cflags
10846 case "$cf_fix_cppflags" in
10848 case "$cf_add_cflags" in
10849 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10850 case "$cf_add_cflags" in
10852 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10854 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10855 && test -z "${cf_tst_cflags}" \
10856 && cf_fix_cppflags=yes
10858 if test "$cf_fix_cppflags" = yes ; then
10860 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10861 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10864 elif test "${cf_tst_cflags}" = "\"'" ; then
10866 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10867 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10873 case "$CPPFLAGS" in
10877 case "$cf_add_cflags" in
10879 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10881 CPPFLAGS=`echo "$CPPFLAGS" | \
10882 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10883 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10888 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10889 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10896 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10897 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10904 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10905 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10907 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10909 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10910 && test -z "${cf_tst_cflags}" \
10911 && cf_fix_cppflags=no
10916 if test -n "$cf_new_cflags" ; then
10918 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10919 CFLAGS="${CFLAGS}$cf_new_cflags"
10923 if test -n "$cf_new_cppflags" ; then
10925 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10926 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10930 if test -n "$cf_new_extra_cppflags" ; then
10932 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10933 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10941 if test "$cf_cv_posix_visible" = no; then
10943 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
10945 cf_save_CFLAGS="$CFLAGS"
10946 cf_save_CPPFLAGS="$CPPFLAGS"
10948 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
10949 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10950 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10952 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
10953 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10954 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10956 echo "$as_me:10956: checking if we should define _POSIX_C_SOURCE" >&5
10957 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
10958 if test "${cf_cv_posix_c_source+set}" = set; then
10959 echo $ECHO_N "(cached) $ECHO_C" >&6
10962 echo "${as_me:-configure}:10962: testing if the symbol is already defined go no further ..." 1>&5
10964 cat >"conftest.$ac_ext" <<_ACEOF
10965 #line 10965 "configure"
10966 #include "confdefs.h"
10967 #include <sys/types.h>
10972 #ifndef _POSIX_C_SOURCE
10979 rm -f "conftest.$ac_objext"
10980 if { (eval echo "$as_me:10980: \"$ac_compile\"") >&5
10981 (eval $ac_compile) 2>&5
10983 echo "$as_me:10983: \$? = $ac_status" >&5
10984 (exit "$ac_status"); } &&
10985 { ac_try='test -s "conftest.$ac_objext"'
10986 { (eval echo "$as_me:10986: \"$ac_try\"") >&5
10987 (eval $ac_try) 2>&5
10989 echo "$as_me:10989: \$? = $ac_status" >&5
10990 (exit "$ac_status"); }; }; then
10991 cf_cv_posix_c_source=no
10993 echo "$as_me: failed program was:" >&5
10994 cat "conftest.$ac_ext" >&5
10995 cf_want_posix_source=no
10996 case .$cf_POSIX_C_SOURCE in
10998 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
11001 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
11002 cf_want_posix_source=yes
11005 cf_want_posix_source=yes
11008 if test "$cf_want_posix_source" = yes ; then
11009 cat >"conftest.$ac_ext" <<_ACEOF
11010 #line 11010 "configure"
11011 #include "confdefs.h"
11012 #include <sys/types.h>
11017 #ifdef _POSIX_SOURCE
11024 rm -f "conftest.$ac_objext"
11025 if { (eval echo "$as_me:11025: \"$ac_compile\"") >&5
11026 (eval $ac_compile) 2>&5
11028 echo "$as_me:11028: \$? = $ac_status" >&5
11029 (exit "$ac_status"); } &&
11030 { ac_try='test -s "conftest.$ac_objext"'
11031 { (eval echo "$as_me:11031: \"$ac_try\"") >&5
11032 (eval $ac_try) 2>&5
11034 echo "$as_me:11034: \$? = $ac_status" >&5
11035 (exit "$ac_status"); }; }; then
11038 echo "$as_me: failed program was:" >&5
11039 cat "conftest.$ac_ext" >&5
11040 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
11042 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11045 echo "${as_me:-configure}:11045: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
11047 CFLAGS="$cf_trim_CFLAGS"
11048 CPPFLAGS="$cf_trim_CPPFLAGS"
11050 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11051 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
11053 echo "${as_me:-configure}:11053: testing if the second compile does not leave our definition intact error ..." 1>&5
11055 cat >"conftest.$ac_ext" <<_ACEOF
11056 #line 11056 "configure"
11057 #include "confdefs.h"
11058 #include <sys/types.h>
11063 #ifndef _POSIX_C_SOURCE
11070 rm -f "conftest.$ac_objext"
11071 if { (eval echo "$as_me:11071: \"$ac_compile\"") >&5
11072 (eval $ac_compile) 2>&5
11074 echo "$as_me:11074: \$? = $ac_status" >&5
11075 (exit "$ac_status"); } &&
11076 { ac_try='test -s "conftest.$ac_objext"'
11077 { (eval echo "$as_me:11077: \"$ac_try\"") >&5
11078 (eval $ac_try) 2>&5
11080 echo "$as_me:11080: \$? = $ac_status" >&5
11081 (exit "$ac_status"); }; }; then
11084 echo "$as_me: failed program was:" >&5
11085 cat "conftest.$ac_ext" >&5
11086 cf_cv_posix_c_source=no
11088 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11089 CFLAGS="$cf_save_CFLAGS"
11090 CPPFLAGS="$cf_save_CPPFLAGS"
11093 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11096 echo "$as_me:11096: result: $cf_cv_posix_c_source" >&5
11097 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
11099 if test "$cf_cv_posix_c_source" != no ; then
11100 CFLAGS="$cf_trim_CFLAGS"
11101 CPPFLAGS="$cf_trim_CPPFLAGS"
11106 cf_new_extra_cppflags=
11108 for cf_add_cflags in $cf_cv_posix_c_source
11110 case "$cf_fix_cppflags" in
11112 case "$cf_add_cflags" in
11113 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11114 case "$cf_add_cflags" in
11116 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11118 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11119 && test -z "${cf_tst_cflags}" \
11120 && cf_fix_cppflags=yes
11122 if test "$cf_fix_cppflags" = yes ; then
11124 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11125 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11128 elif test "${cf_tst_cflags}" = "\"'" ; then
11130 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11131 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11137 case "$CPPFLAGS" in
11141 case "$cf_add_cflags" in
11143 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11145 CPPFLAGS=`echo "$CPPFLAGS" | \
11146 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11147 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11152 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11153 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11160 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11161 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11168 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11169 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11171 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11173 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11174 && test -z "${cf_tst_cflags}" \
11175 && cf_fix_cppflags=no
11180 if test -n "$cf_new_cflags" ; then
11182 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11183 CFLAGS="${CFLAGS}$cf_new_cflags"
11187 if test -n "$cf_new_cppflags" ; then
11189 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11190 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11194 if test -n "$cf_new_extra_cppflags" ; then
11196 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11197 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11203 fi # cf_cv_posix_visible
11208 if test -n "$cf_xopen_source" ; then
11210 for cf_add_cflags in $cf_xopen_source
11212 case "x$cf_add_cflags" in
11215 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11218 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
11219 test "$CFLAGS" != "$cf_old_cflag" || break
11220 test -n "$verbose" && echo " removing old option $cf_add_cflags from CFLAGS" 1>&6
11222 echo "${as_me:-configure}:11222: testing removing old option $cf_add_cflags from CFLAGS ..." 1>&5
11224 CFLAGS="$cf_old_cflag"
11227 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11230 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
11231 test "$CPPFLAGS" != "$cf_old_cflag" || break
11232 test -n "$verbose" && echo " removing old option $cf_add_cflags from CPPFLAGS" 1>&6
11234 echo "${as_me:-configure}:11234: testing removing old option $cf_add_cflags from CPPFLAGS ..." 1>&5
11236 CPPFLAGS="$cf_old_cflag"
11245 cf_new_extra_cppflags=
11247 for cf_add_cflags in $cf_add_cflags
11249 case "$cf_fix_cppflags" in
11251 case "$cf_add_cflags" in
11252 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11253 case "$cf_add_cflags" in
11255 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11257 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11258 && test -z "${cf_tst_cflags}" \
11259 && cf_fix_cppflags=yes
11261 if test "$cf_fix_cppflags" = yes ; then
11263 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11264 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11267 elif test "${cf_tst_cflags}" = "\"'" ; then
11269 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11270 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11276 case "$CPPFLAGS" in
11280 case "$cf_add_cflags" in
11282 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11284 CPPFLAGS=`echo "$CPPFLAGS" | \
11285 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11286 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11291 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11292 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11299 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11300 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11307 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11308 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11310 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11312 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11313 && test -z "${cf_tst_cflags}" \
11314 && cf_fix_cppflags=no
11319 if test -n "$cf_new_cflags" ; then
11320 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
11322 echo "${as_me:-configure}:11322: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
11324 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11325 CFLAGS="${CFLAGS}$cf_new_cflags"
11329 if test -n "$cf_new_cppflags" ; then
11330 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
11332 echo "${as_me:-configure}:11332: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
11334 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11335 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11339 if test -n "$cf_new_extra_cppflags" ; then
11340 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
11342 echo "${as_me:-configure}:11342: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
11344 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11345 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11353 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
11354 echo "$as_me:11354: checking if _XOPEN_SOURCE really is set" >&5
11355 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
11356 cat >"conftest.$ac_ext" <<_ACEOF
11357 #line 11357 "configure"
11358 #include "confdefs.h"
11359 #include <stdlib.h>
11364 #ifndef _XOPEN_SOURCE
11371 rm -f "conftest.$ac_objext"
11372 if { (eval echo "$as_me:11372: \"$ac_compile\"") >&5
11373 (eval $ac_compile) 2>&5
11375 echo "$as_me:11375: \$? = $ac_status" >&5
11376 (exit "$ac_status"); } &&
11377 { ac_try='test -s "conftest.$ac_objext"'
11378 { (eval echo "$as_me:11378: \"$ac_try\"") >&5
11379 (eval $ac_try) 2>&5
11381 echo "$as_me:11381: \$? = $ac_status" >&5
11382 (exit "$ac_status"); }; }; then
11383 cf_XOPEN_SOURCE_set=yes
11385 echo "$as_me: failed program was:" >&5
11386 cat "conftest.$ac_ext" >&5
11387 cf_XOPEN_SOURCE_set=no
11389 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11390 echo "$as_me:11390: result: $cf_XOPEN_SOURCE_set" >&5
11391 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
11392 if test "$cf_XOPEN_SOURCE_set" = yes
11394 cat >"conftest.$ac_ext" <<_ACEOF
11395 #line 11395 "configure"
11396 #include "confdefs.h"
11397 #include <stdlib.h>
11402 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
11409 rm -f "conftest.$ac_objext"
11410 if { (eval echo "$as_me:11410: \"$ac_compile\"") >&5
11411 (eval $ac_compile) 2>&5
11413 echo "$as_me:11413: \$? = $ac_status" >&5
11414 (exit "$ac_status"); } &&
11415 { ac_try='test -s "conftest.$ac_objext"'
11416 { (eval echo "$as_me:11416: \"$ac_try\"") >&5
11417 (eval $ac_try) 2>&5
11419 echo "$as_me:11419: \$? = $ac_status" >&5
11420 (exit "$ac_status"); }; }; then
11421 cf_XOPEN_SOURCE_set_ok=yes
11423 echo "$as_me: failed program was:" >&5
11424 cat "conftest.$ac_ext" >&5
11425 cf_XOPEN_SOURCE_set_ok=no
11427 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11428 if test "$cf_XOPEN_SOURCE_set_ok" = no
11430 { echo "$as_me:11430: WARNING: _XOPEN_SOURCE is lower than requested" >&5
11431 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
11435 echo "$as_me:11435: checking if we should define _XOPEN_SOURCE" >&5
11436 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
11437 if test "${cf_cv_xopen_source+set}" = set; then
11438 echo $ECHO_N "(cached) $ECHO_C" >&6
11441 cat >"conftest.$ac_ext" <<_ACEOF
11442 #line 11442 "configure"
11443 #include "confdefs.h"
11445 #include <stdlib.h>
11446 #include <string.h>
11447 #include <sys/types.h>
11453 #ifndef _XOPEN_SOURCE
11460 rm -f "conftest.$ac_objext"
11461 if { (eval echo "$as_me:11461: \"$ac_compile\"") >&5
11462 (eval $ac_compile) 2>&5
11464 echo "$as_me:11464: \$? = $ac_status" >&5
11465 (exit "$ac_status"); } &&
11466 { ac_try='test -s "conftest.$ac_objext"'
11467 { (eval echo "$as_me:11467: \"$ac_try\"") >&5
11468 (eval $ac_try) 2>&5
11470 echo "$as_me:11470: \$? = $ac_status" >&5
11471 (exit "$ac_status"); }; }; then
11472 cf_cv_xopen_source=no
11474 echo "$as_me: failed program was:" >&5
11475 cat "conftest.$ac_ext" >&5
11476 cf_save="$CPPFLAGS"
11478 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11479 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
11481 cat >"conftest.$ac_ext" <<_ACEOF
11482 #line 11482 "configure"
11483 #include "confdefs.h"
11485 #include <stdlib.h>
11486 #include <string.h>
11487 #include <sys/types.h>
11493 #ifdef _XOPEN_SOURCE
11500 rm -f "conftest.$ac_objext"
11501 if { (eval echo "$as_me:11501: \"$ac_compile\"") >&5
11502 (eval $ac_compile) 2>&5
11504 echo "$as_me:11504: \$? = $ac_status" >&5
11505 (exit "$ac_status"); } &&
11506 { ac_try='test -s "conftest.$ac_objext"'
11507 { (eval echo "$as_me:11507: \"$ac_try\"") >&5
11508 (eval $ac_try) 2>&5
11510 echo "$as_me:11510: \$? = $ac_status" >&5
11511 (exit "$ac_status"); }; }; then
11512 cf_cv_xopen_source=no
11514 echo "$as_me: failed program was:" >&5
11515 cat "conftest.$ac_ext" >&5
11516 cf_cv_xopen_source=$cf_XOPEN_SOURCE
11518 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11519 CPPFLAGS="$cf_save"
11522 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11525 echo "$as_me:11525: result: $cf_cv_xopen_source" >&5
11526 echo "${ECHO_T}$cf_cv_xopen_source" >&6
11528 if test "$cf_cv_xopen_source" != no ; then
11530 CFLAGS=`echo "$CFLAGS" | \
11531 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11532 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
11534 CPPFLAGS=`echo "$CPPFLAGS" | \
11535 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11536 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
11538 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
11540 for cf_add_cflags in $cf_temp_xopen_source
11542 case "x$cf_add_cflags" in
11545 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11548 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
11549 test "$CFLAGS" != "$cf_old_cflag" || break
11551 CFLAGS="$cf_old_cflag"
11554 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11557 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
11558 test "$CPPFLAGS" != "$cf_old_cflag" || break
11560 CPPFLAGS="$cf_old_cflag"
11569 cf_new_extra_cppflags=
11571 for cf_add_cflags in $cf_add_cflags
11573 case "$cf_fix_cppflags" in
11575 case "$cf_add_cflags" in
11576 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11577 case "$cf_add_cflags" in
11579 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11581 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11582 && test -z "${cf_tst_cflags}" \
11583 && cf_fix_cppflags=yes
11585 if test "$cf_fix_cppflags" = yes ; then
11587 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11588 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11591 elif test "${cf_tst_cflags}" = "\"'" ; then
11593 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11594 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11600 case "$CPPFLAGS" in
11604 case "$cf_add_cflags" in
11606 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11608 CPPFLAGS=`echo "$CPPFLAGS" | \
11609 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11610 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11615 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11616 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11623 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11624 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11631 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11632 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11634 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11636 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11637 && test -z "${cf_tst_cflags}" \
11638 && cf_fix_cppflags=no
11643 if test -n "$cf_new_cflags" ; then
11645 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11646 CFLAGS="${CFLAGS}$cf_new_cflags"
11650 if test -n "$cf_new_cppflags" ; then
11652 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11653 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11657 if test -n "$cf_new_extra_cppflags" ; then
11659 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11660 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11670 fi # cf_cv_posix_visible
11672 CPPFLAGS_after_XOPEN="$CPPFLAGS"
11674 # Work around breakage on OS X
11676 echo "$as_me:11676: checking if SIGWINCH is defined" >&5
11677 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
11678 if test "${cf_cv_define_sigwinch+set}" = set; then
11679 echo $ECHO_N "(cached) $ECHO_C" >&6
11682 cat >"conftest.$ac_ext" <<_ACEOF
11683 #line 11683 "configure"
11684 #include "confdefs.h"
11686 #include <sys/types.h>
11687 #include <sys/signal.h>
11692 int x = SIGWINCH; (void)x
11697 rm -f "conftest.$ac_objext"
11698 if { (eval echo "$as_me:11698: \"$ac_compile\"") >&5
11699 (eval $ac_compile) 2>&5
11701 echo "$as_me:11701: \$? = $ac_status" >&5
11702 (exit "$ac_status"); } &&
11703 { ac_try='test -s "conftest.$ac_objext"'
11704 { (eval echo "$as_me:11704: \"$ac_try\"") >&5
11705 (eval $ac_try) 2>&5
11707 echo "$as_me:11707: \$? = $ac_status" >&5
11708 (exit "$ac_status"); }; }; then
11709 cf_cv_define_sigwinch=yes
11711 echo "$as_me: failed program was:" >&5
11712 cat "conftest.$ac_ext" >&5
11713 cat >"conftest.$ac_ext" <<_ACEOF
11714 #line 11714 "configure"
11715 #include "confdefs.h"
11717 #undef _XOPEN_SOURCE
11718 #undef _POSIX_SOURCE
11719 #undef _POSIX_C_SOURCE
11720 #include <sys/types.h>
11721 #include <sys/signal.h>
11726 int x = SIGWINCH; (void)x
11731 rm -f "conftest.$ac_objext"
11732 if { (eval echo "$as_me:11732: \"$ac_compile\"") >&5
11733 (eval $ac_compile) 2>&5
11735 echo "$as_me:11735: \$? = $ac_status" >&5
11736 (exit "$ac_status"); } &&
11737 { ac_try='test -s "conftest.$ac_objext"'
11738 { (eval echo "$as_me:11738: \"$ac_try\"") >&5
11739 (eval $ac_try) 2>&5
11741 echo "$as_me:11741: \$? = $ac_status" >&5
11742 (exit "$ac_status"); }; }; then
11743 cf_cv_define_sigwinch=maybe
11745 echo "$as_me: failed program was:" >&5
11746 cat "conftest.$ac_ext" >&5
11747 cf_cv_define_sigwinch=no
11749 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11752 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11755 echo "$as_me:11755: result: $cf_cv_define_sigwinch" >&5
11756 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
11758 if test "$cf_cv_define_sigwinch" = maybe ; then
11759 echo "$as_me:11759: checking for actual SIGWINCH definition" >&5
11760 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
11761 if test "${cf_cv_fixup_sigwinch+set}" = set; then
11762 echo $ECHO_N "(cached) $ECHO_C" >&6
11765 cf_cv_fixup_sigwinch=unknown
11767 while test "$cf_sigwinch" != 1
11769 cat >"conftest.$ac_ext" <<_ACEOF
11770 #line 11770 "configure"
11771 #include "confdefs.h"
11773 #undef _XOPEN_SOURCE
11774 #undef _POSIX_SOURCE
11775 #undef _POSIX_C_SOURCE
11776 #include <sys/types.h>
11777 #include <sys/signal.h>
11783 #if SIGWINCH != $cf_sigwinch
11786 int x = SIGWINCH; (void)x
11791 rm -f "conftest.$ac_objext"
11792 if { (eval echo "$as_me:11792: \"$ac_compile\"") >&5
11793 (eval $ac_compile) 2>&5
11795 echo "$as_me:11795: \$? = $ac_status" >&5
11796 (exit "$ac_status"); } &&
11797 { ac_try='test -s "conftest.$ac_objext"'
11798 { (eval echo "$as_me:11798: \"$ac_try\"") >&5
11799 (eval $ac_try) 2>&5
11801 echo "$as_me:11801: \$? = $ac_status" >&5
11802 (exit "$ac_status"); }; }; then
11803 cf_cv_fixup_sigwinch=$cf_sigwinch
11806 echo "$as_me: failed program was:" >&5
11807 cat "conftest.$ac_ext" >&5
11809 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11811 cf_sigwinch="`expr "$cf_sigwinch" - 1`"
11815 echo "$as_me:11815: result: $cf_cv_fixup_sigwinch" >&5
11816 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
11818 if test "$cf_cv_fixup_sigwinch" != unknown ; then
11819 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
11823 # Checks for CODESET support.
11825 echo "$as_me:11825: checking for nl_langinfo and CODESET" >&5
11826 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11827 if test "${am_cv_langinfo_codeset+set}" = set; then
11828 echo $ECHO_N "(cached) $ECHO_C" >&6
11830 cat >"conftest.$ac_ext" <<_ACEOF
11831 #line 11831 "configure"
11832 #include "confdefs.h"
11833 #include <langinfo.h>
11837 char* cs = nl_langinfo(CODESET); (void)cs
11842 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
11843 if { (eval echo "$as_me:11843: \"$ac_link\"") >&5
11844 (eval $ac_link) 2>&5
11846 echo "$as_me:11846: \$? = $ac_status" >&5
11847 (exit "$ac_status"); } &&
11848 { ac_try='test -s "conftest$ac_exeext"'
11849 { (eval echo "$as_me:11849: \"$ac_try\"") >&5
11850 (eval $ac_try) 2>&5
11852 echo "$as_me:11852: \$? = $ac_status" >&5
11853 (exit "$ac_status"); }; }; then
11854 am_cv_langinfo_codeset=yes
11856 echo "$as_me: failed program was:" >&5
11857 cat "conftest.$ac_ext" >&5
11858 am_cv_langinfo_codeset=no
11860 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
11863 echo "$as_me:11863: result: $am_cv_langinfo_codeset" >&5
11864 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11865 if test "$am_cv_langinfo_codeset" = yes; then
11867 cat >>confdefs.h <<\EOF
11868 #define HAVE_LANGINFO_CODESET 1
11873 # use these variables to work around a defect in gcc's fixincludes.
11874 NCURSES_OK_WCHAR_T=
11877 echo "$as_me:11877: checking if you want wide-character code" >&5
11878 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
11880 # Check whether --enable-widec or --disable-widec was given.
11881 if test "${enable_widec+set}" = set; then
11882 enableval="$enable_widec"
11883 with_widec=$enableval
11887 echo "$as_me:11887: result: $with_widec" >&5
11888 echo "${ECHO_T}$with_widec" >&6
11890 NCURSES_WCWIDTH_GRAPHICS=1
11892 if test "x$with_widec" = xyes ; then
11893 if test "x$disable_lib_suffixes" = xno ; then
11894 LIB_SUFFIX="w${LIB_SUFFIX}"
11897 cat >>confdefs.h <<\EOF
11898 #define USE_WIDEC_SUPPORT 1
11901 cat >>confdefs.h <<\EOF
11902 #define NCURSES_WIDECHAR 1
11910 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11911 echo "$as_me:11911: checking for $ac_header" >&5
11912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11914 echo $ECHO_N "(cached) $ECHO_C" >&6
11916 cat >"conftest.$ac_ext" <<_ACEOF
11917 #line 11917 "configure"
11918 #include "confdefs.h"
11919 #include <$ac_header>
11921 if { (eval echo "$as_me:11921: \"$ac_cpp "conftest.$ac_ext"\"") >&5
11922 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
11924 $EGREP -v '^ *\+' conftest.er1 >conftest.err
11926 cat conftest.err >&5
11927 echo "$as_me:11927: \$? = $ac_status" >&5
11928 (exit "$ac_status"); } >/dev/null; then
11929 if test -s conftest.err; then
11930 ac_cpp_err=$ac_c_preproc_warn_flag
11937 if test -z "$ac_cpp_err"; then
11938 eval "$as_ac_Header=yes"
11940 echo "$as_me: failed program was:" >&5
11941 cat "conftest.$ac_ext" >&5
11942 eval "$as_ac_Header=no"
11944 rm -f conftest.err "conftest.$ac_ext"
11946 echo "$as_me:11946: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
11947 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
11948 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
11949 cat >>confdefs.h <<EOF
11950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11956 echo "$as_me:11956: checking if wchar.h can be used as is" >&5
11957 echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6
11958 if test "${cf_cv_wchar_h_okay+set}" = set; then
11959 echo $ECHO_N "(cached) $ECHO_C" >&6
11962 cat >"conftest.$ac_ext" <<_ACEOF
11963 #line 11963 "configure"
11964 #include "confdefs.h"
11966 #include <stdlib.h>
11967 #ifdef HAVE_WCHAR_H
11970 #ifdef HAVE_WCTYPE_H
11971 #include <wctype.h>
11979 int bar = iswpunct(foo)
11984 rm -f "conftest.$ac_objext"
11985 if { (eval echo "$as_me:11985: \"$ac_compile\"") >&5
11986 (eval $ac_compile) 2>&5
11988 echo "$as_me:11988: \$? = $ac_status" >&5
11989 (exit "$ac_status"); } &&
11990 { ac_try='test -s "conftest.$ac_objext"'
11991 { (eval echo "$as_me:11991: \"$ac_try\"") >&5
11992 (eval $ac_try) 2>&5
11994 echo "$as_me:11994: \$? = $ac_status" >&5
11995 (exit "$ac_status"); }; }; then
11996 cf_cv_wchar_h_okay=yes
11998 echo "$as_me: failed program was:" >&5
11999 cat "conftest.$ac_ext" >&5
12000 cf_cv_wchar_h_okay=no
12002 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12004 echo "$as_me:12004: result: $cf_cv_wchar_h_okay" >&5
12005 echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6
12007 if test "$cf_cv_wchar_h_okay" = no
12010 echo "$as_me:12010: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
12011 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
12012 cat >"conftest.$ac_ext" <<_ACEOF
12013 #line 12013 "configure"
12014 #include "confdefs.h"
12015 #include <sys/types.h>
12021 #ifndef _XOPEN_SOURCE_EXTENDED
12028 rm -f "conftest.$ac_objext"
12029 if { (eval echo "$as_me:12029: \"$ac_compile\"") >&5
12030 (eval $ac_compile) 2>&5
12032 echo "$as_me:12032: \$? = $ac_status" >&5
12033 (exit "$ac_status"); } &&
12034 { ac_try='test -s "conftest.$ac_objext"'
12035 { (eval echo "$as_me:12035: \"$ac_try\"") >&5
12036 (eval $ac_try) 2>&5
12038 echo "$as_me:12038: \$? = $ac_status" >&5
12039 (exit "$ac_status"); }; }; then
12042 echo "$as_me: failed program was:" >&5
12043 cat "conftest.$ac_ext" >&5
12046 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12047 echo "$as_me:12047: result: $cf_result" >&5
12048 echo "${ECHO_T}$cf_result" >&6
12050 if test "$cf_result" = yes ; then
12051 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
12052 elif test "x" != "x" ; then
12053 echo "$as_me:12053: checking checking for compatible value versus " >&5
12054 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
12055 cat >"conftest.$ac_ext" <<_ACEOF
12056 #line 12056 "configure"
12057 #include "confdefs.h"
12058 #include <sys/types.h>
12064 #if _XOPEN_SOURCE_EXTENDED- < 0
12071 rm -f "conftest.$ac_objext"
12072 if { (eval echo "$as_me:12072: \"$ac_compile\"") >&5
12073 (eval $ac_compile) 2>&5
12075 echo "$as_me:12075: \$? = $ac_status" >&5
12076 (exit "$ac_status"); } &&
12077 { ac_try='test -s "conftest.$ac_objext"'
12078 { (eval echo "$as_me:12078: \"$ac_try\"") >&5
12079 (eval $ac_try) 2>&5
12081 echo "$as_me:12081: \$? = $ac_status" >&5
12082 (exit "$ac_status"); }; }; then
12085 echo "$as_me: failed program was:" >&5
12086 cat "conftest.$ac_ext" >&5
12089 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12090 echo "$as_me:12090: result: $cf_result" >&5
12091 echo "${ECHO_T}$cf_result" >&6
12092 if test "$cf_result" = no ; then
12093 # perhaps we can override it - try...
12094 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
12100 echo "$as_me:12100: checking if wcwidth agrees graphics are single-width" >&5
12101 echo $ECHO_N "checking if wcwidth agrees graphics are single-width... $ECHO_C" >&6
12102 if test "${cf_cv_wcwidth_graphics+set}" = set; then
12103 echo $ECHO_N "(cached) $ECHO_C" >&6
12106 cat >conftest.in <<CF_EOF
12108 0x250c upper left corner
12109 0x2514 lower left corner
12110 0x2510 upper right corner
12111 0x2518 lower right corner
12112 0x251c tee pointing left
12113 0x2524 tee pointing right
12114 0x2534 tee pointing up
12115 0x252c tee pointing down
12116 0x2500 horizontal line
12117 0x2502 vertical line
12118 0x253c large plus or crossover
12122 0x2592 checker board (stipple)
12123 0x00b0 degree symbol
12126 - Teletype 5410v1 symbols
12127 0x2190 arrow pointing left
12128 0x2192 arrow pointing right
12129 0x2193 arrow pointing down
12130 0x2191 arrow pointing up
12131 0x2592 board of squares
12132 0x2603 lantern symbol
12133 0x25ae solid square block
12134 - these defaults were invented for ncurses
12137 0x2264 less-than-or-equal-to
12138 0x2265 greater-than-or-equal-to
12141 0x00a3 pound-sterling symbol
12142 - thick-line-drawing
12143 0x250f upper left corner
12144 0x2517 lower left corner
12145 0x2513 upper right corner
12146 0x251b lower right corner
12147 0x2523 tee pointing left
12148 0x252b tee pointing right
12149 0x253b tee pointing up
12150 0x2533 tee pointing down
12151 0x2501 horizontal line
12152 0x2503 vertical line
12153 0x254b large plus or crossover
12154 - double-line-drawing
12155 0x2554 upper left corner
12156 0x255a lower left corner
12157 0x2557 upper right corner
12158 0x255d lower right corner
12159 0x2563 tee pointing left
12160 0x2560 tee pointing right
12161 0x2569 tee pointing up
12162 0x2566 tee pointing down
12163 0x2550 horizontal line
12164 0x2551 vertical line
12165 0x256c large plus or crossover
12167 if test "$cross_compiling" = yes; then
12168 cf_cv_wcwidth_graphics=unknown
12170 cat >"conftest.$ac_ext" <<_ACEOF
12171 #line 12171 "configure"
12172 #include "confdefs.h"
12174 #include <locale.h>
12185 char buffer[MY_LEN + 1];
12186 char notes[MY_LEN + 1];
12190 if (setlocale(LC_ALL, "en_US.UTF8") ||
12191 setlocale(LC_ALL, "en_US.UTF-8") ||
12192 setlocale(LC_ALL, "en_US.utf8") ||
12193 setlocale(LC_ALL, "en_US.utf-8")) {
12194 if ((fp = fopen("conftest.in", "r")) != 0) {
12195 while (fgets(buffer, MY_LEN, fp) != 0) {
12196 if (*buffer == '-') {
12197 fprintf(stderr, "\\t%s", buffer);
12198 } else if (sscanf(buffer, "%x %s", &value, notes) == 2) {
12200 if (wcwidth(value) == 1)
12202 fprintf(stderr, "%d\\t%s", wcwidth(value), buffer);
12204 fprintf(stderr, "?\\t%s", buffer);
12209 fprintf(stderr, "%d/%d passed wcwidth/graphics check\\n", passed, totals);
12210 return (totals == passed) ? 0 : 1;
12214 rm -f "conftest$ac_exeext"
12215 if { (eval echo "$as_me:12215: \"$ac_link\"") >&5
12216 (eval $ac_link) 2>&5
12218 echo "$as_me:12218: \$? = $ac_status" >&5
12219 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
12220 { (eval echo "$as_me:12220: \"$ac_try\"") >&5
12221 (eval $ac_try) 2>&5
12223 echo "$as_me:12223: \$? = $ac_status" >&5
12224 (exit "$ac_status"); }; }; then
12225 cf_cv_wcwidth_graphics=yes
12227 echo "$as_me: program exited with status $ac_status" >&5
12228 echo "$as_me: failed program was:" >&5
12229 cat "conftest.$ac_ext" >&5
12230 cf_cv_wcwidth_graphics=no
12232 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
12236 echo "$as_me:12236: result: $cf_cv_wcwidth_graphics" >&5
12237 echo "${ECHO_T}$cf_cv_wcwidth_graphics" >&6
12239 test "$cf_cv_wcwidth_graphics" = no && NCURSES_WCWIDTH_GRAPHICS=0
12241 # with_overwrite=no
12242 NCURSES_CH_T=cchar_t
12244 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
12246 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12247 echo "$as_me:12247: checking for $ac_func" >&5
12248 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12249 if eval "test \"\${$as_ac_var+set}\" = set"; then
12250 echo $ECHO_N "(cached) $ECHO_C" >&6
12252 cat >"conftest.$ac_ext" <<_ACEOF
12253 #line 12253 "configure"
12254 #include "confdefs.h"
12255 #define $ac_func autoconf_temporary
12256 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
12263 /* We use char because int might match the return type of a gcc2
12264 builtin and then its argument prototype would still apply. */
12265 char $ac_func (void);
12271 /* The GNU C library defines stubs for functions which it implements
12272 to always fail with ENOSYS. Some functions are actually named
12273 something starting with __ and the normal name is an alias. */
12274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12275 #error found stub for $ac_func
12278 return $ac_func ();
12283 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12284 if { (eval echo "$as_me:12284: \"$ac_link\"") >&5
12285 (eval $ac_link) 2>&5
12287 echo "$as_me:12287: \$? = $ac_status" >&5
12288 (exit "$ac_status"); } &&
12289 { ac_try='test -s "conftest$ac_exeext"'
12290 { (eval echo "$as_me:12290: \"$ac_try\"") >&5
12291 (eval $ac_try) 2>&5
12293 echo "$as_me:12293: \$? = $ac_status" >&5
12294 (exit "$ac_status"); }; }; then
12295 eval "$as_ac_var=yes"
12297 echo "$as_me: failed program was:" >&5
12298 cat "conftest.$ac_ext" >&5
12299 eval "$as_ac_var=no"
12301 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12303 echo "$as_me:12303: result: `eval echo '${'"$as_ac_var"'}'`" >&5
12304 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
12305 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
12306 cat >>confdefs.h <<EOF
12307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12313 if test "x$ac_cv_func_putwc" != xyes ; then
12315 for ac_header in wchar.h
12317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12318 echo "$as_me:12318: checking for $ac_header" >&5
12319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12321 echo $ECHO_N "(cached) $ECHO_C" >&6
12323 cat >"conftest.$ac_ext" <<_ACEOF
12324 #line 12324 "configure"
12325 #include "confdefs.h"
12326 #include <$ac_header>
12328 if { (eval echo "$as_me:12328: \"$ac_cpp "conftest.$ac_ext"\"") >&5
12329 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
12331 $EGREP -v '^ *\+' conftest.er1 >conftest.err
12333 cat conftest.err >&5
12334 echo "$as_me:12334: \$? = $ac_status" >&5
12335 (exit "$ac_status"); } >/dev/null; then
12336 if test -s conftest.err; then
12337 ac_cpp_err=$ac_c_preproc_warn_flag
12344 if test -z "$ac_cpp_err"; then
12345 eval "$as_ac_Header=yes"
12347 echo "$as_me: failed program was:" >&5
12348 cat "conftest.$ac_ext" >&5
12349 eval "$as_ac_Header=no"
12351 rm -f conftest.err "conftest.$ac_ext"
12353 echo "$as_me:12353: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
12354 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
12355 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
12356 cat >>confdefs.h <<EOF
12357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12363 echo "$as_me:12363: checking for multibyte character support" >&5
12364 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
12365 if test "${cf_cv_utf8_lib+set}" = set; then
12366 echo $ECHO_N "(cached) $ECHO_C" >&6
12369 cf_save_LIBS="$LIBS"
12370 cat >"conftest.$ac_ext" <<_ACEOF
12371 #line 12371 "configure"
12372 #include "confdefs.h"
12374 #include <stdlib.h>
12376 #ifdef HAVE_WCHAR_H
12388 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12389 if { (eval echo "$as_me:12389: \"$ac_link\"") >&5
12390 (eval $ac_link) 2>&5
12392 echo "$as_me:12392: \$? = $ac_status" >&5
12393 (exit "$ac_status"); } &&
12394 { ac_try='test -s "conftest$ac_exeext"'
12395 { (eval echo "$as_me:12395: \"$ac_try\"") >&5
12396 (eval $ac_try) 2>&5
12398 echo "$as_me:12398: \$? = $ac_status" >&5
12399 (exit "$ac_status"); }; }; then
12402 echo "$as_me: failed program was:" >&5
12403 cat "conftest.$ac_ext" >&5
12405 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
12406 # will be set on completion of the AC_TRY_LINK below.
12407 cf_cv_header_path_utf8=
12408 cf_cv_library_path_utf8=
12410 echo "${as_me:-configure}:12410: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
12412 cf_save_LIBS="$LIBS"
12414 cat >"conftest.$ac_ext" <<_ACEOF
12415 #line 12415 "configure"
12416 #include "confdefs.h"
12418 #include <libutf8.h>
12427 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12428 if { (eval echo "$as_me:12428: \"$ac_link\"") >&5
12429 (eval $ac_link) 2>&5
12431 echo "$as_me:12431: \$? = $ac_status" >&5
12432 (exit "$ac_status"); } &&
12433 { ac_try='test -s "conftest$ac_exeext"'
12434 { (eval echo "$as_me:12434: \"$ac_try\"") >&5
12435 (eval $ac_try) 2>&5
12437 echo "$as_me:12437: \$? = $ac_status" >&5
12438 (exit "$ac_status"); }; }; then
12440 cf_cv_find_linkage_utf8=yes
12441 cf_cv_header_path_utf8=/usr/include
12442 cf_cv_library_path_utf8=/usr/lib
12445 echo "$as_me: failed program was:" >&5
12446 cat "conftest.$ac_ext" >&5
12448 LIBS="-lutf8 $cf_save_LIBS"
12450 cat >"conftest.$ac_ext" <<_ACEOF
12451 #line 12451 "configure"
12452 #include "confdefs.h"
12454 #include <libutf8.h>
12463 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12464 if { (eval echo "$as_me:12464: \"$ac_link\"") >&5
12465 (eval $ac_link) 2>&5
12467 echo "$as_me:12467: \$? = $ac_status" >&5
12468 (exit "$ac_status"); } &&
12469 { ac_try='test -s "conftest$ac_exeext"'
12470 { (eval echo "$as_me:12470: \"$ac_try\"") >&5
12471 (eval $ac_try) 2>&5
12473 echo "$as_me:12473: \$? = $ac_status" >&5
12474 (exit "$ac_status"); }; }; then
12476 cf_cv_find_linkage_utf8=yes
12477 cf_cv_header_path_utf8=/usr/include
12478 cf_cv_library_path_utf8=/usr/lib
12479 cf_cv_library_file_utf8="-lutf8"
12482 echo "$as_me: failed program was:" >&5
12483 cat "conftest.$ac_ext" >&5
12485 cf_cv_find_linkage_utf8=no
12486 LIBS="$cf_save_LIBS"
12488 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
12490 echo "${as_me:-configure}:12490: testing find linkage for utf8 library ..." 1>&5
12492 echo "${as_me:-configure}:12492: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
12494 cf_save_CPPFLAGS="$CPPFLAGS"
12495 cf_test_CPPFLAGS="$CPPFLAGS"
12499 # collect the current set of include-directories from compiler flags
12500 cf_header_path_list=""
12501 if test -n "${CFLAGS}${CPPFLAGS}" ; then
12502 for cf_header_path in $CPPFLAGS $CFLAGS
12504 case "$cf_header_path" in
12506 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
12508 test "x$cf_header_path" != "xNONE" && \
12509 test -d "$cf_header_path" && \
12511 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
12512 test -d "$cf_header_path/include" && cf_search="$cf_search $cf_header_path/include"
12513 test -d "$cf_header_path/include/utf8" && cf_search="$cf_search $cf_header_path/include/utf8"
12514 test -d "$cf_header_path/include/utf8/include" && cf_search="$cf_search $cf_header_path/include/utf8/include"
12515 test -d "$cf_header_path/utf8/include" && cf_search="$cf_search $cf_header_path/utf8/include"
12516 test -d "$cf_header_path/utf8/include/utf8" && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
12519 cf_header_path_list="$cf_header_path_list $cf_search"
12525 # add the variations for the package we are looking for
12529 test "x$prefix" != "xNONE" && \
12530 test -d "$prefix" && \
12532 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
12533 test -d "$prefix/include" && cf_search="$cf_search $prefix/include"
12534 test -d "$prefix/include/utf8" && cf_search="$cf_search $prefix/include/utf8"
12535 test -d "$prefix/include/utf8/include" && cf_search="$cf_search $prefix/include/utf8/include"
12536 test -d "$prefix/utf8/include" && cf_search="$cf_search $prefix/utf8/include"
12537 test -d "$prefix/utf8/include/utf8" && cf_search="$cf_search $prefix/utf8/include/utf8"
12540 for cf_subdir_prefix in \
12549 test "x$cf_subdir_prefix" != "x$prefix" && \
12550 test -d "$cf_subdir_prefix" && \
12551 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
12552 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
12553 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
12554 test -d "$cf_subdir_prefix/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
12555 test -d "$cf_subdir_prefix/include/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
12556 test -d "$cf_subdir_prefix/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
12557 test -d "$cf_subdir_prefix/utf8/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
12562 test "$includedir" != NONE && \
12563 test "$includedir" != "/usr/include" && \
12564 test -d "$includedir" && {
12565 test -d "$includedir" && cf_search="$cf_search $includedir"
12566 test -d "$includedir/utf8" && cf_search="$cf_search $includedir/utf8"
12569 test "$oldincludedir" != NONE && \
12570 test "$oldincludedir" != "/usr/include" && \
12571 test -d "$oldincludedir" && {
12572 test -d "$oldincludedir" && cf_search="$cf_search $oldincludedir"
12573 test -d "$oldincludedir/utf8" && cf_search="$cf_search $oldincludedir/utf8"
12576 cf_search="$cf_search $cf_header_path_list"
12578 for cf_cv_header_path_utf8 in $cf_search
12580 if test -d "$cf_cv_header_path_utf8" ; then
12581 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
12583 echo "${as_me:-configure}:12583: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
12585 CPPFLAGS="$cf_save_CPPFLAGS"
12587 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12588 CPPFLAGS="${CPPFLAGS}-I$cf_cv_header_path_utf8"
12590 cat >"conftest.$ac_ext" <<_ACEOF
12591 #line 12591 "configure"
12592 #include "confdefs.h"
12594 #include <libutf8.h>
12603 rm -f "conftest.$ac_objext"
12604 if { (eval echo "$as_me:12604: \"$ac_compile\"") >&5
12605 (eval $ac_compile) 2>&5
12607 echo "$as_me:12607: \$? = $ac_status" >&5
12608 (exit "$ac_status"); } &&
12609 { ac_try='test -s "conftest.$ac_objext"'
12610 { (eval echo "$as_me:12610: \"$ac_try\"") >&5
12611 (eval $ac_try) 2>&5
12613 echo "$as_me:12613: \$? = $ac_status" >&5
12614 (exit "$ac_status"); }; }; then
12616 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
12618 echo "${as_me:-configure}:12618: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
12620 cf_cv_find_linkage_utf8=maybe
12621 cf_test_CPPFLAGS="$CPPFLAGS"
12624 echo "$as_me: failed program was:" >&5
12625 cat "conftest.$ac_ext" >&5
12627 CPPFLAGS="$cf_save_CPPFLAGS"
12630 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12634 if test "$cf_cv_find_linkage_utf8" = maybe ; then
12636 echo "${as_me:-configure}:12636: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
12638 cf_save_LIBS="$LIBS"
12639 cf_save_LDFLAGS="$LDFLAGS"
12641 if test "$cf_cv_find_linkage_utf8" != yes ; then
12644 cf_library_path_list=""
12645 if test -n "${LDFLAGS}${LIBS}" ; then
12646 for cf_library_path in $LDFLAGS $LIBS
12648 case "$cf_library_path" in
12650 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
12652 test "x$cf_library_path" != "xNONE" && \
12653 test -d "$cf_library_path" && \
12655 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
12656 test -d "$cf_library_path/lib" && cf_search="$cf_search $cf_library_path/lib"
12657 test -d "$cf_library_path/lib/utf8" && cf_search="$cf_search $cf_library_path/lib/utf8"
12658 test -d "$cf_library_path/lib/utf8/lib" && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
12659 test -d "$cf_library_path/utf8/lib" && cf_search="$cf_search $cf_library_path/utf8/lib"
12660 test -d "$cf_library_path/utf8/lib/utf8" && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
12663 cf_library_path_list="$cf_library_path_list $cf_search"
12671 test "x$prefix" != "xNONE" && \
12672 test -d "$prefix" && \
12674 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
12675 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
12676 test -d "$prefix/lib/utf8" && cf_search="$cf_search $prefix/lib/utf8"
12677 test -d "$prefix/lib/utf8/lib" && cf_search="$cf_search $prefix/lib/utf8/lib"
12678 test -d "$prefix/utf8/lib" && cf_search="$cf_search $prefix/utf8/lib"
12679 test -d "$prefix/utf8/lib/utf8" && cf_search="$cf_search $prefix/utf8/lib/utf8"
12682 for cf_subdir_prefix in \
12691 test "x$cf_subdir_prefix" != "x$prefix" && \
12692 test -d "$cf_subdir_prefix" && \
12693 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
12694 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
12695 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
12696 test -d "$cf_subdir_prefix/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
12697 test -d "$cf_subdir_prefix/lib/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
12698 test -d "$cf_subdir_prefix/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
12699 test -d "$cf_subdir_prefix/utf8/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
12704 cf_search="$cf_library_path_list $cf_search"
12706 for cf_cv_library_path_utf8 in $cf_search
12708 if test -d "$cf_cv_library_path_utf8" ; then
12709 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
12711 echo "${as_me:-configure}:12711: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
12713 CPPFLAGS="$cf_test_CPPFLAGS"
12714 LIBS="-lutf8 $cf_save_LIBS"
12715 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
12716 cat >"conftest.$ac_ext" <<_ACEOF
12717 #line 12717 "configure"
12718 #include "confdefs.h"
12720 #include <libutf8.h>
12729 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12730 if { (eval echo "$as_me:12730: \"$ac_link\"") >&5
12731 (eval $ac_link) 2>&5
12733 echo "$as_me:12733: \$? = $ac_status" >&5
12734 (exit "$ac_status"); } &&
12735 { ac_try='test -s "conftest$ac_exeext"'
12736 { (eval echo "$as_me:12736: \"$ac_try\"") >&5
12737 (eval $ac_try) 2>&5
12739 echo "$as_me:12739: \$? = $ac_status" >&5
12740 (exit "$ac_status"); }; }; then
12742 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
12744 echo "${as_me:-configure}:12744: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
12746 cf_cv_find_linkage_utf8=yes
12747 cf_cv_library_file_utf8="-lutf8"
12750 echo "$as_me: failed program was:" >&5
12751 cat "conftest.$ac_ext" >&5
12753 CPPFLAGS="$cf_save_CPPFLAGS"
12754 LIBS="$cf_save_LIBS"
12755 LDFLAGS="$cf_save_LDFLAGS"
12758 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12761 CPPFLAGS="$cf_save_CPPFLAGS"
12762 LDFLAGS="$cf_save_LDFLAGS"
12766 cf_cv_find_linkage_utf8=no
12770 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12773 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12775 LIBS="$cf_save_LIBS"
12777 if test "$cf_cv_find_linkage_utf8" = yes ; then
12778 cf_cv_utf8_lib=add-on
12784 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12786 echo "$as_me:12786: result: $cf_cv_utf8_lib" >&5
12787 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
12789 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
12790 # ncurses/ncursesw:
12791 if test "$cf_cv_utf8_lib" = "add-on" ; then
12793 cat >>confdefs.h <<\EOF
12794 #define HAVE_LIBUTF8_H 1
12797 if test -n "$cf_cv_header_path_utf8" ; then
12798 for cf_add_incdir in $cf_cv_header_path_utf8
12800 while test "$cf_add_incdir" != /usr/include
12802 if test -d "$cf_add_incdir"
12805 if test -n "$CFLAGS$CPPFLAGS" ; then
12806 # a loop is needed to ensure we can add subdirs of existing dirs
12807 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
12808 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
12809 cf_have_incdir=yes; break
12814 if test "$cf_have_incdir" = no ; then
12815 if test "$cf_add_incdir" = /usr/local/include ; then
12816 if test "$GCC" = yes
12818 cf_save_CPPFLAGS=$CPPFLAGS
12820 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12821 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
12823 cat >"conftest.$ac_ext" <<_ACEOF
12824 #line 12824 "configure"
12825 #include "confdefs.h"
12835 rm -f "conftest.$ac_objext"
12836 if { (eval echo "$as_me:12836: \"$ac_compile\"") >&5
12837 (eval $ac_compile) 2>&5
12839 echo "$as_me:12839: \$? = $ac_status" >&5
12840 (exit "$ac_status"); } &&
12841 { ac_try='test -s "conftest.$ac_objext"'
12842 { (eval echo "$as_me:12842: \"$ac_try\"") >&5
12843 (eval $ac_try) 2>&5
12845 echo "$as_me:12845: \$? = $ac_status" >&5
12846 (exit "$ac_status"); }; }; then
12849 echo "$as_me: failed program was:" >&5
12850 cat "conftest.$ac_ext" >&5
12853 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12854 CPPFLAGS=$cf_save_CPPFLAGS
12859 if test "$cf_have_incdir" = no ; then
12860 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
12862 echo "${as_me:-configure}:12862: testing adding $cf_add_incdir to include-path ..." 1>&5
12864 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
12866 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
12867 test "$cf_top_incdir" = "$cf_add_incdir" && break
12868 cf_add_incdir="$cf_top_incdir"
12879 if test -n "$cf_cv_library_path_utf8" ; then
12880 for cf_add_libdir in $cf_cv_library_path_utf8
12882 if test "$cf_add_libdir" = /usr/lib ; then
12884 elif test -d "$cf_add_libdir"
12887 if test -n "$LDFLAGS$LIBS" ; then
12888 # a loop is needed to ensure we can add subdirs of existing dirs
12889 for cf_test_libdir in $LDFLAGS $LIBS ; do
12890 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
12891 cf_have_libdir=yes; break
12895 if test "$cf_have_libdir" = no ; then
12896 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
12898 echo "${as_me:-configure}:12898: testing adding $cf_add_libdir to library-path ..." 1>&5
12900 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
12906 cf_add_libs="$LIBS"
12909 for cf_add_1lib in $cf_cv_library_file_utf8; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
12910 # filter duplicates
12911 for cf_add_1lib in $cf_add_0lib; do
12912 for cf_add_2lib in $cf_add_libs; do
12913 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
12918 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
12920 LIBS="$cf_add_libs"
12924 if test "$cf_cv_utf8_lib" != no ; then
12929 # This is needed on Tru64 5.0 to declare mbstate_t
12930 echo "$as_me:12930: checking if we must include wchar.h to declare mbstate_t" >&5
12931 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
12932 if test "${cf_cv_mbstate_t+set}" = set; then
12933 echo $ECHO_N "(cached) $ECHO_C" >&6
12936 cat >"conftest.$ac_ext" <<_ACEOF
12937 #line 12937 "configure"
12938 #include "confdefs.h"
12940 #include <stdlib.h>
12941 #include <stdarg.h>
12943 #ifdef HAVE_LIBUTF8_H
12944 #include <libutf8.h>
12954 rm -f "conftest.$ac_objext"
12955 if { (eval echo "$as_me:12955: \"$ac_compile\"") >&5
12956 (eval $ac_compile) 2>&5
12958 echo "$as_me:12958: \$? = $ac_status" >&5
12959 (exit "$ac_status"); } &&
12960 { ac_try='test -s "conftest.$ac_objext"'
12961 { (eval echo "$as_me:12961: \"$ac_try\"") >&5
12962 (eval $ac_try) 2>&5
12964 echo "$as_me:12964: \$? = $ac_status" >&5
12965 (exit "$ac_status"); }; }; then
12968 echo "$as_me: failed program was:" >&5
12969 cat "conftest.$ac_ext" >&5
12970 cat >"conftest.$ac_ext" <<_ACEOF
12971 #line 12971 "configure"
12972 #include "confdefs.h"
12974 #include <stdlib.h>
12975 #include <stdarg.h>
12978 #ifdef HAVE_LIBUTF8_H
12979 #include <libutf8.h>
12989 rm -f "conftest.$ac_objext"
12990 if { (eval echo "$as_me:12990: \"$ac_compile\"") >&5
12991 (eval $ac_compile) 2>&5
12993 echo "$as_me:12993: \$? = $ac_status" >&5
12994 (exit "$ac_status"); } &&
12995 { ac_try='test -s "conftest.$ac_objext"'
12996 { (eval echo "$as_me:12996: \"$ac_try\"") >&5
12997 (eval $ac_try) 2>&5
12999 echo "$as_me:12999: \$? = $ac_status" >&5
13000 (exit "$ac_status"); }; }; then
13001 cf_cv_mbstate_t=yes
13003 echo "$as_me: failed program was:" >&5
13004 cat "conftest.$ac_ext" >&5
13005 cf_cv_mbstate_t=unknown
13007 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13009 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13011 echo "$as_me:13011: result: $cf_cv_mbstate_t" >&5
13012 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
13014 if test "$cf_cv_mbstate_t" = yes ; then
13016 cat >>confdefs.h <<\EOF
13017 #define NEED_WCHAR_H 1
13023 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
13024 if test "$cf_cv_mbstate_t" = unknown ; then
13025 NCURSES_MBSTATE_T=1
13028 # This is needed on Tru64 5.0 to declare wchar_t
13029 echo "$as_me:13029: checking if we must include wchar.h to declare wchar_t" >&5
13030 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
13031 if test "${cf_cv_wchar_t+set}" = set; then
13032 echo $ECHO_N "(cached) $ECHO_C" >&6
13035 cat >"conftest.$ac_ext" <<_ACEOF
13036 #line 13036 "configure"
13037 #include "confdefs.h"
13039 #include <stdlib.h>
13040 #include <stdarg.h>
13042 #ifdef HAVE_LIBUTF8_H
13043 #include <libutf8.h>
13053 rm -f "conftest.$ac_objext"
13054 if { (eval echo "$as_me:13054: \"$ac_compile\"") >&5
13055 (eval $ac_compile) 2>&5
13057 echo "$as_me:13057: \$? = $ac_status" >&5
13058 (exit "$ac_status"); } &&
13059 { ac_try='test -s "conftest.$ac_objext"'
13060 { (eval echo "$as_me:13060: \"$ac_try\"") >&5
13061 (eval $ac_try) 2>&5
13063 echo "$as_me:13063: \$? = $ac_status" >&5
13064 (exit "$ac_status"); }; }; then
13067 echo "$as_me: failed program was:" >&5
13068 cat "conftest.$ac_ext" >&5
13069 cat >"conftest.$ac_ext" <<_ACEOF
13070 #line 13070 "configure"
13071 #include "confdefs.h"
13073 #include <stdlib.h>
13074 #include <stdarg.h>
13077 #ifdef HAVE_LIBUTF8_H
13078 #include <libutf8.h>
13088 rm -f "conftest.$ac_objext"
13089 if { (eval echo "$as_me:13089: \"$ac_compile\"") >&5
13090 (eval $ac_compile) 2>&5
13092 echo "$as_me:13092: \$? = $ac_status" >&5
13093 (exit "$ac_status"); } &&
13094 { ac_try='test -s "conftest.$ac_objext"'
13095 { (eval echo "$as_me:13095: \"$ac_try\"") >&5
13096 (eval $ac_try) 2>&5
13098 echo "$as_me:13098: \$? = $ac_status" >&5
13099 (exit "$ac_status"); }; }; then
13102 echo "$as_me: failed program was:" >&5
13103 cat "conftest.$ac_ext" >&5
13104 cf_cv_wchar_t=unknown
13106 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13108 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13110 echo "$as_me:13110: result: $cf_cv_wchar_t" >&5
13111 echo "${ECHO_T}$cf_cv_wchar_t" >&6
13113 if test "$cf_cv_wchar_t" = yes ; then
13115 cat >>confdefs.h <<\EOF
13116 #define NEED_WCHAR_H 1
13122 # if we do not find wchar_t in either place, use substitution to provide a fallback.
13123 if test "$cf_cv_wchar_t" = unknown ; then
13127 # if we find wchar_t in either place, use substitution to provide a fallback.
13128 if test "$cf_cv_wchar_t" != unknown ; then
13129 NCURSES_OK_WCHAR_T=1
13132 # This is needed on Tru64 5.0 to declare wint_t
13133 echo "$as_me:13133: checking if we must include wchar.h to declare wint_t" >&5
13134 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
13135 if test "${cf_cv_wint_t+set}" = set; then
13136 echo $ECHO_N "(cached) $ECHO_C" >&6
13139 cat >"conftest.$ac_ext" <<_ACEOF
13140 #line 13140 "configure"
13141 #include "confdefs.h"
13143 #include <stdlib.h>
13144 #include <stdarg.h>
13146 #ifdef HAVE_LIBUTF8_H
13147 #include <libutf8.h>
13157 rm -f "conftest.$ac_objext"
13158 if { (eval echo "$as_me:13158: \"$ac_compile\"") >&5
13159 (eval $ac_compile) 2>&5
13161 echo "$as_me:13161: \$? = $ac_status" >&5
13162 (exit "$ac_status"); } &&
13163 { ac_try='test -s "conftest.$ac_objext"'
13164 { (eval echo "$as_me:13164: \"$ac_try\"") >&5
13165 (eval $ac_try) 2>&5
13167 echo "$as_me:13167: \$? = $ac_status" >&5
13168 (exit "$ac_status"); }; }; then
13171 echo "$as_me: failed program was:" >&5
13172 cat "conftest.$ac_ext" >&5
13173 cat >"conftest.$ac_ext" <<_ACEOF
13174 #line 13174 "configure"
13175 #include "confdefs.h"
13177 #include <stdlib.h>
13178 #include <stdarg.h>
13181 #ifdef HAVE_LIBUTF8_H
13182 #include <libutf8.h>
13192 rm -f "conftest.$ac_objext"
13193 if { (eval echo "$as_me:13193: \"$ac_compile\"") >&5
13194 (eval $ac_compile) 2>&5
13196 echo "$as_me:13196: \$? = $ac_status" >&5
13197 (exit "$ac_status"); } &&
13198 { ac_try='test -s "conftest.$ac_objext"'
13199 { (eval echo "$as_me:13199: \"$ac_try\"") >&5
13200 (eval $ac_try) 2>&5
13202 echo "$as_me:13202: \$? = $ac_status" >&5
13203 (exit "$ac_status"); }; }; then
13206 echo "$as_me: failed program was:" >&5
13207 cat "conftest.$ac_ext" >&5
13208 cf_cv_wint_t=unknown
13210 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13212 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13214 echo "$as_me:13214: result: $cf_cv_wint_t" >&5
13215 echo "${ECHO_T}$cf_cv_wint_t" >&6
13217 if test "$cf_cv_wint_t" = yes ; then
13219 cat >>confdefs.h <<\EOF
13220 #define NEED_WCHAR_H 1
13226 # if we do not find wint_t in either place, use substitution to provide a fallback.
13227 if test "$cf_cv_wint_t" = unknown ; then
13231 # if we find wint_t in either place, use substitution to provide a fallback.
13232 if test "$cf_cv_wint_t" != unknown ; then
13233 NCURSES_OK_WINT_T=1
13236 if test "$NCURSES_MBSTATE_T" != 0; then
13238 cat >>confdefs.h <<\EOF
13239 #define NEED_MBSTATE_T_DEF 1
13245 ### use option --disable-lp64 to allow long chtype
13246 echo "$as_me:13246: checking whether to enable _LP64 definition in curses.h" >&5
13247 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
13249 # Check whether --enable-lp64 or --disable-lp64 was given.
13250 if test "${enable_lp64+set}" = set; then
13251 enableval="$enable_lp64"
13252 with_lp64=$enableval
13254 with_lp64=$cf_dft_with_lp64
13256 echo "$as_me:13256: result: $with_lp64" >&5
13257 echo "${ECHO_T}$with_lp64" >&6
13259 if test "x$with_lp64" = xyes ; then
13260 cf_cv_enable_lp64=1
13262 cf_cv_enable_lp64=0
13265 # Check whether --enable-largefile or --disable-largefile was given.
13266 if test "${enable_largefile+set}" = set; then
13267 enableval="$enable_largefile"
13270 if test "$enable_largefile" != no; then
13272 echo "$as_me:13272: checking for special C compiler options needed for large files" >&5
13273 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
13274 if test "${ac_cv_sys_largefile_CC+set}" = set; then
13275 echo $ECHO_N "(cached) $ECHO_C" >&6
13277 ac_cv_sys_largefile_CC=no
13278 if test "$GCC" != yes; then
13281 # IRIX 6.2 and later do not support large files by default,
13282 # so use the C compiler's -n32 option if that helps.
13283 cat >"conftest.$ac_ext" <<_ACEOF
13284 #line 13284 "configure"
13285 #include "confdefs.h"
13286 #include <sys/types.h>
13287 /* Check that off_t can represent 2**63 - 1 correctly.
13288 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13289 since some C++ compilers masquerading as C compilers
13290 incorrectly reject 9223372036854775807. */
13291 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13292 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13293 && LARGE_OFF_T % 2147483647 == 1)
13303 rm -f "conftest.$ac_objext"
13304 if { (eval echo "$as_me:13304: \"$ac_compile\"") >&5
13305 (eval $ac_compile) 2>&5
13307 echo "$as_me:13307: \$? = $ac_status" >&5
13308 (exit "$ac_status"); } &&
13309 { ac_try='test -s "conftest.$ac_objext"'
13310 { (eval echo "$as_me:13310: \"$ac_try\"") >&5
13311 (eval $ac_try) 2>&5
13313 echo "$as_me:13313: \$? = $ac_status" >&5
13314 (exit "$ac_status"); }; }; then
13317 echo "$as_me: failed program was:" >&5
13318 cat "conftest.$ac_ext" >&5
13320 rm -f "conftest.$ac_objext"
13322 rm -f "conftest.$ac_objext"
13323 if { (eval echo "$as_me:13323: \"$ac_compile\"") >&5
13324 (eval $ac_compile) 2>&5
13326 echo "$as_me:13326: \$? = $ac_status" >&5
13327 (exit "$ac_status"); } &&
13328 { ac_try='test -s "conftest.$ac_objext"'
13329 { (eval echo "$as_me:13329: \"$ac_try\"") >&5
13330 (eval $ac_try) 2>&5
13332 echo "$as_me:13332: \$? = $ac_status" >&5
13333 (exit "$ac_status"); }; }; then
13334 ac_cv_sys_largefile_CC=' -n32'; break
13336 echo "$as_me: failed program was:" >&5
13337 cat "conftest.$ac_ext" >&5
13339 rm -f "conftest.$ac_objext"
13343 rm -f "conftest.$ac_ext"
13346 echo "$as_me:13346: result: $ac_cv_sys_largefile_CC" >&5
13347 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
13348 if test "$ac_cv_sys_largefile_CC" != no; then
13349 CC=$CC$ac_cv_sys_largefile_CC
13352 echo "$as_me:13352: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13353 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
13354 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
13355 echo $ECHO_N "(cached) $ECHO_C" >&6
13358 ac_cv_sys_file_offset_bits=no
13359 cat >"conftest.$ac_ext" <<_ACEOF
13360 #line 13360 "configure"
13361 #include "confdefs.h"
13362 #include <sys/types.h>
13363 /* Check that off_t can represent 2**63 - 1 correctly.
13364 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13365 since some C++ compilers masquerading as C compilers
13366 incorrectly reject 9223372036854775807. */
13367 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13368 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13369 && LARGE_OFF_T % 2147483647 == 1)
13379 rm -f "conftest.$ac_objext"
13380 if { (eval echo "$as_me:13380: \"$ac_compile\"") >&5
13381 (eval $ac_compile) 2>&5
13383 echo "$as_me:13383: \$? = $ac_status" >&5
13384 (exit "$ac_status"); } &&
13385 { ac_try='test -s "conftest.$ac_objext"'
13386 { (eval echo "$as_me:13386: \"$ac_try\"") >&5
13387 (eval $ac_try) 2>&5
13389 echo "$as_me:13389: \$? = $ac_status" >&5
13390 (exit "$ac_status"); }; }; then
13393 echo "$as_me: failed program was:" >&5
13394 cat "conftest.$ac_ext" >&5
13396 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13397 cat >"conftest.$ac_ext" <<_ACEOF
13398 #line 13398 "configure"
13399 #include "confdefs.h"
13400 #define _FILE_OFFSET_BITS 64
13401 #include <sys/types.h>
13402 /* Check that off_t can represent 2**63 - 1 correctly.
13403 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13404 since some C++ compilers masquerading as C compilers
13405 incorrectly reject 9223372036854775807. */
13406 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13407 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13408 && LARGE_OFF_T % 2147483647 == 1)
13418 rm -f "conftest.$ac_objext"
13419 if { (eval echo "$as_me:13419: \"$ac_compile\"") >&5
13420 (eval $ac_compile) 2>&5
13422 echo "$as_me:13422: \$? = $ac_status" >&5
13423 (exit "$ac_status"); } &&
13424 { ac_try='test -s "conftest.$ac_objext"'
13425 { (eval echo "$as_me:13425: \"$ac_try\"") >&5
13426 (eval $ac_try) 2>&5
13428 echo "$as_me:13428: \$? = $ac_status" >&5
13429 (exit "$ac_status"); }; }; then
13430 ac_cv_sys_file_offset_bits=64; break
13432 echo "$as_me: failed program was:" >&5
13433 cat "conftest.$ac_ext" >&5
13435 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13439 echo "$as_me:13439: result: $ac_cv_sys_file_offset_bits" >&5
13440 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
13441 if test "$ac_cv_sys_file_offset_bits" != no; then
13443 cat >>confdefs.h <<EOF
13444 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13449 echo "$as_me:13449: checking for _LARGE_FILES value needed for large files" >&5
13450 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
13451 if test "${ac_cv_sys_large_files+set}" = set; then
13452 echo $ECHO_N "(cached) $ECHO_C" >&6
13455 ac_cv_sys_large_files=no
13456 cat >"conftest.$ac_ext" <<_ACEOF
13457 #line 13457 "configure"
13458 #include "confdefs.h"
13459 #include <sys/types.h>
13460 /* Check that off_t can represent 2**63 - 1 correctly.
13461 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13462 since some C++ compilers masquerading as C compilers
13463 incorrectly reject 9223372036854775807. */
13464 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13465 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13466 && LARGE_OFF_T % 2147483647 == 1)
13476 rm -f "conftest.$ac_objext"
13477 if { (eval echo "$as_me:13477: \"$ac_compile\"") >&5
13478 (eval $ac_compile) 2>&5
13480 echo "$as_me:13480: \$? = $ac_status" >&5
13481 (exit "$ac_status"); } &&
13482 { ac_try='test -s "conftest.$ac_objext"'
13483 { (eval echo "$as_me:13483: \"$ac_try\"") >&5
13484 (eval $ac_try) 2>&5
13486 echo "$as_me:13486: \$? = $ac_status" >&5
13487 (exit "$ac_status"); }; }; then
13490 echo "$as_me: failed program was:" >&5
13491 cat "conftest.$ac_ext" >&5
13493 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13494 cat >"conftest.$ac_ext" <<_ACEOF
13495 #line 13495 "configure"
13496 #include "confdefs.h"
13497 #define _LARGE_FILES 1
13498 #include <sys/types.h>
13499 /* Check that off_t can represent 2**63 - 1 correctly.
13500 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13501 since some C++ compilers masquerading as C compilers
13502 incorrectly reject 9223372036854775807. */
13503 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13504 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13505 && LARGE_OFF_T % 2147483647 == 1)
13515 rm -f "conftest.$ac_objext"
13516 if { (eval echo "$as_me:13516: \"$ac_compile\"") >&5
13517 (eval $ac_compile) 2>&5
13519 echo "$as_me:13519: \$? = $ac_status" >&5
13520 (exit "$ac_status"); } &&
13521 { ac_try='test -s "conftest.$ac_objext"'
13522 { (eval echo "$as_me:13522: \"$ac_try\"") >&5
13523 (eval $ac_try) 2>&5
13525 echo "$as_me:13525: \$? = $ac_status" >&5
13526 (exit "$ac_status"); }; }; then
13527 ac_cv_sys_large_files=1; break
13529 echo "$as_me: failed program was:" >&5
13530 cat "conftest.$ac_ext" >&5
13532 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13536 echo "$as_me:13536: result: $ac_cv_sys_large_files" >&5
13537 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
13538 if test "$ac_cv_sys_large_files" != no; then
13540 cat >>confdefs.h <<EOF
13541 #define _LARGE_FILES $ac_cv_sys_large_files
13548 if test "$enable_largefile" != no ; then
13549 echo "$as_me:13549: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13550 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13551 if test "${ac_cv_sys_largefile_source+set}" = set; then
13552 echo $ECHO_N "(cached) $ECHO_C" >&6
13555 ac_cv_sys_largefile_source=no
13556 cat >"conftest.$ac_ext" <<_ACEOF
13557 #line 13557 "configure"
13558 #include "confdefs.h"
13568 rm -f "conftest.$ac_objext"
13569 if { (eval echo "$as_me:13569: \"$ac_compile\"") >&5
13570 (eval $ac_compile) 2>&5
13572 echo "$as_me:13572: \$? = $ac_status" >&5
13573 (exit "$ac_status"); } &&
13574 { ac_try='test -s "conftest.$ac_objext"'
13575 { (eval echo "$as_me:13575: \"$ac_try\"") >&5
13576 (eval $ac_try) 2>&5
13578 echo "$as_me:13578: \$? = $ac_status" >&5
13579 (exit "$ac_status"); }; }; then
13582 echo "$as_me: failed program was:" >&5
13583 cat "conftest.$ac_ext" >&5
13585 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13586 cat >"conftest.$ac_ext" <<_ACEOF
13587 #line 13587 "configure"
13588 #include "confdefs.h"
13589 #define _LARGEFILE_SOURCE 1
13599 rm -f "conftest.$ac_objext"
13600 if { (eval echo "$as_me:13600: \"$ac_compile\"") >&5
13601 (eval $ac_compile) 2>&5
13603 echo "$as_me:13603: \$? = $ac_status" >&5
13604 (exit "$ac_status"); } &&
13605 { ac_try='test -s "conftest.$ac_objext"'
13606 { (eval echo "$as_me:13606: \"$ac_try\"") >&5
13607 (eval $ac_try) 2>&5
13609 echo "$as_me:13609: \$? = $ac_status" >&5
13610 (exit "$ac_status"); }; }; then
13611 ac_cv_sys_largefile_source=1; break
13613 echo "$as_me: failed program was:" >&5
13614 cat "conftest.$ac_ext" >&5
13616 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13620 echo "$as_me:13620: result: $ac_cv_sys_largefile_source" >&5
13621 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13622 if test "$ac_cv_sys_largefile_source" != no; then
13624 cat >>confdefs.h <<EOF
13625 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13631 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13632 # in glibc 2.1.3, but that breaks too many other things.
13633 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13634 echo "$as_me:13634: checking for fseeko" >&5
13635 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13636 if test "${ac_cv_func_fseeko+set}" = set; then
13637 echo $ECHO_N "(cached) $ECHO_C" >&6
13639 cat >"conftest.$ac_ext" <<_ACEOF
13640 #line 13640 "configure"
13641 #include "confdefs.h"
13646 return fseeko && fseeko (stdin, 0, 0);
13651 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13652 if { (eval echo "$as_me:13652: \"$ac_link\"") >&5
13653 (eval $ac_link) 2>&5
13655 echo "$as_me:13655: \$? = $ac_status" >&5
13656 (exit "$ac_status"); } &&
13657 { ac_try='test -s "conftest$ac_exeext"'
13658 { (eval echo "$as_me:13658: \"$ac_try\"") >&5
13659 (eval $ac_try) 2>&5
13661 echo "$as_me:13661: \$? = $ac_status" >&5
13662 (exit "$ac_status"); }; }; then
13663 ac_cv_func_fseeko=yes
13665 echo "$as_me: failed program was:" >&5
13666 cat "conftest.$ac_ext" >&5
13667 ac_cv_func_fseeko=no
13669 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13671 echo "$as_me:13671: result: $ac_cv_func_fseeko" >&5
13672 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13673 if test $ac_cv_func_fseeko = yes; then
13675 cat >>confdefs.h <<\EOF
13676 #define HAVE_FSEEKO 1
13681 # Normally we would collect these definitions in the config.h,
13682 # but (like _XOPEN_SOURCE), some environments rely on having these
13683 # defined before any of the system headers are included. Another
13684 # case comes up with C++, e.g., on AIX the compiler compiles the
13685 # header files by themselves before looking at the body files it is
13686 # told to compile. For ncurses, those header files do not include
13688 if test "$ac_cv_sys_large_files" != no
13691 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13692 CPPFLAGS="${CPPFLAGS}-D_LARGE_FILES"
13695 if test "$ac_cv_sys_largefile_source" != no
13698 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13699 CPPFLAGS="${CPPFLAGS}-D_LARGEFILE_SOURCE"
13702 if test "$ac_cv_sys_file_offset_bits" != no
13705 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13706 CPPFLAGS="${CPPFLAGS}-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
13710 echo "$as_me:13710: checking whether to use struct dirent64" >&5
13711 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
13712 if test "${cf_cv_struct_dirent64+set}" = set; then
13713 echo $ECHO_N "(cached) $ECHO_C" >&6
13716 cat >"conftest.$ac_ext" <<_ACEOF
13717 #line 13717 "configure"
13718 #include "confdefs.h"
13720 #pragma GCC diagnostic error "-Wincompatible-pointer-types"
13721 #include <sys/types.h>
13722 #include <dirent.h>
13728 /* if transitional largefile support is setup, this is true */
13729 extern struct dirent64 * readdir(DIR *);
13730 struct dirent64 *x = readdir((DIR *)0);
13731 struct dirent *y = readdir((DIR *)0);
13739 rm -f "conftest.$ac_objext"
13740 if { (eval echo "$as_me:13740: \"$ac_compile\"") >&5
13741 (eval $ac_compile) 2>&5
13743 echo "$as_me:13743: \$? = $ac_status" >&5
13744 (exit "$ac_status"); } &&
13745 { ac_try='test -s "conftest.$ac_objext"'
13746 { (eval echo "$as_me:13746: \"$ac_try\"") >&5
13747 (eval $ac_try) 2>&5
13749 echo "$as_me:13749: \$? = $ac_status" >&5
13750 (exit "$ac_status"); }; }; then
13751 cf_cv_struct_dirent64=yes
13753 echo "$as_me: failed program was:" >&5
13754 cat "conftest.$ac_ext" >&5
13755 cf_cv_struct_dirent64=no
13757 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13760 echo "$as_me:13760: result: $cf_cv_struct_dirent64" >&5
13761 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
13762 test "$cf_cv_struct_dirent64" = yes &&
13763 cat >>confdefs.h <<\EOF
13764 #define HAVE_STRUCT_DIRENT64 1
13769 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
13770 echo "$as_me:13770: checking if you want tparm not to use X/Open fixed-parameter list" >&5
13771 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
13773 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
13774 if test "${enable_tparm_varargs+set}" = set; then
13775 enableval="$enable_tparm_varargs"
13776 with_tparm_varargs=$enableval
13778 with_tparm_varargs=yes
13780 echo "$as_me:13780: result: $with_tparm_varargs" >&5
13781 echo "${ECHO_T}$with_tparm_varargs" >&6
13782 NCURSES_TPARM_VARARGS=0
13783 test "x$with_tparm_varargs" = xyes && NCURSES_TPARM_VARARGS=1
13785 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
13786 if test "$with_ticlib" != no ; then
13787 echo "$as_me:13787: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
13788 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
13790 # Check whether --enable-tic-depends or --disable-tic-depends was given.
13791 if test "${enable_tic_depends+set}" = set; then
13792 enableval="$enable_tic_depends"
13793 with_tic_depends=$enableval
13795 with_tic_depends=yes
13797 echo "$as_me:13797: result: $with_tic_depends" >&5
13798 echo "${ECHO_T}$with_tic_depends" >&6
13800 with_tic_depends=no
13803 ### use option --enable-wattr-macros to enable wattr* macros in curses.h
13804 echo "$as_me:13804: checking if you want to enable wattr* macros" >&5
13805 echo $ECHO_N "checking if you want to enable wattr* macros... $ECHO_C" >&6
13807 # Check whether --enable-wattr-macros or --disable-wattr-macros was given.
13808 if test "${enable_wattr_macros+set}" = set; then
13809 enableval="$enable_wattr_macros"
13810 with_wattr_macros=$enableval
13812 with_wattr_macros=no
13814 if [ "x$with_wattr_macros" != xyes ]; then
13815 NCURSES_WATTR_MACROS=0
13816 echo "$as_me:13816: result: no" >&5
13817 echo "${ECHO_T}no" >&6
13819 NCURSES_WATTR_MACROS=1
13820 echo "$as_me:13820: result: yes" >&5
13821 echo "${ECHO_T}yes" >&6
13824 echo "$as_me:13824: checking for X11 rgb file" >&5
13825 echo $ECHO_N "checking for X11 rgb file... $ECHO_C" >&6
13827 # Check whether --with-x11-rgb or --without-x11-rgb was given.
13828 if test "${with_x11_rgb+set}" = set; then
13829 withval="$with_x11_rgb"
13835 if test "x$RGB_PATH" = xauto
13837 RGB_PATH='${exec_prefix}/lib/X11/rgb.txt'
13839 /opt/local/share/X11/rgb.txt \
13840 /opt/X11/share/X11/rgb.txt \
13841 /usr/share/X11/rgb.txt \
13842 /usr/X11/share/X11/rgb.txt \
13843 /usr/X11/lib/X11/rgb.txt \
13844 /usr/lib/X11/rgb.txt \
13846 /usr/pkg/lib/X11/rgb.txt \
13847 /usr/X11R7/lib/X11/rgb.txt \
13848 /usr/X11R6/lib/X11/rgb.txt \
13849 /usr/X11R5/lib/X11/rgb.txt \
13850 /usr/X11R4/lib/X11/rgb.txt \
13851 /usr/local/lib/X11/rgb.txt \
13852 /usr/local/share/X11/rgb.txt \
13853 /usr/lib64/X11/rgb.txt
13855 if test -f "$cf_path" ; then
13856 RGB_PATH="$cf_path"
13863 if test "x$prefix" != xNONE; then
13864 cf_path_syntax="$prefix"
13866 cf_path_syntax="$ac_default_prefix"
13869 case ".$cf_path" in
13870 (.\$\(*\)*|.\'*\'*)
13874 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
13876 (.\$\{*prefix\}*|.\$\{*dir\}*)
13877 eval cf_path="$cf_path"
13878 case ".$cf_path" in
13880 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
13885 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
13888 { { echo "$as_me:13888: error: expected a pathname, not \"$cf_path\"" >&5
13889 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
13890 { (exit 1); exit 1; }; }
13896 echo "$as_me:13896: result: $RGB_PATH" >&5
13897 echo "${ECHO_T}$RGB_PATH" >&6
13899 cat >>confdefs.h <<EOF
13900 #define RGB_PATH "$cf_path"
13904 if test "$RGB_PATH" = no
13909 ### use option --with-bool to override bool's type
13910 echo "$as_me:13910: checking for type of bool" >&5
13911 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
13913 # Check whether --with-bool or --without-bool was given.
13914 if test "${with_bool+set}" = set; then
13915 withval="$with_bool"
13916 NCURSES_BOOL="$withval"
13920 echo "$as_me:13920: result: $NCURSES_BOOL" >&5
13921 echo "${ECHO_T}$NCURSES_BOOL" >&6
13923 echo "$as_me:13923: checking for alternate terminal capabilities file" >&5
13924 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
13926 # Check whether --with-caps or --without-caps was given.
13927 if test "${with_caps+set}" = set; then
13928 withval="$with_caps"
13929 TERMINFO_CAPS=Caps.$withval
13933 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
13934 echo "$as_me:13934: result: $TERMINFO_CAPS" >&5
13935 echo "${ECHO_T}$TERMINFO_CAPS" >&6
13937 ### use option --with-chtype to override chtype's type
13938 echo "$as_me:13938: checking for type of chtype" >&5
13939 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
13941 # Check whether --with-chtype or --without-chtype was given.
13942 if test "${with_chtype+set}" = set; then
13943 withval="$with_chtype"
13944 NCURSES_CHTYPE="$withval"
13946 NCURSES_CHTYPE=$cf_dft_chtype
13948 echo "$as_me:13948: result: $NCURSES_CHTYPE" >&5
13949 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
13951 ### use option --with-ospeed to override ospeed's type
13952 echo "$as_me:13952: checking for type of ospeed" >&5
13953 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
13955 # Check whether --with-ospeed or --without-ospeed was given.
13956 if test "${with_ospeed+set}" = set; then
13957 withval="$with_ospeed"
13958 NCURSES_OSPEED="$withval"
13960 NCURSES_OSPEED=short
13962 echo "$as_me:13962: result: $NCURSES_OSPEED" >&5
13963 echo "${ECHO_T}$NCURSES_OSPEED" >&6
13965 ### use option --with-mmask-t to override mmask_t's type
13966 echo "$as_me:13966: checking for type of mmask_t" >&5
13967 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
13969 # Check whether --with-mmask-t or --without-mmask-t was given.
13970 if test "${with_mmask_t+set}" = set; then
13971 withval="$with_mmask_t"
13972 NCURSES_MMASK_T="$withval"
13974 NCURSES_MMASK_T=$cf_dft_mmask_t
13976 echo "$as_me:13976: result: $NCURSES_MMASK_T" >&5
13977 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
13979 ### use option --with-ccharw-max to override CCHARW_MAX size
13980 echo "$as_me:13980: checking for size CCHARW_MAX" >&5
13981 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
13983 # Check whether --with-ccharw-max or --without-ccharw-max was given.
13984 if test "${with_ccharw_max+set}" = set; then
13985 withval="$with_ccharw_max"
13986 NCURSES_CCHARW_MAX="$withval"
13988 NCURSES_CCHARW_MAX=5
13990 echo "$as_me:13990: result: $NCURSES_CCHARW_MAX" >&5
13991 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
13993 echo "$as_me:13993: checking for ANSI C header files" >&5
13994 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13995 if test "${ac_cv_header_stdc+set}" = set; then
13996 echo $ECHO_N "(cached) $ECHO_C" >&6
13998 cat >"conftest.$ac_ext" <<_ACEOF
13999 #line 13999 "configure"
14000 #include "confdefs.h"
14001 #include <stdlib.h>
14002 #include <stdarg.h>
14003 #include <string.h>
14007 if { (eval echo "$as_me:14007: \"$ac_cpp "conftest.$ac_ext"\"") >&5
14008 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
14010 $EGREP -v '^ *\+' conftest.er1 >conftest.err
14012 cat conftest.err >&5
14013 echo "$as_me:14013: \$? = $ac_status" >&5
14014 (exit "$ac_status"); } >/dev/null; then
14015 if test -s conftest.err; then
14016 ac_cpp_err=$ac_c_preproc_warn_flag
14023 if test -z "$ac_cpp_err"; then
14024 ac_cv_header_stdc=yes
14026 echo "$as_me: failed program was:" >&5
14027 cat "conftest.$ac_ext" >&5
14028 ac_cv_header_stdc=no
14030 rm -f conftest.err "conftest.$ac_ext"
14032 if test $ac_cv_header_stdc = yes; then
14033 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14034 cat >"conftest.$ac_ext" <<_ACEOF
14035 #line 14035 "configure"
14036 #include "confdefs.h"
14037 #include <string.h>
14040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14041 $EGREP "memchr" >/dev/null 2>&1; then
14044 ac_cv_header_stdc=no
14050 if test $ac_cv_header_stdc = yes; then
14051 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14052 cat >"conftest.$ac_ext" <<_ACEOF
14053 #line 14053 "configure"
14054 #include "confdefs.h"
14055 #include <stdlib.h>
14058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14059 $EGREP "free" >/dev/null 2>&1; then
14062 ac_cv_header_stdc=no
14068 if test $ac_cv_header_stdc = yes; then
14069 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14070 if test "$cross_compiling" = yes; then
14073 cat >"conftest.$ac_ext" <<_ACEOF
14074 #line 14074 "configure"
14075 #include "confdefs.h"
14077 #if ((' ' & 0x0FF) == 0x020)
14078 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14079 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14081 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14082 || ('j' <= (c) && (c) <= 'r') \
14083 || ('s' <= (c) && (c) <= 'z'))
14084 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14087 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14092 for (i = 0; i < 256; i++)
14093 if (XOR (islower (i), ISLOWER (i))
14094 || toupper (i) != TOUPPER (i))
14095 $ac_main_return(2);
14096 $ac_main_return (0);
14099 rm -f "conftest$ac_exeext"
14100 if { (eval echo "$as_me:14100: \"$ac_link\"") >&5
14101 (eval $ac_link) 2>&5
14103 echo "$as_me:14103: \$? = $ac_status" >&5
14104 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
14105 { (eval echo "$as_me:14105: \"$ac_try\"") >&5
14106 (eval $ac_try) 2>&5
14108 echo "$as_me:14108: \$? = $ac_status" >&5
14109 (exit "$ac_status"); }; }; then
14112 echo "$as_me: program exited with status $ac_status" >&5
14113 echo "$as_me: failed program was:" >&5
14114 cat "conftest.$ac_ext" >&5
14115 ac_cv_header_stdc=no
14117 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
14121 echo "$as_me:14121: result: $ac_cv_header_stdc" >&5
14122 echo "${ECHO_T}$ac_cv_header_stdc" >&6
14123 if test $ac_cv_header_stdc = yes; then
14125 cat >>confdefs.h <<\EOF
14126 #define STDC_HEADERS 1
14131 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
14133 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
14134 inttypes.h stdint.h unistd.h
14136 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14137 echo "$as_me:14137: checking for $ac_header" >&5
14138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14140 echo $ECHO_N "(cached) $ECHO_C" >&6
14142 cat >"conftest.$ac_ext" <<_ACEOF
14143 #line 14143 "configure"
14144 #include "confdefs.h"
14145 $ac_includes_default
14146 #include <$ac_header>
14148 rm -f "conftest.$ac_objext"
14149 if { (eval echo "$as_me:14149: \"$ac_compile\"") >&5
14150 (eval $ac_compile) 2>&5
14152 echo "$as_me:14152: \$? = $ac_status" >&5
14153 (exit "$ac_status"); } &&
14154 { ac_try='test -s "conftest.$ac_objext"'
14155 { (eval echo "$as_me:14155: \"$ac_try\"") >&5
14156 (eval $ac_try) 2>&5
14158 echo "$as_me:14158: \$? = $ac_status" >&5
14159 (exit "$ac_status"); }; }; then
14160 eval "$as_ac_Header=yes"
14162 echo "$as_me: failed program was:" >&5
14163 cat "conftest.$ac_ext" >&5
14164 eval "$as_ac_Header=no"
14166 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14168 echo "$as_me:14168: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
14169 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
14170 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
14171 cat >>confdefs.h <<EOF
14172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14178 echo "$as_me:14178: checking for signed char" >&5
14179 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
14180 if test "${ac_cv_type_signed_char+set}" = set; then
14181 echo $ECHO_N "(cached) $ECHO_C" >&6
14183 cat >"conftest.$ac_ext" <<_ACEOF
14184 #line 14184 "configure"
14185 #include "confdefs.h"
14186 $ac_includes_default
14190 if ((signed char *) 0)
14192 if (sizeof (signed char))
14198 rm -f "conftest.$ac_objext"
14199 if { (eval echo "$as_me:14199: \"$ac_compile\"") >&5
14200 (eval $ac_compile) 2>&5
14202 echo "$as_me:14202: \$? = $ac_status" >&5
14203 (exit "$ac_status"); } &&
14204 { ac_try='test -s "conftest.$ac_objext"'
14205 { (eval echo "$as_me:14205: \"$ac_try\"") >&5
14206 (eval $ac_try) 2>&5
14208 echo "$as_me:14208: \$? = $ac_status" >&5
14209 (exit "$ac_status"); }; }; then
14210 ac_cv_type_signed_char=yes
14212 echo "$as_me: failed program was:" >&5
14213 cat "conftest.$ac_ext" >&5
14214 ac_cv_type_signed_char=no
14216 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14218 echo "$as_me:14218: result: $ac_cv_type_signed_char" >&5
14219 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
14221 echo "$as_me:14221: checking size of signed char" >&5
14222 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
14223 if test "${ac_cv_sizeof_signed_char+set}" = set; then
14224 echo $ECHO_N "(cached) $ECHO_C" >&6
14226 if test "$ac_cv_type_signed_char" = yes; then
14227 if test "$cross_compiling" = yes; then
14228 # Depending upon the size, compute the lo and hi bounds.
14229 cat >"conftest.$ac_ext" <<_ACEOF
14230 #line 14230 "configure"
14231 #include "confdefs.h"
14232 $ac_includes_default
14236 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
14241 rm -f "conftest.$ac_objext"
14242 if { (eval echo "$as_me:14242: \"$ac_compile\"") >&5
14243 (eval $ac_compile) 2>&5
14245 echo "$as_me:14245: \$? = $ac_status" >&5
14246 (exit "$ac_status"); } &&
14247 { ac_try='test -s "conftest.$ac_objext"'
14248 { (eval echo "$as_me:14248: \"$ac_try\"") >&5
14249 (eval $ac_try) 2>&5
14251 echo "$as_me:14251: \$? = $ac_status" >&5
14252 (exit "$ac_status"); }; }; then
14255 cat >"conftest.$ac_ext" <<_ACEOF
14256 #line 14256 "configure"
14257 #include "confdefs.h"
14258 $ac_includes_default
14262 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
14267 rm -f "conftest.$ac_objext"
14268 if { (eval echo "$as_me:14268: \"$ac_compile\"") >&5
14269 (eval $ac_compile) 2>&5
14271 echo "$as_me:14271: \$? = $ac_status" >&5
14272 (exit "$ac_status"); } &&
14273 { ac_try='test -s "conftest.$ac_objext"'
14274 { (eval echo "$as_me:14274: \"$ac_try\"") >&5
14275 (eval $ac_try) 2>&5
14277 echo "$as_me:14277: \$? = $ac_status" >&5
14278 (exit "$ac_status"); }; }; then
14279 ac_hi=$ac_mid; break
14281 echo "$as_me: failed program was:" >&5
14282 cat "conftest.$ac_ext" >&5
14283 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
14285 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14288 echo "$as_me: failed program was:" >&5
14289 cat "conftest.$ac_ext" >&5
14292 cat >"conftest.$ac_ext" <<_ACEOF
14293 #line 14293 "configure"
14294 #include "confdefs.h"
14295 $ac_includes_default
14299 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
14304 rm -f "conftest.$ac_objext"
14305 if { (eval echo "$as_me:14305: \"$ac_compile\"") >&5
14306 (eval $ac_compile) 2>&5
14308 echo "$as_me:14308: \$? = $ac_status" >&5
14309 (exit "$ac_status"); } &&
14310 { ac_try='test -s "conftest.$ac_objext"'
14311 { (eval echo "$as_me:14311: \"$ac_try\"") >&5
14312 (eval $ac_try) 2>&5
14314 echo "$as_me:14314: \$? = $ac_status" >&5
14315 (exit "$ac_status"); }; }; then
14316 ac_lo=$ac_mid; break
14318 echo "$as_me: failed program was:" >&5
14319 cat "conftest.$ac_ext" >&5
14320 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
14322 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14325 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14326 # Binary search between lo and hi bounds.
14327 while test "x$ac_lo" != "x$ac_hi"; do
14328 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
14329 cat >"conftest.$ac_ext" <<_ACEOF
14330 #line 14330 "configure"
14331 #include "confdefs.h"
14332 $ac_includes_default
14336 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
14341 rm -f "conftest.$ac_objext"
14342 if { (eval echo "$as_me:14342: \"$ac_compile\"") >&5
14343 (eval $ac_compile) 2>&5
14345 echo "$as_me:14345: \$? = $ac_status" >&5
14346 (exit "$ac_status"); } &&
14347 { ac_try='test -s "conftest.$ac_objext"'
14348 { (eval echo "$as_me:14348: \"$ac_try\"") >&5
14349 (eval $ac_try) 2>&5
14351 echo "$as_me:14351: \$? = $ac_status" >&5
14352 (exit "$ac_status"); }; }; then
14355 echo "$as_me: failed program was:" >&5
14356 cat "conftest.$ac_ext" >&5
14357 ac_lo=`expr "$ac_mid" + 1`
14359 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14361 ac_cv_sizeof_signed_char=$ac_lo
14363 if test "$cross_compiling" = yes; then
14364 { { echo "$as_me:14364: error: cannot run test program while cross compiling" >&5
14365 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14366 { (exit 1); exit 1; }; }
14368 cat >"conftest.$ac_ext" <<_ACEOF
14369 #line 14369 "configure"
14370 #include "confdefs.h"
14371 $ac_includes_default
14375 FILE *f = fopen ("conftest.val", "w");
14377 $ac_main_return (1);
14378 fprintf (f, "%ld", (long)(sizeof (signed char)));
14384 rm -f "conftest$ac_exeext"
14385 if { (eval echo "$as_me:14385: \"$ac_link\"") >&5
14386 (eval $ac_link) 2>&5
14388 echo "$as_me:14388: \$? = $ac_status" >&5
14389 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
14390 { (eval echo "$as_me:14390: \"$ac_try\"") >&5
14391 (eval $ac_try) 2>&5
14393 echo "$as_me:14393: \$? = $ac_status" >&5
14394 (exit "$ac_status"); }; }; then
14395 ac_cv_sizeof_signed_char=`cat conftest.val`
14397 echo "$as_me: program exited with status $ac_status" >&5
14398 echo "$as_me: failed program was:" >&5
14399 cat "conftest.$ac_ext" >&5
14401 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
14406 ac_cv_sizeof_signed_char=0
14409 echo "$as_me:14409: result: $ac_cv_sizeof_signed_char" >&5
14410 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
14411 cat >>confdefs.h <<EOF
14412 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
14415 if test "$ac_cv_sizeof_signed_char" = 1 ; then
14416 NCURSES_SBOOL="signed char"
14418 NCURSES_SBOOL="char"
14420 echo "$as_me:14420: checking if you want to use signed Boolean array in term.h" >&5
14421 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
14423 # Check whether --enable-signed-char or --disable-signed-char was given.
14424 if test "${enable_signed_char+set}" = set; then
14425 enableval="$enable_signed_char"
14426 with_signed_char=$enableval
14428 with_signed_char=no
14430 echo "$as_me:14430: result: $with_signed_char" >&5
14431 echo "${ECHO_T}$with_signed_char" >&6
14432 test "x$with_signed_char" != xyes && NCURSES_SBOOL="char"
14434 ### use option --with-tparm-arg to override tparm's argument type
14435 echo "$as_me:14435: checking for type of tparm args" >&5
14436 echo $ECHO_N "checking for type of tparm args... $ECHO_C" >&6
14438 # Check whether --with-tparm-arg or --without-tparm-arg was given.
14439 if test "${with_tparm_arg+set}" = set; then
14440 withval="$with_tparm_arg"
14441 NCURSES_TPARM_ARG="$withval"
14443 NCURSES_TPARM_ARG=$cf_dft_tparm_arg
14445 echo "$as_me:14445: result: $NCURSES_TPARM_ARG" >&5
14446 echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6
14448 ### Enable compiling-in rcs id's
14449 echo "$as_me:14449: checking if RCS identifiers should be compiled-in" >&5
14450 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
14452 # Check whether --with-rcs-ids or --without-rcs-ids was given.
14453 if test "${with_rcs_ids+set}" = set; then
14454 withval="$with_rcs_ids"
14455 with_rcs_ids=$withval
14459 echo "$as_me:14459: result: $with_rcs_ids" >&5
14460 echo "${ECHO_T}$with_rcs_ids" >&6
14461 test "x$with_rcs_ids" = xyes &&
14462 cat >>confdefs.h <<\EOF
14463 #define USE_RCS_IDS 1
14466 ###############################################################################
14468 echo "$as_me:14468: checking format of man-pages" >&5
14469 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
14471 # Check whether --with-manpage-format or --without-manpage-format was given.
14472 if test "${with_manpage_format+set}" = set; then
14473 withval="$with_manpage_format"
14474 MANPAGE_FORMAT=$withval
14476 MANPAGE_FORMAT=unknown
14479 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
14480 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
14484 case "$MANPAGE_FORMAT" in
14486 if test -z "$MANPATH" ; then
14487 MANPATH="/usr/man:/usr/share/man"
14490 # look for the 'date' man-page (it is most likely to be installed!)
14496 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
14497 for cf_dir in $MANPATH; do
14498 test -z "$cf_dir" && cf_dir=/usr/man
14499 for cf_name in $cf_dir/man*/$cf_example.[01]* $cf_dir/cat*/$cf_example.[01]* $cf_dir/man*/$cf_example $cf_dir/cat*/$cf_example
14501 cf_test=`echo "$cf_name" | sed -e 's/*//'`
14502 if test "x$cf_test" = "x$cf_name" ; then
14505 (*.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
14506 (*.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
14507 (*.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
14508 (*) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
14522 # if we found a match in either man* or cat*, stop looking
14523 if test -n "$MANPAGE_FORMAT" ; then
14525 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
14526 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
14532 test "$cf_found" = yes && break
14535 # only check the first directory in $MANPATH where we find manpages
14536 if test -n "$MANPAGE_FORMAT" ; then
14540 # if we did not find the example, just assume it is normal
14541 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
14545 for cf_option in $MANPAGE_FORMAT; do
14546 case "$cf_option" in
14547 (gzip|compress|BSDI|normal|formatted|catonly)
14550 cf_unknown="$cf_unknown $cf_option"
14557 echo "$as_me:14557: result: $MANPAGE_FORMAT" >&5
14558 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
14559 if test -n "$cf_unknown" ; then
14560 { echo "$as_me:14560: WARNING: Unexpected manpage-format $cf_unknown" >&5
14561 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
14564 echo "$as_me:14564: checking for manpage renaming" >&5
14565 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
14567 # Check whether --with-manpage-renames or --without-manpage-renames was given.
14568 if test "${with_manpage_renames+set}" = set; then
14569 withval="$with_manpage_renames"
14570 MANPAGE_RENAMES=$withval
14572 MANPAGE_RENAMES=yes
14575 case ".$MANPAGE_RENAMES" in
14579 # Debian 'man' program?
14580 if test -f /etc/debian_version ; then
14581 MANPAGE_RENAMES=`cd "$srcdir" && pwd`/man/man_db.renames
14588 if test "$MANPAGE_RENAMES" != no ; then
14589 if test -f "$srcdir/man/$MANPAGE_RENAMES" ; then
14590 MANPAGE_RENAMES=`cd "$srcdir/man" && pwd`/$MANPAGE_RENAMES
14591 elif test ! -f "$MANPAGE_RENAMES" ; then
14592 { { echo "$as_me:14592: error: not a filename: $MANPAGE_RENAMES" >&5
14593 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
14594 { (exit 1); exit 1; }; }
14597 test ! -d man && mkdir man
14599 # Construct a sed-script to perform renaming within man-pages
14600 if test -n "$MANPAGE_RENAMES" ; then
14601 test ! -d man && mkdir man
14602 $SHELL "$srcdir/man/make_sed.sh" "$MANPAGE_RENAMES" >./edit_man.sed
14606 echo "$as_me:14606: result: $MANPAGE_RENAMES" >&5
14607 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
14609 echo "$as_me:14609: checking if manpage aliases will be installed" >&5
14610 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
14612 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
14613 if test "${with_manpage_aliases+set}" = set; then
14614 withval="$with_manpage_aliases"
14615 MANPAGE_ALIASES=$withval
14617 MANPAGE_ALIASES=yes
14620 echo "$as_me:14620: result: $MANPAGE_ALIASES" >&5
14621 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
14625 cf_use_symlinks=yes
14632 MANPAGE_SYMLINKS=no
14633 if test "$MANPAGE_ALIASES" = yes ; then
14634 echo "$as_me:14634: checking if manpage symlinks should be used" >&5
14635 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
14637 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
14638 if test "${with_manpage_symlinks+set}" = set; then
14639 withval="$with_manpage_symlinks"
14640 MANPAGE_SYMLINKS=$withval
14642 MANPAGE_SYMLINKS=$cf_use_symlinks
14645 if test "$$cf_use_symlinks" = no; then
14646 if test "$MANPAGE_SYMLINKS" = yes ; then
14647 { echo "$as_me:14647: WARNING: cannot make symlinks" >&5
14648 echo "$as_me: WARNING: cannot make symlinks" >&2;}
14649 MANPAGE_SYMLINKS=no
14653 echo "$as_me:14653: result: $MANPAGE_SYMLINKS" >&5
14654 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
14657 echo "$as_me:14657: checking for manpage tbl" >&5
14658 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
14660 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
14661 if test "${with_manpage_tbl+set}" = set; then
14662 withval="$with_manpage_tbl"
14663 MANPAGE_TBL=$withval
14668 echo "$as_me:14668: result: $MANPAGE_TBL" >&5
14669 echo "${ECHO_T}$MANPAGE_TBL" >&6
14671 if test "$prefix" = "NONE" ; then
14672 cf_prefix="$ac_default_prefix"
14674 cf_prefix="$prefix"
14677 case "$MANPAGE_FORMAT" in
14692 test ! -d man && mkdir man
14696 case "$MANPAGE_FORMAT" in
14699 cf_compress=compress
14707 cf_edit_man=./edit_man.sh
14708 cf_man_alias=`pwd`/man_alias.sed
14710 cat >$cf_edit_man <<CF_EOF
14712 # this script is generated by the configure-script CF_MAN_PAGES macro.
14714 prefix="$cf_prefix"
14715 datarootdir="$datarootdir"
14718 NCURSES_MAJOR="$NCURSES_MAJOR"
14719 NCURSES_MINOR="$NCURSES_MINOR"
14720 NCURSES_PATCH="$NCURSES_PATCH"
14722 NCURSES_OSPEED="$NCURSES_OSPEED"
14723 TERMINFO="$TERMINFO"
14726 INSTALL_DATA="$INSTALL_DATA"
14728 transform="$program_transform_name"
14730 TMP=\${TMPDIR:=/tmp}/man\$\$
14731 trap "rm -f \$TMP" 0 1 2 3 15
14743 top_srcdir=\$srcdir/..
14746 if test "\$form" = normal ; then
14747 if test "$cf_format" = yes ; then
14748 if test "$cf_inboth" = no ; then
14749 $SHELL "\$0" format "\$verb" "\$mandir" "\$srcdir" "\$@"
14753 cf_subdir=\$mandir/man
14754 cf_tables=$MANPAGE_TBL
14756 cf_subdir=\$mandir/cat
14760 # process the list of source-files
14761 for i in "\$@" ; do
14765 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
14766 if test "\$verb" = installing ; then
14767 if test ! -d "\$cf_subdir\${section}" ; then
14768 mkdir -p "\$cf_subdir\$section"
14772 # replace variables in man page
14773 if test ! -f "$cf_man_alias" ; then
14774 cat >>$cf_man_alias <<-CF_EOF2
14775 s,@DATADIR@,\$datadir,g
14776 s,@TERMINFO@,\${TERMINFO:="no default value"},g
14777 s,@TERMINFO_DIRS@,\${TERMINFO_DIRS:="no default value"},g
14778 s,@NCURSES_MAJOR@,\${NCURSES_MAJOR:="no default value"},g
14779 s,@NCURSES_MINOR@,\${NCURSES_MINOR:="no default value"},g
14780 s,@NCURSES_PATCH@,\${NCURSES_PATCH:="no default value"},g
14781 s,@NCURSES_OSPEED@,\${NCURSES_OSPEED:="no default value"},g
14784 for cf_name in captoinfo clear infocmp infotocap reset tabs tic toe tput tset
14786 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14787 cf_name=`echo "$cf_name" | sed "$program_transform_name"`
14788 cat >>$cf_edit_man <<-CF_EOF
14789 s,@$cf_NAME@,$cf_name,g
14793 cat >>$cf_edit_man <<CF_EOF
14795 echo "...made $cf_man_alias"
14799 cf_source=\`basename "\$i"\`
14800 inalias=\$cf_source
14801 test ! -f "\$inalias" && inalias="\$srcdir/\$inalias"
14802 if test ! -f "\$inalias" ; then
14803 echo ".. skipped \$cf_source"
14808 if test "$MANPAGE_ALIASES" != no ; then
14809 cat >>$cf_edit_man <<CF_EOF
14811 test "$with_curses_h" = yes && nCurses=ncurses.3x
14812 aliases=\`sed -f "\$top_srcdir/man/manlinks.sed" "\$inalias" |sed -f "$cf_man_alias" | sort -u; test "\$inalias" = "\$nCurses" && echo curses\`
14816 if test "$MANPAGE_RENAMES" = no ; then
14817 cat >>$cf_edit_man <<CF_EOF
14818 # perform program transformations for section 1 man pages
14819 if test \$section = 1 ; then
14820 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
14822 cf_target=\$cf_subdir\${section}/\$cf_source
14826 cat >>$cf_edit_man <<CF_EOF
14827 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
14828 if test -z "\$cf_target" ; then
14829 echo "? missing rename for \$cf_source"
14830 cf_target="\$cf_source"
14832 cf_target="\$cf_subdir\${section}/\${cf_target}"
14837 cat >>$cf_edit_man <<CF_EOF
14838 sed -f "$cf_man_alias" \\
14841 if test -f "$MANPAGE_RENAMES" ; then
14842 cat >>$cf_edit_man <<CF_EOF
14843 < "\$i" | sed -f `pwd`/edit_man.sed >\$TMP
14846 cat >>$cf_edit_man <<CF_EOF
14851 cat >>$cf_edit_man <<CF_EOF
14852 if test \$cf_tables = yes ; then
14853 tbl \$TMP >\$TMP.out
14858 if test "$with_overwrite" != yes ; then
14859 cat >>$cf_edit_man <<CF_EOF
14860 sed -e "/\\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
14865 if test "$with_curses_h" != yes ; then
14866 cat >>$cf_edit_man <<CF_EOF
14867 sed -e "/\\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
14872 cat >>$cf_edit_man <<CF_EOF
14873 if test "\$form" = format ; then
14874 nroff -man \$TMP >\$TMP.out
14879 if test -n "$cf_compress" ; then
14880 cat >>$cf_edit_man <<CF_EOF
14881 if test "\$verb" = installing ; then
14882 if ( "$cf_compress" -f \$TMP )
14884 mv \$TMP.$cf_so_strip \$TMP
14887 cf_target="\$cf_target.$cf_so_strip"
14891 case "$MANPAGE_FORMAT" in
14893 cat >>$cf_edit_man <<CF_EOF
14894 if test "\$form" = format ; then
14895 # BSDI installs only .0 suffixes in the cat directories
14896 cf_target="\`echo \$cf_target|sed -e 's/\\.[1-9]\\+[a-z]*/.0/'\`"
14902 cat >>$cf_edit_man <<CF_EOF
14903 suffix=\`basename "\$cf_target" | sed -e 's%^[^.]*%%'\`
14904 if test "\$verb" = installing ; then
14905 echo "\$verb \$cf_target"
14906 \$INSTALL_DATA \$TMP "\$cf_target"
14907 test -d "\$cf_subdir\${section}" &&
14908 test -n "\$aliases" && (
14909 cd "\$cf_subdir\${section}" && (
14910 cf_source=\`echo "\$cf_target" |sed -e 's%^.*/\\([^/][^/]*/[^/][^/]*$\\)%\\1%'\`
14911 test -n "$cf_so_strip" && cf_source=\`echo "\$cf_source" |sed -e 's%\\.$cf_so_strip\$%%'\`
14912 cf_target=\`basename "\$cf_target"\`
14913 for cf_alias in \$aliases
14915 if test "\$section" = 1 ; then
14916 cf_alias=\`echo "\$cf_alias" |sed "\${transform}"\`
14919 if test "$MANPAGE_SYMLINKS" = yes ; then
14920 if test -f "\$cf_alias\${suffix}" ; then
14921 if ( cmp -s "\$cf_target" "\$cf_alias\${suffix}" )
14926 echo ".. \$verb alias \$cf_alias\${suffix}"
14930 cat >>$cf_edit_man <<CF_EOF
14931 $LN_S "\$cf_target" "\$cf_alias\${suffix}"
14935 cat >>$cf_edit_man <<CF_EOF
14936 rm -f "\$cf_alias\${suffix}"
14937 $LN_S "\$cf_target" "\$cf_alias\${suffix}"
14941 cat >>$cf_edit_man <<CF_EOF
14942 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
14943 echo ".so \$cf_source" >\$TMP
14945 if test -n "$cf_compress" ; then
14946 cat >>$cf_edit_man <<CF_EOF
14947 if test -n "$cf_so_strip" ; then
14948 "$cf_compress" -f \$TMP
14949 mv \$TMP.$cf_so_strip \$TMP
14953 cat >>$cf_edit_man <<CF_EOF
14954 echo ".. \$verb alias \$cf_alias\${suffix}"
14955 rm -f "\$cf_alias\${suffix}"
14956 \$INSTALL_DATA \$TMP "\$cf_alias\${suffix}"
14961 elif test "\$verb" = removing ; then
14962 test -f "\$cf_target" && (
14963 echo "\$verb \$cf_target"
14964 rm -f "\$cf_target"
14966 test -d "\$cf_subdir\${section}" &&
14967 test -n "\$aliases" && (
14968 cd "\$cf_subdir\${section}" && (
14969 for cf_alias in \$aliases
14971 if test "\$section" = 1 ; then
14972 cf_alias=\`echo "\$cf_alias" |sed "\${transform}"\`
14975 echo ".. \$verb alias \$cf_alias\${suffix}"
14976 rm -f "\$cf_alias\${suffix}"
14988 if test "$cf_inboth" = yes ; then
14989 if test "\$form" != format ; then
14990 $SHELL "\$0" format "\$verb" "\$mandir" "\$srcdir" "\$@"
14996 chmod 755 "$cf_edit_man"
14998 ###############################################################################
15000 ### Note that some functions (such as const) are normally disabled anyway.
15001 echo "$as_me:15001: checking if you want to build with function extensions" >&5
15002 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
15004 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
15005 if test "${enable_ext_funcs+set}" = set; then
15006 enableval="$enable_ext_funcs"
15007 with_ext_funcs=$enableval
15011 echo "$as_me:15011: result: $with_ext_funcs" >&5
15012 echo "${ECHO_T}$with_ext_funcs" >&6
15013 if test "x$with_ext_funcs" = xyes ; then
15014 NCURSES_EXT_FUNCS=1
15016 cat >>confdefs.h <<\EOF
15017 #define NCURSES_EXT_FUNCS 1
15020 cat >>confdefs.h <<\EOF
15021 #define HAVE_ASSUME_DEFAULT_COLORS 1
15024 cat >>confdefs.h <<\EOF
15025 #define HAVE_CURSES_VERSION 1
15028 cat >>confdefs.h <<\EOF
15029 #define HAVE_HAS_KEY 1
15032 cat >>confdefs.h <<\EOF
15033 #define HAVE_RESIZETERM 1
15036 cat >>confdefs.h <<\EOF
15037 #define HAVE_RESIZE_TERM 1
15040 cat >>confdefs.h <<\EOF
15041 #define HAVE_TERM_ENTRY_H 1
15044 cat >>confdefs.h <<\EOF
15045 #define HAVE_USE_DEFAULT_COLORS 1
15048 cat >>confdefs.h <<\EOF
15049 #define HAVE_USE_EXTENDED_NAMES 1
15052 cat >>confdefs.h <<\EOF
15053 #define HAVE_USE_SCREEN 1
15056 cat >>confdefs.h <<\EOF
15057 #define HAVE_USE_WINDOW 1
15060 cat >>confdefs.h <<\EOF
15061 #define HAVE_WRESIZE 1
15064 GENERATED_EXT_FUNCS=generated
15065 test "x$with_ext_funcs" = xyes || cf_dft_ext_spfuncs=no
15067 NCURSES_EXT_FUNCS=0
15068 GENERATED_EXT_FUNCS=
15071 echo "$as_me:15071: checking if you want to build with SCREEN extensions" >&5
15072 echo $ECHO_N "checking if you want to build with SCREEN extensions... $ECHO_C" >&6
15074 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
15075 if test "${enable_sp_funcs+set}" = set; then
15076 enableval="$enable_sp_funcs"
15077 with_sp_funcs=$enableval
15079 with_sp_funcs=$cf_dft_ext_spfuncs
15081 echo "$as_me:15081: result: $with_sp_funcs" >&5
15082 echo "${ECHO_T}$with_sp_funcs" >&6
15083 if test "x$with_sp_funcs" = xyes ; then
15086 cat >>confdefs.h <<\EOF
15087 #define NCURSES_SP_FUNCS 1
15090 cat >>confdefs.h <<\EOF
15091 #define HAVE_TPUTS_SP 1
15094 GENERATED_SP_FUNCS=generated
15097 GENERATED_SP_FUNCS=
15100 echo "$as_me:15100: checking if you want to build with terminal-driver" >&5
15101 echo $ECHO_N "checking if you want to build with terminal-driver... $ECHO_C" >&6
15103 # Check whether --enable-term-driver or --disable-term-driver was given.
15104 if test "${enable_term_driver+set}" = set; then
15105 enableval="$enable_term_driver"
15106 with_term_driver=$enableval
15108 with_term_driver=no
15110 echo "$as_me:15110: result: $with_term_driver" >&5
15111 echo "${ECHO_T}$with_term_driver" >&6
15112 if test "x$with_term_driver" = xyes ; then
15114 cat >>confdefs.h <<\EOF
15115 #define USE_TERM_DRIVER 1
15118 if test "x$with_termlib" != xno ; then
15119 { { echo "$as_me:15119: error: The term-driver option conflicts with the termlib option" >&5
15120 echo "$as_me: error: The term-driver option conflicts with the termlib option" >&2;}
15121 { (exit 1); exit 1; }; }
15123 if test "x$with_sp_funcs" != xyes ; then
15124 { { echo "$as_me:15124: error: The term-driver option relies upon sp-funcs" >&5
15125 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
15126 { (exit 1); exit 1; }; }
15130 ### use option --enable-const to turn on use of const beyond that in XSI.
15131 echo "$as_me:15131: checking for extended use of const keyword" >&5
15132 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
15134 # Check whether --enable-const or --disable-const was given.
15135 if test "${enable_const+set}" = set; then
15136 enableval="$enable_const"
15137 with_ext_const=$enableval
15139 with_ext_const=$cf_dft_ext_const
15141 echo "$as_me:15141: result: $with_ext_const" >&5
15142 echo "${ECHO_T}$with_ext_const" >&6
15143 NCURSES_CONST='/*nothing*/'
15144 if test "x$with_ext_const" = xyes ; then
15145 NCURSES_CONST=const
15148 ### use option --enable-ext-colors to turn on use of colors beyond 16.
15149 echo "$as_me:15149: checking if you want to use extended colors" >&5
15150 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
15152 # Check whether --enable-ext-colors or --disable-ext-colors was given.
15153 if test "${enable_ext_colors+set}" = set; then
15154 enableval="$enable_ext_colors"
15155 with_ext_colors=$enableval
15157 with_ext_colors=$cf_dft_ext_colors
15159 echo "$as_me:15159: result: $with_ext_colors" >&5
15160 echo "${ECHO_T}$with_ext_colors" >&6
15161 NCURSES_EXT_COLORS=0
15162 if test "x$with_ext_colors" = xyes ; then
15163 if test "x$with_widec" != xyes ; then
15164 { echo "$as_me:15164: WARNING: This option applies only to wide-character library" >&5
15165 echo "$as_me: WARNING: This option applies only to wide-character library" >&2;}
15167 # cannot be ABI 5 since it changes sizeof(cchar_t)
15169 if test "${with_abi_version+set}" != set; then
15170 case "$cf_cv_rel_version" in
15172 cf_cv_rel_version=6.0
15173 cf_cv_abi_version=6
15174 { echo "$as_me:15174: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
15175 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
15180 NCURSES_EXT_COLORS=1
15182 cat >>confdefs.h <<\EOF
15183 #define NCURSES_EXT_COLORS 1
15186 cat >>confdefs.h <<\EOF
15187 #define HAVE_ALLOC_PAIR 1
15190 cat >>confdefs.h <<\EOF
15191 #define HAVE_INIT_EXTENDED_COLOR 1
15194 cat >>confdefs.h <<\EOF
15195 #define HAVE_RESET_COLOR_PAIRS 1
15201 ### use option --enable-ext-mouse to modify coding to support 5-button mice
15202 echo "$as_me:15202: checking if you want to use extended mouse encoding" >&5
15203 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
15205 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
15206 if test "${enable_ext_mouse+set}" = set; then
15207 enableval="$enable_ext_mouse"
15208 with_ext_mouse=$enableval
15210 with_ext_mouse=$cf_dft_ext_mouse
15212 echo "$as_me:15212: result: $with_ext_mouse" >&5
15213 echo "${ECHO_T}$with_ext_mouse" >&6
15214 NCURSES_MOUSE_VERSION=1
15215 if test "x$with_ext_mouse" = xyes ; then
15216 NCURSES_MOUSE_VERSION=2
15218 if test "${with_abi_version+set}" != set; then
15219 case "$cf_cv_rel_version" in
15221 cf_cv_rel_version=6.0
15222 cf_cv_abi_version=6
15223 { echo "$as_me:15223: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
15224 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
15231 ### use option --enable-ext-putwin to turn on extended screendumps
15232 echo "$as_me:15232: checking if you want to use extended putwin/screendump" >&5
15233 echo $ECHO_N "checking if you want to use extended putwin/screendump... $ECHO_C" >&6
15235 # Check whether --enable-ext-putwin or --disable-ext-putwin was given.
15236 if test "${enable_ext_putwin+set}" = set; then
15237 enableval="$enable_ext_putwin"
15238 with_ext_putwin=$enableval
15240 with_ext_putwin=$cf_dft_ext_putwin
15242 echo "$as_me:15242: result: $with_ext_putwin" >&5
15243 echo "${ECHO_T}$with_ext_putwin" >&6
15244 if test "x$with_ext_putwin" = xyes ; then
15246 cat >>confdefs.h <<\EOF
15247 #define NCURSES_EXT_PUTWIN 1
15252 echo "$as_me:15252: checking if you want \$NCURSES_NO_PADDING code" >&5
15253 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
15255 # Check whether --enable-no-padding or --disable-no-padding was given.
15256 if test "${enable_no_padding+set}" = set; then
15257 enableval="$enable_no_padding"
15258 with_no_padding=$enableval
15260 with_no_padding=$with_ext_funcs
15262 echo "$as_me:15262: result: $with_no_padding" >&5
15263 echo "${ECHO_T}$with_no_padding" >&6
15264 test "x$with_no_padding" = xyes &&
15265 cat >>confdefs.h <<\EOF
15266 #define NCURSES_NO_PADDING 1
15269 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
15270 echo "$as_me:15270: checking if you want SIGWINCH handler" >&5
15271 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
15273 # Check whether --enable-sigwinch or --disable-sigwinch was given.
15274 if test "${enable_sigwinch+set}" = set; then
15275 enableval="$enable_sigwinch"
15276 with_sigwinch=$enableval
15278 with_sigwinch=$with_ext_funcs
15280 echo "$as_me:15280: result: $with_sigwinch" >&5
15281 echo "${ECHO_T}$with_sigwinch" >&6
15282 test "x$with_sigwinch" = xyes &&
15283 cat >>confdefs.h <<\EOF
15284 #define USE_SIGWINCH 1
15287 ### use option --enable-tcap-names to allow user to define new capabilities
15288 echo "$as_me:15288: checking if you want user-definable terminal capabilities like termcap" >&5
15289 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
15291 # Check whether --enable-tcap-names or --disable-tcap-names was given.
15292 if test "${enable_tcap_names+set}" = set; then
15293 enableval="$enable_tcap_names"
15294 with_tcap_names=$enableval
15296 with_tcap_names=$with_ext_funcs
15298 echo "$as_me:15298: result: $with_tcap_names" >&5
15299 echo "${ECHO_T}$with_tcap_names" >&6
15301 test "x$with_tcap_names" = xyes && NCURSES_XNAMES=1
15303 ##############################################################################
15305 echo "$as_me:15305: checking if you want to link with the pthread library" >&5
15306 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
15308 # Check whether --with-pthread or --without-pthread was given.
15309 if test "${with_pthread+set}" = set; then
15310 withval="$with_pthread"
15311 with_pthread=$withval
15315 echo "$as_me:15315: result: $with_pthread" >&5
15316 echo "${ECHO_T}$with_pthread" >&6
15318 if test "$with_pthread" != no ; then
15319 echo "$as_me:15319: checking for pthread.h" >&5
15320 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
15321 if test "${ac_cv_header_pthread_h+set}" = set; then
15322 echo $ECHO_N "(cached) $ECHO_C" >&6
15324 cat >"conftest.$ac_ext" <<_ACEOF
15325 #line 15325 "configure"
15326 #include "confdefs.h"
15327 #include <pthread.h>
15329 if { (eval echo "$as_me:15329: \"$ac_cpp "conftest.$ac_ext"\"") >&5
15330 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
15332 $EGREP -v '^ *\+' conftest.er1 >conftest.err
15334 cat conftest.err >&5
15335 echo "$as_me:15335: \$? = $ac_status" >&5
15336 (exit "$ac_status"); } >/dev/null; then
15337 if test -s conftest.err; then
15338 ac_cpp_err=$ac_c_preproc_warn_flag
15345 if test -z "$ac_cpp_err"; then
15346 ac_cv_header_pthread_h=yes
15348 echo "$as_me: failed program was:" >&5
15349 cat "conftest.$ac_ext" >&5
15350 ac_cv_header_pthread_h=no
15352 rm -f conftest.err "conftest.$ac_ext"
15354 echo "$as_me:15354: result: $ac_cv_header_pthread_h" >&5
15355 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
15356 if test "$ac_cv_header_pthread_h" = yes; then
15358 cat >>confdefs.h <<\EOF
15359 #define HAVE_PTHREADS_H 1
15362 for cf_lib_pthread in pthread c_r
15364 echo "$as_me:15364: checking if we can link with the $cf_lib_pthread library" >&5
15365 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
15366 cf_save_LIBS="$LIBS"
15368 cf_add_libs="$LIBS"
15371 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15372 # filter duplicates
15373 for cf_add_1lib in $cf_add_0lib; do
15374 for cf_add_2lib in $cf_add_libs; do
15375 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15380 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15382 LIBS="$cf_add_libs"
15384 cat >"conftest.$ac_ext" <<_ACEOF
15385 #line 15385 "configure"
15386 #include "confdefs.h"
15388 #include <pthread.h>
15394 int rc = pthread_create(0,0,0,0);
15395 int r2 = pthread_mutexattr_settype(0, 0);
15401 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15402 if { (eval echo "$as_me:15402: \"$ac_link\"") >&5
15403 (eval $ac_link) 2>&5
15405 echo "$as_me:15405: \$? = $ac_status" >&5
15406 (exit "$ac_status"); } &&
15407 { ac_try='test -s "conftest$ac_exeext"'
15408 { (eval echo "$as_me:15408: \"$ac_try\"") >&5
15409 (eval $ac_try) 2>&5
15411 echo "$as_me:15411: \$? = $ac_status" >&5
15412 (exit "$ac_status"); }; }; then
15415 echo "$as_me: failed program was:" >&5
15416 cat "conftest.$ac_ext" >&5
15419 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15420 LIBS="$cf_save_LIBS"
15421 echo "$as_me:15421: result: $with_pthread" >&5
15422 echo "${ECHO_T}$with_pthread" >&6
15423 test "$with_pthread" = yes && break
15426 if test "$with_pthread" = yes ; then
15428 cf_add_libs="$LIBS"
15431 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15432 # filter duplicates
15433 for cf_add_1lib in $cf_add_0lib; do
15434 for cf_add_2lib in $cf_add_libs; do
15435 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15440 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15442 LIBS="$cf_add_libs"
15444 cat >>confdefs.h <<\EOF
15445 #define HAVE_LIBPTHREADS 1
15449 { { echo "$as_me:15449: error: Cannot link with pthread library" >&5
15450 echo "$as_me: error: Cannot link with pthread library" >&2;}
15451 { (exit 1); exit 1; }; }
15458 if test "x$with_pthread" != xno; then
15459 echo "$as_me:15459: checking for pthread_kill" >&5
15460 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
15461 if test "${ac_cv_func_pthread_kill+set}" = set; then
15462 echo $ECHO_N "(cached) $ECHO_C" >&6
15464 cat >"conftest.$ac_ext" <<_ACEOF
15465 #line 15465 "configure"
15466 #include "confdefs.h"
15467 #define pthread_kill autoconf_temporary
15468 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
15469 #undef pthread_kill
15475 /* We use char because int might match the return type of a gcc2
15476 builtin and then its argument prototype would still apply. */
15477 char pthread_kill (void);
15483 /* The GNU C library defines stubs for functions which it implements
15484 to always fail with ENOSYS. Some functions are actually named
15485 something starting with __ and the normal name is an alias. */
15486 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
15487 #error found stub for pthread_kill
15490 return pthread_kill ();
15495 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15496 if { (eval echo "$as_me:15496: \"$ac_link\"") >&5
15497 (eval $ac_link) 2>&5
15499 echo "$as_me:15499: \$? = $ac_status" >&5
15500 (exit "$ac_status"); } &&
15501 { ac_try='test -s "conftest$ac_exeext"'
15502 { (eval echo "$as_me:15502: \"$ac_try\"") >&5
15503 (eval $ac_try) 2>&5
15505 echo "$as_me:15505: \$? = $ac_status" >&5
15506 (exit "$ac_status"); }; }; then
15507 ac_cv_func_pthread_kill=yes
15509 echo "$as_me: failed program was:" >&5
15510 cat "conftest.$ac_ext" >&5
15511 ac_cv_func_pthread_kill=no
15513 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15515 echo "$as_me:15515: result: $ac_cv_func_pthread_kill" >&5
15516 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
15517 if test "$ac_cv_func_pthread_kill" = yes; then
15519 echo "$as_me:15519: checking if you want to allow EINTR in wgetch with pthreads" >&5
15520 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
15522 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
15523 if test "${enable_pthreads_eintr+set}" = set; then
15524 enableval="$enable_pthreads_eintr"
15525 use_pthreads_eintr=$enableval
15527 use_pthreads_eintr=no
15529 echo "$as_me:15529: result: $use_pthreads_eintr" >&5
15530 echo "${ECHO_T}$use_pthreads_eintr" >&6
15531 if test "x$use_pthreads_eintr" = xyes ; then
15533 cat >>confdefs.h <<\EOF
15534 #define USE_PTHREADS_EINTR 1
15540 echo "$as_me:15540: checking if you want to use weak-symbols for pthreads" >&5
15541 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
15543 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
15544 if test "${enable_weak_symbols+set}" = set; then
15545 enableval="$enable_weak_symbols"
15546 use_weak_symbols=$enableval
15548 use_weak_symbols=no
15550 echo "$as_me:15550: result: $use_weak_symbols" >&5
15551 echo "${ECHO_T}$use_weak_symbols" >&6
15552 if test "x$use_weak_symbols" = xyes ; then
15554 echo "$as_me:15554: checking if $CC supports weak symbols" >&5
15555 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
15556 if test "${cf_cv_weak_symbols+set}" = set; then
15557 echo $ECHO_N "(cached) $ECHO_C" >&6
15560 cat >"conftest.$ac_ext" <<_ACEOF
15561 #line 15561 "configure"
15562 #include "confdefs.h"
15569 #if defined(__GNUC__)
15570 # if defined __USE_ISOC99
15571 # define _cat_pragma(exp) _Pragma(#exp)
15572 # define _weak_pragma(exp) _cat_pragma(weak name)
15574 # define _weak_pragma(exp)
15576 # define _declare(name) __extension__ extern __typeof__(name) name
15577 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
15580 weak_symbol(fopen);
15586 rm -f "conftest.$ac_objext"
15587 if { (eval echo "$as_me:15587: \"$ac_compile\"") >&5
15588 (eval $ac_compile) 2>&5
15590 echo "$as_me:15590: \$? = $ac_status" >&5
15591 (exit "$ac_status"); } &&
15592 { ac_try='test -s "conftest.$ac_objext"'
15593 { (eval echo "$as_me:15593: \"$ac_try\"") >&5
15594 (eval $ac_try) 2>&5
15596 echo "$as_me:15596: \$? = $ac_status" >&5
15597 (exit "$ac_status"); }; }; then
15598 cf_cv_weak_symbols=yes
15600 echo "$as_me: failed program was:" >&5
15601 cat "conftest.$ac_ext" >&5
15602 cf_cv_weak_symbols=no
15604 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
15607 echo "$as_me:15607: result: $cf_cv_weak_symbols" >&5
15608 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
15611 cf_cv_weak_symbols=no
15614 if test "x$cf_cv_weak_symbols" = xyes ; then
15616 cat >>confdefs.h <<\EOF
15617 #define USE_WEAK_SYMBOLS 1
15624 if test "x$with_pthread" = "xyes" ; then
15626 cat >>confdefs.h <<\EOF
15627 #define USE_PTHREADS 1
15630 enable_reentrant=yes
15631 if test "x$cf_cv_weak_symbols" = xyes ; then
15634 cf_add_libs="$PRIVATE_LIBS"
15637 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15638 # filter duplicates
15639 for cf_add_1lib in $cf_add_0lib; do
15640 for cf_add_2lib in $cf_add_libs; do
15641 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15646 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15648 PRIVATE_LIBS="$cf_add_libs"
15653 # Reentrant code has to be opaque; there's little advantage to making ncurses
15654 # opaque outside of that, so there is no --enable-opaque option. We can use
15655 # this option without --with-pthreads, but this will be always set for
15657 echo "$as_me:15657: checking if you want reentrant code" >&5
15658 echo $ECHO_N "checking if you want reentrant code... $ECHO_C" >&6
15660 # Check whether --enable-reentrant or --disable-reentrant was given.
15661 if test "${enable_reentrant+set}" = set; then
15662 enableval="$enable_reentrant"
15663 with_reentrant=$enableval
15667 echo "$as_me:15667: result: $with_reentrant" >&5
15668 echo "${ECHO_T}$with_reentrant" >&6
15669 if test "x$with_reentrant" = xyes ; then
15670 cf_cv_enable_reentrant=1
15671 cf_cv_enable_opaque="NCURSES_INTERNALS"
15673 if test "x$cf_cv_weak_symbols" = xyes ; then
15675 # remove pthread library from $LIBS
15676 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
15678 cf_add_libs="$TEST_LIBS"
15681 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15682 # filter duplicates
15683 for cf_add_1lib in $cf_add_0lib; do
15684 for cf_add_2lib in $cf_add_libs; do
15685 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15690 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15692 TEST_LIBS="$cf_add_libs"
15694 cf_add_libs="$TEST_LIBS2"
15697 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15698 # filter duplicates
15699 for cf_add_1lib in $cf_add_0lib; do
15700 for cf_add_2lib in $cf_add_libs; do
15701 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15706 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15708 TEST_LIBS2="$cf_add_libs"
15710 cf_add_libs="$PRIVATE_LIBS"
15713 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15714 # filter duplicates
15715 for cf_add_1lib in $cf_add_0lib; do
15716 for cf_add_2lib in $cf_add_libs; do
15717 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15722 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15724 PRIVATE_LIBS="$cf_add_libs"
15727 # when not using weak symbols but with_reentrant,
15728 # add 't' to the library suffix on all platforms
15729 # except cygwin, where we only do that if ALSO
15730 # compiling with full thread support.
15732 (*cygwin* | *msys*)
15733 if test "$with_pthread" = "yes" ; then
15734 if test "x$disable_lib_suffixes" = "xno" ; then
15735 LIB_SUFFIX="t${LIB_SUFFIX}"
15739 if test "x$disable_lib_suffixes" = "xno" ; then
15740 LIB_SUFFIX="t${LIB_SUFFIX}"
15746 cat >>confdefs.h <<\EOF
15747 #define USE_REENTRANT 1
15750 if test "${with_abi_version+set}" != set; then
15751 case "$cf_cv_rel_version" in
15753 cf_cv_rel_version=6.0
15754 cf_cv_abi_version=6
15755 { echo "$as_me:15755: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
15756 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
15762 cf_cv_enable_reentrant=0
15763 cf_cv_enable_opaque="NCURSES_OPAQUE"
15764 NCURSES_SIZE_T=short
15767 echo "$as_me:15767: checking if you want opaque curses-library structures" >&5
15768 echo $ECHO_N "checking if you want opaque curses-library structures... $ECHO_C" >&6
15770 # Check whether --enable-opaque-curses or --disable-opaque-curses was given.
15771 if test "${enable_opaque_curses+set}" = set; then
15772 enableval="$enable_opaque_curses"
15773 test "$enableval" != yes && enableval=no
15774 if test "$enableval" != "no" ; then
15775 enable_opaque_curses=yes
15778 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
15779 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=no
15785 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
15786 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=no
15789 echo "$as_me:15789: result: $enable_opaque_curses" >&5
15790 echo "${ECHO_T}$enable_opaque_curses" >&6
15792 test "$cf_cv_enable_reentrant" = 1 && \
15793 test "$enable_opaque_curses" = no && \
15794 { { echo "$as_me:15794: error: reentrant configuration requires opaque library" >&5
15795 echo "$as_me: error: reentrant configuration requires opaque library" >&2;}
15796 { (exit 1); exit 1; }; }
15798 echo "$as_me:15798: checking if you want opaque form-library structures" >&5
15799 echo $ECHO_N "checking if you want opaque form-library structures... $ECHO_C" >&6
15801 # Check whether --enable-opaque-form or --disable-opaque-form was given.
15802 if test "${enable_opaque_form+set}" = set; then
15803 enableval="$enable_opaque_form"
15804 enable_opaque_form=yes
15806 enable_opaque_form=no
15808 echo "$as_me:15808: result: $enable_opaque_form" >&5
15809 echo "${ECHO_T}$enable_opaque_form" >&6
15811 echo "$as_me:15811: checking if you want opaque menu-library structures" >&5
15812 echo $ECHO_N "checking if you want opaque menu-library structures... $ECHO_C" >&6
15814 # Check whether --enable-opaque-menu or --disable-opaque-menu was given.
15815 if test "${enable_opaque_menu+set}" = set; then
15816 enableval="$enable_opaque_menu"
15817 enable_opaque_menu=yes
15819 enable_opaque_menu=no
15821 echo "$as_me:15821: result: $enable_opaque_menu" >&5
15822 echo "${ECHO_T}$enable_opaque_menu" >&6
15824 echo "$as_me:15824: checking if you want opaque panel-library structures" >&5
15825 echo $ECHO_N "checking if you want opaque panel-library structures... $ECHO_C" >&6
15827 # Check whether --enable-opaque-panel or --disable-opaque-panel was given.
15828 if test "${enable_opaque_panel+set}" = set; then
15829 enableval="$enable_opaque_panel"
15830 enable_opaque_panel=yes
15832 enable_opaque_panel=no
15834 echo "$as_me:15834: result: $enable_opaque_panel" >&5
15835 echo "${ECHO_T}$enable_opaque_panel" >&6
15837 NCURSES_OPAQUE=0; test "$enable_opaque_curses" = yes && NCURSES_OPAQUE=1
15838 NCURSES_OPAQUE_FORM=0; test "$enable_opaque_form" = yes && NCURSES_OPAQUE_FORM=1
15839 NCURSES_OPAQUE_MENU=0; test "$enable_opaque_menu" = yes && NCURSES_OPAQUE_MENU=1
15840 NCURSES_OPAQUE_PANEL=0; test "$enable_opaque_panel" = yes && NCURSES_OPAQUE_PANEL=1
15842 ### Allow using a different wrap-prefix
15843 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
15844 echo "$as_me:15844: checking for prefix used to wrap public variables" >&5
15845 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
15847 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
15848 if test "${with_wrap_prefix+set}" = set; then
15849 withval="$with_wrap_prefix"
15850 NCURSES_WRAP_PREFIX=$withval
15852 NCURSES_WRAP_PREFIX=_nc_
15854 echo "$as_me:15854: result: $NCURSES_WRAP_PREFIX" >&5
15855 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
15857 NCURSES_WRAP_PREFIX=_nc_
15860 cat >>confdefs.h <<EOF
15861 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
15864 ###############################################################################
15865 # These options are relatively safe to experiment with.
15867 echo "$as_me:15867: checking if you want all development code" >&5
15868 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
15870 # Check whether --with-develop or --without-develop was given.
15871 if test "${with_develop+set}" = set; then
15872 withval="$with_develop"
15873 with_develop=$withval
15877 echo "$as_me:15877: result: $with_develop" >&5
15878 echo "${ECHO_T}$with_develop" >&6
15880 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
15881 echo "$as_me:15881: checking if you want hard-tabs code" >&5
15882 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
15884 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
15885 if test "${enable_hard_tabs+set}" = set; then
15886 enableval="$enable_hard_tabs"
15889 enable_hard_tabs=$with_develop
15891 echo "$as_me:15891: result: $enable_hard_tabs" >&5
15892 echo "${ECHO_T}$enable_hard_tabs" >&6
15893 test "x$enable_hard_tabs" = xyes &&
15894 cat >>confdefs.h <<\EOF
15895 #define USE_HARD_TABS 1
15898 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
15899 echo "$as_me:15899: checking if you want limited support for xmc" >&5
15900 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
15902 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
15903 if test "${enable_xmc_glitch+set}" = set; then
15904 enableval="$enable_xmc_glitch"
15907 enable_xmc_glitch=$with_develop
15909 echo "$as_me:15909: result: $enable_xmc_glitch" >&5
15910 echo "${ECHO_T}$enable_xmc_glitch" >&6
15911 test "x$enable_xmc_glitch" = xyes &&
15912 cat >>confdefs.h <<\EOF
15913 #define USE_XMC_SUPPORT 1
15916 ###############################################################################
15917 # These are just experimental, probably should not be in a package:
15919 echo "$as_me:15919: checking if you do not want to assume colors are white-on-black" >&5
15920 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
15922 # Check whether --enable-assumed-color or --disable-assumed-color was given.
15923 if test "${enable_assumed_color+set}" = set; then
15924 enableval="$enable_assumed_color"
15925 with_assumed_color=$enableval
15927 with_assumed_color=yes
15929 echo "$as_me:15929: result: $with_assumed_color" >&5
15930 echo "${ECHO_T}$with_assumed_color" >&6
15931 test "x$with_assumed_color" = xyes &&
15932 cat >>confdefs.h <<\EOF
15933 #define USE_ASSUMED_COLOR 1
15936 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
15937 echo "$as_me:15937: checking if you want hashmap scrolling-optimization code" >&5
15938 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
15940 # Check whether --enable-hashmap or --disable-hashmap was given.
15941 if test "${enable_hashmap+set}" = set; then
15942 enableval="$enable_hashmap"
15943 with_hashmap=$enableval
15947 echo "$as_me:15947: result: $with_hashmap" >&5
15948 echo "${ECHO_T}$with_hashmap" >&6
15949 test "x$with_hashmap" = xyes &&
15950 cat >>confdefs.h <<\EOF
15951 #define USE_HASHMAP 1
15954 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
15955 echo "$as_me:15955: checking if you want colorfgbg code" >&5
15956 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
15958 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
15959 if test "${enable_colorfgbg+set}" = set; then
15960 enableval="$enable_colorfgbg"
15961 with_colorfgbg=$enableval
15965 echo "$as_me:15965: result: $with_colorfgbg" >&5
15966 echo "${ECHO_T}$with_colorfgbg" >&6
15967 test "x$with_colorfgbg" = xyes &&
15968 cat >>confdefs.h <<\EOF
15969 #define USE_COLORFGBG 1
15972 ### use option --enable-fvisibility to turn on use of gcc-specific feature
15973 echo "$as_me:15973: checking if you want to use gcc -fvisibility option" >&5
15974 echo $ECHO_N "checking if you want to use gcc -fvisibility option... $ECHO_C" >&6
15976 # Check whether --enable-fvisibility or --disable-fvisibility was given.
15977 if test "${enable_fvisibility+set}" = set; then
15978 enableval="$enable_fvisibility"
15979 cf_with_fvisibility=$enableval
15981 cf_with_fvisibility=no
15983 echo "$as_me:15983: result: $cf_with_fvisibility" >&5
15984 echo "${ECHO_T}$cf_with_fvisibility" >&6
15987 NCURSES_CXX_IMPEXP=
15988 if test "x$cf_with_fvisibility" = xyes; then
15990 echo "$as_me:15990: checking if $CC -fvisibility=hidden option works" >&5
15991 echo $ECHO_N "checking if $CC -fvisibility=hidden option works... $ECHO_C" >&6
15992 if test "${cf_cv_fvisibility_hidden+set}" = set; then
15993 echo $ECHO_N "(cached) $ECHO_C" >&6
15996 cf_save_cflags="$CFLAGS"
15997 CFLAGS="$CFLAGS -fvisibility=hidden"
15998 cat >"conftest.$ac_ext" <<_ACEOF
15999 #line 15999 "configure"
16000 #include "confdefs.h"
16002 __attribute__ ((visibility("default"))) int somefunc() {return 42;}
16008 if (somefunc()) return 1;
16014 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16015 if { (eval echo "$as_me:16015: \"$ac_link\"") >&5
16016 (eval $ac_link) 2>&5
16018 echo "$as_me:16018: \$? = $ac_status" >&5
16019 (exit "$ac_status"); } &&
16020 { ac_try='test -s "conftest$ac_exeext"'
16021 { (eval echo "$as_me:16021: \"$ac_try\"") >&5
16022 (eval $ac_try) 2>&5
16024 echo "$as_me:16024: \$? = $ac_status" >&5
16025 (exit "$ac_status"); }; }; then
16026 cf_cv_fvisibility_hidden=yes
16028 echo "$as_me: failed program was:" >&5
16029 cat "conftest.$ac_ext" >&5
16030 cf_cv_fvisibility_hidden=no
16032 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16033 CFLAGS=$cf_save_cflags
16036 echo "$as_me:16036: result: $cf_cv_fvisibility_hidden" >&5
16037 echo "${ECHO_T}$cf_cv_fvisibility_hidden" >&6
16039 if test "x$cf_cv_fvisibility_hidden" = xyes
16045 cf_new_extra_cppflags=
16047 for cf_add_cflags in -fvisibility=hidden
16049 case "$cf_fix_cppflags" in
16051 case "$cf_add_cflags" in
16052 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16053 case "$cf_add_cflags" in
16055 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16057 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16058 && test -z "${cf_tst_cflags}" \
16059 && cf_fix_cppflags=yes
16061 if test "$cf_fix_cppflags" = yes ; then
16063 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16064 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16067 elif test "${cf_tst_cflags}" = "\"'" ; then
16069 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16070 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16076 case "$CPPFLAGS" in
16080 case "$cf_add_cflags" in
16082 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16084 CPPFLAGS=`echo "$CPPFLAGS" | \
16085 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16086 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16091 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16092 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16099 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16100 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16107 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16108 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16110 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
16112 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16113 && test -z "${cf_tst_cflags}" \
16114 && cf_fix_cppflags=no
16119 if test -n "$cf_new_cflags" ; then
16121 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16122 CFLAGS="${CFLAGS}$cf_new_cflags"
16126 if test -n "$cf_new_cppflags" ; then
16128 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16129 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16133 if test -n "$cf_new_extra_cppflags" ; then
16135 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16136 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16140 NCURSES_IMPEXP="__attribute__ ((visibility(\"default\")))"
16145 ac_cpp='$CXXCPP $CPPFLAGS'
16146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
16147 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
16148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16149 ac_main_return="return"
16151 echo "$as_me:16151: checking if $CXX -fvisibility=hidden option works" >&5
16152 echo $ECHO_N "checking if $CXX -fvisibility=hidden option works... $ECHO_C" >&6
16153 if test "${cf_cv_fvisibility_hidden2+set}" = set; then
16154 echo $ECHO_N "(cached) $ECHO_C" >&6
16157 cf_save_cflags="$CXXFLAGS"
16158 CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
16159 cat >"conftest.$ac_ext" <<_ACEOF
16160 #line 16160 "configure"
16161 #include "confdefs.h"
16163 __attribute__ ((visibility("default"))) int somefunc() {return 42;}
16169 if (somefunc()) return 1;
16175 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16176 if { (eval echo "$as_me:16176: \"$ac_link\"") >&5
16177 (eval $ac_link) 2>&5
16179 echo "$as_me:16179: \$? = $ac_status" >&5
16180 (exit "$ac_status"); } &&
16181 { ac_try='test -s "conftest$ac_exeext"'
16182 { (eval echo "$as_me:16182: \"$ac_try\"") >&5
16183 (eval $ac_try) 2>&5
16185 echo "$as_me:16185: \$? = $ac_status" >&5
16186 (exit "$ac_status"); }; }; then
16187 cf_cv_fvisibility_hidden2=yes
16189 echo "$as_me: failed program was:" >&5
16190 cat "conftest.$ac_ext" >&5
16191 cf_cv_fvisibility_hidden2=no
16193 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16194 CXXFLAGS=$cf_save_cflags
16197 echo "$as_me:16197: result: $cf_cv_fvisibility_hidden2" >&5
16198 echo "${ECHO_T}$cf_cv_fvisibility_hidden2" >&6
16200 if test "x$cf_cv_fvisibility_hidden2" = xyes
16203 cf_save_CXXFLAGS="$CFLAGS"
16209 cf_new_extra_cppflags=
16211 for cf_add_cflags in -fvisibility=hidden
16213 case "$cf_fix_cppflags" in
16215 case "$cf_add_cflags" in
16216 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16217 case "$cf_add_cflags" in
16219 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16221 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16222 && test -z "${cf_tst_cflags}" \
16223 && cf_fix_cppflags=yes
16225 if test "$cf_fix_cppflags" = yes ; then
16227 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16228 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16231 elif test "${cf_tst_cflags}" = "\"'" ; then
16233 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16234 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16240 case "$CPPFLAGS" in
16244 case "$cf_add_cflags" in
16246 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16248 CPPFLAGS=`echo "$CPPFLAGS" | \
16249 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16250 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16255 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16256 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16263 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16264 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16271 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16272 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16274 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
16276 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16277 && test -z "${cf_tst_cflags}" \
16278 && cf_fix_cppflags=no
16283 if test -n "$cf_new_cflags" ; then
16285 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16286 CFLAGS="${CFLAGS}$cf_new_cflags"
16290 if test -n "$cf_new_cppflags" ; then
16292 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16293 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16297 if test -n "$cf_new_extra_cppflags" ; then
16299 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16300 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16305 CFLAGS="$cf_save_CXXFLAGS"
16307 NCURSES_CXX_IMPEXP="__attribute__ ((visibility(\"default\")))"
16310 ac_cpp='$CPP $CPPFLAGS'
16311 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
16312 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
16313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16314 ac_main_return="return"
16319 ### use option --enable-interop to turn on use of bindings used for interop
16320 echo "$as_me:16320: checking if you want interop bindings" >&5
16321 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
16323 # Check whether --enable-interop or --disable-interop was given.
16324 if test "${enable_interop+set}" = set; then
16325 enableval="$enable_interop"
16326 with_exp_interop=$enableval
16328 with_exp_interop=$cf_dft_interop
16330 echo "$as_me:16330: result: $with_exp_interop" >&5
16331 echo "${ECHO_T}$with_exp_interop" >&6
16333 NCURSES_INTEROP_FUNCS=0
16334 test "x$with_exp_interop" = xyes && NCURSES_INTEROP_FUNCS=1
16336 echo "$as_me:16336: checking if you want experimental safe-sprintf code" >&5
16337 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
16339 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
16340 if test "${enable_safe_sprintf+set}" = set; then
16341 enableval="$enable_safe_sprintf"
16342 with_safe_sprintf=$enableval
16344 with_safe_sprintf=no
16346 echo "$as_me:16346: result: $with_safe_sprintf" >&5
16347 echo "${ECHO_T}$with_safe_sprintf" >&6
16349 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
16350 # when hashmap is used scroll hints are useless
16351 if test "$with_hashmap" = no ; then
16352 echo "$as_me:16352: checking if you want to experiment without scrolling-hints code" >&5
16353 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
16355 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
16356 if test "${enable_scroll_hints+set}" = set; then
16357 enableval="$enable_scroll_hints"
16358 with_scroll_hints=$enableval
16360 with_scroll_hints=yes
16362 echo "$as_me:16362: result: $with_scroll_hints" >&5
16363 echo "${ECHO_T}$with_scroll_hints" >&6
16364 test "x$with_scroll_hints" = xyes &&
16365 cat >>confdefs.h <<\EOF
16366 #define USE_SCROLL_HINTS 1
16371 echo "$as_me:16371: checking if you want wgetch-events code" >&5
16372 echo $ECHO_N "checking if you want wgetch-events code... $ECHO_C" >&6
16374 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
16375 if test "${enable_wgetch_events+set}" = set; then
16376 enableval="$enable_wgetch_events"
16377 with_wgetch_events=$enableval
16379 with_wgetch_events=no
16381 echo "$as_me:16381: result: $with_wgetch_events" >&5
16382 echo "${ECHO_T}$with_wgetch_events" >&6
16383 if test "x$with_wgetch_events" = xyes ; then
16385 cat >>confdefs.h <<\EOF
16386 #define NCURSES_WGETCH_EVENTS 1
16389 NCURSES_WGETCH_EVENTS=1
16391 NCURSES_WGETCH_EVENTS=0
16394 case "$cf_cv_system_name" in
16395 (*mingw32*|*mingw64*|*-msvc*)
16396 echo "$as_me:16396: checking if you want experimental-Windows driver" >&5
16397 echo $ECHO_N "checking if you want experimental-Windows driver... $ECHO_C" >&6
16399 # Check whether --enable-exp-win32 or --disable-exp-win32 was given.
16400 if test "${enable_exp_win32+set}" = set; then
16401 enableval="$enable_exp_win32"
16402 with_exp_win32=$enableval
16406 echo "$as_me:16406: result: $with_exp_win32" >&5
16407 echo "${ECHO_T}$with_exp_win32" >&6
16408 if test "x$with_exp_win32" = xyes
16411 cat >>confdefs.h <<\EOF
16412 #define EXP_WIN32_DRIVER 1
16416 INTERNALS_HDR='$(INCDIR)/nc_win32.h'
16418 INTERNALS_HDR='$(INCDIR)/nc_mingw.h'
16428 ###############################################################################
16430 ### use option --disable-echo to suppress full display compiling commands
16432 echo "$as_me:16432: checking if you want to see long compiling messages" >&5
16433 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
16435 # Check whether --enable-echo or --disable-echo was given.
16436 if test "${enable_echo+set}" = set; then
16437 enableval="$enable_echo"
16438 test "$enableval" != no && enableval=yes
16439 if test "$enableval" != "yes" ; then
16442 ECHO_LD='@echo linking $@;'
16443 RULE_CC='@echo compiling $<'
16444 SHOW_CC='@echo compiling $@'
16466 echo "$as_me:16466: result: $enableval" >&5
16467 echo "${ECHO_T}$enableval" >&6
16469 if test "x$enable_echo" = xyes; then
16472 ECHO_LINK='@ echo linking $@ ... ;'
16473 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
16474 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
16477 # --disable-stripping is used for debugging
16479 echo "$as_me:16479: checking if you want to install stripped executables" >&5
16480 echo $ECHO_N "checking if you want to install stripped executables... $ECHO_C" >&6
16482 # Check whether --enable-stripping or --disable-stripping was given.
16483 if test "${enable_stripping+set}" = set; then
16484 enableval="$enable_stripping"
16485 test "$enableval" != no && enableval=yes
16486 if test "$enableval" != "yes" ; then
16487 enable_stripping=no
16489 enable_stripping=yes
16493 enable_stripping=yes
16496 echo "$as_me:16496: result: $enable_stripping" >&5
16497 echo "${ECHO_T}$enable_stripping" >&6
16499 if test "$enable_stripping" = yes
16506 : "${INSTALL:=install}"
16507 echo "$as_me:16507: checking if install accepts -p option" >&5
16508 echo $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6
16509 if test "${cf_cv_install_p+set}" = set; then
16510 echo $ECHO_N "(cached) $ECHO_C" >&6
16517 if $INSTALL -p conftest.in conftest.out 2>/dev/null
16519 if test -f conftest.out/conftest.in
16521 test conftest.in -nt conftest.out/conftest.in 2>conftest.err && \
16522 test conftest.out/conftest.in -nt conftest.in 2>conftest.err
16523 if test -s conftest.err
16527 cf_cv_install_p=yes
16538 echo "$as_me:16538: result: $cf_cv_install_p" >&5
16539 echo "${ECHO_T}$cf_cv_install_p" >&6
16541 echo "$as_me:16541: checking if install needs to be told about ownership" >&5
16542 echo $ECHO_N "checking if install needs to be told about ownership... $ECHO_C" >&6
16543 case `$ac_config_guess` in
16552 echo "$as_me:16552: result: $with_install_o" >&5
16553 echo "${ECHO_T}$with_install_o" >&6
16554 if test "x$with_install_o" = xyes
16556 INSTALL_OPT_O="`id root|sed -e 's/uid=[0-9]*(/ -o /' -e 's/gid=[0-9]*(/ -g /' -e 's/ [^=[:space:]][^=[:space:]]*=.*/ /' -e 's/)//g'`"
16561 # If we're avoiding relinking of shared libraries during install, that is to
16562 # avoid modifying the build-tree. For the same reason, avoid doing ranlib if
16563 # the install program has "-p" (for preserving timestamps).
16564 cf_cv_do_reranlib=yes
16565 if test "x$cf_cv_install_p" = xyes
16567 if test "x$cf_cv_do_relink" != xyes
16569 cf_cv_do_reranlib=no
16571 INSTALL_LIB="$INSTALL_LIB $INSTALL_OPT_P"
16575 ### use option --enable-warnings to turn on all gcc warnings
16577 echo "$as_me:16577: checking if you want to use C11 _Noreturn feature" >&5
16578 echo $ECHO_N "checking if you want to use C11 _Noreturn feature... $ECHO_C" >&6
16580 # Check whether --enable-stdnoreturn or --disable-stdnoreturn was given.
16581 if test "${enable_stdnoreturn+set}" = set; then
16582 enableval="$enable_stdnoreturn"
16583 test "$enableval" != yes && enableval=no
16584 if test "$enableval" != "no" ; then
16585 enable_stdnoreturn=yes
16587 enable_stdnoreturn=no
16591 enable_stdnoreturn=no
16594 echo "$as_me:16594: result: $enable_stdnoreturn" >&5
16595 echo "${ECHO_T}$enable_stdnoreturn" >&6
16597 if test $enable_stdnoreturn = yes; then
16598 echo "$as_me:16598: checking for C11 _Noreturn feature" >&5
16599 echo $ECHO_N "checking for C11 _Noreturn feature... $ECHO_C" >&6
16600 if test "${cf_cv_c11_noreturn+set}" = set; then
16601 echo $ECHO_N "(cached) $ECHO_C" >&6
16603 cat >"conftest.$ac_ext" <<_ACEOF
16604 #line 16604 "configure"
16605 #include "confdefs.h"
16608 #include <stdlib.h>
16609 #include <stdnoreturn.h>
16610 static _Noreturn void giveup(void) { exit(0); }
16615 if (feof(stdin)) giveup()
16620 rm -f "conftest.$ac_objext"
16621 if { (eval echo "$as_me:16621: \"$ac_compile\"") >&5
16622 (eval $ac_compile) 2>&5
16624 echo "$as_me:16624: \$? = $ac_status" >&5
16625 (exit "$ac_status"); } &&
16626 { ac_try='test -s "conftest.$ac_objext"'
16627 { (eval echo "$as_me:16627: \"$ac_try\"") >&5
16628 (eval $ac_try) 2>&5
16630 echo "$as_me:16630: \$? = $ac_status" >&5
16631 (exit "$ac_status"); }; }; then
16632 cf_cv_c11_noreturn=yes
16634 echo "$as_me: failed program was:" >&5
16635 cat "conftest.$ac_ext" >&5
16636 cf_cv_c11_noreturn=no
16638 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
16641 echo "$as_me:16641: result: $cf_cv_c11_noreturn" >&5
16642 echo "${ECHO_T}$cf_cv_c11_noreturn" >&6
16644 cf_cv_c11_noreturn=no,
16647 if test "$cf_cv_c11_noreturn" = yes; then
16649 cat >>confdefs.h <<\EOF
16650 #define HAVE_STDNORETURN_H 1
16653 cat >>confdefs.h <<EOF
16654 #define STDC_NORETURN _Noreturn
16657 HAVE_STDNORETURN_H=1
16659 HAVE_STDNORETURN_H=0
16662 if test "$GCC" = yes || test "$GXX" = yes
16665 if test "$GCC" = yes || test "$GXX" = yes
16669 test -n "$verbose" && echo " repairing CFLAGS: $CFLAGS" 1>&6
16671 echo "${as_me:-configure}:16671: testing repairing CFLAGS: $CFLAGS ..." 1>&5
16674 for cf_temp_scan in $CFLAGS
16676 case "x$cf_temp_scan" in
16679 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
16680 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
16685 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
16686 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
16691 CFLAGS="$cf_temp_flags"
16692 test -n "$verbose" && echo " ... fixed $CFLAGS" 1>&6
16694 echo "${as_me:-configure}:16694: testing ... fixed $CFLAGS ..." 1>&5
16696 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
16698 echo "${as_me:-configure}:16698: testing ... extra $EXTRA_CFLAGS ..." 1>&5
16704 if test "$GCC" = yes || test "$GXX" = yes
16708 test -n "$verbose" && echo " repairing CPPFLAGS: $CPPFLAGS" 1>&6
16710 echo "${as_me:-configure}:16710: testing repairing CPPFLAGS: $CPPFLAGS ..." 1>&5
16713 for cf_temp_scan in $CPPFLAGS
16715 case "x$cf_temp_scan" in
16718 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
16719 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
16724 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
16725 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
16730 CPPFLAGS="$cf_temp_flags"
16731 test -n "$verbose" && echo " ... fixed $CPPFLAGS" 1>&6
16733 echo "${as_me:-configure}:16733: testing ... fixed $CPPFLAGS ..." 1>&5
16735 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
16737 echo "${as_me:-configure}:16737: testing ... extra $EXTRA_CFLAGS ..." 1>&5
16743 if test "$GCC" = yes || test "$GXX" = yes
16747 test -n "$verbose" && echo " repairing LDFLAGS: $LDFLAGS" 1>&6
16749 echo "${as_me:-configure}:16749: testing repairing LDFLAGS: $LDFLAGS ..." 1>&5
16752 for cf_temp_scan in $LDFLAGS
16754 case "x$cf_temp_scan" in
16757 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
16758 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
16763 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
16764 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
16769 LDFLAGS="$cf_temp_flags"
16770 test -n "$verbose" && echo " ... fixed $LDFLAGS" 1>&6
16772 echo "${as_me:-configure}:16772: testing ... fixed $LDFLAGS ..." 1>&5
16774 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
16776 echo "${as_me:-configure}:16776: testing ... extra $EXTRA_CFLAGS ..." 1>&5
16782 echo "$as_me:16782: checking if you want to turn on gcc warnings" >&5
16783 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
16785 # Check whether --enable-warnings or --disable-warnings was given.
16786 if test "${enable_warnings+set}" = set; then
16787 enableval="$enable_warnings"
16788 test "$enableval" != yes && enableval=no
16789 if test "$enableval" != "no" ; then
16790 enable_warnings=yes
16799 echo "$as_me:16799: result: $enable_warnings" >&5
16800 echo "${ECHO_T}$enable_warnings" >&6
16801 if test "$enable_warnings" = "yes"
16804 if test "x$have_x" = xyes; then
16806 cf_save_LIBS_CF_CONST_X_STRING="$LIBS"
16807 cf_save_CFLAGS_CF_CONST_X_STRING="$CFLAGS"
16808 cf_save_CPPFLAGS_CF_CONST_X_STRING="$CPPFLAGS"
16809 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
16810 for cf_X_CFLAGS in $X_CFLAGS
16812 case "x$cf_X_CFLAGS" in
16814 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
16817 CFLAGS="$CFLAGS $cf_X_CFLAGS"
16822 cat >"conftest.$ac_ext" <<_ACEOF
16823 #line 16823 "configure"
16824 #include "confdefs.h"
16826 #include <stdlib.h>
16827 #include <X11/Intrinsic.h>
16832 String foo = malloc(1); free((void*)foo)
16837 rm -f "conftest.$ac_objext"
16838 if { (eval echo "$as_me:16838: \"$ac_compile\"") >&5
16839 (eval $ac_compile) 2>&5
16841 echo "$as_me:16841: \$? = $ac_status" >&5
16842 (exit "$ac_status"); } &&
16843 { ac_try='test -s "conftest.$ac_objext"'
16844 { (eval echo "$as_me:16844: \"$ac_try\"") >&5
16845 (eval $ac_try) 2>&5
16847 echo "$as_me:16847: \$? = $ac_status" >&5
16848 (exit "$ac_status"); }; }; then
16850 echo "$as_me:16850: checking for X11/Xt const-feature" >&5
16851 echo $ECHO_N "checking for X11/Xt const-feature... $ECHO_C" >&6
16852 if test "${cf_cv_const_x_string+set}" = set; then
16853 echo $ECHO_N "(cached) $ECHO_C" >&6
16856 cat >"conftest.$ac_ext" <<_ACEOF
16857 #line 16857 "configure"
16858 #include "confdefs.h"
16860 #define _CONST_X_STRING /* X11R7.8 (perhaps) */
16861 #undef XTSTRINGDEFINES /* X11R5 and later */
16862 #include <stdlib.h>
16863 #include <X11/Intrinsic.h>
16868 String foo = malloc(1); *foo = 0
16873 rm -f "conftest.$ac_objext"
16874 if { (eval echo "$as_me:16874: \"$ac_compile\"") >&5
16875 (eval $ac_compile) 2>&5
16877 echo "$as_me:16877: \$? = $ac_status" >&5
16878 (exit "$ac_status"); } &&
16879 { ac_try='test -s "conftest.$ac_objext"'
16880 { (eval echo "$as_me:16880: \"$ac_try\"") >&5
16881 (eval $ac_try) 2>&5
16883 echo "$as_me:16883: \$? = $ac_status" >&5
16884 (exit "$ac_status"); }; }; then
16886 cf_cv_const_x_string=no
16889 echo "$as_me: failed program was:" >&5
16890 cat "conftest.$ac_ext" >&5
16892 cf_cv_const_x_string=yes
16895 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
16898 echo "$as_me:16898: result: $cf_cv_const_x_string" >&5
16899 echo "${ECHO_T}$cf_cv_const_x_string" >&6
16901 LIBS="$cf_save_LIBS_CF_CONST_X_STRING"
16902 CFLAGS="$cf_save_CFLAGS_CF_CONST_X_STRING"
16903 CPPFLAGS="$cf_save_CPPFLAGS_CF_CONST_X_STRING"
16905 case "$cf_cv_const_x_string" in
16908 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16909 CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES"
16914 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16915 CPPFLAGS="${CPPFLAGS}-D_CONST_X_STRING"
16921 echo "$as_me: failed program was:" >&5
16922 cat "conftest.$ac_ext" >&5
16924 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
16926 cat > "conftest.$ac_ext" <<EOF
16927 #line 16927 "${as_me:-configure}"
16928 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
16930 if test "$INTEL_COMPILER" = yes
16932 # The "-wdXXX" options suppress warnings:
16933 # remark #1419: external declaration in primary source file
16934 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
16935 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
16936 # remark #193: zero used for undefined preprocessing identifier
16937 # remark #593: variable "curs_sb_left_arrow" was set but never used
16938 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
16939 # remark #869: parameter "tw" was never referenced
16940 # remark #981: operands are evaluated in unspecified order
16941 # warning #279: controlling expression is constant
16943 { echo "$as_me:16943: checking for $CC warning options..." >&5
16944 echo "$as_me: checking for $CC warning options..." >&6;}
16945 cf_save_CFLAGS="$CFLAGS"
16946 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
16958 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
16959 if { (eval echo "$as_me:16959: \"$ac_compile\"") >&5
16960 (eval $ac_compile) 2>&5
16962 echo "$as_me:16962: \$? = $ac_status" >&5
16963 (exit "$ac_status"); }; then
16964 test -n "$verbose" && echo "$as_me:16964: result: ... -$cf_opt" >&5
16965 echo "${ECHO_T}... -$cf_opt" >&6
16966 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
16969 CFLAGS="$cf_save_CFLAGS"
16970 elif test "$GCC" = yes && test "$GCC_VERSION" != "unknown"
16972 { echo "$as_me:16972: checking for $CC warning options..." >&5
16973 echo "$as_me: checking for $CC warning options..." >&6;}
16974 cf_save_CFLAGS="$CFLAGS"
16976 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
16977 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
16978 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
16979 for cf_opt in W Wall \
16980 Wbad-function-cast \
16983 Wdeclaration-after-statement \
16986 Wmissing-declarations \
16987 Wmissing-prototypes \
16991 Wstrict-prototypes \
16992 Wundef Wno-inline $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum
16994 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
16995 if { (eval echo "$as_me:16995: \"$ac_compile\"") >&5
16996 (eval $ac_compile) 2>&5
16998 echo "$as_me:16998: \$? = $ac_status" >&5
16999 (exit "$ac_status"); }; then
17000 test -n "$verbose" && echo "$as_me:17000: result: ... -$cf_opt" >&5
17001 echo "${ECHO_T}... -$cf_opt" >&6
17004 case "$GCC_VERSION" in
17006 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
17008 echo "${as_me:-configure}:17008: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
17014 case "$GCC_VERSION" in
17016 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
17018 echo "${as_me:-configure}:17018: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
17024 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
17027 CFLAGS="$cf_save_CFLAGS"
17033 if test "$GCC" = yes || test "$GXX" = yes
17035 cat > conftest.i <<EOF
17037 #define GCC_PRINTF 0
17040 #define GCC_SCANF 0
17042 #ifndef GCC_NORETURN
17043 #define GCC_NORETURN /* nothing */
17046 #define GCC_UNUSED /* nothing */
17049 if test "$GCC" = yes
17051 { echo "$as_me:17051: checking for $CC __attribute__ directives..." >&5
17052 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
17053 cat > "conftest.$ac_ext" <<EOF
17054 #line 17054 "${as_me:-configure}"
17055 #include "confdefs.h"
17056 #include "conftest.h"
17057 #include "conftest.i"
17059 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
17061 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
17064 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
17066 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
17068 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
17069 extern GCC_NORETURN void oops(char *,...) GCC_PRINTFLIKE(1,2);
17070 extern GCC_NORETURN void foo(void);
17071 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; }
17073 cf_printf_attribute=no
17074 cf_scanf_attribute=no
17075 for cf_attribute in scanf printf unused noreturn
17078 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17080 cf_directive="__attribute__(($cf_attribute))"
17081 echo "checking for $CC $cf_directive" 1>&5
17083 case "$cf_attribute" in
17085 cf_printf_attribute=yes
17086 cat >conftest.h <<EOF
17087 #define GCC_$cf_ATTRIBUTE 1
17091 cf_scanf_attribute=yes
17092 cat >conftest.h <<EOF
17093 #define GCC_$cf_ATTRIBUTE 1
17097 cat >conftest.h <<EOF
17098 #define GCC_$cf_ATTRIBUTE $cf_directive
17103 if { (eval echo "$as_me:17103: \"$ac_compile\"") >&5
17104 (eval $ac_compile) 2>&5
17106 echo "$as_me:17106: \$? = $ac_status" >&5
17107 (exit "$ac_status"); }; then
17108 test -n "$verbose" && echo "$as_me:17108: result: ... $cf_attribute" >&5
17109 echo "${ECHO_T}... $cf_attribute" >&6
17110 cat conftest.h >>confdefs.h
17111 case "$cf_attribute" in
17114 cat >>confdefs.h <<EOF
17115 #define GCC_NORETURN $cf_directive
17120 cf_value='/* nothing */'
17121 if test "$cf_printf_attribute" != no ; then
17122 cf_value='__attribute__((format(printf,fmt,var)))'
17124 cat >>confdefs.h <<\EOF
17125 #define GCC_PRINTF 1
17130 cat >>confdefs.h <<EOF
17131 #define GCC_PRINTFLIKE(fmt,var) $cf_value
17136 cf_value='/* nothing */'
17137 if test "$cf_scanf_attribute" != no ; then
17138 cf_value='__attribute__((format(scanf,fmt,var)))'
17140 cat >>confdefs.h <<\EOF
17141 #define GCC_SCANF 1
17146 cat >>confdefs.h <<EOF
17147 #define GCC_SCANFLIKE(fmt,var) $cf_value
17153 cat >>confdefs.h <<EOF
17154 #define GCC_UNUSED $cf_directive
17162 ${FGREP-fgrep} define conftest.i >>confdefs.h
17169 if test "x$enable_warnings" = "xyes"; then
17171 ADAFLAGS="$ADAFLAGS -gnatg"
17173 if test "x$cf_with_cxx" = xyes ; then
17177 if test "$GCC" = yes ; then
17180 echo "$as_me:17180: checking if this is really Intel C++ compiler" >&5
17181 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
17182 cf_save_CFLAGS="$CXXFLAGS"
17183 CXXFLAGS="$CXXFLAGS -no-gcc"
17184 cat >"conftest.$ac_ext" <<_ACEOF
17185 #line 17185 "configure"
17186 #include "confdefs.h"
17192 #ifdef __INTEL_COMPILER
17201 rm -f "conftest.$ac_objext"
17202 if { (eval echo "$as_me:17202: \"$ac_compile\"") >&5
17203 (eval $ac_compile) 2>&5
17205 echo "$as_me:17205: \$? = $ac_status" >&5
17206 (exit "$ac_status"); } &&
17207 { ac_try='test -s "conftest.$ac_objext"'
17208 { (eval echo "$as_me:17208: \"$ac_try\"") >&5
17209 (eval $ac_try) 2>&5
17211 echo "$as_me:17211: \$? = $ac_status" >&5
17212 (exit "$ac_status"); }; }; then
17213 INTEL_CPLUSPLUS=yes
17214 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
17217 echo "$as_me: failed program was:" >&5
17218 cat "conftest.$ac_ext" >&5
17220 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17221 CXXFLAGS="$cf_save_CFLAGS"
17222 echo "$as_me:17222: result: $INTEL_CPLUSPLUS" >&5
17223 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
17230 if test "$GCC" = yes ; then
17231 echo "$as_me:17231: checking if this is really Clang C++ compiler" >&5
17232 echo $ECHO_N "checking if this is really Clang C++ compiler... $ECHO_C" >&6
17233 cf_save_CFLAGS="$CXXFLAGS"
17234 cat >"conftest.$ac_ext" <<_ACEOF
17235 #line 17235 "configure"
17236 #include "confdefs.h"
17251 rm -f "conftest.$ac_objext"
17252 if { (eval echo "$as_me:17252: \"$ac_compile\"") >&5
17253 (eval $ac_compile) 2>&5
17255 echo "$as_me:17255: \$? = $ac_status" >&5
17256 (exit "$ac_status"); } &&
17257 { ac_try='test -s "conftest.$ac_objext"'
17258 { (eval echo "$as_me:17258: \"$ac_try\"") >&5
17259 (eval $ac_try) 2>&5
17261 echo "$as_me:17261: \$? = $ac_status" >&5
17262 (exit "$ac_status"); }; }; then
17263 CLANG_CPLUSPLUS=yes
17266 echo "$as_me: failed program was:" >&5
17267 cat "conftest.$ac_ext" >&5
17269 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17270 CXXFLAGS="$cf_save_CFLAGS"
17271 echo "$as_me:17271: result: $CLANG_CPLUSPLUS" >&5
17272 echo "${ECHO_T}$CLANG_CPLUSPLUS" >&6
17277 if test "x$CLANG_CPLUSPLUS" = "xyes" ; then
17279 (c[1-9][0-9]|*/c[1-9][0-9])
17280 { echo "$as_me:17280: WARNING: replacing broken compiler alias $CC" >&5
17281 echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;}
17282 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
17287 echo "$as_me:17287: checking version of $CC" >&5
17288 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
17289 CLANG_VERSION="`$CC --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(CLANG[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
17290 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
17291 echo "$as_me:17291: result: $CLANG_VERSION" >&5
17292 echo "${ECHO_T}$CLANG_VERSION" >&6
17294 for cf_clang_opt in \
17295 -Qunused-arguments \
17296 -Wno-error=implicit-function-declaration
17298 echo "$as_me:17298: checking if option $cf_clang_opt works" >&5
17299 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
17300 cf_save_CFLAGS="$CFLAGS"
17301 CFLAGS="$CFLAGS $cf_clang_opt"
17302 cat >"conftest.$ac_ext" <<_ACEOF
17303 #line 17303 "configure"
17304 #include "confdefs.h"
17311 printf("hello!\\n");
17316 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17317 if { (eval echo "$as_me:17317: \"$ac_link\"") >&5
17318 (eval $ac_link) 2>&5
17320 echo "$as_me:17320: \$? = $ac_status" >&5
17321 (exit "$ac_status"); } &&
17322 { ac_try='test -s "conftest$ac_exeext"'
17323 { (eval echo "$as_me:17323: \"$ac_try\"") >&5
17324 (eval $ac_try) 2>&5
17326 echo "$as_me:17326: \$? = $ac_status" >&5
17327 (exit "$ac_status"); }; }; then
17331 echo "$as_me: failed program was:" >&5
17332 cat "conftest.$ac_ext" >&5
17336 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17337 echo "$as_me:17337: result: $cf_clang_optok" >&5
17338 echo "${ECHO_T}$cf_clang_optok" >&6
17339 CFLAGS="$cf_save_CFLAGS"
17340 if test "$cf_clang_optok" = yes; then
17341 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6
17343 echo "${as_me:-configure}:17343: testing adding option $cf_clang_opt ..." 1>&5
17345 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17346 CFLAGS="${CFLAGS}$cf_clang_opt"
17353 ac_cpp='$CXXCPP $CPPFLAGS'
17354 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
17355 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
17356 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17357 ac_main_return="return"
17359 cat > conftest.$ac_ext <<EOF
17360 #line 17360 "configure"
17361 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
17364 if test "$INTEL_CPLUSPLUS" = yes
17366 # The "-wdXXX" options suppress warnings:
17367 # remark #1419: external declaration in primary source file
17368 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
17369 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
17370 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
17371 # remark #193: zero used for undefined preprocessing identifier
17372 # remark #593: variable "curs_sb_left_arrow" was set but never used
17373 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
17374 # remark #869: parameter "tw" was never referenced
17375 # remark #981: operands are evaluated in unspecified order
17376 # warning #269: invalid format string conversion
17378 { echo "$as_me:17378: checking for $CC warning options..." >&5
17379 echo "$as_me: checking for $CC warning options..." >&6;}
17380 cf_save_CXXFLAGS="$CXXFLAGS"
17381 EXTRA_CXXFLAGS="-Wall"
17394 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
17395 if { (eval echo "$as_me:17395: \"$ac_compile\"") >&5
17396 (eval $ac_compile) 2>&5
17398 echo "$as_me:17398: \$? = $ac_status" >&5
17399 (exit "$ac_status"); }; then
17400 test -n "$verbose" && echo "$as_me:17400: result: ... -$cf_opt" >&5
17401 echo "${ECHO_T}... -$cf_opt" >&6
17402 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
17405 CXXFLAGS="$cf_save_CXXFLAGS"
17407 elif test "$GXX" = yes
17409 { echo "$as_me:17409: checking for $CXX warning options..." >&5
17410 echo "$as_me: checking for $CXX warning options..." >&6;}
17411 cf_save_CXXFLAGS="$CXXFLAGS"
17412 EXTRA_CXXFLAGS="-W -Wall"
17413 cf_gxx_extra_warnings=""
17414 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
17415 case "$GXX_VERSION" in
17419 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
17426 Wignored-qualifiers \
17428 Woverloaded-virtual \
17436 Wundef $cf_gxx_extra_warnings Wno-unused
17438 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
17439 if { (eval echo "$as_me:17439: \"$ac_compile\"") >&5
17440 (eval $ac_compile) 2>&5
17442 echo "$as_me:17442: \$? = $ac_status" >&5
17443 (exit "$ac_status"); }; then
17444 test -n "$verbose" && echo "$as_me:17444: result: ... -$cf_opt" >&5
17445 echo "${ECHO_T}... -$cf_opt" >&6
17446 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
17448 test -n "$verbose" && echo "$as_me:17448: result: ... no -$cf_opt" >&5
17449 echo "${ECHO_T}... no -$cf_opt" >&6
17452 CXXFLAGS="$cf_save_CXXFLAGS"
17457 ac_cpp='$CPP $CPPFLAGS'
17458 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
17459 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
17460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17461 ac_main_return="return"
17466 echo "$as_me:17466: checking if you want to work around bogus compiler/loader warnings" >&5
17467 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
17469 # Check whether --enable-string-hacks or --disable-string-hacks was given.
17470 if test "${enable_string_hacks+set}" = set; then
17471 enableval="$enable_string_hacks"
17472 enable_string_hacks=$enableval
17474 enable_string_hacks=no
17476 echo "$as_me:17476: result: $enable_string_hacks" >&5
17477 echo "${ECHO_T}$enable_string_hacks" >&6
17479 if test "x$enable_string_hacks" = "xyes"; then
17481 cat >>confdefs.h <<\EOF
17482 #define USE_STRING_HACKS 1
17485 { echo "$as_me:17485: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
17486 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
17487 echo "$as_me:17487: checking for strlcat" >&5
17488 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
17489 if test "${ac_cv_func_strlcat+set}" = set; then
17490 echo $ECHO_N "(cached) $ECHO_C" >&6
17492 cat >"conftest.$ac_ext" <<_ACEOF
17493 #line 17493 "configure"
17494 #include "confdefs.h"
17495 #define strlcat autoconf_temporary
17496 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
17503 /* We use char because int might match the return type of a gcc2
17504 builtin and then its argument prototype would still apply. */
17505 char strlcat (void);
17511 /* The GNU C library defines stubs for functions which it implements
17512 to always fail with ENOSYS. Some functions are actually named
17513 something starting with __ and the normal name is an alias. */
17514 #if defined (__stub_strlcat) || defined (__stub___strlcat)
17515 #error found stub for strlcat
17523 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17524 if { (eval echo "$as_me:17524: \"$ac_link\"") >&5
17525 (eval $ac_link) 2>&5
17527 echo "$as_me:17527: \$? = $ac_status" >&5
17528 (exit "$ac_status"); } &&
17529 { ac_try='test -s "conftest$ac_exeext"'
17530 { (eval echo "$as_me:17530: \"$ac_try\"") >&5
17531 (eval $ac_try) 2>&5
17533 echo "$as_me:17533: \$? = $ac_status" >&5
17534 (exit "$ac_status"); }; }; then
17535 ac_cv_func_strlcat=yes
17537 echo "$as_me: failed program was:" >&5
17538 cat "conftest.$ac_ext" >&5
17539 ac_cv_func_strlcat=no
17541 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17543 echo "$as_me:17543: result: $ac_cv_func_strlcat" >&5
17544 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
17545 if test "$ac_cv_func_strlcat" = yes; then
17547 cat >>confdefs.h <<\EOF
17548 #define HAVE_STRLCAT 1
17553 echo "$as_me:17553: checking for strlcat in -lbsd" >&5
17554 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
17555 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
17556 echo $ECHO_N "(cached) $ECHO_C" >&6
17558 ac_check_lib_save_LIBS=$LIBS
17560 cat >"conftest.$ac_ext" <<_ACEOF
17561 #line 17561 "configure"
17562 #include "confdefs.h"
17564 /* Override any gcc2 internal prototype to avoid an error. */
17568 /* We use char because int might match the return type of a gcc2
17569 builtin and then its argument prototype would still apply. */
17579 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17580 if { (eval echo "$as_me:17580: \"$ac_link\"") >&5
17581 (eval $ac_link) 2>&5
17583 echo "$as_me:17583: \$? = $ac_status" >&5
17584 (exit "$ac_status"); } &&
17585 { ac_try='test -s "conftest$ac_exeext"'
17586 { (eval echo "$as_me:17586: \"$ac_try\"") >&5
17587 (eval $ac_try) 2>&5
17589 echo "$as_me:17589: \$? = $ac_status" >&5
17590 (exit "$ac_status"); }; }; then
17591 ac_cv_lib_bsd_strlcat=yes
17593 echo "$as_me: failed program was:" >&5
17594 cat "conftest.$ac_ext" >&5
17595 ac_cv_lib_bsd_strlcat=no
17597 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17598 LIBS=$ac_check_lib_save_LIBS
17600 echo "$as_me:17600: result: $ac_cv_lib_bsd_strlcat" >&5
17601 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
17602 if test "$ac_cv_lib_bsd_strlcat" = yes; then
17604 cf_add_libs="$LIBS"
17607 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
17608 # filter duplicates
17609 for cf_add_1lib in $cf_add_0lib; do
17610 for cf_add_2lib in $cf_add_libs; do
17611 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
17616 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
17618 LIBS="$cf_add_libs"
17620 for ac_header in bsd/string.h
17622 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17623 echo "$as_me:17623: checking for $ac_header" >&5
17624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17626 echo $ECHO_N "(cached) $ECHO_C" >&6
17628 cat >"conftest.$ac_ext" <<_ACEOF
17629 #line 17629 "configure"
17630 #include "confdefs.h"
17631 #include <$ac_header>
17633 if { (eval echo "$as_me:17633: \"$ac_cpp "conftest.$ac_ext"\"") >&5
17634 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
17636 $EGREP -v '^ *\+' conftest.er1 >conftest.err
17638 cat conftest.err >&5
17639 echo "$as_me:17639: \$? = $ac_status" >&5
17640 (exit "$ac_status"); } >/dev/null; then
17641 if test -s conftest.err; then
17642 ac_cpp_err=$ac_c_preproc_warn_flag
17649 if test -z "$ac_cpp_err"; then
17650 eval "$as_ac_Header=yes"
17652 echo "$as_me: failed program was:" >&5
17653 cat "conftest.$ac_ext" >&5
17654 eval "$as_ac_Header=no"
17656 rm -f conftest.err "conftest.$ac_ext"
17658 echo "$as_me:17658: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
17659 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
17660 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
17661 cat >>confdefs.h <<EOF
17662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17668 cat >>confdefs.h <<\EOF
17669 #define HAVE_STRLCAT 1
17676 for ac_func in strlcpy snprintf
17678 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17679 echo "$as_me:17679: checking for $ac_func" >&5
17680 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17681 if eval "test \"\${$as_ac_var+set}\" = set"; then
17682 echo $ECHO_N "(cached) $ECHO_C" >&6
17684 cat >"conftest.$ac_ext" <<_ACEOF
17685 #line 17685 "configure"
17686 #include "confdefs.h"
17687 #define $ac_func autoconf_temporary
17688 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
17695 /* We use char because int might match the return type of a gcc2
17696 builtin and then its argument prototype would still apply. */
17697 char $ac_func (void);
17703 /* The GNU C library defines stubs for functions which it implements
17704 to always fail with ENOSYS. Some functions are actually named
17705 something starting with __ and the normal name is an alias. */
17706 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17707 #error found stub for $ac_func
17710 return $ac_func ();
17715 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17716 if { (eval echo "$as_me:17716: \"$ac_link\"") >&5
17717 (eval $ac_link) 2>&5
17719 echo "$as_me:17719: \$? = $ac_status" >&5
17720 (exit "$ac_status"); } &&
17721 { ac_try='test -s "conftest$ac_exeext"'
17722 { (eval echo "$as_me:17722: \"$ac_try\"") >&5
17723 (eval $ac_try) 2>&5
17725 echo "$as_me:17725: \$? = $ac_status" >&5
17726 (exit "$ac_status"); }; }; then
17727 eval "$as_ac_var=yes"
17729 echo "$as_me: failed program was:" >&5
17730 cat "conftest.$ac_ext" >&5
17731 eval "$as_ac_var=no"
17733 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17735 echo "$as_me:17735: result: `eval echo '${'"$as_ac_var"'}'`" >&5
17736 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
17737 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
17738 cat >>confdefs.h <<EOF
17739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17747 ### use option --enable-assertions to turn on generation of assertion code
17748 echo "$as_me:17748: checking if you want to enable runtime assertions" >&5
17749 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
17751 # Check whether --enable-assertions or --disable-assertions was given.
17752 if test "${enable_assertions+set}" = set; then
17753 enableval="$enable_assertions"
17754 with_assertions=$enableval
17758 echo "$as_me:17758: result: $with_assertions" >&5
17759 echo "${ECHO_T}$with_assertions" >&6
17762 if test "$with_assertions" = no
17764 CPPFLAGS="$CPPFLAGS -DNDEBUG"
17767 ADAFLAGS="$ADAFLAGS -gnata"
17772 ### use option --disable-leaks to suppress "permanent" leaks, for testing
17774 echo "$as_me:17774: checking if you want to use dmalloc for testing" >&5
17775 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
17777 # Check whether --with-dmalloc or --without-dmalloc was given.
17778 if test "${with_dmalloc+set}" = set; then
17779 withval="$with_dmalloc"
17780 case "x$withval" in
17783 : "${with_cflags:=-g}"
17784 : "${enable_leaks:=no}"
17787 cat >>confdefs.h <<EOF
17788 #define USE_DMALLOC 1
17796 echo "$as_me:17796: result: ${with_dmalloc:-no}" >&5
17797 echo "${ECHO_T}${with_dmalloc:-no}" >&6
17799 case ".$with_cflags" in
17809 cf_new_extra_cppflags=
17811 for cf_add_cflags in -g
17813 case "$cf_fix_cppflags" in
17815 case "$cf_add_cflags" in
17816 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17817 case "$cf_add_cflags" in
17819 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17821 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17822 && test -z "${cf_tst_cflags}" \
17823 && cf_fix_cppflags=yes
17825 if test "$cf_fix_cppflags" = yes ; then
17827 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17828 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17831 elif test "${cf_tst_cflags}" = "\"'" ; then
17833 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17834 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17840 case "$CPPFLAGS" in
17844 case "$cf_add_cflags" in
17846 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17848 CPPFLAGS=`echo "$CPPFLAGS" | \
17849 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17850 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17855 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
17856 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
17863 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
17864 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
17871 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17872 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17874 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
17876 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17877 && test -z "${cf_tst_cflags}" \
17878 && cf_fix_cppflags=no
17883 if test -n "$cf_new_cflags" ; then
17885 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17886 CFLAGS="${CFLAGS}$cf_new_cflags"
17890 if test -n "$cf_new_cppflags" ; then
17892 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17893 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
17897 if test -n "$cf_new_extra_cppflags" ; then
17899 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
17900 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
17909 if test "$with_dmalloc" = yes ; then
17910 echo "$as_me:17910: checking for dmalloc.h" >&5
17911 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
17912 if test "${ac_cv_header_dmalloc_h+set}" = set; then
17913 echo $ECHO_N "(cached) $ECHO_C" >&6
17915 cat >"conftest.$ac_ext" <<_ACEOF
17916 #line 17916 "configure"
17917 #include "confdefs.h"
17918 #include <dmalloc.h>
17920 if { (eval echo "$as_me:17920: \"$ac_cpp "conftest.$ac_ext"\"") >&5
17921 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
17923 $EGREP -v '^ *\+' conftest.er1 >conftest.err
17925 cat conftest.err >&5
17926 echo "$as_me:17926: \$? = $ac_status" >&5
17927 (exit "$ac_status"); } >/dev/null; then
17928 if test -s conftest.err; then
17929 ac_cpp_err=$ac_c_preproc_warn_flag
17936 if test -z "$ac_cpp_err"; then
17937 ac_cv_header_dmalloc_h=yes
17939 echo "$as_me: failed program was:" >&5
17940 cat "conftest.$ac_ext" >&5
17941 ac_cv_header_dmalloc_h=no
17943 rm -f conftest.err "conftest.$ac_ext"
17945 echo "$as_me:17945: result: $ac_cv_header_dmalloc_h" >&5
17946 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
17947 if test "$ac_cv_header_dmalloc_h" = yes; then
17949 echo "$as_me:17949: checking for dmalloc_debug in -ldmalloc" >&5
17950 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
17951 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
17952 echo $ECHO_N "(cached) $ECHO_C" >&6
17954 ac_check_lib_save_LIBS=$LIBS
17955 LIBS="-ldmalloc $LIBS"
17956 cat >"conftest.$ac_ext" <<_ACEOF
17957 #line 17957 "configure"
17958 #include "confdefs.h"
17960 /* Override any gcc2 internal prototype to avoid an error. */
17964 /* We use char because int might match the return type of a gcc2
17965 builtin and then its argument prototype would still apply. */
17966 char dmalloc_debug ();
17975 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17976 if { (eval echo "$as_me:17976: \"$ac_link\"") >&5
17977 (eval $ac_link) 2>&5
17979 echo "$as_me:17979: \$? = $ac_status" >&5
17980 (exit "$ac_status"); } &&
17981 { ac_try='test -s "conftest$ac_exeext"'
17982 { (eval echo "$as_me:17982: \"$ac_try\"") >&5
17983 (eval $ac_try) 2>&5
17985 echo "$as_me:17985: \$? = $ac_status" >&5
17986 (exit "$ac_status"); }; }; then
17987 ac_cv_lib_dmalloc_dmalloc_debug=yes
17989 echo "$as_me: failed program was:" >&5
17990 cat "conftest.$ac_ext" >&5
17991 ac_cv_lib_dmalloc_dmalloc_debug=no
17993 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17994 LIBS=$ac_check_lib_save_LIBS
17996 echo "$as_me:17996: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
17997 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
17998 if test "$ac_cv_lib_dmalloc_dmalloc_debug" = yes; then
17999 cat >>confdefs.h <<EOF
18000 #define HAVE_LIBDMALLOC 1
18003 LIBS="-ldmalloc $LIBS"
18011 echo "$as_me:18011: checking if you want to use dbmalloc for testing" >&5
18012 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
18014 # Check whether --with-dbmalloc or --without-dbmalloc was given.
18015 if test "${with_dbmalloc+set}" = set; then
18016 withval="$with_dbmalloc"
18017 case "x$withval" in
18020 : "${with_cflags:=-g}"
18021 : "${enable_leaks:=no}"
18024 cat >>confdefs.h <<EOF
18025 #define USE_DBMALLOC 1
18033 echo "$as_me:18033: result: ${with_dbmalloc:-no}" >&5
18034 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
18036 case ".$with_cflags" in
18046 cf_new_extra_cppflags=
18048 for cf_add_cflags in -g
18050 case "$cf_fix_cppflags" in
18052 case "$cf_add_cflags" in
18053 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18054 case "$cf_add_cflags" in
18056 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18058 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18059 && test -z "${cf_tst_cflags}" \
18060 && cf_fix_cppflags=yes
18062 if test "$cf_fix_cppflags" = yes ; then
18064 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18065 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18068 elif test "${cf_tst_cflags}" = "\"'" ; then
18070 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18071 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18077 case "$CPPFLAGS" in
18081 case "$cf_add_cflags" in
18083 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18085 CPPFLAGS=`echo "$CPPFLAGS" | \
18086 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18087 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18092 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18093 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18100 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18101 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18108 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18109 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18111 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18113 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18114 && test -z "${cf_tst_cflags}" \
18115 && cf_fix_cppflags=no
18120 if test -n "$cf_new_cflags" ; then
18122 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18123 CFLAGS="${CFLAGS}$cf_new_cflags"
18127 if test -n "$cf_new_cppflags" ; then
18129 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18130 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18134 if test -n "$cf_new_extra_cppflags" ; then
18136 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18137 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18146 if test "$with_dbmalloc" = yes ; then
18147 echo "$as_me:18147: checking for dbmalloc.h" >&5
18148 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
18149 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
18150 echo $ECHO_N "(cached) $ECHO_C" >&6
18152 cat >"conftest.$ac_ext" <<_ACEOF
18153 #line 18153 "configure"
18154 #include "confdefs.h"
18155 #include <dbmalloc.h>
18157 if { (eval echo "$as_me:18157: \"$ac_cpp "conftest.$ac_ext"\"") >&5
18158 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
18160 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18162 cat conftest.err >&5
18163 echo "$as_me:18163: \$? = $ac_status" >&5
18164 (exit "$ac_status"); } >/dev/null; then
18165 if test -s conftest.err; then
18166 ac_cpp_err=$ac_c_preproc_warn_flag
18173 if test -z "$ac_cpp_err"; then
18174 ac_cv_header_dbmalloc_h=yes
18176 echo "$as_me: failed program was:" >&5
18177 cat "conftest.$ac_ext" >&5
18178 ac_cv_header_dbmalloc_h=no
18180 rm -f conftest.err "conftest.$ac_ext"
18182 echo "$as_me:18182: result: $ac_cv_header_dbmalloc_h" >&5
18183 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
18184 if test "$ac_cv_header_dbmalloc_h" = yes; then
18186 echo "$as_me:18186: checking for debug_malloc in -ldbmalloc" >&5
18187 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
18188 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
18189 echo $ECHO_N "(cached) $ECHO_C" >&6
18191 ac_check_lib_save_LIBS=$LIBS
18192 LIBS="-ldbmalloc $LIBS"
18193 cat >"conftest.$ac_ext" <<_ACEOF
18194 #line 18194 "configure"
18195 #include "confdefs.h"
18197 /* Override any gcc2 internal prototype to avoid an error. */
18201 /* We use char because int might match the return type of a gcc2
18202 builtin and then its argument prototype would still apply. */
18203 char debug_malloc ();
18212 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18213 if { (eval echo "$as_me:18213: \"$ac_link\"") >&5
18214 (eval $ac_link) 2>&5
18216 echo "$as_me:18216: \$? = $ac_status" >&5
18217 (exit "$ac_status"); } &&
18218 { ac_try='test -s "conftest$ac_exeext"'
18219 { (eval echo "$as_me:18219: \"$ac_try\"") >&5
18220 (eval $ac_try) 2>&5
18222 echo "$as_me:18222: \$? = $ac_status" >&5
18223 (exit "$ac_status"); }; }; then
18224 ac_cv_lib_dbmalloc_debug_malloc=yes
18226 echo "$as_me: failed program was:" >&5
18227 cat "conftest.$ac_ext" >&5
18228 ac_cv_lib_dbmalloc_debug_malloc=no
18230 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18231 LIBS=$ac_check_lib_save_LIBS
18233 echo "$as_me:18233: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
18234 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
18235 if test "$ac_cv_lib_dbmalloc_debug_malloc" = yes; then
18236 cat >>confdefs.h <<EOF
18237 #define HAVE_LIBDBMALLOC 1
18240 LIBS="-ldbmalloc $LIBS"
18248 echo "$as_me:18248: checking if you want to use valgrind for testing" >&5
18249 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
18251 # Check whether --with-valgrind or --without-valgrind was given.
18252 if test "${with_valgrind+set}" = set; then
18253 withval="$with_valgrind"
18254 case "x$withval" in
18257 : "${with_cflags:=-g}"
18258 : "${enable_leaks:=no}"
18261 cat >>confdefs.h <<EOF
18262 #define USE_VALGRIND 1
18270 echo "$as_me:18270: result: ${with_valgrind:-no}" >&5
18271 echo "${ECHO_T}${with_valgrind:-no}" >&6
18273 case ".$with_cflags" in
18283 cf_new_extra_cppflags=
18285 for cf_add_cflags in -g
18287 case "$cf_fix_cppflags" in
18289 case "$cf_add_cflags" in
18290 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18291 case "$cf_add_cflags" in
18293 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18295 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18296 && test -z "${cf_tst_cflags}" \
18297 && cf_fix_cppflags=yes
18299 if test "$cf_fix_cppflags" = yes ; then
18301 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18302 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18305 elif test "${cf_tst_cflags}" = "\"'" ; then
18307 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18308 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18314 case "$CPPFLAGS" in
18318 case "$cf_add_cflags" in
18320 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18322 CPPFLAGS=`echo "$CPPFLAGS" | \
18323 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18324 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18329 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18330 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18337 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18338 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18345 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18346 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18348 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18350 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18351 && test -z "${cf_tst_cflags}" \
18352 && cf_fix_cppflags=no
18357 if test -n "$cf_new_cflags" ; then
18359 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18360 CFLAGS="${CFLAGS}$cf_new_cflags"
18364 if test -n "$cf_new_cppflags" ; then
18366 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18367 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18371 if test -n "$cf_new_extra_cppflags" ; then
18373 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18374 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18383 echo "$as_me:18383: checking if you want to perform memory-leak testing" >&5
18384 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
18386 # Check whether --enable-leaks or --disable-leaks was given.
18387 if test "${enable_leaks+set}" = set; then
18388 enableval="$enable_leaks"
18389 enable_leaks=$enableval
18393 if test "x$enable_leaks" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
18394 echo "$as_me:18394: result: $with_no_leaks" >&5
18395 echo "${ECHO_T}$with_no_leaks" >&6
18397 if test "$enable_leaks" = no ; then
18399 cat >>confdefs.h <<\EOF
18403 cat >>confdefs.h <<\EOF
18404 #define YY_NO_LEAKS 1
18409 cat >>confdefs.h <<\EOF
18410 #define HAVE_NC_ALLOC_H 1
18413 ### use option --enable-expanded to generate certain macros as functions
18415 # Check whether --enable-expanded or --disable-expanded was given.
18416 if test "${enable_expanded+set}" = set; then
18417 enableval="$enable_expanded"
18418 test "x$enableval" = xyes &&
18419 cat >>confdefs.h <<\EOF
18420 #define NCURSES_EXPANDED 1
18425 ### use option --disable-macros to suppress macros in favor of functions
18427 # Check whether --enable-macros or --disable-macros was given.
18428 if test "${enable_macros+set}" = set; then
18429 enableval="$enable_macros"
18430 test "$enableval" = no &&
18431 cat >>confdefs.h <<\EOF
18432 #define NCURSES_NOMACROS 1
18437 # Normally we only add trace() to the debug-library. Allow this to be
18438 # extended to all models of the ncurses library:
18440 case "$CFLAGS $CPPFLAGS" in
18446 echo "$as_me:18446: checking whether to add trace feature to all models" >&5
18447 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
18449 # Check whether --with-trace or --without-trace was given.
18450 if test "${with_trace+set}" = set; then
18451 withval="$with_trace"
18452 cf_with_trace=$withval
18454 cf_with_trace=$cf_all_traces
18456 echo "$as_me:18456: result: $cf_with_trace" >&5
18457 echo "${ECHO_T}$cf_with_trace" >&6
18459 if test "x$cf_with_trace" = xyes ; then
18466 cf_new_extra_cppflags=
18468 for cf_add_cflags in -DTRACE
18470 case "$cf_fix_cppflags" in
18472 case "$cf_add_cflags" in
18473 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18474 case "$cf_add_cflags" in
18476 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18478 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18479 && test -z "${cf_tst_cflags}" \
18480 && cf_fix_cppflags=yes
18482 if test "$cf_fix_cppflags" = yes ; then
18484 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18485 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18488 elif test "${cf_tst_cflags}" = "\"'" ; then
18490 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18491 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18497 case "$CPPFLAGS" in
18501 case "$cf_add_cflags" in
18503 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18505 CPPFLAGS=`echo "$CPPFLAGS" | \
18506 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18507 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18512 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18513 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18520 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18521 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18528 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18529 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18531 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18533 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18534 && test -z "${cf_tst_cflags}" \
18535 && cf_fix_cppflags=no
18540 if test -n "$cf_new_cflags" ; then
18542 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18543 CFLAGS="${CFLAGS}$cf_new_cflags"
18547 if test -n "$cf_new_cppflags" ; then
18549 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18550 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18554 if test -n "$cf_new_extra_cppflags" ; then
18556 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18557 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18561 cat >>confdefs.h <<\EOF
18562 #define HAVE__TRACEF 1
18570 echo "$as_me:18570: checking if we want to use GNAT projects" >&5
18571 echo $ECHO_N "checking if we want to use GNAT projects... $ECHO_C" >&6
18573 # Check whether --enable-gnat-projects or --disable-gnat-projects was given.
18574 if test "${enable_gnat_projects+set}" = set; then
18575 enableval="$enable_gnat_projects"
18576 test "$enableval" != no && enableval=yes
18577 if test "$enableval" != "yes" ; then
18578 enable_gnat_projects=no
18580 enable_gnat_projects=yes
18584 enable_gnat_projects=yes
18587 echo "$as_me:18587: result: $enable_gnat_projects" >&5
18588 echo "${ECHO_T}$enable_gnat_projects" >&6
18590 ### Checks for libraries.
18591 case "$cf_cv_system_name" in
18592 (*mingw32*|*mingw64*)
18593 if test "x$with_exp_win32" = xyes ; then
18594 CPPFLAGS="$CPPFLAGS -DWINVER=0x0600 -DWIN32_LEAN_AND_MEAN"
18596 CPPFLAGS="$CPPFLAGS -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN"
18598 # Note: WINVER may be a problem with Windows 10
18601 echo "$as_me:18601: checking for gettimeofday" >&5
18602 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
18603 if test "${ac_cv_func_gettimeofday+set}" = set; then
18604 echo $ECHO_N "(cached) $ECHO_C" >&6
18606 cat >"conftest.$ac_ext" <<_ACEOF
18607 #line 18607 "configure"
18608 #include "confdefs.h"
18609 #define gettimeofday autoconf_temporary
18610 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18611 #undef gettimeofday
18617 /* We use char because int might match the return type of a gcc2
18618 builtin and then its argument prototype would still apply. */
18619 char gettimeofday (void);
18625 /* The GNU C library defines stubs for functions which it implements
18626 to always fail with ENOSYS. Some functions are actually named
18627 something starting with __ and the normal name is an alias. */
18628 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
18629 #error found stub for gettimeofday
18632 return gettimeofday ();
18637 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18638 if { (eval echo "$as_me:18638: \"$ac_link\"") >&5
18639 (eval $ac_link) 2>&5
18641 echo "$as_me:18641: \$? = $ac_status" >&5
18642 (exit "$ac_status"); } &&
18643 { ac_try='test -s "conftest$ac_exeext"'
18644 { (eval echo "$as_me:18644: \"$ac_try\"") >&5
18645 (eval $ac_try) 2>&5
18647 echo "$as_me:18647: \$? = $ac_status" >&5
18648 (exit "$ac_status"); }; }; then
18649 ac_cv_func_gettimeofday=yes
18651 echo "$as_me: failed program was:" >&5
18652 cat "conftest.$ac_ext" >&5
18653 ac_cv_func_gettimeofday=no
18655 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18657 echo "$as_me:18657: result: $ac_cv_func_gettimeofday" >&5
18658 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
18659 if test "$ac_cv_func_gettimeofday" = yes; then
18661 cat >>confdefs.h <<\EOF
18662 #define HAVE_GETTIMEOFDAY 1
18667 echo "$as_me:18667: checking for gettimeofday in -lbsd" >&5
18668 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
18669 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
18670 echo $ECHO_N "(cached) $ECHO_C" >&6
18672 ac_check_lib_save_LIBS=$LIBS
18674 cat >"conftest.$ac_ext" <<_ACEOF
18675 #line 18675 "configure"
18676 #include "confdefs.h"
18678 /* Override any gcc2 internal prototype to avoid an error. */
18682 /* We use char because int might match the return type of a gcc2
18683 builtin and then its argument prototype would still apply. */
18684 char gettimeofday ();
18693 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18694 if { (eval echo "$as_me:18694: \"$ac_link\"") >&5
18695 (eval $ac_link) 2>&5
18697 echo "$as_me:18697: \$? = $ac_status" >&5
18698 (exit "$ac_status"); } &&
18699 { ac_try='test -s "conftest$ac_exeext"'
18700 { (eval echo "$as_me:18700: \"$ac_try\"") >&5
18701 (eval $ac_try) 2>&5
18703 echo "$as_me:18703: \$? = $ac_status" >&5
18704 (exit "$ac_status"); }; }; then
18705 ac_cv_lib_bsd_gettimeofday=yes
18707 echo "$as_me: failed program was:" >&5
18708 cat "conftest.$ac_ext" >&5
18709 ac_cv_lib_bsd_gettimeofday=no
18711 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18712 LIBS=$ac_check_lib_save_LIBS
18714 echo "$as_me:18714: result: $ac_cv_lib_bsd_gettimeofday" >&5
18715 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
18716 if test "$ac_cv_lib_bsd_gettimeofday" = yes; then
18718 cat >>confdefs.h <<\EOF
18719 #define HAVE_GETTIMEOFDAY 1
18722 cf_add_libs="$LIBS"
18725 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
18726 # filter duplicates
18727 for cf_add_1lib in $cf_add_0lib; do
18728 for cf_add_2lib in $cf_add_libs; do
18729 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
18734 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18736 LIBS="$cf_add_libs"
18744 echo "$as_me:18744: checking if -lm needed for math functions" >&5
18745 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
18746 if test "${cf_cv_need_libm+set}" = set; then
18747 echo $ECHO_N "(cached) $ECHO_C" >&6
18750 cat >"conftest.$ac_ext" <<_ACEOF
18751 #line 18751 "configure"
18752 #include "confdefs.h"
18755 #include <stdlib.h>
18761 double x = rand(); printf("result = %g\\n", pow(sin(x),x))
18766 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18767 if { (eval echo "$as_me:18767: \"$ac_link\"") >&5
18768 (eval $ac_link) 2>&5
18770 echo "$as_me:18770: \$? = $ac_status" >&5
18771 (exit "$ac_status"); } &&
18772 { ac_try='test -s "conftest$ac_exeext"'
18773 { (eval echo "$as_me:18773: \"$ac_try\"") >&5
18774 (eval $ac_try) 2>&5
18776 echo "$as_me:18776: \$? = $ac_status" >&5
18777 (exit "$ac_status"); }; }; then
18780 echo "$as_me: failed program was:" >&5
18781 cat "conftest.$ac_ext" >&5
18782 cf_cv_need_libm=yes
18784 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18786 echo "$as_me:18786: result: $cf_cv_need_libm" >&5
18787 echo "${ECHO_T}$cf_cv_need_libm" >&6
18788 if test "$cf_cv_need_libm" = yes
18793 ### Checks for header files.
18794 echo "$as_me:18794: checking for ANSI C header files" >&5
18795 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18796 if test "${ac_cv_header_stdc+set}" = set; then
18797 echo $ECHO_N "(cached) $ECHO_C" >&6
18799 cat >"conftest.$ac_ext" <<_ACEOF
18800 #line 18800 "configure"
18801 #include "confdefs.h"
18802 #include <stdlib.h>
18803 #include <stdarg.h>
18804 #include <string.h>
18808 if { (eval echo "$as_me:18808: \"$ac_cpp "conftest.$ac_ext"\"") >&5
18809 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
18811 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18813 cat conftest.err >&5
18814 echo "$as_me:18814: \$? = $ac_status" >&5
18815 (exit "$ac_status"); } >/dev/null; then
18816 if test -s conftest.err; then
18817 ac_cpp_err=$ac_c_preproc_warn_flag
18824 if test -z "$ac_cpp_err"; then
18825 ac_cv_header_stdc=yes
18827 echo "$as_me: failed program was:" >&5
18828 cat "conftest.$ac_ext" >&5
18829 ac_cv_header_stdc=no
18831 rm -f conftest.err "conftest.$ac_ext"
18833 if test $ac_cv_header_stdc = yes; then
18834 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18835 cat >"conftest.$ac_ext" <<_ACEOF
18836 #line 18836 "configure"
18837 #include "confdefs.h"
18838 #include <string.h>
18841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18842 $EGREP "memchr" >/dev/null 2>&1; then
18845 ac_cv_header_stdc=no
18851 if test $ac_cv_header_stdc = yes; then
18852 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18853 cat >"conftest.$ac_ext" <<_ACEOF
18854 #line 18854 "configure"
18855 #include "confdefs.h"
18856 #include <stdlib.h>
18859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18860 $EGREP "free" >/dev/null 2>&1; then
18863 ac_cv_header_stdc=no
18869 if test $ac_cv_header_stdc = yes; then
18870 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18871 if test "$cross_compiling" = yes; then
18874 cat >"conftest.$ac_ext" <<_ACEOF
18875 #line 18875 "configure"
18876 #include "confdefs.h"
18878 #if ((' ' & 0x0FF) == 0x020)
18879 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18880 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18882 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
18883 || ('j' <= (c) && (c) <= 'r') \
18884 || ('s' <= (c) && (c) <= 'z'))
18885 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18888 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18893 for (i = 0; i < 256; i++)
18894 if (XOR (islower (i), ISLOWER (i))
18895 || toupper (i) != TOUPPER (i))
18896 $ac_main_return(2);
18897 $ac_main_return (0);
18900 rm -f "conftest$ac_exeext"
18901 if { (eval echo "$as_me:18901: \"$ac_link\"") >&5
18902 (eval $ac_link) 2>&5
18904 echo "$as_me:18904: \$? = $ac_status" >&5
18905 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
18906 { (eval echo "$as_me:18906: \"$ac_try\"") >&5
18907 (eval $ac_try) 2>&5
18909 echo "$as_me:18909: \$? = $ac_status" >&5
18910 (exit "$ac_status"); }; }; then
18913 echo "$as_me: program exited with status $ac_status" >&5
18914 echo "$as_me: failed program was:" >&5
18915 cat "conftest.$ac_ext" >&5
18916 ac_cv_header_stdc=no
18918 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
18922 echo "$as_me:18922: result: $ac_cv_header_stdc" >&5
18923 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18924 if test $ac_cv_header_stdc = yes; then
18926 cat >>confdefs.h <<\EOF
18927 #define STDC_HEADERS 1
18932 ac_header_dirent=no
18933 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
18934 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
18935 echo "$as_me:18935: checking for $ac_hdr that defines DIR" >&5
18936 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
18937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18938 echo $ECHO_N "(cached) $ECHO_C" >&6
18940 cat >"conftest.$ac_ext" <<_ACEOF
18941 #line 18941 "configure"
18942 #include "confdefs.h"
18943 #include <sys/types.h>
18955 rm -f "conftest.$ac_objext"
18956 if { (eval echo "$as_me:18956: \"$ac_compile\"") >&5
18957 (eval $ac_compile) 2>&5
18959 echo "$as_me:18959: \$? = $ac_status" >&5
18960 (exit "$ac_status"); } &&
18961 { ac_try='test -s "conftest.$ac_objext"'
18962 { (eval echo "$as_me:18962: \"$ac_try\"") >&5
18963 (eval $ac_try) 2>&5
18965 echo "$as_me:18965: \$? = $ac_status" >&5
18966 (exit "$ac_status"); }; }; then
18967 eval "$as_ac_Header=yes"
18969 echo "$as_me: failed program was:" >&5
18970 cat "conftest.$ac_ext" >&5
18971 eval "$as_ac_Header=no"
18973 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
18975 echo "$as_me:18975: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
18976 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
18977 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
18978 cat >>confdefs.h <<EOF
18979 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
18982 ac_header_dirent=$ac_hdr; break
18986 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
18987 if test $ac_header_dirent = dirent.h; then
18988 echo "$as_me:18988: checking for opendir in -ldir" >&5
18989 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
18990 if test "${ac_cv_lib_dir_opendir+set}" = set; then
18991 echo $ECHO_N "(cached) $ECHO_C" >&6
18993 ac_check_lib_save_LIBS=$LIBS
18995 cat >"conftest.$ac_ext" <<_ACEOF
18996 #line 18996 "configure"
18997 #include "confdefs.h"
18999 /* Override any gcc2 internal prototype to avoid an error. */
19003 /* We use char because int might match the return type of a gcc2
19004 builtin and then its argument prototype would still apply. */
19014 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19015 if { (eval echo "$as_me:19015: \"$ac_link\"") >&5
19016 (eval $ac_link) 2>&5
19018 echo "$as_me:19018: \$? = $ac_status" >&5
19019 (exit "$ac_status"); } &&
19020 { ac_try='test -s "conftest$ac_exeext"'
19021 { (eval echo "$as_me:19021: \"$ac_try\"") >&5
19022 (eval $ac_try) 2>&5
19024 echo "$as_me:19024: \$? = $ac_status" >&5
19025 (exit "$ac_status"); }; }; then
19026 ac_cv_lib_dir_opendir=yes
19028 echo "$as_me: failed program was:" >&5
19029 cat "conftest.$ac_ext" >&5
19030 ac_cv_lib_dir_opendir=no
19032 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19033 LIBS=$ac_check_lib_save_LIBS
19035 echo "$as_me:19035: result: $ac_cv_lib_dir_opendir" >&5
19036 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
19037 if test "$ac_cv_lib_dir_opendir" = yes; then
19042 echo "$as_me:19042: checking for opendir in -lx" >&5
19043 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
19044 if test "${ac_cv_lib_x_opendir+set}" = set; then
19045 echo $ECHO_N "(cached) $ECHO_C" >&6
19047 ac_check_lib_save_LIBS=$LIBS
19049 cat >"conftest.$ac_ext" <<_ACEOF
19050 #line 19050 "configure"
19051 #include "confdefs.h"
19053 /* Override any gcc2 internal prototype to avoid an error. */
19057 /* We use char because int might match the return type of a gcc2
19058 builtin and then its argument prototype would still apply. */
19068 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19069 if { (eval echo "$as_me:19069: \"$ac_link\"") >&5
19070 (eval $ac_link) 2>&5
19072 echo "$as_me:19072: \$? = $ac_status" >&5
19073 (exit "$ac_status"); } &&
19074 { ac_try='test -s "conftest$ac_exeext"'
19075 { (eval echo "$as_me:19075: \"$ac_try\"") >&5
19076 (eval $ac_try) 2>&5
19078 echo "$as_me:19078: \$? = $ac_status" >&5
19079 (exit "$ac_status"); }; }; then
19080 ac_cv_lib_x_opendir=yes
19082 echo "$as_me: failed program was:" >&5
19083 cat "conftest.$ac_ext" >&5
19084 ac_cv_lib_x_opendir=no
19086 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19087 LIBS=$ac_check_lib_save_LIBS
19089 echo "$as_me:19089: result: $ac_cv_lib_x_opendir" >&5
19090 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
19091 if test "$ac_cv_lib_x_opendir" = yes; then
19097 echo "$as_me:19097: checking whether time.h and sys/time.h may both be included" >&5
19098 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19099 if test "${ac_cv_header_time+set}" = set; then
19100 echo $ECHO_N "(cached) $ECHO_C" >&6
19102 cat >"conftest.$ac_ext" <<_ACEOF
19103 #line 19103 "configure"
19104 #include "confdefs.h"
19105 #include <sys/types.h>
19106 #include <sys/time.h>
19112 if ((struct tm *) 0)
19118 rm -f "conftest.$ac_objext"
19119 if { (eval echo "$as_me:19119: \"$ac_compile\"") >&5
19120 (eval $ac_compile) 2>&5
19122 echo "$as_me:19122: \$? = $ac_status" >&5
19123 (exit "$ac_status"); } &&
19124 { ac_try='test -s "conftest.$ac_objext"'
19125 { (eval echo "$as_me:19125: \"$ac_try\"") >&5
19126 (eval $ac_try) 2>&5
19128 echo "$as_me:19128: \$? = $ac_status" >&5
19129 (exit "$ac_status"); }; }; then
19130 ac_cv_header_time=yes
19132 echo "$as_me: failed program was:" >&5
19133 cat "conftest.$ac_ext" >&5
19134 ac_cv_header_time=no
19136 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
19138 echo "$as_me:19138: result: $ac_cv_header_time" >&5
19139 echo "${ECHO_T}$ac_cv_header_time" >&6
19140 if test $ac_cv_header_time = yes; then
19142 cat >>confdefs.h <<\EOF
19143 #define TIME_WITH_SYS_TIME 1
19152 # -lsystre -ltre -lintl -liconv
19153 echo "$as_me:19153: checking for regcomp in -lsystre" >&5
19154 echo $ECHO_N "checking for regcomp in -lsystre... $ECHO_C" >&6
19155 if test "${ac_cv_lib_systre_regcomp+set}" = set; then
19156 echo $ECHO_N "(cached) $ECHO_C" >&6
19158 ac_check_lib_save_LIBS=$LIBS
19159 LIBS="-lsystre $LIBS"
19160 cat >"conftest.$ac_ext" <<_ACEOF
19161 #line 19161 "configure"
19162 #include "confdefs.h"
19164 /* Override any gcc2 internal prototype to avoid an error. */
19168 /* We use char because int might match the return type of a gcc2
19169 builtin and then its argument prototype would still apply. */
19179 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19180 if { (eval echo "$as_me:19180: \"$ac_link\"") >&5
19181 (eval $ac_link) 2>&5
19183 echo "$as_me:19183: \$? = $ac_status" >&5
19184 (exit "$ac_status"); } &&
19185 { ac_try='test -s "conftest$ac_exeext"'
19186 { (eval echo "$as_me:19186: \"$ac_try\"") >&5
19187 (eval $ac_try) 2>&5
19189 echo "$as_me:19189: \$? = $ac_status" >&5
19190 (exit "$ac_status"); }; }; then
19191 ac_cv_lib_systre_regcomp=yes
19193 echo "$as_me: failed program was:" >&5
19194 cat "conftest.$ac_ext" >&5
19195 ac_cv_lib_systre_regcomp=no
19197 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19198 LIBS=$ac_check_lib_save_LIBS
19200 echo "$as_me:19200: result: $ac_cv_lib_systre_regcomp" >&5
19201 echo "${ECHO_T}$ac_cv_lib_systre_regcomp" >&6
19202 if test "$ac_cv_lib_systre_regcomp" = yes; then
19204 echo "$as_me:19204: checking for libiconv_open in -liconv" >&5
19205 echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6
19206 if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then
19207 echo $ECHO_N "(cached) $ECHO_C" >&6
19209 ac_check_lib_save_LIBS=$LIBS
19210 LIBS="-liconv $LIBS"
19211 cat >"conftest.$ac_ext" <<_ACEOF
19212 #line 19212 "configure"
19213 #include "confdefs.h"
19215 /* Override any gcc2 internal prototype to avoid an error. */
19219 /* We use char because int might match the return type of a gcc2
19220 builtin and then its argument prototype would still apply. */
19221 char libiconv_open ();
19230 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19231 if { (eval echo "$as_me:19231: \"$ac_link\"") >&5
19232 (eval $ac_link) 2>&5
19234 echo "$as_me:19234: \$? = $ac_status" >&5
19235 (exit "$ac_status"); } &&
19236 { ac_try='test -s "conftest$ac_exeext"'
19237 { (eval echo "$as_me:19237: \"$ac_try\"") >&5
19238 (eval $ac_try) 2>&5
19240 echo "$as_me:19240: \$? = $ac_status" >&5
19241 (exit "$ac_status"); }; }; then
19242 ac_cv_lib_iconv_libiconv_open=yes
19244 echo "$as_me: failed program was:" >&5
19245 cat "conftest.$ac_ext" >&5
19246 ac_cv_lib_iconv_libiconv_open=no
19248 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19249 LIBS=$ac_check_lib_save_LIBS
19251 echo "$as_me:19251: result: $ac_cv_lib_iconv_libiconv_open" >&5
19252 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6
19253 if test "$ac_cv_lib_iconv_libiconv_open" = yes; then
19255 cf_add_libs="$LIBS"
19258 for cf_add_1lib in -liconv; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19259 # filter duplicates
19260 for cf_add_1lib in $cf_add_0lib; do
19261 for cf_add_2lib in $cf_add_libs; do
19262 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19267 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19269 LIBS="$cf_add_libs"
19273 echo "$as_me:19273: checking for libintl_gettext in -lintl" >&5
19274 echo $ECHO_N "checking for libintl_gettext in -lintl... $ECHO_C" >&6
19275 if test "${ac_cv_lib_intl_libintl_gettext+set}" = set; then
19276 echo $ECHO_N "(cached) $ECHO_C" >&6
19278 ac_check_lib_save_LIBS=$LIBS
19279 LIBS="-lintl $LIBS"
19280 cat >"conftest.$ac_ext" <<_ACEOF
19281 #line 19281 "configure"
19282 #include "confdefs.h"
19284 /* Override any gcc2 internal prototype to avoid an error. */
19288 /* We use char because int might match the return type of a gcc2
19289 builtin and then its argument prototype would still apply. */
19290 char libintl_gettext ();
19294 libintl_gettext ();
19299 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19300 if { (eval echo "$as_me:19300: \"$ac_link\"") >&5
19301 (eval $ac_link) 2>&5
19303 echo "$as_me:19303: \$? = $ac_status" >&5
19304 (exit "$ac_status"); } &&
19305 { ac_try='test -s "conftest$ac_exeext"'
19306 { (eval echo "$as_me:19306: \"$ac_try\"") >&5
19307 (eval $ac_try) 2>&5
19309 echo "$as_me:19309: \$? = $ac_status" >&5
19310 (exit "$ac_status"); }; }; then
19311 ac_cv_lib_intl_libintl_gettext=yes
19313 echo "$as_me: failed program was:" >&5
19314 cat "conftest.$ac_ext" >&5
19315 ac_cv_lib_intl_libintl_gettext=no
19317 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19318 LIBS=$ac_check_lib_save_LIBS
19320 echo "$as_me:19320: result: $ac_cv_lib_intl_libintl_gettext" >&5
19321 echo "${ECHO_T}$ac_cv_lib_intl_libintl_gettext" >&6
19322 if test "$ac_cv_lib_intl_libintl_gettext" = yes; then
19324 cf_add_libs="$LIBS"
19327 for cf_add_1lib in -lintl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19328 # filter duplicates
19329 for cf_add_1lib in $cf_add_0lib; do
19330 for cf_add_2lib in $cf_add_libs; do
19331 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19336 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19338 LIBS="$cf_add_libs"
19342 echo "$as_me:19342: checking for tre_regcomp in -ltre" >&5
19343 echo $ECHO_N "checking for tre_regcomp in -ltre... $ECHO_C" >&6
19344 if test "${ac_cv_lib_tre_tre_regcomp+set}" = set; then
19345 echo $ECHO_N "(cached) $ECHO_C" >&6
19347 ac_check_lib_save_LIBS=$LIBS
19349 cat >"conftest.$ac_ext" <<_ACEOF
19350 #line 19350 "configure"
19351 #include "confdefs.h"
19353 /* Override any gcc2 internal prototype to avoid an error. */
19357 /* We use char because int might match the return type of a gcc2
19358 builtin and then its argument prototype would still apply. */
19359 char tre_regcomp ();
19368 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19369 if { (eval echo "$as_me:19369: \"$ac_link\"") >&5
19370 (eval $ac_link) 2>&5
19372 echo "$as_me:19372: \$? = $ac_status" >&5
19373 (exit "$ac_status"); } &&
19374 { ac_try='test -s "conftest$ac_exeext"'
19375 { (eval echo "$as_me:19375: \"$ac_try\"") >&5
19376 (eval $ac_try) 2>&5
19378 echo "$as_me:19378: \$? = $ac_status" >&5
19379 (exit "$ac_status"); }; }; then
19380 ac_cv_lib_tre_tre_regcomp=yes
19382 echo "$as_me: failed program was:" >&5
19383 cat "conftest.$ac_ext" >&5
19384 ac_cv_lib_tre_tre_regcomp=no
19386 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19387 LIBS=$ac_check_lib_save_LIBS
19389 echo "$as_me:19389: result: $ac_cv_lib_tre_tre_regcomp" >&5
19390 echo "${ECHO_T}$ac_cv_lib_tre_tre_regcomp" >&6
19391 if test "$ac_cv_lib_tre_tre_regcomp" = yes; then
19393 cf_add_libs="$LIBS"
19396 for cf_add_1lib in -ltre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19397 # filter duplicates
19398 for cf_add_1lib in $cf_add_0lib; do
19399 for cf_add_2lib in $cf_add_libs; do
19400 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19405 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19407 LIBS="$cf_add_libs"
19411 cf_add_libs="$LIBS"
19414 for cf_add_1lib in -lsystre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19415 # filter duplicates
19416 for cf_add_1lib in $cf_add_0lib; do
19417 for cf_add_2lib in $cf_add_libs; do
19418 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19423 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19425 LIBS="$cf_add_libs"
19427 cf_regex_func=regcomp
19431 echo "$as_me:19431: checking for regcomp in -lgnurx" >&5
19432 echo $ECHO_N "checking for regcomp in -lgnurx... $ECHO_C" >&6
19433 if test "${ac_cv_lib_gnurx_regcomp+set}" = set; then
19434 echo $ECHO_N "(cached) $ECHO_C" >&6
19436 ac_check_lib_save_LIBS=$LIBS
19437 LIBS="-lgnurx $LIBS"
19438 cat >"conftest.$ac_ext" <<_ACEOF
19439 #line 19439 "configure"
19440 #include "confdefs.h"
19442 /* Override any gcc2 internal prototype to avoid an error. */
19446 /* We use char because int might match the return type of a gcc2
19447 builtin and then its argument prototype would still apply. */
19457 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19458 if { (eval echo "$as_me:19458: \"$ac_link\"") >&5
19459 (eval $ac_link) 2>&5
19461 echo "$as_me:19461: \$? = $ac_status" >&5
19462 (exit "$ac_status"); } &&
19463 { ac_try='test -s "conftest$ac_exeext"'
19464 { (eval echo "$as_me:19464: \"$ac_try\"") >&5
19465 (eval $ac_try) 2>&5
19467 echo "$as_me:19467: \$? = $ac_status" >&5
19468 (exit "$ac_status"); }; }; then
19469 ac_cv_lib_gnurx_regcomp=yes
19471 echo "$as_me: failed program was:" >&5
19472 cat "conftest.$ac_ext" >&5
19473 ac_cv_lib_gnurx_regcomp=no
19475 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19476 LIBS=$ac_check_lib_save_LIBS
19478 echo "$as_me:19478: result: $ac_cv_lib_gnurx_regcomp" >&5
19479 echo "${ECHO_T}$ac_cv_lib_gnurx_regcomp" >&6
19480 if test "$ac_cv_lib_gnurx_regcomp" = yes; then
19482 cf_add_libs="$LIBS"
19485 for cf_add_1lib in -lgnurx; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19486 # filter duplicates
19487 for cf_add_1lib in $cf_add_0lib; do
19488 for cf_add_2lib in $cf_add_libs; do
19489 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19494 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19496 LIBS="$cf_add_libs"
19498 cf_regex_func=regcomp
19505 cf_regex_libs="regex re"
19506 echo "$as_me:19506: checking for regcomp" >&5
19507 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
19508 if test "${ac_cv_func_regcomp+set}" = set; then
19509 echo $ECHO_N "(cached) $ECHO_C" >&6
19511 cat >"conftest.$ac_ext" <<_ACEOF
19512 #line 19512 "configure"
19513 #include "confdefs.h"
19514 #define regcomp autoconf_temporary
19515 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19522 /* We use char because int might match the return type of a gcc2
19523 builtin and then its argument prototype would still apply. */
19524 char regcomp (void);
19530 /* The GNU C library defines stubs for functions which it implements
19531 to always fail with ENOSYS. Some functions are actually named
19532 something starting with __ and the normal name is an alias. */
19533 #if defined (__stub_regcomp) || defined (__stub___regcomp)
19534 #error found stub for regcomp
19542 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19543 if { (eval echo "$as_me:19543: \"$ac_link\"") >&5
19544 (eval $ac_link) 2>&5
19546 echo "$as_me:19546: \$? = $ac_status" >&5
19547 (exit "$ac_status"); } &&
19548 { ac_try='test -s "conftest$ac_exeext"'
19549 { (eval echo "$as_me:19549: \"$ac_try\"") >&5
19550 (eval $ac_try) 2>&5
19552 echo "$as_me:19552: \$? = $ac_status" >&5
19553 (exit "$ac_status"); }; }; then
19554 ac_cv_func_regcomp=yes
19556 echo "$as_me: failed program was:" >&5
19557 cat "conftest.$ac_ext" >&5
19558 ac_cv_func_regcomp=no
19560 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19562 echo "$as_me:19562: result: $ac_cv_func_regcomp" >&5
19563 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
19564 if test "$ac_cv_func_regcomp" = yes; then
19565 cf_regex_func=regcomp
19568 for cf_regex_lib in $cf_regex_libs
19570 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
19571 echo "$as_me:19571: checking for regcomp in -l$cf_regex_lib" >&5
19572 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
19573 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
19574 echo $ECHO_N "(cached) $ECHO_C" >&6
19576 ac_check_lib_save_LIBS=$LIBS
19577 LIBS="-l$cf_regex_lib $LIBS"
19578 cat >"conftest.$ac_ext" <<_ACEOF
19579 #line 19579 "configure"
19580 #include "confdefs.h"
19582 /* Override any gcc2 internal prototype to avoid an error. */
19586 /* We use char because int might match the return type of a gcc2
19587 builtin and then its argument prototype would still apply. */
19597 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19598 if { (eval echo "$as_me:19598: \"$ac_link\"") >&5
19599 (eval $ac_link) 2>&5
19601 echo "$as_me:19601: \$? = $ac_status" >&5
19602 (exit "$ac_status"); } &&
19603 { ac_try='test -s "conftest$ac_exeext"'
19604 { (eval echo "$as_me:19604: \"$ac_try\"") >&5
19605 (eval $ac_try) 2>&5
19607 echo "$as_me:19607: \$? = $ac_status" >&5
19608 (exit "$ac_status"); }; }; then
19609 eval "$as_ac_Lib=yes"
19611 echo "$as_me: failed program was:" >&5
19612 cat "conftest.$ac_ext" >&5
19613 eval "$as_ac_Lib=no"
19615 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19616 LIBS=$ac_check_lib_save_LIBS
19618 echo "$as_me:19618: result: `eval echo '${'"$as_ac_Lib"'}'`" >&5
19619 echo "${ECHO_T}`eval echo '${'"$as_ac_Lib"'}'`" >&6
19620 if test "`eval echo '${'"$as_ac_Lib"'}'`" = yes; then
19622 cf_add_libs="$LIBS"
19625 for cf_add_1lib in -l$cf_regex_lib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19626 # filter duplicates
19627 for cf_add_1lib in $cf_add_0lib; do
19628 for cf_add_2lib in $cf_add_libs; do
19629 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19634 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19636 LIBS="$cf_add_libs"
19638 cf_regex_func=regcomp
19649 if test "$cf_regex_func" = no ; then
19650 echo "$as_me:19650: checking for compile" >&5
19651 echo $ECHO_N "checking for compile... $ECHO_C" >&6
19652 if test "${ac_cv_func_compile+set}" = set; then
19653 echo $ECHO_N "(cached) $ECHO_C" >&6
19655 cat >"conftest.$ac_ext" <<_ACEOF
19656 #line 19656 "configure"
19657 #include "confdefs.h"
19658 #define compile autoconf_temporary
19659 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19666 /* We use char because int might match the return type of a gcc2
19667 builtin and then its argument prototype would still apply. */
19668 char compile (void);
19674 /* The GNU C library defines stubs for functions which it implements
19675 to always fail with ENOSYS. Some functions are actually named
19676 something starting with __ and the normal name is an alias. */
19677 #if defined (__stub_compile) || defined (__stub___compile)
19678 #error found stub for compile
19686 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19687 if { (eval echo "$as_me:19687: \"$ac_link\"") >&5
19688 (eval $ac_link) 2>&5
19690 echo "$as_me:19690: \$? = $ac_status" >&5
19691 (exit "$ac_status"); } &&
19692 { ac_try='test -s "conftest$ac_exeext"'
19693 { (eval echo "$as_me:19693: \"$ac_try\"") >&5
19694 (eval $ac_try) 2>&5
19696 echo "$as_me:19696: \$? = $ac_status" >&5
19697 (exit "$ac_status"); }; }; then
19698 ac_cv_func_compile=yes
19700 echo "$as_me: failed program was:" >&5
19701 cat "conftest.$ac_ext" >&5
19702 ac_cv_func_compile=no
19704 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19706 echo "$as_me:19706: result: $ac_cv_func_compile" >&5
19707 echo "${ECHO_T}$ac_cv_func_compile" >&6
19708 if test "$ac_cv_func_compile" = yes; then
19709 cf_regex_func=compile
19712 echo "$as_me:19712: checking for compile in -lgen" >&5
19713 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
19714 if test "${ac_cv_lib_gen_compile+set}" = set; then
19715 echo $ECHO_N "(cached) $ECHO_C" >&6
19717 ac_check_lib_save_LIBS=$LIBS
19719 cat >"conftest.$ac_ext" <<_ACEOF
19720 #line 19720 "configure"
19721 #include "confdefs.h"
19723 /* Override any gcc2 internal prototype to avoid an error. */
19727 /* We use char because int might match the return type of a gcc2
19728 builtin and then its argument prototype would still apply. */
19738 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19739 if { (eval echo "$as_me:19739: \"$ac_link\"") >&5
19740 (eval $ac_link) 2>&5
19742 echo "$as_me:19742: \$? = $ac_status" >&5
19743 (exit "$ac_status"); } &&
19744 { ac_try='test -s "conftest$ac_exeext"'
19745 { (eval echo "$as_me:19745: \"$ac_try\"") >&5
19746 (eval $ac_try) 2>&5
19748 echo "$as_me:19748: \$? = $ac_status" >&5
19749 (exit "$ac_status"); }; }; then
19750 ac_cv_lib_gen_compile=yes
19752 echo "$as_me: failed program was:" >&5
19753 cat "conftest.$ac_ext" >&5
19754 ac_cv_lib_gen_compile=no
19756 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19757 LIBS=$ac_check_lib_save_LIBS
19759 echo "$as_me:19759: result: $ac_cv_lib_gen_compile" >&5
19760 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
19761 if test "$ac_cv_lib_gen_compile" = yes; then
19763 cf_add_libs="$LIBS"
19766 for cf_add_1lib in -lgen; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19767 # filter duplicates
19768 for cf_add_1lib in $cf_add_0lib; do
19769 for cf_add_2lib in $cf_add_libs; do
19770 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19775 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19777 LIBS="$cf_add_libs"
19779 cf_regex_func=compile
19786 if test "$cf_regex_func" = no ; then
19787 { echo "$as_me:19787: WARNING: cannot find regular expression library" >&5
19788 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
19791 echo "$as_me:19791: checking for regular-expression headers" >&5
19792 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
19793 if test "${cf_cv_regex_hdrs+set}" = set; then
19794 echo $ECHO_N "(cached) $ECHO_C" >&6
19797 cf_cv_regex_hdrs=no
19798 case "$cf_regex_func" in
19800 for cf_regex_hdr in regexp.h regexpr.h
19802 cat >"conftest.$ac_ext" <<_ACEOF
19803 #line 19803 "configure"
19804 #include "confdefs.h"
19805 #include <$cf_regex_hdr>
19810 char *p = compile("", "", "", 0);
19811 int x = step("", "");
19819 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19820 if { (eval echo "$as_me:19820: \"$ac_link\"") >&5
19821 (eval $ac_link) 2>&5
19823 echo "$as_me:19823: \$? = $ac_status" >&5
19824 (exit "$ac_status"); } &&
19825 { ac_try='test -s "conftest$ac_exeext"'
19826 { (eval echo "$as_me:19826: \"$ac_try\"") >&5
19827 (eval $ac_try) 2>&5
19829 echo "$as_me:19829: \$? = $ac_status" >&5
19830 (exit "$ac_status"); }; }; then
19832 cf_cv_regex_hdrs=$cf_regex_hdr
19836 echo "$as_me: failed program was:" >&5
19837 cat "conftest.$ac_ext" >&5
19839 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19843 for cf_regex_hdr in regex.h
19845 cat >"conftest.$ac_ext" <<_ACEOF
19846 #line 19846 "configure"
19847 #include "confdefs.h"
19848 #include <sys/types.h>
19849 #include <$cf_regex_hdr>
19855 int x = regcomp(p, "", 0);
19856 int y = regexec(p, "", 0, 0, 0);
19865 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19866 if { (eval echo "$as_me:19866: \"$ac_link\"") >&5
19867 (eval $ac_link) 2>&5
19869 echo "$as_me:19869: \$? = $ac_status" >&5
19870 (exit "$ac_status"); } &&
19871 { ac_try='test -s "conftest$ac_exeext"'
19872 { (eval echo "$as_me:19872: \"$ac_try\"") >&5
19873 (eval $ac_try) 2>&5
19875 echo "$as_me:19875: \$? = $ac_status" >&5
19876 (exit "$ac_status"); }; }; then
19878 cf_cv_regex_hdrs=$cf_regex_hdr
19882 echo "$as_me: failed program was:" >&5
19883 cat "conftest.$ac_ext" >&5
19885 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19891 echo "$as_me:19891: result: $cf_cv_regex_hdrs" >&5
19892 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
19894 case "$cf_cv_regex_hdrs" in
19895 (no) { echo "$as_me:19895: WARNING: no regular expression header found" >&5
19896 echo "$as_me: WARNING: no regular expression header found" >&2;} ;;
19898 cat >>confdefs.h <<\EOF
19899 #define HAVE_REGEX_H_FUNCS 1
19903 cat >>confdefs.h <<\EOF
19904 #define HAVE_REGEXP_H_FUNCS 1
19908 cat >>confdefs.h <<\EOF
19909 #define HAVE_REGEXPR_H_FUNCS 1
19932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19933 echo "$as_me:19933: checking for $ac_header" >&5
19934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19935 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19936 echo $ECHO_N "(cached) $ECHO_C" >&6
19938 cat >"conftest.$ac_ext" <<_ACEOF
19939 #line 19939 "configure"
19940 #include "confdefs.h"
19941 #include <$ac_header>
19943 if { (eval echo "$as_me:19943: \"$ac_cpp "conftest.$ac_ext"\"") >&5
19944 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
19946 $EGREP -v '^ *\+' conftest.er1 >conftest.err
19948 cat conftest.err >&5
19949 echo "$as_me:19949: \$? = $ac_status" >&5
19950 (exit "$ac_status"); } >/dev/null; then
19951 if test -s conftest.err; then
19952 ac_cpp_err=$ac_c_preproc_warn_flag
19959 if test -z "$ac_cpp_err"; then
19960 eval "$as_ac_Header=yes"
19962 echo "$as_me: failed program was:" >&5
19963 cat "conftest.$ac_ext" >&5
19964 eval "$as_ac_Header=no"
19966 rm -f conftest.err "conftest.$ac_ext"
19968 echo "$as_me:19968: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
19969 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
19970 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
19971 cat >>confdefs.h <<EOF
19972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19978 for ac_header in unistd.h getopt.h
19980 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19981 echo "$as_me:19981: checking for $ac_header" >&5
19982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19984 echo $ECHO_N "(cached) $ECHO_C" >&6
19986 cat >"conftest.$ac_ext" <<_ACEOF
19987 #line 19987 "configure"
19988 #include "confdefs.h"
19989 #include <$ac_header>
19991 if { (eval echo "$as_me:19991: \"$ac_cpp "conftest.$ac_ext"\"") >&5
19992 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
19994 $EGREP -v '^ *\+' conftest.er1 >conftest.err
19996 cat conftest.err >&5
19997 echo "$as_me:19997: \$? = $ac_status" >&5
19998 (exit "$ac_status"); } >/dev/null; then
19999 if test -s conftest.err; then
20000 ac_cpp_err=$ac_c_preproc_warn_flag
20007 if test -z "$ac_cpp_err"; then
20008 eval "$as_ac_Header=yes"
20010 echo "$as_me: failed program was:" >&5
20011 cat "conftest.$ac_ext" >&5
20012 eval "$as_ac_Header=no"
20014 rm -f conftest.err "conftest.$ac_ext"
20016 echo "$as_me:20016: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
20017 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
20018 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
20019 cat >>confdefs.h <<EOF
20020 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20026 echo "$as_me:20026: checking for header declaring getopt variables" >&5
20027 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
20028 if test "${cf_cv_getopt_header+set}" = set; then
20029 echo $ECHO_N "(cached) $ECHO_C" >&6
20032 cf_cv_getopt_header=none
20033 for cf_header in stdio.h stdlib.h unistd.h getopt.h
20035 cat >"conftest.$ac_ext" <<_ACEOF
20036 #line 20036 "configure"
20037 #include "confdefs.h"
20039 #include <$cf_header>
20043 int x = optind; char *y = optarg; (void)x; (void)y
20048 rm -f "conftest.$ac_objext"
20049 if { (eval echo "$as_me:20049: \"$ac_compile\"") >&5
20050 (eval $ac_compile) 2>&5
20052 echo "$as_me:20052: \$? = $ac_status" >&5
20053 (exit "$ac_status"); } &&
20054 { ac_try='test -s "conftest.$ac_objext"'
20055 { (eval echo "$as_me:20055: \"$ac_try\"") >&5
20056 (eval $ac_try) 2>&5
20058 echo "$as_me:20058: \$? = $ac_status" >&5
20059 (exit "$ac_status"); }; }; then
20060 cf_cv_getopt_header=$cf_header
20063 echo "$as_me: failed program was:" >&5
20064 cat "conftest.$ac_ext" >&5
20066 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20070 echo "$as_me:20070: result: $cf_cv_getopt_header" >&5
20071 echo "${ECHO_T}$cf_cv_getopt_header" >&6
20072 if test "$cf_cv_getopt_header" != none ; then
20074 cat >>confdefs.h <<\EOF
20075 #define HAVE_GETOPT_HEADER 1
20079 if test "$cf_cv_getopt_header" = getopt.h ; then
20081 cat >>confdefs.h <<\EOF
20082 #define NEED_GETOPT_H 1
20087 echo "$as_me:20087: checking if external environ is declared" >&5
20088 echo $ECHO_N "checking if external environ is declared... $ECHO_C" >&6
20089 if test "${cf_cv_dcl_environ+set}" = set; then
20090 echo $ECHO_N "(cached) $ECHO_C" >&6
20093 cat >"conftest.$ac_ext" <<_ACEOF
20094 #line 20094 "configure"
20095 #include "confdefs.h"
20097 #ifdef HAVE_STDLIB_H
20098 #include <stdlib.h>
20100 #include <unistd.h>
20104 int x = (int) environ
20109 rm -f "conftest.$ac_objext"
20110 if { (eval echo "$as_me:20110: \"$ac_compile\"") >&5
20111 (eval $ac_compile) 2>&5
20113 echo "$as_me:20113: \$? = $ac_status" >&5
20114 (exit "$ac_status"); } &&
20115 { ac_try='test -s "conftest.$ac_objext"'
20116 { (eval echo "$as_me:20116: \"$ac_try\"") >&5
20117 (eval $ac_try) 2>&5
20119 echo "$as_me:20119: \$? = $ac_status" >&5
20120 (exit "$ac_status"); }; }; then
20121 cf_cv_dcl_environ=yes
20123 echo "$as_me: failed program was:" >&5
20124 cat "conftest.$ac_ext" >&5
20125 cf_cv_dcl_environ=no
20127 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20130 echo "$as_me:20130: result: $cf_cv_dcl_environ" >&5
20131 echo "${ECHO_T}$cf_cv_dcl_environ" >&6
20133 if test "$cf_cv_dcl_environ" = no ; then
20135 cf_result=`echo "decl_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20137 cat >>confdefs.h <<EOF
20138 #define $cf_result 1
20143 # It's possible (for near-UNIX clones) that the data doesn't exist
20145 echo "$as_me:20145: checking if external environ exists" >&5
20146 echo $ECHO_N "checking if external environ exists... $ECHO_C" >&6
20147 if test "${cf_cv_have_environ+set}" = set; then
20148 echo $ECHO_N "(cached) $ECHO_C" >&6
20151 cat >"conftest.$ac_ext" <<_ACEOF
20152 #line 20152 "configure"
20153 #include "confdefs.h"
20156 extern int environ;
20166 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20167 if { (eval echo "$as_me:20167: \"$ac_link\"") >&5
20168 (eval $ac_link) 2>&5
20170 echo "$as_me:20170: \$? = $ac_status" >&5
20171 (exit "$ac_status"); } &&
20172 { ac_try='test -s "conftest$ac_exeext"'
20173 { (eval echo "$as_me:20173: \"$ac_try\"") >&5
20174 (eval $ac_try) 2>&5
20176 echo "$as_me:20176: \$? = $ac_status" >&5
20177 (exit "$ac_status"); }; }; then
20178 cf_cv_have_environ=yes
20180 echo "$as_me: failed program was:" >&5
20181 cat "conftest.$ac_ext" >&5
20182 cf_cv_have_environ=no
20184 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20187 echo "$as_me:20187: result: $cf_cv_have_environ" >&5
20188 echo "${ECHO_T}$cf_cv_have_environ" >&6
20190 if test "$cf_cv_have_environ" = yes ; then
20192 cf_result=`echo "have_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20194 cat >>confdefs.h <<EOF
20195 #define $cf_result 1
20200 echo "$as_me:20200: checking for getenv" >&5
20201 echo $ECHO_N "checking for getenv... $ECHO_C" >&6
20202 if test "${ac_cv_func_getenv+set}" = set; then
20203 echo $ECHO_N "(cached) $ECHO_C" >&6
20205 cat >"conftest.$ac_ext" <<_ACEOF
20206 #line 20206 "configure"
20207 #include "confdefs.h"
20208 #define getenv autoconf_temporary
20209 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20216 /* We use char because int might match the return type of a gcc2
20217 builtin and then its argument prototype would still apply. */
20218 char getenv (void);
20224 /* The GNU C library defines stubs for functions which it implements
20225 to always fail with ENOSYS. Some functions are actually named
20226 something starting with __ and the normal name is an alias. */
20227 #if defined (__stub_getenv) || defined (__stub___getenv)
20228 #error found stub for getenv
20236 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20237 if { (eval echo "$as_me:20237: \"$ac_link\"") >&5
20238 (eval $ac_link) 2>&5
20240 echo "$as_me:20240: \$? = $ac_status" >&5
20241 (exit "$ac_status"); } &&
20242 { ac_try='test -s "conftest$ac_exeext"'
20243 { (eval echo "$as_me:20243: \"$ac_try\"") >&5
20244 (eval $ac_try) 2>&5
20246 echo "$as_me:20246: \$? = $ac_status" >&5
20247 (exit "$ac_status"); }; }; then
20248 ac_cv_func_getenv=yes
20250 echo "$as_me: failed program was:" >&5
20251 cat "conftest.$ac_ext" >&5
20252 ac_cv_func_getenv=no
20254 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20256 echo "$as_me:20256: result: $ac_cv_func_getenv" >&5
20257 echo "${ECHO_T}$ac_cv_func_getenv" >&6
20259 for ac_func in putenv setenv strdup
20261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20262 echo "$as_me:20262: checking for $ac_func" >&5
20263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20264 if eval "test \"\${$as_ac_var+set}\" = set"; then
20265 echo $ECHO_N "(cached) $ECHO_C" >&6
20267 cat >"conftest.$ac_ext" <<_ACEOF
20268 #line 20268 "configure"
20269 #include "confdefs.h"
20270 #define $ac_func autoconf_temporary
20271 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20278 /* We use char because int might match the return type of a gcc2
20279 builtin and then its argument prototype would still apply. */
20280 char $ac_func (void);
20286 /* The GNU C library defines stubs for functions which it implements
20287 to always fail with ENOSYS. Some functions are actually named
20288 something starting with __ and the normal name is an alias. */
20289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20290 #error found stub for $ac_func
20293 return $ac_func ();
20298 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20299 if { (eval echo "$as_me:20299: \"$ac_link\"") >&5
20300 (eval $ac_link) 2>&5
20302 echo "$as_me:20302: \$? = $ac_status" >&5
20303 (exit "$ac_status"); } &&
20304 { ac_try='test -s "conftest$ac_exeext"'
20305 { (eval echo "$as_me:20305: \"$ac_try\"") >&5
20306 (eval $ac_try) 2>&5
20308 echo "$as_me:20308: \$? = $ac_status" >&5
20309 (exit "$ac_status"); }; }; then
20310 eval "$as_ac_var=yes"
20312 echo "$as_me: failed program was:" >&5
20313 cat "conftest.$ac_ext" >&5
20314 eval "$as_ac_var=no"
20316 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20318 echo "$as_me:20318: result: `eval echo '${'"$as_ac_var"'}'`" >&5
20319 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
20320 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
20321 cat >>confdefs.h <<EOF
20322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20328 echo "$as_me:20328: checking if getenv returns consistent values" >&5
20329 echo $ECHO_N "checking if getenv returns consistent values... $ECHO_C" >&6
20330 if test "${cf_cv_consistent_getenv+set}" = set; then
20331 echo $ECHO_N "(cached) $ECHO_C" >&6
20334 if test "$cross_compiling" = yes; then
20335 cf_cv_consistent_getenv=unknown
20337 cat >"conftest.$ac_ext" <<_ACEOF
20338 #line 20338 "configure"
20339 #include "confdefs.h"
20341 #include <stdlib.h>
20342 #include <unistd.h>
20344 #include <string.h>
20345 #include <sys/types.h>
20347 #if defined(HAVE_ENVIRON) && defined(DECL_ENVIRON) && !defined(environ)
20348 extern char **environ; /* POSIX, but some systems are not... */
20351 #if defined(HAVE_STRDUP)
20352 #define str_alloc(s) strdup(s)
20354 #define str_alloc(s) strcpy(malloc(strlen(s) + 1, s))
20357 static void set_value(const char *name, const char *value)
20359 #if defined(HAVE_SETENV)
20360 setenv(name, value, 1);
20361 #elif defined(HAVE_PUTENV)
20363 sprintf(buffer, "%s=%s", name, value);
20364 putenv(str_alloc(buffer));
20366 #error neither putenv/setenv found
20372 size_t numenv, limit, j;
20377 for (numenv = 0; environ[numenv]; ++numenv) ;
20378 limit = numenv + 10;
20379 mynames = (char **) calloc(limit + 1, sizeof(char *));
20380 myvalues = (char **) calloc(limit + 1, sizeof(char *));
20381 mypointer = (char **) calloc(limit + 1, sizeof(char *));
20382 #if defined(HAVE_ENVIRON)
20383 for (j = 0; environ[j]; ++j) {
20384 mynames[j] = str_alloc(environ[j]);
20385 equals = strchr(mynames[j], '=');
20388 myvalues[j] = str_alloc(equals);
20390 myvalues[j] = str_alloc("");
20394 for (j = numenv; j < limit; ++j) {
20402 sprintf(name, "TERM%lu", (unsigned long) k);
20403 for (jk = 0; jk < j; ++jk) {
20404 if (!strcmp(name, mynames[jk])) {
20411 sprintf(value, "%lu:%p", (unsigned long) k, &mynames[j]);
20412 set_value(name, value);
20413 mynames[j] = str_alloc(name);
20414 myvalues[j] = str_alloc(value);
20416 for (pass = 0; pass < 3; ++pass) {
20417 for (j = 0; j < limit; ++j) {
20418 char *value = getenv(mynames[j]);
20421 fprintf(stderr, "getenv returned null for %s\\n", mynames[j]);
20422 ${cf_cv_main_return:-return}(1);
20423 } else if (value != mypointer[j]) {
20424 fprintf(stderr, "getenv returned different pointer for %s\\n", mynames[j]);
20425 ${cf_cv_main_return:-return}(1);
20426 } else if (strcmp(value, myvalues[j])) {
20427 fprintf(stderr, "getenv returned different value for %s\\n", mynames[j]);
20428 ${cf_cv_main_return:-return}(1);
20432 mypointer[j] = value;
20433 for (k = 0; k < j; ++k) {
20434 if (mypointer[j] == mypointer[k]) {
20435 fprintf(stderr, "getenv returned same pointer for %s and %s\\n", mynames[j], mynames[k]);
20436 ${cf_cv_main_return:-return}(1);
20442 ${cf_cv_main_return:-return}(0);
20446 rm -f "conftest$ac_exeext"
20447 if { (eval echo "$as_me:20447: \"$ac_link\"") >&5
20448 (eval $ac_link) 2>&5
20450 echo "$as_me:20450: \$? = $ac_status" >&5
20451 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
20452 { (eval echo "$as_me:20452: \"$ac_try\"") >&5
20453 (eval $ac_try) 2>&5
20455 echo "$as_me:20455: \$? = $ac_status" >&5
20456 (exit "$ac_status"); }; }; then
20457 cf_cv_consistent_getenv=yes
20459 echo "$as_me: program exited with status $ac_status" >&5
20460 echo "$as_me: failed program was:" >&5
20461 cat "conftest.$ac_ext" >&5
20462 cf_cv_consistent_getenv=no
20464 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
20468 echo "$as_me:20468: result: $cf_cv_consistent_getenv" >&5
20469 echo "${ECHO_T}$cf_cv_consistent_getenv" >&6
20471 if test "x$cf_cv_consistent_getenv" = xno
20474 cat >>confdefs.h <<\EOF
20475 #define HAVE_CONSISTENT_GETENV 1
20480 if test "x$cf_cv_consistent_getenv" = xno && \
20481 test "x$cf_with_trace" = xyes
20483 { echo "$as_me:20483: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&5
20484 echo "$as_me: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&2;}
20487 echo "$as_me:20487: checking if sys/time.h works with sys/select.h" >&5
20488 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
20489 if test "${cf_cv_sys_time_select+set}" = set; then
20490 echo $ECHO_N "(cached) $ECHO_C" >&6
20493 cat >"conftest.$ac_ext" <<_ACEOF
20494 #line 20494 "configure"
20495 #include "confdefs.h"
20497 #include <sys/types.h>
20498 #ifdef HAVE_SYS_TIME_H
20499 #include <sys/time.h>
20501 #ifdef HAVE_SYS_SELECT_H
20502 #include <sys/select.h>
20513 rm -f "conftest.$ac_objext"
20514 if { (eval echo "$as_me:20514: \"$ac_compile\"") >&5
20515 (eval $ac_compile) 2>&5
20517 echo "$as_me:20517: \$? = $ac_status" >&5
20518 (exit "$ac_status"); } &&
20519 { ac_try='test -s "conftest.$ac_objext"'
20520 { (eval echo "$as_me:20520: \"$ac_try\"") >&5
20521 (eval $ac_try) 2>&5
20523 echo "$as_me:20523: \$? = $ac_status" >&5
20524 (exit "$ac_status"); }; }; then
20525 cf_cv_sys_time_select=yes
20527 echo "$as_me: failed program was:" >&5
20528 cat "conftest.$ac_ext" >&5
20529 cf_cv_sys_time_select=no
20531 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20535 echo "$as_me:20535: result: $cf_cv_sys_time_select" >&5
20536 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
20537 test "$cf_cv_sys_time_select" = yes &&
20538 cat >>confdefs.h <<\EOF
20539 #define HAVE_SYS_TIME_SELECT 1
20542 ### checks for compiler characteristics
20544 ac_cpp='$CPP $CPPFLAGS'
20545 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
20546 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
20547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20548 ac_main_return="return"
20550 echo "$as_me:20550: checking for an ANSI C-conforming const" >&5
20551 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20552 if test "${ac_cv_c_const+set}" = set; then
20553 echo $ECHO_N "(cached) $ECHO_C" >&6
20555 cat >"conftest.$ac_ext" <<_ACEOF
20556 #line 20556 "configure"
20557 #include "confdefs.h"
20562 /* FIXME: Include the comments suggested by Paul. */
20563 #ifndef __cplusplus
20564 /* Ultrix mips cc rejects this. */
20565 typedef int charset[2];
20567 /* SunOS 4.1.1 cc rejects this. */
20568 char const *const *ccp;
20570 /* NEC SVR4.0.2 mips cc rejects this. */
20571 struct point {int x, y;};
20572 static struct point const zero = {0,0};
20573 /* AIX XL C 1.02.0.0 rejects this.
20574 It does not let you subtract one const X* pointer from another in
20575 an arm of an if-expression whose if-part is not a constant
20577 const char *g = "string";
20578 ccp = &g + (g ? g-g : 0);
20579 /* HPUX 7.0 cc rejects these. */
20582 ccp = (char const *const *) p;
20583 { /* SCO 3.2v4 cc rejects this. */
20585 char const *s = 0 ? (char *) 0 : (char const *) 0;
20589 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20590 int x[] = {25, 17};
20591 const int *foo = &x[0];
20594 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20595 typedef const int *iptr;
20599 { /* AIX XL C 1.02.0.0 rejects this saying
20600 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20601 struct s { int j; const int *ap[3]; };
20602 struct s *b; b->j = 5;
20604 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20605 const int foo = 10;
20613 rm -f "conftest.$ac_objext"
20614 if { (eval echo "$as_me:20614: \"$ac_compile\"") >&5
20615 (eval $ac_compile) 2>&5
20617 echo "$as_me:20617: \$? = $ac_status" >&5
20618 (exit "$ac_status"); } &&
20619 { ac_try='test -s "conftest.$ac_objext"'
20620 { (eval echo "$as_me:20620: \"$ac_try\"") >&5
20621 (eval $ac_try) 2>&5
20623 echo "$as_me:20623: \$? = $ac_status" >&5
20624 (exit "$ac_status"); }; }; then
20627 echo "$as_me: failed program was:" >&5
20628 cat "conftest.$ac_ext" >&5
20631 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20633 echo "$as_me:20633: result: $ac_cv_c_const" >&5
20634 echo "${ECHO_T}$ac_cv_c_const" >&6
20635 if test $ac_cv_c_const = no; then
20637 cat >>confdefs.h <<\EOF
20643 echo "$as_me:20643: checking for inline" >&5
20644 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20645 if test "${ac_cv_c_inline+set}" = set; then
20646 echo $ECHO_N "(cached) $ECHO_C" >&6
20649 for ac_kw in inline __inline__ __inline; do
20650 cat >"conftest.$ac_ext" <<_ACEOF
20651 #line 20651 "configure"
20652 #include "confdefs.h"
20653 #ifndef __cplusplus
20654 static $ac_kw int static_foo () {return 0; }
20655 $ac_kw int foo () {return 0; }
20659 rm -f "conftest.$ac_objext"
20660 if { (eval echo "$as_me:20660: \"$ac_compile\"") >&5
20661 (eval $ac_compile) 2>&5
20663 echo "$as_me:20663: \$? = $ac_status" >&5
20664 (exit "$ac_status"); } &&
20665 { ac_try='test -s "conftest.$ac_objext"'
20666 { (eval echo "$as_me:20666: \"$ac_try\"") >&5
20667 (eval $ac_try) 2>&5
20669 echo "$as_me:20669: \$? = $ac_status" >&5
20670 (exit "$ac_status"); }; }; then
20671 ac_cv_c_inline=$ac_kw; break
20673 echo "$as_me: failed program was:" >&5
20674 cat "conftest.$ac_ext" >&5
20676 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20680 echo "$as_me:20680: result: $ac_cv_c_inline" >&5
20681 echo "${ECHO_T}$ac_cv_c_inline" >&6
20682 case $ac_cv_c_inline in
20685 cat >>confdefs.h <<\EOF
20689 *) cat >>confdefs.h <<EOF
20690 #define inline $ac_cv_c_inline
20696 if test "$ac_cv_c_inline" != no ; then
20697 NCURSES_INLINE=inline
20698 if test "$INTEL_COMPILER" = yes
20701 elif test "$CLANG_COMPILER" = yes
20704 elif test "$GCC" = yes
20706 echo "$as_me:20706: checking if $CC supports options to tune inlining" >&5
20707 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
20708 if test "${cf_cv_gcc_inline+set}" = set; then
20709 echo $ECHO_N "(cached) $ECHO_C" >&6
20712 cf_save_CFLAGS=$CFLAGS
20713 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
20714 cat >"conftest.$ac_ext" <<_ACEOF
20715 #line 20715 "configure"
20716 #include "confdefs.h"
20717 inline int foo(void) { return 1; }
20721 ${cf_cv_main_return:-return} foo()
20726 rm -f "conftest.$ac_objext"
20727 if { (eval echo "$as_me:20727: \"$ac_compile\"") >&5
20728 (eval $ac_compile) 2>&5
20730 echo "$as_me:20730: \$? = $ac_status" >&5
20731 (exit "$ac_status"); } &&
20732 { ac_try='test -s "conftest.$ac_objext"'
20733 { (eval echo "$as_me:20733: \"$ac_try\"") >&5
20734 (eval $ac_try) 2>&5
20736 echo "$as_me:20736: \$? = $ac_status" >&5
20737 (exit "$ac_status"); }; }; then
20738 cf_cv_gcc_inline=yes
20740 echo "$as_me: failed program was:" >&5
20741 cat "conftest.$ac_ext" >&5
20742 cf_cv_gcc_inline=no
20744 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20745 CFLAGS=$cf_save_CFLAGS
20748 echo "$as_me:20748: result: $cf_cv_gcc_inline" >&5
20749 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
20750 if test "$cf_cv_gcc_inline" = yes ; then
20755 cf_new_extra_cppflags=
20757 for cf_add_cflags in --param max-inline-insns-single=1200
20759 case "$cf_fix_cppflags" in
20761 case "$cf_add_cflags" in
20762 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
20763 case "$cf_add_cflags" in
20765 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
20767 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20768 && test -z "${cf_tst_cflags}" \
20769 && cf_fix_cppflags=yes
20771 if test "$cf_fix_cppflags" = yes ; then
20773 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20774 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20777 elif test "${cf_tst_cflags}" = "\"'" ; then
20779 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20780 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20786 case "$CPPFLAGS" in
20790 case "$cf_add_cflags" in
20792 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
20794 CPPFLAGS=`echo "$CPPFLAGS" | \
20795 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
20796 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
20801 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
20802 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
20809 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
20810 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
20817 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20818 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20820 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
20822 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20823 && test -z "${cf_tst_cflags}" \
20824 && cf_fix_cppflags=no
20829 if test -n "$cf_new_cflags" ; then
20831 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
20832 CFLAGS="${CFLAGS}$cf_new_cflags"
20836 if test -n "$cf_new_cppflags" ; then
20838 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
20839 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
20843 if test -n "$cf_new_extra_cppflags" ; then
20845 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
20846 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
20854 echo "$as_me:20854: checking for signal global datatype" >&5
20855 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
20856 if test "${cf_cv_sig_atomic_t+set}" = set; then
20857 echo $ECHO_N "(cached) $ECHO_C" >&6
20861 "volatile sig_atomic_t" \
20865 cat >"conftest.$ac_ext" <<_ACEOF
20866 #line 20866 "configure"
20867 #include "confdefs.h"
20869 #include <sys/types.h>
20870 #include <signal.h>
20875 static void handler(int sig)
20883 signal(SIGINT, handler);
20889 rm -f "conftest.$ac_objext"
20890 if { (eval echo "$as_me:20890: \"$ac_compile\"") >&5
20891 (eval $ac_compile) 2>&5
20893 echo "$as_me:20893: \$? = $ac_status" >&5
20894 (exit "$ac_status"); } &&
20895 { ac_try='test -s "conftest.$ac_objext"'
20896 { (eval echo "$as_me:20896: \"$ac_try\"") >&5
20897 (eval $ac_try) 2>&5
20899 echo "$as_me:20899: \$? = $ac_status" >&5
20900 (exit "$ac_status"); }; }; then
20901 cf_cv_sig_atomic_t=$cf_type
20903 echo "$as_me: failed program was:" >&5
20904 cat "conftest.$ac_ext" >&5
20905 cf_cv_sig_atomic_t=no
20907 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20908 test "$cf_cv_sig_atomic_t" != no && break
20913 echo "$as_me:20913: result: $cf_cv_sig_atomic_t" >&5
20914 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
20915 test "$cf_cv_sig_atomic_t" != no &&
20916 cat >>confdefs.h <<EOF
20917 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
20920 if test "$NCURSES_CHTYPE" = auto ; then
20922 echo "$as_me:20922: checking for type of chtype" >&5
20923 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
20924 if test "${cf_cv_typeof_chtype+set}" = set; then
20925 echo $ECHO_N "(cached) $ECHO_C" >&6
20928 if test "$cross_compiling" = yes; then
20929 cf_cv_typeof_chtype=long
20931 cat >"conftest.$ac_ext" <<_ACEOF
20932 #line 20932 "configure"
20933 #include "confdefs.h"
20935 #define WANT_BITS 31
20939 FILE *fp = fopen("cf_test.out", "w");
20941 char *result = "long";
20942 if (sizeof(unsigned long) > sizeof(unsigned int)) {
20945 for (n = 0; n < WANT_BITS; n++) {
20948 if (y != 1 || x == 0) {
20954 * If x is nonzero, an int is big enough for the bits
20957 result = (x != 0) ? "int" : "long";
20962 ${cf_cv_main_return:-return}(0);
20966 rm -f "conftest$ac_exeext"
20967 if { (eval echo "$as_me:20967: \"$ac_link\"") >&5
20968 (eval $ac_link) 2>&5
20970 echo "$as_me:20970: \$? = $ac_status" >&5
20971 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
20972 { (eval echo "$as_me:20972: \"$ac_try\"") >&5
20973 (eval $ac_try) 2>&5
20975 echo "$as_me:20975: \$? = $ac_status" >&5
20976 (exit "$ac_status"); }; }; then
20977 cf_cv_typeof_chtype=`cat cf_test.out`
20979 echo "$as_me: program exited with status $ac_status" >&5
20980 echo "$as_me: failed program was:" >&5
20981 cat "conftest.$ac_ext" >&5
20982 cf_cv_typeof_chtype=long
20984 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
20990 echo "$as_me:20990: result: $cf_cv_typeof_chtype" >&5
20991 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
20993 cat >>confdefs.h <<EOF
20994 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
20998 cf_cv_typeof_chtype=$NCURSES_CHTYPE
21000 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
21002 echo "$as_me:21002: checking if unsigned literals are legal" >&5
21003 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
21004 if test "${cf_cv_unsigned_literals+set}" = set; then
21005 echo $ECHO_N "(cached) $ECHO_C" >&6
21008 cat >"conftest.$ac_ext" <<_ACEOF
21009 #line 21009 "configure"
21010 #include "confdefs.h"
21015 long x = 1L + 1UL + 1U + 1
21020 rm -f "conftest.$ac_objext"
21021 if { (eval echo "$as_me:21021: \"$ac_compile\"") >&5
21022 (eval $ac_compile) 2>&5
21024 echo "$as_me:21024: \$? = $ac_status" >&5
21025 (exit "$ac_status"); } &&
21026 { ac_try='test -s "conftest.$ac_objext"'
21027 { (eval echo "$as_me:21027: \"$ac_try\"") >&5
21028 (eval $ac_try) 2>&5
21030 echo "$as_me:21030: \$? = $ac_status" >&5
21031 (exit "$ac_status"); }; }; then
21032 cf_cv_unsigned_literals=yes
21034 echo "$as_me: failed program was:" >&5
21035 cat "conftest.$ac_ext" >&5
21036 cf_cv_unsigned_literals=no
21038 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21042 echo "$as_me:21042: result: $cf_cv_unsigned_literals" >&5
21043 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
21046 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
21047 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
21049 if test "$NCURSES_MMASK_T" = auto ; then
21050 cf_cv_typeof_mmask_t=long
21052 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
21054 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
21056 ### Checks for external-data
21058 echo "$as_me:21058: checking if external errno is declared" >&5
21059 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
21060 if test "${cf_cv_dcl_errno+set}" = set; then
21061 echo $ECHO_N "(cached) $ECHO_C" >&6
21064 cat >"conftest.$ac_ext" <<_ACEOF
21065 #line 21065 "configure"
21066 #include "confdefs.h"
21068 #ifdef HAVE_STDLIB_H
21069 #include <stdlib.h>
21072 #include <sys/types.h>
21077 int x = (int) errno; (void)x
21082 rm -f "conftest.$ac_objext"
21083 if { (eval echo "$as_me:21083: \"$ac_compile\"") >&5
21084 (eval $ac_compile) 2>&5
21086 echo "$as_me:21086: \$? = $ac_status" >&5
21087 (exit "$ac_status"); } &&
21088 { ac_try='test -s "conftest.$ac_objext"'
21089 { (eval echo "$as_me:21089: \"$ac_try\"") >&5
21090 (eval $ac_try) 2>&5
21092 echo "$as_me:21092: \$? = $ac_status" >&5
21093 (exit "$ac_status"); }; }; then
21094 cf_cv_dcl_errno=yes
21096 echo "$as_me: failed program was:" >&5
21097 cat "conftest.$ac_ext" >&5
21100 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21103 echo "$as_me:21103: result: $cf_cv_dcl_errno" >&5
21104 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
21106 if test "$cf_cv_dcl_errno" = no ; then
21108 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
21110 cat >>confdefs.h <<EOF
21111 #define $cf_result 1
21116 # It's possible (for near-UNIX clones) that the data doesn't exist
21118 echo "$as_me:21118: checking if external errno exists" >&5
21119 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
21120 if test "${cf_cv_have_errno+set}" = set; then
21121 echo $ECHO_N "(cached) $ECHO_C" >&6
21124 cat >"conftest.$ac_ext" <<_ACEOF
21125 #line 21125 "configure"
21126 #include "confdefs.h"
21139 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21140 if { (eval echo "$as_me:21140: \"$ac_link\"") >&5
21141 (eval $ac_link) 2>&5
21143 echo "$as_me:21143: \$? = $ac_status" >&5
21144 (exit "$ac_status"); } &&
21145 { ac_try='test -s "conftest$ac_exeext"'
21146 { (eval echo "$as_me:21146: \"$ac_try\"") >&5
21147 (eval $ac_try) 2>&5
21149 echo "$as_me:21149: \$? = $ac_status" >&5
21150 (exit "$ac_status"); }; }; then
21151 cf_cv_have_errno=yes
21153 echo "$as_me: failed program was:" >&5
21154 cat "conftest.$ac_ext" >&5
21155 cf_cv_have_errno=no
21157 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21160 echo "$as_me:21160: result: $cf_cv_have_errno" >&5
21161 echo "${ECHO_T}$cf_cv_have_errno" >&6
21163 if test "$cf_cv_have_errno" = yes ; then
21165 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
21167 cat >>confdefs.h <<EOF
21168 #define $cf_result 1
21173 echo "$as_me:21173: checking if data-only library module links" >&5
21174 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
21175 if test "${cf_cv_link_dataonly+set}" = set; then
21176 echo $ECHO_N "(cached) $ECHO_C" >&6
21180 cat >conftest.$ac_ext <<EOF
21181 #line 21181 "configure"
21182 int testdata[3] = { 123, 456, 789 };
21184 if { (eval echo "$as_me:21184: \"$ac_compile\"") >&5
21185 (eval $ac_compile) 2>&5
21187 echo "$as_me:21187: \$? = $ac_status" >&5
21188 (exit "$ac_status"); } ; then
21189 mv conftest.o data.o && \
21190 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
21192 rm -f conftest.$ac_ext data.o
21193 cat >conftest.$ac_ext <<EOF
21194 #line 21194 "configure"
21198 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
21200 extern int testdata[3];
21201 return testdata[0] == 123
21202 && testdata[1] == 456
21203 && testdata[2] == 789;
21207 if { (eval echo "$as_me:21207: \"$ac_compile\"") >&5
21208 (eval $ac_compile) 2>&5
21210 echo "$as_me:21210: \$? = $ac_status" >&5
21211 (exit "$ac_status"); }; then
21212 mv conftest.o func.o && \
21213 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
21215 rm -f conftest.$ac_ext func.o
21216 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
21217 cf_saveLIBS="$LIBS"
21218 LIBS="conftest.a $LIBS"
21219 if test "$cross_compiling" = yes; then
21220 cf_cv_link_dataonly=unknown
21222 cat >"conftest.$ac_ext" <<_ACEOF
21223 #line 21223 "configure"
21224 #include "confdefs.h"
21228 extern int testfunc();
21229 ${cf_cv_main_return:-return} (!testfunc());
21233 rm -f "conftest$ac_exeext"
21234 if { (eval echo "$as_me:21234: \"$ac_link\"") >&5
21235 (eval $ac_link) 2>&5
21237 echo "$as_me:21237: \$? = $ac_status" >&5
21238 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
21239 { (eval echo "$as_me:21239: \"$ac_try\"") >&5
21240 (eval $ac_try) 2>&5
21242 echo "$as_me:21242: \$? = $ac_status" >&5
21243 (exit "$ac_status"); }; }; then
21244 cf_cv_link_dataonly=yes
21246 echo "$as_me: program exited with status $ac_status" >&5
21247 echo "$as_me: failed program was:" >&5
21248 cat "conftest.$ac_ext" >&5
21249 cf_cv_link_dataonly=no
21251 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
21253 LIBS="$cf_saveLIBS"
21257 echo "$as_me:21257: result: $cf_cv_link_dataonly" >&5
21258 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
21260 if test "$cf_cv_link_dataonly" = no ; then
21262 cat >>confdefs.h <<\EOF
21263 #define BROKEN_LINKER 1
21269 ### Checks for library functions.
21300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21301 echo "$as_me:21301: checking for $ac_func" >&5
21302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21303 if eval "test \"\${$as_ac_var+set}\" = set"; then
21304 echo $ECHO_N "(cached) $ECHO_C" >&6
21306 cat >"conftest.$ac_ext" <<_ACEOF
21307 #line 21307 "configure"
21308 #include "confdefs.h"
21309 #define $ac_func autoconf_temporary
21310 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21317 /* We use char because int might match the return type of a gcc2
21318 builtin and then its argument prototype would still apply. */
21319 char $ac_func (void);
21325 /* The GNU C library defines stubs for functions which it implements
21326 to always fail with ENOSYS. Some functions are actually named
21327 something starting with __ and the normal name is an alias. */
21328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21329 #error found stub for $ac_func
21332 return $ac_func ();
21337 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21338 if { (eval echo "$as_me:21338: \"$ac_link\"") >&5
21339 (eval $ac_link) 2>&5
21341 echo "$as_me:21341: \$? = $ac_status" >&5
21342 (exit "$ac_status"); } &&
21343 { ac_try='test -s "conftest$ac_exeext"'
21344 { (eval echo "$as_me:21344: \"$ac_try\"") >&5
21345 (eval $ac_try) 2>&5
21347 echo "$as_me:21347: \$? = $ac_status" >&5
21348 (exit "$ac_status"); }; }; then
21349 eval "$as_ac_var=yes"
21351 echo "$as_me: failed program was:" >&5
21352 cat "conftest.$ac_ext" >&5
21353 eval "$as_ac_var=no"
21355 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21357 echo "$as_me:21357: result: `eval echo '${'"$as_ac_var"'}'`" >&5
21358 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
21359 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
21360 cat >>confdefs.h <<EOF
21361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21367 if test "x$ac_cv_func_getopt" = xno && \
21368 test "x$cf_with_progs$cf_with_tests" != xnono; then
21369 { { echo "$as_me:21369: error: getopt is required for building programs" >&5
21370 echo "$as_me: error: getopt is required for building programs" >&2;}
21371 { (exit 1); exit 1; }; }
21374 if test "x$with_safe_sprintf" = xyes
21376 if test "x$ac_cv_func_vsnprintf" = xyes
21378 { echo "$as_me:21378: WARNING: will use vsnprintf instead of safe-sprintf option" >&5
21379 echo "$as_me: WARNING: will use vsnprintf instead of safe-sprintf option" >&2;}
21382 cat >>confdefs.h <<\EOF
21383 #define USE_SAFE_SPRINTF 1
21389 if test "x$with_getcap" = "xyes" ; then
21391 echo "$as_me:21391: checking for terminal-capability database functions" >&5
21392 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
21393 if test "${cf_cv_cgetent+set}" = set; then
21394 echo $ECHO_N "(cached) $ECHO_C" >&6
21397 cat >"conftest.$ac_ext" <<_ACEOF
21398 #line 21398 "configure"
21399 #include "confdefs.h"
21401 #include <stdlib.h>
21408 char *db_array = temp;
21409 cgetent(&buf, &db_array, "vt100");
21410 cgetcap(buf, "tc", '=');
21411 cgetmatch(buf, "tc");
21417 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21418 if { (eval echo "$as_me:21418: \"$ac_link\"") >&5
21419 (eval $ac_link) 2>&5
21421 echo "$as_me:21421: \$? = $ac_status" >&5
21422 (exit "$ac_status"); } &&
21423 { ac_try='test -s "conftest$ac_exeext"'
21424 { (eval echo "$as_me:21424: \"$ac_try\"") >&5
21425 (eval $ac_try) 2>&5
21427 echo "$as_me:21427: \$? = $ac_status" >&5
21428 (exit "$ac_status"); }; }; then
21431 echo "$as_me: failed program was:" >&5
21432 cat "conftest.$ac_ext" >&5
21435 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21438 echo "$as_me:21438: result: $cf_cv_cgetent" >&5
21439 echo "${ECHO_T}$cf_cv_cgetent" >&6
21441 if test "$cf_cv_cgetent" = yes
21444 cat >>confdefs.h <<\EOF
21445 #define HAVE_BSD_CGETENT 1
21448 echo "$as_me:21448: checking if cgetent uses const parameter" >&5
21449 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
21450 if test "${cf_cv_cgetent_const+set}" = set; then
21451 echo $ECHO_N "(cached) $ECHO_C" >&6
21454 cat >"conftest.$ac_ext" <<_ACEOF
21455 #line 21455 "configure"
21456 #include "confdefs.h"
21458 #pragma GCC diagnostic error "-Wincompatible-pointer-types-discards-qualifiers"
21459 #include <stdlib.h>
21466 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
21467 const char *db_array = temp;
21468 cgetent(&buf, &db_array, "vt100");
21470 cgetcap(buf, "tc", '=');
21471 cgetmatch(buf, "tc");
21477 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21478 if { (eval echo "$as_me:21478: \"$ac_link\"") >&5
21479 (eval $ac_link) 2>&5
21481 echo "$as_me:21481: \$? = $ac_status" >&5
21482 (exit "$ac_status"); } &&
21483 { ac_try='test -s "conftest$ac_exeext"'
21484 { (eval echo "$as_me:21484: \"$ac_try\"") >&5
21485 (eval $ac_try) 2>&5
21487 echo "$as_me:21487: \$? = $ac_status" >&5
21488 (exit "$ac_status"); }; }; then
21489 cf_cv_cgetent_const=yes
21491 echo "$as_me: failed program was:" >&5
21492 cat "conftest.$ac_ext" >&5
21493 cf_cv_cgetent_const=no
21495 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21498 echo "$as_me:21498: result: $cf_cv_cgetent_const" >&5
21499 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
21500 if test "$cf_cv_cgetent_const" = yes
21503 cat >>confdefs.h <<EOF
21504 #define CGETENT_CONST const
21512 echo "$as_me:21512: checking for isascii" >&5
21513 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
21514 if test "${cf_cv_have_isascii+set}" = set; then
21515 echo $ECHO_N "(cached) $ECHO_C" >&6
21518 cat >"conftest.$ac_ext" <<_ACEOF
21519 #line 21519 "configure"
21520 #include "confdefs.h"
21525 int x = isascii(' ')
21530 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21531 if { (eval echo "$as_me:21531: \"$ac_link\"") >&5
21532 (eval $ac_link) 2>&5
21534 echo "$as_me:21534: \$? = $ac_status" >&5
21535 (exit "$ac_status"); } &&
21536 { ac_try='test -s "conftest$ac_exeext"'
21537 { (eval echo "$as_me:21537: \"$ac_try\"") >&5
21538 (eval $ac_try) 2>&5
21540 echo "$as_me:21540: \$? = $ac_status" >&5
21541 (exit "$ac_status"); }; }; then
21542 cf_cv_have_isascii=yes
21544 echo "$as_me: failed program was:" >&5
21545 cat "conftest.$ac_ext" >&5
21546 cf_cv_have_isascii=no
21548 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21551 echo "$as_me:21551: result: $cf_cv_have_isascii" >&5
21552 echo "${ECHO_T}$cf_cv_have_isascii" >&6
21553 test "$cf_cv_have_isascii" = yes &&
21554 cat >>confdefs.h <<\EOF
21555 #define HAVE_ISASCII 1
21558 if test "$ac_cv_func_sigaction" = yes; then
21559 echo "$as_me:21559: checking whether sigaction needs _POSIX_SOURCE" >&5
21560 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
21561 cat >"conftest.$ac_ext" <<_ACEOF
21562 #line 21562 "configure"
21563 #include "confdefs.h"
21565 #include <sys/types.h>
21566 #include <signal.h>
21570 struct sigaction act
21575 rm -f "conftest.$ac_objext"
21576 if { (eval echo "$as_me:21576: \"$ac_compile\"") >&5
21577 (eval $ac_compile) 2>&5
21579 echo "$as_me:21579: \$? = $ac_status" >&5
21580 (exit "$ac_status"); } &&
21581 { ac_try='test -s "conftest.$ac_objext"'
21582 { (eval echo "$as_me:21582: \"$ac_try\"") >&5
21583 (eval $ac_try) 2>&5
21585 echo "$as_me:21585: \$? = $ac_status" >&5
21586 (exit "$ac_status"); }; }; then
21589 echo "$as_me: failed program was:" >&5
21590 cat "conftest.$ac_ext" >&5
21592 cat >"conftest.$ac_ext" <<_ACEOF
21593 #line 21593 "configure"
21594 #include "confdefs.h"
21596 #define _POSIX_SOURCE
21597 #include <sys/types.h>
21598 #include <signal.h>
21602 struct sigaction act
21607 rm -f "conftest.$ac_objext"
21608 if { (eval echo "$as_me:21608: \"$ac_compile\"") >&5
21609 (eval $ac_compile) 2>&5
21611 echo "$as_me:21611: \$? = $ac_status" >&5
21612 (exit "$ac_status"); } &&
21613 { ac_try='test -s "conftest.$ac_objext"'
21614 { (eval echo "$as_me:21614: \"$ac_try\"") >&5
21615 (eval $ac_try) 2>&5
21617 echo "$as_me:21617: \$? = $ac_status" >&5
21618 (exit "$ac_status"); }; }; then
21621 cat >>confdefs.h <<\EOF
21622 #define _POSIX_SOURCE 1
21626 echo "$as_me: failed program was:" >&5
21627 cat "conftest.$ac_ext" >&5
21630 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21632 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21633 echo "$as_me:21633: result: $sigact_bad" >&5
21634 echo "${ECHO_T}$sigact_bad" >&6
21637 echo "$as_me:21637: checking if nanosleep really works" >&5
21638 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
21639 if test "${cf_cv_func_nanosleep+set}" = set; then
21640 echo $ECHO_N "(cached) $ECHO_C" >&6
21643 if test "$cross_compiling" = yes; then
21644 cf_cv_func_nanosleep=unknown
21646 cat >"conftest.$ac_ext" <<_ACEOF
21647 #line 21647 "configure"
21648 #include "confdefs.h"
21654 #ifdef HAVE_SYS_TIME_H
21655 #include <sys/time.h>
21659 struct timespec ts1, ts2;
21662 ts1.tv_nsec = 750000000;
21666 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
21667 ${cf_cv_main_return:-return}(code != 0);
21671 rm -f "conftest$ac_exeext"
21672 if { (eval echo "$as_me:21672: \"$ac_link\"") >&5
21673 (eval $ac_link) 2>&5
21675 echo "$as_me:21675: \$? = $ac_status" >&5
21676 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
21677 { (eval echo "$as_me:21677: \"$ac_try\"") >&5
21678 (eval $ac_try) 2>&5
21680 echo "$as_me:21680: \$? = $ac_status" >&5
21681 (exit "$ac_status"); }; }; then
21682 cf_cv_func_nanosleep=yes
21684 echo "$as_me: program exited with status $ac_status" >&5
21685 echo "$as_me: failed program was:" >&5
21686 cat "conftest.$ac_ext" >&5
21687 cf_cv_func_nanosleep=no
21689 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
21692 echo "$as_me:21692: result: $cf_cv_func_nanosleep" >&5
21693 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
21695 test "$cf_cv_func_nanosleep" = "yes" &&
21696 cat >>confdefs.h <<\EOF
21697 #define HAVE_NANOSLEEP 1
21708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21709 echo "$as_me:21709: checking for $ac_header" >&5
21710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21712 echo $ECHO_N "(cached) $ECHO_C" >&6
21714 cat >"conftest.$ac_ext" <<_ACEOF
21715 #line 21715 "configure"
21716 #include "confdefs.h"
21717 #include <$ac_header>
21719 if { (eval echo "$as_me:21719: \"$ac_cpp "conftest.$ac_ext"\"") >&5
21720 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
21722 $EGREP -v '^ *\+' conftest.er1 >conftest.err
21724 cat conftest.err >&5
21725 echo "$as_me:21725: \$? = $ac_status" >&5
21726 (exit "$ac_status"); } >/dev/null; then
21727 if test -s conftest.err; then
21728 ac_cpp_err=$ac_c_preproc_warn_flag
21735 if test -z "$ac_cpp_err"; then
21736 eval "$as_ac_Header=yes"
21738 echo "$as_me: failed program was:" >&5
21739 cat "conftest.$ac_ext" >&5
21740 eval "$as_ac_Header=no"
21742 rm -f conftest.err "conftest.$ac_ext"
21744 echo "$as_me:21744: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
21745 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
21746 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
21747 cat >>confdefs.h <<EOF
21748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21754 if test "$ac_cv_header_termios_h" = yes ; then
21755 case "$CFLAGS $CPPFLAGS" in
21756 (*-D_POSIX_SOURCE*)
21757 termios_bad=dunno ;;
21758 (*) termios_bad=maybe ;;
21760 if test "$termios_bad" = maybe ; then
21761 echo "$as_me:21761: checking whether termios.h needs _POSIX_SOURCE" >&5
21762 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
21763 cat >"conftest.$ac_ext" <<_ACEOF
21764 #line 21764 "configure"
21765 #include "confdefs.h"
21766 #include <termios.h>
21770 struct termios foo; int x = foo.c_iflag = 1; (void)x
21775 rm -f "conftest.$ac_objext"
21776 if { (eval echo "$as_me:21776: \"$ac_compile\"") >&5
21777 (eval $ac_compile) 2>&5
21779 echo "$as_me:21779: \$? = $ac_status" >&5
21780 (exit "$ac_status"); } &&
21781 { ac_try='test -s "conftest.$ac_objext"'
21782 { (eval echo "$as_me:21782: \"$ac_try\"") >&5
21783 (eval $ac_try) 2>&5
21785 echo "$as_me:21785: \$? = $ac_status" >&5
21786 (exit "$ac_status"); }; }; then
21789 echo "$as_me: failed program was:" >&5
21790 cat "conftest.$ac_ext" >&5
21792 cat >"conftest.$ac_ext" <<_ACEOF
21793 #line 21793 "configure"
21794 #include "confdefs.h"
21796 #define _POSIX_SOURCE
21797 #include <termios.h>
21801 struct termios foo; int x = foo.c_iflag = 2; (void)x
21806 rm -f "conftest.$ac_objext"
21807 if { (eval echo "$as_me:21807: \"$ac_compile\"") >&5
21808 (eval $ac_compile) 2>&5
21810 echo "$as_me:21810: \$? = $ac_status" >&5
21811 (exit "$ac_status"); } &&
21812 { ac_try='test -s "conftest.$ac_objext"'
21813 { (eval echo "$as_me:21813: \"$ac_try\"") >&5
21814 (eval $ac_try) 2>&5
21816 echo "$as_me:21816: \$? = $ac_status" >&5
21817 (exit "$ac_status"); }; }; then
21818 termios_bad=unknown
21820 echo "$as_me: failed program was:" >&5
21821 cat "conftest.$ac_ext" >&5
21823 cat >>confdefs.h <<\EOF
21824 #define _POSIX_SOURCE 1
21828 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21831 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21832 echo "$as_me:21832: result: $termios_bad" >&5
21833 echo "${ECHO_T}$termios_bad" >&6
21837 echo "$as_me:21837: checking for tcgetattr" >&5
21838 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
21839 if test "${cf_cv_have_tcgetattr+set}" = set; then
21840 echo $ECHO_N "(cached) $ECHO_C" >&6
21843 cat >"conftest.$ac_ext" <<_ACEOF
21844 #line 21844 "configure"
21845 #include "confdefs.h"
21847 #include <sys/types.h>
21848 #ifdef HAVE_UNISTD_H
21849 #include <unistd.h>
21851 #ifdef HAVE_TERMIOS_H
21852 #include <termios.h>
21853 #define TTY struct termios
21855 #ifdef HAVE_TERMIO_H
21856 #include <termio.h>
21857 #define TTY struct termio
21866 tcgetattr(1, &foo);
21871 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21872 if { (eval echo "$as_me:21872: \"$ac_link\"") >&5
21873 (eval $ac_link) 2>&5
21875 echo "$as_me:21875: \$? = $ac_status" >&5
21876 (exit "$ac_status"); } &&
21877 { ac_try='test -s "conftest$ac_exeext"'
21878 { (eval echo "$as_me:21878: \"$ac_try\"") >&5
21879 (eval $ac_try) 2>&5
21881 echo "$as_me:21881: \$? = $ac_status" >&5
21882 (exit "$ac_status"); }; }; then
21883 cf_cv_have_tcgetattr=yes
21885 echo "$as_me: failed program was:" >&5
21886 cat "conftest.$ac_ext" >&5
21887 cf_cv_have_tcgetattr=no
21889 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21891 echo "$as_me:21891: result: $cf_cv_have_tcgetattr" >&5
21892 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
21893 test "$cf_cv_have_tcgetattr" = yes &&
21894 cat >>confdefs.h <<\EOF
21895 #define HAVE_TCGETATTR 1
21898 echo "$as_me:21898: checking for vsscanf function or workaround" >&5
21899 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
21900 if test "${cf_cv_func_vsscanf+set}" = set; then
21901 echo $ECHO_N "(cached) $ECHO_C" >&6
21904 cat >"conftest.$ac_ext" <<_ACEOF
21905 #line 21905 "configure"
21906 #include "confdefs.h"
21908 #include <stdarg.h>
21915 vsscanf("from", "%d", ap)
21920 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21921 if { (eval echo "$as_me:21921: \"$ac_link\"") >&5
21922 (eval $ac_link) 2>&5
21924 echo "$as_me:21924: \$? = $ac_status" >&5
21925 (exit "$ac_status"); } &&
21926 { ac_try='test -s "conftest$ac_exeext"'
21927 { (eval echo "$as_me:21927: \"$ac_try\"") >&5
21928 (eval $ac_try) 2>&5
21930 echo "$as_me:21930: \$? = $ac_status" >&5
21931 (exit "$ac_status"); }; }; then
21932 cf_cv_func_vsscanf=vsscanf
21934 echo "$as_me: failed program was:" >&5
21935 cat "conftest.$ac_ext" >&5
21937 cat >"conftest.$ac_ext" <<_ACEOF
21938 #line 21938 "configure"
21939 #include "confdefs.h"
21941 #include <stdarg.h>
21948 char *str = "from";
21950 strbuf._flag = _IOREAD;
21951 strbuf._ptr = strbuf._base = (unsigned char *) str;
21952 strbuf._cnt = strlen(str);
21953 strbuf._file = _NFILE;
21954 return (vfscanf(&strbuf, "%d", ap))
21959 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21960 if { (eval echo "$as_me:21960: \"$ac_link\"") >&5
21961 (eval $ac_link) 2>&5
21963 echo "$as_me:21963: \$? = $ac_status" >&5
21964 (exit "$ac_status"); } &&
21965 { ac_try='test -s "conftest$ac_exeext"'
21966 { (eval echo "$as_me:21966: \"$ac_try\"") >&5
21967 (eval $ac_try) 2>&5
21969 echo "$as_me:21969: \$? = $ac_status" >&5
21970 (exit "$ac_status"); }; }; then
21971 cf_cv_func_vsscanf=vfscanf
21973 echo "$as_me: failed program was:" >&5
21974 cat "conftest.$ac_ext" >&5
21976 cat >"conftest.$ac_ext" <<_ACEOF
21977 #line 21977 "configure"
21978 #include "confdefs.h"
21980 #include <stdarg.h>
21987 char *str = "from";
21989 strbuf._flag = _IOREAD;
21990 strbuf._ptr = strbuf._base = (unsigned char *) str;
21991 strbuf._cnt = strlen(str);
21992 strbuf._file = _NFILE;
21993 return (_doscan(&strbuf, "%d", ap))
21998 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21999 if { (eval echo "$as_me:21999: \"$ac_link\"") >&5
22000 (eval $ac_link) 2>&5
22002 echo "$as_me:22002: \$? = $ac_status" >&5
22003 (exit "$ac_status"); } &&
22004 { ac_try='test -s "conftest$ac_exeext"'
22005 { (eval echo "$as_me:22005: \"$ac_try\"") >&5
22006 (eval $ac_try) 2>&5
22008 echo "$as_me:22008: \$? = $ac_status" >&5
22009 (exit "$ac_status"); }; }; then
22010 cf_cv_func_vsscanf=_doscan
22012 echo "$as_me: failed program was:" >&5
22013 cat "conftest.$ac_ext" >&5
22015 cf_cv_func_vsscanf=no
22017 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22019 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22021 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22023 echo "$as_me:22023: result: $cf_cv_func_vsscanf" >&5
22024 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
22026 case "$cf_cv_func_vsscanf" in
22028 cat >>confdefs.h <<\EOF
22029 #define HAVE_VSSCANF 1
22033 cat >>confdefs.h <<\EOF
22034 #define HAVE_VFSCANF 1
22038 cat >>confdefs.h <<\EOF
22039 #define HAVE__DOSCAN 1
22048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22049 echo "$as_me:22049: checking for $ac_header" >&5
22050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22052 echo $ECHO_N "(cached) $ECHO_C" >&6
22054 cat >"conftest.$ac_ext" <<_ACEOF
22055 #line 22055 "configure"
22056 #include "confdefs.h"
22057 #include <$ac_header>
22059 if { (eval echo "$as_me:22059: \"$ac_cpp "conftest.$ac_ext"\"") >&5
22060 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
22062 $EGREP -v '^ *\+' conftest.er1 >conftest.err
22064 cat conftest.err >&5
22065 echo "$as_me:22065: \$? = $ac_status" >&5
22066 (exit "$ac_status"); } >/dev/null; then
22067 if test -s conftest.err; then
22068 ac_cpp_err=$ac_c_preproc_warn_flag
22075 if test -z "$ac_cpp_err"; then
22076 eval "$as_ac_Header=yes"
22078 echo "$as_me: failed program was:" >&5
22079 cat "conftest.$ac_ext" >&5
22080 eval "$as_ac_Header=no"
22082 rm -f conftest.err "conftest.$ac_ext"
22084 echo "$as_me:22084: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
22085 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
22086 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
22087 cat >>confdefs.h <<EOF
22088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22094 echo "$as_me:22094: checking for working mkstemp" >&5
22095 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
22096 if test "${cf_cv_func_mkstemp+set}" = set; then
22097 echo $ECHO_N "(cached) $ECHO_C" >&6
22101 if test "$cross_compiling" = yes; then
22102 cf_cv_func_mkstemp=maybe
22104 cat >"conftest.$ac_ext" <<_ACEOF
22105 #line 22105 "configure"
22106 #include "confdefs.h"
22108 #include <sys/types.h>
22109 #ifdef HAVE_UNISTD_H
22110 #include <unistd.h>
22112 #include <stdlib.h>
22114 #include <string.h>
22115 #include <sys/stat.h>
22118 char *tmpl = "conftestXXXXXX";
22126 for (n = 0; n < 2; ++n) {
22127 strcpy(name[n], tmpl);
22128 if ((fd = mkstemp(name[n])) >= 0) {
22129 if (!strcmp(name[n], tmpl)
22130 || stat(name[n], &sb) != 0
22131 || (sb.st_mode & S_IFMT) != S_IFREG
22132 || (sb.st_mode & 077) != 0) {
22139 && !strcmp(name[0], name[1]))
22141 ${cf_cv_main_return:-return}(result);
22145 rm -f "conftest$ac_exeext"
22146 if { (eval echo "$as_me:22146: \"$ac_link\"") >&5
22147 (eval $ac_link) 2>&5
22149 echo "$as_me:22149: \$? = $ac_status" >&5
22150 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
22151 { (eval echo "$as_me:22151: \"$ac_try\"") >&5
22152 (eval $ac_try) 2>&5
22154 echo "$as_me:22154: \$? = $ac_status" >&5
22155 (exit "$ac_status"); }; }; then
22156 cf_cv_func_mkstemp=yes
22159 echo "$as_me: program exited with status $ac_status" >&5
22160 echo "$as_me: failed program was:" >&5
22161 cat "conftest.$ac_ext" >&5
22162 cf_cv_func_mkstemp=no
22165 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22169 echo "$as_me:22169: result: $cf_cv_func_mkstemp" >&5
22170 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
22171 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
22172 echo "$as_me:22172: checking for mkstemp" >&5
22173 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
22174 if test "${ac_cv_func_mkstemp+set}" = set; then
22175 echo $ECHO_N "(cached) $ECHO_C" >&6
22177 cat >"conftest.$ac_ext" <<_ACEOF
22178 #line 22178 "configure"
22179 #include "confdefs.h"
22180 #define mkstemp autoconf_temporary
22181 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
22188 /* We use char because int might match the return type of a gcc2
22189 builtin and then its argument prototype would still apply. */
22190 char mkstemp (void);
22196 /* The GNU C library defines stubs for functions which it implements
22197 to always fail with ENOSYS. Some functions are actually named
22198 something starting with __ and the normal name is an alias. */
22199 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
22200 #error found stub for mkstemp
22208 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22209 if { (eval echo "$as_me:22209: \"$ac_link\"") >&5
22210 (eval $ac_link) 2>&5
22212 echo "$as_me:22212: \$? = $ac_status" >&5
22213 (exit "$ac_status"); } &&
22214 { ac_try='test -s "conftest$ac_exeext"'
22215 { (eval echo "$as_me:22215: \"$ac_try\"") >&5
22216 (eval $ac_try) 2>&5
22218 echo "$as_me:22218: \$? = $ac_status" >&5
22219 (exit "$ac_status"); }; }; then
22220 ac_cv_func_mkstemp=yes
22222 echo "$as_me: failed program was:" >&5
22223 cat "conftest.$ac_ext" >&5
22224 ac_cv_func_mkstemp=no
22226 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22228 echo "$as_me:22228: result: $ac_cv_func_mkstemp" >&5
22229 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
22232 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
22234 cat >>confdefs.h <<\EOF
22235 #define HAVE_MKSTEMP 1
22240 # setup for prototype of fallback for vsscanf()
22242 if test "$cf_cv_func_vsscanf" = vsscanf ; then
22248 if test "x$cross_compiling" = xyes ; then
22249 { echo "$as_me:22249: WARNING: cross compiling: assume setvbuf params not reversed" >&5
22250 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
22252 echo "$as_me:22252: checking whether setvbuf arguments are reversed" >&5
22253 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
22254 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
22255 echo $ECHO_N "(cached) $ECHO_C" >&6
22257 if test "$cross_compiling" = yes; then
22258 { { echo "$as_me:22258: error: cannot run test program while cross compiling" >&5
22259 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
22260 { (exit 1); exit 1; }; }
22262 cat >"conftest.$ac_ext" <<_ACEOF
22263 #line 22263 "configure"
22264 #include "confdefs.h"
22266 /* If setvbuf has the reversed format, exit 0. */
22270 /* This call has the arguments reversed.
22271 A reversed system may check and see that the address of main
22272 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
22273 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
22274 $ac_main_return(1);
22275 putc('\r', stdout);
22276 $ac_main_return(0); /* Non-reversed systems segv here. */
22279 rm -f "conftest$ac_exeext"
22280 if { (eval echo "$as_me:22280: \"$ac_link\"") >&5
22281 (eval $ac_link) 2>&5
22283 echo "$as_me:22283: \$? = $ac_status" >&5
22284 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
22285 { (eval echo "$as_me:22285: \"$ac_try\"") >&5
22286 (eval $ac_try) 2>&5
22288 echo "$as_me:22288: \$? = $ac_status" >&5
22289 (exit "$ac_status"); }; }; then
22290 ac_cv_func_setvbuf_reversed=yes
22292 echo "$as_me: program exited with status $ac_status" >&5
22293 echo "$as_me: failed program was:" >&5
22294 cat "conftest.$ac_ext" >&5
22295 ac_cv_func_setvbuf_reversed=no
22297 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22299 rm -f core ./core.* ./*.core
22301 echo "$as_me:22301: result: $ac_cv_func_setvbuf_reversed" >&5
22302 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
22303 if test $ac_cv_func_setvbuf_reversed = yes; then
22305 cat >>confdefs.h <<\EOF
22306 #define SETVBUF_REVERSED 1
22312 echo "$as_me:22312: checking for intptr_t" >&5
22313 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
22314 if test "${ac_cv_type_intptr_t+set}" = set; then
22315 echo $ECHO_N "(cached) $ECHO_C" >&6
22317 cat >"conftest.$ac_ext" <<_ACEOF
22318 #line 22318 "configure"
22319 #include "confdefs.h"
22320 $ac_includes_default
22324 if ((intptr_t *) 0)
22326 if (sizeof (intptr_t))
22332 rm -f "conftest.$ac_objext"
22333 if { (eval echo "$as_me:22333: \"$ac_compile\"") >&5
22334 (eval $ac_compile) 2>&5
22336 echo "$as_me:22336: \$? = $ac_status" >&5
22337 (exit "$ac_status"); } &&
22338 { ac_try='test -s "conftest.$ac_objext"'
22339 { (eval echo "$as_me:22339: \"$ac_try\"") >&5
22340 (eval $ac_try) 2>&5
22342 echo "$as_me:22342: \$? = $ac_status" >&5
22343 (exit "$ac_status"); }; }; then
22344 ac_cv_type_intptr_t=yes
22346 echo "$as_me: failed program was:" >&5
22347 cat "conftest.$ac_ext" >&5
22348 ac_cv_type_intptr_t=no
22350 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22352 echo "$as_me:22352: result: $ac_cv_type_intptr_t" >&5
22353 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
22354 if test "$ac_cv_type_intptr_t" = yes; then
22358 cat >>confdefs.h <<EOF
22359 #define intptr_t long
22364 echo "$as_me:22364: checking for ssize_t" >&5
22365 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
22366 if test "${ac_cv_type_ssize_t+set}" = set; then
22367 echo $ECHO_N "(cached) $ECHO_C" >&6
22369 cat >"conftest.$ac_ext" <<_ACEOF
22370 #line 22370 "configure"
22371 #include "confdefs.h"
22372 $ac_includes_default
22378 if (sizeof (ssize_t))
22384 rm -f "conftest.$ac_objext"
22385 if { (eval echo "$as_me:22385: \"$ac_compile\"") >&5
22386 (eval $ac_compile) 2>&5
22388 echo "$as_me:22388: \$? = $ac_status" >&5
22389 (exit "$ac_status"); } &&
22390 { ac_try='test -s "conftest.$ac_objext"'
22391 { (eval echo "$as_me:22391: \"$ac_try\"") >&5
22392 (eval $ac_try) 2>&5
22394 echo "$as_me:22394: \$? = $ac_status" >&5
22395 (exit "$ac_status"); }; }; then
22396 ac_cv_type_ssize_t=yes
22398 echo "$as_me: failed program was:" >&5
22399 cat "conftest.$ac_ext" >&5
22400 ac_cv_type_ssize_t=no
22402 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22404 echo "$as_me:22404: result: $ac_cv_type_ssize_t" >&5
22405 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
22406 if test "$ac_cv_type_ssize_t" = yes; then
22410 cat >>confdefs.h <<EOF
22411 #define ssize_t int
22416 echo "$as_me:22416: checking for type sigaction_t" >&5
22417 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
22418 if test "${cf_cv_type_sigaction+set}" = set; then
22419 echo $ECHO_N "(cached) $ECHO_C" >&6
22422 cat >"conftest.$ac_ext" <<_ACEOF
22423 #line 22423 "configure"
22424 #include "confdefs.h"
22426 #include <signal.h>
22435 rm -f "conftest.$ac_objext"
22436 if { (eval echo "$as_me:22436: \"$ac_compile\"") >&5
22437 (eval $ac_compile) 2>&5
22439 echo "$as_me:22439: \$? = $ac_status" >&5
22440 (exit "$ac_status"); } &&
22441 { ac_try='test -s "conftest.$ac_objext"'
22442 { (eval echo "$as_me:22442: \"$ac_try\"") >&5
22443 (eval $ac_try) 2>&5
22445 echo "$as_me:22445: \$? = $ac_status" >&5
22446 (exit "$ac_status"); }; }; then
22447 cf_cv_type_sigaction=yes
22449 echo "$as_me: failed program was:" >&5
22450 cat "conftest.$ac_ext" >&5
22451 cf_cv_type_sigaction=no
22453 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22456 echo "$as_me:22456: result: $cf_cv_type_sigaction" >&5
22457 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
22458 test "$cf_cv_type_sigaction" = yes &&
22459 cat >>confdefs.h <<\EOF
22460 #define HAVE_TYPE_SIGACTION 1
22463 echo "$as_me:22463: checking declaration of size-change" >&5
22464 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
22465 if test "${cf_cv_sizechange+set}" = set; then
22466 echo $ECHO_N "(cached) $ECHO_C" >&6
22469 cf_cv_sizechange=unknown
22470 cf_save_CPPFLAGS="$CPPFLAGS"
22472 for cf_opts in "" "NEED_PTEM_H"
22475 CPPFLAGS="$cf_save_CPPFLAGS"
22476 if test -n "$cf_opts"
22479 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
22480 CPPFLAGS="${CPPFLAGS}-D$cf_opts"
22483 cat >"conftest.$ac_ext" <<_ACEOF
22484 #line 22484 "configure"
22485 #include "confdefs.h"
22486 #include <sys/types.h>
22487 #ifdef HAVE_TERMIOS_H
22488 #include <termios.h>
22490 #ifdef HAVE_TERMIO_H
22491 #include <termio.h>
22496 /* This is a workaround for SCO: they neglected to define struct winsize in
22497 * termios.h -- it is only in termio.h and ptem.h
22499 #include <sys/stream.h>
22500 #include <sys/ptem.h>
22503 #ifdef HAVE_SYS_IOCTL_H
22504 #include <sys/ioctl.h>
22512 struct ttysize win; /* SunOS 3.0... */
22513 int y = win.ts_lines = 2;
22514 int x = win.ts_cols = 1;
22519 struct winsize win; /* everything else */
22520 int y = win.ws_row = 2;
22521 int x = win.ws_col = 1;
22525 no TIOCGSIZE or TIOCGWINSZ
22526 #endif /* TIOCGWINSZ */
22527 #endif /* TIOCGSIZE */
22533 rm -f "conftest.$ac_objext"
22534 if { (eval echo "$as_me:22534: \"$ac_compile\"") >&5
22535 (eval $ac_compile) 2>&5
22537 echo "$as_me:22537: \$? = $ac_status" >&5
22538 (exit "$ac_status"); } &&
22539 { ac_try='test -s "conftest.$ac_objext"'
22540 { (eval echo "$as_me:22540: \"$ac_try\"") >&5
22541 (eval $ac_try) 2>&5
22543 echo "$as_me:22543: \$? = $ac_status" >&5
22544 (exit "$ac_status"); }; }; then
22545 cf_cv_sizechange=yes
22547 echo "$as_me: failed program was:" >&5
22548 cat "conftest.$ac_ext" >&5
22549 cf_cv_sizechange=no
22551 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22553 CPPFLAGS="$cf_save_CPPFLAGS"
22554 if test "$cf_cv_sizechange" = yes ; then
22555 echo "size-change succeeded ($cf_opts)" >&5
22556 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
22562 echo "$as_me:22562: result: $cf_cv_sizechange" >&5
22563 echo "${ECHO_T}$cf_cv_sizechange" >&6
22564 if test "$cf_cv_sizechange" != no ; then
22566 cat >>confdefs.h <<\EOF
22567 #define HAVE_SIZECHANGE 1
22570 case "$cf_cv_sizechange" in
22572 cat >>confdefs.h <<EOF
22573 #define $cf_cv_sizechange 1
22580 echo "$as_me:22580: checking for memmove" >&5
22581 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
22582 if test "${ac_cv_func_memmove+set}" = set; then
22583 echo $ECHO_N "(cached) $ECHO_C" >&6
22585 cat >"conftest.$ac_ext" <<_ACEOF
22586 #line 22586 "configure"
22587 #include "confdefs.h"
22588 #define memmove autoconf_temporary
22589 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
22596 /* We use char because int might match the return type of a gcc2
22597 builtin and then its argument prototype would still apply. */
22598 char memmove (void);
22604 /* The GNU C library defines stubs for functions which it implements
22605 to always fail with ENOSYS. Some functions are actually named
22606 something starting with __ and the normal name is an alias. */
22607 #if defined (__stub_memmove) || defined (__stub___memmove)
22608 #error found stub for memmove
22616 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22617 if { (eval echo "$as_me:22617: \"$ac_link\"") >&5
22618 (eval $ac_link) 2>&5
22620 echo "$as_me:22620: \$? = $ac_status" >&5
22621 (exit "$ac_status"); } &&
22622 { ac_try='test -s "conftest$ac_exeext"'
22623 { (eval echo "$as_me:22623: \"$ac_try\"") >&5
22624 (eval $ac_try) 2>&5
22626 echo "$as_me:22626: \$? = $ac_status" >&5
22627 (exit "$ac_status"); }; }; then
22628 ac_cv_func_memmove=yes
22630 echo "$as_me: failed program was:" >&5
22631 cat "conftest.$ac_ext" >&5
22632 ac_cv_func_memmove=no
22634 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22636 echo "$as_me:22636: result: $ac_cv_func_memmove" >&5
22637 echo "${ECHO_T}$ac_cv_func_memmove" >&6
22638 if test "$ac_cv_func_memmove" = yes; then
22642 echo "$as_me:22642: checking for bcopy" >&5
22643 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
22644 if test "${ac_cv_func_bcopy+set}" = set; then
22645 echo $ECHO_N "(cached) $ECHO_C" >&6
22647 cat >"conftest.$ac_ext" <<_ACEOF
22648 #line 22648 "configure"
22649 #include "confdefs.h"
22650 #define bcopy autoconf_temporary
22651 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
22658 /* We use char because int might match the return type of a gcc2
22659 builtin and then its argument prototype would still apply. */
22666 /* The GNU C library defines stubs for functions which it implements
22667 to always fail with ENOSYS. Some functions are actually named
22668 something starting with __ and the normal name is an alias. */
22669 #if defined (__stub_bcopy) || defined (__stub___bcopy)
22670 #error found stub for bcopy
22678 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22679 if { (eval echo "$as_me:22679: \"$ac_link\"") >&5
22680 (eval $ac_link) 2>&5
22682 echo "$as_me:22682: \$? = $ac_status" >&5
22683 (exit "$ac_status"); } &&
22684 { ac_try='test -s "conftest$ac_exeext"'
22685 { (eval echo "$as_me:22685: \"$ac_try\"") >&5
22686 (eval $ac_try) 2>&5
22688 echo "$as_me:22688: \$? = $ac_status" >&5
22689 (exit "$ac_status"); }; }; then
22690 ac_cv_func_bcopy=yes
22692 echo "$as_me: failed program was:" >&5
22693 cat "conftest.$ac_ext" >&5
22694 ac_cv_func_bcopy=no
22696 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22698 echo "$as_me:22698: result: $ac_cv_func_bcopy" >&5
22699 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
22700 if test "$ac_cv_func_bcopy" = yes; then
22702 echo "$as_me:22702: checking if bcopy does overlapping moves" >&5
22703 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
22704 if test "${cf_cv_good_bcopy+set}" = set; then
22705 echo $ECHO_N "(cached) $ECHO_C" >&6
22708 if test "$cross_compiling" = yes; then
22709 cf_cv_good_bcopy=unknown
22711 cat >"conftest.$ac_ext" <<_ACEOF
22712 #line 22712 "configure"
22713 #include "confdefs.h"
22716 static char data[] = "abcdefghijklmnopqrstuwwxyz";
22718 bcopy(data, temp, sizeof(data));
22719 bcopy(temp+10, temp, 15);
22720 bcopy(temp+5, temp+15, 10);
22721 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
22725 rm -f "conftest$ac_exeext"
22726 if { (eval echo "$as_me:22726: \"$ac_link\"") >&5
22727 (eval $ac_link) 2>&5
22729 echo "$as_me:22729: \$? = $ac_status" >&5
22730 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
22731 { (eval echo "$as_me:22731: \"$ac_try\"") >&5
22732 (eval $ac_try) 2>&5
22734 echo "$as_me:22734: \$? = $ac_status" >&5
22735 (exit "$ac_status"); }; }; then
22736 cf_cv_good_bcopy=yes
22738 echo "$as_me: program exited with status $ac_status" >&5
22739 echo "$as_me: failed program was:" >&5
22740 cat "conftest.$ac_ext" >&5
22741 cf_cv_good_bcopy=no
22743 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22747 echo "$as_me:22747: result: $cf_cv_good_bcopy" >&5
22748 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
22751 cf_cv_good_bcopy=no
22754 if test "$cf_cv_good_bcopy" = yes ; then
22756 cat >>confdefs.h <<\EOF
22757 #define USE_OK_BCOPY 1
22762 cat >>confdefs.h <<\EOF
22763 #define USE_MY_MEMMOVE 1
22770 tty >/dev/null 2>&1 || {
22771 for ac_func in posix_openpt
22773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22774 echo "$as_me:22774: checking for $ac_func" >&5
22775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22776 if eval "test \"\${$as_ac_var+set}\" = set"; then
22777 echo $ECHO_N "(cached) $ECHO_C" >&6
22779 cat >"conftest.$ac_ext" <<_ACEOF
22780 #line 22780 "configure"
22781 #include "confdefs.h"
22782 #define $ac_func autoconf_temporary
22783 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
22790 /* We use char because int might match the return type of a gcc2
22791 builtin and then its argument prototype would still apply. */
22792 char $ac_func (void);
22798 /* The GNU C library defines stubs for functions which it implements
22799 to always fail with ENOSYS. Some functions are actually named
22800 something starting with __ and the normal name is an alias. */
22801 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22802 #error found stub for $ac_func
22805 return $ac_func ();
22810 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22811 if { (eval echo "$as_me:22811: \"$ac_link\"") >&5
22812 (eval $ac_link) 2>&5
22814 echo "$as_me:22814: \$? = $ac_status" >&5
22815 (exit "$ac_status"); } &&
22816 { ac_try='test -s "conftest$ac_exeext"'
22817 { (eval echo "$as_me:22817: \"$ac_try\"") >&5
22818 (eval $ac_try) 2>&5
22820 echo "$as_me:22820: \$? = $ac_status" >&5
22821 (exit "$ac_status"); }; }; then
22822 eval "$as_ac_var=yes"
22824 echo "$as_me: failed program was:" >&5
22825 cat "conftest.$ac_ext" >&5
22826 eval "$as_ac_var=no"
22828 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22830 echo "$as_me:22830: result: `eval echo '${'"$as_ac_var"'}'`" >&5
22831 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
22832 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
22833 cat >>confdefs.h <<EOF
22834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22840 echo "$as_me:22840: checking if poll really works" >&5
22841 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
22842 if test "${cf_cv_working_poll+set}" = set; then
22843 echo $ECHO_N "(cached) $ECHO_C" >&6
22846 if test "$cross_compiling" = yes; then
22847 cf_cv_working_poll=unknown
22849 cat >"conftest.$ac_ext" <<_ACEOF
22850 #line 22850 "configure"
22851 #include "confdefs.h"
22853 #include <stdlib.h>
22855 #include <unistd.h>
22860 #include <sys/poll.h>
22863 struct pollfd myfds;
22866 /* check for Darwin bug with respect to "devices" */
22867 myfds.fd = open("/dev/null", 1); /* O_WRONLY */
22870 myfds.events = POLLIN;
22873 ret = poll(&myfds, 1, 100);
22875 if (ret < 0 || (myfds.revents & POLLNVAL)) {
22880 fd = open("/dev/tty", 2); /* O_RDWR */
22882 #ifdef HAVE_POSIX_OPENPT
22884 fd = posix_openpt(O_RDWR);
22889 /* also check with standard input */
22891 myfds.events = POLLIN;
22893 ret = poll(&myfds, 1, 100);
22898 ${cf_cv_main_return:-return}(ret < 0);
22901 rm -f "conftest$ac_exeext"
22902 if { (eval echo "$as_me:22902: \"$ac_link\"") >&5
22903 (eval $ac_link) 2>&5
22905 echo "$as_me:22905: \$? = $ac_status" >&5
22906 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
22907 { (eval echo "$as_me:22907: \"$ac_try\"") >&5
22908 (eval $ac_try) 2>&5
22910 echo "$as_me:22910: \$? = $ac_status" >&5
22911 (exit "$ac_status"); }; }; then
22912 cf_cv_working_poll=yes
22914 echo "$as_me: program exited with status $ac_status" >&5
22915 echo "$as_me: failed program was:" >&5
22916 cat "conftest.$ac_ext" >&5
22917 cf_cv_working_poll=no
22919 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22922 echo "$as_me:22922: result: $cf_cv_working_poll" >&5
22923 echo "${ECHO_T}$cf_cv_working_poll" >&6
22924 test "$cf_cv_working_poll" = "yes" &&
22925 cat >>confdefs.h <<\EOF
22926 #define HAVE_WORKING_POLL 1
22929 echo "$as_me:22929: checking for va_copy" >&5
22930 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
22931 if test "${cf_cv_have_va_copy+set}" = set; then
22932 echo $ECHO_N "(cached) $ECHO_C" >&6
22935 cat >"conftest.$ac_ext" <<_ACEOF
22936 #line 22936 "configure"
22937 #include "confdefs.h"
22939 #include <stdarg.h>
22945 static va_list dst;
22946 static va_list src;
22952 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22953 if { (eval echo "$as_me:22953: \"$ac_link\"") >&5
22954 (eval $ac_link) 2>&5
22956 echo "$as_me:22956: \$? = $ac_status" >&5
22957 (exit "$ac_status"); } &&
22958 { ac_try='test -s "conftest$ac_exeext"'
22959 { (eval echo "$as_me:22959: \"$ac_try\"") >&5
22960 (eval $ac_try) 2>&5
22962 echo "$as_me:22962: \$? = $ac_status" >&5
22963 (exit "$ac_status"); }; }; then
22964 cf_cv_have_va_copy=yes
22966 echo "$as_me: failed program was:" >&5
22967 cat "conftest.$ac_ext" >&5
22968 cf_cv_have_va_copy=no
22970 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22972 echo "$as_me:22972: result: $cf_cv_have_va_copy" >&5
22973 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
22975 if test "$cf_cv_have_va_copy" = yes;
22978 cat >>confdefs.h <<\EOF
22979 #define HAVE_VA_COPY 1
22982 else # !cf_cv_have_va_copy
22984 echo "$as_me:22984: checking for __va_copy" >&5
22985 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
22986 if test "${cf_cv_have___va_copy+set}" = set; then
22987 echo $ECHO_N "(cached) $ECHO_C" >&6
22990 cat >"conftest.$ac_ext" <<_ACEOF
22991 #line 22991 "configure"
22992 #include "confdefs.h"
22994 #include <stdarg.h>
23000 static va_list dst;
23001 static va_list src;
23002 __va_copy(dst, src)
23007 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23008 if { (eval echo "$as_me:23008: \"$ac_link\"") >&5
23009 (eval $ac_link) 2>&5
23011 echo "$as_me:23011: \$? = $ac_status" >&5
23012 (exit "$ac_status"); } &&
23013 { ac_try='test -s "conftest$ac_exeext"'
23014 { (eval echo "$as_me:23014: \"$ac_try\"") >&5
23015 (eval $ac_try) 2>&5
23017 echo "$as_me:23017: \$? = $ac_status" >&5
23018 (exit "$ac_status"); }; }; then
23019 cf_cv_have___va_copy=yes
23021 echo "$as_me: failed program was:" >&5
23022 cat "conftest.$ac_ext" >&5
23023 cf_cv_have___va_copy=no
23025 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23027 echo "$as_me:23027: result: $cf_cv_have___va_copy" >&5
23028 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
23030 if test "$cf_cv_have___va_copy" = yes
23033 cat >>confdefs.h <<\EOF
23034 #define HAVE___VA_COPY 1
23037 else # !cf_cv_have___va_copy
23039 echo "$as_me:23039: checking for __builtin_va_copy" >&5
23040 echo $ECHO_N "checking for __builtin_va_copy... $ECHO_C" >&6
23041 if test "${cf_cv_have___builtin_va_copy+set}" = set; then
23042 echo $ECHO_N "(cached) $ECHO_C" >&6
23045 cat >"conftest.$ac_ext" <<_ACEOF
23046 #line 23046 "configure"
23047 #include "confdefs.h"
23049 #include <stdarg.h>
23055 static va_list dst;
23056 static va_list src;
23057 __builtin_va_copy(dst, src)
23062 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23063 if { (eval echo "$as_me:23063: \"$ac_link\"") >&5
23064 (eval $ac_link) 2>&5
23066 echo "$as_me:23066: \$? = $ac_status" >&5
23067 (exit "$ac_status"); } &&
23068 { ac_try='test -s "conftest$ac_exeext"'
23069 { (eval echo "$as_me:23069: \"$ac_try\"") >&5
23070 (eval $ac_try) 2>&5
23072 echo "$as_me:23072: \$? = $ac_status" >&5
23073 (exit "$ac_status"); }; }; then
23074 cf_cv_have___builtin_va_copy=yes
23076 echo "$as_me: failed program was:" >&5
23077 cat "conftest.$ac_ext" >&5
23078 cf_cv_have___builtin_va_copy=no
23080 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23082 echo "$as_me:23082: result: $cf_cv_have___builtin_va_copy" >&5
23083 echo "${ECHO_T}$cf_cv_have___builtin_va_copy" >&6
23085 test "$cf_cv_have___builtin_va_copy" = yes &&
23087 cat >>confdefs.h <<\EOF
23088 #define HAVE___BUILTIN_VA_COPY 1
23091 fi # cf_cv_have___va_copy
23093 fi # cf_cv_have_va_copy
23095 case "${cf_cv_have_va_copy}${cf_cv_have___va_copy}${cf_cv_have___builtin_va_copy}" in
23100 echo "$as_me:23100: checking if we can simply copy va_list" >&5
23101 echo $ECHO_N "checking if we can simply copy va_list... $ECHO_C" >&6
23102 if test "${cf_cv_pointer_va_list+set}" = set; then
23103 echo $ECHO_N "(cached) $ECHO_C" >&6
23106 cat >"conftest.$ac_ext" <<_ACEOF
23107 #line 23107 "configure"
23108 #include "confdefs.h"
23110 #include <stdarg.h>
23123 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23124 if { (eval echo "$as_me:23124: \"$ac_link\"") >&5
23125 (eval $ac_link) 2>&5
23127 echo "$as_me:23127: \$? = $ac_status" >&5
23128 (exit "$ac_status"); } &&
23129 { ac_try='test -s "conftest$ac_exeext"'
23130 { (eval echo "$as_me:23130: \"$ac_try\"") >&5
23131 (eval $ac_try) 2>&5
23133 echo "$as_me:23133: \$? = $ac_status" >&5
23134 (exit "$ac_status"); }; }; then
23135 cf_cv_pointer_va_list=yes
23137 echo "$as_me: failed program was:" >&5
23138 cat "conftest.$ac_ext" >&5
23139 cf_cv_pointer_va_list=no
23141 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23143 echo "$as_me:23143: result: $cf_cv_pointer_va_list" >&5
23144 echo "${ECHO_T}$cf_cv_pointer_va_list" >&6
23146 if test "$cf_cv_pointer_va_list" = no
23148 echo "$as_me:23148: checking if we can copy va_list indirectly" >&5
23149 echo $ECHO_N "checking if we can copy va_list indirectly... $ECHO_C" >&6
23150 if test "${cf_cv_array_va_list+set}" = set; then
23151 echo $ECHO_N "(cached) $ECHO_C" >&6
23154 cat >"conftest.$ac_ext" <<_ACEOF
23155 #line 23155 "configure"
23156 #include "confdefs.h"
23158 #include <stdarg.h>
23171 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23172 if { (eval echo "$as_me:23172: \"$ac_link\"") >&5
23173 (eval $ac_link) 2>&5
23175 echo "$as_me:23175: \$? = $ac_status" >&5
23176 (exit "$ac_status"); } &&
23177 { ac_try='test -s "conftest$ac_exeext"'
23178 { (eval echo "$as_me:23178: \"$ac_try\"") >&5
23179 (eval $ac_try) 2>&5
23181 echo "$as_me:23181: \$? = $ac_status" >&5
23182 (exit "$ac_status"); }; }; then
23183 cf_cv_array_va_list=yes
23185 echo "$as_me: failed program was:" >&5
23186 cat "conftest.$ac_ext" >&5
23187 cf_cv_array_va_list=no
23189 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23191 echo "$as_me:23191: result: $cf_cv_array_va_list" >&5
23192 echo "${ECHO_T}$cf_cv_array_va_list" >&6
23193 test "$cf_cv_array_va_list" = yes &&
23194 cat >>confdefs.h <<\EOF
23195 #define ARRAY_VA_LIST 1
23202 echo "$as_me:23202: checking for pid_t" >&5
23203 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
23204 if test "${ac_cv_type_pid_t+set}" = set; then
23205 echo $ECHO_N "(cached) $ECHO_C" >&6
23207 cat >"conftest.$ac_ext" <<_ACEOF
23208 #line 23208 "configure"
23209 #include "confdefs.h"
23210 $ac_includes_default
23216 if (sizeof (pid_t))
23222 rm -f "conftest.$ac_objext"
23223 if { (eval echo "$as_me:23223: \"$ac_compile\"") >&5
23224 (eval $ac_compile) 2>&5
23226 echo "$as_me:23226: \$? = $ac_status" >&5
23227 (exit "$ac_status"); } &&
23228 { ac_try='test -s "conftest.$ac_objext"'
23229 { (eval echo "$as_me:23229: \"$ac_try\"") >&5
23230 (eval $ac_try) 2>&5
23232 echo "$as_me:23232: \$? = $ac_status" >&5
23233 (exit "$ac_status"); }; }; then
23234 ac_cv_type_pid_t=yes
23236 echo "$as_me: failed program was:" >&5
23237 cat "conftest.$ac_ext" >&5
23238 ac_cv_type_pid_t=no
23240 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23242 echo "$as_me:23242: result: $ac_cv_type_pid_t" >&5
23243 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
23244 if test "$ac_cv_type_pid_t" = yes; then
23248 cat >>confdefs.h <<EOF
23254 for ac_header in unistd.h vfork.h
23256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23257 echo "$as_me:23257: checking for $ac_header" >&5
23258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23260 echo $ECHO_N "(cached) $ECHO_C" >&6
23262 cat >"conftest.$ac_ext" <<_ACEOF
23263 #line 23263 "configure"
23264 #include "confdefs.h"
23265 #include <$ac_header>
23267 if { (eval echo "$as_me:23267: \"$ac_cpp "conftest.$ac_ext"\"") >&5
23268 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
23270 $EGREP -v '^ *\+' conftest.er1 >conftest.err
23272 cat conftest.err >&5
23273 echo "$as_me:23273: \$? = $ac_status" >&5
23274 (exit "$ac_status"); } >/dev/null; then
23275 if test -s conftest.err; then
23276 ac_cpp_err=$ac_c_preproc_warn_flag
23283 if test -z "$ac_cpp_err"; then
23284 eval "$as_ac_Header=yes"
23286 echo "$as_me: failed program was:" >&5
23287 cat "conftest.$ac_ext" >&5
23288 eval "$as_ac_Header=no"
23290 rm -f conftest.err "conftest.$ac_ext"
23292 echo "$as_me:23292: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
23293 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
23294 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
23295 cat >>confdefs.h <<EOF
23296 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23302 for ac_func in fork vfork
23304 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23305 echo "$as_me:23305: checking for $ac_func" >&5
23306 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23307 if eval "test \"\${$as_ac_var+set}\" = set"; then
23308 echo $ECHO_N "(cached) $ECHO_C" >&6
23310 cat >"conftest.$ac_ext" <<_ACEOF
23311 #line 23311 "configure"
23312 #include "confdefs.h"
23313 #define $ac_func autoconf_temporary
23314 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23321 /* We use char because int might match the return type of a gcc2
23322 builtin and then its argument prototype would still apply. */
23323 char $ac_func (void);
23329 /* The GNU C library defines stubs for functions which it implements
23330 to always fail with ENOSYS. Some functions are actually named
23331 something starting with __ and the normal name is an alias. */
23332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23333 #error found stub for $ac_func
23336 return $ac_func ();
23341 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23342 if { (eval echo "$as_me:23342: \"$ac_link\"") >&5
23343 (eval $ac_link) 2>&5
23345 echo "$as_me:23345: \$? = $ac_status" >&5
23346 (exit "$ac_status"); } &&
23347 { ac_try='test -s "conftest$ac_exeext"'
23348 { (eval echo "$as_me:23348: \"$ac_try\"") >&5
23349 (eval $ac_try) 2>&5
23351 echo "$as_me:23351: \$? = $ac_status" >&5
23352 (exit "$ac_status"); }; }; then
23353 eval "$as_ac_var=yes"
23355 echo "$as_me: failed program was:" >&5
23356 cat "conftest.$ac_ext" >&5
23357 eval "$as_ac_var=no"
23359 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23361 echo "$as_me:23361: result: `eval echo '${'"$as_ac_var"'}'`" >&5
23362 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
23363 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
23364 cat >>confdefs.h <<EOF
23365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23371 ac_cv_func_fork_works=$ac_cv_func_fork
23372 if test "x$ac_cv_func_fork" = xyes; then
23373 echo "$as_me:23373: checking for working fork" >&5
23374 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
23375 if test "${ac_cv_func_fork_works+set}" = set; then
23376 echo $ECHO_N "(cached) $ECHO_C" >&6
23378 if test "$cross_compiling" = yes; then
23379 ac_cv_func_fork_works=cross
23381 cat >"conftest.$ac_ext" <<_ACEOF
23382 /* By Rüdiger Kuhlmann. */
23383 #include <sys/types.h>
23385 # include <unistd.h>
23387 /* Some systems only have a dummy stub for fork() */
23391 $ac_main_return (1);
23392 $ac_main_return (0);
23395 rm -f "conftest$ac_exeext"
23396 if { (eval echo "$as_me:23396: \"$ac_link\"") >&5
23397 (eval $ac_link) 2>&5
23399 echo "$as_me:23399: \$? = $ac_status" >&5
23400 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23401 { (eval echo "$as_me:23401: \"$ac_try\"") >&5
23402 (eval $ac_try) 2>&5
23404 echo "$as_me:23404: \$? = $ac_status" >&5
23405 (exit "$ac_status"); }; }; then
23406 ac_cv_func_fork_works=yes
23408 echo "$as_me: program exited with status $ac_status" >&5
23409 echo "$as_me: failed program was:" >&5
23410 cat "conftest.$ac_ext" >&5
23411 ac_cv_func_fork_works=no
23413 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
23416 echo "$as_me:23416: result: $ac_cv_func_fork_works" >&5
23417 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
23420 if test "x$ac_cv_func_fork_works" = xcross; then
23422 *-*-amigaos* | *-*-msdosdjgpp*)
23423 # Override, as these systems have only a dummy fork() stub
23424 ac_cv_func_fork_works=no
23427 ac_cv_func_fork_works=yes
23430 { echo "$as_me:23430: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
23431 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
23433 ac_cv_func_vfork_works=$ac_cv_func_vfork
23434 if test "x$ac_cv_func_vfork" = xyes; then
23435 echo "$as_me:23435: checking for working vfork" >&5
23436 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
23437 if test "${ac_cv_func_vfork_works+set}" = set; then
23438 echo $ECHO_N "(cached) $ECHO_C" >&6
23440 if test "$cross_compiling" = yes; then
23441 ac_cv_func_vfork_works=cross
23443 cat >"conftest.$ac_ext" <<_ACEOF
23444 #line 23444 "configure"
23445 #include "confdefs.h"
23446 /* Thanks to Paul Eggert for this test. */
23448 #include <sys/types.h>
23449 #include <sys/stat.h>
23451 # include <unistd.h>
23454 # include <vfork.h>
23456 /* On some sparc systems, changes by the child to local and incoming
23457 argument registers are propagated back to the parent. The compiler
23458 is told about this with #include <vfork.h>, but some compilers
23459 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23460 static variable whose address is put into a register that is
23461 clobbered by the vfork. */
23464 sparc_address_test (int arg)
23466 sparc_address_test (arg) int arg;
23469 static pid_t child;
23487 pid_t parent = getpid ();
23490 sparc_address_test ();
23495 /* Here is another test for sparc vfork register problems. This
23496 test uses lots of local variables, at least as many local
23497 variables as main has allocated so far including compiler
23498 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23499 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23500 reuse the register of parent for one of the local variables,
23501 since it will think that parent can't possibly be used any more
23502 in this routine. Assigning to the local variable will thus
23503 munge parent in the parent process. */
23505 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23506 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23507 /* Convince the compiler that p..p7 are live; otherwise, it might
23508 use the same hardware register for all 8 local variables. */
23509 if (p != p1 || p != p2 || p != p3 || p != p4
23510 || p != p5 || p != p6 || p != p7)
23513 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23514 from child file descriptors. If the child closes a descriptor
23515 before it execs or exits, this munges the parent's descriptor
23516 as well. Test for this by closing stdout in the child. */
23517 _exit(close(fileno(stdout)) != 0);
23522 while (wait(&status) != child)
23525 /* Was there some problem with vforking? */
23528 /* Did the child fail? (This shouldn't happen.) */
23531 /* Did the vfork/compiler bug occur? */
23532 || parent != getpid()
23534 /* Did the file descriptor bug occur? */
23535 || fstat(fileno(stdout), &st) != 0
23540 rm -f "conftest$ac_exeext"
23541 if { (eval echo "$as_me:23541: \"$ac_link\"") >&5
23542 (eval $ac_link) 2>&5
23544 echo "$as_me:23544: \$? = $ac_status" >&5
23545 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23546 { (eval echo "$as_me:23546: \"$ac_try\"") >&5
23547 (eval $ac_try) 2>&5
23549 echo "$as_me:23549: \$? = $ac_status" >&5
23550 (exit "$ac_status"); }; }; then
23551 ac_cv_func_vfork_works=yes
23553 echo "$as_me: program exited with status $ac_status" >&5
23554 echo "$as_me: failed program was:" >&5
23555 cat "conftest.$ac_ext" >&5
23556 ac_cv_func_vfork_works=no
23558 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
23561 echo "$as_me:23561: result: $ac_cv_func_vfork_works" >&5
23562 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
23565 if test "x$ac_cv_func_fork_works" = xcross; then
23566 ac_cv_func_vfork_works=ac_cv_func_vfork
23567 { echo "$as_me:23567: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
23568 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
23571 if test "x$ac_cv_func_vfork_works" = xyes; then
23573 cat >>confdefs.h <<\EOF
23574 #define HAVE_WORKING_VFORK 1
23579 cat >>confdefs.h <<\EOF
23584 if test "x$ac_cv_func_fork_works" = xyes; then
23586 cat >>confdefs.h <<\EOF
23587 #define HAVE_WORKING_FORK 1
23592 echo "$as_me:23592: checking if fopen accepts explicit binary mode" >&5
23593 echo $ECHO_N "checking if fopen accepts explicit binary mode... $ECHO_C" >&6
23594 if test "${cf_cv_fopen_bin_r+set}" = set; then
23595 echo $ECHO_N "(cached) $ECHO_C" >&6
23598 if test "$cross_compiling" = yes; then
23599 cf_cv_fopen_bin_r=unknown
23601 cat >"conftest.$ac_ext" <<_ACEOF
23602 #line 23602 "configure"
23603 #include "confdefs.h"
23607 FILE *fp = fopen("conftest.tmp", "wb");
23611 for (p = 0; p < 256; ++p) {
23615 fp = fopen("conftest.tmp", "rb");
23617 for (p = 0; p < 256; ++p) {
23630 ${cf_cv_main_return:-return} (rc);
23634 rm -f "conftest$ac_exeext"
23635 if { (eval echo "$as_me:23635: \"$ac_link\"") >&5
23636 (eval $ac_link) 2>&5
23638 echo "$as_me:23638: \$? = $ac_status" >&5
23639 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23640 { (eval echo "$as_me:23640: \"$ac_try\"") >&5
23641 (eval $ac_try) 2>&5
23643 echo "$as_me:23643: \$? = $ac_status" >&5
23644 (exit "$ac_status"); }; }; then
23645 cf_cv_fopen_bin_r=yes
23647 echo "$as_me: program exited with status $ac_status" >&5
23648 echo "$as_me: failed program was:" >&5
23649 cat "conftest.$ac_ext" >&5
23650 cf_cv_fopen_bin_r=no
23652 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
23656 echo "$as_me:23656: result: $cf_cv_fopen_bin_r" >&5
23657 echo "${ECHO_T}$cf_cv_fopen_bin_r" >&6
23658 test "x$cf_cv_fopen_bin_r" != xno &&
23659 cat >>confdefs.h <<\EOF
23660 #define USE_FOPEN_BIN_R 1
23663 # special check for test/ditto.c
23665 echo "$as_me:23665: checking for openpty in -lutil" >&5
23666 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
23667 if test "${ac_cv_lib_util_openpty+set}" = set; then
23668 echo $ECHO_N "(cached) $ECHO_C" >&6
23670 ac_check_lib_save_LIBS=$LIBS
23671 LIBS="-lutil $LIBS"
23672 cat >"conftest.$ac_ext" <<_ACEOF
23673 #line 23673 "configure"
23674 #include "confdefs.h"
23676 /* Override any gcc2 internal prototype to avoid an error. */
23680 /* We use char because int might match the return type of a gcc2
23681 builtin and then its argument prototype would still apply. */
23691 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23692 if { (eval echo "$as_me:23692: \"$ac_link\"") >&5
23693 (eval $ac_link) 2>&5
23695 echo "$as_me:23695: \$? = $ac_status" >&5
23696 (exit "$ac_status"); } &&
23697 { ac_try='test -s "conftest$ac_exeext"'
23698 { (eval echo "$as_me:23698: \"$ac_try\"") >&5
23699 (eval $ac_try) 2>&5
23701 echo "$as_me:23701: \$? = $ac_status" >&5
23702 (exit "$ac_status"); }; }; then
23703 ac_cv_lib_util_openpty=yes
23705 echo "$as_me: failed program was:" >&5
23706 cat "conftest.$ac_ext" >&5
23707 ac_cv_lib_util_openpty=no
23709 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23710 LIBS=$ac_check_lib_save_LIBS
23712 echo "$as_me:23712: result: $ac_cv_lib_util_openpty" >&5
23713 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
23714 if test "$ac_cv_lib_util_openpty" = yes; then
23720 echo "$as_me:23720: checking for openpty header" >&5
23721 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
23722 if test "${cf_cv_func_openpty+set}" = set; then
23723 echo $ECHO_N "(cached) $ECHO_C" >&6
23726 cf_save_LIBS="$LIBS"
23727 test "$cf_cv_lib_util" = yes && {
23728 cf_add_libs="$LIBS"
23731 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
23732 # filter duplicates
23733 for cf_add_1lib in $cf_add_0lib; do
23734 for cf_add_2lib in $cf_add_libs; do
23735 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
23740 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
23742 LIBS="$cf_add_libs"
23744 for cf_header in pty.h libutil.h util.h
23746 cat >"conftest.$ac_ext" <<_ACEOF
23747 #line 23747 "configure"
23748 #include "confdefs.h"
23750 #include <$cf_header>
23756 int x = openpty((int *)0, (int *)0, (char *)0,
23757 (struct termios *)0, (struct winsize *)0);
23763 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23764 if { (eval echo "$as_me:23764: \"$ac_link\"") >&5
23765 (eval $ac_link) 2>&5
23767 echo "$as_me:23767: \$? = $ac_status" >&5
23768 (exit "$ac_status"); } &&
23769 { ac_try='test -s "conftest$ac_exeext"'
23770 { (eval echo "$as_me:23770: \"$ac_try\"") >&5
23771 (eval $ac_try) 2>&5
23773 echo "$as_me:23773: \$? = $ac_status" >&5
23774 (exit "$ac_status"); }; }; then
23776 cf_cv_func_openpty=$cf_header
23780 echo "$as_me: failed program was:" >&5
23781 cat "conftest.$ac_ext" >&5
23783 cf_cv_func_openpty=no
23786 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23788 LIBS="$cf_save_LIBS"
23791 echo "$as_me:23791: result: $cf_cv_func_openpty" >&5
23792 echo "${ECHO_T}$cf_cv_func_openpty" >&6
23794 if test "$cf_cv_func_openpty" != no ; then
23796 cat >>confdefs.h <<EOF
23797 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
23800 cat >>confdefs.h <<\EOF
23801 #define USE_XTERM_PTY 1
23804 if test "x$cf_cv_lib_util" = xyes ; then
23806 cf_add_libs="$TEST_LIBS"
23809 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
23810 # filter duplicates
23811 for cf_add_1lib in $cf_add_0lib; do
23812 for cf_add_2lib in $cf_add_libs; do
23813 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
23818 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
23820 TEST_LIBS="$cf_add_libs"
23825 if test "$with_hashed_db" != no ; then
23827 cat >>confdefs.h <<\EOF
23828 #define USE_HASHED_DB 1
23831 case $with_hashed_db in
23835 if test -d "$with_hashed_db" ; then
23837 if test -n "$with_hashed_db/include" ; then
23838 for cf_add_incdir in $with_hashed_db/include
23840 while test "$cf_add_incdir" != /usr/include
23842 if test -d "$cf_add_incdir"
23845 if test -n "$CFLAGS$CPPFLAGS" ; then
23846 # a loop is needed to ensure we can add subdirs of existing dirs
23847 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
23848 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
23849 cf_have_incdir=yes; break
23854 if test "$cf_have_incdir" = no ; then
23855 if test "$cf_add_incdir" = /usr/local/include ; then
23856 if test "$GCC" = yes
23858 cf_save_CPPFLAGS=$CPPFLAGS
23860 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
23861 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
23863 cat >"conftest.$ac_ext" <<_ACEOF
23864 #line 23864 "configure"
23865 #include "confdefs.h"
23875 rm -f "conftest.$ac_objext"
23876 if { (eval echo "$as_me:23876: \"$ac_compile\"") >&5
23877 (eval $ac_compile) 2>&5
23879 echo "$as_me:23879: \$? = $ac_status" >&5
23880 (exit "$ac_status"); } &&
23881 { ac_try='test -s "conftest.$ac_objext"'
23882 { (eval echo "$as_me:23882: \"$ac_try\"") >&5
23883 (eval $ac_try) 2>&5
23885 echo "$as_me:23885: \$? = $ac_status" >&5
23886 (exit "$ac_status"); }; }; then
23889 echo "$as_me: failed program was:" >&5
23890 cat "conftest.$ac_ext" >&5
23893 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23894 CPPFLAGS=$cf_save_CPPFLAGS
23899 if test "$cf_have_incdir" = no ; then
23900 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
23902 echo "${as_me:-configure}:23902: testing adding $cf_add_incdir to include-path ..." 1>&5
23904 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
23906 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
23907 test "$cf_top_incdir" = "$cf_add_incdir" && break
23908 cf_add_incdir="$cf_top_incdir"
23919 if test -n "$with_hashed_db/lib" ; then
23920 for cf_add_libdir in $with_hashed_db/lib
23922 if test "$cf_add_libdir" = /usr/lib ; then
23924 elif test -d "$cf_add_libdir"
23927 if test -n "$LDFLAGS$LIBS" ; then
23928 # a loop is needed to ensure we can add subdirs of existing dirs
23929 for cf_test_libdir in $LDFLAGS $LIBS ; do
23930 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
23931 cf_have_libdir=yes; break
23935 if test "$cf_have_libdir" = no ; then
23936 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
23938 echo "${as_me:-configure}:23938: testing adding $cf_add_libdir to library-path ..." 1>&5
23940 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
23947 case "$with_hashed_db" in
23949 { echo "$as_me:23949: WARNING: no such directory $with_hashed_db" >&5
23950 echo "$as_me: WARNING: no such directory $with_hashed_db" >&2;}
23956 test "x$prefix" != "xNONE" && \
23957 test -d "$prefix" && \
23959 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
23960 test -d "$prefix/include" && cf_search="$cf_search $prefix/include"
23961 test -d "$prefix/include/$with_hashed_db" && cf_search="$cf_search $prefix/include/$with_hashed_db"
23962 test -d "$prefix/include/$with_hashed_db/include" && cf_search="$cf_search $prefix/include/$with_hashed_db/include"
23963 test -d "$prefix/$with_hashed_db/include" && cf_search="$cf_search $prefix/$with_hashed_db/include"
23964 test -d "$prefix/$with_hashed_db/include/$with_hashed_db" && cf_search="$cf_search $prefix/$with_hashed_db/include/$with_hashed_db"
23967 for cf_subdir_prefix in \
23976 test "x$cf_subdir_prefix" != "x$prefix" && \
23977 test -d "$cf_subdir_prefix" && \
23978 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
23979 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
23980 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
23981 test -d "$cf_subdir_prefix/include/$with_hashed_db" && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db"
23982 test -d "$cf_subdir_prefix/include/$with_hashed_db/include" && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db/include"
23983 test -d "$cf_subdir_prefix/$with_hashed_db/include" && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/include"
23984 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"
23989 for cf_item in $cf_search
23992 (*/$with_hashed_db)
23994 if test -n "$cf_item" ; then
23995 for cf_add_incdir in $cf_item
23997 while test "$cf_add_incdir" != /usr/include
23999 if test -d "$cf_add_incdir"
24002 if test -n "$CFLAGS$CPPFLAGS" ; then
24003 # a loop is needed to ensure we can add subdirs of existing dirs
24004 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
24005 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
24006 cf_have_incdir=yes; break
24011 if test "$cf_have_incdir" = no ; then
24012 if test "$cf_add_incdir" = /usr/local/include ; then
24013 if test "$GCC" = yes
24015 cf_save_CPPFLAGS=$CPPFLAGS
24017 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
24018 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
24020 cat >"conftest.$ac_ext" <<_ACEOF
24021 #line 24021 "configure"
24022 #include "confdefs.h"
24032 rm -f "conftest.$ac_objext"
24033 if { (eval echo "$as_me:24033: \"$ac_compile\"") >&5
24034 (eval $ac_compile) 2>&5
24036 echo "$as_me:24036: \$? = $ac_status" >&5
24037 (exit "$ac_status"); } &&
24038 { ac_try='test -s "conftest.$ac_objext"'
24039 { (eval echo "$as_me:24039: \"$ac_try\"") >&5
24040 (eval $ac_try) 2>&5
24042 echo "$as_me:24042: \$? = $ac_status" >&5
24043 (exit "$ac_status"); }; }; then
24046 echo "$as_me: failed program was:" >&5
24047 cat "conftest.$ac_ext" >&5
24050 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24051 CPPFLAGS=$cf_save_CPPFLAGS
24056 if test "$cf_have_incdir" = no ; then
24057 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
24059 echo "${as_me:-configure}:24059: testing adding $cf_add_incdir to include-path ..." 1>&5
24061 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
24063 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
24064 test "$cf_top_incdir" = "$cf_add_incdir" && break
24065 cf_add_incdir="$cf_top_incdir"
24082 test "x$prefix" != "xNONE" && \
24083 test -d "$prefix" && \
24085 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
24086 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
24087 test -d "$prefix/lib/$with_hashed_db" && cf_search="$cf_search $prefix/lib/$with_hashed_db"
24088 test -d "$prefix/lib/$with_hashed_db/lib" && cf_search="$cf_search $prefix/lib/$with_hashed_db/lib"
24089 test -d "$prefix/$with_hashed_db/lib" && cf_search="$cf_search $prefix/$with_hashed_db/lib"
24090 test -d "$prefix/$with_hashed_db/lib/$with_hashed_db" && cf_search="$cf_search $prefix/$with_hashed_db/lib/$with_hashed_db"
24093 for cf_subdir_prefix in \
24102 test "x$cf_subdir_prefix" != "x$prefix" && \
24103 test -d "$cf_subdir_prefix" && \
24104 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
24105 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
24106 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
24107 test -d "$cf_subdir_prefix/lib/$with_hashed_db" && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db"
24108 test -d "$cf_subdir_prefix/lib/$with_hashed_db/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db/lib"
24109 test -d "$cf_subdir_prefix/$with_hashed_db/lib" && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/lib"
24110 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"
24115 for cf_item in $cf_search
24118 (*/$with_hashed_db)
24120 if test -n "$cf_item" ; then
24121 for cf_add_libdir in $cf_item
24123 if test "$cf_add_libdir" = /usr/lib ; then
24125 elif test -d "$cf_add_libdir"
24128 if test -n "$LDFLAGS$LIBS" ; then
24129 # a loop is needed to ensure we can add subdirs of existing dirs
24130 for cf_test_libdir in $LDFLAGS $LIBS ; do
24131 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
24132 cf_have_libdir=yes; break
24136 if test "$cf_have_libdir" = no ; then
24137 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
24139 echo "${as_me:-configure}:24139: testing adding $cf_add_libdir to library-path ..." 1>&5
24141 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
24156 echo "$as_me:24156: checking for db.h" >&5
24157 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
24158 if test "${ac_cv_header_db_h+set}" = set; then
24159 echo $ECHO_N "(cached) $ECHO_C" >&6
24161 cat >"conftest.$ac_ext" <<_ACEOF
24162 #line 24162 "configure"
24163 #include "confdefs.h"
24166 if { (eval echo "$as_me:24166: \"$ac_cpp "conftest.$ac_ext"\"") >&5
24167 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
24169 $EGREP -v '^ *\+' conftest.er1 >conftest.err
24171 cat conftest.err >&5
24172 echo "$as_me:24172: \$? = $ac_status" >&5
24173 (exit "$ac_status"); } >/dev/null; then
24174 if test -s conftest.err; then
24175 ac_cpp_err=$ac_c_preproc_warn_flag
24182 if test -z "$ac_cpp_err"; then
24183 ac_cv_header_db_h=yes
24185 echo "$as_me: failed program was:" >&5
24186 cat "conftest.$ac_ext" >&5
24187 ac_cv_header_db_h=no
24189 rm -f conftest.err "conftest.$ac_ext"
24191 echo "$as_me:24191: result: $ac_cv_header_db_h" >&5
24192 echo "${ECHO_T}$ac_cv_header_db_h" >&6
24193 if test "$ac_cv_header_db_h" = yes; then
24195 echo "$as_me:24195: checking for version of db" >&5
24196 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
24197 if test "${cf_cv_hashed_db_version+set}" = set; then
24198 echo $ECHO_N "(cached) $ECHO_C" >&6
24201 cf_cv_hashed_db_version=unknown
24203 for cf_db_version in 1 2 3 4 5 6
24206 echo "${as_me:-configure}:24206: testing checking for db version $cf_db_version ..." 1>&5
24208 cat >"conftest.$ac_ext" <<_ACEOF
24209 #line 24209 "configure"
24210 #include "confdefs.h"
24212 $ac_includes_default
24215 #ifdef DB_VERSION_MAJOR
24216 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
24217 #if $cf_db_version == DB_VERSION_MAJOR
24223 #if $cf_db_version == 1
24224 /* ok: assuming this is DB 1.8.5 */
24238 rm -f "conftest.$ac_objext"
24239 if { (eval echo "$as_me:24239: \"$ac_compile\"") >&5
24240 (eval $ac_compile) 2>&5
24242 echo "$as_me:24242: \$? = $ac_status" >&5
24243 (exit "$ac_status"); } &&
24244 { ac_try='test -s "conftest.$ac_objext"'
24245 { (eval echo "$as_me:24245: \"$ac_try\"") >&5
24246 (eval $ac_try) 2>&5
24248 echo "$as_me:24248: \$? = $ac_status" >&5
24249 (exit "$ac_status"); }; }; then
24251 cf_cv_hashed_db_version=$cf_db_version
24255 echo "$as_me: failed program was:" >&5
24256 cat "conftest.$ac_ext" >&5
24258 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24262 echo "$as_me:24262: result: $cf_cv_hashed_db_version" >&5
24263 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
24265 if test "$cf_cv_hashed_db_version" = unknown ; then
24266 { { echo "$as_me:24266: error: Cannot determine version of db" >&5
24267 echo "$as_me: error: Cannot determine version of db" >&2;}
24268 { (exit 1); exit 1; }; }
24271 echo "$as_me:24271: checking for db libraries" >&5
24272 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
24273 if test "${cf_cv_hashed_db_libs+set}" = set; then
24274 echo $ECHO_N "(cached) $ECHO_C" >&6
24277 cf_cv_hashed_db_libs=unknown
24278 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
24280 cf_save_libs="$LIBS"
24281 if test -n "$cf_db_libs"; then
24283 cf_add_libs="$LIBS"
24286 for cf_add_1lib in -l$cf_db_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24287 # filter duplicates
24288 for cf_add_1lib in $cf_add_0lib; do
24289 for cf_add_2lib in $cf_add_libs; do
24290 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24295 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24297 LIBS="$cf_add_libs"
24301 echo "${as_me:-configure}:24301: testing checking for library $cf_db_libs ..." 1>&5
24303 cat >"conftest.$ac_ext" <<_ACEOF
24304 #line 24304 "configure"
24305 #include "confdefs.h"
24307 $ac_includes_default
24314 char *path = "/tmp/foo";
24315 #ifdef DB_VERSION_MAJOR
24316 #if DB_VERSION_MAJOR >= 4
24318 db_create(&result, NULL, 0);
24319 result->open(result,
24326 #elif DB_VERSION_MAJOR >= 3
24328 db_create(&result, NULL, 0);
24329 result->open(result,
24335 #elif DB_VERSION_MAJOR >= 2
24344 #endif /* DB_VERSION_MAJOR */
24346 DB *result = dbopen(path,
24352 ${cf_cv_main_return:-return}(result != 0)
24358 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24359 if { (eval echo "$as_me:24359: \"$ac_link\"") >&5
24360 (eval $ac_link) 2>&5
24362 echo "$as_me:24362: \$? = $ac_status" >&5
24363 (exit "$ac_status"); } &&
24364 { ac_try='test -s "conftest$ac_exeext"'
24365 { (eval echo "$as_me:24365: \"$ac_try\"") >&5
24366 (eval $ac_try) 2>&5
24368 echo "$as_me:24368: \$? = $ac_status" >&5
24369 (exit "$ac_status"); }; }; then
24371 if test -n "$cf_db_libs" ; then
24372 cf_cv_hashed_db_libs=$cf_db_libs
24374 cf_cv_hashed_db_libs=default
24376 LIBS="$cf_save_libs"
24380 echo "$as_me: failed program was:" >&5
24381 cat "conftest.$ac_ext" >&5
24383 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24384 LIBS="$cf_save_libs"
24388 echo "$as_me:24388: result: $cf_cv_hashed_db_libs" >&5
24389 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
24391 if test "$cf_cv_hashed_db_libs" = unknown ; then
24392 { { echo "$as_me:24392: error: Cannot determine library for db" >&5
24393 echo "$as_me: error: Cannot determine library for db" >&2;}
24394 { (exit 1); exit 1; }; }
24395 elif test "$cf_cv_hashed_db_libs" != default ; then
24397 cf_add_libs="$LIBS"
24400 for cf_add_1lib in -l$cf_cv_hashed_db_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24401 # filter duplicates
24402 for cf_add_1lib in $cf_add_0lib; do
24403 for cf_add_2lib in $cf_add_libs; do
24404 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24409 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24411 LIBS="$cf_add_libs"
24418 { { echo "$as_me:24418: error: Cannot find db.h" >&5
24419 echo "$as_me: error: Cannot find db.h" >&2;}
24420 { (exit 1); exit 1; }; }
24426 if test -z "$cf_user_CFLAGS" && test "$enable_leaks" = yes ; then
24427 CFLAGS=`echo "${CFLAGS}" | sed -e 's%-g %%' -e 's%-g$%%' -e 's%[ ]% %g' -e 's% [ ]*% %g' -e 's%^ %%' -e 's% $%%'`
24428 CXXFLAGS=`echo "${CXXFLAGS}" | sed -e 's%-g %%' -e 's%-g$%%' -e 's%[ ]% %g' -e 's% [ ]*% %g' -e 's%^ %%' -e 's% $%%'`
24431 # Just in case, check if the C compiler has a bool type.
24433 echo "$as_me:24433: checking if we should include stdbool.h" >&5
24434 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
24436 if test "${cf_cv_header_stdbool_h+set}" = set; then
24437 echo $ECHO_N "(cached) $ECHO_C" >&6
24440 cat >"conftest.$ac_ext" <<_ACEOF
24441 #line 24441 "configure"
24442 #include "confdefs.h"
24452 rm -f "conftest.$ac_objext"
24453 if { (eval echo "$as_me:24453: \"$ac_compile\"") >&5
24454 (eval $ac_compile) 2>&5
24456 echo "$as_me:24456: \$? = $ac_status" >&5
24457 (exit "$ac_status"); } &&
24458 { ac_try='test -s "conftest.$ac_objext"'
24459 { (eval echo "$as_me:24459: \"$ac_try\"") >&5
24460 (eval $ac_try) 2>&5
24462 echo "$as_me:24462: \$? = $ac_status" >&5
24463 (exit "$ac_status"); }; }; then
24464 cf_cv_header_stdbool_h=0
24466 echo "$as_me: failed program was:" >&5
24467 cat "conftest.$ac_ext" >&5
24468 cat >"conftest.$ac_ext" <<_ACEOF
24469 #line 24469 "configure"
24470 #include "confdefs.h"
24473 #include <stdbool.h>
24484 rm -f "conftest.$ac_objext"
24485 if { (eval echo "$as_me:24485: \"$ac_compile\"") >&5
24486 (eval $ac_compile) 2>&5
24488 echo "$as_me:24488: \$? = $ac_status" >&5
24489 (exit "$ac_status"); } &&
24490 { ac_try='test -s "conftest.$ac_objext"'
24491 { (eval echo "$as_me:24491: \"$ac_try\"") >&5
24492 (eval $ac_try) 2>&5
24494 echo "$as_me:24494: \$? = $ac_status" >&5
24495 (exit "$ac_status"); }; }; then
24496 cf_cv_header_stdbool_h=1
24498 echo "$as_me: failed program was:" >&5
24499 cat "conftest.$ac_ext" >&5
24500 cf_cv_header_stdbool_h=0
24502 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24504 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24507 if test "$cf_cv_header_stdbool_h" = 1
24508 then echo "$as_me:24508: result: yes" >&5
24509 echo "${ECHO_T}yes" >&6
24510 else echo "$as_me:24510: result: no" >&5
24511 echo "${ECHO_T}no" >&6
24514 echo "$as_me:24514: checking for builtin bool type" >&5
24515 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
24517 if test "${cf_cv_cc_bool_type+set}" = set; then
24518 echo $ECHO_N "(cached) $ECHO_C" >&6
24521 cat >"conftest.$ac_ext" <<_ACEOF
24522 #line 24522 "configure"
24523 #include "confdefs.h"
24526 #include <sys/types.h>
24536 rm -f "conftest.$ac_objext"
24537 if { (eval echo "$as_me:24537: \"$ac_compile\"") >&5
24538 (eval $ac_compile) 2>&5
24540 echo "$as_me:24540: \$? = $ac_status" >&5
24541 (exit "$ac_status"); } &&
24542 { ac_try='test -s "conftest.$ac_objext"'
24543 { (eval echo "$as_me:24543: \"$ac_try\"") >&5
24544 (eval $ac_try) 2>&5
24546 echo "$as_me:24546: \$? = $ac_status" >&5
24547 (exit "$ac_status"); }; }; then
24548 cf_cv_cc_bool_type=1
24550 echo "$as_me: failed program was:" >&5
24551 cat "conftest.$ac_ext" >&5
24552 cf_cv_cc_bool_type=0
24554 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24558 if test "$cf_cv_cc_bool_type" = 1
24559 then echo "$as_me:24559: result: yes" >&5
24560 echo "${ECHO_T}yes" >&6
24561 else echo "$as_me:24561: result: no" >&5
24562 echo "${ECHO_T}no" >&6
24565 # Check for C++ compiler characteristics (and ensure that it's there!)
24566 if test -n "$CXX" ; then
24568 ac_cpp='$CXXCPP $CPPFLAGS'
24569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
24570 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
24571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24572 ac_main_return="return"
24574 if test -n "$GXX" ; then
24577 LIBS="$LIBS $CXXLIBS"
24578 echo "$as_me:24578: checking if we already have C++ library" >&5
24579 echo $ECHO_N "checking if we already have C++ library... $ECHO_C" >&6
24580 cat >"conftest.$ac_ext" <<_ACEOF
24581 #line 24581 "configure"
24582 #include "confdefs.h"
24584 #include <iostream>
24589 std::cout << "Hello World!" << std::endl;
24594 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24595 if { (eval echo "$as_me:24595: \"$ac_link\"") >&5
24596 (eval $ac_link) 2>&5
24598 echo "$as_me:24598: \$? = $ac_status" >&5
24599 (exit "$ac_status"); } &&
24600 { ac_try='test -s "conftest$ac_exeext"'
24601 { (eval echo "$as_me:24601: \"$ac_try\"") >&5
24602 (eval $ac_try) 2>&5
24604 echo "$as_me:24604: \$? = $ac_status" >&5
24605 (exit "$ac_status"); }; }; then
24606 cf_have_libstdcpp=yes
24608 echo "$as_me: failed program was:" >&5
24609 cat "conftest.$ac_ext" >&5
24610 cf_have_libstdcpp=no
24612 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24613 echo "$as_me:24613: result: $cf_have_libstdcpp" >&5
24614 echo "${ECHO_T}$cf_have_libstdcpp" >&6
24617 if test "$cf_have_libstdcpp" != yes
24619 case "$cf_cv_system_name" in
24621 if test -z "`g++ -dM -E - < /dev/null | grep __KLIBC__`"; then
24622 cf_stdcpp_libname=stdcpp
24624 cf_stdcpp_libname=stdc++
24628 cf_stdcpp_libname=stdc++
24632 echo "$as_me:24632: checking for library $cf_stdcpp_libname" >&5
24633 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
24634 if test "${cf_cv_libstdcpp+set}" = set; then
24635 echo $ECHO_N "(cached) $ECHO_C" >&6
24639 LIBS="$LIBS $CXXLIBS"
24641 cf_add_libs="$LIBS"
24644 for cf_add_1lib in -l$cf_stdcpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24645 # filter duplicates
24646 for cf_add_1lib in $cf_add_0lib; do
24647 for cf_add_2lib in $cf_add_libs; do
24648 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24653 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24655 LIBS="$cf_add_libs"
24657 cat >"conftest.$ac_ext" <<_ACEOF
24658 #line 24658 "configure"
24659 #include "confdefs.h"
24661 #include <iostream>
24666 std::cout << "Hello World!" << std::endl;
24671 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24672 if { (eval echo "$as_me:24672: \"$ac_link\"") >&5
24673 (eval $ac_link) 2>&5
24675 echo "$as_me:24675: \$? = $ac_status" >&5
24676 (exit "$ac_status"); } &&
24677 { ac_try='test -s "conftest$ac_exeext"'
24678 { (eval echo "$as_me:24678: \"$ac_try\"") >&5
24679 (eval $ac_try) 2>&5
24681 echo "$as_me:24681: \$? = $ac_status" >&5
24682 (exit "$ac_status"); }; }; then
24683 cf_cv_libstdcpp=yes
24685 echo "$as_me: failed program was:" >&5
24686 cat "conftest.$ac_ext" >&5
24689 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24693 echo "$as_me:24693: result: $cf_cv_libstdcpp" >&5
24694 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
24695 test "$cf_cv_libstdcpp" = yes && {
24696 cf_add_libs="$CXXLIBS"
24699 for cf_add_1lib in -l$cf_stdcpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24700 # filter duplicates
24701 for cf_add_1lib in $cf_add_0lib; do
24702 for cf_add_2lib in $cf_add_libs; do
24703 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24708 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24710 CXXLIBS="$cf_add_libs"
24715 echo "$as_me:24715: checking whether $CXX understands -c and -o together" >&5
24716 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
24717 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
24718 echo $ECHO_N "(cached) $ECHO_C" >&6
24721 cat > conftest.$ac_ext <<CF_EOF
24724 ${cf_cv_main_return:-return}(0);
24727 # We do the test twice because some compilers refuse to overwrite an
24728 # existing .o file with -o, though they will create one.
24729 ac_try='$CXX $CXXFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
24730 if { (eval echo "$as_me:24730: \"$ac_try\"") >&5
24731 (eval $ac_try) 2>&5
24733 echo "$as_me:24733: \$? = $ac_status" >&5
24734 (exit "$ac_status"); } &&
24735 test -f conftest2.$ac_objext && { (eval echo "$as_me:24735: \"$ac_try\"") >&5
24736 (eval $ac_try) 2>&5
24738 echo "$as_me:24738: \$? = $ac_status" >&5
24739 (exit "$ac_status"); };
24741 eval cf_cv_prog_CXX_c_o=yes
24743 eval cf_cv_prog_CXX_c_o=no
24748 if test "$cf_cv_prog_CXX_c_o" = yes; then
24749 echo "$as_me:24749: result: yes" >&5
24750 echo "${ECHO_T}yes" >&6
24752 echo "$as_me:24752: result: no" >&5
24753 echo "${ECHO_T}no" >&6
24756 case "$GXX_VERSION" in
24757 (1.*|2.[0-6]*|[1-9][0-9].*)
24762 cf_cxx_library=unknown
24763 case "$cf_cv_system_name" in
24771 if test "$GXX" = yes; then
24772 echo "$as_me:24772: checking for lib$cf_gpp_libname" >&5
24773 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
24776 cf_add_libs="$LIBS"
24779 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24780 # filter duplicates
24781 for cf_add_1lib in $cf_add_0lib; do
24782 for cf_add_2lib in $cf_add_libs; do
24783 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24788 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24790 LIBS="$cf_add_libs"
24792 cat >"conftest.$ac_ext" <<_ACEOF
24793 #line 24793 "configure"
24794 #include "confdefs.h"
24796 #include <$cf_gpp_libname/builtin.h>
24801 two_arg_error_handler_t foo2 = lib_error_handler
24806 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24807 if { (eval echo "$as_me:24807: \"$ac_link\"") >&5
24808 (eval $ac_link) 2>&5
24810 echo "$as_me:24810: \$? = $ac_status" >&5
24811 (exit "$ac_status"); } &&
24812 { ac_try='test -s "conftest$ac_exeext"'
24813 { (eval echo "$as_me:24813: \"$ac_try\"") >&5
24814 (eval $ac_try) 2>&5
24816 echo "$as_me:24816: \$? = $ac_status" >&5
24817 (exit "$ac_status"); }; }; then
24820 cf_add_libs="$CXXLIBS"
24823 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24824 # filter duplicates
24825 for cf_add_1lib in $cf_add_0lib; do
24826 for cf_add_2lib in $cf_add_libs; do
24827 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24832 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24834 CXXLIBS="$cf_add_libs"
24836 if test "$cf_gpp_libname" = cpp ; then
24838 cat >>confdefs.h <<\EOF
24839 #define HAVE_GPP_BUILTIN_H 1
24844 cat >>confdefs.h <<\EOF
24845 #define HAVE_GXX_BUILTIN_H 1
24850 echo "$as_me: failed program was:" >&5
24851 cat "conftest.$ac_ext" >&5
24852 cat >"conftest.$ac_ext" <<_ACEOF
24853 #line 24853 "configure"
24854 #include "confdefs.h"
24856 #include <builtin.h>
24861 two_arg_error_handler_t foo2 = lib_error_handler
24866 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24867 if { (eval echo "$as_me:24867: \"$ac_link\"") >&5
24868 (eval $ac_link) 2>&5
24870 echo "$as_me:24870: \$? = $ac_status" >&5
24871 (exit "$ac_status"); } &&
24872 { ac_try='test -s "conftest$ac_exeext"'
24873 { (eval echo "$as_me:24873: \"$ac_try\"") >&5
24874 (eval $ac_try) 2>&5
24876 echo "$as_me:24876: \$? = $ac_status" >&5
24877 (exit "$ac_status"); }; }; then
24880 cf_add_libs="$CXXLIBS"
24883 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24884 # filter duplicates
24885 for cf_add_1lib in $cf_add_0lib; do
24886 for cf_add_2lib in $cf_add_libs; do
24887 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24892 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24894 CXXLIBS="$cf_add_libs"
24896 cat >>confdefs.h <<\EOF
24897 #define HAVE_BUILTIN_H 1
24901 echo "$as_me: failed program was:" >&5
24902 cat "conftest.$ac_ext" >&5
24905 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24907 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24909 echo "$as_me:24909: result: $cf_cxx_library" >&5
24910 echo "${ECHO_T}$cf_cxx_library" >&6
24920 ac_cpp='$CXXCPP $CPPFLAGS'
24921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
24922 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
24923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24924 ac_main_return="return"
24925 echo "$as_me:24925: checking how to run the C++ preprocessor" >&5
24926 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
24927 if test -z "$CXXCPP"; then
24928 if test "${ac_cv_prog_CXXCPP+set}" = set; then
24929 echo $ECHO_N "(cached) $ECHO_C" >&6
24931 # Double quotes because CXXCPP needs to be expanded
24932 for CXXCPP in "$CXX -E" "/lib/cpp"
24934 ac_preproc_ok=false
24935 for ac_cxx_preproc_warn_flag in '' yes
24937 # Use a header file that comes with gcc, so configuring glibc
24938 # with a fresh cross-compiler works.
24939 # On the NeXT, cc -E runs the code through the compiler's parser,
24940 # not just through cpp. "Syntax error" is here to catch this case.
24941 cat >"conftest.$ac_ext" <<_ACEOF
24942 #line 24942 "configure"
24943 #include "confdefs.h"
24944 #include <assert.h>
24947 if { (eval echo "$as_me:24947: \"$ac_cpp "conftest.$ac_ext"\"") >&5
24948 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
24950 $EGREP -v '^ *\+' conftest.er1 >conftest.err
24952 cat conftest.err >&5
24953 echo "$as_me:24953: \$? = $ac_status" >&5
24954 (exit "$ac_status"); } >/dev/null; then
24955 if test -s conftest.err; then
24956 ac_cpp_err=$ac_cxx_preproc_warn_flag
24963 if test -z "$ac_cpp_err"; then
24966 echo "$as_me: failed program was:" >&5
24967 cat "conftest.$ac_ext" >&5
24968 # Broken: fails on valid input.
24971 rm -f conftest.err "conftest.$ac_ext"
24973 # OK, works on sane cases. Now check whether non-existent headers
24974 # can be detected and how.
24975 cat >"conftest.$ac_ext" <<_ACEOF
24976 #line 24976 "configure"
24977 #include "confdefs.h"
24978 #include <ac_nonexistent.h>
24980 if { (eval echo "$as_me:24980: \"$ac_cpp "conftest.$ac_ext"\"") >&5
24981 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
24983 $EGREP -v '^ *\+' conftest.er1 >conftest.err
24985 cat conftest.err >&5
24986 echo "$as_me:24986: \$? = $ac_status" >&5
24987 (exit "$ac_status"); } >/dev/null; then
24988 if test -s conftest.err; then
24989 ac_cpp_err=$ac_cxx_preproc_warn_flag
24996 if test -z "$ac_cpp_err"; then
24997 # Broken: success on invalid input.
25000 echo "$as_me: failed program was:" >&5
25001 cat "conftest.$ac_ext" >&5
25002 # Passes both tests.
25006 rm -f conftest.err "conftest.$ac_ext"
25009 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
25010 rm -f conftest.err "conftest.$ac_ext"
25011 if $ac_preproc_ok; then
25016 ac_cv_prog_CXXCPP=$CXXCPP
25019 CXXCPP=$ac_cv_prog_CXXCPP
25021 ac_cv_prog_CXXCPP=$CXXCPP
25023 echo "$as_me:25023: result: $CXXCPP" >&5
25024 echo "${ECHO_T}$CXXCPP" >&6
25025 ac_preproc_ok=false
25026 for ac_cxx_preproc_warn_flag in '' yes
25028 # Use a header file that comes with gcc, so configuring glibc
25029 # with a fresh cross-compiler works.
25030 # On the NeXT, cc -E runs the code through the compiler's parser,
25031 # not just through cpp. "Syntax error" is here to catch this case.
25032 cat >"conftest.$ac_ext" <<_ACEOF
25033 #line 25033 "configure"
25034 #include "confdefs.h"
25035 #include <assert.h>
25038 if { (eval echo "$as_me:25038: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25039 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25041 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25043 cat conftest.err >&5
25044 echo "$as_me:25044: \$? = $ac_status" >&5
25045 (exit "$ac_status"); } >/dev/null; then
25046 if test -s conftest.err; then
25047 ac_cpp_err=$ac_cxx_preproc_warn_flag
25054 if test -z "$ac_cpp_err"; then
25057 echo "$as_me: failed program was:" >&5
25058 cat "conftest.$ac_ext" >&5
25059 # Broken: fails on valid input.
25062 rm -f conftest.err "conftest.$ac_ext"
25064 # OK, works on sane cases. Now check whether non-existent headers
25065 # can be detected and how.
25066 cat >"conftest.$ac_ext" <<_ACEOF
25067 #line 25067 "configure"
25068 #include "confdefs.h"
25069 #include <ac_nonexistent.h>
25071 if { (eval echo "$as_me:25071: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25072 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25074 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25076 cat conftest.err >&5
25077 echo "$as_me:25077: \$? = $ac_status" >&5
25078 (exit "$ac_status"); } >/dev/null; then
25079 if test -s conftest.err; then
25080 ac_cpp_err=$ac_cxx_preproc_warn_flag
25087 if test -z "$ac_cpp_err"; then
25088 # Broken: success on invalid input.
25091 echo "$as_me: failed program was:" >&5
25092 cat "conftest.$ac_ext" >&5
25093 # Passes both tests.
25097 rm -f conftest.err "conftest.$ac_ext"
25100 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
25101 rm -f conftest.err "conftest.$ac_ext"
25102 if $ac_preproc_ok; then
25105 { { echo "$as_me:25105: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
25106 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
25107 { (exit 1); exit 1; }; }
25111 ac_cpp='$CXXCPP $CPPFLAGS'
25112 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
25113 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
25114 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25115 ac_main_return="return"
25117 for ac_header in typeinfo
25119 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25120 echo "$as_me:25120: checking for $ac_header" >&5
25121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25123 echo $ECHO_N "(cached) $ECHO_C" >&6
25125 cat >"conftest.$ac_ext" <<_ACEOF
25126 #line 25126 "configure"
25127 #include "confdefs.h"
25128 #include <$ac_header>
25130 if { (eval echo "$as_me:25130: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25131 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25133 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25135 cat conftest.err >&5
25136 echo "$as_me:25136: \$? = $ac_status" >&5
25137 (exit "$ac_status"); } >/dev/null; then
25138 if test -s conftest.err; then
25139 ac_cpp_err=$ac_cxx_preproc_warn_flag
25146 if test -z "$ac_cpp_err"; then
25147 eval "$as_ac_Header=yes"
25149 echo "$as_me: failed program was:" >&5
25150 cat "conftest.$ac_ext" >&5
25151 eval "$as_ac_Header=no"
25153 rm -f conftest.err "conftest.$ac_ext"
25155 echo "$as_me:25155: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
25156 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
25157 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
25158 cat >>confdefs.h <<EOF
25159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25165 for ac_header in iostream
25167 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25168 echo "$as_me:25168: checking for $ac_header" >&5
25169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25171 echo $ECHO_N "(cached) $ECHO_C" >&6
25173 cat >"conftest.$ac_ext" <<_ACEOF
25174 #line 25174 "configure"
25175 #include "confdefs.h"
25176 #include <$ac_header>
25178 if { (eval echo "$as_me:25178: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25179 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25181 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25183 cat conftest.err >&5
25184 echo "$as_me:25184: \$? = $ac_status" >&5
25185 (exit "$ac_status"); } >/dev/null; then
25186 if test -s conftest.err; then
25187 ac_cpp_err=$ac_cxx_preproc_warn_flag
25194 if test -z "$ac_cpp_err"; then
25195 eval "$as_ac_Header=yes"
25197 echo "$as_me: failed program was:" >&5
25198 cat "conftest.$ac_ext" >&5
25199 eval "$as_ac_Header=no"
25201 rm -f conftest.err "conftest.$ac_ext"
25203 echo "$as_me:25203: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
25204 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
25205 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
25206 cat >>confdefs.h <<EOF
25207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25213 if test x"$ac_cv_header_iostream" = xyes ; then
25214 echo "$as_me:25214: checking if iostream uses std-namespace" >&5
25215 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
25216 cat >"conftest.$ac_ext" <<_ACEOF
25217 #line 25217 "configure"
25218 #include "confdefs.h"
25220 #include <iostream>
25227 cerr << "testing" << endl;
25233 rm -f "conftest.$ac_objext"
25234 if { (eval echo "$as_me:25234: \"$ac_compile\"") >&5
25235 (eval $ac_compile) 2>&5
25237 echo "$as_me:25237: \$? = $ac_status" >&5
25238 (exit "$ac_status"); } &&
25239 { ac_try='test -s "conftest.$ac_objext"'
25240 { (eval echo "$as_me:25240: \"$ac_try\"") >&5
25241 (eval $ac_try) 2>&5
25243 echo "$as_me:25243: \$? = $ac_status" >&5
25244 (exit "$ac_status"); }; }; then
25245 cf_iostream_namespace=yes
25247 echo "$as_me: failed program was:" >&5
25248 cat "conftest.$ac_ext" >&5
25249 cf_iostream_namespace=no
25251 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25252 echo "$as_me:25252: result: $cf_iostream_namespace" >&5
25253 echo "${ECHO_T}$cf_iostream_namespace" >&6
25254 if test "$cf_iostream_namespace" = yes ; then
25256 cat >>confdefs.h <<\EOF
25257 #define IOSTREAM_NAMESPACE 1
25263 echo "$as_me:25263: checking if we should include stdbool.h" >&5
25264 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
25266 if test "${cf_cv_header_stdbool_h+set}" = set; then
25267 echo $ECHO_N "(cached) $ECHO_C" >&6
25270 cat >"conftest.$ac_ext" <<_ACEOF
25271 #line 25271 "configure"
25272 #include "confdefs.h"
25282 rm -f "conftest.$ac_objext"
25283 if { (eval echo "$as_me:25283: \"$ac_compile\"") >&5
25284 (eval $ac_compile) 2>&5
25286 echo "$as_me:25286: \$? = $ac_status" >&5
25287 (exit "$ac_status"); } &&
25288 { ac_try='test -s "conftest.$ac_objext"'
25289 { (eval echo "$as_me:25289: \"$ac_try\"") >&5
25290 (eval $ac_try) 2>&5
25292 echo "$as_me:25292: \$? = $ac_status" >&5
25293 (exit "$ac_status"); }; }; then
25294 cf_cv_header_stdbool_h=0
25296 echo "$as_me: failed program was:" >&5
25297 cat "conftest.$ac_ext" >&5
25298 cat >"conftest.$ac_ext" <<_ACEOF
25299 #line 25299 "configure"
25300 #include "confdefs.h"
25303 #include <stdbool.h>
25314 rm -f "conftest.$ac_objext"
25315 if { (eval echo "$as_me:25315: \"$ac_compile\"") >&5
25316 (eval $ac_compile) 2>&5
25318 echo "$as_me:25318: \$? = $ac_status" >&5
25319 (exit "$ac_status"); } &&
25320 { ac_try='test -s "conftest.$ac_objext"'
25321 { (eval echo "$as_me:25321: \"$ac_try\"") >&5
25322 (eval $ac_try) 2>&5
25324 echo "$as_me:25324: \$? = $ac_status" >&5
25325 (exit "$ac_status"); }; }; then
25326 cf_cv_header_stdbool_h=1
25328 echo "$as_me: failed program was:" >&5
25329 cat "conftest.$ac_ext" >&5
25330 cf_cv_header_stdbool_h=0
25332 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25334 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25337 if test "$cf_cv_header_stdbool_h" = 1
25338 then echo "$as_me:25338: result: yes" >&5
25339 echo "${ECHO_T}yes" >&6
25340 else echo "$as_me:25340: result: no" >&5
25341 echo "${ECHO_T}no" >&6
25344 echo "$as_me:25344: checking for builtin bool type" >&5
25345 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
25347 if test "${cf_cv_builtin_bool+set}" = set; then
25348 echo $ECHO_N "(cached) $ECHO_C" >&6
25351 cat >"conftest.$ac_ext" <<_ACEOF
25352 #line 25352 "configure"
25353 #include "confdefs.h"
25356 #include <sys/types.h>
25366 rm -f "conftest.$ac_objext"
25367 if { (eval echo "$as_me:25367: \"$ac_compile\"") >&5
25368 (eval $ac_compile) 2>&5
25370 echo "$as_me:25370: \$? = $ac_status" >&5
25371 (exit "$ac_status"); } &&
25372 { ac_try='test -s "conftest.$ac_objext"'
25373 { (eval echo "$as_me:25373: \"$ac_try\"") >&5
25374 (eval $ac_try) 2>&5
25376 echo "$as_me:25376: \$? = $ac_status" >&5
25377 (exit "$ac_status"); }; }; then
25378 cf_cv_builtin_bool=1
25380 echo "$as_me: failed program was:" >&5
25381 cat "conftest.$ac_ext" >&5
25382 cf_cv_builtin_bool=0
25384 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25388 if test "$cf_cv_builtin_bool" = 1
25389 then echo "$as_me:25389: result: yes" >&5
25390 echo "${ECHO_T}yes" >&6
25391 else echo "$as_me:25391: result: no" >&5
25392 echo "${ECHO_T}no" >&6
25395 echo "$as_me:25395: checking for bool" >&5
25396 echo $ECHO_N "checking for bool... $ECHO_C" >&6
25397 if test "${ac_cv_type_bool+set}" = set; then
25398 echo $ECHO_N "(cached) $ECHO_C" >&6
25400 cat >"conftest.$ac_ext" <<_ACEOF
25401 #line 25401 "configure"
25402 #include "confdefs.h"
25404 #include <stdlib.h>
25407 #if defined(__cplusplus)
25409 #ifdef HAVE_GXX_BUILTIN_H
25410 #include <g++/builtin.h>
25411 #elif HAVE_GPP_BUILTIN_H
25412 #include <gpp/builtin.h>
25413 #elif HAVE_BUILTIN_H
25414 #include <builtin.h>
25419 #if $cf_cv_header_stdbool_h
25420 #include <stdbool.h>
25436 rm -f "conftest.$ac_objext"
25437 if { (eval echo "$as_me:25437: \"$ac_compile\"") >&5
25438 (eval $ac_compile) 2>&5
25440 echo "$as_me:25440: \$? = $ac_status" >&5
25441 (exit "$ac_status"); } &&
25442 { ac_try='test -s "conftest.$ac_objext"'
25443 { (eval echo "$as_me:25443: \"$ac_try\"") >&5
25444 (eval $ac_try) 2>&5
25446 echo "$as_me:25446: \$? = $ac_status" >&5
25447 (exit "$ac_status"); }; }; then
25448 ac_cv_type_bool=yes
25450 echo "$as_me: failed program was:" >&5
25451 cat "conftest.$ac_ext" >&5
25454 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25456 echo "$as_me:25456: result: $ac_cv_type_bool" >&5
25457 echo "${ECHO_T}$ac_cv_type_bool" >&6
25459 echo "$as_me:25459: checking size of bool" >&5
25460 echo $ECHO_N "checking size of bool... $ECHO_C" >&6
25461 if test "${ac_cv_sizeof_bool+set}" = set; then
25462 echo $ECHO_N "(cached) $ECHO_C" >&6
25464 if test "$ac_cv_type_bool" = yes; then
25465 if test "$cross_compiling" = yes; then
25466 # Depending upon the size, compute the lo and hi bounds.
25467 cat >"conftest.$ac_ext" <<_ACEOF
25468 #line 25468 "configure"
25469 #include "confdefs.h"
25471 #include <stdlib.h>
25474 #if defined(__cplusplus)
25476 #ifdef HAVE_GXX_BUILTIN_H
25477 #include <g++/builtin.h>
25478 #elif HAVE_GPP_BUILTIN_H
25479 #include <gpp/builtin.h>
25480 #elif HAVE_BUILTIN_H
25481 #include <builtin.h>
25486 #if $cf_cv_header_stdbool_h
25487 #include <stdbool.h>
25495 int _array_ [1 - 2 * !((sizeof (bool)) >= 0)]
25500 rm -f "conftest.$ac_objext"
25501 if { (eval echo "$as_me:25501: \"$ac_compile\"") >&5
25502 (eval $ac_compile) 2>&5
25504 echo "$as_me:25504: \$? = $ac_status" >&5
25505 (exit "$ac_status"); } &&
25506 { ac_try='test -s "conftest.$ac_objext"'
25507 { (eval echo "$as_me:25507: \"$ac_try\"") >&5
25508 (eval $ac_try) 2>&5
25510 echo "$as_me:25510: \$? = $ac_status" >&5
25511 (exit "$ac_status"); }; }; then
25514 cat >"conftest.$ac_ext" <<_ACEOF
25515 #line 25515 "configure"
25516 #include "confdefs.h"
25518 #include <stdlib.h>
25521 #if defined(__cplusplus)
25523 #ifdef HAVE_GXX_BUILTIN_H
25524 #include <g++/builtin.h>
25525 #elif HAVE_GPP_BUILTIN_H
25526 #include <gpp/builtin.h>
25527 #elif HAVE_BUILTIN_H
25528 #include <builtin.h>
25533 #if $cf_cv_header_stdbool_h
25534 #include <stdbool.h>
25542 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
25547 rm -f "conftest.$ac_objext"
25548 if { (eval echo "$as_me:25548: \"$ac_compile\"") >&5
25549 (eval $ac_compile) 2>&5
25551 echo "$as_me:25551: \$? = $ac_status" >&5
25552 (exit "$ac_status"); } &&
25553 { ac_try='test -s "conftest.$ac_objext"'
25554 { (eval echo "$as_me:25554: \"$ac_try\"") >&5
25555 (eval $ac_try) 2>&5
25557 echo "$as_me:25557: \$? = $ac_status" >&5
25558 (exit "$ac_status"); }; }; then
25559 ac_hi=$ac_mid; break
25561 echo "$as_me: failed program was:" >&5
25562 cat "conftest.$ac_ext" >&5
25563 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
25565 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25568 echo "$as_me: failed program was:" >&5
25569 cat "conftest.$ac_ext" >&5
25572 cat >"conftest.$ac_ext" <<_ACEOF
25573 #line 25573 "configure"
25574 #include "confdefs.h"
25576 #include <stdlib.h>
25579 #if defined(__cplusplus)
25581 #ifdef HAVE_GXX_BUILTIN_H
25582 #include <g++/builtin.h>
25583 #elif HAVE_GPP_BUILTIN_H
25584 #include <gpp/builtin.h>
25585 #elif HAVE_BUILTIN_H
25586 #include <builtin.h>
25591 #if $cf_cv_header_stdbool_h
25592 #include <stdbool.h>
25600 int _array_ [1 - 2 * !((sizeof (bool)) >= $ac_mid)]
25605 rm -f "conftest.$ac_objext"
25606 if { (eval echo "$as_me:25606: \"$ac_compile\"") >&5
25607 (eval $ac_compile) 2>&5
25609 echo "$as_me:25609: \$? = $ac_status" >&5
25610 (exit "$ac_status"); } &&
25611 { ac_try='test -s "conftest.$ac_objext"'
25612 { (eval echo "$as_me:25612: \"$ac_try\"") >&5
25613 (eval $ac_try) 2>&5
25615 echo "$as_me:25615: \$? = $ac_status" >&5
25616 (exit "$ac_status"); }; }; then
25617 ac_lo=$ac_mid; break
25619 echo "$as_me: failed program was:" >&5
25620 cat "conftest.$ac_ext" >&5
25621 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
25623 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25626 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25627 # Binary search between lo and hi bounds.
25628 while test "x$ac_lo" != "x$ac_hi"; do
25629 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
25630 cat >"conftest.$ac_ext" <<_ACEOF
25631 #line 25631 "configure"
25632 #include "confdefs.h"
25634 #include <stdlib.h>
25637 #if defined(__cplusplus)
25639 #ifdef HAVE_GXX_BUILTIN_H
25640 #include <g++/builtin.h>
25641 #elif HAVE_GPP_BUILTIN_H
25642 #include <gpp/builtin.h>
25643 #elif HAVE_BUILTIN_H
25644 #include <builtin.h>
25649 #if $cf_cv_header_stdbool_h
25650 #include <stdbool.h>
25658 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
25663 rm -f "conftest.$ac_objext"
25664 if { (eval echo "$as_me:25664: \"$ac_compile\"") >&5
25665 (eval $ac_compile) 2>&5
25667 echo "$as_me:25667: \$? = $ac_status" >&5
25668 (exit "$ac_status"); } &&
25669 { ac_try='test -s "conftest.$ac_objext"'
25670 { (eval echo "$as_me:25670: \"$ac_try\"") >&5
25671 (eval $ac_try) 2>&5
25673 echo "$as_me:25673: \$? = $ac_status" >&5
25674 (exit "$ac_status"); }; }; then
25677 echo "$as_me: failed program was:" >&5
25678 cat "conftest.$ac_ext" >&5
25679 ac_lo=`expr "$ac_mid" + 1`
25681 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25683 ac_cv_sizeof_bool=$ac_lo
25685 if test "$cross_compiling" = yes; then
25686 { { echo "$as_me:25686: error: cannot run test program while cross compiling" >&5
25687 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
25688 { (exit 1); exit 1; }; }
25690 cat >"conftest.$ac_ext" <<_ACEOF
25691 #line 25691 "configure"
25692 #include "confdefs.h"
25694 #include <stdlib.h>
25697 #if defined(__cplusplus)
25699 #ifdef HAVE_GXX_BUILTIN_H
25700 #include <g++/builtin.h>
25701 #elif HAVE_GPP_BUILTIN_H
25702 #include <gpp/builtin.h>
25703 #elif HAVE_BUILTIN_H
25704 #include <builtin.h>
25709 #if $cf_cv_header_stdbool_h
25710 #include <stdbool.h>
25718 FILE *f = fopen ("conftest.val", "w");
25720 $ac_main_return (1);
25721 fprintf (f, "%ld", (long)(sizeof (bool)));
25727 rm -f "conftest$ac_exeext"
25728 if { (eval echo "$as_me:25728: \"$ac_link\"") >&5
25729 (eval $ac_link) 2>&5
25731 echo "$as_me:25731: \$? = $ac_status" >&5
25732 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
25733 { (eval echo "$as_me:25733: \"$ac_try\"") >&5
25734 (eval $ac_try) 2>&5
25736 echo "$as_me:25736: \$? = $ac_status" >&5
25737 (exit "$ac_status"); }; }; then
25738 ac_cv_sizeof_bool=`cat conftest.val`
25740 echo "$as_me: program exited with status $ac_status" >&5
25741 echo "$as_me: failed program was:" >&5
25742 cat "conftest.$ac_ext" >&5
25744 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
25749 ac_cv_sizeof_bool=0
25752 echo "$as_me:25752: result: $ac_cv_sizeof_bool" >&5
25753 echo "${ECHO_T}$ac_cv_sizeof_bool" >&6
25754 cat >>confdefs.h <<EOF
25755 #define SIZEOF_BOOL $ac_cv_sizeof_bool
25758 echo "$as_me:25758: checking for type of bool" >&5
25759 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
25760 if test "${cf_cv_type_of_bool+set}" = set; then
25761 echo $ECHO_N "(cached) $ECHO_C" >&6
25765 if test "$cross_compiling" = yes; then
25767 case x$ac_cv_sizeof_bool in
25768 (x1) cf_cv_type_of_bool="unsigned char";;
25769 (x2) cf_cv_type_of_bool="unsigned short";;
25770 (x4) cf_cv_type_of_bool="unsigned int";;
25771 (x8) cf_cv_type_of_bool="unsigned long";;
25772 (*) cf_cv_type_of_bool=unknown;;
25776 cat >"conftest.$ac_ext" <<_ACEOF
25777 #line 25777 "configure"
25778 #include "confdefs.h"
25780 #include <stdlib.h>
25783 #if defined(__cplusplus)
25785 #ifdef HAVE_GXX_BUILTIN_H
25786 #include <g++/builtin.h>
25787 #elif HAVE_GPP_BUILTIN_H
25788 #include <gpp/builtin.h>
25789 #elif HAVE_BUILTIN_H
25790 #include <builtin.h>
25795 #if $cf_cv_header_stdbool_h
25796 #include <stdbool.h>
25803 FILE *fp = fopen("cf_test.out", "w");
25806 if ((bool)(-x) >= 0)
25807 fputs("unsigned ", fp);
25808 if (sizeof(x) == sizeof(int)) fputs("int", fp);
25809 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
25810 else if (sizeof(x) == sizeof(short))fputs("short",fp);
25811 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
25814 ${cf_cv_main_return:-return}(0);
25818 rm -f "conftest$ac_exeext"
25819 if { (eval echo "$as_me:25819: \"$ac_link\"") >&5
25820 (eval $ac_link) 2>&5
25822 echo "$as_me:25822: \$? = $ac_status" >&5
25823 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
25824 { (eval echo "$as_me:25824: \"$ac_try\"") >&5
25825 (eval $ac_try) 2>&5
25827 echo "$as_me:25827: \$? = $ac_status" >&5
25828 (exit "$ac_status"); }; }; then
25829 cf_cv_type_of_bool=`cat cf_test.out`
25830 if test -z "$cf_cv_type_of_bool"; then
25831 cf_cv_type_of_bool=unknown
25834 echo "$as_me: program exited with status $ac_status" >&5
25835 echo "$as_me: failed program was:" >&5
25836 cat "conftest.$ac_ext" >&5
25837 cf_cv_type_of_bool=unknown
25839 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
25844 echo "$as_me:25844: result: $cf_cv_type_of_bool" >&5
25845 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
25847 if test "$cf_cv_type_of_bool" = unknown ; then
25848 case .$NCURSES_BOOL in
25849 (.auto|.) NCURSES_BOOL=unsigned;;
25851 { echo "$as_me:25851: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
25852 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
25853 cf_cv_type_of_bool=$NCURSES_BOOL
25856 echo "$as_me:25856: checking for special defines needed for etip.h" >&5
25857 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
25858 cf_save_CXXFLAGS="$CXXFLAGS"
25861 # etip.h includes ncurses.h which includes ncurses_dll.h
25862 # But ncurses_dll.h is generated - fix here.
25863 test -d include || mkdir include
25864 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
25866 for cf_math in "" MATH_H
25868 for cf_excp in "" MATH_EXCEPTION
25870 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include"
25871 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
25872 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
25873 cat >"conftest.$ac_ext" <<_ACEOF
25874 #line 25874 "configure"
25875 #include "confdefs.h"
25877 #include <etip.h.in>
25887 rm -f "conftest.$ac_objext"
25888 if { (eval echo "$as_me:25888: \"$ac_compile\"") >&5
25889 (eval $ac_compile) 2>&5
25891 echo "$as_me:25891: \$? = $ac_status" >&5
25892 (exit "$ac_status"); } &&
25893 { ac_try='test -s "conftest.$ac_objext"'
25894 { (eval echo "$as_me:25894: \"$ac_try\"") >&5
25895 (eval $ac_try) 2>&5
25897 echo "$as_me:25897: \$? = $ac_status" >&5
25898 (exit "$ac_status"); }; }; then
25900 test -n "$cf_math" && cat >>confdefs.h <<EOF
25901 #define ETIP_NEEDS_${cf_math} 1
25904 test -n "$cf_excp" && cat >>confdefs.h <<EOF
25905 #define ETIP_NEEDS_${cf_excp} 1
25908 cf_result="$cf_math $cf_excp"
25912 echo "$as_me: failed program was:" >&5
25913 cat "conftest.$ac_ext" >&5
25915 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25918 echo "$as_me:25918: result: $cf_result" >&5
25919 echo "${ECHO_T}$cf_result" >&6
25920 CXXFLAGS="$cf_save_CXXFLAGS"
25922 if test -n "$CXX"; then
25923 echo "$as_me:25923: checking if $CXX accepts parameter initialization" >&5
25924 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
25925 if test "${cf_cv_cpp_param_init+set}" = set; then
25926 echo $ECHO_N "(cached) $ECHO_C" >&6
25930 ac_cpp='$CXXCPP $CPPFLAGS'
25931 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
25932 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
25933 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25934 ac_main_return="return"
25936 if test "$cross_compiling" = yes; then
25937 cf_cv_cpp_param_init=unknown
25939 cat >"conftest.$ac_ext" <<_ACEOF
25940 #line 25940 "configure"
25941 #include "confdefs.h"
25951 TEST::TEST(int x = 1) // some compilers do not like second initializer
25958 rm -f "conftest$ac_exeext"
25959 if { (eval echo "$as_me:25959: \"$ac_link\"") >&5
25960 (eval $ac_link) 2>&5
25962 echo "$as_me:25962: \$? = $ac_status" >&5
25963 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
25964 { (eval echo "$as_me:25964: \"$ac_try\"") >&5
25965 (eval $ac_try) 2>&5
25967 echo "$as_me:25967: \$? = $ac_status" >&5
25968 (exit "$ac_status"); }; }; then
25969 cf_cv_cpp_param_init=yes
25971 echo "$as_me: program exited with status $ac_status" >&5
25972 echo "$as_me: failed program was:" >&5
25973 cat "conftest.$ac_ext" >&5
25974 cf_cv_cpp_param_init=no
25976 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
25979 ac_cpp='$CXXCPP $CPPFLAGS'
25980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
25981 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
25982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25983 ac_main_return="return"
25986 echo "$as_me:25986: result: $cf_cv_cpp_param_init" >&5
25987 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
25989 test "$cf_cv_cpp_param_init" = yes &&
25990 cat >>confdefs.h <<\EOF
25991 #define CPP_HAS_PARAM_INIT 1
25994 if test -n "$CXX"; then
25996 echo "$as_me:25996: checking if $CXX accepts static_cast" >&5
25997 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
25998 if test "${cf_cv_cpp_static_cast+set}" = set; then
25999 echo $ECHO_N "(cached) $ECHO_C" >&6
26003 ac_cpp='$CXXCPP $CPPFLAGS'
26004 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26005 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26006 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26007 ac_main_return="return"
26009 cat >"conftest.$ac_ext" <<_ACEOF
26010 #line 26010 "configure"
26011 #include "confdefs.h"
26016 NCursesPanel(int nlines,
26026 template<class T> class NCursesUserPanel : public NCursesPanel
26029 NCursesUserPanel (int nlines,
26033 const T* p_UserData = static_cast<T*>(0))
26034 : NCursesPanel (nlines, ncols, begin_y, begin_x)
26037 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
26041 virtual ~NCursesUserPanel() {};
26048 const char* p_UserData = static_cast<char*>(0)
26053 rm -f "conftest.$ac_objext"
26054 if { (eval echo "$as_me:26054: \"$ac_compile\"") >&5
26055 (eval $ac_compile) 2>&5
26057 echo "$as_me:26057: \$? = $ac_status" >&5
26058 (exit "$ac_status"); } &&
26059 { ac_try='test -s "conftest.$ac_objext"'
26060 { (eval echo "$as_me:26060: \"$ac_try\"") >&5
26061 (eval $ac_try) 2>&5
26063 echo "$as_me:26063: \$? = $ac_status" >&5
26064 (exit "$ac_status"); }; }; then
26065 cf_cv_cpp_static_cast=yes
26067 echo "$as_me: failed program was:" >&5
26068 cat "conftest.$ac_ext" >&5
26069 cf_cv_cpp_static_cast=no
26071 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26074 ac_cpp='$CXXCPP $CPPFLAGS'
26075 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26076 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26077 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26078 ac_main_return="return"
26081 echo "$as_me:26081: result: $cf_cv_cpp_static_cast" >&5
26082 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
26086 test "$cf_cv_cpp_static_cast" = yes &&
26087 cat >>confdefs.h <<\EOF
26088 #define CPP_HAS_STATIC_CAST 1
26092 CXX_ARFLAGS='$(ARFLAGS)'
26093 case "$cf_cv_system_name" in
26095 if test "$GXX" != yes ; then
26097 CXX_ARFLAGS='-ar -o'
26101 CXXLDFLAGS="-u main"
26104 if test "$GXX" != yes ; then
26106 CXX_ARFLAGS='-xar -o'
26113 cf_cv_builtin_bool=1
26115 # Just because we are not configuring against C++ right now does not
26116 # mean that a user will not want to use C++. Some distributors disable
26117 # the C++ portion of this configuration as a shortcut (or just to avoid
26118 # compiling the demo in the c++ directory). So we need a reasonable
26119 # default for the 'bool' type.
26121 # Caveat: since the storage of the bool type is not standardized, it
26124 if test "$NCURSES_BOOL" != auto ; then
26125 cf_cv_type_of_bool=$NCURSES_BOOL
26126 cf_cv_header_stdbool_h=0
26128 if test "$cf_cv_header_stdbool_h" = 1 ; then
26130 echo "$as_me:26130: checking for bool" >&5
26131 echo $ECHO_N "checking for bool... $ECHO_C" >&6
26132 if test "${ac_cv_type_bool+set}" = set; then
26133 echo $ECHO_N "(cached) $ECHO_C" >&6
26135 cat >"conftest.$ac_ext" <<_ACEOF
26136 #line 26136 "configure"
26137 #include "confdefs.h"
26139 #include <stdlib.h>
26142 #if defined(__cplusplus)
26144 #ifdef HAVE_GXX_BUILTIN_H
26145 #include <g++/builtin.h>
26146 #elif HAVE_GPP_BUILTIN_H
26147 #include <gpp/builtin.h>
26148 #elif HAVE_BUILTIN_H
26149 #include <builtin.h>
26154 #if $cf_cv_header_stdbool_h
26155 #include <stdbool.h>
26171 rm -f "conftest.$ac_objext"
26172 if { (eval echo "$as_me:26172: \"$ac_compile\"") >&5
26173 (eval $ac_compile) 2>&5
26175 echo "$as_me:26175: \$? = $ac_status" >&5
26176 (exit "$ac_status"); } &&
26177 { ac_try='test -s "conftest.$ac_objext"'
26178 { (eval echo "$as_me:26178: \"$ac_try\"") >&5
26179 (eval $ac_try) 2>&5
26181 echo "$as_me:26181: \$? = $ac_status" >&5
26182 (exit "$ac_status"); }; }; then
26183 ac_cv_type_bool=yes
26185 echo "$as_me: failed program was:" >&5
26186 cat "conftest.$ac_ext" >&5
26189 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26191 echo "$as_me:26191: result: $ac_cv_type_bool" >&5
26192 echo "${ECHO_T}$ac_cv_type_bool" >&6
26194 echo "$as_me:26194: checking size of bool" >&5
26195 echo $ECHO_N "checking size of bool... $ECHO_C" >&6
26196 if test "${ac_cv_sizeof_bool+set}" = set; then
26197 echo $ECHO_N "(cached) $ECHO_C" >&6
26199 if test "$ac_cv_type_bool" = yes; then
26200 if test "$cross_compiling" = yes; then
26201 # Depending upon the size, compute the lo and hi bounds.
26202 cat >"conftest.$ac_ext" <<_ACEOF
26203 #line 26203 "configure"
26204 #include "confdefs.h"
26206 #include <stdlib.h>
26209 #if defined(__cplusplus)
26211 #ifdef HAVE_GXX_BUILTIN_H
26212 #include <g++/builtin.h>
26213 #elif HAVE_GPP_BUILTIN_H
26214 #include <gpp/builtin.h>
26215 #elif HAVE_BUILTIN_H
26216 #include <builtin.h>
26221 #if $cf_cv_header_stdbool_h
26222 #include <stdbool.h>
26230 int _array_ [1 - 2 * !((sizeof (bool)) >= 0)]
26235 rm -f "conftest.$ac_objext"
26236 if { (eval echo "$as_me:26236: \"$ac_compile\"") >&5
26237 (eval $ac_compile) 2>&5
26239 echo "$as_me:26239: \$? = $ac_status" >&5
26240 (exit "$ac_status"); } &&
26241 { ac_try='test -s "conftest.$ac_objext"'
26242 { (eval echo "$as_me:26242: \"$ac_try\"") >&5
26243 (eval $ac_try) 2>&5
26245 echo "$as_me:26245: \$? = $ac_status" >&5
26246 (exit "$ac_status"); }; }; then
26249 cat >"conftest.$ac_ext" <<_ACEOF
26250 #line 26250 "configure"
26251 #include "confdefs.h"
26253 #include <stdlib.h>
26256 #if defined(__cplusplus)
26258 #ifdef HAVE_GXX_BUILTIN_H
26259 #include <g++/builtin.h>
26260 #elif HAVE_GPP_BUILTIN_H
26261 #include <gpp/builtin.h>
26262 #elif HAVE_BUILTIN_H
26263 #include <builtin.h>
26268 #if $cf_cv_header_stdbool_h
26269 #include <stdbool.h>
26277 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
26282 rm -f "conftest.$ac_objext"
26283 if { (eval echo "$as_me:26283: \"$ac_compile\"") >&5
26284 (eval $ac_compile) 2>&5
26286 echo "$as_me:26286: \$? = $ac_status" >&5
26287 (exit "$ac_status"); } &&
26288 { ac_try='test -s "conftest.$ac_objext"'
26289 { (eval echo "$as_me:26289: \"$ac_try\"") >&5
26290 (eval $ac_try) 2>&5
26292 echo "$as_me:26292: \$? = $ac_status" >&5
26293 (exit "$ac_status"); }; }; then
26294 ac_hi=$ac_mid; break
26296 echo "$as_me: failed program was:" >&5
26297 cat "conftest.$ac_ext" >&5
26298 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
26300 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26303 echo "$as_me: failed program was:" >&5
26304 cat "conftest.$ac_ext" >&5
26307 cat >"conftest.$ac_ext" <<_ACEOF
26308 #line 26308 "configure"
26309 #include "confdefs.h"
26311 #include <stdlib.h>
26314 #if defined(__cplusplus)
26316 #ifdef HAVE_GXX_BUILTIN_H
26317 #include <g++/builtin.h>
26318 #elif HAVE_GPP_BUILTIN_H
26319 #include <gpp/builtin.h>
26320 #elif HAVE_BUILTIN_H
26321 #include <builtin.h>
26326 #if $cf_cv_header_stdbool_h
26327 #include <stdbool.h>
26335 int _array_ [1 - 2 * !((sizeof (bool)) >= $ac_mid)]
26340 rm -f "conftest.$ac_objext"
26341 if { (eval echo "$as_me:26341: \"$ac_compile\"") >&5
26342 (eval $ac_compile) 2>&5
26344 echo "$as_me:26344: \$? = $ac_status" >&5
26345 (exit "$ac_status"); } &&
26346 { ac_try='test -s "conftest.$ac_objext"'
26347 { (eval echo "$as_me:26347: \"$ac_try\"") >&5
26348 (eval $ac_try) 2>&5
26350 echo "$as_me:26350: \$? = $ac_status" >&5
26351 (exit "$ac_status"); }; }; then
26352 ac_lo=$ac_mid; break
26354 echo "$as_me: failed program was:" >&5
26355 cat "conftest.$ac_ext" >&5
26356 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
26358 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26361 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26362 # Binary search between lo and hi bounds.
26363 while test "x$ac_lo" != "x$ac_hi"; do
26364 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
26365 cat >"conftest.$ac_ext" <<_ACEOF
26366 #line 26366 "configure"
26367 #include "confdefs.h"
26369 #include <stdlib.h>
26372 #if defined(__cplusplus)
26374 #ifdef HAVE_GXX_BUILTIN_H
26375 #include <g++/builtin.h>
26376 #elif HAVE_GPP_BUILTIN_H
26377 #include <gpp/builtin.h>
26378 #elif HAVE_BUILTIN_H
26379 #include <builtin.h>
26384 #if $cf_cv_header_stdbool_h
26385 #include <stdbool.h>
26393 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
26398 rm -f "conftest.$ac_objext"
26399 if { (eval echo "$as_me:26399: \"$ac_compile\"") >&5
26400 (eval $ac_compile) 2>&5
26402 echo "$as_me:26402: \$? = $ac_status" >&5
26403 (exit "$ac_status"); } &&
26404 { ac_try='test -s "conftest.$ac_objext"'
26405 { (eval echo "$as_me:26405: \"$ac_try\"") >&5
26406 (eval $ac_try) 2>&5
26408 echo "$as_me:26408: \$? = $ac_status" >&5
26409 (exit "$ac_status"); }; }; then
26412 echo "$as_me: failed program was:" >&5
26413 cat "conftest.$ac_ext" >&5
26414 ac_lo=`expr "$ac_mid" + 1`
26416 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26418 ac_cv_sizeof_bool=$ac_lo
26420 if test "$cross_compiling" = yes; then
26421 { { echo "$as_me:26421: error: cannot run test program while cross compiling" >&5
26422 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
26423 { (exit 1); exit 1; }; }
26425 cat >"conftest.$ac_ext" <<_ACEOF
26426 #line 26426 "configure"
26427 #include "confdefs.h"
26429 #include <stdlib.h>
26432 #if defined(__cplusplus)
26434 #ifdef HAVE_GXX_BUILTIN_H
26435 #include <g++/builtin.h>
26436 #elif HAVE_GPP_BUILTIN_H
26437 #include <gpp/builtin.h>
26438 #elif HAVE_BUILTIN_H
26439 #include <builtin.h>
26444 #if $cf_cv_header_stdbool_h
26445 #include <stdbool.h>
26453 FILE *f = fopen ("conftest.val", "w");
26455 $ac_main_return (1);
26456 fprintf (f, "%ld", (long)(sizeof (bool)));
26462 rm -f "conftest$ac_exeext"
26463 if { (eval echo "$as_me:26463: \"$ac_link\"") >&5
26464 (eval $ac_link) 2>&5
26466 echo "$as_me:26466: \$? = $ac_status" >&5
26467 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26468 { (eval echo "$as_me:26468: \"$ac_try\"") >&5
26469 (eval $ac_try) 2>&5
26471 echo "$as_me:26471: \$? = $ac_status" >&5
26472 (exit "$ac_status"); }; }; then
26473 ac_cv_sizeof_bool=`cat conftest.val`
26475 echo "$as_me: program exited with status $ac_status" >&5
26476 echo "$as_me: failed program was:" >&5
26477 cat "conftest.$ac_ext" >&5
26479 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26484 ac_cv_sizeof_bool=0
26487 echo "$as_me:26487: result: $ac_cv_sizeof_bool" >&5
26488 echo "${ECHO_T}$ac_cv_sizeof_bool" >&6
26489 cat >>confdefs.h <<EOF
26490 #define SIZEOF_BOOL $ac_cv_sizeof_bool
26493 echo "$as_me:26493: checking for type of bool" >&5
26494 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
26495 if test "${cf_cv_type_of_bool+set}" = set; then
26496 echo $ECHO_N "(cached) $ECHO_C" >&6
26500 if test "$cross_compiling" = yes; then
26502 case x$ac_cv_sizeof_bool in
26503 (x1) cf_cv_type_of_bool="unsigned char";;
26504 (x2) cf_cv_type_of_bool="unsigned short";;
26505 (x4) cf_cv_type_of_bool="unsigned int";;
26506 (x8) cf_cv_type_of_bool="unsigned long";;
26507 (*) cf_cv_type_of_bool=unknown;;
26511 cat >"conftest.$ac_ext" <<_ACEOF
26512 #line 26512 "configure"
26513 #include "confdefs.h"
26515 #include <stdlib.h>
26518 #if defined(__cplusplus)
26520 #ifdef HAVE_GXX_BUILTIN_H
26521 #include <g++/builtin.h>
26522 #elif HAVE_GPP_BUILTIN_H
26523 #include <gpp/builtin.h>
26524 #elif HAVE_BUILTIN_H
26525 #include <builtin.h>
26530 #if $cf_cv_header_stdbool_h
26531 #include <stdbool.h>
26538 FILE *fp = fopen("cf_test.out", "w");
26541 if ((bool)(-x) >= 0)
26542 fputs("unsigned ", fp);
26543 if (sizeof(x) == sizeof(int)) fputs("int", fp);
26544 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
26545 else if (sizeof(x) == sizeof(short))fputs("short",fp);
26546 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
26549 ${cf_cv_main_return:-return}(0);
26553 rm -f "conftest$ac_exeext"
26554 if { (eval echo "$as_me:26554: \"$ac_link\"") >&5
26555 (eval $ac_link) 2>&5
26557 echo "$as_me:26557: \$? = $ac_status" >&5
26558 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26559 { (eval echo "$as_me:26559: \"$ac_try\"") >&5
26560 (eval $ac_try) 2>&5
26562 echo "$as_me:26562: \$? = $ac_status" >&5
26563 (exit "$ac_status"); }; }; then
26564 cf_cv_type_of_bool=`cat cf_test.out`
26565 if test -z "$cf_cv_type_of_bool"; then
26566 cf_cv_type_of_bool=unknown
26569 echo "$as_me: program exited with status $ac_status" >&5
26570 echo "$as_me: failed program was:" >&5
26571 cat "conftest.$ac_ext" >&5
26572 cf_cv_type_of_bool=unknown
26574 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26579 echo "$as_me:26579: result: $cf_cv_type_of_bool" >&5
26580 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
26582 if test "$cf_cv_type_of_bool" = unknown ; then
26583 case .$NCURSES_BOOL in
26584 (.auto|.) NCURSES_BOOL=unsigned;;
26586 { echo "$as_me:26586: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
26587 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
26588 cf_cv_type_of_bool=$NCURSES_BOOL
26592 echo "$as_me:26592: checking for fallback type of bool" >&5
26593 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
26594 case "$host_cpu" in
26595 (i?86) cf_cv_type_of_bool=char ;;
26596 (*) cf_cv_type_of_bool=int ;;
26598 echo "$as_me:26598: result: $cf_cv_type_of_bool" >&5
26599 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
26604 # If the C compiler did not declare bool, and we did not determine that the C++
26605 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
26606 # ncurses library use the same type as C++ bool. Note that this allows one to
26607 # specify the type of bool in a configure-script option and postpone
26608 # integration with the C++ compiler provided that the types are compatible.
26610 if test "$cf_cv_cc_bool_type" = 1
26612 # oops: C has a bool. Unlikely, but C++ could differ.
26614 elif test "$cf_cv_builtin_bool" = 0
26619 # this is the normal case
26620 USE_CXX_BOOL='defined(__cplusplus)'
26623 if test -f "${srcdir}/Ada95/Makefile.in" ; then
26625 if test "$cf_with_ada" != "no" ; then
26626 if test "$with_libtool" != "no"; then
26627 { echo "$as_me:26627: WARNING: libtool does not support Ada - disabling feature" >&5
26628 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
26633 if test "$cf_with_ada" != "no" ; then
26635 for cf_prog_gnat in gnat gnatmake gprconfig gprbuild
26638 cf_upper_prog_gnat=`echo "${cf_prog_gnat}" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
26640 unset ac_cv_path_cf_TEMP_gnat
26642 # Extract the first word of "$cf_prog_gnat", so it can be a program name with args.
26643 set dummy $cf_prog_gnat; ac_word=$2
26644 echo "$as_me:26644: checking for $ac_word" >&5
26645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26646 if test "${ac_cv_path_cf_TEMP_gnat+set}" = set; then
26647 echo $ECHO_N "(cached) $ECHO_C" >&6
26649 case $cf_TEMP_gnat in
26651 ac_cv_path_cf_TEMP_gnat="$cf_TEMP_gnat" # Let the user override the test with a path.
26654 ac_save_IFS=$IFS; IFS=$ac_path_separator
26656 for ac_dir in $ac_dummy; do
26658 test -z "$ac_dir" && ac_dir=.
26659 if $as_executable_p "$ac_dir/$ac_word"; then
26660 ac_cv_path_cf_TEMP_gnat="$ac_dir/$ac_word"
26661 echo "$as_me:26661: found $ac_dir/$ac_word" >&5
26666 test -z "$ac_cv_path_cf_TEMP_gnat" && ac_cv_path_cf_TEMP_gnat="no"
26670 cf_TEMP_gnat=$ac_cv_path_cf_TEMP_gnat
26672 if test -n "$cf_TEMP_gnat"; then
26673 echo "$as_me:26673: result: $cf_TEMP_gnat" >&5
26674 echo "${ECHO_T}$cf_TEMP_gnat" >&6
26676 echo "$as_me:26676: result: no" >&5
26677 echo "${ECHO_T}no" >&6
26680 eval "cf_cv_PATH_$cf_upper_prog_gnat=$ac_cv_path_cf_TEMP_gnat"
26682 if test "x$cf_TEMP_gnat" != xno; then
26683 unset cf_cv_gnat_version
26686 echo "$as_me:26686: checking for $cf_prog_gnat version" >&5
26687 echo $ECHO_N "checking for $cf_prog_gnat version... $ECHO_C" >&6
26688 if test "${cf_cv_gnat_version+set}" = set; then
26689 echo $ECHO_N "(cached) $ECHO_C" >&6
26692 cf_cv_gnat_version=`$cf_prog_gnat --version 2>&1 | \
26693 grep '[0-9].[0-9][0-9]*' |\
26694 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
26697 echo "$as_me:26697: result: $cf_cv_gnat_version" >&5
26698 echo "${ECHO_T}$cf_cv_gnat_version" >&6
26699 test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
26700 eval cf_TEMP_gnat=$cf_cv_gnat_version; unset cf_cv_gnat_version
26703 eval "cf_cv_VERSION_$cf_upper_prog_gnat=$cf_TEMP_gnat"
26706 unset cf_cv_gnat_version
26707 unset ac_cv_path_cf_TEMP_gnat
26710 if test "x$cf_cv_VERSION_GNATMAKE" = "xno"; then
26712 cf_cv_prog_gnat_correct=no
26714 cf_ada_make=gnatmake
26715 if test "x$cf_cv_VERSION_GPRCONFIG" = "xno"; then
26716 # gprconfig is newer than gnatmake; we can continue...
26719 rm -rf ./conftest* ./*~conftest*
26720 if mkdir conftest.src
26724 for cf_gprconfig in Ada C
26726 echo "$as_me:26726: checking for gprconfig name for $cf_gprconfig" >&5
26727 echo $ECHO_N "checking for gprconfig name for $cf_gprconfig... $ECHO_C" >&6
26728 if test "$cf_gprconfig" = C
26730 for cf_gprconfig_param in \
26731 "$cf_gprconfig,,,,GNATGCC" \
26732 "$cf_gprconfig,,,,GCC" \
26735 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
26736 test -n "$cf_gprconfig_value" && break
26739 cf_gprconfig_param=$cf_gprconfig
26740 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
26742 if test -n "$cf_gprconfig_value"
26744 eval "cf_ada_config_$cf_gprconfig=$cf_gprconfig_value"
26745 echo "$as_me:26745: result: $cf_gprconfig_value" >&5
26746 echo "${ECHO_T}$cf_gprconfig_value" >&6
26748 echo "$as_me:26748: result: missing" >&5
26749 echo "${ECHO_T}missing" >&6
26755 rm -rf ./conftest* ./*~conftest*
26758 if test "x$cf_ada_config" != "x#"
26761 echo "$as_me:26761: checking for gnat version" >&5
26762 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
26763 if test "${cf_cv_gnat_version+set}" = set; then
26764 echo $ECHO_N "(cached) $ECHO_C" >&6
26767 cf_cv_gnat_version=`${cf_ada_make:-gnatmake} --version 2>&1 | \
26768 grep '[0-9].[0-9][0-9]*' |\
26769 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
26772 echo "$as_me:26772: result: $cf_cv_gnat_version" >&5
26773 echo "${ECHO_T}$cf_cv_gnat_version" >&6
26774 test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
26776 case "$cf_cv_gnat_version" in
26777 (3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
26778 cf_cv_prog_gnat_correct=yes
26781 { echo "$as_me:26781: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
26782 echo "$as_me: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
26783 cf_cv_prog_gnat_correct=no
26787 # Extract the first word of "m4", so it can be a program name with args.
26788 set dummy m4; ac_word=$2
26789 echo "$as_me:26789: checking for $ac_word" >&5
26790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26791 if test "${ac_cv_prog_M4_exists+set}" = set; then
26792 echo $ECHO_N "(cached) $ECHO_C" >&6
26794 if test -n "$M4_exists"; then
26795 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
26797 ac_save_IFS=$IFS; IFS=$ac_path_separator
26799 for ac_dir in $ac_dummy; do
26801 test -z "$ac_dir" && ac_dir=.
26802 $as_executable_p "$ac_dir/$ac_word" || continue
26803 ac_cv_prog_M4_exists="yes"
26804 echo "$as_me:26804: found $ac_dir/$ac_word" >&5
26808 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
26811 M4_exists=$ac_cv_prog_M4_exists
26812 if test -n "$M4_exists"; then
26813 echo "$as_me:26813: result: $M4_exists" >&5
26814 echo "${ECHO_T}$M4_exists" >&6
26816 echo "$as_me:26816: result: no" >&5
26817 echo "${ECHO_T}no" >&6
26820 if test "$ac_cv_prog_M4_exists" = no; then
26821 cf_cv_prog_gnat_correct=no
26822 { echo "$as_me:26822: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&5
26823 echo "$as_me: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&2;}
26825 if test "$cf_cv_prog_gnat_correct" = yes; then
26826 echo "$as_me:26826: checking if GNAT works" >&5
26827 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
26829 rm -rf ./conftest* ./*~conftest*
26830 cat >>conftest.ads <<CF_EOF
26831 procedure conftest;
26833 cat >>conftest.adb <<CF_EOF
26836 procedure conftest is
26838 Text_IO.Put ("Hello World");
26840 GNAT.OS_Lib.OS_Exit (0);
26843 if ( "$cf_ada_make" $ADAFLAGS conftest 1>&5 2>&1 ) ; then
26844 if ( ./conftest 1>&5 2>&1 ) ; then
26845 cf_cv_prog_gnat_correct=yes
26847 cf_cv_prog_gnat_correct=no
26850 cf_cv_prog_gnat_correct=no
26852 rm -rf ./conftest* ./*~conftest*
26854 echo "$as_me:26854: result: $cf_cv_prog_gnat_correct" >&5
26855 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
26858 cf_cv_prog_gnat_correct=no
26862 if test "x$cf_cv_prog_gnat_correct" = xyes; then
26864 ADAFLAGS="$ADAFLAGS -gnatpn"
26866 echo "$as_me:26866: checking optimization options for ADAFLAGS" >&5
26867 echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
26871 ADAFLAGS="$ADAFLAGS -g"
26877 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
26879 ADAFLAGS="$ADAFLAGS $cf_O_flag"
26883 echo "$as_me:26883: result: $ADAFLAGS" >&5
26884 echo "${ECHO_T}$ADAFLAGS" >&6
26886 echo "$as_me:26886: checking if GNATPREP supports -T option" >&5
26887 echo $ECHO_N "checking if GNATPREP supports -T option... $ECHO_C" >&6
26888 if test "${cf_cv_gnatprep_opt_t+set}" = set; then
26889 echo $ECHO_N "(cached) $ECHO_C" >&6
26892 cf_cv_gnatprep_opt_t=no
26893 gnatprep -T 2>/dev/null >/dev/null && cf_cv_gnatprep_opt_t=yes
26896 echo "$as_me:26896: result: $cf_cv_gnatprep_opt_t" >&5
26897 echo "${ECHO_T}$cf_cv_gnatprep_opt_t" >&6
26898 test "$cf_cv_gnatprep_opt_t" = yes && GNATPREP_OPTS="-T $GNATPREP_OPTS"
26900 echo "$as_me:26900: checking if GNAT supports generics" >&5
26901 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
26902 case "$cf_cv_gnat_version" in
26903 (3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
26904 cf_gnat_generics=yes
26907 cf_gnat_generics=no
26910 echo "$as_me:26910: result: $cf_gnat_generics" >&5
26911 echo "${ECHO_T}$cf_gnat_generics" >&6
26913 if test "$cf_gnat_generics" = yes
26915 cf_compile_generics=generics
26916 cf_generic_objects="\${GENOBJS}"
26918 cf_compile_generics=
26919 cf_generic_objects=
26922 echo "$as_me:26922: checking if GNAT supports SIGINT" >&5
26923 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
26924 if test "${cf_cv_gnat_sigint+set}" = set; then
26925 echo $ECHO_N "(cached) $ECHO_C" >&6
26928 rm -rf ./conftest* ./*~conftest*
26929 cat >>conftest.ads <<CF_EOF
26930 with Ada.Interrupts.Names;
26932 package ConfTest is
26934 pragma Warnings (Off); -- the next pragma exists since 3.11p
26935 pragma Unreserve_All_Interrupts;
26936 pragma Warnings (On);
26938 protected Process is
26940 function Continue return Boolean;
26941 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
26943 Done : Boolean := False;
26948 cat >>conftest.adb <<CF_EOF
26949 package body ConfTest is
26950 protected body Process is
26955 function Continue return Boolean is
26962 if ( "$cf_ada_make" $ADAFLAGS conftest 1>&5 2>&1 ) ; then
26963 cf_cv_gnat_sigint=yes
26965 cf_cv_gnat_sigint=no
26967 rm -rf ./conftest* ./*~conftest*
26970 echo "$as_me:26970: result: $cf_cv_gnat_sigint" >&5
26971 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
26973 if test "$cf_cv_gnat_sigint" = yes ; then
26976 USE_GNAT_SIGINT="#"
26979 cf_gnat_libraries=no
26980 cf_gnat_projects=no
26982 if test "$enable_gnat_projects" != no ; then
26983 echo "$as_me:26983: checking if GNAT supports project files" >&5
26984 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
26985 case "$cf_cv_gnat_version" in
26989 case "$cf_cv_system_name" in
26993 rm -rf ./conftest* ./*~conftest*
26994 if mkdir conftest.src conftest.bin conftest.lib
26997 rm -rf ./conftest* ./*~conftest*
26998 cat >>library.gpr <<CF_EOF
27000 Kind := External ("LIB_KIND");
27001 for Library_Name use "ConfTest";
27002 for Object_Dir use ".";
27003 for Library_ALI_Dir use External("LIBRARY_DIR");
27004 for Library_Version use External ("SONAME");
27005 for Library_Kind use Kind;
27006 for Library_Dir use External("BUILD_DIR");
27007 Source_Dir := External ("SOURCE_DIR");
27008 for Source_Dirs use (Source_Dir);
27011 cat >>confpackage.ads <<CF_EOF
27012 package ConfPackage is
27013 procedure conftest;
27016 cat >>confpackage.adb <<CF_EOF
27018 package body ConfPackage is
27019 procedure conftest is
27021 Text_IO.Put ("Hello World");
27026 if ( "$cf_ada_make" $ADAFLAGS \
27028 -XBUILD_DIR="`cd ../conftest.bin;pwd`" \
27029 -XLIBRARY_DIR="`cd ../conftest.lib;pwd`" \
27030 -XSOURCE_DIR="`pwd`" \
27031 -XSONAME=libConfTest.so.1 \
27032 -XLIB_KIND=static 1>&5 2>&1 ) ; then
27033 cf_gnat_projects=yes
27037 if test -f conftest.lib/confpackage.ali
27039 cf_gnat_libraries=yes
27041 rm -rf ./conftest* ./*~conftest*
27046 echo "$as_me:27046: result: $cf_gnat_projects" >&5
27047 echo "${ECHO_T}$cf_gnat_projects" >&6
27048 fi # enable_gnat_projects
27050 if test "$cf_gnat_projects" = yes
27052 echo "$as_me:27052: checking if GNAT supports libraries" >&5
27053 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
27054 echo "$as_me:27054: result: $cf_gnat_libraries" >&5
27055 echo "${ECHO_T}$cf_gnat_libraries" >&6
27058 USE_OLD_MAKERULES=""
27059 USE_GNAT_PROJECTS="#"
27060 USE_GNAT_MAKE_GPR="#"
27061 USE_GNAT_GPRBUILD="#"
27063 if test "$cf_gnat_projects" = yes
27065 USE_OLD_MAKERULES="#"
27066 USE_GNAT_PROJECTS=""
27067 if test "$cf_cv_VERSION_GPRBUILD" != no
27069 USE_GNAT_GPRBUILD=""
27070 elif test "$cf_cv_VERSION_GNATMAKE" != no
27072 USE_GNAT_MAKE_GPR=""
27074 { echo "$as_me:27074: WARNING: use old makefile rules since tools are missing" >&5
27075 echo "$as_me: WARNING: use old makefile rules since tools are missing" >&2;}
27079 if test "$cf_gnat_libraries" = yes
27081 USE_GNAT_LIBRARIES=""
27083 USE_GNAT_LIBRARIES="#"
27086 echo "$as_me:27086: checking for ada-compiler" >&5
27087 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
27089 # Check whether --with-ada-compiler or --without-ada-compiler was given.
27090 if test "${with_ada_compiler+set}" = set; then
27091 withval="$with_ada_compiler"
27092 cf_ada_compiler=$withval
27094 cf_ada_compiler=gnatmake
27097 echo "$as_me:27097: result: $cf_ada_compiler" >&5
27098 echo "${ECHO_T}$cf_ada_compiler" >&6
27100 cf_ada_package=terminal_interface
27102 echo "$as_me:27102: checking for ada-include" >&5
27103 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
27105 # Check whether --with-ada-include or --without-ada-include was given.
27106 if test "${with_ada_include+set}" = set; then
27107 withval="$with_ada_include"
27110 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
27111 fi; if test -n "$prefix/share/ada/adainclude" ; then
27113 if test "x$prefix" != xNONE; then
27114 cf_path_syntax="$prefix"
27116 cf_path_syntax="$ac_default_prefix"
27119 case ".$withval" in
27120 (.\$\(*\)*|.\'*\'*)
27124 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
27126 (.\$\{*prefix\}*|.\$\{*dir\}*)
27127 eval withval="$withval"
27128 case ".$withval" in
27130 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27135 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27138 { { echo "$as_me:27138: error: expected a pathname, not \"$withval\"" >&5
27139 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
27140 { (exit 1); exit 1; }; }
27145 eval ADA_INCLUDE="$withval"
27147 echo "$as_me:27147: result: $ADA_INCLUDE" >&5
27148 echo "${ECHO_T}$ADA_INCLUDE" >&6
27150 echo "$as_me:27150: checking for ada-objects" >&5
27151 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
27153 # Check whether --with-ada-objects or --without-ada-objects was given.
27154 if test "${with_ada_objects+set}" = set; then
27155 withval="$with_ada_objects"
27158 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
27159 fi; if test -n "$prefix/lib/ada/adalib" ; then
27161 if test "x$prefix" != xNONE; then
27162 cf_path_syntax="$prefix"
27164 cf_path_syntax="$ac_default_prefix"
27167 case ".$withval" in
27168 (.\$\(*\)*|.\'*\'*)
27172 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
27174 (.\$\{*prefix\}*|.\$\{*dir\}*)
27175 eval withval="$withval"
27176 case ".$withval" in
27178 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27183 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27186 { { echo "$as_me:27186: error: expected a pathname, not \"$withval\"" >&5
27187 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
27188 { (exit 1); exit 1; }; }
27193 eval ADA_OBJECTS="$withval"
27195 echo "$as_me:27195: result: $ADA_OBJECTS" >&5
27196 echo "${ECHO_T}$ADA_OBJECTS" >&6
27198 echo "$as_me:27198: checking if an Ada95 shared-library should be built" >&5
27199 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
27201 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
27202 if test "${with_ada_sharedlib+set}" = set; then
27203 withval="$with_ada_sharedlib"
27204 with_ada_sharedlib=$withval
27206 with_ada_sharedlib=no
27208 echo "$as_me:27208: result: $with_ada_sharedlib" >&5
27209 echo "${ECHO_T}$with_ada_sharedlib" >&6
27211 if test "x$with_ada_sharedlib" != xno
27213 if test "x$cf_gnat_projects" != xyes
27215 { echo "$as_me:27215: WARNING: disabling shared-library since GNAT projects are not supported" >&5
27216 echo "$as_me: WARNING: disabling shared-library since GNAT projects are not supported" >&2;}
27217 with_ada_sharedlib=no
27221 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
27222 MAKE_ADA_SHAREDLIB="#"
27224 if test "x$with_ada_sharedlib" != xno
27226 MAKE_ADA_SHAREDLIB=
27227 if test "x$with_ada_sharedlib" != xyes
27229 ADA_SHAREDLIB="$with_ada_sharedlib"
27233 # allow the Ada binding to be renamed
27235 echo "$as_me:27235: checking for ada-libname" >&5
27236 echo $ECHO_N "checking for ada-libname... $ECHO_C" >&6
27238 # Check whether --with-ada-libname or --without-ada-libname was given.
27239 if test "${with_ada_libname+set}" = set; then
27240 withval="$with_ada_libname"
27241 ADA_LIBNAME=$withval
27243 ADA_LIBNAME=AdaCurses
27245 case "x$ADA_LIBNAME" in
27247 ADA_LIBNAME=AdaCurses
27251 echo "$as_me:27251: result: $ADA_LIBNAME" >&5
27252 echo "${ECHO_T}$ADA_LIBNAME" >&6
27260 # do this "late" to avoid conflict with header-checks
27261 if test "x$with_widec" = xyes ; then
27262 echo "$as_me:27262: checking for wchar_t" >&5
27263 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
27264 if test "${ac_cv_type_wchar_t+set}" = set; then
27265 echo $ECHO_N "(cached) $ECHO_C" >&6
27267 cat >"conftest.$ac_ext" <<_ACEOF
27268 #line 27268 "configure"
27269 #include "confdefs.h"
27270 $ac_includes_default
27276 if (sizeof (wchar_t))
27282 rm -f "conftest.$ac_objext"
27283 if { (eval echo "$as_me:27283: \"$ac_compile\"") >&5
27284 (eval $ac_compile) 2>&5
27286 echo "$as_me:27286: \$? = $ac_status" >&5
27287 (exit "$ac_status"); } &&
27288 { ac_try='test -s "conftest.$ac_objext"'
27289 { (eval echo "$as_me:27289: \"$ac_try\"") >&5
27290 (eval $ac_try) 2>&5
27292 echo "$as_me:27292: \$? = $ac_status" >&5
27293 (exit "$ac_status"); }; }; then
27294 ac_cv_type_wchar_t=yes
27296 echo "$as_me: failed program was:" >&5
27297 cat "conftest.$ac_ext" >&5
27298 ac_cv_type_wchar_t=no
27300 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27302 echo "$as_me:27302: result: $ac_cv_type_wchar_t" >&5
27303 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
27305 echo "$as_me:27305: checking size of wchar_t" >&5
27306 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
27307 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
27308 echo $ECHO_N "(cached) $ECHO_C" >&6
27310 if test "$ac_cv_type_wchar_t" = yes; then
27311 if test "$cross_compiling" = yes; then
27312 # Depending upon the size, compute the lo and hi bounds.
27313 cat >"conftest.$ac_ext" <<_ACEOF
27314 #line 27314 "configure"
27315 #include "confdefs.h"
27316 $ac_includes_default
27320 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= 0)]
27325 rm -f "conftest.$ac_objext"
27326 if { (eval echo "$as_me:27326: \"$ac_compile\"") >&5
27327 (eval $ac_compile) 2>&5
27329 echo "$as_me:27329: \$? = $ac_status" >&5
27330 (exit "$ac_status"); } &&
27331 { ac_try='test -s "conftest.$ac_objext"'
27332 { (eval echo "$as_me:27332: \"$ac_try\"") >&5
27333 (eval $ac_try) 2>&5
27335 echo "$as_me:27335: \$? = $ac_status" >&5
27336 (exit "$ac_status"); }; }; then
27339 cat >"conftest.$ac_ext" <<_ACEOF
27340 #line 27340 "configure"
27341 #include "confdefs.h"
27342 $ac_includes_default
27346 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
27351 rm -f "conftest.$ac_objext"
27352 if { (eval echo "$as_me:27352: \"$ac_compile\"") >&5
27353 (eval $ac_compile) 2>&5
27355 echo "$as_me:27355: \$? = $ac_status" >&5
27356 (exit "$ac_status"); } &&
27357 { ac_try='test -s "conftest.$ac_objext"'
27358 { (eval echo "$as_me:27358: \"$ac_try\"") >&5
27359 (eval $ac_try) 2>&5
27361 echo "$as_me:27361: \$? = $ac_status" >&5
27362 (exit "$ac_status"); }; }; then
27363 ac_hi=$ac_mid; break
27365 echo "$as_me: failed program was:" >&5
27366 cat "conftest.$ac_ext" >&5
27367 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
27369 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27372 echo "$as_me: failed program was:" >&5
27373 cat "conftest.$ac_ext" >&5
27376 cat >"conftest.$ac_ext" <<_ACEOF
27377 #line 27377 "configure"
27378 #include "confdefs.h"
27379 $ac_includes_default
27383 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= $ac_mid)]
27388 rm -f "conftest.$ac_objext"
27389 if { (eval echo "$as_me:27389: \"$ac_compile\"") >&5
27390 (eval $ac_compile) 2>&5
27392 echo "$as_me:27392: \$? = $ac_status" >&5
27393 (exit "$ac_status"); } &&
27394 { ac_try='test -s "conftest.$ac_objext"'
27395 { (eval echo "$as_me:27395: \"$ac_try\"") >&5
27396 (eval $ac_try) 2>&5
27398 echo "$as_me:27398: \$? = $ac_status" >&5
27399 (exit "$ac_status"); }; }; then
27400 ac_lo=$ac_mid; break
27402 echo "$as_me: failed program was:" >&5
27403 cat "conftest.$ac_ext" >&5
27404 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
27406 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27409 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27410 # Binary search between lo and hi bounds.
27411 while test "x$ac_lo" != "x$ac_hi"; do
27412 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
27413 cat >"conftest.$ac_ext" <<_ACEOF
27414 #line 27414 "configure"
27415 #include "confdefs.h"
27416 $ac_includes_default
27420 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
27425 rm -f "conftest.$ac_objext"
27426 if { (eval echo "$as_me:27426: \"$ac_compile\"") >&5
27427 (eval $ac_compile) 2>&5
27429 echo "$as_me:27429: \$? = $ac_status" >&5
27430 (exit "$ac_status"); } &&
27431 { ac_try='test -s "conftest.$ac_objext"'
27432 { (eval echo "$as_me:27432: \"$ac_try\"") >&5
27433 (eval $ac_try) 2>&5
27435 echo "$as_me:27435: \$? = $ac_status" >&5
27436 (exit "$ac_status"); }; }; then
27439 echo "$as_me: failed program was:" >&5
27440 cat "conftest.$ac_ext" >&5
27441 ac_lo=`expr "$ac_mid" + 1`
27443 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27445 ac_cv_sizeof_wchar_t=$ac_lo
27447 if test "$cross_compiling" = yes; then
27448 { { echo "$as_me:27448: error: cannot run test program while cross compiling" >&5
27449 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
27450 { (exit 1); exit 1; }; }
27452 cat >"conftest.$ac_ext" <<_ACEOF
27453 #line 27453 "configure"
27454 #include "confdefs.h"
27455 $ac_includes_default
27459 FILE *f = fopen ("conftest.val", "w");
27461 $ac_main_return (1);
27462 fprintf (f, "%ld", (long)(sizeof (wchar_t)));
27468 rm -f "conftest$ac_exeext"
27469 if { (eval echo "$as_me:27469: \"$ac_link\"") >&5
27470 (eval $ac_link) 2>&5
27472 echo "$as_me:27472: \$? = $ac_status" >&5
27473 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
27474 { (eval echo "$as_me:27474: \"$ac_try\"") >&5
27475 (eval $ac_try) 2>&5
27477 echo "$as_me:27477: \$? = $ac_status" >&5
27478 (exit "$ac_status"); }; }; then
27479 ac_cv_sizeof_wchar_t=`cat conftest.val`
27481 echo "$as_me: program exited with status $ac_status" >&5
27482 echo "$as_me: failed program was:" >&5
27483 cat "conftest.$ac_ext" >&5
27485 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
27490 ac_cv_sizeof_wchar_t=0
27493 echo "$as_me:27493: result: $ac_cv_sizeof_wchar_t" >&5
27494 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
27495 cat >>confdefs.h <<EOF
27496 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
27499 # cross-compiling to mingw can run into the problem that attempting to
27500 # link with the regex library fails, causing the test to not set this to
27501 # a number. "recent" autoconf does not address this problem either -TD
27502 if test -z "$ac_cv_sizeof_wchar_t"
27504 test -n "$verbose" && echo " test failed (assume 2)" 1>&6
27506 echo "${as_me:-configure}:27506: testing test failed (assume 2) ..." 1>&5
27508 sed /SIZEOF_WCHAR_T/d confdefs.h >confdefs.tmp
27509 mv confdefs.tmp confdefs.h
27510 echo "#define SIZEOF_WCHAR_T 2" >>confdefs.h
27514 ### Construct the ncurses library-subsets, if any, from this set of keywords:
27515 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
27517 ### ticlib modules may be a separate library, otherwise contained in termlib.
27518 ### termlib modules may be a separate library, otherwise contained in ncurses.
27520 ### The of "+" or " " between the tokens controls the way the script
27521 ### chooses to split module lists into libraries.
27523 ### (see CF_LIB_RULES).
27524 echo "$as_me:27524: checking for library subsets" >&5
27525 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
27528 if test "x$cf_with_progs" = xyes || test "$with_ticlib" != no || test "$with_termcap" != no; then
27529 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
27530 if test "$with_ticlib" != no ; then
27531 LIB_SUBSETS="${LIB_SUBSETS} "
27533 LIB_SUBSETS="${LIB_SUBSETS}+"
27537 LIB_SUBSETS="${LIB_SUBSETS}termlib"
27538 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
27540 if test "$with_termlib" != no ; then
27541 LIB_SUBSETS="${LIB_SUBSETS} "
27543 LIB_SUBSETS="${LIB_SUBSETS}+"
27546 LIB_SUBSETS="${LIB_SUBSETS}base"
27548 # Most term-driver calls are to tinfo, but some like init_pair are to the
27549 # base library (so it resides in base).
27550 if test "$with_term_driver" != no ; then
27551 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
27552 case "$cf_cv_system_name" in
27553 (*mingw32*|*mingw64*)
27554 if test "x$with_exp_win32" = xyes ; then
27555 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32"
27557 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
27559 CPPFLAGS="$CPPFLAGS -DUSE_WIN32CON_DRIVER"
27562 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
27565 elif test "x$with_exp_win32" = xyes ; then
27566 case "$cf_cv_system_name" in
27567 (*mingw32*|*mingw64*)
27568 LIB_SUBSETS="${LIB_SUBSETS}+port_win32"
27575 test "x$with_widec" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
27576 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
27578 echo "$as_me:27578: result: $LIB_SUBSETS" >&5
27579 echo "${ECHO_T}$LIB_SUBSETS" >&6
27581 ### Construct the list of include-directories to be generated
27583 if test "$srcdir" != "."; then
27584 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
27586 CPPFLAGS="-I../include $CPPFLAGS"
27587 if test "$srcdir" != "."; then
27588 CPPFLAGS="-I\${srcdir} $CPPFLAGS"
27590 CPPFLAGS="-I. $CPPFLAGS"
27592 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
27593 if test "$srcdir" != "."; then
27594 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
27596 if test "$GCC" != yes; then
27597 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
27598 elif test "$includedir" != "/usr/include"; then
27599 if test "$includedir" = '${prefix}/include' ; then
27600 if test x$prefix != x/usr ; then
27601 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
27604 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
27608 ### Build up pieces for makefile rules
27609 echo "$as_me:27609: checking default library suffix" >&5
27610 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
27612 case $DFT_LWR_MODEL in
27613 (libtool) DFT_ARG_SUFFIX='' ;;
27614 (normal) DFT_ARG_SUFFIX='' ;;
27615 (debug) DFT_ARG_SUFFIX='_g' ;;
27616 (profile) DFT_ARG_SUFFIX='_p' ;;
27617 (shared) DFT_ARG_SUFFIX='' ;;
27619 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
27620 echo "$as_me:27620: result: $DFT_ARG_SUFFIX" >&5
27621 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
27623 echo "$as_me:27623: checking default library-dependency suffix" >&5
27624 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
27626 case X$DFT_LWR_MODEL in
27628 DFT_LIB_SUFFIX='.la'
27629 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27632 case "$cf_cv_system_name" in
27634 DFT_LIB_SUFFIX='_g.lib'
27637 DFT_LIB_SUFFIX='_g.a'
27640 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27643 case "$cf_cv_system_name" in
27645 DFT_LIB_SUFFIX='_p.lib'
27648 DFT_LIB_SUFFIX='_p.a'
27651 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27654 case "$cf_cv_system_name" in
27656 DFT_LIB_SUFFIX='.so'
27657 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27660 DFT_LIB_SUFFIX='.dll'
27661 DFT_DEP_SUFFIX='.dll.lib'
27663 (cygwin*|msys*|mingw*)
27664 DFT_LIB_SUFFIX='.dll'
27665 DFT_DEP_SUFFIX='.dll.a'
27668 DFT_LIB_SUFFIX='.dylib'
27669 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27674 DFT_LIB_SUFFIX='.so'
27675 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27678 DFT_LIB_SUFFIX='.sl'
27679 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27684 DFT_LIB_SUFFIX='.so'
27685 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27692 DFT_LIB_SUFFIX='.lib'
27695 DFT_LIB_SUFFIX='.a'
27698 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27701 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
27703 DFT_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_LIB_SUFFIX}"
27704 DFT_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_DEP_SUFFIX}"
27706 echo "$as_me:27706: result: $DFT_DEP_SUFFIX" >&5
27707 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
27709 echo "$as_me:27709: checking default object directory" >&5
27710 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
27712 case $DFT_LWR_MODEL in
27713 (libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
27714 (normal) DFT_OBJ_SUBDIR='objects' ;;
27715 (debug) DFT_OBJ_SUBDIR='obj_g' ;;
27716 (profile) DFT_OBJ_SUBDIR='obj_p' ;;
27718 case "$cf_cv_system_name" in
27720 DFT_OBJ_SUBDIR='objects' ;;
27722 DFT_OBJ_SUBDIR='obj_s' ;;
27725 echo "$as_me:27725: result: $DFT_OBJ_SUBDIR" >&5
27726 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
27728 if test "x$cf_with_cxx" = xyes ; then
27729 echo "$as_me:27729: checking c++ library-dependency suffix" >&5
27730 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
27731 if test "$with_libtool" != "no"; then
27732 # libtool thinks it can make c++ shared libraries (perhaps only g++)
27733 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
27734 elif test "$with_shared_cxx" != "no"; then
27735 # also for g++ users...
27736 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
27738 # we normally make a static library because C/C++ library rules differ
27742 CXX_LIB_SUFFIX='.la'
27743 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27746 case "$cf_cv_system_name" in
27748 CXX_LIB_SUFFIX='_g.lib'
27751 CXX_LIB_SUFFIX='_g.a'
27754 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27757 case "$cf_cv_system_name" in
27759 CXX_LIB_SUFFIX='_p.lib'
27762 CXX_LIB_SUFFIX='_p.a'
27765 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27768 case "$cf_cv_system_name" in
27770 CXX_LIB_SUFFIX='.so'
27771 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27774 CXX_LIB_SUFFIX='.dll'
27775 CXX_DEP_SUFFIX='.dll.lib'
27777 (cygwin*|msys*|mingw*)
27778 CXX_LIB_SUFFIX='.dll'
27779 CXX_DEP_SUFFIX='.dll.a'
27782 CXX_LIB_SUFFIX='.dylib'
27783 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27788 CXX_LIB_SUFFIX='.so'
27789 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27792 CXX_LIB_SUFFIX='.sl'
27793 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27798 CXX_LIB_SUFFIX='.so'
27799 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27806 CXX_LIB_SUFFIX='.lib'
27809 CXX_LIB_SUFFIX='.a'
27812 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27815 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
27817 CXX_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_LIB_SUFFIX}"
27818 CXX_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_DEP_SUFFIX}"
27822 echo "$as_me:27822: result: $CXX_LIB_SUFFIX" >&5
27823 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
27827 # do not want -ldl in build except as needed for -lncurses dependency
27828 if test "x$with_dlsym" = xyes ; then
27829 if test "$DFT_LWR_MODEL" = shared || \
27830 test "$DFT_LWR_MODEL" = libtool ; then
27832 # remove dl library from $LIBS
27833 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
27837 ### Set up low-level terminfo dependencies for makefiles.
27839 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
27840 # do not need libdl
27842 if test "x$with_dlsym" = xyes ; then
27844 # remove dl library from $SHLIB_LIST
27845 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
27849 USE_ARG_SUFFIX="${DFT_ARG_SUFFIX}${EXTRA_SUFFIX}"
27850 USE_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}"
27851 USE_CFG_SUFFIX=${DFT_ARG_SUFFIX}${cf_cv_abi_version}
27852 if test -n "$EXTRA_SUFFIX" && test "x$EXTRA_SUFFIX" != "x${cf_cv_abi_version}"
27854 USE_CFG_SUFFIX="${USE_CFG_SUFFIX}${EXTRA_SUFFIX}"
27857 if test "$with_ticlib" != no ; then
27859 if test "x$with_ticlib" != xyes ; then
27860 TICS_NAME=$with_ticlib
27861 TICS_SUFFIX="`echo "${DFT_LIB_SUFFIX}" |sed -e "s/^${USE_LIB_SUFFIX}//"`"
27862 TICS_ARG_SUFFIX="${with_ticlib}`echo "${USE_ARG_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
27863 TICS_DEP_SUFFIX="${with_ticlib}`echo "${DFT_DEP_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
27864 TICS_LIB_SUFFIX="${with_ticlib}"
27866 TICS_SUFFIX=${DFT_LIB_SUFFIX}
27867 TICS_ARG_SUFFIX="${TICS_NAME}${USE_ARG_SUFFIX}"
27868 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
27869 TICS_LIB_SUFFIX="${TICS_NAME}${USE_LIB_SUFFIX}"
27871 TICS_LDFLAGS="-L${LIB_DIR}"
27872 TICS_LIBS="-l${TICS_ARG_SUFFIX}"
27874 TICS_SUFFIX=${DFT_LIB_SUFFIX}
27875 TICS_LDFLAGS="-L${LIB_DIR}"
27876 TICS_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
27879 if test "$with_termlib" != no ; then
27881 if test "x$with_termlib" != xyes ; then
27882 TINFO_NAME=$with_termlib
27883 TINFO_SUFFIX="`echo "${DFT_LIB_SUFFIX}" |sed -e "s/^${USE_LIB_SUFFIX}//"`"
27884 TINFO_ARG_SUFFIX="${with_termlib}`echo "${USE_ARG_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
27885 TINFO_DEP_SUFFIX="${with_termlib}`echo "${DFT_DEP_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
27886 TINFO_LIB_SUFFIX="${with_termlib}"
27888 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
27889 TINFO_ARG_SUFFIX="${TINFO_NAME}${USE_ARG_SUFFIX}"
27890 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
27891 TINFO_LIB_SUFFIX="${TINFO_NAME}${USE_LIB_SUFFIX}"
27894 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
27895 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
27896 if test "$DFT_LWR_MODEL" = "libtool"; then
27897 TEST_ARGS="${TEST_DEPS}"
27898 TEST_ARG2="${TEST_DEP2}"
27899 TINFO_LDFLAGS="-L${LIB_DIR}"
27900 TINFO_LIBS="$TEST_ARGS"
27901 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
27902 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
27904 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
27905 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
27906 if test "x$with_term_driver" != xno ; then
27907 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
27908 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${USE_ARG_SUFFIX}"
27909 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
27911 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
27912 TINFO_LIBS="$TEST_ARGS"
27914 TINFO_LDFLAGS="-L${LIB_DIR}"
27915 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
27918 # the next lines are needed for linking libtic over libncurses
27919 TINFO_NAME=${LIB_NAME}
27920 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
27921 TINFO_ARG_SUFFIX=${LIB_NAME}${USE_ARG_SUFFIX}
27922 if test "x$with_tic_depends" = xyes ; then
27923 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
27925 TICS_LIST="$SHLIB_LIST"
27928 TINFO_LDFLAGS="-L${LIB_DIR}"
27929 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
27932 if test "$DFT_LWR_MODEL" = shared ; then
27933 case "$cf_cv_system_name" in
27935 # "lib" files have ".dll.a" suffix, "cyg"or "msys-" files have ".dll"
27941 if test "x$with_dlsym" = xyes ; then
27943 # remove dl library from $TICS_LIST
27944 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
27948 if test "$DFT_LWR_MODEL" = "libtool"; then
27953 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
27955 case "$DFT_LWR_MODEL" in
27956 (normal|debug|profile)
27958 if test "$GCC" = yes ; then
27959 case "$cf_cv_system_name" in
27960 (OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*)
27964 (*) # normally, except when broken
27965 LDFLAGS_STATIC=-static
27966 LDFLAGS_SHARED=-dynamic
27970 case "$cf_cv_system_name" in
27971 (aix[4-7]*) # from ld manpage
27972 LDFLAGS_STATIC=-bstatic
27973 LDFLAGS_SHARED=-bdynamic
27975 (hpux*) # from ld manpage for hpux10.20, hpux11.11
27976 # We could also use just "archive" and "shared".
27977 LDFLAGS_STATIC=-Wl,-a,archive_shared
27978 LDFLAGS_SHARED=-Wl,-a,shared_archive
27980 (irix*) # from ld manpage IRIX64
27981 LDFLAGS_STATIC=-Bstatic
27982 LDFLAGS_SHARED=-Bdynamic
27984 (osf[45]*) # from ld manpage osf4.0d, osf5.1
27985 # alternative "-oldstyle_liblookup" (not in cc manpage)
27986 LDFLAGS_STATIC=-noso
27987 LDFLAGS_SHARED=-so_archive
27990 LDFLAGS_STATIC=-Bstatic
27991 LDFLAGS_SHARED=-Bdynamic
27996 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
27998 echo "$as_me:27998: checking if linker supports switching between static/dynamic" >&5
27999 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
28001 rm -f libconftest.a
28002 cat >conftest.$ac_ext <<EOF
28003 #line 28003 "configure"
28005 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
28007 if { (eval echo "$as_me:28007: \"$ac_compile\"") >&5
28008 (eval $ac_compile) 2>&5
28010 echo "$as_me:28010: \$? = $ac_status" >&5
28011 (exit "$ac_status"); } ; then
28012 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
28013 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
28017 cf_save_LIBS="$LIBS"
28019 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
28020 cat >"conftest.$ac_ext" <<_ACEOF
28021 #line 28021 "configure"
28022 #include "confdefs.h"
28024 #line 28024 "configure"
28026 int cf_ldflags_static(FILE *fp);
28032 return cf_ldflags_static(stdin);
28038 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
28039 if { (eval echo "$as_me:28039: \"$ac_link\"") >&5
28040 (eval $ac_link) 2>&5
28042 echo "$as_me:28042: \$? = $ac_status" >&5
28043 (exit "$ac_status"); } &&
28044 { ac_try='test -s "conftest$ac_exeext"'
28045 { (eval echo "$as_me:28045: \"$ac_try\"") >&5
28046 (eval $ac_try) 2>&5
28048 echo "$as_me:28048: \$? = $ac_status" >&5
28049 (exit "$ac_status"); }; }; then
28051 # some linkers simply ignore the -dynamic
28052 case x`file "conftest$ac_exeext" 2>/dev/null` in
28054 cf_ldflags_static=no
28057 cf_ldflags_static=yes
28062 echo "$as_me: failed program was:" >&5
28063 cat "conftest.$ac_ext" >&5
28064 cf_ldflags_static=no
28066 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
28068 rm -f libconftest.*
28069 LIBS="$cf_save_LIBS"
28071 echo "$as_me:28071: result: $cf_ldflags_static" >&5
28072 echo "${ECHO_T}$cf_ldflags_static" >&6
28074 if test "$cf_ldflags_static" != yes
28087 echo "$as_me:28087: checking where we will install curses.h" >&5
28088 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
28091 if test "$with_overwrite" = no && \
28092 { test "x$includedir" = 'x${prefix}/include' || \
28093 test "x$includedir" = "x${prefix}/include"; }
28095 includesubdir="/ncurses${USE_LIB_SUFFIX}"
28097 echo "$as_me:28097: result: ${includedir}${includesubdir}" >&5
28098 echo "${ECHO_T}${includedir}${includesubdir}" >&6
28100 ### Resolve a conflict between normal and wide-curses by forcing applications
28101 ### that will need libutf8 to add it to their configure script.
28102 if test "$with_overwrite" != no ; then
28103 if test "$NCURSES_LIBUTF8" = 1 ; then
28104 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
28105 { echo "$as_me:28105: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
28106 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
28109 WITH_OVERWRITE=$with_overwrite
28111 ### At least on MinGW a shared library build without libtool
28112 ### requires adding the additional libs to the link list.
28113 case "$cf_cv_system_name" in
28114 (*mingw32*|*mingw64*)
28115 if test "$DFT_LWR_MODEL" != "libtool"; then
28116 SHLIB_LIST="$SHLIB_LIST ${LIBS}"
28122 # used to separate tack out of the tree
28125 ### predefined stuff for the test programs
28127 cat >>confdefs.h <<\EOF
28128 #define HAVE_SLK_COLOR 1
28131 # pkgsrc uses these
28133 echo "$as_me:28133: checking for desired basename for form library" >&5
28134 echo $ECHO_N "checking for desired basename for form library... $ECHO_C" >&6
28136 # Check whether --with-form-libname or --without-form-libname was given.
28137 if test "${with_form_libname+set}" = set; then
28138 withval="$with_form_libname"
28139 with_lib_basename=$withval
28141 with_lib_basename=form
28143 FORM_NAME="$with_lib_basename"
28145 case "x$FORM_NAME" in
28153 echo "$as_me:28153: result: $FORM_NAME" >&5
28154 echo "${ECHO_T}$FORM_NAME" >&6
28156 echo "$as_me:28156: checking for desired basename for menu library" >&5
28157 echo $ECHO_N "checking for desired basename for menu library... $ECHO_C" >&6
28159 # Check whether --with-menu-libname or --without-menu-libname was given.
28160 if test "${with_menu_libname+set}" = set; then
28161 withval="$with_menu_libname"
28162 with_lib_basename=$withval
28164 with_lib_basename=menu
28166 MENU_NAME="$with_lib_basename"
28168 case "x$MENU_NAME" in
28176 echo "$as_me:28176: result: $MENU_NAME" >&5
28177 echo "${ECHO_T}$MENU_NAME" >&6
28179 echo "$as_me:28179: checking for desired basename for panel library" >&5
28180 echo $ECHO_N "checking for desired basename for panel library... $ECHO_C" >&6
28182 # Check whether --with-panel-libname or --without-panel-libname was given.
28183 if test "${with_panel_libname+set}" = set; then
28184 withval="$with_panel_libname"
28185 with_lib_basename=$withval
28187 with_lib_basename=panel
28189 PANEL_NAME="$with_lib_basename"
28191 case "x$PANEL_NAME" in
28199 echo "$as_me:28199: result: $PANEL_NAME" >&5
28200 echo "${ECHO_T}$PANEL_NAME" >&6
28202 echo "$as_me:28202: checking for desired basename for cxx library" >&5
28203 echo $ECHO_N "checking for desired basename for cxx library... $ECHO_C" >&6
28205 # Check whether --with-cxx-libname or --without-cxx-libname was given.
28206 if test "${with_cxx_libname+set}" = set; then
28207 withval="$with_cxx_libname"
28208 with_lib_basename=$withval
28210 with_lib_basename=ncurses++
28212 CXX_NAME="$with_lib_basename"
28214 case "x$CXX_NAME" in
28222 echo "$as_me:28222: result: $CXX_NAME" >&5
28223 echo "${ECHO_T}$CXX_NAME" >&6
28225 ### Construct the list of subdirectories for which we'll customize makefiles
28226 ### with the appropriate compile-rules.
28228 echo "$as_me:28228: checking for src modules" >&5
28229 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
28231 # dependencies and linker-arguments for test-programs
28232 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
28233 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
28234 if test "$DFT_LWR_MODEL" = "libtool"; then
28235 TEST_ARGS="${TEST_DEPS}"
28236 TEST_ARG2="${TEST_DEP2}"
28238 TEST_ARGS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
28239 TEST_ARG2="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARG2"
28242 PC_MODULES_TO_MAKE="ncurses${USE_ARG_SUFFIX}"
28244 for cf_dir in $modules_to_build
28246 if test -f "$srcdir/$cf_dir/modules" ; then
28248 # We may/may not have tack in the distribution, though the
28250 if test "$cf_dir" = tack ; then
28251 if test "x$cf_with_tack" != "xyes"; then
28256 if test -z "$cf_cv_src_modules"; then
28257 cf_cv_src_modules=$cf_dir
28259 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
28262 # Make the ncurses_cfg.h file record the library interface files as
28263 # well. These are header files that are the same name as their
28264 # directory. Ncurses is the only library that does not follow
28266 if test "$cf_dir" = tack ; then
28268 elif test -f "$srcdir/${cf_dir}/${cf_dir}.h" ; then
28270 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
28272 cat >>confdefs.h <<EOF
28273 #define HAVE_${cf_have_include}_H 1
28276 cat >>confdefs.h <<EOF
28277 #define HAVE_LIB${cf_have_include} 1
28280 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
28282 eval TEST_ROOT="\$${cf_map_lib_basename}_NAME"
28284 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TEST_ROOT}${DFT_DEP_SUFFIX} $TEST_DEPS"
28285 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TEST_ROOT}${DFT_DEP_SUFFIX} $TEST_DEP2"
28286 if test "$DFT_LWR_MODEL" = "libtool"; then
28287 TEST_ARGS="${TEST_DEPS}"
28288 TEST_ARG2="${TEST_DEP2}"
28290 TEST_ARGS="-l${TEST_ROOT}${USE_ARG_SUFFIX} $TEST_ARGS"
28291 TEST_ARG2="-l${TEST_ROOT}${USE_ARG_SUFFIX} $TEST_ARG2"
28293 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${USE_ARG_SUFFIX}"
28297 echo "$as_me:28297: result: $cf_cv_src_modules" >&5
28298 echo "${ECHO_T}$cf_cv_src_modules" >&6
28300 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
28301 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
28304 if test "x$cf_with_manpages" != xno ; then
28305 SRC_SUBDIRS="$SRC_SUBDIRS man"
28307 SRC_SUBDIRS="$SRC_SUBDIRS include"
28308 for cf_dir in $cf_cv_src_modules
28310 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
28312 if test "x$cf_with_tests" != "xno" ; then
28313 SRC_SUBDIRS="$SRC_SUBDIRS test"
28315 # always make this, to install the ncurses-config script
28316 SRC_SUBDIRS="$SRC_SUBDIRS misc"
28317 if test "$cf_with_cxx_binding" != no; then
28318 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${USE_ARG_SUFFIX}"
28319 SRC_SUBDIRS="$SRC_SUBDIRS c++"
28322 test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX"
28323 test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX"
28326 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f "$srcdir/Ada95/Makefile.in" ; then
28327 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
28328 ADA_SUBDIRS="gen src"
28329 if test "x$cf_with_tests" != "xno" ; then
28330 ADA_SUBDIRS="$ADA_SUBDIRS samples"
28335 for cf_dir in $SRC_SUBDIRS
28337 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
28340 if test -n "$ADA_SUBDIRS"; then
28341 for cf_dir in $ADA_SUBDIRS
28343 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
28348 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
28349 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/src/library.gpr:Ada95/src/library.gpr.in"
28350 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${USE_CFG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
28351 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${USE_CFG_SUFFIX}-config.1:man/MKada_config.in"
28355 for cf_item in $cf_list_models
28359 (libtool) cf_subdir='obj_lo' ;;
28360 (normal) cf_subdir='objects' ;;
28361 (debug) cf_subdir='obj_g' ;;
28362 (profile) cf_subdir='obj_p' ;;
28364 case "$cf_cv_system_name" in
28366 cf_subdir='objects' ;;
28368 cf_subdir='obj_s' ;;
28372 for cf_item2 in $DIRS_TO_MAKE
28374 test "$cf_item2" = "$cf_subdir" && break
28376 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
28378 for cf_dir in $DIRS_TO_MAKE
28380 test ! -d "$cf_dir" && mkdir "$cf_dir"
28383 # symbols that differ when compiling Ada95 by itself.
28384 NCURSES_SHLIB2=$SHELL' $(top_srcdir)/misc/shlib'
28386 # values to use as strings
28388 cat >>confdefs.h <<EOF
28389 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
28392 cat >>confdefs.h <<EOF
28393 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
28396 ### Define substitutions for header files to avoid name-pollution
28398 if test "x$cf_cv_have_tcgetattr" = xyes ; then
28404 if test "x$ac_cv_header_stdint_h" = xyes ; then
28410 if test "x$ac_cv_header_termio_h" = xyes ; then
28416 if test "x$ac_cv_header_termios_h" = xyes ; then
28422 ################################################################################
28423 test "x$use_database" = xyes && \
28424 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
28426 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
28427 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${USE_CFG_SUFFIX}-config.1:man/MKncu_config.in"
28429 if test "x$enable_pc_files" = xyes && test -z "$MAKE_PC_FILES" ; then
28430 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
28433 if test "x$cf_with_tests" != xno ; then
28439 ADAHTML_DIR=../../doc/html/ada
28441 # workaround for OS/2 (20151017)
28442 case "$cf_cv_system_name" in
28444 LIBTOOL_OPTS_CXX="-os2dllname ncurs++"
28451 # workaround for g++ versus Solaris (20131116)
28452 case "$cf_cv_system_name" in
28454 case "x$CPPFLAGS" in
28455 (*-D_XOPEN_SOURCE_EXTENDED*)
28456 test -n "$verbose" && echo " moving _XOPEN_SOURCE_EXTENDED to work around g++ problem" 1>&6
28458 echo "${as_me:-configure}:28458: testing moving _XOPEN_SOURCE_EXTENDED to work around g++ problem ..." 1>&5
28460 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
28461 CPPFLAGS=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/-D_XOPEN_SOURCE_EXTENDED//'`
28467 # Help to automatically enable the extended curses features when using either
28468 # the *-config or the ".pc" files by adding defines.
28469 echo "$as_me:28469: checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script" >&5
28470 echo $ECHO_N "checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script... $ECHO_C" >&6
28472 for cf_loop1 in $CPPFLAGS_after_XOPEN
28475 for cf_loop2 in $CPPFLAGS_before_XOPEN
28477 if test "x$cf_loop1" = "x$cf_loop2"
28483 test "$cf_found" = no && PKG_CFLAGS="$PKG_CFLAGS $cf_loop1"
28485 echo "$as_me:28485: result: $PKG_CFLAGS" >&5
28486 echo "${ECHO_T}$PKG_CFLAGS" >&6
28488 # AC_CHECK_SIZEOF demands a literal parameter, no variables. So we do this.
28489 case "x$NCURSES_OSPEED" in
28498 cat >>confdefs.h <<EOF
28499 #define NCURSES_OSPEED_COMPAT $cf_compatible
28502 case "x$cf_cv_typeof_chtype" in
28503 (xshort|xint|xlong)
28504 cf_cv_typeof_chtype="unsigned $cf_cv_typeof_chtype"
28508 case "x$cf_cv_typeof_mmask_t" in
28509 (xshort|xint|xlong)
28510 cf_cv_typeof_mmask_t="unsigned $cf_cv_typeof_mmask_t"
28514 # substitute into misc/Makefile to suppress
28515 # (un)install.data from the
28516 # (un)install rules.
28517 if test "x$cf_with_db_install" = "xno"; then
28519 MISC_UNINSTALL_DATA=
28521 MISC_INSTALL_DATA=install.data
28522 MISC_UNINSTALL_DATA=uninstall.data
28525 if test "x$cf_with_db_install" = "xno" || test "x$TERMINFO_SRC" = "xno"; then
28528 MAKE_DATABASE="$MAKE_TERMINFO"
28531 if test -n "$PACKAGE"
28533 PACKAGE="${PACKAGE}${DFT_ARG_SUFFIX}"
28535 echo "package: $PACKAGE"
28541 if test -n "$RESULTING_SYMS"
28543 cf_filter_syms=$cf_dft_filter_syms
28544 test -n "$verbose" && echo " will map symbols to ABI=$cf_cv_abi_version" 1>&6
28546 echo "${as_me:-configure}:28546: testing will map symbols to ABI=$cf_cv_abi_version ..." 1>&5
28550 if test "x$WILDCARD_SYMS" = xno
28555 test "x$cf_with_trace" = xyes && NCURSES_INLINE=
28557 UNALTERED_SYMS=`echo "$RESULTING_SYMS" | sed -e 's/\\$/\\\\$/g'`
28558 if test "$cf_filter_syms" = yes
28560 RESULTING_SYMS=resulting.map
28563 if test "x$cross_compiling" = xyes ; then
28564 ADAGEN_LDFLAGS='$(CROSS_LDFLAGS)'
28567 ADAGEN_LDFLAGS='$(NATIVE_LDFLAGS)'
28571 # This is used for the *-config script and *.pc data files.
28573 echo "$as_me:28573: checking for linker search path" >&5
28574 echo $ECHO_N "checking for linker search path... $ECHO_C" >&6
28575 if test "${cf_cv_ld_searchpath+set}" = set; then
28576 echo $ECHO_N "(cached) $ECHO_C" >&6
28579 if test "$cross_compiling" != yes ; then
28581 # GNU binutils' ld does not involve permissions which may stop ldconfig.
28582 cf_pathlist=`ld --verbose 2>/dev/null | grep SEARCH_DIR | sed -e 's,SEARCH_DIR[("=][("=]*,,g' -e 's/"[)];//gp' | sort -u`
28584 # The -NX options tell newer versions of Linux ldconfig to not attempt to
28585 # update the cache, which makes it run faster.
28586 test -z "$cf_pathlist" && \
28587 cf_pathlist=`(ldconfig -NX -v) 2>/dev/null | sed -e '/^[ ]/d' -e 's/:$//' | sort -u`
28589 test -z "$cf_pathlist" &&
28590 cf_pathlist=`(ldconfig -v) 2>/dev/null | sed -n -e '/^[ ]/d' -e 's/:$//p' | sort -u`
28592 # This works with OpenBSD 6.5, which lists only filenames
28593 test -z "$cf_pathlist" &&
28594 cf_pathlist=`(ldconfig -v) 2>/dev/null | sed -n -e 's,^Adding \(.*\)/.*$,\1,p' | sort -u`
28596 if test -z "$cf_pathlist"
28598 # dyld default path with MacOS
28599 if test -f /usr/bin/otool && test "x`uname -s`" = xDarwin
28601 # do this to bypass check
28602 cf_cv_ld_searchpath='$HOME/lib'
28603 cf_pathlist="/usr/local/lib /lib /usr/lib"
28607 if test -z "$cf_pathlist"
28609 # Solaris is "SunOS"
28610 if test -f /usr/bin/isainfo && test "x`uname -s`" = xSunOS
28612 case x`(isainfo -b)` in
28614 cf_pathlist="$cf_pathlist /lib/64 /usr/lib/64"
28617 test -d /usr/ccs/lib && cf_pathlist="$cf_pathlist /usr/ccs/lib"
28618 cf_pathlist="$cf_pathlist /lib /usr/lib"
28621 { echo "$as_me:28621: WARNING: problem with Solaris architecture" >&5
28622 echo "$as_me: WARNING: problem with Solaris architecture" >&2;}
28628 if test -z "$cf_pathlist"
28631 if test x"`uname -s`" = xHP-UX
28633 case x`getconf LONG_BIT` in
28635 cf_pathlist="/usr/lib/hpux64"
28638 cf_pathlist="/usr/lib/hpux32"
28646 # If nothing else, assume it is conventional
28647 test -z "$cf_pathlist" && cf_pathlist="/usr/lib /lib"
28649 # Finally, check that this is only directories
28650 for cf_path in $0 $cf_pathlist
28652 if test -d "$cf_path"; then
28653 test -n "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath="${cf_cv_ld_searchpath} "
28654 cf_cv_ld_searchpath="${cf_cv_ld_searchpath}${cf_path}"
28658 # Ensure that it is nonempty
28659 test -z "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath=/usr/lib
28662 echo "$as_me:28662: result: $cf_cv_ld_searchpath" >&5
28663 echo "${ECHO_T}$cf_cv_ld_searchpath" >&6
28665 LD_SEARCHPATH=`echo "$cf_cv_ld_searchpath"|sed -e 's/ /|/g'`
28667 cat >>confdefs.h <<\EOF
28668 #define HAVE_CURSES_DATA_BOOLNAMES 1
28671 ac_config_files="$ac_config_files include/MKterm.h.awk include/curses.head:include/curses.h.in include/ncurses_dll.h include/termcap.h include/unctrl.h $SUB_MAKEFILES Makefile"
28672 ac_config_commands="$ac_config_commands default"
28673 cat >confcache <<\_ACEOF
28674 # This file is a shell script that caches the results of configure
28675 # tests run on this system so they can be shared between configure
28676 # scripts and configure runs, see configure's option --config-cache.
28677 # It is not useful on other systems. If it contains results you don't
28678 # want to keep, you may remove or edit it.
28680 # config.status only pays attention to the cache file if you give it
28681 # the --recheck option to rerun configure.
28683 # `ac_cv_env_foo' variables (set or unset) will be overriden when
28684 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28685 # following values.
28689 # The following way of writing the cache mishandles newlines in values,
28690 # but we know of no workaround that is simple, portable, and efficient.
28691 # So, don't put newlines in cache variables' values.
28692 # Ultrix sh set writes to stderr and can't be redirected directly,
28693 # and sets the high bit in the cache file unless we assign to the vars.
28696 case `(ac_space=' '; set | grep ac_space) 2>&1` in
28698 # `set' does not quote correctly, so add quotes (double-quote
28699 # substitution turns \\\\ into \\, and sed turns \\ into \).
28702 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28705 # `set' quotes correctly as required by POSIX, so do not add quotes.
28707 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28714 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28716 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28718 if cmp -s $cache_file confcache; then :; else
28719 if test -w $cache_file; then
28720 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28721 cat confcache >$cache_file
28723 echo "not updating unwritable cache $cache_file"
28728 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28729 # Let make expand exec_prefix.
28730 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28732 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28733 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28734 # trailing colons and then remove the whole line if VPATH becomes empty
28735 # (actually we leave an empty line to preserve line numbers).
28736 if test "x$srcdir" = x.; then
28737 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28738 s/:*\$(srcdir):*/:/;
28739 s/:*\${srcdir}:*/:/;
28741 s/^\([^=]*=[ ]*\):*/\1/;
28747 DEFS=-DHAVE_CONFIG_H
28749 : "${CONFIG_STATUS=./config.status}"
28750 ac_clean_files_save=$ac_clean_files
28751 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28752 { echo "$as_me:28752: creating $CONFIG_STATUS" >&5
28753 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28754 cat >"$CONFIG_STATUS" <<_ACEOF
28756 # Generated automatically by configure.
28757 # Run this file to recreate the current configuration.
28758 # Compiler output produced by configure, useful for debugging
28759 # configure, is in config.log if it exists.
28762 SHELL=\${CONFIG_SHELL-$SHELL}
28763 ac_cs_invocation="\$0 \$@"
28765 CLICOLOR_FORCE= GREP_OPTIONS=
28766 unset CLICOLOR_FORCE GREP_OPTIONS
28769 cat >>"$CONFIG_STATUS" <<\_ACEOF
28770 # Be Bourne compatible
28771 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28774 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28778 # Name of the executable.
28779 as_me=`echo "$0" |sed 's,.*[\\/],,'`
28781 if expr a : '\(a\)' >/dev/null 2>&1; then
28787 rm -f conf$$ conf$$.exe conf$$.file
28789 if ln -s conf$$.file conf$$ 2>/dev/null; then
28790 # We could just check for DJGPP; but this test a) works b) is more generic
28791 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28792 if test -f conf$$.exe; then
28793 # Don't use ln at all; we don't have any links
28798 elif ln conf$$.file conf$$ 2>/dev/null; then
28803 rm -f conf$$ conf$$.exe conf$$.file
28805 as_executable_p="test -f"
28807 # Support unset when possible.
28808 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28815 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
28816 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
28817 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
28818 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
28819 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
28820 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
28821 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
28822 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
28825 # We need space, tab and new line, in precisely that order.
28831 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
28837 # Files that config.status was made for.
28838 if test -n "$ac_config_files"; then
28839 echo "config_files=\"$ac_config_files\"" >>"$CONFIG_STATUS"
28842 if test -n "$ac_config_headers"; then
28843 echo "config_headers=\"$ac_config_headers\"" >>"$CONFIG_STATUS"
28846 if test -n "$ac_config_links"; then
28847 echo "config_links=\"$ac_config_links\"" >>"$CONFIG_STATUS"
28850 if test -n "$ac_config_commands"; then
28851 echo "config_commands=\"$ac_config_commands\"" >>"$CONFIG_STATUS"
28854 cat >>"$CONFIG_STATUS" <<\EOF
28857 \`$as_me' instantiates files from templates according to the
28858 current configuration.
28860 Usage: $0 [OPTIONS] [FILE]...
28862 -h, --help print this help, then exit
28863 -V, --version print version number, then exit
28864 -d, --debug don't remove temporary files
28865 --recheck update $as_me by reconfiguring in the same conditions
28866 --file=FILE[:TEMPLATE]
28867 instantiate the configuration file FILE
28868 --header=FILE[:TEMPLATE]
28869 instantiate the configuration header FILE
28871 Configuration files:
28874 Configuration headers:
28877 Configuration commands:
28880 Report bugs to <dickey@invisible-island.net>."
28883 cat >>"$CONFIG_STATUS" <<EOF
28886 configured by $0, generated by GNU Autoconf 2.52.20210509,
28887 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
28889 Copyright 2003-2020,2021 Thomas E. Dickey
28890 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
28891 Free Software Foundation, Inc.
28892 This config.status script is free software; the Free Software Foundation
28893 gives unlimited permission to copy, distribute and modify it."
28898 cat >>"$CONFIG_STATUS" <<\EOF
28899 # If no file are specified by the user, then we need to provide default
28900 # value. By we need to know if files were specified by the user.
28906 ac_option=`expr "x$1" : 'x\([^=]*\)='`
28907 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
28909 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
28913 *) # This is not an option, so the user has probably given explicit
28915 ac_need_defaults=false;;
28919 # Handling of the options.
28921 cat >>"$CONFIG_STATUS" <<EOF
28922 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28923 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
28924 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
28926 cat >>"$CONFIG_STATUS" <<\EOF
28927 --version | --vers* | -V )
28928 echo "$ac_cs_version"; exit 0 ;;
28930 # Conflict between --help and --header
28931 { { echo "$as_me:28931: error: ambiguous option: $1
28932 Try \`$0 --help' for more information." >&5
28933 echo "$as_me: error: ambiguous option: $1
28934 Try \`$0 --help' for more information." >&2;}
28935 { (exit 1); exit 1; }; };;
28936 --help | --hel | -h )
28937 echo "$ac_cs_usage"; exit 0 ;;
28938 --debug | --d* | -d )
28940 --file | --fil | --fi | --f )
28942 CONFIG_FILES="$CONFIG_FILES $1"
28943 ac_need_defaults=false;;
28944 --header | --heade | --head | --hea )
28946 CONFIG_HEADERS="$CONFIG_HEADERS $1"
28947 ac_need_defaults=false;;
28949 # This is an error.
28950 -*) { { echo "$as_me:28950: error: unrecognized option: $1
28951 Try \`$0 --help' for more information." >&5
28952 echo "$as_me: error: unrecognized option: $1
28953 Try \`$0 --help' for more information." >&2;}
28954 { (exit 1); exit 1; }; } ;;
28956 *) ac_config_targets="$ac_config_targets $1" ;;
28965 ## ----------------------- ##
28966 ## Running config.status. ##
28967 ## ----------------------- ##
28969 This file was extended by $as_me 2.52.20210509, executed with
28970 CONFIG_FILES = $CONFIG_FILES
28971 CONFIG_HEADERS = $CONFIG_HEADERS
28972 CONFIG_LINKS = $CONFIG_LINKS
28973 CONFIG_COMMANDS = $CONFIG_COMMANDS
28974 > "$ac_cs_invocation"
28975 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28980 cat >>"$CONFIG_STATUS" <<EOF
28982 # INIT-COMMANDS section.
28985 ### Special initialization commands, used to pass information from the
28986 ### configuration-run into config.status
28988 ALTERNATE_SYMS="$ALTERNATE_SYMS"
28990 CXX_NAME="$CXX_NAME"
28991 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
28992 DFT_LWR_MODEL="$DFT_LWR_MODEL"
28994 EXTRA_SUFFIX="$EXTRA_SUFFIX"
28995 FORM_NAME="$FORM_NAME"
28996 LDCONFIG="$LDCONFIG"
28997 LIBTOOL_VERSION="$LIBTOOL_VERSION"
28998 LIB_NAME="$LIB_NAME"
28999 LIB_PREFIX="$LIB_PREFIX"
29000 LIB_SUBSETS="$LIB_SUBSETS"
29001 LIB_SUFFIX="$LIB_SUFFIX"
29002 LIB_TRACING="$LIB_TRACING"
29004 MAKE_TERMINFO="$MAKE_TERMINFO"
29005 MENU_NAME="$MENU_NAME"
29006 NCURSES_MAJOR="$NCURSES_MAJOR"
29007 NCURSES_MINOR="$NCURSES_MINOR"
29008 NCURSES_OSPEED="$NCURSES_OSPEED"
29009 NCURSES_PATCH="$NCURSES_PATCH"
29010 PANEL_NAME="$PANEL_NAME"
29011 SRC_SUBDIRS="$SRC_SUBDIRS"
29012 TERMINFO="$TERMINFO"
29013 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
29014 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
29015 TICS_NAME="$TICS_NAME"
29016 TICS_SUFFIX="$TICS_SUFFIX"
29017 TIC_PATH="$TIC_PATH"
29018 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
29019 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
29020 TINFO_NAME="$TINFO_NAME"
29021 TINFO_SUFFIX="$TINFO_SUFFIX"
29022 UNALTERED_SYMS="$UNALTERED_SYMS"
29023 USE_ARG_SUFFIX="$USE_ARG_SUFFIX"
29024 USE_CFG_SUFFIX="$USE_CFG_SUFFIX"
29025 USE_LIB_SUFFIX="$USE_LIB_SUFFIX"
29026 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
29027 WILDCARD_SYMS="$WILDCARD_SYMS"
29028 WITH_CURSES_H="$with_curses_h"
29029 WITH_ECHO="${enable_echo:=yes}"
29030 WITH_OVERWRITE="$with_overwrite"
29031 cf_LIST_MODELS="$cf_list_models"
29032 cf_cv_VERSION_GNATMAKE=$cf_cv_VERSION_GNATMAKE
29033 cf_cv_VERSION_GPRBUILD=$cf_cv_VERSION_GPRBUILD
29034 cf_cv_abi_version="$cf_cv_abi_version"
29035 cf_cv_do_relink="$cf_cv_do_relink"
29036 cf_cv_do_reranlib="$cf_cv_do_reranlib"
29037 cf_cv_do_symlinks="$cf_cv_do_symlinks"
29038 cf_cv_enable_lp64="$cf_cv_enable_lp64"
29039 cf_cv_enable_opaque="$cf_cv_enable_opaque"
29040 cf_cv_make_PHONY="$cf_cv_make_PHONY"
29041 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
29042 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
29043 cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
29044 cf_cv_rel_version="$cf_cv_rel_version"
29045 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
29046 cf_cv_shared_soname='$cf_cv_shared_soname'
29047 cf_cv_shlib_version="$cf_cv_shlib_version"
29048 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
29049 cf_cv_system_name="$cf_cv_system_name"
29050 cf_cv_term_driver="$with_term_driver"
29051 cf_with_ada="$cf_with_ada"
29052 cf_with_cxx_binding="$cf_with_cxx_binding"
29053 cf_with_db_install="$cf_with_db_install"
29054 cf_with_manpages="$cf_with_manpages"
29055 cf_with_tests="$cf_with_tests"
29058 with_shared_cxx="$with_shared_cxx"
29062 cat >>"$CONFIG_STATUS" <<\EOF
29063 for ac_config_target in $ac_config_targets
29065 case "$ac_config_target" in
29066 # Handling of arguments.
29067 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
29068 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
29069 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
29070 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
29071 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
29072 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
29073 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29074 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29075 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
29076 *) { { echo "$as_me:29076: error: invalid argument: $ac_config_target" >&5
29077 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29078 { (exit 1); exit 1; }; };;
29082 # If the user did not use the arguments to specify the items to instantiate,
29083 # then the envvar interface is used. Set only those that are not.
29084 # We use the long form for the default assignment because of an extremely
29085 # bizarre bug on SunOS 4.1.3.
29086 if "$ac_need_defaults"; then
29087 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29088 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29089 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29092 # Create a temporary directory, and hook for its removal unless debugging.
29095 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29096 trap '{ (exit 1); exit 1; }' 1 2 13 15
29099 # Create a (secure) tmp directory for tmp files.
29102 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
29103 test -n "$tmp" && test -d "$tmp"
29106 tmp=$TMPDIR/cs$$-$RANDOM
29107 (umask 077 && mkdir $tmp)
29110 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
29111 { (exit 1); exit 1; }
29116 cat >>"$CONFIG_STATUS" <<EOF
29119 # CONFIG_FILES section.
29122 # No need to generate the scripts if there are no CONFIG_FILES.
29123 # This happens for instance when ./config.status config.h
29124 if test -n "\$CONFIG_FILES"; then
29125 # Protect against being on the right side of a sed subst in config.status.
29126 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29127 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29128 s,@SHELL@,$SHELL,;t t
29129 s,@exec_prefix@,$exec_prefix,;t t
29130 s,@prefix@,$prefix,;t t
29131 s,@program_transform_name@,$program_transform_name,;t t
29132 s,@bindir@,$bindir,;t t
29133 s,@sbindir@,$sbindir,;t t
29134 s,@libexecdir@,$libexecdir,;t t
29135 s,@datarootdir@,$datarootdir,;t t
29136 s,@datadir@,$datadir,;t t
29137 s,@sysconfdir@,$sysconfdir,;t t
29138 s,@sharedstatedir@,$sharedstatedir,;t t
29139 s,@localstatedir@,$localstatedir,;t t
29140 s,@runstatedir@,$runstatedir,;t t
29141 s,@libdir@,$libdir,;t t
29142 s,@includedir@,$includedir,;t t
29143 s,@oldincludedir@,$oldincludedir,;t t
29144 s,@infodir@,$infodir,;t t
29145 s,@mandir@,$mandir,;t t
29146 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29147 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29148 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29149 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29150 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29151 s,@build_alias@,$build_alias,;t t
29152 s,@host_alias@,$host_alias,;t t
29153 s,@target_alias@,$target_alias,;t t
29154 s,@ECHO_C@,$ECHO_C,;t t
29155 s,@ECHO_N@,$ECHO_N,;t t
29156 s,@ECHO_T@,$ECHO_T,;t t
29157 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29158 s,@DEFS@,$DEFS,;t t
29159 s,@LIBS@,$LIBS,;t t
29160 s,@top_builddir@,$top_builddir,;t t
29161 s,@GREP@,$GREP,;t t
29162 s,@EGREP@,$EGREP,;t t
29163 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
29164 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
29165 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
29166 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
29167 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
29168 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
29169 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
29170 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
29171 s,@VERSION@,$VERSION,;t t
29172 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
29173 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
29174 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
29175 s,@PACKAGE@,$PACKAGE,;t t
29176 s,@build@,$build,;t t
29177 s,@build_cpu@,$build_cpu,;t t
29178 s,@build_vendor@,$build_vendor,;t t
29179 s,@build_os@,$build_os,;t t
29180 s,@host@,$host,;t t
29181 s,@host_cpu@,$host_cpu,;t t
29182 s,@host_vendor@,$host_vendor,;t t
29183 s,@host_os@,$host_os,;t t
29184 s,@target@,$target,;t t
29185 s,@target_cpu@,$target_cpu,;t t
29186 s,@target_vendor@,$target_vendor,;t t
29187 s,@target_os@,$target_os,;t t
29188 s,@FGREP@,$FGREP,;t t
29190 s,@CFLAGS@,$CFLAGS,;t t
29191 s,@LDFLAGS@,$LDFLAGS,;t t
29192 s,@CPPFLAGS@,$CPPFLAGS,;t t
29193 s,@ac_ct_CC@,$ac_ct_CC,;t t
29194 s,@EXEEXT@,$EXEEXT,;t t
29195 s,@OBJEXT@,$OBJEXT,;t t
29196 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
29198 s,@LDCONFIG@,$LDCONFIG,;t t
29200 s,@CXXFLAGS@,$CXXFLAGS,;t t
29201 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
29203 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29204 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29205 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29206 s,@LINT@,$LINT,;t t
29207 s,@LINT_OPTS@,$LINT_OPTS,;t t
29208 s,@LN_S@,$LN_S,;t t
29209 s,@cf_config_suffix@,$cf_config_suffix,;t t
29210 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
29211 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
29212 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
29213 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
29214 s,@PC_MODULE_SUFFIX@,$PC_MODULE_SUFFIX,;t t
29215 s,@SET_MAKE@,$SET_MAKE,;t t
29216 s,@MAKE_NO_PHONY@,$MAKE_NO_PHONY,;t t
29217 s,@MAKE_PHONY@,$MAKE_PHONY,;t t
29218 s,@CTAGS@,$CTAGS,;t t
29219 s,@ETAGS@,$ETAGS,;t t
29220 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
29221 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
29222 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
29223 s,@RANLIB@,$RANLIB,;t t
29224 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29226 s,@ac_ct_LD@,$ac_ct_LD,;t t
29228 s,@ac_ct_AR@,$ac_ct_AR,;t t
29230 s,@ac_ct_NM@,$ac_ct_NM,;t t
29231 s,@ARFLAGS@,$ARFLAGS,;t t
29232 s,@DESTDIR@,$DESTDIR,;t t
29233 s,@BUILD_CC@,$BUILD_CC,;t t
29234 s,@BUILD_CPP@,$BUILD_CPP,;t t
29235 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
29236 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
29237 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
29238 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
29239 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
29240 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
29241 s,@cf_list_models@,$cf_list_models,;t t
29242 s,@ABI_VERSION@,$ABI_VERSION,;t t
29243 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
29244 s,@LIBTOOL@,$LIBTOOL,;t t
29245 s,@ac_ct_LIBTOOL@,$ac_ct_LIBTOOL,;t t
29246 s,@LT_UNDEF@,$LT_UNDEF,;t t
29247 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
29248 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
29249 s,@LIB_CREATE@,$LIB_CREATE,;t t
29250 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
29251 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
29252 s,@LIB_PREP@,$LIB_PREP,;t t
29253 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
29254 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
29255 s,@LIB_LINK@,$LIB_LINK,;t t
29256 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
29257 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
29258 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
29259 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
29260 s,@TICS_NAME@,$TICS_NAME,;t t
29261 s,@TINFO_NAME@,$TINFO_NAME,;t t
29262 s,@LIB_NAME@,$LIB_NAME,;t t
29263 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
29264 s,@CC_G_OPT@,$CC_G_OPT,;t t
29265 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
29266 s,@LD_MODEL@,$LD_MODEL,;t t
29267 s,@shlibdir@,$shlibdir,;t t
29268 s,@MAKE_DLLS@,$MAKE_DLLS,;t t
29269 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
29270 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
29271 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
29272 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
29273 s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t
29274 s,@LINK_PROGS@,$LINK_PROGS,;t t
29275 s,@LINK_TESTS@,$LINK_TESTS,;t t
29276 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
29277 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
29278 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
29279 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
29280 s,@RPATH_LIST@,$RPATH_LIST,;t t
29281 s,@EXPORT_SYMS@,$EXPORT_SYMS,;t t
29282 s,@RESULTING_SYMS@,$RESULTING_SYMS,;t t
29283 s,@VERSIONED_SYMS@,$VERSIONED_SYMS,;t t
29284 s,@WILDCARD_SYMS@,$WILDCARD_SYMS,;t t
29285 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
29286 s,@EXTRA_PKG_LDFLAGS@,$EXTRA_PKG_LDFLAGS,;t t
29287 s,@EXTRA_SUFFIX@,$EXTRA_SUFFIX,;t t
29288 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
29289 s,@NCURSES_USE_DATABASE@,$NCURSES_USE_DATABASE,;t t
29291 s,@ac_ct_TIC@,$ac_ct_TIC,;t t
29292 s,@INFOCMP@,$INFOCMP,;t t
29293 s,@ac_ct_INFOCMP@,$ac_ct_INFOCMP,;t t
29294 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
29295 s,@USE_FALLBACKS@,$USE_FALLBACKS,;t t
29296 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
29297 s,@XTERM_KBS@,$XTERM_KBS,;t t
29298 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
29299 s,@TERMINFO@,$TERMINFO,;t t
29300 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
29301 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
29302 s,@TERMPATH@,$TERMPATH,;t t
29303 s,@NCURSES_USE_TERMCAP@,$NCURSES_USE_TERMCAP,;t t
29304 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
29305 s,@NCURSES_WCWIDTH_GRAPHICS@,$NCURSES_WCWIDTH_GRAPHICS,;t t
29306 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
29307 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
29308 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
29309 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
29310 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
29311 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
29312 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
29313 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
29314 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
29315 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
29316 s,@NCURSES_WATTR_MACROS@,$NCURSES_WATTR_MACROS,;t t
29317 s,@RGB_PATH@,$RGB_PATH,;t t
29318 s,@no_x11_rgb@,$no_x11_rgb,;t t
29319 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
29320 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
29321 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
29322 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
29323 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
29324 s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t
29325 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
29326 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
29327 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
29328 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
29329 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
29330 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
29331 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
29332 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
29333 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
29334 s,@PTHREAD@,$PTHREAD,;t t
29335 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
29336 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
29337 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
29338 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
29339 s,@NCURSES_OPAQUE_FORM@,$NCURSES_OPAQUE_FORM,;t t
29340 s,@NCURSES_OPAQUE_MENU@,$NCURSES_OPAQUE_MENU,;t t
29341 s,@NCURSES_OPAQUE_PANEL@,$NCURSES_OPAQUE_PANEL,;t t
29342 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
29343 s,@NCURSES_IMPEXP@,$NCURSES_IMPEXP,;t t
29344 s,@NCURSES_CXX_IMPEXP@,$NCURSES_CXX_IMPEXP,;t t
29345 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
29346 s,@NCURSES_WGETCH_EVENTS@,$NCURSES_WGETCH_EVENTS,;t t
29347 s,@EXP_WIN32_DRIVER@,$EXP_WIN32_DRIVER,;t t
29348 s,@INTERNALS_HDR@,$INTERNALS_HDR,;t t
29349 s,@ECHO_LT@,$ECHO_LT,;t t
29350 s,@ECHO_LD@,$ECHO_LD,;t t
29351 s,@RULE_CC@,$RULE_CC,;t t
29352 s,@SHOW_CC@,$SHOW_CC,;t t
29353 s,@ECHO_CC@,$ECHO_CC,;t t
29354 s,@ECHO_LINK@,$ECHO_LINK,;t t
29355 s,@INSTALL_OPT_S@,$INSTALL_OPT_S,;t t
29356 s,@INSTALL_OPT_O@,$INSTALL_OPT_O,;t t
29357 s,@INSTALL_OPT_P@,$INSTALL_OPT_P,;t t
29358 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
29359 s,@HAVE_STDNORETURN_H@,$HAVE_STDNORETURN_H,;t t
29360 s,@STDC_NORETURN@,$STDC_NORETURN,;t t
29361 s,@ADAFLAGS@,$ADAFLAGS,;t t
29362 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
29363 s,@ADA_TRACE@,$ADA_TRACE,;t t
29364 s,@MATH_LIB@,$MATH_LIB,;t t
29365 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
29366 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
29367 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
29368 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
29369 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
29370 s,@TEST_LIBS@,$TEST_LIBS,;t t
29371 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
29372 s,@CXXCPP@,$CXXCPP,;t t
29373 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
29374 s,@CXX_AR@,$CXX_AR,;t t
29375 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
29376 s,@CXXLIBS@,$CXXLIBS,;t t
29377 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
29378 s,@cf_TEMP_gnat@,$cf_TEMP_gnat,;t t
29379 s,@M4_exists@,$M4_exists,;t t
29380 s,@cf_ada_make@,$cf_ada_make,;t t
29381 s,@cf_ada_config@,$cf_ada_config,;t t
29382 s,@cf_ada_config_Ada@,$cf_ada_config_Ada,;t t
29383 s,@cf_ada_config_C@,$cf_ada_config_C,;t t
29384 s,@GNATPREP_OPTS@,$GNATPREP_OPTS,;t t
29385 s,@cf_compile_generics@,$cf_compile_generics,;t t
29386 s,@cf_generic_objects@,$cf_generic_objects,;t t
29387 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
29388 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
29389 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
29390 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
29391 s,@USE_GNAT_MAKE_GPR@,$USE_GNAT_MAKE_GPR,;t t
29392 s,@USE_GNAT_GPRBUILD@,$USE_GNAT_GPRBUILD,;t t
29393 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
29394 s,@cf_ada_package@,$cf_ada_package,;t t
29395 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
29396 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
29397 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
29398 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
29399 s,@ADA_LIBNAME@,$ADA_LIBNAME,;t t
29400 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
29401 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
29402 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
29403 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
29404 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
29405 s,@USE_ARG_SUFFIX@,$USE_ARG_SUFFIX,;t t
29406 s,@USE_CFG_SUFFIX@,$USE_CFG_SUFFIX,;t t
29407 s,@USE_LIB_SUFFIX@,$USE_LIB_SUFFIX,;t t
29408 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
29409 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
29410 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
29411 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
29412 s,@TICS_LIBS@,$TICS_LIBS,;t t
29413 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
29414 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
29415 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
29416 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
29417 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
29418 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
29419 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
29420 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
29421 s,@includesubdir@,$includesubdir,;t t
29422 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
29423 s,@TICS_LIST@,$TICS_LIST,;t t
29424 s,@TINFO_LIST@,$TINFO_LIST,;t t
29425 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
29426 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
29427 s,@FORM_NAME@,$FORM_NAME,;t t
29428 s,@MENU_NAME@,$MENU_NAME,;t t
29429 s,@PANEL_NAME@,$PANEL_NAME,;t t
29430 s,@CXX_NAME@,$CXX_NAME,;t t
29431 s,@TEST_ARGS@,$TEST_ARGS,;t t
29432 s,@TEST_DEPS@,$TEST_DEPS,;t t
29433 s,@TEST_ARG2@,$TEST_ARG2,;t t
29434 s,@TEST_DEP2@,$TEST_DEP2,;t t
29435 s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t
29436 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
29437 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
29438 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
29439 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
29440 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
29441 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
29442 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
29443 s,@cross_compiling@,$cross_compiling,;t t
29444 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
29445 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
29446 s,@LIBTOOL_OPTS_CXX@,$LIBTOOL_OPTS_CXX,;t t
29447 s,@PKG_CFLAGS@,$PKG_CFLAGS,;t t
29448 s,@MISC_INSTALL_DATA@,$MISC_INSTALL_DATA,;t t
29449 s,@MISC_UNINSTALL_DATA@,$MISC_UNINSTALL_DATA,;t t
29450 s,@MAKE_DATABASE@,$MAKE_DATABASE,;t t
29451 s,@UNALTERED_SYMS@,$UNALTERED_SYMS,;t t
29452 s,@ADAGEN_LDFLAGS@,$ADAGEN_LDFLAGS,;t t
29453 s,@CHECK_BUILD@,$CHECK_BUILD,;t t
29454 s,@PRIVATE_LIBS@,$PRIVATE_LIBS,;t t
29455 s,@LD_SEARCHPATH@,$LD_SEARCHPATH,;t t
29460 cat >>"$CONFIG_STATUS" <<\EOF
29461 # Split the substitutions into bite-sized pieces for seds with
29462 # small command number limits, like on Digital OSF/1 and HP-UX.
29463 ac_max_sed_lines=48
29464 ac_sed_frag=1 # Number of current file.
29465 ac_beg=1 # First line for current file.
29466 ac_end=$ac_max_sed_lines # Line after last line for current file.
29469 while "$ac_more_lines"; do
29470 if test "$ac_beg" -gt 1; then
29471 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29473 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29475 if test ! -s $tmp/subs.frag; then
29476 ac_more_lines=false
29478 # The purpose of the label and of the branching condition is to
29479 # speed up the sed processing (if there are no `@' at all, there
29480 # is no need to browse any of the substitutions).
29481 # These are the two extra sed commands mentioned above.
29483 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29484 # It is possible to make a multiline substitution using escaped newlines.
29485 # Ensure that we do not split the substitution between script fragments.
29487 ac_END=`expr "$ac_end" + "$ac_max_sed_lines"`
29488 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
29489 if test -s $tmp/subs.next; then
29490 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
29491 if test ! -s $tmp/subs.edit; then
29492 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
29493 if test ! -s $tmp/subs.edit; then
29494 if test "$ac_beg" -gt 1; then
29495 ac_end=`expr "$ac_end" - 1`
29502 if test -z "$ac_sed_cmds"; then
29503 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29505 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29507 ac_sed_frag=`expr "$ac_sed_frag" + 1`
29509 ac_end=`expr "$ac_end" + "$ac_max_sed_lines"`
29512 if test -z "$ac_sed_cmds"; then
29515 fi # test -n "$CONFIG_FILES"
29518 cat >>"$CONFIG_STATUS" <<\EOF
29519 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29520 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29522 - | *:- | *:-:* ) # input from stdin
29524 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29525 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29526 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29527 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29528 * ) ac_file_in=$ac_file.in ;;
29531 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
29532 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29533 X"$ac_file" : 'X\(//\)[^/]' \| \
29534 X"$ac_file" : 'X\(//\)$' \| \
29535 X"$ac_file" : 'X\(/\)' \| \
29536 . : '\(.\)' 2>/dev/null ||
29538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29539 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29540 /^X\(\/\/\)$/{ s//\1/; q; }
29541 /^X\(\/\).*/{ s//\1/; q; }
29543 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
29544 { case "$ac_dir" in
29545 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
29549 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
29550 case $as_mkdir_dir in
29551 # Skip DOS drivespec
29552 ?:) as_incr_dir=$as_mkdir_dir ;;
29554 as_incr_dir=$as_incr_dir/$as_mkdir_dir
29555 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
29560 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
29561 # A "../" for each directory in $ac_dir_suffix.
29562 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
29564 ac_dir_suffix= ac_dots=
29569 if test -z "$ac_dots"; then
29572 ac_top_srcdir=`echo "$ac_dots" | sed 's,/$,,'`
29574 [\\/]* | ?:[\\/]* )
29575 ac_srcdir="$srcdir$ac_dir_suffix";
29576 ac_top_srcdir="$srcdir" ;;
29577 *) # Relative path.
29578 ac_srcdir="$ac_dots$srcdir$ac_dir_suffix"
29579 ac_top_srcdir="$ac_dots$srcdir" ;;
29583 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29584 *) ac_INSTALL=$ac_dots$INSTALL ;;
29587 if test x"$ac_file" != x-; then
29588 { echo "$as_me:29588: creating $ac_file" >&5
29589 echo "$as_me: creating $ac_file" >&6;}
29592 # Let's still pretend it is `configure' which instantiates (i.e., don't
29593 # use $as_me), people would be surprised to read:
29594 # /* config.h. Generated automatically by config.status. */
29595 configure_input="Generated automatically from `echo $ac_file_in |
29596 sed 's,.*/,,'` by configure."
29598 # First look for the input files in the build tree, otherwise in the
29600 ac_file_inputs=`IFS=:
29601 for f in $ac_file_in; do
29603 -) echo $tmp/stdin ;;
29605 # Absolute (can't be DOS-style, as IFS=:)
29606 test -f "$f" || { { echo "$as_me:29606: error: cannot find input file: $f" >&5
29607 echo "$as_me: error: cannot find input file: $f" >&2;}
29608 { (exit 1); exit 1; }; }
29611 if test -f "$f"; then
29614 elif test -f "$srcdir/$f"; then
29619 { { echo "$as_me:29619: error: cannot find input file: $f" >&5
29620 echo "$as_me: error: cannot find input file: $f" >&2;}
29621 { (exit 1); exit 1; }; }
29624 done` || { (exit 1); exit 1; }
29626 cat >>"$CONFIG_STATUS" <<\EOF
29627 ac_warn_datarootdir=no
29628 if test x"$ac_file" != x-; then
29629 for ac_item in $ac_file_inputs
29631 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' "$ac_item"`
29632 if test -n "$ac_seen"; then
29633 ac_used=`grep '@datarootdir@' "$ac_item"`
29634 if test -z "$ac_used"; then
29635 { echo "$as_me:29635: WARNING: datarootdir was used implicitly but not set:
29637 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
29639 ac_warn_datarootdir=yes
29642 ac_seen=`grep '${datarootdir}' "$ac_item"`
29643 if test -n "$ac_seen"; then
29644 { echo "$as_me:29644: WARNING: datarootdir was used explicitly but not set:
29646 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
29648 ac_warn_datarootdir=yes
29653 if test "x$ac_warn_datarootdir" = xyes; then
29654 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
29658 cat >>"$CONFIG_STATUS" <<EOF
29662 cat >>"$CONFIG_STATUS" <<\EOF
29664 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29665 s,@configure_input@,$configure_input,;t t
29666 s,@srcdir@,$ac_srcdir,;t t
29667 s,@top_srcdir@,$ac_top_srcdir,;t t
29668 s,@INSTALL@,$ac_INSTALL,;t t
29669 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
29671 if test x"$ac_file" != x-; then
29672 cp "$tmp/out" "$ac_file"
29674 for ac_name in prefix exec_prefix datarootdir
29676 ac_seen=`${FGREP-fgrep} -n '${'$ac_name'[:=].*}' "$ac_file"`
29677 if test -n "$ac_seen"; then
29678 ac_init=`${EGREP-egrep} '[ ]*'$ac_name'[ ]*=' "$ac_file"`
29679 if test -z "$ac_init"; then
29680 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
29681 { echo "$as_me:29681: WARNING: Variable $ac_name is used but was not set:
29683 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
29688 ${EGREP-egrep} -n '@[a-z_][a-z_0-9]+@' "$ac_file" >$tmp/out
29689 ${EGREP-egrep} -n '@[A-Z_][A-Z_0-9]+@' "$ac_file" >>$tmp/out
29690 if test -s $tmp/out; then
29691 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
29692 { echo "$as_me:29692: WARNING: Some variables may not be substituted:
29694 echo "$as_me: WARNING: Some variables may not be substituted:
29704 cat >>"$CONFIG_STATUS" <<\EOF
29707 # CONFIG_HEADER section.
29710 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
29711 # NAME is the cpp macro being defined and VALUE is the value it is being given.
29713 # ac_d sets the value in "#define NAME VALUE" lines.
29714 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
29715 ac_dB='[ ].*$,\1#\2'
29718 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
29719 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
29720 ac_iB='\([ ]\),\1#\2define\3'
29723 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
29724 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
29725 ac_uB='$,\1#\2define\3'
29729 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
29730 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29732 - | *:- | *:-:* ) # input from stdin
29734 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29735 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29736 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29737 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29738 * ) ac_file_in=$ac_file.in ;;
29741 test x"$ac_file" != x- && { echo "$as_me:29741: creating $ac_file" >&5
29742 echo "$as_me: creating $ac_file" >&6;}
29744 # First look for the input files in the build tree, otherwise in the
29746 ac_file_inputs=`IFS=:
29747 for f in $ac_file_in; do
29749 -) echo $tmp/stdin ;;
29751 # Absolute (can't be DOS-style, as IFS=:)
29752 test -f "$f" || { { echo "$as_me:29752: error: cannot find input file: $f" >&5
29753 echo "$as_me: error: cannot find input file: $f" >&2;}
29754 { (exit 1); exit 1; }; }
29757 if test -f "$f"; then
29760 elif test -f "$srcdir/$f"; then
29765 { { echo "$as_me:29765: error: cannot find input file: $f" >&5
29766 echo "$as_me: error: cannot find input file: $f" >&2;}
29767 { (exit 1); exit 1; }; }
29770 done` || { (exit 1); exit 1; }
29771 # Remove the trailing spaces.
29772 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
29776 # Transform confdefs.h into a list of #define's. We won't use it as a sed
29777 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
29778 # be either 'cat' or 'sort'.
29779 cat confdefs.h | uniq >conftest.vals
29781 # Break up conftest.vals because some shells have a limit on
29782 # the size of here documents, and old seds have small limits too.
29784 rm -f conftest.tail
29785 echo ' rm -f conftest.frag' >> "$CONFIG_STATUS"
29786 while grep . conftest.vals >/dev/null
29788 # Write chunks of a limited-size here document to conftest.frag.
29789 echo ' cat >> conftest.frag <<CEOF' >> "$CONFIG_STATUS"
29790 sed "${ac_max_here_lines}q" conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> "$CONFIG_STATUS"
29791 echo 'CEOF' >> "$CONFIG_STATUS"
29792 sed "1,${ac_max_here_lines}d" conftest.vals > conftest.tail
29793 rm -f conftest.vals
29794 mv conftest.tail conftest.vals
29796 rm -f conftest.vals
29798 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
29800 echo ' cat >> conftest.edit <<CEOF
29801 /@DEFS@/r conftest.frag
29804 sed -f conftest.edit $tmp/in > $tmp/out
29806 mv $tmp/out $tmp/in
29807 rm -f conftest.edit conftest.frag
29808 ' >> "$CONFIG_STATUS"
29810 cat >>"$CONFIG_STATUS" <<\EOF
29811 # Let's still pretend it is `configure' which instantiates (i.e., don't
29812 # use $as_me), people would be surprised to read:
29813 # /* config.h. Generated automatically by config.status. */
29814 if test x"$ac_file" = x-; then
29815 echo "/* Generated automatically by configure. */" >$tmp/config.h
29817 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
29819 cat $tmp/in >>$tmp/config.h
29821 if test x"$ac_file" != x-; then
29822 if cmp -s "$ac_file" "$tmp/config.h" 2>/dev/null; then
29823 { echo "$as_me:29823: $ac_file is unchanged" >&5
29824 echo "$as_me: $ac_file is unchanged" >&6;}
29826 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29827 X"$ac_file" : 'X\(//\)[^/]' \| \
29828 X"$ac_file" : 'X\(//\)$' \| \
29829 X"$ac_file" : 'X\(/\)' \| \
29830 . : '\(.\)' 2>/dev/null ||
29832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29833 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29834 /^X\(\/\/\)$/{ s//\1/; q; }
29835 /^X\(\/\).*/{ s//\1/; q; }
29837 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
29838 { case "$ac_dir" in
29839 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
29843 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
29844 case $as_mkdir_dir in
29845 # Skip DOS drivespec
29846 ?:) as_incr_dir=$as_mkdir_dir ;;
29848 as_incr_dir=$as_incr_dir/$as_mkdir_dir
29849 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
29856 mv "$tmp/config.h" "$ac_file"
29860 rm -f $tmp/config.h
29864 cat >>"$CONFIG_STATUS" <<\EOF
29866 # CONFIG_COMMANDS section.
29868 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
29869 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
29870 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
29874 if test "x$cf_with_tests" != xno ; then
29878 if test ! -d "$srcdir/$cf_dir" ; then
29880 elif test -f "$srcdir/$cf_dir/programs" ; then
29881 $AWK -f "$srcdir/test/mk-test.awk" INSTALL=no ECHO_LINK="$ECHO_LD" "$srcdir/$cf_dir/programs" >>$cf_dir/Makefile
29887 cf_prefix=$LIB_PREFIX
29889 case "$cf_cv_shlib_version" in
29890 (cygdll|msysdll|mingw|msvcdll)
29891 TINFO_NAME=$TINFO_ARG_SUFFIX
29896 if test -n "$TINFO_SUFFIX" ; then
29897 case "$TINFO_SUFFIX" in
29899 TINFO_NAME="${TINFO_NAME}tw${EXTRA_SUFFIX}"
29900 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^tw'$EXTRA_SUFFIX'//'`
29903 TINFO_NAME="${TINFO_NAME}t${EXTRA_SUFFIX}"
29904 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^t'$EXTRA_SUFFIX'//'`
29907 TINFO_NAME="${TINFO_NAME}w${EXTRA_SUFFIX}"
29908 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^w'$EXTRA_SUFFIX'//'`
29913 for cf_dir in $SRC_SUBDIRS
29915 if test ! -d "$srcdir/$cf_dir" ; then
29917 elif test -f "$srcdir/$cf_dir/modules" ; then
29922 if test -n "${cf_cv_abi_version}" && test "x${cf_cv_abi_version}" != "x5"
29924 cf_awk_program="$cf_awk_program\
29925 /deprecated in ABI${cf_cv_abi_version}/ { next; }\
29926 { sub(\"NCURSES([WT]+)?\", \"&${cf_cv_abi_version}\"); }\
29930 if test "x$WILDCARD_SYMS" = xno
29932 cf_awk_program="$cf_awk_program\
29933 /[ ]_\\*;/ { skip=1; next; }\
29937 if test "x$cf_awk_program" != "x"
29939 cat >>$cf_dir/Makefile <<CF_EOF
29941 # Generated by CF_LIB_RULES
29942 resulting.map: $UNALTERED_SYMS
29943 $AWK 'BEGIN { skip = 1; last=""; } \
29945 { if ( last != "" && ( skip == 0 || \$\$0 !~ /}/ ) ) { print last; }\
29946 skip = 0; last = \$\$0; } \
29947 END { print last; }' < "$UNALTERED_SYMS" >\$@
29950 rm -f resulting.map
29954 for cf_item in $cf_LIST_MODELS
29960 cf_depsuf=$cf_suffix
29963 case "$cf_cv_system_name" in
29971 cf_depsuf=$cf_suffix
29974 case "$cf_cv_system_name" in
29982 cf_depsuf=$cf_suffix
29985 case "$cf_cv_system_name" in
29988 cf_depsuf=$cf_suffix
29992 cf_depsuf='.dll.lib'
29994 (cygwin*|msys*|mingw*)
30000 cf_depsuf=$cf_suffix
30006 cf_depsuf=$cf_suffix
30010 cf_depsuf=$cf_suffix
30016 cf_depsuf=$cf_suffix
30029 cf_depsuf=$cf_suffix
30032 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
30034 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
30035 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
30038 if test "$cf_dir" = "c++"
30041 cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30043 eval cf_libname="\$${cf_map_lib_basename}_NAME"
30047 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30049 eval cf_libname="\$${cf_map_lib_basename}_NAME"
30052 test -z "$cf_libname" && cf_libname="$cf_dir"
30053 if test "$cf_item" = shared ; then
30054 if test -n "${LIB_SUFFIX}"
30056 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
30058 cf_shared_suffix="$cf_suffix"
30060 if test "$cf_cv_do_symlinks" = yes ; then
30063 case "$cf_cv_shlib_version" in
30065 cf_version_name=REL_VERSION
30068 cf_version_name=ABI_VERSION
30072 if test -n "$cf_version_name"
30074 case "$cf_cv_system_name" in
30077 cf_suffix="${USE_LIB_SUFFIX}"'.${'$cf_version_name'}'"$cf_shared_suffix"
30080 cf_suffix="$cf_suffix"'.${'$cf_version_name'}'
30084 if test -n "${USE_LIB_SUFFIX}"
30086 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
30088 cf_shared_suffix="$cf_suffix"
30091 # cygwin needs import library, and has unique naming convention
30092 # use autodetected ${cf_prefix} for import lib and static lib, but
30093 # use 'cyg' prefix for shared lib.
30094 case "$cf_cv_shlib_version" in
30096 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30097 cf_add_lib="../lib/cyg${cf_libname}${cf_cygsuf}"
30100 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30101 cf_add_lib="../lib/msys-${cf_libname}${cf_cygsuf}"
30104 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30105 cf_add_lib="../lib/lib${cf_libname}${cf_cygsuf}"
30108 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30109 cf_add_lib="../lib/${cf_libname}${cf_cygsuf}"
30115 if test -n "$cf_add_lib"
30117 Libs_To_Make="$Libs_To_Make $cf_add_lib"
30121 cf_add_lib="../lib/${cf_prefix}${cf_libname}${cf_suffix}"
30122 Libs_To_Make="$Libs_To_Make $cf_add_lib"
30125 if test "$cf_dir" = ncurses ; then
30126 cf_subsets="$LIB_SUBSETS"
30127 cf_r_parts="$cf_subsets"
30128 cf_liblist="$Libs_To_Make"
30130 while test -n "$cf_r_parts"
30132 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
30133 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
30134 if test "$cf_l_parts" != "$cf_r_parts" ; then
30136 case "$cf_l_parts" in
30138 cf_add_lib=`echo "$cf_liblist" |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
30141 cf_add_lib=`echo "$cf_liblist" |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
30147 if test -n "$cf_add_lib"; then
30148 Libs_To_Make="$cf_add_lib $Libs_To_Make"
30155 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
30158 if test "$cf_dir" = c++; then
30159 if test "x$with_shared_cxx" != xyes && test -n "$cf_shared_suffix"; then
30161 for cf_item in $Libs_To_Make
30167 cf_item=`echo "$cf_item" | sed -e "s,"$cf_shared_suffix",.a,"`
30170 for cf_test in $cf_list
30172 if test "$cf_test" = "$cf_item"
30174 cf_LIST_MODELS=`echo "$cf_LIST_MODELS" | sed -e 's/normal//'`
30179 test -n "$cf_item" && cf_list="$cf_list $cf_item"
30181 Libs_To_Make="$cf_list"
30185 sed -e "s%@Libs_To_Make@%$Libs_To_Make%" \
30186 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
30187 "$cf_dir/Makefile" >$cf_dir/Makefile.out
30188 mv "$cf_dir/Makefile.out" "$cf_dir/Makefile"
30190 $AWK -f "$srcdir/mk-0th.awk" \
30191 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" ticlib="$TICS_LIB_SUFFIX" termlib="$TINFO_LIB_SUFFIX" \
30192 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
30194 for cf_subset in $cf_subsets
30197 for cf_item in $cf_LIST_MODELS
30200 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
30202 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30205 if test "$CXX_MODEL" = SHARED; then
30206 case "$cf_cv_shlib_version" in
30207 (cygdll|msysdll|mingw|msvcdll)
30208 test "x$with_shared_cxx" = xno && test -n "$verbose" && echo " overriding CXX_MODEL to SHARED" 1>&6
30210 echo "${as_me:-configure}:30210: testing overriding CXX_MODEL to SHARED ..." 1>&5
30212 with_shared_cxx=yes
30215 test "x$with_shared_cxx" = xno && CXX_MODEL=NORMAL
30223 cf_depsuf=$cf_suffix
30226 case "$cf_cv_system_name" in
30234 cf_depsuf=$cf_suffix
30237 case "$cf_cv_system_name" in
30245 cf_depsuf=$cf_suffix
30248 case "$cf_cv_system_name" in
30251 cf_depsuf=$cf_suffix
30255 cf_depsuf='.dll.lib'
30257 (cygwin*|msys*|mingw*)
30263 cf_depsuf=$cf_suffix
30269 cf_depsuf=$cf_suffix
30273 cf_depsuf=$cf_suffix
30279 cf_depsuf=$cf_suffix
30292 cf_depsuf=$cf_suffix
30295 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
30297 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
30298 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
30302 (libtool) cf_subdir='obj_lo' ;;
30303 (normal) cf_subdir='objects' ;;
30304 (debug) cf_subdir='obj_g' ;;
30305 (profile) cf_subdir='obj_p' ;;
30307 case "$cf_cv_system_name" in
30309 cf_subdir='objects' ;;
30311 cf_subdir='obj_s' ;;
30315 # Test for case where we build libtinfo with a different name.
30317 if test "$cf_dir" = ncurses ; then
30318 case "$cf_subset" in
30320 cf_libname=${cf_libname}$USE_LIB_SUFFIX
30323 cf_libname=$TINFO_LIB_SUFFIX
30326 cf_libname=$TICS_LIB_SUFFIX
30329 elif test "$cf_dir" = c++ ; then
30331 cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30333 eval cf_libname="\$${cf_map_lib_basename}_NAME"
30335 cf_libname=${cf_libname}$USE_LIB_SUFFIX
30338 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30340 eval cf_libname="\$${cf_map_lib_basename}_NAME"
30342 cf_libname=${cf_libname}$USE_LIB_SUFFIX
30344 if test -n "${USE_ARG_SUFFIX}" ; then
30345 # undo $USE_LIB_SUFFIX add-on in CF_LIB_SUFFIX
30346 cf_suffix=`echo "$cf_suffix" |sed -e "s%^${USE_LIB_SUFFIX}%%"`
30349 # These dependencies really are for development, not
30350 # builds, but they are useful in porting, too.
30351 cf_depend="../include/ncurses_cfg.h"
30352 if test "$srcdir" = "."; then
30355 cf_reldir="\${srcdir}"
30358 if test -f "$srcdir/$cf_dir/$cf_dir.priv.h" ; then
30359 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
30360 elif test -f "$srcdir/$cf_dir/curses.priv.h" ; then
30361 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
30365 old_cf_suffix="$cf_suffix"
30366 if test "$cf_cv_shlib_version_infix" = yes ; then
30367 if test -n "$USE_LIB_SUFFIX" ; then
30368 case "$USE_LIB_SUFFIX" in
30370 cf_libname=`echo "$cf_libname" | sed 's/tw'$EXTRA_SUFFIX'$//'`
30371 cf_suffix=`echo "$cf_suffix" | sed 's/^tw'$EXTRA_SUFFIX'//'`
30372 cf_dir_suffix=tw$EXTRA_SUFFIX
30375 cf_libname=`echo "$cf_libname" | sed 's/t'$EXTRA_SUFFIX'$//'`
30376 cf_suffix=`echo "$cf_suffix" | sed 's/^t'$EXTRA_SUFFIX'//'`
30377 cf_dir_suffix=t$EXTRA_SUFFIX
30380 cf_libname=`echo "$cf_libname" | sed 's/w'$EXTRA_SUFFIX'$//'`
30381 cf_suffix=`echo "$cf_suffix" | sed 's/^w'$EXTRA_SUFFIX'//'`
30382 cf_dir_suffix=w$EXTRA_SUFFIX
30385 cf_libname=`echo "$cf_libname" | sed 's/'$EXTRA_SUFFIX'$//'`
30386 cf_suffix=`echo "$cf_suffix" | sed 's/^'$EXTRA_SUFFIX'//'`
30387 cf_dir_suffix=$EXTRA_SUFFIX
30393 $AWK -f "$srcdir/mk-1st.awk" \
30394 name=${cf_libname}${cf_dir_suffix} \
30395 traces=$LIB_TRACING \
30397 CXX_MODEL=$CXX_MODEL \
30398 LIB_SUFFIX=$LIB_SUFFIX \
30399 USE_LIB_SUFFIX=$USE_LIB_SUFFIX \
30400 make_phony="${cf_cv_make_PHONY:-no}" \
30402 prefix=$cf_prefix \
30403 suffix=$cf_suffix \
30404 subset=$cf_subset \
30405 driver=$cf_cv_term_driver \
30407 TermlibRoot=$TINFO_NAME \
30408 TermlibSuffix=$TINFO_SUFFIX \
30409 ShlibVer=$cf_cv_shlib_version \
30410 ShlibVerInfix=$cf_cv_shlib_version_infix \
30411 ReLink=${cf_cv_do_relink:-no} \
30412 ReRanlib=${cf_cv_do_reranlib:-yes} \
30413 DoLinks=$cf_cv_do_symlinks \
30414 rmSoLocs=$cf_cv_rm_so_locs \
30415 ldconfig="$LDCONFIG" \
30416 overwrite=$WITH_OVERWRITE \
30417 depend="$cf_depend" \
30419 libtool_version="$LIBTOOL_VERSION" \
30420 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
30422 cf_suffix="$old_cf_suffix"
30424 for cf_subdir2 in $cf_subdirs lib
30426 test "$cf_subdir" = "$cf_subdir2" && break
30428 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
30429 $AWK -f "$srcdir/mk-2nd.awk" \
30431 traces=$LIB_TRACING \
30434 subset=$cf_subset \
30437 crenames=$cf_cv_prog_CC_c_o \
30438 cxxrenames=$cf_cv_prog_CXX_c_o \
30439 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
30440 cf_subdirs="$cf_subdirs $cf_subdir"
30445 echo ' ( cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@ )' >>Makefile
30449 echo '# generated by CF_LIB_RULES' >> Makefile
30451 if test "x$cf_cv_make_PHONY" = xyes ; then
30452 cat >> Makefile <<-CF_EOF
30456 .PHONY : install.includes
30457 .PHONY : uninstall.includes
30458 .PHONY : install.libs
30459 .PHONY : uninstall.libs
30463 for cf_dir in $SRC_SUBDIRS
30465 if test ! -d "$srcdir/$cf_dir" ; then
30469 if test -f "$cf_dir/Makefile" ; then
30472 echo 'libs \' >> Makefile
30473 echo 'install.libs \' >> Makefile
30474 echo 'uninstall.libs ::' >> Makefile
30475 echo ' ( cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@ )' >> Makefile
30480 if test -f "$srcdir/$cf_dir/modules" ; then
30482 if test "x$cf_cv_make_PHONY" = xyes ; then
30483 cat >> Makefile <<-CF_EOF
30485 .PHONY : install.$cf_dir
30486 .PHONY : uninstall.$cf_dir
30491 if test -f "$srcdir/$cf_dir/headers" ; then
30492 cat >> Makefile <<CF_EOF
30493 install.includes \\
30494 uninstall.includes \\
30498 cat >> Makefile <<CF_EOF
30505 uninstall.$cf_dir ::
30506 ( cd "$cf_dir" && \${MAKE} \${TOP_MFLAGS} \$@ )
30508 elif test -f "$srcdir/$cf_dir/headers" ; then
30509 cat >> Makefile <<CF_EOF
30514 install.includes \\
30515 uninstall.includes ::
30516 ( cd "$cf_dir" && \${MAKE} \${TOP_MFLAGS} \$@ )
30521 if test "x$cf_cv_make_PHONY" = xyes ; then
30522 cat >> Makefile <<-CF_EOF
30524 .PHONY : install.data
30525 .PHONY : uninstall.data
30529 if test "x$cf_with_db_install" = xyes; then
30530 cat >> Makefile <<CF_EOF
30532 install.libs uninstall.libs \\
30533 install.data uninstall.data ::
30534 $MAKE_TERMINFO ( cd misc && \${MAKE} \${TOP_MFLAGS} \$@ )
30537 cat >> Makefile <<CF_EOF
30539 install.libs uninstall.libs ::
30540 ( cd misc && \${MAKE} \${TOP_MFLAGS} \$@ )
30544 if test "x$cf_with_manpages" = xyes; then
30546 if test "x$cf_cv_make_PHONY" = xyes ; then
30547 cat >> Makefile <<-CF_EOF
30549 .PHONY : install.man
30550 .PHONY : uninstall.man
30554 cat >> Makefile <<CF_EOF
30558 ( cd man && \${MAKE} \${TOP_MFLAGS} \$@ )
30562 cat >> Makefile <<CF_EOF
30565 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
30566 rm -f headers.sh headers.sed mk_shared_lib.sh
30567 rm -f edit_man.* man_alias.*
30568 rm -rf \${DIRS_TO_MAKE}
30571 # Special case: tack's manpage lives in its own directory.
30572 if test "x$cf_with_manpages" = xyes; then
30573 if test "x$cf_with_tack" = "xyes"; then
30574 cat >> Makefile <<CF_EOF
30578 ( cd tack && \${MAKE} \${TOP_MFLAGS} \$@ )
30583 rm -f headers.sed headers.sh
30585 echo creating headers.sh
30586 cat >headers.sh <<CF_EOF
30588 # This shell script is generated by the 'configure' script. It is invoked in a
30589 # subdirectory of the build tree. It generates a sed-script in the parent
30590 # directory that is used to adjust includes for header files that reside in a
30591 # subdirectory of /usr/include, etc.
30593 while test \$# != 3
30595 PRG="\$PRG \$1"; shift
30600 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
30601 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
30602 echo installing \$SRC in \$DST
30605 if test "$WITH_CURSES_H" = yes; then
30606 cat >>headers.sh <<CF_EOF
30609 END=\`basename \$DST\`
30610 for i in \`cat \$REF/../*/headers |${FGREP-fgrep} -v "#"\`
30612 NAME=\`basename \$i\`
30613 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
30617 echo "" >> \$TMPSED
30623 cat >>headers.sh <<CF_EOF
30626 END=\`basename \$DST\`
30627 for i in \`cat \$REF/../*/headers |${FGREP-fgrep} -v "#"\`
30629 NAME=\`basename \$i\`
30630 if test "\$NAME" = "curses.h"
30632 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
30635 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
30639 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
30644 cat >>headers.sh <<CF_EOF
30646 sed -f \$TMPSED \$SRC > \$TMPSRC
30647 NAME=\`basename \$SRC\`
30649 if test "$WITH_CURSES_H" != yes; then
30650 cat >>headers.sh <<CF_EOF
30651 test "\$NAME" = "curses.h" && NAME=ncurses.h
30654 cat >>headers.sh <<CF_EOF
30655 # Just in case someone gzip'd manpages, remove the conflicting copy.
30656 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
30658 eval \$PRG \$TMPSRC \$DST/\$NAME
30659 rm -f \$TMPSRC \$TMPSED
30662 chmod 0755 headers.sh
30664 for cf_dir in $SRC_SUBDIRS
30666 if test ! -d "$srcdir/$cf_dir" ; then
30670 if test -f "$srcdir/$cf_dir/headers" ; then
30671 $AWK -f "$srcdir/mk-hdr.awk" \
30672 subset="$LIB_SUBSETS" \
30673 compat="$WITH_CURSES_H" \
30674 "$srcdir/$cf_dir/headers" >>$cf_dir/Makefile
30677 if test -f "$srcdir/$cf_dir/modules" ; then
30678 if test "$cf_dir" != "c++" ; then
30679 if test "x$cf_cv_make_PHONY" = xyes ; then
30680 cat >> $cf_dir/Makefile <<-CF_EOF
30686 cat >>$cf_dir/Makefile <<"CF_EOF"
30687 depend : ${AUTO_SRC}
30688 makedepend -- ${CPPFLAGS} -- ${C_SRC}
30690 # DO NOT DELETE THIS LINE -- make depend depends on it.
30696 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
30697 if test -z "$USE_OLD_MAKERULES" ; then
30698 $AWK -f "$srcdir/Ada95/mk-1st.awk" <"$srcdir/Ada95/src/modules" >>Ada95/src/Makefile
30706 cat >>"$CONFIG_STATUS" <<\EOF
30708 { (exit 0); exit 0; }
30710 chmod +x "$CONFIG_STATUS"
30711 ac_clean_files=$ac_clean_files_save
30713 # configure is writing to config.log, and then calls config.status.
30714 # config.status does its own redirection, appending to config.log.
30715 # Unfortunately, on DOS this fails, as config.log is still kept open
30716 # by configure, so config.status won't be able to write to it; its
30717 # output is simply discarded. So we exec the FD to /dev/null,
30718 # effectively closing config.log, so it can be properly (re)opened and
30719 # appended to by config.status. When coming back to configure, we
30720 # need to make the FD available again.
30721 if test "$no_create" != yes; then
30724 $SHELL "$CONFIG_STATUS" || ac_cs_success=false
30726 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30727 # would make configure fail if this is the last instruction.
30728 "$ac_cs_success" || { (exit 1); exit 1; }
30730 ${MAKE:-make} preinstall