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 PKG_CONFIG_LIBDIR=no
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 PKG_CONFIG_LIBDIR=$withval
4148 test "x$PKG_CONFIG" != xnone && PKG_CONFIG_LIBDIR=yes
4151 case x$PKG_CONFIG_LIBDIR in
4155 # Look for the library directory using the same prefix as the executable
4156 if test "x$PKG_CONFIG" = xnone
4160 cf_path=`echo "$PKG_CONFIG" | sed -e 's,/[^/]*/[^/]*$,,'`
4163 # If you don't like using the default architecture, you have to specify the
4164 # intended library directory and corresponding compiler/linker options.
4166 # This case allows for Debian's 2014-flavor of multiarch, along with the
4167 # most common variations before that point. Some other variants spell the
4168 # directory differently, e.g., "pkg-config", and put it in unusual places.
4169 # pkg-config has always been poorly standardized, which is ironic...
4170 case x`(arch) 2>/dev/null` in
4173 $cf_path/lib/*64-linux-gnu \
4181 $cf_path/lib/*-linux-gnu \
4189 test -n "$verbose" && echo " list..." 1>&6
4191 echo "${as_me:-configure}:4191: testing list... ..." 1>&5
4193 for cf_config in $cf_search_path
4195 test -n "$verbose" && echo " checking $cf_config/pkgconfig" 1>&6
4197 echo "${as_me:-configure}:4197: testing checking $cf_config/pkgconfig ..." 1>&5
4199 if test -d "$cf_config/pkgconfig"
4201 PKG_CONFIG_LIBDIR=$cf_config/pkgconfig
4202 echo "$as_me:4202: checking done" >&5
4203 echo $ECHO_N "checking done... $ECHO_C" >&6
4212 if test "x$PKG_CONFIG_LIBDIR" != xno ; then
4213 echo "$as_me:4213: result: $PKG_CONFIG_LIBDIR" >&5
4214 echo "${ECHO_T}$PKG_CONFIG_LIBDIR" >&6
4217 if test "x$PKG_CONFIG" != xnone
4219 echo "$as_me:4219: checking if we should install .pc files for $PKG_CONFIG" >&5
4220 echo $ECHO_N "checking if we should install .pc files for $PKG_CONFIG... $ECHO_C" >&6
4222 echo "$as_me:4222: checking if we should install .pc files" >&5
4223 echo $ECHO_N "checking if we should install .pc files... $ECHO_C" >&6
4226 # Check whether --enable-pc-files or --disable-pc-files was given.
4227 if test "${enable_pc_files+set}" = set; then
4228 enableval="$enable_pc_files"
4229 enable_pc_files=$enableval
4233 echo "$as_me:4233: result: $enable_pc_files" >&5
4234 echo "${ECHO_T}$enable_pc_files" >&6
4236 if test "x$enable_pc_files" != xno
4239 case "x$PKG_CONFIG_LIBDIR" in
4241 { echo "$as_me:4241: WARNING: no PKG_CONFIG_LIBDIR was found" >&5
4242 echo "$as_me: WARNING: no PKG_CONFIG_LIBDIR was found" >&2;}
4246 if test "x$prefix" != xNONE; then
4247 cf_path_syntax="$prefix"
4249 cf_path_syntax="$ac_default_prefix"
4252 case ".$PKG_CONFIG_LIBDIR" in
4257 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4259 (.\$\{*prefix\}*|.\$\{*dir\}*)
4260 eval PKG_CONFIG_LIBDIR="$PKG_CONFIG_LIBDIR"
4261 case ".$PKG_CONFIG_LIBDIR" in
4263 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG_LIBDIR" | sed -e s%NONE%$cf_path_syntax%`
4268 PKG_CONFIG_LIBDIR=`echo "$PKG_CONFIG_LIBDIR" | sed -e s%NONE%$cf_path_syntax%`
4271 { { echo "$as_me:4271: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&5
4272 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG_LIBDIR\"" >&2;}
4273 { (exit 1); exit 1; }; }
4283 if test -z "$MAKE_PC_FILES"
4285 echo "$as_me:4285: checking for suffix to add to pc-files" >&5
4286 echo $ECHO_N "checking for suffix to add to pc-files... $ECHO_C" >&6
4288 # Check whether --with-pc-suffix or --without-pc-suffix was given.
4289 if test "${with_pc_suffix+set}" = set; then
4290 withval="$with_pc_suffix"
4295 (*) PC_MODULE_SUFFIX="$withval"
4299 test -z "$PC_MODULE_SUFFIX" && PC_MODULE_SUFFIX=none
4300 echo "$as_me:4300: result: $PC_MODULE_SUFFIX" >&5
4301 echo "${ECHO_T}$PC_MODULE_SUFFIX" >&6
4302 test "$PC_MODULE_SUFFIX" = none && PC_MODULE_SUFFIX=
4306 echo "$as_me:4306: checking if we should assume mixed-case filenames" >&5
4307 echo $ECHO_N "checking if we should assume mixed-case filenames... $ECHO_C" >&6
4309 # Check whether --enable-mixed-case or --disable-mixed-case was given.
4310 if test "${enable_mixed_case+set}" = set; then
4311 enableval="$enable_mixed_case"
4312 enable_mixedcase=$enableval
4314 enable_mixedcase=auto
4316 echo "$as_me:4316: result: $enable_mixedcase" >&5
4317 echo "${ECHO_T}$enable_mixedcase" >&6
4318 if test "$enable_mixedcase" = "auto" ; then
4320 echo "$as_me:4320: checking if filesystem supports mixed-case filenames" >&5
4321 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
4322 if test "${cf_cv_mixedcase+set}" = set; then
4323 echo $ECHO_N "(cached) $ECHO_C" >&6
4326 if test "$cross_compiling" = yes ; then
4327 case "$target_alias" in
4328 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*|darwin*)
4336 rm -f conftest CONFTEST
4338 if test -f CONFTEST ; then
4343 rm -f conftest CONFTEST
4347 echo "$as_me:4347: result: $cf_cv_mixedcase" >&5
4348 echo "${ECHO_T}$cf_cv_mixedcase" >&6
4349 test "$cf_cv_mixedcase" = yes &&
4350 cat >>confdefs.h <<\EOF
4351 #define MIXEDCASE_FILENAMES 1
4355 cf_cv_mixedcase=$enable_mixedcase
4356 if test "x$enable_mixedcase" = "xyes" ; then
4358 cat >>confdefs.h <<\EOF
4359 #define MIXEDCASE_FILENAMES 1
4365 # do this after mixed-case option (tags/TAGS is not as important as tic).
4366 echo "$as_me:4366: checking whether ${MAKE-make} sets \${MAKE}" >&5
4367 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
4368 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
4369 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4372 cat >conftest.make <<\EOF
4374 @echo 'ac_maketemp="${MAKE}"'
4376 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4377 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4378 if test -n "$ac_maketemp"; then
4379 eval ac_cv_prog_make_${ac_make}_set=yes
4381 eval ac_cv_prog_make_${ac_make}_set=no
4385 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4386 echo "$as_me:4386: result: yes" >&5
4387 echo "${ECHO_T}yes" >&6
4390 echo "$as_me:4390: result: no" >&5
4391 echo "${ECHO_T}no" >&6
4392 SET_MAKE="MAKE=${MAKE-make}"
4395 echo "$as_me:4395: checking for \".PHONY\" make-support" >&5
4396 echo $ECHO_N "checking for \".PHONY\" make-support... $ECHO_C" >&6
4397 if test "${cf_cv_make_PHONY+set}" = set; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 mkdir conftest || exit 1
4405 cat >makefile <<'CF_EOF'
4409 @echo "** making $@ $(DATA)"
4411 @echo "** making $@ $(DATA)"
4413 @echo "** making $@ $(DATA)"
4416 @echo "** making $@ $(DATA)"
4419 for cf_data in 1 2 3
4421 ${MAKE:-make} always DATA=$cf_data
4422 ${MAKE:-make} once DATA=$cf_data
4423 ${MAKE:-make} -t always once
4424 if test -f always ; then
4425 echo "no (case 1)" > ../conftest.tmp
4426 elif test ! -f always.out ; then
4427 echo "no (case 2)" > ../conftest.tmp
4428 elif test ! -f once.out ; then
4429 echo "no (case 3)" > ../conftest.tmp
4430 elif ! cmp -s always.out once.out ; then
4431 echo "no (case 4)" > ../conftest.tmp
4432 diff always.out once.out
4434 cf_check="`cat always.out`"
4435 if test "x$cf_check" != "x$cf_data" ; then
4436 echo "no (case 5)" > ../conftest.tmp
4438 echo yes > ../conftest.tmp
4446 cf_cv_make_PHONY="`cat conftest.tmp`"
4450 echo "$as_me:4450: result: $cf_cv_make_PHONY" >&5
4451 echo "${ECHO_T}$cf_cv_make_PHONY" >&6
4454 test "x$cf_cv_make_PHONY" = xyes && MAKE_PHONY=
4455 test "x$cf_cv_make_PHONY" != xyes && MAKE_NO_PHONY=
4457 for ac_prog in exctags ctags
4459 # Extract the first word of "$ac_prog", so it can be a program name with args.
4460 set dummy $ac_prog; ac_word=$2
4461 echo "$as_me:4461: checking for $ac_word" >&5
4462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4463 if test "${ac_cv_prog_CTAGS+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4466 if test -n "$CTAGS"; then
4467 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
4469 ac_save_IFS=$IFS; IFS=$ac_path_separator
4471 for ac_dir in $ac_dummy; do
4473 test -z "$ac_dir" && ac_dir=.
4474 $as_executable_p "$ac_dir/$ac_word" || continue
4475 ac_cv_prog_CTAGS="$ac_prog"
4476 echo "$as_me:4476: found $ac_dir/$ac_word" >&5
4482 CTAGS=$ac_cv_prog_CTAGS
4483 if test -n "$CTAGS"; then
4484 echo "$as_me:4484: result: $CTAGS" >&5
4485 echo "${ECHO_T}$CTAGS" >&6
4487 echo "$as_me:4487: result: no" >&5
4488 echo "${ECHO_T}no" >&6
4491 test -n "$CTAGS" && break
4494 for ac_prog in exetags etags
4496 # Extract the first word of "$ac_prog", so it can be a program name with args.
4497 set dummy $ac_prog; ac_word=$2
4498 echo "$as_me:4498: checking for $ac_word" >&5
4499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4500 if test "${ac_cv_prog_ETAGS+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 if test -n "$ETAGS"; then
4504 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
4506 ac_save_IFS=$IFS; IFS=$ac_path_separator
4508 for ac_dir in $ac_dummy; do
4510 test -z "$ac_dir" && ac_dir=.
4511 $as_executable_p "$ac_dir/$ac_word" || continue
4512 ac_cv_prog_ETAGS="$ac_prog"
4513 echo "$as_me:4513: found $ac_dir/$ac_word" >&5
4519 ETAGS=$ac_cv_prog_ETAGS
4520 if test -n "$ETAGS"; then
4521 echo "$as_me:4521: result: $ETAGS" >&5
4522 echo "${ECHO_T}$ETAGS" >&6
4524 echo "$as_me:4524: result: no" >&5
4525 echo "${ECHO_T}no" >&6
4528 test -n "$ETAGS" && break
4531 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
4532 set dummy ${CTAGS:-ctags}; ac_word=$2
4533 echo "$as_me:4533: checking for $ac_word" >&5
4534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4535 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
4536 echo $ECHO_N "(cached) $ECHO_C" >&6
4538 if test -n "$MAKE_LOWER_TAGS"; then
4539 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
4541 ac_save_IFS=$IFS; IFS=$ac_path_separator
4543 for ac_dir in $ac_dummy; do
4545 test -z "$ac_dir" && ac_dir=.
4546 $as_executable_p "$ac_dir/$ac_word" || continue
4547 ac_cv_prog_MAKE_LOWER_TAGS="yes"
4548 echo "$as_me:4548: found $ac_dir/$ac_word" >&5
4552 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
4555 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
4556 if test -n "$MAKE_LOWER_TAGS"; then
4557 echo "$as_me:4557: result: $MAKE_LOWER_TAGS" >&5
4558 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
4560 echo "$as_me:4560: result: no" >&5
4561 echo "${ECHO_T}no" >&6
4564 if test "$cf_cv_mixedcase" = yes ; then
4565 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
4566 set dummy ${ETAGS:-etags}; ac_word=$2
4567 echo "$as_me:4567: checking for $ac_word" >&5
4568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4569 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4572 if test -n "$MAKE_UPPER_TAGS"; then
4573 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
4575 ac_save_IFS=$IFS; IFS=$ac_path_separator
4577 for ac_dir in $ac_dummy; do
4579 test -z "$ac_dir" && ac_dir=.
4580 $as_executable_p "$ac_dir/$ac_word" || continue
4581 ac_cv_prog_MAKE_UPPER_TAGS="yes"
4582 echo "$as_me:4582: found $ac_dir/$ac_word" >&5
4586 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
4589 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
4590 if test -n "$MAKE_UPPER_TAGS"; then
4591 echo "$as_me:4591: result: $MAKE_UPPER_TAGS" >&5
4592 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
4594 echo "$as_me:4594: result: no" >&5
4595 echo "${ECHO_T}no" >&6
4602 if test "$MAKE_UPPER_TAGS" = yes ; then
4608 if test "$MAKE_LOWER_TAGS" = yes ; then
4614 echo "$as_me:4614: checking for makeflags variable" >&5
4615 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
4616 if test "${cf_cv_makeflags+set}" = set; then
4617 echo $ECHO_N "(cached) $ECHO_C" >&6
4621 for cf_option in '-${MAKEFLAGS}' '${MFLAGS}'
4623 cat >cf_makeflags.tmp <<CF_EOF
4626 @ echo '.$cf_option'
4628 cf_result=`${MAKE:-make} -k -f cf_makeflags.tmp 2>/dev/null | ${FGREP-fgrep} -v "ing directory" | sed -e 's,[ ]*$,,'`
4629 case "$cf_result" in
4631 cf_result="`${MAKE:-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`"
4632 case "$cf_result" in
4633 (.*CC=*) cf_cv_makeflags=
4635 (*) cf_cv_makeflags=$cf_option
4644 echo "${as_me:-configure}:4644: testing given option \"$cf_option\",no match \"$cf_result\" ..." 1>&5
4649 rm -f cf_makeflags.tmp
4652 echo "$as_me:4652: result: $cf_cv_makeflags" >&5
4653 echo "${ECHO_T}$cf_cv_makeflags" >&6
4655 if test -n "$ac_tool_prefix"; then
4656 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4657 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4658 echo "$as_me:4658: checking for $ac_word" >&5
4659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4660 if test "${ac_cv_prog_RANLIB+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4663 if test -n "$RANLIB"; then
4664 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4666 ac_save_IFS=$IFS; IFS=$ac_path_separator
4668 for ac_dir in $ac_dummy; do
4670 test -z "$ac_dir" && ac_dir=.
4671 $as_executable_p "$ac_dir/$ac_word" || continue
4672 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4673 echo "$as_me:4673: found $ac_dir/$ac_word" >&5
4679 RANLIB=$ac_cv_prog_RANLIB
4680 if test -n "$RANLIB"; then
4681 echo "$as_me:4681: result: $RANLIB" >&5
4682 echo "${ECHO_T}$RANLIB" >&6
4684 echo "$as_me:4684: result: no" >&5
4685 echo "${ECHO_T}no" >&6
4689 if test -z "$ac_cv_prog_RANLIB"; then
4690 ac_ct_RANLIB=$RANLIB
4691 # Extract the first word of "ranlib", so it can be a program name with args.
4692 set dummy ranlib; ac_word=$2
4693 echo "$as_me:4693: checking for $ac_word" >&5
4694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4695 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4698 if test -n "$ac_ct_RANLIB"; then
4699 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4701 ac_save_IFS=$IFS; IFS=$ac_path_separator
4703 for ac_dir in $ac_dummy; do
4705 test -z "$ac_dir" && ac_dir=.
4706 $as_executable_p "$ac_dir/$ac_word" || continue
4707 ac_cv_prog_ac_ct_RANLIB="ranlib"
4708 echo "$as_me:4708: found $ac_dir/$ac_word" >&5
4712 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
4715 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4716 if test -n "$ac_ct_RANLIB"; then
4717 echo "$as_me:4717: result: $ac_ct_RANLIB" >&5
4718 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4720 echo "$as_me:4720: result: no" >&5
4721 echo "${ECHO_T}no" >&6
4724 RANLIB=$ac_ct_RANLIB
4726 RANLIB="$ac_cv_prog_RANLIB"
4729 if test -n "$ac_tool_prefix"; then
4730 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4731 set dummy ${ac_tool_prefix}ld; ac_word=$2
4732 echo "$as_me:4732: checking for $ac_word" >&5
4733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4734 if test "${ac_cv_prog_LD+set}" = set; then
4735 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 if test -n "$LD"; then
4738 ac_cv_prog_LD="$LD" # Let the user override the test.
4740 ac_save_IFS=$IFS; IFS=$ac_path_separator
4742 for ac_dir in $ac_dummy; do
4744 test -z "$ac_dir" && ac_dir=.
4745 $as_executable_p "$ac_dir/$ac_word" || continue
4746 ac_cv_prog_LD="${ac_tool_prefix}ld"
4747 echo "$as_me:4747: found $ac_dir/$ac_word" >&5
4754 if test -n "$LD"; then
4755 echo "$as_me:4755: result: $LD" >&5
4756 echo "${ECHO_T}$LD" >&6
4758 echo "$as_me:4758: result: no" >&5
4759 echo "${ECHO_T}no" >&6
4763 if test -z "$ac_cv_prog_LD"; then
4765 # Extract the first word of "ld", so it can be a program name with args.
4766 set dummy ld; ac_word=$2
4767 echo "$as_me:4767: checking for $ac_word" >&5
4768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4769 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4770 echo $ECHO_N "(cached) $ECHO_C" >&6
4772 if test -n "$ac_ct_LD"; then
4773 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4775 ac_save_IFS=$IFS; IFS=$ac_path_separator
4777 for ac_dir in $ac_dummy; do
4779 test -z "$ac_dir" && ac_dir=.
4780 $as_executable_p "$ac_dir/$ac_word" || continue
4781 ac_cv_prog_ac_ct_LD="ld"
4782 echo "$as_me:4782: found $ac_dir/$ac_word" >&5
4786 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4789 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4790 if test -n "$ac_ct_LD"; then
4791 echo "$as_me:4791: result: $ac_ct_LD" >&5
4792 echo "${ECHO_T}$ac_ct_LD" >&6
4794 echo "$as_me:4794: result: no" >&5
4795 echo "${ECHO_T}no" >&6
4803 if test -n "$ac_tool_prefix"; then
4804 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4805 set dummy ${ac_tool_prefix}ar; ac_word=$2
4806 echo "$as_me:4806: checking for $ac_word" >&5
4807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4808 if test "${ac_cv_prog_AR+set}" = set; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4811 if test -n "$AR"; then
4812 ac_cv_prog_AR="$AR" # Let the user override the test.
4814 ac_save_IFS=$IFS; IFS=$ac_path_separator
4816 for ac_dir in $ac_dummy; do
4818 test -z "$ac_dir" && ac_dir=.
4819 $as_executable_p "$ac_dir/$ac_word" || continue
4820 ac_cv_prog_AR="${ac_tool_prefix}ar"
4821 echo "$as_me:4821: found $ac_dir/$ac_word" >&5
4828 if test -n "$AR"; then
4829 echo "$as_me:4829: result: $AR" >&5
4830 echo "${ECHO_T}$AR" >&6
4832 echo "$as_me:4832: result: no" >&5
4833 echo "${ECHO_T}no" >&6
4837 if test -z "$ac_cv_prog_AR"; then
4839 # Extract the first word of "ar", so it can be a program name with args.
4840 set dummy ar; ac_word=$2
4841 echo "$as_me:4841: checking for $ac_word" >&5
4842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4843 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4844 echo $ECHO_N "(cached) $ECHO_C" >&6
4846 if test -n "$ac_ct_AR"; then
4847 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4849 ac_save_IFS=$IFS; IFS=$ac_path_separator
4851 for ac_dir in $ac_dummy; do
4853 test -z "$ac_dir" && ac_dir=.
4854 $as_executable_p "$ac_dir/$ac_word" || continue
4855 ac_cv_prog_ac_ct_AR="ar"
4856 echo "$as_me:4856: found $ac_dir/$ac_word" >&5
4860 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4863 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4864 if test -n "$ac_ct_AR"; then
4865 echo "$as_me:4865: result: $ac_ct_AR" >&5
4866 echo "${ECHO_T}$ac_ct_AR" >&6
4868 echo "$as_me:4868: result: no" >&5
4869 echo "${ECHO_T}no" >&6
4877 if test -n "$ac_tool_prefix"; then
4878 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4879 set dummy ${ac_tool_prefix}nm; ac_word=$2
4880 echo "$as_me:4880: checking for $ac_word" >&5
4881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4882 if test "${ac_cv_prog_NM+set}" = set; then
4883 echo $ECHO_N "(cached) $ECHO_C" >&6
4885 if test -n "$NM"; then
4886 ac_cv_prog_NM="$NM" # Let the user override the test.
4888 ac_save_IFS=$IFS; IFS=$ac_path_separator
4890 for ac_dir in $ac_dummy; do
4892 test -z "$ac_dir" && ac_dir=.
4893 $as_executable_p "$ac_dir/$ac_word" || continue
4894 ac_cv_prog_NM="${ac_tool_prefix}nm"
4895 echo "$as_me:4895: found $ac_dir/$ac_word" >&5
4902 if test -n "$NM"; then
4903 echo "$as_me:4903: result: $NM" >&5
4904 echo "${ECHO_T}$NM" >&6
4906 echo "$as_me:4906: result: no" >&5
4907 echo "${ECHO_T}no" >&6
4911 if test -z "$ac_cv_prog_NM"; then
4913 # Extract the first word of "nm", so it can be a program name with args.
4914 set dummy nm; ac_word=$2
4915 echo "$as_me:4915: checking for $ac_word" >&5
4916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4917 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
4920 if test -n "$ac_ct_NM"; then
4921 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4923 ac_save_IFS=$IFS; IFS=$ac_path_separator
4925 for ac_dir in $ac_dummy; do
4927 test -z "$ac_dir" && ac_dir=.
4928 $as_executable_p "$ac_dir/$ac_word" || continue
4929 ac_cv_prog_ac_ct_NM="nm"
4930 echo "$as_me:4930: found $ac_dir/$ac_word" >&5
4934 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM="nm"
4937 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4938 if test -n "$ac_ct_NM"; then
4939 echo "$as_me:4939: result: $ac_ct_NM" >&5
4940 echo "${ECHO_T}$ac_ct_NM" >&6
4942 echo "$as_me:4942: result: no" >&5
4943 echo "${ECHO_T}no" >&6
4951 if test -n "$ac_tool_prefix"; then
4952 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4953 set dummy ${ac_tool_prefix}ar; ac_word=$2
4954 echo "$as_me:4954: checking for $ac_word" >&5
4955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4956 if test "${ac_cv_prog_AR+set}" = set; then
4957 echo $ECHO_N "(cached) $ECHO_C" >&6
4959 if test -n "$AR"; then
4960 ac_cv_prog_AR="$AR" # Let the user override the test.
4962 ac_save_IFS=$IFS; IFS=$ac_path_separator
4964 for ac_dir in $ac_dummy; do
4966 test -z "$ac_dir" && ac_dir=.
4967 $as_executable_p "$ac_dir/$ac_word" || continue
4968 ac_cv_prog_AR="${ac_tool_prefix}ar"
4969 echo "$as_me:4969: found $ac_dir/$ac_word" >&5
4976 if test -n "$AR"; then
4977 echo "$as_me:4977: result: $AR" >&5
4978 echo "${ECHO_T}$AR" >&6
4980 echo "$as_me:4980: result: no" >&5
4981 echo "${ECHO_T}no" >&6
4985 if test -z "$ac_cv_prog_AR"; then
4987 # Extract the first word of "ar", so it can be a program name with args.
4988 set dummy ar; ac_word=$2
4989 echo "$as_me:4989: checking for $ac_word" >&5
4990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4991 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4992 echo $ECHO_N "(cached) $ECHO_C" >&6
4994 if test -n "$ac_ct_AR"; then
4995 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4997 ac_save_IFS=$IFS; IFS=$ac_path_separator
4999 for ac_dir in $ac_dummy; do
5001 test -z "$ac_dir" && ac_dir=.
5002 $as_executable_p "$ac_dir/$ac_word" || continue
5003 ac_cv_prog_ac_ct_AR="ar"
5004 echo "$as_me:5004: found $ac_dir/$ac_word" >&5
5008 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
5011 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5012 if test -n "$ac_ct_AR"; then
5013 echo "$as_me:5013: result: $ac_ct_AR" >&5
5014 echo "${ECHO_T}$ac_ct_AR" >&6
5016 echo "$as_me:5016: result: no" >&5
5017 echo "${ECHO_T}no" >&6
5025 echo "$as_me:5025: checking for options to update archives" >&5
5026 echo $ECHO_N "checking for options to update archives... $ECHO_C" >&6
5027 if test "${cf_cv_ar_flags+set}" = set; then
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5031 case "$cf_cv_system_name" in
5034 cat >mk_static_lib.sh <<-EOF
5039 exec \$MSVC_BIN -out:"\$out" \$@
5041 chmod +x mk_static_lib.sh
5042 AR=`pwd`/mk_static_lib.sh
5045 cf_cv_ar_flags=unknown
5046 for cf_ar_flags in -curvU -curv curv -crv crv -cqv cqv -rv rv
5049 # check if $ARFLAGS already contains this choice
5050 if test "x$ARFLAGS" != "x" ; then
5051 cf_check_ar_flags=`echo "x$ARFLAGS" | sed -e "s/$cf_ar_flags\$//" -e "s/$cf_ar_flags / /"`
5052 if test "x$ARFLAGS" != "$cf_check_ar_flags" ; then
5058 rm -f "conftest.$ac_cv_objext"
5061 cat >"conftest.$ac_ext" <<EOF
5062 #line 5062 "configure"
5063 int testdata[3] = { 123, 456, 789 };
5065 if { (eval echo "$as_me:5065: \"$ac_compile\"") >&5
5066 (eval $ac_compile) 2>&5
5068 echo "$as_me:5068: \$? = $ac_status" >&5
5069 (exit "$ac_status"); } ; then
5070 echo "$AR $ARFLAGS $cf_ar_flags conftest.a conftest.$ac_cv_objext" >&5
5071 $AR $ARFLAGS "$cf_ar_flags" conftest.a "conftest.$ac_cv_objext" 2>&5 1>/dev/null
5072 if test -f conftest.a ; then
5073 cf_cv_ar_flags="$cf_ar_flags"
5077 test -n "$verbose" && echo " cannot compile test-program" 1>&6
5079 echo "${as_me:-configure}:5079: testing cannot compile test-program ..." 1>&5
5084 rm -f conftest.a "conftest.$ac_ext" "conftest.$ac_cv_objext"
5089 echo "$as_me:5089: result: $cf_cv_ar_flags" >&5
5090 echo "${ECHO_T}$cf_cv_ar_flags" >&6
5092 if test -n "$ARFLAGS" ; then
5093 if test -n "$cf_cv_ar_flags" ; then
5094 ARFLAGS="$ARFLAGS $cf_cv_ar_flags"
5097 ARFLAGS=$cf_cv_ar_flags
5100 echo "$as_me:5100: checking if you have specified an install-prefix" >&5
5101 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
5103 # Check whether --with-install-prefix or --without-install-prefix was given.
5104 if test "${with_install_prefix+set}" = set; then
5105 withval="$with_install_prefix"
5109 (*) DESTDIR="$withval"
5113 echo "$as_me:5113: result: $DESTDIR" >&5
5114 echo "${ECHO_T}$DESTDIR" >&6
5116 ###############################################################################
5118 # If we're cross-compiling, allow the user to override the tools and their
5119 # options. The configure script is oriented toward identifying the host
5120 # compiler, etc., but we need a build compiler to generate parts of the source.
5122 case "$cf_cv_system_name" in
5124 LDFLAGS="$LDFLAGS user32.lib"
5129 if test "$cross_compiling" = yes ; then
5131 # defaults that we might want to override
5132 : ${BUILD_CFLAGS:=''}
5133 : ${BUILD_CPPFLAGS:=''}
5134 : ${BUILD_LDFLAGS:=''}
5136 : ${BUILD_EXEEXT:='$x'}
5137 : ${BUILD_OBJEXT:='o'}
5139 # Check whether --with-build-cc or --without-build-cc was given.
5140 if test "${with_build_cc+set}" = set; then
5141 withval="$with_build_cc"
5144 for ac_prog in gcc clang c99 c89 cc cl
5146 # Extract the first word of "$ac_prog", so it can be a program name with args.
5147 set dummy $ac_prog; ac_word=$2
5148 echo "$as_me:5148: checking for $ac_word" >&5
5149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5150 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
5151 echo $ECHO_N "(cached) $ECHO_C" >&6
5153 if test -n "$BUILD_CC"; then
5154 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
5156 ac_save_IFS=$IFS; IFS=$ac_path_separator
5158 for ac_dir in $ac_dummy; do
5160 test -z "$ac_dir" && ac_dir=.
5161 $as_executable_p "$ac_dir/$ac_word" || continue
5162 ac_cv_prog_BUILD_CC="$ac_prog"
5163 echo "$as_me:5163: found $ac_dir/$ac_word" >&5
5169 BUILD_CC=$ac_cv_prog_BUILD_CC
5170 if test -n "$BUILD_CC"; then
5171 echo "$as_me:5171: result: $BUILD_CC" >&5
5172 echo "${ECHO_T}$BUILD_CC" >&6
5174 echo "$as_me:5174: result: no" >&5
5175 echo "${ECHO_T}no" >&6
5178 test -n "$BUILD_CC" && break
5180 test -n "$BUILD_CC" || BUILD_CC="none"
5183 echo "$as_me:5183: checking for native build C compiler" >&5
5184 echo $ECHO_N "checking for native build C compiler... $ECHO_C" >&6
5185 echo "$as_me:5185: result: $BUILD_CC" >&5
5186 echo "${ECHO_T}$BUILD_CC" >&6
5188 echo "$as_me:5188: checking for native build C preprocessor" >&5
5189 echo $ECHO_N "checking for native build C preprocessor... $ECHO_C" >&6
5191 # Check whether --with-build-cpp or --without-build-cpp was given.
5192 if test "${with_build_cpp+set}" = set; then
5193 withval="$with_build_cpp"
5194 BUILD_CPP="$withval"
5196 BUILD_CPP='${BUILD_CC} -E'
5198 echo "$as_me:5198: result: $BUILD_CPP" >&5
5199 echo "${ECHO_T}$BUILD_CPP" >&6
5201 echo "$as_me:5201: checking for native build C flags" >&5
5202 echo $ECHO_N "checking for native build C flags... $ECHO_C" >&6
5204 # Check whether --with-build-cflags or --without-build-cflags was given.
5205 if test "${with_build_cflags+set}" = set; then
5206 withval="$with_build_cflags"
5207 BUILD_CFLAGS="$withval"
5209 echo "$as_me:5209: result: $BUILD_CFLAGS" >&5
5210 echo "${ECHO_T}$BUILD_CFLAGS" >&6
5212 echo "$as_me:5212: checking for native build C preprocessor-flags" >&5
5213 echo $ECHO_N "checking for native build C preprocessor-flags... $ECHO_C" >&6
5215 # Check whether --with-build-cppflags or --without-build-cppflags was given.
5216 if test "${with_build_cppflags+set}" = set; then
5217 withval="$with_build_cppflags"
5218 BUILD_CPPFLAGS="$withval"
5220 echo "$as_me:5220: result: $BUILD_CPPFLAGS" >&5
5221 echo "${ECHO_T}$BUILD_CPPFLAGS" >&6
5223 echo "$as_me:5223: checking for native build linker-flags" >&5
5224 echo $ECHO_N "checking for native build linker-flags... $ECHO_C" >&6
5226 # Check whether --with-build-ldflags or --without-build-ldflags was given.
5227 if test "${with_build_ldflags+set}" = set; then
5228 withval="$with_build_ldflags"
5229 BUILD_LDFLAGS="$withval"
5231 echo "$as_me:5231: result: $BUILD_LDFLAGS" >&5
5232 echo "${ECHO_T}$BUILD_LDFLAGS" >&6
5234 echo "$as_me:5234: checking for native build linker-libraries" >&5
5235 echo $ECHO_N "checking for native build linker-libraries... $ECHO_C" >&6
5237 # Check whether --with-build-libs or --without-build-libs was given.
5238 if test "${with_build_libs+set}" = set; then
5239 withval="$with_build_libs"
5240 BUILD_LIBS="$withval"
5242 echo "$as_me:5242: result: $BUILD_LIBS" >&5
5243 echo "${ECHO_T}$BUILD_LIBS" >&6
5245 # this assumes we're on Unix.
5249 : ${BUILD_CC:='${CC}'}
5251 if { test "$BUILD_CC" = "$CC" || test "$BUILD_CC" = '${CC}'; } ; then
5252 { { echo "$as_me:5252: error: Cross-build requires two compilers.
5253 Use --with-build-cc to specify the native compiler." >&5
5254 echo "$as_me: error: Cross-build requires two compilers.
5255 Use --with-build-cc to specify the native compiler." >&2;}
5256 { (exit 1); exit 1; }; }
5260 : ${BUILD_CC:='${CC}'}
5261 : ${BUILD_CPP:='${CPP}'}
5262 : ${BUILD_CFLAGS:='${CFLAGS}'}
5263 : ${BUILD_CPPFLAGS:='${CPPFLAGS}'}
5264 : ${BUILD_LDFLAGS:='${LDFLAGS}'}
5265 : ${BUILD_LIBS:='${LIBS}'}
5266 : ${BUILD_EXEEXT:='$x'}
5267 : ${BUILD_OBJEXT:='o'}
5270 ###############################################################################
5272 ### Options to allow the user to specify the set of libraries which are used.
5273 ### Use "--without-normal --with-shared" to allow the default model to be
5274 ### shared, for example.
5277 echo "$as_me:5277: checking if libtool -version-number should be used" >&5
5278 echo $ECHO_N "checking if libtool -version-number should be used... $ECHO_C" >&6
5280 # Check whether --enable-libtool-version or --disable-libtool-version was given.
5281 if test "${enable_libtool_version+set}" = set; then
5282 enableval="$enable_libtool_version"
5283 test "$enableval" != no && enableval=yes
5284 if test "$enableval" != "yes" ; then
5285 cf_libtool_version=no
5287 cf_libtool_version=yes
5291 cf_libtool_version=yes
5294 echo "$as_me:5294: result: $cf_libtool_version" >&5
5295 echo "${ECHO_T}$cf_libtool_version" >&6
5297 if test "$cf_libtool_version" = yes ; then
5298 LIBTOOL_VERSION="-version-number"
5300 LIBTOOL_VERSION="-version-info"
5303 { echo "$as_me:5303: WARNING: VERSION was not set" >&5
5304 echo "$as_me: WARNING: VERSION was not set" >&2;}
5307 ABI_VERSION="$VERSION"
5308 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
5310 echo "${as_me:-configure}:5310: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
5314 ABI_VERSION=`echo "$VERSION" | sed -e 's/:/./g'`
5315 test -n "$verbose" && echo " ABI_VERSION: $ABI_VERSION" 1>&6
5317 echo "${as_me:-configure}:5317: testing ABI_VERSION: $ABI_VERSION ..." 1>&5
5321 { echo "$as_me:5321: WARNING: unexpected VERSION value: $VERSION" >&5
5322 echo "$as_me: WARNING: unexpected VERSION value: $VERSION" >&2;}
5329 # common library maintenance symbols that are convenient for libtool scripts:
5330 LIB_CREATE='${AR} -cr'
5331 LIB_OBJECT='${OBJECTS}'
5335 # symbols used to prop libtool up to enable it to determine what it should be
5343 echo "$as_me:5343: checking if you want to build libraries with libtool" >&5
5344 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
5346 # Check whether --with-libtool or --without-libtool was given.
5347 if test "${with_libtool+set}" = set; then
5348 withval="$with_libtool"
5349 with_libtool=$withval
5353 echo "$as_me:5353: result: $with_libtool" >&5
5354 echo "${ECHO_T}$with_libtool" >&6
5355 if test "$with_libtool" != "no"; then
5357 if test "$with_libtool" != "yes" ; then
5359 if test "x$prefix" != xNONE; then
5360 cf_path_syntax="$prefix"
5362 cf_path_syntax="$ac_default_prefix"
5365 case ".$with_libtool" in
5370 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
5372 (.\$\{*prefix\}*|.\$\{*dir\}*)
5373 eval with_libtool="$with_libtool"
5374 case ".$with_libtool" in
5376 with_libtool=`echo "$with_libtool" | sed -e s%NONE%$cf_path_syntax%`
5381 with_libtool=`echo "$with_libtool" | sed -e s%NONE%$cf_path_syntax%`
5384 { { echo "$as_me:5384: error: expected a pathname, not \"$with_libtool\"" >&5
5385 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
5386 { (exit 1); exit 1; }; }
5390 LIBTOOL=$with_libtool
5392 if test -n "$ac_tool_prefix"; then
5393 for ac_prog in libtool glibtool
5395 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5396 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5397 echo "$as_me:5397: checking for $ac_word" >&5
5398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5399 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
5400 echo $ECHO_N "(cached) $ECHO_C" >&6
5402 if test -n "$LIBTOOL"; then
5403 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
5405 ac_save_IFS=$IFS; IFS=$ac_path_separator
5407 for ac_dir in $ac_dummy; do
5409 test -z "$ac_dir" && ac_dir=.
5410 $as_executable_p "$ac_dir/$ac_word" || continue
5411 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5412 echo "$as_me:5412: found $ac_dir/$ac_word" >&5
5418 LIBTOOL=$ac_cv_prog_LIBTOOL
5419 if test -n "$LIBTOOL"; then
5420 echo "$as_me:5420: result: $LIBTOOL" >&5
5421 echo "${ECHO_T}$LIBTOOL" >&6
5423 echo "$as_me:5423: result: no" >&5
5424 echo "${ECHO_T}no" >&6
5427 test -n "$LIBTOOL" && break
5430 if test -z "$LIBTOOL"; then
5431 ac_ct_LIBTOOL=$LIBTOOL
5432 for ac_prog in libtool glibtool
5434 # Extract the first word of "$ac_prog", so it can be a program name with args.
5435 set dummy $ac_prog; ac_word=$2
5436 echo "$as_me:5436: checking for $ac_word" >&5
5437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5438 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5439 echo $ECHO_N "(cached) $ECHO_C" >&6
5441 if test -n "$ac_ct_LIBTOOL"; then
5442 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5444 ac_save_IFS=$IFS; IFS=$ac_path_separator
5446 for ac_dir in $ac_dummy; do
5448 test -z "$ac_dir" && ac_dir=.
5449 $as_executable_p "$ac_dir/$ac_word" || continue
5450 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5451 echo "$as_me:5451: found $ac_dir/$ac_word" >&5
5457 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5458 if test -n "$ac_ct_LIBTOOL"; then
5459 echo "$as_me:5459: result: $ac_ct_LIBTOOL" >&5
5460 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5462 echo "$as_me:5462: result: no" >&5
5463 echo "${ECHO_T}no" >&6
5466 test -n "$ac_ct_LIBTOOL" && break
5468 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5470 LIBTOOL=$ac_ct_LIBTOOL
5473 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5475 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.].*//'`
5477 cf_cv_libtool_version=
5479 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5481 if test -z "$cf_cv_libtool_version" && test "$LIBTOOL" = libtool
5484 unset ac_cv_prog_ac_ct_LIBTOOL
5488 if test -n "$ac_tool_prefix"; then
5489 for ac_prog in glibtool
5491 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5492 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5493 echo "$as_me:5493: checking for $ac_word" >&5
5494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5495 if test "${ac_cv_prog_LIBTOOL+set}" = set; then
5496 echo $ECHO_N "(cached) $ECHO_C" >&6
5498 if test -n "$LIBTOOL"; then
5499 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
5501 ac_save_IFS=$IFS; IFS=$ac_path_separator
5503 for ac_dir in $ac_dummy; do
5505 test -z "$ac_dir" && ac_dir=.
5506 $as_executable_p "$ac_dir/$ac_word" || continue
5507 ac_cv_prog_LIBTOOL="$ac_tool_prefix$ac_prog"
5508 echo "$as_me:5508: found $ac_dir/$ac_word" >&5
5514 LIBTOOL=$ac_cv_prog_LIBTOOL
5515 if test -n "$LIBTOOL"; then
5516 echo "$as_me:5516: result: $LIBTOOL" >&5
5517 echo "${ECHO_T}$LIBTOOL" >&6
5519 echo "$as_me:5519: result: no" >&5
5520 echo "${ECHO_T}no" >&6
5523 test -n "$LIBTOOL" && break
5526 if test -z "$LIBTOOL"; then
5527 ac_ct_LIBTOOL=$LIBTOOL
5528 for ac_prog in glibtool
5530 # Extract the first word of "$ac_prog", so it can be a program name with args.
5531 set dummy $ac_prog; ac_word=$2
5532 echo "$as_me:5532: checking for $ac_word" >&5
5533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5534 if test "${ac_cv_prog_ac_ct_LIBTOOL+set}" = set; then
5535 echo $ECHO_N "(cached) $ECHO_C" >&6
5537 if test -n "$ac_ct_LIBTOOL"; then
5538 ac_cv_prog_ac_ct_LIBTOOL="$ac_ct_LIBTOOL" # Let the user override the test.
5540 ac_save_IFS=$IFS; IFS=$ac_path_separator
5542 for ac_dir in $ac_dummy; do
5544 test -z "$ac_dir" && ac_dir=.
5545 $as_executable_p "$ac_dir/$ac_word" || continue
5546 ac_cv_prog_ac_ct_LIBTOOL="$ac_prog"
5547 echo "$as_me:5547: found $ac_dir/$ac_word" >&5
5553 ac_ct_LIBTOOL=$ac_cv_prog_ac_ct_LIBTOOL
5554 if test -n "$ac_ct_LIBTOOL"; then
5555 echo "$as_me:5555: result: $ac_ct_LIBTOOL" >&5
5556 echo "${ECHO_T}$ac_ct_LIBTOOL" >&6
5558 echo "$as_me:5558: result: no" >&5
5559 echo "${ECHO_T}no" >&6
5562 test -n "$ac_ct_LIBTOOL" && break
5564 test -n "$ac_ct_LIBTOOL" || ac_ct_LIBTOOL="none"
5566 LIBTOOL=$ac_ct_LIBTOOL
5569 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5571 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.].*//'`
5573 cf_cv_libtool_version=
5575 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5579 if test -z "$LIBTOOL" ; then
5580 { { echo "$as_me:5580: error: Cannot find libtool" >&5
5581 echo "$as_me: error: Cannot find libtool" >&2;}
5582 { (exit 1); exit 1; }; }
5584 LIB_CREATE='${LIBTOOL} --mode=link ${CC} -rpath ${libdir} ${LIBTOOL_VERSION} `cut -f1 ${top_srcdir}/VERSION` ${LIBTOOL_OPTS} ${LT_UNDEF} $(LIBS) -o'
5585 LIB_OBJECT='${OBJECTS:.o=.lo}'
5587 LIB_CLEAN='${LIBTOOL} --mode=clean'
5588 LIB_COMPILE='${LIBTOOL} --mode=compile'
5589 LIB_LINK='${LIBTOOL} --mode=link ${CC} ${LIBTOOL_OPTS}'
5590 LIB_INSTALL='${LIBTOOL} --mode=install'
5591 LIB_UNINSTALL='${LIBTOOL} --mode=uninstall'
5594 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5596 echo "$as_me:5596: checking version of $LIBTOOL" >&5
5597 echo $ECHO_N "checking version of $LIBTOOL... $ECHO_C" >&6
5599 if test -n "$LIBTOOL" && test "$LIBTOOL" != none
5601 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.].*//'`
5603 cf_cv_libtool_version=
5605 test -z "$cf_cv_libtool_version" && unset cf_cv_libtool_version
5607 echo "$as_me:5607: result: $cf_cv_libtool_version" >&5
5608 echo "${ECHO_T}$cf_cv_libtool_version" >&6
5609 if test -n "$cf_cv_libtool_version"
5611 cf_check_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '/^$/d' -e 's,[()],...,g' -e 's,[ ],-,g' -e '2,$d'`
5612 case "x$cf_check_libtool_version" in
5613 (*...GNU-libtool...*)
5616 { { echo "$as_me:5616: error: This is not GNU libtool" >&5
5617 echo "$as_me: error: This is not GNU libtool" >&2;}
5618 { (exit 1); exit 1; }; }
5622 { { echo "$as_me:5622: error: No version found for $LIBTOOL" >&5
5623 echo "$as_me: error: No version found for $LIBTOOL" >&2;}
5624 { (exit 1); exit 1; }; }
5627 { { echo "$as_me:5627: error: GNU libtool has not been found" >&5
5628 echo "$as_me: error: GNU libtool has not been found" >&2;}
5629 { (exit 1); exit 1; }; }
5632 # special hack to add -no-undefined (which libtool should do for itself)
5634 case "$cf_cv_system_name" in
5635 (cygwin*|msys*|mingw32*|os2*|uwin*|aix[4-7])
5636 LT_UNDEF=-no-undefined
5640 # special hack to add --tag option for C++ compiler
5641 case "$cf_cv_libtool_version" in
5642 (1.[5-9]*|[2-9].[0-9.a-z]*)
5643 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
5644 LIBTOOL="$LIBTOOL --tag=CC"
5647 LIBTOOL_CXX="$LIBTOOL"
5655 test -z "$LIBTOOL" && ECHO_LT=
5657 if test "$with_libtool" != "no" ; then
5659 cf_list_models="$cf_list_models libtool"
5663 echo "$as_me:5663: checking if you want to build shared libraries" >&5
5664 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
5666 # Check whether --with-shared or --without-shared was given.
5667 if test "${with_shared+set}" = set; then
5668 withval="$with_shared"
5669 with_shared=$withval
5673 echo "$as_me:5673: result: $with_shared" >&5
5674 echo "${ECHO_T}$with_shared" >&6
5675 test "x$with_shared" = "xyes" && cf_list_models="$cf_list_models shared"
5677 echo "$as_me:5677: checking if you want to build static libraries" >&5
5678 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
5680 # Check whether --with-normal or --without-normal was given.
5681 if test "${with_normal+set}" = set; then
5682 withval="$with_normal"
5683 with_normal=$withval
5687 echo "$as_me:5687: result: $with_normal" >&5
5688 echo "${ECHO_T}$with_normal" >&6
5689 test "x$with_normal" = "xyes" && cf_list_models="$cf_list_models normal"
5691 echo "$as_me:5691: checking if you want to build debug libraries" >&5
5692 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
5694 # Check whether --with-debug or --without-debug was given.
5695 if test "${with_debug+set}" = set; then
5696 withval="$with_debug"
5701 echo "$as_me:5701: result: $with_debug" >&5
5702 echo "${ECHO_T}$with_debug" >&6
5703 test "x$with_debug" = "xyes" && cf_list_models="$cf_list_models debug"
5705 echo "$as_me:5705: checking if you want to build profiling libraries" >&5
5706 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
5708 # Check whether --with-profile or --without-profile was given.
5709 if test "${with_profile+set}" = set; then
5710 withval="$with_profile"
5711 with_profile=$withval
5715 echo "$as_me:5715: result: $with_profile" >&5
5716 echo "${ECHO_T}$with_profile" >&6
5717 test "x$with_profile" = "xyes" && cf_list_models="$cf_list_models profile"
5721 if test "X$cf_with_cxx_binding" != Xno; then
5722 if test "x$with_shared" = "xyes"; then
5723 echo "$as_me:5723: checking if you want to build C++ shared libraries" >&5
5724 echo $ECHO_N "checking if you want to build C++ shared libraries... $ECHO_C" >&6
5726 # Check whether --with-cxx-shared or --without-cxx-shared was given.
5727 if test "${with_cxx_shared+set}" = set; then
5728 withval="$with_cxx_shared"
5729 with_shared_cxx=$withval
5733 echo "$as_me:5733: result: $with_shared_cxx" >&5
5734 echo "${ECHO_T}$with_shared_cxx" >&6
5738 ###############################################################################
5740 echo "$as_me:5740: checking for specified models" >&5
5741 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
5742 test -z "$cf_list_models" && cf_list_models=normal
5743 test "$with_libtool" != "no" && cf_list_models=libtool
5744 echo "$as_me:5744: result: $cf_list_models" >&5
5745 echo "${ECHO_T}$cf_list_models" >&6
5747 ### Use the first model as the default, and save its suffix for use in building
5748 ### up test-applications.
5749 echo "$as_me:5749: checking for default model" >&5
5750 echo $ECHO_N "checking for default model... $ECHO_C" >&6
5751 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
5752 echo "$as_me:5752: result: $DFT_LWR_MODEL" >&5
5753 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
5755 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5766 echo "$as_me:5766: checking if you want to have a library-prefix" >&5
5767 echo $ECHO_N "checking if you want to have a library-prefix... $ECHO_C" >&6
5769 # Check whether --with-lib-prefix or --without-lib-prefix was given.
5770 if test "${with_lib_prefix+set}" = set; then
5771 withval="$with_lib_prefix"
5772 with_lib_prefix=$withval
5774 with_lib_prefix=auto
5776 echo "$as_me:5776: result: $with_lib_prefix" >&5
5777 echo "${ECHO_T}$with_lib_prefix" >&6
5779 if test "$with_lib_prefix" = auto
5782 case "$cf_cv_system_name" in
5784 if test "$DFT_LWR_MODEL" = libtool; then
5793 (*) LIB_PREFIX='lib'
5796 cf_prefix=$LIB_PREFIX
5798 elif test "$with_lib_prefix" = no
5802 LIB_PREFIX=$with_lib_prefix
5807 echo "$as_me:5807: checking for PATH separator" >&5
5808 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
5809 case "$cf_cv_system_name" in
5810 (os2*) PATH_SEPARATOR=';' ;;
5811 (*) ${PATH_SEPARATOR:=':'} ;;
5814 echo "$as_me:5814: result: $PATH_SEPARATOR" >&5
5815 echo "${ECHO_T}$PATH_SEPARATOR" >&6
5817 ###############################################################################
5819 echo "$as_me:5819: checking if you want to build a separate terminfo library" >&5
5820 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
5822 # Check whether --with-termlib or --without-termlib was given.
5823 if test "${with_termlib+set}" = set; then
5824 withval="$with_termlib"
5825 with_termlib=$withval
5829 echo "$as_me:5829: result: $with_termlib" >&5
5830 echo "${ECHO_T}$with_termlib" >&6
5832 echo "$as_me:5832: checking if you want to build a separate tic library" >&5
5833 echo $ECHO_N "checking if you want to build a separate tic library... $ECHO_C" >&6
5835 # Check whether --with-ticlib or --without-ticlib was given.
5836 if test "${with_ticlib+set}" = set; then
5837 withval="$with_ticlib"
5838 with_ticlib=$withval
5842 echo "$as_me:5842: result: $with_ticlib" >&5
5843 echo "${ECHO_T}$with_ticlib" >&6
5845 if test X"$CC_G_OPT" = X"" ; then
5847 test -n "$GCC" && test "x${ac_cv_prog_cc_g}" != xyes && CC_G_OPT=''
5850 if test X"$CXX_G_OPT" = X"" ; then
5852 test -n "$GXX" && test "x${ac_cv_prog_cxx_g}" != xyes && CXX_G_OPT=''
5855 echo "$as_me:5855: checking for default loader flags" >&5
5856 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
5857 case "$DFT_LWR_MODEL" in
5858 (libtool) LD_MODEL='' ;;
5859 (normal) LD_MODEL='' ;;
5860 (debug) LD_MODEL=$CC_G_OPT ;;
5861 (profile) LD_MODEL='-pg';;
5862 (shared) LD_MODEL='' ;;
5864 echo "$as_me:5864: result: $LD_MODEL" >&5
5865 echo "${ECHO_T}$LD_MODEL" >&6
5867 case "$DFT_LWR_MODEL" in
5870 echo "$as_me:5870: checking if rpath option should be used" >&5
5871 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
5873 # Check whether --enable-rpath or --disable-rpath was given.
5874 if test "${enable_rpath+set}" = set; then
5875 enableval="$enable_rpath"
5876 cf_cv_enable_rpath=$enableval
5878 cf_cv_enable_rpath=no
5880 echo "$as_me:5880: result: $cf_cv_enable_rpath" >&5
5881 echo "${ECHO_T}$cf_cv_enable_rpath" >&6
5883 echo "$as_me:5883: checking if shared libraries should be relinked during install" >&5
5884 echo $ECHO_N "checking if shared libraries should be relinked during install... $ECHO_C" >&6
5886 # Check whether --enable-relink or --disable-relink was given.
5887 if test "${enable_relink+set}" = set; then
5888 enableval="$enable_relink"
5889 cf_cv_do_relink=$enableval
5893 echo "$as_me:5893: result: $cf_cv_do_relink" >&5
5894 echo "${ECHO_T}$cf_cv_do_relink" >&6
5898 # we will build libraries one-level down.
5902 if test "x$cf_cv_enable_rpath" != xno
5904 echo "$as_me:5904: checking for an rpath option" >&5
5905 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
5906 case "$cf_cv_system_name" in
5908 if test "$GCC" = yes; then
5909 LD_RPATH_OPT="-Wl,-rpath,"
5911 LD_RPATH_OPT="-rpath "
5914 (linux*|gnu*|k*bsd*-gnu|freebsd*)
5915 LD_RPATH_OPT="-Wl,-rpath,"
5917 (openbsd[2-9].*|mirbsd*)
5918 LD_RPATH_OPT="-Wl,-rpath,"
5921 LD_RPATH_OPT="-rpath "
5924 LD_RPATH_OPT="-Wl,-rpath,"
5927 LD_RPATH_OPT="-rpath "
5935 echo "$as_me:5935: result: $LD_RPATH_OPT" >&5
5936 echo "${ECHO_T}$LD_RPATH_OPT" >&6
5938 case "x$LD_RPATH_OPT" in
5940 echo "$as_me:5940: checking if we need a space after rpath option" >&5
5941 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
5942 cf_save_LIBS="$LIBS"
5947 for cf_add_1lib in ${LD_RPATH_OPT}$libdir; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
5949 for cf_add_1lib in $cf_add_0lib; do
5950 for cf_add_2lib in $cf_add_libs; do
5951 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
5956 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
5960 cat >"conftest.$ac_ext" <<_ACEOF
5961 #line 5961 "configure"
5962 #include "confdefs.h"
5972 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
5973 if { (eval echo "$as_me:5973: \"$ac_link\"") >&5
5974 (eval $ac_link) 2>&5
5976 echo "$as_me:5976: \$? = $ac_status" >&5
5977 (exit "$ac_status"); } &&
5978 { ac_try='test -s "conftest$ac_exeext"'
5979 { (eval echo "$as_me:5979: \"$ac_try\"") >&5
5982 echo "$as_me:5982: \$? = $ac_status" >&5
5983 (exit "$ac_status"); }; }; then
5986 echo "$as_me: failed program was:" >&5
5987 cat "conftest.$ac_ext" >&5
5990 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
5991 LIBS="$cf_save_LIBS"
5992 echo "$as_me:5992: result: $cf_rpath_space" >&5
5993 echo "${ECHO_T}$cf_rpath_space" >&6
5994 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
6003 INSTALL_LIB="-m 644"
6004 : ${rel_builddir:=.}
6010 cf_cv_do_symlinks=no
6012 test "$cf_cv_enable_rpath" = yes && cf_ld_rpath_opt="$LD_RPATH_OPT"
6014 echo "$as_me:6014: checking if release/abi version should be used for shared libs" >&5
6015 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
6017 # Check whether --with-shlib-version or --without-shlib-version was given.
6018 if test "${with_shlib_version+set}" = set; then
6019 withval="$with_shlib_version"
6020 test -z "$withval" && withval=auto
6023 cf_cv_shlib_version=auto
6026 cf_cv_shlib_version=$withval
6029 echo "$as_me:6029: result: $withval" >&5
6030 echo "${ECHO_T}$withval" >&6
6031 { { echo "$as_me:6031: error: option value must be one of: rel, abi, or auto" >&5
6032 echo "$as_me: error: option value must be one of: rel, abi, or auto" >&2;}
6033 { (exit 1); exit 1; }; }
6038 cf_cv_shlib_version=auto
6040 echo "$as_me:6040: result: $cf_cv_shlib_version" >&5
6041 echo "${ECHO_T}$cf_cv_shlib_version" >&6
6046 # Some less-capable ports of gcc support only -fpic
6050 if test "$GCC" = yes
6054 case "$cf_cv_system_name" in
6055 (*linux*) # e.g., PGI compiler
6061 if test "$cf_try_fPIC" = yes
6063 echo "$as_me:6063: checking which $CC option to use" >&5
6064 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
6065 cf_save_CFLAGS="$CFLAGS"
6066 for CC_SHARED_OPTS in -fPIC -fpic ''
6068 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
6069 cat >"conftest.$ac_ext" <<_ACEOF
6070 #line 6070 "configure"
6071 #include "confdefs.h"
6081 rm -f "conftest.$ac_objext"
6082 if { (eval echo "$as_me:6082: \"$ac_compile\"") >&5
6083 (eval $ac_compile) 2>&5
6085 echo "$as_me:6085: \$? = $ac_status" >&5
6086 (exit "$ac_status"); } &&
6087 { ac_try='test -s "conftest.$ac_objext"'
6088 { (eval echo "$as_me:6088: \"$ac_try\"") >&5
6091 echo "$as_me:6091: \$? = $ac_status" >&5
6092 (exit "$ac_status"); }; }; then
6095 echo "$as_me: failed program was:" >&5
6096 cat "conftest.$ac_ext" >&5
6098 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6100 echo "$as_me:6100: result: $CC_SHARED_OPTS" >&5
6101 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
6102 CFLAGS="$cf_save_CFLAGS"
6105 cf_cv_shlib_version_infix=no
6107 case "$cf_cv_system_name" in
6108 (aix4.3-9*|aix[5-7]*)
6109 if test "$GCC" = yes; then
6110 CC_SHARED_OPTS='-Wl,-brtl'
6111 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6113 CC_SHARED_OPTS='-brtl'
6114 # as well as '-qpic=large -G' or perhaps "-bM:SRE -bnoentry -bexpall"
6115 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -G -Wl,-brtl -Wl,-blibpath:${RPATH_LIST}:/usr/lib -o $@'
6119 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
6123 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6124 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6125 cf_cv_shlib_version=cygdll
6126 cf_cv_shlib_version_infix=cygdll
6129 cat >mk_shared_lib.sh <<-CF_EOF
6132 IMPORT_LIB=\`echo "\$1" | sed -e 's/cyg/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6135 Linking shared library
6136 ** SHARED_LIB \$SHARED_LIB
6137 ** IMPORT_LIB \$IMPORT_LIB
6139 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6141 chmod +x mk_shared_lib.sh
6145 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6146 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6147 cf_cv_shlib_version=msysdll
6148 cf_cv_shlib_version_infix=msysdll
6151 cat >mk_shared_lib.sh <<-CF_EOF
6154 IMPORT_LIB=\`echo "\$1" | sed -e 's/msys-/lib/' -e 's/[0-9]*\.dll$/.dll.a/'\`
6157 Linking shared library
6158 ** SHARED_LIB \$SHARED_LIB
6159 ** IMPORT_LIB \$IMPORT_LIB
6161 exec \$* ${LDFLAGS} -shared -Wl,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6163 chmod +x mk_shared_lib.sh
6166 cf_try_cflags="no-cpp-precomp"
6167 CC_SHARED_OPTS="-dynamic"
6168 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dynamiclib -install_name ${libdir}/`basename $@` -compatibility_version ${ABI_VERSION} -current_version ${ABI_VERSION} -o $@'
6169 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
6170 cf_cv_shlib_version_infix=yes
6171 echo "$as_me:6171: checking if ld -search_paths_first works" >&5
6172 echo $ECHO_N "checking if ld -search_paths_first works... $ECHO_C" >&6
6173 if test "${cf_cv_ldflags_search_paths_first+set}" = set; then
6174 echo $ECHO_N "(cached) $ECHO_C" >&6
6177 cf_save_LDFLAGS=$LDFLAGS
6178 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6179 cat >"conftest.$ac_ext" <<_ACEOF
6180 #line 6180 "configure"
6181 #include "confdefs.h"
6191 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6192 if { (eval echo "$as_me:6192: \"$ac_link\"") >&5
6193 (eval $ac_link) 2>&5
6195 echo "$as_me:6195: \$? = $ac_status" >&5
6196 (exit "$ac_status"); } &&
6197 { ac_try='test -s "conftest$ac_exeext"'
6198 { (eval echo "$as_me:6198: \"$ac_try\"") >&5
6201 echo "$as_me:6201: \$? = $ac_status" >&5
6202 (exit "$ac_status"); }; }; then
6203 cf_cv_ldflags_search_paths_first=yes
6205 echo "$as_me: failed program was:" >&5
6206 cat "conftest.$ac_ext" >&5
6207 cf_cv_ldflags_search_paths_first=no
6209 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6210 LDFLAGS=$cf_save_LDFLAGS
6212 echo "$as_me:6212: result: $cf_cv_ldflags_search_paths_first" >&5
6213 echo "${ECHO_T}$cf_cv_ldflags_search_paths_first" >&6
6214 if test "$cf_cv_ldflags_search_paths_first" = yes; then
6215 LDFLAGS="$LDFLAGS -Wl,-search_paths_first"
6220 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6221 if test "$cf_cv_shlib_version" = rel; then
6222 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6224 cf_cv_shared_soname='`basename $@`'
6227 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6230 # HP-UX 8.07 ld lacks "+b" option used for libdir search-list
6231 if test "$GCC" != yes; then
6234 MK_SHARED_LIB='${LD} ${LDFLAGS} -b -o $@'
6235 INSTALL_LIB="-m 555"
6238 # (tested with gcc 2.7.2 -- I don't have c89)
6239 if test "$GCC" = yes; then
6240 LD_SHARED_OPTS='-Xlinker +b -Xlinker ${libdir}'
6243 LD_SHARED_OPTS='-Wl,+b,${libdir}'
6245 MK_SHARED_LIB='${LD} ${LDFLAGS} +b ${libdir} -b -o $@'
6246 # HP-UX shared libraries must be executable, and should be
6247 # readonly to exploit a quirk in the memory manager.
6248 INSTALL_LIB="-m 555"
6251 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6252 if test "$cf_cv_shlib_version" = rel; then
6253 cf_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6255 cf_shared_soname='`basename $@`'
6258 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-rpath,${RPATH_LIST} -Wl,-h,'$cf_shared_soname' -o $@'
6261 if test "$cf_cv_enable_rpath" = yes ; then
6262 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6264 # tested with IRIX 5.2 and 'cc'.
6265 if test "$GCC" != yes; then
6266 CC_SHARED_OPTS='-KPIC'
6267 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -rdata_shared -soname `basename $@` -o $@'
6269 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,`basename $@` -o $@'
6271 cf_cv_rm_so_locs=yes
6273 (linux*|gnu*|k*bsd*-gnu)
6274 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6275 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6276 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6278 if test "$cf_cv_enable_rpath" = yes ; then
6279 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6282 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6283 if test "$cf_cv_shlib_version" = rel; then
6284 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6286 cf_cv_shared_soname='`basename $@`'
6289 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6292 cf_cv_shlib_version=msvcdll
6293 cf_cv_shlib_version_infix=msvcdll
6296 if test "$DFT_LWR_MODEL" = "shared" ; then
6297 LOCAL_LDFLAGS="-link -dll"
6298 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6299 EXTRA_LDFLAGS="-link -dll $EXTRA_LDFLAGS"
6302 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${LD} ${CFLAGS}'
6303 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.lib"
6304 cat >mk_shared_lib.sh <<-CF_EOF
6307 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.lib/'\`
6312 Linking shared library
6313 ** SHARED LIB \$SHARED_LIB
6314 ** IMPORT_LIB \$IMPORT_LIB
6316 args=\$(echo \$* | sed -E "s#-l(\w*)#\1.dll.lib#g" | sed -E "s#-L(\w*)#-LIBPATH:\1#g")
6317 exec \$my_ld -DLL -IMPLIB:"\${IMPORT_LIB}" -OUT:"\${SHARED_LIB}" ${LDFLAGS} \$args
6318 mv "\${IMPORT_LIB}" "\${IMPORT_LIB}"
6320 chmod +x mk_shared_lib.sh
6321 cat >mk_prog.sh <<-CF_EOF
6324 # Ignore first argument (compiler) and use LD (link.exe) unconditionally
6327 ldopts=("/subsystem:console")
6330 while test \$# -gt 0; do
6333 # ignore -link argument
6336 # ignore runtime-library option
6351 libs+=("\`echo \"\$1\" | sed \"s/^-l//\"\`")
6354 ldopts+=("\`echo \"\$1\" | sed \"s/^-L/-LIBPATH:/\"\`")
6360 for linkarg in \`echo '\$1' | sed -e 's/-Wl,//' -e 's/,/ /'\`; do
6361 ldopts+=("\${linkarg}")
6369 ldopts+=("-out:\$1")
6378 if [ "\$isdll" -ne 0 ]; then
6379 for lib in \${libs[*]}; do
6380 ldopts+=("\$lib.dll.lib")
6383 for lib in \${libs[*]}; do
6384 ldopts+=("\$lib.lib")
6389 ** ld options: "\${ldopts[@]}"
6391 exec \$LD \${ldopts[@]}
6394 LINK_PROGS="$SHELL ${rel_builddir}/mk_prog.sh"
6395 LINK_TESTS="$SHELL ${rel_builddir}/mk_prog.sh"
6398 cf_cv_shlib_version=mingw
6399 cf_cv_shlib_version_infix=mingw
6402 if test "$DFT_LWR_MODEL" = "shared" ; then
6403 LOCAL_LDFLAGS="-Wl,--enable-auto-import"
6404 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6405 EXTRA_LDFLAGS="-Wl,--enable-auto-import $EXTRA_LDFLAGS"
6408 MK_SHARED_LIB=$SHELL' '$rel_builddir'/mk_shared_lib.sh $@ ${CC} ${CFLAGS}'
6409 RM_SHARED_OPTS="$RM_SHARED_OPTS $rel_builddir/mk_shared_lib.sh *.dll.a"
6410 cat >mk_shared_lib.sh <<-CF_EOF
6413 IMPORT_LIB=\`echo "\$1" | sed -e 's/[0-9]*\.dll$/.dll.a/'\`
6416 Linking shared library
6417 ** SHARED_LIB \$SHARED_LIB
6418 ** IMPORT_LIB \$IMPORT_LIB
6420 exec \$* ${LDFLAGS} -shared -Wl,--enable-auto-import,--out-implib=\${IMPORT_LIB} -Wl,--export-all-symbols -o \${SHARED_LIB}
6422 chmod +x mk_shared_lib.sh
6424 (openbsd[2-9].*|mirbsd*)
6425 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6426 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6427 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6429 if test "$cf_cv_enable_rpath" = yes ; then
6430 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6432 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6434 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6435 if test "$cf_cv_shlib_version" = rel; then
6436 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6438 cf_cv_shared_soname='`basename $@`'
6441 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-Bshareable,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6445 MK_SHARED_LIB='${LD} -Wshared -Weld=-export_all -o $@'
6449 MK_SHARED_LIB='${LD} -Wshared -Wxld=-export_all -o $@'
6451 (nto-qnx*|openbsd*|freebsd[12].*)
6452 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6453 MK_SHARED_LIB='${LD} ${LDFLAGS} -Bshareable -o $@'
6454 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6456 (dragonfly*|freebsd*)
6457 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6458 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6459 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6460 LOCAL_LDFLAGS2="${cf_ld_rpath_opt}\${RPATH_LIST} $LOCAL_LDFLAGS"
6461 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6464 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6465 if test "$cf_cv_shlib_version" = rel; then
6466 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6468 cf_cv_shared_soname='`basename $@`'
6471 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $@'
6474 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
6475 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_enable_rpath" = yes ; then
6476 LOCAL_LDFLAGS="${cf_ld_rpath_opt}\$(LOCAL_LIBDIR)"
6477 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6478 EXTRA_LDFLAGS="${cf_ld_rpath_opt}\${RPATH_LIST} $EXTRA_LDFLAGS"
6479 if test "$cf_cv_shlib_version" = auto; then
6480 if test -f /usr/libexec/ld.elf_so; then
6481 cf_cv_shlib_version=abi
6483 cf_cv_shlib_version=rel
6487 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6488 if test "$cf_cv_shlib_version" = rel; then
6489 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6491 cf_cv_shared_soname='`basename $@`'
6494 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname' -o $@'
6496 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -o $@'
6500 # tested with OSF/1 V3.2 and 'cc'
6501 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
6502 # link with shared libs).
6503 MK_SHARED_LIB='${LD} ${LDFLAGS} -set_version ${REL_VERSION}:${ABI_VERSION} -expect_unresolved "*" -shared -soname `basename $@`'
6506 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
6509 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
6510 if test "$DFT_LWR_MODEL" = "shared" && test -n "$LD_RPATH_OPT" ; then
6511 LOCAL_LDFLAGS="${LD_RPATH_OPT}\$(LOCAL_LIBDIR)"
6512 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6514 cf_cv_rm_so_locs=yes
6516 (sco3.2v5*) # also uw2* and UW7: hops 13-Apr-98
6517 # tested with osr5.0.5
6518 if test "$GCC" != yes; then
6519 CC_SHARED_OPTS='-belf -KPIC'
6521 MK_SHARED_LIB='${LD} ${LDFLAGS} -dy -G -h `basename $@ .${REL_VERSION}`.${ABI_VERSION} -o $@'
6522 if test "$cf_cv_enable_rpath" = yes ; then
6523 # only way is to set LD_RUN_PATH but no switch for it
6526 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6527 LINK_PROGS='LD_RUN_PATH=${libdir}'
6528 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
6531 # tested with SunOS 4.1.1 and gcc 2.7.0
6532 if test "$GCC" != yes; then
6533 CC_SHARED_OPTS='-KPIC'
6535 MK_SHARED_LIB='${LD} ${LDFLAGS} -assert pure-text -o $@'
6536 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6539 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
6540 # tested with SunOS 5.10 (solaris 10) and gcc 3.4.3
6541 if test "$DFT_LWR_MODEL" = "shared" ; then
6542 LOCAL_LDFLAGS="-R \$(LOCAL_LIBDIR):\${libdir}"
6543 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
6545 if test "$cf_cv_enable_rpath" = yes ; then
6546 EXTRA_LDFLAGS="-R \${libdir} $EXTRA_LDFLAGS"
6549 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
6550 if test "$cf_cv_shlib_version" = rel; then
6551 cf_cv_shared_soname='`basename $@ .${REL_VERSION}`.${ABI_VERSION}'
6553 cf_cv_shared_soname='`basename $@`'
6556 if test "$GCC" != yes; then
6557 cf_save_CFLAGS="$CFLAGS"
6558 for cf_shared_opts in -xcode=pic32 -xcode=pic13 -KPIC -Kpic -O
6560 CFLAGS="$cf_shared_opts $cf_save_CFLAGS"
6561 cat >"conftest.$ac_ext" <<_ACEOF
6562 #line 6562 "configure"
6563 #include "confdefs.h"
6573 rm -f "conftest.$ac_objext"
6574 if { (eval echo "$as_me:6574: \"$ac_compile\"") >&5
6575 (eval $ac_compile) 2>&5
6577 echo "$as_me:6577: \$? = $ac_status" >&5
6578 (exit "$ac_status"); } &&
6579 { ac_try='test -s "conftest.$ac_objext"'
6580 { (eval echo "$as_me:6580: \"$ac_try\"") >&5
6583 echo "$as_me:6583: \$? = $ac_status" >&5
6584 (exit "$ac_status"); }; }; then
6587 echo "$as_me: failed program was:" >&5
6588 cat "conftest.$ac_ext" >&5
6590 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
6592 CFLAGS="$cf_save_CFLAGS"
6593 CC_SHARED_OPTS=$cf_shared_opts
6594 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -dy -G -h '$cf_cv_shared_soname' -o $@'
6596 MK_SHARED_LIB='${CC} ${LDFLAGS} ${CFLAGS} -shared -dy -G -h '$cf_cv_shared_soname' -o $@'
6599 (sysv5uw7*|unix_sv*)
6600 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
6601 if test "$GCC" != yes; then
6602 CC_SHARED_OPTS='-KPIC'
6604 MK_SHARED_LIB='${LD} ${LDFLAGS} -d y -G -o $@'
6607 CC_SHARED_OPTS='unknown'
6608 MK_SHARED_LIB='echo unknown'
6612 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
6613 case "$cf_cv_shlib_version" in
6615 case "$MK_SHARED_LIB" in
6617 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
6620 { echo "$as_me:6620: WARNING: ignored --with-shlib-version" >&5
6621 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
6627 if test -n "$cf_try_cflags"
6629 cat > conftest.$ac_ext <<EOF
6630 #line 6630 "${as_me:-configure}"
6632 int main(int argc, char *argv[])
6635 return (argv[argc-1] == 0) ;
6638 cf_save_CFLAGS="$CFLAGS"
6639 for cf_opt in $cf_try_cflags
6641 CFLAGS="$cf_save_CFLAGS -$cf_opt"
6642 echo "$as_me:6642: checking if CFLAGS option -$cf_opt works" >&5
6643 echo $ECHO_N "checking if CFLAGS option -$cf_opt works... $ECHO_C" >&6
6644 if { (eval echo "$as_me:6644: \"$ac_compile\"") >&5
6645 (eval $ac_compile) 2>&5
6647 echo "$as_me:6647: \$? = $ac_status" >&5
6648 (exit "$ac_status"); }; then
6649 echo "$as_me:6649: result: yes" >&5
6650 echo "${ECHO_T}yes" >&6
6651 cf_save_CFLAGS="$CFLAGS"
6653 echo "$as_me:6653: result: no" >&5
6654 echo "${ECHO_T}no" >&6
6657 CFLAGS="$cf_save_CFLAGS"
6660 # RPATH_LIST is a colon-separated list of directories
6661 test -n "$cf_ld_rpath_opt" && MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\${RPATH_LIST}"
6662 test -z "$RPATH_LIST" && RPATH_LIST="\${libdir}"
6664 test "$cf_cv_rm_so_locs" = yes && RM_SHARED_OPTS="$RM_SHARED_OPTS so_locations"
6666 test -n "$verbose" && echo " CC_SHARED_OPTS: $CC_SHARED_OPTS" 1>&6
6668 echo "${as_me:-configure}:6668: testing CC_SHARED_OPTS: $CC_SHARED_OPTS ..." 1>&5
6670 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6672 echo "${as_me:-configure}:6672: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6674 for model in $cf_list_models ; do
6678 echo "$as_me:6678: checking for additional libtool options" >&5
6679 echo $ECHO_N "checking for additional libtool options... $ECHO_C" >&6
6681 # Check whether --with-libtool-opts or --without-libtool-opts was given.
6682 if test "${with_libtool_opts+set}" = set; then
6683 withval="$with_libtool_opts"
6684 with_libtool_opts=$withval
6686 with_libtool_opts=no
6688 echo "$as_me:6688: result: $with_libtool_opts" >&5
6689 echo "${ECHO_T}$with_libtool_opts" >&6
6691 case .$with_libtool_opts in
6695 LIBTOOL_OPTS="$LIBTOOL_OPTS $with_libtool_opts"
6699 echo "$as_me:6699: checking if exported-symbols file should be used" >&5
6700 echo $ECHO_N "checking if exported-symbols file should be used... $ECHO_C" >&6
6702 # Check whether --with-export-syms or --without-export-syms was given.
6703 if test "${with_export_syms+set}" = set; then
6704 withval="$with_export_syms"
6705 with_export_syms=$withval
6709 if test "x$with_export_syms" = xyes
6711 with_export_syms='${top_srcdir}/package/${PACKAGE}.sym'
6714 echo "$as_me:6714: result: $with_export_syms" >&5
6715 echo "${ECHO_T}$with_export_syms" >&6
6716 if test "x$with_export_syms" != xno
6718 EXPORT_SYMS="-export-symbols $with_export_syms"
6724 if test "$CC_SHARED_OPTS" = "unknown"; then
6725 { { echo "$as_me:6725: error: Shared libraries are not supported in this version" >&5
6726 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
6727 { (exit 1); exit 1; }; }
6729 # workaround for inept transition to PIE vs PIC...
6730 echo "$as_me:6730: checking if current CFLAGS link properly" >&5
6731 echo $ECHO_N "checking if current CFLAGS link properly... $ECHO_C" >&6
6732 cat >"conftest.$ac_ext" <<_ACEOF
6733 #line 6733 "configure"
6734 #include "confdefs.h"
6739 printf("Hello work\\n");
6744 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
6745 if { (eval echo "$as_me:6745: \"$ac_link\"") >&5
6746 (eval $ac_link) 2>&5
6748 echo "$as_me:6748: \$? = $ac_status" >&5
6749 (exit "$ac_status"); } &&
6750 { ac_try='test -s "conftest$ac_exeext"'
6751 { (eval echo "$as_me:6751: \"$ac_try\"") >&5
6754 echo "$as_me:6754: \$? = $ac_status" >&5
6755 (exit "$ac_status"); }; }; then
6758 echo "$as_me: failed program was:" >&5
6759 cat "conftest.$ac_ext" >&5
6762 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
6763 echo "$as_me:6763: result: $cf_cflags_work" >&5
6764 echo "${ECHO_T}$cf_cflags_work" >&6
6765 if test "$cf_cflags_work" = no
6767 test -n "$verbose" && echo " try to work around by appending shared-options" 1>&6
6769 echo "${as_me:-configure}:6769: testing try to work around by appending shared-options ..." 1>&5
6771 CFLAGS="$CFLAGS $CC_SHARED_OPTS"
6774 echo "$as_me:6774: checking if versioned-symbols file should be used" >&5
6775 echo $ECHO_N "checking if versioned-symbols file should be used... $ECHO_C" >&6
6777 # Check whether --with-versioned-syms or --without-versioned-syms was given.
6778 if test "${with_versioned_syms+set}" = set; then
6779 withval="$with_versioned_syms"
6780 with_versioned_syms=$withval
6782 with_versioned_syms=no
6784 case "x$with_versioned_syms" in
6786 with_versioned_syms='${top_srcdir}/package/${PACKAGE}.map'
6792 test -f "$with_versioned_syms" || { { echo "$as_me:6792: error: expected a filename: $with_versioned_syms" >&5
6793 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
6794 { (exit 1); exit 1; }; }
6797 test -f "$with_versioned_syms" || { { echo "$as_me:6797: error: expected a filename: $with_versioned_syms" >&5
6798 echo "$as_me: error: expected a filename: $with_versioned_syms" >&2;}
6799 { (exit 1); exit 1; }; }
6800 with_versioned_syms=`pwd`/"$with_versioned_syms"
6803 echo "$as_me:6803: result: $with_versioned_syms" >&5
6804 echo "${ECHO_T}$with_versioned_syms" >&6
6810 if test "x$with_versioned_syms" != xno
6812 RESULTING_SYMS=$with_versioned_syms
6813 case "x$MK_SHARED_LIB" in
6815 VERSIONED_SYMS="-Wl,--version-script,\${RESULTING_SYMS}"
6816 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-Wl,%\\${VERSIONED_SYMS} -Wl,%"`
6817 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6819 echo "${as_me:-configure}:6819: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6823 VERSIONED_SYMS="-Wl,-M,\${RESULTING_SYMS}"
6824 MK_SHARED_LIB=`echo "$MK_SHARED_LIB" | sed -e "s%-dy%\\${VERSIONED_SYMS} -dy%"`
6825 test -n "$verbose" && echo " MK_SHARED_LIB: $MK_SHARED_LIB" 1>&6
6827 echo "${as_me:-configure}:6827: testing MK_SHARED_LIB: $MK_SHARED_LIB ..." 1>&5
6831 { echo "$as_me:6831: WARNING: this system does not support versioned-symbols" >&5
6832 echo "$as_me: WARNING: this system does not support versioned-symbols" >&2;}
6836 # Linux ld can selectively override scope, e.g., of symbols beginning with
6837 # "_" by first declaring some as global, and then using a wildcard to
6838 # declare the others as local. Some other loaders cannot do this. Check
6839 # by constructing a (very) simple shared library and inspecting its
6841 if test "x$VERSIONED_SYMS" != "x"
6843 echo "$as_me:6843: checking if wildcards can be used to selectively omit symbols" >&5
6844 echo $ECHO_N "checking if wildcards can be used to selectively omit symbols... $ECHO_C" >&6
6850 cat >conftest.ver <<EOF
6879 cat >conftest.$ac_ext <<EOF
6880 #line 6880 "configure"
6881 int _ismissing(void) { return 1; }
6882 int _localf1(void) { return 1; }
6883 int _localf2(void) { return 2; }
6884 int globalf1(void) { return 1; }
6885 int globalf2(void) { return 2; }
6886 int _sublocalf1(void) { return 1; }
6887 int _sublocalf2(void) { return 2; }
6888 int subglobalf1(void) { return 1; }
6889 int subglobalf2(void) { return 2; }
6891 cat >conftest.mk <<EOF
6894 CPPFLAGS=${CPPFLAGS}
6897 VERSIONED_SYMS=${VERSIONED_SYMS}
6898 RESULTING_SYMS=conftest.ver
6899 MK_SHARED_LIB=${MK_SHARED_LIB}
6900 conftest.so: conftest.$ac_cv_objext
6901 \$(MK_SHARED_LIB) conftest.$ac_cv_objext
6904 # compile source, make library
6905 if make -f conftest.mk 2>&5 >/dev/null
6907 # test for missing symbol in either Data or Text section
6908 cf_missing="`nm -P conftest.so 2>&5 |${FGREP-fgrep} _ismissing | ${EGREP-egrep} '[ ][DT][ ]'`"
6909 test -n "$cf_missing" && WILDCARD_SYMS=yes
6911 echo "$as_me:6911: result: $WILDCARD_SYMS" >&5
6912 echo "${ECHO_T}$WILDCARD_SYMS" >&6
6921 ### Checks for special libraries, must be done up-front.
6924 echo "$as_me:6924: checking if you want to link with the GPM mouse library" >&5
6925 echo $ECHO_N "checking if you want to link with the GPM mouse library... $ECHO_C" >&6
6927 # Check whether --with-gpm or --without-gpm was given.
6928 if test "${with_gpm+set}" = set; then
6934 echo "$as_me:6934: result: $with_gpm" >&5
6935 echo "${ECHO_T}$with_gpm" >&6
6937 if test "$with_gpm" != no ; then
6938 echo "$as_me:6938: checking for gpm.h" >&5
6939 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6
6940 if test "${ac_cv_header_gpm_h+set}" = set; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6943 cat >"conftest.$ac_ext" <<_ACEOF
6944 #line 6944 "configure"
6945 #include "confdefs.h"
6948 if { (eval echo "$as_me:6948: \"$ac_cpp "conftest.$ac_ext"\"") >&5
6949 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
6951 $EGREP -v '^ *\+' conftest.er1 >conftest.err
6953 cat conftest.err >&5
6954 echo "$as_me:6954: \$? = $ac_status" >&5
6955 (exit "$ac_status"); } >/dev/null; then
6956 if test -s conftest.err; then
6957 ac_cpp_err=$ac_c_preproc_warn_flag
6964 if test -z "$ac_cpp_err"; then
6965 ac_cv_header_gpm_h=yes
6967 echo "$as_me: failed program was:" >&5
6968 cat "conftest.$ac_ext" >&5
6969 ac_cv_header_gpm_h=no
6971 rm -f conftest.err "conftest.$ac_ext"
6973 echo "$as_me:6973: result: $ac_cv_header_gpm_h" >&5
6974 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6
6975 if test "$ac_cv_header_gpm_h" = yes; then
6977 cat >>confdefs.h <<\EOF
6978 #define HAVE_GPM_H 1
6981 if test "$with_gpm" != yes && test "$with_gpm" != maybe ; then
6982 test -n "$verbose" && echo " assuming we really have GPM library" 1>&6
6984 echo "${as_me:-configure}:6984: testing assuming we really have GPM library ..." 1>&5
6986 cat >>confdefs.h <<\EOF
6987 #define HAVE_LIBGPM 1
6992 echo "$as_me:6992: checking for Gpm_Open in -lgpm" >&5
6993 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
6994 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6997 ac_check_lib_save_LIBS=$LIBS
6999 cat >"conftest.$ac_ext" <<_ACEOF
7000 #line 7000 "configure"
7001 #include "confdefs.h"
7003 /* Override any gcc2 internal prototype to avoid an error. */
7007 /* We use char because int might match the return type of a gcc2
7008 builtin and then its argument prototype would still apply. */
7018 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7019 if { (eval echo "$as_me:7019: \"$ac_link\"") >&5
7020 (eval $ac_link) 2>&5
7022 echo "$as_me:7022: \$? = $ac_status" >&5
7023 (exit "$ac_status"); } &&
7024 { ac_try='test -s "conftest$ac_exeext"'
7025 { (eval echo "$as_me:7025: \"$ac_try\"") >&5
7028 echo "$as_me:7028: \$? = $ac_status" >&5
7029 (exit "$ac_status"); }; }; then
7030 ac_cv_lib_gpm_Gpm_Open=yes
7032 echo "$as_me: failed program was:" >&5
7033 cat "conftest.$ac_ext" >&5
7034 ac_cv_lib_gpm_Gpm_Open=no
7036 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7037 LIBS=$ac_check_lib_save_LIBS
7039 echo "$as_me:7039: result: $ac_cv_lib_gpm_Gpm_Open" >&5
7040 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
7041 if test "$ac_cv_lib_gpm_Gpm_Open" = yes; then
7045 if test "$with_gpm" = maybe; then
7046 { echo "$as_me:7046: WARNING: Cannot link with GPM library" >&5
7047 echo "$as_me: WARNING: Cannot link with GPM library" >&2;}
7050 { { echo "$as_me:7050: error: Cannot link with GPM library" >&5
7051 echo "$as_me: error: Cannot link with GPM library" >&2;}
7052 { (exit 1); exit 1; }; }
7061 test "$with_gpm" != maybe && { echo "$as_me:7061: WARNING: Cannot find GPM header" >&5
7062 echo "$as_me: WARNING: Cannot find GPM header" >&2;}
7069 if test "$with_gpm" != no ; then
7070 echo "$as_me:7070: checking if you want to load GPM dynamically" >&5
7071 echo $ECHO_N "checking if you want to load GPM dynamically... $ECHO_C" >&6
7073 # Check whether --with-dlsym or --without-dlsym was given.
7074 if test "${with_dlsym+set}" = set; then
7075 withval="$with_dlsym"
7080 echo "$as_me:7080: result: $with_dlsym" >&5
7081 echo "${ECHO_T}$with_dlsym" >&6
7082 if test "x$with_dlsym" = xyes ; then
7085 echo "$as_me:7085: checking for dlsym" >&5
7086 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6
7087 if test "${ac_cv_func_dlsym+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7090 cat >"conftest.$ac_ext" <<_ACEOF
7091 #line 7091 "configure"
7092 #include "confdefs.h"
7093 #define dlsym autoconf_temporary
7094 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
7101 /* We use char because int might match the return type of a gcc2
7102 builtin and then its argument prototype would still apply. */
7109 /* The GNU C library defines stubs for functions which it implements
7110 to always fail with ENOSYS. Some functions are actually named
7111 something starting with __ and the normal name is an alias. */
7112 #if defined (__stub_dlsym) || defined (__stub___dlsym)
7113 #error found stub for dlsym
7121 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7122 if { (eval echo "$as_me:7122: \"$ac_link\"") >&5
7123 (eval $ac_link) 2>&5
7125 echo "$as_me:7125: \$? = $ac_status" >&5
7126 (exit "$ac_status"); } &&
7127 { ac_try='test -s "conftest$ac_exeext"'
7128 { (eval echo "$as_me:7128: \"$ac_try\"") >&5
7131 echo "$as_me:7131: \$? = $ac_status" >&5
7132 (exit "$ac_status"); }; }; then
7133 ac_cv_func_dlsym=yes
7135 echo "$as_me: failed program was:" >&5
7136 cat "conftest.$ac_ext" >&5
7139 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7141 echo "$as_me:7141: result: $ac_cv_func_dlsym" >&5
7142 echo "${ECHO_T}$ac_cv_func_dlsym" >&6
7143 if test "$ac_cv_func_dlsym" = yes; then
7148 echo "$as_me:7148: checking for dlsym in -ldl" >&5
7149 echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6
7150 if test "${ac_cv_lib_dl_dlsym+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7153 ac_check_lib_save_LIBS=$LIBS
7155 cat >"conftest.$ac_ext" <<_ACEOF
7156 #line 7156 "configure"
7157 #include "confdefs.h"
7159 /* Override any gcc2 internal prototype to avoid an error. */
7163 /* We use char because int might match the return type of a gcc2
7164 builtin and then its argument prototype would still apply. */
7174 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7175 if { (eval echo "$as_me:7175: \"$ac_link\"") >&5
7176 (eval $ac_link) 2>&5
7178 echo "$as_me:7178: \$? = $ac_status" >&5
7179 (exit "$ac_status"); } &&
7180 { ac_try='test -s "conftest$ac_exeext"'
7181 { (eval echo "$as_me:7181: \"$ac_try\"") >&5
7184 echo "$as_me:7184: \$? = $ac_status" >&5
7185 (exit "$ac_status"); }; }; then
7186 ac_cv_lib_dl_dlsym=yes
7188 echo "$as_me: failed program was:" >&5
7189 cat "conftest.$ac_ext" >&5
7190 ac_cv_lib_dl_dlsym=no
7192 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7193 LIBS=$ac_check_lib_save_LIBS
7195 echo "$as_me:7195: result: $ac_cv_lib_dl_dlsym" >&5
7196 echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6
7197 if test "$ac_cv_lib_dl_dlsym" = yes; then
7205 if test "$cf_have_dlsym" = yes ; then
7206 test "$cf_have_libdl" = yes && {
7210 for cf_add_1lib in -ldl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7212 for cf_add_1lib in $cf_add_0lib; do
7213 for cf_add_2lib in $cf_add_libs; do
7214 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7219 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7224 echo "$as_me:7224: checking whether able to link to dl*() functions" >&5
7225 echo $ECHO_N "checking whether able to link to dl*() functions... $ECHO_C" >&6
7226 cat >"conftest.$ac_ext" <<_ACEOF
7227 #line 7227 "configure"
7228 #include "confdefs.h"
7235 if ((obj = dlopen("filename", 0)) != 0) {
7236 if (dlsym(obj, "symbolname") == 0) {
7244 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7245 if { (eval echo "$as_me:7245: \"$ac_link\"") >&5
7246 (eval $ac_link) 2>&5
7248 echo "$as_me:7248: \$? = $ac_status" >&5
7249 (exit "$ac_status"); } &&
7250 { ac_try='test -s "conftest$ac_exeext"'
7251 { (eval echo "$as_me:7251: \"$ac_try\"") >&5
7254 echo "$as_me:7254: \$? = $ac_status" >&5
7255 (exit "$ac_status"); }; }; then
7257 cat >>confdefs.h <<\EOF
7258 #define HAVE_LIBDL 1
7262 echo "$as_me: failed program was:" >&5
7263 cat "conftest.$ac_ext" >&5
7265 { { echo "$as_me:7265: error: Cannot link test program for libdl" >&5
7266 echo "$as_me: error: Cannot link test program for libdl" >&2;}
7267 { (exit 1); exit 1; }; }
7269 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7270 echo "$as_me:7270: result: ok" >&5
7271 echo "${ECHO_T}ok" >&6
7273 { { echo "$as_me:7273: error: Cannot find dlsym function" >&5
7274 echo "$as_me: error: Cannot find dlsym function" >&2;}
7275 { (exit 1); exit 1; }; }
7278 if test "x$with_gpm" != xyes ; then
7279 test -n "$verbose" && echo " assuming soname for gpm is $with_gpm" 1>&6
7281 echo "${as_me:-configure}:7281: testing assuming soname for gpm is $with_gpm ..." 1>&5
7283 cf_cv_gpm_soname="$with_gpm"
7286 echo "$as_me:7286: checking for soname of gpm library" >&5
7287 echo $ECHO_N "checking for soname of gpm library... $ECHO_C" >&6
7288 if test "${cf_cv_gpm_soname+set}" = set; then
7289 echo $ECHO_N "(cached) $ECHO_C" >&6
7292 cf_cv_gpm_soname=unknown
7293 if test "$cross_compiling" != yes ; then
7294 cat >conftest.$ac_ext <<CF_EOF
7298 if (Gpm_Open(0,0)) Gpm_Close();
7299 ${cf_cv_main_return:-return}(0);
7302 cf_save_LIBS="$LIBS"
7307 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7309 for cf_add_1lib in $cf_add_0lib; do
7310 for cf_add_2lib in $cf_add_libs; do
7311 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7316 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7320 if { (eval echo "$as_me:7320: \"$ac_compile\"") >&5
7321 (eval $ac_compile) 2>&5
7323 echo "$as_me:7323: \$? = $ac_status" >&5
7324 (exit "$ac_status"); } ; then
7325 if { (eval echo "$as_me:7325: \"$ac_link\"") >&5
7326 (eval $ac_link) 2>&5
7328 echo "$as_me:7328: \$? = $ac_status" >&5
7329 (exit "$ac_status"); } ; then
7330 cf_cv_gpm_soname="`ldd \"conftest$ac_exeext\" 2>/dev/null | sed -e 's,^.*/,,' -e 's, .*$,,' | ${FGREP-fgrep} libgpm.`"
7331 test -z "$cf_cv_gpm_soname" && cf_cv_gpm_soname=unknown
7335 LIBS="$cf_save_LIBS"
7339 echo "$as_me:7339: result: $cf_cv_gpm_soname" >&5
7340 echo "${ECHO_T}$cf_cv_gpm_soname" >&6
7343 test "$cf_cv_gpm_soname" != "unknown" &&
7344 cat >>confdefs.h <<EOF
7345 #define LIBGPM_SONAME "$cf_cv_gpm_soname"
7348 SHLIB_LIST="-ldl $SHLIB_LIST"
7350 cf_add_libs="$PRIVATE_LIBS"
7353 for cf_add_1lib in -ldl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7355 for cf_add_1lib in $cf_add_0lib; do
7356 for cf_add_2lib in $cf_add_libs; do
7357 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7362 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7364 PRIVATE_LIBS="$cf_add_libs"
7367 SHLIB_LIST="-lgpm $SHLIB_LIST"
7369 cf_add_libs="$TEST_LIBS"
7372 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7374 for cf_add_1lib in $cf_add_0lib; do
7375 for cf_add_2lib in $cf_add_libs; do
7376 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7381 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7383 TEST_LIBS="$cf_add_libs"
7385 cf_add_libs="$PRIVATE_LIBS"
7388 for cf_add_1lib in -lgpm; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7390 for cf_add_1lib in $cf_add_0lib; do
7391 for cf_add_2lib in $cf_add_libs; do
7392 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7397 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7399 PRIVATE_LIBS="$cf_add_libs"
7403 cat >>confdefs.h <<\EOF
7404 #define HAVE_LIBGPM 1
7407 echo "$as_me:7407: checking for Gpm_Wgetch in -lgpm" >&5
7408 echo $ECHO_N "checking for Gpm_Wgetch in -lgpm... $ECHO_C" >&6
7409 if test "${ac_cv_lib_gpm_Gpm_Wgetch+set}" = set; then
7410 echo $ECHO_N "(cached) $ECHO_C" >&6
7412 ac_check_lib_save_LIBS=$LIBS
7414 cat >"conftest.$ac_ext" <<_ACEOF
7415 #line 7415 "configure"
7416 #include "confdefs.h"
7418 /* Override any gcc2 internal prototype to avoid an error. */
7422 /* We use char because int might match the return type of a gcc2
7423 builtin and then its argument prototype would still apply. */
7433 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7434 if { (eval echo "$as_me:7434: \"$ac_link\"") >&5
7435 (eval $ac_link) 2>&5
7437 echo "$as_me:7437: \$? = $ac_status" >&5
7438 (exit "$ac_status"); } &&
7439 { ac_try='test -s "conftest$ac_exeext"'
7440 { (eval echo "$as_me:7440: \"$ac_try\"") >&5
7443 echo "$as_me:7443: \$? = $ac_status" >&5
7444 (exit "$ac_status"); }; }; then
7445 ac_cv_lib_gpm_Gpm_Wgetch=yes
7447 echo "$as_me: failed program was:" >&5
7448 cat "conftest.$ac_ext" >&5
7449 ac_cv_lib_gpm_Gpm_Wgetch=no
7451 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7452 LIBS=$ac_check_lib_save_LIBS
7454 echo "$as_me:7454: result: $ac_cv_lib_gpm_Gpm_Wgetch" >&5
7455 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Wgetch" >&6
7456 if test "$ac_cv_lib_gpm_Gpm_Wgetch" = yes; then
7458 echo "$as_me:7458: checking if GPM is weakly bound to curses library" >&5
7459 echo $ECHO_N "checking if GPM is weakly bound to curses library... $ECHO_C" >&6
7460 if test "${cf_cv_check_gpm_wgetch+set}" = set; then
7461 echo $ECHO_N "(cached) $ECHO_C" >&6
7464 cf_cv_check_gpm_wgetch=unknown
7465 if test "$cross_compiling" != yes ; then
7467 cat >conftest.$ac_ext <<CF_EOF
7472 ${cf_cv_main_return:-return}(0);
7476 cf_save_LIBS="$LIBS"
7477 # This only works if we can look at the symbol table. If a shared
7478 # library is stripped for install, we cannot use that. So we're forced
7479 # to rely on the static library, noting that some packagers may not
7481 LIBS="-static -lgpm -dynamic $LIBS"
7482 if { (eval echo "$as_me:7482: \"$ac_compile\"") >&5
7483 (eval $ac_compile) 2>&5
7485 echo "$as_me:7485: \$? = $ac_status" >&5
7486 (exit "$ac_status"); } ; then
7487 if { (eval echo "$as_me:7487: \"$ac_link\"") >&5
7488 (eval $ac_link) 2>&5
7490 echo "$as_me:7490: \$? = $ac_status" >&5
7491 (exit "$ac_status"); } ; then
7492 cf_cv_check_gpm_wgetch="`nm \"conftest$ac_exeext\" | ${EGREP-egrep} '\<wgetch\>' | ${EGREP-egrep} '\<[vVwW]\>'`"
7493 test -n "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=yes
7494 test -z "$cf_cv_check_gpm_wgetch" && cf_cv_check_gpm_wgetch=no
7498 LIBS="$cf_save_LIBS"
7502 echo "$as_me:7502: result: $cf_cv_check_gpm_wgetch" >&5
7503 echo "${ECHO_T}$cf_cv_check_gpm_wgetch" >&6
7505 if test "$cf_cv_check_gpm_wgetch" != yes ; then
7506 { echo "$as_me:7506: WARNING: GPM library is already linked with curses - read the FAQ" >&5
7507 echo "$as_me: WARNING: GPM library is already linked with curses - read the FAQ" >&2;}
7514 echo "$as_me:7514: checking if you want to use PCRE2 for regular-expressions" >&5
7515 echo $ECHO_N "checking if you want to use PCRE2 for regular-expressions... $ECHO_C" >&6
7517 # Check whether --with-pcre2 or --without-pcre2 was given.
7518 if test "${with_pcre2+set}" = set; then
7519 withval="$with_pcre2"
7522 test -z "$with_pcre2" && with_pcre2=no
7523 echo "$as_me:7523: result: $with_pcre2" >&5
7524 echo "${ECHO_T}$with_pcre2" >&6
7526 if test "x$with_pcre2" != xno ; then
7528 for cf_with_pcre2 in libpcre2 libpcre2-posix libpcre
7531 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists "$cf_with_pcre2"; then
7532 test -n "$verbose" && echo " found package $cf_with_pcre2" 1>&6
7534 echo "${as_me:-configure}:7534: testing found package $cf_with_pcre2 ..." 1>&5
7536 cf_pkgconfig_incs="`$PKG_CONFIG --cflags "$cf_with_pcre2" 2>/dev/null`"
7537 cf_pkgconfig_libs="`$PKG_CONFIG --libs "$cf_with_pcre2" 2>/dev/null`"
7538 test -n "$verbose" && echo " package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs" 1>&6
7540 echo "${as_me:-configure}:7540: testing package $cf_with_pcre2 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
7542 test -n "$verbose" && echo " package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs" 1>&6
7544 echo "${as_me:-configure}:7544: testing package $cf_with_pcre2 LIBS: $cf_pkgconfig_libs ..." 1>&5
7549 cf_new_extra_cppflags=
7551 for cf_add_cflags in $cf_pkgconfig_incs
7553 case "$cf_fix_cppflags" in
7555 case "$cf_add_cflags" in
7556 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
7557 case "$cf_add_cflags" in
7559 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7561 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7562 && test -z "${cf_tst_cflags}" \
7563 && cf_fix_cppflags=yes
7565 if test "$cf_fix_cppflags" = yes ; then
7567 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7568 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7571 elif test "${cf_tst_cflags}" = "\"'" ; then
7573 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7574 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7584 case "$cf_add_cflags" in
7586 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7588 CPPFLAGS=`echo "$CPPFLAGS" | \
7589 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7590 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7595 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
7596 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
7603 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
7604 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
7611 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7612 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7614 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
7616 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7617 && test -z "${cf_tst_cflags}" \
7618 && cf_fix_cppflags=no
7623 if test -n "$cf_new_cflags" ; then
7625 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
7626 CFLAGS="${CFLAGS}$cf_new_cflags"
7630 if test -n "$cf_new_cppflags" ; then
7632 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7633 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
7637 if test -n "$cf_new_extra_cppflags" ; then
7639 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
7640 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
7647 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7649 for cf_add_1lib in $cf_add_0lib; do
7650 for cf_add_2lib in $cf_add_libs; do
7651 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7656 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7660 cf_with_pcre2_ok=yes; break
7668 cf_with_pcre2_ok=yes || { { echo "$as_me:7668: error: Cannot find PCRE2 library" >&5
7669 echo "$as_me: error: Cannot find PCRE2 library" >&2;}
7670 { (exit 1); exit 1; }; }
7672 cat >>confdefs.h <<\EOF
7673 #define HAVE_LIB_PCRE2 1
7676 # if pkgconfig gave no results, look for the libraries directly
7678 (*pcre2-posix*|*pcreposix*)
7681 echo "$as_me:7681: checking for regcomp in -lpcre2-posix" >&5
7682 echo $ECHO_N "checking for regcomp in -lpcre2-posix... $ECHO_C" >&6
7683 if test "${ac_cv_lib_pcre2_posix_regcomp+set}" = set; then
7684 echo $ECHO_N "(cached) $ECHO_C" >&6
7686 ac_check_lib_save_LIBS=$LIBS
7687 LIBS="-lpcre2-posix $LIBS"
7688 cat >"conftest.$ac_ext" <<_ACEOF
7689 #line 7689 "configure"
7690 #include "confdefs.h"
7692 /* Override any gcc2 internal prototype to avoid an error. */
7696 /* We use char because int might match the return type of a gcc2
7697 builtin and then its argument prototype would still apply. */
7707 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7708 if { (eval echo "$as_me:7708: \"$ac_link\"") >&5
7709 (eval $ac_link) 2>&5
7711 echo "$as_me:7711: \$? = $ac_status" >&5
7712 (exit "$ac_status"); } &&
7713 { ac_try='test -s "conftest$ac_exeext"'
7714 { (eval echo "$as_me:7714: \"$ac_try\"") >&5
7717 echo "$as_me:7717: \$? = $ac_status" >&5
7718 (exit "$ac_status"); }; }; then
7719 ac_cv_lib_pcre2_posix_regcomp=yes
7721 echo "$as_me: failed program was:" >&5
7722 cat "conftest.$ac_ext" >&5
7723 ac_cv_lib_pcre2_posix_regcomp=no
7725 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7726 LIBS=$ac_check_lib_save_LIBS
7728 echo "$as_me:7728: result: $ac_cv_lib_pcre2_posix_regcomp" >&5
7729 echo "${ECHO_T}$ac_cv_lib_pcre2_posix_regcomp" >&6
7730 if test "$ac_cv_lib_pcre2_posix_regcomp" = yes; then
7735 for cf_add_1lib in -lpcre2-posix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7737 for cf_add_1lib in $cf_add_0lib; do
7738 for cf_add_2lib in $cf_add_libs; do
7739 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7744 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7749 echo "$as_me:7749: checking for regcomp in -lpcreposix" >&5
7750 echo $ECHO_N "checking for regcomp in -lpcreposix... $ECHO_C" >&6
7751 if test "${ac_cv_lib_pcreposix_regcomp+set}" = set; then
7752 echo $ECHO_N "(cached) $ECHO_C" >&6
7754 ac_check_lib_save_LIBS=$LIBS
7755 LIBS="-lpcreposix $LIBS"
7756 cat >"conftest.$ac_ext" <<_ACEOF
7757 #line 7757 "configure"
7758 #include "confdefs.h"
7760 /* Override any gcc2 internal prototype to avoid an error. */
7764 /* We use char because int might match the return type of a gcc2
7765 builtin and then its argument prototype would still apply. */
7775 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7776 if { (eval echo "$as_me:7776: \"$ac_link\"") >&5
7777 (eval $ac_link) 2>&5
7779 echo "$as_me:7779: \$? = $ac_status" >&5
7780 (exit "$ac_status"); } &&
7781 { ac_try='test -s "conftest$ac_exeext"'
7782 { (eval echo "$as_me:7782: \"$ac_try\"") >&5
7785 echo "$as_me:7785: \$? = $ac_status" >&5
7786 (exit "$ac_status"); }; }; then
7787 ac_cv_lib_pcreposix_regcomp=yes
7789 echo "$as_me: failed program was:" >&5
7790 cat "conftest.$ac_ext" >&5
7791 ac_cv_lib_pcreposix_regcomp=no
7793 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7794 LIBS=$ac_check_lib_save_LIBS
7796 echo "$as_me:7796: result: $ac_cv_lib_pcreposix_regcomp" >&5
7797 echo "${ECHO_T}$ac_cv_lib_pcreposix_regcomp" >&6
7798 if test "$ac_cv_lib_pcreposix_regcomp" = yes; then
7803 for cf_add_1lib in -lpcreposix; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7805 for cf_add_1lib in $cf_add_0lib; do
7806 for cf_add_2lib in $cf_add_libs; do
7807 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7812 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7817 { { echo "$as_me:7817: error: Cannot find PCRE2 POSIX library" >&5
7818 echo "$as_me: error: Cannot find PCRE2 POSIX library" >&2;}
7819 { (exit 1); exit 1; }; }
7827 # either way, check for the library header files
7829 for ac_header in pcre2posix.h pcreposix.h
7831 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7832 echo "$as_me:7832: checking for $ac_header" >&5
7833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
7837 cat >"conftest.$ac_ext" <<_ACEOF
7838 #line 7838 "configure"
7839 #include "confdefs.h"
7840 #include <$ac_header>
7842 if { (eval echo "$as_me:7842: \"$ac_cpp "conftest.$ac_ext"\"") >&5
7843 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
7845 $EGREP -v '^ *\+' conftest.er1 >conftest.err
7847 cat conftest.err >&5
7848 echo "$as_me:7848: \$? = $ac_status" >&5
7849 (exit "$ac_status"); } >/dev/null; then
7850 if test -s conftest.err; then
7851 ac_cpp_err=$ac_c_preproc_warn_flag
7858 if test -z "$ac_cpp_err"; then
7859 eval "$as_ac_Header=yes"
7861 echo "$as_me: failed program was:" >&5
7862 cat "conftest.$ac_ext" >&5
7863 eval "$as_ac_Header=no"
7865 rm -f conftest.err "conftest.$ac_ext"
7867 echo "$as_me:7867: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
7868 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
7869 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
7870 cat >>confdefs.h <<EOF
7871 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7877 for ac_func in PCRE2regcomp
7879 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7880 echo "$as_me:7880: checking for $ac_func" >&5
7881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7882 if eval "test \"\${$as_ac_var+set}\" = set"; then
7883 echo $ECHO_N "(cached) $ECHO_C" >&6
7885 cat >"conftest.$ac_ext" <<_ACEOF
7886 #line 7886 "configure"
7887 #include "confdefs.h"
7888 #define $ac_func autoconf_temporary
7889 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
7896 /* We use char because int might match the return type of a gcc2
7897 builtin and then its argument prototype would still apply. */
7898 char $ac_func (void);
7904 /* The GNU C library defines stubs for functions which it implements
7905 to always fail with ENOSYS. Some functions are actually named
7906 something starting with __ and the normal name is an alias. */
7907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7908 #error found stub for $ac_func
7916 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
7917 if { (eval echo "$as_me:7917: \"$ac_link\"") >&5
7918 (eval $ac_link) 2>&5
7920 echo "$as_me:7920: \$? = $ac_status" >&5
7921 (exit "$ac_status"); } &&
7922 { ac_try='test -s "conftest$ac_exeext"'
7923 { (eval echo "$as_me:7923: \"$ac_try\"") >&5
7926 echo "$as_me:7926: \$? = $ac_status" >&5
7927 (exit "$ac_status"); }; }; then
7928 eval "$as_ac_var=yes"
7930 echo "$as_me: failed program was:" >&5
7931 cat "conftest.$ac_ext" >&5
7932 eval "$as_ac_var=no"
7934 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
7936 echo "$as_me:7936: result: `eval echo '${'"$as_ac_var"'}'`" >&5
7937 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
7938 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
7939 cat >>confdefs.h <<EOF
7940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7948 # not everyone has "test -c"
7949 if test -c /dev/sysmouse 2>/dev/null ; then
7950 echo "$as_me:7950: checking if you want to use sysmouse" >&5
7951 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
7953 # Check whether --with-sysmouse or --without-sysmouse was given.
7954 if test "${with_sysmouse+set}" = set; then
7955 withval="$with_sysmouse"
7956 cf_with_sysmouse=$withval
7958 cf_with_sysmouse=maybe
7960 if test "$cf_with_sysmouse" != no ; then
7961 cat >"conftest.$ac_ext" <<_ACEOF
7962 #line 7962 "configure"
7963 #include "confdefs.h"
7965 #include <osreldate.h>
7966 #if (__FreeBSD_version >= 400017)
7967 #include <sys/consio.h>
7968 #include <sys/fbio.h>
7970 #include <machine/console.h>
7977 struct mouse_info the_mouse;
7978 ioctl(0, CONS_MOUSECTL, &the_mouse);
7984 rm -f "conftest.$ac_objext"
7985 if { (eval echo "$as_me:7985: \"$ac_compile\"") >&5
7986 (eval $ac_compile) 2>&5
7988 echo "$as_me:7988: \$? = $ac_status" >&5
7989 (exit "$ac_status"); } &&
7990 { ac_try='test -s "conftest.$ac_objext"'
7991 { (eval echo "$as_me:7991: \"$ac_try\"") >&5
7994 echo "$as_me:7994: \$? = $ac_status" >&5
7995 (exit "$ac_status"); }; }; then
7996 cf_with_sysmouse=yes
7998 echo "$as_me: failed program was:" >&5
7999 cat "conftest.$ac_ext" >&5
8002 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
8004 echo "$as_me:8004: result: $cf_with_sysmouse" >&5
8005 echo "${ECHO_T}$cf_with_sysmouse" >&6
8006 test "$cf_with_sysmouse" = yes &&
8007 cat >>confdefs.h <<\EOF
8008 #define USE_SYSMOUSE 1
8013 # pretend that ncurses==ncursesw==ncursest
8014 echo "$as_me:8014: checking if you want to disable library suffixes" >&5
8015 echo $ECHO_N "checking if you want to disable library suffixes... $ECHO_C" >&6
8017 # Check whether --enable-lib-suffixes or --disable-lib-suffixes was given.
8018 if test "${enable_lib_suffixes+set}" = set; then
8019 enableval="$enable_lib_suffixes"
8020 test "$enableval" != no && enableval=yes
8021 if test "$enableval" != "yes" ; then
8022 disable_lib_suffixes=yes
8024 disable_lib_suffixes=no
8028 disable_lib_suffixes=no
8031 echo "$as_me:8031: result: $disable_lib_suffixes" >&5
8032 echo "${ECHO_T}$disable_lib_suffixes" >&6
8034 ### If we're building with rpath, try to link non-standard libs that way too.
8035 if test "$DFT_LWR_MODEL" = "shared" && test "x$cf_cv_enable_rpath" != xno; then
8037 echo "$as_me:8037: checking if rpath-hack should be disabled" >&5
8038 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
8040 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
8041 if test "${enable_rpath_hack+set}" = set; then
8042 enableval="$enable_rpath_hack"
8043 test "$enableval" != no && enableval=yes
8044 if test "$enableval" != "yes" ; then
8045 enable_rpath_hack=no
8047 enable_rpath_hack=yes
8051 enable_rpath_hack=yes
8054 if test "x$enable_rpath_hack" = xno; then cf_disable_rpath_hack=yes; else cf_disable_rpath_hack=no; fi
8055 echo "$as_me:8055: result: $cf_disable_rpath_hack" >&5
8056 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
8058 if test "$enable_rpath_hack" = yes ; then
8060 echo "$as_me:8060: checking for updated LDFLAGS" >&5
8061 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
8062 if test -n "$LD_RPATH_OPT" ; then
8063 echo "$as_me:8063: result: maybe" >&5
8064 echo "${ECHO_T}maybe" >&6
8068 # Extract the first word of "$ac_prog", so it can be a program name with args.
8069 set dummy $ac_prog; ac_word=$2
8070 echo "$as_me:8070: checking for $ac_word" >&5
8071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8072 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
8073 echo $ECHO_N "(cached) $ECHO_C" >&6
8075 if test -n "$cf_ldd_prog"; then
8076 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
8078 ac_save_IFS=$IFS; IFS=$ac_path_separator
8080 for ac_dir in $ac_dummy; do
8082 test -z "$ac_dir" && ac_dir=.
8083 $as_executable_p "$ac_dir/$ac_word" || continue
8084 ac_cv_prog_cf_ldd_prog="$ac_prog"
8085 echo "$as_me:8085: found $ac_dir/$ac_word" >&5
8091 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
8092 if test -n "$cf_ldd_prog"; then
8093 echo "$as_me:8093: result: $cf_ldd_prog" >&5
8094 echo "${ECHO_T}$cf_ldd_prog" >&6
8096 echo "$as_me:8096: result: no" >&5
8097 echo "${ECHO_T}no" >&6
8100 test -n "$cf_ldd_prog" && break
8102 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
8104 cf_rpath_list="/usr/lib /lib"
8105 if test "$cf_ldd_prog" != no
8109 cat >"conftest.$ac_ext" <<_ACEOF
8110 #line 8110 "configure"
8111 #include "confdefs.h"
8121 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
8122 if { (eval echo "$as_me:8122: \"$ac_link\"") >&5
8123 (eval $ac_link) 2>&5
8125 echo "$as_me:8125: \$? = $ac_status" >&5
8126 (exit "$ac_status"); } &&
8127 { ac_try='test -s "conftest$ac_exeext"'
8128 { (eval echo "$as_me:8128: \"$ac_try\"") >&5
8131 echo "$as_me:8131: \$? = $ac_status" >&5
8132 (exit "$ac_status"); }; }; then
8133 cf_rpath_oops=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
8134 cf_rpath_list=`"$cf_ldd_prog" "conftest$ac_exeext" | ${FGREP-fgrep} / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
8136 echo "$as_me: failed program was:" >&5
8137 cat "conftest.$ac_ext" >&5
8139 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
8141 # If we passed the link-test, but get a "not found" on a given library,
8142 # this could be due to inept reconfiguration of gcc to make it only
8143 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
8144 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
8145 # /usr/local libraries.
8146 if test -n "$cf_rpath_oops"
8148 for cf_rpath_src in $cf_rpath_oops
8150 for cf_rpath_dir in \
8155 if test -f "$cf_rpath_dir/lib/$cf_rpath_src"
8157 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
8159 echo "${as_me:-configure}:8159: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
8161 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
8169 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
8171 echo "${as_me:-configure}:8171: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
8173 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
8175 echo "${as_me:-configure}:8175: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
8178 for cf_rpath_src in $LDFLAGS
8180 case "$cf_rpath_src" in
8183 # check if this refers to a directory which we will ignore
8185 if test -n "$cf_rpath_list"
8187 for cf_rpath_item in $cf_rpath_list
8189 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
8197 if test "$cf_rpath_skip" = no
8199 # transform the option
8200 if test "$LD_RPATH_OPT" = "-R " ; then
8201 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
8203 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
8206 # if we have not already added this, add it now
8207 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
8208 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
8210 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
8212 echo "${as_me:-configure}:8212: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
8214 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
8219 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
8221 LDFLAGS=$cf_rpath_dst
8223 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
8225 echo "${as_me:-configure}:8225: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
8227 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
8229 echo "${as_me:-configure}:8229: testing ...checking LIBS $LIBS ..." 1>&5
8232 for cf_rpath_src in $LIBS
8234 case "$cf_rpath_src" in
8237 # check if this refers to a directory which we will ignore
8239 if test -n "$cf_rpath_list"
8241 for cf_rpath_item in $cf_rpath_list
8243 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
8251 if test "$cf_rpath_skip" = no
8253 # transform the option
8254 if test "$LD_RPATH_OPT" = "-R " ; then
8255 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
8257 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
8260 # if we have not already added this, add it now
8261 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
8262 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
8264 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
8266 echo "${as_me:-configure}:8266: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
8268 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
8273 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
8277 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
8279 echo "${as_me:-configure}:8279: testing ...checked LIBS $LIBS ..." 1>&5
8281 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
8283 echo "${as_me:-configure}:8283: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
8286 echo "$as_me:8286: result: no" >&5
8287 echo "${ECHO_T}no" >&6
8294 ### Depending on the system, someone may use rpath to build ncurses but not
8295 # want users of the package to rely upon that feature. Give those people an
8296 # option to suppress that detail from EXTRA_LDFLAGS.
8297 EXTRA_PKG_LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
8298 if test -n "$EXTRA_PKG_LDFLAGS"
8300 echo "$as_me:8300: checking if you want to disable extra LDFLAGS for package-scripts" >&5
8301 echo $ECHO_N "checking if you want to disable extra LDFLAGS for package-scripts... $ECHO_C" >&6
8303 # Check whether --enable-pkg-ldflags or --disable-pkg-ldflags was given.
8304 if test "${enable_pkg_ldflags+set}" = set; then
8305 enableval="$enable_pkg_ldflags"
8306 test "$enableval" != no && enableval=yes
8307 if test "$enableval" != "yes" ; then
8308 disable_pkg_ldflags=yes
8310 disable_pkg_ldflags=no
8314 disable_pkg_ldflags=no
8317 echo "$as_me:8317: result: $disable_pkg_ldflags" >&5
8318 echo "${ECHO_T}$disable_pkg_ldflags" >&6
8319 test "$disable_pkg_ldflags" = yes && EXTRA_PKG_LDFLAGS=
8322 ###############################################################################
8324 ### use option --with-extra-suffix to append suffix to headers and libraries
8325 echo "$as_me:8325: checking if you wish to append extra suffix to header/library paths" >&5
8326 echo $ECHO_N "checking if you wish to append extra suffix to header/library paths... $ECHO_C" >&6
8329 # Check whether --with-extra-suffix or --without-extra-suffix was given.
8330 if test "${with_extra_suffix+set}" = set; then
8331 withval="$with_extra_suffix"
8336 EXTRA_SUFFIX=$cf_cv_abi_version
8339 EXTRA_SUFFIX=$withval
8344 echo "$as_me:8344: result: $EXTRA_SUFFIX" >&5
8345 echo "${ECHO_T}$EXTRA_SUFFIX" >&6
8347 ### use option --disable-overwrite to leave out the link to -lcurses
8348 echo "$as_me:8348: checking if you wish to install ncurses overwriting curses" >&5
8349 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
8351 # Check whether --enable-overwrite or --disable-overwrite was given.
8352 if test "${enable_overwrite+set}" = set; then
8353 enableval="$enable_overwrite"
8354 with_overwrite=$enableval
8356 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
8358 echo "$as_me:8358: result: $with_overwrite" >&5
8359 echo "${ECHO_T}$with_overwrite" >&6
8361 echo "$as_me:8361: checking if external terminfo-database is used" >&5
8362 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
8364 # Check whether --enable-database or --disable-database was given.
8365 if test "${enable_database+set}" = set; then
8366 enableval="$enable_database"
8367 use_database=$enableval
8371 echo "$as_me:8371: result: $use_database" >&5
8372 echo "${ECHO_T}$use_database" >&6
8376 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
8379 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
8383 NCURSES_USE_DATABASE=0
8384 if test "$use_database" != no ; then
8385 NCURSES_USE_DATABASE=1
8387 echo "$as_me:8387: checking which terminfo source-file will be installed" >&5
8388 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
8390 # Check whether --with-database or --without-database was given.
8391 if test "${with_database+set}" = set; then
8392 withval="$with_database"
8393 TERMINFO_SRC=$withval
8395 echo "$as_me:8395: result: $TERMINFO_SRC" >&5
8396 echo "${ECHO_T}$TERMINFO_SRC" >&6
8398 echo "$as_me:8398: checking whether to use hashed database instead of directory/tree" >&5
8399 echo $ECHO_N "checking whether to use hashed database instead of directory/tree... $ECHO_C" >&6
8401 # Check whether --with-hashed-db or --without-hashed-db was given.
8402 if test "${with_hashed_db+set}" = set; then
8403 withval="$with_hashed_db"
8408 echo "$as_me:8408: result: $with_hashed_db" >&5
8409 echo "${ECHO_T}$with_hashed_db" >&6
8414 echo "$as_me:8414: checking for list of fallback descriptions" >&5
8415 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
8417 # Check whether --with-fallbacks or --without-fallbacks was given.
8418 if test "${with_fallbacks+set}" = set; then
8419 withval="$with_fallbacks"
8420 with_fallback=$withval
8424 echo "$as_me:8424: result: $with_fallback" >&5
8425 echo "${ECHO_T}$with_fallback" >&6
8427 case ".$with_fallback" in
8432 { echo "$as_me:8432: WARNING: expected a list of terminal descriptions" >&5
8433 echo "$as_me: WARNING: expected a list of terminal descriptions" >&2;}
8436 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
8440 # The fallback feature in ncurses relies upon tic/infocmp outside the build
8441 # tree for generating the terminal descriptions that will be compiled into the
8442 # library. If your toolchain is old, it may not handle current terminal
8443 # databases. Use configure-options to point to the tools which will be used,
8444 # rather than the first ones found on the $PATH.
8445 if test -n "$ac_tool_prefix"; then
8446 # Extract the first word of "${ac_tool_prefix}tic", so it can be a program name with args.
8447 set dummy ${ac_tool_prefix}tic; ac_word=$2
8448 echo "$as_me:8448: checking for $ac_word" >&5
8449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8450 if test "${ac_cv_prog_TIC+set}" = set; then
8451 echo $ECHO_N "(cached) $ECHO_C" >&6
8453 if test -n "$TIC"; then
8454 ac_cv_prog_TIC="$TIC" # Let the user override the test.
8456 ac_save_IFS=$IFS; IFS=$ac_path_separator
8458 for ac_dir in $ac_dummy; do
8460 test -z "$ac_dir" && ac_dir=.
8461 $as_executable_p "$ac_dir/$ac_word" || continue
8462 ac_cv_prog_TIC="${ac_tool_prefix}tic"
8463 echo "$as_me:8463: found $ac_dir/$ac_word" >&5
8470 if test -n "$TIC"; then
8471 echo "$as_me:8471: result: $TIC" >&5
8472 echo "${ECHO_T}$TIC" >&6
8474 echo "$as_me:8474: result: no" >&5
8475 echo "${ECHO_T}no" >&6
8479 if test -z "$ac_cv_prog_TIC"; then
8481 # Extract the first word of "tic", so it can be a program name with args.
8482 set dummy tic; ac_word=$2
8483 echo "$as_me:8483: checking for $ac_word" >&5
8484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8485 if test "${ac_cv_prog_ac_ct_TIC+set}" = set; then
8486 echo $ECHO_N "(cached) $ECHO_C" >&6
8488 if test -n "$ac_ct_TIC"; then
8489 ac_cv_prog_ac_ct_TIC="$ac_ct_TIC" # Let the user override the test.
8491 ac_save_IFS=$IFS; IFS=$ac_path_separator
8493 for ac_dir in $ac_dummy; do
8495 test -z "$ac_dir" && ac_dir=.
8496 $as_executable_p "$ac_dir/$ac_word" || continue
8497 ac_cv_prog_ac_ct_TIC="tic"
8498 echo "$as_me:8498: found $ac_dir/$ac_word" >&5
8504 ac_ct_TIC=$ac_cv_prog_ac_ct_TIC
8505 if test -n "$ac_ct_TIC"; then
8506 echo "$as_me:8506: result: $ac_ct_TIC" >&5
8507 echo "${ECHO_T}$ac_ct_TIC" >&6
8509 echo "$as_me:8509: result: no" >&5
8510 echo "${ECHO_T}no" >&6
8515 TIC="$ac_cv_prog_TIC"
8518 if test -n "$ac_tool_prefix"; then
8519 # Extract the first word of "${ac_tool_prefix}infocmp", so it can be a program name with args.
8520 set dummy ${ac_tool_prefix}infocmp; ac_word=$2
8521 echo "$as_me:8521: checking for $ac_word" >&5
8522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8523 if test "${ac_cv_prog_INFOCMP+set}" = set; then
8524 echo $ECHO_N "(cached) $ECHO_C" >&6
8526 if test -n "$INFOCMP"; then
8527 ac_cv_prog_INFOCMP="$INFOCMP" # Let the user override the test.
8529 ac_save_IFS=$IFS; IFS=$ac_path_separator
8531 for ac_dir in $ac_dummy; do
8533 test -z "$ac_dir" && ac_dir=.
8534 $as_executable_p "$ac_dir/$ac_word" || continue
8535 ac_cv_prog_INFOCMP="${ac_tool_prefix}infocmp"
8536 echo "$as_me:8536: found $ac_dir/$ac_word" >&5
8542 INFOCMP=$ac_cv_prog_INFOCMP
8543 if test -n "$INFOCMP"; then
8544 echo "$as_me:8544: result: $INFOCMP" >&5
8545 echo "${ECHO_T}$INFOCMP" >&6
8547 echo "$as_me:8547: result: no" >&5
8548 echo "${ECHO_T}no" >&6
8552 if test -z "$ac_cv_prog_INFOCMP"; then
8553 ac_ct_INFOCMP=$INFOCMP
8554 # Extract the first word of "infocmp", so it can be a program name with args.
8555 set dummy infocmp; ac_word=$2
8556 echo "$as_me:8556: checking for $ac_word" >&5
8557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8558 if test "${ac_cv_prog_ac_ct_INFOCMP+set}" = set; then
8559 echo $ECHO_N "(cached) $ECHO_C" >&6
8561 if test -n "$ac_ct_INFOCMP"; then
8562 ac_cv_prog_ac_ct_INFOCMP="$ac_ct_INFOCMP" # Let the user override the test.
8564 ac_save_IFS=$IFS; IFS=$ac_path_separator
8566 for ac_dir in $ac_dummy; do
8568 test -z "$ac_dir" && ac_dir=.
8569 $as_executable_p "$ac_dir/$ac_word" || continue
8570 ac_cv_prog_ac_ct_INFOCMP="infocmp"
8571 echo "$as_me:8571: found $ac_dir/$ac_word" >&5
8577 ac_ct_INFOCMP=$ac_cv_prog_ac_ct_INFOCMP
8578 if test -n "$ac_ct_INFOCMP"; then
8579 echo "$as_me:8579: result: $ac_ct_INFOCMP" >&5
8580 echo "${ECHO_T}$ac_ct_INFOCMP" >&6
8582 echo "$as_me:8582: result: no" >&5
8583 echo "${ECHO_T}no" >&6
8586 INFOCMP=$ac_ct_INFOCMP
8588 INFOCMP="$ac_cv_prog_INFOCMP"
8591 if test -n "$FALLBACK_LIST"
8594 # Check whether --with-tic-path or --without-tic-path was given.
8595 if test "${with_tic_path+set}" = set; then
8596 withval="$with_tic_path"
8597 echo "$as_me:8597: checking for tic program for fallbacks" >&5
8598 echo $ECHO_N "checking for tic program for fallbacks... $ECHO_C" >&6
8600 echo "$as_me:8600: result: $TIC" >&5
8601 echo "${ECHO_T}$TIC" >&6
8603 if test "x$prefix" != xNONE; then
8604 cf_path_syntax="$prefix"
8606 cf_path_syntax="$ac_default_prefix"
8614 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8616 (.\$\{*prefix\}*|.\$\{*dir\}*)
8620 TIC=`echo "$TIC" | sed -e s%NONE%$cf_path_syntax%`
8625 TIC=`echo "$TIC" | sed -e s%NONE%$cf_path_syntax%`
8628 { { echo "$as_me:8628: error: expected a pathname, not \"$TIC\"" >&5
8629 echo "$as_me: error: expected a pathname, not \"$TIC\"" >&2;}
8630 { (exit 1); exit 1; }; }
8636 test -z "$TIC" && TIC="tic"
8637 for ac_prog in $TIC tic
8639 # Extract the first word of "$ac_prog", so it can be a program name with args.
8640 set dummy $ac_prog; ac_word=$2
8641 echo "$as_me:8641: checking for $ac_word" >&5
8642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8643 if test "${ac_cv_path_TIC+set}" = set; then
8644 echo $ECHO_N "(cached) $ECHO_C" >&6
8648 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
8651 ac_save_IFS=$IFS; IFS=$ac_path_separator
8652 ac_dummy="$PATH:/usr/local/ncurses/bin"
8653 for ac_dir in $ac_dummy; do
8655 test -z "$ac_dir" && ac_dir=.
8656 if $as_executable_p "$ac_dir/$ac_word"; then
8657 ac_cv_path_TIC="$ac_dir/$ac_word"
8658 echo "$as_me:8658: found $ac_dir/$ac_word" >&5
8668 if test -n "$TIC"; then
8669 echo "$as_me:8669: result: $TIC" >&5
8670 echo "${ECHO_T}$TIC" >&6
8672 echo "$as_me:8672: result: no" >&5
8673 echo "${ECHO_T}no" >&6
8676 test -n "$TIC" && break
8678 test -n "$TIC" || TIC="$TIC"
8682 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
8683 for cf_temp in $ac_cv_path_TIC
8685 if test -z "$cf_path_prog" ; then
8686 if test "$with_full_paths" = yes ; then
8688 if test "x$prefix" != xNONE; then
8689 cf_path_syntax="$prefix"
8691 cf_path_syntax="$ac_default_prefix"
8699 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8701 (.\$\{*prefix\}*|.\$\{*dir\}*)
8702 eval cf_temp="$cf_temp"
8705 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
8710 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
8717 cf_path_prog="$cf_temp"
8719 cf_path_prog="`basename "$cf_temp"`"
8721 elif test -z "$cf_path_args" ; then
8722 cf_path_args="$cf_temp"
8724 cf_path_args="$cf_path_args $cf_temp"
8729 if test -n "$cf_path_prog" ; then
8731 echo "${as_me:-configure}:8731: testing defining path for ${cf_path_prog} ..." 1>&5
8733 cat >>confdefs.h <<EOF
8734 #define TIC_PATH "$cf_path_prog"
8737 test -n "$cf_path_args" &&
8738 cat >>confdefs.h <<EOF
8739 #define TIC_ARGS "$cf_path_args"
8746 { echo "$as_me:8746: WARNING: no tic program found for fallbacks" >&5
8747 echo "$as_me: WARNING: no tic program found for fallbacks" >&2;}
8752 # Check whether --with-infocmp-path or --without-infocmp-path was given.
8753 if test "${with_infocmp_path+set}" = set; then
8754 withval="$with_infocmp_path"
8755 echo "$as_me:8755: checking for infocmp program for fallbacks" >&5
8756 echo $ECHO_N "checking for infocmp program for fallbacks... $ECHO_C" >&6
8758 echo "$as_me:8758: result: $INFOCMP" >&5
8759 echo "${ECHO_T}$INFOCMP" >&6
8761 if test "x$prefix" != xNONE; then
8762 cf_path_syntax="$prefix"
8764 cf_path_syntax="$ac_default_prefix"
8772 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8774 (.\$\{*prefix\}*|.\$\{*dir\}*)
8775 eval INFOCMP="$INFOCMP"
8778 INFOCMP=`echo "$INFOCMP" | sed -e s%NONE%$cf_path_syntax%`
8783 INFOCMP=`echo "$INFOCMP" | sed -e s%NONE%$cf_path_syntax%`
8786 { { echo "$as_me:8786: error: expected a pathname, not \"$INFOCMP\"" >&5
8787 echo "$as_me: error: expected a pathname, not \"$INFOCMP\"" >&2;}
8788 { (exit 1); exit 1; }; }
8794 test -z "$INFOCMP" && INFOCMP="infocmp"
8795 for ac_prog in $INFOCMP infocmp
8797 # Extract the first word of "$ac_prog", so it can be a program name with args.
8798 set dummy $ac_prog; ac_word=$2
8799 echo "$as_me:8799: checking for $ac_word" >&5
8800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8801 if test "${ac_cv_path_INFOCMP+set}" = set; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
8806 ac_cv_path_INFOCMP="$INFOCMP" # Let the user override the test with a path.
8809 ac_save_IFS=$IFS; IFS=$ac_path_separator
8810 ac_dummy="$PATH:/usr/local/ncurses/bin"
8811 for ac_dir in $ac_dummy; do
8813 test -z "$ac_dir" && ac_dir=.
8814 if $as_executable_p "$ac_dir/$ac_word"; then
8815 ac_cv_path_INFOCMP="$ac_dir/$ac_word"
8816 echo "$as_me:8816: found $ac_dir/$ac_word" >&5
8824 INFOCMP=$ac_cv_path_INFOCMP
8826 if test -n "$INFOCMP"; then
8827 echo "$as_me:8827: result: $INFOCMP" >&5
8828 echo "${ECHO_T}$INFOCMP" >&6
8830 echo "$as_me:8830: result: no" >&5
8831 echo "${ECHO_T}no" >&6
8834 test -n "$INFOCMP" && break
8836 test -n "$INFOCMP" || INFOCMP="$INFOCMP"
8840 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
8841 for cf_temp in $ac_cv_path_INFOCMP
8843 if test -z "$cf_path_prog" ; then
8844 if test "$with_full_paths" = yes ; then
8846 if test "x$prefix" != xNONE; then
8847 cf_path_syntax="$prefix"
8849 cf_path_syntax="$ac_default_prefix"
8857 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8859 (.\$\{*prefix\}*|.\$\{*dir\}*)
8860 eval cf_temp="$cf_temp"
8863 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
8868 cf_temp=`echo "$cf_temp" | sed -e s%NONE%$cf_path_syntax%`
8875 cf_path_prog="$cf_temp"
8877 cf_path_prog="`basename "$cf_temp"`"
8879 elif test -z "$cf_path_args" ; then
8880 cf_path_args="$cf_temp"
8882 cf_path_args="$cf_path_args $cf_temp"
8887 if test -n "$cf_path_prog" ; then
8889 echo "${as_me:-configure}:8889: testing defining path for ${cf_path_prog} ..." 1>&5
8891 cat >>confdefs.h <<EOF
8892 #define INFOCMP_PATH "$cf_path_prog"
8895 test -n "$cf_path_args" &&
8896 cat >>confdefs.h <<EOF
8897 #define INFOCMP_ARGS "$cf_path_args"
8902 if test -z "$INFOCMP"
8904 { echo "$as_me:8904: WARNING: no infocmp program found for fallbacks" >&5
8905 echo "$as_me: WARNING: no infocmp program found for fallbacks" >&2;}
8910 test -z "$TIC" && FALLBACK_LIST=
8911 test -z "$INFOCMP" && FALLBACK_LIST=
8912 if test -z "$FALLBACK_LIST"
8914 { echo "$as_me:8914: WARNING: ignoring fallback option because tic/infocmp are not available" >&5
8915 echo "$as_me: WARNING: ignoring fallback option because tic/infocmp are not available" >&2;}
8920 test -z "$FALLBACK_LIST" && USE_FALLBACKS="#"
8922 echo "$as_me:8922: checking if you want modern xterm or antique" >&5
8923 echo $ECHO_N "checking if you want modern xterm or antique... $ECHO_C" >&6
8925 # Check whether --with-xterm-new or --without-xterm-new was given.
8926 if test "${with_xterm_new+set}" = set; then
8927 withval="$with_xterm_new"
8928 with_xterm_new=$withval
8932 case "$with_xterm_new" in
8933 (no) with_xterm_new=xterm-old;;
8934 (*) with_xterm_new=xterm-new;;
8936 echo "$as_me:8936: result: $with_xterm_new" >&5
8937 echo "${ECHO_T}$with_xterm_new" >&6
8938 WHICH_XTERM=$with_xterm_new
8940 echo "$as_me:8940: checking if xterm backspace sends BS or DEL" >&5
8941 echo $ECHO_N "checking if xterm backspace sends BS or DEL... $ECHO_C" >&6
8943 # Check whether --with-xterm-kbs or --without-xterm-kbs was given.
8944 if test "${with_xterm_kbs+set}" = set; then
8945 withval="$with_xterm_kbs"
8946 with_xterm_kbs=$withval
8950 case x$with_xterm_kbs in
8951 (xyes|xno|xBS|xbs|x8)
8958 with_xterm_kbs=$withval
8961 echo "$as_me:8961: result: $with_xterm_kbs" >&5
8962 echo "${ECHO_T}$with_xterm_kbs" >&6
8963 XTERM_KBS=$with_xterm_kbs
8966 if test "$use_database" = no ; then
8967 TERMINFO="${datadir}/terminfo"
8971 echo "$as_me:8971: checking for list of terminfo directories" >&5
8972 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
8974 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
8975 if test "${with_terminfo_dirs+set}" = set; then
8976 withval="$with_terminfo_dirs"
8979 withval=${TERMINFO_DIRS:-${datadir}/terminfo}
8981 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
8983 for cf_src_path in $withval
8986 if test "x$prefix" != xNONE; then
8987 cf_path_syntax="$prefix"
8989 cf_path_syntax="$ac_default_prefix"
8992 case ".$cf_src_path" in
8997 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
8999 (.\$\{*prefix\}*|.\$\{*dir\}*)
9000 eval cf_src_path="$cf_src_path"
9001 case ".$cf_src_path" in
9003 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9008 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9011 { { echo "$as_me:9011: error: expected a pathname, not \"$cf_src_path\"" >&5
9012 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
9013 { (exit 1); exit 1; }; }
9017 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
9018 cf_dst_path="${cf_dst_path}${cf_src_path}"
9022 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
9023 # so we have to check/work around. We do prefer the result of "eval"...
9024 eval cf_dst_eval="$cf_dst_path"
9025 case "x$cf_dst_eval" in
9027 TERMINFO_DIRS=$cf_dst_path
9030 TERMINFO_DIRS="$cf_dst_eval"
9034 echo "$as_me:9034: result: $TERMINFO_DIRS" >&5
9035 echo "${ECHO_T}$TERMINFO_DIRS" >&6
9036 test -n "$TERMINFO_DIRS" &&
9037 cat >>confdefs.h <<EOF
9038 #define TERMINFO_DIRS "$TERMINFO_DIRS"
9041 case "x$TERMINFO" in
9043 { echo "$as_me:9043: WARNING: ignoring non-directory/file TERMINFO value" >&5
9044 echo "$as_me: WARNING: ignoring non-directory/file TERMINFO value" >&2;}
9049 echo "$as_me:9049: checking for default terminfo directory" >&5
9050 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
9052 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
9053 if test "${with_default_terminfo_dir+set}" = set; then
9054 withval="$with_default_terminfo_dir"
9057 withval="${TERMINFO:-${datadir}/terminfo}"
9058 fi; if test -n "${datadir}/terminfo" ; then
9060 if test "x$prefix" != xNONE; then
9061 cf_path_syntax="$prefix"
9063 cf_path_syntax="$ac_default_prefix"
9071 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9073 (.\$\{*prefix\}*|.\$\{*dir\}*)
9074 eval withval="$withval"
9077 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
9082 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
9085 { { echo "$as_me:9085: error: expected a pathname, not \"$withval\"" >&5
9086 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
9087 { (exit 1); exit 1; }; }
9092 eval TERMINFO="$withval"
9094 echo "$as_me:9094: result: $TERMINFO" >&5
9095 echo "${ECHO_T}$TERMINFO" >&6
9097 cat >>confdefs.h <<EOF
9098 #define TERMINFO "$TERMINFO"
9103 ### use option --disable-big-core to make tic run on small machines
9104 ### We need 4Mb, check if we can allocate 50% more than that.
9105 echo "$as_me:9105: checking if big-core option selected" >&5
9106 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
9108 # Check whether --enable-big-core or --disable-big-core was given.
9109 if test "${enable_big_core+set}" = set; then
9110 enableval="$enable_big_core"
9111 with_big_core=$enableval
9113 if test "$cross_compiling" = yes; then
9116 cat >"conftest.$ac_ext" <<_ACEOF
9117 #line 9117 "configure"
9118 #include "confdefs.h"
9123 unsigned long n = 6000000L;
9124 char *s = malloc(n);
9127 ${cf_cv_main_return:-return}(s == 0);
9130 rm -f "conftest$ac_exeext"
9131 if { (eval echo "$as_me:9131: \"$ac_link\"") >&5
9132 (eval $ac_link) 2>&5
9134 echo "$as_me:9134: \$? = $ac_status" >&5
9135 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
9136 { (eval echo "$as_me:9136: \"$ac_try\"") >&5
9139 echo "$as_me:9139: \$? = $ac_status" >&5
9140 (exit "$ac_status"); }; }; then
9143 echo "$as_me: program exited with status $ac_status" >&5
9144 echo "$as_me: failed program was:" >&5
9145 cat "conftest.$ac_ext" >&5
9148 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
9151 echo "$as_me:9151: result: $with_big_core" >&5
9152 echo "${ECHO_T}$with_big_core" >&6
9153 test "x$with_big_core" = "xyes" &&
9154 cat >>confdefs.h <<\EOF
9155 #define HAVE_BIG_CORE 1
9158 ### ISO C only guarantees 512-char strings, we have tables which load faster
9159 ### when constructed using "big" strings. More than the C compiler, the awk
9160 ### program is a limit on most vendor UNIX systems. Check that we can build.
9161 echo "$as_me:9161: checking if big-strings option selected" >&5
9162 echo $ECHO_N "checking if big-strings option selected... $ECHO_C" >&6
9164 # Check whether --enable-big-strings or --disable-big-strings was given.
9165 if test "${enable_big_strings+set}" = set; then
9166 enableval="$enable_big_strings"
9167 with_big_strings=$enableval
9172 eval with_big_strings=no
9175 if ( ${AWK} 'BEGIN { xx = "x"; while (length(xx) < 12000) { xx = xx "x"; }; printf("%s\n", xx); }' 2>/dev/null \
9176 | $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
9177 eval with_big_strings=yes
9179 eval with_big_strings=no
9185 echo "$as_me:9185: result: $with_big_strings" >&5
9186 echo "${ECHO_T}$with_big_strings" >&6
9189 test "x$with_big_strings" = "xyes" && USE_BIG_STRINGS=1
9191 ### use option --enable-termcap to compile in the termcap fallback support
9192 echo "$as_me:9192: checking if you want termcap-fallback support" >&5
9193 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
9195 # Check whether --enable-termcap or --disable-termcap was given.
9196 if test "${enable_termcap+set}" = set; then
9197 enableval="$enable_termcap"
9198 with_termcap=$enableval
9202 echo "$as_me:9202: result: $with_termcap" >&5
9203 echo "${ECHO_T}$with_termcap" >&6
9205 NCURSES_USE_TERMCAP=0
9206 if test "x$with_termcap" != "xyes" ; then
9207 if test "$use_database" = no ; then
9208 if test -z "$with_fallback" ; then
9209 { { echo "$as_me:9209: error: You have disabled the database w/o specifying fallbacks" >&5
9210 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
9211 { (exit 1); exit 1; }; }
9215 cat >>confdefs.h <<\EOF
9216 #define PURE_TERMINFO 1
9221 if test "$with_ticlib" != no ; then
9222 { { echo "$as_me:9222: error: Options --with-ticlib and --enable-termcap cannot be combined" >&5
9223 echo "$as_me: error: Options --with-ticlib and --enable-termcap cannot be combined" >&2;}
9224 { (exit 1); exit 1; }; }
9227 NCURSES_USE_TERMCAP=1
9228 echo "$as_me:9228: checking for list of termcap files" >&5
9229 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
9231 # Check whether --with-termpath or --without-termpath was given.
9232 if test "${with_termpath+set}" = set; then
9233 withval="$with_termpath"
9236 withval=${TERMPATH:-/etc/termcap:/usr/share/misc/termcap}
9238 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${PATH_SEPARATOR}"
9240 for cf_src_path in $withval
9243 if test "x$prefix" != xNONE; then
9244 cf_path_syntax="$prefix"
9246 cf_path_syntax="$ac_default_prefix"
9249 case ".$cf_src_path" in
9254 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
9256 (.\$\{*prefix\}*|.\$\{*dir\}*)
9257 eval cf_src_path="$cf_src_path"
9258 case ".$cf_src_path" in
9260 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9265 cf_src_path=`echo "$cf_src_path" | sed -e s%NONE%$cf_path_syntax%`
9268 { { echo "$as_me:9268: error: expected a pathname, not \"$cf_src_path\"" >&5
9269 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
9270 { (exit 1); exit 1; }; }
9274 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}$PATH_SEPARATOR"
9275 cf_dst_path="${cf_dst_path}${cf_src_path}"
9279 # This may use the prefix/exec_prefix symbols which will only yield "NONE"
9280 # so we have to check/work around. We do prefer the result of "eval"...
9281 eval cf_dst_eval="$cf_dst_path"
9282 case "x$cf_dst_eval" in
9284 TERMPATH=$cf_dst_path
9287 TERMPATH="$cf_dst_eval"
9291 echo "$as_me:9291: result: $TERMPATH" >&5
9292 echo "${ECHO_T}$TERMPATH" >&6
9293 test -n "$TERMPATH" &&
9294 cat >>confdefs.h <<EOF
9295 #define TERMPATH "$TERMPATH"
9298 ### use option --enable-getcap to use a hacked getcap for reading termcaps
9299 echo "$as_me:9299: checking if fast termcap-loader is needed" >&5
9300 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
9302 # Check whether --enable-getcap or --disable-getcap was given.
9303 if test "${enable_getcap+set}" = set; then
9304 enableval="$enable_getcap"
9305 with_getcap=$enableval
9309 echo "$as_me:9309: result: $with_getcap" >&5
9310 echo "${ECHO_T}$with_getcap" >&6
9311 test "x$with_getcap" = "xyes" &&
9312 cat >>confdefs.h <<\EOF
9313 #define USE_GETCAP 1
9316 echo "$as_me:9316: checking if translated termcaps will be cached in ~/.terminfo" >&5
9317 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
9319 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
9320 if test "${enable_getcap_cache+set}" = set; then
9321 enableval="$enable_getcap_cache"
9322 with_getcap_cache=$enableval
9324 with_getcap_cache=no
9326 echo "$as_me:9326: result: $with_getcap_cache" >&5
9327 echo "${ECHO_T}$with_getcap_cache" >&6
9328 test "x$with_getcap_cache" = "xyes" &&
9329 cat >>confdefs.h <<\EOF
9330 #define USE_GETCAP_CACHE 1
9335 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
9336 echo "$as_me:9336: checking if ~/.terminfo is wanted" >&5
9337 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
9339 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
9340 if test "${enable_home_terminfo+set}" = set; then
9341 enableval="$enable_home_terminfo"
9342 with_home_terminfo=$enableval
9344 with_home_terminfo=yes
9346 echo "$as_me:9346: result: $with_home_terminfo" >&5
9347 echo "${ECHO_T}$with_home_terminfo" >&6
9348 test "x$with_home_terminfo" = "xyes" &&
9349 cat >>confdefs.h <<\EOF
9350 #define USE_HOME_TERMINFO 1
9353 echo "$as_me:9353: checking if you want to permit root to use ncurses environment variables" >&5
9354 echo $ECHO_N "checking if you want to permit root to use ncurses environment variables... $ECHO_C" >&6
9356 # Check whether --enable-root-environ or --disable-root-environ was given.
9357 if test "${enable_root_environ+set}" = set; then
9358 enableval="$enable_root_environ"
9359 with_root_environ=$enableval
9361 with_root_environ=yes
9363 echo "$as_me:9363: result: $with_root_environ" >&5
9364 echo "${ECHO_T}$with_root_environ" >&6
9365 test "x$with_root_environ" = xyes &&
9366 cat >>confdefs.h <<\EOF
9367 #define USE_ROOT_ENVIRON 1
9370 echo "$as_me:9370: checking if you want to permit setuid programs to access all files" >&5
9371 echo $ECHO_N "checking if you want to permit setuid programs to access all files... $ECHO_C" >&6
9373 # Check whether --enable-root-environ or --disable-root-environ was given.
9374 if test "${enable_root_environ+set}" = set; then
9375 enableval="$enable_root_environ"
9376 with_root_access=$enableval
9378 with_root_access=yes
9380 echo "$as_me:9380: result: $with_root_access" >&5
9381 echo "${ECHO_T}$with_root_access" >&6
9382 test "x$with_root_access" = xyes &&
9383 cat >>confdefs.h <<\EOF
9384 #define USE_ROOT_ACCESS 1
9387 ### Use option --enable-symlinks to make tic use symlinks, not hard links
9388 ### to reduce storage requirements for the terminfo database.
9394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9395 echo "$as_me:9395: checking for $ac_header" >&5
9396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9398 echo $ECHO_N "(cached) $ECHO_C" >&6
9400 cat >"conftest.$ac_ext" <<_ACEOF
9401 #line 9401 "configure"
9402 #include "confdefs.h"
9403 #include <$ac_header>
9405 if { (eval echo "$as_me:9405: \"$ac_cpp "conftest.$ac_ext"\"") >&5
9406 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
9408 $EGREP -v '^ *\+' conftest.er1 >conftest.err
9410 cat conftest.err >&5
9411 echo "$as_me:9411: \$? = $ac_status" >&5
9412 (exit "$ac_status"); } >/dev/null; then
9413 if test -s conftest.err; then
9414 ac_cpp_err=$ac_c_preproc_warn_flag
9421 if test -z "$ac_cpp_err"; then
9422 eval "$as_ac_Header=yes"
9424 echo "$as_me: failed program was:" >&5
9425 cat "conftest.$ac_ext" >&5
9426 eval "$as_ac_Header=no"
9428 rm -f conftest.err "conftest.$ac_ext"
9430 echo "$as_me:9430: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
9431 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
9432 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
9433 cat >>confdefs.h <<EOF
9434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9445 echo "$as_me:9445: checking for $ac_func" >&5
9446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9447 if eval "test \"\${$as_ac_var+set}\" = set"; then
9448 echo $ECHO_N "(cached) $ECHO_C" >&6
9450 cat >"conftest.$ac_ext" <<_ACEOF
9451 #line 9451 "configure"
9452 #include "confdefs.h"
9453 #define $ac_func autoconf_temporary
9454 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
9461 /* We use char because int might match the return type of a gcc2
9462 builtin and then its argument prototype would still apply. */
9463 char $ac_func (void);
9469 /* The GNU C library defines stubs for functions which it implements
9470 to always fail with ENOSYS. Some functions are actually named
9471 something starting with __ and the normal name is an alias. */
9472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9473 #error found stub for $ac_func
9481 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9482 if { (eval echo "$as_me:9482: \"$ac_link\"") >&5
9483 (eval $ac_link) 2>&5
9485 echo "$as_me:9485: \$? = $ac_status" >&5
9486 (exit "$ac_status"); } &&
9487 { ac_try='test -s "conftest$ac_exeext"'
9488 { (eval echo "$as_me:9488: \"$ac_try\"") >&5
9491 echo "$as_me:9491: \$? = $ac_status" >&5
9492 (exit "$ac_status"); }; }; then
9493 eval "$as_ac_var=yes"
9495 echo "$as_me: failed program was:" >&5
9496 cat "conftest.$ac_ext" >&5
9497 eval "$as_ac_var=no"
9499 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9501 echo "$as_me:9501: result: `eval echo '${'"$as_ac_var"'}'`" >&5
9502 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
9503 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
9504 cat >>confdefs.h <<EOF
9505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9511 if test "$cross_compiling" = yes ; then
9517 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9518 echo "$as_me:9518: checking for $ac_func" >&5
9519 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9520 if eval "test \"\${$as_ac_var+set}\" = set"; then
9521 echo $ECHO_N "(cached) $ECHO_C" >&6
9523 cat >"conftest.$ac_ext" <<_ACEOF
9524 #line 9524 "configure"
9525 #include "confdefs.h"
9526 #define $ac_func autoconf_temporary
9527 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
9534 /* We use char because int might match the return type of a gcc2
9535 builtin and then its argument prototype would still apply. */
9536 char $ac_func (void);
9542 /* The GNU C library defines stubs for functions which it implements
9543 to always fail with ENOSYS. Some functions are actually named
9544 something starting with __ and the normal name is an alias. */
9545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9546 #error found stub for $ac_func
9554 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
9555 if { (eval echo "$as_me:9555: \"$ac_link\"") >&5
9556 (eval $ac_link) 2>&5
9558 echo "$as_me:9558: \$? = $ac_status" >&5
9559 (exit "$ac_status"); } &&
9560 { ac_try='test -s "conftest$ac_exeext"'
9561 { (eval echo "$as_me:9561: \"$ac_try\"") >&5
9564 echo "$as_me:9564: \$? = $ac_status" >&5
9565 (exit "$ac_status"); }; }; then
9566 eval "$as_ac_var=yes"
9568 echo "$as_me: failed program was:" >&5
9569 cat "conftest.$ac_ext" >&5
9570 eval "$as_ac_var=no"
9572 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
9574 echo "$as_me:9574: result: `eval echo '${'"$as_ac_var"'}'`" >&5
9575 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
9576 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
9577 cat >>confdefs.h <<EOF
9578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9585 echo "$as_me:9585: checking if link/symlink functions work" >&5
9586 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
9587 if test "${cf_cv_link_funcs+set}" = set; then
9588 echo $ECHO_N "(cached) $ECHO_C" >&6
9592 for cf_func in link symlink ; do
9593 if test "$cross_compiling" = yes; then
9595 eval 'ac_cv_func_'$cf_func'=error'
9597 cat >"conftest.$ac_ext" <<_ACEOF
9598 #line 9598 "configure"
9599 #include "confdefs.h"
9602 #include <sys/types.h>
9603 #include <sys/stat.h>
9604 #ifdef HAVE_UNISTD_H
9610 char *src = "conftest.tmp";
9611 char *dst = "conftest.chk";
9612 struct stat src_sb, dst_sb;
9613 FILE *fp = fopen(src, "w");
9614 if (fp == 0) { fail = 3; } else {
9615 fclose(fp); stat(src, &src_sb);
9616 if ($cf_func(src, dst) < 0) {
9618 } else if (stat(dst, &dst_sb) < 0) {
9621 long diff = (dst_sb.st_mtime - src_sb.st_mtime);
9622 if (diff < 0) diff = -diff;
9623 if (diff > 2) fail = 3;
9627 unlink(dst); unlink(src);
9629 remove(dst); remove(src);
9631 ${cf_cv_main_return:-return} (fail);
9635 rm -f "conftest$ac_exeext"
9636 if { (eval echo "$as_me:9636: \"$ac_link\"") >&5
9637 (eval $ac_link) 2>&5
9639 echo "$as_me:9639: \$? = $ac_status" >&5
9640 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
9641 { (eval echo "$as_me:9641: \"$ac_try\"") >&5
9644 echo "$as_me:9644: \$? = $ac_status" >&5
9645 (exit "$ac_status"); }; }; then
9647 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
9648 eval 'ac_cv_func_'$cf_func'=yes'
9650 echo "$as_me: program exited with status $ac_status" >&5
9651 echo "$as_me: failed program was:" >&5
9652 cat "conftest.$ac_ext" >&5
9654 eval 'ac_cv_func_'$cf_func'=no'
9656 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
9659 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
9662 echo "$as_me:9662: result: $cf_cv_link_funcs" >&5
9663 echo "${ECHO_T}$cf_cv_link_funcs" >&6
9664 test "$ac_cv_func_link" = yes &&
9665 cat >>confdefs.h <<\EOF
9669 test "$ac_cv_func_symlink" = yes &&
9670 cat >>confdefs.h <<\EOF
9671 #define HAVE_SYMLINK 1
9679 # soft links (symbolic links) are useful for some systems where hard links do
9680 # not work, or to make it simpler to copy terminfo trees around.
9681 if test "x$ac_cv_func_symlink" = xyes ; then
9682 echo "$as_me:9682: checking if tic should use symbolic links" >&5
9683 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
9685 # Check whether --enable-symlinks or --disable-symlinks was given.
9686 if test "${enable_symlinks+set}" = set; then
9687 enableval="$enable_symlinks"
9688 with_symlinks=$enableval
9692 echo "$as_me:9692: result: $with_symlinks" >&5
9693 echo "${ECHO_T}$with_symlinks" >&6
9696 # If we have hard links and did not choose to use soft links instead, there is
9697 # no reason to make this choice optional - use the hard links.
9698 if test "$with_symlinks" = no ; then
9699 echo "$as_me:9699: checking if tic should use hard links" >&5
9700 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
9701 if test "x$ac_cv_func_link" = xyes ; then
9706 echo "$as_me:9706: result: $with_links" >&5
9707 echo "${ECHO_T}$with_links" >&6
9710 test "x$with_links" = xyes &&
9711 cat >>confdefs.h <<\EOF
9715 test "x$with_symlinks" = xyes &&
9716 cat >>confdefs.h <<\EOF
9717 #define USE_SYMLINKS 1
9720 ### use option --enable-broken-linker to force on use of broken-linker support
9722 echo "$as_me:9722: checking if you want broken-linker support code" >&5
9723 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
9725 # Check whether --enable-broken_linker or --disable-broken_linker was given.
9726 if test "${enable_broken_linker+set}" = set; then
9727 enableval="$enable_broken_linker"
9728 with_broken_linker=$enableval
9730 with_broken_linker=no
9732 echo "$as_me:9732: result: $with_broken_linker" >&5
9733 echo "${ECHO_T}$with_broken_linker" >&6
9735 : "${BROKEN_LINKER:=0}"
9736 if test "x$with_broken_linker" = xyes ; then
9738 cat >>confdefs.h <<\EOF
9739 #define BROKEN_LINKER 1
9745 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
9746 echo "$as_me:9746: checking if tputs should process BSD-style prefix padding" >&5
9747 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
9749 # Check whether --enable-bsdpad or --disable-bsdpad was given.
9750 if test "${enable_bsdpad+set}" = set; then
9751 enableval="$enable_bsdpad"
9752 with_bsdpad=$enableval
9756 echo "$as_me:9756: result: $with_bsdpad" >&5
9757 echo "${ECHO_T}$with_bsdpad" >&6
9758 test "x$with_bsdpad" = xyes &&
9759 cat >>confdefs.h <<\EOF
9763 ### use option --enable-widec to turn on use of wide-character support
9772 # Check to define _XOPEN_SOURCE "automatically"
9773 CPPFLAGS_before_XOPEN="$CPPFLAGS"
9775 echo "$as_me:9775: checking if the POSIX test-macros are already defined" >&5
9776 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
9777 if test "${cf_cv_posix_visible+set}" = set; then
9778 echo $ECHO_N "(cached) $ECHO_C" >&6
9781 cat >"conftest.$ac_ext" <<_ACEOF
9782 #line 9782 "configure"
9783 #include "confdefs.h"
9789 #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
9790 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
9791 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
9792 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
9793 #error conflicting symbols found
9800 rm -f "conftest.$ac_objext"
9801 if { (eval echo "$as_me:9801: \"$ac_compile\"") >&5
9802 (eval $ac_compile) 2>&5
9804 echo "$as_me:9804: \$? = $ac_status" >&5
9805 (exit "$ac_status"); } &&
9806 { ac_try='test -s "conftest.$ac_objext"'
9807 { (eval echo "$as_me:9807: \"$ac_try\"") >&5
9810 echo "$as_me:9810: \$? = $ac_status" >&5
9811 (exit "$ac_status"); }; }; then
9812 cf_cv_posix_visible=no
9814 echo "$as_me: failed program was:" >&5
9815 cat "conftest.$ac_ext" >&5
9816 cf_cv_posix_visible=yes
9818 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9821 echo "$as_me:9821: result: $cf_cv_posix_visible" >&5
9822 echo "${ECHO_T}$cf_cv_posix_visible" >&6
9824 if test "$cf_cv_posix_visible" = no; then
9827 cf_POSIX_C_SOURCE=199506L
9832 cf_xopen_source="-D_ALL_SOURCE"
9838 cf_xopen_source="-D_APPLE_C_SOURCE"
9841 cf_xopen_source="-D_DARWIN_C_SOURCE"
9844 (freebsd*|dragonfly*|midnightbsd*)
9845 # 5.x headers associate
9846 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
9847 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
9848 cf_POSIX_C_SOURCE=200112L
9850 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
9853 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
9856 cf_xopen_source="-D_HPUX_SOURCE"
9859 cf_xopen_source="-D_SGI_SOURCE"
9862 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
9864 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
9866 echo "$as_me:9866: checking if this is the GNU C library" >&5
9867 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
9868 if test "${cf_cv_gnu_library+set}" = set; then
9869 echo $ECHO_N "(cached) $ECHO_C" >&6
9872 cat >"conftest.$ac_ext" <<_ACEOF
9873 #line 9873 "configure"
9874 #include "confdefs.h"
9875 #include <sys/types.h>
9880 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
9882 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0
9885 # error not GNU C library
9891 rm -f "conftest.$ac_objext"
9892 if { (eval echo "$as_me:9892: \"$ac_compile\"") >&5
9893 (eval $ac_compile) 2>&5
9895 echo "$as_me:9895: \$? = $ac_status" >&5
9896 (exit "$ac_status"); } &&
9897 { ac_try='test -s "conftest.$ac_objext"'
9898 { (eval echo "$as_me:9898: \"$ac_try\"") >&5
9901 echo "$as_me:9901: \$? = $ac_status" >&5
9902 (exit "$ac_status"); }; }; then
9903 cf_cv_gnu_library=yes
9905 echo "$as_me: failed program was:" >&5
9906 cat "conftest.$ac_ext" >&5
9907 cf_cv_gnu_library=no
9909 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9912 echo "$as_me:9912: result: $cf_cv_gnu_library" >&5
9913 echo "${ECHO_T}$cf_cv_gnu_library" >&6
9915 if test x$cf_cv_gnu_library = xyes; then
9917 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
9918 # was changed to help a little. newlib incorporated the change about 4
9920 echo "$as_me:9920: checking if _DEFAULT_SOURCE can be used as a basis" >&5
9921 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
9922 if test "${cf_cv_gnu_library_219+set}" = set; then
9923 echo $ECHO_N "(cached) $ECHO_C" >&6
9928 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9929 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
9931 cat >"conftest.$ac_ext" <<_ACEOF
9932 #line 9932 "configure"
9933 #include "confdefs.h"
9934 #include <sys/types.h>
9939 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
9941 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3)
9944 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
9950 rm -f "conftest.$ac_objext"
9951 if { (eval echo "$as_me:9951: \"$ac_compile\"") >&5
9952 (eval $ac_compile) 2>&5
9954 echo "$as_me:9954: \$? = $ac_status" >&5
9955 (exit "$ac_status"); } &&
9956 { ac_try='test -s "conftest.$ac_objext"'
9957 { (eval echo "$as_me:9957: \"$ac_try\"") >&5
9960 echo "$as_me:9960: \$? = $ac_status" >&5
9961 (exit "$ac_status"); }; }; then
9962 cf_cv_gnu_library_219=yes
9964 echo "$as_me: failed program was:" >&5
9965 cat "conftest.$ac_ext" >&5
9966 cf_cv_gnu_library_219=no
9968 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
9972 echo "$as_me:9972: result: $cf_cv_gnu_library_219" >&5
9973 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
9975 if test "x$cf_cv_gnu_library_219" = xyes; then
9977 echo "$as_me:9977: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
9978 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
9979 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
9980 echo $ECHO_N "(cached) $ECHO_C" >&6
9986 cf_new_extra_cppflags=
9988 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
9990 case "$cf_fix_cppflags" in
9992 case "$cf_add_cflags" in
9993 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9994 case "$cf_add_cflags" in
9996 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9998 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9999 && test -z "${cf_tst_cflags}" \
10000 && cf_fix_cppflags=yes
10002 if test "$cf_fix_cppflags" = yes ; then
10004 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10005 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10008 elif test "${cf_tst_cflags}" = "\"'" ; then
10010 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10011 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10017 case "$CPPFLAGS" in
10021 case "$cf_add_cflags" in
10023 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10025 CPPFLAGS=`echo "$CPPFLAGS" | \
10026 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10027 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10032 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10033 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10040 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10041 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10048 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10049 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10051 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10053 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10054 && test -z "${cf_tst_cflags}" \
10055 && cf_fix_cppflags=no
10060 if test -n "$cf_new_cflags" ; then
10062 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10063 CFLAGS="${CFLAGS}$cf_new_cflags"
10067 if test -n "$cf_new_cppflags" ; then
10069 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10070 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10074 if test -n "$cf_new_extra_cppflags" ; then
10076 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10077 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10081 cat >"conftest.$ac_ext" <<_ACEOF
10082 #line 10082 "configure"
10083 #include "confdefs.h"
10085 #include <limits.h>
10086 #include <sys/types.h>
10092 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
10095 # error GNU C library is too old
10101 rm -f "conftest.$ac_objext"
10102 if { (eval echo "$as_me:10102: \"$ac_compile\"") >&5
10103 (eval $ac_compile) 2>&5
10105 echo "$as_me:10105: \$? = $ac_status" >&5
10106 (exit "$ac_status"); } &&
10107 { ac_try='test -s "conftest.$ac_objext"'
10108 { (eval echo "$as_me:10108: \"$ac_try\"") >&5
10109 (eval $ac_try) 2>&5
10111 echo "$as_me:10111: \$? = $ac_status" >&5
10112 (exit "$ac_status"); }; }; then
10113 cf_cv_gnu_dftsrc_219=yes
10115 echo "$as_me: failed program was:" >&5
10116 cat "conftest.$ac_ext" >&5
10117 cf_cv_gnu_dftsrc_219=no
10119 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10122 echo "$as_me:10122: result: $cf_cv_gnu_dftsrc_219" >&5
10123 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
10124 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
10126 cf_cv_gnu_dftsrc_219=maybe
10129 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
10131 echo "$as_me:10131: checking if we must define _GNU_SOURCE" >&5
10132 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
10133 if test "${cf_cv_gnu_source+set}" = set; then
10134 echo $ECHO_N "(cached) $ECHO_C" >&6
10137 cat >"conftest.$ac_ext" <<_ACEOF
10138 #line 10138 "configure"
10139 #include "confdefs.h"
10140 #include <sys/types.h>
10145 #ifndef _XOPEN_SOURCE
10146 #error expected _XOPEN_SOURCE to be defined
10152 rm -f "conftest.$ac_objext"
10153 if { (eval echo "$as_me:10153: \"$ac_compile\"") >&5
10154 (eval $ac_compile) 2>&5
10156 echo "$as_me:10156: \$? = $ac_status" >&5
10157 (exit "$ac_status"); } &&
10158 { ac_try='test -s "conftest.$ac_objext"'
10159 { (eval echo "$as_me:10159: \"$ac_try\"") >&5
10160 (eval $ac_try) 2>&5
10162 echo "$as_me:10162: \$? = $ac_status" >&5
10163 (exit "$ac_status"); }; }; then
10164 cf_cv_gnu_source=no
10166 echo "$as_me: failed program was:" >&5
10167 cat "conftest.$ac_ext" >&5
10168 cf_save="$CPPFLAGS"
10173 cf_new_extra_cppflags=
10175 for cf_add_cflags in -D_GNU_SOURCE
10177 case "$cf_fix_cppflags" in
10179 case "$cf_add_cflags" in
10180 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10181 case "$cf_add_cflags" in
10183 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10185 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10186 && test -z "${cf_tst_cflags}" \
10187 && cf_fix_cppflags=yes
10189 if test "$cf_fix_cppflags" = yes ; then
10191 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10192 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10195 elif test "${cf_tst_cflags}" = "\"'" ; then
10197 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10198 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10204 case "$CPPFLAGS" in
10208 case "$cf_add_cflags" in
10210 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10212 CPPFLAGS=`echo "$CPPFLAGS" | \
10213 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10214 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10219 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10220 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10227 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10228 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10235 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10236 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10238 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10240 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10241 && test -z "${cf_tst_cflags}" \
10242 && cf_fix_cppflags=no
10247 if test -n "$cf_new_cflags" ; then
10249 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10250 CFLAGS="${CFLAGS}$cf_new_cflags"
10254 if test -n "$cf_new_cppflags" ; then
10256 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10257 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10261 if test -n "$cf_new_extra_cppflags" ; then
10263 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10264 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10268 cat >"conftest.$ac_ext" <<_ACEOF
10269 #line 10269 "configure"
10270 #include "confdefs.h"
10271 #include <sys/types.h>
10276 #ifdef _XOPEN_SOURCE
10277 #error expected _XOPEN_SOURCE to be undefined
10283 rm -f "conftest.$ac_objext"
10284 if { (eval echo "$as_me:10284: \"$ac_compile\"") >&5
10285 (eval $ac_compile) 2>&5
10287 echo "$as_me:10287: \$? = $ac_status" >&5
10288 (exit "$ac_status"); } &&
10289 { ac_try='test -s "conftest.$ac_objext"'
10290 { (eval echo "$as_me:10290: \"$ac_try\"") >&5
10291 (eval $ac_try) 2>&5
10293 echo "$as_me:10293: \$? = $ac_status" >&5
10294 (exit "$ac_status"); }; }; then
10295 cf_cv_gnu_source=no
10297 echo "$as_me: failed program was:" >&5
10298 cat "conftest.$ac_ext" >&5
10299 cf_cv_gnu_source=yes
10301 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10302 CPPFLAGS="$cf_save"
10305 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10308 echo "$as_me:10308: result: $cf_cv_gnu_source" >&5
10309 echo "${ECHO_T}$cf_cv_gnu_source" >&6
10311 if test "$cf_cv_gnu_source" = yes
10313 echo "$as_me:10313: checking if we should also define _DEFAULT_SOURCE" >&5
10314 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
10315 if test "${cf_cv_default_source+set}" = set; then
10316 echo $ECHO_N "(cached) $ECHO_C" >&6
10319 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10320 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
10322 cat >"conftest.$ac_ext" <<_ACEOF
10323 #line 10323 "configure"
10324 #include "confdefs.h"
10325 #include <sys/types.h>
10330 #ifdef _DEFAULT_SOURCE
10331 #error expected _DEFAULT_SOURCE to be undefined
10337 rm -f "conftest.$ac_objext"
10338 if { (eval echo "$as_me:10338: \"$ac_compile\"") >&5
10339 (eval $ac_compile) 2>&5
10341 echo "$as_me:10341: \$? = $ac_status" >&5
10342 (exit "$ac_status"); } &&
10343 { ac_try='test -s "conftest.$ac_objext"'
10344 { (eval echo "$as_me:10344: \"$ac_try\"") >&5
10345 (eval $ac_try) 2>&5
10347 echo "$as_me:10347: \$? = $ac_status" >&5
10348 (exit "$ac_status"); }; }; then
10349 cf_cv_default_source=no
10351 echo "$as_me: failed program was:" >&5
10352 cat "conftest.$ac_ext" >&5
10353 cf_cv_default_source=yes
10355 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10358 echo "$as_me:10358: result: $cf_cv_default_source" >&5
10359 echo "${ECHO_T}$cf_cv_default_source" >&6
10360 if test "$cf_cv_default_source" = yes
10363 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10364 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
10374 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
10377 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
10380 if test "$cf_cv_posix_visible" = no; then
10382 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
10384 cf_save_CFLAGS="$CFLAGS"
10385 cf_save_CPPFLAGS="$CPPFLAGS"
10387 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
10388 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10389 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10391 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
10392 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10393 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10395 echo "$as_me:10395: checking if we should define _POSIX_C_SOURCE" >&5
10396 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
10397 if test "${cf_cv_posix_c_source+set}" = set; then
10398 echo $ECHO_N "(cached) $ECHO_C" >&6
10401 echo "${as_me:-configure}:10401: testing if the symbol is already defined go no further ..." 1>&5
10403 cat >"conftest.$ac_ext" <<_ACEOF
10404 #line 10404 "configure"
10405 #include "confdefs.h"
10406 #include <sys/types.h>
10411 #ifndef _POSIX_C_SOURCE
10418 rm -f "conftest.$ac_objext"
10419 if { (eval echo "$as_me:10419: \"$ac_compile\"") >&5
10420 (eval $ac_compile) 2>&5
10422 echo "$as_me:10422: \$? = $ac_status" >&5
10423 (exit "$ac_status"); } &&
10424 { ac_try='test -s "conftest.$ac_objext"'
10425 { (eval echo "$as_me:10425: \"$ac_try\"") >&5
10426 (eval $ac_try) 2>&5
10428 echo "$as_me:10428: \$? = $ac_status" >&5
10429 (exit "$ac_status"); }; }; then
10430 cf_cv_posix_c_source=no
10432 echo "$as_me: failed program was:" >&5
10433 cat "conftest.$ac_ext" >&5
10434 cf_want_posix_source=no
10435 case .$cf_POSIX_C_SOURCE in
10437 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10440 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10441 cf_want_posix_source=yes
10444 cf_want_posix_source=yes
10447 if test "$cf_want_posix_source" = yes ; then
10448 cat >"conftest.$ac_ext" <<_ACEOF
10449 #line 10449 "configure"
10450 #include "confdefs.h"
10451 #include <sys/types.h>
10456 #ifdef _POSIX_SOURCE
10463 rm -f "conftest.$ac_objext"
10464 if { (eval echo "$as_me:10464: \"$ac_compile\"") >&5
10465 (eval $ac_compile) 2>&5
10467 echo "$as_me:10467: \$? = $ac_status" >&5
10468 (exit "$ac_status"); } &&
10469 { ac_try='test -s "conftest.$ac_objext"'
10470 { (eval echo "$as_me:10470: \"$ac_try\"") >&5
10471 (eval $ac_try) 2>&5
10473 echo "$as_me:10473: \$? = $ac_status" >&5
10474 (exit "$ac_status"); }; }; then
10477 echo "$as_me: failed program was:" >&5
10478 cat "conftest.$ac_ext" >&5
10479 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
10481 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10484 echo "${as_me:-configure}:10484: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
10486 CFLAGS="$cf_trim_CFLAGS"
10487 CPPFLAGS="$cf_trim_CPPFLAGS"
10489 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10490 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
10492 echo "${as_me:-configure}:10492: testing if the second compile does not leave our definition intact error ..." 1>&5
10494 cat >"conftest.$ac_ext" <<_ACEOF
10495 #line 10495 "configure"
10496 #include "confdefs.h"
10497 #include <sys/types.h>
10502 #ifndef _POSIX_C_SOURCE
10509 rm -f "conftest.$ac_objext"
10510 if { (eval echo "$as_me:10510: \"$ac_compile\"") >&5
10511 (eval $ac_compile) 2>&5
10513 echo "$as_me:10513: \$? = $ac_status" >&5
10514 (exit "$ac_status"); } &&
10515 { ac_try='test -s "conftest.$ac_objext"'
10516 { (eval echo "$as_me:10516: \"$ac_try\"") >&5
10517 (eval $ac_try) 2>&5
10519 echo "$as_me:10519: \$? = $ac_status" >&5
10520 (exit "$ac_status"); }; }; then
10523 echo "$as_me: failed program was:" >&5
10524 cat "conftest.$ac_ext" >&5
10525 cf_cv_posix_c_source=no
10527 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10528 CFLAGS="$cf_save_CFLAGS"
10529 CPPFLAGS="$cf_save_CPPFLAGS"
10532 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10535 echo "$as_me:10535: result: $cf_cv_posix_c_source" >&5
10536 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
10538 if test "$cf_cv_posix_c_source" != no ; then
10539 CFLAGS="$cf_trim_CFLAGS"
10540 CPPFLAGS="$cf_trim_CPPFLAGS"
10545 cf_new_extra_cppflags=
10547 for cf_add_cflags in $cf_cv_posix_c_source
10549 case "$cf_fix_cppflags" in
10551 case "$cf_add_cflags" in
10552 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10553 case "$cf_add_cflags" in
10555 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10557 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10558 && test -z "${cf_tst_cflags}" \
10559 && cf_fix_cppflags=yes
10561 if test "$cf_fix_cppflags" = yes ; then
10563 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10564 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10567 elif test "${cf_tst_cflags}" = "\"'" ; then
10569 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10570 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10576 case "$CPPFLAGS" in
10580 case "$cf_add_cflags" in
10582 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10584 CPPFLAGS=`echo "$CPPFLAGS" | \
10585 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10586 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10591 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10592 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10599 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10600 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10607 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10608 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10610 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10612 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10613 && test -z "${cf_tst_cflags}" \
10614 && cf_fix_cppflags=no
10619 if test -n "$cf_new_cflags" ; then
10621 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10622 CFLAGS="${CFLAGS}$cf_new_cflags"
10626 if test -n "$cf_new_cppflags" ; then
10628 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10629 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10633 if test -n "$cf_new_extra_cppflags" ; then
10635 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10636 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10642 fi # cf_cv_posix_visible
10646 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
10649 # OpenBSD 6.x has broken locale support, both compile-time and runtime.
10650 # see https://www.mail-archive.com/bugs@openbsd.org/msg13200.html
10651 # Abusing the conformance level is a workaround.
10652 { echo "$as_me:10652: WARNING: this system does not provide usable locale support" >&5
10653 echo "$as_me: WARNING: this system does not provide usable locale support" >&2;}
10654 cf_xopen_source="-D_BSD_SOURCE"
10655 cf_XOPEN_SOURCE=700
10658 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
10659 cf_xopen_source="-D_BSD_SOURCE"
10660 cf_XOPEN_SOURCE=600
10663 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
10666 cf_xopen_source="-D_OSF_SOURCE"
10669 cf_xopen_source="-D_QNX_SOURCE"
10672 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
10675 cf_xopen_source="-D__EXTENSIONS__"
10676 cf_cv_xopen_source=broken
10678 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
10684 echo "$as_me:10684: checking if we should define _XOPEN_SOURCE" >&5
10685 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
10686 if test "${cf_cv_xopen_source+set}" = set; then
10687 echo $ECHO_N "(cached) $ECHO_C" >&6
10690 cat >"conftest.$ac_ext" <<_ACEOF
10691 #line 10691 "configure"
10692 #include "confdefs.h"
10694 #include <stdlib.h>
10695 #include <string.h>
10696 #include <sys/types.h>
10702 #ifndef _XOPEN_SOURCE
10709 rm -f "conftest.$ac_objext"
10710 if { (eval echo "$as_me:10710: \"$ac_compile\"") >&5
10711 (eval $ac_compile) 2>&5
10713 echo "$as_me:10713: \$? = $ac_status" >&5
10714 (exit "$ac_status"); } &&
10715 { ac_try='test -s "conftest.$ac_objext"'
10716 { (eval echo "$as_me:10716: \"$ac_try\"") >&5
10717 (eval $ac_try) 2>&5
10719 echo "$as_me:10719: \$? = $ac_status" >&5
10720 (exit "$ac_status"); }; }; then
10721 cf_cv_xopen_source=no
10723 echo "$as_me: failed program was:" >&5
10724 cat "conftest.$ac_ext" >&5
10725 cf_save="$CPPFLAGS"
10727 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10728 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
10730 cat >"conftest.$ac_ext" <<_ACEOF
10731 #line 10731 "configure"
10732 #include "confdefs.h"
10734 #include <stdlib.h>
10735 #include <string.h>
10736 #include <sys/types.h>
10742 #ifdef _XOPEN_SOURCE
10749 rm -f "conftest.$ac_objext"
10750 if { (eval echo "$as_me:10750: \"$ac_compile\"") >&5
10751 (eval $ac_compile) 2>&5
10753 echo "$as_me:10753: \$? = $ac_status" >&5
10754 (exit "$ac_status"); } &&
10755 { ac_try='test -s "conftest.$ac_objext"'
10756 { (eval echo "$as_me:10756: \"$ac_try\"") >&5
10757 (eval $ac_try) 2>&5
10759 echo "$as_me:10759: \$? = $ac_status" >&5
10760 (exit "$ac_status"); }; }; then
10761 cf_cv_xopen_source=no
10763 echo "$as_me: failed program was:" >&5
10764 cat "conftest.$ac_ext" >&5
10765 cf_cv_xopen_source=$cf_XOPEN_SOURCE
10767 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10768 CPPFLAGS="$cf_save"
10771 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
10774 echo "$as_me:10774: result: $cf_cv_xopen_source" >&5
10775 echo "${ECHO_T}$cf_cv_xopen_source" >&6
10777 if test "$cf_cv_xopen_source" != no ; then
10779 CFLAGS=`echo "$CFLAGS" | \
10780 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10781 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
10783 CPPFLAGS=`echo "$CPPFLAGS" | \
10784 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10785 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
10787 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
10789 for cf_add_cflags in $cf_temp_xopen_source
10791 case "x$cf_add_cflags" in
10794 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
10797 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'`
10798 test "$CFLAGS" != "$cf_old_cflag" || break
10800 CFLAGS="$cf_old_cflag"
10803 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
10806 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'`
10807 test "$CPPFLAGS" != "$cf_old_cflag" || break
10809 CPPFLAGS="$cf_old_cflag"
10818 cf_new_extra_cppflags=
10820 for cf_add_cflags in $cf_add_cflags
10822 case "$cf_fix_cppflags" in
10824 case "$cf_add_cflags" in
10825 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10826 case "$cf_add_cflags" in
10828 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10830 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10831 && test -z "${cf_tst_cflags}" \
10832 && cf_fix_cppflags=yes
10834 if test "$cf_fix_cppflags" = yes ; then
10836 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10837 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10840 elif test "${cf_tst_cflags}" = "\"'" ; then
10842 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10843 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10849 case "$CPPFLAGS" in
10853 case "$cf_add_cflags" in
10855 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10857 CPPFLAGS=`echo "$CPPFLAGS" | \
10858 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10859 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10864 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10865 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10872 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10873 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10880 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10881 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10883 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
10885 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10886 && test -z "${cf_tst_cflags}" \
10887 && cf_fix_cppflags=no
10892 if test -n "$cf_new_cflags" ; then
10894 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10895 CFLAGS="${CFLAGS}$cf_new_cflags"
10899 if test -n "$cf_new_cppflags" ; then
10901 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10902 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10906 if test -n "$cf_new_extra_cppflags" ; then
10908 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10909 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10917 if test "$cf_cv_posix_visible" = no; then
10919 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
10921 cf_save_CFLAGS="$CFLAGS"
10922 cf_save_CPPFLAGS="$CPPFLAGS"
10924 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
10925 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10926 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10928 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
10929 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
10930 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
10932 echo "$as_me:10932: checking if we should define _POSIX_C_SOURCE" >&5
10933 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
10934 if test "${cf_cv_posix_c_source+set}" = set; then
10935 echo $ECHO_N "(cached) $ECHO_C" >&6
10938 echo "${as_me:-configure}:10938: testing if the symbol is already defined go no further ..." 1>&5
10940 cat >"conftest.$ac_ext" <<_ACEOF
10941 #line 10941 "configure"
10942 #include "confdefs.h"
10943 #include <sys/types.h>
10948 #ifndef _POSIX_C_SOURCE
10955 rm -f "conftest.$ac_objext"
10956 if { (eval echo "$as_me:10956: \"$ac_compile\"") >&5
10957 (eval $ac_compile) 2>&5
10959 echo "$as_me:10959: \$? = $ac_status" >&5
10960 (exit "$ac_status"); } &&
10961 { ac_try='test -s "conftest.$ac_objext"'
10962 { (eval echo "$as_me:10962: \"$ac_try\"") >&5
10963 (eval $ac_try) 2>&5
10965 echo "$as_me:10965: \$? = $ac_status" >&5
10966 (exit "$ac_status"); }; }; then
10967 cf_cv_posix_c_source=no
10969 echo "$as_me: failed program was:" >&5
10970 cat "conftest.$ac_ext" >&5
10971 cf_want_posix_source=no
10972 case .$cf_POSIX_C_SOURCE in
10974 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10977 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
10978 cf_want_posix_source=yes
10981 cf_want_posix_source=yes
10984 if test "$cf_want_posix_source" = yes ; then
10985 cat >"conftest.$ac_ext" <<_ACEOF
10986 #line 10986 "configure"
10987 #include "confdefs.h"
10988 #include <sys/types.h>
10993 #ifdef _POSIX_SOURCE
11000 rm -f "conftest.$ac_objext"
11001 if { (eval echo "$as_me:11001: \"$ac_compile\"") >&5
11002 (eval $ac_compile) 2>&5
11004 echo "$as_me:11004: \$? = $ac_status" >&5
11005 (exit "$ac_status"); } &&
11006 { ac_try='test -s "conftest.$ac_objext"'
11007 { (eval echo "$as_me:11007: \"$ac_try\"") >&5
11008 (eval $ac_try) 2>&5
11010 echo "$as_me:11010: \$? = $ac_status" >&5
11011 (exit "$ac_status"); }; }; then
11014 echo "$as_me: failed program was:" >&5
11015 cat "conftest.$ac_ext" >&5
11016 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
11018 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11021 echo "${as_me:-configure}:11021: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
11023 CFLAGS="$cf_trim_CFLAGS"
11024 CPPFLAGS="$cf_trim_CPPFLAGS"
11026 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11027 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
11029 echo "${as_me:-configure}:11029: testing if the second compile does not leave our definition intact error ..." 1>&5
11031 cat >"conftest.$ac_ext" <<_ACEOF
11032 #line 11032 "configure"
11033 #include "confdefs.h"
11034 #include <sys/types.h>
11039 #ifndef _POSIX_C_SOURCE
11046 rm -f "conftest.$ac_objext"
11047 if { (eval echo "$as_me:11047: \"$ac_compile\"") >&5
11048 (eval $ac_compile) 2>&5
11050 echo "$as_me:11050: \$? = $ac_status" >&5
11051 (exit "$ac_status"); } &&
11052 { ac_try='test -s "conftest.$ac_objext"'
11053 { (eval echo "$as_me:11053: \"$ac_try\"") >&5
11054 (eval $ac_try) 2>&5
11056 echo "$as_me:11056: \$? = $ac_status" >&5
11057 (exit "$ac_status"); }; }; then
11060 echo "$as_me: failed program was:" >&5
11061 cat "conftest.$ac_ext" >&5
11062 cf_cv_posix_c_source=no
11064 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11065 CFLAGS="$cf_save_CFLAGS"
11066 CPPFLAGS="$cf_save_CPPFLAGS"
11069 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11072 echo "$as_me:11072: result: $cf_cv_posix_c_source" >&5
11073 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
11075 if test "$cf_cv_posix_c_source" != no ; then
11076 CFLAGS="$cf_trim_CFLAGS"
11077 CPPFLAGS="$cf_trim_CPPFLAGS"
11082 cf_new_extra_cppflags=
11084 for cf_add_cflags in $cf_cv_posix_c_source
11086 case "$cf_fix_cppflags" in
11088 case "$cf_add_cflags" in
11089 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11090 case "$cf_add_cflags" in
11092 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11094 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11095 && test -z "${cf_tst_cflags}" \
11096 && cf_fix_cppflags=yes
11098 if test "$cf_fix_cppflags" = yes ; then
11100 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11101 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11104 elif test "${cf_tst_cflags}" = "\"'" ; then
11106 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11107 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11113 case "$CPPFLAGS" in
11117 case "$cf_add_cflags" in
11119 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11121 CPPFLAGS=`echo "$CPPFLAGS" | \
11122 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11123 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11128 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11129 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11136 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11137 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11144 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11145 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11147 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11149 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11150 && test -z "${cf_tst_cflags}" \
11151 && cf_fix_cppflags=no
11156 if test -n "$cf_new_cflags" ; then
11158 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11159 CFLAGS="${CFLAGS}$cf_new_cflags"
11163 if test -n "$cf_new_cppflags" ; then
11165 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11166 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11170 if test -n "$cf_new_extra_cppflags" ; then
11172 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11173 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11179 fi # cf_cv_posix_visible
11184 if test -n "$cf_xopen_source" ; then
11186 for cf_add_cflags in $cf_xopen_source
11188 case "x$cf_add_cflags" in
11191 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11194 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'`
11195 test "$CFLAGS" != "$cf_old_cflag" || break
11196 test -n "$verbose" && echo " removing old option $cf_add_cflags from CFLAGS" 1>&6
11198 echo "${as_me:-configure}:11198: testing removing old option $cf_add_cflags from CFLAGS ..." 1>&5
11200 CFLAGS="$cf_old_cflag"
11203 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11206 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'`
11207 test "$CPPFLAGS" != "$cf_old_cflag" || break
11208 test -n "$verbose" && echo " removing old option $cf_add_cflags from CPPFLAGS" 1>&6
11210 echo "${as_me:-configure}:11210: testing removing old option $cf_add_cflags from CPPFLAGS ..." 1>&5
11212 CPPFLAGS="$cf_old_cflag"
11221 cf_new_extra_cppflags=
11223 for cf_add_cflags in $cf_add_cflags
11225 case "$cf_fix_cppflags" in
11227 case "$cf_add_cflags" in
11228 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11229 case "$cf_add_cflags" in
11231 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11233 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11234 && test -z "${cf_tst_cflags}" \
11235 && cf_fix_cppflags=yes
11237 if test "$cf_fix_cppflags" = yes ; then
11239 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11240 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11243 elif test "${cf_tst_cflags}" = "\"'" ; then
11245 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11246 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11252 case "$CPPFLAGS" in
11256 case "$cf_add_cflags" in
11258 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11260 CPPFLAGS=`echo "$CPPFLAGS" | \
11261 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11262 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11267 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11268 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11275 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11276 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11283 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11284 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11286 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11288 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11289 && test -z "${cf_tst_cflags}" \
11290 && cf_fix_cppflags=no
11295 if test -n "$cf_new_cflags" ; then
11296 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
11298 echo "${as_me:-configure}:11298: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
11300 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11301 CFLAGS="${CFLAGS}$cf_new_cflags"
11305 if test -n "$cf_new_cppflags" ; then
11306 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
11308 echo "${as_me:-configure}:11308: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
11310 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11311 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11315 if test -n "$cf_new_extra_cppflags" ; then
11316 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
11318 echo "${as_me:-configure}:11318: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
11320 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11321 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11329 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
11330 echo "$as_me:11330: checking if _XOPEN_SOURCE really is set" >&5
11331 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
11332 cat >"conftest.$ac_ext" <<_ACEOF
11333 #line 11333 "configure"
11334 #include "confdefs.h"
11335 #include <stdlib.h>
11340 #ifndef _XOPEN_SOURCE
11347 rm -f "conftest.$ac_objext"
11348 if { (eval echo "$as_me:11348: \"$ac_compile\"") >&5
11349 (eval $ac_compile) 2>&5
11351 echo "$as_me:11351: \$? = $ac_status" >&5
11352 (exit "$ac_status"); } &&
11353 { ac_try='test -s "conftest.$ac_objext"'
11354 { (eval echo "$as_me:11354: \"$ac_try\"") >&5
11355 (eval $ac_try) 2>&5
11357 echo "$as_me:11357: \$? = $ac_status" >&5
11358 (exit "$ac_status"); }; }; then
11359 cf_XOPEN_SOURCE_set=yes
11361 echo "$as_me: failed program was:" >&5
11362 cat "conftest.$ac_ext" >&5
11363 cf_XOPEN_SOURCE_set=no
11365 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11366 echo "$as_me:11366: result: $cf_XOPEN_SOURCE_set" >&5
11367 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
11368 if test "$cf_XOPEN_SOURCE_set" = yes
11370 cat >"conftest.$ac_ext" <<_ACEOF
11371 #line 11371 "configure"
11372 #include "confdefs.h"
11373 #include <stdlib.h>
11378 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
11385 rm -f "conftest.$ac_objext"
11386 if { (eval echo "$as_me:11386: \"$ac_compile\"") >&5
11387 (eval $ac_compile) 2>&5
11389 echo "$as_me:11389: \$? = $ac_status" >&5
11390 (exit "$ac_status"); } &&
11391 { ac_try='test -s "conftest.$ac_objext"'
11392 { (eval echo "$as_me:11392: \"$ac_try\"") >&5
11393 (eval $ac_try) 2>&5
11395 echo "$as_me:11395: \$? = $ac_status" >&5
11396 (exit "$ac_status"); }; }; then
11397 cf_XOPEN_SOURCE_set_ok=yes
11399 echo "$as_me: failed program was:" >&5
11400 cat "conftest.$ac_ext" >&5
11401 cf_XOPEN_SOURCE_set_ok=no
11403 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11404 if test "$cf_XOPEN_SOURCE_set_ok" = no
11406 { echo "$as_me:11406: WARNING: _XOPEN_SOURCE is lower than requested" >&5
11407 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
11411 echo "$as_me:11411: checking if we should define _XOPEN_SOURCE" >&5
11412 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
11413 if test "${cf_cv_xopen_source+set}" = set; then
11414 echo $ECHO_N "(cached) $ECHO_C" >&6
11417 cat >"conftest.$ac_ext" <<_ACEOF
11418 #line 11418 "configure"
11419 #include "confdefs.h"
11421 #include <stdlib.h>
11422 #include <string.h>
11423 #include <sys/types.h>
11429 #ifndef _XOPEN_SOURCE
11436 rm -f "conftest.$ac_objext"
11437 if { (eval echo "$as_me:11437: \"$ac_compile\"") >&5
11438 (eval $ac_compile) 2>&5
11440 echo "$as_me:11440: \$? = $ac_status" >&5
11441 (exit "$ac_status"); } &&
11442 { ac_try='test -s "conftest.$ac_objext"'
11443 { (eval echo "$as_me:11443: \"$ac_try\"") >&5
11444 (eval $ac_try) 2>&5
11446 echo "$as_me:11446: \$? = $ac_status" >&5
11447 (exit "$ac_status"); }; }; then
11448 cf_cv_xopen_source=no
11450 echo "$as_me: failed program was:" >&5
11451 cat "conftest.$ac_ext" >&5
11452 cf_save="$CPPFLAGS"
11454 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11455 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
11457 cat >"conftest.$ac_ext" <<_ACEOF
11458 #line 11458 "configure"
11459 #include "confdefs.h"
11461 #include <stdlib.h>
11462 #include <string.h>
11463 #include <sys/types.h>
11469 #ifdef _XOPEN_SOURCE
11476 rm -f "conftest.$ac_objext"
11477 if { (eval echo "$as_me:11477: \"$ac_compile\"") >&5
11478 (eval $ac_compile) 2>&5
11480 echo "$as_me:11480: \$? = $ac_status" >&5
11481 (exit "$ac_status"); } &&
11482 { ac_try='test -s "conftest.$ac_objext"'
11483 { (eval echo "$as_me:11483: \"$ac_try\"") >&5
11484 (eval $ac_try) 2>&5
11486 echo "$as_me:11486: \$? = $ac_status" >&5
11487 (exit "$ac_status"); }; }; then
11488 cf_cv_xopen_source=no
11490 echo "$as_me: failed program was:" >&5
11491 cat "conftest.$ac_ext" >&5
11492 cf_cv_xopen_source=$cf_XOPEN_SOURCE
11494 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11495 CPPFLAGS="$cf_save"
11498 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11501 echo "$as_me:11501: result: $cf_cv_xopen_source" >&5
11502 echo "${ECHO_T}$cf_cv_xopen_source" >&6
11504 if test "$cf_cv_xopen_source" != no ; then
11506 CFLAGS=`echo "$CFLAGS" | \
11507 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11508 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
11510 CPPFLAGS=`echo "$CPPFLAGS" | \
11511 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
11512 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
11514 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
11516 for cf_add_cflags in $cf_temp_xopen_source
11518 case "x$cf_add_cflags" in
11521 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11524 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'`
11525 test "$CFLAGS" != "$cf_old_cflag" || break
11527 CFLAGS="$cf_old_cflag"
11530 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
11533 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'`
11534 test "$CPPFLAGS" != "$cf_old_cflag" || break
11536 CPPFLAGS="$cf_old_cflag"
11545 cf_new_extra_cppflags=
11547 for cf_add_cflags in $cf_add_cflags
11549 case "$cf_fix_cppflags" in
11551 case "$cf_add_cflags" in
11552 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11553 case "$cf_add_cflags" in
11555 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11557 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11558 && test -z "${cf_tst_cflags}" \
11559 && cf_fix_cppflags=yes
11561 if test "$cf_fix_cppflags" = yes ; then
11563 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11564 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11567 elif test "${cf_tst_cflags}" = "\"'" ; then
11569 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11570 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11576 case "$CPPFLAGS" in
11580 case "$cf_add_cflags" in
11582 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11584 CPPFLAGS=`echo "$CPPFLAGS" | \
11585 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11586 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11591 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11592 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11599 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11600 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11607 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11608 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11610 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
11612 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11613 && test -z "${cf_tst_cflags}" \
11614 && cf_fix_cppflags=no
11619 if test -n "$cf_new_cflags" ; then
11621 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11622 CFLAGS="${CFLAGS}$cf_new_cflags"
11626 if test -n "$cf_new_cppflags" ; then
11628 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11629 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11633 if test -n "$cf_new_extra_cppflags" ; then
11635 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11636 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11646 fi # cf_cv_posix_visible
11648 CPPFLAGS_after_XOPEN="$CPPFLAGS"
11650 # Work around breakage on OS X
11652 echo "$as_me:11652: checking if SIGWINCH is defined" >&5
11653 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
11654 if test "${cf_cv_define_sigwinch+set}" = set; then
11655 echo $ECHO_N "(cached) $ECHO_C" >&6
11658 cat >"conftest.$ac_ext" <<_ACEOF
11659 #line 11659 "configure"
11660 #include "confdefs.h"
11662 #include <sys/types.h>
11663 #include <sys/signal.h>
11668 int x = SIGWINCH; (void)x
11673 rm -f "conftest.$ac_objext"
11674 if { (eval echo "$as_me:11674: \"$ac_compile\"") >&5
11675 (eval $ac_compile) 2>&5
11677 echo "$as_me:11677: \$? = $ac_status" >&5
11678 (exit "$ac_status"); } &&
11679 { ac_try='test -s "conftest.$ac_objext"'
11680 { (eval echo "$as_me:11680: \"$ac_try\"") >&5
11681 (eval $ac_try) 2>&5
11683 echo "$as_me:11683: \$? = $ac_status" >&5
11684 (exit "$ac_status"); }; }; then
11685 cf_cv_define_sigwinch=yes
11687 echo "$as_me: failed program was:" >&5
11688 cat "conftest.$ac_ext" >&5
11689 cat >"conftest.$ac_ext" <<_ACEOF
11690 #line 11690 "configure"
11691 #include "confdefs.h"
11693 #undef _XOPEN_SOURCE
11694 #undef _POSIX_SOURCE
11695 #undef _POSIX_C_SOURCE
11696 #include <sys/types.h>
11697 #include <sys/signal.h>
11702 int x = SIGWINCH; (void)x
11707 rm -f "conftest.$ac_objext"
11708 if { (eval echo "$as_me:11708: \"$ac_compile\"") >&5
11709 (eval $ac_compile) 2>&5
11711 echo "$as_me:11711: \$? = $ac_status" >&5
11712 (exit "$ac_status"); } &&
11713 { ac_try='test -s "conftest.$ac_objext"'
11714 { (eval echo "$as_me:11714: \"$ac_try\"") >&5
11715 (eval $ac_try) 2>&5
11717 echo "$as_me:11717: \$? = $ac_status" >&5
11718 (exit "$ac_status"); }; }; then
11719 cf_cv_define_sigwinch=maybe
11721 echo "$as_me: failed program was:" >&5
11722 cat "conftest.$ac_ext" >&5
11723 cf_cv_define_sigwinch=no
11725 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11728 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11731 echo "$as_me:11731: result: $cf_cv_define_sigwinch" >&5
11732 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
11734 if test "$cf_cv_define_sigwinch" = maybe ; then
11735 echo "$as_me:11735: checking for actual SIGWINCH definition" >&5
11736 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
11737 if test "${cf_cv_fixup_sigwinch+set}" = set; then
11738 echo $ECHO_N "(cached) $ECHO_C" >&6
11741 cf_cv_fixup_sigwinch=unknown
11743 while test "$cf_sigwinch" != 1
11745 cat >"conftest.$ac_ext" <<_ACEOF
11746 #line 11746 "configure"
11747 #include "confdefs.h"
11749 #undef _XOPEN_SOURCE
11750 #undef _POSIX_SOURCE
11751 #undef _POSIX_C_SOURCE
11752 #include <sys/types.h>
11753 #include <sys/signal.h>
11759 #if SIGWINCH != $cf_sigwinch
11762 int x = SIGWINCH; (void)x
11767 rm -f "conftest.$ac_objext"
11768 if { (eval echo "$as_me:11768: \"$ac_compile\"") >&5
11769 (eval $ac_compile) 2>&5
11771 echo "$as_me:11771: \$? = $ac_status" >&5
11772 (exit "$ac_status"); } &&
11773 { ac_try='test -s "conftest.$ac_objext"'
11774 { (eval echo "$as_me:11774: \"$ac_try\"") >&5
11775 (eval $ac_try) 2>&5
11777 echo "$as_me:11777: \$? = $ac_status" >&5
11778 (exit "$ac_status"); }; }; then
11779 cf_cv_fixup_sigwinch=$cf_sigwinch
11782 echo "$as_me: failed program was:" >&5
11783 cat "conftest.$ac_ext" >&5
11785 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11787 cf_sigwinch="`expr "$cf_sigwinch" - 1`"
11791 echo "$as_me:11791: result: $cf_cv_fixup_sigwinch" >&5
11792 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
11794 if test "$cf_cv_fixup_sigwinch" != unknown ; then
11795 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
11799 # Checks for CODESET support.
11801 echo "$as_me:11801: checking for nl_langinfo and CODESET" >&5
11802 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11803 if test "${am_cv_langinfo_codeset+set}" = set; then
11804 echo $ECHO_N "(cached) $ECHO_C" >&6
11806 cat >"conftest.$ac_ext" <<_ACEOF
11807 #line 11807 "configure"
11808 #include "confdefs.h"
11809 #include <langinfo.h>
11813 char* cs = nl_langinfo(CODESET); (void)cs
11818 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
11819 if { (eval echo "$as_me:11819: \"$ac_link\"") >&5
11820 (eval $ac_link) 2>&5
11822 echo "$as_me:11822: \$? = $ac_status" >&5
11823 (exit "$ac_status"); } &&
11824 { ac_try='test -s "conftest$ac_exeext"'
11825 { (eval echo "$as_me:11825: \"$ac_try\"") >&5
11826 (eval $ac_try) 2>&5
11828 echo "$as_me:11828: \$? = $ac_status" >&5
11829 (exit "$ac_status"); }; }; then
11830 am_cv_langinfo_codeset=yes
11832 echo "$as_me: failed program was:" >&5
11833 cat "conftest.$ac_ext" >&5
11834 am_cv_langinfo_codeset=no
11836 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
11839 echo "$as_me:11839: result: $am_cv_langinfo_codeset" >&5
11840 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11841 if test "$am_cv_langinfo_codeset" = yes; then
11843 cat >>confdefs.h <<\EOF
11844 #define HAVE_LANGINFO_CODESET 1
11849 # use these variables to work around a defect in gcc's fixincludes.
11850 NCURSES_OK_WCHAR_T=
11853 echo "$as_me:11853: checking if you want wide-character code" >&5
11854 echo $ECHO_N "checking if you want wide-character code... $ECHO_C" >&6
11856 # Check whether --enable-widec or --disable-widec was given.
11857 if test "${enable_widec+set}" = set; then
11858 enableval="$enable_widec"
11859 with_widec=$enableval
11863 echo "$as_me:11863: result: $with_widec" >&5
11864 echo "${ECHO_T}$with_widec" >&6
11866 NCURSES_WCWIDTH_GRAPHICS=1
11868 if test "x$with_widec" = xyes ; then
11869 if test "x$disable_lib_suffixes" = xno ; then
11870 LIB_SUFFIX="w${LIB_SUFFIX}"
11873 cat >>confdefs.h <<\EOF
11874 #define USE_WIDEC_SUPPORT 1
11877 cat >>confdefs.h <<\EOF
11878 #define NCURSES_WIDECHAR 1
11886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11887 echo "$as_me:11887: checking for $ac_header" >&5
11888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11890 echo $ECHO_N "(cached) $ECHO_C" >&6
11892 cat >"conftest.$ac_ext" <<_ACEOF
11893 #line 11893 "configure"
11894 #include "confdefs.h"
11895 #include <$ac_header>
11897 if { (eval echo "$as_me:11897: \"$ac_cpp "conftest.$ac_ext"\"") >&5
11898 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
11900 $EGREP -v '^ *\+' conftest.er1 >conftest.err
11902 cat conftest.err >&5
11903 echo "$as_me:11903: \$? = $ac_status" >&5
11904 (exit "$ac_status"); } >/dev/null; then
11905 if test -s conftest.err; then
11906 ac_cpp_err=$ac_c_preproc_warn_flag
11913 if test -z "$ac_cpp_err"; then
11914 eval "$as_ac_Header=yes"
11916 echo "$as_me: failed program was:" >&5
11917 cat "conftest.$ac_ext" >&5
11918 eval "$as_ac_Header=no"
11920 rm -f conftest.err "conftest.$ac_ext"
11922 echo "$as_me:11922: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
11923 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
11924 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
11925 cat >>confdefs.h <<EOF
11926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11932 echo "$as_me:11932: checking if wchar.h can be used as is" >&5
11933 echo $ECHO_N "checking if wchar.h can be used as is... $ECHO_C" >&6
11934 if test "${cf_cv_wchar_h_okay+set}" = set; then
11935 echo $ECHO_N "(cached) $ECHO_C" >&6
11938 cat >"conftest.$ac_ext" <<_ACEOF
11939 #line 11939 "configure"
11940 #include "confdefs.h"
11942 #include <stdlib.h>
11943 #ifdef HAVE_WCHAR_H
11946 #ifdef HAVE_WCTYPE_H
11947 #include <wctype.h>
11955 int bar = iswpunct(foo)
11960 rm -f "conftest.$ac_objext"
11961 if { (eval echo "$as_me:11961: \"$ac_compile\"") >&5
11962 (eval $ac_compile) 2>&5
11964 echo "$as_me:11964: \$? = $ac_status" >&5
11965 (exit "$ac_status"); } &&
11966 { ac_try='test -s "conftest.$ac_objext"'
11967 { (eval echo "$as_me:11967: \"$ac_try\"") >&5
11968 (eval $ac_try) 2>&5
11970 echo "$as_me:11970: \$? = $ac_status" >&5
11971 (exit "$ac_status"); }; }; then
11972 cf_cv_wchar_h_okay=yes
11974 echo "$as_me: failed program was:" >&5
11975 cat "conftest.$ac_ext" >&5
11976 cf_cv_wchar_h_okay=no
11978 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
11980 echo "$as_me:11980: result: $cf_cv_wchar_h_okay" >&5
11981 echo "${ECHO_T}$cf_cv_wchar_h_okay" >&6
11983 if test "$cf_cv_wchar_h_okay" = no
11986 echo "$as_me:11986: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
11987 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
11988 cat >"conftest.$ac_ext" <<_ACEOF
11989 #line 11989 "configure"
11990 #include "confdefs.h"
11991 #include <sys/types.h>
11997 #ifndef _XOPEN_SOURCE_EXTENDED
12004 rm -f "conftest.$ac_objext"
12005 if { (eval echo "$as_me:12005: \"$ac_compile\"") >&5
12006 (eval $ac_compile) 2>&5
12008 echo "$as_me:12008: \$? = $ac_status" >&5
12009 (exit "$ac_status"); } &&
12010 { ac_try='test -s "conftest.$ac_objext"'
12011 { (eval echo "$as_me:12011: \"$ac_try\"") >&5
12012 (eval $ac_try) 2>&5
12014 echo "$as_me:12014: \$? = $ac_status" >&5
12015 (exit "$ac_status"); }; }; then
12018 echo "$as_me: failed program was:" >&5
12019 cat "conftest.$ac_ext" >&5
12022 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12023 echo "$as_me:12023: result: $cf_result" >&5
12024 echo "${ECHO_T}$cf_result" >&6
12026 if test "$cf_result" = yes ; then
12027 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
12028 elif test "x" != "x" ; then
12029 echo "$as_me:12029: checking checking for compatible value versus " >&5
12030 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
12031 cat >"conftest.$ac_ext" <<_ACEOF
12032 #line 12032 "configure"
12033 #include "confdefs.h"
12034 #include <sys/types.h>
12040 #if _XOPEN_SOURCE_EXTENDED- < 0
12047 rm -f "conftest.$ac_objext"
12048 if { (eval echo "$as_me:12048: \"$ac_compile\"") >&5
12049 (eval $ac_compile) 2>&5
12051 echo "$as_me:12051: \$? = $ac_status" >&5
12052 (exit "$ac_status"); } &&
12053 { ac_try='test -s "conftest.$ac_objext"'
12054 { (eval echo "$as_me:12054: \"$ac_try\"") >&5
12055 (eval $ac_try) 2>&5
12057 echo "$as_me:12057: \$? = $ac_status" >&5
12058 (exit "$ac_status"); }; }; then
12061 echo "$as_me: failed program was:" >&5
12062 cat "conftest.$ac_ext" >&5
12065 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12066 echo "$as_me:12066: result: $cf_result" >&5
12067 echo "${ECHO_T}$cf_result" >&6
12068 if test "$cf_result" = no ; then
12069 # perhaps we can override it - try...
12070 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
12076 echo "$as_me:12076: checking if wcwidth agrees graphics are single-width" >&5
12077 echo $ECHO_N "checking if wcwidth agrees graphics are single-width... $ECHO_C" >&6
12078 if test "${cf_cv_wcwidth_graphics+set}" = set; then
12079 echo $ECHO_N "(cached) $ECHO_C" >&6
12082 cat >conftest.in <<CF_EOF
12084 0x250c upper left corner
12085 0x2514 lower left corner
12086 0x2510 upper right corner
12087 0x2518 lower right corner
12088 0x251c tee pointing left
12089 0x2524 tee pointing right
12090 0x2534 tee pointing up
12091 0x252c tee pointing down
12092 0x2500 horizontal line
12093 0x2502 vertical line
12094 0x253c large plus or crossover
12098 0x2592 checker board (stipple)
12099 0x00b0 degree symbol
12102 - Teletype 5410v1 symbols
12103 0x2190 arrow pointing left
12104 0x2192 arrow pointing right
12105 0x2193 arrow pointing down
12106 0x2191 arrow pointing up
12107 0x2592 board of squares
12108 0x2603 lantern symbol
12109 0x25ae solid square block
12110 - these defaults were invented for ncurses
12113 0x2264 less-than-or-equal-to
12114 0x2265 greater-than-or-equal-to
12117 0x00a3 pound-sterling symbol
12118 - thick-line-drawing
12119 0x250f upper left corner
12120 0x2517 lower left corner
12121 0x2513 upper right corner
12122 0x251b lower right corner
12123 0x2523 tee pointing left
12124 0x252b tee pointing right
12125 0x253b tee pointing up
12126 0x2533 tee pointing down
12127 0x2501 horizontal line
12128 0x2503 vertical line
12129 0x254b large plus or crossover
12130 - double-line-drawing
12131 0x2554 upper left corner
12132 0x255a lower left corner
12133 0x2557 upper right corner
12134 0x255d lower right corner
12135 0x2563 tee pointing left
12136 0x2560 tee pointing right
12137 0x2569 tee pointing up
12138 0x2566 tee pointing down
12139 0x2550 horizontal line
12140 0x2551 vertical line
12141 0x256c large plus or crossover
12143 if test "$cross_compiling" = yes; then
12144 cf_cv_wcwidth_graphics=unknown
12146 cat >"conftest.$ac_ext" <<_ACEOF
12147 #line 12147 "configure"
12148 #include "confdefs.h"
12150 #include <locale.h>
12161 char buffer[MY_LEN + 1];
12162 char notes[MY_LEN + 1];
12166 if (setlocale(LC_ALL, "en_US.UTF8") ||
12167 setlocale(LC_ALL, "en_US.UTF-8") ||
12168 setlocale(LC_ALL, "en_US.utf8") ||
12169 setlocale(LC_ALL, "en_US.utf-8")) {
12170 if ((fp = fopen("conftest.in", "r")) != 0) {
12171 while (fgets(buffer, MY_LEN, fp) != 0) {
12172 if (*buffer == '-') {
12173 fprintf(stderr, "\\t%s", buffer);
12174 } else if (sscanf(buffer, "%x %s", &value, notes) == 2) {
12176 if (wcwidth(value) == 1)
12178 fprintf(stderr, "%d\\t%s", wcwidth(value), buffer);
12180 fprintf(stderr, "?\\t%s", buffer);
12185 fprintf(stderr, "%d/%d passed wcwidth/graphics check\\n", passed, totals);
12186 return (totals == passed) ? 0 : 1;
12190 rm -f "conftest$ac_exeext"
12191 if { (eval echo "$as_me:12191: \"$ac_link\"") >&5
12192 (eval $ac_link) 2>&5
12194 echo "$as_me:12194: \$? = $ac_status" >&5
12195 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
12196 { (eval echo "$as_me:12196: \"$ac_try\"") >&5
12197 (eval $ac_try) 2>&5
12199 echo "$as_me:12199: \$? = $ac_status" >&5
12200 (exit "$ac_status"); }; }; then
12201 cf_cv_wcwidth_graphics=yes
12203 echo "$as_me: program exited with status $ac_status" >&5
12204 echo "$as_me: failed program was:" >&5
12205 cat "conftest.$ac_ext" >&5
12206 cf_cv_wcwidth_graphics=no
12208 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
12212 echo "$as_me:12212: result: $cf_cv_wcwidth_graphics" >&5
12213 echo "${ECHO_T}$cf_cv_wcwidth_graphics" >&6
12215 test "$cf_cv_wcwidth_graphics" = no && NCURSES_WCWIDTH_GRAPHICS=0
12217 # with_overwrite=no
12218 NCURSES_CH_T=cchar_t
12220 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs
12222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12223 echo "$as_me:12223: checking for $ac_func" >&5
12224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12225 if eval "test \"\${$as_ac_var+set}\" = set"; then
12226 echo $ECHO_N "(cached) $ECHO_C" >&6
12228 cat >"conftest.$ac_ext" <<_ACEOF
12229 #line 12229 "configure"
12230 #include "confdefs.h"
12231 #define $ac_func autoconf_temporary
12232 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
12239 /* We use char because int might match the return type of a gcc2
12240 builtin and then its argument prototype would still apply. */
12241 char $ac_func (void);
12247 /* The GNU C library defines stubs for functions which it implements
12248 to always fail with ENOSYS. Some functions are actually named
12249 something starting with __ and the normal name is an alias. */
12250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12251 #error found stub for $ac_func
12254 return $ac_func ();
12259 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12260 if { (eval echo "$as_me:12260: \"$ac_link\"") >&5
12261 (eval $ac_link) 2>&5
12263 echo "$as_me:12263: \$? = $ac_status" >&5
12264 (exit "$ac_status"); } &&
12265 { ac_try='test -s "conftest$ac_exeext"'
12266 { (eval echo "$as_me:12266: \"$ac_try\"") >&5
12267 (eval $ac_try) 2>&5
12269 echo "$as_me:12269: \$? = $ac_status" >&5
12270 (exit "$ac_status"); }; }; then
12271 eval "$as_ac_var=yes"
12273 echo "$as_me: failed program was:" >&5
12274 cat "conftest.$ac_ext" >&5
12275 eval "$as_ac_var=no"
12277 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12279 echo "$as_me:12279: result: `eval echo '${'"$as_ac_var"'}'`" >&5
12280 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
12281 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
12282 cat >>confdefs.h <<EOF
12283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12289 if test "x$ac_cv_func_putwc" != xyes ; then
12291 for ac_header in wchar.h
12293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12294 echo "$as_me:12294: checking for $ac_header" >&5
12295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12297 echo $ECHO_N "(cached) $ECHO_C" >&6
12299 cat >"conftest.$ac_ext" <<_ACEOF
12300 #line 12300 "configure"
12301 #include "confdefs.h"
12302 #include <$ac_header>
12304 if { (eval echo "$as_me:12304: \"$ac_cpp "conftest.$ac_ext"\"") >&5
12305 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
12307 $EGREP -v '^ *\+' conftest.er1 >conftest.err
12309 cat conftest.err >&5
12310 echo "$as_me:12310: \$? = $ac_status" >&5
12311 (exit "$ac_status"); } >/dev/null; then
12312 if test -s conftest.err; then
12313 ac_cpp_err=$ac_c_preproc_warn_flag
12320 if test -z "$ac_cpp_err"; then
12321 eval "$as_ac_Header=yes"
12323 echo "$as_me: failed program was:" >&5
12324 cat "conftest.$ac_ext" >&5
12325 eval "$as_ac_Header=no"
12327 rm -f conftest.err "conftest.$ac_ext"
12329 echo "$as_me:12329: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
12330 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
12331 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
12332 cat >>confdefs.h <<EOF
12333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12339 echo "$as_me:12339: checking for multibyte character support" >&5
12340 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
12341 if test "${cf_cv_utf8_lib+set}" = set; then
12342 echo $ECHO_N "(cached) $ECHO_C" >&6
12345 cf_save_LIBS="$LIBS"
12346 cat >"conftest.$ac_ext" <<_ACEOF
12347 #line 12347 "configure"
12348 #include "confdefs.h"
12350 #include <stdlib.h>
12352 #ifdef HAVE_WCHAR_H
12364 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12365 if { (eval echo "$as_me:12365: \"$ac_link\"") >&5
12366 (eval $ac_link) 2>&5
12368 echo "$as_me:12368: \$? = $ac_status" >&5
12369 (exit "$ac_status"); } &&
12370 { ac_try='test -s "conftest$ac_exeext"'
12371 { (eval echo "$as_me:12371: \"$ac_try\"") >&5
12372 (eval $ac_try) 2>&5
12374 echo "$as_me:12374: \$? = $ac_status" >&5
12375 (exit "$ac_status"); }; }; then
12378 echo "$as_me: failed program was:" >&5
12379 cat "conftest.$ac_ext" >&5
12381 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
12382 # will be set on completion of the AC_TRY_LINK below.
12383 cf_cv_header_path_utf8=
12384 cf_cv_library_path_utf8=
12386 echo "${as_me:-configure}:12386: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
12388 cf_save_LIBS="$LIBS"
12390 cat >"conftest.$ac_ext" <<_ACEOF
12391 #line 12391 "configure"
12392 #include "confdefs.h"
12394 #include <libutf8.h>
12403 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12404 if { (eval echo "$as_me:12404: \"$ac_link\"") >&5
12405 (eval $ac_link) 2>&5
12407 echo "$as_me:12407: \$? = $ac_status" >&5
12408 (exit "$ac_status"); } &&
12409 { ac_try='test -s "conftest$ac_exeext"'
12410 { (eval echo "$as_me:12410: \"$ac_try\"") >&5
12411 (eval $ac_try) 2>&5
12413 echo "$as_me:12413: \$? = $ac_status" >&5
12414 (exit "$ac_status"); }; }; then
12416 cf_cv_find_linkage_utf8=yes
12417 cf_cv_header_path_utf8=/usr/include
12418 cf_cv_library_path_utf8=/usr/lib
12421 echo "$as_me: failed program was:" >&5
12422 cat "conftest.$ac_ext" >&5
12424 LIBS="-lutf8 $cf_save_LIBS"
12426 cat >"conftest.$ac_ext" <<_ACEOF
12427 #line 12427 "configure"
12428 #include "confdefs.h"
12430 #include <libutf8.h>
12439 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12440 if { (eval echo "$as_me:12440: \"$ac_link\"") >&5
12441 (eval $ac_link) 2>&5
12443 echo "$as_me:12443: \$? = $ac_status" >&5
12444 (exit "$ac_status"); } &&
12445 { ac_try='test -s "conftest$ac_exeext"'
12446 { (eval echo "$as_me:12446: \"$ac_try\"") >&5
12447 (eval $ac_try) 2>&5
12449 echo "$as_me:12449: \$? = $ac_status" >&5
12450 (exit "$ac_status"); }; }; then
12452 cf_cv_find_linkage_utf8=yes
12453 cf_cv_header_path_utf8=/usr/include
12454 cf_cv_library_path_utf8=/usr/lib
12455 cf_cv_library_file_utf8="-lutf8"
12458 echo "$as_me: failed program was:" >&5
12459 cat "conftest.$ac_ext" >&5
12461 cf_cv_find_linkage_utf8=no
12462 LIBS="$cf_save_LIBS"
12464 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
12466 echo "${as_me:-configure}:12466: testing find linkage for utf8 library ..." 1>&5
12468 echo "${as_me:-configure}:12468: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
12470 cf_save_CPPFLAGS="$CPPFLAGS"
12471 cf_test_CPPFLAGS="$CPPFLAGS"
12475 # collect the current set of include-directories from compiler flags
12476 cf_header_path_list=""
12477 if test -n "${CFLAGS}${CPPFLAGS}" ; then
12478 for cf_header_path in $CPPFLAGS $CFLAGS
12480 case "$cf_header_path" in
12482 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
12484 test "x$cf_header_path" != "xNONE" && \
12485 test -d "$cf_header_path" && \
12487 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
12488 test -d "$cf_header_path/include" && cf_search="$cf_search $cf_header_path/include"
12489 test -d "$cf_header_path/include/utf8" && cf_search="$cf_search $cf_header_path/include/utf8"
12490 test -d "$cf_header_path/include/utf8/include" && cf_search="$cf_search $cf_header_path/include/utf8/include"
12491 test -d "$cf_header_path/utf8/include" && cf_search="$cf_search $cf_header_path/utf8/include"
12492 test -d "$cf_header_path/utf8/include/utf8" && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
12495 cf_header_path_list="$cf_header_path_list $cf_search"
12501 # add the variations for the package we are looking for
12505 test "x$prefix" != "xNONE" && \
12506 test -d "$prefix" && \
12508 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
12509 test -d "$prefix/include" && cf_search="$cf_search $prefix/include"
12510 test -d "$prefix/include/utf8" && cf_search="$cf_search $prefix/include/utf8"
12511 test -d "$prefix/include/utf8/include" && cf_search="$cf_search $prefix/include/utf8/include"
12512 test -d "$prefix/utf8/include" && cf_search="$cf_search $prefix/utf8/include"
12513 test -d "$prefix/utf8/include/utf8" && cf_search="$cf_search $prefix/utf8/include/utf8"
12516 for cf_subdir_prefix in \
12525 test "x$cf_subdir_prefix" != "x$prefix" && \
12526 test -d "$cf_subdir_prefix" && \
12527 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
12528 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
12529 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
12530 test -d "$cf_subdir_prefix/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
12531 test -d "$cf_subdir_prefix/include/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
12532 test -d "$cf_subdir_prefix/utf8/include" && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
12533 test -d "$cf_subdir_prefix/utf8/include/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
12538 test "$includedir" != NONE && \
12539 test "$includedir" != "/usr/include" && \
12540 test -d "$includedir" && {
12541 test -d "$includedir" && cf_search="$cf_search $includedir"
12542 test -d "$includedir/utf8" && cf_search="$cf_search $includedir/utf8"
12545 test "$oldincludedir" != NONE && \
12546 test "$oldincludedir" != "/usr/include" && \
12547 test -d "$oldincludedir" && {
12548 test -d "$oldincludedir" && cf_search="$cf_search $oldincludedir"
12549 test -d "$oldincludedir/utf8" && cf_search="$cf_search $oldincludedir/utf8"
12552 cf_search="$cf_search $cf_header_path_list"
12554 for cf_cv_header_path_utf8 in $cf_search
12556 if test -d "$cf_cv_header_path_utf8" ; then
12557 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
12559 echo "${as_me:-configure}:12559: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
12561 CPPFLAGS="$cf_save_CPPFLAGS"
12563 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12564 CPPFLAGS="${CPPFLAGS}-I$cf_cv_header_path_utf8"
12566 cat >"conftest.$ac_ext" <<_ACEOF
12567 #line 12567 "configure"
12568 #include "confdefs.h"
12570 #include <libutf8.h>
12579 rm -f "conftest.$ac_objext"
12580 if { (eval echo "$as_me:12580: \"$ac_compile\"") >&5
12581 (eval $ac_compile) 2>&5
12583 echo "$as_me:12583: \$? = $ac_status" >&5
12584 (exit "$ac_status"); } &&
12585 { ac_try='test -s "conftest.$ac_objext"'
12586 { (eval echo "$as_me:12586: \"$ac_try\"") >&5
12587 (eval $ac_try) 2>&5
12589 echo "$as_me:12589: \$? = $ac_status" >&5
12590 (exit "$ac_status"); }; }; then
12592 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
12594 echo "${as_me:-configure}:12594: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
12596 cf_cv_find_linkage_utf8=maybe
12597 cf_test_CPPFLAGS="$CPPFLAGS"
12600 echo "$as_me: failed program was:" >&5
12601 cat "conftest.$ac_ext" >&5
12603 CPPFLAGS="$cf_save_CPPFLAGS"
12606 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12610 if test "$cf_cv_find_linkage_utf8" = maybe ; then
12612 echo "${as_me:-configure}:12612: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
12614 cf_save_LIBS="$LIBS"
12615 cf_save_LDFLAGS="$LDFLAGS"
12617 if test "$cf_cv_find_linkage_utf8" != yes ; then
12620 cf_library_path_list=""
12621 if test -n "${LDFLAGS}${LIBS}" ; then
12622 for cf_library_path in $LDFLAGS $LIBS
12624 case "$cf_library_path" in
12626 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
12628 test "x$cf_library_path" != "xNONE" && \
12629 test -d "$cf_library_path" && \
12631 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
12632 test -d "$cf_library_path/lib" && cf_search="$cf_search $cf_library_path/lib"
12633 test -d "$cf_library_path/lib/utf8" && cf_search="$cf_search $cf_library_path/lib/utf8"
12634 test -d "$cf_library_path/lib/utf8/lib" && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
12635 test -d "$cf_library_path/utf8/lib" && cf_search="$cf_search $cf_library_path/utf8/lib"
12636 test -d "$cf_library_path/utf8/lib/utf8" && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
12639 cf_library_path_list="$cf_library_path_list $cf_search"
12647 test "x$prefix" != "xNONE" && \
12648 test -d "$prefix" && \
12650 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
12651 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
12652 test -d "$prefix/lib/utf8" && cf_search="$cf_search $prefix/lib/utf8"
12653 test -d "$prefix/lib/utf8/lib" && cf_search="$cf_search $prefix/lib/utf8/lib"
12654 test -d "$prefix/utf8/lib" && cf_search="$cf_search $prefix/utf8/lib"
12655 test -d "$prefix/utf8/lib/utf8" && cf_search="$cf_search $prefix/utf8/lib/utf8"
12658 for cf_subdir_prefix in \
12667 test "x$cf_subdir_prefix" != "x$prefix" && \
12668 test -d "$cf_subdir_prefix" && \
12669 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
12670 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
12671 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
12672 test -d "$cf_subdir_prefix/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
12673 test -d "$cf_subdir_prefix/lib/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
12674 test -d "$cf_subdir_prefix/utf8/lib" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
12675 test -d "$cf_subdir_prefix/utf8/lib/utf8" && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
12680 cf_search="$cf_library_path_list $cf_search"
12682 for cf_cv_library_path_utf8 in $cf_search
12684 if test -d "$cf_cv_library_path_utf8" ; then
12685 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
12687 echo "${as_me:-configure}:12687: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
12689 CPPFLAGS="$cf_test_CPPFLAGS"
12690 LIBS="-lutf8 $cf_save_LIBS"
12691 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
12692 cat >"conftest.$ac_ext" <<_ACEOF
12693 #line 12693 "configure"
12694 #include "confdefs.h"
12696 #include <libutf8.h>
12705 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
12706 if { (eval echo "$as_me:12706: \"$ac_link\"") >&5
12707 (eval $ac_link) 2>&5
12709 echo "$as_me:12709: \$? = $ac_status" >&5
12710 (exit "$ac_status"); } &&
12711 { ac_try='test -s "conftest$ac_exeext"'
12712 { (eval echo "$as_me:12712: \"$ac_try\"") >&5
12713 (eval $ac_try) 2>&5
12715 echo "$as_me:12715: \$? = $ac_status" >&5
12716 (exit "$ac_status"); }; }; then
12718 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
12720 echo "${as_me:-configure}:12720: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
12722 cf_cv_find_linkage_utf8=yes
12723 cf_cv_library_file_utf8="-lutf8"
12726 echo "$as_me: failed program was:" >&5
12727 cat "conftest.$ac_ext" >&5
12729 CPPFLAGS="$cf_save_CPPFLAGS"
12730 LIBS="$cf_save_LIBS"
12731 LDFLAGS="$cf_save_LDFLAGS"
12734 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12737 CPPFLAGS="$cf_save_CPPFLAGS"
12738 LDFLAGS="$cf_save_LDFLAGS"
12742 cf_cv_find_linkage_utf8=no
12746 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12749 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12751 LIBS="$cf_save_LIBS"
12753 if test "$cf_cv_find_linkage_utf8" = yes ; then
12754 cf_cv_utf8_lib=add-on
12760 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
12762 echo "$as_me:12762: result: $cf_cv_utf8_lib" >&5
12763 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
12765 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
12766 # ncurses/ncursesw:
12767 if test "$cf_cv_utf8_lib" = "add-on" ; then
12769 cat >>confdefs.h <<\EOF
12770 #define HAVE_LIBUTF8_H 1
12773 if test -n "$cf_cv_header_path_utf8" ; then
12774 for cf_add_incdir in $cf_cv_header_path_utf8
12776 while test "$cf_add_incdir" != /usr/include
12778 if test -d "$cf_add_incdir"
12781 if test -n "$CFLAGS$CPPFLAGS" ; then
12782 # a loop is needed to ensure we can add subdirs of existing dirs
12783 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
12784 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
12785 cf_have_incdir=yes; break
12790 if test "$cf_have_incdir" = no ; then
12791 if test "$cf_add_incdir" = /usr/local/include ; then
12792 if test "$GCC" = yes
12794 cf_save_CPPFLAGS=$CPPFLAGS
12796 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12797 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
12799 cat >"conftest.$ac_ext" <<_ACEOF
12800 #line 12800 "configure"
12801 #include "confdefs.h"
12811 rm -f "conftest.$ac_objext"
12812 if { (eval echo "$as_me:12812: \"$ac_compile\"") >&5
12813 (eval $ac_compile) 2>&5
12815 echo "$as_me:12815: \$? = $ac_status" >&5
12816 (exit "$ac_status"); } &&
12817 { ac_try='test -s "conftest.$ac_objext"'
12818 { (eval echo "$as_me:12818: \"$ac_try\"") >&5
12819 (eval $ac_try) 2>&5
12821 echo "$as_me:12821: \$? = $ac_status" >&5
12822 (exit "$ac_status"); }; }; then
12825 echo "$as_me: failed program was:" >&5
12826 cat "conftest.$ac_ext" >&5
12829 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12830 CPPFLAGS=$cf_save_CPPFLAGS
12835 if test "$cf_have_incdir" = no ; then
12836 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
12838 echo "${as_me:-configure}:12838: testing adding $cf_add_incdir to include-path ..." 1>&5
12840 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
12842 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
12843 test "$cf_top_incdir" = "$cf_add_incdir" && break
12844 cf_add_incdir="$cf_top_incdir"
12855 if test -n "$cf_cv_library_path_utf8" ; then
12856 for cf_add_libdir in $cf_cv_library_path_utf8
12858 if test "$cf_add_libdir" = /usr/lib ; then
12860 elif test -d "$cf_add_libdir"
12863 if test -n "$LDFLAGS$LIBS" ; then
12864 # a loop is needed to ensure we can add subdirs of existing dirs
12865 for cf_test_libdir in $LDFLAGS $LIBS ; do
12866 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
12867 cf_have_libdir=yes; break
12871 if test "$cf_have_libdir" = no ; then
12872 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
12874 echo "${as_me:-configure}:12874: testing adding $cf_add_libdir to library-path ..." 1>&5
12876 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
12882 cf_add_libs="$LIBS"
12885 for cf_add_1lib in $cf_cv_library_file_utf8; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
12886 # filter duplicates
12887 for cf_add_1lib in $cf_add_0lib; do
12888 for cf_add_2lib in $cf_add_libs; do
12889 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
12894 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
12896 LIBS="$cf_add_libs"
12900 if test "$cf_cv_utf8_lib" != no ; then
12905 # This is needed on Tru64 5.0 to declare mbstate_t
12906 echo "$as_me:12906: checking if we must include wchar.h to declare mbstate_t" >&5
12907 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
12908 if test "${cf_cv_mbstate_t+set}" = set; then
12909 echo $ECHO_N "(cached) $ECHO_C" >&6
12912 cat >"conftest.$ac_ext" <<_ACEOF
12913 #line 12913 "configure"
12914 #include "confdefs.h"
12916 #include <stdlib.h>
12917 #include <stdarg.h>
12919 #ifdef HAVE_LIBUTF8_H
12920 #include <libutf8.h>
12930 rm -f "conftest.$ac_objext"
12931 if { (eval echo "$as_me:12931: \"$ac_compile\"") >&5
12932 (eval $ac_compile) 2>&5
12934 echo "$as_me:12934: \$? = $ac_status" >&5
12935 (exit "$ac_status"); } &&
12936 { ac_try='test -s "conftest.$ac_objext"'
12937 { (eval echo "$as_me:12937: \"$ac_try\"") >&5
12938 (eval $ac_try) 2>&5
12940 echo "$as_me:12940: \$? = $ac_status" >&5
12941 (exit "$ac_status"); }; }; then
12944 echo "$as_me: failed program was:" >&5
12945 cat "conftest.$ac_ext" >&5
12946 cat >"conftest.$ac_ext" <<_ACEOF
12947 #line 12947 "configure"
12948 #include "confdefs.h"
12950 #include <stdlib.h>
12951 #include <stdarg.h>
12954 #ifdef HAVE_LIBUTF8_H
12955 #include <libutf8.h>
12965 rm -f "conftest.$ac_objext"
12966 if { (eval echo "$as_me:12966: \"$ac_compile\"") >&5
12967 (eval $ac_compile) 2>&5
12969 echo "$as_me:12969: \$? = $ac_status" >&5
12970 (exit "$ac_status"); } &&
12971 { ac_try='test -s "conftest.$ac_objext"'
12972 { (eval echo "$as_me:12972: \"$ac_try\"") >&5
12973 (eval $ac_try) 2>&5
12975 echo "$as_me:12975: \$? = $ac_status" >&5
12976 (exit "$ac_status"); }; }; then
12977 cf_cv_mbstate_t=yes
12979 echo "$as_me: failed program was:" >&5
12980 cat "conftest.$ac_ext" >&5
12981 cf_cv_mbstate_t=unknown
12983 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12985 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
12987 echo "$as_me:12987: result: $cf_cv_mbstate_t" >&5
12988 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
12990 if test "$cf_cv_mbstate_t" = yes ; then
12992 cat >>confdefs.h <<\EOF
12993 #define NEED_WCHAR_H 1
12999 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
13000 if test "$cf_cv_mbstate_t" = unknown ; then
13001 NCURSES_MBSTATE_T=1
13004 # This is needed on Tru64 5.0 to declare wchar_t
13005 echo "$as_me:13005: checking if we must include wchar.h to declare wchar_t" >&5
13006 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
13007 if test "${cf_cv_wchar_t+set}" = set; then
13008 echo $ECHO_N "(cached) $ECHO_C" >&6
13011 cat >"conftest.$ac_ext" <<_ACEOF
13012 #line 13012 "configure"
13013 #include "confdefs.h"
13015 #include <stdlib.h>
13016 #include <stdarg.h>
13018 #ifdef HAVE_LIBUTF8_H
13019 #include <libutf8.h>
13029 rm -f "conftest.$ac_objext"
13030 if { (eval echo "$as_me:13030: \"$ac_compile\"") >&5
13031 (eval $ac_compile) 2>&5
13033 echo "$as_me:13033: \$? = $ac_status" >&5
13034 (exit "$ac_status"); } &&
13035 { ac_try='test -s "conftest.$ac_objext"'
13036 { (eval echo "$as_me:13036: \"$ac_try\"") >&5
13037 (eval $ac_try) 2>&5
13039 echo "$as_me:13039: \$? = $ac_status" >&5
13040 (exit "$ac_status"); }; }; then
13043 echo "$as_me: failed program was:" >&5
13044 cat "conftest.$ac_ext" >&5
13045 cat >"conftest.$ac_ext" <<_ACEOF
13046 #line 13046 "configure"
13047 #include "confdefs.h"
13049 #include <stdlib.h>
13050 #include <stdarg.h>
13053 #ifdef HAVE_LIBUTF8_H
13054 #include <libutf8.h>
13064 rm -f "conftest.$ac_objext"
13065 if { (eval echo "$as_me:13065: \"$ac_compile\"") >&5
13066 (eval $ac_compile) 2>&5
13068 echo "$as_me:13068: \$? = $ac_status" >&5
13069 (exit "$ac_status"); } &&
13070 { ac_try='test -s "conftest.$ac_objext"'
13071 { (eval echo "$as_me:13071: \"$ac_try\"") >&5
13072 (eval $ac_try) 2>&5
13074 echo "$as_me:13074: \$? = $ac_status" >&5
13075 (exit "$ac_status"); }; }; then
13078 echo "$as_me: failed program was:" >&5
13079 cat "conftest.$ac_ext" >&5
13080 cf_cv_wchar_t=unknown
13082 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13084 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13086 echo "$as_me:13086: result: $cf_cv_wchar_t" >&5
13087 echo "${ECHO_T}$cf_cv_wchar_t" >&6
13089 if test "$cf_cv_wchar_t" = yes ; then
13091 cat >>confdefs.h <<\EOF
13092 #define NEED_WCHAR_H 1
13098 # if we do not find wchar_t in either place, use substitution to provide a fallback.
13099 if test "$cf_cv_wchar_t" = unknown ; then
13103 # if we find wchar_t in either place, use substitution to provide a fallback.
13104 if test "$cf_cv_wchar_t" != unknown ; then
13105 NCURSES_OK_WCHAR_T=1
13108 # This is needed on Tru64 5.0 to declare wint_t
13109 echo "$as_me:13109: checking if we must include wchar.h to declare wint_t" >&5
13110 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
13111 if test "${cf_cv_wint_t+set}" = set; then
13112 echo $ECHO_N "(cached) $ECHO_C" >&6
13115 cat >"conftest.$ac_ext" <<_ACEOF
13116 #line 13116 "configure"
13117 #include "confdefs.h"
13119 #include <stdlib.h>
13120 #include <stdarg.h>
13122 #ifdef HAVE_LIBUTF8_H
13123 #include <libutf8.h>
13133 rm -f "conftest.$ac_objext"
13134 if { (eval echo "$as_me:13134: \"$ac_compile\"") >&5
13135 (eval $ac_compile) 2>&5
13137 echo "$as_me:13137: \$? = $ac_status" >&5
13138 (exit "$ac_status"); } &&
13139 { ac_try='test -s "conftest.$ac_objext"'
13140 { (eval echo "$as_me:13140: \"$ac_try\"") >&5
13141 (eval $ac_try) 2>&5
13143 echo "$as_me:13143: \$? = $ac_status" >&5
13144 (exit "$ac_status"); }; }; then
13147 echo "$as_me: failed program was:" >&5
13148 cat "conftest.$ac_ext" >&5
13149 cat >"conftest.$ac_ext" <<_ACEOF
13150 #line 13150 "configure"
13151 #include "confdefs.h"
13153 #include <stdlib.h>
13154 #include <stdarg.h>
13157 #ifdef HAVE_LIBUTF8_H
13158 #include <libutf8.h>
13168 rm -f "conftest.$ac_objext"
13169 if { (eval echo "$as_me:13169: \"$ac_compile\"") >&5
13170 (eval $ac_compile) 2>&5
13172 echo "$as_me:13172: \$? = $ac_status" >&5
13173 (exit "$ac_status"); } &&
13174 { ac_try='test -s "conftest.$ac_objext"'
13175 { (eval echo "$as_me:13175: \"$ac_try\"") >&5
13176 (eval $ac_try) 2>&5
13178 echo "$as_me:13178: \$? = $ac_status" >&5
13179 (exit "$ac_status"); }; }; then
13182 echo "$as_me: failed program was:" >&5
13183 cat "conftest.$ac_ext" >&5
13184 cf_cv_wint_t=unknown
13186 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13188 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13190 echo "$as_me:13190: result: $cf_cv_wint_t" >&5
13191 echo "${ECHO_T}$cf_cv_wint_t" >&6
13193 if test "$cf_cv_wint_t" = yes ; then
13195 cat >>confdefs.h <<\EOF
13196 #define NEED_WCHAR_H 1
13202 # if we do not find wint_t in either place, use substitution to provide a fallback.
13203 if test "$cf_cv_wint_t" = unknown ; then
13207 # if we find wint_t in either place, use substitution to provide a fallback.
13208 if test "$cf_cv_wint_t" != unknown ; then
13209 NCURSES_OK_WINT_T=1
13212 if test "$NCURSES_MBSTATE_T" != 0; then
13214 cat >>confdefs.h <<\EOF
13215 #define NEED_MBSTATE_T_DEF 1
13221 ### use option --disable-lp64 to allow long chtype
13222 echo "$as_me:13222: checking whether to enable _LP64 definition in curses.h" >&5
13223 echo $ECHO_N "checking whether to enable _LP64 definition in curses.h... $ECHO_C" >&6
13225 # Check whether --enable-lp64 or --disable-lp64 was given.
13226 if test "${enable_lp64+set}" = set; then
13227 enableval="$enable_lp64"
13228 with_lp64=$enableval
13230 with_lp64=$cf_dft_with_lp64
13232 echo "$as_me:13232: result: $with_lp64" >&5
13233 echo "${ECHO_T}$with_lp64" >&6
13235 if test "x$with_lp64" = xyes ; then
13236 cf_cv_enable_lp64=1
13238 cf_cv_enable_lp64=0
13241 # Check whether --enable-largefile or --disable-largefile was given.
13242 if test "${enable_largefile+set}" = set; then
13243 enableval="$enable_largefile"
13246 if test "$enable_largefile" != no; then
13248 echo "$as_me:13248: checking for special C compiler options needed for large files" >&5
13249 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
13250 if test "${ac_cv_sys_largefile_CC+set}" = set; then
13251 echo $ECHO_N "(cached) $ECHO_C" >&6
13253 ac_cv_sys_largefile_CC=no
13254 if test "$GCC" != yes; then
13257 # IRIX 6.2 and later do not support large files by default,
13258 # so use the C compiler's -n32 option if that helps.
13259 cat >"conftest.$ac_ext" <<_ACEOF
13260 #line 13260 "configure"
13261 #include "confdefs.h"
13262 #include <sys/types.h>
13263 /* Check that off_t can represent 2**63 - 1 correctly.
13264 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13265 since some C++ compilers masquerading as C compilers
13266 incorrectly reject 9223372036854775807. */
13267 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13268 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13269 && LARGE_OFF_T % 2147483647 == 1)
13279 rm -f "conftest.$ac_objext"
13280 if { (eval echo "$as_me:13280: \"$ac_compile\"") >&5
13281 (eval $ac_compile) 2>&5
13283 echo "$as_me:13283: \$? = $ac_status" >&5
13284 (exit "$ac_status"); } &&
13285 { ac_try='test -s "conftest.$ac_objext"'
13286 { (eval echo "$as_me:13286: \"$ac_try\"") >&5
13287 (eval $ac_try) 2>&5
13289 echo "$as_me:13289: \$? = $ac_status" >&5
13290 (exit "$ac_status"); }; }; then
13293 echo "$as_me: failed program was:" >&5
13294 cat "conftest.$ac_ext" >&5
13296 rm -f "conftest.$ac_objext"
13298 rm -f "conftest.$ac_objext"
13299 if { (eval echo "$as_me:13299: \"$ac_compile\"") >&5
13300 (eval $ac_compile) 2>&5
13302 echo "$as_me:13302: \$? = $ac_status" >&5
13303 (exit "$ac_status"); } &&
13304 { ac_try='test -s "conftest.$ac_objext"'
13305 { (eval echo "$as_me:13305: \"$ac_try\"") >&5
13306 (eval $ac_try) 2>&5
13308 echo "$as_me:13308: \$? = $ac_status" >&5
13309 (exit "$ac_status"); }; }; then
13310 ac_cv_sys_largefile_CC=' -n32'; break
13312 echo "$as_me: failed program was:" >&5
13313 cat "conftest.$ac_ext" >&5
13315 rm -f "conftest.$ac_objext"
13319 rm -f "conftest.$ac_ext"
13322 echo "$as_me:13322: result: $ac_cv_sys_largefile_CC" >&5
13323 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
13324 if test "$ac_cv_sys_largefile_CC" != no; then
13325 CC=$CC$ac_cv_sys_largefile_CC
13328 echo "$as_me:13328: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13329 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
13330 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
13331 echo $ECHO_N "(cached) $ECHO_C" >&6
13334 ac_cv_sys_file_offset_bits=no
13335 cat >"conftest.$ac_ext" <<_ACEOF
13336 #line 13336 "configure"
13337 #include "confdefs.h"
13338 #include <sys/types.h>
13339 /* Check that off_t can represent 2**63 - 1 correctly.
13340 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13341 since some C++ compilers masquerading as C compilers
13342 incorrectly reject 9223372036854775807. */
13343 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13344 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13345 && LARGE_OFF_T % 2147483647 == 1)
13355 rm -f "conftest.$ac_objext"
13356 if { (eval echo "$as_me:13356: \"$ac_compile\"") >&5
13357 (eval $ac_compile) 2>&5
13359 echo "$as_me:13359: \$? = $ac_status" >&5
13360 (exit "$ac_status"); } &&
13361 { ac_try='test -s "conftest.$ac_objext"'
13362 { (eval echo "$as_me:13362: \"$ac_try\"") >&5
13363 (eval $ac_try) 2>&5
13365 echo "$as_me:13365: \$? = $ac_status" >&5
13366 (exit "$ac_status"); }; }; then
13369 echo "$as_me: failed program was:" >&5
13370 cat "conftest.$ac_ext" >&5
13372 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13373 cat >"conftest.$ac_ext" <<_ACEOF
13374 #line 13374 "configure"
13375 #include "confdefs.h"
13376 #define _FILE_OFFSET_BITS 64
13377 #include <sys/types.h>
13378 /* Check that off_t can represent 2**63 - 1 correctly.
13379 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13380 since some C++ compilers masquerading as C compilers
13381 incorrectly reject 9223372036854775807. */
13382 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13383 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13384 && LARGE_OFF_T % 2147483647 == 1)
13394 rm -f "conftest.$ac_objext"
13395 if { (eval echo "$as_me:13395: \"$ac_compile\"") >&5
13396 (eval $ac_compile) 2>&5
13398 echo "$as_me:13398: \$? = $ac_status" >&5
13399 (exit "$ac_status"); } &&
13400 { ac_try='test -s "conftest.$ac_objext"'
13401 { (eval echo "$as_me:13401: \"$ac_try\"") >&5
13402 (eval $ac_try) 2>&5
13404 echo "$as_me:13404: \$? = $ac_status" >&5
13405 (exit "$ac_status"); }; }; then
13406 ac_cv_sys_file_offset_bits=64; break
13408 echo "$as_me: failed program was:" >&5
13409 cat "conftest.$ac_ext" >&5
13411 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13415 echo "$as_me:13415: result: $ac_cv_sys_file_offset_bits" >&5
13416 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
13417 if test "$ac_cv_sys_file_offset_bits" != no; then
13419 cat >>confdefs.h <<EOF
13420 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
13425 echo "$as_me:13425: checking for _LARGE_FILES value needed for large files" >&5
13426 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
13427 if test "${ac_cv_sys_large_files+set}" = set; then
13428 echo $ECHO_N "(cached) $ECHO_C" >&6
13431 ac_cv_sys_large_files=no
13432 cat >"conftest.$ac_ext" <<_ACEOF
13433 #line 13433 "configure"
13434 #include "confdefs.h"
13435 #include <sys/types.h>
13436 /* Check that off_t can represent 2**63 - 1 correctly.
13437 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13438 since some C++ compilers masquerading as C compilers
13439 incorrectly reject 9223372036854775807. */
13440 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13441 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13442 && LARGE_OFF_T % 2147483647 == 1)
13452 rm -f "conftest.$ac_objext"
13453 if { (eval echo "$as_me:13453: \"$ac_compile\"") >&5
13454 (eval $ac_compile) 2>&5
13456 echo "$as_me:13456: \$? = $ac_status" >&5
13457 (exit "$ac_status"); } &&
13458 { ac_try='test -s "conftest.$ac_objext"'
13459 { (eval echo "$as_me:13459: \"$ac_try\"") >&5
13460 (eval $ac_try) 2>&5
13462 echo "$as_me:13462: \$? = $ac_status" >&5
13463 (exit "$ac_status"); }; }; then
13466 echo "$as_me: failed program was:" >&5
13467 cat "conftest.$ac_ext" >&5
13469 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13470 cat >"conftest.$ac_ext" <<_ACEOF
13471 #line 13471 "configure"
13472 #include "confdefs.h"
13473 #define _LARGE_FILES 1
13474 #include <sys/types.h>
13475 /* Check that off_t can represent 2**63 - 1 correctly.
13476 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13477 since some C++ compilers masquerading as C compilers
13478 incorrectly reject 9223372036854775807. */
13479 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
13480 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13481 && LARGE_OFF_T % 2147483647 == 1)
13491 rm -f "conftest.$ac_objext"
13492 if { (eval echo "$as_me:13492: \"$ac_compile\"") >&5
13493 (eval $ac_compile) 2>&5
13495 echo "$as_me:13495: \$? = $ac_status" >&5
13496 (exit "$ac_status"); } &&
13497 { ac_try='test -s "conftest.$ac_objext"'
13498 { (eval echo "$as_me:13498: \"$ac_try\"") >&5
13499 (eval $ac_try) 2>&5
13501 echo "$as_me:13501: \$? = $ac_status" >&5
13502 (exit "$ac_status"); }; }; then
13503 ac_cv_sys_large_files=1; break
13505 echo "$as_me: failed program was:" >&5
13506 cat "conftest.$ac_ext" >&5
13508 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13512 echo "$as_me:13512: result: $ac_cv_sys_large_files" >&5
13513 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
13514 if test "$ac_cv_sys_large_files" != no; then
13516 cat >>confdefs.h <<EOF
13517 #define _LARGE_FILES $ac_cv_sys_large_files
13524 if test "$enable_largefile" != no ; then
13525 echo "$as_me:13525: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13526 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
13527 if test "${ac_cv_sys_largefile_source+set}" = set; then
13528 echo $ECHO_N "(cached) $ECHO_C" >&6
13531 ac_cv_sys_largefile_source=no
13532 cat >"conftest.$ac_ext" <<_ACEOF
13533 #line 13533 "configure"
13534 #include "confdefs.h"
13544 rm -f "conftest.$ac_objext"
13545 if { (eval echo "$as_me:13545: \"$ac_compile\"") >&5
13546 (eval $ac_compile) 2>&5
13548 echo "$as_me:13548: \$? = $ac_status" >&5
13549 (exit "$ac_status"); } &&
13550 { ac_try='test -s "conftest.$ac_objext"'
13551 { (eval echo "$as_me:13551: \"$ac_try\"") >&5
13552 (eval $ac_try) 2>&5
13554 echo "$as_me:13554: \$? = $ac_status" >&5
13555 (exit "$ac_status"); }; }; then
13558 echo "$as_me: failed program was:" >&5
13559 cat "conftest.$ac_ext" >&5
13561 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13562 cat >"conftest.$ac_ext" <<_ACEOF
13563 #line 13563 "configure"
13564 #include "confdefs.h"
13565 #define _LARGEFILE_SOURCE 1
13575 rm -f "conftest.$ac_objext"
13576 if { (eval echo "$as_me:13576: \"$ac_compile\"") >&5
13577 (eval $ac_compile) 2>&5
13579 echo "$as_me:13579: \$? = $ac_status" >&5
13580 (exit "$ac_status"); } &&
13581 { ac_try='test -s "conftest.$ac_objext"'
13582 { (eval echo "$as_me:13582: \"$ac_try\"") >&5
13583 (eval $ac_try) 2>&5
13585 echo "$as_me:13585: \$? = $ac_status" >&5
13586 (exit "$ac_status"); }; }; then
13587 ac_cv_sys_largefile_source=1; break
13589 echo "$as_me: failed program was:" >&5
13590 cat "conftest.$ac_ext" >&5
13592 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13596 echo "$as_me:13596: result: $ac_cv_sys_largefile_source" >&5
13597 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
13598 if test "$ac_cv_sys_largefile_source" != no; then
13600 cat >>confdefs.h <<EOF
13601 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13607 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13608 # in glibc 2.1.3, but that breaks too many other things.
13609 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13610 echo "$as_me:13610: checking for fseeko" >&5
13611 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
13612 if test "${ac_cv_func_fseeko+set}" = set; then
13613 echo $ECHO_N "(cached) $ECHO_C" >&6
13615 cat >"conftest.$ac_ext" <<_ACEOF
13616 #line 13616 "configure"
13617 #include "confdefs.h"
13622 return fseeko && fseeko (stdin, 0, 0);
13627 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
13628 if { (eval echo "$as_me:13628: \"$ac_link\"") >&5
13629 (eval $ac_link) 2>&5
13631 echo "$as_me:13631: \$? = $ac_status" >&5
13632 (exit "$ac_status"); } &&
13633 { ac_try='test -s "conftest$ac_exeext"'
13634 { (eval echo "$as_me:13634: \"$ac_try\"") >&5
13635 (eval $ac_try) 2>&5
13637 echo "$as_me:13637: \$? = $ac_status" >&5
13638 (exit "$ac_status"); }; }; then
13639 ac_cv_func_fseeko=yes
13641 echo "$as_me: failed program was:" >&5
13642 cat "conftest.$ac_ext" >&5
13643 ac_cv_func_fseeko=no
13645 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
13647 echo "$as_me:13647: result: $ac_cv_func_fseeko" >&5
13648 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
13649 if test $ac_cv_func_fseeko = yes; then
13651 cat >>confdefs.h <<\EOF
13652 #define HAVE_FSEEKO 1
13657 # Normally we would collect these definitions in the config.h,
13658 # but (like _XOPEN_SOURCE), some environments rely on having these
13659 # defined before any of the system headers are included. Another
13660 # case comes up with C++, e.g., on AIX the compiler compiles the
13661 # header files by themselves before looking at the body files it is
13662 # told to compile. For ncurses, those header files do not include
13664 if test "$ac_cv_sys_large_files" != no
13667 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13668 CPPFLAGS="${CPPFLAGS}-D_LARGE_FILES"
13671 if test "$ac_cv_sys_largefile_source" != no
13674 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13675 CPPFLAGS="${CPPFLAGS}-D_LARGEFILE_SOURCE"
13678 if test "$ac_cv_sys_file_offset_bits" != no
13681 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13682 CPPFLAGS="${CPPFLAGS}-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
13686 echo "$as_me:13686: checking whether to use struct dirent64" >&5
13687 echo $ECHO_N "checking whether to use struct dirent64... $ECHO_C" >&6
13688 if test "${cf_cv_struct_dirent64+set}" = set; then
13689 echo $ECHO_N "(cached) $ECHO_C" >&6
13692 cat >"conftest.$ac_ext" <<_ACEOF
13693 #line 13693 "configure"
13694 #include "confdefs.h"
13696 #pragma GCC diagnostic error "-Wincompatible-pointer-types"
13697 #include <sys/types.h>
13698 #include <dirent.h>
13704 /* if transitional largefile support is setup, this is true */
13705 extern struct dirent64 * readdir(DIR *);
13706 struct dirent64 *x = readdir((DIR *)0);
13707 struct dirent *y = readdir((DIR *)0);
13715 rm -f "conftest.$ac_objext"
13716 if { (eval echo "$as_me:13716: \"$ac_compile\"") >&5
13717 (eval $ac_compile) 2>&5
13719 echo "$as_me:13719: \$? = $ac_status" >&5
13720 (exit "$ac_status"); } &&
13721 { ac_try='test -s "conftest.$ac_objext"'
13722 { (eval echo "$as_me:13722: \"$ac_try\"") >&5
13723 (eval $ac_try) 2>&5
13725 echo "$as_me:13725: \$? = $ac_status" >&5
13726 (exit "$ac_status"); }; }; then
13727 cf_cv_struct_dirent64=yes
13729 echo "$as_me: failed program was:" >&5
13730 cat "conftest.$ac_ext" >&5
13731 cf_cv_struct_dirent64=no
13733 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
13736 echo "$as_me:13736: result: $cf_cv_struct_dirent64" >&5
13737 echo "${ECHO_T}$cf_cv_struct_dirent64" >&6
13738 test "$cf_cv_struct_dirent64" = yes &&
13739 cat >>confdefs.h <<\EOF
13740 #define HAVE_STRUCT_DIRENT64 1
13745 ### use option --disable-tparm-varargs to make tparm() conform to X/Open
13746 echo "$as_me:13746: checking if you want tparm not to use X/Open fixed-parameter list" >&5
13747 echo $ECHO_N "checking if you want tparm not to use X/Open fixed-parameter list... $ECHO_C" >&6
13749 # Check whether --enable-tparm-varargs or --disable-tparm-varargs was given.
13750 if test "${enable_tparm_varargs+set}" = set; then
13751 enableval="$enable_tparm_varargs"
13752 with_tparm_varargs=$enableval
13754 with_tparm_varargs=yes
13756 echo "$as_me:13756: result: $with_tparm_varargs" >&5
13757 echo "${ECHO_T}$with_tparm_varargs" >&6
13758 NCURSES_TPARM_VARARGS=0
13759 test "x$with_tparm_varargs" = xyes && NCURSES_TPARM_VARARGS=1
13761 ### use option --disable-tic-depends to make libtic not explicitly depend on ncurses/ncursesw
13762 if test "$with_ticlib" != no ; then
13763 echo "$as_me:13763: checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library" >&5
13764 echo $ECHO_N "checking if you want tic library to use explicit dependency on ncurses$LIB_SUFFIX library... $ECHO_C" >&6
13766 # Check whether --enable-tic-depends or --disable-tic-depends was given.
13767 if test "${enable_tic_depends+set}" = set; then
13768 enableval="$enable_tic_depends"
13769 with_tic_depends=$enableval
13771 with_tic_depends=yes
13773 echo "$as_me:13773: result: $with_tic_depends" >&5
13774 echo "${ECHO_T}$with_tic_depends" >&6
13776 with_tic_depends=no
13779 ### use option --enable-wattr-macros to enable wattr* macros in curses.h
13780 echo "$as_me:13780: checking if you want to enable wattr* macros" >&5
13781 echo $ECHO_N "checking if you want to enable wattr* macros... $ECHO_C" >&6
13783 # Check whether --enable-wattr-macros or --disable-wattr-macros was given.
13784 if test "${enable_wattr_macros+set}" = set; then
13785 enableval="$enable_wattr_macros"
13786 with_wattr_macros=$enableval
13788 with_wattr_macros=no
13790 if [ "x$with_wattr_macros" != xyes ]; then
13791 NCURSES_WATTR_MACROS=0
13792 echo "$as_me:13792: result: no" >&5
13793 echo "${ECHO_T}no" >&6
13795 NCURSES_WATTR_MACROS=1
13796 echo "$as_me:13796: result: yes" >&5
13797 echo "${ECHO_T}yes" >&6
13800 echo "$as_me:13800: checking for X11 rgb file" >&5
13801 echo $ECHO_N "checking for X11 rgb file... $ECHO_C" >&6
13803 # Check whether --with-x11-rgb or --without-x11-rgb was given.
13804 if test "${with_x11_rgb+set}" = set; then
13805 withval="$with_x11_rgb"
13811 if test "x$RGB_PATH" = xauto
13813 RGB_PATH='${exec_prefix}/lib/X11/rgb.txt'
13815 /opt/local/share/X11/rgb.txt \
13816 /opt/X11/share/X11/rgb.txt \
13817 /usr/share/X11/rgb.txt \
13818 /usr/X11/share/X11/rgb.txt \
13819 /usr/X11/lib/X11/rgb.txt \
13820 /usr/lib/X11/rgb.txt \
13822 /usr/pkg/lib/X11/rgb.txt \
13823 /usr/X11R7/lib/X11/rgb.txt \
13824 /usr/X11R6/lib/X11/rgb.txt \
13825 /usr/X11R5/lib/X11/rgb.txt \
13826 /usr/X11R4/lib/X11/rgb.txt \
13827 /usr/local/lib/X11/rgb.txt \
13828 /usr/local/share/X11/rgb.txt \
13829 /usr/lib64/X11/rgb.txt
13831 if test -f "$cf_path" ; then
13832 RGB_PATH="$cf_path"
13839 if test "x$prefix" != xNONE; then
13840 cf_path_syntax="$prefix"
13842 cf_path_syntax="$ac_default_prefix"
13845 case ".$cf_path" in
13846 (.\$\(*\)*|.\'*\'*)
13850 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
13852 (.\$\{*prefix\}*|.\$\{*dir\}*)
13853 eval cf_path="$cf_path"
13854 case ".$cf_path" in
13856 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
13861 cf_path=`echo "$cf_path" | sed -e s%NONE%$cf_path_syntax%`
13864 { { echo "$as_me:13864: error: expected a pathname, not \"$cf_path\"" >&5
13865 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
13866 { (exit 1); exit 1; }; }
13872 echo "$as_me:13872: result: $RGB_PATH" >&5
13873 echo "${ECHO_T}$RGB_PATH" >&6
13875 cat >>confdefs.h <<EOF
13876 #define RGB_PATH "$cf_path"
13880 if test "$RGB_PATH" = no
13885 ### use option --with-bool to override bool's type
13886 echo "$as_me:13886: checking for type of bool" >&5
13887 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
13889 # Check whether --with-bool or --without-bool was given.
13890 if test "${with_bool+set}" = set; then
13891 withval="$with_bool"
13892 NCURSES_BOOL="$withval"
13896 echo "$as_me:13896: result: $NCURSES_BOOL" >&5
13897 echo "${ECHO_T}$NCURSES_BOOL" >&6
13899 echo "$as_me:13899: checking for alternate terminal capabilities file" >&5
13900 echo $ECHO_N "checking for alternate terminal capabilities file... $ECHO_C" >&6
13902 # Check whether --with-caps or --without-caps was given.
13903 if test "${with_caps+set}" = set; then
13904 withval="$with_caps"
13905 TERMINFO_CAPS=Caps.$withval
13909 test -f "${srcdir}/include/${TERMINFO_CAPS}" || TERMINFO_CAPS=Caps
13910 echo "$as_me:13910: result: $TERMINFO_CAPS" >&5
13911 echo "${ECHO_T}$TERMINFO_CAPS" >&6
13913 ### use option --with-chtype to override chtype's type
13914 echo "$as_me:13914: checking for type of chtype" >&5
13915 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
13917 # Check whether --with-chtype or --without-chtype was given.
13918 if test "${with_chtype+set}" = set; then
13919 withval="$with_chtype"
13920 NCURSES_CHTYPE="$withval"
13922 NCURSES_CHTYPE=$cf_dft_chtype
13924 echo "$as_me:13924: result: $NCURSES_CHTYPE" >&5
13925 echo "${ECHO_T}$NCURSES_CHTYPE" >&6
13927 ### use option --with-ospeed to override ospeed's type
13928 echo "$as_me:13928: checking for type of ospeed" >&5
13929 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
13931 # Check whether --with-ospeed or --without-ospeed was given.
13932 if test "${with_ospeed+set}" = set; then
13933 withval="$with_ospeed"
13934 NCURSES_OSPEED="$withval"
13936 NCURSES_OSPEED=short
13938 echo "$as_me:13938: result: $NCURSES_OSPEED" >&5
13939 echo "${ECHO_T}$NCURSES_OSPEED" >&6
13941 ### use option --with-mmask-t to override mmask_t's type
13942 echo "$as_me:13942: checking for type of mmask_t" >&5
13943 echo $ECHO_N "checking for type of mmask_t... $ECHO_C" >&6
13945 # Check whether --with-mmask-t or --without-mmask-t was given.
13946 if test "${with_mmask_t+set}" = set; then
13947 withval="$with_mmask_t"
13948 NCURSES_MMASK_T="$withval"
13950 NCURSES_MMASK_T=$cf_dft_mmask_t
13952 echo "$as_me:13952: result: $NCURSES_MMASK_T" >&5
13953 echo "${ECHO_T}$NCURSES_MMASK_T" >&6
13955 ### use option --with-ccharw-max to override CCHARW_MAX size
13956 echo "$as_me:13956: checking for size CCHARW_MAX" >&5
13957 echo $ECHO_N "checking for size CCHARW_MAX... $ECHO_C" >&6
13959 # Check whether --with-ccharw-max or --without-ccharw-max was given.
13960 if test "${with_ccharw_max+set}" = set; then
13961 withval="$with_ccharw_max"
13962 NCURSES_CCHARW_MAX="$withval"
13964 NCURSES_CCHARW_MAX=5
13966 echo "$as_me:13966: result: $NCURSES_CCHARW_MAX" >&5
13967 echo "${ECHO_T}$NCURSES_CCHARW_MAX" >&6
13969 echo "$as_me:13969: checking for ANSI C header files" >&5
13970 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13971 if test "${ac_cv_header_stdc+set}" = set; then
13972 echo $ECHO_N "(cached) $ECHO_C" >&6
13974 cat >"conftest.$ac_ext" <<_ACEOF
13975 #line 13975 "configure"
13976 #include "confdefs.h"
13977 #include <stdlib.h>
13978 #include <stdarg.h>
13979 #include <string.h>
13983 if { (eval echo "$as_me:13983: \"$ac_cpp "conftest.$ac_ext"\"") >&5
13984 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
13986 $EGREP -v '^ *\+' conftest.er1 >conftest.err
13988 cat conftest.err >&5
13989 echo "$as_me:13989: \$? = $ac_status" >&5
13990 (exit "$ac_status"); } >/dev/null; then
13991 if test -s conftest.err; then
13992 ac_cpp_err=$ac_c_preproc_warn_flag
13999 if test -z "$ac_cpp_err"; then
14000 ac_cv_header_stdc=yes
14002 echo "$as_me: failed program was:" >&5
14003 cat "conftest.$ac_ext" >&5
14004 ac_cv_header_stdc=no
14006 rm -f conftest.err "conftest.$ac_ext"
14008 if test $ac_cv_header_stdc = yes; then
14009 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14010 cat >"conftest.$ac_ext" <<_ACEOF
14011 #line 14011 "configure"
14012 #include "confdefs.h"
14013 #include <string.h>
14016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14017 $EGREP "memchr" >/dev/null 2>&1; then
14020 ac_cv_header_stdc=no
14026 if test $ac_cv_header_stdc = yes; then
14027 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14028 cat >"conftest.$ac_ext" <<_ACEOF
14029 #line 14029 "configure"
14030 #include "confdefs.h"
14031 #include <stdlib.h>
14034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14035 $EGREP "free" >/dev/null 2>&1; then
14038 ac_cv_header_stdc=no
14044 if test $ac_cv_header_stdc = yes; then
14045 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14046 if test "$cross_compiling" = yes; then
14049 cat >"conftest.$ac_ext" <<_ACEOF
14050 #line 14050 "configure"
14051 #include "confdefs.h"
14053 #if ((' ' & 0x0FF) == 0x020)
14054 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14055 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14057 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14058 || ('j' <= (c) && (c) <= 'r') \
14059 || ('s' <= (c) && (c) <= 'z'))
14060 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14063 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14068 for (i = 0; i < 256; i++)
14069 if (XOR (islower (i), ISLOWER (i))
14070 || toupper (i) != TOUPPER (i))
14071 $ac_main_return(2);
14072 $ac_main_return (0);
14075 rm -f "conftest$ac_exeext"
14076 if { (eval echo "$as_me:14076: \"$ac_link\"") >&5
14077 (eval $ac_link) 2>&5
14079 echo "$as_me:14079: \$? = $ac_status" >&5
14080 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
14081 { (eval echo "$as_me:14081: \"$ac_try\"") >&5
14082 (eval $ac_try) 2>&5
14084 echo "$as_me:14084: \$? = $ac_status" >&5
14085 (exit "$ac_status"); }; }; then
14088 echo "$as_me: program exited with status $ac_status" >&5
14089 echo "$as_me: failed program was:" >&5
14090 cat "conftest.$ac_ext" >&5
14091 ac_cv_header_stdc=no
14093 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
14097 echo "$as_me:14097: result: $ac_cv_header_stdc" >&5
14098 echo "${ECHO_T}$ac_cv_header_stdc" >&6
14099 if test $ac_cv_header_stdc = yes; then
14101 cat >>confdefs.h <<\EOF
14102 #define STDC_HEADERS 1
14107 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
14109 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
14110 inttypes.h stdint.h unistd.h
14112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14113 echo "$as_me:14113: checking for $ac_header" >&5
14114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14116 echo $ECHO_N "(cached) $ECHO_C" >&6
14118 cat >"conftest.$ac_ext" <<_ACEOF
14119 #line 14119 "configure"
14120 #include "confdefs.h"
14121 $ac_includes_default
14122 #include <$ac_header>
14124 rm -f "conftest.$ac_objext"
14125 if { (eval echo "$as_me:14125: \"$ac_compile\"") >&5
14126 (eval $ac_compile) 2>&5
14128 echo "$as_me:14128: \$? = $ac_status" >&5
14129 (exit "$ac_status"); } &&
14130 { ac_try='test -s "conftest.$ac_objext"'
14131 { (eval echo "$as_me:14131: \"$ac_try\"") >&5
14132 (eval $ac_try) 2>&5
14134 echo "$as_me:14134: \$? = $ac_status" >&5
14135 (exit "$ac_status"); }; }; then
14136 eval "$as_ac_Header=yes"
14138 echo "$as_me: failed program was:" >&5
14139 cat "conftest.$ac_ext" >&5
14140 eval "$as_ac_Header=no"
14142 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14144 echo "$as_me:14144: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
14145 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
14146 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
14147 cat >>confdefs.h <<EOF
14148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14154 echo "$as_me:14154: checking for signed char" >&5
14155 echo $ECHO_N "checking for signed char... $ECHO_C" >&6
14156 if test "${ac_cv_type_signed_char+set}" = set; then
14157 echo $ECHO_N "(cached) $ECHO_C" >&6
14159 cat >"conftest.$ac_ext" <<_ACEOF
14160 #line 14160 "configure"
14161 #include "confdefs.h"
14162 $ac_includes_default
14166 if ((signed char *) 0)
14168 if (sizeof (signed char))
14174 rm -f "conftest.$ac_objext"
14175 if { (eval echo "$as_me:14175: \"$ac_compile\"") >&5
14176 (eval $ac_compile) 2>&5
14178 echo "$as_me:14178: \$? = $ac_status" >&5
14179 (exit "$ac_status"); } &&
14180 { ac_try='test -s "conftest.$ac_objext"'
14181 { (eval echo "$as_me:14181: \"$ac_try\"") >&5
14182 (eval $ac_try) 2>&5
14184 echo "$as_me:14184: \$? = $ac_status" >&5
14185 (exit "$ac_status"); }; }; then
14186 ac_cv_type_signed_char=yes
14188 echo "$as_me: failed program was:" >&5
14189 cat "conftest.$ac_ext" >&5
14190 ac_cv_type_signed_char=no
14192 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14194 echo "$as_me:14194: result: $ac_cv_type_signed_char" >&5
14195 echo "${ECHO_T}$ac_cv_type_signed_char" >&6
14197 echo "$as_me:14197: checking size of signed char" >&5
14198 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6
14199 if test "${ac_cv_sizeof_signed_char+set}" = set; then
14200 echo $ECHO_N "(cached) $ECHO_C" >&6
14202 if test "$ac_cv_type_signed_char" = yes; then
14203 if test "$cross_compiling" = yes; then
14204 # Depending upon the size, compute the lo and hi bounds.
14205 cat >"conftest.$ac_ext" <<_ACEOF
14206 #line 14206 "configure"
14207 #include "confdefs.h"
14208 $ac_includes_default
14212 int _array_ [1 - 2 * !((sizeof (signed char)) >= 0)]
14217 rm -f "conftest.$ac_objext"
14218 if { (eval echo "$as_me:14218: \"$ac_compile\"") >&5
14219 (eval $ac_compile) 2>&5
14221 echo "$as_me:14221: \$? = $ac_status" >&5
14222 (exit "$ac_status"); } &&
14223 { ac_try='test -s "conftest.$ac_objext"'
14224 { (eval echo "$as_me:14224: \"$ac_try\"") >&5
14225 (eval $ac_try) 2>&5
14227 echo "$as_me:14227: \$? = $ac_status" >&5
14228 (exit "$ac_status"); }; }; then
14231 cat >"conftest.$ac_ext" <<_ACEOF
14232 #line 14232 "configure"
14233 #include "confdefs.h"
14234 $ac_includes_default
14238 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
14243 rm -f "conftest.$ac_objext"
14244 if { (eval echo "$as_me:14244: \"$ac_compile\"") >&5
14245 (eval $ac_compile) 2>&5
14247 echo "$as_me:14247: \$? = $ac_status" >&5
14248 (exit "$ac_status"); } &&
14249 { ac_try='test -s "conftest.$ac_objext"'
14250 { (eval echo "$as_me:14250: \"$ac_try\"") >&5
14251 (eval $ac_try) 2>&5
14253 echo "$as_me:14253: \$? = $ac_status" >&5
14254 (exit "$ac_status"); }; }; then
14255 ac_hi=$ac_mid; break
14257 echo "$as_me: failed program was:" >&5
14258 cat "conftest.$ac_ext" >&5
14259 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
14261 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14264 echo "$as_me: failed program was:" >&5
14265 cat "conftest.$ac_ext" >&5
14268 cat >"conftest.$ac_ext" <<_ACEOF
14269 #line 14269 "configure"
14270 #include "confdefs.h"
14271 $ac_includes_default
14275 int _array_ [1 - 2 * !((sizeof (signed char)) >= $ac_mid)]
14280 rm -f "conftest.$ac_objext"
14281 if { (eval echo "$as_me:14281: \"$ac_compile\"") >&5
14282 (eval $ac_compile) 2>&5
14284 echo "$as_me:14284: \$? = $ac_status" >&5
14285 (exit "$ac_status"); } &&
14286 { ac_try='test -s "conftest.$ac_objext"'
14287 { (eval echo "$as_me:14287: \"$ac_try\"") >&5
14288 (eval $ac_try) 2>&5
14290 echo "$as_me:14290: \$? = $ac_status" >&5
14291 (exit "$ac_status"); }; }; then
14292 ac_lo=$ac_mid; break
14294 echo "$as_me: failed program was:" >&5
14295 cat "conftest.$ac_ext" >&5
14296 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
14298 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14301 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14302 # Binary search between lo and hi bounds.
14303 while test "x$ac_lo" != "x$ac_hi"; do
14304 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
14305 cat >"conftest.$ac_ext" <<_ACEOF
14306 #line 14306 "configure"
14307 #include "confdefs.h"
14308 $ac_includes_default
14312 int _array_ [1 - 2 * !((sizeof (signed char)) <= $ac_mid)]
14317 rm -f "conftest.$ac_objext"
14318 if { (eval echo "$as_me:14318: \"$ac_compile\"") >&5
14319 (eval $ac_compile) 2>&5
14321 echo "$as_me:14321: \$? = $ac_status" >&5
14322 (exit "$ac_status"); } &&
14323 { ac_try='test -s "conftest.$ac_objext"'
14324 { (eval echo "$as_me:14324: \"$ac_try\"") >&5
14325 (eval $ac_try) 2>&5
14327 echo "$as_me:14327: \$? = $ac_status" >&5
14328 (exit "$ac_status"); }; }; then
14331 echo "$as_me: failed program was:" >&5
14332 cat "conftest.$ac_ext" >&5
14333 ac_lo=`expr "$ac_mid" + 1`
14335 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
14337 ac_cv_sizeof_signed_char=$ac_lo
14339 if test "$cross_compiling" = yes; then
14340 { { echo "$as_me:14340: error: cannot run test program while cross compiling" >&5
14341 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
14342 { (exit 1); exit 1; }; }
14344 cat >"conftest.$ac_ext" <<_ACEOF
14345 #line 14345 "configure"
14346 #include "confdefs.h"
14347 $ac_includes_default
14351 FILE *f = fopen ("conftest.val", "w");
14353 $ac_main_return (1);
14354 fprintf (f, "%ld", (long)(sizeof (signed char)));
14360 rm -f "conftest$ac_exeext"
14361 if { (eval echo "$as_me:14361: \"$ac_link\"") >&5
14362 (eval $ac_link) 2>&5
14364 echo "$as_me:14364: \$? = $ac_status" >&5
14365 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
14366 { (eval echo "$as_me:14366: \"$ac_try\"") >&5
14367 (eval $ac_try) 2>&5
14369 echo "$as_me:14369: \$? = $ac_status" >&5
14370 (exit "$ac_status"); }; }; then
14371 ac_cv_sizeof_signed_char=`cat conftest.val`
14373 echo "$as_me: program exited with status $ac_status" >&5
14374 echo "$as_me: failed program was:" >&5
14375 cat "conftest.$ac_ext" >&5
14377 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
14382 ac_cv_sizeof_signed_char=0
14385 echo "$as_me:14385: result: $ac_cv_sizeof_signed_char" >&5
14386 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6
14387 cat >>confdefs.h <<EOF
14388 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
14391 if test "$ac_cv_sizeof_signed_char" = 1 ; then
14392 NCURSES_SBOOL="signed char"
14394 NCURSES_SBOOL="char"
14396 echo "$as_me:14396: checking if you want to use signed Boolean array in term.h" >&5
14397 echo $ECHO_N "checking if you want to use signed Boolean array in term.h... $ECHO_C" >&6
14399 # Check whether --enable-signed-char or --disable-signed-char was given.
14400 if test "${enable_signed_char+set}" = set; then
14401 enableval="$enable_signed_char"
14402 with_signed_char=$enableval
14404 with_signed_char=no
14406 echo "$as_me:14406: result: $with_signed_char" >&5
14407 echo "${ECHO_T}$with_signed_char" >&6
14408 test "x$with_signed_char" != xyes && NCURSES_SBOOL="char"
14410 ### use option --with-tparm-arg to override tparm's argument type
14411 echo "$as_me:14411: checking for type of tparm args" >&5
14412 echo $ECHO_N "checking for type of tparm args... $ECHO_C" >&6
14414 # Check whether --with-tparm-arg or --without-tparm-arg was given.
14415 if test "${with_tparm_arg+set}" = set; then
14416 withval="$with_tparm_arg"
14417 NCURSES_TPARM_ARG="$withval"
14419 NCURSES_TPARM_ARG=$cf_dft_tparm_arg
14421 echo "$as_me:14421: result: $NCURSES_TPARM_ARG" >&5
14422 echo "${ECHO_T}$NCURSES_TPARM_ARG" >&6
14424 ### Enable compiling-in rcs id's
14425 echo "$as_me:14425: checking if RCS identifiers should be compiled-in" >&5
14426 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
14428 # Check whether --with-rcs-ids or --without-rcs-ids was given.
14429 if test "${with_rcs_ids+set}" = set; then
14430 withval="$with_rcs_ids"
14431 with_rcs_ids=$withval
14435 echo "$as_me:14435: result: $with_rcs_ids" >&5
14436 echo "${ECHO_T}$with_rcs_ids" >&6
14437 test "x$with_rcs_ids" = xyes &&
14438 cat >>confdefs.h <<\EOF
14439 #define USE_RCS_IDS 1
14442 ###############################################################################
14444 echo "$as_me:14444: checking format of man-pages" >&5
14445 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
14447 # Check whether --with-manpage-format or --without-manpage-format was given.
14448 if test "${with_manpage_format+set}" = set; then
14449 withval="$with_manpage_format"
14450 MANPAGE_FORMAT=$withval
14452 MANPAGE_FORMAT=unknown
14455 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
14456 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
14460 case "$MANPAGE_FORMAT" in
14462 if test -z "$MANPATH" ; then
14463 MANPATH="/usr/man:/usr/share/man"
14466 # look for the 'date' man-page (it is most likely to be installed!)
14472 IFS="${IFS:- }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
14473 for cf_dir in $MANPATH; do
14474 test -z "$cf_dir" && cf_dir=/usr/man
14475 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
14477 cf_test=`echo "$cf_name" | sed -e 's/*//'`
14478 if test "x$cf_test" = "x$cf_name" ; then
14481 (*.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
14482 (*.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
14483 (*.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
14484 (*) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
14498 # if we found a match in either man* or cat*, stop looking
14499 if test -n "$MANPAGE_FORMAT" ; then
14501 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
14502 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
14508 test "$cf_found" = yes && break
14511 # only check the first directory in $MANPATH where we find manpages
14512 if test -n "$MANPAGE_FORMAT" ; then
14516 # if we did not find the example, just assume it is normal
14517 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
14521 for cf_option in $MANPAGE_FORMAT; do
14522 case "$cf_option" in
14523 (gzip|compress|BSDI|normal|formatted|catonly)
14526 cf_unknown="$cf_unknown $cf_option"
14533 echo "$as_me:14533: result: $MANPAGE_FORMAT" >&5
14534 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
14535 if test -n "$cf_unknown" ; then
14536 { echo "$as_me:14536: WARNING: Unexpected manpage-format $cf_unknown" >&5
14537 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
14540 echo "$as_me:14540: checking for manpage renaming" >&5
14541 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
14543 # Check whether --with-manpage-renames or --without-manpage-renames was given.
14544 if test "${with_manpage_renames+set}" = set; then
14545 withval="$with_manpage_renames"
14546 MANPAGE_RENAMES=$withval
14548 MANPAGE_RENAMES=yes
14551 case ".$MANPAGE_RENAMES" in
14555 # Debian 'man' program?
14556 if test -f /etc/debian_version ; then
14557 MANPAGE_RENAMES=`cd "$srcdir" && pwd`/man/man_db.renames
14564 if test "$MANPAGE_RENAMES" != no ; then
14565 if test -f "$srcdir/man/$MANPAGE_RENAMES" ; then
14566 MANPAGE_RENAMES=`cd "$srcdir/man" && pwd`/$MANPAGE_RENAMES
14567 elif test ! -f "$MANPAGE_RENAMES" ; then
14568 { { echo "$as_me:14568: error: not a filename: $MANPAGE_RENAMES" >&5
14569 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
14570 { (exit 1); exit 1; }; }
14573 test ! -d man && mkdir man
14575 # Construct a sed-script to perform renaming within man-pages
14576 if test -n "$MANPAGE_RENAMES" ; then
14577 test ! -d man && mkdir man
14578 $SHELL "$srcdir/man/make_sed.sh" "$MANPAGE_RENAMES" >./edit_man.sed
14582 echo "$as_me:14582: result: $MANPAGE_RENAMES" >&5
14583 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
14585 echo "$as_me:14585: checking if manpage aliases will be installed" >&5
14586 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
14588 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
14589 if test "${with_manpage_aliases+set}" = set; then
14590 withval="$with_manpage_aliases"
14591 MANPAGE_ALIASES=$withval
14593 MANPAGE_ALIASES=yes
14596 echo "$as_me:14596: result: $MANPAGE_ALIASES" >&5
14597 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
14601 cf_use_symlinks=yes
14608 MANPAGE_SYMLINKS=no
14609 if test "$MANPAGE_ALIASES" = yes ; then
14610 echo "$as_me:14610: checking if manpage symlinks should be used" >&5
14611 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
14613 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
14614 if test "${with_manpage_symlinks+set}" = set; then
14615 withval="$with_manpage_symlinks"
14616 MANPAGE_SYMLINKS=$withval
14618 MANPAGE_SYMLINKS=$cf_use_symlinks
14621 if test "$$cf_use_symlinks" = no; then
14622 if test "$MANPAGE_SYMLINKS" = yes ; then
14623 { echo "$as_me:14623: WARNING: cannot make symlinks" >&5
14624 echo "$as_me: WARNING: cannot make symlinks" >&2;}
14625 MANPAGE_SYMLINKS=no
14629 echo "$as_me:14629: result: $MANPAGE_SYMLINKS" >&5
14630 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
14633 echo "$as_me:14633: checking for manpage tbl" >&5
14634 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
14636 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
14637 if test "${with_manpage_tbl+set}" = set; then
14638 withval="$with_manpage_tbl"
14639 MANPAGE_TBL=$withval
14644 echo "$as_me:14644: result: $MANPAGE_TBL" >&5
14645 echo "${ECHO_T}$MANPAGE_TBL" >&6
14647 if test "$prefix" = "NONE" ; then
14648 cf_prefix="$ac_default_prefix"
14650 cf_prefix="$prefix"
14653 case "$MANPAGE_FORMAT" in
14668 test ! -d man && mkdir man
14672 case "$MANPAGE_FORMAT" in
14675 cf_compress=compress
14683 cf_edit_man=./edit_man.sh
14684 cf_man_alias=`pwd`/man_alias.sed
14686 cat >$cf_edit_man <<CF_EOF
14688 # this script is generated by the configure-script CF_MAN_PAGES macro.
14690 prefix="$cf_prefix"
14691 datarootdir="$datarootdir"
14694 NCURSES_MAJOR="$NCURSES_MAJOR"
14695 NCURSES_MINOR="$NCURSES_MINOR"
14696 NCURSES_PATCH="$NCURSES_PATCH"
14698 NCURSES_OSPEED="$NCURSES_OSPEED"
14699 TERMINFO="$TERMINFO"
14702 INSTALL_DATA="$INSTALL_DATA"
14704 transform="$program_transform_name"
14706 TMP=\${TMPDIR:=/tmp}/man\$\$
14707 trap "rm -f \$TMP" 0 1 2 3 15
14719 top_srcdir=\$srcdir/..
14722 if test "\$form" = normal ; then
14723 if test "$cf_format" = yes ; then
14724 if test "$cf_inboth" = no ; then
14725 $SHELL "\$0" format "\$verb" "\$mandir" "\$srcdir" "\$@"
14729 cf_subdir=\$mandir/man
14730 cf_tables=$MANPAGE_TBL
14732 cf_subdir=\$mandir/cat
14736 # process the list of source-files
14737 for i in "\$@" ; do
14741 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
14742 if test "\$verb" = installing ; then
14743 if test ! -d "\$cf_subdir\${section}" ; then
14744 mkdir -p "\$cf_subdir\$section"
14748 # replace variables in man page
14749 if test ! -f "$cf_man_alias" ; then
14750 cat >>$cf_man_alias <<-CF_EOF2
14751 s,@DATADIR@,\$datadir,g
14752 s,@TERMINFO@,\${TERMINFO:="no default value"},g
14753 s,@TERMINFO_DIRS@,\${TERMINFO_DIRS:="no default value"},g
14754 s,@NCURSES_MAJOR@,\${NCURSES_MAJOR:="no default value"},g
14755 s,@NCURSES_MINOR@,\${NCURSES_MINOR:="no default value"},g
14756 s,@NCURSES_PATCH@,\${NCURSES_PATCH:="no default value"},g
14757 s,@NCURSES_OSPEED@,\${NCURSES_OSPEED:="no default value"},g
14760 for cf_name in captoinfo clear infocmp infotocap reset tabs tic toe tput tset
14762 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14763 cf_name=`echo "$cf_name" | sed "$program_transform_name"`
14764 cat >>$cf_edit_man <<-CF_EOF
14765 s,@$cf_NAME@,$cf_name,g
14769 cat >>$cf_edit_man <<CF_EOF
14771 echo "...made $cf_man_alias"
14775 cf_source=\`basename "\$i"\`
14776 inalias=\$cf_source
14777 test ! -f "\$inalias" && inalias="\$srcdir/\$inalias"
14778 if test ! -f "\$inalias" ; then
14779 echo ".. skipped \$cf_source"
14784 if test "$MANPAGE_ALIASES" != no ; then
14785 cat >>$cf_edit_man <<CF_EOF
14787 test "$with_curses_h" = yes && nCurses=ncurses.3x
14788 aliases=\`sed -f "\$top_srcdir/man/manlinks.sed" "\$inalias" |sed -f "$cf_man_alias" | sort -u; test "\$inalias" = "\$nCurses" && echo curses\`
14792 if test "$MANPAGE_RENAMES" = no ; then
14793 cat >>$cf_edit_man <<CF_EOF
14794 # perform program transformations for section 1 man pages
14795 if test \$section = 1 ; then
14796 cf_target=\$cf_subdir\${section}/\`echo \$cf_source|sed "\${transform}"\`
14798 cf_target=\$cf_subdir\${section}/\$cf_source
14802 cat >>$cf_edit_man <<CF_EOF
14803 cf_target=\`grep "^\$cf_source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
14804 if test -z "\$cf_target" ; then
14805 echo "? missing rename for \$cf_source"
14806 cf_target="\$cf_source"
14808 cf_target="\$cf_subdir\${section}/\${cf_target}"
14813 cat >>$cf_edit_man <<CF_EOF
14814 sed -f "$cf_man_alias" \\
14817 if test -f "$MANPAGE_RENAMES" ; then
14818 cat >>$cf_edit_man <<CF_EOF
14819 < "\$i" | sed -f `pwd`/edit_man.sed >\$TMP
14822 cat >>$cf_edit_man <<CF_EOF
14827 cat >>$cf_edit_man <<CF_EOF
14828 if test \$cf_tables = yes ; then
14829 tbl \$TMP >\$TMP.out
14834 if test "$with_overwrite" != yes ; then
14835 cat >>$cf_edit_man <<CF_EOF
14836 sed -e "/\\#[ ]*include/s,<curses.h,<ncurses$LIB_SUFFIX/curses.h," < \$TMP >\$TMP.out
14841 if test "$with_curses_h" != yes ; then
14842 cat >>$cf_edit_man <<CF_EOF
14843 sed -e "/\\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
14848 cat >>$cf_edit_man <<CF_EOF
14849 if test "\$form" = format ; then
14850 nroff -man \$TMP >\$TMP.out
14855 if test -n "$cf_compress" ; then
14856 cat >>$cf_edit_man <<CF_EOF
14857 if test "\$verb" = installing ; then
14858 if ( "$cf_compress" -f \$TMP )
14860 mv \$TMP.$cf_so_strip \$TMP
14863 cf_target="\$cf_target.$cf_so_strip"
14867 case "$MANPAGE_FORMAT" in
14869 cat >>$cf_edit_man <<CF_EOF
14870 if test "\$form" = format ; then
14871 # BSDI installs only .0 suffixes in the cat directories
14872 cf_target="\`echo \$cf_target|sed -e 's/\\.[1-9]\\+[a-z]*/.0/'\`"
14878 cat >>$cf_edit_man <<CF_EOF
14879 suffix=\`basename "\$cf_target" | sed -e 's%^[^.]*%%'\`
14880 if test "\$verb" = installing ; then
14881 echo "\$verb \$cf_target"
14882 \$INSTALL_DATA \$TMP "\$cf_target"
14883 test -d "\$cf_subdir\${section}" &&
14884 test -n "\$aliases" && (
14885 cd "\$cf_subdir\${section}" && (
14886 cf_source=\`echo "\$cf_target" |sed -e 's%^.*/\\([^/][^/]*/[^/][^/]*$\\)%\\1%'\`
14887 test -n "$cf_so_strip" && cf_source=\`echo "\$cf_source" |sed -e 's%\\.$cf_so_strip\$%%'\`
14888 cf_target=\`basename "\$cf_target"\`
14889 for cf_alias in \$aliases
14891 if test "\$section" = 1 ; then
14892 cf_alias=\`echo "\$cf_alias" |sed "\${transform}"\`
14895 if test "$MANPAGE_SYMLINKS" = yes ; then
14896 if test -f "\$cf_alias\${suffix}" ; then
14897 if ( cmp -s "\$cf_target" "\$cf_alias\${suffix}" )
14902 echo ".. \$verb alias \$cf_alias\${suffix}"
14906 cat >>$cf_edit_man <<CF_EOF
14907 $LN_S "\$cf_target" "\$cf_alias\${suffix}"
14911 cat >>$cf_edit_man <<CF_EOF
14912 rm -f "\$cf_alias\${suffix}"
14913 $LN_S "\$cf_target" "\$cf_alias\${suffix}"
14917 cat >>$cf_edit_man <<CF_EOF
14918 elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
14919 echo ".so \$cf_source" >\$TMP
14921 if test -n "$cf_compress" ; then
14922 cat >>$cf_edit_man <<CF_EOF
14923 if test -n "$cf_so_strip" ; then
14924 "$cf_compress" -f \$TMP
14925 mv \$TMP.$cf_so_strip \$TMP
14929 cat >>$cf_edit_man <<CF_EOF
14930 echo ".. \$verb alias \$cf_alias\${suffix}"
14931 rm -f "\$cf_alias\${suffix}"
14932 \$INSTALL_DATA \$TMP "\$cf_alias\${suffix}"
14937 elif test "\$verb" = removing ; then
14938 test -f "\$cf_target" && (
14939 echo "\$verb \$cf_target"
14940 rm -f "\$cf_target"
14942 test -d "\$cf_subdir\${section}" &&
14943 test -n "\$aliases" && (
14944 cd "\$cf_subdir\${section}" && (
14945 for cf_alias in \$aliases
14947 if test "\$section" = 1 ; then
14948 cf_alias=\`echo "\$cf_alias" |sed "\${transform}"\`
14951 echo ".. \$verb alias \$cf_alias\${suffix}"
14952 rm -f "\$cf_alias\${suffix}"
14964 if test "$cf_inboth" = yes ; then
14965 if test "\$form" != format ; then
14966 $SHELL "\$0" format "\$verb" "\$mandir" "\$srcdir" "\$@"
14972 chmod 755 "$cf_edit_man"
14974 ###############################################################################
14976 ### Note that some functions (such as const) are normally disabled anyway.
14977 echo "$as_me:14977: checking if you want to build with function extensions" >&5
14978 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
14980 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
14981 if test "${enable_ext_funcs+set}" = set; then
14982 enableval="$enable_ext_funcs"
14983 with_ext_funcs=$enableval
14987 echo "$as_me:14987: result: $with_ext_funcs" >&5
14988 echo "${ECHO_T}$with_ext_funcs" >&6
14989 if test "x$with_ext_funcs" = xyes ; then
14990 NCURSES_EXT_FUNCS=1
14992 cat >>confdefs.h <<\EOF
14993 #define NCURSES_EXT_FUNCS 1
14996 cat >>confdefs.h <<\EOF
14997 #define HAVE_ASSUME_DEFAULT_COLORS 1
15000 cat >>confdefs.h <<\EOF
15001 #define HAVE_CURSES_VERSION 1
15004 cat >>confdefs.h <<\EOF
15005 #define HAVE_HAS_KEY 1
15008 cat >>confdefs.h <<\EOF
15009 #define HAVE_RESIZETERM 1
15012 cat >>confdefs.h <<\EOF
15013 #define HAVE_RESIZE_TERM 1
15016 cat >>confdefs.h <<\EOF
15017 #define HAVE_TERM_ENTRY_H 1
15020 cat >>confdefs.h <<\EOF
15021 #define HAVE_USE_DEFAULT_COLORS 1
15024 cat >>confdefs.h <<\EOF
15025 #define HAVE_USE_EXTENDED_NAMES 1
15028 cat >>confdefs.h <<\EOF
15029 #define HAVE_USE_SCREEN 1
15032 cat >>confdefs.h <<\EOF
15033 #define HAVE_USE_WINDOW 1
15036 cat >>confdefs.h <<\EOF
15037 #define HAVE_WRESIZE 1
15040 GENERATED_EXT_FUNCS=generated
15041 test "x$with_ext_funcs" = xyes || cf_dft_ext_spfuncs=no
15043 NCURSES_EXT_FUNCS=0
15044 GENERATED_EXT_FUNCS=
15047 echo "$as_me:15047: checking if you want to build with SCREEN extensions" >&5
15048 echo $ECHO_N "checking if you want to build with SCREEN extensions... $ECHO_C" >&6
15050 # Check whether --enable-sp-funcs or --disable-sp-funcs was given.
15051 if test "${enable_sp_funcs+set}" = set; then
15052 enableval="$enable_sp_funcs"
15053 with_sp_funcs=$enableval
15055 with_sp_funcs=$cf_dft_ext_spfuncs
15057 echo "$as_me:15057: result: $with_sp_funcs" >&5
15058 echo "${ECHO_T}$with_sp_funcs" >&6
15059 if test "x$with_sp_funcs" = xyes ; then
15062 cat >>confdefs.h <<\EOF
15063 #define NCURSES_SP_FUNCS 1
15066 cat >>confdefs.h <<\EOF
15067 #define HAVE_TPUTS_SP 1
15070 GENERATED_SP_FUNCS=generated
15073 GENERATED_SP_FUNCS=
15076 echo "$as_me:15076: checking if you want to build with terminal-driver" >&5
15077 echo $ECHO_N "checking if you want to build with terminal-driver... $ECHO_C" >&6
15079 # Check whether --enable-term-driver or --disable-term-driver was given.
15080 if test "${enable_term_driver+set}" = set; then
15081 enableval="$enable_term_driver"
15082 with_term_driver=$enableval
15084 with_term_driver=no
15086 echo "$as_me:15086: result: $with_term_driver" >&5
15087 echo "${ECHO_T}$with_term_driver" >&6
15088 if test "x$with_term_driver" = xyes ; then
15090 cat >>confdefs.h <<\EOF
15091 #define USE_TERM_DRIVER 1
15094 if test "x$with_termlib" != xno ; then
15095 { { echo "$as_me:15095: error: The term-driver option conflicts with the termlib option" >&5
15096 echo "$as_me: error: The term-driver option conflicts with the termlib option" >&2;}
15097 { (exit 1); exit 1; }; }
15099 if test "x$with_sp_funcs" != xyes ; then
15100 { { echo "$as_me:15100: error: The term-driver option relies upon sp-funcs" >&5
15101 echo "$as_me: error: The term-driver option relies upon sp-funcs" >&2;}
15102 { (exit 1); exit 1; }; }
15106 ### use option --enable-const to turn on use of const beyond that in XSI.
15107 echo "$as_me:15107: checking for extended use of const keyword" >&5
15108 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
15110 # Check whether --enable-const or --disable-const was given.
15111 if test "${enable_const+set}" = set; then
15112 enableval="$enable_const"
15113 with_ext_const=$enableval
15115 with_ext_const=$cf_dft_ext_const
15117 echo "$as_me:15117: result: $with_ext_const" >&5
15118 echo "${ECHO_T}$with_ext_const" >&6
15119 NCURSES_CONST='/*nothing*/'
15120 if test "x$with_ext_const" = xyes ; then
15121 NCURSES_CONST=const
15124 ### use option --enable-ext-colors to turn on use of colors beyond 16.
15125 echo "$as_me:15125: checking if you want to use extended colors" >&5
15126 echo $ECHO_N "checking if you want to use extended colors... $ECHO_C" >&6
15128 # Check whether --enable-ext-colors or --disable-ext-colors was given.
15129 if test "${enable_ext_colors+set}" = set; then
15130 enableval="$enable_ext_colors"
15131 with_ext_colors=$enableval
15133 with_ext_colors=$cf_dft_ext_colors
15135 echo "$as_me:15135: result: $with_ext_colors" >&5
15136 echo "${ECHO_T}$with_ext_colors" >&6
15137 NCURSES_EXT_COLORS=0
15138 if test "x$with_ext_colors" = xyes ; then
15139 if test "x$with_widec" != xyes ; then
15140 { echo "$as_me:15140: WARNING: This option applies only to wide-character library" >&5
15141 echo "$as_me: WARNING: This option applies only to wide-character library" >&2;}
15143 # cannot be ABI 5 since it changes sizeof(cchar_t)
15145 if test "${with_abi_version+set}" != set; then
15146 case "$cf_cv_rel_version" in
15148 cf_cv_rel_version=6.0
15149 cf_cv_abi_version=6
15150 { echo "$as_me:15150: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
15151 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
15156 NCURSES_EXT_COLORS=1
15158 cat >>confdefs.h <<\EOF
15159 #define NCURSES_EXT_COLORS 1
15162 cat >>confdefs.h <<\EOF
15163 #define HAVE_ALLOC_PAIR 1
15166 cat >>confdefs.h <<\EOF
15167 #define HAVE_INIT_EXTENDED_COLOR 1
15170 cat >>confdefs.h <<\EOF
15171 #define HAVE_RESET_COLOR_PAIRS 1
15177 ### use option --enable-ext-mouse to modify coding to support 5-button mice
15178 echo "$as_me:15178: checking if you want to use extended mouse encoding" >&5
15179 echo $ECHO_N "checking if you want to use extended mouse encoding... $ECHO_C" >&6
15181 # Check whether --enable-ext-mouse or --disable-ext-mouse was given.
15182 if test "${enable_ext_mouse+set}" = set; then
15183 enableval="$enable_ext_mouse"
15184 with_ext_mouse=$enableval
15186 with_ext_mouse=$cf_dft_ext_mouse
15188 echo "$as_me:15188: result: $with_ext_mouse" >&5
15189 echo "${ECHO_T}$with_ext_mouse" >&6
15190 NCURSES_MOUSE_VERSION=1
15191 if test "x$with_ext_mouse" = xyes ; then
15192 NCURSES_MOUSE_VERSION=2
15194 if test "${with_abi_version+set}" != set; then
15195 case "$cf_cv_rel_version" in
15197 cf_cv_rel_version=6.0
15198 cf_cv_abi_version=6
15199 { echo "$as_me:15199: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
15200 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
15207 ### use option --enable-ext-putwin to turn on extended screendumps
15208 echo "$as_me:15208: checking if you want to use extended putwin/screendump" >&5
15209 echo $ECHO_N "checking if you want to use extended putwin/screendump... $ECHO_C" >&6
15211 # Check whether --enable-ext-putwin or --disable-ext-putwin was given.
15212 if test "${enable_ext_putwin+set}" = set; then
15213 enableval="$enable_ext_putwin"
15214 with_ext_putwin=$enableval
15216 with_ext_putwin=$cf_dft_ext_putwin
15218 echo "$as_me:15218: result: $with_ext_putwin" >&5
15219 echo "${ECHO_T}$with_ext_putwin" >&6
15220 if test "x$with_ext_putwin" = xyes ; then
15222 cat >>confdefs.h <<\EOF
15223 #define NCURSES_EXT_PUTWIN 1
15228 echo "$as_me:15228: checking if you want \$NCURSES_NO_PADDING code" >&5
15229 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
15231 # Check whether --enable-no-padding or --disable-no-padding was given.
15232 if test "${enable_no_padding+set}" = set; then
15233 enableval="$enable_no_padding"
15234 with_no_padding=$enableval
15236 with_no_padding=$with_ext_funcs
15238 echo "$as_me:15238: result: $with_no_padding" >&5
15239 echo "${ECHO_T}$with_no_padding" >&6
15240 test "x$with_no_padding" = xyes &&
15241 cat >>confdefs.h <<\EOF
15242 #define NCURSES_NO_PADDING 1
15245 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
15246 echo "$as_me:15246: checking if you want SIGWINCH handler" >&5
15247 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
15249 # Check whether --enable-sigwinch or --disable-sigwinch was given.
15250 if test "${enable_sigwinch+set}" = set; then
15251 enableval="$enable_sigwinch"
15252 with_sigwinch=$enableval
15254 with_sigwinch=$with_ext_funcs
15256 echo "$as_me:15256: result: $with_sigwinch" >&5
15257 echo "${ECHO_T}$with_sigwinch" >&6
15258 test "x$with_sigwinch" = xyes &&
15259 cat >>confdefs.h <<\EOF
15260 #define USE_SIGWINCH 1
15263 ### use option --enable-tcap-names to allow user to define new capabilities
15264 echo "$as_me:15264: checking if you want user-definable terminal capabilities like termcap" >&5
15265 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
15267 # Check whether --enable-tcap-names or --disable-tcap-names was given.
15268 if test "${enable_tcap_names+set}" = set; then
15269 enableval="$enable_tcap_names"
15270 with_tcap_names=$enableval
15272 with_tcap_names=$with_ext_funcs
15274 echo "$as_me:15274: result: $with_tcap_names" >&5
15275 echo "${ECHO_T}$with_tcap_names" >&6
15277 test "x$with_tcap_names" = xyes && NCURSES_XNAMES=1
15279 ##############################################################################
15281 echo "$as_me:15281: checking if you want to link with the pthread library" >&5
15282 echo $ECHO_N "checking if you want to link with the pthread library... $ECHO_C" >&6
15284 # Check whether --with-pthread or --without-pthread was given.
15285 if test "${with_pthread+set}" = set; then
15286 withval="$with_pthread"
15287 with_pthread=$withval
15291 echo "$as_me:15291: result: $with_pthread" >&5
15292 echo "${ECHO_T}$with_pthread" >&6
15294 if test "$with_pthread" != no ; then
15295 echo "$as_me:15295: checking for pthread.h" >&5
15296 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
15297 if test "${ac_cv_header_pthread_h+set}" = set; then
15298 echo $ECHO_N "(cached) $ECHO_C" >&6
15300 cat >"conftest.$ac_ext" <<_ACEOF
15301 #line 15301 "configure"
15302 #include "confdefs.h"
15303 #include <pthread.h>
15305 if { (eval echo "$as_me:15305: \"$ac_cpp "conftest.$ac_ext"\"") >&5
15306 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
15308 $EGREP -v '^ *\+' conftest.er1 >conftest.err
15310 cat conftest.err >&5
15311 echo "$as_me:15311: \$? = $ac_status" >&5
15312 (exit "$ac_status"); } >/dev/null; then
15313 if test -s conftest.err; then
15314 ac_cpp_err=$ac_c_preproc_warn_flag
15321 if test -z "$ac_cpp_err"; then
15322 ac_cv_header_pthread_h=yes
15324 echo "$as_me: failed program was:" >&5
15325 cat "conftest.$ac_ext" >&5
15326 ac_cv_header_pthread_h=no
15328 rm -f conftest.err "conftest.$ac_ext"
15330 echo "$as_me:15330: result: $ac_cv_header_pthread_h" >&5
15331 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
15332 if test "$ac_cv_header_pthread_h" = yes; then
15334 cat >>confdefs.h <<\EOF
15335 #define HAVE_PTHREADS_H 1
15338 for cf_lib_pthread in pthread c_r
15340 echo "$as_me:15340: checking if we can link with the $cf_lib_pthread library" >&5
15341 echo $ECHO_N "checking if we can link with the $cf_lib_pthread library... $ECHO_C" >&6
15342 cf_save_LIBS="$LIBS"
15344 cf_add_libs="$LIBS"
15347 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15348 # filter duplicates
15349 for cf_add_1lib in $cf_add_0lib; do
15350 for cf_add_2lib in $cf_add_libs; do
15351 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15356 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15358 LIBS="$cf_add_libs"
15360 cat >"conftest.$ac_ext" <<_ACEOF
15361 #line 15361 "configure"
15362 #include "confdefs.h"
15364 #include <pthread.h>
15370 int rc = pthread_create(0,0,0,0);
15371 int r2 = pthread_mutexattr_settype(0, 0);
15377 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15378 if { (eval echo "$as_me:15378: \"$ac_link\"") >&5
15379 (eval $ac_link) 2>&5
15381 echo "$as_me:15381: \$? = $ac_status" >&5
15382 (exit "$ac_status"); } &&
15383 { ac_try='test -s "conftest$ac_exeext"'
15384 { (eval echo "$as_me:15384: \"$ac_try\"") >&5
15385 (eval $ac_try) 2>&5
15387 echo "$as_me:15387: \$? = $ac_status" >&5
15388 (exit "$ac_status"); }; }; then
15391 echo "$as_me: failed program was:" >&5
15392 cat "conftest.$ac_ext" >&5
15395 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15396 LIBS="$cf_save_LIBS"
15397 echo "$as_me:15397: result: $with_pthread" >&5
15398 echo "${ECHO_T}$with_pthread" >&6
15399 test "$with_pthread" = yes && break
15402 if test "$with_pthread" = yes ; then
15404 cf_add_libs="$LIBS"
15407 for cf_add_1lib in -l$cf_lib_pthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15408 # filter duplicates
15409 for cf_add_1lib in $cf_add_0lib; do
15410 for cf_add_2lib in $cf_add_libs; do
15411 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15416 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15418 LIBS="$cf_add_libs"
15420 cat >>confdefs.h <<\EOF
15421 #define HAVE_LIBPTHREADS 1
15425 { { echo "$as_me:15425: error: Cannot link with pthread library" >&5
15426 echo "$as_me: error: Cannot link with pthread library" >&2;}
15427 { (exit 1); exit 1; }; }
15434 if test "x$with_pthread" != xno; then
15435 echo "$as_me:15435: checking for pthread_kill" >&5
15436 echo $ECHO_N "checking for pthread_kill... $ECHO_C" >&6
15437 if test "${ac_cv_func_pthread_kill+set}" = set; then
15438 echo $ECHO_N "(cached) $ECHO_C" >&6
15440 cat >"conftest.$ac_ext" <<_ACEOF
15441 #line 15441 "configure"
15442 #include "confdefs.h"
15443 #define pthread_kill autoconf_temporary
15444 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
15445 #undef pthread_kill
15451 /* We use char because int might match the return type of a gcc2
15452 builtin and then its argument prototype would still apply. */
15453 char pthread_kill (void);
15459 /* The GNU C library defines stubs for functions which it implements
15460 to always fail with ENOSYS. Some functions are actually named
15461 something starting with __ and the normal name is an alias. */
15462 #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill)
15463 #error found stub for pthread_kill
15466 return pthread_kill ();
15471 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15472 if { (eval echo "$as_me:15472: \"$ac_link\"") >&5
15473 (eval $ac_link) 2>&5
15475 echo "$as_me:15475: \$? = $ac_status" >&5
15476 (exit "$ac_status"); } &&
15477 { ac_try='test -s "conftest$ac_exeext"'
15478 { (eval echo "$as_me:15478: \"$ac_try\"") >&5
15479 (eval $ac_try) 2>&5
15481 echo "$as_me:15481: \$? = $ac_status" >&5
15482 (exit "$ac_status"); }; }; then
15483 ac_cv_func_pthread_kill=yes
15485 echo "$as_me: failed program was:" >&5
15486 cat "conftest.$ac_ext" >&5
15487 ac_cv_func_pthread_kill=no
15489 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
15491 echo "$as_me:15491: result: $ac_cv_func_pthread_kill" >&5
15492 echo "${ECHO_T}$ac_cv_func_pthread_kill" >&6
15493 if test "$ac_cv_func_pthread_kill" = yes; then
15495 echo "$as_me:15495: checking if you want to allow EINTR in wgetch with pthreads" >&5
15496 echo $ECHO_N "checking if you want to allow EINTR in wgetch with pthreads... $ECHO_C" >&6
15498 # Check whether --enable-pthreads-eintr or --disable-pthreads-eintr was given.
15499 if test "${enable_pthreads_eintr+set}" = set; then
15500 enableval="$enable_pthreads_eintr"
15501 use_pthreads_eintr=$enableval
15503 use_pthreads_eintr=no
15505 echo "$as_me:15505: result: $use_pthreads_eintr" >&5
15506 echo "${ECHO_T}$use_pthreads_eintr" >&6
15507 if test "x$use_pthreads_eintr" = xyes ; then
15509 cat >>confdefs.h <<\EOF
15510 #define USE_PTHREADS_EINTR 1
15516 echo "$as_me:15516: checking if you want to use weak-symbols for pthreads" >&5
15517 echo $ECHO_N "checking if you want to use weak-symbols for pthreads... $ECHO_C" >&6
15519 # Check whether --enable-weak-symbols or --disable-weak-symbols was given.
15520 if test "${enable_weak_symbols+set}" = set; then
15521 enableval="$enable_weak_symbols"
15522 use_weak_symbols=$enableval
15524 use_weak_symbols=no
15526 echo "$as_me:15526: result: $use_weak_symbols" >&5
15527 echo "${ECHO_T}$use_weak_symbols" >&6
15528 if test "x$use_weak_symbols" = xyes ; then
15530 echo "$as_me:15530: checking if $CC supports weak symbols" >&5
15531 echo $ECHO_N "checking if $CC supports weak symbols... $ECHO_C" >&6
15532 if test "${cf_cv_weak_symbols+set}" = set; then
15533 echo $ECHO_N "(cached) $ECHO_C" >&6
15536 cat >"conftest.$ac_ext" <<_ACEOF
15537 #line 15537 "configure"
15538 #include "confdefs.h"
15545 #if defined(__GNUC__)
15546 # if defined __USE_ISOC99
15547 # define _cat_pragma(exp) _Pragma(#exp)
15548 # define _weak_pragma(exp) _cat_pragma(weak name)
15550 # define _weak_pragma(exp)
15552 # define _declare(name) __extension__ extern __typeof__(name) name
15553 # define weak_symbol(name) _weak_pragma(name) _declare(name) __attribute__((weak))
15556 weak_symbol(fopen);
15562 rm -f "conftest.$ac_objext"
15563 if { (eval echo "$as_me:15563: \"$ac_compile\"") >&5
15564 (eval $ac_compile) 2>&5
15566 echo "$as_me:15566: \$? = $ac_status" >&5
15567 (exit "$ac_status"); } &&
15568 { ac_try='test -s "conftest.$ac_objext"'
15569 { (eval echo "$as_me:15569: \"$ac_try\"") >&5
15570 (eval $ac_try) 2>&5
15572 echo "$as_me:15572: \$? = $ac_status" >&5
15573 (exit "$ac_status"); }; }; then
15574 cf_cv_weak_symbols=yes
15576 echo "$as_me: failed program was:" >&5
15577 cat "conftest.$ac_ext" >&5
15578 cf_cv_weak_symbols=no
15580 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
15583 echo "$as_me:15583: result: $cf_cv_weak_symbols" >&5
15584 echo "${ECHO_T}$cf_cv_weak_symbols" >&6
15587 cf_cv_weak_symbols=no
15590 if test "x$cf_cv_weak_symbols" = xyes ; then
15592 cat >>confdefs.h <<\EOF
15593 #define USE_WEAK_SYMBOLS 1
15600 if test "x$with_pthread" = "xyes" ; then
15602 cat >>confdefs.h <<\EOF
15603 #define USE_PTHREADS 1
15606 enable_reentrant=yes
15607 if test "x$cf_cv_weak_symbols" = xyes ; then
15610 cf_add_libs="$PRIVATE_LIBS"
15613 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15614 # filter duplicates
15615 for cf_add_1lib in $cf_add_0lib; do
15616 for cf_add_2lib in $cf_add_libs; do
15617 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15622 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15624 PRIVATE_LIBS="$cf_add_libs"
15629 # Reentrant code has to be opaque; there's little advantage to making ncurses
15630 # opaque outside of that, so there is no --enable-opaque option. We can use
15631 # this option without --with-pthreads, but this will be always set for
15633 echo "$as_me:15633: checking if you want reentrant code" >&5
15634 echo $ECHO_N "checking if you want reentrant code... $ECHO_C" >&6
15636 # Check whether --enable-reentrant or --disable-reentrant was given.
15637 if test "${enable_reentrant+set}" = set; then
15638 enableval="$enable_reentrant"
15639 with_reentrant=$enableval
15643 echo "$as_me:15643: result: $with_reentrant" >&5
15644 echo "${ECHO_T}$with_reentrant" >&6
15645 if test "x$with_reentrant" = xyes ; then
15646 cf_cv_enable_reentrant=1
15647 cf_cv_enable_opaque="NCURSES_INTERNALS"
15649 if test "x$cf_cv_weak_symbols" = xyes ; then
15651 # remove pthread library from $LIBS
15652 LIBS=`echo "$LIBS" | sed -e 's/-lpthread[ ]//g' -e 's/-lpthread$//'`
15654 cf_add_libs="$TEST_LIBS"
15657 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15658 # filter duplicates
15659 for cf_add_1lib in $cf_add_0lib; do
15660 for cf_add_2lib in $cf_add_libs; do
15661 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15666 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15668 TEST_LIBS="$cf_add_libs"
15670 cf_add_libs="$TEST_LIBS2"
15673 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15674 # filter duplicates
15675 for cf_add_1lib in $cf_add_0lib; do
15676 for cf_add_2lib in $cf_add_libs; do
15677 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15682 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15684 TEST_LIBS2="$cf_add_libs"
15686 cf_add_libs="$PRIVATE_LIBS"
15689 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15690 # filter duplicates
15691 for cf_add_1lib in $cf_add_0lib; do
15692 for cf_add_2lib in $cf_add_libs; do
15693 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15698 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15700 PRIVATE_LIBS="$cf_add_libs"
15703 # when not using weak symbols but with_reentrant,
15704 # add 't' to the library suffix on all platforms
15705 # except cygwin, where we only do that if ALSO
15706 # compiling with full thread support.
15708 (*cygwin* | *msys*)
15709 if test "$with_pthread" = "yes" ; then
15710 if test "x$disable_lib_suffixes" = "xno" ; then
15711 LIB_SUFFIX="t${LIB_SUFFIX}"
15715 if test "x$disable_lib_suffixes" = "xno" ; then
15716 LIB_SUFFIX="t${LIB_SUFFIX}"
15722 cat >>confdefs.h <<\EOF
15723 #define USE_REENTRANT 1
15726 if test "${with_abi_version+set}" != set; then
15727 case "$cf_cv_rel_version" in
15729 cf_cv_rel_version=6.0
15730 cf_cv_abi_version=6
15731 { echo "$as_me:15731: WARNING: overriding ABI version to $cf_cv_abi_version" >&5
15732 echo "$as_me: WARNING: overriding ABI version to $cf_cv_abi_version" >&2;}
15738 cf_cv_enable_reentrant=0
15739 cf_cv_enable_opaque="NCURSES_OPAQUE"
15740 NCURSES_SIZE_T=short
15743 echo "$as_me:15743: checking if you want opaque curses-library structures" >&5
15744 echo $ECHO_N "checking if you want opaque curses-library structures... $ECHO_C" >&6
15746 # Check whether --enable-opaque-curses or --disable-opaque-curses was given.
15747 if test "${enable_opaque_curses+set}" = set; then
15748 enableval="$enable_opaque_curses"
15749 test "$enableval" != yes && enableval=no
15750 if test "$enableval" != "no" ; then
15751 enable_opaque_curses=yes
15754 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
15755 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=no
15761 test "$cf_cv_enable_reentrant" = 1 && enable_opaque_curses=yes
15762 test "$cf_cv_enable_reentrant" = 1 || enable_opaque_curses=no
15765 echo "$as_me:15765: result: $enable_opaque_curses" >&5
15766 echo "${ECHO_T}$enable_opaque_curses" >&6
15768 test "$cf_cv_enable_reentrant" = 1 && \
15769 test "$enable_opaque_curses" = no && \
15770 { { echo "$as_me:15770: error: reentrant configuration requires opaque library" >&5
15771 echo "$as_me: error: reentrant configuration requires opaque library" >&2;}
15772 { (exit 1); exit 1; }; }
15774 echo "$as_me:15774: checking if you want opaque form-library structures" >&5
15775 echo $ECHO_N "checking if you want opaque form-library structures... $ECHO_C" >&6
15777 # Check whether --enable-opaque-form or --disable-opaque-form was given.
15778 if test "${enable_opaque_form+set}" = set; then
15779 enableval="$enable_opaque_form"
15780 enable_opaque_form=yes
15782 enable_opaque_form=no
15784 echo "$as_me:15784: result: $enable_opaque_form" >&5
15785 echo "${ECHO_T}$enable_opaque_form" >&6
15787 echo "$as_me:15787: checking if you want opaque menu-library structures" >&5
15788 echo $ECHO_N "checking if you want opaque menu-library structures... $ECHO_C" >&6
15790 # Check whether --enable-opaque-menu or --disable-opaque-menu was given.
15791 if test "${enable_opaque_menu+set}" = set; then
15792 enableval="$enable_opaque_menu"
15793 enable_opaque_menu=yes
15795 enable_opaque_menu=no
15797 echo "$as_me:15797: result: $enable_opaque_menu" >&5
15798 echo "${ECHO_T}$enable_opaque_menu" >&6
15800 echo "$as_me:15800: checking if you want opaque panel-library structures" >&5
15801 echo $ECHO_N "checking if you want opaque panel-library structures... $ECHO_C" >&6
15803 # Check whether --enable-opaque-panel or --disable-opaque-panel was given.
15804 if test "${enable_opaque_panel+set}" = set; then
15805 enableval="$enable_opaque_panel"
15806 enable_opaque_panel=yes
15808 enable_opaque_panel=no
15810 echo "$as_me:15810: result: $enable_opaque_panel" >&5
15811 echo "${ECHO_T}$enable_opaque_panel" >&6
15813 NCURSES_OPAQUE=0; test "$enable_opaque_curses" = yes && NCURSES_OPAQUE=1
15814 NCURSES_OPAQUE_FORM=0; test "$enable_opaque_form" = yes && NCURSES_OPAQUE_FORM=1
15815 NCURSES_OPAQUE_MENU=0; test "$enable_opaque_menu" = yes && NCURSES_OPAQUE_MENU=1
15816 NCURSES_OPAQUE_PANEL=0; test "$enable_opaque_panel" = yes && NCURSES_OPAQUE_PANEL=1
15818 ### Allow using a different wrap-prefix
15819 if test "$cf_cv_enable_reentrant" != 0 || test "$BROKEN_LINKER" = 1 ; then
15820 echo "$as_me:15820: checking for prefix used to wrap public variables" >&5
15821 echo $ECHO_N "checking for prefix used to wrap public variables... $ECHO_C" >&6
15823 # Check whether --with-wrap-prefix or --without-wrap-prefix was given.
15824 if test "${with_wrap_prefix+set}" = set; then
15825 withval="$with_wrap_prefix"
15826 NCURSES_WRAP_PREFIX=$withval
15828 NCURSES_WRAP_PREFIX=_nc_
15830 echo "$as_me:15830: result: $NCURSES_WRAP_PREFIX" >&5
15831 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
15833 NCURSES_WRAP_PREFIX=_nc_
15836 cat >>confdefs.h <<EOF
15837 #define NCURSES_WRAP_PREFIX "$NCURSES_WRAP_PREFIX"
15840 ###############################################################################
15841 # These options are relatively safe to experiment with.
15843 echo "$as_me:15843: checking if you want all development code" >&5
15844 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
15846 # Check whether --with-develop or --without-develop was given.
15847 if test "${with_develop+set}" = set; then
15848 withval="$with_develop"
15849 with_develop=$withval
15853 echo "$as_me:15853: result: $with_develop" >&5
15854 echo "${ECHO_T}$with_develop" >&6
15856 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
15857 echo "$as_me:15857: checking if you want hard-tabs code" >&5
15858 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
15860 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
15861 if test "${enable_hard_tabs+set}" = set; then
15862 enableval="$enable_hard_tabs"
15865 enable_hard_tabs=$with_develop
15867 echo "$as_me:15867: result: $enable_hard_tabs" >&5
15868 echo "${ECHO_T}$enable_hard_tabs" >&6
15869 test "x$enable_hard_tabs" = xyes &&
15870 cat >>confdefs.h <<\EOF
15871 #define USE_HARD_TABS 1
15874 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
15875 echo "$as_me:15875: checking if you want limited support for xmc" >&5
15876 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
15878 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
15879 if test "${enable_xmc_glitch+set}" = set; then
15880 enableval="$enable_xmc_glitch"
15883 enable_xmc_glitch=$with_develop
15885 echo "$as_me:15885: result: $enable_xmc_glitch" >&5
15886 echo "${ECHO_T}$enable_xmc_glitch" >&6
15887 test "x$enable_xmc_glitch" = xyes &&
15888 cat >>confdefs.h <<\EOF
15889 #define USE_XMC_SUPPORT 1
15892 ###############################################################################
15893 # These are just experimental, probably should not be in a package:
15895 echo "$as_me:15895: checking if you do not want to assume colors are white-on-black" >&5
15896 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
15898 # Check whether --enable-assumed-color or --disable-assumed-color was given.
15899 if test "${enable_assumed_color+set}" = set; then
15900 enableval="$enable_assumed_color"
15901 with_assumed_color=$enableval
15903 with_assumed_color=yes
15905 echo "$as_me:15905: result: $with_assumed_color" >&5
15906 echo "${ECHO_T}$with_assumed_color" >&6
15907 test "x$with_assumed_color" = xyes &&
15908 cat >>confdefs.h <<\EOF
15909 #define USE_ASSUMED_COLOR 1
15912 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
15913 echo "$as_me:15913: checking if you want hashmap scrolling-optimization code" >&5
15914 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
15916 # Check whether --enable-hashmap or --disable-hashmap was given.
15917 if test "${enable_hashmap+set}" = set; then
15918 enableval="$enable_hashmap"
15919 with_hashmap=$enableval
15923 echo "$as_me:15923: result: $with_hashmap" >&5
15924 echo "${ECHO_T}$with_hashmap" >&6
15925 test "x$with_hashmap" = xyes &&
15926 cat >>confdefs.h <<\EOF
15927 #define USE_HASHMAP 1
15930 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
15931 echo "$as_me:15931: checking if you want colorfgbg code" >&5
15932 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
15934 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
15935 if test "${enable_colorfgbg+set}" = set; then
15936 enableval="$enable_colorfgbg"
15937 with_colorfgbg=$enableval
15941 echo "$as_me:15941: result: $with_colorfgbg" >&5
15942 echo "${ECHO_T}$with_colorfgbg" >&6
15943 test "x$with_colorfgbg" = xyes &&
15944 cat >>confdefs.h <<\EOF
15945 #define USE_COLORFGBG 1
15948 ### use option --enable-fvisibility to turn on use of gcc-specific feature
15949 echo "$as_me:15949: checking if you want to use gcc -fvisibility option" >&5
15950 echo $ECHO_N "checking if you want to use gcc -fvisibility option... $ECHO_C" >&6
15952 # Check whether --enable-fvisibility or --disable-fvisibility was given.
15953 if test "${enable_fvisibility+set}" = set; then
15954 enableval="$enable_fvisibility"
15955 cf_with_fvisibility=$enableval
15957 cf_with_fvisibility=no
15959 echo "$as_me:15959: result: $cf_with_fvisibility" >&5
15960 echo "${ECHO_T}$cf_with_fvisibility" >&6
15963 NCURSES_CXX_IMPEXP=
15964 if test "x$cf_with_fvisibility" = xyes; then
15966 echo "$as_me:15966: checking if $CC -fvisibility=hidden option works" >&5
15967 echo $ECHO_N "checking if $CC -fvisibility=hidden option works... $ECHO_C" >&6
15968 if test "${cf_cv_fvisibility_hidden+set}" = set; then
15969 echo $ECHO_N "(cached) $ECHO_C" >&6
15972 cf_save_cflags="$CFLAGS"
15973 CFLAGS="$CFLAGS -fvisibility=hidden"
15974 cat >"conftest.$ac_ext" <<_ACEOF
15975 #line 15975 "configure"
15976 #include "confdefs.h"
15978 __attribute__ ((visibility("default"))) int somefunc() {return 42;}
15984 if (somefunc()) return 1;
15990 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
15991 if { (eval echo "$as_me:15991: \"$ac_link\"") >&5
15992 (eval $ac_link) 2>&5
15994 echo "$as_me:15994: \$? = $ac_status" >&5
15995 (exit "$ac_status"); } &&
15996 { ac_try='test -s "conftest$ac_exeext"'
15997 { (eval echo "$as_me:15997: \"$ac_try\"") >&5
15998 (eval $ac_try) 2>&5
16000 echo "$as_me:16000: \$? = $ac_status" >&5
16001 (exit "$ac_status"); }; }; then
16002 cf_cv_fvisibility_hidden=yes
16004 echo "$as_me: failed program was:" >&5
16005 cat "conftest.$ac_ext" >&5
16006 cf_cv_fvisibility_hidden=no
16008 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16009 CFLAGS=$cf_save_cflags
16012 echo "$as_me:16012: result: $cf_cv_fvisibility_hidden" >&5
16013 echo "${ECHO_T}$cf_cv_fvisibility_hidden" >&6
16015 if test "x$cf_cv_fvisibility_hidden" = xyes
16021 cf_new_extra_cppflags=
16023 for cf_add_cflags in -fvisibility=hidden
16025 case "$cf_fix_cppflags" in
16027 case "$cf_add_cflags" in
16028 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16029 case "$cf_add_cflags" in
16031 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16033 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16034 && test -z "${cf_tst_cflags}" \
16035 && cf_fix_cppflags=yes
16037 if test "$cf_fix_cppflags" = yes ; then
16039 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16040 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16043 elif test "${cf_tst_cflags}" = "\"'" ; then
16045 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16046 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16052 case "$CPPFLAGS" in
16056 case "$cf_add_cflags" in
16058 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16060 CPPFLAGS=`echo "$CPPFLAGS" | \
16061 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16062 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16067 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16068 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16075 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16076 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16083 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16084 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16086 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
16088 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16089 && test -z "${cf_tst_cflags}" \
16090 && cf_fix_cppflags=no
16095 if test -n "$cf_new_cflags" ; then
16097 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16098 CFLAGS="${CFLAGS}$cf_new_cflags"
16102 if test -n "$cf_new_cppflags" ; then
16104 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16105 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16109 if test -n "$cf_new_extra_cppflags" ; then
16111 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16112 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16116 NCURSES_IMPEXP="__attribute__ ((visibility(\"default\")))"
16121 ac_cpp='$CXXCPP $CPPFLAGS'
16122 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
16123 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
16124 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16125 ac_main_return="return"
16127 echo "$as_me:16127: checking if $CXX -fvisibility=hidden option works" >&5
16128 echo $ECHO_N "checking if $CXX -fvisibility=hidden option works... $ECHO_C" >&6
16129 if test "${cf_cv_fvisibility_hidden2+set}" = set; then
16130 echo $ECHO_N "(cached) $ECHO_C" >&6
16133 cf_save_cflags="$CXXFLAGS"
16134 CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
16135 cat >"conftest.$ac_ext" <<_ACEOF
16136 #line 16136 "configure"
16137 #include "confdefs.h"
16139 __attribute__ ((visibility("default"))) int somefunc() {return 42;}
16145 if (somefunc()) return 1;
16151 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
16152 if { (eval echo "$as_me:16152: \"$ac_link\"") >&5
16153 (eval $ac_link) 2>&5
16155 echo "$as_me:16155: \$? = $ac_status" >&5
16156 (exit "$ac_status"); } &&
16157 { ac_try='test -s "conftest$ac_exeext"'
16158 { (eval echo "$as_me:16158: \"$ac_try\"") >&5
16159 (eval $ac_try) 2>&5
16161 echo "$as_me:16161: \$? = $ac_status" >&5
16162 (exit "$ac_status"); }; }; then
16163 cf_cv_fvisibility_hidden2=yes
16165 echo "$as_me: failed program was:" >&5
16166 cat "conftest.$ac_ext" >&5
16167 cf_cv_fvisibility_hidden2=no
16169 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
16170 CXXFLAGS=$cf_save_cflags
16173 echo "$as_me:16173: result: $cf_cv_fvisibility_hidden2" >&5
16174 echo "${ECHO_T}$cf_cv_fvisibility_hidden2" >&6
16176 if test "x$cf_cv_fvisibility_hidden2" = xyes
16179 cf_save_CXXFLAGS="$CFLAGS"
16185 cf_new_extra_cppflags=
16187 for cf_add_cflags in -fvisibility=hidden
16189 case "$cf_fix_cppflags" in
16191 case "$cf_add_cflags" in
16192 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16193 case "$cf_add_cflags" in
16195 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16197 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16198 && test -z "${cf_tst_cflags}" \
16199 && cf_fix_cppflags=yes
16201 if test "$cf_fix_cppflags" = yes ; then
16203 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16204 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16207 elif test "${cf_tst_cflags}" = "\"'" ; then
16209 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16210 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16216 case "$CPPFLAGS" in
16220 case "$cf_add_cflags" in
16222 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16224 CPPFLAGS=`echo "$CPPFLAGS" | \
16225 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16226 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16231 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16232 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16239 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16240 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16247 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16248 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16250 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
16252 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16253 && test -z "${cf_tst_cflags}" \
16254 && cf_fix_cppflags=no
16259 if test -n "$cf_new_cflags" ; then
16261 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16262 CFLAGS="${CFLAGS}$cf_new_cflags"
16266 if test -n "$cf_new_cppflags" ; then
16268 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16269 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16273 if test -n "$cf_new_extra_cppflags" ; then
16275 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16276 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16281 CFLAGS="$cf_save_CXXFLAGS"
16283 NCURSES_CXX_IMPEXP="__attribute__ ((visibility(\"default\")))"
16286 ac_cpp='$CPP $CPPFLAGS'
16287 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
16288 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
16289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16290 ac_main_return="return"
16295 ### use option --enable-interop to turn on use of bindings used for interop
16296 echo "$as_me:16296: checking if you want interop bindings" >&5
16297 echo $ECHO_N "checking if you want interop bindings... $ECHO_C" >&6
16299 # Check whether --enable-interop or --disable-interop was given.
16300 if test "${enable_interop+set}" = set; then
16301 enableval="$enable_interop"
16302 with_exp_interop=$enableval
16304 with_exp_interop=$cf_dft_interop
16306 echo "$as_me:16306: result: $with_exp_interop" >&5
16307 echo "${ECHO_T}$with_exp_interop" >&6
16309 NCURSES_INTEROP_FUNCS=0
16310 test "x$with_exp_interop" = xyes && NCURSES_INTEROP_FUNCS=1
16312 echo "$as_me:16312: checking if you want experimental safe-sprintf code" >&5
16313 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
16315 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
16316 if test "${enable_safe_sprintf+set}" = set; then
16317 enableval="$enable_safe_sprintf"
16318 with_safe_sprintf=$enableval
16320 with_safe_sprintf=no
16322 echo "$as_me:16322: result: $with_safe_sprintf" >&5
16323 echo "${ECHO_T}$with_safe_sprintf" >&6
16325 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
16326 # when hashmap is used scroll hints are useless
16327 if test "$with_hashmap" = no ; then
16328 echo "$as_me:16328: checking if you want to experiment without scrolling-hints code" >&5
16329 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
16331 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
16332 if test "${enable_scroll_hints+set}" = set; then
16333 enableval="$enable_scroll_hints"
16334 with_scroll_hints=$enableval
16336 with_scroll_hints=yes
16338 echo "$as_me:16338: result: $with_scroll_hints" >&5
16339 echo "${ECHO_T}$with_scroll_hints" >&6
16340 test "x$with_scroll_hints" = xyes &&
16341 cat >>confdefs.h <<\EOF
16342 #define USE_SCROLL_HINTS 1
16347 echo "$as_me:16347: checking if you want wgetch-events code" >&5
16348 echo $ECHO_N "checking if you want wgetch-events code... $ECHO_C" >&6
16350 # Check whether --enable-wgetch-events or --disable-wgetch-events was given.
16351 if test "${enable_wgetch_events+set}" = set; then
16352 enableval="$enable_wgetch_events"
16353 with_wgetch_events=$enableval
16355 with_wgetch_events=no
16357 echo "$as_me:16357: result: $with_wgetch_events" >&5
16358 echo "${ECHO_T}$with_wgetch_events" >&6
16359 if test "x$with_wgetch_events" = xyes ; then
16361 cat >>confdefs.h <<\EOF
16362 #define NCURSES_WGETCH_EVENTS 1
16365 NCURSES_WGETCH_EVENTS=1
16367 NCURSES_WGETCH_EVENTS=0
16370 case "$cf_cv_system_name" in
16371 (*mingw32*|*mingw64*|*-msvc*)
16372 echo "$as_me:16372: checking if you want experimental-Windows driver" >&5
16373 echo $ECHO_N "checking if you want experimental-Windows driver... $ECHO_C" >&6
16375 # Check whether --enable-exp-win32 or --disable-exp-win32 was given.
16376 if test "${enable_exp_win32+set}" = set; then
16377 enableval="$enable_exp_win32"
16378 with_exp_win32=$enableval
16382 echo "$as_me:16382: result: $with_exp_win32" >&5
16383 echo "${ECHO_T}$with_exp_win32" >&6
16384 if test "x$with_exp_win32" = xyes
16387 cat >>confdefs.h <<\EOF
16388 #define EXP_WIN32_DRIVER 1
16392 INTERNALS_HDR='$(INCDIR)/nc_win32.h'
16394 INTERNALS_HDR='$(INCDIR)/nc_mingw.h'
16404 ###############################################################################
16406 ### use option --disable-echo to suppress full display compiling commands
16408 echo "$as_me:16408: checking if you want to see long compiling messages" >&5
16409 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
16411 # Check whether --enable-echo or --disable-echo was given.
16412 if test "${enable_echo+set}" = set; then
16413 enableval="$enable_echo"
16414 test "$enableval" != no && enableval=yes
16415 if test "$enableval" != "yes" ; then
16418 ECHO_LD='@echo linking $@;'
16419 RULE_CC='@echo compiling $<'
16420 SHOW_CC='@echo compiling $@'
16442 echo "$as_me:16442: result: $enableval" >&5
16443 echo "${ECHO_T}$enableval" >&6
16445 if test "x$enable_echo" = xyes; then
16448 ECHO_LINK='@ echo linking $@ ... ;'
16449 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
16450 test -n "$LIBTOOL_CXX" && LIBTOOL_CXX="$LIBTOOL_CXX --silent"
16453 # --disable-stripping is used for debugging
16455 echo "$as_me:16455: checking if you want to install stripped executables" >&5
16456 echo $ECHO_N "checking if you want to install stripped executables... $ECHO_C" >&6
16458 # Check whether --enable-stripping or --disable-stripping was given.
16459 if test "${enable_stripping+set}" = set; then
16460 enableval="$enable_stripping"
16461 test "$enableval" != no && enableval=yes
16462 if test "$enableval" != "yes" ; then
16463 enable_stripping=no
16465 enable_stripping=yes
16469 enable_stripping=yes
16472 echo "$as_me:16472: result: $enable_stripping" >&5
16473 echo "${ECHO_T}$enable_stripping" >&6
16475 if test "$enable_stripping" = yes
16482 : "${INSTALL:=install}"
16483 echo "$as_me:16483: checking if install accepts -p option" >&5
16484 echo $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6
16485 if test "${cf_cv_install_p+set}" = set; then
16486 echo $ECHO_N "(cached) $ECHO_C" >&6
16493 if $INSTALL -p conftest.in conftest.out 2>/dev/null
16495 if test -f conftest.out/conftest.in
16497 test conftest.in -nt conftest.out/conftest.in 2>conftest.err && \
16498 test conftest.out/conftest.in -nt conftest.in 2>conftest.err
16499 if test -s conftest.err
16503 cf_cv_install_p=yes
16514 echo "$as_me:16514: result: $cf_cv_install_p" >&5
16515 echo "${ECHO_T}$cf_cv_install_p" >&6
16517 echo "$as_me:16517: checking if install needs to be told about ownership" >&5
16518 echo $ECHO_N "checking if install needs to be told about ownership... $ECHO_C" >&6
16519 case `$ac_config_guess` in
16528 echo "$as_me:16528: result: $with_install_o" >&5
16529 echo "${ECHO_T}$with_install_o" >&6
16530 if test "x$with_install_o" = xyes
16532 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'`"
16537 # If we're avoiding relinking of shared libraries during install, that is to
16538 # avoid modifying the build-tree. For the same reason, avoid doing ranlib if
16539 # the install program has "-p" (for preserving timestamps).
16540 cf_cv_do_reranlib=yes
16541 if test "x$cf_cv_install_p" = xyes
16543 if test "x$cf_cv_do_relink" != xyes
16545 cf_cv_do_reranlib=no
16547 INSTALL_LIB="$INSTALL_LIB $INSTALL_OPT_P"
16551 ### use option --enable-warnings to turn on all gcc warnings
16553 echo "$as_me:16553: checking if you want to use C11 _Noreturn feature" >&5
16554 echo $ECHO_N "checking if you want to use C11 _Noreturn feature... $ECHO_C" >&6
16556 # Check whether --enable-stdnoreturn or --disable-stdnoreturn was given.
16557 if test "${enable_stdnoreturn+set}" = set; then
16558 enableval="$enable_stdnoreturn"
16559 test "$enableval" != yes && enableval=no
16560 if test "$enableval" != "no" ; then
16561 enable_stdnoreturn=yes
16563 enable_stdnoreturn=no
16567 enable_stdnoreturn=no
16570 echo "$as_me:16570: result: $enable_stdnoreturn" >&5
16571 echo "${ECHO_T}$enable_stdnoreturn" >&6
16573 if test $enable_stdnoreturn = yes; then
16574 echo "$as_me:16574: checking for C11 _Noreturn feature" >&5
16575 echo $ECHO_N "checking for C11 _Noreturn feature... $ECHO_C" >&6
16576 if test "${cf_cv_c11_noreturn+set}" = set; then
16577 echo $ECHO_N "(cached) $ECHO_C" >&6
16579 cat >"conftest.$ac_ext" <<_ACEOF
16580 #line 16580 "configure"
16581 #include "confdefs.h"
16584 #include <stdlib.h>
16585 #include <stdnoreturn.h>
16586 static _Noreturn void giveup(void) { exit(0); }
16591 if (feof(stdin)) giveup()
16596 rm -f "conftest.$ac_objext"
16597 if { (eval echo "$as_me:16597: \"$ac_compile\"") >&5
16598 (eval $ac_compile) 2>&5
16600 echo "$as_me:16600: \$? = $ac_status" >&5
16601 (exit "$ac_status"); } &&
16602 { ac_try='test -s "conftest.$ac_objext"'
16603 { (eval echo "$as_me:16603: \"$ac_try\"") >&5
16604 (eval $ac_try) 2>&5
16606 echo "$as_me:16606: \$? = $ac_status" >&5
16607 (exit "$ac_status"); }; }; then
16608 cf_cv_c11_noreturn=yes
16610 echo "$as_me: failed program was:" >&5
16611 cat "conftest.$ac_ext" >&5
16612 cf_cv_c11_noreturn=no
16614 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
16617 echo "$as_me:16617: result: $cf_cv_c11_noreturn" >&5
16618 echo "${ECHO_T}$cf_cv_c11_noreturn" >&6
16620 cf_cv_c11_noreturn=no,
16623 if test "$cf_cv_c11_noreturn" = yes; then
16625 cat >>confdefs.h <<\EOF
16626 #define HAVE_STDNORETURN_H 1
16629 cat >>confdefs.h <<EOF
16630 #define STDC_NORETURN _Noreturn
16633 HAVE_STDNORETURN_H=1
16635 HAVE_STDNORETURN_H=0
16638 if test "$GCC" = yes || test "$GXX" = yes
16641 if test "$GCC" = yes || test "$GXX" = yes
16645 test -n "$verbose" && echo " repairing CFLAGS: $CFLAGS" 1>&6
16647 echo "${as_me:-configure}:16647: testing repairing CFLAGS: $CFLAGS ..." 1>&5
16650 for cf_temp_scan in $CFLAGS
16652 case "x$cf_temp_scan" in
16655 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
16656 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
16661 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
16662 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
16667 CFLAGS="$cf_temp_flags"
16668 test -n "$verbose" && echo " ... fixed $CFLAGS" 1>&6
16670 echo "${as_me:-configure}:16670: testing ... fixed $CFLAGS ..." 1>&5
16672 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
16674 echo "${as_me:-configure}:16674: testing ... extra $EXTRA_CFLAGS ..." 1>&5
16680 if test "$GCC" = yes || test "$GXX" = yes
16684 test -n "$verbose" && echo " repairing CPPFLAGS: $CPPFLAGS" 1>&6
16686 echo "${as_me:-configure}:16686: testing repairing CPPFLAGS: $CPPFLAGS ..." 1>&5
16689 for cf_temp_scan in $CPPFLAGS
16691 case "x$cf_temp_scan" in
16694 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
16695 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
16700 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
16701 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
16706 CPPFLAGS="$cf_temp_flags"
16707 test -n "$verbose" && echo " ... fixed $CPPFLAGS" 1>&6
16709 echo "${as_me:-configure}:16709: testing ... fixed $CPPFLAGS ..." 1>&5
16711 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
16713 echo "${as_me:-configure}:16713: testing ... extra $EXTRA_CFLAGS ..." 1>&5
16719 if test "$GCC" = yes || test "$GXX" = yes
16723 test -n "$verbose" && echo " repairing LDFLAGS: $LDFLAGS" 1>&6
16725 echo "${as_me:-configure}:16725: testing repairing LDFLAGS: $LDFLAGS ..." 1>&5
16728 for cf_temp_scan in $LDFLAGS
16730 case "x$cf_temp_scan" in
16733 test -n "$EXTRA_CFLAGS" && EXTRA_CFLAGS="$EXTRA_CFLAGS "
16734 EXTRA_CFLAGS="${EXTRA_CFLAGS}$cf_temp_scan"
16739 test -n "$cf_temp_flags" && cf_temp_flags="$cf_temp_flags "
16740 cf_temp_flags="${cf_temp_flags}$cf_temp_scan"
16745 LDFLAGS="$cf_temp_flags"
16746 test -n "$verbose" && echo " ... fixed $LDFLAGS" 1>&6
16748 echo "${as_me:-configure}:16748: testing ... fixed $LDFLAGS ..." 1>&5
16750 test -n "$verbose" && echo " ... extra $EXTRA_CFLAGS" 1>&6
16752 echo "${as_me:-configure}:16752: testing ... extra $EXTRA_CFLAGS ..." 1>&5
16758 echo "$as_me:16758: checking if you want to turn on gcc warnings" >&5
16759 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
16761 # Check whether --enable-warnings or --disable-warnings was given.
16762 if test "${enable_warnings+set}" = set; then
16763 enableval="$enable_warnings"
16764 test "$enableval" != yes && enableval=no
16765 if test "$enableval" != "no" ; then
16766 enable_warnings=yes
16775 echo "$as_me:16775: result: $enable_warnings" >&5
16776 echo "${ECHO_T}$enable_warnings" >&6
16777 if test "$enable_warnings" = "yes"
16780 if test "x$have_x" = xyes; then
16782 cf_save_LIBS_CF_CONST_X_STRING="$LIBS"
16783 cf_save_CFLAGS_CF_CONST_X_STRING="$CFLAGS"
16784 cf_save_CPPFLAGS_CF_CONST_X_STRING="$CPPFLAGS"
16785 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
16786 for cf_X_CFLAGS in $X_CFLAGS
16788 case "x$cf_X_CFLAGS" in
16790 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
16793 CFLAGS="$CFLAGS $cf_X_CFLAGS"
16798 cat >"conftest.$ac_ext" <<_ACEOF
16799 #line 16799 "configure"
16800 #include "confdefs.h"
16802 #include <stdlib.h>
16803 #include <X11/Intrinsic.h>
16808 String foo = malloc(1); free((void*)foo)
16813 rm -f "conftest.$ac_objext"
16814 if { (eval echo "$as_me:16814: \"$ac_compile\"") >&5
16815 (eval $ac_compile) 2>&5
16817 echo "$as_me:16817: \$? = $ac_status" >&5
16818 (exit "$ac_status"); } &&
16819 { ac_try='test -s "conftest.$ac_objext"'
16820 { (eval echo "$as_me:16820: \"$ac_try\"") >&5
16821 (eval $ac_try) 2>&5
16823 echo "$as_me:16823: \$? = $ac_status" >&5
16824 (exit "$ac_status"); }; }; then
16826 echo "$as_me:16826: checking for X11/Xt const-feature" >&5
16827 echo $ECHO_N "checking for X11/Xt const-feature... $ECHO_C" >&6
16828 if test "${cf_cv_const_x_string+set}" = set; then
16829 echo $ECHO_N "(cached) $ECHO_C" >&6
16832 cat >"conftest.$ac_ext" <<_ACEOF
16833 #line 16833 "configure"
16834 #include "confdefs.h"
16836 #define _CONST_X_STRING /* X11R7.8 (perhaps) */
16837 #undef XTSTRINGDEFINES /* X11R5 and later */
16838 #include <stdlib.h>
16839 #include <X11/Intrinsic.h>
16844 String foo = malloc(1); *foo = 0
16849 rm -f "conftest.$ac_objext"
16850 if { (eval echo "$as_me:16850: \"$ac_compile\"") >&5
16851 (eval $ac_compile) 2>&5
16853 echo "$as_me:16853: \$? = $ac_status" >&5
16854 (exit "$ac_status"); } &&
16855 { ac_try='test -s "conftest.$ac_objext"'
16856 { (eval echo "$as_me:16856: \"$ac_try\"") >&5
16857 (eval $ac_try) 2>&5
16859 echo "$as_me:16859: \$? = $ac_status" >&5
16860 (exit "$ac_status"); }; }; then
16862 cf_cv_const_x_string=no
16865 echo "$as_me: failed program was:" >&5
16866 cat "conftest.$ac_ext" >&5
16868 cf_cv_const_x_string=yes
16871 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
16874 echo "$as_me:16874: result: $cf_cv_const_x_string" >&5
16875 echo "${ECHO_T}$cf_cv_const_x_string" >&6
16877 LIBS="$cf_save_LIBS_CF_CONST_X_STRING"
16878 CFLAGS="$cf_save_CFLAGS_CF_CONST_X_STRING"
16879 CPPFLAGS="$cf_save_CPPFLAGS_CF_CONST_X_STRING"
16881 case "$cf_cv_const_x_string" in
16884 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16885 CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES"
16890 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16891 CPPFLAGS="${CPPFLAGS}-D_CONST_X_STRING"
16897 echo "$as_me: failed program was:" >&5
16898 cat "conftest.$ac_ext" >&5
16900 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
16902 cat > "conftest.$ac_ext" <<EOF
16903 #line 16903 "${as_me:-configure}"
16904 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
16906 if test "$INTEL_COMPILER" = yes
16908 # The "-wdXXX" options suppress warnings:
16909 # remark #1419: external declaration in primary source file
16910 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
16911 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
16912 # remark #193: zero used for undefined preprocessing identifier
16913 # remark #593: variable "curs_sb_left_arrow" was set but never used
16914 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
16915 # remark #869: parameter "tw" was never referenced
16916 # remark #981: operands are evaluated in unspecified order
16917 # warning #279: controlling expression is constant
16919 { echo "$as_me:16919: checking for $CC warning options..." >&5
16920 echo "$as_me: checking for $CC warning options..." >&6;}
16921 cf_save_CFLAGS="$CFLAGS"
16922 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wall"
16934 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
16935 if { (eval echo "$as_me:16935: \"$ac_compile\"") >&5
16936 (eval $ac_compile) 2>&5
16938 echo "$as_me:16938: \$? = $ac_status" >&5
16939 (exit "$ac_status"); }; then
16940 test -n "$verbose" && echo "$as_me:16940: result: ... -$cf_opt" >&5
16941 echo "${ECHO_T}... -$cf_opt" >&6
16942 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
16945 CFLAGS="$cf_save_CFLAGS"
16946 elif test "$GCC" = yes && test "$GCC_VERSION" != "unknown"
16948 { echo "$as_me:16948: checking for $CC warning options..." >&5
16949 echo "$as_me: checking for $CC warning options..." >&6;}
16950 cf_save_CFLAGS="$CFLAGS"
16952 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
16953 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
16954 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
16955 for cf_opt in W Wall \
16956 Wbad-function-cast \
16959 Wdeclaration-after-statement \
16962 Wmissing-declarations \
16963 Wmissing-prototypes \
16967 Wstrict-prototypes \
16968 Wundef Wno-inline $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas Wswitch-enum
16970 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
16971 if { (eval echo "$as_me:16971: \"$ac_compile\"") >&5
16972 (eval $ac_compile) 2>&5
16974 echo "$as_me:16974: \$? = $ac_status" >&5
16975 (exit "$ac_status"); }; then
16976 test -n "$verbose" && echo "$as_me:16976: result: ... -$cf_opt" >&5
16977 echo "${ECHO_T}... -$cf_opt" >&6
16980 case "$GCC_VERSION" in
16982 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
16984 echo "${as_me:-configure}:16984: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
16990 case "$GCC_VERSION" in
16992 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
16994 echo "${as_me:-configure}:16994: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
17000 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
17003 CFLAGS="$cf_save_CFLAGS"
17009 if test "$GCC" = yes || test "$GXX" = yes
17011 cat > conftest.i <<EOF
17013 #define GCC_PRINTF 0
17016 #define GCC_SCANF 0
17018 #ifndef GCC_NORETURN
17019 #define GCC_NORETURN /* nothing */
17022 #define GCC_UNUSED /* nothing */
17025 if test "$GCC" = yes
17027 { echo "$as_me:17027: checking for $CC __attribute__ directives..." >&5
17028 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
17029 cat > "conftest.$ac_ext" <<EOF
17030 #line 17030 "${as_me:-configure}"
17031 #include "confdefs.h"
17032 #include "conftest.h"
17033 #include "conftest.i"
17035 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
17037 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
17040 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
17042 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
17044 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
17045 extern GCC_NORETURN void oops(char *,...) GCC_PRINTFLIKE(1,2);
17046 extern GCC_NORETURN void foo(void);
17047 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; }
17049 cf_printf_attribute=no
17050 cf_scanf_attribute=no
17051 for cf_attribute in scanf printf unused noreturn
17054 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17056 cf_directive="__attribute__(($cf_attribute))"
17057 echo "checking for $CC $cf_directive" 1>&5
17059 case "$cf_attribute" in
17061 cf_printf_attribute=yes
17062 cat >conftest.h <<EOF
17063 #define GCC_$cf_ATTRIBUTE 1
17067 cf_scanf_attribute=yes
17068 cat >conftest.h <<EOF
17069 #define GCC_$cf_ATTRIBUTE 1
17073 cat >conftest.h <<EOF
17074 #define GCC_$cf_ATTRIBUTE $cf_directive
17079 if { (eval echo "$as_me:17079: \"$ac_compile\"") >&5
17080 (eval $ac_compile) 2>&5
17082 echo "$as_me:17082: \$? = $ac_status" >&5
17083 (exit "$ac_status"); }; then
17084 test -n "$verbose" && echo "$as_me:17084: result: ... $cf_attribute" >&5
17085 echo "${ECHO_T}... $cf_attribute" >&6
17086 cat conftest.h >>confdefs.h
17087 case "$cf_attribute" in
17090 cat >>confdefs.h <<EOF
17091 #define GCC_NORETURN $cf_directive
17096 cf_value='/* nothing */'
17097 if test "$cf_printf_attribute" != no ; then
17098 cf_value='__attribute__((format(printf,fmt,var)))'
17100 cat >>confdefs.h <<\EOF
17101 #define GCC_PRINTF 1
17106 cat >>confdefs.h <<EOF
17107 #define GCC_PRINTFLIKE(fmt,var) $cf_value
17112 cf_value='/* nothing */'
17113 if test "$cf_scanf_attribute" != no ; then
17114 cf_value='__attribute__((format(scanf,fmt,var)))'
17116 cat >>confdefs.h <<\EOF
17117 #define GCC_SCANF 1
17122 cat >>confdefs.h <<EOF
17123 #define GCC_SCANFLIKE(fmt,var) $cf_value
17129 cat >>confdefs.h <<EOF
17130 #define GCC_UNUSED $cf_directive
17138 ${FGREP-fgrep} define conftest.i >>confdefs.h
17145 if test "x$enable_warnings" = "xyes"; then
17147 ADAFLAGS="$ADAFLAGS -gnatg"
17149 if test "x$cf_with_cxx" = xyes ; then
17153 if test "$GCC" = yes ; then
17156 echo "$as_me:17156: checking if this is really Intel C++ compiler" >&5
17157 echo $ECHO_N "checking if this is really Intel C++ compiler... $ECHO_C" >&6
17158 cf_save_CFLAGS="$CXXFLAGS"
17159 CXXFLAGS="$CXXFLAGS -no-gcc"
17160 cat >"conftest.$ac_ext" <<_ACEOF
17161 #line 17161 "configure"
17162 #include "confdefs.h"
17168 #ifdef __INTEL_COMPILER
17177 rm -f "conftest.$ac_objext"
17178 if { (eval echo "$as_me:17178: \"$ac_compile\"") >&5
17179 (eval $ac_compile) 2>&5
17181 echo "$as_me:17181: \$? = $ac_status" >&5
17182 (exit "$ac_status"); } &&
17183 { ac_try='test -s "conftest.$ac_objext"'
17184 { (eval echo "$as_me:17184: \"$ac_try\"") >&5
17185 (eval $ac_try) 2>&5
17187 echo "$as_me:17187: \$? = $ac_status" >&5
17188 (exit "$ac_status"); }; }; then
17189 INTEL_CPLUSPLUS=yes
17190 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
17193 echo "$as_me: failed program was:" >&5
17194 cat "conftest.$ac_ext" >&5
17196 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17197 CXXFLAGS="$cf_save_CFLAGS"
17198 echo "$as_me:17198: result: $INTEL_CPLUSPLUS" >&5
17199 echo "${ECHO_T}$INTEL_CPLUSPLUS" >&6
17206 if test "$GCC" = yes ; then
17207 echo "$as_me:17207: checking if this is really Clang C++ compiler" >&5
17208 echo $ECHO_N "checking if this is really Clang C++ compiler... $ECHO_C" >&6
17209 cf_save_CFLAGS="$CXXFLAGS"
17210 cat >"conftest.$ac_ext" <<_ACEOF
17211 #line 17211 "configure"
17212 #include "confdefs.h"
17227 rm -f "conftest.$ac_objext"
17228 if { (eval echo "$as_me:17228: \"$ac_compile\"") >&5
17229 (eval $ac_compile) 2>&5
17231 echo "$as_me:17231: \$? = $ac_status" >&5
17232 (exit "$ac_status"); } &&
17233 { ac_try='test -s "conftest.$ac_objext"'
17234 { (eval echo "$as_me:17234: \"$ac_try\"") >&5
17235 (eval $ac_try) 2>&5
17237 echo "$as_me:17237: \$? = $ac_status" >&5
17238 (exit "$ac_status"); }; }; then
17239 CLANG_CPLUSPLUS=yes
17242 echo "$as_me: failed program was:" >&5
17243 cat "conftest.$ac_ext" >&5
17245 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
17246 CXXFLAGS="$cf_save_CFLAGS"
17247 echo "$as_me:17247: result: $CLANG_CPLUSPLUS" >&5
17248 echo "${ECHO_T}$CLANG_CPLUSPLUS" >&6
17253 if test "x$CLANG_CPLUSPLUS" = "xyes" ; then
17255 (c[1-9][0-9]|*/c[1-9][0-9])
17256 { echo "$as_me:17256: WARNING: replacing broken compiler alias $CC" >&5
17257 echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;}
17258 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
17263 echo "$as_me:17263: checking version of $CC" >&5
17264 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
17265 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.].*//'`"
17266 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
17267 echo "$as_me:17267: result: $CLANG_VERSION" >&5
17268 echo "${ECHO_T}$CLANG_VERSION" >&6
17270 for cf_clang_opt in \
17271 -Qunused-arguments \
17272 -Wno-error=implicit-function-declaration
17274 echo "$as_me:17274: checking if option $cf_clang_opt works" >&5
17275 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
17276 cf_save_CFLAGS="$CFLAGS"
17277 CFLAGS="$CFLAGS $cf_clang_opt"
17278 cat >"conftest.$ac_ext" <<_ACEOF
17279 #line 17279 "configure"
17280 #include "confdefs.h"
17287 printf("hello!\\n");
17292 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17293 if { (eval echo "$as_me:17293: \"$ac_link\"") >&5
17294 (eval $ac_link) 2>&5
17296 echo "$as_me:17296: \$? = $ac_status" >&5
17297 (exit "$ac_status"); } &&
17298 { ac_try='test -s "conftest$ac_exeext"'
17299 { (eval echo "$as_me:17299: \"$ac_try\"") >&5
17300 (eval $ac_try) 2>&5
17302 echo "$as_me:17302: \$? = $ac_status" >&5
17303 (exit "$ac_status"); }; }; then
17307 echo "$as_me: failed program was:" >&5
17308 cat "conftest.$ac_ext" >&5
17312 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17313 echo "$as_me:17313: result: $cf_clang_optok" >&5
17314 echo "${ECHO_T}$cf_clang_optok" >&6
17315 CFLAGS="$cf_save_CFLAGS"
17316 if test "$cf_clang_optok" = yes; then
17317 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6
17319 echo "${as_me:-configure}:17319: testing adding option $cf_clang_opt ..." 1>&5
17321 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17322 CFLAGS="${CFLAGS}$cf_clang_opt"
17329 ac_cpp='$CXXCPP $CPPFLAGS'
17330 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
17331 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
17332 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17333 ac_main_return="return"
17335 cat > conftest.$ac_ext <<EOF
17336 #line 17336 "configure"
17337 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
17340 if test "$INTEL_CPLUSPLUS" = yes
17342 # The "-wdXXX" options suppress warnings:
17343 # remark #1419: external declaration in primary source file
17344 # remark #1682: implicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
17345 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
17346 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
17347 # remark #193: zero used for undefined preprocessing identifier
17348 # remark #593: variable "curs_sb_left_arrow" was set but never used
17349 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
17350 # remark #869: parameter "tw" was never referenced
17351 # remark #981: operands are evaluated in unspecified order
17352 # warning #269: invalid format string conversion
17354 { echo "$as_me:17354: checking for $CC warning options..." >&5
17355 echo "$as_me: checking for $CC warning options..." >&6;}
17356 cf_save_CXXFLAGS="$CXXFLAGS"
17357 EXTRA_CXXFLAGS="-Wall"
17370 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -$cf_opt"
17371 if { (eval echo "$as_me:17371: \"$ac_compile\"") >&5
17372 (eval $ac_compile) 2>&5
17374 echo "$as_me:17374: \$? = $ac_status" >&5
17375 (exit "$ac_status"); }; then
17376 test -n "$verbose" && echo "$as_me:17376: result: ... -$cf_opt" >&5
17377 echo "${ECHO_T}... -$cf_opt" >&6
17378 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
17381 CXXFLAGS="$cf_save_CXXFLAGS"
17383 elif test "$GXX" = yes
17385 { echo "$as_me:17385: checking for $CXX warning options..." >&5
17386 echo "$as_me: checking for $CXX warning options..." >&6;}
17387 cf_save_CXXFLAGS="$CXXFLAGS"
17388 EXTRA_CXXFLAGS="-W -Wall"
17389 cf_gxx_extra_warnings=""
17390 test "$with_ext_const" = yes && cf_gxx_extra_warnings="Wwrite-strings"
17391 case "$GXX_VERSION" in
17395 cf_gxx_extra_warnings="$cf_gxx_extra_warnings Weffc++"
17402 Wignored-qualifiers \
17404 Woverloaded-virtual \
17412 Wundef $cf_gxx_extra_warnings Wno-unused
17414 CXXFLAGS="$cf_save_CXXFLAGS $EXTRA_CXXFLAGS -Werror -$cf_opt"
17415 if { (eval echo "$as_me:17415: \"$ac_compile\"") >&5
17416 (eval $ac_compile) 2>&5
17418 echo "$as_me:17418: \$? = $ac_status" >&5
17419 (exit "$ac_status"); }; then
17420 test -n "$verbose" && echo "$as_me:17420: result: ... -$cf_opt" >&5
17421 echo "${ECHO_T}... -$cf_opt" >&6
17422 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -$cf_opt"
17424 test -n "$verbose" && echo "$as_me:17424: result: ... no -$cf_opt" >&5
17425 echo "${ECHO_T}... no -$cf_opt" >&6
17428 CXXFLAGS="$cf_save_CXXFLAGS"
17433 ac_cpp='$CPP $CPPFLAGS'
17434 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
17435 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
17436 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17437 ac_main_return="return"
17442 echo "$as_me:17442: checking if you want to work around bogus compiler/loader warnings" >&5
17443 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
17445 # Check whether --enable-string-hacks or --disable-string-hacks was given.
17446 if test "${enable_string_hacks+set}" = set; then
17447 enableval="$enable_string_hacks"
17448 enable_string_hacks=$enableval
17450 enable_string_hacks=no
17452 echo "$as_me:17452: result: $enable_string_hacks" >&5
17453 echo "${ECHO_T}$enable_string_hacks" >&6
17455 if test "x$enable_string_hacks" = "xyes"; then
17457 cat >>confdefs.h <<\EOF
17458 #define USE_STRING_HACKS 1
17461 { echo "$as_me:17461: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
17462 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
17463 echo "$as_me:17463: checking for strlcat" >&5
17464 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
17465 if test "${ac_cv_func_strlcat+set}" = set; then
17466 echo $ECHO_N "(cached) $ECHO_C" >&6
17468 cat >"conftest.$ac_ext" <<_ACEOF
17469 #line 17469 "configure"
17470 #include "confdefs.h"
17471 #define strlcat autoconf_temporary
17472 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
17479 /* We use char because int might match the return type of a gcc2
17480 builtin and then its argument prototype would still apply. */
17481 char strlcat (void);
17487 /* The GNU C library defines stubs for functions which it implements
17488 to always fail with ENOSYS. Some functions are actually named
17489 something starting with __ and the normal name is an alias. */
17490 #if defined (__stub_strlcat) || defined (__stub___strlcat)
17491 #error found stub for strlcat
17499 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17500 if { (eval echo "$as_me:17500: \"$ac_link\"") >&5
17501 (eval $ac_link) 2>&5
17503 echo "$as_me:17503: \$? = $ac_status" >&5
17504 (exit "$ac_status"); } &&
17505 { ac_try='test -s "conftest$ac_exeext"'
17506 { (eval echo "$as_me:17506: \"$ac_try\"") >&5
17507 (eval $ac_try) 2>&5
17509 echo "$as_me:17509: \$? = $ac_status" >&5
17510 (exit "$ac_status"); }; }; then
17511 ac_cv_func_strlcat=yes
17513 echo "$as_me: failed program was:" >&5
17514 cat "conftest.$ac_ext" >&5
17515 ac_cv_func_strlcat=no
17517 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17519 echo "$as_me:17519: result: $ac_cv_func_strlcat" >&5
17520 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
17521 if test "$ac_cv_func_strlcat" = yes; then
17523 cat >>confdefs.h <<\EOF
17524 #define HAVE_STRLCAT 1
17529 echo "$as_me:17529: checking for strlcat in -lbsd" >&5
17530 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
17531 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
17532 echo $ECHO_N "(cached) $ECHO_C" >&6
17534 ac_check_lib_save_LIBS=$LIBS
17536 cat >"conftest.$ac_ext" <<_ACEOF
17537 #line 17537 "configure"
17538 #include "confdefs.h"
17540 /* Override any gcc2 internal prototype to avoid an error. */
17544 /* We use char because int might match the return type of a gcc2
17545 builtin and then its argument prototype would still apply. */
17555 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17556 if { (eval echo "$as_me:17556: \"$ac_link\"") >&5
17557 (eval $ac_link) 2>&5
17559 echo "$as_me:17559: \$? = $ac_status" >&5
17560 (exit "$ac_status"); } &&
17561 { ac_try='test -s "conftest$ac_exeext"'
17562 { (eval echo "$as_me:17562: \"$ac_try\"") >&5
17563 (eval $ac_try) 2>&5
17565 echo "$as_me:17565: \$? = $ac_status" >&5
17566 (exit "$ac_status"); }; }; then
17567 ac_cv_lib_bsd_strlcat=yes
17569 echo "$as_me: failed program was:" >&5
17570 cat "conftest.$ac_ext" >&5
17571 ac_cv_lib_bsd_strlcat=no
17573 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17574 LIBS=$ac_check_lib_save_LIBS
17576 echo "$as_me:17576: result: $ac_cv_lib_bsd_strlcat" >&5
17577 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
17578 if test "$ac_cv_lib_bsd_strlcat" = yes; then
17580 cf_add_libs="$LIBS"
17583 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
17584 # filter duplicates
17585 for cf_add_1lib in $cf_add_0lib; do
17586 for cf_add_2lib in $cf_add_libs; do
17587 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
17592 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
17594 LIBS="$cf_add_libs"
17596 for ac_header in bsd/string.h
17598 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17599 echo "$as_me:17599: checking for $ac_header" >&5
17600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17602 echo $ECHO_N "(cached) $ECHO_C" >&6
17604 cat >"conftest.$ac_ext" <<_ACEOF
17605 #line 17605 "configure"
17606 #include "confdefs.h"
17607 #include <$ac_header>
17609 if { (eval echo "$as_me:17609: \"$ac_cpp "conftest.$ac_ext"\"") >&5
17610 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
17612 $EGREP -v '^ *\+' conftest.er1 >conftest.err
17614 cat conftest.err >&5
17615 echo "$as_me:17615: \$? = $ac_status" >&5
17616 (exit "$ac_status"); } >/dev/null; then
17617 if test -s conftest.err; then
17618 ac_cpp_err=$ac_c_preproc_warn_flag
17625 if test -z "$ac_cpp_err"; then
17626 eval "$as_ac_Header=yes"
17628 echo "$as_me: failed program was:" >&5
17629 cat "conftest.$ac_ext" >&5
17630 eval "$as_ac_Header=no"
17632 rm -f conftest.err "conftest.$ac_ext"
17634 echo "$as_me:17634: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
17635 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
17636 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
17637 cat >>confdefs.h <<EOF
17638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17644 cat >>confdefs.h <<\EOF
17645 #define HAVE_STRLCAT 1
17652 for ac_func in strlcpy snprintf
17654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17655 echo "$as_me:17655: checking for $ac_func" >&5
17656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17657 if eval "test \"\${$as_ac_var+set}\" = set"; then
17658 echo $ECHO_N "(cached) $ECHO_C" >&6
17660 cat >"conftest.$ac_ext" <<_ACEOF
17661 #line 17661 "configure"
17662 #include "confdefs.h"
17663 #define $ac_func autoconf_temporary
17664 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
17671 /* We use char because int might match the return type of a gcc2
17672 builtin and then its argument prototype would still apply. */
17673 char $ac_func (void);
17679 /* The GNU C library defines stubs for functions which it implements
17680 to always fail with ENOSYS. Some functions are actually named
17681 something starting with __ and the normal name is an alias. */
17682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17683 #error found stub for $ac_func
17686 return $ac_func ();
17691 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17692 if { (eval echo "$as_me:17692: \"$ac_link\"") >&5
17693 (eval $ac_link) 2>&5
17695 echo "$as_me:17695: \$? = $ac_status" >&5
17696 (exit "$ac_status"); } &&
17697 { ac_try='test -s "conftest$ac_exeext"'
17698 { (eval echo "$as_me:17698: \"$ac_try\"") >&5
17699 (eval $ac_try) 2>&5
17701 echo "$as_me:17701: \$? = $ac_status" >&5
17702 (exit "$ac_status"); }; }; then
17703 eval "$as_ac_var=yes"
17705 echo "$as_me: failed program was:" >&5
17706 cat "conftest.$ac_ext" >&5
17707 eval "$as_ac_var=no"
17709 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17711 echo "$as_me:17711: result: `eval echo '${'"$as_ac_var"'}'`" >&5
17712 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
17713 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
17714 cat >>confdefs.h <<EOF
17715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17723 ### use option --enable-assertions to turn on generation of assertion code
17724 echo "$as_me:17724: checking if you want to enable runtime assertions" >&5
17725 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
17727 # Check whether --enable-assertions or --disable-assertions was given.
17728 if test "${enable_assertions+set}" = set; then
17729 enableval="$enable_assertions"
17730 with_assertions=$enableval
17734 echo "$as_me:17734: result: $with_assertions" >&5
17735 echo "${ECHO_T}$with_assertions" >&6
17738 if test "$with_assertions" = no
17740 CPPFLAGS="$CPPFLAGS -DNDEBUG"
17743 ADAFLAGS="$ADAFLAGS -gnata"
17748 ### use option --disable-leaks to suppress "permanent" leaks, for testing
17750 echo "$as_me:17750: checking if you want to use dmalloc for testing" >&5
17751 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
17753 # Check whether --with-dmalloc or --without-dmalloc was given.
17754 if test "${with_dmalloc+set}" = set; then
17755 withval="$with_dmalloc"
17756 case "x$withval" in
17759 : "${with_cflags:=-g}"
17760 : "${enable_leaks:=no}"
17763 cat >>confdefs.h <<EOF
17764 #define USE_DMALLOC 1
17772 echo "$as_me:17772: result: ${with_dmalloc:-no}" >&5
17773 echo "${ECHO_T}${with_dmalloc:-no}" >&6
17775 case ".$with_cflags" in
17785 cf_new_extra_cppflags=
17787 for cf_add_cflags in -g
17789 case "$cf_fix_cppflags" in
17791 case "$cf_add_cflags" in
17792 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17793 case "$cf_add_cflags" in
17795 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17797 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17798 && test -z "${cf_tst_cflags}" \
17799 && cf_fix_cppflags=yes
17801 if test "$cf_fix_cppflags" = yes ; then
17803 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17804 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17807 elif test "${cf_tst_cflags}" = "\"'" ; then
17809 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17810 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17816 case "$CPPFLAGS" in
17820 case "$cf_add_cflags" in
17822 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17824 CPPFLAGS=`echo "$CPPFLAGS" | \
17825 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17826 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17831 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
17832 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
17839 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
17840 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
17847 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17848 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17850 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
17852 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17853 && test -z "${cf_tst_cflags}" \
17854 && cf_fix_cppflags=no
17859 if test -n "$cf_new_cflags" ; then
17861 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17862 CFLAGS="${CFLAGS}$cf_new_cflags"
17866 if test -n "$cf_new_cppflags" ; then
17868 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17869 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
17873 if test -n "$cf_new_extra_cppflags" ; then
17875 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
17876 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
17885 if test "$with_dmalloc" = yes ; then
17886 echo "$as_me:17886: checking for dmalloc.h" >&5
17887 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
17888 if test "${ac_cv_header_dmalloc_h+set}" = set; then
17889 echo $ECHO_N "(cached) $ECHO_C" >&6
17891 cat >"conftest.$ac_ext" <<_ACEOF
17892 #line 17892 "configure"
17893 #include "confdefs.h"
17894 #include <dmalloc.h>
17896 if { (eval echo "$as_me:17896: \"$ac_cpp "conftest.$ac_ext"\"") >&5
17897 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
17899 $EGREP -v '^ *\+' conftest.er1 >conftest.err
17901 cat conftest.err >&5
17902 echo "$as_me:17902: \$? = $ac_status" >&5
17903 (exit "$ac_status"); } >/dev/null; then
17904 if test -s conftest.err; then
17905 ac_cpp_err=$ac_c_preproc_warn_flag
17912 if test -z "$ac_cpp_err"; then
17913 ac_cv_header_dmalloc_h=yes
17915 echo "$as_me: failed program was:" >&5
17916 cat "conftest.$ac_ext" >&5
17917 ac_cv_header_dmalloc_h=no
17919 rm -f conftest.err "conftest.$ac_ext"
17921 echo "$as_me:17921: result: $ac_cv_header_dmalloc_h" >&5
17922 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
17923 if test "$ac_cv_header_dmalloc_h" = yes; then
17925 echo "$as_me:17925: checking for dmalloc_debug in -ldmalloc" >&5
17926 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
17927 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
17928 echo $ECHO_N "(cached) $ECHO_C" >&6
17930 ac_check_lib_save_LIBS=$LIBS
17931 LIBS="-ldmalloc $LIBS"
17932 cat >"conftest.$ac_ext" <<_ACEOF
17933 #line 17933 "configure"
17934 #include "confdefs.h"
17936 /* Override any gcc2 internal prototype to avoid an error. */
17940 /* We use char because int might match the return type of a gcc2
17941 builtin and then its argument prototype would still apply. */
17942 char dmalloc_debug ();
17951 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
17952 if { (eval echo "$as_me:17952: \"$ac_link\"") >&5
17953 (eval $ac_link) 2>&5
17955 echo "$as_me:17955: \$? = $ac_status" >&5
17956 (exit "$ac_status"); } &&
17957 { ac_try='test -s "conftest$ac_exeext"'
17958 { (eval echo "$as_me:17958: \"$ac_try\"") >&5
17959 (eval $ac_try) 2>&5
17961 echo "$as_me:17961: \$? = $ac_status" >&5
17962 (exit "$ac_status"); }; }; then
17963 ac_cv_lib_dmalloc_dmalloc_debug=yes
17965 echo "$as_me: failed program was:" >&5
17966 cat "conftest.$ac_ext" >&5
17967 ac_cv_lib_dmalloc_dmalloc_debug=no
17969 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
17970 LIBS=$ac_check_lib_save_LIBS
17972 echo "$as_me:17972: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
17973 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
17974 if test "$ac_cv_lib_dmalloc_dmalloc_debug" = yes; then
17975 cat >>confdefs.h <<EOF
17976 #define HAVE_LIBDMALLOC 1
17979 LIBS="-ldmalloc $LIBS"
17987 echo "$as_me:17987: checking if you want to use dbmalloc for testing" >&5
17988 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
17990 # Check whether --with-dbmalloc or --without-dbmalloc was given.
17991 if test "${with_dbmalloc+set}" = set; then
17992 withval="$with_dbmalloc"
17993 case "x$withval" in
17996 : "${with_cflags:=-g}"
17997 : "${enable_leaks:=no}"
18000 cat >>confdefs.h <<EOF
18001 #define USE_DBMALLOC 1
18009 echo "$as_me:18009: result: ${with_dbmalloc:-no}" >&5
18010 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
18012 case ".$with_cflags" in
18022 cf_new_extra_cppflags=
18024 for cf_add_cflags in -g
18026 case "$cf_fix_cppflags" in
18028 case "$cf_add_cflags" in
18029 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18030 case "$cf_add_cflags" in
18032 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18034 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18035 && test -z "${cf_tst_cflags}" \
18036 && cf_fix_cppflags=yes
18038 if test "$cf_fix_cppflags" = yes ; then
18040 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18041 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18044 elif test "${cf_tst_cflags}" = "\"'" ; then
18046 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18047 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18053 case "$CPPFLAGS" in
18057 case "$cf_add_cflags" in
18059 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18061 CPPFLAGS=`echo "$CPPFLAGS" | \
18062 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18063 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18068 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18069 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18076 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18077 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18084 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18085 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18087 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18089 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18090 && test -z "${cf_tst_cflags}" \
18091 && cf_fix_cppflags=no
18096 if test -n "$cf_new_cflags" ; then
18098 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18099 CFLAGS="${CFLAGS}$cf_new_cflags"
18103 if test -n "$cf_new_cppflags" ; then
18105 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18106 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18110 if test -n "$cf_new_extra_cppflags" ; then
18112 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18113 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18122 if test "$with_dbmalloc" = yes ; then
18123 echo "$as_me:18123: checking for dbmalloc.h" >&5
18124 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
18125 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
18126 echo $ECHO_N "(cached) $ECHO_C" >&6
18128 cat >"conftest.$ac_ext" <<_ACEOF
18129 #line 18129 "configure"
18130 #include "confdefs.h"
18131 #include <dbmalloc.h>
18133 if { (eval echo "$as_me:18133: \"$ac_cpp "conftest.$ac_ext"\"") >&5
18134 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
18136 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18138 cat conftest.err >&5
18139 echo "$as_me:18139: \$? = $ac_status" >&5
18140 (exit "$ac_status"); } >/dev/null; then
18141 if test -s conftest.err; then
18142 ac_cpp_err=$ac_c_preproc_warn_flag
18149 if test -z "$ac_cpp_err"; then
18150 ac_cv_header_dbmalloc_h=yes
18152 echo "$as_me: failed program was:" >&5
18153 cat "conftest.$ac_ext" >&5
18154 ac_cv_header_dbmalloc_h=no
18156 rm -f conftest.err "conftest.$ac_ext"
18158 echo "$as_me:18158: result: $ac_cv_header_dbmalloc_h" >&5
18159 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
18160 if test "$ac_cv_header_dbmalloc_h" = yes; then
18162 echo "$as_me:18162: checking for debug_malloc in -ldbmalloc" >&5
18163 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
18164 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
18165 echo $ECHO_N "(cached) $ECHO_C" >&6
18167 ac_check_lib_save_LIBS=$LIBS
18168 LIBS="-ldbmalloc $LIBS"
18169 cat >"conftest.$ac_ext" <<_ACEOF
18170 #line 18170 "configure"
18171 #include "confdefs.h"
18173 /* Override any gcc2 internal prototype to avoid an error. */
18177 /* We use char because int might match the return type of a gcc2
18178 builtin and then its argument prototype would still apply. */
18179 char debug_malloc ();
18188 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18189 if { (eval echo "$as_me:18189: \"$ac_link\"") >&5
18190 (eval $ac_link) 2>&5
18192 echo "$as_me:18192: \$? = $ac_status" >&5
18193 (exit "$ac_status"); } &&
18194 { ac_try='test -s "conftest$ac_exeext"'
18195 { (eval echo "$as_me:18195: \"$ac_try\"") >&5
18196 (eval $ac_try) 2>&5
18198 echo "$as_me:18198: \$? = $ac_status" >&5
18199 (exit "$ac_status"); }; }; then
18200 ac_cv_lib_dbmalloc_debug_malloc=yes
18202 echo "$as_me: failed program was:" >&5
18203 cat "conftest.$ac_ext" >&5
18204 ac_cv_lib_dbmalloc_debug_malloc=no
18206 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18207 LIBS=$ac_check_lib_save_LIBS
18209 echo "$as_me:18209: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
18210 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
18211 if test "$ac_cv_lib_dbmalloc_debug_malloc" = yes; then
18212 cat >>confdefs.h <<EOF
18213 #define HAVE_LIBDBMALLOC 1
18216 LIBS="-ldbmalloc $LIBS"
18224 echo "$as_me:18224: checking if you want to use valgrind for testing" >&5
18225 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
18227 # Check whether --with-valgrind or --without-valgrind was given.
18228 if test "${with_valgrind+set}" = set; then
18229 withval="$with_valgrind"
18230 case "x$withval" in
18233 : "${with_cflags:=-g}"
18234 : "${enable_leaks:=no}"
18237 cat >>confdefs.h <<EOF
18238 #define USE_VALGRIND 1
18246 echo "$as_me:18246: result: ${with_valgrind:-no}" >&5
18247 echo "${ECHO_T}${with_valgrind:-no}" >&6
18249 case ".$with_cflags" in
18259 cf_new_extra_cppflags=
18261 for cf_add_cflags in -g
18263 case "$cf_fix_cppflags" in
18265 case "$cf_add_cflags" in
18266 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18267 case "$cf_add_cflags" in
18269 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18271 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18272 && test -z "${cf_tst_cflags}" \
18273 && cf_fix_cppflags=yes
18275 if test "$cf_fix_cppflags" = yes ; then
18277 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18278 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18281 elif test "${cf_tst_cflags}" = "\"'" ; then
18283 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18284 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18290 case "$CPPFLAGS" in
18294 case "$cf_add_cflags" in
18296 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18298 CPPFLAGS=`echo "$CPPFLAGS" | \
18299 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18300 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18305 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18306 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18313 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18314 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18321 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18322 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18324 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18326 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18327 && test -z "${cf_tst_cflags}" \
18328 && cf_fix_cppflags=no
18333 if test -n "$cf_new_cflags" ; then
18335 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18336 CFLAGS="${CFLAGS}$cf_new_cflags"
18340 if test -n "$cf_new_cppflags" ; then
18342 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18343 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18347 if test -n "$cf_new_extra_cppflags" ; then
18349 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18350 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18359 echo "$as_me:18359: checking if you want to perform memory-leak testing" >&5
18360 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
18362 # Check whether --enable-leaks or --disable-leaks was given.
18363 if test "${enable_leaks+set}" = set; then
18364 enableval="$enable_leaks"
18365 enable_leaks=$enableval
18369 if test "x$enable_leaks" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
18370 echo "$as_me:18370: result: $with_no_leaks" >&5
18371 echo "${ECHO_T}$with_no_leaks" >&6
18373 if test "$enable_leaks" = no ; then
18375 cat >>confdefs.h <<\EOF
18379 cat >>confdefs.h <<\EOF
18380 #define YY_NO_LEAKS 1
18385 cat >>confdefs.h <<\EOF
18386 #define HAVE_NC_ALLOC_H 1
18389 ### use option --enable-expanded to generate certain macros as functions
18391 # Check whether --enable-expanded or --disable-expanded was given.
18392 if test "${enable_expanded+set}" = set; then
18393 enableval="$enable_expanded"
18394 test "x$enableval" = xyes &&
18395 cat >>confdefs.h <<\EOF
18396 #define NCURSES_EXPANDED 1
18401 ### use option --disable-macros to suppress macros in favor of functions
18403 # Check whether --enable-macros or --disable-macros was given.
18404 if test "${enable_macros+set}" = set; then
18405 enableval="$enable_macros"
18406 test "$enableval" = no &&
18407 cat >>confdefs.h <<\EOF
18408 #define NCURSES_NOMACROS 1
18413 # Normally we only add trace() to the debug-library. Allow this to be
18414 # extended to all models of the ncurses library:
18416 case "$CFLAGS $CPPFLAGS" in
18422 echo "$as_me:18422: checking whether to add trace feature to all models" >&5
18423 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
18425 # Check whether --with-trace or --without-trace was given.
18426 if test "${with_trace+set}" = set; then
18427 withval="$with_trace"
18428 cf_with_trace=$withval
18430 cf_with_trace=$cf_all_traces
18432 echo "$as_me:18432: result: $cf_with_trace" >&5
18433 echo "${ECHO_T}$cf_with_trace" >&6
18435 if test "x$cf_with_trace" = xyes ; then
18442 cf_new_extra_cppflags=
18444 for cf_add_cflags in -DTRACE
18446 case "$cf_fix_cppflags" in
18448 case "$cf_add_cflags" in
18449 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18450 case "$cf_add_cflags" in
18452 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18454 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18455 && test -z "${cf_tst_cflags}" \
18456 && cf_fix_cppflags=yes
18458 if test "$cf_fix_cppflags" = yes ; then
18460 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18461 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18464 elif test "${cf_tst_cflags}" = "\"'" ; then
18466 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18467 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18473 case "$CPPFLAGS" in
18477 case "$cf_add_cflags" in
18479 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18481 CPPFLAGS=`echo "$CPPFLAGS" | \
18482 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18483 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18488 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18489 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18496 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18497 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18504 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18505 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18507 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
18509 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18510 && test -z "${cf_tst_cflags}" \
18511 && cf_fix_cppflags=no
18516 if test -n "$cf_new_cflags" ; then
18518 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18519 CFLAGS="${CFLAGS}$cf_new_cflags"
18523 if test -n "$cf_new_cppflags" ; then
18525 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18526 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18530 if test -n "$cf_new_extra_cppflags" ; then
18532 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18533 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18537 cat >>confdefs.h <<\EOF
18538 #define HAVE__TRACEF 1
18546 echo "$as_me:18546: checking if we want to use GNAT projects" >&5
18547 echo $ECHO_N "checking if we want to use GNAT projects... $ECHO_C" >&6
18549 # Check whether --enable-gnat-projects or --disable-gnat-projects was given.
18550 if test "${enable_gnat_projects+set}" = set; then
18551 enableval="$enable_gnat_projects"
18552 test "$enableval" != no && enableval=yes
18553 if test "$enableval" != "yes" ; then
18554 enable_gnat_projects=no
18556 enable_gnat_projects=yes
18560 enable_gnat_projects=yes
18563 echo "$as_me:18563: result: $enable_gnat_projects" >&5
18564 echo "${ECHO_T}$enable_gnat_projects" >&6
18566 ### Checks for libraries.
18567 case "$cf_cv_system_name" in
18568 (*mingw32*|*mingw64*)
18569 if test "x$with_exp_win32" = xyes ; then
18570 CPPFLAGS="$CPPFLAGS -DWINVER=0x0600 -DWIN32_LEAN_AND_MEAN"
18572 CPPFLAGS="$CPPFLAGS -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN"
18574 # Note: WINVER may be a problem with Windows 10
18577 echo "$as_me:18577: checking for gettimeofday" >&5
18578 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
18579 if test "${ac_cv_func_gettimeofday+set}" = set; then
18580 echo $ECHO_N "(cached) $ECHO_C" >&6
18582 cat >"conftest.$ac_ext" <<_ACEOF
18583 #line 18583 "configure"
18584 #include "confdefs.h"
18585 #define gettimeofday autoconf_temporary
18586 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
18587 #undef gettimeofday
18593 /* We use char because int might match the return type of a gcc2
18594 builtin and then its argument prototype would still apply. */
18595 char gettimeofday (void);
18601 /* The GNU C library defines stubs for functions which it implements
18602 to always fail with ENOSYS. Some functions are actually named
18603 something starting with __ and the normal name is an alias. */
18604 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
18605 #error found stub for gettimeofday
18608 return gettimeofday ();
18613 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18614 if { (eval echo "$as_me:18614: \"$ac_link\"") >&5
18615 (eval $ac_link) 2>&5
18617 echo "$as_me:18617: \$? = $ac_status" >&5
18618 (exit "$ac_status"); } &&
18619 { ac_try='test -s "conftest$ac_exeext"'
18620 { (eval echo "$as_me:18620: \"$ac_try\"") >&5
18621 (eval $ac_try) 2>&5
18623 echo "$as_me:18623: \$? = $ac_status" >&5
18624 (exit "$ac_status"); }; }; then
18625 ac_cv_func_gettimeofday=yes
18627 echo "$as_me: failed program was:" >&5
18628 cat "conftest.$ac_ext" >&5
18629 ac_cv_func_gettimeofday=no
18631 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18633 echo "$as_me:18633: result: $ac_cv_func_gettimeofday" >&5
18634 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
18635 if test "$ac_cv_func_gettimeofday" = yes; then
18637 cat >>confdefs.h <<\EOF
18638 #define HAVE_GETTIMEOFDAY 1
18643 echo "$as_me:18643: checking for gettimeofday in -lbsd" >&5
18644 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
18645 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
18646 echo $ECHO_N "(cached) $ECHO_C" >&6
18648 ac_check_lib_save_LIBS=$LIBS
18650 cat >"conftest.$ac_ext" <<_ACEOF
18651 #line 18651 "configure"
18652 #include "confdefs.h"
18654 /* Override any gcc2 internal prototype to avoid an error. */
18658 /* We use char because int might match the return type of a gcc2
18659 builtin and then its argument prototype would still apply. */
18660 char gettimeofday ();
18669 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18670 if { (eval echo "$as_me:18670: \"$ac_link\"") >&5
18671 (eval $ac_link) 2>&5
18673 echo "$as_me:18673: \$? = $ac_status" >&5
18674 (exit "$ac_status"); } &&
18675 { ac_try='test -s "conftest$ac_exeext"'
18676 { (eval echo "$as_me:18676: \"$ac_try\"") >&5
18677 (eval $ac_try) 2>&5
18679 echo "$as_me:18679: \$? = $ac_status" >&5
18680 (exit "$ac_status"); }; }; then
18681 ac_cv_lib_bsd_gettimeofday=yes
18683 echo "$as_me: failed program was:" >&5
18684 cat "conftest.$ac_ext" >&5
18685 ac_cv_lib_bsd_gettimeofday=no
18687 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18688 LIBS=$ac_check_lib_save_LIBS
18690 echo "$as_me:18690: result: $ac_cv_lib_bsd_gettimeofday" >&5
18691 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
18692 if test "$ac_cv_lib_bsd_gettimeofday" = yes; then
18694 cat >>confdefs.h <<\EOF
18695 #define HAVE_GETTIMEOFDAY 1
18698 cf_add_libs="$LIBS"
18701 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
18702 # filter duplicates
18703 for cf_add_1lib in $cf_add_0lib; do
18704 for cf_add_2lib in $cf_add_libs; do
18705 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
18710 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18712 LIBS="$cf_add_libs"
18720 echo "$as_me:18720: checking if -lm needed for math functions" >&5
18721 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
18722 if test "${cf_cv_need_libm+set}" = set; then
18723 echo $ECHO_N "(cached) $ECHO_C" >&6
18726 cat >"conftest.$ac_ext" <<_ACEOF
18727 #line 18727 "configure"
18728 #include "confdefs.h"
18731 #include <stdlib.h>
18737 double x = rand(); printf("result = %g\\n", pow(sin(x),x))
18742 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18743 if { (eval echo "$as_me:18743: \"$ac_link\"") >&5
18744 (eval $ac_link) 2>&5
18746 echo "$as_me:18746: \$? = $ac_status" >&5
18747 (exit "$ac_status"); } &&
18748 { ac_try='test -s "conftest$ac_exeext"'
18749 { (eval echo "$as_me:18749: \"$ac_try\"") >&5
18750 (eval $ac_try) 2>&5
18752 echo "$as_me:18752: \$? = $ac_status" >&5
18753 (exit "$ac_status"); }; }; then
18756 echo "$as_me: failed program was:" >&5
18757 cat "conftest.$ac_ext" >&5
18758 cf_cv_need_libm=yes
18760 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
18762 echo "$as_me:18762: result: $cf_cv_need_libm" >&5
18763 echo "${ECHO_T}$cf_cv_need_libm" >&6
18764 if test "$cf_cv_need_libm" = yes
18769 ### Checks for header files.
18770 echo "$as_me:18770: checking for ANSI C header files" >&5
18771 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18772 if test "${ac_cv_header_stdc+set}" = set; then
18773 echo $ECHO_N "(cached) $ECHO_C" >&6
18775 cat >"conftest.$ac_ext" <<_ACEOF
18776 #line 18776 "configure"
18777 #include "confdefs.h"
18778 #include <stdlib.h>
18779 #include <stdarg.h>
18780 #include <string.h>
18784 if { (eval echo "$as_me:18784: \"$ac_cpp "conftest.$ac_ext"\"") >&5
18785 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
18787 $EGREP -v '^ *\+' conftest.er1 >conftest.err
18789 cat conftest.err >&5
18790 echo "$as_me:18790: \$? = $ac_status" >&5
18791 (exit "$ac_status"); } >/dev/null; then
18792 if test -s conftest.err; then
18793 ac_cpp_err=$ac_c_preproc_warn_flag
18800 if test -z "$ac_cpp_err"; then
18801 ac_cv_header_stdc=yes
18803 echo "$as_me: failed program was:" >&5
18804 cat "conftest.$ac_ext" >&5
18805 ac_cv_header_stdc=no
18807 rm -f conftest.err "conftest.$ac_ext"
18809 if test $ac_cv_header_stdc = yes; then
18810 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18811 cat >"conftest.$ac_ext" <<_ACEOF
18812 #line 18812 "configure"
18813 #include "confdefs.h"
18814 #include <string.h>
18817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18818 $EGREP "memchr" >/dev/null 2>&1; then
18821 ac_cv_header_stdc=no
18827 if test $ac_cv_header_stdc = yes; then
18828 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18829 cat >"conftest.$ac_ext" <<_ACEOF
18830 #line 18830 "configure"
18831 #include "confdefs.h"
18832 #include <stdlib.h>
18835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18836 $EGREP "free" >/dev/null 2>&1; then
18839 ac_cv_header_stdc=no
18845 if test $ac_cv_header_stdc = yes; then
18846 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18847 if test "$cross_compiling" = yes; then
18850 cat >"conftest.$ac_ext" <<_ACEOF
18851 #line 18851 "configure"
18852 #include "confdefs.h"
18854 #if ((' ' & 0x0FF) == 0x020)
18855 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18856 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18858 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
18859 || ('j' <= (c) && (c) <= 'r') \
18860 || ('s' <= (c) && (c) <= 'z'))
18861 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18864 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18869 for (i = 0; i < 256; i++)
18870 if (XOR (islower (i), ISLOWER (i))
18871 || toupper (i) != TOUPPER (i))
18872 $ac_main_return(2);
18873 $ac_main_return (0);
18876 rm -f "conftest$ac_exeext"
18877 if { (eval echo "$as_me:18877: \"$ac_link\"") >&5
18878 (eval $ac_link) 2>&5
18880 echo "$as_me:18880: \$? = $ac_status" >&5
18881 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
18882 { (eval echo "$as_me:18882: \"$ac_try\"") >&5
18883 (eval $ac_try) 2>&5
18885 echo "$as_me:18885: \$? = $ac_status" >&5
18886 (exit "$ac_status"); }; }; then
18889 echo "$as_me: program exited with status $ac_status" >&5
18890 echo "$as_me: failed program was:" >&5
18891 cat "conftest.$ac_ext" >&5
18892 ac_cv_header_stdc=no
18894 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
18898 echo "$as_me:18898: result: $ac_cv_header_stdc" >&5
18899 echo "${ECHO_T}$ac_cv_header_stdc" >&6
18900 if test $ac_cv_header_stdc = yes; then
18902 cat >>confdefs.h <<\EOF
18903 #define STDC_HEADERS 1
18908 ac_header_dirent=no
18909 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
18910 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
18911 echo "$as_me:18911: checking for $ac_hdr that defines DIR" >&5
18912 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
18913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18914 echo $ECHO_N "(cached) $ECHO_C" >&6
18916 cat >"conftest.$ac_ext" <<_ACEOF
18917 #line 18917 "configure"
18918 #include "confdefs.h"
18919 #include <sys/types.h>
18931 rm -f "conftest.$ac_objext"
18932 if { (eval echo "$as_me:18932: \"$ac_compile\"") >&5
18933 (eval $ac_compile) 2>&5
18935 echo "$as_me:18935: \$? = $ac_status" >&5
18936 (exit "$ac_status"); } &&
18937 { ac_try='test -s "conftest.$ac_objext"'
18938 { (eval echo "$as_me:18938: \"$ac_try\"") >&5
18939 (eval $ac_try) 2>&5
18941 echo "$as_me:18941: \$? = $ac_status" >&5
18942 (exit "$ac_status"); }; }; then
18943 eval "$as_ac_Header=yes"
18945 echo "$as_me: failed program was:" >&5
18946 cat "conftest.$ac_ext" >&5
18947 eval "$as_ac_Header=no"
18949 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
18951 echo "$as_me:18951: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
18952 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
18953 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
18954 cat >>confdefs.h <<EOF
18955 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
18958 ac_header_dirent=$ac_hdr; break
18962 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
18963 if test $ac_header_dirent = dirent.h; then
18964 echo "$as_me:18964: checking for opendir in -ldir" >&5
18965 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
18966 if test "${ac_cv_lib_dir_opendir+set}" = set; then
18967 echo $ECHO_N "(cached) $ECHO_C" >&6
18969 ac_check_lib_save_LIBS=$LIBS
18971 cat >"conftest.$ac_ext" <<_ACEOF
18972 #line 18972 "configure"
18973 #include "confdefs.h"
18975 /* Override any gcc2 internal prototype to avoid an error. */
18979 /* We use char because int might match the return type of a gcc2
18980 builtin and then its argument prototype would still apply. */
18990 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
18991 if { (eval echo "$as_me:18991: \"$ac_link\"") >&5
18992 (eval $ac_link) 2>&5
18994 echo "$as_me:18994: \$? = $ac_status" >&5
18995 (exit "$ac_status"); } &&
18996 { ac_try='test -s "conftest$ac_exeext"'
18997 { (eval echo "$as_me:18997: \"$ac_try\"") >&5
18998 (eval $ac_try) 2>&5
19000 echo "$as_me:19000: \$? = $ac_status" >&5
19001 (exit "$ac_status"); }; }; then
19002 ac_cv_lib_dir_opendir=yes
19004 echo "$as_me: failed program was:" >&5
19005 cat "conftest.$ac_ext" >&5
19006 ac_cv_lib_dir_opendir=no
19008 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19009 LIBS=$ac_check_lib_save_LIBS
19011 echo "$as_me:19011: result: $ac_cv_lib_dir_opendir" >&5
19012 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
19013 if test "$ac_cv_lib_dir_opendir" = yes; then
19018 echo "$as_me:19018: checking for opendir in -lx" >&5
19019 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
19020 if test "${ac_cv_lib_x_opendir+set}" = set; then
19021 echo $ECHO_N "(cached) $ECHO_C" >&6
19023 ac_check_lib_save_LIBS=$LIBS
19025 cat >"conftest.$ac_ext" <<_ACEOF
19026 #line 19026 "configure"
19027 #include "confdefs.h"
19029 /* Override any gcc2 internal prototype to avoid an error. */
19033 /* We use char because int might match the return type of a gcc2
19034 builtin and then its argument prototype would still apply. */
19044 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19045 if { (eval echo "$as_me:19045: \"$ac_link\"") >&5
19046 (eval $ac_link) 2>&5
19048 echo "$as_me:19048: \$? = $ac_status" >&5
19049 (exit "$ac_status"); } &&
19050 { ac_try='test -s "conftest$ac_exeext"'
19051 { (eval echo "$as_me:19051: \"$ac_try\"") >&5
19052 (eval $ac_try) 2>&5
19054 echo "$as_me:19054: \$? = $ac_status" >&5
19055 (exit "$ac_status"); }; }; then
19056 ac_cv_lib_x_opendir=yes
19058 echo "$as_me: failed program was:" >&5
19059 cat "conftest.$ac_ext" >&5
19060 ac_cv_lib_x_opendir=no
19062 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19063 LIBS=$ac_check_lib_save_LIBS
19065 echo "$as_me:19065: result: $ac_cv_lib_x_opendir" >&5
19066 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
19067 if test "$ac_cv_lib_x_opendir" = yes; then
19073 echo "$as_me:19073: checking whether time.h and sys/time.h may both be included" >&5
19074 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19075 if test "${ac_cv_header_time+set}" = set; then
19076 echo $ECHO_N "(cached) $ECHO_C" >&6
19078 cat >"conftest.$ac_ext" <<_ACEOF
19079 #line 19079 "configure"
19080 #include "confdefs.h"
19081 #include <sys/types.h>
19082 #include <sys/time.h>
19088 if ((struct tm *) 0)
19094 rm -f "conftest.$ac_objext"
19095 if { (eval echo "$as_me:19095: \"$ac_compile\"") >&5
19096 (eval $ac_compile) 2>&5
19098 echo "$as_me:19098: \$? = $ac_status" >&5
19099 (exit "$ac_status"); } &&
19100 { ac_try='test -s "conftest.$ac_objext"'
19101 { (eval echo "$as_me:19101: \"$ac_try\"") >&5
19102 (eval $ac_try) 2>&5
19104 echo "$as_me:19104: \$? = $ac_status" >&5
19105 (exit "$ac_status"); }; }; then
19106 ac_cv_header_time=yes
19108 echo "$as_me: failed program was:" >&5
19109 cat "conftest.$ac_ext" >&5
19110 ac_cv_header_time=no
19112 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
19114 echo "$as_me:19114: result: $ac_cv_header_time" >&5
19115 echo "${ECHO_T}$ac_cv_header_time" >&6
19116 if test $ac_cv_header_time = yes; then
19118 cat >>confdefs.h <<\EOF
19119 #define TIME_WITH_SYS_TIME 1
19128 # -lsystre -ltre -lintl -liconv
19129 echo "$as_me:19129: checking for regcomp in -lsystre" >&5
19130 echo $ECHO_N "checking for regcomp in -lsystre... $ECHO_C" >&6
19131 if test "${ac_cv_lib_systre_regcomp+set}" = set; then
19132 echo $ECHO_N "(cached) $ECHO_C" >&6
19134 ac_check_lib_save_LIBS=$LIBS
19135 LIBS="-lsystre $LIBS"
19136 cat >"conftest.$ac_ext" <<_ACEOF
19137 #line 19137 "configure"
19138 #include "confdefs.h"
19140 /* Override any gcc2 internal prototype to avoid an error. */
19144 /* We use char because int might match the return type of a gcc2
19145 builtin and then its argument prototype would still apply. */
19155 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19156 if { (eval echo "$as_me:19156: \"$ac_link\"") >&5
19157 (eval $ac_link) 2>&5
19159 echo "$as_me:19159: \$? = $ac_status" >&5
19160 (exit "$ac_status"); } &&
19161 { ac_try='test -s "conftest$ac_exeext"'
19162 { (eval echo "$as_me:19162: \"$ac_try\"") >&5
19163 (eval $ac_try) 2>&5
19165 echo "$as_me:19165: \$? = $ac_status" >&5
19166 (exit "$ac_status"); }; }; then
19167 ac_cv_lib_systre_regcomp=yes
19169 echo "$as_me: failed program was:" >&5
19170 cat "conftest.$ac_ext" >&5
19171 ac_cv_lib_systre_regcomp=no
19173 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19174 LIBS=$ac_check_lib_save_LIBS
19176 echo "$as_me:19176: result: $ac_cv_lib_systre_regcomp" >&5
19177 echo "${ECHO_T}$ac_cv_lib_systre_regcomp" >&6
19178 if test "$ac_cv_lib_systre_regcomp" = yes; then
19180 echo "$as_me:19180: checking for libiconv_open in -liconv" >&5
19181 echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6
19182 if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then
19183 echo $ECHO_N "(cached) $ECHO_C" >&6
19185 ac_check_lib_save_LIBS=$LIBS
19186 LIBS="-liconv $LIBS"
19187 cat >"conftest.$ac_ext" <<_ACEOF
19188 #line 19188 "configure"
19189 #include "confdefs.h"
19191 /* Override any gcc2 internal prototype to avoid an error. */
19195 /* We use char because int might match the return type of a gcc2
19196 builtin and then its argument prototype would still apply. */
19197 char libiconv_open ();
19206 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19207 if { (eval echo "$as_me:19207: \"$ac_link\"") >&5
19208 (eval $ac_link) 2>&5
19210 echo "$as_me:19210: \$? = $ac_status" >&5
19211 (exit "$ac_status"); } &&
19212 { ac_try='test -s "conftest$ac_exeext"'
19213 { (eval echo "$as_me:19213: \"$ac_try\"") >&5
19214 (eval $ac_try) 2>&5
19216 echo "$as_me:19216: \$? = $ac_status" >&5
19217 (exit "$ac_status"); }; }; then
19218 ac_cv_lib_iconv_libiconv_open=yes
19220 echo "$as_me: failed program was:" >&5
19221 cat "conftest.$ac_ext" >&5
19222 ac_cv_lib_iconv_libiconv_open=no
19224 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19225 LIBS=$ac_check_lib_save_LIBS
19227 echo "$as_me:19227: result: $ac_cv_lib_iconv_libiconv_open" >&5
19228 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6
19229 if test "$ac_cv_lib_iconv_libiconv_open" = yes; then
19231 cf_add_libs="$LIBS"
19234 for cf_add_1lib in -liconv; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19235 # filter duplicates
19236 for cf_add_1lib in $cf_add_0lib; do
19237 for cf_add_2lib in $cf_add_libs; do
19238 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19243 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19245 LIBS="$cf_add_libs"
19249 echo "$as_me:19249: checking for libintl_gettext in -lintl" >&5
19250 echo $ECHO_N "checking for libintl_gettext in -lintl... $ECHO_C" >&6
19251 if test "${ac_cv_lib_intl_libintl_gettext+set}" = set; then
19252 echo $ECHO_N "(cached) $ECHO_C" >&6
19254 ac_check_lib_save_LIBS=$LIBS
19255 LIBS="-lintl $LIBS"
19256 cat >"conftest.$ac_ext" <<_ACEOF
19257 #line 19257 "configure"
19258 #include "confdefs.h"
19260 /* Override any gcc2 internal prototype to avoid an error. */
19264 /* We use char because int might match the return type of a gcc2
19265 builtin and then its argument prototype would still apply. */
19266 char libintl_gettext ();
19270 libintl_gettext ();
19275 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19276 if { (eval echo "$as_me:19276: \"$ac_link\"") >&5
19277 (eval $ac_link) 2>&5
19279 echo "$as_me:19279: \$? = $ac_status" >&5
19280 (exit "$ac_status"); } &&
19281 { ac_try='test -s "conftest$ac_exeext"'
19282 { (eval echo "$as_me:19282: \"$ac_try\"") >&5
19283 (eval $ac_try) 2>&5
19285 echo "$as_me:19285: \$? = $ac_status" >&5
19286 (exit "$ac_status"); }; }; then
19287 ac_cv_lib_intl_libintl_gettext=yes
19289 echo "$as_me: failed program was:" >&5
19290 cat "conftest.$ac_ext" >&5
19291 ac_cv_lib_intl_libintl_gettext=no
19293 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19294 LIBS=$ac_check_lib_save_LIBS
19296 echo "$as_me:19296: result: $ac_cv_lib_intl_libintl_gettext" >&5
19297 echo "${ECHO_T}$ac_cv_lib_intl_libintl_gettext" >&6
19298 if test "$ac_cv_lib_intl_libintl_gettext" = yes; then
19300 cf_add_libs="$LIBS"
19303 for cf_add_1lib in -lintl; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19304 # filter duplicates
19305 for cf_add_1lib in $cf_add_0lib; do
19306 for cf_add_2lib in $cf_add_libs; do
19307 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19312 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19314 LIBS="$cf_add_libs"
19318 echo "$as_me:19318: checking for tre_regcomp in -ltre" >&5
19319 echo $ECHO_N "checking for tre_regcomp in -ltre... $ECHO_C" >&6
19320 if test "${ac_cv_lib_tre_tre_regcomp+set}" = set; then
19321 echo $ECHO_N "(cached) $ECHO_C" >&6
19323 ac_check_lib_save_LIBS=$LIBS
19325 cat >"conftest.$ac_ext" <<_ACEOF
19326 #line 19326 "configure"
19327 #include "confdefs.h"
19329 /* Override any gcc2 internal prototype to avoid an error. */
19333 /* We use char because int might match the return type of a gcc2
19334 builtin and then its argument prototype would still apply. */
19335 char tre_regcomp ();
19344 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19345 if { (eval echo "$as_me:19345: \"$ac_link\"") >&5
19346 (eval $ac_link) 2>&5
19348 echo "$as_me:19348: \$? = $ac_status" >&5
19349 (exit "$ac_status"); } &&
19350 { ac_try='test -s "conftest$ac_exeext"'
19351 { (eval echo "$as_me:19351: \"$ac_try\"") >&5
19352 (eval $ac_try) 2>&5
19354 echo "$as_me:19354: \$? = $ac_status" >&5
19355 (exit "$ac_status"); }; }; then
19356 ac_cv_lib_tre_tre_regcomp=yes
19358 echo "$as_me: failed program was:" >&5
19359 cat "conftest.$ac_ext" >&5
19360 ac_cv_lib_tre_tre_regcomp=no
19362 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19363 LIBS=$ac_check_lib_save_LIBS
19365 echo "$as_me:19365: result: $ac_cv_lib_tre_tre_regcomp" >&5
19366 echo "${ECHO_T}$ac_cv_lib_tre_tre_regcomp" >&6
19367 if test "$ac_cv_lib_tre_tre_regcomp" = yes; then
19369 cf_add_libs="$LIBS"
19372 for cf_add_1lib in -ltre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19373 # filter duplicates
19374 for cf_add_1lib in $cf_add_0lib; do
19375 for cf_add_2lib in $cf_add_libs; do
19376 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19381 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19383 LIBS="$cf_add_libs"
19387 cf_add_libs="$LIBS"
19390 for cf_add_1lib in -lsystre; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19391 # filter duplicates
19392 for cf_add_1lib in $cf_add_0lib; do
19393 for cf_add_2lib in $cf_add_libs; do
19394 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19399 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19401 LIBS="$cf_add_libs"
19403 cf_regex_func=regcomp
19407 echo "$as_me:19407: checking for regcomp in -lgnurx" >&5
19408 echo $ECHO_N "checking for regcomp in -lgnurx... $ECHO_C" >&6
19409 if test "${ac_cv_lib_gnurx_regcomp+set}" = set; then
19410 echo $ECHO_N "(cached) $ECHO_C" >&6
19412 ac_check_lib_save_LIBS=$LIBS
19413 LIBS="-lgnurx $LIBS"
19414 cat >"conftest.$ac_ext" <<_ACEOF
19415 #line 19415 "configure"
19416 #include "confdefs.h"
19418 /* Override any gcc2 internal prototype to avoid an error. */
19422 /* We use char because int might match the return type of a gcc2
19423 builtin and then its argument prototype would still apply. */
19433 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19434 if { (eval echo "$as_me:19434: \"$ac_link\"") >&5
19435 (eval $ac_link) 2>&5
19437 echo "$as_me:19437: \$? = $ac_status" >&5
19438 (exit "$ac_status"); } &&
19439 { ac_try='test -s "conftest$ac_exeext"'
19440 { (eval echo "$as_me:19440: \"$ac_try\"") >&5
19441 (eval $ac_try) 2>&5
19443 echo "$as_me:19443: \$? = $ac_status" >&5
19444 (exit "$ac_status"); }; }; then
19445 ac_cv_lib_gnurx_regcomp=yes
19447 echo "$as_me: failed program was:" >&5
19448 cat "conftest.$ac_ext" >&5
19449 ac_cv_lib_gnurx_regcomp=no
19451 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19452 LIBS=$ac_check_lib_save_LIBS
19454 echo "$as_me:19454: result: $ac_cv_lib_gnurx_regcomp" >&5
19455 echo "${ECHO_T}$ac_cv_lib_gnurx_regcomp" >&6
19456 if test "$ac_cv_lib_gnurx_regcomp" = yes; then
19458 cf_add_libs="$LIBS"
19461 for cf_add_1lib in -lgnurx; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19462 # filter duplicates
19463 for cf_add_1lib in $cf_add_0lib; do
19464 for cf_add_2lib in $cf_add_libs; do
19465 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19470 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19472 LIBS="$cf_add_libs"
19474 cf_regex_func=regcomp
19481 cf_regex_libs="regex re"
19482 echo "$as_me:19482: checking for regcomp" >&5
19483 echo $ECHO_N "checking for regcomp... $ECHO_C" >&6
19484 if test "${ac_cv_func_regcomp+set}" = set; then
19485 echo $ECHO_N "(cached) $ECHO_C" >&6
19487 cat >"conftest.$ac_ext" <<_ACEOF
19488 #line 19488 "configure"
19489 #include "confdefs.h"
19490 #define regcomp autoconf_temporary
19491 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19498 /* We use char because int might match the return type of a gcc2
19499 builtin and then its argument prototype would still apply. */
19500 char regcomp (void);
19506 /* The GNU C library defines stubs for functions which it implements
19507 to always fail with ENOSYS. Some functions are actually named
19508 something starting with __ and the normal name is an alias. */
19509 #if defined (__stub_regcomp) || defined (__stub___regcomp)
19510 #error found stub for regcomp
19518 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19519 if { (eval echo "$as_me:19519: \"$ac_link\"") >&5
19520 (eval $ac_link) 2>&5
19522 echo "$as_me:19522: \$? = $ac_status" >&5
19523 (exit "$ac_status"); } &&
19524 { ac_try='test -s "conftest$ac_exeext"'
19525 { (eval echo "$as_me:19525: \"$ac_try\"") >&5
19526 (eval $ac_try) 2>&5
19528 echo "$as_me:19528: \$? = $ac_status" >&5
19529 (exit "$ac_status"); }; }; then
19530 ac_cv_func_regcomp=yes
19532 echo "$as_me: failed program was:" >&5
19533 cat "conftest.$ac_ext" >&5
19534 ac_cv_func_regcomp=no
19536 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19538 echo "$as_me:19538: result: $ac_cv_func_regcomp" >&5
19539 echo "${ECHO_T}$ac_cv_func_regcomp" >&6
19540 if test "$ac_cv_func_regcomp" = yes; then
19541 cf_regex_func=regcomp
19544 for cf_regex_lib in $cf_regex_libs
19546 as_ac_Lib=`echo "ac_cv_lib_$cf_regex_lib''_regcomp" | $as_tr_sh`
19547 echo "$as_me:19547: checking for regcomp in -l$cf_regex_lib" >&5
19548 echo $ECHO_N "checking for regcomp in -l$cf_regex_lib... $ECHO_C" >&6
19549 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
19550 echo $ECHO_N "(cached) $ECHO_C" >&6
19552 ac_check_lib_save_LIBS=$LIBS
19553 LIBS="-l$cf_regex_lib $LIBS"
19554 cat >"conftest.$ac_ext" <<_ACEOF
19555 #line 19555 "configure"
19556 #include "confdefs.h"
19558 /* Override any gcc2 internal prototype to avoid an error. */
19562 /* We use char because int might match the return type of a gcc2
19563 builtin and then its argument prototype would still apply. */
19573 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19574 if { (eval echo "$as_me:19574: \"$ac_link\"") >&5
19575 (eval $ac_link) 2>&5
19577 echo "$as_me:19577: \$? = $ac_status" >&5
19578 (exit "$ac_status"); } &&
19579 { ac_try='test -s "conftest$ac_exeext"'
19580 { (eval echo "$as_me:19580: \"$ac_try\"") >&5
19581 (eval $ac_try) 2>&5
19583 echo "$as_me:19583: \$? = $ac_status" >&5
19584 (exit "$ac_status"); }; }; then
19585 eval "$as_ac_Lib=yes"
19587 echo "$as_me: failed program was:" >&5
19588 cat "conftest.$ac_ext" >&5
19589 eval "$as_ac_Lib=no"
19591 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19592 LIBS=$ac_check_lib_save_LIBS
19594 echo "$as_me:19594: result: `eval echo '${'"$as_ac_Lib"'}'`" >&5
19595 echo "${ECHO_T}`eval echo '${'"$as_ac_Lib"'}'`" >&6
19596 if test "`eval echo '${'"$as_ac_Lib"'}'`" = yes; then
19598 cf_add_libs="$LIBS"
19601 for cf_add_1lib in -l$cf_regex_lib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19602 # filter duplicates
19603 for cf_add_1lib in $cf_add_0lib; do
19604 for cf_add_2lib in $cf_add_libs; do
19605 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19610 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19612 LIBS="$cf_add_libs"
19614 cf_regex_func=regcomp
19625 if test "$cf_regex_func" = no ; then
19626 echo "$as_me:19626: checking for compile" >&5
19627 echo $ECHO_N "checking for compile... $ECHO_C" >&6
19628 if test "${ac_cv_func_compile+set}" = set; then
19629 echo $ECHO_N "(cached) $ECHO_C" >&6
19631 cat >"conftest.$ac_ext" <<_ACEOF
19632 #line 19632 "configure"
19633 #include "confdefs.h"
19634 #define compile autoconf_temporary
19635 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
19642 /* We use char because int might match the return type of a gcc2
19643 builtin and then its argument prototype would still apply. */
19644 char compile (void);
19650 /* The GNU C library defines stubs for functions which it implements
19651 to always fail with ENOSYS. Some functions are actually named
19652 something starting with __ and the normal name is an alias. */
19653 #if defined (__stub_compile) || defined (__stub___compile)
19654 #error found stub for compile
19662 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19663 if { (eval echo "$as_me:19663: \"$ac_link\"") >&5
19664 (eval $ac_link) 2>&5
19666 echo "$as_me:19666: \$? = $ac_status" >&5
19667 (exit "$ac_status"); } &&
19668 { ac_try='test -s "conftest$ac_exeext"'
19669 { (eval echo "$as_me:19669: \"$ac_try\"") >&5
19670 (eval $ac_try) 2>&5
19672 echo "$as_me:19672: \$? = $ac_status" >&5
19673 (exit "$ac_status"); }; }; then
19674 ac_cv_func_compile=yes
19676 echo "$as_me: failed program was:" >&5
19677 cat "conftest.$ac_ext" >&5
19678 ac_cv_func_compile=no
19680 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19682 echo "$as_me:19682: result: $ac_cv_func_compile" >&5
19683 echo "${ECHO_T}$ac_cv_func_compile" >&6
19684 if test "$ac_cv_func_compile" = yes; then
19685 cf_regex_func=compile
19688 echo "$as_me:19688: checking for compile in -lgen" >&5
19689 echo $ECHO_N "checking for compile in -lgen... $ECHO_C" >&6
19690 if test "${ac_cv_lib_gen_compile+set}" = set; then
19691 echo $ECHO_N "(cached) $ECHO_C" >&6
19693 ac_check_lib_save_LIBS=$LIBS
19695 cat >"conftest.$ac_ext" <<_ACEOF
19696 #line 19696 "configure"
19697 #include "confdefs.h"
19699 /* Override any gcc2 internal prototype to avoid an error. */
19703 /* We use char because int might match the return type of a gcc2
19704 builtin and then its argument prototype would still apply. */
19714 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19715 if { (eval echo "$as_me:19715: \"$ac_link\"") >&5
19716 (eval $ac_link) 2>&5
19718 echo "$as_me:19718: \$? = $ac_status" >&5
19719 (exit "$ac_status"); } &&
19720 { ac_try='test -s "conftest$ac_exeext"'
19721 { (eval echo "$as_me:19721: \"$ac_try\"") >&5
19722 (eval $ac_try) 2>&5
19724 echo "$as_me:19724: \$? = $ac_status" >&5
19725 (exit "$ac_status"); }; }; then
19726 ac_cv_lib_gen_compile=yes
19728 echo "$as_me: failed program was:" >&5
19729 cat "conftest.$ac_ext" >&5
19730 ac_cv_lib_gen_compile=no
19732 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19733 LIBS=$ac_check_lib_save_LIBS
19735 echo "$as_me:19735: result: $ac_cv_lib_gen_compile" >&5
19736 echo "${ECHO_T}$ac_cv_lib_gen_compile" >&6
19737 if test "$ac_cv_lib_gen_compile" = yes; then
19739 cf_add_libs="$LIBS"
19742 for cf_add_1lib in -lgen; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
19743 # filter duplicates
19744 for cf_add_1lib in $cf_add_0lib; do
19745 for cf_add_2lib in $cf_add_libs; do
19746 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
19751 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
19753 LIBS="$cf_add_libs"
19755 cf_regex_func=compile
19762 if test "$cf_regex_func" = no ; then
19763 { echo "$as_me:19763: WARNING: cannot find regular expression library" >&5
19764 echo "$as_me: WARNING: cannot find regular expression library" >&2;}
19767 echo "$as_me:19767: checking for regular-expression headers" >&5
19768 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
19769 if test "${cf_cv_regex_hdrs+set}" = set; then
19770 echo $ECHO_N "(cached) $ECHO_C" >&6
19773 cf_cv_regex_hdrs=no
19774 case "$cf_regex_func" in
19776 for cf_regex_hdr in regexp.h regexpr.h
19778 cat >"conftest.$ac_ext" <<_ACEOF
19779 #line 19779 "configure"
19780 #include "confdefs.h"
19781 #include <$cf_regex_hdr>
19786 char *p = compile("", "", "", 0);
19787 int x = step("", "");
19795 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19796 if { (eval echo "$as_me:19796: \"$ac_link\"") >&5
19797 (eval $ac_link) 2>&5
19799 echo "$as_me:19799: \$? = $ac_status" >&5
19800 (exit "$ac_status"); } &&
19801 { ac_try='test -s "conftest$ac_exeext"'
19802 { (eval echo "$as_me:19802: \"$ac_try\"") >&5
19803 (eval $ac_try) 2>&5
19805 echo "$as_me:19805: \$? = $ac_status" >&5
19806 (exit "$ac_status"); }; }; then
19808 cf_cv_regex_hdrs=$cf_regex_hdr
19812 echo "$as_me: failed program was:" >&5
19813 cat "conftest.$ac_ext" >&5
19815 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19819 for cf_regex_hdr in regex.h
19821 cat >"conftest.$ac_ext" <<_ACEOF
19822 #line 19822 "configure"
19823 #include "confdefs.h"
19824 #include <sys/types.h>
19825 #include <$cf_regex_hdr>
19831 int x = regcomp(p, "", 0);
19832 int y = regexec(p, "", 0, 0, 0);
19841 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
19842 if { (eval echo "$as_me:19842: \"$ac_link\"") >&5
19843 (eval $ac_link) 2>&5
19845 echo "$as_me:19845: \$? = $ac_status" >&5
19846 (exit "$ac_status"); } &&
19847 { ac_try='test -s "conftest$ac_exeext"'
19848 { (eval echo "$as_me:19848: \"$ac_try\"") >&5
19849 (eval $ac_try) 2>&5
19851 echo "$as_me:19851: \$? = $ac_status" >&5
19852 (exit "$ac_status"); }; }; then
19854 cf_cv_regex_hdrs=$cf_regex_hdr
19858 echo "$as_me: failed program was:" >&5
19859 cat "conftest.$ac_ext" >&5
19861 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
19867 echo "$as_me:19867: result: $cf_cv_regex_hdrs" >&5
19868 echo "${ECHO_T}$cf_cv_regex_hdrs" >&6
19870 case "$cf_cv_regex_hdrs" in
19871 (no) { echo "$as_me:19871: WARNING: no regular expression header found" >&5
19872 echo "$as_me: WARNING: no regular expression header found" >&2;} ;;
19874 cat >>confdefs.h <<\EOF
19875 #define HAVE_REGEX_H_FUNCS 1
19879 cat >>confdefs.h <<\EOF
19880 #define HAVE_REGEXP_H_FUNCS 1
19884 cat >>confdefs.h <<\EOF
19885 #define HAVE_REGEXPR_H_FUNCS 1
19908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19909 echo "$as_me:19909: checking for $ac_header" >&5
19910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19912 echo $ECHO_N "(cached) $ECHO_C" >&6
19914 cat >"conftest.$ac_ext" <<_ACEOF
19915 #line 19915 "configure"
19916 #include "confdefs.h"
19917 #include <$ac_header>
19919 if { (eval echo "$as_me:19919: \"$ac_cpp "conftest.$ac_ext"\"") >&5
19920 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
19922 $EGREP -v '^ *\+' conftest.er1 >conftest.err
19924 cat conftest.err >&5
19925 echo "$as_me:19925: \$? = $ac_status" >&5
19926 (exit "$ac_status"); } >/dev/null; then
19927 if test -s conftest.err; then
19928 ac_cpp_err=$ac_c_preproc_warn_flag
19935 if test -z "$ac_cpp_err"; then
19936 eval "$as_ac_Header=yes"
19938 echo "$as_me: failed program was:" >&5
19939 cat "conftest.$ac_ext" >&5
19940 eval "$as_ac_Header=no"
19942 rm -f conftest.err "conftest.$ac_ext"
19944 echo "$as_me:19944: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
19945 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
19946 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
19947 cat >>confdefs.h <<EOF
19948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19954 for ac_header in unistd.h getopt.h
19956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19957 echo "$as_me:19957: checking for $ac_header" >&5
19958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19960 echo $ECHO_N "(cached) $ECHO_C" >&6
19962 cat >"conftest.$ac_ext" <<_ACEOF
19963 #line 19963 "configure"
19964 #include "confdefs.h"
19965 #include <$ac_header>
19967 if { (eval echo "$as_me:19967: \"$ac_cpp "conftest.$ac_ext"\"") >&5
19968 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
19970 $EGREP -v '^ *\+' conftest.er1 >conftest.err
19972 cat conftest.err >&5
19973 echo "$as_me:19973: \$? = $ac_status" >&5
19974 (exit "$ac_status"); } >/dev/null; then
19975 if test -s conftest.err; then
19976 ac_cpp_err=$ac_c_preproc_warn_flag
19983 if test -z "$ac_cpp_err"; then
19984 eval "$as_ac_Header=yes"
19986 echo "$as_me: failed program was:" >&5
19987 cat "conftest.$ac_ext" >&5
19988 eval "$as_ac_Header=no"
19990 rm -f conftest.err "conftest.$ac_ext"
19992 echo "$as_me:19992: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
19993 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
19994 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
19995 cat >>confdefs.h <<EOF
19996 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20002 echo "$as_me:20002: checking for header declaring getopt variables" >&5
20003 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
20004 if test "${cf_cv_getopt_header+set}" = set; then
20005 echo $ECHO_N "(cached) $ECHO_C" >&6
20008 cf_cv_getopt_header=none
20009 for cf_header in stdio.h stdlib.h unistd.h getopt.h
20011 cat >"conftest.$ac_ext" <<_ACEOF
20012 #line 20012 "configure"
20013 #include "confdefs.h"
20015 #include <$cf_header>
20019 int x = optind; char *y = optarg; (void)x; (void)y
20024 rm -f "conftest.$ac_objext"
20025 if { (eval echo "$as_me:20025: \"$ac_compile\"") >&5
20026 (eval $ac_compile) 2>&5
20028 echo "$as_me:20028: \$? = $ac_status" >&5
20029 (exit "$ac_status"); } &&
20030 { ac_try='test -s "conftest.$ac_objext"'
20031 { (eval echo "$as_me:20031: \"$ac_try\"") >&5
20032 (eval $ac_try) 2>&5
20034 echo "$as_me:20034: \$? = $ac_status" >&5
20035 (exit "$ac_status"); }; }; then
20036 cf_cv_getopt_header=$cf_header
20039 echo "$as_me: failed program was:" >&5
20040 cat "conftest.$ac_ext" >&5
20042 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20046 echo "$as_me:20046: result: $cf_cv_getopt_header" >&5
20047 echo "${ECHO_T}$cf_cv_getopt_header" >&6
20048 if test "$cf_cv_getopt_header" != none ; then
20050 cat >>confdefs.h <<\EOF
20051 #define HAVE_GETOPT_HEADER 1
20055 if test "$cf_cv_getopt_header" = getopt.h ; then
20057 cat >>confdefs.h <<\EOF
20058 #define NEED_GETOPT_H 1
20063 echo "$as_me:20063: checking if external environ is declared" >&5
20064 echo $ECHO_N "checking if external environ is declared... $ECHO_C" >&6
20065 if test "${cf_cv_dcl_environ+set}" = set; then
20066 echo $ECHO_N "(cached) $ECHO_C" >&6
20069 cat >"conftest.$ac_ext" <<_ACEOF
20070 #line 20070 "configure"
20071 #include "confdefs.h"
20073 #ifdef HAVE_STDLIB_H
20074 #include <stdlib.h>
20076 #include <unistd.h>
20080 int x = (int) environ
20085 rm -f "conftest.$ac_objext"
20086 if { (eval echo "$as_me:20086: \"$ac_compile\"") >&5
20087 (eval $ac_compile) 2>&5
20089 echo "$as_me:20089: \$? = $ac_status" >&5
20090 (exit "$ac_status"); } &&
20091 { ac_try='test -s "conftest.$ac_objext"'
20092 { (eval echo "$as_me:20092: \"$ac_try\"") >&5
20093 (eval $ac_try) 2>&5
20095 echo "$as_me:20095: \$? = $ac_status" >&5
20096 (exit "$ac_status"); }; }; then
20097 cf_cv_dcl_environ=yes
20099 echo "$as_me: failed program was:" >&5
20100 cat "conftest.$ac_ext" >&5
20101 cf_cv_dcl_environ=no
20103 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20106 echo "$as_me:20106: result: $cf_cv_dcl_environ" >&5
20107 echo "${ECHO_T}$cf_cv_dcl_environ" >&6
20109 if test "$cf_cv_dcl_environ" = no ; then
20111 cf_result=`echo "decl_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20113 cat >>confdefs.h <<EOF
20114 #define $cf_result 1
20119 # It's possible (for near-UNIX clones) that the data doesn't exist
20121 echo "$as_me:20121: checking if external environ exists" >&5
20122 echo $ECHO_N "checking if external environ exists... $ECHO_C" >&6
20123 if test "${cf_cv_have_environ+set}" = set; then
20124 echo $ECHO_N "(cached) $ECHO_C" >&6
20127 cat >"conftest.$ac_ext" <<_ACEOF
20128 #line 20128 "configure"
20129 #include "confdefs.h"
20132 extern int environ;
20142 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20143 if { (eval echo "$as_me:20143: \"$ac_link\"") >&5
20144 (eval $ac_link) 2>&5
20146 echo "$as_me:20146: \$? = $ac_status" >&5
20147 (exit "$ac_status"); } &&
20148 { ac_try='test -s "conftest$ac_exeext"'
20149 { (eval echo "$as_me:20149: \"$ac_try\"") >&5
20150 (eval $ac_try) 2>&5
20152 echo "$as_me:20152: \$? = $ac_status" >&5
20153 (exit "$ac_status"); }; }; then
20154 cf_cv_have_environ=yes
20156 echo "$as_me: failed program was:" >&5
20157 cat "conftest.$ac_ext" >&5
20158 cf_cv_have_environ=no
20160 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20163 echo "$as_me:20163: result: $cf_cv_have_environ" >&5
20164 echo "${ECHO_T}$cf_cv_have_environ" >&6
20166 if test "$cf_cv_have_environ" = yes ; then
20168 cf_result=`echo "have_environ" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20170 cat >>confdefs.h <<EOF
20171 #define $cf_result 1
20176 echo "$as_me:20176: checking for getenv" >&5
20177 echo $ECHO_N "checking for getenv... $ECHO_C" >&6
20178 if test "${ac_cv_func_getenv+set}" = set; then
20179 echo $ECHO_N "(cached) $ECHO_C" >&6
20181 cat >"conftest.$ac_ext" <<_ACEOF
20182 #line 20182 "configure"
20183 #include "confdefs.h"
20184 #define getenv autoconf_temporary
20185 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20192 /* We use char because int might match the return type of a gcc2
20193 builtin and then its argument prototype would still apply. */
20194 char getenv (void);
20200 /* The GNU C library defines stubs for functions which it implements
20201 to always fail with ENOSYS. Some functions are actually named
20202 something starting with __ and the normal name is an alias. */
20203 #if defined (__stub_getenv) || defined (__stub___getenv)
20204 #error found stub for getenv
20212 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20213 if { (eval echo "$as_me:20213: \"$ac_link\"") >&5
20214 (eval $ac_link) 2>&5
20216 echo "$as_me:20216: \$? = $ac_status" >&5
20217 (exit "$ac_status"); } &&
20218 { ac_try='test -s "conftest$ac_exeext"'
20219 { (eval echo "$as_me:20219: \"$ac_try\"") >&5
20220 (eval $ac_try) 2>&5
20222 echo "$as_me:20222: \$? = $ac_status" >&5
20223 (exit "$ac_status"); }; }; then
20224 ac_cv_func_getenv=yes
20226 echo "$as_me: failed program was:" >&5
20227 cat "conftest.$ac_ext" >&5
20228 ac_cv_func_getenv=no
20230 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20232 echo "$as_me:20232: result: $ac_cv_func_getenv" >&5
20233 echo "${ECHO_T}$ac_cv_func_getenv" >&6
20235 for ac_func in putenv setenv strdup
20237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20238 echo "$as_me:20238: checking for $ac_func" >&5
20239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20240 if eval "test \"\${$as_ac_var+set}\" = set"; then
20241 echo $ECHO_N "(cached) $ECHO_C" >&6
20243 cat >"conftest.$ac_ext" <<_ACEOF
20244 #line 20244 "configure"
20245 #include "confdefs.h"
20246 #define $ac_func autoconf_temporary
20247 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
20254 /* We use char because int might match the return type of a gcc2
20255 builtin and then its argument prototype would still apply. */
20256 char $ac_func (void);
20262 /* The GNU C library defines stubs for functions which it implements
20263 to always fail with ENOSYS. Some functions are actually named
20264 something starting with __ and the normal name is an alias. */
20265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20266 #error found stub for $ac_func
20269 return $ac_func ();
20274 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
20275 if { (eval echo "$as_me:20275: \"$ac_link\"") >&5
20276 (eval $ac_link) 2>&5
20278 echo "$as_me:20278: \$? = $ac_status" >&5
20279 (exit "$ac_status"); } &&
20280 { ac_try='test -s "conftest$ac_exeext"'
20281 { (eval echo "$as_me:20281: \"$ac_try\"") >&5
20282 (eval $ac_try) 2>&5
20284 echo "$as_me:20284: \$? = $ac_status" >&5
20285 (exit "$ac_status"); }; }; then
20286 eval "$as_ac_var=yes"
20288 echo "$as_me: failed program was:" >&5
20289 cat "conftest.$ac_ext" >&5
20290 eval "$as_ac_var=no"
20292 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
20294 echo "$as_me:20294: result: `eval echo '${'"$as_ac_var"'}'`" >&5
20295 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
20296 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
20297 cat >>confdefs.h <<EOF
20298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20304 echo "$as_me:20304: checking if getenv returns consistent values" >&5
20305 echo $ECHO_N "checking if getenv returns consistent values... $ECHO_C" >&6
20306 if test "${cf_cv_consistent_getenv+set}" = set; then
20307 echo $ECHO_N "(cached) $ECHO_C" >&6
20310 if test "$cross_compiling" = yes; then
20311 cf_cv_consistent_getenv=unknown
20313 cat >"conftest.$ac_ext" <<_ACEOF
20314 #line 20314 "configure"
20315 #include "confdefs.h"
20317 #include <stdlib.h>
20318 #include <unistd.h>
20320 #include <string.h>
20321 #include <sys/types.h>
20323 #if defined(HAVE_ENVIRON) && defined(DECL_ENVIRON) && !defined(environ)
20324 extern char **environ; /* POSIX, but some systems are not... */
20327 #if defined(HAVE_STRDUP)
20328 #define str_alloc(s) strdup(s)
20330 #define str_alloc(s) strcpy(malloc(strlen(s) + 1, s))
20333 static void set_value(const char *name, const char *value)
20335 #if defined(HAVE_SETENV)
20336 setenv(name, value, 1);
20337 #elif defined(HAVE_PUTENV)
20339 sprintf(buffer, "%s=%s", name, value);
20340 putenv(str_alloc(buffer));
20342 #error neither putenv/setenv found
20348 size_t numenv, limit, j;
20353 for (numenv = 0; environ[numenv]; ++numenv) ;
20354 limit = numenv + 10;
20355 mynames = (char **) calloc(limit + 1, sizeof(char *));
20356 myvalues = (char **) calloc(limit + 1, sizeof(char *));
20357 mypointer = (char **) calloc(limit + 1, sizeof(char *));
20358 #if defined(HAVE_ENVIRON)
20359 for (j = 0; environ[j]; ++j) {
20360 mynames[j] = str_alloc(environ[j]);
20361 equals = strchr(mynames[j], '=');
20364 myvalues[j] = str_alloc(equals);
20366 myvalues[j] = str_alloc("");
20370 for (j = numenv; j < limit; ++j) {
20378 sprintf(name, "TERM%lu", (unsigned long) k);
20379 for (jk = 0; jk < j; ++jk) {
20380 if (!strcmp(name, mynames[jk])) {
20387 sprintf(value, "%lu:%p", (unsigned long) k, &mynames[j]);
20388 set_value(name, value);
20389 mynames[j] = str_alloc(name);
20390 myvalues[j] = str_alloc(value);
20392 for (pass = 0; pass < 3; ++pass) {
20393 for (j = 0; j < limit; ++j) {
20394 char *value = getenv(mynames[j]);
20397 fprintf(stderr, "getenv returned null for %s\\n", mynames[j]);
20398 ${cf_cv_main_return:-return}(1);
20399 } else if (value != mypointer[j]) {
20400 fprintf(stderr, "getenv returned different pointer for %s\\n", mynames[j]);
20401 ${cf_cv_main_return:-return}(1);
20402 } else if (strcmp(value, myvalues[j])) {
20403 fprintf(stderr, "getenv returned different value for %s\\n", mynames[j]);
20404 ${cf_cv_main_return:-return}(1);
20408 mypointer[j] = value;
20409 for (k = 0; k < j; ++k) {
20410 if (mypointer[j] == mypointer[k]) {
20411 fprintf(stderr, "getenv returned same pointer for %s and %s\\n", mynames[j], mynames[k]);
20412 ${cf_cv_main_return:-return}(1);
20418 ${cf_cv_main_return:-return}(0);
20422 rm -f "conftest$ac_exeext"
20423 if { (eval echo "$as_me:20423: \"$ac_link\"") >&5
20424 (eval $ac_link) 2>&5
20426 echo "$as_me:20426: \$? = $ac_status" >&5
20427 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
20428 { (eval echo "$as_me:20428: \"$ac_try\"") >&5
20429 (eval $ac_try) 2>&5
20431 echo "$as_me:20431: \$? = $ac_status" >&5
20432 (exit "$ac_status"); }; }; then
20433 cf_cv_consistent_getenv=yes
20435 echo "$as_me: program exited with status $ac_status" >&5
20436 echo "$as_me: failed program was:" >&5
20437 cat "conftest.$ac_ext" >&5
20438 cf_cv_consistent_getenv=no
20440 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
20444 echo "$as_me:20444: result: $cf_cv_consistent_getenv" >&5
20445 echo "${ECHO_T}$cf_cv_consistent_getenv" >&6
20447 if test "x$cf_cv_consistent_getenv" = xno
20450 cat >>confdefs.h <<\EOF
20451 #define HAVE_CONSISTENT_GETENV 1
20456 if test "x$cf_cv_consistent_getenv" = xno && \
20457 test "x$cf_with_trace" = xyes
20459 { echo "$as_me:20459: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&5
20460 echo "$as_me: WARNING: The NCURSES_TRACE environment variable is not supported with this configuration" >&2;}
20463 echo "$as_me:20463: checking if sys/time.h works with sys/select.h" >&5
20464 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
20465 if test "${cf_cv_sys_time_select+set}" = set; then
20466 echo $ECHO_N "(cached) $ECHO_C" >&6
20469 cat >"conftest.$ac_ext" <<_ACEOF
20470 #line 20470 "configure"
20471 #include "confdefs.h"
20473 #include <sys/types.h>
20474 #ifdef HAVE_SYS_TIME_H
20475 #include <sys/time.h>
20477 #ifdef HAVE_SYS_SELECT_H
20478 #include <sys/select.h>
20489 rm -f "conftest.$ac_objext"
20490 if { (eval echo "$as_me:20490: \"$ac_compile\"") >&5
20491 (eval $ac_compile) 2>&5
20493 echo "$as_me:20493: \$? = $ac_status" >&5
20494 (exit "$ac_status"); } &&
20495 { ac_try='test -s "conftest.$ac_objext"'
20496 { (eval echo "$as_me:20496: \"$ac_try\"") >&5
20497 (eval $ac_try) 2>&5
20499 echo "$as_me:20499: \$? = $ac_status" >&5
20500 (exit "$ac_status"); }; }; then
20501 cf_cv_sys_time_select=yes
20503 echo "$as_me: failed program was:" >&5
20504 cat "conftest.$ac_ext" >&5
20505 cf_cv_sys_time_select=no
20507 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20511 echo "$as_me:20511: result: $cf_cv_sys_time_select" >&5
20512 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
20513 test "$cf_cv_sys_time_select" = yes &&
20514 cat >>confdefs.h <<\EOF
20515 #define HAVE_SYS_TIME_SELECT 1
20518 ### checks for compiler characteristics
20520 ac_cpp='$CPP $CPPFLAGS'
20521 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
20522 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
20523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20524 ac_main_return="return"
20526 echo "$as_me:20526: checking for an ANSI C-conforming const" >&5
20527 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20528 if test "${ac_cv_c_const+set}" = set; then
20529 echo $ECHO_N "(cached) $ECHO_C" >&6
20531 cat >"conftest.$ac_ext" <<_ACEOF
20532 #line 20532 "configure"
20533 #include "confdefs.h"
20538 /* FIXME: Include the comments suggested by Paul. */
20539 #ifndef __cplusplus
20540 /* Ultrix mips cc rejects this. */
20541 typedef int charset[2];
20543 /* SunOS 4.1.1 cc rejects this. */
20544 char const *const *ccp;
20546 /* NEC SVR4.0.2 mips cc rejects this. */
20547 struct point {int x, y;};
20548 static struct point const zero = {0,0};
20549 /* AIX XL C 1.02.0.0 rejects this.
20550 It does not let you subtract one const X* pointer from another in
20551 an arm of an if-expression whose if-part is not a constant
20553 const char *g = "string";
20554 ccp = &g + (g ? g-g : 0);
20555 /* HPUX 7.0 cc rejects these. */
20558 ccp = (char const *const *) p;
20559 { /* SCO 3.2v4 cc rejects this. */
20561 char const *s = 0 ? (char *) 0 : (char const *) 0;
20565 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20566 int x[] = {25, 17};
20567 const int *foo = &x[0];
20570 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20571 typedef const int *iptr;
20575 { /* AIX XL C 1.02.0.0 rejects this saying
20576 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20577 struct s { int j; const int *ap[3]; };
20578 struct s *b; b->j = 5;
20580 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20581 const int foo = 10;
20589 rm -f "conftest.$ac_objext"
20590 if { (eval echo "$as_me:20590: \"$ac_compile\"") >&5
20591 (eval $ac_compile) 2>&5
20593 echo "$as_me:20593: \$? = $ac_status" >&5
20594 (exit "$ac_status"); } &&
20595 { ac_try='test -s "conftest.$ac_objext"'
20596 { (eval echo "$as_me:20596: \"$ac_try\"") >&5
20597 (eval $ac_try) 2>&5
20599 echo "$as_me:20599: \$? = $ac_status" >&5
20600 (exit "$ac_status"); }; }; then
20603 echo "$as_me: failed program was:" >&5
20604 cat "conftest.$ac_ext" >&5
20607 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20609 echo "$as_me:20609: result: $ac_cv_c_const" >&5
20610 echo "${ECHO_T}$ac_cv_c_const" >&6
20611 if test $ac_cv_c_const = no; then
20613 cat >>confdefs.h <<\EOF
20619 echo "$as_me:20619: checking for inline" >&5
20620 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20621 if test "${ac_cv_c_inline+set}" = set; then
20622 echo $ECHO_N "(cached) $ECHO_C" >&6
20625 for ac_kw in inline __inline__ __inline; do
20626 cat >"conftest.$ac_ext" <<_ACEOF
20627 #line 20627 "configure"
20628 #include "confdefs.h"
20629 #ifndef __cplusplus
20630 static $ac_kw int static_foo () {return 0; }
20631 $ac_kw int foo () {return 0; }
20635 rm -f "conftest.$ac_objext"
20636 if { (eval echo "$as_me:20636: \"$ac_compile\"") >&5
20637 (eval $ac_compile) 2>&5
20639 echo "$as_me:20639: \$? = $ac_status" >&5
20640 (exit "$ac_status"); } &&
20641 { ac_try='test -s "conftest.$ac_objext"'
20642 { (eval echo "$as_me:20642: \"$ac_try\"") >&5
20643 (eval $ac_try) 2>&5
20645 echo "$as_me:20645: \$? = $ac_status" >&5
20646 (exit "$ac_status"); }; }; then
20647 ac_cv_c_inline=$ac_kw; break
20649 echo "$as_me: failed program was:" >&5
20650 cat "conftest.$ac_ext" >&5
20652 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20656 echo "$as_me:20656: result: $ac_cv_c_inline" >&5
20657 echo "${ECHO_T}$ac_cv_c_inline" >&6
20658 case $ac_cv_c_inline in
20661 cat >>confdefs.h <<\EOF
20665 *) cat >>confdefs.h <<EOF
20666 #define inline $ac_cv_c_inline
20672 if test "$ac_cv_c_inline" != no ; then
20673 NCURSES_INLINE=inline
20674 if test "$INTEL_COMPILER" = yes
20677 elif test "$CLANG_COMPILER" = yes
20680 elif test "$GCC" = yes
20682 echo "$as_me:20682: checking if $CC supports options to tune inlining" >&5
20683 echo $ECHO_N "checking if $CC supports options to tune inlining... $ECHO_C" >&6
20684 if test "${cf_cv_gcc_inline+set}" = set; then
20685 echo $ECHO_N "(cached) $ECHO_C" >&6
20688 cf_save_CFLAGS=$CFLAGS
20689 CFLAGS="$CFLAGS --param max-inline-insns-single=1200"
20690 cat >"conftest.$ac_ext" <<_ACEOF
20691 #line 20691 "configure"
20692 #include "confdefs.h"
20693 inline int foo(void) { return 1; }
20697 ${cf_cv_main_return:-return} foo()
20702 rm -f "conftest.$ac_objext"
20703 if { (eval echo "$as_me:20703: \"$ac_compile\"") >&5
20704 (eval $ac_compile) 2>&5
20706 echo "$as_me:20706: \$? = $ac_status" >&5
20707 (exit "$ac_status"); } &&
20708 { ac_try='test -s "conftest.$ac_objext"'
20709 { (eval echo "$as_me:20709: \"$ac_try\"") >&5
20710 (eval $ac_try) 2>&5
20712 echo "$as_me:20712: \$? = $ac_status" >&5
20713 (exit "$ac_status"); }; }; then
20714 cf_cv_gcc_inline=yes
20716 echo "$as_me: failed program was:" >&5
20717 cat "conftest.$ac_ext" >&5
20718 cf_cv_gcc_inline=no
20720 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20721 CFLAGS=$cf_save_CFLAGS
20724 echo "$as_me:20724: result: $cf_cv_gcc_inline" >&5
20725 echo "${ECHO_T}$cf_cv_gcc_inline" >&6
20726 if test "$cf_cv_gcc_inline" = yes ; then
20731 cf_new_extra_cppflags=
20733 for cf_add_cflags in --param max-inline-insns-single=1200
20735 case "$cf_fix_cppflags" in
20737 case "$cf_add_cflags" in
20738 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
20739 case "$cf_add_cflags" in
20741 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
20743 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20744 && test -z "${cf_tst_cflags}" \
20745 && cf_fix_cppflags=yes
20747 if test "$cf_fix_cppflags" = yes ; then
20749 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20750 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20753 elif test "${cf_tst_cflags}" = "\"'" ; then
20755 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20756 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20762 case "$CPPFLAGS" in
20766 case "$cf_add_cflags" in
20768 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
20770 CPPFLAGS=`echo "$CPPFLAGS" | \
20771 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
20772 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
20777 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
20778 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
20785 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
20786 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
20793 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20794 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20796 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
20798 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20799 && test -z "${cf_tst_cflags}" \
20800 && cf_fix_cppflags=no
20805 if test -n "$cf_new_cflags" ; then
20807 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
20808 CFLAGS="${CFLAGS}$cf_new_cflags"
20812 if test -n "$cf_new_cppflags" ; then
20814 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
20815 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
20819 if test -n "$cf_new_extra_cppflags" ; then
20821 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
20822 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
20830 echo "$as_me:20830: checking for signal global datatype" >&5
20831 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
20832 if test "${cf_cv_sig_atomic_t+set}" = set; then
20833 echo $ECHO_N "(cached) $ECHO_C" >&6
20837 "volatile sig_atomic_t" \
20841 cat >"conftest.$ac_ext" <<_ACEOF
20842 #line 20842 "configure"
20843 #include "confdefs.h"
20845 #include <sys/types.h>
20846 #include <signal.h>
20851 static void handler(int sig)
20859 signal(SIGINT, handler);
20865 rm -f "conftest.$ac_objext"
20866 if { (eval echo "$as_me:20866: \"$ac_compile\"") >&5
20867 (eval $ac_compile) 2>&5
20869 echo "$as_me:20869: \$? = $ac_status" >&5
20870 (exit "$ac_status"); } &&
20871 { ac_try='test -s "conftest.$ac_objext"'
20872 { (eval echo "$as_me:20872: \"$ac_try\"") >&5
20873 (eval $ac_try) 2>&5
20875 echo "$as_me:20875: \$? = $ac_status" >&5
20876 (exit "$ac_status"); }; }; then
20877 cf_cv_sig_atomic_t=$cf_type
20879 echo "$as_me: failed program was:" >&5
20880 cat "conftest.$ac_ext" >&5
20881 cf_cv_sig_atomic_t=no
20883 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
20884 test "$cf_cv_sig_atomic_t" != no && break
20889 echo "$as_me:20889: result: $cf_cv_sig_atomic_t" >&5
20890 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
20891 test "$cf_cv_sig_atomic_t" != no &&
20892 cat >>confdefs.h <<EOF
20893 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
20896 if test "$NCURSES_CHTYPE" = auto ; then
20898 echo "$as_me:20898: checking for type of chtype" >&5
20899 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
20900 if test "${cf_cv_typeof_chtype+set}" = set; then
20901 echo $ECHO_N "(cached) $ECHO_C" >&6
20904 if test "$cross_compiling" = yes; then
20905 cf_cv_typeof_chtype=long
20907 cat >"conftest.$ac_ext" <<_ACEOF
20908 #line 20908 "configure"
20909 #include "confdefs.h"
20911 #define WANT_BITS 31
20915 FILE *fp = fopen("cf_test.out", "w");
20917 char *result = "long";
20918 if (sizeof(unsigned long) > sizeof(unsigned int)) {
20921 for (n = 0; n < WANT_BITS; n++) {
20924 if (y != 1 || x == 0) {
20930 * If x is nonzero, an int is big enough for the bits
20933 result = (x != 0) ? "int" : "long";
20938 ${cf_cv_main_return:-return}(0);
20942 rm -f "conftest$ac_exeext"
20943 if { (eval echo "$as_me:20943: \"$ac_link\"") >&5
20944 (eval $ac_link) 2>&5
20946 echo "$as_me:20946: \$? = $ac_status" >&5
20947 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
20948 { (eval echo "$as_me:20948: \"$ac_try\"") >&5
20949 (eval $ac_try) 2>&5
20951 echo "$as_me:20951: \$? = $ac_status" >&5
20952 (exit "$ac_status"); }; }; then
20953 cf_cv_typeof_chtype=`cat cf_test.out`
20955 echo "$as_me: program exited with status $ac_status" >&5
20956 echo "$as_me: failed program was:" >&5
20957 cat "conftest.$ac_ext" >&5
20958 cf_cv_typeof_chtype=long
20960 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
20966 echo "$as_me:20966: result: $cf_cv_typeof_chtype" >&5
20967 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
20969 cat >>confdefs.h <<EOF
20970 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
20974 cf_cv_typeof_chtype=$NCURSES_CHTYPE
20976 test "$cf_cv_typeof_chtype" = unsigned && cf_cv_typeof_chtype=""
20978 echo "$as_me:20978: checking if unsigned literals are legal" >&5
20979 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
20980 if test "${cf_cv_unsigned_literals+set}" = set; then
20981 echo $ECHO_N "(cached) $ECHO_C" >&6
20984 cat >"conftest.$ac_ext" <<_ACEOF
20985 #line 20985 "configure"
20986 #include "confdefs.h"
20991 long x = 1L + 1UL + 1U + 1
20996 rm -f "conftest.$ac_objext"
20997 if { (eval echo "$as_me:20997: \"$ac_compile\"") >&5
20998 (eval $ac_compile) 2>&5
21000 echo "$as_me:21000: \$? = $ac_status" >&5
21001 (exit "$ac_status"); } &&
21002 { ac_try='test -s "conftest.$ac_objext"'
21003 { (eval echo "$as_me:21003: \"$ac_try\"") >&5
21004 (eval $ac_try) 2>&5
21006 echo "$as_me:21006: \$? = $ac_status" >&5
21007 (exit "$ac_status"); }; }; then
21008 cf_cv_unsigned_literals=yes
21010 echo "$as_me: failed program was:" >&5
21011 cat "conftest.$ac_ext" >&5
21012 cf_cv_unsigned_literals=no
21014 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21018 echo "$as_me:21018: result: $cf_cv_unsigned_literals" >&5
21019 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
21022 test ".$cf_cv_unsigned_literals" = .yes && cf_cv_1UL="${cf_cv_1UL}U"
21023 test ".$cf_cv_typeof_chtype" = .long && cf_cv_1UL="${cf_cv_1UL}L"
21025 if test "$NCURSES_MMASK_T" = auto ; then
21026 cf_cv_typeof_mmask_t=long
21028 cf_cv_typeof_mmask_t=$NCURSES_MMASK_T
21030 test "$cf_cv_typeof_mmask_t" = unsigned && cf_cv_typeof_mmask_t=""
21032 ### Checks for external-data
21034 echo "$as_me:21034: checking if external errno is declared" >&5
21035 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
21036 if test "${cf_cv_dcl_errno+set}" = set; then
21037 echo $ECHO_N "(cached) $ECHO_C" >&6
21040 cat >"conftest.$ac_ext" <<_ACEOF
21041 #line 21041 "configure"
21042 #include "confdefs.h"
21044 #ifdef HAVE_STDLIB_H
21045 #include <stdlib.h>
21048 #include <sys/types.h>
21053 int x = (int) errno; (void)x
21058 rm -f "conftest.$ac_objext"
21059 if { (eval echo "$as_me:21059: \"$ac_compile\"") >&5
21060 (eval $ac_compile) 2>&5
21062 echo "$as_me:21062: \$? = $ac_status" >&5
21063 (exit "$ac_status"); } &&
21064 { ac_try='test -s "conftest.$ac_objext"'
21065 { (eval echo "$as_me:21065: \"$ac_try\"") >&5
21066 (eval $ac_try) 2>&5
21068 echo "$as_me:21068: \$? = $ac_status" >&5
21069 (exit "$ac_status"); }; }; then
21070 cf_cv_dcl_errno=yes
21072 echo "$as_me: failed program was:" >&5
21073 cat "conftest.$ac_ext" >&5
21076 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21079 echo "$as_me:21079: result: $cf_cv_dcl_errno" >&5
21080 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
21082 if test "$cf_cv_dcl_errno" = no ; then
21084 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
21086 cat >>confdefs.h <<EOF
21087 #define $cf_result 1
21092 # It's possible (for near-UNIX clones) that the data doesn't exist
21094 echo "$as_me:21094: checking if external errno exists" >&5
21095 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
21096 if test "${cf_cv_have_errno+set}" = set; then
21097 echo $ECHO_N "(cached) $ECHO_C" >&6
21100 cat >"conftest.$ac_ext" <<_ACEOF
21101 #line 21101 "configure"
21102 #include "confdefs.h"
21115 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21116 if { (eval echo "$as_me:21116: \"$ac_link\"") >&5
21117 (eval $ac_link) 2>&5
21119 echo "$as_me:21119: \$? = $ac_status" >&5
21120 (exit "$ac_status"); } &&
21121 { ac_try='test -s "conftest$ac_exeext"'
21122 { (eval echo "$as_me:21122: \"$ac_try\"") >&5
21123 (eval $ac_try) 2>&5
21125 echo "$as_me:21125: \$? = $ac_status" >&5
21126 (exit "$ac_status"); }; }; then
21127 cf_cv_have_errno=yes
21129 echo "$as_me: failed program was:" >&5
21130 cat "conftest.$ac_ext" >&5
21131 cf_cv_have_errno=no
21133 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21136 echo "$as_me:21136: result: $cf_cv_have_errno" >&5
21137 echo "${ECHO_T}$cf_cv_have_errno" >&6
21139 if test "$cf_cv_have_errno" = yes ; then
21141 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
21143 cat >>confdefs.h <<EOF
21144 #define $cf_result 1
21149 echo "$as_me:21149: checking if data-only library module links" >&5
21150 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
21151 if test "${cf_cv_link_dataonly+set}" = set; then
21152 echo $ECHO_N "(cached) $ECHO_C" >&6
21156 cat >conftest.$ac_ext <<EOF
21157 #line 21157 "configure"
21158 int testdata[3] = { 123, 456, 789 };
21160 if { (eval echo "$as_me:21160: \"$ac_compile\"") >&5
21161 (eval $ac_compile) 2>&5
21163 echo "$as_me:21163: \$? = $ac_status" >&5
21164 (exit "$ac_status"); } ; then
21165 mv conftest.o data.o && \
21166 ( $AR $ARFLAGS conftest.a data.o ) 2>&5 1>/dev/null
21168 rm -f conftest.$ac_ext data.o
21169 cat >conftest.$ac_ext <<EOF
21170 #line 21170 "configure"
21174 ${cf_cv_main_return:-return}(1); /* I'm told this linker is broken */
21176 extern int testdata[3];
21177 return testdata[0] == 123
21178 && testdata[1] == 456
21179 && testdata[2] == 789;
21183 if { (eval echo "$as_me:21183: \"$ac_compile\"") >&5
21184 (eval $ac_compile) 2>&5
21186 echo "$as_me:21186: \$? = $ac_status" >&5
21187 (exit "$ac_status"); }; then
21188 mv conftest.o func.o && \
21189 ( $AR $ARFLAGS conftest.a func.o ) 2>&5 1>/dev/null
21191 rm -f conftest.$ac_ext func.o
21192 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
21193 cf_saveLIBS="$LIBS"
21194 LIBS="conftest.a $LIBS"
21195 if test "$cross_compiling" = yes; then
21196 cf_cv_link_dataonly=unknown
21198 cat >"conftest.$ac_ext" <<_ACEOF
21199 #line 21199 "configure"
21200 #include "confdefs.h"
21204 extern int testfunc();
21205 ${cf_cv_main_return:-return} (!testfunc());
21209 rm -f "conftest$ac_exeext"
21210 if { (eval echo "$as_me:21210: \"$ac_link\"") >&5
21211 (eval $ac_link) 2>&5
21213 echo "$as_me:21213: \$? = $ac_status" >&5
21214 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
21215 { (eval echo "$as_me:21215: \"$ac_try\"") >&5
21216 (eval $ac_try) 2>&5
21218 echo "$as_me:21218: \$? = $ac_status" >&5
21219 (exit "$ac_status"); }; }; then
21220 cf_cv_link_dataonly=yes
21222 echo "$as_me: program exited with status $ac_status" >&5
21223 echo "$as_me: failed program was:" >&5
21224 cat "conftest.$ac_ext" >&5
21225 cf_cv_link_dataonly=no
21227 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
21229 LIBS="$cf_saveLIBS"
21233 echo "$as_me:21233: result: $cf_cv_link_dataonly" >&5
21234 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
21236 if test "$cf_cv_link_dataonly" = no ; then
21238 cat >>confdefs.h <<\EOF
21239 #define BROKEN_LINKER 1
21245 ### Checks for library functions.
21276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21277 echo "$as_me:21277: checking for $ac_func" >&5
21278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21279 if eval "test \"\${$as_ac_var+set}\" = set"; then
21280 echo $ECHO_N "(cached) $ECHO_C" >&6
21282 cat >"conftest.$ac_ext" <<_ACEOF
21283 #line 21283 "configure"
21284 #include "confdefs.h"
21285 #define $ac_func autoconf_temporary
21286 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
21293 /* We use char because int might match the return type of a gcc2
21294 builtin and then its argument prototype would still apply. */
21295 char $ac_func (void);
21301 /* The GNU C library defines stubs for functions which it implements
21302 to always fail with ENOSYS. Some functions are actually named
21303 something starting with __ and the normal name is an alias. */
21304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21305 #error found stub for $ac_func
21308 return $ac_func ();
21313 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21314 if { (eval echo "$as_me:21314: \"$ac_link\"") >&5
21315 (eval $ac_link) 2>&5
21317 echo "$as_me:21317: \$? = $ac_status" >&5
21318 (exit "$ac_status"); } &&
21319 { ac_try='test -s "conftest$ac_exeext"'
21320 { (eval echo "$as_me:21320: \"$ac_try\"") >&5
21321 (eval $ac_try) 2>&5
21323 echo "$as_me:21323: \$? = $ac_status" >&5
21324 (exit "$ac_status"); }; }; then
21325 eval "$as_ac_var=yes"
21327 echo "$as_me: failed program was:" >&5
21328 cat "conftest.$ac_ext" >&5
21329 eval "$as_ac_var=no"
21331 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21333 echo "$as_me:21333: result: `eval echo '${'"$as_ac_var"'}'`" >&5
21334 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
21335 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
21336 cat >>confdefs.h <<EOF
21337 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21343 if test "x$ac_cv_func_getopt" = xno && \
21344 test "x$cf_with_progs$cf_with_tests" != xnono; then
21345 { { echo "$as_me:21345: error: getopt is required for building programs" >&5
21346 echo "$as_me: error: getopt is required for building programs" >&2;}
21347 { (exit 1); exit 1; }; }
21350 if test "x$with_safe_sprintf" = xyes
21352 if test "x$ac_cv_func_vsnprintf" = xyes
21354 { echo "$as_me:21354: WARNING: will use vsnprintf instead of safe-sprintf option" >&5
21355 echo "$as_me: WARNING: will use vsnprintf instead of safe-sprintf option" >&2;}
21358 cat >>confdefs.h <<\EOF
21359 #define USE_SAFE_SPRINTF 1
21365 if test "x$with_getcap" = "xyes" ; then
21367 echo "$as_me:21367: checking for terminal-capability database functions" >&5
21368 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
21369 if test "${cf_cv_cgetent+set}" = set; then
21370 echo $ECHO_N "(cached) $ECHO_C" >&6
21373 cat >"conftest.$ac_ext" <<_ACEOF
21374 #line 21374 "configure"
21375 #include "confdefs.h"
21377 #include <stdlib.h>
21384 char *db_array = temp;
21385 cgetent(&buf, &db_array, "vt100");
21386 cgetcap(buf, "tc", '=');
21387 cgetmatch(buf, "tc");
21393 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21394 if { (eval echo "$as_me:21394: \"$ac_link\"") >&5
21395 (eval $ac_link) 2>&5
21397 echo "$as_me:21397: \$? = $ac_status" >&5
21398 (exit "$ac_status"); } &&
21399 { ac_try='test -s "conftest$ac_exeext"'
21400 { (eval echo "$as_me:21400: \"$ac_try\"") >&5
21401 (eval $ac_try) 2>&5
21403 echo "$as_me:21403: \$? = $ac_status" >&5
21404 (exit "$ac_status"); }; }; then
21407 echo "$as_me: failed program was:" >&5
21408 cat "conftest.$ac_ext" >&5
21411 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21414 echo "$as_me:21414: result: $cf_cv_cgetent" >&5
21415 echo "${ECHO_T}$cf_cv_cgetent" >&6
21417 if test "$cf_cv_cgetent" = yes
21420 cat >>confdefs.h <<\EOF
21421 #define HAVE_BSD_CGETENT 1
21424 echo "$as_me:21424: checking if cgetent uses const parameter" >&5
21425 echo $ECHO_N "checking if cgetent uses const parameter... $ECHO_C" >&6
21426 if test "${cf_cv_cgetent_const+set}" = set; then
21427 echo $ECHO_N "(cached) $ECHO_C" >&6
21430 cat >"conftest.$ac_ext" <<_ACEOF
21431 #line 21431 "configure"
21432 #include "confdefs.h"
21434 #pragma GCC diagnostic error "-Wincompatible-pointer-types-discards-qualifiers"
21435 #include <stdlib.h>
21442 #ifndef _NETBSD_SOURCE /* given, since April 2004 in stdlib.h */
21443 const char *db_array = temp;
21444 cgetent(&buf, &db_array, "vt100");
21446 cgetcap(buf, "tc", '=');
21447 cgetmatch(buf, "tc");
21453 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21454 if { (eval echo "$as_me:21454: \"$ac_link\"") >&5
21455 (eval $ac_link) 2>&5
21457 echo "$as_me:21457: \$? = $ac_status" >&5
21458 (exit "$ac_status"); } &&
21459 { ac_try='test -s "conftest$ac_exeext"'
21460 { (eval echo "$as_me:21460: \"$ac_try\"") >&5
21461 (eval $ac_try) 2>&5
21463 echo "$as_me:21463: \$? = $ac_status" >&5
21464 (exit "$ac_status"); }; }; then
21465 cf_cv_cgetent_const=yes
21467 echo "$as_me: failed program was:" >&5
21468 cat "conftest.$ac_ext" >&5
21469 cf_cv_cgetent_const=no
21471 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21474 echo "$as_me:21474: result: $cf_cv_cgetent_const" >&5
21475 echo "${ECHO_T}$cf_cv_cgetent_const" >&6
21476 if test "$cf_cv_cgetent_const" = yes
21479 cat >>confdefs.h <<EOF
21480 #define CGETENT_CONST const
21488 echo "$as_me:21488: checking for isascii" >&5
21489 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
21490 if test "${cf_cv_have_isascii+set}" = set; then
21491 echo $ECHO_N "(cached) $ECHO_C" >&6
21494 cat >"conftest.$ac_ext" <<_ACEOF
21495 #line 21495 "configure"
21496 #include "confdefs.h"
21501 int x = isascii(' ')
21506 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21507 if { (eval echo "$as_me:21507: \"$ac_link\"") >&5
21508 (eval $ac_link) 2>&5
21510 echo "$as_me:21510: \$? = $ac_status" >&5
21511 (exit "$ac_status"); } &&
21512 { ac_try='test -s "conftest$ac_exeext"'
21513 { (eval echo "$as_me:21513: \"$ac_try\"") >&5
21514 (eval $ac_try) 2>&5
21516 echo "$as_me:21516: \$? = $ac_status" >&5
21517 (exit "$ac_status"); }; }; then
21518 cf_cv_have_isascii=yes
21520 echo "$as_me: failed program was:" >&5
21521 cat "conftest.$ac_ext" >&5
21522 cf_cv_have_isascii=no
21524 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21527 echo "$as_me:21527: result: $cf_cv_have_isascii" >&5
21528 echo "${ECHO_T}$cf_cv_have_isascii" >&6
21529 test "$cf_cv_have_isascii" = yes &&
21530 cat >>confdefs.h <<\EOF
21531 #define HAVE_ISASCII 1
21534 if test "$ac_cv_func_sigaction" = yes; then
21535 echo "$as_me:21535: checking whether sigaction needs _POSIX_SOURCE" >&5
21536 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
21537 cat >"conftest.$ac_ext" <<_ACEOF
21538 #line 21538 "configure"
21539 #include "confdefs.h"
21541 #include <sys/types.h>
21542 #include <signal.h>
21546 struct sigaction act
21551 rm -f "conftest.$ac_objext"
21552 if { (eval echo "$as_me:21552: \"$ac_compile\"") >&5
21553 (eval $ac_compile) 2>&5
21555 echo "$as_me:21555: \$? = $ac_status" >&5
21556 (exit "$ac_status"); } &&
21557 { ac_try='test -s "conftest.$ac_objext"'
21558 { (eval echo "$as_me:21558: \"$ac_try\"") >&5
21559 (eval $ac_try) 2>&5
21561 echo "$as_me:21561: \$? = $ac_status" >&5
21562 (exit "$ac_status"); }; }; then
21565 echo "$as_me: failed program was:" >&5
21566 cat "conftest.$ac_ext" >&5
21568 cat >"conftest.$ac_ext" <<_ACEOF
21569 #line 21569 "configure"
21570 #include "confdefs.h"
21572 #define _POSIX_SOURCE
21573 #include <sys/types.h>
21574 #include <signal.h>
21578 struct sigaction act
21583 rm -f "conftest.$ac_objext"
21584 if { (eval echo "$as_me:21584: \"$ac_compile\"") >&5
21585 (eval $ac_compile) 2>&5
21587 echo "$as_me:21587: \$? = $ac_status" >&5
21588 (exit "$ac_status"); } &&
21589 { ac_try='test -s "conftest.$ac_objext"'
21590 { (eval echo "$as_me:21590: \"$ac_try\"") >&5
21591 (eval $ac_try) 2>&5
21593 echo "$as_me:21593: \$? = $ac_status" >&5
21594 (exit "$ac_status"); }; }; then
21597 cat >>confdefs.h <<\EOF
21598 #define _POSIX_SOURCE 1
21602 echo "$as_me: failed program was:" >&5
21603 cat "conftest.$ac_ext" >&5
21606 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21608 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21609 echo "$as_me:21609: result: $sigact_bad" >&5
21610 echo "${ECHO_T}$sigact_bad" >&6
21613 echo "$as_me:21613: checking if nanosleep really works" >&5
21614 echo $ECHO_N "checking if nanosleep really works... $ECHO_C" >&6
21615 if test "${cf_cv_func_nanosleep+set}" = set; then
21616 echo $ECHO_N "(cached) $ECHO_C" >&6
21619 if test "$cross_compiling" = yes; then
21620 cf_cv_func_nanosleep=unknown
21622 cat >"conftest.$ac_ext" <<_ACEOF
21623 #line 21623 "configure"
21624 #include "confdefs.h"
21630 #ifdef HAVE_SYS_TIME_H
21631 #include <sys/time.h>
21635 struct timespec ts1, ts2;
21638 ts1.tv_nsec = 750000000;
21642 code = nanosleep(&ts1, &ts2); /* on failure errno is ENOSYS. */
21643 ${cf_cv_main_return:-return}(code != 0);
21647 rm -f "conftest$ac_exeext"
21648 if { (eval echo "$as_me:21648: \"$ac_link\"") >&5
21649 (eval $ac_link) 2>&5
21651 echo "$as_me:21651: \$? = $ac_status" >&5
21652 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
21653 { (eval echo "$as_me:21653: \"$ac_try\"") >&5
21654 (eval $ac_try) 2>&5
21656 echo "$as_me:21656: \$? = $ac_status" >&5
21657 (exit "$ac_status"); }; }; then
21658 cf_cv_func_nanosleep=yes
21660 echo "$as_me: program exited with status $ac_status" >&5
21661 echo "$as_me: failed program was:" >&5
21662 cat "conftest.$ac_ext" >&5
21663 cf_cv_func_nanosleep=no
21665 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
21668 echo "$as_me:21668: result: $cf_cv_func_nanosleep" >&5
21669 echo "${ECHO_T}$cf_cv_func_nanosleep" >&6
21671 test "$cf_cv_func_nanosleep" = "yes" &&
21672 cat >>confdefs.h <<\EOF
21673 #define HAVE_NANOSLEEP 1
21684 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21685 echo "$as_me:21685: checking for $ac_header" >&5
21686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21688 echo $ECHO_N "(cached) $ECHO_C" >&6
21690 cat >"conftest.$ac_ext" <<_ACEOF
21691 #line 21691 "configure"
21692 #include "confdefs.h"
21693 #include <$ac_header>
21695 if { (eval echo "$as_me:21695: \"$ac_cpp "conftest.$ac_ext"\"") >&5
21696 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
21698 $EGREP -v '^ *\+' conftest.er1 >conftest.err
21700 cat conftest.err >&5
21701 echo "$as_me:21701: \$? = $ac_status" >&5
21702 (exit "$ac_status"); } >/dev/null; then
21703 if test -s conftest.err; then
21704 ac_cpp_err=$ac_c_preproc_warn_flag
21711 if test -z "$ac_cpp_err"; then
21712 eval "$as_ac_Header=yes"
21714 echo "$as_me: failed program was:" >&5
21715 cat "conftest.$ac_ext" >&5
21716 eval "$as_ac_Header=no"
21718 rm -f conftest.err "conftest.$ac_ext"
21720 echo "$as_me:21720: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
21721 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
21722 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
21723 cat >>confdefs.h <<EOF
21724 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21730 if test "$ac_cv_header_termios_h" = yes ; then
21731 case "$CFLAGS $CPPFLAGS" in
21732 (*-D_POSIX_SOURCE*)
21733 termios_bad=dunno ;;
21734 (*) termios_bad=maybe ;;
21736 if test "$termios_bad" = maybe ; then
21737 echo "$as_me:21737: checking whether termios.h needs _POSIX_SOURCE" >&5
21738 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
21739 cat >"conftest.$ac_ext" <<_ACEOF
21740 #line 21740 "configure"
21741 #include "confdefs.h"
21742 #include <termios.h>
21746 struct termios foo; int x = foo.c_iflag = 1; (void)x
21751 rm -f "conftest.$ac_objext"
21752 if { (eval echo "$as_me:21752: \"$ac_compile\"") >&5
21753 (eval $ac_compile) 2>&5
21755 echo "$as_me:21755: \$? = $ac_status" >&5
21756 (exit "$ac_status"); } &&
21757 { ac_try='test -s "conftest.$ac_objext"'
21758 { (eval echo "$as_me:21758: \"$ac_try\"") >&5
21759 (eval $ac_try) 2>&5
21761 echo "$as_me:21761: \$? = $ac_status" >&5
21762 (exit "$ac_status"); }; }; then
21765 echo "$as_me: failed program was:" >&5
21766 cat "conftest.$ac_ext" >&5
21768 cat >"conftest.$ac_ext" <<_ACEOF
21769 #line 21769 "configure"
21770 #include "confdefs.h"
21772 #define _POSIX_SOURCE
21773 #include <termios.h>
21777 struct termios foo; int x = foo.c_iflag = 2; (void)x
21782 rm -f "conftest.$ac_objext"
21783 if { (eval echo "$as_me:21783: \"$ac_compile\"") >&5
21784 (eval $ac_compile) 2>&5
21786 echo "$as_me:21786: \$? = $ac_status" >&5
21787 (exit "$ac_status"); } &&
21788 { ac_try='test -s "conftest.$ac_objext"'
21789 { (eval echo "$as_me:21789: \"$ac_try\"") >&5
21790 (eval $ac_try) 2>&5
21792 echo "$as_me:21792: \$? = $ac_status" >&5
21793 (exit "$ac_status"); }; }; then
21794 termios_bad=unknown
21796 echo "$as_me: failed program was:" >&5
21797 cat "conftest.$ac_ext" >&5
21799 cat >>confdefs.h <<\EOF
21800 #define _POSIX_SOURCE 1
21804 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21807 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
21808 echo "$as_me:21808: result: $termios_bad" >&5
21809 echo "${ECHO_T}$termios_bad" >&6
21813 echo "$as_me:21813: checking for tcgetattr" >&5
21814 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
21815 if test "${cf_cv_have_tcgetattr+set}" = set; then
21816 echo $ECHO_N "(cached) $ECHO_C" >&6
21819 cat >"conftest.$ac_ext" <<_ACEOF
21820 #line 21820 "configure"
21821 #include "confdefs.h"
21823 #include <sys/types.h>
21824 #ifdef HAVE_UNISTD_H
21825 #include <unistd.h>
21827 #ifdef HAVE_TERMIOS_H
21828 #include <termios.h>
21829 #define TTY struct termios
21831 #ifdef HAVE_TERMIO_H
21832 #include <termio.h>
21833 #define TTY struct termio
21842 tcgetattr(1, &foo);
21847 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21848 if { (eval echo "$as_me:21848: \"$ac_link\"") >&5
21849 (eval $ac_link) 2>&5
21851 echo "$as_me:21851: \$? = $ac_status" >&5
21852 (exit "$ac_status"); } &&
21853 { ac_try='test -s "conftest$ac_exeext"'
21854 { (eval echo "$as_me:21854: \"$ac_try\"") >&5
21855 (eval $ac_try) 2>&5
21857 echo "$as_me:21857: \$? = $ac_status" >&5
21858 (exit "$ac_status"); }; }; then
21859 cf_cv_have_tcgetattr=yes
21861 echo "$as_me: failed program was:" >&5
21862 cat "conftest.$ac_ext" >&5
21863 cf_cv_have_tcgetattr=no
21865 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21867 echo "$as_me:21867: result: $cf_cv_have_tcgetattr" >&5
21868 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
21869 test "$cf_cv_have_tcgetattr" = yes &&
21870 cat >>confdefs.h <<\EOF
21871 #define HAVE_TCGETATTR 1
21874 echo "$as_me:21874: checking for vsscanf function or workaround" >&5
21875 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
21876 if test "${cf_cv_func_vsscanf+set}" = set; then
21877 echo $ECHO_N "(cached) $ECHO_C" >&6
21880 cat >"conftest.$ac_ext" <<_ACEOF
21881 #line 21881 "configure"
21882 #include "confdefs.h"
21884 #include <stdarg.h>
21891 vsscanf("from", "%d", ap)
21896 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21897 if { (eval echo "$as_me:21897: \"$ac_link\"") >&5
21898 (eval $ac_link) 2>&5
21900 echo "$as_me:21900: \$? = $ac_status" >&5
21901 (exit "$ac_status"); } &&
21902 { ac_try='test -s "conftest$ac_exeext"'
21903 { (eval echo "$as_me:21903: \"$ac_try\"") >&5
21904 (eval $ac_try) 2>&5
21906 echo "$as_me:21906: \$? = $ac_status" >&5
21907 (exit "$ac_status"); }; }; then
21908 cf_cv_func_vsscanf=vsscanf
21910 echo "$as_me: failed program was:" >&5
21911 cat "conftest.$ac_ext" >&5
21913 cat >"conftest.$ac_ext" <<_ACEOF
21914 #line 21914 "configure"
21915 #include "confdefs.h"
21917 #include <stdarg.h>
21924 char *str = "from";
21926 strbuf._flag = _IOREAD;
21927 strbuf._ptr = strbuf._base = (unsigned char *) str;
21928 strbuf._cnt = strlen(str);
21929 strbuf._file = _NFILE;
21930 return (vfscanf(&strbuf, "%d", ap))
21935 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21936 if { (eval echo "$as_me:21936: \"$ac_link\"") >&5
21937 (eval $ac_link) 2>&5
21939 echo "$as_me:21939: \$? = $ac_status" >&5
21940 (exit "$ac_status"); } &&
21941 { ac_try='test -s "conftest$ac_exeext"'
21942 { (eval echo "$as_me:21942: \"$ac_try\"") >&5
21943 (eval $ac_try) 2>&5
21945 echo "$as_me:21945: \$? = $ac_status" >&5
21946 (exit "$ac_status"); }; }; then
21947 cf_cv_func_vsscanf=vfscanf
21949 echo "$as_me: failed program was:" >&5
21950 cat "conftest.$ac_ext" >&5
21952 cat >"conftest.$ac_ext" <<_ACEOF
21953 #line 21953 "configure"
21954 #include "confdefs.h"
21956 #include <stdarg.h>
21963 char *str = "from";
21965 strbuf._flag = _IOREAD;
21966 strbuf._ptr = strbuf._base = (unsigned char *) str;
21967 strbuf._cnt = strlen(str);
21968 strbuf._file = _NFILE;
21969 return (_doscan(&strbuf, "%d", ap))
21974 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
21975 if { (eval echo "$as_me:21975: \"$ac_link\"") >&5
21976 (eval $ac_link) 2>&5
21978 echo "$as_me:21978: \$? = $ac_status" >&5
21979 (exit "$ac_status"); } &&
21980 { ac_try='test -s "conftest$ac_exeext"'
21981 { (eval echo "$as_me:21981: \"$ac_try\"") >&5
21982 (eval $ac_try) 2>&5
21984 echo "$as_me:21984: \$? = $ac_status" >&5
21985 (exit "$ac_status"); }; }; then
21986 cf_cv_func_vsscanf=_doscan
21988 echo "$as_me: failed program was:" >&5
21989 cat "conftest.$ac_ext" >&5
21991 cf_cv_func_vsscanf=no
21993 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21995 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21997 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
21999 echo "$as_me:21999: result: $cf_cv_func_vsscanf" >&5
22000 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
22002 case "$cf_cv_func_vsscanf" in
22004 cat >>confdefs.h <<\EOF
22005 #define HAVE_VSSCANF 1
22009 cat >>confdefs.h <<\EOF
22010 #define HAVE_VFSCANF 1
22014 cat >>confdefs.h <<\EOF
22015 #define HAVE__DOSCAN 1
22024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22025 echo "$as_me:22025: checking for $ac_header" >&5
22026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22028 echo $ECHO_N "(cached) $ECHO_C" >&6
22030 cat >"conftest.$ac_ext" <<_ACEOF
22031 #line 22031 "configure"
22032 #include "confdefs.h"
22033 #include <$ac_header>
22035 if { (eval echo "$as_me:22035: \"$ac_cpp "conftest.$ac_ext"\"") >&5
22036 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
22038 $EGREP -v '^ *\+' conftest.er1 >conftest.err
22040 cat conftest.err >&5
22041 echo "$as_me:22041: \$? = $ac_status" >&5
22042 (exit "$ac_status"); } >/dev/null; then
22043 if test -s conftest.err; then
22044 ac_cpp_err=$ac_c_preproc_warn_flag
22051 if test -z "$ac_cpp_err"; then
22052 eval "$as_ac_Header=yes"
22054 echo "$as_me: failed program was:" >&5
22055 cat "conftest.$ac_ext" >&5
22056 eval "$as_ac_Header=no"
22058 rm -f conftest.err "conftest.$ac_ext"
22060 echo "$as_me:22060: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
22061 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
22062 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
22063 cat >>confdefs.h <<EOF
22064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22070 echo "$as_me:22070: checking for working mkstemp" >&5
22071 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
22072 if test "${cf_cv_func_mkstemp+set}" = set; then
22073 echo $ECHO_N "(cached) $ECHO_C" >&6
22077 if test "$cross_compiling" = yes; then
22078 cf_cv_func_mkstemp=maybe
22080 cat >"conftest.$ac_ext" <<_ACEOF
22081 #line 22081 "configure"
22082 #include "confdefs.h"
22084 #include <sys/types.h>
22085 #ifdef HAVE_UNISTD_H
22086 #include <unistd.h>
22088 #include <stdlib.h>
22090 #include <string.h>
22091 #include <sys/stat.h>
22094 char *tmpl = "conftestXXXXXX";
22102 for (n = 0; n < 2; ++n) {
22103 strcpy(name[n], tmpl);
22104 if ((fd = mkstemp(name[n])) >= 0) {
22105 if (!strcmp(name[n], tmpl)
22106 || stat(name[n], &sb) != 0
22107 || (sb.st_mode & S_IFMT) != S_IFREG
22108 || (sb.st_mode & 077) != 0) {
22115 && !strcmp(name[0], name[1]))
22117 ${cf_cv_main_return:-return}(result);
22121 rm -f "conftest$ac_exeext"
22122 if { (eval echo "$as_me:22122: \"$ac_link\"") >&5
22123 (eval $ac_link) 2>&5
22125 echo "$as_me:22125: \$? = $ac_status" >&5
22126 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
22127 { (eval echo "$as_me:22127: \"$ac_try\"") >&5
22128 (eval $ac_try) 2>&5
22130 echo "$as_me:22130: \$? = $ac_status" >&5
22131 (exit "$ac_status"); }; }; then
22132 cf_cv_func_mkstemp=yes
22135 echo "$as_me: program exited with status $ac_status" >&5
22136 echo "$as_me: failed program was:" >&5
22137 cat "conftest.$ac_ext" >&5
22138 cf_cv_func_mkstemp=no
22141 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22145 echo "$as_me:22145: result: $cf_cv_func_mkstemp" >&5
22146 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
22147 if test "x$cf_cv_func_mkstemp" = xmaybe ; then
22148 echo "$as_me:22148: checking for mkstemp" >&5
22149 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
22150 if test "${ac_cv_func_mkstemp+set}" = set; then
22151 echo $ECHO_N "(cached) $ECHO_C" >&6
22153 cat >"conftest.$ac_ext" <<_ACEOF
22154 #line 22154 "configure"
22155 #include "confdefs.h"
22156 #define mkstemp autoconf_temporary
22157 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
22164 /* We use char because int might match the return type of a gcc2
22165 builtin and then its argument prototype would still apply. */
22166 char mkstemp (void);
22172 /* The GNU C library defines stubs for functions which it implements
22173 to always fail with ENOSYS. Some functions are actually named
22174 something starting with __ and the normal name is an alias. */
22175 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
22176 #error found stub for mkstemp
22184 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22185 if { (eval echo "$as_me:22185: \"$ac_link\"") >&5
22186 (eval $ac_link) 2>&5
22188 echo "$as_me:22188: \$? = $ac_status" >&5
22189 (exit "$ac_status"); } &&
22190 { ac_try='test -s "conftest$ac_exeext"'
22191 { (eval echo "$as_me:22191: \"$ac_try\"") >&5
22192 (eval $ac_try) 2>&5
22194 echo "$as_me:22194: \$? = $ac_status" >&5
22195 (exit "$ac_status"); }; }; then
22196 ac_cv_func_mkstemp=yes
22198 echo "$as_me: failed program was:" >&5
22199 cat "conftest.$ac_ext" >&5
22200 ac_cv_func_mkstemp=no
22202 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22204 echo "$as_me:22204: result: $ac_cv_func_mkstemp" >&5
22205 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
22208 if test "x$cf_cv_func_mkstemp" = xyes || test "x$ac_cv_func_mkstemp" = xyes ; then
22210 cat >>confdefs.h <<\EOF
22211 #define HAVE_MKSTEMP 1
22216 # setup for prototype of fallback for vsscanf()
22218 if test "$cf_cv_func_vsscanf" = vsscanf ; then
22224 if test "x$cross_compiling" = xyes ; then
22225 { echo "$as_me:22225: WARNING: cross compiling: assume setvbuf params not reversed" >&5
22226 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
22228 echo "$as_me:22228: checking whether setvbuf arguments are reversed" >&5
22229 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
22230 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
22231 echo $ECHO_N "(cached) $ECHO_C" >&6
22233 if test "$cross_compiling" = yes; then
22234 { { echo "$as_me:22234: error: cannot run test program while cross compiling" >&5
22235 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
22236 { (exit 1); exit 1; }; }
22238 cat >"conftest.$ac_ext" <<_ACEOF
22239 #line 22239 "configure"
22240 #include "confdefs.h"
22242 /* If setvbuf has the reversed format, exit 0. */
22246 /* This call has the arguments reversed.
22247 A reversed system may check and see that the address of main
22248 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
22249 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
22250 $ac_main_return(1);
22251 putc('\r', stdout);
22252 $ac_main_return(0); /* Non-reversed systems segv here. */
22255 rm -f "conftest$ac_exeext"
22256 if { (eval echo "$as_me:22256: \"$ac_link\"") >&5
22257 (eval $ac_link) 2>&5
22259 echo "$as_me:22259: \$? = $ac_status" >&5
22260 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
22261 { (eval echo "$as_me:22261: \"$ac_try\"") >&5
22262 (eval $ac_try) 2>&5
22264 echo "$as_me:22264: \$? = $ac_status" >&5
22265 (exit "$ac_status"); }; }; then
22266 ac_cv_func_setvbuf_reversed=yes
22268 echo "$as_me: program exited with status $ac_status" >&5
22269 echo "$as_me: failed program was:" >&5
22270 cat "conftest.$ac_ext" >&5
22271 ac_cv_func_setvbuf_reversed=no
22273 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22275 rm -f core ./core.* ./*.core
22277 echo "$as_me:22277: result: $ac_cv_func_setvbuf_reversed" >&5
22278 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
22279 if test $ac_cv_func_setvbuf_reversed = yes; then
22281 cat >>confdefs.h <<\EOF
22282 #define SETVBUF_REVERSED 1
22288 echo "$as_me:22288: checking for intptr_t" >&5
22289 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
22290 if test "${ac_cv_type_intptr_t+set}" = set; then
22291 echo $ECHO_N "(cached) $ECHO_C" >&6
22293 cat >"conftest.$ac_ext" <<_ACEOF
22294 #line 22294 "configure"
22295 #include "confdefs.h"
22296 $ac_includes_default
22300 if ((intptr_t *) 0)
22302 if (sizeof (intptr_t))
22308 rm -f "conftest.$ac_objext"
22309 if { (eval echo "$as_me:22309: \"$ac_compile\"") >&5
22310 (eval $ac_compile) 2>&5
22312 echo "$as_me:22312: \$? = $ac_status" >&5
22313 (exit "$ac_status"); } &&
22314 { ac_try='test -s "conftest.$ac_objext"'
22315 { (eval echo "$as_me:22315: \"$ac_try\"") >&5
22316 (eval $ac_try) 2>&5
22318 echo "$as_me:22318: \$? = $ac_status" >&5
22319 (exit "$ac_status"); }; }; then
22320 ac_cv_type_intptr_t=yes
22322 echo "$as_me: failed program was:" >&5
22323 cat "conftest.$ac_ext" >&5
22324 ac_cv_type_intptr_t=no
22326 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22328 echo "$as_me:22328: result: $ac_cv_type_intptr_t" >&5
22329 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
22330 if test "$ac_cv_type_intptr_t" = yes; then
22334 cat >>confdefs.h <<EOF
22335 #define intptr_t long
22340 echo "$as_me:22340: checking for ssize_t" >&5
22341 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
22342 if test "${ac_cv_type_ssize_t+set}" = set; then
22343 echo $ECHO_N "(cached) $ECHO_C" >&6
22345 cat >"conftest.$ac_ext" <<_ACEOF
22346 #line 22346 "configure"
22347 #include "confdefs.h"
22348 $ac_includes_default
22354 if (sizeof (ssize_t))
22360 rm -f "conftest.$ac_objext"
22361 if { (eval echo "$as_me:22361: \"$ac_compile\"") >&5
22362 (eval $ac_compile) 2>&5
22364 echo "$as_me:22364: \$? = $ac_status" >&5
22365 (exit "$ac_status"); } &&
22366 { ac_try='test -s "conftest.$ac_objext"'
22367 { (eval echo "$as_me:22367: \"$ac_try\"") >&5
22368 (eval $ac_try) 2>&5
22370 echo "$as_me:22370: \$? = $ac_status" >&5
22371 (exit "$ac_status"); }; }; then
22372 ac_cv_type_ssize_t=yes
22374 echo "$as_me: failed program was:" >&5
22375 cat "conftest.$ac_ext" >&5
22376 ac_cv_type_ssize_t=no
22378 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22380 echo "$as_me:22380: result: $ac_cv_type_ssize_t" >&5
22381 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
22382 if test "$ac_cv_type_ssize_t" = yes; then
22386 cat >>confdefs.h <<EOF
22387 #define ssize_t int
22392 echo "$as_me:22392: checking for type sigaction_t" >&5
22393 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
22394 if test "${cf_cv_type_sigaction+set}" = set; then
22395 echo $ECHO_N "(cached) $ECHO_C" >&6
22398 cat >"conftest.$ac_ext" <<_ACEOF
22399 #line 22399 "configure"
22400 #include "confdefs.h"
22402 #include <signal.h>
22411 rm -f "conftest.$ac_objext"
22412 if { (eval echo "$as_me:22412: \"$ac_compile\"") >&5
22413 (eval $ac_compile) 2>&5
22415 echo "$as_me:22415: \$? = $ac_status" >&5
22416 (exit "$ac_status"); } &&
22417 { ac_try='test -s "conftest.$ac_objext"'
22418 { (eval echo "$as_me:22418: \"$ac_try\"") >&5
22419 (eval $ac_try) 2>&5
22421 echo "$as_me:22421: \$? = $ac_status" >&5
22422 (exit "$ac_status"); }; }; then
22423 cf_cv_type_sigaction=yes
22425 echo "$as_me: failed program was:" >&5
22426 cat "conftest.$ac_ext" >&5
22427 cf_cv_type_sigaction=no
22429 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22432 echo "$as_me:22432: result: $cf_cv_type_sigaction" >&5
22433 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
22434 test "$cf_cv_type_sigaction" = yes &&
22435 cat >>confdefs.h <<\EOF
22436 #define HAVE_TYPE_SIGACTION 1
22439 echo "$as_me:22439: checking declaration of size-change" >&5
22440 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
22441 if test "${cf_cv_sizechange+set}" = set; then
22442 echo $ECHO_N "(cached) $ECHO_C" >&6
22445 cf_cv_sizechange=unknown
22446 cf_save_CPPFLAGS="$CPPFLAGS"
22448 for cf_opts in "" "NEED_PTEM_H"
22451 CPPFLAGS="$cf_save_CPPFLAGS"
22452 if test -n "$cf_opts"
22455 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
22456 CPPFLAGS="${CPPFLAGS}-D$cf_opts"
22459 cat >"conftest.$ac_ext" <<_ACEOF
22460 #line 22460 "configure"
22461 #include "confdefs.h"
22462 #include <sys/types.h>
22463 #ifdef HAVE_TERMIOS_H
22464 #include <termios.h>
22466 #ifdef HAVE_TERMIO_H
22467 #include <termio.h>
22472 /* This is a workaround for SCO: they neglected to define struct winsize in
22473 * termios.h -- it is only in termio.h and ptem.h
22475 #include <sys/stream.h>
22476 #include <sys/ptem.h>
22479 #ifdef HAVE_SYS_IOCTL_H
22480 #include <sys/ioctl.h>
22488 struct ttysize win; /* SunOS 3.0... */
22489 int y = win.ts_lines = 2;
22490 int x = win.ts_cols = 1;
22495 struct winsize win; /* everything else */
22496 int y = win.ws_row = 2;
22497 int x = win.ws_col = 1;
22501 no TIOCGSIZE or TIOCGWINSZ
22502 #endif /* TIOCGWINSZ */
22503 #endif /* TIOCGSIZE */
22509 rm -f "conftest.$ac_objext"
22510 if { (eval echo "$as_me:22510: \"$ac_compile\"") >&5
22511 (eval $ac_compile) 2>&5
22513 echo "$as_me:22513: \$? = $ac_status" >&5
22514 (exit "$ac_status"); } &&
22515 { ac_try='test -s "conftest.$ac_objext"'
22516 { (eval echo "$as_me:22516: \"$ac_try\"") >&5
22517 (eval $ac_try) 2>&5
22519 echo "$as_me:22519: \$? = $ac_status" >&5
22520 (exit "$ac_status"); }; }; then
22521 cf_cv_sizechange=yes
22523 echo "$as_me: failed program was:" >&5
22524 cat "conftest.$ac_ext" >&5
22525 cf_cv_sizechange=no
22527 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
22529 CPPFLAGS="$cf_save_CPPFLAGS"
22530 if test "$cf_cv_sizechange" = yes ; then
22531 echo "size-change succeeded ($cf_opts)" >&5
22532 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
22538 echo "$as_me:22538: result: $cf_cv_sizechange" >&5
22539 echo "${ECHO_T}$cf_cv_sizechange" >&6
22540 if test "$cf_cv_sizechange" != no ; then
22542 cat >>confdefs.h <<\EOF
22543 #define HAVE_SIZECHANGE 1
22546 case "$cf_cv_sizechange" in
22548 cat >>confdefs.h <<EOF
22549 #define $cf_cv_sizechange 1
22556 echo "$as_me:22556: checking for memmove" >&5
22557 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
22558 if test "${ac_cv_func_memmove+set}" = set; then
22559 echo $ECHO_N "(cached) $ECHO_C" >&6
22561 cat >"conftest.$ac_ext" <<_ACEOF
22562 #line 22562 "configure"
22563 #include "confdefs.h"
22564 #define memmove autoconf_temporary
22565 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
22572 /* We use char because int might match the return type of a gcc2
22573 builtin and then its argument prototype would still apply. */
22574 char memmove (void);
22580 /* The GNU C library defines stubs for functions which it implements
22581 to always fail with ENOSYS. Some functions are actually named
22582 something starting with __ and the normal name is an alias. */
22583 #if defined (__stub_memmove) || defined (__stub___memmove)
22584 #error found stub for memmove
22592 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22593 if { (eval echo "$as_me:22593: \"$ac_link\"") >&5
22594 (eval $ac_link) 2>&5
22596 echo "$as_me:22596: \$? = $ac_status" >&5
22597 (exit "$ac_status"); } &&
22598 { ac_try='test -s "conftest$ac_exeext"'
22599 { (eval echo "$as_me:22599: \"$ac_try\"") >&5
22600 (eval $ac_try) 2>&5
22602 echo "$as_me:22602: \$? = $ac_status" >&5
22603 (exit "$ac_status"); }; }; then
22604 ac_cv_func_memmove=yes
22606 echo "$as_me: failed program was:" >&5
22607 cat "conftest.$ac_ext" >&5
22608 ac_cv_func_memmove=no
22610 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22612 echo "$as_me:22612: result: $ac_cv_func_memmove" >&5
22613 echo "${ECHO_T}$ac_cv_func_memmove" >&6
22614 if test "$ac_cv_func_memmove" = yes; then
22618 echo "$as_me:22618: checking for bcopy" >&5
22619 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
22620 if test "${ac_cv_func_bcopy+set}" = set; then
22621 echo $ECHO_N "(cached) $ECHO_C" >&6
22623 cat >"conftest.$ac_ext" <<_ACEOF
22624 #line 22624 "configure"
22625 #include "confdefs.h"
22626 #define bcopy autoconf_temporary
22627 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
22634 /* We use char because int might match the return type of a gcc2
22635 builtin and then its argument prototype would still apply. */
22642 /* The GNU C library defines stubs for functions which it implements
22643 to always fail with ENOSYS. Some functions are actually named
22644 something starting with __ and the normal name is an alias. */
22645 #if defined (__stub_bcopy) || defined (__stub___bcopy)
22646 #error found stub for bcopy
22654 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22655 if { (eval echo "$as_me:22655: \"$ac_link\"") >&5
22656 (eval $ac_link) 2>&5
22658 echo "$as_me:22658: \$? = $ac_status" >&5
22659 (exit "$ac_status"); } &&
22660 { ac_try='test -s "conftest$ac_exeext"'
22661 { (eval echo "$as_me:22661: \"$ac_try\"") >&5
22662 (eval $ac_try) 2>&5
22664 echo "$as_me:22664: \$? = $ac_status" >&5
22665 (exit "$ac_status"); }; }; then
22666 ac_cv_func_bcopy=yes
22668 echo "$as_me: failed program was:" >&5
22669 cat "conftest.$ac_ext" >&5
22670 ac_cv_func_bcopy=no
22672 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22674 echo "$as_me:22674: result: $ac_cv_func_bcopy" >&5
22675 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
22676 if test "$ac_cv_func_bcopy" = yes; then
22678 echo "$as_me:22678: checking if bcopy does overlapping moves" >&5
22679 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
22680 if test "${cf_cv_good_bcopy+set}" = set; then
22681 echo $ECHO_N "(cached) $ECHO_C" >&6
22684 if test "$cross_compiling" = yes; then
22685 cf_cv_good_bcopy=unknown
22687 cat >"conftest.$ac_ext" <<_ACEOF
22688 #line 22688 "configure"
22689 #include "confdefs.h"
22692 static char data[] = "abcdefghijklmnopqrstuwwxyz";
22694 bcopy(data, temp, sizeof(data));
22695 bcopy(temp+10, temp, 15);
22696 bcopy(temp+5, temp+15, 10);
22697 ${cf_cv_main_return:-return} (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
22701 rm -f "conftest$ac_exeext"
22702 if { (eval echo "$as_me:22702: \"$ac_link\"") >&5
22703 (eval $ac_link) 2>&5
22705 echo "$as_me:22705: \$? = $ac_status" >&5
22706 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
22707 { (eval echo "$as_me:22707: \"$ac_try\"") >&5
22708 (eval $ac_try) 2>&5
22710 echo "$as_me:22710: \$? = $ac_status" >&5
22711 (exit "$ac_status"); }; }; then
22712 cf_cv_good_bcopy=yes
22714 echo "$as_me: program exited with status $ac_status" >&5
22715 echo "$as_me: failed program was:" >&5
22716 cat "conftest.$ac_ext" >&5
22717 cf_cv_good_bcopy=no
22719 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22723 echo "$as_me:22723: result: $cf_cv_good_bcopy" >&5
22724 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
22727 cf_cv_good_bcopy=no
22730 if test "$cf_cv_good_bcopy" = yes ; then
22732 cat >>confdefs.h <<\EOF
22733 #define USE_OK_BCOPY 1
22738 cat >>confdefs.h <<\EOF
22739 #define USE_MY_MEMMOVE 1
22746 tty >/dev/null 2>&1 || {
22747 for ac_func in posix_openpt
22749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22750 echo "$as_me:22750: checking for $ac_func" >&5
22751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22752 if eval "test \"\${$as_ac_var+set}\" = set"; then
22753 echo $ECHO_N "(cached) $ECHO_C" >&6
22755 cat >"conftest.$ac_ext" <<_ACEOF
22756 #line 22756 "configure"
22757 #include "confdefs.h"
22758 #define $ac_func autoconf_temporary
22759 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
22766 /* We use char because int might match the return type of a gcc2
22767 builtin and then its argument prototype would still apply. */
22768 char $ac_func (void);
22774 /* The GNU C library defines stubs for functions which it implements
22775 to always fail with ENOSYS. Some functions are actually named
22776 something starting with __ and the normal name is an alias. */
22777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22778 #error found stub for $ac_func
22781 return $ac_func ();
22786 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22787 if { (eval echo "$as_me:22787: \"$ac_link\"") >&5
22788 (eval $ac_link) 2>&5
22790 echo "$as_me:22790: \$? = $ac_status" >&5
22791 (exit "$ac_status"); } &&
22792 { ac_try='test -s "conftest$ac_exeext"'
22793 { (eval echo "$as_me:22793: \"$ac_try\"") >&5
22794 (eval $ac_try) 2>&5
22796 echo "$as_me:22796: \$? = $ac_status" >&5
22797 (exit "$ac_status"); }; }; then
22798 eval "$as_ac_var=yes"
22800 echo "$as_me: failed program was:" >&5
22801 cat "conftest.$ac_ext" >&5
22802 eval "$as_ac_var=no"
22804 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22806 echo "$as_me:22806: result: `eval echo '${'"$as_ac_var"'}'`" >&5
22807 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
22808 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
22809 cat >>confdefs.h <<EOF
22810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22816 echo "$as_me:22816: checking if poll really works" >&5
22817 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
22818 if test "${cf_cv_working_poll+set}" = set; then
22819 echo $ECHO_N "(cached) $ECHO_C" >&6
22822 if test "$cross_compiling" = yes; then
22823 cf_cv_working_poll=unknown
22825 cat >"conftest.$ac_ext" <<_ACEOF
22826 #line 22826 "configure"
22827 #include "confdefs.h"
22829 #include <stdlib.h>
22831 #include <unistd.h>
22836 #include <sys/poll.h>
22839 struct pollfd myfds;
22842 /* check for Darwin bug with respect to "devices" */
22843 myfds.fd = open("/dev/null", 1); /* O_WRONLY */
22846 myfds.events = POLLIN;
22849 ret = poll(&myfds, 1, 100);
22851 if (ret < 0 || (myfds.revents & POLLNVAL)) {
22856 fd = open("/dev/tty", 2); /* O_RDWR */
22858 #ifdef HAVE_POSIX_OPENPT
22860 fd = posix_openpt(O_RDWR);
22865 /* also check with standard input */
22867 myfds.events = POLLIN;
22869 ret = poll(&myfds, 1, 100);
22874 ${cf_cv_main_return:-return}(ret < 0);
22877 rm -f "conftest$ac_exeext"
22878 if { (eval echo "$as_me:22878: \"$ac_link\"") >&5
22879 (eval $ac_link) 2>&5
22881 echo "$as_me:22881: \$? = $ac_status" >&5
22882 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
22883 { (eval echo "$as_me:22883: \"$ac_try\"") >&5
22884 (eval $ac_try) 2>&5
22886 echo "$as_me:22886: \$? = $ac_status" >&5
22887 (exit "$ac_status"); }; }; then
22888 cf_cv_working_poll=yes
22890 echo "$as_me: program exited with status $ac_status" >&5
22891 echo "$as_me: failed program was:" >&5
22892 cat "conftest.$ac_ext" >&5
22893 cf_cv_working_poll=no
22895 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
22898 echo "$as_me:22898: result: $cf_cv_working_poll" >&5
22899 echo "${ECHO_T}$cf_cv_working_poll" >&6
22900 test "$cf_cv_working_poll" = "yes" &&
22901 cat >>confdefs.h <<\EOF
22902 #define HAVE_WORKING_POLL 1
22905 echo "$as_me:22905: checking for va_copy" >&5
22906 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
22907 if test "${cf_cv_have_va_copy+set}" = set; then
22908 echo $ECHO_N "(cached) $ECHO_C" >&6
22911 cat >"conftest.$ac_ext" <<_ACEOF
22912 #line 22912 "configure"
22913 #include "confdefs.h"
22915 #include <stdarg.h>
22921 static va_list dst;
22922 static va_list src;
22928 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22929 if { (eval echo "$as_me:22929: \"$ac_link\"") >&5
22930 (eval $ac_link) 2>&5
22932 echo "$as_me:22932: \$? = $ac_status" >&5
22933 (exit "$ac_status"); } &&
22934 { ac_try='test -s "conftest$ac_exeext"'
22935 { (eval echo "$as_me:22935: \"$ac_try\"") >&5
22936 (eval $ac_try) 2>&5
22938 echo "$as_me:22938: \$? = $ac_status" >&5
22939 (exit "$ac_status"); }; }; then
22940 cf_cv_have_va_copy=yes
22942 echo "$as_me: failed program was:" >&5
22943 cat "conftest.$ac_ext" >&5
22944 cf_cv_have_va_copy=no
22946 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
22948 echo "$as_me:22948: result: $cf_cv_have_va_copy" >&5
22949 echo "${ECHO_T}$cf_cv_have_va_copy" >&6
22951 if test "$cf_cv_have_va_copy" = yes;
22954 cat >>confdefs.h <<\EOF
22955 #define HAVE_VA_COPY 1
22958 else # !cf_cv_have_va_copy
22960 echo "$as_me:22960: checking for __va_copy" >&5
22961 echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
22962 if test "${cf_cv_have___va_copy+set}" = set; then
22963 echo $ECHO_N "(cached) $ECHO_C" >&6
22966 cat >"conftest.$ac_ext" <<_ACEOF
22967 #line 22967 "configure"
22968 #include "confdefs.h"
22970 #include <stdarg.h>
22976 static va_list dst;
22977 static va_list src;
22978 __va_copy(dst, src)
22983 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
22984 if { (eval echo "$as_me:22984: \"$ac_link\"") >&5
22985 (eval $ac_link) 2>&5
22987 echo "$as_me:22987: \$? = $ac_status" >&5
22988 (exit "$ac_status"); } &&
22989 { ac_try='test -s "conftest$ac_exeext"'
22990 { (eval echo "$as_me:22990: \"$ac_try\"") >&5
22991 (eval $ac_try) 2>&5
22993 echo "$as_me:22993: \$? = $ac_status" >&5
22994 (exit "$ac_status"); }; }; then
22995 cf_cv_have___va_copy=yes
22997 echo "$as_me: failed program was:" >&5
22998 cat "conftest.$ac_ext" >&5
22999 cf_cv_have___va_copy=no
23001 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23003 echo "$as_me:23003: result: $cf_cv_have___va_copy" >&5
23004 echo "${ECHO_T}$cf_cv_have___va_copy" >&6
23006 if test "$cf_cv_have___va_copy" = yes
23009 cat >>confdefs.h <<\EOF
23010 #define HAVE___VA_COPY 1
23013 else # !cf_cv_have___va_copy
23015 echo "$as_me:23015: checking for __builtin_va_copy" >&5
23016 echo $ECHO_N "checking for __builtin_va_copy... $ECHO_C" >&6
23017 if test "${cf_cv_have___builtin_va_copy+set}" = set; then
23018 echo $ECHO_N "(cached) $ECHO_C" >&6
23021 cat >"conftest.$ac_ext" <<_ACEOF
23022 #line 23022 "configure"
23023 #include "confdefs.h"
23025 #include <stdarg.h>
23031 static va_list dst;
23032 static va_list src;
23033 __builtin_va_copy(dst, src)
23038 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23039 if { (eval echo "$as_me:23039: \"$ac_link\"") >&5
23040 (eval $ac_link) 2>&5
23042 echo "$as_me:23042: \$? = $ac_status" >&5
23043 (exit "$ac_status"); } &&
23044 { ac_try='test -s "conftest$ac_exeext"'
23045 { (eval echo "$as_me:23045: \"$ac_try\"") >&5
23046 (eval $ac_try) 2>&5
23048 echo "$as_me:23048: \$? = $ac_status" >&5
23049 (exit "$ac_status"); }; }; then
23050 cf_cv_have___builtin_va_copy=yes
23052 echo "$as_me: failed program was:" >&5
23053 cat "conftest.$ac_ext" >&5
23054 cf_cv_have___builtin_va_copy=no
23056 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23058 echo "$as_me:23058: result: $cf_cv_have___builtin_va_copy" >&5
23059 echo "${ECHO_T}$cf_cv_have___builtin_va_copy" >&6
23061 test "$cf_cv_have___builtin_va_copy" = yes &&
23063 cat >>confdefs.h <<\EOF
23064 #define HAVE___BUILTIN_VA_COPY 1
23067 fi # cf_cv_have___va_copy
23069 fi # cf_cv_have_va_copy
23071 case "${cf_cv_have_va_copy}${cf_cv_have___va_copy}${cf_cv_have___builtin_va_copy}" in
23076 echo "$as_me:23076: checking if we can simply copy va_list" >&5
23077 echo $ECHO_N "checking if we can simply copy va_list... $ECHO_C" >&6
23078 if test "${cf_cv_pointer_va_list+set}" = set; then
23079 echo $ECHO_N "(cached) $ECHO_C" >&6
23082 cat >"conftest.$ac_ext" <<_ACEOF
23083 #line 23083 "configure"
23084 #include "confdefs.h"
23086 #include <stdarg.h>
23099 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23100 if { (eval echo "$as_me:23100: \"$ac_link\"") >&5
23101 (eval $ac_link) 2>&5
23103 echo "$as_me:23103: \$? = $ac_status" >&5
23104 (exit "$ac_status"); } &&
23105 { ac_try='test -s "conftest$ac_exeext"'
23106 { (eval echo "$as_me:23106: \"$ac_try\"") >&5
23107 (eval $ac_try) 2>&5
23109 echo "$as_me:23109: \$? = $ac_status" >&5
23110 (exit "$ac_status"); }; }; then
23111 cf_cv_pointer_va_list=yes
23113 echo "$as_me: failed program was:" >&5
23114 cat "conftest.$ac_ext" >&5
23115 cf_cv_pointer_va_list=no
23117 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23119 echo "$as_me:23119: result: $cf_cv_pointer_va_list" >&5
23120 echo "${ECHO_T}$cf_cv_pointer_va_list" >&6
23122 if test "$cf_cv_pointer_va_list" = no
23124 echo "$as_me:23124: checking if we can copy va_list indirectly" >&5
23125 echo $ECHO_N "checking if we can copy va_list indirectly... $ECHO_C" >&6
23126 if test "${cf_cv_array_va_list+set}" = set; then
23127 echo $ECHO_N "(cached) $ECHO_C" >&6
23130 cat >"conftest.$ac_ext" <<_ACEOF
23131 #line 23131 "configure"
23132 #include "confdefs.h"
23134 #include <stdarg.h>
23147 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23148 if { (eval echo "$as_me:23148: \"$ac_link\"") >&5
23149 (eval $ac_link) 2>&5
23151 echo "$as_me:23151: \$? = $ac_status" >&5
23152 (exit "$ac_status"); } &&
23153 { ac_try='test -s "conftest$ac_exeext"'
23154 { (eval echo "$as_me:23154: \"$ac_try\"") >&5
23155 (eval $ac_try) 2>&5
23157 echo "$as_me:23157: \$? = $ac_status" >&5
23158 (exit "$ac_status"); }; }; then
23159 cf_cv_array_va_list=yes
23161 echo "$as_me: failed program was:" >&5
23162 cat "conftest.$ac_ext" >&5
23163 cf_cv_array_va_list=no
23165 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23167 echo "$as_me:23167: result: $cf_cv_array_va_list" >&5
23168 echo "${ECHO_T}$cf_cv_array_va_list" >&6
23169 test "$cf_cv_array_va_list" = yes &&
23170 cat >>confdefs.h <<\EOF
23171 #define ARRAY_VA_LIST 1
23178 echo "$as_me:23178: checking for pid_t" >&5
23179 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
23180 if test "${ac_cv_type_pid_t+set}" = set; then
23181 echo $ECHO_N "(cached) $ECHO_C" >&6
23183 cat >"conftest.$ac_ext" <<_ACEOF
23184 #line 23184 "configure"
23185 #include "confdefs.h"
23186 $ac_includes_default
23192 if (sizeof (pid_t))
23198 rm -f "conftest.$ac_objext"
23199 if { (eval echo "$as_me:23199: \"$ac_compile\"") >&5
23200 (eval $ac_compile) 2>&5
23202 echo "$as_me:23202: \$? = $ac_status" >&5
23203 (exit "$ac_status"); } &&
23204 { ac_try='test -s "conftest.$ac_objext"'
23205 { (eval echo "$as_me:23205: \"$ac_try\"") >&5
23206 (eval $ac_try) 2>&5
23208 echo "$as_me:23208: \$? = $ac_status" >&5
23209 (exit "$ac_status"); }; }; then
23210 ac_cv_type_pid_t=yes
23212 echo "$as_me: failed program was:" >&5
23213 cat "conftest.$ac_ext" >&5
23214 ac_cv_type_pid_t=no
23216 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23218 echo "$as_me:23218: result: $ac_cv_type_pid_t" >&5
23219 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
23220 if test "$ac_cv_type_pid_t" = yes; then
23224 cat >>confdefs.h <<EOF
23230 for ac_header in unistd.h vfork.h
23232 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23233 echo "$as_me:23233: checking for $ac_header" >&5
23234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23236 echo $ECHO_N "(cached) $ECHO_C" >&6
23238 cat >"conftest.$ac_ext" <<_ACEOF
23239 #line 23239 "configure"
23240 #include "confdefs.h"
23241 #include <$ac_header>
23243 if { (eval echo "$as_me:23243: \"$ac_cpp "conftest.$ac_ext"\"") >&5
23244 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
23246 $EGREP -v '^ *\+' conftest.er1 >conftest.err
23248 cat conftest.err >&5
23249 echo "$as_me:23249: \$? = $ac_status" >&5
23250 (exit "$ac_status"); } >/dev/null; then
23251 if test -s conftest.err; then
23252 ac_cpp_err=$ac_c_preproc_warn_flag
23259 if test -z "$ac_cpp_err"; then
23260 eval "$as_ac_Header=yes"
23262 echo "$as_me: failed program was:" >&5
23263 cat "conftest.$ac_ext" >&5
23264 eval "$as_ac_Header=no"
23266 rm -f conftest.err "conftest.$ac_ext"
23268 echo "$as_me:23268: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
23269 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
23270 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
23271 cat >>confdefs.h <<EOF
23272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23278 for ac_func in fork vfork
23280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23281 echo "$as_me:23281: checking for $ac_func" >&5
23282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23283 if eval "test \"\${$as_ac_var+set}\" = set"; then
23284 echo $ECHO_N "(cached) $ECHO_C" >&6
23286 cat >"conftest.$ac_ext" <<_ACEOF
23287 #line 23287 "configure"
23288 #include "confdefs.h"
23289 #define $ac_func autoconf_temporary
23290 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
23297 /* We use char because int might match the return type of a gcc2
23298 builtin and then its argument prototype would still apply. */
23299 char $ac_func (void);
23305 /* The GNU C library defines stubs for functions which it implements
23306 to always fail with ENOSYS. Some functions are actually named
23307 something starting with __ and the normal name is an alias. */
23308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23309 #error found stub for $ac_func
23312 return $ac_func ();
23317 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23318 if { (eval echo "$as_me:23318: \"$ac_link\"") >&5
23319 (eval $ac_link) 2>&5
23321 echo "$as_me:23321: \$? = $ac_status" >&5
23322 (exit "$ac_status"); } &&
23323 { ac_try='test -s "conftest$ac_exeext"'
23324 { (eval echo "$as_me:23324: \"$ac_try\"") >&5
23325 (eval $ac_try) 2>&5
23327 echo "$as_me:23327: \$? = $ac_status" >&5
23328 (exit "$ac_status"); }; }; then
23329 eval "$as_ac_var=yes"
23331 echo "$as_me: failed program was:" >&5
23332 cat "conftest.$ac_ext" >&5
23333 eval "$as_ac_var=no"
23335 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23337 echo "$as_me:23337: result: `eval echo '${'"$as_ac_var"'}'`" >&5
23338 echo "${ECHO_T}`eval echo '${'"$as_ac_var"'}'`" >&6
23339 if test "`eval echo '${'"$as_ac_var"'}'`" = yes; then
23340 cat >>confdefs.h <<EOF
23341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23347 ac_cv_func_fork_works=$ac_cv_func_fork
23348 if test "x$ac_cv_func_fork" = xyes; then
23349 echo "$as_me:23349: checking for working fork" >&5
23350 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
23351 if test "${ac_cv_func_fork_works+set}" = set; then
23352 echo $ECHO_N "(cached) $ECHO_C" >&6
23354 if test "$cross_compiling" = yes; then
23355 ac_cv_func_fork_works=cross
23357 cat >"conftest.$ac_ext" <<_ACEOF
23358 /* By Rüdiger Kuhlmann. */
23359 #include <sys/types.h>
23361 # include <unistd.h>
23363 /* Some systems only have a dummy stub for fork() */
23367 $ac_main_return (1);
23368 $ac_main_return (0);
23371 rm -f "conftest$ac_exeext"
23372 if { (eval echo "$as_me:23372: \"$ac_link\"") >&5
23373 (eval $ac_link) 2>&5
23375 echo "$as_me:23375: \$? = $ac_status" >&5
23376 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23377 { (eval echo "$as_me:23377: \"$ac_try\"") >&5
23378 (eval $ac_try) 2>&5
23380 echo "$as_me:23380: \$? = $ac_status" >&5
23381 (exit "$ac_status"); }; }; then
23382 ac_cv_func_fork_works=yes
23384 echo "$as_me: program exited with status $ac_status" >&5
23385 echo "$as_me: failed program was:" >&5
23386 cat "conftest.$ac_ext" >&5
23387 ac_cv_func_fork_works=no
23389 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
23392 echo "$as_me:23392: result: $ac_cv_func_fork_works" >&5
23393 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
23396 if test "x$ac_cv_func_fork_works" = xcross; then
23398 *-*-amigaos* | *-*-msdosdjgpp*)
23399 # Override, as these systems have only a dummy fork() stub
23400 ac_cv_func_fork_works=no
23403 ac_cv_func_fork_works=yes
23406 { echo "$as_me:23406: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
23407 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
23409 ac_cv_func_vfork_works=$ac_cv_func_vfork
23410 if test "x$ac_cv_func_vfork" = xyes; then
23411 echo "$as_me:23411: checking for working vfork" >&5
23412 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
23413 if test "${ac_cv_func_vfork_works+set}" = set; then
23414 echo $ECHO_N "(cached) $ECHO_C" >&6
23416 if test "$cross_compiling" = yes; then
23417 ac_cv_func_vfork_works=cross
23419 cat >"conftest.$ac_ext" <<_ACEOF
23420 #line 23420 "configure"
23421 #include "confdefs.h"
23422 /* Thanks to Paul Eggert for this test. */
23424 #include <sys/types.h>
23425 #include <sys/stat.h>
23427 # include <unistd.h>
23430 # include <vfork.h>
23432 /* On some sparc systems, changes by the child to local and incoming
23433 argument registers are propagated back to the parent. The compiler
23434 is told about this with #include <vfork.h>, but some compilers
23435 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23436 static variable whose address is put into a register that is
23437 clobbered by the vfork. */
23440 sparc_address_test (int arg)
23442 sparc_address_test (arg) int arg;
23445 static pid_t child;
23463 pid_t parent = getpid ();
23466 sparc_address_test ();
23471 /* Here is another test for sparc vfork register problems. This
23472 test uses lots of local variables, at least as many local
23473 variables as main has allocated so far including compiler
23474 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23475 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23476 reuse the register of parent for one of the local variables,
23477 since it will think that parent can't possibly be used any more
23478 in this routine. Assigning to the local variable will thus
23479 munge parent in the parent process. */
23481 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23482 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23483 /* Convince the compiler that p..p7 are live; otherwise, it might
23484 use the same hardware register for all 8 local variables. */
23485 if (p != p1 || p != p2 || p != p3 || p != p4
23486 || p != p5 || p != p6 || p != p7)
23489 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23490 from child file descriptors. If the child closes a descriptor
23491 before it execs or exits, this munges the parent's descriptor
23492 as well. Test for this by closing stdout in the child. */
23493 _exit(close(fileno(stdout)) != 0);
23498 while (wait(&status) != child)
23501 /* Was there some problem with vforking? */
23504 /* Did the child fail? (This shouldn't happen.) */
23507 /* Did the vfork/compiler bug occur? */
23508 || parent != getpid()
23510 /* Did the file descriptor bug occur? */
23511 || fstat(fileno(stdout), &st) != 0
23516 rm -f "conftest$ac_exeext"
23517 if { (eval echo "$as_me:23517: \"$ac_link\"") >&5
23518 (eval $ac_link) 2>&5
23520 echo "$as_me:23520: \$? = $ac_status" >&5
23521 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23522 { (eval echo "$as_me:23522: \"$ac_try\"") >&5
23523 (eval $ac_try) 2>&5
23525 echo "$as_me:23525: \$? = $ac_status" >&5
23526 (exit "$ac_status"); }; }; then
23527 ac_cv_func_vfork_works=yes
23529 echo "$as_me: program exited with status $ac_status" >&5
23530 echo "$as_me: failed program was:" >&5
23531 cat "conftest.$ac_ext" >&5
23532 ac_cv_func_vfork_works=no
23534 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
23537 echo "$as_me:23537: result: $ac_cv_func_vfork_works" >&5
23538 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
23541 if test "x$ac_cv_func_fork_works" = xcross; then
23542 ac_cv_func_vfork_works=ac_cv_func_vfork
23543 { echo "$as_me:23543: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
23544 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
23547 if test "x$ac_cv_func_vfork_works" = xyes; then
23549 cat >>confdefs.h <<\EOF
23550 #define HAVE_WORKING_VFORK 1
23555 cat >>confdefs.h <<\EOF
23560 if test "x$ac_cv_func_fork_works" = xyes; then
23562 cat >>confdefs.h <<\EOF
23563 #define HAVE_WORKING_FORK 1
23568 echo "$as_me:23568: checking if fopen accepts explicit binary mode" >&5
23569 echo $ECHO_N "checking if fopen accepts explicit binary mode... $ECHO_C" >&6
23570 if test "${cf_cv_fopen_bin_r+set}" = set; then
23571 echo $ECHO_N "(cached) $ECHO_C" >&6
23574 if test "$cross_compiling" = yes; then
23575 cf_cv_fopen_bin_r=unknown
23577 cat >"conftest.$ac_ext" <<_ACEOF
23578 #line 23578 "configure"
23579 #include "confdefs.h"
23583 FILE *fp = fopen("conftest.tmp", "wb");
23587 for (p = 0; p < 256; ++p) {
23591 fp = fopen("conftest.tmp", "rb");
23593 for (p = 0; p < 256; ++p) {
23606 ${cf_cv_main_return:-return} (rc);
23610 rm -f "conftest$ac_exeext"
23611 if { (eval echo "$as_me:23611: \"$ac_link\"") >&5
23612 (eval $ac_link) 2>&5
23614 echo "$as_me:23614: \$? = $ac_status" >&5
23615 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
23616 { (eval echo "$as_me:23616: \"$ac_try\"") >&5
23617 (eval $ac_try) 2>&5
23619 echo "$as_me:23619: \$? = $ac_status" >&5
23620 (exit "$ac_status"); }; }; then
23621 cf_cv_fopen_bin_r=yes
23623 echo "$as_me: program exited with status $ac_status" >&5
23624 echo "$as_me: failed program was:" >&5
23625 cat "conftest.$ac_ext" >&5
23626 cf_cv_fopen_bin_r=no
23628 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
23632 echo "$as_me:23632: result: $cf_cv_fopen_bin_r" >&5
23633 echo "${ECHO_T}$cf_cv_fopen_bin_r" >&6
23634 test "x$cf_cv_fopen_bin_r" != xno &&
23635 cat >>confdefs.h <<\EOF
23636 #define USE_FOPEN_BIN_R 1
23639 # special check for test/ditto.c
23641 echo "$as_me:23641: checking for openpty in -lutil" >&5
23642 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
23643 if test "${ac_cv_lib_util_openpty+set}" = set; then
23644 echo $ECHO_N "(cached) $ECHO_C" >&6
23646 ac_check_lib_save_LIBS=$LIBS
23647 LIBS="-lutil $LIBS"
23648 cat >"conftest.$ac_ext" <<_ACEOF
23649 #line 23649 "configure"
23650 #include "confdefs.h"
23652 /* Override any gcc2 internal prototype to avoid an error. */
23656 /* We use char because int might match the return type of a gcc2
23657 builtin and then its argument prototype would still apply. */
23667 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23668 if { (eval echo "$as_me:23668: \"$ac_link\"") >&5
23669 (eval $ac_link) 2>&5
23671 echo "$as_me:23671: \$? = $ac_status" >&5
23672 (exit "$ac_status"); } &&
23673 { ac_try='test -s "conftest$ac_exeext"'
23674 { (eval echo "$as_me:23674: \"$ac_try\"") >&5
23675 (eval $ac_try) 2>&5
23677 echo "$as_me:23677: \$? = $ac_status" >&5
23678 (exit "$ac_status"); }; }; then
23679 ac_cv_lib_util_openpty=yes
23681 echo "$as_me: failed program was:" >&5
23682 cat "conftest.$ac_ext" >&5
23683 ac_cv_lib_util_openpty=no
23685 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23686 LIBS=$ac_check_lib_save_LIBS
23688 echo "$as_me:23688: result: $ac_cv_lib_util_openpty" >&5
23689 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
23690 if test "$ac_cv_lib_util_openpty" = yes; then
23696 echo "$as_me:23696: checking for openpty header" >&5
23697 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
23698 if test "${cf_cv_func_openpty+set}" = set; then
23699 echo $ECHO_N "(cached) $ECHO_C" >&6
23702 cf_save_LIBS="$LIBS"
23703 test "$cf_cv_lib_util" = yes && {
23704 cf_add_libs="$LIBS"
23707 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
23708 # filter duplicates
23709 for cf_add_1lib in $cf_add_0lib; do
23710 for cf_add_2lib in $cf_add_libs; do
23711 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
23716 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
23718 LIBS="$cf_add_libs"
23720 for cf_header in pty.h libutil.h util.h
23722 cat >"conftest.$ac_ext" <<_ACEOF
23723 #line 23723 "configure"
23724 #include "confdefs.h"
23726 #include <$cf_header>
23732 int x = openpty((int *)0, (int *)0, (char *)0,
23733 (struct termios *)0, (struct winsize *)0);
23739 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
23740 if { (eval echo "$as_me:23740: \"$ac_link\"") >&5
23741 (eval $ac_link) 2>&5
23743 echo "$as_me:23743: \$? = $ac_status" >&5
23744 (exit "$ac_status"); } &&
23745 { ac_try='test -s "conftest$ac_exeext"'
23746 { (eval echo "$as_me:23746: \"$ac_try\"") >&5
23747 (eval $ac_try) 2>&5
23749 echo "$as_me:23749: \$? = $ac_status" >&5
23750 (exit "$ac_status"); }; }; then
23752 cf_cv_func_openpty=$cf_header
23756 echo "$as_me: failed program was:" >&5
23757 cat "conftest.$ac_ext" >&5
23759 cf_cv_func_openpty=no
23762 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
23764 LIBS="$cf_save_LIBS"
23767 echo "$as_me:23767: result: $cf_cv_func_openpty" >&5
23768 echo "${ECHO_T}$cf_cv_func_openpty" >&6
23770 if test "$cf_cv_func_openpty" != no ; then
23772 cat >>confdefs.h <<EOF
23773 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
23776 cat >>confdefs.h <<\EOF
23777 #define USE_XTERM_PTY 1
23780 if test "x$cf_cv_lib_util" = xyes ; then
23782 cf_add_libs="$TEST_LIBS"
23785 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
23786 # filter duplicates
23787 for cf_add_1lib in $cf_add_0lib; do
23788 for cf_add_2lib in $cf_add_libs; do
23789 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
23794 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
23796 TEST_LIBS="$cf_add_libs"
23801 if test "$with_hashed_db" != no ; then
23803 cat >>confdefs.h <<\EOF
23804 #define USE_HASHED_DB 1
23807 case $with_hashed_db in
23811 if test -d "$with_hashed_db" ; then
23813 if test -n "$with_hashed_db/include" ; then
23814 for cf_add_incdir in $with_hashed_db/include
23816 while test "$cf_add_incdir" != /usr/include
23818 if test -d "$cf_add_incdir"
23821 if test -n "$CFLAGS$CPPFLAGS" ; then
23822 # a loop is needed to ensure we can add subdirs of existing dirs
23823 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
23824 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
23825 cf_have_incdir=yes; break
23830 if test "$cf_have_incdir" = no ; then
23831 if test "$cf_add_incdir" = /usr/local/include ; then
23832 if test "$GCC" = yes
23834 cf_save_CPPFLAGS=$CPPFLAGS
23836 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
23837 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
23839 cat >"conftest.$ac_ext" <<_ACEOF
23840 #line 23840 "configure"
23841 #include "confdefs.h"
23851 rm -f "conftest.$ac_objext"
23852 if { (eval echo "$as_me:23852: \"$ac_compile\"") >&5
23853 (eval $ac_compile) 2>&5
23855 echo "$as_me:23855: \$? = $ac_status" >&5
23856 (exit "$ac_status"); } &&
23857 { ac_try='test -s "conftest.$ac_objext"'
23858 { (eval echo "$as_me:23858: \"$ac_try\"") >&5
23859 (eval $ac_try) 2>&5
23861 echo "$as_me:23861: \$? = $ac_status" >&5
23862 (exit "$ac_status"); }; }; then
23865 echo "$as_me: failed program was:" >&5
23866 cat "conftest.$ac_ext" >&5
23869 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
23870 CPPFLAGS=$cf_save_CPPFLAGS
23875 if test "$cf_have_incdir" = no ; then
23876 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
23878 echo "${as_me:-configure}:23878: testing adding $cf_add_incdir to include-path ..." 1>&5
23880 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
23882 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
23883 test "$cf_top_incdir" = "$cf_add_incdir" && break
23884 cf_add_incdir="$cf_top_incdir"
23895 if test -n "$with_hashed_db/lib" ; then
23896 for cf_add_libdir in $with_hashed_db/lib
23898 if test "$cf_add_libdir" = /usr/lib ; then
23900 elif test -d "$cf_add_libdir"
23903 if test -n "$LDFLAGS$LIBS" ; then
23904 # a loop is needed to ensure we can add subdirs of existing dirs
23905 for cf_test_libdir in $LDFLAGS $LIBS ; do
23906 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
23907 cf_have_libdir=yes; break
23911 if test "$cf_have_libdir" = no ; then
23912 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
23914 echo "${as_me:-configure}:23914: testing adding $cf_add_libdir to library-path ..." 1>&5
23916 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
23923 case "$with_hashed_db" in
23925 { echo "$as_me:23925: WARNING: no such directory $with_hashed_db" >&5
23926 echo "$as_me: WARNING: no such directory $with_hashed_db" >&2;}
23932 test "x$prefix" != "xNONE" && \
23933 test -d "$prefix" && \
23935 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
23936 test -d "$prefix/include" && cf_search="$cf_search $prefix/include"
23937 test -d "$prefix/include/$with_hashed_db" && cf_search="$cf_search $prefix/include/$with_hashed_db"
23938 test -d "$prefix/include/$with_hashed_db/include" && cf_search="$cf_search $prefix/include/$with_hashed_db/include"
23939 test -d "$prefix/$with_hashed_db/include" && cf_search="$cf_search $prefix/$with_hashed_db/include"
23940 test -d "$prefix/$with_hashed_db/include/$with_hashed_db" && cf_search="$cf_search $prefix/$with_hashed_db/include/$with_hashed_db"
23943 for cf_subdir_prefix in \
23952 test "x$cf_subdir_prefix" != "x$prefix" && \
23953 test -d "$cf_subdir_prefix" && \
23954 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
23955 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
23956 test -d "$cf_subdir_prefix/include" && cf_search="$cf_search $cf_subdir_prefix/include"
23957 test -d "$cf_subdir_prefix/include/$with_hashed_db" && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db"
23958 test -d "$cf_subdir_prefix/include/$with_hashed_db/include" && cf_search="$cf_search $cf_subdir_prefix/include/$with_hashed_db/include"
23959 test -d "$cf_subdir_prefix/$with_hashed_db/include" && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/include"
23960 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"
23965 for cf_item in $cf_search
23968 (*/$with_hashed_db)
23970 if test -n "$cf_item" ; then
23971 for cf_add_incdir in $cf_item
23973 while test "$cf_add_incdir" != /usr/include
23975 if test -d "$cf_add_incdir"
23978 if test -n "$CFLAGS$CPPFLAGS" ; then
23979 # a loop is needed to ensure we can add subdirs of existing dirs
23980 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
23981 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
23982 cf_have_incdir=yes; break
23987 if test "$cf_have_incdir" = no ; then
23988 if test "$cf_add_incdir" = /usr/local/include ; then
23989 if test "$GCC" = yes
23991 cf_save_CPPFLAGS=$CPPFLAGS
23993 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
23994 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
23996 cat >"conftest.$ac_ext" <<_ACEOF
23997 #line 23997 "configure"
23998 #include "confdefs.h"
24008 rm -f "conftest.$ac_objext"
24009 if { (eval echo "$as_me:24009: \"$ac_compile\"") >&5
24010 (eval $ac_compile) 2>&5
24012 echo "$as_me:24012: \$? = $ac_status" >&5
24013 (exit "$ac_status"); } &&
24014 { ac_try='test -s "conftest.$ac_objext"'
24015 { (eval echo "$as_me:24015: \"$ac_try\"") >&5
24016 (eval $ac_try) 2>&5
24018 echo "$as_me:24018: \$? = $ac_status" >&5
24019 (exit "$ac_status"); }; }; then
24022 echo "$as_me: failed program was:" >&5
24023 cat "conftest.$ac_ext" >&5
24026 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24027 CPPFLAGS=$cf_save_CPPFLAGS
24032 if test "$cf_have_incdir" = no ; then
24033 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
24035 echo "${as_me:-configure}:24035: testing adding $cf_add_incdir to include-path ..." 1>&5
24037 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
24039 cf_top_incdir=`echo "$cf_add_incdir" | sed -e 's%/include/.*$%/include%'`
24040 test "$cf_top_incdir" = "$cf_add_incdir" && break
24041 cf_add_incdir="$cf_top_incdir"
24058 test "x$prefix" != "xNONE" && \
24059 test -d "$prefix" && \
24061 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
24062 test -d "$prefix/lib" && cf_search="$cf_search $prefix/lib"
24063 test -d "$prefix/lib/$with_hashed_db" && cf_search="$cf_search $prefix/lib/$with_hashed_db"
24064 test -d "$prefix/lib/$with_hashed_db/lib" && cf_search="$cf_search $prefix/lib/$with_hashed_db/lib"
24065 test -d "$prefix/$with_hashed_db/lib" && cf_search="$cf_search $prefix/$with_hashed_db/lib"
24066 test -d "$prefix/$with_hashed_db/lib/$with_hashed_db" && cf_search="$cf_search $prefix/$with_hashed_db/lib/$with_hashed_db"
24069 for cf_subdir_prefix in \
24078 test "x$cf_subdir_prefix" != "x$prefix" && \
24079 test -d "$cf_subdir_prefix" && \
24080 { test -z "$prefix" || test "x$prefix" = xNONE || test "x$cf_subdir_prefix" != "x$prefix"; } && {
24081 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
24082 test -d "$cf_subdir_prefix/lib" && cf_search="$cf_search $cf_subdir_prefix/lib"
24083 test -d "$cf_subdir_prefix/lib/$with_hashed_db" && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db"
24084 test -d "$cf_subdir_prefix/lib/$with_hashed_db/lib" && cf_search="$cf_search $cf_subdir_prefix/lib/$with_hashed_db/lib"
24085 test -d "$cf_subdir_prefix/$with_hashed_db/lib" && cf_search="$cf_search $cf_subdir_prefix/$with_hashed_db/lib"
24086 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"
24091 for cf_item in $cf_search
24094 (*/$with_hashed_db)
24096 if test -n "$cf_item" ; then
24097 for cf_add_libdir in $cf_item
24099 if test "$cf_add_libdir" = /usr/lib ; then
24101 elif test -d "$cf_add_libdir"
24104 if test -n "$LDFLAGS$LIBS" ; then
24105 # a loop is needed to ensure we can add subdirs of existing dirs
24106 for cf_test_libdir in $LDFLAGS $LIBS ; do
24107 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
24108 cf_have_libdir=yes; break
24112 if test "$cf_have_libdir" = no ; then
24113 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
24115 echo "${as_me:-configure}:24115: testing adding $cf_add_libdir to library-path ..." 1>&5
24117 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
24132 echo "$as_me:24132: checking for db.h" >&5
24133 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
24134 if test "${ac_cv_header_db_h+set}" = set; then
24135 echo $ECHO_N "(cached) $ECHO_C" >&6
24137 cat >"conftest.$ac_ext" <<_ACEOF
24138 #line 24138 "configure"
24139 #include "confdefs.h"
24142 if { (eval echo "$as_me:24142: \"$ac_cpp "conftest.$ac_ext"\"") >&5
24143 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
24145 $EGREP -v '^ *\+' conftest.er1 >conftest.err
24147 cat conftest.err >&5
24148 echo "$as_me:24148: \$? = $ac_status" >&5
24149 (exit "$ac_status"); } >/dev/null; then
24150 if test -s conftest.err; then
24151 ac_cpp_err=$ac_c_preproc_warn_flag
24158 if test -z "$ac_cpp_err"; then
24159 ac_cv_header_db_h=yes
24161 echo "$as_me: failed program was:" >&5
24162 cat "conftest.$ac_ext" >&5
24163 ac_cv_header_db_h=no
24165 rm -f conftest.err "conftest.$ac_ext"
24167 echo "$as_me:24167: result: $ac_cv_header_db_h" >&5
24168 echo "${ECHO_T}$ac_cv_header_db_h" >&6
24169 if test "$ac_cv_header_db_h" = yes; then
24171 echo "$as_me:24171: checking for version of db" >&5
24172 echo $ECHO_N "checking for version of db... $ECHO_C" >&6
24173 if test "${cf_cv_hashed_db_version+set}" = set; then
24174 echo $ECHO_N "(cached) $ECHO_C" >&6
24177 cf_cv_hashed_db_version=unknown
24179 for cf_db_version in 1 2 3 4 5 6
24182 echo "${as_me:-configure}:24182: testing checking for db version $cf_db_version ..." 1>&5
24184 cat >"conftest.$ac_ext" <<_ACEOF
24185 #line 24185 "configure"
24186 #include "confdefs.h"
24188 $ac_includes_default
24191 #ifdef DB_VERSION_MAJOR
24192 /* db2 (DB_VERSION_MAJOR=2) has also DB_VERSION_MINOR, tested with 7 */
24193 #if $cf_db_version == DB_VERSION_MAJOR
24199 #if $cf_db_version == 1
24200 /* ok: assuming this is DB 1.8.5 */
24214 rm -f "conftest.$ac_objext"
24215 if { (eval echo "$as_me:24215: \"$ac_compile\"") >&5
24216 (eval $ac_compile) 2>&5
24218 echo "$as_me:24218: \$? = $ac_status" >&5
24219 (exit "$ac_status"); } &&
24220 { ac_try='test -s "conftest.$ac_objext"'
24221 { (eval echo "$as_me:24221: \"$ac_try\"") >&5
24222 (eval $ac_try) 2>&5
24224 echo "$as_me:24224: \$? = $ac_status" >&5
24225 (exit "$ac_status"); }; }; then
24227 cf_cv_hashed_db_version=$cf_db_version
24231 echo "$as_me: failed program was:" >&5
24232 cat "conftest.$ac_ext" >&5
24234 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24238 echo "$as_me:24238: result: $cf_cv_hashed_db_version" >&5
24239 echo "${ECHO_T}$cf_cv_hashed_db_version" >&6
24241 if test "$cf_cv_hashed_db_version" = unknown ; then
24242 { { echo "$as_me:24242: error: Cannot determine version of db" >&5
24243 echo "$as_me: error: Cannot determine version of db" >&2;}
24244 { (exit 1); exit 1; }; }
24247 echo "$as_me:24247: checking for db libraries" >&5
24248 echo $ECHO_N "checking for db libraries... $ECHO_C" >&6
24249 if test "${cf_cv_hashed_db_libs+set}" = set; then
24250 echo $ECHO_N "(cached) $ECHO_C" >&6
24253 cf_cv_hashed_db_libs=unknown
24254 for cf_db_libs in "" db$cf_cv_hashed_db_version db-$cf_cv_hashed_db_version db ''
24256 cf_save_libs="$LIBS"
24257 if test -n "$cf_db_libs"; then
24259 cf_add_libs="$LIBS"
24262 for cf_add_1lib in -l$cf_db_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24263 # filter duplicates
24264 for cf_add_1lib in $cf_add_0lib; do
24265 for cf_add_2lib in $cf_add_libs; do
24266 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24271 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24273 LIBS="$cf_add_libs"
24277 echo "${as_me:-configure}:24277: testing checking for library $cf_db_libs ..." 1>&5
24279 cat >"conftest.$ac_ext" <<_ACEOF
24280 #line 24280 "configure"
24281 #include "confdefs.h"
24283 $ac_includes_default
24290 char *path = "/tmp/foo";
24291 #ifdef DB_VERSION_MAJOR
24292 #if DB_VERSION_MAJOR >= 4
24294 db_create(&result, NULL, 0);
24295 result->open(result,
24302 #elif DB_VERSION_MAJOR >= 3
24304 db_create(&result, NULL, 0);
24305 result->open(result,
24311 #elif DB_VERSION_MAJOR >= 2
24320 #endif /* DB_VERSION_MAJOR */
24322 DB *result = dbopen(path,
24328 ${cf_cv_main_return:-return}(result != 0)
24334 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24335 if { (eval echo "$as_me:24335: \"$ac_link\"") >&5
24336 (eval $ac_link) 2>&5
24338 echo "$as_me:24338: \$? = $ac_status" >&5
24339 (exit "$ac_status"); } &&
24340 { ac_try='test -s "conftest$ac_exeext"'
24341 { (eval echo "$as_me:24341: \"$ac_try\"") >&5
24342 (eval $ac_try) 2>&5
24344 echo "$as_me:24344: \$? = $ac_status" >&5
24345 (exit "$ac_status"); }; }; then
24347 if test -n "$cf_db_libs" ; then
24348 cf_cv_hashed_db_libs=$cf_db_libs
24350 cf_cv_hashed_db_libs=default
24352 LIBS="$cf_save_libs"
24356 echo "$as_me: failed program was:" >&5
24357 cat "conftest.$ac_ext" >&5
24359 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24360 LIBS="$cf_save_libs"
24364 echo "$as_me:24364: result: $cf_cv_hashed_db_libs" >&5
24365 echo "${ECHO_T}$cf_cv_hashed_db_libs" >&6
24367 if test "$cf_cv_hashed_db_libs" = unknown ; then
24368 { { echo "$as_me:24368: error: Cannot determine library for db" >&5
24369 echo "$as_me: error: Cannot determine library for db" >&2;}
24370 { (exit 1); exit 1; }; }
24371 elif test "$cf_cv_hashed_db_libs" != default ; then
24373 cf_add_libs="$LIBS"
24376 for cf_add_1lib in -l$cf_cv_hashed_db_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24377 # filter duplicates
24378 for cf_add_1lib in $cf_add_0lib; do
24379 for cf_add_2lib in $cf_add_libs; do
24380 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24385 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24387 LIBS="$cf_add_libs"
24394 { { echo "$as_me:24394: error: Cannot find db.h" >&5
24395 echo "$as_me: error: Cannot find db.h" >&2;}
24396 { (exit 1); exit 1; }; }
24402 if test -z "$cf_user_CFLAGS" && test "$enable_leaks" = yes ; then
24403 CFLAGS=`echo "${CFLAGS}" | sed -e 's%-g %%' -e 's%-g$%%' -e 's%[ ]% %g' -e 's% [ ]*% %g' -e 's%^ %%' -e 's% $%%'`
24404 CXXFLAGS=`echo "${CXXFLAGS}" | sed -e 's%-g %%' -e 's%-g$%%' -e 's%[ ]% %g' -e 's% [ ]*% %g' -e 's%^ %%' -e 's% $%%'`
24407 # Just in case, check if the C compiler has a bool type.
24409 echo "$as_me:24409: checking if we should include stdbool.h" >&5
24410 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
24412 if test "${cf_cv_header_stdbool_h+set}" = set; then
24413 echo $ECHO_N "(cached) $ECHO_C" >&6
24416 cat >"conftest.$ac_ext" <<_ACEOF
24417 #line 24417 "configure"
24418 #include "confdefs.h"
24428 rm -f "conftest.$ac_objext"
24429 if { (eval echo "$as_me:24429: \"$ac_compile\"") >&5
24430 (eval $ac_compile) 2>&5
24432 echo "$as_me:24432: \$? = $ac_status" >&5
24433 (exit "$ac_status"); } &&
24434 { ac_try='test -s "conftest.$ac_objext"'
24435 { (eval echo "$as_me:24435: \"$ac_try\"") >&5
24436 (eval $ac_try) 2>&5
24438 echo "$as_me:24438: \$? = $ac_status" >&5
24439 (exit "$ac_status"); }; }; then
24440 cf_cv_header_stdbool_h=0
24442 echo "$as_me: failed program was:" >&5
24443 cat "conftest.$ac_ext" >&5
24444 cat >"conftest.$ac_ext" <<_ACEOF
24445 #line 24445 "configure"
24446 #include "confdefs.h"
24449 #include <stdbool.h>
24460 rm -f "conftest.$ac_objext"
24461 if { (eval echo "$as_me:24461: \"$ac_compile\"") >&5
24462 (eval $ac_compile) 2>&5
24464 echo "$as_me:24464: \$? = $ac_status" >&5
24465 (exit "$ac_status"); } &&
24466 { ac_try='test -s "conftest.$ac_objext"'
24467 { (eval echo "$as_me:24467: \"$ac_try\"") >&5
24468 (eval $ac_try) 2>&5
24470 echo "$as_me:24470: \$? = $ac_status" >&5
24471 (exit "$ac_status"); }; }; then
24472 cf_cv_header_stdbool_h=1
24474 echo "$as_me: failed program was:" >&5
24475 cat "conftest.$ac_ext" >&5
24476 cf_cv_header_stdbool_h=0
24478 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24480 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24483 if test "$cf_cv_header_stdbool_h" = 1
24484 then echo "$as_me:24484: result: yes" >&5
24485 echo "${ECHO_T}yes" >&6
24486 else echo "$as_me:24486: result: no" >&5
24487 echo "${ECHO_T}no" >&6
24490 echo "$as_me:24490: checking for builtin bool type" >&5
24491 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
24493 if test "${cf_cv_cc_bool_type+set}" = set; then
24494 echo $ECHO_N "(cached) $ECHO_C" >&6
24497 cat >"conftest.$ac_ext" <<_ACEOF
24498 #line 24498 "configure"
24499 #include "confdefs.h"
24502 #include <sys/types.h>
24512 rm -f "conftest.$ac_objext"
24513 if { (eval echo "$as_me:24513: \"$ac_compile\"") >&5
24514 (eval $ac_compile) 2>&5
24516 echo "$as_me:24516: \$? = $ac_status" >&5
24517 (exit "$ac_status"); } &&
24518 { ac_try='test -s "conftest.$ac_objext"'
24519 { (eval echo "$as_me:24519: \"$ac_try\"") >&5
24520 (eval $ac_try) 2>&5
24522 echo "$as_me:24522: \$? = $ac_status" >&5
24523 (exit "$ac_status"); }; }; then
24524 cf_cv_cc_bool_type=1
24526 echo "$as_me: failed program was:" >&5
24527 cat "conftest.$ac_ext" >&5
24528 cf_cv_cc_bool_type=0
24530 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
24534 if test "$cf_cv_cc_bool_type" = 1
24535 then echo "$as_me:24535: result: yes" >&5
24536 echo "${ECHO_T}yes" >&6
24537 else echo "$as_me:24537: result: no" >&5
24538 echo "${ECHO_T}no" >&6
24541 # Check for C++ compiler characteristics (and ensure that it's there!)
24542 if test -n "$CXX" ; then
24544 ac_cpp='$CXXCPP $CPPFLAGS'
24545 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
24546 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
24547 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24548 ac_main_return="return"
24550 if test -n "$GXX" ; then
24553 LIBS="$LIBS $CXXLIBS"
24554 echo "$as_me:24554: checking if we already have C++ library" >&5
24555 echo $ECHO_N "checking if we already have C++ library... $ECHO_C" >&6
24556 cat >"conftest.$ac_ext" <<_ACEOF
24557 #line 24557 "configure"
24558 #include "confdefs.h"
24560 #include <iostream>
24565 std::cout << "Hello World!" << std::endl;
24570 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24571 if { (eval echo "$as_me:24571: \"$ac_link\"") >&5
24572 (eval $ac_link) 2>&5
24574 echo "$as_me:24574: \$? = $ac_status" >&5
24575 (exit "$ac_status"); } &&
24576 { ac_try='test -s "conftest$ac_exeext"'
24577 { (eval echo "$as_me:24577: \"$ac_try\"") >&5
24578 (eval $ac_try) 2>&5
24580 echo "$as_me:24580: \$? = $ac_status" >&5
24581 (exit "$ac_status"); }; }; then
24582 cf_have_libstdcpp=yes
24584 echo "$as_me: failed program was:" >&5
24585 cat "conftest.$ac_ext" >&5
24586 cf_have_libstdcpp=no
24588 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24589 echo "$as_me:24589: result: $cf_have_libstdcpp" >&5
24590 echo "${ECHO_T}$cf_have_libstdcpp" >&6
24593 if test "$cf_have_libstdcpp" != yes
24595 case "$cf_cv_system_name" in
24597 if test -z "`g++ -dM -E - < /dev/null | grep __KLIBC__`"; then
24598 cf_stdcpp_libname=stdcpp
24600 cf_stdcpp_libname=stdc++
24604 cf_stdcpp_libname=stdc++
24608 echo "$as_me:24608: checking for library $cf_stdcpp_libname" >&5
24609 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
24610 if test "${cf_cv_libstdcpp+set}" = set; then
24611 echo $ECHO_N "(cached) $ECHO_C" >&6
24615 LIBS="$LIBS $CXXLIBS"
24617 cf_add_libs="$LIBS"
24620 for cf_add_1lib in -l$cf_stdcpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24621 # filter duplicates
24622 for cf_add_1lib in $cf_add_0lib; do
24623 for cf_add_2lib in $cf_add_libs; do
24624 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24629 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24631 LIBS="$cf_add_libs"
24633 cat >"conftest.$ac_ext" <<_ACEOF
24634 #line 24634 "configure"
24635 #include "confdefs.h"
24637 #include <iostream>
24642 std::cout << "Hello World!" << std::endl;
24647 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24648 if { (eval echo "$as_me:24648: \"$ac_link\"") >&5
24649 (eval $ac_link) 2>&5
24651 echo "$as_me:24651: \$? = $ac_status" >&5
24652 (exit "$ac_status"); } &&
24653 { ac_try='test -s "conftest$ac_exeext"'
24654 { (eval echo "$as_me:24654: \"$ac_try\"") >&5
24655 (eval $ac_try) 2>&5
24657 echo "$as_me:24657: \$? = $ac_status" >&5
24658 (exit "$ac_status"); }; }; then
24659 cf_cv_libstdcpp=yes
24661 echo "$as_me: failed program was:" >&5
24662 cat "conftest.$ac_ext" >&5
24665 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24669 echo "$as_me:24669: result: $cf_cv_libstdcpp" >&5
24670 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
24671 test "$cf_cv_libstdcpp" = yes && {
24672 cf_add_libs="$CXXLIBS"
24675 for cf_add_1lib in -l$cf_stdcpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24676 # filter duplicates
24677 for cf_add_1lib in $cf_add_0lib; do
24678 for cf_add_2lib in $cf_add_libs; do
24679 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24684 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24686 CXXLIBS="$cf_add_libs"
24691 echo "$as_me:24691: checking whether $CXX understands -c and -o together" >&5
24692 echo $ECHO_N "checking whether $CXX understands -c and -o together... $ECHO_C" >&6
24693 if test "${cf_cv_prog_CXX_c_o+set}" = set; then
24694 echo $ECHO_N "(cached) $ECHO_C" >&6
24697 cat > conftest.$ac_ext <<CF_EOF
24700 ${cf_cv_main_return:-return}(0);
24703 # We do the test twice because some compilers refuse to overwrite an
24704 # existing .o file with -o, though they will create one.
24705 ac_try='$CXX $CXXFLAGS $CPPFLAGS -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
24706 if { (eval echo "$as_me:24706: \"$ac_try\"") >&5
24707 (eval $ac_try) 2>&5
24709 echo "$as_me:24709: \$? = $ac_status" >&5
24710 (exit "$ac_status"); } &&
24711 test -f conftest2.$ac_objext && { (eval echo "$as_me:24711: \"$ac_try\"") >&5
24712 (eval $ac_try) 2>&5
24714 echo "$as_me:24714: \$? = $ac_status" >&5
24715 (exit "$ac_status"); };
24717 eval cf_cv_prog_CXX_c_o=yes
24719 eval cf_cv_prog_CXX_c_o=no
24724 if test "$cf_cv_prog_CXX_c_o" = yes; then
24725 echo "$as_me:24725: result: yes" >&5
24726 echo "${ECHO_T}yes" >&6
24728 echo "$as_me:24728: result: no" >&5
24729 echo "${ECHO_T}no" >&6
24732 case "$GXX_VERSION" in
24733 (1.*|2.[0-6]*|[1-9][0-9].*)
24738 cf_cxx_library=unknown
24739 case "$cf_cv_system_name" in
24747 if test "$GXX" = yes; then
24748 echo "$as_me:24748: checking for lib$cf_gpp_libname" >&5
24749 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
24752 cf_add_libs="$LIBS"
24755 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24756 # filter duplicates
24757 for cf_add_1lib in $cf_add_0lib; do
24758 for cf_add_2lib in $cf_add_libs; do
24759 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24764 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24766 LIBS="$cf_add_libs"
24768 cat >"conftest.$ac_ext" <<_ACEOF
24769 #line 24769 "configure"
24770 #include "confdefs.h"
24772 #include <$cf_gpp_libname/builtin.h>
24777 two_arg_error_handler_t foo2 = lib_error_handler
24782 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24783 if { (eval echo "$as_me:24783: \"$ac_link\"") >&5
24784 (eval $ac_link) 2>&5
24786 echo "$as_me:24786: \$? = $ac_status" >&5
24787 (exit "$ac_status"); } &&
24788 { ac_try='test -s "conftest$ac_exeext"'
24789 { (eval echo "$as_me:24789: \"$ac_try\"") >&5
24790 (eval $ac_try) 2>&5
24792 echo "$as_me:24792: \$? = $ac_status" >&5
24793 (exit "$ac_status"); }; }; then
24796 cf_add_libs="$CXXLIBS"
24799 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24800 # filter duplicates
24801 for cf_add_1lib in $cf_add_0lib; do
24802 for cf_add_2lib in $cf_add_libs; do
24803 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24808 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24810 CXXLIBS="$cf_add_libs"
24812 if test "$cf_gpp_libname" = cpp ; then
24814 cat >>confdefs.h <<\EOF
24815 #define HAVE_GPP_BUILTIN_H 1
24820 cat >>confdefs.h <<\EOF
24821 #define HAVE_GXX_BUILTIN_H 1
24826 echo "$as_me: failed program was:" >&5
24827 cat "conftest.$ac_ext" >&5
24828 cat >"conftest.$ac_ext" <<_ACEOF
24829 #line 24829 "configure"
24830 #include "confdefs.h"
24832 #include <builtin.h>
24837 two_arg_error_handler_t foo2 = lib_error_handler
24842 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
24843 if { (eval echo "$as_me:24843: \"$ac_link\"") >&5
24844 (eval $ac_link) 2>&5
24846 echo "$as_me:24846: \$? = $ac_status" >&5
24847 (exit "$ac_status"); } &&
24848 { ac_try='test -s "conftest$ac_exeext"'
24849 { (eval echo "$as_me:24849: \"$ac_try\"") >&5
24850 (eval $ac_try) 2>&5
24852 echo "$as_me:24852: \$? = $ac_status" >&5
24853 (exit "$ac_status"); }; }; then
24856 cf_add_libs="$CXXLIBS"
24859 for cf_add_1lib in -l$cf_gpp_libname; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
24860 # filter duplicates
24861 for cf_add_1lib in $cf_add_0lib; do
24862 for cf_add_2lib in $cf_add_libs; do
24863 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
24868 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
24870 CXXLIBS="$cf_add_libs"
24872 cat >>confdefs.h <<\EOF
24873 #define HAVE_BUILTIN_H 1
24877 echo "$as_me: failed program was:" >&5
24878 cat "conftest.$ac_ext" >&5
24881 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24883 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
24885 echo "$as_me:24885: result: $cf_cxx_library" >&5
24886 echo "${ECHO_T}$cf_cxx_library" >&6
24896 ac_cpp='$CXXCPP $CPPFLAGS'
24897 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
24898 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
24899 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24900 ac_main_return="return"
24901 echo "$as_me:24901: checking how to run the C++ preprocessor" >&5
24902 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
24903 if test -z "$CXXCPP"; then
24904 if test "${ac_cv_prog_CXXCPP+set}" = set; then
24905 echo $ECHO_N "(cached) $ECHO_C" >&6
24907 # Double quotes because CXXCPP needs to be expanded
24908 for CXXCPP in "$CXX -E" "/lib/cpp"
24910 ac_preproc_ok=false
24911 for ac_cxx_preproc_warn_flag in '' yes
24913 # Use a header file that comes with gcc, so configuring glibc
24914 # with a fresh cross-compiler works.
24915 # On the NeXT, cc -E runs the code through the compiler's parser,
24916 # not just through cpp. "Syntax error" is here to catch this case.
24917 cat >"conftest.$ac_ext" <<_ACEOF
24918 #line 24918 "configure"
24919 #include "confdefs.h"
24920 #include <assert.h>
24923 if { (eval echo "$as_me:24923: \"$ac_cpp "conftest.$ac_ext"\"") >&5
24924 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
24926 $EGREP -v '^ *\+' conftest.er1 >conftest.err
24928 cat conftest.err >&5
24929 echo "$as_me:24929: \$? = $ac_status" >&5
24930 (exit "$ac_status"); } >/dev/null; then
24931 if test -s conftest.err; then
24932 ac_cpp_err=$ac_cxx_preproc_warn_flag
24939 if test -z "$ac_cpp_err"; then
24942 echo "$as_me: failed program was:" >&5
24943 cat "conftest.$ac_ext" >&5
24944 # Broken: fails on valid input.
24947 rm -f conftest.err "conftest.$ac_ext"
24949 # OK, works on sane cases. Now check whether non-existent headers
24950 # can be detected and how.
24951 cat >"conftest.$ac_ext" <<_ACEOF
24952 #line 24952 "configure"
24953 #include "confdefs.h"
24954 #include <ac_nonexistent.h>
24956 if { (eval echo "$as_me:24956: \"$ac_cpp "conftest.$ac_ext"\"") >&5
24957 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
24959 $EGREP -v '^ *\+' conftest.er1 >conftest.err
24961 cat conftest.err >&5
24962 echo "$as_me:24962: \$? = $ac_status" >&5
24963 (exit "$ac_status"); } >/dev/null; then
24964 if test -s conftest.err; then
24965 ac_cpp_err=$ac_cxx_preproc_warn_flag
24972 if test -z "$ac_cpp_err"; then
24973 # Broken: success on invalid input.
24976 echo "$as_me: failed program was:" >&5
24977 cat "conftest.$ac_ext" >&5
24978 # Passes both tests.
24982 rm -f conftest.err "conftest.$ac_ext"
24985 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
24986 rm -f conftest.err "conftest.$ac_ext"
24987 if $ac_preproc_ok; then
24992 ac_cv_prog_CXXCPP=$CXXCPP
24995 CXXCPP=$ac_cv_prog_CXXCPP
24997 ac_cv_prog_CXXCPP=$CXXCPP
24999 echo "$as_me:24999: result: $CXXCPP" >&5
25000 echo "${ECHO_T}$CXXCPP" >&6
25001 ac_preproc_ok=false
25002 for ac_cxx_preproc_warn_flag in '' yes
25004 # Use a header file that comes with gcc, so configuring glibc
25005 # with a fresh cross-compiler works.
25006 # On the NeXT, cc -E runs the code through the compiler's parser,
25007 # not just through cpp. "Syntax error" is here to catch this case.
25008 cat >"conftest.$ac_ext" <<_ACEOF
25009 #line 25009 "configure"
25010 #include "confdefs.h"
25011 #include <assert.h>
25014 if { (eval echo "$as_me:25014: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25015 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25017 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25019 cat conftest.err >&5
25020 echo "$as_me:25020: \$? = $ac_status" >&5
25021 (exit "$ac_status"); } >/dev/null; then
25022 if test -s conftest.err; then
25023 ac_cpp_err=$ac_cxx_preproc_warn_flag
25030 if test -z "$ac_cpp_err"; then
25033 echo "$as_me: failed program was:" >&5
25034 cat "conftest.$ac_ext" >&5
25035 # Broken: fails on valid input.
25038 rm -f conftest.err "conftest.$ac_ext"
25040 # OK, works on sane cases. Now check whether non-existent headers
25041 # can be detected and how.
25042 cat >"conftest.$ac_ext" <<_ACEOF
25043 #line 25043 "configure"
25044 #include "confdefs.h"
25045 #include <ac_nonexistent.h>
25047 if { (eval echo "$as_me:25047: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25048 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25050 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25052 cat conftest.err >&5
25053 echo "$as_me:25053: \$? = $ac_status" >&5
25054 (exit "$ac_status"); } >/dev/null; then
25055 if test -s conftest.err; then
25056 ac_cpp_err=$ac_cxx_preproc_warn_flag
25063 if test -z "$ac_cpp_err"; then
25064 # Broken: success on invalid input.
25067 echo "$as_me: failed program was:" >&5
25068 cat "conftest.$ac_ext" >&5
25069 # Passes both tests.
25073 rm -f conftest.err "conftest.$ac_ext"
25076 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
25077 rm -f conftest.err "conftest.$ac_ext"
25078 if $ac_preproc_ok; then
25081 { { echo "$as_me:25081: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
25082 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
25083 { (exit 1); exit 1; }; }
25087 ac_cpp='$CXXCPP $CPPFLAGS'
25088 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
25089 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
25090 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25091 ac_main_return="return"
25093 for ac_header in typeinfo
25095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25096 echo "$as_me:25096: checking for $ac_header" >&5
25097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25099 echo $ECHO_N "(cached) $ECHO_C" >&6
25101 cat >"conftest.$ac_ext" <<_ACEOF
25102 #line 25102 "configure"
25103 #include "confdefs.h"
25104 #include <$ac_header>
25106 if { (eval echo "$as_me:25106: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25107 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25109 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25111 cat conftest.err >&5
25112 echo "$as_me:25112: \$? = $ac_status" >&5
25113 (exit "$ac_status"); } >/dev/null; then
25114 if test -s conftest.err; then
25115 ac_cpp_err=$ac_cxx_preproc_warn_flag
25122 if test -z "$ac_cpp_err"; then
25123 eval "$as_ac_Header=yes"
25125 echo "$as_me: failed program was:" >&5
25126 cat "conftest.$ac_ext" >&5
25127 eval "$as_ac_Header=no"
25129 rm -f conftest.err "conftest.$ac_ext"
25131 echo "$as_me:25131: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
25132 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
25133 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
25134 cat >>confdefs.h <<EOF
25135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25141 for ac_header in iostream
25143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25144 echo "$as_me:25144: checking for $ac_header" >&5
25145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25147 echo $ECHO_N "(cached) $ECHO_C" >&6
25149 cat >"conftest.$ac_ext" <<_ACEOF
25150 #line 25150 "configure"
25151 #include "confdefs.h"
25152 #include <$ac_header>
25154 if { (eval echo "$as_me:25154: \"$ac_cpp "conftest.$ac_ext"\"") >&5
25155 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
25157 $EGREP -v '^ *\+' conftest.er1 >conftest.err
25159 cat conftest.err >&5
25160 echo "$as_me:25160: \$? = $ac_status" >&5
25161 (exit "$ac_status"); } >/dev/null; then
25162 if test -s conftest.err; then
25163 ac_cpp_err=$ac_cxx_preproc_warn_flag
25170 if test -z "$ac_cpp_err"; then
25171 eval "$as_ac_Header=yes"
25173 echo "$as_me: failed program was:" >&5
25174 cat "conftest.$ac_ext" >&5
25175 eval "$as_ac_Header=no"
25177 rm -f conftest.err "conftest.$ac_ext"
25179 echo "$as_me:25179: result: `eval echo '${'"$as_ac_Header"'}'`" >&5
25180 echo "${ECHO_T}`eval echo '${'"$as_ac_Header"'}'`" >&6
25181 if test "`eval echo '${'"$as_ac_Header"'}'`" = yes; then
25182 cat >>confdefs.h <<EOF
25183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25189 if test x"$ac_cv_header_iostream" = xyes ; then
25190 echo "$as_me:25190: checking if iostream uses std-namespace" >&5
25191 echo $ECHO_N "checking if iostream uses std-namespace... $ECHO_C" >&6
25192 cat >"conftest.$ac_ext" <<_ACEOF
25193 #line 25193 "configure"
25194 #include "confdefs.h"
25196 #include <iostream>
25203 cerr << "testing" << endl;
25209 rm -f "conftest.$ac_objext"
25210 if { (eval echo "$as_me:25210: \"$ac_compile\"") >&5
25211 (eval $ac_compile) 2>&5
25213 echo "$as_me:25213: \$? = $ac_status" >&5
25214 (exit "$ac_status"); } &&
25215 { ac_try='test -s "conftest.$ac_objext"'
25216 { (eval echo "$as_me:25216: \"$ac_try\"") >&5
25217 (eval $ac_try) 2>&5
25219 echo "$as_me:25219: \$? = $ac_status" >&5
25220 (exit "$ac_status"); }; }; then
25221 cf_iostream_namespace=yes
25223 echo "$as_me: failed program was:" >&5
25224 cat "conftest.$ac_ext" >&5
25225 cf_iostream_namespace=no
25227 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25228 echo "$as_me:25228: result: $cf_iostream_namespace" >&5
25229 echo "${ECHO_T}$cf_iostream_namespace" >&6
25230 if test "$cf_iostream_namespace" = yes ; then
25232 cat >>confdefs.h <<\EOF
25233 #define IOSTREAM_NAMESPACE 1
25239 echo "$as_me:25239: checking if we should include stdbool.h" >&5
25240 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
25242 if test "${cf_cv_header_stdbool_h+set}" = set; then
25243 echo $ECHO_N "(cached) $ECHO_C" >&6
25246 cat >"conftest.$ac_ext" <<_ACEOF
25247 #line 25247 "configure"
25248 #include "confdefs.h"
25258 rm -f "conftest.$ac_objext"
25259 if { (eval echo "$as_me:25259: \"$ac_compile\"") >&5
25260 (eval $ac_compile) 2>&5
25262 echo "$as_me:25262: \$? = $ac_status" >&5
25263 (exit "$ac_status"); } &&
25264 { ac_try='test -s "conftest.$ac_objext"'
25265 { (eval echo "$as_me:25265: \"$ac_try\"") >&5
25266 (eval $ac_try) 2>&5
25268 echo "$as_me:25268: \$? = $ac_status" >&5
25269 (exit "$ac_status"); }; }; then
25270 cf_cv_header_stdbool_h=0
25272 echo "$as_me: failed program was:" >&5
25273 cat "conftest.$ac_ext" >&5
25274 cat >"conftest.$ac_ext" <<_ACEOF
25275 #line 25275 "configure"
25276 #include "confdefs.h"
25279 #include <stdbool.h>
25290 rm -f "conftest.$ac_objext"
25291 if { (eval echo "$as_me:25291: \"$ac_compile\"") >&5
25292 (eval $ac_compile) 2>&5
25294 echo "$as_me:25294: \$? = $ac_status" >&5
25295 (exit "$ac_status"); } &&
25296 { ac_try='test -s "conftest.$ac_objext"'
25297 { (eval echo "$as_me:25297: \"$ac_try\"") >&5
25298 (eval $ac_try) 2>&5
25300 echo "$as_me:25300: \$? = $ac_status" >&5
25301 (exit "$ac_status"); }; }; then
25302 cf_cv_header_stdbool_h=1
25304 echo "$as_me: failed program was:" >&5
25305 cat "conftest.$ac_ext" >&5
25306 cf_cv_header_stdbool_h=0
25308 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25310 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25313 if test "$cf_cv_header_stdbool_h" = 1
25314 then echo "$as_me:25314: result: yes" >&5
25315 echo "${ECHO_T}yes" >&6
25316 else echo "$as_me:25316: result: no" >&5
25317 echo "${ECHO_T}no" >&6
25320 echo "$as_me:25320: checking for builtin bool type" >&5
25321 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
25323 if test "${cf_cv_builtin_bool+set}" = set; then
25324 echo $ECHO_N "(cached) $ECHO_C" >&6
25327 cat >"conftest.$ac_ext" <<_ACEOF
25328 #line 25328 "configure"
25329 #include "confdefs.h"
25332 #include <sys/types.h>
25342 rm -f "conftest.$ac_objext"
25343 if { (eval echo "$as_me:25343: \"$ac_compile\"") >&5
25344 (eval $ac_compile) 2>&5
25346 echo "$as_me:25346: \$? = $ac_status" >&5
25347 (exit "$ac_status"); } &&
25348 { ac_try='test -s "conftest.$ac_objext"'
25349 { (eval echo "$as_me:25349: \"$ac_try\"") >&5
25350 (eval $ac_try) 2>&5
25352 echo "$as_me:25352: \$? = $ac_status" >&5
25353 (exit "$ac_status"); }; }; then
25354 cf_cv_builtin_bool=1
25356 echo "$as_me: failed program was:" >&5
25357 cat "conftest.$ac_ext" >&5
25358 cf_cv_builtin_bool=0
25360 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25364 if test "$cf_cv_builtin_bool" = 1
25365 then echo "$as_me:25365: result: yes" >&5
25366 echo "${ECHO_T}yes" >&6
25367 else echo "$as_me:25367: result: no" >&5
25368 echo "${ECHO_T}no" >&6
25371 echo "$as_me:25371: checking for bool" >&5
25372 echo $ECHO_N "checking for bool... $ECHO_C" >&6
25373 if test "${ac_cv_type_bool+set}" = set; then
25374 echo $ECHO_N "(cached) $ECHO_C" >&6
25376 cat >"conftest.$ac_ext" <<_ACEOF
25377 #line 25377 "configure"
25378 #include "confdefs.h"
25380 #include <stdlib.h>
25383 #if defined(__cplusplus)
25385 #ifdef HAVE_GXX_BUILTIN_H
25386 #include <g++/builtin.h>
25387 #elif HAVE_GPP_BUILTIN_H
25388 #include <gpp/builtin.h>
25389 #elif HAVE_BUILTIN_H
25390 #include <builtin.h>
25395 #if $cf_cv_header_stdbool_h
25396 #include <stdbool.h>
25412 rm -f "conftest.$ac_objext"
25413 if { (eval echo "$as_me:25413: \"$ac_compile\"") >&5
25414 (eval $ac_compile) 2>&5
25416 echo "$as_me:25416: \$? = $ac_status" >&5
25417 (exit "$ac_status"); } &&
25418 { ac_try='test -s "conftest.$ac_objext"'
25419 { (eval echo "$as_me:25419: \"$ac_try\"") >&5
25420 (eval $ac_try) 2>&5
25422 echo "$as_me:25422: \$? = $ac_status" >&5
25423 (exit "$ac_status"); }; }; then
25424 ac_cv_type_bool=yes
25426 echo "$as_me: failed program was:" >&5
25427 cat "conftest.$ac_ext" >&5
25430 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25432 echo "$as_me:25432: result: $ac_cv_type_bool" >&5
25433 echo "${ECHO_T}$ac_cv_type_bool" >&6
25435 echo "$as_me:25435: checking size of bool" >&5
25436 echo $ECHO_N "checking size of bool... $ECHO_C" >&6
25437 if test "${ac_cv_sizeof_bool+set}" = set; then
25438 echo $ECHO_N "(cached) $ECHO_C" >&6
25440 if test "$ac_cv_type_bool" = yes; then
25441 if test "$cross_compiling" = yes; then
25442 # Depending upon the size, compute the lo and hi bounds.
25443 cat >"conftest.$ac_ext" <<_ACEOF
25444 #line 25444 "configure"
25445 #include "confdefs.h"
25447 #include <stdlib.h>
25450 #if defined(__cplusplus)
25452 #ifdef HAVE_GXX_BUILTIN_H
25453 #include <g++/builtin.h>
25454 #elif HAVE_GPP_BUILTIN_H
25455 #include <gpp/builtin.h>
25456 #elif HAVE_BUILTIN_H
25457 #include <builtin.h>
25462 #if $cf_cv_header_stdbool_h
25463 #include <stdbool.h>
25471 int _array_ [1 - 2 * !((sizeof (bool)) >= 0)]
25476 rm -f "conftest.$ac_objext"
25477 if { (eval echo "$as_me:25477: \"$ac_compile\"") >&5
25478 (eval $ac_compile) 2>&5
25480 echo "$as_me:25480: \$? = $ac_status" >&5
25481 (exit "$ac_status"); } &&
25482 { ac_try='test -s "conftest.$ac_objext"'
25483 { (eval echo "$as_me:25483: \"$ac_try\"") >&5
25484 (eval $ac_try) 2>&5
25486 echo "$as_me:25486: \$? = $ac_status" >&5
25487 (exit "$ac_status"); }; }; then
25490 cat >"conftest.$ac_ext" <<_ACEOF
25491 #line 25491 "configure"
25492 #include "confdefs.h"
25494 #include <stdlib.h>
25497 #if defined(__cplusplus)
25499 #ifdef HAVE_GXX_BUILTIN_H
25500 #include <g++/builtin.h>
25501 #elif HAVE_GPP_BUILTIN_H
25502 #include <gpp/builtin.h>
25503 #elif HAVE_BUILTIN_H
25504 #include <builtin.h>
25509 #if $cf_cv_header_stdbool_h
25510 #include <stdbool.h>
25518 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
25523 rm -f "conftest.$ac_objext"
25524 if { (eval echo "$as_me:25524: \"$ac_compile\"") >&5
25525 (eval $ac_compile) 2>&5
25527 echo "$as_me:25527: \$? = $ac_status" >&5
25528 (exit "$ac_status"); } &&
25529 { ac_try='test -s "conftest.$ac_objext"'
25530 { (eval echo "$as_me:25530: \"$ac_try\"") >&5
25531 (eval $ac_try) 2>&5
25533 echo "$as_me:25533: \$? = $ac_status" >&5
25534 (exit "$ac_status"); }; }; then
25535 ac_hi=$ac_mid; break
25537 echo "$as_me: failed program was:" >&5
25538 cat "conftest.$ac_ext" >&5
25539 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
25541 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25544 echo "$as_me: failed program was:" >&5
25545 cat "conftest.$ac_ext" >&5
25548 cat >"conftest.$ac_ext" <<_ACEOF
25549 #line 25549 "configure"
25550 #include "confdefs.h"
25552 #include <stdlib.h>
25555 #if defined(__cplusplus)
25557 #ifdef HAVE_GXX_BUILTIN_H
25558 #include <g++/builtin.h>
25559 #elif HAVE_GPP_BUILTIN_H
25560 #include <gpp/builtin.h>
25561 #elif HAVE_BUILTIN_H
25562 #include <builtin.h>
25567 #if $cf_cv_header_stdbool_h
25568 #include <stdbool.h>
25576 int _array_ [1 - 2 * !((sizeof (bool)) >= $ac_mid)]
25581 rm -f "conftest.$ac_objext"
25582 if { (eval echo "$as_me:25582: \"$ac_compile\"") >&5
25583 (eval $ac_compile) 2>&5
25585 echo "$as_me:25585: \$? = $ac_status" >&5
25586 (exit "$ac_status"); } &&
25587 { ac_try='test -s "conftest.$ac_objext"'
25588 { (eval echo "$as_me:25588: \"$ac_try\"") >&5
25589 (eval $ac_try) 2>&5
25591 echo "$as_me:25591: \$? = $ac_status" >&5
25592 (exit "$ac_status"); }; }; then
25593 ac_lo=$ac_mid; break
25595 echo "$as_me: failed program was:" >&5
25596 cat "conftest.$ac_ext" >&5
25597 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
25599 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25602 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25603 # Binary search between lo and hi bounds.
25604 while test "x$ac_lo" != "x$ac_hi"; do
25605 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
25606 cat >"conftest.$ac_ext" <<_ACEOF
25607 #line 25607 "configure"
25608 #include "confdefs.h"
25610 #include <stdlib.h>
25613 #if defined(__cplusplus)
25615 #ifdef HAVE_GXX_BUILTIN_H
25616 #include <g++/builtin.h>
25617 #elif HAVE_GPP_BUILTIN_H
25618 #include <gpp/builtin.h>
25619 #elif HAVE_BUILTIN_H
25620 #include <builtin.h>
25625 #if $cf_cv_header_stdbool_h
25626 #include <stdbool.h>
25634 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
25639 rm -f "conftest.$ac_objext"
25640 if { (eval echo "$as_me:25640: \"$ac_compile\"") >&5
25641 (eval $ac_compile) 2>&5
25643 echo "$as_me:25643: \$? = $ac_status" >&5
25644 (exit "$ac_status"); } &&
25645 { ac_try='test -s "conftest.$ac_objext"'
25646 { (eval echo "$as_me:25646: \"$ac_try\"") >&5
25647 (eval $ac_try) 2>&5
25649 echo "$as_me:25649: \$? = $ac_status" >&5
25650 (exit "$ac_status"); }; }; then
25653 echo "$as_me: failed program was:" >&5
25654 cat "conftest.$ac_ext" >&5
25655 ac_lo=`expr "$ac_mid" + 1`
25657 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25659 ac_cv_sizeof_bool=$ac_lo
25661 if test "$cross_compiling" = yes; then
25662 { { echo "$as_me:25662: error: cannot run test program while cross compiling" >&5
25663 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
25664 { (exit 1); exit 1; }; }
25666 cat >"conftest.$ac_ext" <<_ACEOF
25667 #line 25667 "configure"
25668 #include "confdefs.h"
25670 #include <stdlib.h>
25673 #if defined(__cplusplus)
25675 #ifdef HAVE_GXX_BUILTIN_H
25676 #include <g++/builtin.h>
25677 #elif HAVE_GPP_BUILTIN_H
25678 #include <gpp/builtin.h>
25679 #elif HAVE_BUILTIN_H
25680 #include <builtin.h>
25685 #if $cf_cv_header_stdbool_h
25686 #include <stdbool.h>
25694 FILE *f = fopen ("conftest.val", "w");
25696 $ac_main_return (1);
25697 fprintf (f, "%ld", (long)(sizeof (bool)));
25703 rm -f "conftest$ac_exeext"
25704 if { (eval echo "$as_me:25704: \"$ac_link\"") >&5
25705 (eval $ac_link) 2>&5
25707 echo "$as_me:25707: \$? = $ac_status" >&5
25708 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
25709 { (eval echo "$as_me:25709: \"$ac_try\"") >&5
25710 (eval $ac_try) 2>&5
25712 echo "$as_me:25712: \$? = $ac_status" >&5
25713 (exit "$ac_status"); }; }; then
25714 ac_cv_sizeof_bool=`cat conftest.val`
25716 echo "$as_me: program exited with status $ac_status" >&5
25717 echo "$as_me: failed program was:" >&5
25718 cat "conftest.$ac_ext" >&5
25720 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
25725 ac_cv_sizeof_bool=0
25728 echo "$as_me:25728: result: $ac_cv_sizeof_bool" >&5
25729 echo "${ECHO_T}$ac_cv_sizeof_bool" >&6
25730 cat >>confdefs.h <<EOF
25731 #define SIZEOF_BOOL $ac_cv_sizeof_bool
25734 echo "$as_me:25734: checking for type of bool" >&5
25735 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
25736 if test "${cf_cv_type_of_bool+set}" = set; then
25737 echo $ECHO_N "(cached) $ECHO_C" >&6
25741 if test "$cross_compiling" = yes; then
25743 case x$ac_cv_sizeof_bool in
25744 (x1) cf_cv_type_of_bool="unsigned char";;
25745 (x2) cf_cv_type_of_bool="unsigned short";;
25746 (x4) cf_cv_type_of_bool="unsigned int";;
25747 (x8) cf_cv_type_of_bool="unsigned long";;
25748 (*) cf_cv_type_of_bool=unknown;;
25752 cat >"conftest.$ac_ext" <<_ACEOF
25753 #line 25753 "configure"
25754 #include "confdefs.h"
25756 #include <stdlib.h>
25759 #if defined(__cplusplus)
25761 #ifdef HAVE_GXX_BUILTIN_H
25762 #include <g++/builtin.h>
25763 #elif HAVE_GPP_BUILTIN_H
25764 #include <gpp/builtin.h>
25765 #elif HAVE_BUILTIN_H
25766 #include <builtin.h>
25771 #if $cf_cv_header_stdbool_h
25772 #include <stdbool.h>
25779 FILE *fp = fopen("cf_test.out", "w");
25782 if ((bool)(-x) >= 0)
25783 fputs("unsigned ", fp);
25784 if (sizeof(x) == sizeof(int)) fputs("int", fp);
25785 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
25786 else if (sizeof(x) == sizeof(short))fputs("short",fp);
25787 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
25790 ${cf_cv_main_return:-return}(0);
25794 rm -f "conftest$ac_exeext"
25795 if { (eval echo "$as_me:25795: \"$ac_link\"") >&5
25796 (eval $ac_link) 2>&5
25798 echo "$as_me:25798: \$? = $ac_status" >&5
25799 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
25800 { (eval echo "$as_me:25800: \"$ac_try\"") >&5
25801 (eval $ac_try) 2>&5
25803 echo "$as_me:25803: \$? = $ac_status" >&5
25804 (exit "$ac_status"); }; }; then
25805 cf_cv_type_of_bool=`cat cf_test.out`
25806 if test -z "$cf_cv_type_of_bool"; then
25807 cf_cv_type_of_bool=unknown
25810 echo "$as_me: program exited with status $ac_status" >&5
25811 echo "$as_me: failed program was:" >&5
25812 cat "conftest.$ac_ext" >&5
25813 cf_cv_type_of_bool=unknown
25815 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
25820 echo "$as_me:25820: result: $cf_cv_type_of_bool" >&5
25821 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
25823 if test "$cf_cv_type_of_bool" = unknown ; then
25824 case .$NCURSES_BOOL in
25825 (.auto|.) NCURSES_BOOL=unsigned;;
25827 { echo "$as_me:25827: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
25828 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
25829 cf_cv_type_of_bool=$NCURSES_BOOL
25832 echo "$as_me:25832: checking for special defines needed for etip.h" >&5
25833 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
25834 cf_save_CXXFLAGS="$CXXFLAGS"
25837 # etip.h includes ncurses.h which includes ncurses_dll.h
25838 # But ncurses_dll.h is generated - fix here.
25839 test -d include || mkdir include
25840 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
25842 for cf_math in "" MATH_H
25844 for cf_excp in "" MATH_EXCEPTION
25846 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -Iinclude -I${srcdir}/include"
25847 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
25848 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
25849 cat >"conftest.$ac_ext" <<_ACEOF
25850 #line 25850 "configure"
25851 #include "confdefs.h"
25853 #include <etip.h.in>
25863 rm -f "conftest.$ac_objext"
25864 if { (eval echo "$as_me:25864: \"$ac_compile\"") >&5
25865 (eval $ac_compile) 2>&5
25867 echo "$as_me:25867: \$? = $ac_status" >&5
25868 (exit "$ac_status"); } &&
25869 { ac_try='test -s "conftest.$ac_objext"'
25870 { (eval echo "$as_me:25870: \"$ac_try\"") >&5
25871 (eval $ac_try) 2>&5
25873 echo "$as_me:25873: \$? = $ac_status" >&5
25874 (exit "$ac_status"); }; }; then
25876 test -n "$cf_math" && cat >>confdefs.h <<EOF
25877 #define ETIP_NEEDS_${cf_math} 1
25880 test -n "$cf_excp" && cat >>confdefs.h <<EOF
25881 #define ETIP_NEEDS_${cf_excp} 1
25884 cf_result="$cf_math $cf_excp"
25888 echo "$as_me: failed program was:" >&5
25889 cat "conftest.$ac_ext" >&5
25891 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
25894 echo "$as_me:25894: result: $cf_result" >&5
25895 echo "${ECHO_T}$cf_result" >&6
25896 CXXFLAGS="$cf_save_CXXFLAGS"
25898 if test -n "$CXX"; then
25899 echo "$as_me:25899: checking if $CXX accepts parameter initialization" >&5
25900 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
25901 if test "${cf_cv_cpp_param_init+set}" = set; then
25902 echo $ECHO_N "(cached) $ECHO_C" >&6
25906 ac_cpp='$CXXCPP $CPPFLAGS'
25907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
25908 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
25909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25910 ac_main_return="return"
25912 if test "$cross_compiling" = yes; then
25913 cf_cv_cpp_param_init=unknown
25915 cat >"conftest.$ac_ext" <<_ACEOF
25916 #line 25916 "configure"
25917 #include "confdefs.h"
25927 TEST::TEST(int x = 1) // some compilers do not like second initializer
25934 rm -f "conftest$ac_exeext"
25935 if { (eval echo "$as_me:25935: \"$ac_link\"") >&5
25936 (eval $ac_link) 2>&5
25938 echo "$as_me:25938: \$? = $ac_status" >&5
25939 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
25940 { (eval echo "$as_me:25940: \"$ac_try\"") >&5
25941 (eval $ac_try) 2>&5
25943 echo "$as_me:25943: \$? = $ac_status" >&5
25944 (exit "$ac_status"); }; }; then
25945 cf_cv_cpp_param_init=yes
25947 echo "$as_me: program exited with status $ac_status" >&5
25948 echo "$as_me: failed program was:" >&5
25949 cat "conftest.$ac_ext" >&5
25950 cf_cv_cpp_param_init=no
25952 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
25955 ac_cpp='$CXXCPP $CPPFLAGS'
25956 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
25957 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
25958 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25959 ac_main_return="return"
25962 echo "$as_me:25962: result: $cf_cv_cpp_param_init" >&5
25963 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
25965 test "$cf_cv_cpp_param_init" = yes &&
25966 cat >>confdefs.h <<\EOF
25967 #define CPP_HAS_PARAM_INIT 1
25970 if test -n "$CXX"; then
25972 echo "$as_me:25972: checking if $CXX accepts static_cast" >&5
25973 echo $ECHO_N "checking if $CXX accepts static_cast... $ECHO_C" >&6
25974 if test "${cf_cv_cpp_static_cast+set}" = set; then
25975 echo $ECHO_N "(cached) $ECHO_C" >&6
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"
25985 cat >"conftest.$ac_ext" <<_ACEOF
25986 #line 25986 "configure"
25987 #include "confdefs.h"
25992 NCursesPanel(int nlines,
26002 template<class T> class NCursesUserPanel : public NCursesPanel
26005 NCursesUserPanel (int nlines,
26009 const T* p_UserData = static_cast<T*>(0))
26010 : NCursesPanel (nlines, ncols, begin_y, begin_x)
26013 NCursesUserPanel(const T* p_UserData = static_cast<T*>(0)) : NCursesPanel()
26017 virtual ~NCursesUserPanel() {};
26024 const char* p_UserData = static_cast<char*>(0)
26029 rm -f "conftest.$ac_objext"
26030 if { (eval echo "$as_me:26030: \"$ac_compile\"") >&5
26031 (eval $ac_compile) 2>&5
26033 echo "$as_me:26033: \$? = $ac_status" >&5
26034 (exit "$ac_status"); } &&
26035 { ac_try='test -s "conftest.$ac_objext"'
26036 { (eval echo "$as_me:26036: \"$ac_try\"") >&5
26037 (eval $ac_try) 2>&5
26039 echo "$as_me:26039: \$? = $ac_status" >&5
26040 (exit "$ac_status"); }; }; then
26041 cf_cv_cpp_static_cast=yes
26043 echo "$as_me: failed program was:" >&5
26044 cat "conftest.$ac_ext" >&5
26045 cf_cv_cpp_static_cast=no
26047 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26050 ac_cpp='$CXXCPP $CPPFLAGS'
26051 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
26052 ac_link='$CXX -o "conftest$ac_exeext" $CXXFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
26053 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26054 ac_main_return="return"
26057 echo "$as_me:26057: result: $cf_cv_cpp_static_cast" >&5
26058 echo "${ECHO_T}$cf_cv_cpp_static_cast" >&6
26062 test "$cf_cv_cpp_static_cast" = yes &&
26063 cat >>confdefs.h <<\EOF
26064 #define CPP_HAS_STATIC_CAST 1
26068 CXX_ARFLAGS='$(ARFLAGS)'
26069 case "$cf_cv_system_name" in
26071 if test "$GXX" != yes ; then
26073 CXX_ARFLAGS='-ar -o'
26077 CXXLDFLAGS="-u main"
26080 if test "$GXX" != yes ; then
26082 CXX_ARFLAGS='-xar -o'
26089 cf_cv_builtin_bool=1
26091 # Just because we are not configuring against C++ right now does not
26092 # mean that a user will not want to use C++. Some distributors disable
26093 # the C++ portion of this configuration as a shortcut (or just to avoid
26094 # compiling the demo in the c++ directory). So we need a reasonable
26095 # default for the 'bool' type.
26097 # Caveat: since the storage of the bool type is not standardized, it
26100 if test "$NCURSES_BOOL" != auto ; then
26101 cf_cv_type_of_bool=$NCURSES_BOOL
26102 cf_cv_header_stdbool_h=0
26104 if test "$cf_cv_header_stdbool_h" = 1 ; then
26106 echo "$as_me:26106: checking for bool" >&5
26107 echo $ECHO_N "checking for bool... $ECHO_C" >&6
26108 if test "${ac_cv_type_bool+set}" = set; then
26109 echo $ECHO_N "(cached) $ECHO_C" >&6
26111 cat >"conftest.$ac_ext" <<_ACEOF
26112 #line 26112 "configure"
26113 #include "confdefs.h"
26115 #include <stdlib.h>
26118 #if defined(__cplusplus)
26120 #ifdef HAVE_GXX_BUILTIN_H
26121 #include <g++/builtin.h>
26122 #elif HAVE_GPP_BUILTIN_H
26123 #include <gpp/builtin.h>
26124 #elif HAVE_BUILTIN_H
26125 #include <builtin.h>
26130 #if $cf_cv_header_stdbool_h
26131 #include <stdbool.h>
26147 rm -f "conftest.$ac_objext"
26148 if { (eval echo "$as_me:26148: \"$ac_compile\"") >&5
26149 (eval $ac_compile) 2>&5
26151 echo "$as_me:26151: \$? = $ac_status" >&5
26152 (exit "$ac_status"); } &&
26153 { ac_try='test -s "conftest.$ac_objext"'
26154 { (eval echo "$as_me:26154: \"$ac_try\"") >&5
26155 (eval $ac_try) 2>&5
26157 echo "$as_me:26157: \$? = $ac_status" >&5
26158 (exit "$ac_status"); }; }; then
26159 ac_cv_type_bool=yes
26161 echo "$as_me: failed program was:" >&5
26162 cat "conftest.$ac_ext" >&5
26165 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26167 echo "$as_me:26167: result: $ac_cv_type_bool" >&5
26168 echo "${ECHO_T}$ac_cv_type_bool" >&6
26170 echo "$as_me:26170: checking size of bool" >&5
26171 echo $ECHO_N "checking size of bool... $ECHO_C" >&6
26172 if test "${ac_cv_sizeof_bool+set}" = set; then
26173 echo $ECHO_N "(cached) $ECHO_C" >&6
26175 if test "$ac_cv_type_bool" = yes; then
26176 if test "$cross_compiling" = yes; then
26177 # Depending upon the size, compute the lo and hi bounds.
26178 cat >"conftest.$ac_ext" <<_ACEOF
26179 #line 26179 "configure"
26180 #include "confdefs.h"
26182 #include <stdlib.h>
26185 #if defined(__cplusplus)
26187 #ifdef HAVE_GXX_BUILTIN_H
26188 #include <g++/builtin.h>
26189 #elif HAVE_GPP_BUILTIN_H
26190 #include <gpp/builtin.h>
26191 #elif HAVE_BUILTIN_H
26192 #include <builtin.h>
26197 #if $cf_cv_header_stdbool_h
26198 #include <stdbool.h>
26206 int _array_ [1 - 2 * !((sizeof (bool)) >= 0)]
26211 rm -f "conftest.$ac_objext"
26212 if { (eval echo "$as_me:26212: \"$ac_compile\"") >&5
26213 (eval $ac_compile) 2>&5
26215 echo "$as_me:26215: \$? = $ac_status" >&5
26216 (exit "$ac_status"); } &&
26217 { ac_try='test -s "conftest.$ac_objext"'
26218 { (eval echo "$as_me:26218: \"$ac_try\"") >&5
26219 (eval $ac_try) 2>&5
26221 echo "$as_me:26221: \$? = $ac_status" >&5
26222 (exit "$ac_status"); }; }; then
26225 cat >"conftest.$ac_ext" <<_ACEOF
26226 #line 26226 "configure"
26227 #include "confdefs.h"
26229 #include <stdlib.h>
26232 #if defined(__cplusplus)
26234 #ifdef HAVE_GXX_BUILTIN_H
26235 #include <g++/builtin.h>
26236 #elif HAVE_GPP_BUILTIN_H
26237 #include <gpp/builtin.h>
26238 #elif HAVE_BUILTIN_H
26239 #include <builtin.h>
26244 #if $cf_cv_header_stdbool_h
26245 #include <stdbool.h>
26253 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
26258 rm -f "conftest.$ac_objext"
26259 if { (eval echo "$as_me:26259: \"$ac_compile\"") >&5
26260 (eval $ac_compile) 2>&5
26262 echo "$as_me:26262: \$? = $ac_status" >&5
26263 (exit "$ac_status"); } &&
26264 { ac_try='test -s "conftest.$ac_objext"'
26265 { (eval echo "$as_me:26265: \"$ac_try\"") >&5
26266 (eval $ac_try) 2>&5
26268 echo "$as_me:26268: \$? = $ac_status" >&5
26269 (exit "$ac_status"); }; }; then
26270 ac_hi=$ac_mid; break
26272 echo "$as_me: failed program was:" >&5
26273 cat "conftest.$ac_ext" >&5
26274 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
26276 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26279 echo "$as_me: failed program was:" >&5
26280 cat "conftest.$ac_ext" >&5
26283 cat >"conftest.$ac_ext" <<_ACEOF
26284 #line 26284 "configure"
26285 #include "confdefs.h"
26287 #include <stdlib.h>
26290 #if defined(__cplusplus)
26292 #ifdef HAVE_GXX_BUILTIN_H
26293 #include <g++/builtin.h>
26294 #elif HAVE_GPP_BUILTIN_H
26295 #include <gpp/builtin.h>
26296 #elif HAVE_BUILTIN_H
26297 #include <builtin.h>
26302 #if $cf_cv_header_stdbool_h
26303 #include <stdbool.h>
26311 int _array_ [1 - 2 * !((sizeof (bool)) >= $ac_mid)]
26316 rm -f "conftest.$ac_objext"
26317 if { (eval echo "$as_me:26317: \"$ac_compile\"") >&5
26318 (eval $ac_compile) 2>&5
26320 echo "$as_me:26320: \$? = $ac_status" >&5
26321 (exit "$ac_status"); } &&
26322 { ac_try='test -s "conftest.$ac_objext"'
26323 { (eval echo "$as_me:26323: \"$ac_try\"") >&5
26324 (eval $ac_try) 2>&5
26326 echo "$as_me:26326: \$? = $ac_status" >&5
26327 (exit "$ac_status"); }; }; then
26328 ac_lo=$ac_mid; break
26330 echo "$as_me: failed program was:" >&5
26331 cat "conftest.$ac_ext" >&5
26332 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
26334 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26337 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26338 # Binary search between lo and hi bounds.
26339 while test "x$ac_lo" != "x$ac_hi"; do
26340 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
26341 cat >"conftest.$ac_ext" <<_ACEOF
26342 #line 26342 "configure"
26343 #include "confdefs.h"
26345 #include <stdlib.h>
26348 #if defined(__cplusplus)
26350 #ifdef HAVE_GXX_BUILTIN_H
26351 #include <g++/builtin.h>
26352 #elif HAVE_GPP_BUILTIN_H
26353 #include <gpp/builtin.h>
26354 #elif HAVE_BUILTIN_H
26355 #include <builtin.h>
26360 #if $cf_cv_header_stdbool_h
26361 #include <stdbool.h>
26369 int _array_ [1 - 2 * !((sizeof (bool)) <= $ac_mid)]
26374 rm -f "conftest.$ac_objext"
26375 if { (eval echo "$as_me:26375: \"$ac_compile\"") >&5
26376 (eval $ac_compile) 2>&5
26378 echo "$as_me:26378: \$? = $ac_status" >&5
26379 (exit "$ac_status"); } &&
26380 { ac_try='test -s "conftest.$ac_objext"'
26381 { (eval echo "$as_me:26381: \"$ac_try\"") >&5
26382 (eval $ac_try) 2>&5
26384 echo "$as_me:26384: \$? = $ac_status" >&5
26385 (exit "$ac_status"); }; }; then
26388 echo "$as_me: failed program was:" >&5
26389 cat "conftest.$ac_ext" >&5
26390 ac_lo=`expr "$ac_mid" + 1`
26392 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
26394 ac_cv_sizeof_bool=$ac_lo
26396 if test "$cross_compiling" = yes; then
26397 { { echo "$as_me:26397: error: cannot run test program while cross compiling" >&5
26398 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
26399 { (exit 1); exit 1; }; }
26401 cat >"conftest.$ac_ext" <<_ACEOF
26402 #line 26402 "configure"
26403 #include "confdefs.h"
26405 #include <stdlib.h>
26408 #if defined(__cplusplus)
26410 #ifdef HAVE_GXX_BUILTIN_H
26411 #include <g++/builtin.h>
26412 #elif HAVE_GPP_BUILTIN_H
26413 #include <gpp/builtin.h>
26414 #elif HAVE_BUILTIN_H
26415 #include <builtin.h>
26420 #if $cf_cv_header_stdbool_h
26421 #include <stdbool.h>
26429 FILE *f = fopen ("conftest.val", "w");
26431 $ac_main_return (1);
26432 fprintf (f, "%ld", (long)(sizeof (bool)));
26438 rm -f "conftest$ac_exeext"
26439 if { (eval echo "$as_me:26439: \"$ac_link\"") >&5
26440 (eval $ac_link) 2>&5
26442 echo "$as_me:26442: \$? = $ac_status" >&5
26443 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26444 { (eval echo "$as_me:26444: \"$ac_try\"") >&5
26445 (eval $ac_try) 2>&5
26447 echo "$as_me:26447: \$? = $ac_status" >&5
26448 (exit "$ac_status"); }; }; then
26449 ac_cv_sizeof_bool=`cat conftest.val`
26451 echo "$as_me: program exited with status $ac_status" >&5
26452 echo "$as_me: failed program was:" >&5
26453 cat "conftest.$ac_ext" >&5
26455 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26460 ac_cv_sizeof_bool=0
26463 echo "$as_me:26463: result: $ac_cv_sizeof_bool" >&5
26464 echo "${ECHO_T}$ac_cv_sizeof_bool" >&6
26465 cat >>confdefs.h <<EOF
26466 #define SIZEOF_BOOL $ac_cv_sizeof_bool
26469 echo "$as_me:26469: checking for type of bool" >&5
26470 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
26471 if test "${cf_cv_type_of_bool+set}" = set; then
26472 echo $ECHO_N "(cached) $ECHO_C" >&6
26476 if test "$cross_compiling" = yes; then
26478 case x$ac_cv_sizeof_bool in
26479 (x1) cf_cv_type_of_bool="unsigned char";;
26480 (x2) cf_cv_type_of_bool="unsigned short";;
26481 (x4) cf_cv_type_of_bool="unsigned int";;
26482 (x8) cf_cv_type_of_bool="unsigned long";;
26483 (*) cf_cv_type_of_bool=unknown;;
26487 cat >"conftest.$ac_ext" <<_ACEOF
26488 #line 26488 "configure"
26489 #include "confdefs.h"
26491 #include <stdlib.h>
26494 #if defined(__cplusplus)
26496 #ifdef HAVE_GXX_BUILTIN_H
26497 #include <g++/builtin.h>
26498 #elif HAVE_GPP_BUILTIN_H
26499 #include <gpp/builtin.h>
26500 #elif HAVE_BUILTIN_H
26501 #include <builtin.h>
26506 #if $cf_cv_header_stdbool_h
26507 #include <stdbool.h>
26514 FILE *fp = fopen("cf_test.out", "w");
26517 if ((bool)(-x) >= 0)
26518 fputs("unsigned ", fp);
26519 if (sizeof(x) == sizeof(int)) fputs("int", fp);
26520 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
26521 else if (sizeof(x) == sizeof(short))fputs("short",fp);
26522 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
26525 ${cf_cv_main_return:-return}(0);
26529 rm -f "conftest$ac_exeext"
26530 if { (eval echo "$as_me:26530: \"$ac_link\"") >&5
26531 (eval $ac_link) 2>&5
26533 echo "$as_me:26533: \$? = $ac_status" >&5
26534 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
26535 { (eval echo "$as_me:26535: \"$ac_try\"") >&5
26536 (eval $ac_try) 2>&5
26538 echo "$as_me:26538: \$? = $ac_status" >&5
26539 (exit "$ac_status"); }; }; then
26540 cf_cv_type_of_bool=`cat cf_test.out`
26541 if test -z "$cf_cv_type_of_bool"; then
26542 cf_cv_type_of_bool=unknown
26545 echo "$as_me: program exited with status $ac_status" >&5
26546 echo "$as_me: failed program was:" >&5
26547 cat "conftest.$ac_ext" >&5
26548 cf_cv_type_of_bool=unknown
26550 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
26555 echo "$as_me:26555: result: $cf_cv_type_of_bool" >&5
26556 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
26558 if test "$cf_cv_type_of_bool" = unknown ; then
26559 case .$NCURSES_BOOL in
26560 (.auto|.) NCURSES_BOOL=unsigned;;
26562 { echo "$as_me:26562: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
26563 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
26564 cf_cv_type_of_bool=$NCURSES_BOOL
26568 echo "$as_me:26568: checking for fallback type of bool" >&5
26569 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
26570 case "$host_cpu" in
26571 (i?86) cf_cv_type_of_bool=char ;;
26572 (*) cf_cv_type_of_bool=int ;;
26574 echo "$as_me:26574: result: $cf_cv_type_of_bool" >&5
26575 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
26580 # If the C compiler did not declare bool, and we did not determine that the C++
26581 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
26582 # ncurses library use the same type as C++ bool. Note that this allows one to
26583 # specify the type of bool in a configure-script option and postpone
26584 # integration with the C++ compiler provided that the types are compatible.
26586 if test "$cf_cv_cc_bool_type" = 1
26588 # oops: C has a bool. Unlikely, but C++ could differ.
26590 elif test "$cf_cv_builtin_bool" = 0
26595 # this is the normal case
26596 USE_CXX_BOOL='defined(__cplusplus)'
26599 if test -f "${srcdir}/Ada95/Makefile.in" ; then
26601 if test "$cf_with_ada" != "no" ; then
26602 if test "$with_libtool" != "no"; then
26603 { echo "$as_me:26603: WARNING: libtool does not support Ada - disabling feature" >&5
26604 echo "$as_me: WARNING: libtool does not support Ada - disabling feature" >&2;}
26609 if test "$cf_with_ada" != "no" ; then
26611 for cf_prog_gnat in gnat gnatmake gprconfig gprbuild
26614 cf_upper_prog_gnat=`echo "${cf_prog_gnat}" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
26616 unset ac_cv_path_cf_TEMP_gnat
26618 # Extract the first word of "$cf_prog_gnat", so it can be a program name with args.
26619 set dummy $cf_prog_gnat; ac_word=$2
26620 echo "$as_me:26620: checking for $ac_word" >&5
26621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26622 if test "${ac_cv_path_cf_TEMP_gnat+set}" = set; then
26623 echo $ECHO_N "(cached) $ECHO_C" >&6
26625 case $cf_TEMP_gnat in
26627 ac_cv_path_cf_TEMP_gnat="$cf_TEMP_gnat" # Let the user override the test with a path.
26630 ac_save_IFS=$IFS; IFS=$ac_path_separator
26632 for ac_dir in $ac_dummy; do
26634 test -z "$ac_dir" && ac_dir=.
26635 if $as_executable_p "$ac_dir/$ac_word"; then
26636 ac_cv_path_cf_TEMP_gnat="$ac_dir/$ac_word"
26637 echo "$as_me:26637: found $ac_dir/$ac_word" >&5
26642 test -z "$ac_cv_path_cf_TEMP_gnat" && ac_cv_path_cf_TEMP_gnat="no"
26646 cf_TEMP_gnat=$ac_cv_path_cf_TEMP_gnat
26648 if test -n "$cf_TEMP_gnat"; then
26649 echo "$as_me:26649: result: $cf_TEMP_gnat" >&5
26650 echo "${ECHO_T}$cf_TEMP_gnat" >&6
26652 echo "$as_me:26652: result: no" >&5
26653 echo "${ECHO_T}no" >&6
26656 eval "cf_cv_PATH_$cf_upper_prog_gnat=$ac_cv_path_cf_TEMP_gnat"
26658 if test "x$cf_TEMP_gnat" != xno; then
26659 unset cf_cv_gnat_version
26662 echo "$as_me:26662: checking for $cf_prog_gnat version" >&5
26663 echo $ECHO_N "checking for $cf_prog_gnat version... $ECHO_C" >&6
26664 if test "${cf_cv_gnat_version+set}" = set; then
26665 echo $ECHO_N "(cached) $ECHO_C" >&6
26668 cf_cv_gnat_version=`$cf_prog_gnat --version 2>&1 | \
26669 grep '[0-9].[0-9][0-9]*' |\
26670 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
26673 echo "$as_me:26673: result: $cf_cv_gnat_version" >&5
26674 echo "${ECHO_T}$cf_cv_gnat_version" >&6
26675 test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
26676 eval cf_TEMP_gnat=$cf_cv_gnat_version; unset cf_cv_gnat_version
26679 eval "cf_cv_VERSION_$cf_upper_prog_gnat=$cf_TEMP_gnat"
26682 unset cf_cv_gnat_version
26683 unset ac_cv_path_cf_TEMP_gnat
26686 if test "x$cf_cv_VERSION_GNATMAKE" = "xno"; then
26688 cf_cv_prog_gnat_correct=no
26690 cf_ada_make=gnatmake
26691 if test "x$cf_cv_VERSION_GPRCONFIG" = "xno"; then
26692 # gprconfig is newer than gnatmake; we can continue...
26695 rm -rf ./conftest* ./*~conftest*
26696 if mkdir conftest.src
26700 for cf_gprconfig in Ada C
26702 echo "$as_me:26702: checking for gprconfig name for $cf_gprconfig" >&5
26703 echo $ECHO_N "checking for gprconfig name for $cf_gprconfig... $ECHO_C" >&6
26704 if test "$cf_gprconfig" = C
26706 for cf_gprconfig_param in \
26707 "$cf_gprconfig,,,,GNATGCC" \
26708 "$cf_gprconfig,,,,GCC" \
26711 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
26712 test -n "$cf_gprconfig_value" && break
26715 cf_gprconfig_param=$cf_gprconfig
26716 cf_gprconfig_value=`echo s| gprconfig --config=$cf_gprconfig_param 2>&5 | ${AWK:-awk} '/^\*/{print $3;}' | head -n 1`
26718 if test -n "$cf_gprconfig_value"
26720 eval "cf_ada_config_$cf_gprconfig=$cf_gprconfig_value"
26721 echo "$as_me:26721: result: $cf_gprconfig_value" >&5
26722 echo "${ECHO_T}$cf_gprconfig_value" >&6
26724 echo "$as_me:26724: result: missing" >&5
26725 echo "${ECHO_T}missing" >&6
26731 rm -rf ./conftest* ./*~conftest*
26734 if test "x$cf_ada_config" != "x#"
26737 echo "$as_me:26737: checking for gnat version" >&5
26738 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
26739 if test "${cf_cv_gnat_version+set}" = set; then
26740 echo $ECHO_N "(cached) $ECHO_C" >&6
26743 cf_cv_gnat_version=`${cf_ada_make:-gnatmake} --version 2>&1 | \
26744 grep '[0-9].[0-9][0-9]*' |\
26745 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
26748 echo "$as_me:26748: result: $cf_cv_gnat_version" >&5
26749 echo "${ECHO_T}$cf_cv_gnat_version" >&6
26750 test -z "$cf_cv_gnat_version" && cf_cv_gnat_version=no
26752 case "$cf_cv_gnat_version" in
26753 (3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
26754 cf_cv_prog_gnat_correct=yes
26757 { echo "$as_me:26757: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&5
26758 echo "$as_me: WARNING: Unsupported GNAT version $cf_cv_gnat_version. We require 3.11 or better. Disabling Ada95 binding." >&2;}
26759 cf_cv_prog_gnat_correct=no
26763 # Extract the first word of "m4", so it can be a program name with args.
26764 set dummy m4; ac_word=$2
26765 echo "$as_me:26765: checking for $ac_word" >&5
26766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26767 if test "${ac_cv_prog_M4_exists+set}" = set; then
26768 echo $ECHO_N "(cached) $ECHO_C" >&6
26770 if test -n "$M4_exists"; then
26771 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
26773 ac_save_IFS=$IFS; IFS=$ac_path_separator
26775 for ac_dir in $ac_dummy; do
26777 test -z "$ac_dir" && ac_dir=.
26778 $as_executable_p "$ac_dir/$ac_word" || continue
26779 ac_cv_prog_M4_exists="yes"
26780 echo "$as_me:26780: found $ac_dir/$ac_word" >&5
26784 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
26787 M4_exists=$ac_cv_prog_M4_exists
26788 if test -n "$M4_exists"; then
26789 echo "$as_me:26789: result: $M4_exists" >&5
26790 echo "${ECHO_T}$M4_exists" >&6
26792 echo "$as_me:26792: result: no" >&5
26793 echo "${ECHO_T}no" >&6
26796 if test "$ac_cv_prog_M4_exists" = no; then
26797 cf_cv_prog_gnat_correct=no
26798 { echo "$as_me:26798: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&5
26799 echo "$as_me: WARNING: Ada95 binding required program m4 not found. Ada95 binding disabled" >&2;}
26801 if test "$cf_cv_prog_gnat_correct" = yes; then
26802 echo "$as_me:26802: checking if GNAT works" >&5
26803 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
26805 rm -rf ./conftest* ./*~conftest*
26806 cat >>conftest.ads <<CF_EOF
26807 procedure conftest;
26809 cat >>conftest.adb <<CF_EOF
26812 procedure conftest is
26814 Text_IO.Put ("Hello World");
26816 GNAT.OS_Lib.OS_Exit (0);
26819 if ( "$cf_ada_make" $ADAFLAGS conftest 1>&5 2>&1 ) ; then
26820 if ( ./conftest 1>&5 2>&1 ) ; then
26821 cf_cv_prog_gnat_correct=yes
26823 cf_cv_prog_gnat_correct=no
26826 cf_cv_prog_gnat_correct=no
26828 rm -rf ./conftest* ./*~conftest*
26830 echo "$as_me:26830: result: $cf_cv_prog_gnat_correct" >&5
26831 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
26834 cf_cv_prog_gnat_correct=no
26838 if test "x$cf_cv_prog_gnat_correct" = xyes; then
26840 ADAFLAGS="$ADAFLAGS -gnatpn"
26842 echo "$as_me:26842: checking optimization options for ADAFLAGS" >&5
26843 echo $ECHO_N "checking optimization options for ADAFLAGS... $ECHO_C" >&6
26847 ADAFLAGS="$ADAFLAGS -g"
26853 cf_O_flag=`echo "$CFLAGS" |sed -e 's/^.*-O/-O/' -e 's/[ ].*//'`
26855 ADAFLAGS="$ADAFLAGS $cf_O_flag"
26859 echo "$as_me:26859: result: $ADAFLAGS" >&5
26860 echo "${ECHO_T}$ADAFLAGS" >&6
26862 echo "$as_me:26862: checking if GNATPREP supports -T option" >&5
26863 echo $ECHO_N "checking if GNATPREP supports -T option... $ECHO_C" >&6
26864 if test "${cf_cv_gnatprep_opt_t+set}" = set; then
26865 echo $ECHO_N "(cached) $ECHO_C" >&6
26868 cf_cv_gnatprep_opt_t=no
26869 gnatprep -T 2>/dev/null >/dev/null && cf_cv_gnatprep_opt_t=yes
26872 echo "$as_me:26872: result: $cf_cv_gnatprep_opt_t" >&5
26873 echo "${ECHO_T}$cf_cv_gnatprep_opt_t" >&6
26874 test "$cf_cv_gnatprep_opt_t" = yes && GNATPREP_OPTS="-T $GNATPREP_OPTS"
26876 echo "$as_me:26876: checking if GNAT supports generics" >&5
26877 echo $ECHO_N "checking if GNAT supports generics... $ECHO_C" >&6
26878 case "$cf_cv_gnat_version" in
26879 (3.1[1-9]*|3.[2-9]*|[4-9].*|[1-9][0-9].[0-9]*|20[0-9][0-9])
26880 cf_gnat_generics=yes
26883 cf_gnat_generics=no
26886 echo "$as_me:26886: result: $cf_gnat_generics" >&5
26887 echo "${ECHO_T}$cf_gnat_generics" >&6
26889 if test "$cf_gnat_generics" = yes
26891 cf_compile_generics=generics
26892 cf_generic_objects="\${GENOBJS}"
26894 cf_compile_generics=
26895 cf_generic_objects=
26898 echo "$as_me:26898: checking if GNAT supports SIGINT" >&5
26899 echo $ECHO_N "checking if GNAT supports SIGINT... $ECHO_C" >&6
26900 if test "${cf_cv_gnat_sigint+set}" = set; then
26901 echo $ECHO_N "(cached) $ECHO_C" >&6
26904 rm -rf ./conftest* ./*~conftest*
26905 cat >>conftest.ads <<CF_EOF
26906 with Ada.Interrupts.Names;
26908 package ConfTest is
26910 pragma Warnings (Off); -- the next pragma exists since 3.11p
26911 pragma Unreserve_All_Interrupts;
26912 pragma Warnings (On);
26914 protected Process is
26916 function Continue return Boolean;
26917 pragma Attach_Handler (Stop, Ada.Interrupts.Names.SIGINT);
26919 Done : Boolean := False;
26924 cat >>conftest.adb <<CF_EOF
26925 package body ConfTest is
26926 protected body Process is
26931 function Continue return Boolean is
26938 if ( "$cf_ada_make" $ADAFLAGS conftest 1>&5 2>&1 ) ; then
26939 cf_cv_gnat_sigint=yes
26941 cf_cv_gnat_sigint=no
26943 rm -rf ./conftest* ./*~conftest*
26946 echo "$as_me:26946: result: $cf_cv_gnat_sigint" >&5
26947 echo "${ECHO_T}$cf_cv_gnat_sigint" >&6
26949 if test "$cf_cv_gnat_sigint" = yes ; then
26952 USE_GNAT_SIGINT="#"
26955 cf_gnat_libraries=no
26956 cf_gnat_projects=no
26958 if test "$enable_gnat_projects" != no ; then
26959 echo "$as_me:26959: checking if GNAT supports project files" >&5
26960 echo $ECHO_N "checking if GNAT supports project files... $ECHO_C" >&6
26961 case "$cf_cv_gnat_version" in
26965 case "$cf_cv_system_name" in
26969 rm -rf ./conftest* ./*~conftest*
26970 if mkdir conftest.src conftest.bin conftest.lib
26973 rm -rf ./conftest* ./*~conftest*
26974 cat >>library.gpr <<CF_EOF
26976 Kind := External ("LIB_KIND");
26977 for Library_Name use "ConfTest";
26978 for Object_Dir use ".";
26979 for Library_ALI_Dir use External("LIBRARY_DIR");
26980 for Library_Version use External ("SONAME");
26981 for Library_Kind use Kind;
26982 for Library_Dir use External("BUILD_DIR");
26983 Source_Dir := External ("SOURCE_DIR");
26984 for Source_Dirs use (Source_Dir);
26987 cat >>confpackage.ads <<CF_EOF
26988 package ConfPackage is
26989 procedure conftest;
26992 cat >>confpackage.adb <<CF_EOF
26994 package body ConfPackage is
26995 procedure conftest is
26997 Text_IO.Put ("Hello World");
27002 if ( "$cf_ada_make" $ADAFLAGS \
27004 -XBUILD_DIR="`cd ../conftest.bin;pwd`" \
27005 -XLIBRARY_DIR="`cd ../conftest.lib;pwd`" \
27006 -XSOURCE_DIR="`pwd`" \
27007 -XSONAME=libConfTest.so.1 \
27008 -XLIB_KIND=static 1>&5 2>&1 ) ; then
27009 cf_gnat_projects=yes
27013 if test -f conftest.lib/confpackage.ali
27015 cf_gnat_libraries=yes
27017 rm -rf ./conftest* ./*~conftest*
27022 echo "$as_me:27022: result: $cf_gnat_projects" >&5
27023 echo "${ECHO_T}$cf_gnat_projects" >&6
27024 fi # enable_gnat_projects
27026 if test "$cf_gnat_projects" = yes
27028 echo "$as_me:27028: checking if GNAT supports libraries" >&5
27029 echo $ECHO_N "checking if GNAT supports libraries... $ECHO_C" >&6
27030 echo "$as_me:27030: result: $cf_gnat_libraries" >&5
27031 echo "${ECHO_T}$cf_gnat_libraries" >&6
27034 USE_OLD_MAKERULES=""
27035 USE_GNAT_PROJECTS="#"
27036 USE_GNAT_MAKE_GPR="#"
27037 USE_GNAT_GPRBUILD="#"
27039 if test "$cf_gnat_projects" = yes
27041 USE_OLD_MAKERULES="#"
27042 USE_GNAT_PROJECTS=""
27043 if test "$cf_cv_VERSION_GPRBUILD" != no
27045 USE_GNAT_GPRBUILD=""
27046 elif test "$cf_cv_VERSION_GNATMAKE" != no
27048 USE_GNAT_MAKE_GPR=""
27050 { echo "$as_me:27050: WARNING: use old makefile rules since tools are missing" >&5
27051 echo "$as_me: WARNING: use old makefile rules since tools are missing" >&2;}
27055 if test "$cf_gnat_libraries" = yes
27057 USE_GNAT_LIBRARIES=""
27059 USE_GNAT_LIBRARIES="#"
27062 echo "$as_me:27062: checking for ada-compiler" >&5
27063 echo $ECHO_N "checking for ada-compiler... $ECHO_C" >&6
27065 # Check whether --with-ada-compiler or --without-ada-compiler was given.
27066 if test "${with_ada_compiler+set}" = set; then
27067 withval="$with_ada_compiler"
27068 cf_ada_compiler=$withval
27070 cf_ada_compiler=gnatmake
27073 echo "$as_me:27073: result: $cf_ada_compiler" >&5
27074 echo "${ECHO_T}$cf_ada_compiler" >&6
27076 cf_ada_package=terminal_interface
27078 echo "$as_me:27078: checking for ada-include" >&5
27079 echo $ECHO_N "checking for ada-include... $ECHO_C" >&6
27081 # Check whether --with-ada-include or --without-ada-include was given.
27082 if test "${with_ada_include+set}" = set; then
27083 withval="$with_ada_include"
27086 withval="${ADA_INCLUDE:-$prefix/share/ada/adainclude}"
27087 fi; if test -n "$prefix/share/ada/adainclude" ; then
27089 if test "x$prefix" != xNONE; then
27090 cf_path_syntax="$prefix"
27092 cf_path_syntax="$ac_default_prefix"
27095 case ".$withval" in
27096 (.\$\(*\)*|.\'*\'*)
27100 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
27102 (.\$\{*prefix\}*|.\$\{*dir\}*)
27103 eval withval="$withval"
27104 case ".$withval" in
27106 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27111 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27114 { { echo "$as_me:27114: error: expected a pathname, not \"$withval\"" >&5
27115 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
27116 { (exit 1); exit 1; }; }
27121 eval ADA_INCLUDE="$withval"
27123 echo "$as_me:27123: result: $ADA_INCLUDE" >&5
27124 echo "${ECHO_T}$ADA_INCLUDE" >&6
27126 echo "$as_me:27126: checking for ada-objects" >&5
27127 echo $ECHO_N "checking for ada-objects... $ECHO_C" >&6
27129 # Check whether --with-ada-objects or --without-ada-objects was given.
27130 if test "${with_ada_objects+set}" = set; then
27131 withval="$with_ada_objects"
27134 withval="${ADA_OBJECTS:-$prefix/lib/ada/adalib}"
27135 fi; if test -n "$prefix/lib/ada/adalib" ; then
27137 if test "x$prefix" != xNONE; then
27138 cf_path_syntax="$prefix"
27140 cf_path_syntax="$ac_default_prefix"
27143 case ".$withval" in
27144 (.\$\(*\)*|.\'*\'*)
27148 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
27150 (.\$\{*prefix\}*|.\$\{*dir\}*)
27151 eval withval="$withval"
27152 case ".$withval" in
27154 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27159 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
27162 { { echo "$as_me:27162: error: expected a pathname, not \"$withval\"" >&5
27163 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
27164 { (exit 1); exit 1; }; }
27169 eval ADA_OBJECTS="$withval"
27171 echo "$as_me:27171: result: $ADA_OBJECTS" >&5
27172 echo "${ECHO_T}$ADA_OBJECTS" >&6
27174 echo "$as_me:27174: checking if an Ada95 shared-library should be built" >&5
27175 echo $ECHO_N "checking if an Ada95 shared-library should be built... $ECHO_C" >&6
27177 # Check whether --with-ada-sharedlib or --without-ada-sharedlib was given.
27178 if test "${with_ada_sharedlib+set}" = set; then
27179 withval="$with_ada_sharedlib"
27180 with_ada_sharedlib=$withval
27182 with_ada_sharedlib=no
27184 echo "$as_me:27184: result: $with_ada_sharedlib" >&5
27185 echo "${ECHO_T}$with_ada_sharedlib" >&6
27187 if test "x$with_ada_sharedlib" != xno
27189 if test "x$cf_gnat_projects" != xyes
27191 { echo "$as_me:27191: WARNING: disabling shared-library since GNAT projects are not supported" >&5
27192 echo "$as_me: WARNING: disabling shared-library since GNAT projects are not supported" >&2;}
27193 with_ada_sharedlib=no
27197 ADA_SHAREDLIB='lib$(LIB_NAME).so.1'
27198 MAKE_ADA_SHAREDLIB="#"
27200 if test "x$with_ada_sharedlib" != xno
27202 MAKE_ADA_SHAREDLIB=
27203 if test "x$with_ada_sharedlib" != xyes
27205 ADA_SHAREDLIB="$with_ada_sharedlib"
27209 # allow the Ada binding to be renamed
27211 echo "$as_me:27211: checking for ada-libname" >&5
27212 echo $ECHO_N "checking for ada-libname... $ECHO_C" >&6
27214 # Check whether --with-ada-libname or --without-ada-libname was given.
27215 if test "${with_ada_libname+set}" = set; then
27216 withval="$with_ada_libname"
27217 ADA_LIBNAME=$withval
27219 ADA_LIBNAME=AdaCurses
27221 case "x$ADA_LIBNAME" in
27223 ADA_LIBNAME=AdaCurses
27227 echo "$as_me:27227: result: $ADA_LIBNAME" >&5
27228 echo "${ECHO_T}$ADA_LIBNAME" >&6
27236 # do this "late" to avoid conflict with header-checks
27237 if test "x$with_widec" = xyes ; then
27238 echo "$as_me:27238: checking for wchar_t" >&5
27239 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
27240 if test "${ac_cv_type_wchar_t+set}" = set; then
27241 echo $ECHO_N "(cached) $ECHO_C" >&6
27243 cat >"conftest.$ac_ext" <<_ACEOF
27244 #line 27244 "configure"
27245 #include "confdefs.h"
27246 $ac_includes_default
27252 if (sizeof (wchar_t))
27258 rm -f "conftest.$ac_objext"
27259 if { (eval echo "$as_me:27259: \"$ac_compile\"") >&5
27260 (eval $ac_compile) 2>&5
27262 echo "$as_me:27262: \$? = $ac_status" >&5
27263 (exit "$ac_status"); } &&
27264 { ac_try='test -s "conftest.$ac_objext"'
27265 { (eval echo "$as_me:27265: \"$ac_try\"") >&5
27266 (eval $ac_try) 2>&5
27268 echo "$as_me:27268: \$? = $ac_status" >&5
27269 (exit "$ac_status"); }; }; then
27270 ac_cv_type_wchar_t=yes
27272 echo "$as_me: failed program was:" >&5
27273 cat "conftest.$ac_ext" >&5
27274 ac_cv_type_wchar_t=no
27276 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27278 echo "$as_me:27278: result: $ac_cv_type_wchar_t" >&5
27279 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
27281 echo "$as_me:27281: checking size of wchar_t" >&5
27282 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
27283 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
27284 echo $ECHO_N "(cached) $ECHO_C" >&6
27286 if test "$ac_cv_type_wchar_t" = yes; then
27287 if test "$cross_compiling" = yes; then
27288 # Depending upon the size, compute the lo and hi bounds.
27289 cat >"conftest.$ac_ext" <<_ACEOF
27290 #line 27290 "configure"
27291 #include "confdefs.h"
27292 $ac_includes_default
27296 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= 0)]
27301 rm -f "conftest.$ac_objext"
27302 if { (eval echo "$as_me:27302: \"$ac_compile\"") >&5
27303 (eval $ac_compile) 2>&5
27305 echo "$as_me:27305: \$? = $ac_status" >&5
27306 (exit "$ac_status"); } &&
27307 { ac_try='test -s "conftest.$ac_objext"'
27308 { (eval echo "$as_me:27308: \"$ac_try\"") >&5
27309 (eval $ac_try) 2>&5
27311 echo "$as_me:27311: \$? = $ac_status" >&5
27312 (exit "$ac_status"); }; }; then
27315 cat >"conftest.$ac_ext" <<_ACEOF
27316 #line 27316 "configure"
27317 #include "confdefs.h"
27318 $ac_includes_default
27322 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
27327 rm -f "conftest.$ac_objext"
27328 if { (eval echo "$as_me:27328: \"$ac_compile\"") >&5
27329 (eval $ac_compile) 2>&5
27331 echo "$as_me:27331: \$? = $ac_status" >&5
27332 (exit "$ac_status"); } &&
27333 { ac_try='test -s "conftest.$ac_objext"'
27334 { (eval echo "$as_me:27334: \"$ac_try\"") >&5
27335 (eval $ac_try) 2>&5
27337 echo "$as_me:27337: \$? = $ac_status" >&5
27338 (exit "$ac_status"); }; }; then
27339 ac_hi=$ac_mid; break
27341 echo "$as_me: failed program was:" >&5
27342 cat "conftest.$ac_ext" >&5
27343 ac_lo=`expr "$ac_mid" + 1`; ac_mid=`expr 2 '*' "$ac_mid" + 1`
27345 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27348 echo "$as_me: failed program was:" >&5
27349 cat "conftest.$ac_ext" >&5
27352 cat >"conftest.$ac_ext" <<_ACEOF
27353 #line 27353 "configure"
27354 #include "confdefs.h"
27355 $ac_includes_default
27359 int _array_ [1 - 2 * !((sizeof (wchar_t)) >= $ac_mid)]
27364 rm -f "conftest.$ac_objext"
27365 if { (eval echo "$as_me:27365: \"$ac_compile\"") >&5
27366 (eval $ac_compile) 2>&5
27368 echo "$as_me:27368: \$? = $ac_status" >&5
27369 (exit "$ac_status"); } &&
27370 { ac_try='test -s "conftest.$ac_objext"'
27371 { (eval echo "$as_me:27371: \"$ac_try\"") >&5
27372 (eval $ac_try) 2>&5
27374 echo "$as_me:27374: \$? = $ac_status" >&5
27375 (exit "$ac_status"); }; }; then
27376 ac_lo=$ac_mid; break
27378 echo "$as_me: failed program was:" >&5
27379 cat "conftest.$ac_ext" >&5
27380 ac_hi=`expr "$ac_mid" - 1`; ac_mid=`expr 2 '*' "$ac_mid"`
27382 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27385 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27386 # Binary search between lo and hi bounds.
27387 while test "x$ac_lo" != "x$ac_hi"; do
27388 ac_mid=`expr '(' "$ac_hi" - "$ac_lo" ')' / 2 + "$ac_lo"`
27389 cat >"conftest.$ac_ext" <<_ACEOF
27390 #line 27390 "configure"
27391 #include "confdefs.h"
27392 $ac_includes_default
27396 int _array_ [1 - 2 * !((sizeof (wchar_t)) <= $ac_mid)]
27401 rm -f "conftest.$ac_objext"
27402 if { (eval echo "$as_me:27402: \"$ac_compile\"") >&5
27403 (eval $ac_compile) 2>&5
27405 echo "$as_me:27405: \$? = $ac_status" >&5
27406 (exit "$ac_status"); } &&
27407 { ac_try='test -s "conftest.$ac_objext"'
27408 { (eval echo "$as_me:27408: \"$ac_try\"") >&5
27409 (eval $ac_try) 2>&5
27411 echo "$as_me:27411: \$? = $ac_status" >&5
27412 (exit "$ac_status"); }; }; then
27415 echo "$as_me: failed program was:" >&5
27416 cat "conftest.$ac_ext" >&5
27417 ac_lo=`expr "$ac_mid" + 1`
27419 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
27421 ac_cv_sizeof_wchar_t=$ac_lo
27423 if test "$cross_compiling" = yes; then
27424 { { echo "$as_me:27424: error: cannot run test program while cross compiling" >&5
27425 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
27426 { (exit 1); exit 1; }; }
27428 cat >"conftest.$ac_ext" <<_ACEOF
27429 #line 27429 "configure"
27430 #include "confdefs.h"
27431 $ac_includes_default
27435 FILE *f = fopen ("conftest.val", "w");
27437 $ac_main_return (1);
27438 fprintf (f, "%ld", (long)(sizeof (wchar_t)));
27444 rm -f "conftest$ac_exeext"
27445 if { (eval echo "$as_me:27445: \"$ac_link\"") >&5
27446 (eval $ac_link) 2>&5
27448 echo "$as_me:27448: \$? = $ac_status" >&5
27449 (exit "$ac_status"); } && { ac_try='"./conftest$ac_exeext"'
27450 { (eval echo "$as_me:27450: \"$ac_try\"") >&5
27451 (eval $ac_try) 2>&5
27453 echo "$as_me:27453: \$? = $ac_status" >&5
27454 (exit "$ac_status"); }; }; then
27455 ac_cv_sizeof_wchar_t=`cat conftest.val`
27457 echo "$as_me: program exited with status $ac_status" >&5
27458 echo "$as_me: failed program was:" >&5
27459 cat "conftest.$ac_ext" >&5
27461 rm -f core ./core.* ./*.core "conftest$ac_exeext" "conftest.$ac_objext" "conftest.$ac_ext"
27466 ac_cv_sizeof_wchar_t=0
27469 echo "$as_me:27469: result: $ac_cv_sizeof_wchar_t" >&5
27470 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
27471 cat >>confdefs.h <<EOF
27472 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
27475 # cross-compiling to mingw can run into the problem that attempting to
27476 # link with the regex library fails, causing the test to not set this to
27477 # a number. "recent" autoconf does not address this problem either -TD
27478 if test -z "$ac_cv_sizeof_wchar_t"
27480 test -n "$verbose" && echo " test failed (assume 2)" 1>&6
27482 echo "${as_me:-configure}:27482: testing test failed (assume 2) ..." 1>&5
27484 sed /SIZEOF_WCHAR_T/d confdefs.h >confdefs.tmp
27485 mv confdefs.tmp confdefs.h
27486 echo "#define SIZEOF_WCHAR_T 2" >>confdefs.h
27490 ### Construct the ncurses library-subsets, if any, from this set of keywords:
27491 ### none, base, ext_funcs, ext_tinfo, ticlib, termlib, widechar
27493 ### ticlib modules may be a separate library, otherwise contained in termlib.
27494 ### termlib modules may be a separate library, otherwise contained in ncurses.
27496 ### The of "+" or " " between the tokens controls the way the script
27497 ### chooses to split module lists into libraries.
27499 ### (see CF_LIB_RULES).
27500 echo "$as_me:27500: checking for library subsets" >&5
27501 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
27504 if test "x$cf_with_progs" = xyes || test "$with_ticlib" != no || test "$with_termcap" != no; then
27505 LIB_SUBSETS="${LIB_SUBSETS}ticlib"
27506 if test "$with_ticlib" != no ; then
27507 LIB_SUBSETS="${LIB_SUBSETS} "
27509 LIB_SUBSETS="${LIB_SUBSETS}+"
27513 LIB_SUBSETS="${LIB_SUBSETS}termlib"
27514 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
27516 if test "$with_termlib" != no ; then
27517 LIB_SUBSETS="${LIB_SUBSETS} "
27519 LIB_SUBSETS="${LIB_SUBSETS}+"
27522 LIB_SUBSETS="${LIB_SUBSETS}base"
27524 # Most term-driver calls are to tinfo, but some like init_pair are to the
27525 # base library (so it resides in base).
27526 if test "$with_term_driver" != no ; then
27527 LIB_SUBSETS="${LIB_SUBSETS}+port_drivers"
27528 case "$cf_cv_system_name" in
27529 (*mingw32*|*mingw64*)
27530 if test "x$with_exp_win32" = xyes ; then
27531 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32"
27533 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo+port_win32con"
27535 CPPFLAGS="$CPPFLAGS -DUSE_WIN32CON_DRIVER"
27538 LIB_SUBSETS="${LIB_SUBSETS}+port_tinfo"
27541 elif test "x$with_exp_win32" = xyes ; then
27542 case "$cf_cv_system_name" in
27543 (*mingw32*|*mingw64*)
27544 LIB_SUBSETS="${LIB_SUBSETS}+port_win32"
27551 test "x$with_widec" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
27552 test "x$with_ext_funcs" = xyes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
27554 echo "$as_me:27554: result: $LIB_SUBSETS" >&5
27555 echo "${ECHO_T}$LIB_SUBSETS" >&6
27557 ### Construct the list of include-directories to be generated
27559 if test "$srcdir" != "."; then
27560 CPPFLAGS="-I\${srcdir}/../include $CPPFLAGS"
27562 CPPFLAGS="-I../include $CPPFLAGS"
27563 if test "$srcdir" != "."; then
27564 CPPFLAGS="-I\${srcdir} $CPPFLAGS"
27566 CPPFLAGS="-I. $CPPFLAGS"
27568 ACPPFLAGS="-I. -I../include -I../../include $ACPPFLAGS"
27569 if test "$srcdir" != "."; then
27570 ACPPFLAGS="-I\${srcdir}/../../include $ACPPFLAGS"
27572 if test "$GCC" != yes; then
27573 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
27574 elif test "$includedir" != "/usr/include"; then
27575 if test "$includedir" = '${prefix}/include' ; then
27576 if test x$prefix != x/usr ; then
27577 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
27580 ACPPFLAGS="$ACPPFLAGS -I\${includedir}"
27584 ### Build up pieces for makefile rules
27585 echo "$as_me:27585: checking default library suffix" >&5
27586 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
27588 case $DFT_LWR_MODEL in
27589 (libtool) DFT_ARG_SUFFIX='' ;;
27590 (normal) DFT_ARG_SUFFIX='' ;;
27591 (debug) DFT_ARG_SUFFIX='_g' ;;
27592 (profile) DFT_ARG_SUFFIX='_p' ;;
27593 (shared) DFT_ARG_SUFFIX='' ;;
27595 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
27596 echo "$as_me:27596: result: $DFT_ARG_SUFFIX" >&5
27597 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
27599 echo "$as_me:27599: checking default library-dependency suffix" >&5
27600 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
27602 case X$DFT_LWR_MODEL in
27604 DFT_LIB_SUFFIX='.la'
27605 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27608 case "$cf_cv_system_name" in
27610 DFT_LIB_SUFFIX='_g.lib'
27613 DFT_LIB_SUFFIX='_g.a'
27616 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27619 case "$cf_cv_system_name" in
27621 DFT_LIB_SUFFIX='_p.lib'
27624 DFT_LIB_SUFFIX='_p.a'
27627 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27630 case "$cf_cv_system_name" in
27632 DFT_LIB_SUFFIX='.so'
27633 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27636 DFT_LIB_SUFFIX='.dll'
27637 DFT_DEP_SUFFIX='.dll.lib'
27639 (cygwin*|msys*|mingw*)
27640 DFT_LIB_SUFFIX='.dll'
27641 DFT_DEP_SUFFIX='.dll.a'
27644 DFT_LIB_SUFFIX='.dylib'
27645 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27650 DFT_LIB_SUFFIX='.so'
27651 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27654 DFT_LIB_SUFFIX='.sl'
27655 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27660 DFT_LIB_SUFFIX='.so'
27661 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27668 DFT_LIB_SUFFIX='.lib'
27671 DFT_LIB_SUFFIX='.a'
27674 DFT_DEP_SUFFIX=$DFT_LIB_SUFFIX
27677 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
27679 DFT_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_LIB_SUFFIX}"
27680 DFT_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${DFT_DEP_SUFFIX}"
27682 echo "$as_me:27682: result: $DFT_DEP_SUFFIX" >&5
27683 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
27685 echo "$as_me:27685: checking default object directory" >&5
27686 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
27688 case $DFT_LWR_MODEL in
27689 (libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
27690 (normal) DFT_OBJ_SUBDIR='objects' ;;
27691 (debug) DFT_OBJ_SUBDIR='obj_g' ;;
27692 (profile) DFT_OBJ_SUBDIR='obj_p' ;;
27694 case "$cf_cv_system_name" in
27696 DFT_OBJ_SUBDIR='objects' ;;
27698 DFT_OBJ_SUBDIR='obj_s' ;;
27701 echo "$as_me:27701: result: $DFT_OBJ_SUBDIR" >&5
27702 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
27704 if test "x$cf_with_cxx" = xyes ; then
27705 echo "$as_me:27705: checking c++ library-dependency suffix" >&5
27706 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
27707 if test "$with_libtool" != "no"; then
27708 # libtool thinks it can make c++ shared libraries (perhaps only g++)
27709 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
27710 elif test "$with_shared_cxx" != "no"; then
27711 # also for g++ users...
27712 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
27714 # we normally make a static library because C/C++ library rules differ
27718 CXX_LIB_SUFFIX='.la'
27719 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27722 case "$cf_cv_system_name" in
27724 CXX_LIB_SUFFIX='_g.lib'
27727 CXX_LIB_SUFFIX='_g.a'
27730 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27733 case "$cf_cv_system_name" in
27735 CXX_LIB_SUFFIX='_p.lib'
27738 CXX_LIB_SUFFIX='_p.a'
27741 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27744 case "$cf_cv_system_name" in
27746 CXX_LIB_SUFFIX='.so'
27747 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27750 CXX_LIB_SUFFIX='.dll'
27751 CXX_DEP_SUFFIX='.dll.lib'
27753 (cygwin*|msys*|mingw*)
27754 CXX_LIB_SUFFIX='.dll'
27755 CXX_DEP_SUFFIX='.dll.a'
27758 CXX_LIB_SUFFIX='.dylib'
27759 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27764 CXX_LIB_SUFFIX='.so'
27765 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27768 CXX_LIB_SUFFIX='.sl'
27769 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27774 CXX_LIB_SUFFIX='.so'
27775 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27782 CXX_LIB_SUFFIX='.lib'
27785 CXX_LIB_SUFFIX='.a'
27788 CXX_DEP_SUFFIX=$CXX_LIB_SUFFIX
27791 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
27793 CXX_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_LIB_SUFFIX}"
27794 CXX_DEP_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}${CXX_DEP_SUFFIX}"
27798 echo "$as_me:27798: result: $CXX_LIB_SUFFIX" >&5
27799 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
27803 # do not want -ldl in build except as needed for -lncurses dependency
27804 if test "x$with_dlsym" = xyes ; then
27805 if test "$DFT_LWR_MODEL" = shared || \
27806 test "$DFT_LWR_MODEL" = libtool ; then
27808 # remove dl library from $LIBS
27809 LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
27813 ### Set up low-level terminfo dependencies for makefiles.
27815 # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but
27816 # do not need libdl
27818 if test "x$with_dlsym" = xyes ; then
27820 # remove dl library from $SHLIB_LIST
27821 TINFO_LIST=`echo "$SHLIB_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
27825 USE_ARG_SUFFIX="${DFT_ARG_SUFFIX}${EXTRA_SUFFIX}"
27826 USE_LIB_SUFFIX="${LIB_SUFFIX}${EXTRA_SUFFIX}"
27827 USE_CFG_SUFFIX=${DFT_ARG_SUFFIX}${cf_cv_abi_version}
27828 if test -n "$EXTRA_SUFFIX" && test "x$EXTRA_SUFFIX" != "x${cf_cv_abi_version}"
27830 USE_CFG_SUFFIX="${USE_CFG_SUFFIX}${EXTRA_SUFFIX}"
27833 if test "$with_ticlib" != no ; then
27835 if test "x$with_ticlib" != xyes ; then
27836 TICS_NAME=$with_ticlib
27837 TICS_SUFFIX="`echo "${DFT_LIB_SUFFIX}" |sed -e "s/^${USE_LIB_SUFFIX}//"`"
27838 TICS_ARG_SUFFIX="${with_ticlib}`echo "${USE_ARG_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
27839 TICS_DEP_SUFFIX="${with_ticlib}`echo "${DFT_DEP_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
27840 TICS_LIB_SUFFIX="${with_ticlib}"
27842 TICS_SUFFIX=${DFT_LIB_SUFFIX}
27843 TICS_ARG_SUFFIX="${TICS_NAME}${USE_ARG_SUFFIX}"
27844 TICS_DEP_SUFFIX="${TICS_NAME}${DFT_DEP_SUFFIX}"
27845 TICS_LIB_SUFFIX="${TICS_NAME}${USE_LIB_SUFFIX}"
27847 TICS_LDFLAGS="-L${LIB_DIR}"
27848 TICS_LIBS="-l${TICS_ARG_SUFFIX}"
27850 TICS_SUFFIX=${DFT_LIB_SUFFIX}
27851 TICS_LDFLAGS="-L${LIB_DIR}"
27852 TICS_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
27855 if test "$with_termlib" != no ; then
27857 if test "x$with_termlib" != xyes ; then
27858 TINFO_NAME=$with_termlib
27859 TINFO_SUFFIX="`echo "${DFT_LIB_SUFFIX}" |sed -e "s/^${USE_LIB_SUFFIX}//"`"
27860 TINFO_ARG_SUFFIX="${with_termlib}`echo "${USE_ARG_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
27861 TINFO_DEP_SUFFIX="${with_termlib}`echo "${DFT_DEP_SUFFIX}" |sed -e "s/^${LIB_SUFFIX}//"`"
27862 TINFO_LIB_SUFFIX="${with_termlib}"
27864 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
27865 TINFO_ARG_SUFFIX="${TINFO_NAME}${USE_ARG_SUFFIX}"
27866 TINFO_DEP_SUFFIX="${TINFO_NAME}${DFT_DEP_SUFFIX}"
27867 TINFO_LIB_SUFFIX="${TINFO_NAME}${USE_LIB_SUFFIX}"
27870 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
27871 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TINFO_DEP_SUFFIX}"
27872 if test "$DFT_LWR_MODEL" = "libtool"; then
27873 TEST_ARGS="${TEST_DEPS}"
27874 TEST_ARG2="${TEST_DEP2}"
27875 TINFO_LDFLAGS="-L${LIB_DIR}"
27876 TINFO_LIBS="$TEST_ARGS"
27877 TICS_LIST="$SHLIB_LIST $TEST_ARGS"
27878 SHLIB_LIST="${SHLIB_LIST} $TEST_ARGS"
27880 TEST_ARGS="-l${TINFO_ARG_SUFFIX}"
27881 TEST_ARG2="-l${TINFO_ARG_SUFFIX}"
27882 if test "x$with_term_driver" != xno ; then
27883 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
27884 TICS_LIBS="$TICS_LIBS -l${LIB_NAME}${USE_ARG_SUFFIX}"
27885 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
27887 TICS_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
27888 TINFO_LIBS="$TEST_ARGS"
27890 TINFO_LDFLAGS="-L${LIB_DIR}"
27891 SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
27894 # the next lines are needed for linking libtic over libncurses
27895 TINFO_NAME=${LIB_NAME}
27896 TINFO_SUFFIX=${DFT_LIB_SUFFIX}
27897 TINFO_ARG_SUFFIX=${LIB_NAME}${USE_ARG_SUFFIX}
27898 if test "x$with_tic_depends" = xyes ; then
27899 TICS_LIST="$SHLIB_LIST -l${LIB_NAME}${USE_ARG_SUFFIX}"
27901 TICS_LIST="$SHLIB_LIST"
27904 TINFO_LDFLAGS="-L${LIB_DIR}"
27905 TINFO_LIBS="-l${LIB_NAME}${USE_ARG_SUFFIX}"
27908 if test "$DFT_LWR_MODEL" = shared ; then
27909 case "$cf_cv_system_name" in
27911 # "lib" files have ".dll.a" suffix, "cyg"or "msys-" files have ".dll"
27917 if test "x$with_dlsym" = xyes ; then
27919 # remove dl library from $TICS_LIST
27920 TICS_LIST=`echo "$TICS_LIST" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'`
27924 if test "$DFT_LWR_MODEL" = "libtool"; then
27929 TINFO_LDFLAGS2=`echo "$TINFO_LDFLAGS" | sed -e 's,-L\.\./,-L../../,'`
27931 case "$DFT_LWR_MODEL" in
27932 (normal|debug|profile)
27934 if test "$GCC" = yes ; then
27935 case "$cf_cv_system_name" in
27936 (OS/2*|os2*|aix[4]*|solaris2.1[0-9]|darwin*)
27940 (*) # normally, except when broken
27941 LDFLAGS_STATIC=-static
27942 LDFLAGS_SHARED=-dynamic
27946 case "$cf_cv_system_name" in
27947 (aix[4-7]*) # from ld manpage
27948 LDFLAGS_STATIC=-bstatic
27949 LDFLAGS_SHARED=-bdynamic
27951 (hpux*) # from ld manpage for hpux10.20, hpux11.11
27952 # We could also use just "archive" and "shared".
27953 LDFLAGS_STATIC=-Wl,-a,archive_shared
27954 LDFLAGS_SHARED=-Wl,-a,shared_archive
27956 (irix*) # from ld manpage IRIX64
27957 LDFLAGS_STATIC=-Bstatic
27958 LDFLAGS_SHARED=-Bdynamic
27960 (osf[45]*) # from ld manpage osf4.0d, osf5.1
27961 # alternative "-oldstyle_liblookup" (not in cc manpage)
27962 LDFLAGS_STATIC=-noso
27963 LDFLAGS_SHARED=-so_archive
27966 LDFLAGS_STATIC=-Bstatic
27967 LDFLAGS_SHARED=-Bdynamic
27972 if test -n "$LDFLAGS_STATIC" && test -n "$LDFLAGS_SHARED"
27974 echo "$as_me:27974: checking if linker supports switching between static/dynamic" >&5
27975 echo $ECHO_N "checking if linker supports switching between static/dynamic... $ECHO_C" >&6
27977 rm -f libconftest.a
27978 cat >conftest.$ac_ext <<EOF
27979 #line 27979 "configure"
27981 int cf_ldflags_static(FILE *fp) { return fflush(fp); }
27983 if { (eval echo "$as_me:27983: \"$ac_compile\"") >&5
27984 (eval $ac_compile) 2>&5
27986 echo "$as_me:27986: \$? = $ac_status" >&5
27987 (exit "$ac_status"); } ; then
27988 ( $AR $ARFLAGS libconftest.a conftest.o ) 2>&5 1>/dev/null
27989 ( eval $RANLIB libconftest.a ) 2>&5 >/dev/null
27993 cf_save_LIBS="$LIBS"
27995 LIBS="$LDFLAGS_STATIC -L`pwd` -lconftest $LDFLAGS_DYNAMIC $LIBS"
27996 cat >"conftest.$ac_ext" <<_ACEOF
27997 #line 27997 "configure"
27998 #include "confdefs.h"
28000 #line 28000 "configure"
28002 int cf_ldflags_static(FILE *fp);
28008 return cf_ldflags_static(stdin);
28014 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
28015 if { (eval echo "$as_me:28015: \"$ac_link\"") >&5
28016 (eval $ac_link) 2>&5
28018 echo "$as_me:28018: \$? = $ac_status" >&5
28019 (exit "$ac_status"); } &&
28020 { ac_try='test -s "conftest$ac_exeext"'
28021 { (eval echo "$as_me:28021: \"$ac_try\"") >&5
28022 (eval $ac_try) 2>&5
28024 echo "$as_me:28024: \$? = $ac_status" >&5
28025 (exit "$ac_status"); }; }; then
28027 # some linkers simply ignore the -dynamic
28028 case x`file "conftest$ac_exeext" 2>/dev/null` in
28030 cf_ldflags_static=no
28033 cf_ldflags_static=yes
28038 echo "$as_me: failed program was:" >&5
28039 cat "conftest.$ac_ext" >&5
28040 cf_ldflags_static=no
28042 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
28044 rm -f libconftest.*
28045 LIBS="$cf_save_LIBS"
28047 echo "$as_me:28047: result: $cf_ldflags_static" >&5
28048 echo "${ECHO_T}$cf_ldflags_static" >&6
28050 if test "$cf_ldflags_static" != yes
28063 echo "$as_me:28063: checking where we will install curses.h" >&5
28064 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
28067 if test "$with_overwrite" = no && \
28068 { test "x$includedir" = 'x${prefix}/include' || \
28069 test "x$includedir" = "x${prefix}/include"; }
28071 includesubdir="/ncurses${USE_LIB_SUFFIX}"
28073 echo "$as_me:28073: result: ${includedir}${includesubdir}" >&5
28074 echo "${ECHO_T}${includedir}${includesubdir}" >&6
28076 ### Resolve a conflict between normal and wide-curses by forcing applications
28077 ### that will need libutf8 to add it to their configure script.
28078 if test "$with_overwrite" != no ; then
28079 if test "$NCURSES_LIBUTF8" = 1 ; then
28080 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
28081 { echo "$as_me:28081: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
28082 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
28085 WITH_OVERWRITE=$with_overwrite
28087 ### At least on MinGW a shared library build without libtool
28088 ### requires adding the additional libs to the link list.
28089 case "$cf_cv_system_name" in
28090 (*mingw32*|*mingw64*)
28091 if test "$DFT_LWR_MODEL" != "libtool"; then
28092 SHLIB_LIST="$SHLIB_LIST ${LIBS}"
28098 # used to separate tack out of the tree
28101 ### predefined stuff for the test programs
28103 cat >>confdefs.h <<\EOF
28104 #define HAVE_SLK_COLOR 1
28107 # pkgsrc uses these
28109 echo "$as_me:28109: checking for desired basename for form library" >&5
28110 echo $ECHO_N "checking for desired basename for form library... $ECHO_C" >&6
28112 # Check whether --with-form-libname or --without-form-libname was given.
28113 if test "${with_form_libname+set}" = set; then
28114 withval="$with_form_libname"
28115 with_lib_basename=$withval
28117 with_lib_basename=form
28119 FORM_NAME="$with_lib_basename"
28121 case "x$FORM_NAME" in
28129 echo "$as_me:28129: result: $FORM_NAME" >&5
28130 echo "${ECHO_T}$FORM_NAME" >&6
28132 echo "$as_me:28132: checking for desired basename for menu library" >&5
28133 echo $ECHO_N "checking for desired basename for menu library... $ECHO_C" >&6
28135 # Check whether --with-menu-libname or --without-menu-libname was given.
28136 if test "${with_menu_libname+set}" = set; then
28137 withval="$with_menu_libname"
28138 with_lib_basename=$withval
28140 with_lib_basename=menu
28142 MENU_NAME="$with_lib_basename"
28144 case "x$MENU_NAME" in
28152 echo "$as_me:28152: result: $MENU_NAME" >&5
28153 echo "${ECHO_T}$MENU_NAME" >&6
28155 echo "$as_me:28155: checking for desired basename for panel library" >&5
28156 echo $ECHO_N "checking for desired basename for panel library... $ECHO_C" >&6
28158 # Check whether --with-panel-libname or --without-panel-libname was given.
28159 if test "${with_panel_libname+set}" = set; then
28160 withval="$with_panel_libname"
28161 with_lib_basename=$withval
28163 with_lib_basename=panel
28165 PANEL_NAME="$with_lib_basename"
28167 case "x$PANEL_NAME" in
28175 echo "$as_me:28175: result: $PANEL_NAME" >&5
28176 echo "${ECHO_T}$PANEL_NAME" >&6
28178 echo "$as_me:28178: checking for desired basename for cxx library" >&5
28179 echo $ECHO_N "checking for desired basename for cxx library... $ECHO_C" >&6
28181 # Check whether --with-cxx-libname or --without-cxx-libname was given.
28182 if test "${with_cxx_libname+set}" = set; then
28183 withval="$with_cxx_libname"
28184 with_lib_basename=$withval
28186 with_lib_basename=ncurses++
28188 CXX_NAME="$with_lib_basename"
28190 case "x$CXX_NAME" in
28198 echo "$as_me:28198: result: $CXX_NAME" >&5
28199 echo "${ECHO_T}$CXX_NAME" >&6
28201 ### Construct the list of subdirectories for which we'll customize makefiles
28202 ### with the appropriate compile-rules.
28204 echo "$as_me:28204: checking for src modules" >&5
28205 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
28207 # dependencies and linker-arguments for test-programs
28208 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
28209 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEP2"
28210 if test "$DFT_LWR_MODEL" = "libtool"; then
28211 TEST_ARGS="${TEST_DEPS}"
28212 TEST_ARG2="${TEST_DEP2}"
28214 TEST_ARGS="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARGS"
28215 TEST_ARG2="-l${LIB_NAME}${USE_ARG_SUFFIX} $TEST_ARG2"
28218 PC_MODULES_TO_MAKE="ncurses${USE_ARG_SUFFIX}"
28220 for cf_dir in $modules_to_build
28222 if test -f "$srcdir/$cf_dir/modules" ; then
28224 # We may/may not have tack in the distribution, though the
28226 if test "$cf_dir" = tack ; then
28227 if test "x$cf_with_tack" != "xyes"; then
28232 if test -z "$cf_cv_src_modules"; then
28233 cf_cv_src_modules=$cf_dir
28235 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
28238 # Make the ncurses_cfg.h file record the library interface files as
28239 # well. These are header files that are the same name as their
28240 # directory. Ncurses is the only library that does not follow
28242 if test "$cf_dir" = tack ; then
28244 elif test -f "$srcdir/${cf_dir}/${cf_dir}.h" ; then
28246 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
28248 cat >>confdefs.h <<EOF
28249 #define HAVE_${cf_have_include}_H 1
28252 cat >>confdefs.h <<EOF
28253 #define HAVE_LIB${cf_have_include} 1
28256 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
28258 eval TEST_ROOT="\$${cf_map_lib_basename}_NAME"
28260 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TEST_ROOT}${DFT_DEP_SUFFIX} $TEST_DEPS"
28261 TEST_DEP2="${LIB_2ND}/${LIB_PREFIX}${TEST_ROOT}${DFT_DEP_SUFFIX} $TEST_DEP2"
28262 if test "$DFT_LWR_MODEL" = "libtool"; then
28263 TEST_ARGS="${TEST_DEPS}"
28264 TEST_ARG2="${TEST_DEP2}"
28266 TEST_ARGS="-l${TEST_ROOT}${USE_ARG_SUFFIX} $TEST_ARGS"
28267 TEST_ARG2="-l${TEST_ROOT}${USE_ARG_SUFFIX} $TEST_ARG2"
28269 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ${cf_dir}${USE_ARG_SUFFIX}"
28273 echo "$as_me:28273: result: $cf_cv_src_modules" >&5
28274 echo "${ECHO_T}$cf_cv_src_modules" >&6
28276 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
28277 TEST_ARG2="-L${LIB_2ND} $TEST_ARG2"
28280 if test "x$cf_with_manpages" != xno ; then
28281 SRC_SUBDIRS="$SRC_SUBDIRS man"
28283 SRC_SUBDIRS="$SRC_SUBDIRS include"
28284 for cf_dir in $cf_cv_src_modules
28286 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
28288 if test "x$cf_with_tests" != "xno" ; then
28289 SRC_SUBDIRS="$SRC_SUBDIRS test"
28291 # always make this, to install the ncurses-config script
28292 SRC_SUBDIRS="$SRC_SUBDIRS misc"
28293 if test "$cf_with_cxx_binding" != no; then
28294 PC_MODULES_TO_MAKE="${PC_MODULES_TO_MAKE} ncurses++${USE_ARG_SUFFIX}"
28295 SRC_SUBDIRS="$SRC_SUBDIRS c++"
28298 test "x$with_termlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TINFO_ARG_SUFFIX"
28299 test "x$with_ticlib" != xno && PC_MODULES_TO_MAKE="$PC_MODULES_TO_MAKE $TICS_ARG_SUFFIX"
28302 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = xyes && test -f "$srcdir/Ada95/Makefile.in" ; then
28303 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
28304 ADA_SUBDIRS="gen src"
28305 if test "x$cf_with_tests" != "xno" ; then
28306 ADA_SUBDIRS="$ADA_SUBDIRS samples"
28311 for cf_dir in $SRC_SUBDIRS
28313 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
28316 if test -n "$ADA_SUBDIRS"; then
28317 for cf_dir in $ADA_SUBDIRS
28319 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
28324 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
28325 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/src/library.gpr:Ada95/src/library.gpr.in"
28326 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/gen/adacurses${USE_CFG_SUFFIX}-config:Ada95/gen/adacurses-config.in"
28327 SUB_MAKEFILES="$SUB_MAKEFILES man/adacurses${USE_CFG_SUFFIX}-config.1:man/MKada_config.in"
28331 for cf_item in $cf_list_models
28335 (libtool) cf_subdir='obj_lo' ;;
28336 (normal) cf_subdir='objects' ;;
28337 (debug) cf_subdir='obj_g' ;;
28338 (profile) cf_subdir='obj_p' ;;
28340 case "$cf_cv_system_name" in
28342 cf_subdir='objects' ;;
28344 cf_subdir='obj_s' ;;
28348 for cf_item2 in $DIRS_TO_MAKE
28350 test "$cf_item2" = "$cf_subdir" && break
28352 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
28354 for cf_dir in $DIRS_TO_MAKE
28356 test ! -d "$cf_dir" && mkdir "$cf_dir"
28359 # symbols that differ when compiling Ada95 by itself.
28360 NCURSES_SHLIB2=$SHELL' $(top_srcdir)/misc/shlib'
28362 # values to use as strings
28364 cat >>confdefs.h <<EOF
28365 #define NCURSES_PATHSEP '$PATH_SEPARATOR'
28368 cat >>confdefs.h <<EOF
28369 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
28372 ### Define substitutions for header files to avoid name-pollution
28374 if test "x$cf_cv_have_tcgetattr" = xyes ; then
28380 if test "x$ac_cv_header_stdint_h" = xyes ; then
28386 if test "x$ac_cv_header_termio_h" = xyes ; then
28392 if test "x$ac_cv_header_termios_h" = xyes ; then
28398 ################################################################################
28399 test "x$use_database" = xyes && \
28400 SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
28402 SUB_MAKEFILES="$SUB_MAKEFILES misc/ncurses-config:misc/ncurses-config.in"
28403 SUB_MAKEFILES="$SUB_MAKEFILES man/ncurses${USE_CFG_SUFFIX}-config.1:man/MKncu_config.in"
28405 if test "x$enable_pc_files" = xyes && test -z "$MAKE_PC_FILES" ; then
28406 SUB_MAKEFILES="$SUB_MAKEFILES misc/gen-pkgconfig:misc/gen-pkgconfig.in"
28409 if test "x$cf_with_tests" != xno ; then
28415 ADAHTML_DIR=../../doc/html/ada
28417 # workaround for OS/2 (20151017)
28418 case "$cf_cv_system_name" in
28420 LIBTOOL_OPTS_CXX="-os2dllname ncurs++"
28427 # workaround for g++ versus Solaris (20131116)
28428 case "$cf_cv_system_name" in
28430 case "x$CPPFLAGS" in
28431 (*-D_XOPEN_SOURCE_EXTENDED*)
28432 test -n "$verbose" && echo " moving _XOPEN_SOURCE_EXTENDED to work around g++ problem" 1>&6
28434 echo "${as_me:-configure}:28434: testing moving _XOPEN_SOURCE_EXTENDED to work around g++ problem ..." 1>&5
28436 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
28437 CPPFLAGS=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/-D_XOPEN_SOURCE_EXTENDED//'`
28443 # Help to automatically enable the extended curses features when using either
28444 # the *-config or the ".pc" files by adding defines.
28445 echo "$as_me:28445: checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script" >&5
28446 echo $ECHO_N "checking for defines to add to ncurses${USE_CFG_SUFFIX}-config script... $ECHO_C" >&6
28448 for cf_loop1 in $CPPFLAGS_after_XOPEN
28451 for cf_loop2 in $CPPFLAGS_before_XOPEN
28453 if test "x$cf_loop1" = "x$cf_loop2"
28459 test "$cf_found" = no && PKG_CFLAGS="$PKG_CFLAGS $cf_loop1"
28461 echo "$as_me:28461: result: $PKG_CFLAGS" >&5
28462 echo "${ECHO_T}$PKG_CFLAGS" >&6
28464 # AC_CHECK_SIZEOF demands a literal parameter, no variables. So we do this.
28465 case "x$NCURSES_OSPEED" in
28474 cat >>confdefs.h <<EOF
28475 #define NCURSES_OSPEED_COMPAT $cf_compatible
28478 case "x$cf_cv_typeof_chtype" in
28479 (xshort|xint|xlong)
28480 cf_cv_typeof_chtype="unsigned $cf_cv_typeof_chtype"
28484 case "x$cf_cv_typeof_mmask_t" in
28485 (xshort|xint|xlong)
28486 cf_cv_typeof_mmask_t="unsigned $cf_cv_typeof_mmask_t"
28490 # substitute into misc/Makefile to suppress
28491 # (un)install.data from the
28492 # (un)install rules.
28493 if test "x$cf_with_db_install" = "xno"; then
28495 MISC_UNINSTALL_DATA=
28497 MISC_INSTALL_DATA=install.data
28498 MISC_UNINSTALL_DATA=uninstall.data
28501 if test "x$cf_with_db_install" = "xno" || test "x$TERMINFO_SRC" = "xno"; then
28504 MAKE_DATABASE="$MAKE_TERMINFO"
28507 if test -n "$PACKAGE"
28509 PACKAGE="${PACKAGE}${DFT_ARG_SUFFIX}"
28511 echo "package: $PACKAGE"
28517 if test -n "$RESULTING_SYMS"
28519 cf_filter_syms=$cf_dft_filter_syms
28520 test -n "$verbose" && echo " will map symbols to ABI=$cf_cv_abi_version" 1>&6
28522 echo "${as_me:-configure}:28522: testing will map symbols to ABI=$cf_cv_abi_version ..." 1>&5
28526 if test "x$WILDCARD_SYMS" = xno
28531 test "x$cf_with_trace" = xyes && NCURSES_INLINE=
28533 UNALTERED_SYMS=`echo "$RESULTING_SYMS" | sed -e 's/\\$/\\\\$/g'`
28534 if test "$cf_filter_syms" = yes
28536 RESULTING_SYMS=resulting.map
28539 if test "x$cross_compiling" = xyes ; then
28540 ADAGEN_LDFLAGS='$(CROSS_LDFLAGS)'
28543 ADAGEN_LDFLAGS='$(NATIVE_LDFLAGS)'
28547 # This is used for the *-config script and *.pc data files.
28549 echo "$as_me:28549: checking for linker search path" >&5
28550 echo $ECHO_N "checking for linker search path... $ECHO_C" >&6
28551 if test "${cf_cv_ld_searchpath+set}" = set; then
28552 echo $ECHO_N "(cached) $ECHO_C" >&6
28555 if test "$cross_compiling" != yes ; then
28557 # GNU binutils' ld does not involve permissions which may stop ldconfig.
28558 cf_pathlist=`ld --verbose 2>/dev/null | grep SEARCH_DIR | sed -e 's,SEARCH_DIR[("=][("=]*,,g' -e 's/"[)];//gp' | sort -u`
28560 # The -NX options tell newer versions of Linux ldconfig to not attempt to
28561 # update the cache, which makes it run faster.
28562 test -z "$cf_pathlist" && \
28563 cf_pathlist=`(ldconfig -NX -v) 2>/dev/null | sed -e '/^[ ]/d' -e 's/:$//' | sort -u`
28565 test -z "$cf_pathlist" &&
28566 cf_pathlist=`(ldconfig -v) 2>/dev/null | sed -n -e '/^[ ]/d' -e 's/:$//p' | sort -u`
28568 # This works with OpenBSD 6.5, which lists only filenames
28569 test -z "$cf_pathlist" &&
28570 cf_pathlist=`(ldconfig -v) 2>/dev/null | sed -n -e 's,^Adding \(.*\)/.*$,\1,p' | sort -u`
28572 if test -z "$cf_pathlist"
28574 # dyld default path with MacOS
28575 if test -f /usr/bin/otool && test "x`uname -s`" = xDarwin
28577 # do this to bypass check
28578 cf_cv_ld_searchpath='$HOME/lib'
28579 cf_pathlist="/usr/local/lib /lib /usr/lib"
28583 if test -z "$cf_pathlist"
28585 # Solaris is "SunOS"
28586 if test -f /usr/bin/isainfo && test "x`uname -s`" = xSunOS
28588 case x`(isainfo -b)` in
28590 cf_pathlist="$cf_pathlist /lib/64 /usr/lib/64"
28593 test -d /usr/ccs/lib && cf_pathlist="$cf_pathlist /usr/ccs/lib"
28594 cf_pathlist="$cf_pathlist /lib /usr/lib"
28597 { echo "$as_me:28597: WARNING: problem with Solaris architecture" >&5
28598 echo "$as_me: WARNING: problem with Solaris architecture" >&2;}
28604 if test -z "$cf_pathlist"
28607 if test x"`uname -s`" = xHP-UX
28609 case x`getconf LONG_BIT` in
28611 cf_pathlist="/usr/lib/hpux64"
28614 cf_pathlist="/usr/lib/hpux32"
28622 # If nothing else, assume it is conventional
28623 test -z "$cf_pathlist" && cf_pathlist="/usr/lib /lib"
28625 # Finally, check that this is only directories
28626 for cf_path in $0 $cf_pathlist
28628 if test -d "$cf_path"; then
28629 test -n "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath="${cf_cv_ld_searchpath} "
28630 cf_cv_ld_searchpath="${cf_cv_ld_searchpath}${cf_path}"
28634 # Ensure that it is nonempty
28635 test -z "$cf_cv_ld_searchpath" && cf_cv_ld_searchpath=/usr/lib
28638 echo "$as_me:28638: result: $cf_cv_ld_searchpath" >&5
28639 echo "${ECHO_T}$cf_cv_ld_searchpath" >&6
28641 LD_SEARCHPATH=`echo "$cf_cv_ld_searchpath"|sed -e 's/ /|/g'`
28643 cat >>confdefs.h <<\EOF
28644 #define HAVE_CURSES_DATA_BOOLNAMES 1
28647 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"
28648 ac_config_commands="$ac_config_commands default"
28649 cat >confcache <<\_ACEOF
28650 # This file is a shell script that caches the results of configure
28651 # tests run on this system so they can be shared between configure
28652 # scripts and configure runs, see configure's option --config-cache.
28653 # It is not useful on other systems. If it contains results you don't
28654 # want to keep, you may remove or edit it.
28656 # config.status only pays attention to the cache file if you give it
28657 # the --recheck option to rerun configure.
28659 # `ac_cv_env_foo' variables (set or unset) will be overriden when
28660 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28661 # following values.
28665 # The following way of writing the cache mishandles newlines in values,
28666 # but we know of no workaround that is simple, portable, and efficient.
28667 # So, don't put newlines in cache variables' values.
28668 # Ultrix sh set writes to stderr and can't be redirected directly,
28669 # and sets the high bit in the cache file unless we assign to the vars.
28672 case `(ac_space=' '; set | grep ac_space) 2>&1` in
28674 # `set' does not quote correctly, so add quotes (double-quote
28675 # substitution turns \\\\ into \\, and sed turns \\ into \).
28678 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28681 # `set' quotes correctly as required by POSIX, so do not add quotes.
28683 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28690 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28692 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28694 if cmp -s $cache_file confcache; then :; else
28695 if test -w $cache_file; then
28696 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28697 cat confcache >$cache_file
28699 echo "not updating unwritable cache $cache_file"
28704 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28705 # Let make expand exec_prefix.
28706 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28708 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28709 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28710 # trailing colons and then remove the whole line if VPATH becomes empty
28711 # (actually we leave an empty line to preserve line numbers).
28712 if test "x$srcdir" = x.; then
28713 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28714 s/:*\$(srcdir):*/:/;
28715 s/:*\${srcdir}:*/:/;
28717 s/^\([^=]*=[ ]*\):*/\1/;
28723 DEFS=-DHAVE_CONFIG_H
28725 : "${CONFIG_STATUS=./config.status}"
28726 ac_clean_files_save=$ac_clean_files
28727 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28728 { echo "$as_me:28728: creating $CONFIG_STATUS" >&5
28729 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28730 cat >"$CONFIG_STATUS" <<_ACEOF
28732 # Generated automatically by configure.
28733 # Run this file to recreate the current configuration.
28734 # Compiler output produced by configure, useful for debugging
28735 # configure, is in config.log if it exists.
28738 SHELL=\${CONFIG_SHELL-$SHELL}
28739 ac_cs_invocation="\$0 \$@"
28741 CLICOLOR_FORCE= GREP_OPTIONS=
28742 unset CLICOLOR_FORCE GREP_OPTIONS
28745 cat >>"$CONFIG_STATUS" <<\_ACEOF
28746 # Be Bourne compatible
28747 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28750 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28754 # Name of the executable.
28755 as_me=`echo "$0" |sed 's,.*[\\/],,'`
28757 if expr a : '\(a\)' >/dev/null 2>&1; then
28763 rm -f conf$$ conf$$.exe conf$$.file
28765 if ln -s conf$$.file conf$$ 2>/dev/null; then
28766 # We could just check for DJGPP; but this test a) works b) is more generic
28767 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
28768 if test -f conf$$.exe; then
28769 # Don't use ln at all; we don't have any links
28774 elif ln conf$$.file conf$$ 2>/dev/null; then
28779 rm -f conf$$ conf$$.exe conf$$.file
28781 as_executable_p="test -f"
28783 # Support unset when possible.
28784 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28791 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
28792 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
28793 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
28794 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
28795 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
28796 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
28797 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
28798 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
28801 # We need space, tab and new line, in precisely that order.
28807 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
28813 # Files that config.status was made for.
28814 if test -n "$ac_config_files"; then
28815 echo "config_files=\"$ac_config_files\"" >>"$CONFIG_STATUS"
28818 if test -n "$ac_config_headers"; then
28819 echo "config_headers=\"$ac_config_headers\"" >>"$CONFIG_STATUS"
28822 if test -n "$ac_config_links"; then
28823 echo "config_links=\"$ac_config_links\"" >>"$CONFIG_STATUS"
28826 if test -n "$ac_config_commands"; then
28827 echo "config_commands=\"$ac_config_commands\"" >>"$CONFIG_STATUS"
28830 cat >>"$CONFIG_STATUS" <<\EOF
28833 \`$as_me' instantiates files from templates according to the
28834 current configuration.
28836 Usage: $0 [OPTIONS] [FILE]...
28838 -h, --help print this help, then exit
28839 -V, --version print version number, then exit
28840 -d, --debug don't remove temporary files
28841 --recheck update $as_me by reconfiguring in the same conditions
28842 --file=FILE[:TEMPLATE]
28843 instantiate the configuration file FILE
28844 --header=FILE[:TEMPLATE]
28845 instantiate the configuration header FILE
28847 Configuration files:
28850 Configuration headers:
28853 Configuration commands:
28856 Report bugs to <dickey@invisible-island.net>."
28859 cat >>"$CONFIG_STATUS" <<EOF
28862 configured by $0, generated by GNU Autoconf 2.52.20210509,
28863 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
28865 Copyright 2003-2020,2021 Thomas E. Dickey
28866 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
28867 Free Software Foundation, Inc.
28868 This config.status script is free software; the Free Software Foundation
28869 gives unlimited permission to copy, distribute and modify it."
28874 cat >>"$CONFIG_STATUS" <<\EOF
28875 # If no file are specified by the user, then we need to provide default
28876 # value. By we need to know if files were specified by the user.
28882 ac_option=`expr "x$1" : 'x\([^=]*\)='`
28883 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
28885 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
28889 *) # This is not an option, so the user has probably given explicit
28891 ac_need_defaults=false;;
28895 # Handling of the options.
28897 cat >>"$CONFIG_STATUS" <<EOF
28898 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28899 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
28900 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
28902 cat >>"$CONFIG_STATUS" <<\EOF
28903 --version | --vers* | -V )
28904 echo "$ac_cs_version"; exit 0 ;;
28906 # Conflict between --help and --header
28907 { { echo "$as_me:28907: error: ambiguous option: $1
28908 Try \`$0 --help' for more information." >&5
28909 echo "$as_me: error: ambiguous option: $1
28910 Try \`$0 --help' for more information." >&2;}
28911 { (exit 1); exit 1; }; };;
28912 --help | --hel | -h )
28913 echo "$ac_cs_usage"; exit 0 ;;
28914 --debug | --d* | -d )
28916 --file | --fil | --fi | --f )
28918 CONFIG_FILES="$CONFIG_FILES $1"
28919 ac_need_defaults=false;;
28920 --header | --heade | --head | --hea )
28922 CONFIG_HEADERS="$CONFIG_HEADERS $1"
28923 ac_need_defaults=false;;
28925 # This is an error.
28926 -*) { { echo "$as_me:28926: error: unrecognized option: $1
28927 Try \`$0 --help' for more information." >&5
28928 echo "$as_me: error: unrecognized option: $1
28929 Try \`$0 --help' for more information." >&2;}
28930 { (exit 1); exit 1; }; } ;;
28932 *) ac_config_targets="$ac_config_targets $1" ;;
28941 ## ----------------------- ##
28942 ## Running config.status. ##
28943 ## ----------------------- ##
28945 This file was extended by $as_me 2.52.20210509, executed with
28946 CONFIG_FILES = $CONFIG_FILES
28947 CONFIG_HEADERS = $CONFIG_HEADERS
28948 CONFIG_LINKS = $CONFIG_LINKS
28949 CONFIG_COMMANDS = $CONFIG_COMMANDS
28950 > "$ac_cs_invocation"
28951 on `(hostname || uname -n) 2>/dev/null | sed 1q`
28956 cat >>"$CONFIG_STATUS" <<EOF
28958 # INIT-COMMANDS section.
28961 ### Special initialization commands, used to pass information from the
28962 ### configuration-run into config.status
28964 ALTERNATE_SYMS="$ALTERNATE_SYMS"
28966 CXX_NAME="$CXX_NAME"
28967 DFT_ARG_SUFFIX="$DFT_ARG_SUFFIX"
28968 DFT_LWR_MODEL="$DFT_LWR_MODEL"
28970 EXTRA_SUFFIX="$EXTRA_SUFFIX"
28971 FORM_NAME="$FORM_NAME"
28972 LDCONFIG="$LDCONFIG"
28973 LIBTOOL_VERSION="$LIBTOOL_VERSION"
28974 LIB_NAME="$LIB_NAME"
28975 LIB_PREFIX="$LIB_PREFIX"
28976 LIB_SUBSETS="$LIB_SUBSETS"
28977 LIB_SUFFIX="$LIB_SUFFIX"
28978 LIB_TRACING="$LIB_TRACING"
28980 MAKE_TERMINFO="$MAKE_TERMINFO"
28981 MENU_NAME="$MENU_NAME"
28982 NCURSES_MAJOR="$NCURSES_MAJOR"
28983 NCURSES_MINOR="$NCURSES_MINOR"
28984 NCURSES_OSPEED="$NCURSES_OSPEED"
28985 NCURSES_PATCH="$NCURSES_PATCH"
28986 PANEL_NAME="$PANEL_NAME"
28987 SRC_SUBDIRS="$SRC_SUBDIRS"
28988 TERMINFO="$TERMINFO"
28989 TICS_ARG_SUFFIX="$TICS_ARG_SUFFIX"
28990 TICS_LIB_SUFFIX="$TICS_LIB_SUFFIX"
28991 TICS_NAME="$TICS_NAME"
28992 TICS_SUFFIX="$TICS_SUFFIX"
28993 TIC_PATH="$TIC_PATH"
28994 TINFO_ARG_SUFFIX="$TINFO_ARG_SUFFIX"
28995 TINFO_LIB_SUFFIX="$TINFO_LIB_SUFFIX"
28996 TINFO_NAME="$TINFO_NAME"
28997 TINFO_SUFFIX="$TINFO_SUFFIX"
28998 UNALTERED_SYMS="$UNALTERED_SYMS"
28999 USE_ARG_SUFFIX="$USE_ARG_SUFFIX"
29000 USE_CFG_SUFFIX="$USE_CFG_SUFFIX"
29001 USE_LIB_SUFFIX="$USE_LIB_SUFFIX"
29002 USE_OLD_MAKERULES="$USE_OLD_MAKERULES"
29003 WILDCARD_SYMS="$WILDCARD_SYMS"
29004 WITH_CURSES_H="$with_curses_h"
29005 WITH_ECHO="${enable_echo:=yes}"
29006 WITH_OVERWRITE="$with_overwrite"
29007 cf_LIST_MODELS="$cf_list_models"
29008 cf_cv_VERSION_GNATMAKE=$cf_cv_VERSION_GNATMAKE
29009 cf_cv_VERSION_GPRBUILD=$cf_cv_VERSION_GPRBUILD
29010 cf_cv_abi_version="$cf_cv_abi_version"
29011 cf_cv_do_relink="$cf_cv_do_relink"
29012 cf_cv_do_reranlib="$cf_cv_do_reranlib"
29013 cf_cv_do_symlinks="$cf_cv_do_symlinks"
29014 cf_cv_enable_lp64="$cf_cv_enable_lp64"
29015 cf_cv_enable_opaque="$cf_cv_enable_opaque"
29016 cf_cv_make_PHONY="$cf_cv_make_PHONY"
29017 cf_cv_prog_CC_c_o=$cf_cv_prog_CC_c_o
29018 cf_cv_prog_CXX_c_o=$cf_cv_prog_CXX_c_o
29019 cf_cv_prog_gnat_correct=$cf_cv_prog_gnat_correct
29020 cf_cv_rel_version="$cf_cv_rel_version"
29021 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
29022 cf_cv_shared_soname='$cf_cv_shared_soname'
29023 cf_cv_shlib_version="$cf_cv_shlib_version"
29024 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
29025 cf_cv_system_name="$cf_cv_system_name"
29026 cf_cv_term_driver="$with_term_driver"
29027 cf_with_ada="$cf_with_ada"
29028 cf_with_cxx_binding="$cf_with_cxx_binding"
29029 cf_with_db_install="$cf_with_db_install"
29030 cf_with_manpages="$cf_with_manpages"
29031 cf_with_tests="$cf_with_tests"
29034 with_shared_cxx="$with_shared_cxx"
29038 cat >>"$CONFIG_STATUS" <<\EOF
29039 for ac_config_target in $ac_config_targets
29041 case "$ac_config_target" in
29042 # Handling of arguments.
29043 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
29044 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
29045 "include/ncurses_dll.h" ) CONFIG_FILES="$CONFIG_FILES include/ncurses_dll.h" ;;
29046 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
29047 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
29048 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
29049 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29050 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29051 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
29052 *) { { echo "$as_me:29052: error: invalid argument: $ac_config_target" >&5
29053 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29054 { (exit 1); exit 1; }; };;
29058 # If the user did not use the arguments to specify the items to instantiate,
29059 # then the envvar interface is used. Set only those that are not.
29060 # We use the long form for the default assignment because of an extremely
29061 # bizarre bug on SunOS 4.1.3.
29062 if "$ac_need_defaults"; then
29063 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29064 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29065 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29068 # Create a temporary directory, and hook for its removal unless debugging.
29071 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29072 trap '{ (exit 1); exit 1; }' 1 2 13 15
29075 # Create a (secure) tmp directory for tmp files.
29078 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
29079 test -n "$tmp" && test -d "$tmp"
29082 tmp=$TMPDIR/cs$$-$RANDOM
29083 (umask 077 && mkdir $tmp)
29086 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
29087 { (exit 1); exit 1; }
29092 cat >>"$CONFIG_STATUS" <<EOF
29095 # CONFIG_FILES section.
29098 # No need to generate the scripts if there are no CONFIG_FILES.
29099 # This happens for instance when ./config.status config.h
29100 if test -n "\$CONFIG_FILES"; then
29101 # Protect against being on the right side of a sed subst in config.status.
29102 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29103 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29104 s,@SHELL@,$SHELL,;t t
29105 s,@exec_prefix@,$exec_prefix,;t t
29106 s,@prefix@,$prefix,;t t
29107 s,@program_transform_name@,$program_transform_name,;t t
29108 s,@bindir@,$bindir,;t t
29109 s,@sbindir@,$sbindir,;t t
29110 s,@libexecdir@,$libexecdir,;t t
29111 s,@datarootdir@,$datarootdir,;t t
29112 s,@datadir@,$datadir,;t t
29113 s,@sysconfdir@,$sysconfdir,;t t
29114 s,@sharedstatedir@,$sharedstatedir,;t t
29115 s,@localstatedir@,$localstatedir,;t t
29116 s,@runstatedir@,$runstatedir,;t t
29117 s,@libdir@,$libdir,;t t
29118 s,@includedir@,$includedir,;t t
29119 s,@oldincludedir@,$oldincludedir,;t t
29120 s,@infodir@,$infodir,;t t
29121 s,@mandir@,$mandir,;t t
29122 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29123 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29124 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29125 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29126 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29127 s,@build_alias@,$build_alias,;t t
29128 s,@host_alias@,$host_alias,;t t
29129 s,@target_alias@,$target_alias,;t t
29130 s,@ECHO_C@,$ECHO_C,;t t
29131 s,@ECHO_N@,$ECHO_N,;t t
29132 s,@ECHO_T@,$ECHO_T,;t t
29133 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29134 s,@DEFS@,$DEFS,;t t
29135 s,@LIBS@,$LIBS,;t t
29136 s,@top_builddir@,$top_builddir,;t t
29137 s,@GREP@,$GREP,;t t
29138 s,@EGREP@,$EGREP,;t t
29139 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
29140 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
29141 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
29142 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
29143 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
29144 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
29145 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
29146 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
29147 s,@VERSION@,$VERSION,;t t
29148 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
29149 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
29150 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
29151 s,@PACKAGE@,$PACKAGE,;t t
29152 s,@build@,$build,;t t
29153 s,@build_cpu@,$build_cpu,;t t
29154 s,@build_vendor@,$build_vendor,;t t
29155 s,@build_os@,$build_os,;t t
29156 s,@host@,$host,;t t
29157 s,@host_cpu@,$host_cpu,;t t
29158 s,@host_vendor@,$host_vendor,;t t
29159 s,@host_os@,$host_os,;t t
29160 s,@target@,$target,;t t
29161 s,@target_cpu@,$target_cpu,;t t
29162 s,@target_vendor@,$target_vendor,;t t
29163 s,@target_os@,$target_os,;t t
29164 s,@FGREP@,$FGREP,;t t
29166 s,@CFLAGS@,$CFLAGS,;t t
29167 s,@LDFLAGS@,$LDFLAGS,;t t
29168 s,@CPPFLAGS@,$CPPFLAGS,;t t
29169 s,@ac_ct_CC@,$ac_ct_CC,;t t
29170 s,@EXEEXT@,$EXEEXT,;t t
29171 s,@OBJEXT@,$OBJEXT,;t t
29172 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
29174 s,@LDCONFIG@,$LDCONFIG,;t t
29176 s,@CXXFLAGS@,$CXXFLAGS,;t t
29177 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
29179 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29180 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29181 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29182 s,@LINT@,$LINT,;t t
29183 s,@LINT_OPTS@,$LINT_OPTS,;t t
29184 s,@LN_S@,$LN_S,;t t
29185 s,@cf_config_suffix@,$cf_config_suffix,;t t
29186 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
29187 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
29188 s,@PKG_CONFIG_LIBDIR@,$PKG_CONFIG_LIBDIR,;t t
29189 s,@MAKE_PC_FILES@,$MAKE_PC_FILES,;t t
29190 s,@PC_MODULE_SUFFIX@,$PC_MODULE_SUFFIX,;t t
29191 s,@SET_MAKE@,$SET_MAKE,;t t
29192 s,@MAKE_NO_PHONY@,$MAKE_NO_PHONY,;t t
29193 s,@MAKE_PHONY@,$MAKE_PHONY,;t t
29194 s,@CTAGS@,$CTAGS,;t t
29195 s,@ETAGS@,$ETAGS,;t t
29196 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
29197 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
29198 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
29199 s,@RANLIB@,$RANLIB,;t t
29200 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29202 s,@ac_ct_LD@,$ac_ct_LD,;t t
29204 s,@ac_ct_AR@,$ac_ct_AR,;t t
29206 s,@ac_ct_NM@,$ac_ct_NM,;t t
29207 s,@ARFLAGS@,$ARFLAGS,;t t
29208 s,@DESTDIR@,$DESTDIR,;t t
29209 s,@BUILD_CC@,$BUILD_CC,;t t
29210 s,@BUILD_CPP@,$BUILD_CPP,;t t
29211 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
29212 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
29213 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
29214 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
29215 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
29216 s,@BUILD_OBJEXT@,$BUILD_OBJEXT,;t t
29217 s,@cf_list_models@,$cf_list_models,;t t
29218 s,@ABI_VERSION@,$ABI_VERSION,;t t
29219 s,@LIBTOOL_VERSION@,$LIBTOOL_VERSION,;t t
29220 s,@LIBTOOL@,$LIBTOOL,;t t
29221 s,@ac_ct_LIBTOOL@,$ac_ct_LIBTOOL,;t t
29222 s,@LT_UNDEF@,$LT_UNDEF,;t t
29223 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
29224 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
29225 s,@LIB_CREATE@,$LIB_CREATE,;t t
29226 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
29227 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
29228 s,@LIB_PREP@,$LIB_PREP,;t t
29229 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
29230 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
29231 s,@LIB_LINK@,$LIB_LINK,;t t
29232 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
29233 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
29234 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
29235 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
29236 s,@TICS_NAME@,$TICS_NAME,;t t
29237 s,@TINFO_NAME@,$TINFO_NAME,;t t
29238 s,@LIB_NAME@,$LIB_NAME,;t t
29239 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
29240 s,@CC_G_OPT@,$CC_G_OPT,;t t
29241 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
29242 s,@LD_MODEL@,$LD_MODEL,;t t
29243 s,@shlibdir@,$shlibdir,;t t
29244 s,@MAKE_DLLS@,$MAKE_DLLS,;t t
29245 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
29246 s,@LD_RPATH_OPT@,$LD_RPATH_OPT,;t t
29247 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
29248 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
29249 s,@RM_SHARED_OPTS@,$RM_SHARED_OPTS,;t t
29250 s,@LINK_PROGS@,$LINK_PROGS,;t t
29251 s,@LINK_TESTS@,$LINK_TESTS,;t t
29252 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
29253 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
29254 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
29255 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
29256 s,@RPATH_LIST@,$RPATH_LIST,;t t
29257 s,@EXPORT_SYMS@,$EXPORT_SYMS,;t t
29258 s,@RESULTING_SYMS@,$RESULTING_SYMS,;t t
29259 s,@VERSIONED_SYMS@,$VERSIONED_SYMS,;t t
29260 s,@WILDCARD_SYMS@,$WILDCARD_SYMS,;t t
29261 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
29262 s,@EXTRA_PKG_LDFLAGS@,$EXTRA_PKG_LDFLAGS,;t t
29263 s,@EXTRA_SUFFIX@,$EXTRA_SUFFIX,;t t
29264 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
29265 s,@NCURSES_USE_DATABASE@,$NCURSES_USE_DATABASE,;t t
29267 s,@ac_ct_TIC@,$ac_ct_TIC,;t t
29268 s,@INFOCMP@,$INFOCMP,;t t
29269 s,@ac_ct_INFOCMP@,$ac_ct_INFOCMP,;t t
29270 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
29271 s,@USE_FALLBACKS@,$USE_FALLBACKS,;t t
29272 s,@WHICH_XTERM@,$WHICH_XTERM,;t t
29273 s,@XTERM_KBS@,$XTERM_KBS,;t t
29274 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
29275 s,@TERMINFO@,$TERMINFO,;t t
29276 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
29277 s,@USE_BIG_STRINGS@,$USE_BIG_STRINGS,;t t
29278 s,@TERMPATH@,$TERMPATH,;t t
29279 s,@NCURSES_USE_TERMCAP@,$NCURSES_USE_TERMCAP,;t t
29280 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
29281 s,@NCURSES_WCWIDTH_GRAPHICS@,$NCURSES_WCWIDTH_GRAPHICS,;t t
29282 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
29283 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
29284 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
29285 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
29286 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
29287 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
29288 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
29289 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
29290 s,@cf_cv_enable_lp64@,$cf_cv_enable_lp64,;t t
29291 s,@NCURSES_TPARM_VARARGS@,$NCURSES_TPARM_VARARGS,;t t
29292 s,@NCURSES_WATTR_MACROS@,$NCURSES_WATTR_MACROS,;t t
29293 s,@RGB_PATH@,$RGB_PATH,;t t
29294 s,@no_x11_rgb@,$no_x11_rgb,;t t
29295 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
29296 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
29297 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
29298 s,@NCURSES_CCHARW_MAX@,$NCURSES_CCHARW_MAX,;t t
29299 s,@NCURSES_SBOOL@,$NCURSES_SBOOL,;t t
29300 s,@NCURSES_TPARM_ARG@,$NCURSES_TPARM_ARG,;t t
29301 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
29302 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
29303 s,@GENERATED_EXT_FUNCS@,$GENERATED_EXT_FUNCS,;t t
29304 s,@NCURSES_SP_FUNCS@,$NCURSES_SP_FUNCS,;t t
29305 s,@GENERATED_SP_FUNCS@,$GENERATED_SP_FUNCS,;t t
29306 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
29307 s,@NCURSES_EXT_COLORS@,$NCURSES_EXT_COLORS,;t t
29308 s,@NCURSES_MOUSE_VERSION@,$NCURSES_MOUSE_VERSION,;t t
29309 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
29310 s,@PTHREAD@,$PTHREAD,;t t
29311 s,@cf_cv_enable_reentrant@,$cf_cv_enable_reentrant,;t t
29312 s,@cf_cv_enable_opaque@,$cf_cv_enable_opaque,;t t
29313 s,@NCURSES_SIZE_T@,$NCURSES_SIZE_T,;t t
29314 s,@NCURSES_OPAQUE@,$NCURSES_OPAQUE,;t t
29315 s,@NCURSES_OPAQUE_FORM@,$NCURSES_OPAQUE_FORM,;t t
29316 s,@NCURSES_OPAQUE_MENU@,$NCURSES_OPAQUE_MENU,;t t
29317 s,@NCURSES_OPAQUE_PANEL@,$NCURSES_OPAQUE_PANEL,;t t
29318 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
29319 s,@NCURSES_IMPEXP@,$NCURSES_IMPEXP,;t t
29320 s,@NCURSES_CXX_IMPEXP@,$NCURSES_CXX_IMPEXP,;t t
29321 s,@NCURSES_INTEROP_FUNCS@,$NCURSES_INTEROP_FUNCS,;t t
29322 s,@NCURSES_WGETCH_EVENTS@,$NCURSES_WGETCH_EVENTS,;t t
29323 s,@EXP_WIN32_DRIVER@,$EXP_WIN32_DRIVER,;t t
29324 s,@INTERNALS_HDR@,$INTERNALS_HDR,;t t
29325 s,@ECHO_LT@,$ECHO_LT,;t t
29326 s,@ECHO_LD@,$ECHO_LD,;t t
29327 s,@RULE_CC@,$RULE_CC,;t t
29328 s,@SHOW_CC@,$SHOW_CC,;t t
29329 s,@ECHO_CC@,$ECHO_CC,;t t
29330 s,@ECHO_LINK@,$ECHO_LINK,;t t
29331 s,@INSTALL_OPT_S@,$INSTALL_OPT_S,;t t
29332 s,@INSTALL_OPT_O@,$INSTALL_OPT_O,;t t
29333 s,@INSTALL_OPT_P@,$INSTALL_OPT_P,;t t
29334 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
29335 s,@HAVE_STDNORETURN_H@,$HAVE_STDNORETURN_H,;t t
29336 s,@STDC_NORETURN@,$STDC_NORETURN,;t t
29337 s,@ADAFLAGS@,$ADAFLAGS,;t t
29338 s,@EXTRA_CXXFLAGS@,$EXTRA_CXXFLAGS,;t t
29339 s,@ADA_TRACE@,$ADA_TRACE,;t t
29340 s,@MATH_LIB@,$MATH_LIB,;t t
29341 s,@NCURSES_INLINE@,$NCURSES_INLINE,;t t
29342 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
29343 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
29344 s,@cf_cv_typeof_mmask_t@,$cf_cv_typeof_mmask_t,;t t
29345 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
29346 s,@TEST_LIBS@,$TEST_LIBS,;t t
29347 s,@TEST_LIBS2@,$TEST_LIBS2,;t t
29348 s,@CXXCPP@,$CXXCPP,;t t
29349 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
29350 s,@CXX_AR@,$CXX_AR,;t t
29351 s,@CXX_ARFLAGS@,$CXX_ARFLAGS,;t t
29352 s,@CXXLIBS@,$CXXLIBS,;t t
29353 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
29354 s,@cf_TEMP_gnat@,$cf_TEMP_gnat,;t t
29355 s,@M4_exists@,$M4_exists,;t t
29356 s,@cf_ada_make@,$cf_ada_make,;t t
29357 s,@cf_ada_config@,$cf_ada_config,;t t
29358 s,@cf_ada_config_Ada@,$cf_ada_config_Ada,;t t
29359 s,@cf_ada_config_C@,$cf_ada_config_C,;t t
29360 s,@GNATPREP_OPTS@,$GNATPREP_OPTS,;t t
29361 s,@cf_compile_generics@,$cf_compile_generics,;t t
29362 s,@cf_generic_objects@,$cf_generic_objects,;t t
29363 s,@USE_GNAT_SIGINT@,$USE_GNAT_SIGINT,;t t
29364 s,@USE_OLD_MAKERULES@,$USE_OLD_MAKERULES,;t t
29365 s,@USE_GNAT_PROJECTS@,$USE_GNAT_PROJECTS,;t t
29366 s,@USE_GNAT_LIBRARIES@,$USE_GNAT_LIBRARIES,;t t
29367 s,@USE_GNAT_MAKE_GPR@,$USE_GNAT_MAKE_GPR,;t t
29368 s,@USE_GNAT_GPRBUILD@,$USE_GNAT_GPRBUILD,;t t
29369 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
29370 s,@cf_ada_package@,$cf_ada_package,;t t
29371 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
29372 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
29373 s,@ADA_SHAREDLIB@,$ADA_SHAREDLIB,;t t
29374 s,@MAKE_ADA_SHAREDLIB@,$MAKE_ADA_SHAREDLIB,;t t
29375 s,@ADA_LIBNAME@,$ADA_LIBNAME,;t t
29376 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
29377 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
29378 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
29379 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
29380 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
29381 s,@USE_ARG_SUFFIX@,$USE_ARG_SUFFIX,;t t
29382 s,@USE_CFG_SUFFIX@,$USE_CFG_SUFFIX,;t t
29383 s,@USE_LIB_SUFFIX@,$USE_LIB_SUFFIX,;t t
29384 s,@TICS_ARG_SUFFIX@,$TICS_ARG_SUFFIX,;t t
29385 s,@TICS_DEP_SUFFIX@,$TICS_DEP_SUFFIX,;t t
29386 s,@TICS_LIB_SUFFIX@,$TICS_LIB_SUFFIX,;t t
29387 s,@TICS_LDFLAGS@,$TICS_LDFLAGS,;t t
29388 s,@TICS_LIBS@,$TICS_LIBS,;t t
29389 s,@TINFO_ARG_SUFFIX@,$TINFO_ARG_SUFFIX,;t t
29390 s,@TINFO_DEP_SUFFIX@,$TINFO_DEP_SUFFIX,;t t
29391 s,@TINFO_LIB_SUFFIX@,$TINFO_LIB_SUFFIX,;t t
29392 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
29393 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
29394 s,@TINFO_LDFLAGS2@,$TINFO_LDFLAGS2,;t t
29395 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
29396 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
29397 s,@includesubdir@,$includesubdir,;t t
29398 s,@WITH_OVERWRITE@,$WITH_OVERWRITE,;t t
29399 s,@TICS_LIST@,$TICS_LIST,;t t
29400 s,@TINFO_LIST@,$TINFO_LIST,;t t
29401 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
29402 s,@NCURSES_TREE@,$NCURSES_TREE,;t t
29403 s,@FORM_NAME@,$FORM_NAME,;t t
29404 s,@MENU_NAME@,$MENU_NAME,;t t
29405 s,@PANEL_NAME@,$PANEL_NAME,;t t
29406 s,@CXX_NAME@,$CXX_NAME,;t t
29407 s,@TEST_ARGS@,$TEST_ARGS,;t t
29408 s,@TEST_DEPS@,$TEST_DEPS,;t t
29409 s,@TEST_ARG2@,$TEST_ARG2,;t t
29410 s,@TEST_DEP2@,$TEST_DEP2,;t t
29411 s,@PC_MODULES_TO_MAKE@,$PC_MODULES_TO_MAKE,;t t
29412 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
29413 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
29414 s,@NCURSES_SHLIB2@,$NCURSES_SHLIB2,;t t
29415 s,@HAVE_TCGETATTR@,$HAVE_TCGETATTR,;t t
29416 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
29417 s,@HAVE_TERMIO_H@,$HAVE_TERMIO_H,;t t
29418 s,@HAVE_TERMIOS_H@,$HAVE_TERMIOS_H,;t t
29419 s,@cross_compiling@,$cross_compiling,;t t
29420 s,@MAKE_TESTS@,$MAKE_TESTS,;t t
29421 s,@ADAHTML_DIR@,$ADAHTML_DIR,;t t
29422 s,@LIBTOOL_OPTS_CXX@,$LIBTOOL_OPTS_CXX,;t t
29423 s,@PKG_CFLAGS@,$PKG_CFLAGS,;t t
29424 s,@MISC_INSTALL_DATA@,$MISC_INSTALL_DATA,;t t
29425 s,@MISC_UNINSTALL_DATA@,$MISC_UNINSTALL_DATA,;t t
29426 s,@MAKE_DATABASE@,$MAKE_DATABASE,;t t
29427 s,@UNALTERED_SYMS@,$UNALTERED_SYMS,;t t
29428 s,@ADAGEN_LDFLAGS@,$ADAGEN_LDFLAGS,;t t
29429 s,@CHECK_BUILD@,$CHECK_BUILD,;t t
29430 s,@PRIVATE_LIBS@,$PRIVATE_LIBS,;t t
29431 s,@LD_SEARCHPATH@,$LD_SEARCHPATH,;t t
29436 cat >>"$CONFIG_STATUS" <<\EOF
29437 # Split the substitutions into bite-sized pieces for seds with
29438 # small command number limits, like on Digital OSF/1 and HP-UX.
29439 ac_max_sed_lines=48
29440 ac_sed_frag=1 # Number of current file.
29441 ac_beg=1 # First line for current file.
29442 ac_end=$ac_max_sed_lines # Line after last line for current file.
29445 while "$ac_more_lines"; do
29446 if test "$ac_beg" -gt 1; then
29447 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29449 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29451 if test ! -s $tmp/subs.frag; then
29452 ac_more_lines=false
29454 # The purpose of the label and of the branching condition is to
29455 # speed up the sed processing (if there are no `@' at all, there
29456 # is no need to browse any of the substitutions).
29457 # These are the two extra sed commands mentioned above.
29459 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29460 # It is possible to make a multiline substitution using escaped newlines.
29461 # Ensure that we do not split the substitution between script fragments.
29463 ac_END=`expr "$ac_end" + "$ac_max_sed_lines"`
29464 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
29465 if test -s $tmp/subs.next; then
29466 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
29467 if test ! -s $tmp/subs.edit; then
29468 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
29469 if test ! -s $tmp/subs.edit; then
29470 if test "$ac_beg" -gt 1; then
29471 ac_end=`expr "$ac_end" - 1`
29478 if test -z "$ac_sed_cmds"; then
29479 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29481 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29483 ac_sed_frag=`expr "$ac_sed_frag" + 1`
29485 ac_end=`expr "$ac_end" + "$ac_max_sed_lines"`
29488 if test -z "$ac_sed_cmds"; then
29491 fi # test -n "$CONFIG_FILES"
29494 cat >>"$CONFIG_STATUS" <<\EOF
29495 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29496 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29498 - | *:- | *:-:* ) # input from stdin
29500 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29501 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29502 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29503 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29504 * ) ac_file_in=$ac_file.in ;;
29507 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
29508 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29509 X"$ac_file" : 'X\(//\)[^/]' \| \
29510 X"$ac_file" : 'X\(//\)$' \| \
29511 X"$ac_file" : 'X\(/\)' \| \
29512 . : '\(.\)' 2>/dev/null ||
29514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29515 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29516 /^X\(\/\/\)$/{ s//\1/; q; }
29517 /^X\(\/\).*/{ s//\1/; q; }
29519 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
29520 { case "$ac_dir" in
29521 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
29525 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
29526 case $as_mkdir_dir in
29527 # Skip DOS drivespec
29528 ?:) as_incr_dir=$as_mkdir_dir ;;
29530 as_incr_dir=$as_incr_dir/$as_mkdir_dir
29531 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
29536 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
29537 # A "../" for each directory in $ac_dir_suffix.
29538 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
29540 ac_dir_suffix= ac_dots=
29545 if test -z "$ac_dots"; then
29548 ac_top_srcdir=`echo "$ac_dots" | sed 's,/$,,'`
29550 [\\/]* | ?:[\\/]* )
29551 ac_srcdir="$srcdir$ac_dir_suffix";
29552 ac_top_srcdir="$srcdir" ;;
29553 *) # Relative path.
29554 ac_srcdir="$ac_dots$srcdir$ac_dir_suffix"
29555 ac_top_srcdir="$ac_dots$srcdir" ;;
29559 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29560 *) ac_INSTALL=$ac_dots$INSTALL ;;
29563 if test x"$ac_file" != x-; then
29564 { echo "$as_me:29564: creating $ac_file" >&5
29565 echo "$as_me: creating $ac_file" >&6;}
29568 # Let's still pretend it is `configure' which instantiates (i.e., don't
29569 # use $as_me), people would be surprised to read:
29570 # /* config.h. Generated automatically by config.status. */
29571 configure_input="Generated automatically from `echo $ac_file_in |
29572 sed 's,.*/,,'` by configure."
29574 # First look for the input files in the build tree, otherwise in the
29576 ac_file_inputs=`IFS=:
29577 for f in $ac_file_in; do
29579 -) echo $tmp/stdin ;;
29581 # Absolute (can't be DOS-style, as IFS=:)
29582 test -f "$f" || { { echo "$as_me:29582: error: cannot find input file: $f" >&5
29583 echo "$as_me: error: cannot find input file: $f" >&2;}
29584 { (exit 1); exit 1; }; }
29587 if test -f "$f"; then
29590 elif test -f "$srcdir/$f"; then
29595 { { echo "$as_me:29595: error: cannot find input file: $f" >&5
29596 echo "$as_me: error: cannot find input file: $f" >&2;}
29597 { (exit 1); exit 1; }; }
29600 done` || { (exit 1); exit 1; }
29602 cat >>"$CONFIG_STATUS" <<\EOF
29603 ac_warn_datarootdir=no
29604 if test x"$ac_file" != x-; then
29605 for ac_item in $ac_file_inputs
29607 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' "$ac_item"`
29608 if test -n "$ac_seen"; then
29609 ac_used=`grep '@datarootdir@' "$ac_item"`
29610 if test -z "$ac_used"; then
29611 { echo "$as_me:29611: WARNING: datarootdir was used implicitly but not set:
29613 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
29615 ac_warn_datarootdir=yes
29618 ac_seen=`grep '${datarootdir}' "$ac_item"`
29619 if test -n "$ac_seen"; then
29620 { echo "$as_me:29620: WARNING: datarootdir was used explicitly but not set:
29622 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
29624 ac_warn_datarootdir=yes
29629 if test "x$ac_warn_datarootdir" = xyes; then
29630 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
29634 cat >>"$CONFIG_STATUS" <<EOF
29638 cat >>"$CONFIG_STATUS" <<\EOF
29640 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29641 s,@configure_input@,$configure_input,;t t
29642 s,@srcdir@,$ac_srcdir,;t t
29643 s,@top_srcdir@,$ac_top_srcdir,;t t
29644 s,@INSTALL@,$ac_INSTALL,;t t
29645 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
29647 if test x"$ac_file" != x-; then
29648 cp "$tmp/out" "$ac_file"
29650 for ac_name in prefix exec_prefix datarootdir
29652 ac_seen=`${FGREP-fgrep} -n '${'$ac_name'[:=].*}' "$ac_file"`
29653 if test -n "$ac_seen"; then
29654 ac_init=`${EGREP-egrep} '[ ]*'$ac_name'[ ]*=' "$ac_file"`
29655 if test -z "$ac_init"; then
29656 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
29657 { echo "$as_me:29657: WARNING: Variable $ac_name is used but was not set:
29659 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
29664 ${EGREP-egrep} -n '@[a-z_][a-z_0-9]+@' "$ac_file" >$tmp/out
29665 ${EGREP-egrep} -n '@[A-Z_][A-Z_0-9]+@' "$ac_file" >>$tmp/out
29666 if test -s $tmp/out; then
29667 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
29668 { echo "$as_me:29668: WARNING: Some variables may not be substituted:
29670 echo "$as_me: WARNING: Some variables may not be substituted:
29680 cat >>"$CONFIG_STATUS" <<\EOF
29683 # CONFIG_HEADER section.
29686 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
29687 # NAME is the cpp macro being defined and VALUE is the value it is being given.
29689 # ac_d sets the value in "#define NAME VALUE" lines.
29690 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
29691 ac_dB='[ ].*$,\1#\2'
29694 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
29695 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
29696 ac_iB='\([ ]\),\1#\2define\3'
29699 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
29700 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
29701 ac_uB='$,\1#\2define\3'
29705 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
29706 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29708 - | *:- | *:-:* ) # input from stdin
29710 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29711 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29712 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29713 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29714 * ) ac_file_in=$ac_file.in ;;
29717 test x"$ac_file" != x- && { echo "$as_me:29717: creating $ac_file" >&5
29718 echo "$as_me: creating $ac_file" >&6;}
29720 # First look for the input files in the build tree, otherwise in the
29722 ac_file_inputs=`IFS=:
29723 for f in $ac_file_in; do
29725 -) echo $tmp/stdin ;;
29727 # Absolute (can't be DOS-style, as IFS=:)
29728 test -f "$f" || { { echo "$as_me:29728: error: cannot find input file: $f" >&5
29729 echo "$as_me: error: cannot find input file: $f" >&2;}
29730 { (exit 1); exit 1; }; }
29733 if test -f "$f"; then
29736 elif test -f "$srcdir/$f"; then
29741 { { echo "$as_me:29741: error: cannot find input file: $f" >&5
29742 echo "$as_me: error: cannot find input file: $f" >&2;}
29743 { (exit 1); exit 1; }; }
29746 done` || { (exit 1); exit 1; }
29747 # Remove the trailing spaces.
29748 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
29752 # Transform confdefs.h into a list of #define's. We won't use it as a sed
29753 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
29754 # be either 'cat' or 'sort'.
29755 cat confdefs.h | uniq >conftest.vals
29757 # Break up conftest.vals because some shells have a limit on
29758 # the size of here documents, and old seds have small limits too.
29760 rm -f conftest.tail
29761 echo ' rm -f conftest.frag' >> "$CONFIG_STATUS"
29762 while grep . conftest.vals >/dev/null
29764 # Write chunks of a limited-size here document to conftest.frag.
29765 echo ' cat >> conftest.frag <<CEOF' >> "$CONFIG_STATUS"
29766 sed "${ac_max_here_lines}q" conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> "$CONFIG_STATUS"
29767 echo 'CEOF' >> "$CONFIG_STATUS"
29768 sed "1,${ac_max_here_lines}d" conftest.vals > conftest.tail
29769 rm -f conftest.vals
29770 mv conftest.tail conftest.vals
29772 rm -f conftest.vals
29774 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
29776 echo ' cat >> conftest.edit <<CEOF
29777 /@DEFS@/r conftest.frag
29780 sed -f conftest.edit $tmp/in > $tmp/out
29782 mv $tmp/out $tmp/in
29783 rm -f conftest.edit conftest.frag
29784 ' >> "$CONFIG_STATUS"
29786 cat >>"$CONFIG_STATUS" <<\EOF
29787 # Let's still pretend it is `configure' which instantiates (i.e., don't
29788 # use $as_me), people would be surprised to read:
29789 # /* config.h. Generated automatically by config.status. */
29790 if test x"$ac_file" = x-; then
29791 echo "/* Generated automatically by configure. */" >$tmp/config.h
29793 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
29795 cat $tmp/in >>$tmp/config.h
29797 if test x"$ac_file" != x-; then
29798 if cmp -s "$ac_file" "$tmp/config.h" 2>/dev/null; then
29799 { echo "$as_me:29799: $ac_file is unchanged" >&5
29800 echo "$as_me: $ac_file is unchanged" >&6;}
29802 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29803 X"$ac_file" : 'X\(//\)[^/]' \| \
29804 X"$ac_file" : 'X\(//\)$' \| \
29805 X"$ac_file" : 'X\(/\)' \| \
29806 . : '\(.\)' 2>/dev/null ||
29808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29809 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29810 /^X\(\/\/\)$/{ s//\1/; q; }
29811 /^X\(\/\).*/{ s//\1/; q; }
29813 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
29814 { case "$ac_dir" in
29815 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
29819 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
29820 case $as_mkdir_dir in
29821 # Skip DOS drivespec
29822 ?:) as_incr_dir=$as_mkdir_dir ;;
29824 as_incr_dir=$as_incr_dir/$as_mkdir_dir
29825 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
29832 mv "$tmp/config.h" "$ac_file"
29836 rm -f $tmp/config.h
29840 cat >>"$CONFIG_STATUS" <<\EOF
29842 # CONFIG_COMMANDS section.
29844 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
29845 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
29846 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
29850 if test "x$cf_with_tests" != xno ; then
29854 if test ! -d "$srcdir/$cf_dir" ; then
29856 elif test -f "$srcdir/$cf_dir/programs" ; then
29857 $AWK -f "$srcdir/test/mk-test.awk" INSTALL=no ECHO_LINK="$ECHO_LD" "$srcdir/$cf_dir/programs" >>$cf_dir/Makefile
29863 cf_prefix=$LIB_PREFIX
29865 case "$cf_cv_shlib_version" in
29866 (cygdll|msysdll|mingw|msvcdll)
29867 TINFO_NAME=$TINFO_ARG_SUFFIX
29872 if test -n "$TINFO_SUFFIX" ; then
29873 case "$TINFO_SUFFIX" in
29875 TINFO_NAME="${TINFO_NAME}tw${EXTRA_SUFFIX}"
29876 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^tw'$EXTRA_SUFFIX'//'`
29879 TINFO_NAME="${TINFO_NAME}t${EXTRA_SUFFIX}"
29880 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^t'$EXTRA_SUFFIX'//'`
29883 TINFO_NAME="${TINFO_NAME}w${EXTRA_SUFFIX}"
29884 TINFO_SUFFIX=`echo "$TINFO_SUFFIX" | sed 's/^w'$EXTRA_SUFFIX'//'`
29889 for cf_dir in $SRC_SUBDIRS
29891 if test ! -d "$srcdir/$cf_dir" ; then
29893 elif test -f "$srcdir/$cf_dir/modules" ; then
29898 if test -n "${cf_cv_abi_version}" && test "x${cf_cv_abi_version}" != "x5"
29900 cf_awk_program="$cf_awk_program\
29901 /deprecated in ABI${cf_cv_abi_version}/ { next; }\
29902 { sub(\"NCURSES([WT]+)?\", \"&${cf_cv_abi_version}\"); }\
29906 if test "x$WILDCARD_SYMS" = xno
29908 cf_awk_program="$cf_awk_program\
29909 /[ ]_\\*;/ { skip=1; next; }\
29913 if test "x$cf_awk_program" != "x"
29915 cat >>$cf_dir/Makefile <<CF_EOF
29917 # Generated by CF_LIB_RULES
29918 resulting.map: $UNALTERED_SYMS
29919 $AWK 'BEGIN { skip = 1; last=""; } \
29921 { if ( last != "" && ( skip == 0 || \$\$0 !~ /}/ ) ) { print last; }\
29922 skip = 0; last = \$\$0; } \
29923 END { print last; }' < "$UNALTERED_SYMS" >\$@
29926 rm -f resulting.map
29930 for cf_item in $cf_LIST_MODELS
29936 cf_depsuf=$cf_suffix
29939 case "$cf_cv_system_name" in
29947 cf_depsuf=$cf_suffix
29950 case "$cf_cv_system_name" in
29958 cf_depsuf=$cf_suffix
29961 case "$cf_cv_system_name" in
29964 cf_depsuf=$cf_suffix
29968 cf_depsuf='.dll.lib'
29970 (cygwin*|msys*|mingw*)
29976 cf_depsuf=$cf_suffix
29982 cf_depsuf=$cf_suffix
29986 cf_depsuf=$cf_suffix
29992 cf_depsuf=$cf_suffix
30005 cf_depsuf=$cf_suffix
30008 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
30010 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
30011 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
30014 if test "$cf_dir" = "c++"
30017 cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30019 eval cf_libname="\$${cf_map_lib_basename}_NAME"
30023 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30025 eval cf_libname="\$${cf_map_lib_basename}_NAME"
30028 test -z "$cf_libname" && cf_libname="$cf_dir"
30029 if test "$cf_item" = shared ; then
30030 if test -n "${LIB_SUFFIX}"
30032 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
30034 cf_shared_suffix="$cf_suffix"
30036 if test "$cf_cv_do_symlinks" = yes ; then
30039 case "$cf_cv_shlib_version" in
30041 cf_version_name=REL_VERSION
30044 cf_version_name=ABI_VERSION
30048 if test -n "$cf_version_name"
30050 case "$cf_cv_system_name" in
30053 cf_suffix="${USE_LIB_SUFFIX}"'.${'$cf_version_name'}'"$cf_shared_suffix"
30056 cf_suffix="$cf_suffix"'.${'$cf_version_name'}'
30060 if test -n "${USE_LIB_SUFFIX}"
30062 cf_shared_suffix=`echo "$cf_suffix" | sed 's/^'"${USE_LIB_SUFFIX}"'//'`
30064 cf_shared_suffix="$cf_suffix"
30067 # cygwin needs import library, and has unique naming convention
30068 # use autodetected ${cf_prefix} for import lib and static lib, but
30069 # use 'cyg' prefix for shared lib.
30070 case "$cf_cv_shlib_version" in
30072 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30073 cf_add_lib="../lib/cyg${cf_libname}${cf_cygsuf}"
30076 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30077 cf_add_lib="../lib/msys-${cf_libname}${cf_cygsuf}"
30080 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30081 cf_add_lib="../lib/lib${cf_libname}${cf_cygsuf}"
30084 cf_cygsuf=`echo "$cf_suffix" | sed -e 's/\.dll/\${ABI_VERSION}.dll/'`
30085 cf_add_lib="../lib/${cf_libname}${cf_cygsuf}"
30091 if test -n "$cf_add_lib"
30093 Libs_To_Make="$Libs_To_Make $cf_add_lib"
30097 cf_add_lib="../lib/${cf_prefix}${cf_libname}${cf_suffix}"
30098 Libs_To_Make="$Libs_To_Make $cf_add_lib"
30101 if test "$cf_dir" = ncurses ; then
30102 cf_subsets="$LIB_SUBSETS"
30103 cf_r_parts="$cf_subsets"
30104 cf_liblist="$Libs_To_Make"
30106 while test -n "$cf_r_parts"
30108 cf_l_parts=`echo "$cf_r_parts" |sed -e 's/ .*$//'`
30109 cf_r_parts=`echo "$cf_r_parts" |sed -e 's/^[^ ]* //'`
30110 if test "$cf_l_parts" != "$cf_r_parts" ; then
30112 case "$cf_l_parts" in
30114 cf_add_lib=`echo "$cf_liblist" |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TINFO_LIB_SUFFIX}%g`
30117 cf_add_lib=`echo "$cf_liblist" |sed -e s%${LIB_NAME}${USE_LIB_SUFFIX}%${TICS_LIB_SUFFIX}%g`
30123 if test -n "$cf_add_lib"; then
30124 Libs_To_Make="$cf_add_lib $Libs_To_Make"
30131 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
30134 if test "$cf_dir" = c++; then
30135 if test "x$with_shared_cxx" != xyes && test -n "$cf_shared_suffix"; then
30137 for cf_item in $Libs_To_Make
30143 cf_item=`echo "$cf_item" | sed -e "s,"$cf_shared_suffix",.a,"`
30146 for cf_test in $cf_list
30148 if test "$cf_test" = "$cf_item"
30150 cf_LIST_MODELS=`echo "$cf_LIST_MODELS" | sed -e 's/normal//'`
30155 test -n "$cf_item" && cf_list="$cf_list $cf_item"
30157 Libs_To_Make="$cf_list"
30161 sed -e "s%@Libs_To_Make@%$Libs_To_Make%" \
30162 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
30163 "$cf_dir/Makefile" >$cf_dir/Makefile.out
30164 mv "$cf_dir/Makefile.out" "$cf_dir/Makefile"
30166 $AWK -f "$srcdir/mk-0th.awk" \
30167 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" ticlib="$TICS_LIB_SUFFIX" termlib="$TINFO_LIB_SUFFIX" \
30168 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
30170 for cf_subset in $cf_subsets
30173 for cf_item in $cf_LIST_MODELS
30176 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
30178 cf_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30181 if test "$CXX_MODEL" = SHARED; then
30182 case "$cf_cv_shlib_version" in
30183 (cygdll|msysdll|mingw|msvcdll)
30184 test "x$with_shared_cxx" = xno && test -n "$verbose" && echo " overriding CXX_MODEL to SHARED" 1>&6
30186 echo "${as_me:-configure}:30186: testing overriding CXX_MODEL to SHARED ..." 1>&5
30188 with_shared_cxx=yes
30191 test "x$with_shared_cxx" = xno && CXX_MODEL=NORMAL
30199 cf_depsuf=$cf_suffix
30202 case "$cf_cv_system_name" in
30210 cf_depsuf=$cf_suffix
30213 case "$cf_cv_system_name" in
30221 cf_depsuf=$cf_suffix
30224 case "$cf_cv_system_name" in
30227 cf_depsuf=$cf_suffix
30231 cf_depsuf='.dll.lib'
30233 (cygwin*|msys*|mingw*)
30239 cf_depsuf=$cf_suffix
30245 cf_depsuf=$cf_suffix
30249 cf_depsuf=$cf_suffix
30255 cf_depsuf=$cf_suffix
30268 cf_depsuf=$cf_suffix
30271 if test -n "${LIB_SUFFIX}${EXTRA_SUFFIX}"
30273 cf_suffix="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_suffix}"
30274 cf_depsuf="${LIB_SUFFIX}${EXTRA_SUFFIX}${cf_depsuf}"
30278 (libtool) cf_subdir='obj_lo' ;;
30279 (normal) cf_subdir='objects' ;;
30280 (debug) cf_subdir='obj_g' ;;
30281 (profile) cf_subdir='obj_p' ;;
30283 case "$cf_cv_system_name" in
30285 cf_subdir='objects' ;;
30287 cf_subdir='obj_s' ;;
30291 # Test for case where we build libtinfo with a different name.
30293 if test "$cf_dir" = ncurses ; then
30294 case "$cf_subset" in
30296 cf_libname=${cf_libname}$USE_LIB_SUFFIX
30299 cf_libname=$TINFO_LIB_SUFFIX
30302 cf_libname=$TICS_LIB_SUFFIX
30305 elif test "$cf_dir" = c++ ; then
30307 cf_map_lib_basename=`echo "cxx" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30309 eval cf_libname="\$${cf_map_lib_basename}_NAME"
30311 cf_libname=${cf_libname}$USE_LIB_SUFFIX
30314 cf_map_lib_basename=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
30316 eval cf_libname="\$${cf_map_lib_basename}_NAME"
30318 cf_libname=${cf_libname}$USE_LIB_SUFFIX
30320 if test -n "${USE_ARG_SUFFIX}" ; then
30321 # undo $USE_LIB_SUFFIX add-on in CF_LIB_SUFFIX
30322 cf_suffix=`echo "$cf_suffix" |sed -e "s%^${USE_LIB_SUFFIX}%%"`
30325 # These dependencies really are for development, not
30326 # builds, but they are useful in porting, too.
30327 cf_depend="../include/ncurses_cfg.h"
30328 if test "$srcdir" = "."; then
30331 cf_reldir="\${srcdir}"
30334 if test -f "$srcdir/$cf_dir/$cf_dir.priv.h" ; then
30335 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
30336 elif test -f "$srcdir/$cf_dir/curses.priv.h" ; then
30337 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
30341 old_cf_suffix="$cf_suffix"
30342 if test "$cf_cv_shlib_version_infix" = yes ; then
30343 if test -n "$USE_LIB_SUFFIX" ; then
30344 case "$USE_LIB_SUFFIX" in
30346 cf_libname=`echo "$cf_libname" | sed 's/tw'$EXTRA_SUFFIX'$//'`
30347 cf_suffix=`echo "$cf_suffix" | sed 's/^tw'$EXTRA_SUFFIX'//'`
30348 cf_dir_suffix=tw$EXTRA_SUFFIX
30351 cf_libname=`echo "$cf_libname" | sed 's/t'$EXTRA_SUFFIX'$//'`
30352 cf_suffix=`echo "$cf_suffix" | sed 's/^t'$EXTRA_SUFFIX'//'`
30353 cf_dir_suffix=t$EXTRA_SUFFIX
30356 cf_libname=`echo "$cf_libname" | sed 's/w'$EXTRA_SUFFIX'$//'`
30357 cf_suffix=`echo "$cf_suffix" | sed 's/^w'$EXTRA_SUFFIX'//'`
30358 cf_dir_suffix=w$EXTRA_SUFFIX
30361 cf_libname=`echo "$cf_libname" | sed 's/'$EXTRA_SUFFIX'$//'`
30362 cf_suffix=`echo "$cf_suffix" | sed 's/^'$EXTRA_SUFFIX'//'`
30363 cf_dir_suffix=$EXTRA_SUFFIX
30369 $AWK -f "$srcdir/mk-1st.awk" \
30370 name=${cf_libname}${cf_dir_suffix} \
30371 traces=$LIB_TRACING \
30373 CXX_MODEL=$CXX_MODEL \
30374 LIB_SUFFIX=$LIB_SUFFIX \
30375 USE_LIB_SUFFIX=$USE_LIB_SUFFIX \
30376 make_phony="${cf_cv_make_PHONY:-no}" \
30378 prefix=$cf_prefix \
30379 suffix=$cf_suffix \
30380 subset=$cf_subset \
30381 driver=$cf_cv_term_driver \
30383 TermlibRoot=$TINFO_NAME \
30384 TermlibSuffix=$TINFO_SUFFIX \
30385 ShlibVer=$cf_cv_shlib_version \
30386 ShlibVerInfix=$cf_cv_shlib_version_infix \
30387 ReLink=${cf_cv_do_relink:-no} \
30388 ReRanlib=${cf_cv_do_reranlib:-yes} \
30389 DoLinks=$cf_cv_do_symlinks \
30390 rmSoLocs=$cf_cv_rm_so_locs \
30391 ldconfig="$LDCONFIG" \
30392 overwrite=$WITH_OVERWRITE \
30393 depend="$cf_depend" \
30395 libtool_version="$LIBTOOL_VERSION" \
30396 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
30398 cf_suffix="$old_cf_suffix"
30400 for cf_subdir2 in $cf_subdirs lib
30402 test "$cf_subdir" = "$cf_subdir2" && break
30404 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
30405 $AWK -f "$srcdir/mk-2nd.awk" \
30407 traces=$LIB_TRACING \
30410 subset=$cf_subset \
30413 crenames=$cf_cv_prog_CC_c_o \
30414 cxxrenames=$cf_cv_prog_CXX_c_o \
30415 "$srcdir/$cf_dir/modules" >>$cf_dir/Makefile
30416 cf_subdirs="$cf_subdirs $cf_subdir"
30421 echo ' ( cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@ )' >>Makefile
30425 echo '# generated by CF_LIB_RULES' >> Makefile
30427 if test "x$cf_cv_make_PHONY" = xyes ; then
30428 cat >> Makefile <<-CF_EOF
30432 .PHONY : install.includes
30433 .PHONY : uninstall.includes
30434 .PHONY : install.libs
30435 .PHONY : uninstall.libs
30439 for cf_dir in $SRC_SUBDIRS
30441 if test ! -d "$srcdir/$cf_dir" ; then
30445 if test -f "$cf_dir/Makefile" ; then
30448 echo 'libs \' >> Makefile
30449 echo 'install.libs \' >> Makefile
30450 echo 'uninstall.libs ::' >> Makefile
30451 echo ' ( cd '$cf_dir' && ${MAKE} ${TOP_MFLAGS} $@ )' >> Makefile
30456 if test -f "$srcdir/$cf_dir/modules" ; then
30458 if test "x$cf_cv_make_PHONY" = xyes ; then
30459 cat >> Makefile <<-CF_EOF
30461 .PHONY : install.$cf_dir
30462 .PHONY : uninstall.$cf_dir
30467 if test -f "$srcdir/$cf_dir/headers" ; then
30468 cat >> Makefile <<CF_EOF
30469 install.includes \\
30470 uninstall.includes \\
30474 cat >> Makefile <<CF_EOF
30481 uninstall.$cf_dir ::
30482 ( cd "$cf_dir" && \${MAKE} \${TOP_MFLAGS} \$@ )
30484 elif test -f "$srcdir/$cf_dir/headers" ; then
30485 cat >> Makefile <<CF_EOF
30490 install.includes \\
30491 uninstall.includes ::
30492 ( cd "$cf_dir" && \${MAKE} \${TOP_MFLAGS} \$@ )
30497 if test "x$cf_cv_make_PHONY" = xyes ; then
30498 cat >> Makefile <<-CF_EOF
30500 .PHONY : install.data
30501 .PHONY : uninstall.data
30505 if test "x$cf_with_db_install" = xyes; then
30506 cat >> Makefile <<CF_EOF
30508 install.libs uninstall.libs \\
30509 install.data uninstall.data ::
30510 $MAKE_TERMINFO ( cd misc && \${MAKE} \${TOP_MFLAGS} \$@ )
30513 cat >> Makefile <<CF_EOF
30515 install.libs uninstall.libs ::
30516 ( cd misc && \${MAKE} \${TOP_MFLAGS} \$@ )
30520 if test "x$cf_with_manpages" = xyes; then
30522 if test "x$cf_cv_make_PHONY" = xyes ; then
30523 cat >> Makefile <<-CF_EOF
30525 .PHONY : install.man
30526 .PHONY : uninstall.man
30530 cat >> Makefile <<CF_EOF
30534 ( cd man && \${MAKE} \${TOP_MFLAGS} \$@ )
30538 cat >> Makefile <<CF_EOF
30541 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
30542 rm -f headers.sh headers.sed mk_shared_lib.sh
30543 rm -f edit_man.* man_alias.*
30544 rm -rf \${DIRS_TO_MAKE}
30547 # Special case: tack's manpage lives in its own directory.
30548 if test "x$cf_with_manpages" = xyes; then
30549 if test "x$cf_with_tack" = "xyes"; then
30550 cat >> Makefile <<CF_EOF
30554 ( cd tack && \${MAKE} \${TOP_MFLAGS} \$@ )
30559 rm -f headers.sed headers.sh
30561 echo creating headers.sh
30562 cat >headers.sh <<CF_EOF
30564 # This shell script is generated by the 'configure' script. It is invoked in a
30565 # subdirectory of the build tree. It generates a sed-script in the parent
30566 # directory that is used to adjust includes for header files that reside in a
30567 # subdirectory of /usr/include, etc.
30569 while test \$# != 3
30571 PRG="\$PRG \$1"; shift
30576 TMPSRC=\${TMPDIR:-/tmp}/\`basename \$SRC\`\$\$
30577 TMPSED=\${TMPDIR:-/tmp}/headers.sed\$\$
30578 echo installing \$SRC in \$DST
30581 if test "$WITH_CURSES_H" = yes; then
30582 cat >>headers.sh <<CF_EOF
30585 END=\`basename \$DST\`
30586 for i in \`cat \$REF/../*/headers |${FGREP-fgrep} -v "#"\`
30588 NAME=\`basename \$i\`
30589 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
30593 echo "" >> \$TMPSED
30599 cat >>headers.sh <<CF_EOF
30602 END=\`basename \$DST\`
30603 for i in \`cat \$REF/../*/headers |${FGREP-fgrep} -v "#"\`
30605 NAME=\`basename \$i\`
30606 if test "\$NAME" = "curses.h"
30608 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
30611 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
30615 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
30620 cat >>headers.sh <<CF_EOF
30622 sed -f \$TMPSED \$SRC > \$TMPSRC
30623 NAME=\`basename \$SRC\`
30625 if test "$WITH_CURSES_H" != yes; then
30626 cat >>headers.sh <<CF_EOF
30627 test "\$NAME" = "curses.h" && NAME=ncurses.h
30630 cat >>headers.sh <<CF_EOF
30631 # Just in case someone gzip'd manpages, remove the conflicting copy.
30632 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
30634 eval \$PRG \$TMPSRC \$DST/\$NAME
30635 rm -f \$TMPSRC \$TMPSED
30638 chmod 0755 headers.sh
30640 for cf_dir in $SRC_SUBDIRS
30642 if test ! -d "$srcdir/$cf_dir" ; then
30646 if test -f "$srcdir/$cf_dir/headers" ; then
30647 $AWK -f "$srcdir/mk-hdr.awk" \
30648 subset="$LIB_SUBSETS" \
30649 compat="$WITH_CURSES_H" \
30650 "$srcdir/$cf_dir/headers" >>$cf_dir/Makefile
30653 if test -f "$srcdir/$cf_dir/modules" ; then
30654 if test "$cf_dir" != "c++" ; then
30655 if test "x$cf_cv_make_PHONY" = xyes ; then
30656 cat >> $cf_dir/Makefile <<-CF_EOF
30662 cat >>$cf_dir/Makefile <<"CF_EOF"
30663 depend : ${AUTO_SRC}
30664 makedepend -- ${CPPFLAGS} -- ${C_SRC}
30666 # DO NOT DELETE THIS LINE -- make depend depends on it.
30672 if test "x$cf_with_ada" = "xyes" && test "x$cf_cv_prog_gnat_correct" = "xyes"; then
30673 if test -z "$USE_OLD_MAKERULES" ; then
30674 $AWK -f "$srcdir/Ada95/mk-1st.awk" <"$srcdir/Ada95/src/modules" >>Ada95/src/Makefile
30682 cat >>"$CONFIG_STATUS" <<\EOF
30684 { (exit 0); exit 0; }
30686 chmod +x "$CONFIG_STATUS"
30687 ac_clean_files=$ac_clean_files_save
30689 # configure is writing to config.log, and then calls config.status.
30690 # config.status does its own redirection, appending to config.log.
30691 # Unfortunately, on DOS this fails, as config.log is still kept open
30692 # by configure, so config.status won't be able to write to it; its
30693 # output is simply discarded. So we exec the FD to /dev/null,
30694 # effectively closing config.log, so it can be properly (re)opened and
30695 # appended to by config.status. When coming back to configure, we
30696 # need to make the FD available again.
30697 if test "$no_create" != yes; then
30700 $SHELL "$CONFIG_STATUS" || ac_cs_success=false
30702 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30703 # would make configure fail if this is the last instruction.
30704 "$ac_cs_success" || { (exit 1); exit 1; }
30706 ${MAKE:-make} preinstall