2 # From configure.in Revision: 1.312 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20030208.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
35 if expr a : '\(a\)' >/dev/null 2>&1; then
41 rm -f conf$$ conf$$.exe conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
52 elif ln conf$$.file conf$$ 2>/dev/null; then
57 rm -f conf$$ conf$$.exe conf$$.file
59 as_executable_p="test -f"
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
79 # We need space, tab and new line, in precisely that order.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
97 ac_default_prefix=/usr/local
101 SHELL=${CONFIG_SHELL-/bin/sh}
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete. It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
108 ac_unique_file="ncurses/base/lib_initscr.c"
110 # Initialize some variables set by options.
112 ac_init_version=false
113 # The variables have the same names as the options, with
114 # dashes changed to underlines.
122 program_transform_name=s,x,x,
130 # Installation directory options.
131 # These are left unexpanded so users can "make install exec_prefix=/foo"
132 # and all the variables that are supposed to be based on exec_prefix
133 # by default will actually change.
134 # Use braces instead of parens because sh, perl, etc. also accept them.
135 bindir='${exec_prefix}/bin'
136 sbindir='${exec_prefix}/sbin'
137 libexecdir='${exec_prefix}/libexec'
138 datadir='${prefix}/share'
139 sysconfdir='${prefix}/etc'
140 sharedstatedir='${prefix}/com'
141 localstatedir='${prefix}/var'
142 libdir='${exec_prefix}/lib'
143 includedir='${prefix}/include'
144 oldincludedir='/usr/include'
145 infodir='${prefix}/info'
146 mandir='${prefix}/man'
148 # Identity of this package.
158 # If the previous option needs an argument, assign it.
159 if test -n "$ac_prev"; then
160 eval "$ac_prev=\$ac_option"
165 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
167 # Accept the important Cygnus configure options, so we can diagnose typos.
171 -bindir | --bindir | --bindi | --bind | --bin | --bi)
173 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
176 -build | --build | --buil | --bui | --bu)
177 ac_prev=build_alias ;;
178 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
179 build_alias=$ac_optarg ;;
181 -cache-file | --cache-file | --cache-fil | --cache-fi \
182 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
183 ac_prev=cache_file ;;
184 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
185 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
186 cache_file=$ac_optarg ;;
189 cache_file=config.cache ;;
191 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
193 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
195 datadir=$ac_optarg ;;
197 -disable-* | --disable-*)
198 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
199 # Reject names that are not valid shell variable names.
200 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
201 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
202 { (exit 1); exit 1; }; }
203 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
204 eval "enable_$ac_feature=no" ;;
206 -enable-* | --enable-*)
207 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
208 # Reject names that are not valid shell variable names.
209 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
210 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
211 { (exit 1); exit 1; }; }
212 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
214 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
217 eval "enable_$ac_feature='$ac_optarg'" ;;
219 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
220 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
221 | --exec | --exe | --ex)
222 ac_prev=exec_prefix ;;
223 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
224 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
225 | --exec=* | --exe=* | --ex=*)
226 exec_prefix=$ac_optarg ;;
228 -gas | --gas | --ga | --g)
229 # Obsolete; use --with-gas.
232 -help | --help | --hel | --he | -h)
234 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
235 ac_init_help=recursive ;;
236 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
237 ac_init_help=short ;;
239 -host | --host | --hos | --ho)
240 ac_prev=host_alias ;;
241 -host=* | --host=* | --hos=* | --ho=*)
242 host_alias=$ac_optarg ;;
244 -includedir | --includedir | --includedi | --included | --include \
245 | --includ | --inclu | --incl | --inc)
246 ac_prev=includedir ;;
247 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
248 | --includ=* | --inclu=* | --incl=* | --inc=*)
249 includedir=$ac_optarg ;;
251 -infodir | --infodir | --infodi | --infod | --info | --inf)
253 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
254 infodir=$ac_optarg ;;
256 -libdir | --libdir | --libdi | --libd)
258 -libdir=* | --libdir=* | --libdi=* | --libd=*)
261 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
262 | --libexe | --libex | --libe)
263 ac_prev=libexecdir ;;
264 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
265 | --libexe=* | --libex=* | --libe=*)
266 libexecdir=$ac_optarg ;;
268 -localstatedir | --localstatedir | --localstatedi | --localstated \
269 | --localstate | --localstat | --localsta | --localst \
270 | --locals | --local | --loca | --loc | --lo)
271 ac_prev=localstatedir ;;
272 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
273 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
274 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
275 localstatedir=$ac_optarg ;;
277 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
279 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
283 # Obsolete; use --without-fp.
286 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
290 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
291 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
294 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
295 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
296 | --oldin | --oldi | --old | --ol | --o)
297 ac_prev=oldincludedir ;;
298 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
299 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
300 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
301 oldincludedir=$ac_optarg ;;
303 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
305 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
308 -program-prefix | --program-prefix | --program-prefi | --program-pref \
309 | --program-pre | --program-pr | --program-p)
310 ac_prev=program_prefix ;;
311 -program-prefix=* | --program-prefix=* | --program-prefi=* \
312 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
313 program_prefix=$ac_optarg ;;
315 -program-suffix | --program-suffix | --program-suffi | --program-suff \
316 | --program-suf | --program-su | --program-s)
317 ac_prev=program_suffix ;;
318 -program-suffix=* | --program-suffix=* | --program-suffi=* \
319 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
320 program_suffix=$ac_optarg ;;
322 -program-transform-name | --program-transform-name \
323 | --program-transform-nam | --program-transform-na \
324 | --program-transform-n | --program-transform- \
325 | --program-transform | --program-transfor \
326 | --program-transfo | --program-transf \
327 | --program-trans | --program-tran \
328 | --progr-tra | --program-tr | --program-t)
329 ac_prev=program_transform_name ;;
330 -program-transform-name=* | --program-transform-name=* \
331 | --program-transform-nam=* | --program-transform-na=* \
332 | --program-transform-n=* | --program-transform-=* \
333 | --program-transform=* | --program-transfor=* \
334 | --program-transfo=* | --program-transf=* \
335 | --program-trans=* | --program-tran=* \
336 | --progr-tra=* | --program-tr=* | --program-t=*)
337 program_transform_name=$ac_optarg ;;
339 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
340 | -silent | --silent | --silen | --sile | --sil)
343 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
345 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
347 sbindir=$ac_optarg ;;
349 -sharedstatedir | --sharedstatedir | --sharedstatedi \
350 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
351 | --sharedst | --shareds | --shared | --share | --shar \
353 ac_prev=sharedstatedir ;;
354 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
355 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
356 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
358 sharedstatedir=$ac_optarg ;;
360 -site | --site | --sit)
362 -site=* | --site=* | --sit=*)
365 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
367 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
370 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
371 | --syscon | --sysco | --sysc | --sys | --sy)
372 ac_prev=sysconfdir ;;
373 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
374 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
375 sysconfdir=$ac_optarg ;;
377 -target | --target | --targe | --targ | --tar | --ta | --t)
378 ac_prev=target_alias ;;
379 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
380 target_alias=$ac_optarg ;;
382 -v | -verbose | --verbose | --verbos | --verbo | --verb)
385 -version | --version | --versio | --versi | --vers | -V)
389 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
390 # Reject names that are not valid shell variable names.
391 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
392 { echo "$as_me: error: invalid package name: $ac_package" >&2
393 { (exit 1); exit 1; }; }
394 ac_package=`echo $ac_package| sed 's/-/_/g'`
396 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
399 eval "with_$ac_package='$ac_optarg'" ;;
401 -without-* | --without-*)
402 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
403 # Reject names that are not valid shell variable names.
404 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405 { echo "$as_me: error: invalid package name: $ac_package" >&2
406 { (exit 1); exit 1; }; }
407 ac_package=`echo $ac_package | sed 's/-/_/g'`
408 eval "with_$ac_package=no" ;;
411 # Obsolete; use --with-x.
414 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
415 | --x-incl | --x-inc | --x-in | --x-i)
416 ac_prev=x_includes ;;
417 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
418 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
419 x_includes=$ac_optarg ;;
421 -x-libraries | --x-libraries | --x-librarie | --x-librari \
422 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
423 ac_prev=x_libraries ;;
424 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
425 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
426 x_libraries=$ac_optarg ;;
428 -*) { echo "$as_me: error: unrecognized option: $ac_option
429 Try \`$0 --help' for more information." >&2
430 { (exit 1); exit 1; }; }
434 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
435 # Reject names that are not valid shell variable names.
436 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
437 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
438 { (exit 1); exit 1; }; }
439 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
440 eval "$ac_envvar='$ac_optarg'"
444 # FIXME: should be removed in autoconf 3.0.
445 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
446 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
447 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
448 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
454 if test -n "$ac_prev"; then
455 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
456 { echo "$as_me: error: missing argument to $ac_option" >&2
457 { (exit 1); exit 1; }; }
460 # Be sure to have absolute paths.
461 for ac_var in exec_prefix prefix
463 eval ac_val=$`echo $ac_var`
465 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
466 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
467 { (exit 1); exit 1; }; };;
471 # Be sure to have absolute paths.
472 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
473 localstatedir libdir includedir oldincludedir infodir mandir
475 eval ac_val=$`echo $ac_var`
477 [\\/$]* | ?:[\\/]* ) ;;
478 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
479 { (exit 1); exit 1; }; };;
483 # There might be people who depend on the old broken behavior: `$host'
484 # used to hold the argument of --host etc.
489 # FIXME: should be removed in autoconf 3.0.
490 if test "x$host_alias" != x; then
491 if test "x$build_alias" = x; then
492 cross_compiling=maybe
493 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
494 If a cross compiler is detected then cross compile mode will be used." >&2
495 elif test "x$build_alias" != "x$host_alias"; then
501 test -n "$host_alias" && ac_tool_prefix=$host_alias-
503 test "$silent" = yes && exec 6>/dev/null
505 # Find the source files, if location was not specified.
506 if test -z "$srcdir"; then
507 ac_srcdir_defaulted=yes
508 # Try the directory containing this script, then its parent.
510 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
511 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
513 if test ! -r $srcdir/$ac_unique_file; then
517 ac_srcdir_defaulted=no
519 if test ! -r $srcdir/$ac_unique_file; then
520 if test "$ac_srcdir_defaulted" = yes; then
521 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
522 { (exit 1); exit 1; }; }
524 { echo "$as_me: error: cannot find sources in $srcdir" >&2
525 { (exit 1); exit 1; }; }
528 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
529 ac_env_build_alias_set=${build_alias+set}
530 ac_env_build_alias_value=$build_alias
531 ac_cv_env_build_alias_set=${build_alias+set}
532 ac_cv_env_build_alias_value=$build_alias
533 ac_env_host_alias_set=${host_alias+set}
534 ac_env_host_alias_value=$host_alias
535 ac_cv_env_host_alias_set=${host_alias+set}
536 ac_cv_env_host_alias_value=$host_alias
537 ac_env_target_alias_set=${target_alias+set}
538 ac_env_target_alias_value=$target_alias
539 ac_cv_env_target_alias_set=${target_alias+set}
540 ac_cv_env_target_alias_value=$target_alias
541 ac_env_CC_set=${CC+set}
543 ac_cv_env_CC_set=${CC+set}
544 ac_cv_env_CC_value=$CC
545 ac_env_CFLAGS_set=${CFLAGS+set}
546 ac_env_CFLAGS_value=$CFLAGS
547 ac_cv_env_CFLAGS_set=${CFLAGS+set}
548 ac_cv_env_CFLAGS_value=$CFLAGS
549 ac_env_LDFLAGS_set=${LDFLAGS+set}
550 ac_env_LDFLAGS_value=$LDFLAGS
551 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
552 ac_cv_env_LDFLAGS_value=$LDFLAGS
553 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
554 ac_env_CPPFLAGS_value=$CPPFLAGS
555 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
556 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
557 ac_env_CPP_set=${CPP+set}
558 ac_env_CPP_value=$CPP
559 ac_cv_env_CPP_set=${CPP+set}
560 ac_cv_env_CPP_value=$CPP
561 ac_env_CXX_set=${CXX+set}
562 ac_env_CXX_value=$CXX
563 ac_cv_env_CXX_set=${CXX+set}
564 ac_cv_env_CXX_value=$CXX
565 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
566 ac_env_CXXFLAGS_value=$CXXFLAGS
567 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
568 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
569 ac_env_CXXCPP_set=${CXXCPP+set}
570 ac_env_CXXCPP_value=$CXXCPP
571 ac_cv_env_CXXCPP_set=${CXXCPP+set}
572 ac_cv_env_CXXCPP_value=$CXXCPP
575 # Report the --help message.
577 if test "$ac_init_help" = "long"; then
578 # Omit some internal or obsolete options to make the list less imposing.
579 # This message is too long to be a string in the A/UX 3.1 sh.
581 \`configure' configures this package to adapt to many kinds of systems.
583 Usage: $0 [OPTION]... [VAR=VALUE]...
585 To assign environment variables (e.g., CC, CFLAGS...), specify them as
586 VAR=VALUE. See below for descriptions of some of the useful variables.
588 Defaults for the options are specified in brackets.
591 -h, --help display this help and exit
592 --help=short display options specific to this package
593 --help=recursive display the short help of all the included packages
594 -V, --version display version information and exit
595 -q, --quiet, --silent do not print \`checking...' messages
596 --cache-file=FILE cache test results in FILE [disabled]
597 -C, --config-cache alias for \`--cache-file=config.cache'
598 -n, --no-create do not create output files
599 --srcdir=DIR find the sources in DIR [configure dir or \`..']
604 Installation directories:
605 --prefix=PREFIX install architecture-independent files in PREFIX
607 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
610 By default, \`make install' will install all the files in
611 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
612 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
613 for instance \`--prefix=\$HOME'.
615 For better control, use the options below.
617 Fine tuning of the installation directories:
618 --bindir=DIR user executables [EPREFIX/bin]
619 --sbindir=DIR system admin executables [EPREFIX/sbin]
620 --libexecdir=DIR program executables [EPREFIX/libexec]
621 --datadir=DIR read-only architecture-independent data [PREFIX/share]
622 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
623 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
624 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
625 --libdir=DIR object code libraries [EPREFIX/lib]
626 --includedir=DIR C header files [PREFIX/include]
627 --oldincludedir=DIR C header files for non-gcc [/usr/include]
628 --infodir=DIR info documentation [PREFIX/info]
629 --mandir=DIR man documentation [PREFIX/man]
635 --program-prefix=PREFIX prepend PREFIX to installed program names
636 --program-suffix=SUFFIX append SUFFIX to installed program names
637 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
640 --build=BUILD configure for building on BUILD [guessed]
641 --host=HOST build programs to run on HOST [BUILD]
642 --target=TARGET configure for building compilers for TARGET [HOST]
646 if test -n "$ac_init_help"; then
651 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
652 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
655 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
656 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
658 --with-rel-version=XXX override derived release version
659 --with-abi-version=XXX override derived ABI version
660 --with-system-type=XXX test: override derived host system-type
661 --without-cxx do not adjust ncurses bool to match C++
662 --without-cxx-binding do not build C++ binding and demo
663 --without-ada suppress check for Ada95, don't build demo
664 --without-progs suppress build with programs (e.g., tic)
665 --without-curses-h install curses.h as ncurses.h only
666 --with-install-prefix prefixes actual install-location ($DESTDIR)
667 Build-Tools Needed to Compile Temporary Applications for Cross-compiling:
668 --with-build-cc=XXX the build C compiler ($BUILD_CC)
669 --with-build-cflags=XXX the build C compiler-flags
670 --with-build-cppflags=XXX the build C preprocessor-flags
671 --with-build-ldflags=XXX the build linker-flags
672 --with-build-libs=XXX the build libraries
673 Options to Specify the Libraries Built/Used:
674 --with-libtool generate libraries with libtool
675 --with-shared generate shared-libraries
676 --with-normal generate normal-libraries (default)
677 --with-debug generate debug-libraries (default)
678 --with-profile generate profile-libraries
679 --with-termlib generate separate terminfo library
680 --with-dbmalloc test: use Conor Cahill's dbmalloc library
681 --with-dmalloc test: use Gray Watson's dmalloc library
682 --with-gpm use Alessandro Rubini's GPM library
683 --with-sysmouse use sysmouse (FreeBSD console)
684 --enable-rpath use rpath option when generating shared libraries
685 --with-shlib-version=X Specify rel or abi version for shared libs
686 Fine-Tuning Your Configuration:
687 --disable-overwrite leave out the link to -lcurses
688 --disable-database do not use terminfo, only fallbacks/termcap
689 --with-database=XXX specify terminfo source to install
690 --with-fallbacks=XXX specify list of fallback terminal descriptions
691 --with-terminfo-dirs=XXX specify list of terminfo directories (default: DATADIR/terminfo)
692 --with-default-terminfo-dir=DIR default terminfo directory (default: DATADIR/terminfo)
693 --disable-big-core assume machine has little memory
694 --enable-termcap compile in termcap fallback support
695 --with-termpath=XXX specify list of termcap files (default: /etc/termcap:/usr/share/misc/termcap)
696 --enable-getcap fast termcap load, no xrefs to terminfo
697 --enable-getcap-cache cache translated termcaps in ~/.terminfo
698 --disable-home-terminfo drop ~/.terminfo from terminfo search-path
699 --enable-symlinks make tic use symbolic links not hard links
700 --enable-broken_linker compile with broken-linker support code
701 --with-bool=TYPE override fallback type of bool variable
702 --with-ospeed=TYPE override type of ospeed variable
703 --enable-bsdpad recognize BSD-style prefix padding
704 --with-rcs-ids compile-in RCS identifiers
705 Options to Specify How Manpages are Installed:
706 --with-manpage-format specify manpage-format: gzip/compress/BSDI/normal and
707 optionally formatted/catonly, e.g., gzip,formatted
708 --with-manpage-renames specify manpage-renaming
709 --with-manpage-aliases specify manpage-aliases using .so
710 --with-manpage-symlinks specify manpage-aliases using symlinks
711 --with-manpage-tbl specify manpage processing with tbl
713 --disable-ext-funcs disable function-extensions
714 --enable-const compile with extra/non-standard const
715 --enable-no-padding compile with $NCURSES_NO_PADDING code
716 --enable-sigwinch compile with SIGWINCH handler
717 --enable-tcap-names compile with user-definable terminal capabilities
719 --with-develop enable all development options
720 --enable-hard-tabs compile with hard-tabs code
721 --disable-root-environ limit environment when running as root
722 --enable-xmc-glitch compile with limited support for xmc
724 --disable-assumed-color do not assume anything about default-colors
725 --disable-hashmap compile without hashmap scrolling-optimization
726 --enable-colorfgbg compile with $COLORFGBG code
727 --enable-safe-sprintf compile with experimental safe-sprintf code
728 --disable-scroll-hints compile without scroll-hints code
729 --enable-widec compile with experimental wide-char/UTF-8 code
730 --with-caps=alt compile with experimental alternate Caps file
731 Testing/development Options:
732 --enable-echo build: display "compiling" commands (default)
733 --enable-warnings build: turn on GCC compiler warnings
734 --enable-assertions test: turn on generation of assertion code
735 --disable-leaks test: suppress permanent memory-leaks
736 --enable-expanded test: generate functions for certain macros
737 --disable-macros test: use functions rather than macros
738 --with-trace test: add trace() function to all models of ncurses
739 Ada95 Binding Options:
740 --with-ada-compiler=CMD specify Ada95 compiler command (default gnatmake)
741 --with-ada-include=DIR Ada includes are in DIR (default: PREFIX/lib/ada/adainclude)
742 --with-ada-objects=DIR Ada objects are in DIR (default: PREFIX/lib/ada/adalib)
744 Some influential environment variables:
745 CC C compiler command
746 CFLAGS C compiler flags
747 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
748 nonstandard directory <lib dir>
749 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
750 headers in a nonstandard directory <include dir>
752 CXX C++ compiler command
753 CXXFLAGS C++ compiler flags
754 CXXCPP C++ preprocessor
756 Use these variables to override the choices made by `configure' or to help
757 it to find libraries and programs with nonstandard names/locations.
762 if test "$ac_init_help" = "recursive"; then
763 # If there are subdirs, report their specific --help.
765 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
767 # A "../" for each directory in /$ac_subdir.
768 ac_dots=`echo $ac_subdir |
769 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
772 .) # No --srcdir option. We are building in place.
773 ac_sub_srcdir=$srcdir ;;
774 [\\/]* | ?:[\\/]* ) # Absolute path.
775 ac_sub_srcdir=$srcdir/$ac_subdir ;;
777 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
780 # Check for guested configure; otherwise get Cygnus style configure.
781 if test -f $ac_sub_srcdir/configure.gnu; then
783 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
784 elif test -f $ac_sub_srcdir/configure; then
786 $SHELL $ac_sub_srcdir/configure --help=recursive
787 elif test -f $ac_sub_srcdir/configure.ac ||
788 test -f $ac_sub_srcdir/configure.in; then
792 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
798 test -n "$ac_init_help" && exit 0
799 if $ac_init_version; then
802 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
803 Free Software Foundation, Inc.
804 This configure script is free software; the Free Software Foundation
805 gives unlimited permission to copy, distribute and modify it.
811 This file contains any messages produced by compilers while
812 running configure, to aid debugging if configure makes a mistake.
814 It was created by $as_me, which was
815 generated by GNU Autoconf 2.52.20030208. Invocation command line was
826 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
827 uname -m = `(uname -m) 2>/dev/null || echo unknown`
828 uname -r = `(uname -r) 2>/dev/null || echo unknown`
829 uname -s = `(uname -s) 2>/dev/null || echo unknown`
830 uname -v = `(uname -v) 2>/dev/null || echo unknown`
832 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
833 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
835 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
836 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
837 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
838 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
839 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
840 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
841 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
855 # Keep a trace of the command line.
856 # Strip out --no-create and --no-recursion so they do not pile up.
857 # Also quote any args containing shell meta-characters.
863 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
864 | --no-cr | --no-c) ;;
865 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
866 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
867 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
868 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
869 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
871 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
874 # Get rid of the leading space.
877 # When interrupted or exit'd, cleanup temporary files, and complete
878 # config.log. We remove comments because anyway the quotes in there
879 # would cause problems or look ugly.
881 # Save into config.log some information that might help in debugging.
883 echo "## ----------------- ##" >&5
884 echo "## Cache variables. ##" >&5
885 echo "## ----------------- ##" >&5
887 # The following way of writing the cache mishandles newlines in values,
890 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
893 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
894 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
898 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
902 sed "/^$/d" confdefs.h >conftest.log
903 if test -s conftest.log; then
905 echo "## ------------ ##" >&5
906 echo "## confdefs.h. ##" >&5
907 echo "## ------------ ##" >&5
912 test "$ac_signal" != 0 &&
913 echo "$as_me: caught signal $ac_signal" >&5
914 echo "$as_me: exit $exit_status" >&5
915 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
918 for ac_signal in 1 2 13 15; do
919 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
923 # confdefs.h avoids OS command line length limits that DEFS can exceed.
924 rm -rf conftest* confdefs.h
925 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
928 # Let the site file select an alternate cache file if it wants to.
929 # Prefer explicitly selected file to automatically selected ones.
930 if test -z "$CONFIG_SITE"; then
931 if test "x$prefix" != xNONE; then
932 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
934 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
937 for ac_site_file in $CONFIG_SITE; do
938 if test -r "$ac_site_file"; then
939 { echo "$as_me:939: loading site script $ac_site_file" >&5
940 echo "$as_me: loading site script $ac_site_file" >&6;}
941 cat "$ac_site_file" >&5
946 if test -r "$cache_file"; then
947 # Some versions of bash will fail to source /dev/null (special
948 # files actually), so we avoid doing that.
949 if test -f "$cache_file"; then
950 { echo "$as_me:950: loading cache $cache_file" >&5
951 echo "$as_me: loading cache $cache_file" >&6;}
953 [\\/]* | ?:[\\/]* ) . $cache_file;;
958 { echo "$as_me:958: creating cache $cache_file" >&5
959 echo "$as_me: creating cache $cache_file" >&6;}
963 # Check that the precious variables saved in the cache have kept the same
965 ac_cache_corrupted=false
966 for ac_var in `(set) 2>&1 |
967 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
968 eval ac_old_set=\$ac_cv_env_${ac_var}_set
969 eval ac_new_set=\$ac_env_${ac_var}_set
970 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
971 eval ac_new_val="\$ac_env_${ac_var}_value"
972 case $ac_old_set,$ac_new_set in
974 { echo "$as_me:974: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
975 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
976 ac_cache_corrupted=: ;;
978 { echo "$as_me:978: error: \`$ac_var' was not set in the previous run" >&5
979 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
980 ac_cache_corrupted=: ;;
983 if test "x$ac_old_val" != "x$ac_new_val"; then
984 { echo "$as_me:984: error: \`$ac_var' has changed since the previous run:" >&5
985 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
986 { echo "$as_me:986: former value: $ac_old_val" >&5
987 echo "$as_me: former value: $ac_old_val" >&2;}
988 { echo "$as_me:988: current value: $ac_new_val" >&5
989 echo "$as_me: current value: $ac_new_val" >&2;}
993 # Pass precious variables to config.status. It doesn't matter if
994 # we pass some twice (in addition to the command line arguments).
995 if test "$ac_new_set" = set; then
997 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
998 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
999 ac_configure_args="$ac_configure_args '$ac_arg'"
1001 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1006 if $ac_cache_corrupted; then
1007 { echo "$as_me:1007: error: changes in the environment can compromise the build" >&5
1008 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1009 { { echo "$as_me:1009: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1010 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1011 { (exit 1); exit 1; }; }
1015 ac_cpp='$CPP $CPPFLAGS'
1016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1020 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1021 *c*,-n*) ECHO_N= ECHO_C='
1023 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1024 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1026 echo "#! $SHELL" >conftest.sh
1027 echo "exit 0" >>conftest.sh
1028 chmod +x conftest.sh
1029 if { (echo "$as_me:1029: PATH=\".;.\"; conftest.sh") >&5
1030 (PATH=".;."; conftest.sh) 2>&5
1032 echo "$as_me:1032: \$? = $ac_status" >&5
1033 (exit $ac_status); }; then
1034 ac_path_separator=';'
1038 PATH_SEPARATOR="$ac_path_separator"
1041 ac_config_headers="$ac_config_headers include/ncurses_cfg.h:include/ncurses_cfg.hin"
1043 NCURSES_MAJOR="`egrep '^NCURSES_MAJOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1044 NCURSES_MINOR="`egrep '^NCURSES_MINOR[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1045 NCURSES_PATCH="`egrep '^NCURSES_PATCH[ ]*=' $srcdir/dist.mk | sed -e 's/^[^0-9]*//'`"
1046 cf_cv_abi_version=${NCURSES_MAJOR}
1047 cf_cv_rel_version=${NCURSES_MAJOR}.${NCURSES_MINOR}
1048 cf_cv_timestamp=`date`
1049 echo "$as_me:1049: result: Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&5
1050 echo "${ECHO_T}Configuring NCURSES $cf_cv_rel_version ABI $cf_cv_abi_version ($cf_cv_timestamp)" >&6
1052 test -z "$cf_cv_rel_version" && cf_cv_rel_version=0.0
1054 # Check whether --with-rel-version or --without-rel-version was given.
1055 if test "${with_rel_version+set}" = set; then
1056 withval="$with_rel_version"
1057 { echo "$as_me:1057: WARNING: overriding release version $cf_cv_rel_version to $withval" >&5
1058 echo "$as_me: WARNING: overriding release version $cf_cv_rel_version to $withval" >&2;}
1059 cf_cv_rel_version=$withval
1062 NCURSES_MAJOR=`echo "$cf_cv_rel_version" | sed -e 's/\..*//'`
1063 NCURSES_MINOR=`echo "$cf_cv_rel_version" | sed -e 's/^[^.]*//' -e 's/^\.//' -e 's/\..*//'`
1065 if test -n "$NCURSES_MAJOR" ; then
1066 case $NCURSES_MAJOR in #(vi
1070 { { echo "$as_me:1070: error: Release major-version is not a number: $NCURSES_MAJOR" >&5
1071 echo "$as_me: error: Release major-version is not a number: $NCURSES_MAJOR" >&2;}
1072 { (exit 1); exit 1; }; }
1076 { { echo "$as_me:1076: error: Release major-version value is empty" >&5
1077 echo "$as_me: error: Release major-version value is empty" >&2;}
1078 { (exit 1); exit 1; }; }
1081 if test -n "$NCURSES_MINOR" ; then
1082 case $NCURSES_MINOR in #(vi
1086 { { echo "$as_me:1086: error: Release minor-version is not a number: $NCURSES_MINOR" >&5
1087 echo "$as_me: error: Release minor-version is not a number: $NCURSES_MINOR" >&2;}
1088 { (exit 1); exit 1; }; }
1092 { { echo "$as_me:1092: error: Release minor-version value is empty" >&5
1093 echo "$as_me: error: Release minor-version value is empty" >&2;}
1094 { (exit 1); exit 1; }; }
1097 test -z "$cf_cv_abi_version" && cf_cv_abi_version=0
1099 # Check whether --with-abi-version or --without-abi-version was given.
1100 if test "${with_abi_version+set}" = set; then
1101 withval="$with_abi_version"
1102 { echo "$as_me:1102: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&5
1103 echo "$as_me: WARNING: overriding ABI version $cf_cv_abi_version to $withval" >&2;}
1104 cf_cv_abi_version=$withval
1107 if test -n "$cf_cv_abi_version" ; then
1108 case $cf_cv_abi_version in #(vi
1112 { { echo "$as_me:1112: error: ABI version is not a number: $cf_cv_abi_version" >&5
1113 echo "$as_me: error: ABI version is not a number: $cf_cv_abi_version" >&2;}
1114 { (exit 1); exit 1; }; }
1118 { { echo "$as_me:1118: error: ABI version value is empty" >&5
1119 echo "$as_me: error: ABI version value is empty" >&2;}
1120 { (exit 1); exit 1; }; }
1124 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1125 if test -f $ac_dir/install-sh; then
1127 ac_install_sh="$ac_aux_dir/install-sh -c"
1129 elif test -f $ac_dir/install.sh; then
1131 ac_install_sh="$ac_aux_dir/install.sh -c"
1133 elif test -f $ac_dir/shtool; then
1135 ac_install_sh="$ac_aux_dir/shtool install -c"
1139 if test -z "$ac_aux_dir"; then
1140 { { echo "$as_me:1140: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1141 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1142 { (exit 1); exit 1; }; }
1144 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1145 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1146 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1148 # Make sure we can run config.sub.
1149 $ac_config_sub sun4 >/dev/null 2>&1 ||
1150 { { echo "$as_me:1150: error: cannot run $ac_config_sub" >&5
1151 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1152 { (exit 1); exit 1; }; }
1154 echo "$as_me:1154: checking build system type" >&5
1155 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1156 if test "${ac_cv_build+set}" = set; then
1157 echo $ECHO_N "(cached) $ECHO_C" >&6
1159 ac_cv_build_alias=$build_alias
1160 test -z "$ac_cv_build_alias" &&
1161 ac_cv_build_alias=`$ac_config_guess`
1162 test -z "$ac_cv_build_alias" &&
1163 { { echo "$as_me:1163: error: cannot guess build type; you must specify one" >&5
1164 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1165 { (exit 1); exit 1; }; }
1166 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1167 { { echo "$as_me:1167: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1168 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1169 { (exit 1); exit 1; }; }
1172 echo "$as_me:1172: result: $ac_cv_build" >&5
1173 echo "${ECHO_T}$ac_cv_build" >&6
1175 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1176 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1177 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1179 echo "$as_me:1179: checking host system type" >&5
1180 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1181 if test "${ac_cv_host+set}" = set; then
1182 echo $ECHO_N "(cached) $ECHO_C" >&6
1184 ac_cv_host_alias=$host_alias
1185 test -z "$ac_cv_host_alias" &&
1186 ac_cv_host_alias=$ac_cv_build_alias
1187 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1188 { { echo "$as_me:1188: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1189 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1190 { (exit 1); exit 1; }; }
1193 echo "$as_me:1193: result: $ac_cv_host" >&5
1194 echo "${ECHO_T}$ac_cv_host" >&6
1196 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1197 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1198 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1200 if test -f $srcdir/config.guess ; then
1201 echo "$as_me:1201: checking target system type" >&5
1202 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1203 if test "${ac_cv_target+set}" = set; then
1204 echo $ECHO_N "(cached) $ECHO_C" >&6
1206 ac_cv_target_alias=$target_alias
1207 test "x$ac_cv_target_alias" = "x" &&
1208 ac_cv_target_alias=$ac_cv_host_alias
1209 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1210 { { echo "$as_me:1210: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1211 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1212 { (exit 1); exit 1; }; }
1215 echo "$as_me:1215: result: $ac_cv_target" >&5
1216 echo "${ECHO_T}$ac_cv_target" >&6
1217 target=$ac_cv_target
1218 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1219 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1220 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1222 # The aliases save the names the user supplied, while $host etc.
1223 # will get canonicalized.
1224 test -n "$target_alias" &&
1225 test "$program_prefix$program_suffix$program_transform_name" = \
1227 program_prefix=${target_alias}-
1228 system_name="$host_os"
1230 system_name="`(uname -s -r) 2>/dev/null`"
1231 if test -z "$system_name" ; then
1232 system_name="`(hostname) 2>/dev/null`"
1235 test -n "$system_name" && cat >>confdefs.h <<EOF
1236 #define SYSTEM_NAME "$system_name"
1239 if test "${cf_cv_system_name+set}" = set; then
1240 echo $ECHO_N "(cached) $ECHO_C" >&6
1242 cf_cv_system_name="$system_name"
1245 test -z "$system_name" && system_name="$cf_cv_system_name"
1246 test -n "$cf_cv_system_name" && echo "$as_me:1246: result: Configuring for $cf_cv_system_name" >&5
1247 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1249 if test ".$system_name" != ".$cf_cv_system_name" ; then
1250 echo "$as_me:1250: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1251 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1252 { { echo "$as_me:1252: error: \"Please remove config.cache and try again.\"" >&5
1253 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1254 { (exit 1); exit 1; }; }
1257 # Check whether --with-system-type or --without-system-type was given.
1258 if test "${with_system_type+set}" = set; then
1259 withval="$with_system_type"
1260 { echo "$as_me:1260: WARNING: overriding system type to $withval" >&5
1261 echo "$as_me: WARNING: overriding system type to $withval" >&2;}
1262 cf_cv_system_name=$withval
1265 ### Save the given $CFLAGS to allow user-override.
1266 cf_user_CFLAGS="$CFLAGS"
1268 ### Default install-location
1270 echo "$as_me:1270: checking for prefix" >&5
1271 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1272 if test "x$prefix" = "xNONE" ; then
1273 case "$cf_cv_system_name" in
1274 # non-vendor systems don't have a conflict
1275 openbsd*|netbsd*|freebsd*|linux*|cygwin*|k*bsd*-gnu)
1278 *) prefix=$ac_default_prefix
1282 echo "$as_me:1282: result: $prefix" >&5
1283 echo "${ECHO_T}$prefix" >&6
1285 if test "x$prefix" = "xNONE" ; then
1286 echo "$as_me:1286: checking for default include-directory" >&5
1287 echo $ECHO_N "checking for default include-directory... $ECHO_C" >&6
1288 test -n "$verbose" && echo 1>&6
1291 $includedir/ncurses \
1293 $prefix/include/ncurses \
1294 /usr/local/include \
1295 /usr/local/include/ncurses \
1297 /usr/include/ncurses
1299 cf_dir=`eval echo $cf_symbol`
1300 if test -f $cf_dir/curses.h ; then
1301 if ( fgrep NCURSES_VERSION $cf_dir/curses.h 2>&1 >/dev/null ) ; then
1302 includedir="$cf_symbol"
1303 test -n "$verbose" && echo $ac_n " found " 1>&6
1307 test -n "$verbose" && echo " tested $cf_dir" 1>&6
1309 echo "$as_me:1309: result: $includedir" >&5
1310 echo "${ECHO_T}$includedir" >&6
1313 ### Checks for programs.
1315 ac_cpp='$CPP $CPPFLAGS'
1316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1319 if test -n "$ac_tool_prefix"; then
1320 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1321 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1322 echo "$as_me:1322: checking for $ac_word" >&5
1323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1324 if test "${ac_cv_prog_CC+set}" = set; then
1325 echo $ECHO_N "(cached) $ECHO_C" >&6
1327 if test -n "$CC"; then
1328 ac_cv_prog_CC="$CC" # Let the user override the test.
1330 ac_save_IFS=$IFS; IFS=$ac_path_separator
1332 for ac_dir in $ac_dummy; do
1334 test -z "$ac_dir" && ac_dir=.
1335 $as_executable_p "$ac_dir/$ac_word" || continue
1336 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1337 echo "$as_me:1337: found $ac_dir/$ac_word" >&5
1344 if test -n "$CC"; then
1345 echo "$as_me:1345: result: $CC" >&5
1346 echo "${ECHO_T}$CC" >&6
1348 echo "$as_me:1348: result: no" >&5
1349 echo "${ECHO_T}no" >&6
1353 if test -z "$ac_cv_prog_CC"; then
1355 # Extract the first word of "gcc", so it can be a program name with args.
1356 set dummy gcc; ac_word=$2
1357 echo "$as_me:1357: checking for $ac_word" >&5
1358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1359 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1360 echo $ECHO_N "(cached) $ECHO_C" >&6
1362 if test -n "$ac_ct_CC"; then
1363 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1365 ac_save_IFS=$IFS; IFS=$ac_path_separator
1367 for ac_dir in $ac_dummy; do
1369 test -z "$ac_dir" && ac_dir=.
1370 $as_executable_p "$ac_dir/$ac_word" || continue
1371 ac_cv_prog_ac_ct_CC="gcc"
1372 echo "$as_me:1372: found $ac_dir/$ac_word" >&5
1378 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1379 if test -n "$ac_ct_CC"; then
1380 echo "$as_me:1380: result: $ac_ct_CC" >&5
1381 echo "${ECHO_T}$ac_ct_CC" >&6
1383 echo "$as_me:1383: result: no" >&5
1384 echo "${ECHO_T}no" >&6
1392 if test -z "$CC"; then
1393 if test -n "$ac_tool_prefix"; then
1394 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1395 set dummy ${ac_tool_prefix}cc; ac_word=$2
1396 echo "$as_me:1396: checking for $ac_word" >&5
1397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1398 if test "${ac_cv_prog_CC+set}" = set; then
1399 echo $ECHO_N "(cached) $ECHO_C" >&6
1401 if test -n "$CC"; then
1402 ac_cv_prog_CC="$CC" # Let the user override the test.
1404 ac_save_IFS=$IFS; IFS=$ac_path_separator
1406 for ac_dir in $ac_dummy; do
1408 test -z "$ac_dir" && ac_dir=.
1409 $as_executable_p "$ac_dir/$ac_word" || continue
1410 ac_cv_prog_CC="${ac_tool_prefix}cc"
1411 echo "$as_me:1411: found $ac_dir/$ac_word" >&5
1418 if test -n "$CC"; then
1419 echo "$as_me:1419: result: $CC" >&5
1420 echo "${ECHO_T}$CC" >&6
1422 echo "$as_me:1422: result: no" >&5
1423 echo "${ECHO_T}no" >&6
1427 if test -z "$ac_cv_prog_CC"; then
1429 # Extract the first word of "cc", so it can be a program name with args.
1430 set dummy cc; ac_word=$2
1431 echo "$as_me:1431: checking for $ac_word" >&5
1432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1433 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
1436 if test -n "$ac_ct_CC"; then
1437 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1439 ac_save_IFS=$IFS; IFS=$ac_path_separator
1441 for ac_dir in $ac_dummy; do
1443 test -z "$ac_dir" && ac_dir=.
1444 $as_executable_p "$ac_dir/$ac_word" || continue
1445 ac_cv_prog_ac_ct_CC="cc"
1446 echo "$as_me:1446: found $ac_dir/$ac_word" >&5
1452 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1453 if test -n "$ac_ct_CC"; then
1454 echo "$as_me:1454: result: $ac_ct_CC" >&5
1455 echo "${ECHO_T}$ac_ct_CC" >&6
1457 echo "$as_me:1457: result: no" >&5
1458 echo "${ECHO_T}no" >&6
1467 if test -z "$CC"; then
1468 # Extract the first word of "cc", so it can be a program name with args.
1469 set dummy cc; ac_word=$2
1470 echo "$as_me:1470: checking for $ac_word" >&5
1471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1472 if test "${ac_cv_prog_CC+set}" = set; then
1473 echo $ECHO_N "(cached) $ECHO_C" >&6
1475 if test -n "$CC"; then
1476 ac_cv_prog_CC="$CC" # Let the user override the test.
1479 ac_save_IFS=$IFS; IFS=$ac_path_separator
1481 for ac_dir in $ac_dummy; do
1483 test -z "$ac_dir" && ac_dir=.
1484 $as_executable_p "$ac_dir/$ac_word" || continue
1485 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1486 ac_prog_rejected=yes
1490 echo "$as_me:1490: found $ac_dir/$ac_word" >&5
1494 if test $ac_prog_rejected = yes; then
1495 # We found a bogon in the path, so make sure we never use it.
1496 set dummy $ac_cv_prog_CC
1498 if test $# != 0; then
1499 # We chose a different compiler from the bogus one.
1500 # However, it has the same basename, so the bogon will be chosen
1501 # first if we set CC to just the basename; use the full file name.
1503 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1511 if test -n "$CC"; then
1512 echo "$as_me:1512: result: $CC" >&5
1513 echo "${ECHO_T}$CC" >&6
1515 echo "$as_me:1515: result: no" >&5
1516 echo "${ECHO_T}no" >&6
1520 if test -z "$CC"; then
1521 if test -n "$ac_tool_prefix"; then
1524 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1525 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1526 echo "$as_me:1526: checking for $ac_word" >&5
1527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1528 if test "${ac_cv_prog_CC+set}" = set; then
1529 echo $ECHO_N "(cached) $ECHO_C" >&6
1531 if test -n "$CC"; then
1532 ac_cv_prog_CC="$CC" # Let the user override the test.
1534 ac_save_IFS=$IFS; IFS=$ac_path_separator
1536 for ac_dir in $ac_dummy; do
1538 test -z "$ac_dir" && ac_dir=.
1539 $as_executable_p "$ac_dir/$ac_word" || continue
1540 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1541 echo "$as_me:1541: found $ac_dir/$ac_word" >&5
1548 if test -n "$CC"; then
1549 echo "$as_me:1549: result: $CC" >&5
1550 echo "${ECHO_T}$CC" >&6
1552 echo "$as_me:1552: result: no" >&5
1553 echo "${ECHO_T}no" >&6
1556 test -n "$CC" && break
1559 if test -z "$CC"; then
1563 # Extract the first word of "$ac_prog", so it can be a program name with args.
1564 set dummy $ac_prog; ac_word=$2
1565 echo "$as_me:1565: checking for $ac_word" >&5
1566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1568 echo $ECHO_N "(cached) $ECHO_C" >&6
1570 if test -n "$ac_ct_CC"; then
1571 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1573 ac_save_IFS=$IFS; IFS=$ac_path_separator
1575 for ac_dir in $ac_dummy; do
1577 test -z "$ac_dir" && ac_dir=.
1578 $as_executable_p "$ac_dir/$ac_word" || continue
1579 ac_cv_prog_ac_ct_CC="$ac_prog"
1580 echo "$as_me:1580: found $ac_dir/$ac_word" >&5
1586 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1587 if test -n "$ac_ct_CC"; then
1588 echo "$as_me:1588: result: $ac_ct_CC" >&5
1589 echo "${ECHO_T}$ac_ct_CC" >&6
1591 echo "$as_me:1591: result: no" >&5
1592 echo "${ECHO_T}no" >&6
1595 test -n "$ac_ct_CC" && break
1603 test -z "$CC" && { { echo "$as_me:1603: error: no acceptable cc found in \$PATH" >&5
1604 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1605 { (exit 1); exit 1; }; }
1607 # Provide some information about the compiler.
1608 echo "$as_me:1608:" \
1609 "checking for C compiler version" >&5
1610 ac_compiler=`set X $ac_compile; echo $2`
1611 { (eval echo "$as_me:1611: \"$ac_compiler --version </dev/null >&5\"") >&5
1612 (eval $ac_compiler --version </dev/null >&5) 2>&5
1614 echo "$as_me:1614: \$? = $ac_status" >&5
1615 (exit $ac_status); }
1616 { (eval echo "$as_me:1616: \"$ac_compiler -v </dev/null >&5\"") >&5
1617 (eval $ac_compiler -v </dev/null >&5) 2>&5
1619 echo "$as_me:1619: \$? = $ac_status" >&5
1620 (exit $ac_status); }
1621 { (eval echo "$as_me:1621: \"$ac_compiler -V </dev/null >&5\"") >&5
1622 (eval $ac_compiler -V </dev/null >&5) 2>&5
1624 echo "$as_me:1624: \$? = $ac_status" >&5
1625 (exit $ac_status); }
1627 cat >conftest.$ac_ext <<_ACEOF
1628 #line 1628 "configure"
1629 #include "confdefs.h"
1639 ac_clean_files_save=$ac_clean_files
1640 ac_clean_files="$ac_clean_files a.out a.exe"
1641 # Try to create an executable without -o first, disregard a.out.
1642 # It will help us diagnose broken compilers, and finding out an intuition
1644 echo "$as_me:1644: checking for C compiler default output" >&5
1645 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1646 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1647 if { (eval echo "$as_me:1647: \"$ac_link_default\"") >&5
1648 (eval $ac_link_default) 2>&5
1650 echo "$as_me:1650: \$? = $ac_status" >&5
1651 (exit $ac_status); }; then
1652 # Find the output, starting from the most likely. This scheme is
1653 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1655 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1656 ls a.out conftest 2>/dev/null;
1657 ls a.* conftest.* 2>/dev/null`; do
1659 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1660 a.out ) # We found the default executable, but exeext='' is most
1663 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1664 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1671 echo "$as_me: failed program was:" >&5
1672 cat conftest.$ac_ext >&5
1673 { { echo "$as_me:1673: error: C compiler cannot create executables" >&5
1674 echo "$as_me: error: C compiler cannot create executables" >&2;}
1675 { (exit 77); exit 77; }; }
1678 ac_exeext=$ac_cv_exeext
1679 echo "$as_me:1679: result: $ac_file" >&5
1680 echo "${ECHO_T}$ac_file" >&6
1682 # Check the compiler produces executables we can run. If not, either
1683 # the compiler is broken, or we cross compile.
1684 echo "$as_me:1684: checking whether the C compiler works" >&5
1685 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1686 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1687 # If not cross compiling, check that we can run a simple program.
1688 if test "$cross_compiling" != yes; then
1689 if { ac_try='./$ac_file'
1690 { (eval echo "$as_me:1690: \"$ac_try\"") >&5
1693 echo "$as_me:1693: \$? = $ac_status" >&5
1694 (exit $ac_status); }; }; then
1697 if test "$cross_compiling" = maybe; then
1700 { { echo "$as_me:1700: error: cannot run C compiled programs.
1701 If you meant to cross compile, use \`--host'." >&5
1702 echo "$as_me: error: cannot run C compiled programs.
1703 If you meant to cross compile, use \`--host'." >&2;}
1704 { (exit 1); exit 1; }; }
1708 echo "$as_me:1708: result: yes" >&5
1709 echo "${ECHO_T}yes" >&6
1711 rm -f a.out a.exe conftest$ac_cv_exeext
1712 ac_clean_files=$ac_clean_files_save
1713 # Check the compiler produces executables we can run. If not, either
1714 # the compiler is broken, or we cross compile.
1715 echo "$as_me:1715: checking whether we are cross compiling" >&5
1716 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1717 echo "$as_me:1717: result: $cross_compiling" >&5
1718 echo "${ECHO_T}$cross_compiling" >&6
1720 echo "$as_me:1720: checking for executable suffix" >&5
1721 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1722 if { (eval echo "$as_me:1722: \"$ac_link\"") >&5
1723 (eval $ac_link) 2>&5
1725 echo "$as_me:1725: \$? = $ac_status" >&5
1726 (exit $ac_status); }; then
1727 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1728 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1729 # work properly (i.e., refer to `conftest.exe'), while it won't with
1731 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1733 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1734 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1741 { { echo "$as_me:1741: error: cannot compute EXEEXT: cannot compile and link" >&5
1742 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1743 { (exit 1); exit 1; }; }
1746 rm -f conftest$ac_cv_exeext
1747 echo "$as_me:1747: result: $ac_cv_exeext" >&5
1748 echo "${ECHO_T}$ac_cv_exeext" >&6
1750 rm -f conftest.$ac_ext
1751 EXEEXT=$ac_cv_exeext
1753 echo "$as_me:1753: checking for object suffix" >&5
1754 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1755 if test "${ac_cv_objext+set}" = set; then
1756 echo $ECHO_N "(cached) $ECHO_C" >&6
1758 cat >conftest.$ac_ext <<_ACEOF
1759 #line 1759 "configure"
1760 #include "confdefs.h"
1770 rm -f conftest.o conftest.obj
1771 if { (eval echo "$as_me:1771: \"$ac_compile\"") >&5
1772 (eval $ac_compile) 2>&5
1774 echo "$as_me:1774: \$? = $ac_status" >&5
1775 (exit $ac_status); }; then
1776 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1778 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1779 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1784 echo "$as_me: failed program was:" >&5
1785 cat conftest.$ac_ext >&5
1786 { { echo "$as_me:1786: error: cannot compute OBJEXT: cannot compile" >&5
1787 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1788 { (exit 1); exit 1; }; }
1791 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1793 echo "$as_me:1793: result: $ac_cv_objext" >&5
1794 echo "${ECHO_T}$ac_cv_objext" >&6
1795 OBJEXT=$ac_cv_objext
1797 echo "$as_me:1797: checking whether we are using the GNU C compiler" >&5
1798 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1799 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1802 cat >conftest.$ac_ext <<_ACEOF
1803 #line 1803 "configure"
1804 #include "confdefs.h"
1817 rm -f conftest.$ac_objext
1818 if { (eval echo "$as_me:1818: \"$ac_compile\"") >&5
1819 (eval $ac_compile) 2>&5
1821 echo "$as_me:1821: \$? = $ac_status" >&5
1822 (exit $ac_status); } &&
1823 { ac_try='test -s conftest.$ac_objext'
1824 { (eval echo "$as_me:1824: \"$ac_try\"") >&5
1827 echo "$as_me:1827: \$? = $ac_status" >&5
1828 (exit $ac_status); }; }; then
1831 echo "$as_me: failed program was:" >&5
1832 cat conftest.$ac_ext >&5
1835 rm -f conftest.$ac_objext conftest.$ac_ext
1836 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1839 echo "$as_me:1839: result: $ac_cv_c_compiler_gnu" >&5
1840 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1841 GCC=`test $ac_compiler_gnu = yes && echo yes`
1842 ac_test_CFLAGS=${CFLAGS+set}
1843 ac_save_CFLAGS=$CFLAGS
1845 echo "$as_me:1845: checking whether $CC accepts -g" >&5
1846 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1847 if test "${ac_cv_prog_cc_g+set}" = set; then
1848 echo $ECHO_N "(cached) $ECHO_C" >&6
1850 cat >conftest.$ac_ext <<_ACEOF
1851 #line 1851 "configure"
1852 #include "confdefs.h"
1862 rm -f conftest.$ac_objext
1863 if { (eval echo "$as_me:1863: \"$ac_compile\"") >&5
1864 (eval $ac_compile) 2>&5
1866 echo "$as_me:1866: \$? = $ac_status" >&5
1867 (exit $ac_status); } &&
1868 { ac_try='test -s conftest.$ac_objext'
1869 { (eval echo "$as_me:1869: \"$ac_try\"") >&5
1872 echo "$as_me:1872: \$? = $ac_status" >&5
1873 (exit $ac_status); }; }; then
1876 echo "$as_me: failed program was:" >&5
1877 cat conftest.$ac_ext >&5
1880 rm -f conftest.$ac_objext conftest.$ac_ext
1882 echo "$as_me:1882: result: $ac_cv_prog_cc_g" >&5
1883 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1884 if test "$ac_test_CFLAGS" = set; then
1885 CFLAGS=$ac_save_CFLAGS
1886 elif test $ac_cv_prog_cc_g = yes; then
1887 if test "$GCC" = yes; then
1893 if test "$GCC" = yes; then
1899 # Some people use a C++ compiler to compile C. Since we use `exit',
1900 # in C++ we need to declare it. In case someone uses the same compiler
1901 # for both compiling C and C++ we need to have the C++ compiler decide
1902 # the declaration of exit, since it's the most demanding environment.
1903 cat >conftest.$ac_ext <<_ACEOF
1908 rm -f conftest.$ac_objext
1909 if { (eval echo "$as_me:1909: \"$ac_compile\"") >&5
1910 (eval $ac_compile) 2>&5
1912 echo "$as_me:1912: \$? = $ac_status" >&5
1913 (exit $ac_status); } &&
1914 { ac_try='test -s conftest.$ac_objext'
1915 { (eval echo "$as_me:1915: \"$ac_try\"") >&5
1918 echo "$as_me:1918: \$? = $ac_status" >&5
1919 (exit $ac_status); }; }; then
1920 for ac_declaration in \
1922 '#include <stdlib.h>' \
1923 'extern "C" void std::exit (int) throw (); using std::exit;' \
1924 'extern "C" void std::exit (int); using std::exit;' \
1925 'extern "C" void exit (int) throw ();' \
1926 'extern "C" void exit (int);' \
1929 cat >conftest.$ac_ext <<_ACEOF
1930 #line 1930 "configure"
1931 #include "confdefs.h"
1942 rm -f conftest.$ac_objext
1943 if { (eval echo "$as_me:1943: \"$ac_compile\"") >&5
1944 (eval $ac_compile) 2>&5
1946 echo "$as_me:1946: \$? = $ac_status" >&5
1947 (exit $ac_status); } &&
1948 { ac_try='test -s conftest.$ac_objext'
1949 { (eval echo "$as_me:1949: \"$ac_try\"") >&5
1952 echo "$as_me:1952: \$? = $ac_status" >&5
1953 (exit $ac_status); }; }; then
1956 echo "$as_me: failed program was:" >&5
1957 cat conftest.$ac_ext >&5
1960 rm -f conftest.$ac_objext conftest.$ac_ext
1961 cat >conftest.$ac_ext <<_ACEOF
1962 #line 1962 "configure"
1963 #include "confdefs.h"
1973 rm -f conftest.$ac_objext
1974 if { (eval echo "$as_me:1974: \"$ac_compile\"") >&5
1975 (eval $ac_compile) 2>&5
1977 echo "$as_me:1977: \$? = $ac_status" >&5
1978 (exit $ac_status); } &&
1979 { ac_try='test -s conftest.$ac_objext'
1980 { (eval echo "$as_me:1980: \"$ac_try\"") >&5
1983 echo "$as_me:1983: \$? = $ac_status" >&5
1984 (exit $ac_status); }; }; then
1987 echo "$as_me: failed program was:" >&5
1988 cat conftest.$ac_ext >&5
1990 rm -f conftest.$ac_objext conftest.$ac_ext
1993 if test -n "$ac_declaration"; then
1994 echo '#ifdef __cplusplus' >>confdefs.h
1995 echo $ac_declaration >>confdefs.h
1996 echo '#endif' >>confdefs.h
2000 echo "$as_me: failed program was:" >&5
2001 cat conftest.$ac_ext >&5
2003 rm -f conftest.$ac_objext conftest.$ac_ext
2005 ac_cpp='$CPP $CPPFLAGS'
2006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2011 if test "$GCC" = yes ; then
2012 echo "$as_me:2012: checking version of $CC" >&5
2013 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2014 GCC_VERSION="`${CC} --version|sed -e '2,$d' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2015 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2016 echo "$as_me:2016: result: $GCC_VERSION" >&5
2017 echo "${ECHO_T}$GCC_VERSION" >&6
2021 ac_cpp='$CPP $CPPFLAGS'
2022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2025 echo "$as_me:2025: checking how to run the C preprocessor" >&5
2026 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2027 # On Suns, sometimes $CPP names a directory.
2028 if test -n "$CPP" && test -d "$CPP"; then
2031 if test -z "$CPP"; then
2032 if test "${ac_cv_prog_CPP+set}" = set; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 # Double quotes because CPP needs to be expanded
2036 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2039 for ac_c_preproc_warn_flag in '' yes
2041 # Use a header file that comes with gcc, so configuring glibc
2042 # with a fresh cross-compiler works.
2043 # On the NeXT, cc -E runs the code through the compiler's parser,
2044 # not just through cpp. "Syntax error" is here to catch this case.
2045 cat >conftest.$ac_ext <<_ACEOF
2046 #line 2046 "configure"
2047 #include "confdefs.h"
2051 if { (eval echo "$as_me:2051: \"$ac_cpp conftest.$ac_ext\"") >&5
2052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2054 egrep -v '^ *\+' conftest.er1 >conftest.err
2056 cat conftest.err >&5
2057 echo "$as_me:2057: \$? = $ac_status" >&5
2058 (exit $ac_status); } >/dev/null; then
2059 if test -s conftest.err; then
2060 ac_cpp_err=$ac_c_preproc_warn_flag
2067 if test -z "$ac_cpp_err"; then
2070 echo "$as_me: failed program was:" >&5
2071 cat conftest.$ac_ext >&5
2072 # Broken: fails on valid input.
2075 rm -f conftest.err conftest.$ac_ext
2077 # OK, works on sane cases. Now check whether non-existent headers
2078 # can be detected and how.
2079 cat >conftest.$ac_ext <<_ACEOF
2080 #line 2080 "configure"
2081 #include "confdefs.h"
2082 #include <ac_nonexistent.h>
2084 if { (eval echo "$as_me:2084: \"$ac_cpp conftest.$ac_ext\"") >&5
2085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2087 egrep -v '^ *\+' conftest.er1 >conftest.err
2089 cat conftest.err >&5
2090 echo "$as_me:2090: \$? = $ac_status" >&5
2091 (exit $ac_status); } >/dev/null; then
2092 if test -s conftest.err; then
2093 ac_cpp_err=$ac_c_preproc_warn_flag
2100 if test -z "$ac_cpp_err"; then
2101 # Broken: success on invalid input.
2104 echo "$as_me: failed program was:" >&5
2105 cat conftest.$ac_ext >&5
2106 # Passes both tests.
2110 rm -f conftest.err conftest.$ac_ext
2113 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2114 rm -f conftest.err conftest.$ac_ext
2115 if $ac_preproc_ok; then
2127 echo "$as_me:2127: result: $CPP" >&5
2128 echo "${ECHO_T}$CPP" >&6
2130 for ac_c_preproc_warn_flag in '' yes
2132 # Use a header file that comes with gcc, so configuring glibc
2133 # with a fresh cross-compiler works.
2134 # On the NeXT, cc -E runs the code through the compiler's parser,
2135 # not just through cpp. "Syntax error" is here to catch this case.
2136 cat >conftest.$ac_ext <<_ACEOF
2137 #line 2137 "configure"
2138 #include "confdefs.h"
2142 if { (eval echo "$as_me:2142: \"$ac_cpp conftest.$ac_ext\"") >&5
2143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2145 egrep -v '^ *\+' conftest.er1 >conftest.err
2147 cat conftest.err >&5
2148 echo "$as_me:2148: \$? = $ac_status" >&5
2149 (exit $ac_status); } >/dev/null; then
2150 if test -s conftest.err; then
2151 ac_cpp_err=$ac_c_preproc_warn_flag
2158 if test -z "$ac_cpp_err"; then
2161 echo "$as_me: failed program was:" >&5
2162 cat conftest.$ac_ext >&5
2163 # Broken: fails on valid input.
2166 rm -f conftest.err conftest.$ac_ext
2168 # OK, works on sane cases. Now check whether non-existent headers
2169 # can be detected and how.
2170 cat >conftest.$ac_ext <<_ACEOF
2171 #line 2171 "configure"
2172 #include "confdefs.h"
2173 #include <ac_nonexistent.h>
2175 if { (eval echo "$as_me:2175: \"$ac_cpp conftest.$ac_ext\"") >&5
2176 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2178 egrep -v '^ *\+' conftest.er1 >conftest.err
2180 cat conftest.err >&5
2181 echo "$as_me:2181: \$? = $ac_status" >&5
2182 (exit $ac_status); } >/dev/null; then
2183 if test -s conftest.err; then
2184 ac_cpp_err=$ac_c_preproc_warn_flag
2191 if test -z "$ac_cpp_err"; then
2192 # Broken: success on invalid input.
2195 echo "$as_me: failed program was:" >&5
2196 cat conftest.$ac_ext >&5
2197 # Passes both tests.
2201 rm -f conftest.err conftest.$ac_ext
2204 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2205 rm -f conftest.err conftest.$ac_ext
2206 if $ac_preproc_ok; then
2209 { { echo "$as_me:2209: error: C preprocessor \"$CPP\" fails sanity check" >&5
2210 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2211 { (exit 1); exit 1; }; }
2215 ac_cpp='$CPP $CPPFLAGS'
2216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2220 if test $ac_cv_c_compiler_gnu = yes; then
2221 echo "$as_me:2221: checking whether $CC needs -traditional" >&5
2222 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2223 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2224 echo $ECHO_N "(cached) $ECHO_C" >&6
2226 ac_pattern="Autoconf.*'x'"
2227 cat >conftest.$ac_ext <<_ACEOF
2228 #line 2228 "configure"
2229 #include "confdefs.h"
2231 int Autoconf = TIOCGETP;
2233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2234 egrep "$ac_pattern" >/dev/null 2>&1; then
2235 ac_cv_prog_gcc_traditional=yes
2237 ac_cv_prog_gcc_traditional=no
2241 if test $ac_cv_prog_gcc_traditional = no; then
2242 cat >conftest.$ac_ext <<_ACEOF
2243 #line 2243 "configure"
2244 #include "confdefs.h"
2246 int Autoconf = TCGETA;
2248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2249 egrep "$ac_pattern" >/dev/null 2>&1; then
2250 ac_cv_prog_gcc_traditional=yes
2256 echo "$as_me:2256: result: $ac_cv_prog_gcc_traditional" >&5
2257 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2258 if test $ac_cv_prog_gcc_traditional = yes; then
2259 CC="$CC -traditional"
2263 echo "$as_me:2263: checking for POSIXized ISC" >&5
2264 echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6
2265 if test -d /etc/conf/kconfig.d &&
2266 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
2268 echo "$as_me:2268: result: yes" >&5
2269 echo "${ECHO_T}yes" >&6
2270 ISC=yes # If later tests want to check for ISC.
2272 cat >>confdefs.h <<\EOF
2273 #define _POSIX_SOURCE 1
2276 if test "$GCC" = yes; then
2282 echo "$as_me:2282: result: no" >&5
2283 echo "${ECHO_T}no" >&6
2287 echo "$as_me:2287: checking for ${CC-cc} option to accept ANSI C" >&5
2288 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2289 if test "${cf_cv_ansi_cc+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2294 cf_save_CFLAGS="$CFLAGS"
2295 cf_save_CPPFLAGS="$CPPFLAGS"
2296 # Don't try gcc -ansi; that turns off useful extensions and
2297 # breaks some systems' header files.
2298 # AIX -qlanglvl=ansi
2299 # Ultrix and OSF/1 -std1
2300 # HP-UX -Aa -D_HPUX_SOURCE
2302 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2303 for cf_arg in "-DCC_HAS_PROTOS" \
2308 "-Aa -D_HPUX_SOURCE" \
2314 for cf_add_cflags in $cf_arg
2316 case $cf_add_cflags in #(vi
2317 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2319 *$cf_add_cflags) #(vi
2322 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2327 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2332 if test -n "$cf_new_cflags" ; then
2334 CFLAGS="$CFLAGS $cf_new_cflags"
2337 if test -n "$cf_new_cppflags" ; then
2339 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
2342 cat >conftest.$ac_ext <<_ACEOF
2343 #line 2343 "configure"
2344 #include "confdefs.h"
2346 #ifndef CC_HAS_PROTOS
2347 #if !defined(__STDC__) || (__STDC__ != 1)
2356 int test (int i, double x);
2357 struct s1 {int (*f) (int a);};
2358 struct s2 {int (*f) (double a);};
2363 rm -f conftest.$ac_objext
2364 if { (eval echo "$as_me:2364: \"$ac_compile\"") >&5
2365 (eval $ac_compile) 2>&5
2367 echo "$as_me:2367: \$? = $ac_status" >&5
2368 (exit $ac_status); } &&
2369 { ac_try='test -s conftest.$ac_objext'
2370 { (eval echo "$as_me:2370: \"$ac_try\"") >&5
2373 echo "$as_me:2373: \$? = $ac_status" >&5
2374 (exit $ac_status); }; }; then
2375 cf_cv_ansi_cc="$cf_arg"; break
2377 echo "$as_me: failed program was:" >&5
2378 cat conftest.$ac_ext >&5
2380 rm -f conftest.$ac_objext conftest.$ac_ext
2382 CFLAGS="$cf_save_CFLAGS"
2383 CPPFLAGS="$cf_save_CPPFLAGS"
2386 echo "$as_me:2386: result: $cf_cv_ansi_cc" >&5
2387 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2389 if test "$cf_cv_ansi_cc" != "no"; then
2390 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2394 for cf_add_cflags in $cf_cv_ansi_cc
2396 case $cf_add_cflags in #(vi
2397 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2399 *$cf_add_cflags) #(vi
2402 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2407 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2412 if test -n "$cf_new_cflags" ; then
2414 CFLAGS="$CFLAGS $cf_new_cflags"
2417 if test -n "$cf_new_cppflags" ; then
2419 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
2423 cat >>confdefs.h <<\EOF
2424 #define CC_HAS_PROTOS 1
2430 if test "$cf_cv_ansi_cc" = "no"; then
2431 { { echo "$as_me:2431: error: Your compiler does not appear to recognize prototypes.
2432 You have the following choices:
2433 a. adjust your compiler options
2434 b. get an up-to-date compiler
2435 c. use a wrapper such as unproto" >&5
2436 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2437 You have the following choices:
2438 a. adjust your compiler options
2439 b. get an up-to-date compiler
2440 c. use a wrapper such as unproto" >&2;}
2441 { (exit 1); exit 1; }; }
2444 case $cf_cv_system_name in
2446 CFLAGS="$CFLAGS -Zmt"
2447 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2448 CXXFLAGS="$CXXFLAGS -Zmt"
2449 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2450 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2457 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2458 #define PROG_EXT "$PROG_EXT"
2461 if test "$cross_compiling" = yes ; then
2464 case "$cf_cv_system_name" in #(vi
2466 test -z "$LDCONFIG" && LDCONFIG="/sbin/ldconfig -R"
2468 *) LDPATH=$PATH:/sbin:/usr/sbin
2469 # Extract the first word of "ldconfig", so it can be a program name with args.
2470 set dummy ldconfig; ac_word=$2
2471 echo "$as_me:2471: checking for $ac_word" >&5
2472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2473 if test "${ac_cv_path_LDCONFIG+set}" = set; then
2474 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
2481 ac_save_IFS=$IFS; IFS=$ac_path_separator
2483 for ac_dir in $ac_dummy; do
2485 test -z "$ac_dir" && ac_dir=.
2486 if $as_executable_p "$ac_dir/$ac_word"; then
2487 ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
2488 echo "$as_me:2488: found $ac_dir/$ac_word" >&5
2496 LDCONFIG=$ac_cv_path_LDCONFIG
2498 if test -n "$LDCONFIG"; then
2499 echo "$as_me:2499: result: $LDCONFIG" >&5
2500 echo "${ECHO_T}$LDCONFIG" >&6
2502 echo "$as_me:2502: result: no" >&5
2503 echo "${ECHO_T}no" >&6
2510 echo "$as_me:2510: checking if you want to ensure bool is consistent with C++" >&5
2511 echo $ECHO_N "checking if you want to ensure bool is consistent with C++... $ECHO_C" >&6
2513 # Check whether --with-cxx or --without-cxx was given.
2514 if test "${with_cxx+set}" = set; then
2516 cf_with_cxx=$withval
2520 echo "$as_me:2520: result: $cf_with_cxx" >&5
2521 echo "${ECHO_T}$cf_with_cxx" >&6
2522 if test "X$cf_with_cxx" = Xno ; then
2526 # with autoconf 2.13, we can change the error to a warning:
2528 ac_cpp='$CXXCPP $CPPFLAGS'
2529 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2530 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2531 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2532 if test -n "$ac_tool_prefix"; then
2533 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2535 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2536 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2537 echo "$as_me:2537: checking for $ac_word" >&5
2538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2539 if test "${ac_cv_prog_CXX+set}" = set; then
2540 echo $ECHO_N "(cached) $ECHO_C" >&6
2542 if test -n "$CXX"; then
2543 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2545 ac_save_IFS=$IFS; IFS=$ac_path_separator
2547 for ac_dir in $ac_dummy; do
2549 test -z "$ac_dir" && ac_dir=.
2550 $as_executable_p "$ac_dir/$ac_word" || continue
2551 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2552 echo "$as_me:2552: found $ac_dir/$ac_word" >&5
2559 if test -n "$CXX"; then
2560 echo "$as_me:2560: result: $CXX" >&5
2561 echo "${ECHO_T}$CXX" >&6
2563 echo "$as_me:2563: result: no" >&5
2564 echo "${ECHO_T}no" >&6
2567 test -n "$CXX" && break
2570 if test -z "$CXX"; then
2572 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2574 # Extract the first word of "$ac_prog", so it can be a program name with args.
2575 set dummy $ac_prog; ac_word=$2
2576 echo "$as_me:2576: checking for $ac_word" >&5
2577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2578 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2581 if test -n "$ac_ct_CXX"; then
2582 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2584 ac_save_IFS=$IFS; IFS=$ac_path_separator
2586 for ac_dir in $ac_dummy; do
2588 test -z "$ac_dir" && ac_dir=.
2589 $as_executable_p "$ac_dir/$ac_word" || continue
2590 ac_cv_prog_ac_ct_CXX="$ac_prog"
2591 echo "$as_me:2591: found $ac_dir/$ac_word" >&5
2597 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2598 if test -n "$ac_ct_CXX"; then
2599 echo "$as_me:2599: result: $ac_ct_CXX" >&5
2600 echo "${ECHO_T}$ac_ct_CXX" >&6
2602 echo "$as_me:2602: result: no" >&5
2603 echo "${ECHO_T}no" >&6
2606 test -n "$ac_ct_CXX" && break
2608 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2613 # Provide some information about the compiler.
2614 echo "$as_me:2614:" \
2615 "checking for C++ compiler version" >&5
2616 ac_compiler=`set X $ac_compile; echo $2`
2617 { (eval echo "$as_me:2617: \"$ac_compiler --version </dev/null >&5\"") >&5
2618 (eval $ac_compiler --version </dev/null >&5) 2>&5
2620 echo "$as_me:2620: \$? = $ac_status" >&5
2621 (exit $ac_status); }
2622 { (eval echo "$as_me:2622: \"$ac_compiler -v </dev/null >&5\"") >&5
2623 (eval $ac_compiler -v </dev/null >&5) 2>&5
2625 echo "$as_me:2625: \$? = $ac_status" >&5
2626 (exit $ac_status); }
2627 { (eval echo "$as_me:2627: \"$ac_compiler -V </dev/null >&5\"") >&5
2628 (eval $ac_compiler -V </dev/null >&5) 2>&5
2630 echo "$as_me:2630: \$? = $ac_status" >&5
2631 (exit $ac_status); }
2633 echo "$as_me:2633: checking whether we are using the GNU C++ compiler" >&5
2634 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2635 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2638 cat >conftest.$ac_ext <<_ACEOF
2639 #line 2639 "configure"
2640 #include "confdefs.h"
2653 rm -f conftest.$ac_objext
2654 if { (eval echo "$as_me:2654: \"$ac_compile\"") >&5
2655 (eval $ac_compile) 2>&5
2657 echo "$as_me:2657: \$? = $ac_status" >&5
2658 (exit $ac_status); } &&
2659 { ac_try='test -s conftest.$ac_objext'
2660 { (eval echo "$as_me:2660: \"$ac_try\"") >&5
2663 echo "$as_me:2663: \$? = $ac_status" >&5
2664 (exit $ac_status); }; }; then
2667 echo "$as_me: failed program was:" >&5
2668 cat conftest.$ac_ext >&5
2671 rm -f conftest.$ac_objext conftest.$ac_ext
2672 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2675 echo "$as_me:2675: result: $ac_cv_cxx_compiler_gnu" >&5
2676 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2677 GXX=`test $ac_compiler_gnu = yes && echo yes`
2678 ac_test_CXXFLAGS=${CXXFLAGS+set}
2679 ac_save_CXXFLAGS=$CXXFLAGS
2681 echo "$as_me:2681: checking whether $CXX accepts -g" >&5
2682 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2683 if test "${ac_cv_prog_cxx_g+set}" = set; then
2684 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 cat >conftest.$ac_ext <<_ACEOF
2687 #line 2687 "configure"
2688 #include "confdefs.h"
2698 rm -f conftest.$ac_objext
2699 if { (eval echo "$as_me:2699: \"$ac_compile\"") >&5
2700 (eval $ac_compile) 2>&5
2702 echo "$as_me:2702: \$? = $ac_status" >&5
2703 (exit $ac_status); } &&
2704 { ac_try='test -s conftest.$ac_objext'
2705 { (eval echo "$as_me:2705: \"$ac_try\"") >&5
2708 echo "$as_me:2708: \$? = $ac_status" >&5
2709 (exit $ac_status); }; }; then
2710 ac_cv_prog_cxx_g=yes
2712 echo "$as_me: failed program was:" >&5
2713 cat conftest.$ac_ext >&5
2716 rm -f conftest.$ac_objext conftest.$ac_ext
2718 echo "$as_me:2718: result: $ac_cv_prog_cxx_g" >&5
2719 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2720 if test "$ac_test_CXXFLAGS" = set; then
2721 CXXFLAGS=$ac_save_CXXFLAGS
2722 elif test $ac_cv_prog_cxx_g = yes; then
2723 if test "$GXX" = yes; then
2729 if test "$GXX" = yes; then
2735 for ac_declaration in \
2737 '#include <stdlib.h>' \
2738 'extern "C" void std::exit (int) throw (); using std::exit;' \
2739 'extern "C" void std::exit (int); using std::exit;' \
2740 'extern "C" void exit (int) throw ();' \
2741 'extern "C" void exit (int);' \
2744 cat >conftest.$ac_ext <<_ACEOF
2745 #line 2745 "configure"
2746 #include "confdefs.h"
2757 rm -f conftest.$ac_objext
2758 if { (eval echo "$as_me:2758: \"$ac_compile\"") >&5
2759 (eval $ac_compile) 2>&5
2761 echo "$as_me:2761: \$? = $ac_status" >&5
2762 (exit $ac_status); } &&
2763 { ac_try='test -s conftest.$ac_objext'
2764 { (eval echo "$as_me:2764: \"$ac_try\"") >&5
2767 echo "$as_me:2767: \$? = $ac_status" >&5
2768 (exit $ac_status); }; }; then
2771 echo "$as_me: failed program was:" >&5
2772 cat conftest.$ac_ext >&5
2775 rm -f conftest.$ac_objext conftest.$ac_ext
2776 cat >conftest.$ac_ext <<_ACEOF
2777 #line 2777 "configure"
2778 #include "confdefs.h"
2788 rm -f conftest.$ac_objext
2789 if { (eval echo "$as_me:2789: \"$ac_compile\"") >&5
2790 (eval $ac_compile) 2>&5
2792 echo "$as_me:2792: \$? = $ac_status" >&5
2793 (exit $ac_status); } &&
2794 { ac_try='test -s conftest.$ac_objext'
2795 { (eval echo "$as_me:2795: \"$ac_try\"") >&5
2798 echo "$as_me:2798: \$? = $ac_status" >&5
2799 (exit $ac_status); }; }; then
2802 echo "$as_me: failed program was:" >&5
2803 cat conftest.$ac_ext >&5
2805 rm -f conftest.$ac_objext conftest.$ac_ext
2808 if test -n "$ac_declaration"; then
2809 echo '#ifdef __cplusplus' >>confdefs.h
2810 echo $ac_declaration >>confdefs.h
2811 echo '#endif' >>confdefs.h
2815 ac_cpp='$CPP $CPPFLAGS'
2816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2820 # autoconf 2.5x removed the error - by hardcoding it to g++.
2821 if test "$CXX" = "g++" ; then
2822 # Extract the first word of "g++", so it can be a program name with args.
2823 set dummy g++; ac_word=$2
2824 echo "$as_me:2824: checking for $ac_word" >&5
2825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2826 if test "${ac_cv_path_CXX+set}" = set; then
2827 echo $ECHO_N "(cached) $ECHO_C" >&6
2831 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
2834 ac_save_IFS=$IFS; IFS=$ac_path_separator
2836 for ac_dir in $ac_dummy; do
2838 test -z "$ac_dir" && ac_dir=.
2839 if $as_executable_p "$ac_dir/$ac_word"; then
2840 ac_cv_path_CXX="$ac_dir/$ac_word"
2841 echo "$as_me:2841: found $ac_dir/$ac_word" >&5
2851 if test -n "$CXX"; then
2852 echo "$as_me:2852: result: $CXX" >&5
2853 echo "${ECHO_T}$CXX" >&6
2855 echo "$as_me:2855: result: no" >&5
2856 echo "${ECHO_T}no" >&6
2860 if test "$CXX" = "g++" ; then
2861 { echo "$as_me:2861: WARNING: ignoring hardcoded g++" >&5
2862 echo "$as_me: WARNING: ignoring hardcoded g++" >&2;}
2863 cf_with_cxx=no; CXX=""; GXX="";
2868 if test "$GXX" = yes; then
2869 echo "$as_me:2869: checking version of g++" >&5
2870 echo $ECHO_N "checking version of g++... $ECHO_C" >&6
2871 GXX_VERSION="`${CXX-g++} --version|sed -e '2,$d'`"
2872 echo "$as_me:2872: result: $GXX_VERSION" >&5
2873 echo "${ECHO_T}$GXX_VERSION" >&6
2876 case $GXX_VERSION in
2878 GXX=""; CXX=""; ac_cv_cxx_compiler_gnu=no
2880 { echo "$as_me:2880: WARNING: templates do not work" >&5
2881 echo "$as_me: WARNING: templates do not work" >&2;}
2885 echo "$as_me:2885: checking if you want to build C++ binding and demo" >&5
2886 echo $ECHO_N "checking if you want to build C++ binding and demo... $ECHO_C" >&6
2888 # Check whether --with-cxx-binding or --without-cxx-binding was given.
2889 if test "${with_cxx_binding+set}" = set; then
2890 withval="$with_cxx_binding"
2891 cf_with_cxx_binding=$withval
2893 cf_with_cxx_binding=$cf_with_cxx
2895 echo "$as_me:2895: result: $cf_with_cxx_binding" >&5
2896 echo "${ECHO_T}$cf_with_cxx_binding" >&6
2898 echo "$as_me:2898: checking if you want to build with Ada95" >&5
2899 echo $ECHO_N "checking if you want to build with Ada95... $ECHO_C" >&6
2901 # Check whether --with-ada or --without-ada was given.
2902 if test "${with_ada+set}" = set; then
2904 cf_with_ada=$withval
2908 echo "$as_me:2908: result: $cf_with_ada" >&5
2909 echo "${ECHO_T}$cf_with_ada" >&6
2911 echo "$as_me:2911: checking if you want to build programs such as tic" >&5
2912 echo $ECHO_N "checking if you want to build programs such as tic... $ECHO_C" >&6
2914 # Check whether --with-progs or --without-progs was given.
2915 if test "${with_progs+set}" = set; then
2916 withval="$with_progs"
2917 cf_with_progs=$withval
2921 echo "$as_me:2921: result: $cf_with_progs" >&5
2922 echo "${ECHO_T}$cf_with_progs" >&6
2924 echo "$as_me:2924: checking if you wish to install curses.h" >&5
2925 echo $ECHO_N "checking if you wish to install curses.h... $ECHO_C" >&6
2927 # Check whether --with-curses-h or --without-curses-h was given.
2928 if test "${with_curses_h+set}" = set; then
2929 withval="$with_curses_h"
2930 with_curses_h=$withval
2934 echo "$as_me:2934: result: $with_curses_h" >&5
2935 echo "${ECHO_T}$with_curses_h" >&6
2937 modules_to_build="ncurses"
2938 if test "X$cf_with_progs" != Xno ; then
2939 modules_to_build="$modules_to_build progs tack"
2941 modules_to_build="$modules_to_build panel menu form"
2943 test "$program_prefix" != NONE &&
2944 program_transform_name="s,^,$program_prefix,;$program_transform_name"
2945 # Use a double $ so make ignores it.
2946 test "$program_suffix" != NONE &&
2947 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2948 # Double any \ or $. echo might interpret backslashes.
2949 # By default was `s,x,x', remove it if useless.
2950 cat <<\_ACEOF >conftest.sed
2951 s/[\\$]/&&/g;s/;s,x,x,$//
2953 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2956 for ac_prog in mawk gawk nawk awk
2958 # Extract the first word of "$ac_prog", so it can be a program name with args.
2959 set dummy $ac_prog; ac_word=$2
2960 echo "$as_me:2960: checking for $ac_word" >&5
2961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2962 if test "${ac_cv_prog_AWK+set}" = set; then
2963 echo $ECHO_N "(cached) $ECHO_C" >&6
2965 if test -n "$AWK"; then
2966 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2968 ac_save_IFS=$IFS; IFS=$ac_path_separator
2970 for ac_dir in $ac_dummy; do
2972 test -z "$ac_dir" && ac_dir=.
2973 $as_executable_p "$ac_dir/$ac_word" || continue
2974 ac_cv_prog_AWK="$ac_prog"
2975 echo "$as_me:2975: found $ac_dir/$ac_word" >&5
2982 if test -n "$AWK"; then
2983 echo "$as_me:2983: result: $AWK" >&5
2984 echo "${ECHO_T}$AWK" >&6
2986 echo "$as_me:2986: result: no" >&5
2987 echo "${ECHO_T}no" >&6
2990 test -n "$AWK" && break
2993 echo "$as_me:2993: checking whether ${MAKE-make} sets \${MAKE}" >&5
2994 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2995 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2996 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2997 echo $ECHO_N "(cached) $ECHO_C" >&6
2999 cat >conftest.make <<\EOF
3001 @echo 'ac_maketemp="${MAKE}"'
3003 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3004 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3005 if test -n "$ac_maketemp"; then
3006 eval ac_cv_prog_make_${ac_make}_set=yes
3008 eval ac_cv_prog_make_${ac_make}_set=no
3012 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3013 echo "$as_me:3013: result: yes" >&5
3014 echo "${ECHO_T}yes" >&6
3017 echo "$as_me:3017: result: no" >&5
3018 echo "${ECHO_T}no" >&6
3019 SET_MAKE="MAKE=${MAKE-make}"
3022 # Find a good install program. We prefer a C program (faster),
3023 # so one script is as good as another. But avoid the broken or
3024 # incompatible versions:
3025 # SysV /etc/install, /usr/sbin/install
3026 # SunOS /usr/etc/install
3027 # IRIX /sbin/install
3029 # AmigaOS /C/install, which installs bootblocks on floppy discs
3030 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3031 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3032 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3033 # ./install, which can be erroneously created by make from ./install.sh.
3034 echo "$as_me:3034: checking for a BSD compatible install" >&5
3035 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
3036 if test -z "$INSTALL"; then
3037 if test "${ac_cv_path_install+set}" = set; then
3038 echo $ECHO_N "(cached) $ECHO_C" >&6
3040 ac_save_IFS=$IFS; IFS=$ac_path_separator
3041 for ac_dir in $PATH; do
3043 # Account for people who put trailing slashes in PATH elements.
3045 / | ./ | .// | /cC/* \
3046 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3049 # OSF1 and SCO ODT 3.0 have their own names for install.
3050 # Don't use installbsd from OSF since it installs stuff as root
3052 for ac_prog in ginstall scoinst install; do
3053 if $as_executable_p "$ac_dir/$ac_prog"; then
3054 if test $ac_prog = install &&
3055 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3056 # AIX install. It has an incompatible calling convention.
3058 elif test $ac_prog = install &&
3059 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3060 # program-specific install script used by HP pwplus--don't use.
3063 ac_cv_path_install="$ac_dir/$ac_prog -c"
3073 if test "${ac_cv_path_install+set}" = set; then
3074 INSTALL=$ac_cv_path_install
3076 # As a last resort, use the slow shell script. We don't cache a
3077 # path for INSTALL within a source directory, because that will
3078 # break other packages using the cache if that directory is
3079 # removed, or if the path is relative.
3080 INSTALL=$ac_install_sh
3083 echo "$as_me:3083: result: $INSTALL" >&5
3084 echo "${ECHO_T}$INSTALL" >&6
3086 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3087 # It thinks the first close brace ends the variable substitution.
3088 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3090 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3092 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3098 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
3099 test -z "$cf_dir" && cf_dir=.
3100 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
3104 echo "$as_me:3104: checking for long file names" >&5
3105 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
3106 if test "${ac_cv_sys_long_file_names+set}" = set; then
3107 echo $ECHO_N "(cached) $ECHO_C" >&6
3109 ac_cv_sys_long_file_names=yes
3110 # Test for long file names in all the places we know might matter:
3111 # . the current directory, where building will happen
3112 # $prefix/lib where we will be installing things
3113 # $exec_prefix/lib likewise
3114 # eval it to expand exec_prefix.
3115 # $TMPDIR if set, where it might want to write temporary files
3116 # if $TMPDIR is not set:
3117 # /tmp where it might want to write temporary files
3120 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
3123 ac_tmpdirs='/tmp /var/tmp /usr/tmp'
3125 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
3126 test -d $ac_dir || continue
3127 test -w $ac_dir || continue # It is less confusing to not echo anything here.
3128 ac_xdir=$ac_dir/cf$$
3129 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue
3130 ac_tf1=$ac_xdir/conftest9012345
3131 ac_tf2=$ac_xdir/conftest9012346
3132 (echo 1 >$ac_tf1) 2>/dev/null
3133 (echo 2 >$ac_tf2) 2>/dev/null
3134 ac_val=`cat $ac_tf1 2>/dev/null`
3135 if test ! -f $ac_tf1 || test "$ac_val" != 1; then
3136 ac_cv_sys_long_file_names=no
3137 rm -rf $ac_xdir 2>/dev/null
3140 rm -rf $ac_xdir 2>/dev/null
3143 echo "$as_me:3143: result: $ac_cv_sys_long_file_names" >&5
3144 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
3145 if test $ac_cv_sys_long_file_names = yes; then
3147 cat >>confdefs.h <<\EOF
3148 #define HAVE_LONG_FILE_NAMES 1
3153 echo "$as_me:3153: checking if filesystem supports mixed-case filenames" >&5
3154 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
3155 if test "${cf_cv_mixedcase+set}" = set; then
3156 echo $ECHO_N "(cached) $ECHO_C" >&6
3159 if test "$cross_compiling" = yes ; then
3160 case $target_alias in #(vi
3161 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
3169 rm -f conftest CONFTEST
3171 if test -f CONFTEST ; then
3176 rm -f conftest CONFTEST
3180 echo "$as_me:3180: result: $cf_cv_mixedcase" >&5
3181 echo "${ECHO_T}$cf_cv_mixedcase" >&6
3182 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
3183 #define MIXEDCASE_FILENAMES 1
3186 echo "$as_me:3186: checking whether ln -s works" >&5
3187 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3189 if test "$LN_S" = "ln -s"; then
3190 echo "$as_me:3190: result: yes" >&5
3191 echo "${ECHO_T}yes" >&6
3193 echo "$as_me:3193: result: no, using $LN_S" >&5
3194 echo "${ECHO_T}no, using $LN_S" >&6
3197 # Extract the first word of "ctags", so it can be a program name with args.
3198 set dummy ctags; ac_word=$2
3199 echo "$as_me:3199: checking for $ac_word" >&5
3200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3201 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
3204 if test -n "$MAKE_LOWER_TAGS"; then
3205 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
3207 ac_save_IFS=$IFS; IFS=$ac_path_separator
3209 for ac_dir in $ac_dummy; do
3211 test -z "$ac_dir" && ac_dir=.
3212 $as_executable_p "$ac_dir/$ac_word" || continue
3213 ac_cv_prog_MAKE_LOWER_TAGS="yes"
3214 echo "$as_me:3214: found $ac_dir/$ac_word" >&5
3218 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
3221 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
3222 if test -n "$MAKE_LOWER_TAGS"; then
3223 echo "$as_me:3223: result: $MAKE_LOWER_TAGS" >&5
3224 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
3226 echo "$as_me:3226: result: no" >&5
3227 echo "${ECHO_T}no" >&6
3230 if test "$cf_cv_mixedcase" = yes ; then
3231 # Extract the first word of "etags", so it can be a program name with args.
3232 set dummy etags; ac_word=$2
3233 echo "$as_me:3233: checking for $ac_word" >&5
3234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3235 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
3236 echo $ECHO_N "(cached) $ECHO_C" >&6
3238 if test -n "$MAKE_UPPER_TAGS"; then
3239 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
3241 ac_save_IFS=$IFS; IFS=$ac_path_separator
3243 for ac_dir in $ac_dummy; do
3245 test -z "$ac_dir" && ac_dir=.
3246 $as_executable_p "$ac_dir/$ac_word" || continue
3247 ac_cv_prog_MAKE_UPPER_TAGS="yes"
3248 echo "$as_me:3248: found $ac_dir/$ac_word" >&5
3252 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
3255 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
3256 if test -n "$MAKE_UPPER_TAGS"; then
3257 echo "$as_me:3257: result: $MAKE_UPPER_TAGS" >&5
3258 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
3260 echo "$as_me:3260: result: no" >&5
3261 echo "${ECHO_T}no" >&6
3268 if test "$MAKE_UPPER_TAGS" = yes ; then
3274 if test "$MAKE_LOWER_TAGS" = yes ; then
3280 for ac_prog in tdlint lint alint
3282 # Extract the first word of "$ac_prog", so it can be a program name with args.
3283 set dummy $ac_prog; ac_word=$2
3284 echo "$as_me:3284: checking for $ac_word" >&5
3285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3286 if test "${ac_cv_prog_LINT+set}" = set; then
3287 echo $ECHO_N "(cached) $ECHO_C" >&6
3289 if test -n "$LINT"; then
3290 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3292 ac_save_IFS=$IFS; IFS=$ac_path_separator
3294 for ac_dir in $ac_dummy; do
3296 test -z "$ac_dir" && ac_dir=.
3297 $as_executable_p "$ac_dir/$ac_word" || continue
3298 ac_cv_prog_LINT="$ac_prog"
3299 echo "$as_me:3299: found $ac_dir/$ac_word" >&5
3305 LINT=$ac_cv_prog_LINT
3306 if test -n "$LINT"; then
3307 echo "$as_me:3307: result: $LINT" >&5
3308 echo "${ECHO_T}$LINT" >&6
3310 echo "$as_me:3310: result: no" >&5
3311 echo "${ECHO_T}no" >&6
3314 test -n "$LINT" && break
3317 for ac_prog in man man_db
3319 # Extract the first word of "$ac_prog", so it can be a program name with args.
3320 set dummy $ac_prog; ac_word=$2
3321 echo "$as_me:3321: checking for $ac_word" >&5
3322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3323 if test "${ac_cv_prog_MAN+set}" = set; then
3324 echo $ECHO_N "(cached) $ECHO_C" >&6
3326 if test -n "$MAN"; then
3327 ac_cv_prog_MAN="$MAN" # Let the user override the test.
3329 ac_save_IFS=$IFS; IFS=$ac_path_separator
3331 for ac_dir in $ac_dummy; do
3333 test -z "$ac_dir" && ac_dir=.
3334 $as_executable_p "$ac_dir/$ac_word" || continue
3335 ac_cv_prog_MAN="$ac_prog"
3336 echo "$as_me:3336: found $ac_dir/$ac_word" >&5
3343 if test -n "$MAN"; then
3344 echo "$as_me:3344: result: $MAN" >&5
3345 echo "${ECHO_T}$MAN" >&6
3347 echo "$as_me:3347: result: no" >&5
3348 echo "${ECHO_T}no" >&6
3351 test -n "$MAN" && break
3354 if test -n "$ac_tool_prefix"; then
3355 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3356 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3357 echo "$as_me:3357: checking for $ac_word" >&5
3358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3359 if test "${ac_cv_prog_RANLIB+set}" = set; then
3360 echo $ECHO_N "(cached) $ECHO_C" >&6
3362 if test -n "$RANLIB"; then
3363 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3365 ac_save_IFS=$IFS; IFS=$ac_path_separator
3367 for ac_dir in $ac_dummy; do
3369 test -z "$ac_dir" && ac_dir=.
3370 $as_executable_p "$ac_dir/$ac_word" || continue
3371 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3372 echo "$as_me:3372: found $ac_dir/$ac_word" >&5
3378 RANLIB=$ac_cv_prog_RANLIB
3379 if test -n "$RANLIB"; then
3380 echo "$as_me:3380: result: $RANLIB" >&5
3381 echo "${ECHO_T}$RANLIB" >&6
3383 echo "$as_me:3383: result: no" >&5
3384 echo "${ECHO_T}no" >&6
3388 if test -z "$ac_cv_prog_RANLIB"; then
3389 ac_ct_RANLIB=$RANLIB
3390 # Extract the first word of "ranlib", so it can be a program name with args.
3391 set dummy ranlib; ac_word=$2
3392 echo "$as_me:3392: checking for $ac_word" >&5
3393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3394 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3397 if test -n "$ac_ct_RANLIB"; then
3398 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3400 ac_save_IFS=$IFS; IFS=$ac_path_separator
3402 for ac_dir in $ac_dummy; do
3404 test -z "$ac_dir" && ac_dir=.
3405 $as_executable_p "$ac_dir/$ac_word" || continue
3406 ac_cv_prog_ac_ct_RANLIB="ranlib"
3407 echo "$as_me:3407: found $ac_dir/$ac_word" >&5
3411 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="':'"
3414 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3415 if test -n "$ac_ct_RANLIB"; then
3416 echo "$as_me:3416: result: $ac_ct_RANLIB" >&5
3417 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3419 echo "$as_me:3419: result: no" >&5
3420 echo "${ECHO_T}no" >&6
3423 RANLIB=$ac_ct_RANLIB
3425 RANLIB="$ac_cv_prog_RANLIB"
3428 if test -n "$ac_tool_prefix"; then
3429 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
3430 set dummy ${ac_tool_prefix}ld; ac_word=$2
3431 echo "$as_me:3431: checking for $ac_word" >&5
3432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3433 if test "${ac_cv_prog_LD+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3436 if test -n "$LD"; then
3437 ac_cv_prog_LD="$LD" # Let the user override the test.
3439 ac_save_IFS=$IFS; IFS=$ac_path_separator
3441 for ac_dir in $ac_dummy; do
3443 test -z "$ac_dir" && ac_dir=.
3444 $as_executable_p "$ac_dir/$ac_word" || continue
3445 ac_cv_prog_LD="${ac_tool_prefix}ld"
3446 echo "$as_me:3446: found $ac_dir/$ac_word" >&5
3453 if test -n "$LD"; then
3454 echo "$as_me:3454: result: $LD" >&5
3455 echo "${ECHO_T}$LD" >&6
3457 echo "$as_me:3457: result: no" >&5
3458 echo "${ECHO_T}no" >&6
3462 if test -z "$ac_cv_prog_LD"; then
3464 # Extract the first word of "ld", so it can be a program name with args.
3465 set dummy ld; ac_word=$2
3466 echo "$as_me:3466: checking for $ac_word" >&5
3467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3468 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3471 if test -n "$ac_ct_LD"; then
3472 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
3474 ac_save_IFS=$IFS; IFS=$ac_path_separator
3476 for ac_dir in $ac_dummy; do
3478 test -z "$ac_dir" && ac_dir=.
3479 $as_executable_p "$ac_dir/$ac_word" || continue
3480 ac_cv_prog_ac_ct_LD="ld"
3481 echo "$as_me:3481: found $ac_dir/$ac_word" >&5
3485 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
3488 ac_ct_LD=$ac_cv_prog_ac_ct_LD
3489 if test -n "$ac_ct_LD"; then
3490 echo "$as_me:3490: result: $ac_ct_LD" >&5
3491 echo "${ECHO_T}$ac_ct_LD" >&6
3493 echo "$as_me:3493: result: no" >&5
3494 echo "${ECHO_T}no" >&6
3502 if test -n "$ac_tool_prefix"; then
3503 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3504 set dummy ${ac_tool_prefix}ar; ac_word=$2
3505 echo "$as_me:3505: checking for $ac_word" >&5
3506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3507 if test "${ac_cv_prog_AR+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3510 if test -n "$AR"; then
3511 ac_cv_prog_AR="$AR" # Let the user override the test.
3513 ac_save_IFS=$IFS; IFS=$ac_path_separator
3515 for ac_dir in $ac_dummy; do
3517 test -z "$ac_dir" && ac_dir=.
3518 $as_executable_p "$ac_dir/$ac_word" || continue
3519 ac_cv_prog_AR="${ac_tool_prefix}ar"
3520 echo "$as_me:3520: found $ac_dir/$ac_word" >&5
3527 if test -n "$AR"; then
3528 echo "$as_me:3528: result: $AR" >&5
3529 echo "${ECHO_T}$AR" >&6
3531 echo "$as_me:3531: result: no" >&5
3532 echo "${ECHO_T}no" >&6
3536 if test -z "$ac_cv_prog_AR"; then
3538 # Extract the first word of "ar", so it can be a program name with args.
3539 set dummy ar; ac_word=$2
3540 echo "$as_me:3540: checking for $ac_word" >&5
3541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3542 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 if test -n "$ac_ct_AR"; then
3546 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3548 ac_save_IFS=$IFS; IFS=$ac_path_separator
3550 for ac_dir in $ac_dummy; do
3552 test -z "$ac_dir" && ac_dir=.
3553 $as_executable_p "$ac_dir/$ac_word" || continue
3554 ac_cv_prog_ac_ct_AR="ar"
3555 echo "$as_me:3555: found $ac_dir/$ac_word" >&5
3559 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3562 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3563 if test -n "$ac_ct_AR"; then
3564 echo "$as_me:3564: result: $ac_ct_AR" >&5
3565 echo "${ECHO_T}$ac_ct_AR" >&6
3567 echo "$as_me:3567: result: no" >&5
3568 echo "${ECHO_T}no" >&6
3576 if test "${cf_cv_subst_AR_OPTS+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3580 echo "$as_me:3580: checking for archiver options (symbol AR_OPTS)" >&5
3581 echo $ECHO_N "checking for archiver options (symbol AR_OPTS)... $ECHO_C" >&6
3582 test -z "$AR_OPTS" && AR_OPTS=rv
3583 echo "$as_me:3583: result: $AR_OPTS" >&5
3584 echo "${ECHO_T}$AR_OPTS" >&6
3586 cf_cv_subst_AR_OPTS=$AR_OPTS
3589 AR_OPTS=${cf_cv_subst_AR_OPTS}
3591 echo "$as_me:3591: checking for makeflags variable" >&5
3592 echo $ECHO_N "checking for makeflags variable... $ECHO_C" >&6
3593 if test "${cf_cv_makeflags+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3598 for cf_option in '-$(MAKEFLAGS)' '$(MFLAGS)'
3600 cat >cf_makeflags.tmp <<CF_EOF
3603 @ echo '.$cf_option'
3605 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp 2>/dev/null`
3606 case "$cf_result" in
3608 cf_result=`${MAKE-make} -k -f cf_makeflags.tmp CC=cc 2>/dev/null`
3609 case "$cf_result" in
3610 .*CC=*) cf_cv_makeflags=
3612 *) cf_cv_makeflags=$cf_option
3617 *) echo no match "$cf_result"
3621 rm -f cf_makeflags.tmp
3624 echo "$as_me:3624: result: $cf_cv_makeflags" >&5
3625 echo "${ECHO_T}$cf_cv_makeflags" >&6
3627 echo "$as_me:3627: checking if you have specified an install-prefix" >&5
3628 echo $ECHO_N "checking if you have specified an install-prefix... $ECHO_C" >&6
3630 # Check whether --with-install-prefix or --without-install-prefix was given.
3631 if test "${with_install_prefix+set}" = set; then
3632 withval="$with_install_prefix"
3633 case "$withval" in #(vi
3636 *) DESTDIR="$withval"
3640 echo "$as_me:3640: result: $DESTDIR" >&5
3641 echo "${ECHO_T}$DESTDIR" >&6
3643 ###############################################################################
3645 # If we're cross-compiling, allow the user to override the tools and their
3646 # options. The configure script is oriented toward identifying the host
3647 # compiler, etc., but we need a build compiler to generate parts of the source.
3648 : ${BUILD_CC:='$(CC)'}
3649 : ${BUILD_CFLAGS:='$(CFLAGS)'}
3650 : ${BUILD_CPPFLAGS:='$(CPPFLAGS)'}
3651 : ${BUILD_LDFLAGS:='$(LDFLAGS)'}
3652 : ${BUILD_LIBS:='$(LIBS)'}
3653 : ${BUILD_EXEEXT:='$x'}
3654 if test "$cross_compiling" = yes ; then
3656 # Check whether --with-build-cc or --without-build-cc was given.
3657 if test "${with_build_cc+set}" = set; then
3658 withval="$with_build_cc"
3661 for ac_prog in $CC gcc cc
3663 # Extract the first word of "$ac_prog", so it can be a program name with args.
3664 set dummy $ac_prog; ac_word=$2
3665 echo "$as_me:3665: checking for $ac_word" >&5
3666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3667 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3670 if test -n "$BUILD_CC"; then
3671 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3673 ac_save_IFS=$IFS; IFS=$ac_path_separator
3675 for ac_dir in $ac_dummy; do
3677 test -z "$ac_dir" && ac_dir=.
3678 $as_executable_p "$ac_dir/$ac_word" || continue
3679 ac_cv_prog_BUILD_CC="$ac_prog"
3680 echo "$as_me:3680: found $ac_dir/$ac_word" >&5
3686 BUILD_CC=$ac_cv_prog_BUILD_CC
3687 if test -n "$BUILD_CC"; then
3688 echo "$as_me:3688: result: $BUILD_CC" >&5
3689 echo "${ECHO_T}$BUILD_CC" >&6
3691 echo "$as_me:3691: result: no" >&5
3692 echo "${ECHO_T}no" >&6
3695 test -n "$BUILD_CC" && break
3700 # Check whether --with-build-cflags or --without-build-cflags was given.
3701 if test "${with_build_cflags+set}" = set; then
3702 withval="$with_build_cflags"
3703 BUILD_CFLAGS="$withval"
3706 # Check whether --with-build-cppflags or --without-build-cppflags was given.
3707 if test "${with_build_cppflags+set}" = set; then
3708 withval="$with_build_cppflags"
3709 BUILD_CPPFLAGS="$withval"
3712 # Check whether --with-build-ldflags or --without-build-ldflags was given.
3713 if test "${with_build_ldflags+set}" = set; then
3714 withval="$with_build_ldflags"
3715 BUILD_LDFLAGS="$withval"
3718 # Check whether --with-build-libs or --without-build-libs was given.
3719 if test "${with_build_libs+set}" = set; then
3720 withval="$with_build_libs"
3721 BUILD_LIBS="$withval"
3726 ###############################################################################
3728 ### Options to allow the user to specify the set of libraries which are used.
3729 ### Use "--without-normal --with-shared" to allow the default model to be
3730 ### shared, for example.
3735 # common library maintenance symbols that are convenient for libtool scripts:
3736 LIB_CREATE='$(AR) -cr'
3737 LIB_OBJECT='$(OBJECTS)'
3741 # symbols used to prop libtool up to enable it to determine what it should be
3749 echo "$as_me:3749: checking if you want to build libraries with libtool" >&5
3750 echo $ECHO_N "checking if you want to build libraries with libtool... $ECHO_C" >&6
3752 # Check whether --with-libtool or --without-libtool was given.
3753 if test "${with_libtool+set}" = set; then
3754 withval="$with_libtool"
3755 with_libtool=$withval
3759 echo "$as_me:3759: result: $with_libtool" >&5
3760 echo "${ECHO_T}$with_libtool" >&6
3761 if test "$with_libtool" != "no"; then
3763 if test "$with_libtool" != "yes" ; then
3765 case ".$with_libtool" in #(vi
3766 .\$\(*\)*|.\'*\'*) #(vi
3770 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3773 eval with_libtool="$with_libtool"
3774 case ".$with_libtool" in #(vi
3776 with_libtool=`echo $with_libtool | sed -e s%NONE%$ac_default_prefix%`
3781 with_libtool=`echo $with_libtool | sed -e s%NONE%$ac_default_prefix%`
3784 { { echo "$as_me:3784: error: expected a pathname, not \"$with_libtool\"" >&5
3785 echo "$as_me: error: expected a pathname, not \"$with_libtool\"" >&2;}
3786 { (exit 1); exit 1; }; }
3790 LIBTOOL=$with_libtool
3792 # Extract the first word of "libtool", so it can be a program name with args.
3793 set dummy libtool; ac_word=$2
3794 echo "$as_me:3794: checking for $ac_word" >&5
3795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3796 if test "${ac_cv_path_LIBTOOL+set}" = set; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
3804 ac_save_IFS=$IFS; IFS=$ac_path_separator
3806 for ac_dir in $ac_dummy; do
3808 test -z "$ac_dir" && ac_dir=.
3809 if $as_executable_p "$ac_dir/$ac_word"; then
3810 ac_cv_path_LIBTOOL="$ac_dir/$ac_word"
3811 echo "$as_me:3811: found $ac_dir/$ac_word" >&5
3819 LIBTOOL=$ac_cv_path_LIBTOOL
3821 if test -n "$LIBTOOL"; then
3822 echo "$as_me:3822: result: $LIBTOOL" >&5
3823 echo "${ECHO_T}$LIBTOOL" >&6
3825 echo "$as_me:3825: result: no" >&5
3826 echo "${ECHO_T}no" >&6
3830 if test -z "$LIBTOOL" ; then
3831 { { echo "$as_me:3831: error: Cannot find libtool" >&5
3832 echo "$as_me: error: Cannot find libtool" >&2;}
3833 { (exit 1); exit 1; }; }
3835 LIB_CREATE='$(LIBTOOL) --mode=link $(CC) -rpath $(DESTDIR)$(libdir) -version-info `cut -f1 $(srcdir)/VERSION` -o'
3836 LIB_OBJECT='$(OBJECTS:.o=.lo)'
3838 LIB_CLEAN='$(LIBTOOL) --mode=clean'
3839 LIB_COMPILE='$(LIBTOOL) --mode=compile'
3840 LIB_LINK='$(LIBTOOL) --mode=link'
3841 LIB_INSTALL='$(LIBTOOL) --mode=install'
3842 LIB_UNINSTALL='$(LIBTOOL) --mode=uninstall'
3845 # Show the version of libtool
3846 echo "$as_me:3846: checking version of libtool" >&5
3847 echo $ECHO_N "checking version of libtool... $ECHO_C" >&6
3849 # Save the version in a cache variable - this is not entirely a good
3850 # thing, but the version string from libtool is very ugly, and for
3851 # bug reports it might be useful to have the original string.
3852 cf_cv_libtool_version=`$LIBTOOL --version 2>&1 | sed -e '2,$d' -e 's/([^)]*)//g' -e 's/^[^1-9]*//' -e 's/[^0-9.].*//'`
3853 echo "$as_me:3853: result: $cf_cv_libtool_version" >&5
3854 echo "${ECHO_T}$cf_cv_libtool_version" >&6
3855 if test -z "$cf_cv_libtool_version" ; then
3856 { { echo "$as_me:3856: error: This is not libtool" >&5
3857 echo "$as_me: error: This is not libtool" >&2;}
3858 { (exit 1); exit 1; }; }
3861 # special hack to add --tag option for C++ compiler
3862 case $cf_cv_libtool_version in
3864 LIBTOOL_CXX="$LIBTOOL --tag=CXX"
3867 LIBTOOL_CXX="$LIBTOOL"
3875 test -z "$LIBTOOL" && ECHO_LT=
3877 if test "$with_libtool" != "no" ; then
3879 cf_list_models="$cf_list_models libtool"
3883 echo "$as_me:3883: checking if you want to build shared libraries" >&5
3884 echo $ECHO_N "checking if you want to build shared libraries... $ECHO_C" >&6
3886 # Check whether --with-shared or --without-shared was given.
3887 if test "${with_shared+set}" = set; then
3888 withval="$with_shared"
3889 with_shared=$withval
3893 echo "$as_me:3893: result: $with_shared" >&5
3894 echo "${ECHO_T}$with_shared" >&6
3895 test "$with_shared" = "yes" && cf_list_models="$cf_list_models shared"
3897 echo "$as_me:3897: checking if you want to build static libraries" >&5
3898 echo $ECHO_N "checking if you want to build static libraries... $ECHO_C" >&6
3900 # Check whether --with-normal or --without-normal was given.
3901 if test "${with_normal+set}" = set; then
3902 withval="$with_normal"
3903 with_normal=$withval
3907 echo "$as_me:3907: result: $with_normal" >&5
3908 echo "${ECHO_T}$with_normal" >&6
3909 test "$with_normal" = "yes" && cf_list_models="$cf_list_models normal"
3911 echo "$as_me:3911: checking if you want to build debug libraries" >&5
3912 echo $ECHO_N "checking if you want to build debug libraries... $ECHO_C" >&6
3914 # Check whether --with-debug or --without-debug was given.
3915 if test "${with_debug+set}" = set; then
3916 withval="$with_debug"
3921 echo "$as_me:3921: result: $with_debug" >&5
3922 echo "${ECHO_T}$with_debug" >&6
3923 test "$with_debug" = "yes" && cf_list_models="$cf_list_models debug"
3925 echo "$as_me:3925: checking if you want to build profiling libraries" >&5
3926 echo $ECHO_N "checking if you want to build profiling libraries... $ECHO_C" >&6
3928 # Check whether --with-profile or --without-profile was given.
3929 if test "${with_profile+set}" = set; then
3930 withval="$with_profile"
3931 with_profile=$withval
3935 echo "$as_me:3935: result: $with_profile" >&5
3936 echo "${ECHO_T}$with_profile" >&6
3937 test "$with_profile" = "yes" && cf_list_models="$cf_list_models profile"
3941 ###############################################################################
3943 echo "$as_me:3943: checking for specified models" >&5
3944 echo $ECHO_N "checking for specified models... $ECHO_C" >&6
3945 test -z "$cf_list_models" && cf_list_models=normal
3946 test "$with_libtool" != "no" && cf_list_models=libtool
3947 echo "$as_me:3947: result: $cf_list_models" >&5
3948 echo "${ECHO_T}$cf_list_models" >&6
3950 ### Use the first model as the default, and save its suffix for use in building
3951 ### up test-applications.
3952 echo "$as_me:3952: checking for default model" >&5
3953 echo $ECHO_N "checking for default model... $ECHO_C" >&6
3954 DFT_LWR_MODEL=`echo "$cf_list_models" | $AWK '{print $1}'`
3955 echo "$as_me:3955: result: $DFT_LWR_MODEL" >&5
3956 echo "${ECHO_T}$DFT_LWR_MODEL" >&6
3958 DFT_UPR_MODEL=`echo "$DFT_LWR_MODEL" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3966 case $cf_cv_system_name in
3967 OS/2*) LIB_PREFIX='' ;;
3968 os2*) LIB_PREFIX='' ;;
3969 *) LIB_PREFIX='lib' ;;
3971 cf_prefix=$LIB_PREFIX
3973 LIB_PREFIX=$cf_prefix
3977 ###############################################################################
3979 echo "$as_me:3979: checking if you want to build a separate terminfo library" >&5
3980 echo $ECHO_N "checking if you want to build a separate terminfo library... $ECHO_C" >&6
3982 # Check whether --with-termlib or --without-termlib was given.
3983 if test "${with_termlib+set}" = set; then
3984 withval="$with_termlib"
3985 with_termlib=$withval
3989 echo "$as_me:3989: result: $with_termlib" >&5
3990 echo "${ECHO_T}$with_termlib" >&6
3992 ### Checks for special libraries, must be done up-front.
3994 echo "$as_me:3994: checking if you want to link with dbmalloc for testing" >&5
3995 echo $ECHO_N "checking if you want to link with dbmalloc for testing... $ECHO_C" >&6
3997 # Check whether --with-dbmalloc or --without-dbmalloc was given.
3998 if test "${with_dbmalloc+set}" = set; then
3999 withval="$with_dbmalloc"
4000 with_dbmalloc=$withval
4004 echo "$as_me:4004: result: $with_dbmalloc" >&5
4005 echo "${ECHO_T}$with_dbmalloc" >&6
4006 if test $with_dbmalloc = yes ; then
4008 echo "$as_me:4008: checking for debug_malloc in -ldbmalloc" >&5
4009 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
4010 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
4011 echo $ECHO_N "(cached) $ECHO_C" >&6
4013 ac_check_lib_save_LIBS=$LIBS
4014 LIBS="-ldbmalloc $LIBS"
4015 cat >conftest.$ac_ext <<_ACEOF
4016 #line 4016 "configure"
4017 #include "confdefs.h"
4019 /* Override any gcc2 internal prototype to avoid an error. */
4023 /* We use char because int might match the return type of a gcc2
4024 builtin and then its argument prototype would still apply. */
4025 char debug_malloc ();
4034 rm -f conftest.$ac_objext conftest$ac_exeext
4035 if { (eval echo "$as_me:4035: \"$ac_link\"") >&5
4036 (eval $ac_link) 2>&5
4038 echo "$as_me:4038: \$? = $ac_status" >&5
4039 (exit $ac_status); } &&
4040 { ac_try='test -s conftest$ac_exeext'
4041 { (eval echo "$as_me:4041: \"$ac_try\"") >&5
4044 echo "$as_me:4044: \$? = $ac_status" >&5
4045 (exit $ac_status); }; }; then
4046 ac_cv_lib_dbmalloc_debug_malloc=yes
4048 echo "$as_me: failed program was:" >&5
4049 cat conftest.$ac_ext >&5
4050 ac_cv_lib_dbmalloc_debug_malloc=no
4052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4053 LIBS=$ac_check_lib_save_LIBS
4055 echo "$as_me:4055: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
4056 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
4057 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
4058 cat >>confdefs.h <<EOF
4059 #define HAVE_LIBDBMALLOC 1
4062 LIBS="-ldbmalloc $LIBS"
4068 echo "$as_me:4068: checking if you want to link with dmalloc for testing" >&5
4069 echo $ECHO_N "checking if you want to link with dmalloc for testing... $ECHO_C" >&6
4071 # Check whether --with-dmalloc or --without-dmalloc was given.
4072 if test "${with_dmalloc+set}" = set; then
4073 withval="$with_dmalloc"
4074 with_dmalloc=$withval
4078 echo "$as_me:4078: result: $with_dmalloc" >&5
4079 echo "${ECHO_T}$with_dmalloc" >&6
4080 if test $with_dmalloc = yes ; then
4082 echo "$as_me:4082: checking for dmalloc_debug in -ldmalloc" >&5
4083 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
4084 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
4085 echo $ECHO_N "(cached) $ECHO_C" >&6
4087 ac_check_lib_save_LIBS=$LIBS
4088 LIBS="-ldmalloc $LIBS"
4089 cat >conftest.$ac_ext <<_ACEOF
4090 #line 4090 "configure"
4091 #include "confdefs.h"
4093 /* Override any gcc2 internal prototype to avoid an error. */
4097 /* We use char because int might match the return type of a gcc2
4098 builtin and then its argument prototype would still apply. */
4099 char dmalloc_debug ();
4108 rm -f conftest.$ac_objext conftest$ac_exeext
4109 if { (eval echo "$as_me:4109: \"$ac_link\"") >&5
4110 (eval $ac_link) 2>&5
4112 echo "$as_me:4112: \$? = $ac_status" >&5
4113 (exit $ac_status); } &&
4114 { ac_try='test -s conftest$ac_exeext'
4115 { (eval echo "$as_me:4115: \"$ac_try\"") >&5
4118 echo "$as_me:4118: \$? = $ac_status" >&5
4119 (exit $ac_status); }; }; then
4120 ac_cv_lib_dmalloc_dmalloc_debug=yes
4122 echo "$as_me: failed program was:" >&5
4123 cat conftest.$ac_ext >&5
4124 ac_cv_lib_dmalloc_dmalloc_debug=no
4126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4127 LIBS=$ac_check_lib_save_LIBS
4129 echo "$as_me:4129: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
4130 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
4131 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
4132 cat >>confdefs.h <<EOF
4133 #define HAVE_LIBDMALLOC 1
4136 LIBS="-ldmalloc $LIBS"
4143 echo "$as_me:4143: checking if you want to link with the gpm mouse library" >&5
4144 echo $ECHO_N "checking if you want to link with the gpm mouse library... $ECHO_C" >&6
4146 # Check whether --with-gpm or --without-gpm was given.
4147 if test "${with_gpm+set}" = set; then
4153 echo "$as_me:4153: result: $with_gpm" >&5
4154 echo "${ECHO_T}$with_gpm" >&6
4155 if test "$with_gpm" = yes ; then
4156 echo "$as_me:4156: checking for Gpm_Open in -lgpm" >&5
4157 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
4158 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4161 ac_check_lib_save_LIBS=$LIBS
4163 cat >conftest.$ac_ext <<_ACEOF
4164 #line 4164 "configure"
4165 #include "confdefs.h"
4167 /* Override any gcc2 internal prototype to avoid an error. */
4171 /* We use char because int might match the return type of a gcc2
4172 builtin and then its argument prototype would still apply. */
4182 rm -f conftest.$ac_objext conftest$ac_exeext
4183 if { (eval echo "$as_me:4183: \"$ac_link\"") >&5
4184 (eval $ac_link) 2>&5
4186 echo "$as_me:4186: \$? = $ac_status" >&5
4187 (exit $ac_status); } &&
4188 { ac_try='test -s conftest$ac_exeext'
4189 { (eval echo "$as_me:4189: \"$ac_try\"") >&5
4192 echo "$as_me:4192: \$? = $ac_status" >&5
4193 (exit $ac_status); }; }; then
4194 ac_cv_lib_gpm_Gpm_Open=yes
4196 echo "$as_me: failed program was:" >&5
4197 cat conftest.$ac_ext >&5
4198 ac_cv_lib_gpm_Gpm_Open=no
4200 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4201 LIBS=$ac_check_lib_save_LIBS
4203 echo "$as_me:4203: result: $ac_cv_lib_gpm_Gpm_Open" >&5
4204 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
4205 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
4207 EXTRA_LIBS="-lgpm -lncurses $EXTRA_LIBS"
4208 SHLIB_LIST="-lgpm $SHLIB_LIST"
4209 cat >>confdefs.h <<\EOF
4210 #define HAVE_LIBGPM 1
4213 for ac_header in gpm.h
4215 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4216 echo "$as_me:4216: checking for $ac_header" >&5
4217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4221 cat >conftest.$ac_ext <<_ACEOF
4222 #line 4222 "configure"
4223 #include "confdefs.h"
4224 #include <$ac_header>
4226 if { (eval echo "$as_me:4226: \"$ac_cpp conftest.$ac_ext\"") >&5
4227 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4229 egrep -v '^ *\+' conftest.er1 >conftest.err
4231 cat conftest.err >&5
4232 echo "$as_me:4232: \$? = $ac_status" >&5
4233 (exit $ac_status); } >/dev/null; then
4234 if test -s conftest.err; then
4235 ac_cpp_err=$ac_c_preproc_warn_flag
4242 if test -z "$ac_cpp_err"; then
4243 eval "$as_ac_Header=yes"
4245 echo "$as_me: failed program was:" >&5
4246 cat conftest.$ac_ext >&5
4247 eval "$as_ac_Header=no"
4249 rm -f conftest.err conftest.$ac_ext
4251 echo "$as_me:4251: result: `eval echo '${'$as_ac_Header'}'`" >&5
4252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4253 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4254 cat >>confdefs.h <<EOF
4255 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4262 { echo "$as_me:4262: WARNING: Cannot link with gpm library - read the FAQ" >&5
4263 echo "$as_me: WARNING: Cannot link with gpm library - read the FAQ" >&2;}
4268 # not everyone has "test -c"
4269 if test -c /dev/sysmouse 2>/dev/null ; then
4270 echo "$as_me:4270: checking if you want to use sysmouse" >&5
4271 echo $ECHO_N "checking if you want to use sysmouse... $ECHO_C" >&6
4273 # Check whether --with-sysmouse or --without-sysmouse was given.
4274 if test "${with_sysmouse+set}" = set; then
4275 withval="$with_sysmouse"
4276 cf_with_sysmouse=$withval
4278 cf_with_sysmouse=maybe
4280 if test "$cf_with_sysmouse" != no ; then
4281 cat >conftest.$ac_ext <<_ACEOF
4282 #line 4282 "configure"
4283 #include "confdefs.h"
4285 #include <osreldate.h>
4286 #if (__FreeBSD_version >= 400017)
4287 #include <sys/consio.h>
4288 #include <sys/fbio.h>
4290 #include <machine/console.h>
4297 struct mouse_info the_mouse;
4298 ioctl(0, CONS_MOUSECTL, &the_mouse);
4304 rm -f conftest.$ac_objext
4305 if { (eval echo "$as_me:4305: \"$ac_compile\"") >&5
4306 (eval $ac_compile) 2>&5
4308 echo "$as_me:4308: \$? = $ac_status" >&5
4309 (exit $ac_status); } &&
4310 { ac_try='test -s conftest.$ac_objext'
4311 { (eval echo "$as_me:4311: \"$ac_try\"") >&5
4314 echo "$as_me:4314: \$? = $ac_status" >&5
4315 (exit $ac_status); }; }; then
4316 cf_with_sysmouse=yes
4318 echo "$as_me: failed program was:" >&5
4319 cat conftest.$ac_ext >&5
4322 rm -f conftest.$ac_objext conftest.$ac_ext
4324 echo "$as_me:4324: result: $cf_with_sysmouse" >&5
4325 echo "${ECHO_T}$cf_with_sysmouse" >&6
4326 test "$cf_with_sysmouse" = yes && cat >>confdefs.h <<\EOF
4327 #define USE_SYSMOUSE 1
4332 if test X"$CC_G_OPT" = X"" ; then
4334 test -n "$GCC" && test "${ac_cv_prog_cc_g}" != yes && CC_G_OPT=''
4337 if test X"$CXX_G_OPT" = X"" ; then
4339 test -n "$GXX" && test "${ac_cv_prog_cxx_g}" != yes && CXX_G_OPT=''
4342 echo "$as_me:4342: checking for default loader flags" >&5
4343 echo $ECHO_N "checking for default loader flags... $ECHO_C" >&6
4344 case $DFT_LWR_MODEL in
4345 libtool) LD_MODEL='' ;;
4346 normal) LD_MODEL='' ;;
4347 debug) LD_MODEL=$CC_G_OPT ;;
4348 profile) LD_MODEL='-pg';;
4349 shared) LD_MODEL='' ;;
4351 echo "$as_me:4351: result: $LD_MODEL" >&5
4352 echo "${ECHO_T}$LD_MODEL" >&6
4354 echo "$as_me:4354: checking if rpath option should be used" >&5
4355 echo $ECHO_N "checking if rpath option should be used... $ECHO_C" >&6
4357 # Check whether --enable-rpath or --disable-rpath was given.
4358 if test "${enable_rpath+set}" = set; then
4359 enableval="$enable_rpath"
4360 cf_cv_ld_rpath=$enableval
4364 echo "$as_me:4364: result: $cf_cv_ld_rpath" >&5
4365 echo "${ECHO_T}$cf_cv_ld_rpath" >&6
4370 INSTALL_LIB="-m 644"
4372 cf_cv_do_symlinks=no
4374 echo "$as_me:4374: checking if release/abi version should be used for shared libs" >&5
4375 echo $ECHO_N "checking if release/abi version should be used for shared libs... $ECHO_C" >&6
4377 # Check whether --with-shlib-version or --without-shlib-version was given.
4378 if test "${with_shlib_version+set}" = set; then
4379 withval="$with_shlib_version"
4380 test -z "$withval" && withval=auto
4381 case $withval in #(vi
4383 cf_cv_shlib_version=auto
4385 rel|abi|auto|no) #(vi
4386 cf_cv_shlib_version=$withval
4389 { { echo "$as_me:4389: error: option value must be one of: rel, abi, auto or no" >&5
4390 echo "$as_me: error: option value must be one of: rel, abi, auto or no" >&2;}
4391 { (exit 1); exit 1; }; }
4396 cf_cv_shlib_version=auto
4398 echo "$as_me:4398: result: $cf_cv_shlib_version" >&5
4399 echo "${ECHO_T}$cf_cv_shlib_version" >&6
4403 # Some less-capable ports of gcc support only -fpic
4405 if test "$GCC" = yes
4407 echo "$as_me:4407: checking which $CC option to use" >&5
4408 echo $ECHO_N "checking which $CC option to use... $ECHO_C" >&6
4409 cf_save_CFLAGS="$CFLAGS"
4410 for CC_SHARED_OPTS in -fPIC -fpic ''
4412 CFLAGS="$cf_save_CFLAGS $CC_SHARED_OPTS"
4413 cat >conftest.$ac_ext <<_ACEOF
4414 #line 4414 "configure"
4415 #include "confdefs.h"
4425 rm -f conftest.$ac_objext
4426 if { (eval echo "$as_me:4426: \"$ac_compile\"") >&5
4427 (eval $ac_compile) 2>&5
4429 echo "$as_me:4429: \$? = $ac_status" >&5
4430 (exit $ac_status); } &&
4431 { ac_try='test -s conftest.$ac_objext'
4432 { (eval echo "$as_me:4432: \"$ac_try\"") >&5
4435 echo "$as_me:4435: \$? = $ac_status" >&5
4436 (exit $ac_status); }; }; then
4439 echo "$as_me: failed program was:" >&5
4440 cat conftest.$ac_ext >&5
4442 rm -f conftest.$ac_objext conftest.$ac_ext
4444 echo "$as_me:4444: result: $CC_SHARED_OPTS" >&5
4445 echo "${ECHO_T}$CC_SHARED_OPTS" >&6
4446 CFLAGS="$cf_save_CFLAGS"
4449 cf_cv_shlib_version_infix=no
4451 case $cf_cv_system_name in
4453 MK_SHARED_LIB='$(CC) -o $@ -Xlinker -soname=`basename $@` -nostart -e 0'
4457 MK_SHARED_LIB='$(CC) -shared -Wl,--out-implib=$(IMPORT_LIB) -Wl,--export-all-symbols -o $(SHARED_LIB)'
4458 cf_cv_shlib_version=cygdll
4459 cf_cv_shlib_version_infix=cygdll
4462 EXTRA_CFLAGS="-no-cpp-precomp"
4463 CC_SHARED_OPTS="-dynamic"
4464 MK_SHARED_LIB='$(CC) -dynamiclib -install_name $(DESTDIR)$(libdir)/`basename $@` -compatibility_version $(ABI_VERSION) -current_version $(ABI_VERSION) -o $@'
4465 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=abi
4466 cf_cv_shlib_version_infix=yes
4469 # (tested with gcc 2.7.2 -- I don't have c89)
4470 if test "$GCC" = yes; then
4471 LD_SHARED_OPTS='-Xlinker +b -Xlinker $(libdir)'
4474 LD_SHARED_OPTS='-Wl,+b,$(libdir)'
4476 MK_SHARED_LIB='$(LD) +b $(libdir) -b -o $@'
4477 # HP-UX shared libraries must be executable, and should be
4478 # readonly to exploit a quirk in the memory manager.
4479 INSTALL_LIB="-m 555"
4482 if test "$cf_cv_ld_rpath" = yes ; then
4483 cf_ld_rpath_opt="-Wl,-rpath,"
4484 EXTRA_LDFLAGS="-Wl,-rpath,\$(libdir) $EXTRA_LDFLAGS"
4486 # tested with IRIX 5.2 and 'cc'.
4487 if test "$GCC" != yes; then
4488 CC_SHARED_OPTS='-KPIC'
4490 MK_SHARED_LIB='$(LD) -shared -rdata_shared -soname `basename $@` -o $@'
4491 cf_cv_rm_so_locs=yes
4493 linux*|gnu*|k*bsd*-gnu)
4494 if test "$DFT_LWR_MODEL" = "shared" ; then
4495 LOCAL_LDFLAGS="-Wl,-rpath,`pwd`/lib"
4496 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
4498 if test "$cf_cv_ld_rpath" = yes ; then
4499 cf_ld_rpath_opt="-Wl,-rpath,"
4500 EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
4502 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
4503 MK_SHARED_LIB='$(CC) -shared -Wl,-soname,`basename $@ .$(REL_VERSION)`.$(ABI_VERSION),-stats,-lc -o $@'
4506 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
4507 MK_SHARED_LIB='$(LD) -Bshareable -soname,`basename $@.$(ABI_VERSION)` -o $@'
4510 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
4511 MK_SHARED_LIB='$(LD) -Bshareable -soname=`basename $@` -o $@'
4512 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
4514 # This doesn't work - I keep getting spurious references to needing
4515 # libncurses.so.5.3 when ldd says it's resolved. LOCAL_LDFLAGS2 seems to be
4516 # no longer used anyway. And the rpath logic isn't relative - so I have to
4517 # add the local and install lib-directories:
4519 # if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_ld_rpath" = yes ; then
4520 # LOCAL_LDFLAGS="-rpath `pwd`/lib"
4521 # LOCAL_LDFLAGS2="-rpath \$(libdir) $LOCAL_LDFLAGS"
4522 # cf_ld_rpath_opt="-rpath "
4523 # EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
4527 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
4528 MK_SHARED_LIB='$(LD) -Bshareable -o $@'
4529 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
4532 CC_SHARED_OPTS="$CC_SHARED_OPTS -DPIC"
4533 test "$cf_cv_ld_rpath" = yes && cf_ld_rpath_opt="-Wl,-rpath,"
4534 if test "$DFT_LWR_MODEL" = "shared" && test "$cf_cv_ld_rpath" = yes ; then
4535 LOCAL_LDFLAGS="-Wl,-rpath,`pwd`/lib"
4536 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
4537 EXTRA_LDFLAGS="-Wl,-rpath,\$(libdir) $EXTRA_LDFLAGS"
4538 MK_SHARED_LIB='$(CC) -shared -Wl,-soname,`basename $@ .$(REL_VERSION)`.$(ABI_VERSION) -o $@'
4539 if test "$cf_cv_shlib_version" = auto; then
4540 if test ! -f /usr/libexec/ld.elf_so; then
4541 cf_cv_shlib_version=rel
4545 MK_SHARED_LIB='$(LD) -Bshareable -o $@'
4549 # tested with OSF/1 V3.2 and 'cc'
4550 # tested with OSF/1 V3.2 and gcc 2.6.3 (but the c++ demo didn't
4551 # link with shared libs).
4552 MK_SHARED_LIB='$(LD) -set_version $(REL_VERSION):$(ABI_VERSION) -expect_unresolved "*" -shared -soname `basename $@`'
4555 MK_SHARED_LIB="${MK_SHARED_LIB} -msym"
4558 MK_SHARED_LIB="${MK_SHARED_LIB}"' -o $@'
4559 if test "$DFT_LWR_MODEL" = "shared" ; then
4560 LOCAL_LDFLAGS="-Wl,-rpath,`pwd`/lib"
4561 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
4563 if test "$cf_cv_ld_rpath" = yes ; then
4564 cf_ld_rpath_opt="-rpath"
4565 # EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
4567 cf_cv_rm_so_locs=yes
4569 sco3.2v5*) # (also uw2* and UW7) hops 13-Apr-98
4570 # tested with osr5.0.5
4571 if test "$GCC" != yes; then
4572 CC_SHARED_OPTS='-belf -KPIC'
4574 MK_SHARED_LIB='$(LD) -dy -G -h `basename $@ .$(REL_VERSION)`.$(ABI_VERSION) -o $@'
4575 if test "$cf_cv_ld_rpath" = yes ; then
4576 # only way is to set LD_RUN_PATH but no switch for it
4579 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
4580 LINK_PROGS='LD_RUN_PATH=$(libdir)'
4581 LINK_TESTS='Pwd=`pwd`;LD_RUN_PATH=`dirname $${Pwd}`/lib'
4584 # tested with SunOS 4.1.1 and gcc 2.7.0
4585 if test "$GCC" != yes; then
4586 CC_SHARED_OPTS='-KPIC'
4588 MK_SHARED_LIB='$(LD) -assert pure-text -o $@'
4589 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
4592 # tested with SunOS 5.5.1 (solaris 2.5.1) and gcc 2.7.2
4593 if test "$GCC" != yes; then
4594 CC_SHARED_OPTS='-KPIC'
4596 MK_SHARED_LIB='$(LD) -dy -G -h `basename $@ .$(REL_VERSION)`.$(ABI_VERSION) -o $@'
4597 if test "$DFT_LWR_MODEL" = "shared" ; then
4598 LOCAL_LDFLAGS="-R `pwd`/lib:\$(libdir)"
4599 LOCAL_LDFLAGS2="$LOCAL_LDFLAGS"
4601 if test "$cf_cv_ld_rpath" = yes ; then
4602 cf_ld_rpath_opt="-R"
4603 EXTRA_LDFLAGS="$LOCAL_LDFLAGS $EXTRA_LDFLAGS"
4605 test "$cf_cv_shlib_version" = auto && cf_cv_shlib_version=rel
4608 # tested with UnixWare 7.1.0 (gcc 2.95.2 and cc)
4609 if test "$GCC" != yes; then
4610 CC_SHARED_OPTS='-KPIC'
4612 MK_SHARED_LIB='$(LD) -d y -G -o $@'
4615 CC_SHARED_OPTS='unknown'
4616 MK_SHARED_LIB='echo unknown'
4620 # This works if the last tokens in $MK_SHARED_LIB are the -o target.
4621 case "$cf_cv_shlib_version" in #(vi
4623 case "$MK_SHARED_LIB" in #(vi
4625 test "$cf_cv_do_symlinks" = no && cf_cv_do_symlinks=yes
4628 { echo "$as_me:4628: WARNING: ignored --with-shlib-version" >&5
4629 echo "$as_me: WARNING: ignored --with-shlib-version" >&2;}
4635 if test -n "$cf_ld_rpath_opt" ; then
4636 echo "$as_me:4636: checking if we need a space after rpath option" >&5
4637 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
4638 cf_save_LIBS="$LIBS"
4639 LIBS="$LIBS ${cf_ld_rpath_opt}$libdir"
4640 cat >conftest.$ac_ext <<_ACEOF
4641 #line 4641 "configure"
4642 #include "confdefs.h"
4652 rm -f conftest.$ac_objext conftest$ac_exeext
4653 if { (eval echo "$as_me:4653: \"$ac_link\"") >&5
4654 (eval $ac_link) 2>&5
4656 echo "$as_me:4656: \$? = $ac_status" >&5
4657 (exit $ac_status); } &&
4658 { ac_try='test -s conftest$ac_exeext'
4659 { (eval echo "$as_me:4659: \"$ac_try\"") >&5
4662 echo "$as_me:4662: \$? = $ac_status" >&5
4663 (exit $ac_status); }; }; then
4666 echo "$as_me: failed program was:" >&5
4667 cat conftest.$ac_ext >&5
4670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4671 LIBS="$cf_save_LIBS"
4672 echo "$as_me:4672: result: $cf_rpath_space" >&5
4673 echo "${ECHO_T}$cf_rpath_space" >&6
4674 test "$cf_rpath_space" = yes && cf_ld_rpath_opt="$cf_ld_rpath_opt "
4675 MK_SHARED_LIB="$MK_SHARED_LIB $cf_ld_rpath_opt\$(libdir)"
4678 if test "$CC_SHARED_OPTS" = "unknown"; then
4679 for model in $cf_list_models; do
4680 if test "$model" = "shared"; then
4681 { { echo "$as_me:4681: error: Shared libraries are not supported in this version" >&5
4682 echo "$as_me: error: Shared libraries are not supported in this version" >&2;}
4683 { (exit 1); exit 1; }; }
4688 ###############################################################################
4690 ### use option --disable-overwrite to leave out the link to -lcurses
4691 echo "$as_me:4691: checking if you wish to install ncurses overwriting curses" >&5
4692 echo $ECHO_N "checking if you wish to install ncurses overwriting curses... $ECHO_C" >&6
4694 # Check whether --enable-overwrite or --disable-overwrite was given.
4695 if test "${enable_overwrite+set}" = set; then
4696 enableval="$enable_overwrite"
4697 with_overwrite=$enableval
4699 if test "$prefix" = "/usr" ; then with_overwrite=yes; else with_overwrite=no; fi
4701 echo "$as_me:4701: result: $with_overwrite" >&5
4702 echo "${ECHO_T}$with_overwrite" >&6
4704 echo "$as_me:4704: checking if external terminfo-database is used" >&5
4705 echo $ECHO_N "checking if external terminfo-database is used... $ECHO_C" >&6
4707 # Check whether --enable-database or --disable-database was given.
4708 if test "${enable_database+set}" = set; then
4709 enableval="$enable_database"
4710 use_database=$enableval
4714 echo "$as_me:4714: result: $use_database" >&5
4715 echo "${ECHO_T}$use_database" >&6
4717 case $host_os in #(vi
4719 TERMINFO_SRC='${top_srcdir}/misc/emx.src'
4722 TERMINFO_SRC='${top_srcdir}/misc/terminfo.src'
4726 case $cf_cv_system_name in
4727 os2*) PATHSEP=';' ;;
4731 if test "$use_database" != no ; then
4732 cat >>confdefs.h <<\EOF
4733 #define USE_DATABASE 1
4736 echo "$as_me:4736: checking which terminfo source-file will be installed" >&5
4737 echo $ECHO_N "checking which terminfo source-file will be installed... $ECHO_C" >&6
4739 # Check whether --enable-database or --disable-database was given.
4740 if test "${enable_database+set}" = set; then
4741 enableval="$enable_database"
4742 TERMINFO_SRC=$withval
4744 echo "$as_me:4744: result: $TERMINFO_SRC" >&5
4745 echo "${ECHO_T}$TERMINFO_SRC" >&6
4748 echo "$as_me:4748: checking for list of fallback descriptions" >&5
4749 echo $ECHO_N "checking for list of fallback descriptions... $ECHO_C" >&6
4751 # Check whether --with-fallbacks or --without-fallbacks was given.
4752 if test "${with_fallbacks+set}" = set; then
4753 withval="$with_fallbacks"
4754 with_fallback=$withval
4758 echo "$as_me:4758: result: $with_fallback" >&5
4759 echo "${ECHO_T}$with_fallback" >&6
4760 FALLBACK_LIST=`echo "$with_fallback" | sed -e 's/,/ /g'`
4763 if test "$use_database" = no ; then
4764 TERMINFO="${datadir}/terminfo"
4768 echo "$as_me:4768: checking for list of terminfo directories" >&5
4769 echo $ECHO_N "checking for list of terminfo directories... $ECHO_C" >&6
4771 # Check whether --with-terminfo-dirs or --without-terminfo-dirs was given.
4772 if test "${with_terminfo_dirs+set}" = set; then
4773 withval="$with_terminfo_dirs"
4776 withval=${TERMINFO_DIRS-${datadir}/terminfo}
4778 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATHSEP}"
4780 for cf_src_path in $withval
4783 case ".$cf_src_path" in #(vi
4784 .\$\(*\)*|.\'*\'*) #(vi
4788 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4791 eval cf_src_path="$cf_src_path"
4792 case ".$cf_src_path" in #(vi
4794 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$ac_default_prefix%`
4799 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$ac_default_prefix%`
4802 { { echo "$as_me:4802: error: expected a pathname, not \"$cf_src_path\"" >&5
4803 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
4804 { (exit 1); exit 1; }; }
4808 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
4809 cf_dst_path="${cf_dst_path}${cf_src_path}"
4813 eval 'TERMINFO_DIRS="$cf_dst_path"'
4815 echo "$as_me:4815: result: $TERMINFO_DIRS" >&5
4816 echo "${ECHO_T}$TERMINFO_DIRS" >&6
4817 test -n "$TERMINFO_DIRS" && cat >>confdefs.h <<EOF
4818 #define TERMINFO_DIRS "$TERMINFO_DIRS"
4821 echo "$as_me:4821: checking for default terminfo directory" >&5
4822 echo $ECHO_N "checking for default terminfo directory... $ECHO_C" >&6
4824 # Check whether --with-default-terminfo-dir or --without-default-terminfo-dir was given.
4825 if test "${with_default_terminfo_dir+set}" = set; then
4826 withval="$with_default_terminfo_dir"
4829 withval="${TERMINFO-${datadir}/terminfo}"
4831 case ".$withval" in #(vi
4832 .\$\(*\)*|.\'*\'*) #(vi
4836 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4839 eval withval="$withval"
4840 case ".$withval" in #(vi
4842 withval=`echo $withval | sed -e s%NONE%$ac_default_prefix%`
4847 withval=`echo $withval | sed -e s%NONE%$ac_default_prefix%`
4850 { { echo "$as_me:4850: error: expected a pathname, not \"$withval\"" >&5
4851 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
4852 { (exit 1); exit 1; }; }
4856 eval TERMINFO="$withval"
4858 echo "$as_me:4858: result: $TERMINFO" >&5
4859 echo "${ECHO_T}$TERMINFO" >&6
4860 cat >>confdefs.h <<EOF
4861 #define TERMINFO "$TERMINFO"
4866 ### use option --disable-big-core to make tic run on small machines
4867 ### We need 4Mb, check if we can allocate 50% more than that.
4868 echo "$as_me:4868: checking if big-core option selected" >&5
4869 echo $ECHO_N "checking if big-core option selected... $ECHO_C" >&6
4871 # Check whether --enable-big-core or --disable-big-core was given.
4872 if test "${enable_big_core+set}" = set; then
4873 enableval="$enable_big_core"
4874 with_big_core=$enableval
4876 if test "$cross_compiling" = yes; then
4879 cat >conftest.$ac_ext <<_ACEOF
4880 #line 4880 "configure"
4881 #include "confdefs.h"
4886 unsigned long n = 6000000L;
4887 char *s = malloc(n);
4893 rm -f conftest$ac_exeext
4894 if { (eval echo "$as_me:4894: \"$ac_link\"") >&5
4895 (eval $ac_link) 2>&5
4897 echo "$as_me:4897: \$? = $ac_status" >&5
4898 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4899 { (eval echo "$as_me:4899: \"$ac_try\"") >&5
4902 echo "$as_me:4902: \$? = $ac_status" >&5
4903 (exit $ac_status); }; }; then
4906 echo "$as_me: program exited with status $ac_status" >&5
4907 echo "$as_me: failed program was:" >&5
4908 cat conftest.$ac_ext >&5
4911 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4914 echo "$as_me:4914: result: $with_big_core" >&5
4915 echo "${ECHO_T}$with_big_core" >&6
4916 test "$with_big_core" = "yes" && cat >>confdefs.h <<\EOF
4917 #define HAVE_BIG_CORE 1
4920 ### use option --enable-termcap to compile in the termcap fallback support
4921 echo "$as_me:4921: checking if you want termcap-fallback support" >&5
4922 echo $ECHO_N "checking if you want termcap-fallback support... $ECHO_C" >&6
4924 # Check whether --enable-termcap or --disable-termcap was given.
4925 if test "${enable_termcap+set}" = set; then
4926 enableval="$enable_termcap"
4927 with_termcap=$enableval
4931 echo "$as_me:4931: result: $with_termcap" >&5
4932 echo "${ECHO_T}$with_termcap" >&6
4934 if test "$with_termcap" != "yes" ; then
4935 if test "$use_database" = no ; then
4936 if test -z "$with_fallback" ; then
4937 { { echo "$as_me:4937: error: You have disabled the database w/o specifying fallbacks" >&5
4938 echo "$as_me: error: You have disabled the database w/o specifying fallbacks" >&2;}
4939 { (exit 1); exit 1; }; }
4942 cat >>confdefs.h <<\EOF
4943 #define PURE_TERMINFO 1
4948 cat >>confdefs.h <<\EOF
4949 #define USE_TERMCAP 1
4952 echo "$as_me:4952: checking for list of termcap files" >&5
4953 echo $ECHO_N "checking for list of termcap files... $ECHO_C" >&6
4955 # Check whether --with-termpath or --without-termpath was given.
4956 if test "${with_termpath+set}" = set; then
4957 withval="$with_termpath"
4960 withval=${TERMPATH-/etc/termcap:/usr/share/misc/termcap}
4962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATHSEP}"
4964 for cf_src_path in $withval
4967 case ".$cf_src_path" in #(vi
4968 .\$\(*\)*|.\'*\'*) #(vi
4972 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4975 eval cf_src_path="$cf_src_path"
4976 case ".$cf_src_path" in #(vi
4978 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$ac_default_prefix%`
4983 cf_src_path=`echo $cf_src_path | sed -e s%NONE%$ac_default_prefix%`
4986 { { echo "$as_me:4986: error: expected a pathname, not \"$cf_src_path\"" >&5
4987 echo "$as_me: error: expected a pathname, not \"$cf_src_path\"" >&2;}
4988 { (exit 1); exit 1; }; }
4992 test -n "$cf_dst_path" && cf_dst_path="${cf_dst_path}:"
4993 cf_dst_path="${cf_dst_path}${cf_src_path}"
4997 eval 'TERMPATH="$cf_dst_path"'
4999 echo "$as_me:4999: result: $TERMPATH" >&5
5000 echo "${ECHO_T}$TERMPATH" >&6
5001 test -n "$TERMPATH" && cat >>confdefs.h <<EOF
5002 #define TERMPATH "$TERMPATH"
5005 ### use option --enable-getcap to use a hacked getcap for reading termcaps
5006 echo "$as_me:5006: checking if fast termcap-loader is needed" >&5
5007 echo $ECHO_N "checking if fast termcap-loader is needed... $ECHO_C" >&6
5009 # Check whether --enable-getcap or --disable-getcap was given.
5010 if test "${enable_getcap+set}" = set; then
5011 enableval="$enable_getcap"
5012 with_getcap=$enableval
5016 echo "$as_me:5016: result: $with_getcap" >&5
5017 echo "${ECHO_T}$with_getcap" >&6
5018 test "$with_getcap" = "yes" && cat >>confdefs.h <<\EOF
5019 #define USE_GETCAP 1
5022 echo "$as_me:5022: checking if translated termcaps will be cached in ~/.terminfo" >&5
5023 echo $ECHO_N "checking if translated termcaps will be cached in ~/.terminfo... $ECHO_C" >&6
5025 # Check whether --enable-getcap-cache or --disable-getcap-cache was given.
5026 if test "${enable_getcap_cache+set}" = set; then
5027 enableval="$enable_getcap_cache"
5028 with_getcap_cache=$enableval
5030 with_getcap_cache=no
5032 echo "$as_me:5032: result: $with_getcap_cache" >&5
5033 echo "${ECHO_T}$with_getcap_cache" >&6
5034 test "$with_getcap_cache" = "yes" && cat >>confdefs.h <<\EOF
5035 #define USE_GETCAP_CACHE 1
5040 ### Use option --disable-home-terminfo to completely remove ~/.terminfo
5041 echo "$as_me:5041: checking if ~/.terminfo is wanted" >&5
5042 echo $ECHO_N "checking if ~/.terminfo is wanted... $ECHO_C" >&6
5044 # Check whether --enable-home-terminfo or --disable-home-terminfo was given.
5045 if test "${enable_home_terminfo+set}" = set; then
5046 enableval="$enable_home_terminfo"
5047 with_home_terminfo=$enableval
5049 with_home_terminfo=yes
5051 test "$with_home_terminfo" = "yes" && cat >>confdefs.h <<\EOF
5052 #define USE_HOME_TERMINFO 1
5055 ### Use option --enable-symlinks to make tic use symlinks, not hard links
5056 ### to reduce storage requirements for the terminfo database.
5062 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5063 echo "$as_me:5063: checking for $ac_func" >&5
5064 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5065 if eval "test \"\${$as_ac_var+set}\" = set"; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5068 cat >conftest.$ac_ext <<_ACEOF
5069 #line 5069 "configure"
5070 #include "confdefs.h"
5071 /* System header to define __stub macros and hopefully few prototypes,
5072 which can conflict with char $ac_func (); below. */
5074 /* Override any gcc2 internal prototype to avoid an error. */
5078 /* We use char because int might match the return type of a gcc2
5079 builtin and then its argument prototype would still apply. */
5086 /* The GNU C library defines this for functions which it implements
5087 to always fail with ENOSYS. Some functions are actually named
5088 something starting with __ and the normal name is an alias. */
5089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5099 rm -f conftest.$ac_objext conftest$ac_exeext
5100 if { (eval echo "$as_me:5100: \"$ac_link\"") >&5
5101 (eval $ac_link) 2>&5
5103 echo "$as_me:5103: \$? = $ac_status" >&5
5104 (exit $ac_status); } &&
5105 { ac_try='test -s conftest$ac_exeext'
5106 { (eval echo "$as_me:5106: \"$ac_try\"") >&5
5109 echo "$as_me:5109: \$? = $ac_status" >&5
5110 (exit $ac_status); }; }; then
5111 eval "$as_ac_var=yes"
5113 echo "$as_me: failed program was:" >&5
5114 cat conftest.$ac_ext >&5
5115 eval "$as_ac_var=no"
5117 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5119 echo "$as_me:5119: result: `eval echo '${'$as_ac_var'}'`" >&5
5120 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5121 if test `eval echo '${'$as_ac_var'}'` = yes; then
5122 cat >>confdefs.h <<EOF
5123 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5129 if test "$cross_compiling" = yes ; then
5135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5136 echo "$as_me:5136: checking for $ac_func" >&5
5137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5138 if eval "test \"\${$as_ac_var+set}\" = set"; then
5139 echo $ECHO_N "(cached) $ECHO_C" >&6
5141 cat >conftest.$ac_ext <<_ACEOF
5142 #line 5142 "configure"
5143 #include "confdefs.h"
5144 /* System header to define __stub macros and hopefully few prototypes,
5145 which can conflict with char $ac_func (); below. */
5147 /* Override any gcc2 internal prototype to avoid an error. */
5151 /* We use char because int might match the return type of a gcc2
5152 builtin and then its argument prototype would still apply. */
5159 /* The GNU C library defines this for functions which it implements
5160 to always fail with ENOSYS. Some functions are actually named
5161 something starting with __ and the normal name is an alias. */
5162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5172 rm -f conftest.$ac_objext conftest$ac_exeext
5173 if { (eval echo "$as_me:5173: \"$ac_link\"") >&5
5174 (eval $ac_link) 2>&5
5176 echo "$as_me:5176: \$? = $ac_status" >&5
5177 (exit $ac_status); } &&
5178 { ac_try='test -s conftest$ac_exeext'
5179 { (eval echo "$as_me:5179: \"$ac_try\"") >&5
5182 echo "$as_me:5182: \$? = $ac_status" >&5
5183 (exit $ac_status); }; }; then
5184 eval "$as_ac_var=yes"
5186 echo "$as_me: failed program was:" >&5
5187 cat conftest.$ac_ext >&5
5188 eval "$as_ac_var=no"
5190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5192 echo "$as_me:5192: result: `eval echo '${'$as_ac_var'}'`" >&5
5193 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5194 if test `eval echo '${'$as_ac_var'}'` = yes; then
5195 cat >>confdefs.h <<EOF
5196 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5203 echo "$as_me:5203: checking if link/symlink functions work" >&5
5204 echo $ECHO_N "checking if link/symlink functions work... $ECHO_C" >&6
5205 if test "${cf_cv_link_funcs+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5210 for cf_func in link symlink ; do
5211 if test "$cross_compiling" = yes; then
5213 eval 'ac_cv_func_'$cf_func'=error'
5215 cat >conftest.$ac_ext <<_ACEOF
5216 #line 5216 "configure"
5217 #include "confdefs.h"
5219 #include <sys/types.h>
5220 #include <sys/stat.h>
5221 #ifdef HAVE_UNISTD_H
5227 char *src = "config.log";
5228 char *dst = "conftest.chk";
5233 fail = ($cf_func("config.log", "conftest.chk") < 0)
5234 || (stat(dst, &dst_sb) < 0)
5235 || (dst_sb.st_mtime != src_sb.st_mtime);
5245 rm -f conftest$ac_exeext
5246 if { (eval echo "$as_me:5246: \"$ac_link\"") >&5
5247 (eval $ac_link) 2>&5
5249 echo "$as_me:5249: \$? = $ac_status" >&5
5250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5251 { (eval echo "$as_me:5251: \"$ac_try\"") >&5
5254 echo "$as_me:5254: \$? = $ac_status" >&5
5255 (exit $ac_status); }; }; then
5257 cf_cv_link_funcs="$cf_cv_link_funcs $cf_func"
5258 eval 'ac_cv_func_'$cf_func'=yes'
5260 echo "$as_me: program exited with status $ac_status" >&5
5261 echo "$as_me: failed program was:" >&5
5262 cat conftest.$ac_ext >&5
5264 eval 'ac_cv_func_'$cf_func'=no'
5266 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5269 test -z "$cf_cv_link_funcs" && cf_cv_link_funcs=no
5272 echo "$as_me:5272: result: $cf_cv_link_funcs" >&5
5273 echo "${ECHO_T}$cf_cv_link_funcs" >&6
5274 test "$ac_cv_func_link" = yes && cat >>confdefs.h <<\EOF
5278 test "$ac_cv_func_symlink" = yes && cat >>confdefs.h <<\EOF
5279 #define HAVE_SYMLINK 1
5287 if test "$ac_cv_func_link" != yes ; then
5288 echo "$as_me:5288: checking if tic should use symbolic links" >&5
5289 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
5290 if test "$ac_cv_func_symlink" = yes ; then
5295 echo "$as_me:5295: result: $with_symlinks" >&5
5296 echo "${ECHO_T}$with_symlinks" >&6
5297 elif test "$ac_cv_func_symlink" != yes ; then
5298 echo "$as_me:5298: checking if tic should use hard links" >&5
5299 echo $ECHO_N "checking if tic should use hard links... $ECHO_C" >&6
5300 if test "$ac_cv_func_link" = yes ; then
5305 echo "$as_me:5305: result: $with_links" >&5
5306 echo "${ECHO_T}$with_links" >&6
5308 echo "$as_me:5308: checking if tic should use symbolic links" >&5
5309 echo $ECHO_N "checking if tic should use symbolic links... $ECHO_C" >&6
5311 # Check whether --enable-symlinks or --disable-symlinks was given.
5312 if test "${enable_symlinks+set}" = set; then
5313 enableval="$enable_symlinks"
5314 with_symlinks=$enableval
5318 echo "$as_me:5318: result: $with_symlinks" >&5
5319 echo "${ECHO_T}$with_symlinks" >&6
5322 test "$with_links" = yes && cat >>confdefs.h <<\EOF
5326 test "$with_symlinks" = yes && cat >>confdefs.h <<\EOF
5327 #define USE_SYMLINKS 1
5330 ### use option --enable-broken-linker to force on use of broken-linker support
5331 echo "$as_me:5331: checking if you want broken-linker support code" >&5
5332 echo $ECHO_N "checking if you want broken-linker support code... $ECHO_C" >&6
5334 # Check whether --enable-broken_linker or --disable-broken_linker was given.
5335 if test "${enable_broken_linker+set}" = set; then
5336 enableval="$enable_broken_linker"
5337 with_broken_linker=$enableval
5339 with_broken_linker=${BROKEN_LINKER-no}
5341 echo "$as_me:5341: result: $with_broken_linker" >&5
5342 echo "${ECHO_T}$with_broken_linker" >&6
5345 if test "$with_broken_linker" = yes ; then
5346 cat >>confdefs.h <<\EOF
5347 #define BROKEN_LINKER 1
5351 elif test "$DFT_LWR_MODEL" = shared ; then
5352 case $cf_cv_system_name in #(vi
5354 cat >>confdefs.h <<\EOF
5355 #define BROKEN_LINKER 1
5359 test -n "$verbose" && echo " cygwin linker is broken anyway" 1>&6
5365 ### use option --with-bool to override bool's type
5366 echo "$as_me:5366: checking for type of bool" >&5
5367 echo $ECHO_N "checking for type of bool... $ECHO_C" >&6
5369 # Check whether --with-bool or --without-bool was given.
5370 if test "${with_bool+set}" = set; then
5371 withval="$with_bool"
5372 NCURSES_BOOL="$withval"
5376 echo "$as_me:5376: result: $NCURSES_BOOL" >&5
5377 echo "${ECHO_T}$NCURSES_BOOL" >&6
5379 ### use option --with-ospeed to override ospeed's type
5380 echo "$as_me:5380: checking for type of ospeed" >&5
5381 echo $ECHO_N "checking for type of ospeed... $ECHO_C" >&6
5383 # Check whether --with-ospeed or --without-ospeed was given.
5384 if test "${with_ospeed+set}" = set; then
5385 withval="$with_ospeed"
5386 NCURSES_OSPEED="$withval"
5388 NCURSES_OSPEED=short
5390 echo "$as_me:5390: result: $NCURSES_OSPEED" >&5
5391 echo "${ECHO_T}$NCURSES_OSPEED" >&6
5393 ### use option --enable-bsdpad to have tputs process BSD-style prefix padding
5394 echo "$as_me:5394: checking if tputs should process BSD-style prefix padding" >&5
5395 echo $ECHO_N "checking if tputs should process BSD-style prefix padding... $ECHO_C" >&6
5397 # Check whether --enable-bsdpad or --disable-bsdpad was given.
5398 if test "${enable_bsdpad+set}" = set; then
5399 enableval="$enable_bsdpad"
5400 with_bsdpad=$enableval
5404 echo "$as_me:5404: result: $with_bsdpad" >&5
5405 echo "${ECHO_T}$with_bsdpad" >&6
5406 test "$with_bsdpad" = yes && cat >>confdefs.h <<\EOF
5410 ### Enable compiling-in rcs id's
5411 echo "$as_me:5411: checking if RCS identifiers should be compiled-in" >&5
5412 echo $ECHO_N "checking if RCS identifiers should be compiled-in... $ECHO_C" >&6
5414 # Check whether --with-rcs-ids or --without-rcs-ids was given.
5415 if test "${with_rcs_ids+set}" = set; then
5416 withval="$with_rcs_ids"
5417 with_rcs_ids=$withval
5421 echo "$as_me:5421: result: $with_rcs_ids" >&5
5422 echo "${ECHO_T}$with_rcs_ids" >&6
5423 test "$with_rcs_ids" = yes && cat >>confdefs.h <<\EOF
5424 #define USE_RCS_IDS 1
5427 ###############################################################################
5429 echo "$as_me:5429: checking format of man-pages" >&5
5430 echo $ECHO_N "checking format of man-pages... $ECHO_C" >&6
5432 # Check whether --with-manpage-format or --without-manpage-format was given.
5433 if test "${with_manpage_format+set}" = set; then
5434 withval="$with_manpage_format"
5435 MANPAGE_FORMAT=$withval
5437 MANPAGE_FORMAT=unknown
5440 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=unknown
5441 MANPAGE_FORMAT=`echo "$MANPAGE_FORMAT" | sed -e 's/,/ /g'`
5445 case $MANPAGE_FORMAT in
5447 if test -z "$MANPATH" ; then
5448 MANPATH="/usr/man:/usr/share/man"
5451 # look for the 'date' man-page (it's most likely to be installed!)
5457 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATHSEP}"
5458 for cf_dir in $MANPATH; do
5459 test -z "$cf_dir" && cf_dir=/usr/man
5460 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
5462 cf_test=`echo $cf_name | sed -e 's/*//'`
5463 if test "x$cf_test" = "x$cf_name" ; then
5466 *.gz) MANPAGE_FORMAT="$MANPAGE_FORMAT gzip";;
5467 *.Z) MANPAGE_FORMAT="$MANPAGE_FORMAT compress";;
5468 *.0) MANPAGE_FORMAT="$MANPAGE_FORMAT BSDI";;
5469 *) MANPAGE_FORMAT="$MANPAGE_FORMAT normal";;
5483 # if we found a match in either man* or cat*, stop looking
5484 if test -n "$MANPAGE_FORMAT" ; then
5486 test "$cf_preform" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT formatted"
5487 test "$cf_catonly" = yes && MANPAGE_FORMAT="$MANPAGE_FORMAT catonly"
5493 test $cf_found=yes && break
5496 # only check the first directory in $MANPATH where we find manpages
5497 if test -n "$MANPAGE_FORMAT" ; then
5501 # if we did not find the example, just assume it is normal
5502 test -z "$MANPAGE_FORMAT" && MANPAGE_FORMAT=normal
5506 for cf_option in $MANPAGE_FORMAT; do
5507 case $cf_option in #(vi
5508 gzip|compress|BSDI|normal|formatted|catonly)
5511 cf_unknown="$cf_unknown $cf_option"
5518 echo "$as_me:5518: result: $MANPAGE_FORMAT" >&5
5519 echo "${ECHO_T}$MANPAGE_FORMAT" >&6
5520 if test -n "$cf_unknown" ; then
5521 { echo "$as_me:5521: WARNING: Unexpected manpage-format $cf_unknown" >&5
5522 echo "$as_me: WARNING: Unexpected manpage-format $cf_unknown" >&2;}
5525 echo "$as_me:5525: checking for manpage renaming" >&5
5526 echo $ECHO_N "checking for manpage renaming... $ECHO_C" >&6
5528 # Check whether --with-manpage-renames or --without-manpage-renames was given.
5529 if test "${with_manpage_renames+set}" = set; then
5530 withval="$with_manpage_renames"
5531 MANPAGE_RENAMES=$withval
5536 case ".$MANPAGE_RENAMES" in #(vi
5540 # Debian 'man' program?
5541 if test -f /etc/debian_version ; then
5542 MANPAGE_RENAMES=`cd $srcdir && pwd`/man/man_db.renames
5549 if test "$MANPAGE_RENAMES" != no ; then
5550 if test -f $srcdir/man/$MANPAGE_RENAMES ; then
5551 MANPAGE_RENAMES=`cd $srcdir/man && pwd`/$MANPAGE_RENAMES
5552 elif test ! -f $MANPAGE_RENAMES ; then
5553 { { echo "$as_me:5553: error: not a filename: $MANPAGE_RENAMES" >&5
5554 echo "$as_me: error: not a filename: $MANPAGE_RENAMES" >&2;}
5555 { (exit 1); exit 1; }; }
5558 test ! -d man && mkdir man
5560 # Construct a sed-script to perform renaming within man-pages
5561 if test -n "$MANPAGE_RENAMES" ; then
5562 test ! -d man && mkdir man
5563 sh $srcdir/man/make_sed.sh $MANPAGE_RENAMES >man/edit_man.sed
5567 echo "$as_me:5567: result: $MANPAGE_RENAMES" >&5
5568 echo "${ECHO_T}$MANPAGE_RENAMES" >&6
5570 echo "$as_me:5570: checking if manpage aliases will be installed" >&5
5571 echo $ECHO_N "checking if manpage aliases will be installed... $ECHO_C" >&6
5573 # Check whether --with-manpage-aliases or --without-manpage-aliases was given.
5574 if test "${with_manpage_aliases+set}" = set; then
5575 withval="$with_manpage_aliases"
5576 MANPAGE_ALIASES=$withval
5581 echo "$as_me:5581: result: $MANPAGE_ALIASES" >&5
5582 echo "${ECHO_T}$MANPAGE_ALIASES" >&6
5584 if test "$LN_S" = "ln -s"; then
5591 if test "$MANPAGE_ALIASES" = yes ; then
5592 echo "$as_me:5592: checking if manpage symlinks should be used" >&5
5593 echo $ECHO_N "checking if manpage symlinks should be used... $ECHO_C" >&6
5595 # Check whether --with-manpage-symlinks or --without-manpage-symlinks was given.
5596 if test "${with_manpage_symlinks+set}" = set; then
5597 withval="$with_manpage_symlinks"
5598 MANPAGE_SYMLINKS=$withval
5600 MANPAGE_SYMLINKS=$cf_use_symlinks
5603 if test "$$cf_use_symlinks" = no; then
5604 if test "$MANPAGE_SYMLINKS" = yes ; then
5605 { echo "$as_me:5605: WARNING: cannot make symlinks" >&5
5606 echo "$as_me: WARNING: cannot make symlinks" >&2;}
5611 echo "$as_me:5611: result: $MANPAGE_SYMLINKS" >&5
5612 echo "${ECHO_T}$MANPAGE_SYMLINKS" >&6
5615 echo "$as_me:5615: checking for manpage tbl" >&5
5616 echo $ECHO_N "checking for manpage tbl... $ECHO_C" >&6
5618 # Check whether --with-manpage-tbl or --without-manpage-tbl was given.
5619 if test "${with_manpage_tbl+set}" = set; then
5620 withval="$with_manpage_tbl"
5621 MANPAGE_TBL=$withval
5626 echo "$as_me:5626: result: $MANPAGE_TBL" >&5
5627 echo "${ECHO_T}$MANPAGE_TBL" >&6
5629 if test "$prefix" = "NONE" ; then
5630 cf_prefix="$ac_default_prefix"
5635 case "$MANPAGE_FORMAT" in # (vi
5650 test ! -d man && mkdir man
5654 case "$MANPAGE_FORMAT" in #(vi
5657 cf_compress=compress
5665 cf_edit_man=man/edit_man.sh
5667 cat >$cf_edit_man <<CF_EOF
5669 # this script is generated by the configure-script CF_MAN_PAGES macro.
5672 NCURSES_OSPEED="$NCURSES_OSPEED"
5673 TERMINFO="$TERMINFO"
5674 MKDIRS="sh `cd $srcdir && pwd`/mkinstalldirs"
5676 INSTALL_DATA="$INSTALL_DATA"
5677 transform="$program_transform_name"
5679 TMP=\${TMPDIR-/tmp}/man\$\$
5680 trap "rm -f \$TMP" 0 1 2 5 15
5694 if test "\$form" = normal ; then
5695 if test "$cf_format" = yes ; then
5696 if test "$cf_inboth" = no ; then
5697 sh \$0 format \$verb \$mandir \$srcdir \$*
5701 cf_subdir=\$mandir/man
5702 cf_tables=$MANPAGE_TBL
5704 cf_subdir=\$mandir/cat
5708 # process the list of source-files
5711 *.orig|*.rej) ;; #(vi
5713 section=\`expr "\$i" : '.*\\.\\([0-9]\\)[xm]*'\`;
5714 if test \$verb = installing ; then
5715 if test ! -d \$cf_subdir\${section} ; then
5716 \$MKDIRS \$cf_subdir\$section
5720 source=\`basename \$i\`
5722 test ! -f \$inalias && inalias="\$srcdir/\$inalias"
5723 if test ! -f \$inalias ; then
5724 echo .. skipped \$source
5729 if test "$MANPAGE_ALIASES" != no ; then
5730 cat >>$cf_edit_man <<CF_EOF
5731 aliases=\`sed -f \$srcdir/manlinks.sed \$inalias | sort -u\`
5735 if test "$MANPAGE_RENAMES" = no ; then
5736 cat >>$cf_edit_man <<CF_EOF
5737 # perform program transformations for section 1 man pages
5738 if test \$section = 1 ; then
5739 target=\$cf_subdir\${section}/\`echo \$source|sed "\${transform}"\`
5741 target=\$cf_subdir\${section}/\$source
5745 cat >>$cf_edit_man <<CF_EOF
5746 target=\`grep "^\$source" $MANPAGE_RENAMES | $AWK '{print \$2}'\`
5747 if test -z "\$target" ; then
5748 echo '? missing rename for '\$source
5751 target="\$cf_subdir\${section}/\${target}"
5755 # replace variables in man page
5757 for cf_name in captoinfo clear infocmp infotocap tic toe tput
5759 cat >>$cf_edit_man <<CF_EOF
5760 prog_$cf_name=\`echo $cf_name|sed "\${transform}"\`
5764 cat >>$cf_edit_man <<CF_EOF
5765 sed -e "s,@DATADIR@,\$datadir," \\
5766 -e "s,@TERMINFO@,\$TERMINFO," \\
5767 -e "s,@NCURSES_OSPEED@,\$NCURSES_OSPEED," \\
5770 for cf_name in captoinfo clear infocmp infotocap tic toe tput
5772 cf_NAME=`echo "$cf_name" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5773 cat >>$cf_edit_man <<CF_EOF
5774 -e "s,@$cf_NAME@,\$prog_$cf_name," \\
5778 if test -f $MANPAGE_RENAMES ; then
5779 cat >>$cf_edit_man <<CF_EOF
5780 < \$i | sed -f $srcdir/edit_man.sed >\$TMP
5783 cat >>$cf_edit_man <<CF_EOF
5788 cat >>$cf_edit_man <<CF_EOF
5789 if test \$cf_tables = yes ; then
5790 tbl \$TMP >\$TMP.out
5795 if test $with_curses_h != yes ; then
5796 cat >>$cf_edit_man <<CF_EOF
5797 sed -e "/\#[ ]*include/s,curses.h,ncurses.h," < \$TMP >\$TMP.out
5802 cat >>$cf_edit_man <<CF_EOF
5803 if test \$form = format ; then
5804 nroff -man \$TMP >\$TMP.out
5809 if test -n "$cf_compress" ; then
5810 cat >>$cf_edit_man <<CF_EOF
5811 if test \$verb = installing ; then
5812 if ( $cf_compress -f \$TMP )
5814 mv \$TMP.$cf_so_strip \$TMP
5817 target="\$target.$cf_so_strip"
5821 case "$MANPAGE_FORMAT" in #(vi
5823 cat >>$cf_edit_man <<CF_EOF
5824 if test \$form = format ; then
5825 # BSDI installs only .0 suffixes in the cat directories
5826 target="\`echo \$target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
5832 cat >>$cf_edit_man <<CF_EOF
5833 suffix=\`basename \$target | sed -e 's%^[^.]*%%'\`
5834 if test \$verb = installing ; then
5835 echo \$verb \$target
5836 \$INSTALL_DATA \$TMP \$target
5837 test -n "\$aliases" && (
5838 cd \$cf_subdir\${section} && (
5839 source=\`echo \$target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
5840 test -n "$cf_so_strip" && source=\`echo \$source |sed -e 's%\.$cf_so_strip\$%%'\`
5841 target=\`basename \$target\`
5842 for cf_alias in \$aliases
5844 if test \$section = 1 ; then
5845 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
5848 if test "$MANPAGE_SYMLINKS" = yes ; then
5849 if test -f \$cf_alias\${suffix} ; then
5850 if ( cmp -s \$target \$cf_alias\${suffix} )
5855 echo .. \$verb alias \$cf_alias\${suffix}
5856 rm -f \$cf_alias\${suffix}
5857 $LN_S \$target \$cf_alias\${suffix}
5858 elif test "\$target" != "\$cf_alias\${suffix}" ; then
5859 echo ".so \$source" >\$TMP
5861 if test -n "$cf_compress" ; then
5862 cat >>$cf_edit_man <<CF_EOF
5863 if test -n "$cf_so_strip" ; then
5864 $cf_compress -f \$TMP
5865 mv \$TMP.$cf_so_strip \$TMP
5869 cat >>$cf_edit_man <<CF_EOF
5870 echo .. \$verb alias \$cf_alias\${suffix}
5871 rm -f \$cf_alias\${suffix}
5872 \$INSTALL_DATA \$TMP \$cf_alias\${suffix}
5877 elif test \$verb = removing ; then
5878 echo \$verb \$target
5880 test -n "\$aliases" && (
5881 cd \$cf_subdir\${section} && (
5882 for cf_alias in \$aliases
5884 if test \$section = 1 ; then
5885 cf_alias=\`echo \$cf_alias|sed "\${transform}"\`
5888 echo .. \$verb alias \$cf_alias\${suffix}
5889 rm -f \$cf_alias\${suffix}
5901 if test $cf_inboth = yes ; then
5902 if test \$form != format ; then
5903 sh \$0 format \$verb \$mandir \$srcdir \$*
5909 chmod 755 $cf_edit_man
5911 ###############################################################################
5913 ### Note that some functions (such as const) are normally disabled anyway.
5914 echo "$as_me:5914: checking if you want to build with function extensions" >&5
5915 echo $ECHO_N "checking if you want to build with function extensions... $ECHO_C" >&6
5917 # Check whether --enable-ext-funcs or --disable-ext-funcs was given.
5918 if test "${enable_ext_funcs+set}" = set; then
5919 enableval="$enable_ext_funcs"
5920 with_ext_funcs=$enableval
5924 echo "$as_me:5924: result: $with_ext_funcs" >&5
5925 echo "${ECHO_T}$with_ext_funcs" >&6
5926 if test "$with_ext_funcs" = yes ; then
5928 cat >>confdefs.h <<\EOF
5929 #define HAVE_CURSES_VERSION 1
5932 cat >>confdefs.h <<\EOF
5933 #define HAVE_HAS_KEY 1
5936 cat >>confdefs.h <<\EOF
5937 #define HAVE_RESIZETERM 1
5940 cat >>confdefs.h <<\EOF
5941 #define HAVE_RESIZE_TERM 1
5944 cat >>confdefs.h <<\EOF
5945 #define HAVE_USE_DEFAULT_COLORS 1
5948 cat >>confdefs.h <<\EOF
5949 #define HAVE_WRESIZE 1
5952 cat >>confdefs.h <<\EOF
5953 #define NCURSES_EXT_FUNCS 1
5960 ### use option --enable-const to turn on use of const beyond that in XSI.
5961 echo "$as_me:5961: checking for extended use of const keyword" >&5
5962 echo $ECHO_N "checking for extended use of const keyword... $ECHO_C" >&6
5964 # Check whether --enable-const or --disable-const was given.
5965 if test "${enable_const+set}" = set; then
5966 enableval="$enable_const"
5967 with_ext_const=$enableval
5971 echo "$as_me:5971: result: $with_ext_const" >&5
5972 echo "${ECHO_T}$with_ext_const" >&6
5973 NCURSES_CONST='/*nothing*/'
5974 if test "$with_ext_const" = yes ; then
5978 echo "$as_me:5978: checking if you want \$NCURSES_NO_PADDING code" >&5
5979 echo $ECHO_N "checking if you want \$NCURSES_NO_PADDING code... $ECHO_C" >&6
5981 # Check whether --enable-no-padding or --disable-no-padding was given.
5982 if test "${enable_no_padding+set}" = set; then
5983 enableval="$enable_no_padding"
5984 with_no_padding=$enableval
5986 with_no_padding=$with_ext_funcs
5988 echo "$as_me:5988: result: $with_no_padding" >&5
5989 echo "${ECHO_T}$with_no_padding" >&6
5990 test "$with_no_padding" = yes && cat >>confdefs.h <<\EOF
5991 #define NCURSES_NO_PADDING 1
5994 ### use option --enable-sigwinch to turn on use of SIGWINCH logic
5995 echo "$as_me:5995: checking if you want SIGWINCH handler" >&5
5996 echo $ECHO_N "checking if you want SIGWINCH handler... $ECHO_C" >&6
5998 # Check whether --enable-sigwinch or --disable-sigwinch was given.
5999 if test "${enable_sigwinch+set}" = set; then
6000 enableval="$enable_sigwinch"
6001 with_sigwinch=$enableval
6003 with_sigwinch=$with_ext_funcs
6005 echo "$as_me:6005: result: $with_sigwinch" >&5
6006 echo "${ECHO_T}$with_sigwinch" >&6
6007 test "$with_sigwinch" = yes && cat >>confdefs.h <<\EOF
6008 #define USE_SIGWINCH 1
6011 ### use option --enable-tcap-names to allow user to define new capabilities
6012 echo "$as_me:6012: checking if you want user-definable terminal capabilities like termcap" >&5
6013 echo $ECHO_N "checking if you want user-definable terminal capabilities like termcap... $ECHO_C" >&6
6015 # Check whether --enable-tcap-names or --disable-tcap-names was given.
6016 if test "${enable_tcap_names+set}" = set; then
6017 enableval="$enable_tcap_names"
6018 with_tcap_names=$enableval
6020 with_tcap_names=$with_ext_funcs
6022 echo "$as_me:6022: result: $with_tcap_names" >&5
6023 echo "${ECHO_T}$with_tcap_names" >&6
6025 test "$with_tcap_names" = yes && NCURSES_XNAMES=1
6027 ###############################################################################
6028 # These options are relatively safe to experiment with.
6030 echo "$as_me:6030: checking if you want all development code" >&5
6031 echo $ECHO_N "checking if you want all development code... $ECHO_C" >&6
6033 # Check whether --with-develop or --without-develop was given.
6034 if test "${with_develop+set}" = set; then
6035 withval="$with_develop"
6036 with_develop=$withval
6040 echo "$as_me:6040: result: $with_develop" >&5
6041 echo "${ECHO_T}$with_develop" >&6
6043 ### use option --enable-hard-tabs to turn on use of hard-tabs optimize
6044 echo "$as_me:6044: checking if you want hard-tabs code" >&5
6045 echo $ECHO_N "checking if you want hard-tabs code... $ECHO_C" >&6
6047 # Check whether --enable-hard-tabs or --disable-hard-tabs was given.
6048 if test "${enable_hard_tabs+set}" = set; then
6049 enableval="$enable_hard_tabs"
6050 with_hardtabs=$enableval
6052 with_hardtabs=$with_develop
6054 echo "$as_me:6054: result: $with_hardtabs" >&5
6055 echo "${ECHO_T}$with_hardtabs" >&6
6056 test "$with_hardtabs" = yes && cat >>confdefs.h <<\EOF
6057 #define USE_HARD_TABS 1
6060 echo "$as_me:6060: checking if you want to use restrict environment when running as root" >&5
6061 echo $ECHO_N "checking if you want to use restrict environment when running as root... $ECHO_C" >&6
6063 # Check whether --enable-root-environ or --disable-root-environ was given.
6064 if test "${enable_root_environ+set}" = set; then
6065 enableval="$enable_root_environ"
6066 with_root_environ=$enableval
6068 with_root_environ=yes
6070 echo "$as_me:6070: result: $with_root_environ" >&5
6071 echo "${ECHO_T}$with_root_environ" >&6
6072 test "$with_root_environ" = yes && cat >>confdefs.h <<\EOF
6073 #define USE_ROOT_ENVIRON 1
6076 ### use option --enable-xmc-glitch to turn on use of magic-cookie optimize
6077 echo "$as_me:6077: checking if you want limited support for xmc" >&5
6078 echo $ECHO_N "checking if you want limited support for xmc... $ECHO_C" >&6
6080 # Check whether --enable-xmc-glitch or --disable-xmc-glitch was given.
6081 if test "${enable_xmc_glitch+set}" = set; then
6082 enableval="$enable_xmc_glitch"
6083 with_xmc_glitch=$enableval
6085 with_xmc_glitch=$with_develop
6087 echo "$as_me:6087: result: $with_xmc_glitch" >&5
6088 echo "${ECHO_T}$with_xmc_glitch" >&6
6089 test "$with_xmc_glitch" = yes && cat >>confdefs.h <<\EOF
6090 #define USE_XMC_SUPPORT 1
6093 ###############################################################################
6094 # These are just experimental, probably should not be in a package:
6096 echo "$as_me:6096: checking if you do not want to assume colors are white-on-black" >&5
6097 echo $ECHO_N "checking if you do not want to assume colors are white-on-black... $ECHO_C" >&6
6099 # Check whether --enable-assumed-color or --disable-assumed-color was given.
6100 if test "${enable_assumed_color+set}" = set; then
6101 enableval="$enable_assumed_color"
6102 with_assumed_color=$enableval
6104 with_assumed_color=yes
6106 echo "$as_me:6106: result: $with_assumed_color" >&5
6107 echo "${ECHO_T}$with_assumed_color" >&6
6108 test "$with_assumed_color" = yes && cat >>confdefs.h <<\EOF
6109 #define USE_ASSUMED_COLOR 1
6112 ### use option --enable-hashmap to turn on use of hashmap scrolling logic
6113 echo "$as_me:6113: checking if you want hashmap scrolling-optimization code" >&5
6114 echo $ECHO_N "checking if you want hashmap scrolling-optimization code... $ECHO_C" >&6
6116 # Check whether --enable-hashmap or --disable-hashmap was given.
6117 if test "${enable_hashmap+set}" = set; then
6118 enableval="$enable_hashmap"
6119 with_hashmap=$enableval
6123 echo "$as_me:6123: result: $with_hashmap" >&5
6124 echo "${ECHO_T}$with_hashmap" >&6
6125 test "$with_hashmap" = yes && cat >>confdefs.h <<\EOF
6126 #define USE_HASHMAP 1
6129 ### use option --enable-colorfgbg to turn on use of $COLORFGBG environment
6130 echo "$as_me:6130: checking if you want colorfgbg code" >&5
6131 echo $ECHO_N "checking if you want colorfgbg code... $ECHO_C" >&6
6133 # Check whether --enable-colorfgbg or --disable-colorfgbg was given.
6134 if test "${enable_colorfgbg+set}" = set; then
6135 enableval="$enable_colorfgbg"
6136 with_colorfgbg=$enableval
6140 echo "$as_me:6140: result: $with_colorfgbg" >&5
6141 echo "${ECHO_T}$with_colorfgbg" >&6
6142 test "$with_colorfgbg" = yes && cat >>confdefs.h <<\EOF
6143 #define USE_COLORFGBG 1
6146 echo "$as_me:6146: checking if you want experimental safe-sprintf code" >&5
6147 echo $ECHO_N "checking if you want experimental safe-sprintf code... $ECHO_C" >&6
6149 # Check whether --enable-safe-sprintf or --disable-safe-sprintf was given.
6150 if test "${enable_safe_sprintf+set}" = set; then
6151 enableval="$enable_safe_sprintf"
6152 with_safe_sprintf=$enableval
6154 with_safe_sprintf=no
6156 echo "$as_me:6156: result: $with_safe_sprintf" >&5
6157 echo "${ECHO_T}$with_safe_sprintf" >&6
6158 test "$with_safe_sprintf" = yes && cat >>confdefs.h <<\EOF
6159 #define USE_SAFE_SPRINTF 1
6162 ### use option --disable-scroll-hints to turn off use of scroll-hints scrolling logic
6163 # when hashmap is used scroll hints are useless
6164 if test "$with_hashmap" = no ; then
6165 echo "$as_me:6165: checking if you want to experiment without scrolling-hints code" >&5
6166 echo $ECHO_N "checking if you want to experiment without scrolling-hints code... $ECHO_C" >&6
6168 # Check whether --enable-scroll-hints or --disable-scroll-hints was given.
6169 if test "${enable_scroll_hints+set}" = set; then
6170 enableval="$enable_scroll_hints"
6171 with_scroll_hints=$enableval
6173 with_scroll_hints=yes
6175 echo "$as_me:6175: result: $with_scroll_hints" >&5
6176 echo "${ECHO_T}$with_scroll_hints" >&6
6177 test "$with_scroll_hints" = yes && cat >>confdefs.h <<\EOF
6178 #define USE_SCROLL_HINTS 1
6183 ### use option --enable-widec to turn on use of wide-character support
6192 # Check to define _XOPEN_SOURCE "automatically"
6194 case $host_os in #(vi
6196 CPPFLAGS="$CPPFLAGS -D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600"
6199 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE"
6202 CPPFLAGS="$CPPFLAGS -D_SGI_SOURCE"
6206 echo "$as_me:6206: checking if we must define _GNU_SOURCE" >&5
6207 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
6208 if test "${cf_cv_gnu_source+set}" = set; then
6209 echo $ECHO_N "(cached) $ECHO_C" >&6
6212 cat >conftest.$ac_ext <<_ACEOF
6213 #line 6213 "configure"
6214 #include "confdefs.h"
6215 #include <sys/types.h>
6220 #ifndef _XOPEN_SOURCE
6227 rm -f conftest.$ac_objext
6228 if { (eval echo "$as_me:6228: \"$ac_compile\"") >&5
6229 (eval $ac_compile) 2>&5
6231 echo "$as_me:6231: \$? = $ac_status" >&5
6232 (exit $ac_status); } &&
6233 { ac_try='test -s conftest.$ac_objext'
6234 { (eval echo "$as_me:6234: \"$ac_try\"") >&5
6237 echo "$as_me:6237: \$? = $ac_status" >&5
6238 (exit $ac_status); }; }; then
6241 echo "$as_me: failed program was:" >&5
6242 cat conftest.$ac_ext >&5
6244 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
6245 cat >conftest.$ac_ext <<_ACEOF
6246 #line 6246 "configure"
6247 #include "confdefs.h"
6248 #include <sys/types.h>
6253 #ifdef _XOPEN_SOURCE
6260 rm -f conftest.$ac_objext
6261 if { (eval echo "$as_me:6261: \"$ac_compile\"") >&5
6262 (eval $ac_compile) 2>&5
6264 echo "$as_me:6264: \$? = $ac_status" >&5
6265 (exit $ac_status); } &&
6266 { ac_try='test -s conftest.$ac_objext'
6267 { (eval echo "$as_me:6267: \"$ac_try\"") >&5
6270 echo "$as_me:6270: \$? = $ac_status" >&5
6271 (exit $ac_status); }; }; then
6274 echo "$as_me: failed program was:" >&5
6275 cat conftest.$ac_ext >&5
6276 cf_cv_gnu_source=yes
6278 rm -f conftest.$ac_objext conftest.$ac_ext
6282 rm -f conftest.$ac_objext conftest.$ac_ext
6285 echo "$as_me:6285: result: $cf_cv_gnu_source" >&5
6286 echo "${ECHO_T}$cf_cv_gnu_source" >&6
6287 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
6291 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h>
6294 # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
6297 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
6300 CPPFLAGS="$CPPFLAGS -D_OSF_SOURCE"
6303 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
6306 CPPFLAGS="$CPPFLAGS -D__EXTENSIONS__"
6309 echo "$as_me:6309: checking if we should define _XOPEN_SOURCE" >&5
6310 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
6311 if test "${cf_cv_xopen_source+set}" = set; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
6315 cat >conftest.$ac_ext <<_ACEOF
6316 #line 6316 "configure"
6317 #include "confdefs.h"
6318 #include <sys/types.h>
6323 #ifndef _XOPEN_SOURCE
6330 rm -f conftest.$ac_objext
6331 if { (eval echo "$as_me:6331: \"$ac_compile\"") >&5
6332 (eval $ac_compile) 2>&5
6334 echo "$as_me:6334: \$? = $ac_status" >&5
6335 (exit $ac_status); } &&
6336 { ac_try='test -s conftest.$ac_objext'
6337 { (eval echo "$as_me:6337: \"$ac_try\"") >&5
6340 echo "$as_me:6340: \$? = $ac_status" >&5
6341 (exit $ac_status); }; }; then
6342 cf_cv_xopen_source=no
6344 echo "$as_me: failed program was:" >&5
6345 cat conftest.$ac_ext >&5
6347 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500"
6348 cat >conftest.$ac_ext <<_ACEOF
6349 #line 6349 "configure"
6350 #include "confdefs.h"
6351 #include <sys/types.h>
6356 #ifdef _XOPEN_SOURCE
6363 rm -f conftest.$ac_objext
6364 if { (eval echo "$as_me:6364: \"$ac_compile\"") >&5
6365 (eval $ac_compile) 2>&5
6367 echo "$as_me:6367: \$? = $ac_status" >&5
6368 (exit $ac_status); } &&
6369 { ac_try='test -s conftest.$ac_objext'
6370 { (eval echo "$as_me:6370: \"$ac_try\"") >&5
6373 echo "$as_me:6373: \$? = $ac_status" >&5
6374 (exit $ac_status); }; }; then
6375 cf_cv_xopen_source=no
6377 echo "$as_me: failed program was:" >&5
6378 cat conftest.$ac_ext >&5
6379 cf_cv_xopen_source=yes
6381 rm -f conftest.$ac_objext conftest.$ac_ext
6385 rm -f conftest.$ac_objext conftest.$ac_ext
6388 echo "$as_me:6388: result: $cf_cv_xopen_source" >&5
6389 echo "${ECHO_T}$cf_cv_xopen_source" >&6
6390 test "$cf_cv_xopen_source" = yes && CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500"
6392 # FreeBSD 5.x headers demand this...
6393 echo "$as_me:6393: checking if we should define _POSIX_C_SOURCE" >&5
6394 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
6395 if test "${cf_cv_xopen_source+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6399 cat >conftest.$ac_ext <<_ACEOF
6400 #line 6400 "configure"
6401 #include "confdefs.h"
6402 #include <sys/types.h>
6407 #ifndef _POSIX_C_SOURCE
6414 rm -f conftest.$ac_objext
6415 if { (eval echo "$as_me:6415: \"$ac_compile\"") >&5
6416 (eval $ac_compile) 2>&5
6418 echo "$as_me:6418: \$? = $ac_status" >&5
6419 (exit $ac_status); } &&
6420 { ac_try='test -s conftest.$ac_objext'
6421 { (eval echo "$as_me:6421: \"$ac_try\"") >&5
6424 echo "$as_me:6424: \$? = $ac_status" >&5
6425 (exit $ac_status); }; }; then
6426 cf_cv_xopen_source=no
6428 echo "$as_me: failed program was:" >&5
6429 cat conftest.$ac_ext >&5
6431 CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE"
6432 cat >conftest.$ac_ext <<_ACEOF
6433 #line 6433 "configure"
6434 #include "confdefs.h"
6435 #include <sys/types.h>
6440 #ifdef _POSIX_C_SOURCE
6447 rm -f conftest.$ac_objext
6448 if { (eval echo "$as_me:6448: \"$ac_compile\"") >&5
6449 (eval $ac_compile) 2>&5
6451 echo "$as_me:6451: \$? = $ac_status" >&5
6452 (exit $ac_status); } &&
6453 { ac_try='test -s conftest.$ac_objext'
6454 { (eval echo "$as_me:6454: \"$ac_try\"") >&5
6457 echo "$as_me:6457: \$? = $ac_status" >&5
6458 (exit $ac_status); }; }; then
6459 cf_cv_xopen_source=no
6461 echo "$as_me: failed program was:" >&5
6462 cat conftest.$ac_ext >&5
6463 cf_cv_xopen_source=yes
6465 rm -f conftest.$ac_objext conftest.$ac_ext
6469 rm -f conftest.$ac_objext conftest.$ac_ext
6472 echo "$as_me:6472: result: $cf_cv_xopen_source" >&5
6473 echo "${ECHO_T}$cf_cv_xopen_source" >&6
6474 test "$cf_cv_xopen_source" = yes && CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE"
6478 # use these variables to work around a defect in gcc's fixincludes.
6482 echo "$as_me:6482: checking if you want experimental wide-character code" >&5
6483 echo $ECHO_N "checking if you want experimental wide-character code... $ECHO_C" >&6
6485 # Check whether --enable-widec or --disable-widec was given.
6486 if test "${enable_widec+set}" = set; then
6487 enableval="$enable_widec"
6488 with_widec=$enableval
6492 echo "$as_me:6492: result: $with_widec" >&5
6493 echo "${ECHO_T}$with_widec" >&6
6494 if test "$with_widec" = yes ; then
6495 LIB_SUFFIX="w${LIB_SUFFIX}"
6496 cat >>confdefs.h <<\EOF
6497 #define USE_WIDEC_SUPPORT 1
6500 echo "$as_me:6500: checking if we must define _XOPEN_SOURCE" >&5
6501 echo $ECHO_N "checking if we must define _XOPEN_SOURCE... $ECHO_C" >&6
6502 cat >conftest.$ac_ext <<_ACEOF
6503 #line 6503 "configure"
6504 #include "confdefs.h"
6505 #include <sys/types.h>
6511 #ifndef _XOPEN_SOURCE
6518 rm -f conftest.$ac_objext
6519 if { (eval echo "$as_me:6519: \"$ac_compile\"") >&5
6520 (eval $ac_compile) 2>&5
6522 echo "$as_me:6522: \$? = $ac_status" >&5
6523 (exit $ac_status); } &&
6524 { ac_try='test -s conftest.$ac_objext'
6525 { (eval echo "$as_me:6525: \"$ac_try\"") >&5
6528 echo "$as_me:6528: \$? = $ac_status" >&5
6529 (exit $ac_status); }; }; then
6532 echo "$as_me: failed program was:" >&5
6533 cat conftest.$ac_ext >&5
6536 rm -f conftest.$ac_objext conftest.$ac_ext
6537 echo "$as_me:6537: result: $cf_result" >&5
6538 echo "${ECHO_T}$cf_result" >&6
6540 if test "$cf_result" = yes ; then
6541 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500"
6542 elif test "x500" != "x" ; then
6543 echo "$as_me:6543: checking checking for compatible value versus 500" >&5
6544 echo $ECHO_N "checking checking for compatible value versus 500... $ECHO_C" >&6
6545 cat >conftest.$ac_ext <<_ACEOF
6546 #line 6546 "configure"
6547 #include "confdefs.h"
6548 #include <sys/types.h>
6554 #if _XOPEN_SOURCE-500 < 0
6561 rm -f conftest.$ac_objext
6562 if { (eval echo "$as_me:6562: \"$ac_compile\"") >&5
6563 (eval $ac_compile) 2>&5
6565 echo "$as_me:6565: \$? = $ac_status" >&5
6566 (exit $ac_status); } &&
6567 { ac_try='test -s conftest.$ac_objext'
6568 { (eval echo "$as_me:6568: \"$ac_try\"") >&5
6571 echo "$as_me:6571: \$? = $ac_status" >&5
6572 (exit $ac_status); }; }; then
6575 echo "$as_me: failed program was:" >&5
6576 cat conftest.$ac_ext >&5
6579 rm -f conftest.$ac_objext conftest.$ac_ext
6580 echo "$as_me:6580: result: $cf_result" >&5
6581 echo "${ECHO_T}$cf_result" >&6
6582 if test "$cf_result" = no ; then
6583 # perhaps we can override it - try...
6584 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500"
6588 echo "$as_me:6588: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
6589 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
6590 cat >conftest.$ac_ext <<_ACEOF
6591 #line 6591 "configure"
6592 #include "confdefs.h"
6593 #include <sys/types.h>
6599 #ifndef _XOPEN_SOURCE_EXTENDED
6606 rm -f conftest.$ac_objext
6607 if { (eval echo "$as_me:6607: \"$ac_compile\"") >&5
6608 (eval $ac_compile) 2>&5
6610 echo "$as_me:6610: \$? = $ac_status" >&5
6611 (exit $ac_status); } &&
6612 { ac_try='test -s conftest.$ac_objext'
6613 { (eval echo "$as_me:6613: \"$ac_try\"") >&5
6616 echo "$as_me:6616: \$? = $ac_status" >&5
6617 (exit $ac_status); }; }; then
6620 echo "$as_me: failed program was:" >&5
6621 cat conftest.$ac_ext >&5
6624 rm -f conftest.$ac_objext conftest.$ac_ext
6625 echo "$as_me:6625: result: $cf_result" >&5
6626 echo "${ECHO_T}$cf_result" >&6
6628 if test "$cf_result" = yes ; then
6629 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
6630 elif test "x" != "x" ; then
6631 echo "$as_me:6631: checking checking for compatible value versus " >&5
6632 echo $ECHO_N "checking checking for compatible value versus ... $ECHO_C" >&6
6633 cat >conftest.$ac_ext <<_ACEOF
6634 #line 6634 "configure"
6635 #include "confdefs.h"
6636 #include <sys/types.h>
6642 #if _XOPEN_SOURCE_EXTENDED- < 0
6649 rm -f conftest.$ac_objext
6650 if { (eval echo "$as_me:6650: \"$ac_compile\"") >&5
6651 (eval $ac_compile) 2>&5
6653 echo "$as_me:6653: \$? = $ac_status" >&5
6654 (exit $ac_status); } &&
6655 { ac_try='test -s conftest.$ac_objext'
6656 { (eval echo "$as_me:6656: \"$ac_try\"") >&5
6659 echo "$as_me:6659: \$? = $ac_status" >&5
6660 (exit $ac_status); }; }; then
6663 echo "$as_me: failed program was:" >&5
6664 cat conftest.$ac_ext >&5
6667 rm -f conftest.$ac_objext conftest.$ac_ext
6668 echo "$as_me:6668: result: $cf_result" >&5
6669 echo "${ECHO_T}$cf_result" >&6
6670 if test "$cf_result" = no ; then
6671 # perhaps we can override it - try...
6672 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED="
6677 NCURSES_CH_T=cchar_t
6679 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc
6681 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6682 echo "$as_me:6682: checking for $ac_func" >&5
6683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6684 if eval "test \"\${$as_ac_var+set}\" = set"; then
6685 echo $ECHO_N "(cached) $ECHO_C" >&6
6687 cat >conftest.$ac_ext <<_ACEOF
6688 #line 6688 "configure"
6689 #include "confdefs.h"
6690 /* System header to define __stub macros and hopefully few prototypes,
6691 which can conflict with char $ac_func (); below. */
6693 /* Override any gcc2 internal prototype to avoid an error. */
6697 /* We use char because int might match the return type of a gcc2
6698 builtin and then its argument prototype would still apply. */
6705 /* The GNU C library defines this for functions which it implements
6706 to always fail with ENOSYS. Some functions are actually named
6707 something starting with __ and the normal name is an alias. */
6708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6718 rm -f conftest.$ac_objext conftest$ac_exeext
6719 if { (eval echo "$as_me:6719: \"$ac_link\"") >&5
6720 (eval $ac_link) 2>&5
6722 echo "$as_me:6722: \$? = $ac_status" >&5
6723 (exit $ac_status); } &&
6724 { ac_try='test -s conftest$ac_exeext'
6725 { (eval echo "$as_me:6725: \"$ac_try\"") >&5
6728 echo "$as_me:6728: \$? = $ac_status" >&5
6729 (exit $ac_status); }; }; then
6730 eval "$as_ac_var=yes"
6732 echo "$as_me: failed program was:" >&5
6733 cat conftest.$ac_ext >&5
6734 eval "$as_ac_var=no"
6736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6738 echo "$as_me:6738: result: `eval echo '${'$as_ac_var'}'`" >&5
6739 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6740 if test `eval echo '${'$as_ac_var'}'` = yes; then
6741 cat >>confdefs.h <<EOF
6742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6748 if test "$ac_cv_func_putwc" != yes ; then
6750 echo "$as_me:6750: checking for putwc in libutf8" >&5
6751 echo $ECHO_N "checking for putwc in libutf8... $ECHO_C" >&6
6752 if test "${cf_cv_libutf8+set}" = set; then
6753 echo $ECHO_N "(cached) $ECHO_C" >&6
6756 cf_save_LIBS="$LIBS"
6758 cat >conftest.$ac_ext <<_ACEOF
6759 #line 6759 "configure"
6760 #include "confdefs.h"
6762 #include <libutf8.h>
6771 rm -f conftest.$ac_objext conftest$ac_exeext
6772 if { (eval echo "$as_me:6772: \"$ac_link\"") >&5
6773 (eval $ac_link) 2>&5
6775 echo "$as_me:6775: \$? = $ac_status" >&5
6776 (exit $ac_status); } &&
6777 { ac_try='test -s conftest$ac_exeext'
6778 { (eval echo "$as_me:6778: \"$ac_try\"") >&5
6781 echo "$as_me:6781: \$? = $ac_status" >&5
6782 (exit $ac_status); }; }; then
6785 echo "$as_me: failed program was:" >&5
6786 cat conftest.$ac_ext >&5
6789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6790 LIBS="$cf_save_LIBS"
6793 echo "$as_me:6793: result: $cf_cv_libutf8" >&5
6794 echo "${ECHO_T}$cf_cv_libutf8" >&6
6796 if test "$cf_cv_libutf8" = yes ; then
6797 cat >>confdefs.h <<\EOF
6798 #define HAVE_LIBUTF8_H 1
6804 if test "$cf_cv_libutf8" = yes ; then
6809 # This is needed on Tru64 5.0 to declare mbstate_t
6810 echo "$as_me:6810: checking if we must include wchar.h to declare mbstate_t" >&5
6811 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
6812 if test "${cf_cv_mbstate_t+set}" = set; then
6813 echo $ECHO_N "(cached) $ECHO_C" >&6
6816 cat >conftest.$ac_ext <<_ACEOF
6817 #line 6817 "configure"
6818 #include "confdefs.h"
6823 #ifdef HAVE_LIBUTF8_H
6824 #include <libutf8.h>
6834 rm -f conftest.$ac_objext
6835 if { (eval echo "$as_me:6835: \"$ac_compile\"") >&5
6836 (eval $ac_compile) 2>&5
6838 echo "$as_me:6838: \$? = $ac_status" >&5
6839 (exit $ac_status); } &&
6840 { ac_try='test -s conftest.$ac_objext'
6841 { (eval echo "$as_me:6841: \"$ac_try\"") >&5
6844 echo "$as_me:6844: \$? = $ac_status" >&5
6845 (exit $ac_status); }; }; then
6848 echo "$as_me: failed program was:" >&5
6849 cat conftest.$ac_ext >&5
6850 cat >conftest.$ac_ext <<_ACEOF
6851 #line 6851 "configure"
6852 #include "confdefs.h"
6858 #ifdef HAVE_LIBUTF8_H
6859 #include <libutf8.h>
6869 rm -f conftest.$ac_objext
6870 if { (eval echo "$as_me:6870: \"$ac_compile\"") >&5
6871 (eval $ac_compile) 2>&5
6873 echo "$as_me:6873: \$? = $ac_status" >&5
6874 (exit $ac_status); } &&
6875 { ac_try='test -s conftest.$ac_objext'
6876 { (eval echo "$as_me:6876: \"$ac_try\"") >&5
6879 echo "$as_me:6879: \$? = $ac_status" >&5
6880 (exit $ac_status); }; }; then
6883 echo "$as_me: failed program was:" >&5
6884 cat conftest.$ac_ext >&5
6885 cf_cv_mbstate_t=unknown
6887 rm -f conftest.$ac_objext conftest.$ac_ext
6889 rm -f conftest.$ac_objext conftest.$ac_ext
6891 echo "$as_me:6891: result: $cf_cv_mbstate_t" >&5
6892 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
6894 if test "$cf_cv_mbstate_t" = yes ; then
6895 cat >>confdefs.h <<\EOF
6896 #define NEED_WCHAR_H 1
6902 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
6903 if test "$cf_cv_mbstate_t" = unknown ; then
6907 # This is needed on Tru64 5.0 to declare wchar_t
6908 echo "$as_me:6908: checking if we must include wchar.h to declare wchar_t" >&5
6909 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
6910 if test "${cf_cv_wchar_t+set}" = set; then
6911 echo $ECHO_N "(cached) $ECHO_C" >&6
6914 cat >conftest.$ac_ext <<_ACEOF
6915 #line 6915 "configure"
6916 #include "confdefs.h"
6921 #ifdef HAVE_LIBUTF8_H
6922 #include <libutf8.h>
6932 rm -f conftest.$ac_objext
6933 if { (eval echo "$as_me:6933: \"$ac_compile\"") >&5
6934 (eval $ac_compile) 2>&5
6936 echo "$as_me:6936: \$? = $ac_status" >&5
6937 (exit $ac_status); } &&
6938 { ac_try='test -s conftest.$ac_objext'
6939 { (eval echo "$as_me:6939: \"$ac_try\"") >&5
6942 echo "$as_me:6942: \$? = $ac_status" >&5
6943 (exit $ac_status); }; }; then
6946 echo "$as_me: failed program was:" >&5
6947 cat conftest.$ac_ext >&5
6948 cat >conftest.$ac_ext <<_ACEOF
6949 #line 6949 "configure"
6950 #include "confdefs.h"
6956 #ifdef HAVE_LIBUTF8_H
6957 #include <libutf8.h>
6967 rm -f conftest.$ac_objext
6968 if { (eval echo "$as_me:6968: \"$ac_compile\"") >&5
6969 (eval $ac_compile) 2>&5
6971 echo "$as_me:6971: \$? = $ac_status" >&5
6972 (exit $ac_status); } &&
6973 { ac_try='test -s conftest.$ac_objext'
6974 { (eval echo "$as_me:6974: \"$ac_try\"") >&5
6977 echo "$as_me:6977: \$? = $ac_status" >&5
6978 (exit $ac_status); }; }; then
6981 echo "$as_me: failed program was:" >&5
6982 cat conftest.$ac_ext >&5
6983 cf_cv_wchar_t=unknown
6985 rm -f conftest.$ac_objext conftest.$ac_ext
6987 rm -f conftest.$ac_objext conftest.$ac_ext
6989 echo "$as_me:6989: result: $cf_cv_wchar_t" >&5
6990 echo "${ECHO_T}$cf_cv_wchar_t" >&6
6992 if test "$cf_cv_wchar_t" = yes ; then
6993 cat >>confdefs.h <<\EOF
6994 #define NEED_WCHAR_H 1
7000 # if we do not find wchar_t in either place, use substitution to provide a fallback.
7001 if test "$cf_cv_wchar_t" = unknown ; then
7005 # if we find wchar_t in either place, use substitution to provide a fallback.
7006 if test "$cf_cv_wchar_t" != unknown ; then
7007 NCURSES_OK_WCHAR_T=1
7010 # This is needed on Tru64 5.0 to declare wint_t
7011 echo "$as_me:7011: checking if we must include wchar.h to declare wint_t" >&5
7012 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
7013 if test "${cf_cv_wint_t+set}" = set; then
7014 echo $ECHO_N "(cached) $ECHO_C" >&6
7017 cat >conftest.$ac_ext <<_ACEOF
7018 #line 7018 "configure"
7019 #include "confdefs.h"
7024 #ifdef HAVE_LIBUTF8_H
7025 #include <libutf8.h>
7035 rm -f conftest.$ac_objext
7036 if { (eval echo "$as_me:7036: \"$ac_compile\"") >&5
7037 (eval $ac_compile) 2>&5
7039 echo "$as_me:7039: \$? = $ac_status" >&5
7040 (exit $ac_status); } &&
7041 { ac_try='test -s conftest.$ac_objext'
7042 { (eval echo "$as_me:7042: \"$ac_try\"") >&5
7045 echo "$as_me:7045: \$? = $ac_status" >&5
7046 (exit $ac_status); }; }; then
7049 echo "$as_me: failed program was:" >&5
7050 cat conftest.$ac_ext >&5
7051 cat >conftest.$ac_ext <<_ACEOF
7052 #line 7052 "configure"
7053 #include "confdefs.h"
7059 #ifdef HAVE_LIBUTF8_H
7060 #include <libutf8.h>
7070 rm -f conftest.$ac_objext
7071 if { (eval echo "$as_me:7071: \"$ac_compile\"") >&5
7072 (eval $ac_compile) 2>&5
7074 echo "$as_me:7074: \$? = $ac_status" >&5
7075 (exit $ac_status); } &&
7076 { ac_try='test -s conftest.$ac_objext'
7077 { (eval echo "$as_me:7077: \"$ac_try\"") >&5
7080 echo "$as_me:7080: \$? = $ac_status" >&5
7081 (exit $ac_status); }; }; then
7084 echo "$as_me: failed program was:" >&5
7085 cat conftest.$ac_ext >&5
7086 cf_cv_wint_t=unknown
7088 rm -f conftest.$ac_objext conftest.$ac_ext
7090 rm -f conftest.$ac_objext conftest.$ac_ext
7092 echo "$as_me:7092: result: $cf_cv_wint_t" >&5
7093 echo "${ECHO_T}$cf_cv_wint_t" >&6
7095 if test "$cf_cv_wint_t" = yes ; then
7096 cat >>confdefs.h <<\EOF
7097 #define NEED_WCHAR_H 1
7103 # if we do not find wint_t in either place, use substitution to provide a fallback.
7104 if test "$cf_cv_wint_t" = unknown ; then
7108 # if we find wint_t in either place, use substitution to provide a fallback.
7109 if test "$cf_cv_wint_t" != unknown ; then
7115 echo "$as_me:7115: checking for terminal capabilities file" >&5
7116 echo $ECHO_N "checking for terminal capabilities file... $ECHO_C" >&6
7118 # Check whether --with-caps or --without-caps was given.
7119 if test "${with_caps+set}" = set; then
7120 withval="$with_caps"
7121 TERMINFO_CAPS=Caps.$withval
7125 test -f ${srcdir}/include/${TERMINFO_CAPS} || TERMINFO_CAPS=Caps
7126 echo "$as_me:7126: result: $TERMINFO_CAPS" >&5
7127 echo "${ECHO_T}$TERMINFO_CAPS" >&6
7129 ###############################################################################
7131 ### use option --disable-echo to suppress full display compiling commands
7132 echo "$as_me:7132: checking if you want to display full commands during build" >&5
7133 echo $ECHO_N "checking if you want to display full commands during build... $ECHO_C" >&6
7135 # Check whether --enable-echo or --disable-echo was given.
7136 if test "${enable_echo+set}" = set; then
7137 enableval="$enable_echo"
7138 with_echo=$enableval
7142 if test "$with_echo" = yes; then
7145 ECHO_LINK='@ echo linking $@ ... ;'
7146 test -n "$LIBTOOL" && LIBTOOL="$LIBTOOL --silent"
7148 echo "$as_me:7148: result: $with_echo" >&5
7149 echo "${ECHO_T}$with_echo" >&6
7151 ### use option --enable-warnings to turn on all gcc warnings
7152 echo "$as_me:7152: checking if you want to see compiler warnings" >&5
7153 echo $ECHO_N "checking if you want to see compiler warnings... $ECHO_C" >&6
7155 # Check whether --enable-warnings or --disable-warnings was given.
7156 if test "${enable_warnings+set}" = set; then
7157 enableval="$enable_warnings"
7158 with_warnings=$enableval
7160 echo "$as_me:7160: result: $with_warnings" >&5
7161 echo "${ECHO_T}$with_warnings" >&6
7163 if test -n "$with_warnings"; then
7164 ADAFLAGS="$ADAFLAGS -gnatg"
7166 if test "$GCC" = yes
7168 cat > conftest.$ac_ext <<EOF
7169 #line 7169 "configure"
7170 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
7172 { echo "$as_me:7172: checking for $CC warning options..." >&5
7173 echo "$as_me: checking for $CC warning options..." >&6;}
7174 cf_save_CFLAGS="$CFLAGS"
7175 EXTRA_CFLAGS="-W -Wall"
7177 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
7179 Wbad-function-cast \
7183 Wmissing-declarations \
7184 Wmissing-prototypes \
7188 Wstrict-prototypes \
7189 Wundef $cf_warn_CONST
7191 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
7192 if { (eval echo "$as_me:7192: \"$ac_compile\"") >&5
7193 (eval $ac_compile) 2>&5
7195 echo "$as_me:7195: \$? = $ac_status" >&5
7196 (exit $ac_status); }; then
7197 test -n "$verbose" && echo "$as_me:7197: result: ... -$cf_opt" >&5
7198 echo "${ECHO_T}... -$cf_opt" >&6
7199 case $cf_opt in #(vi
7201 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
7204 case $GCC_VERSION in
7206 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
7212 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
7216 CFLAGS="$cf_save_CFLAGS"
7221 if test "$GCC" = yes
7223 cat > conftest.i <<EOF
7225 #define GCC_PRINTF 0
7230 #ifndef GCC_NORETURN
7231 #define GCC_NORETURN /* nothing */
7234 #define GCC_UNUSED /* nothing */
7237 if test "$GCC" = yes
7239 { echo "$as_me:7239: checking for $CC __attribute__ directives..." >&5
7240 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
7241 cat > conftest.$ac_ext <<EOF
7242 #line 7242 "configure"
7243 #include "confdefs.h"
7244 #include "conftest.h"
7245 #include "conftest.i"
7247 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
7249 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
7252 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
7254 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
7256 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
7257 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
7258 extern void foo(void) GCC_NORETURN;
7259 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
7261 for cf_attribute in scanf printf unused noreturn
7264 CF_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7266 cf_directive="__attribute__(($cf_attribute))"
7267 echo "checking for $CC $cf_directive" 1>&5
7268 case $cf_attribute in
7270 cat >conftest.h <<EOF
7271 #define GCC_$CF_ATTRIBUTE 1
7275 cat >conftest.h <<EOF
7276 #define GCC_$CF_ATTRIBUTE $cf_directive
7280 if { (eval echo "$as_me:7280: \"$ac_compile\"") >&5
7281 (eval $ac_compile) 2>&5
7283 echo "$as_me:7283: \$? = $ac_status" >&5
7284 (exit $ac_status); }; then
7285 test -n "$verbose" && echo "$as_me:7285: result: ... $cf_attribute" >&5
7286 echo "${ECHO_T}... $cf_attribute" >&6
7287 cat conftest.h >>confdefs.h
7291 fgrep define conftest.i >>confdefs.h
7296 ### use option --enable-assertions to turn on generation of assertion code
7297 echo "$as_me:7297: checking if you want to enable runtime assertions" >&5
7298 echo $ECHO_N "checking if you want to enable runtime assertions... $ECHO_C" >&6
7300 # Check whether --enable-assertions or --disable-assertions was given.
7301 if test "${enable_assertions+set}" = set; then
7302 enableval="$enable_assertions"
7303 with_assertions=$enableval
7307 echo "$as_me:7307: result: $with_assertions" >&5
7308 echo "${ECHO_T}$with_assertions" >&6
7311 if test "$with_assertions" = no
7313 cat >>confdefs.h <<\EOF
7317 CPPFLAGS="$CPPFLAGS -DNDEBUG"
7319 ADAFLAGS="$ADAFLAGS -gnata"
7323 ### use option --disable-leaks to suppress "permanent" leaks, for testing
7325 # Check whether --enable-leaks or --disable-leaks was given.
7326 if test "${enable_leaks+set}" = set; then
7327 enableval="$enable_leaks"
7328 test "$enableval" = no && cat >>confdefs.h <<\EOF
7333 cat >>confdefs.h <<\EOF
7334 #define HAVE_NC_ALLOC_H 1
7337 ### use option --enable-expanded to generate certain macros as functions
7339 # Check whether --enable-expanded or --disable-expanded was given.
7340 if test "${enable_expanded+set}" = set; then
7341 enableval="$enable_expanded"
7342 test "$enableval" = yes && cat >>confdefs.h <<\EOF
7343 #define NCURSES_EXPANDED 1
7348 ### use option --disable-macros to suppress macros in favor of functions
7350 # Check whether --enable-macros or --disable-macros was given.
7351 if test "${enable_macros+set}" = set; then
7352 enableval="$enable_macros"
7353 test "$enableval" = no && cat >>confdefs.h <<\EOF
7354 #define NCURSES_NOMACROS 1
7359 # Normally we only add trace() to the debug-library. Allow this to be
7360 # extended to all models of the ncurses library:
7362 case "$CFLAGS $CPPFLAGS" in
7368 echo "$as_me:7368: checking whether to add trace feature to all models" >&5
7369 echo $ECHO_N "checking whether to add trace feature to all models... $ECHO_C" >&6
7371 # Check whether --with-trace or --without-trace was given.
7372 if test "${with_trace+set}" = set; then
7373 withval="$with_trace"
7374 cf_with_trace=$withval
7376 cf_with_trace=$cf_all_traces
7378 echo "$as_me:7378: result: $with_trace" >&5
7379 echo "${ECHO_T}$with_trace" >&6
7381 if test "$cf_with_trace" = yes ; then
7387 for cf_add_cflags in -DTRACE
7389 case $cf_add_cflags in #(vi
7390 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
7392 *$cf_add_cflags) #(vi
7395 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
7400 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
7405 if test -n "$cf_new_cflags" ; then
7407 CFLAGS="$CFLAGS $cf_new_cflags"
7410 if test -n "$cf_new_cppflags" ; then
7412 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
7420 ### Checks for libraries.
7421 echo "$as_me:7421: checking for gettimeofday" >&5
7422 echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6
7423 if test "${ac_cv_func_gettimeofday+set}" = set; then
7424 echo $ECHO_N "(cached) $ECHO_C" >&6
7426 cat >conftest.$ac_ext <<_ACEOF
7427 #line 7427 "configure"
7428 #include "confdefs.h"
7429 /* System header to define __stub macros and hopefully few prototypes,
7430 which can conflict with char gettimeofday (); below. */
7432 /* Override any gcc2 internal prototype to avoid an error. */
7436 /* We use char because int might match the return type of a gcc2
7437 builtin and then its argument prototype would still apply. */
7438 char gettimeofday ();
7444 /* The GNU C library defines this for functions which it implements
7445 to always fail with ENOSYS. Some functions are actually named
7446 something starting with __ and the normal name is an alias. */
7447 #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday)
7457 rm -f conftest.$ac_objext conftest$ac_exeext
7458 if { (eval echo "$as_me:7458: \"$ac_link\"") >&5
7459 (eval $ac_link) 2>&5
7461 echo "$as_me:7461: \$? = $ac_status" >&5
7462 (exit $ac_status); } &&
7463 { ac_try='test -s conftest$ac_exeext'
7464 { (eval echo "$as_me:7464: \"$ac_try\"") >&5
7467 echo "$as_me:7467: \$? = $ac_status" >&5
7468 (exit $ac_status); }; }; then
7469 ac_cv_func_gettimeofday=yes
7471 echo "$as_me: failed program was:" >&5
7472 cat conftest.$ac_ext >&5
7473 ac_cv_func_gettimeofday=no
7475 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7477 echo "$as_me:7477: result: $ac_cv_func_gettimeofday" >&5
7478 echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6
7479 if test $ac_cv_func_gettimeofday = yes; then
7480 cat >>confdefs.h <<\EOF
7481 #define HAVE_GETTIMEOFDAY 1
7486 echo "$as_me:7486: checking for gettimeofday in -lbsd" >&5
7487 echo $ECHO_N "checking for gettimeofday in -lbsd... $ECHO_C" >&6
7488 if test "${ac_cv_lib_bsd_gettimeofday+set}" = set; then
7489 echo $ECHO_N "(cached) $ECHO_C" >&6
7491 ac_check_lib_save_LIBS=$LIBS
7493 cat >conftest.$ac_ext <<_ACEOF
7494 #line 7494 "configure"
7495 #include "confdefs.h"
7497 /* Override any gcc2 internal prototype to avoid an error. */
7501 /* We use char because int might match the return type of a gcc2
7502 builtin and then its argument prototype would still apply. */
7503 char gettimeofday ();
7512 rm -f conftest.$ac_objext conftest$ac_exeext
7513 if { (eval echo "$as_me:7513: \"$ac_link\"") >&5
7514 (eval $ac_link) 2>&5
7516 echo "$as_me:7516: \$? = $ac_status" >&5
7517 (exit $ac_status); } &&
7518 { ac_try='test -s conftest$ac_exeext'
7519 { (eval echo "$as_me:7519: \"$ac_try\"") >&5
7522 echo "$as_me:7522: \$? = $ac_status" >&5
7523 (exit $ac_status); }; }; then
7524 ac_cv_lib_bsd_gettimeofday=yes
7526 echo "$as_me: failed program was:" >&5
7527 cat conftest.$ac_ext >&5
7528 ac_cv_lib_bsd_gettimeofday=no
7530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7531 LIBS=$ac_check_lib_save_LIBS
7533 echo "$as_me:7533: result: $ac_cv_lib_bsd_gettimeofday" >&5
7534 echo "${ECHO_T}$ac_cv_lib_bsd_gettimeofday" >&6
7535 if test $ac_cv_lib_bsd_gettimeofday = yes; then
7536 cat >>confdefs.h <<\EOF
7537 #define HAVE_GETTIMEOFDAY 1
7545 echo "$as_me:7545: checking if -lm needed for math functions" >&5
7546 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
7547 if test "${cf_cv_need_libm+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7551 cat >conftest.$ac_ext <<_ACEOF
7552 #line 7552 "configure"
7553 #include "confdefs.h"
7561 double x = rand(); printf("result = %g\n", sin(x))
7566 rm -f conftest.$ac_objext conftest$ac_exeext
7567 if { (eval echo "$as_me:7567: \"$ac_link\"") >&5
7568 (eval $ac_link) 2>&5
7570 echo "$as_me:7570: \$? = $ac_status" >&5
7571 (exit $ac_status); } &&
7572 { ac_try='test -s conftest$ac_exeext'
7573 { (eval echo "$as_me:7573: \"$ac_try\"") >&5
7576 echo "$as_me:7576: \$? = $ac_status" >&5
7577 (exit $ac_status); }; }; then
7580 echo "$as_me: failed program was:" >&5
7581 cat conftest.$ac_ext >&5
7584 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7586 echo "$as_me:7586: result: $cf_cv_need_libm" >&5
7587 echo "${ECHO_T}$cf_cv_need_libm" >&6
7588 if test "$cf_cv_need_libm" = yes
7593 ### Checks for header files.
7594 echo "$as_me:7594: checking for ANSI C header files" >&5
7595 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7596 if test "${ac_cv_header_stdc+set}" = set; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
7599 cat >conftest.$ac_ext <<_ACEOF
7600 #line 7600 "configure"
7601 #include "confdefs.h"
7608 if { (eval echo "$as_me:7608: \"$ac_cpp conftest.$ac_ext\"") >&5
7609 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7611 egrep -v '^ *\+' conftest.er1 >conftest.err
7613 cat conftest.err >&5
7614 echo "$as_me:7614: \$? = $ac_status" >&5
7615 (exit $ac_status); } >/dev/null; then
7616 if test -s conftest.err; then
7617 ac_cpp_err=$ac_c_preproc_warn_flag
7624 if test -z "$ac_cpp_err"; then
7625 ac_cv_header_stdc=yes
7627 echo "$as_me: failed program was:" >&5
7628 cat conftest.$ac_ext >&5
7629 ac_cv_header_stdc=no
7631 rm -f conftest.err conftest.$ac_ext
7633 if test $ac_cv_header_stdc = yes; then
7634 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7635 cat >conftest.$ac_ext <<_ACEOF
7636 #line 7636 "configure"
7637 #include "confdefs.h"
7641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7642 egrep "memchr" >/dev/null 2>&1; then
7645 ac_cv_header_stdc=no
7651 if test $ac_cv_header_stdc = yes; then
7652 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7653 cat >conftest.$ac_ext <<_ACEOF
7654 #line 7654 "configure"
7655 #include "confdefs.h"
7659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7660 egrep "free" >/dev/null 2>&1; then
7663 ac_cv_header_stdc=no
7669 if test $ac_cv_header_stdc = yes; then
7670 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7671 if test "$cross_compiling" = yes; then
7674 cat >conftest.$ac_ext <<_ACEOF
7675 #line 7675 "configure"
7676 #include "confdefs.h"
7678 #if ((' ' & 0x0FF) == 0x020)
7679 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7680 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7682 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
7683 || ('j' <= (c) && (c) <= 'r') \
7684 || ('s' <= (c) && (c) <= 'z'))
7685 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7688 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7693 for (i = 0; i < 256; i++)
7694 if (XOR (islower (i), ISLOWER (i))
7695 || toupper (i) != TOUPPER (i))
7700 rm -f conftest$ac_exeext
7701 if { (eval echo "$as_me:7701: \"$ac_link\"") >&5
7702 (eval $ac_link) 2>&5
7704 echo "$as_me:7704: \$? = $ac_status" >&5
7705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7706 { (eval echo "$as_me:7706: \"$ac_try\"") >&5
7709 echo "$as_me:7709: \$? = $ac_status" >&5
7710 (exit $ac_status); }; }; then
7713 echo "$as_me: program exited with status $ac_status" >&5
7714 echo "$as_me: failed program was:" >&5
7715 cat conftest.$ac_ext >&5
7716 ac_cv_header_stdc=no
7718 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7722 echo "$as_me:7722: result: $ac_cv_header_stdc" >&5
7723 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7724 if test $ac_cv_header_stdc = yes; then
7726 cat >>confdefs.h <<\EOF
7727 #define STDC_HEADERS 1
7733 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7734 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7735 echo "$as_me:7735: checking for $ac_hdr that defines DIR" >&5
7736 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
7737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7738 echo $ECHO_N "(cached) $ECHO_C" >&6
7740 cat >conftest.$ac_ext <<_ACEOF
7741 #line 7741 "configure"
7742 #include "confdefs.h"
7743 #include <sys/types.h>
7755 rm -f conftest.$ac_objext
7756 if { (eval echo "$as_me:7756: \"$ac_compile\"") >&5
7757 (eval $ac_compile) 2>&5
7759 echo "$as_me:7759: \$? = $ac_status" >&5
7760 (exit $ac_status); } &&
7761 { ac_try='test -s conftest.$ac_objext'
7762 { (eval echo "$as_me:7762: \"$ac_try\"") >&5
7765 echo "$as_me:7765: \$? = $ac_status" >&5
7766 (exit $ac_status); }; }; then
7767 eval "$as_ac_Header=yes"
7769 echo "$as_me: failed program was:" >&5
7770 cat conftest.$ac_ext >&5
7771 eval "$as_ac_Header=no"
7773 rm -f conftest.$ac_objext conftest.$ac_ext
7775 echo "$as_me:7775: result: `eval echo '${'$as_ac_Header'}'`" >&5
7776 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7778 cat >>confdefs.h <<EOF
7779 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7782 ac_header_dirent=$ac_hdr; break
7786 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7787 if test $ac_header_dirent = dirent.h; then
7788 echo "$as_me:7788: checking for opendir in -ldir" >&5
7789 echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
7790 if test "${ac_cv_lib_dir_opendir+set}" = set; then
7791 echo $ECHO_N "(cached) $ECHO_C" >&6
7793 ac_check_lib_save_LIBS=$LIBS
7795 cat >conftest.$ac_ext <<_ACEOF
7796 #line 7796 "configure"
7797 #include "confdefs.h"
7799 /* Override any gcc2 internal prototype to avoid an error. */
7803 /* We use char because int might match the return type of a gcc2
7804 builtin and then its argument prototype would still apply. */
7814 rm -f conftest.$ac_objext conftest$ac_exeext
7815 if { (eval echo "$as_me:7815: \"$ac_link\"") >&5
7816 (eval $ac_link) 2>&5
7818 echo "$as_me:7818: \$? = $ac_status" >&5
7819 (exit $ac_status); } &&
7820 { ac_try='test -s conftest$ac_exeext'
7821 { (eval echo "$as_me:7821: \"$ac_try\"") >&5
7824 echo "$as_me:7824: \$? = $ac_status" >&5
7825 (exit $ac_status); }; }; then
7826 ac_cv_lib_dir_opendir=yes
7828 echo "$as_me: failed program was:" >&5
7829 cat conftest.$ac_ext >&5
7830 ac_cv_lib_dir_opendir=no
7832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7833 LIBS=$ac_check_lib_save_LIBS
7835 echo "$as_me:7835: result: $ac_cv_lib_dir_opendir" >&5
7836 echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
7837 if test $ac_cv_lib_dir_opendir = yes; then
7842 echo "$as_me:7842: checking for opendir in -lx" >&5
7843 echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
7844 if test "${ac_cv_lib_x_opendir+set}" = set; then
7845 echo $ECHO_N "(cached) $ECHO_C" >&6
7847 ac_check_lib_save_LIBS=$LIBS
7849 cat >conftest.$ac_ext <<_ACEOF
7850 #line 7850 "configure"
7851 #include "confdefs.h"
7853 /* Override any gcc2 internal prototype to avoid an error. */
7857 /* We use char because int might match the return type of a gcc2
7858 builtin and then its argument prototype would still apply. */
7868 rm -f conftest.$ac_objext conftest$ac_exeext
7869 if { (eval echo "$as_me:7869: \"$ac_link\"") >&5
7870 (eval $ac_link) 2>&5
7872 echo "$as_me:7872: \$? = $ac_status" >&5
7873 (exit $ac_status); } &&
7874 { ac_try='test -s conftest$ac_exeext'
7875 { (eval echo "$as_me:7875: \"$ac_try\"") >&5
7878 echo "$as_me:7878: \$? = $ac_status" >&5
7879 (exit $ac_status); }; }; then
7880 ac_cv_lib_x_opendir=yes
7882 echo "$as_me: failed program was:" >&5
7883 cat conftest.$ac_ext >&5
7884 ac_cv_lib_x_opendir=no
7886 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7887 LIBS=$ac_check_lib_save_LIBS
7889 echo "$as_me:7889: result: $ac_cv_lib_x_opendir" >&5
7890 echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
7891 if test $ac_cv_lib_x_opendir = yes; then
7897 echo "$as_me:7897: checking whether time.h and sys/time.h may both be included" >&5
7898 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7899 if test "${ac_cv_header_time+set}" = set; then
7900 echo $ECHO_N "(cached) $ECHO_C" >&6
7902 cat >conftest.$ac_ext <<_ACEOF
7903 #line 7903 "configure"
7904 #include "confdefs.h"
7905 #include <sys/types.h>
7906 #include <sys/time.h>
7912 if ((struct tm *) 0)
7918 rm -f conftest.$ac_objext
7919 if { (eval echo "$as_me:7919: \"$ac_compile\"") >&5
7920 (eval $ac_compile) 2>&5
7922 echo "$as_me:7922: \$? = $ac_status" >&5
7923 (exit $ac_status); } &&
7924 { ac_try='test -s conftest.$ac_objext'
7925 { (eval echo "$as_me:7925: \"$ac_try\"") >&5
7928 echo "$as_me:7928: \$? = $ac_status" >&5
7929 (exit $ac_status); }; }; then
7930 ac_cv_header_time=yes
7932 echo "$as_me: failed program was:" >&5
7933 cat conftest.$ac_ext >&5
7934 ac_cv_header_time=no
7936 rm -f conftest.$ac_objext conftest.$ac_ext
7938 echo "$as_me:7938: result: $ac_cv_header_time" >&5
7939 echo "${ECHO_T}$ac_cv_header_time" >&6
7940 if test $ac_cv_header_time = yes; then
7942 cat >>confdefs.h <<\EOF
7943 #define TIME_WITH_SYS_TIME 1
7948 echo "$as_me:7948: checking for regular-expression headers" >&5
7949 echo $ECHO_N "checking for regular-expression headers... $ECHO_C" >&6
7950 if test "${cf_cv_regex+set}" = set; then
7951 echo $ECHO_N "(cached) $ECHO_C" >&6
7954 cat >conftest.$ac_ext <<_ACEOF
7955 #line 7955 "configure"
7956 #include "confdefs.h"
7957 #include <sys/types.h>
7964 int x = regcomp(p, "", 0);
7965 int y = regexec(p, "", 0, 0, 0);
7972 rm -f conftest.$ac_objext conftest$ac_exeext
7973 if { (eval echo "$as_me:7973: \"$ac_link\"") >&5
7974 (eval $ac_link) 2>&5
7976 echo "$as_me:7976: \$? = $ac_status" >&5
7977 (exit $ac_status); } &&
7978 { ac_try='test -s conftest$ac_exeext'
7979 { (eval echo "$as_me:7979: \"$ac_try\"") >&5
7982 echo "$as_me:7982: \$? = $ac_status" >&5
7983 (exit $ac_status); }; }; then
7984 cf_cv_regex="regex.h"
7986 echo "$as_me: failed program was:" >&5
7987 cat conftest.$ac_ext >&5
7989 cat >conftest.$ac_ext <<_ACEOF
7990 #line 7990 "configure"
7991 #include "confdefs.h"
7997 char *p = compile("", "", "", 0);
7998 int x = step("", "");
8004 rm -f conftest.$ac_objext conftest$ac_exeext
8005 if { (eval echo "$as_me:8005: \"$ac_link\"") >&5
8006 (eval $ac_link) 2>&5
8008 echo "$as_me:8008: \$? = $ac_status" >&5
8009 (exit $ac_status); } &&
8010 { ac_try='test -s conftest$ac_exeext'
8011 { (eval echo "$as_me:8011: \"$ac_try\"") >&5
8014 echo "$as_me:8014: \$? = $ac_status" >&5
8015 (exit $ac_status); }; }; then
8016 cf_cv_regex="regexp.h"
8018 echo "$as_me: failed program was:" >&5
8019 cat conftest.$ac_ext >&5
8021 cf_save_LIBS="$LIBS"
8023 cat >conftest.$ac_ext <<_ACEOF
8024 #line 8024 "configure"
8025 #include "confdefs.h"
8026 #include <regexpr.h>
8031 char *p = compile("", "", "");
8032 int x = step("", "");
8038 rm -f conftest.$ac_objext conftest$ac_exeext
8039 if { (eval echo "$as_me:8039: \"$ac_link\"") >&5
8040 (eval $ac_link) 2>&5
8042 echo "$as_me:8042: \$? = $ac_status" >&5
8043 (exit $ac_status); } &&
8044 { ac_try='test -s conftest$ac_exeext'
8045 { (eval echo "$as_me:8045: \"$ac_try\"") >&5
8048 echo "$as_me:8048: \$? = $ac_status" >&5
8049 (exit $ac_status); }; }; then
8050 cf_cv_regex="regexpr.h"
8052 echo "$as_me: failed program was:" >&5
8053 cat conftest.$ac_ext >&5
8054 LIBS="$cf_save_LIBS"
8056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8058 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8064 echo "$as_me:8064: result: $cf_cv_regex" >&5
8065 echo "${ECHO_T}$cf_cv_regex" >&6
8066 case $cf_cv_regex in
8067 regex.h) cat >>confdefs.h <<\EOF
8068 #define HAVE_REGEX_H_FUNCS 1
8071 regexp.h) cat >>confdefs.h <<\EOF
8072 #define HAVE_REGEXP_H_FUNCS 1
8075 regexpr.h) cat >>confdefs.h <<\EOF
8076 #define HAVE_REGEXPR_H_FUNCS 1
8099 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8100 echo "$as_me:8100: checking for $ac_header" >&5
8101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8103 echo $ECHO_N "(cached) $ECHO_C" >&6
8105 cat >conftest.$ac_ext <<_ACEOF
8106 #line 8106 "configure"
8107 #include "confdefs.h"
8108 #include <$ac_header>
8110 if { (eval echo "$as_me:8110: \"$ac_cpp conftest.$ac_ext\"") >&5
8111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8113 egrep -v '^ *\+' conftest.er1 >conftest.err
8115 cat conftest.err >&5
8116 echo "$as_me:8116: \$? = $ac_status" >&5
8117 (exit $ac_status); } >/dev/null; then
8118 if test -s conftest.err; then
8119 ac_cpp_err=$ac_c_preproc_warn_flag
8126 if test -z "$ac_cpp_err"; then
8127 eval "$as_ac_Header=yes"
8129 echo "$as_me: failed program was:" >&5
8130 cat conftest.$ac_ext >&5
8131 eval "$as_ac_Header=no"
8133 rm -f conftest.err conftest.$ac_ext
8135 echo "$as_me:8135: result: `eval echo '${'$as_ac_Header'}'`" >&5
8136 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8137 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8138 cat >>confdefs.h <<EOF
8139 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8145 # check for ISC (this may also define _POSIX_SOURCE)
8146 # Note: even non-Posix ISC needs <sys/bsdtypes.h> to declare fd_set
8147 if test "$ISC" = yes ; then
8149 echo "$as_me:8149: checking for main in -lcposix" >&5
8150 echo $ECHO_N "checking for main in -lcposix... $ECHO_C" >&6
8151 if test "${ac_cv_lib_cposix_main+set}" = set; then
8152 echo $ECHO_N "(cached) $ECHO_C" >&6
8154 ac_check_lib_save_LIBS=$LIBS
8155 LIBS="-lcposix $LIBS"
8156 cat >conftest.$ac_ext <<_ACEOF
8157 #line 8157 "configure"
8158 #include "confdefs.h"
8168 rm -f conftest.$ac_objext conftest$ac_exeext
8169 if { (eval echo "$as_me:8169: \"$ac_link\"") >&5
8170 (eval $ac_link) 2>&5
8172 echo "$as_me:8172: \$? = $ac_status" >&5
8173 (exit $ac_status); } &&
8174 { ac_try='test -s conftest$ac_exeext'
8175 { (eval echo "$as_me:8175: \"$ac_try\"") >&5
8178 echo "$as_me:8178: \$? = $ac_status" >&5
8179 (exit $ac_status); }; }; then
8180 ac_cv_lib_cposix_main=yes
8182 echo "$as_me: failed program was:" >&5
8183 cat conftest.$ac_ext >&5
8184 ac_cv_lib_cposix_main=no
8186 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8187 LIBS=$ac_check_lib_save_LIBS
8189 echo "$as_me:8189: result: $ac_cv_lib_cposix_main" >&5
8190 echo "${ECHO_T}$ac_cv_lib_cposix_main" >&6
8191 if test $ac_cv_lib_cposix_main = yes; then
8192 cat >>confdefs.h <<EOF
8193 #define HAVE_LIBCPOSIX 1
8196 LIBS="-lcposix $LIBS"
8200 echo "$as_me:8200: checking for bzero in -linet" >&5
8201 echo $ECHO_N "checking for bzero in -linet... $ECHO_C" >&6
8202 if test "${ac_cv_lib_inet_bzero+set}" = set; then
8203 echo $ECHO_N "(cached) $ECHO_C" >&6
8205 ac_check_lib_save_LIBS=$LIBS
8207 cat >conftest.$ac_ext <<_ACEOF
8208 #line 8208 "configure"
8209 #include "confdefs.h"
8211 /* Override any gcc2 internal prototype to avoid an error. */
8215 /* We use char because int might match the return type of a gcc2
8216 builtin and then its argument prototype would still apply. */
8226 rm -f conftest.$ac_objext conftest$ac_exeext
8227 if { (eval echo "$as_me:8227: \"$ac_link\"") >&5
8228 (eval $ac_link) 2>&5
8230 echo "$as_me:8230: \$? = $ac_status" >&5
8231 (exit $ac_status); } &&
8232 { ac_try='test -s conftest$ac_exeext'
8233 { (eval echo "$as_me:8233: \"$ac_try\"") >&5
8236 echo "$as_me:8236: \$? = $ac_status" >&5
8237 (exit $ac_status); }; }; then
8238 ac_cv_lib_inet_bzero=yes
8240 echo "$as_me: failed program was:" >&5
8241 cat conftest.$ac_ext >&5
8242 ac_cv_lib_inet_bzero=no
8244 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8245 LIBS=$ac_check_lib_save_LIBS
8247 echo "$as_me:8247: result: $ac_cv_lib_inet_bzero" >&5
8248 echo "${ECHO_T}$ac_cv_lib_inet_bzero" >&6
8249 if test $ac_cv_lib_inet_bzero = yes; then
8254 echo "$as_me:8254: checking if sys/time.h works with sys/select.h" >&5
8255 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
8256 if test "${cf_cv_sys_time_select+set}" = set; then
8257 echo $ECHO_N "(cached) $ECHO_C" >&6
8260 cat >conftest.$ac_ext <<_ACEOF
8261 #line 8261 "configure"
8262 #include "confdefs.h"
8264 #include <sys/types.h>
8265 #ifdef HAVE_SYS_TIME_H
8266 #include <sys/time.h>
8268 #ifdef HAVE_SYS_SELECT_H
8269 #include <sys/select.h>
8280 rm -f conftest.$ac_objext
8281 if { (eval echo "$as_me:8281: \"$ac_compile\"") >&5
8282 (eval $ac_compile) 2>&5
8284 echo "$as_me:8284: \$? = $ac_status" >&5
8285 (exit $ac_status); } &&
8286 { ac_try='test -s conftest.$ac_objext'
8287 { (eval echo "$as_me:8287: \"$ac_try\"") >&5
8290 echo "$as_me:8290: \$? = $ac_status" >&5
8291 (exit $ac_status); }; }; then
8292 cf_cv_sys_time_select=yes
8294 echo "$as_me: failed program was:" >&5
8295 cat conftest.$ac_ext >&5
8296 cf_cv_sys_time_select=no
8298 rm -f conftest.$ac_objext conftest.$ac_ext
8302 echo "$as_me:8302: result: $cf_cv_sys_time_select" >&5
8303 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
8304 test "$cf_cv_sys_time_select" = yes && cat >>confdefs.h <<\EOF
8305 #define HAVE_SYS_TIME_SELECT 1
8308 ### checks for compiler characteristics
8310 ac_cpp='$CPP $CPPFLAGS'
8311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8315 echo "$as_me:8315: checking for $CC option to accept ANSI C" >&5
8316 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
8317 if test "${ac_cv_prog_cc_stdc+set}" = set; then
8318 echo $ECHO_N "(cached) $ECHO_C" >&6
8320 ac_cv_prog_cc_stdc=no
8322 cat >conftest.$ac_ext <<_ACEOF
8323 #line 8323 "configure"
8324 #include "confdefs.h"
8327 #include <sys/types.h>
8328 #include <sys/stat.h>
8329 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8330 struct buf { int x; };
8331 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8332 static char *e (p, i)
8338 static char *f (char * (*g) (char **, int), char **p, ...)
8343 s = g (p, va_arg (v,int));
8347 int test (int i, double x);
8348 struct s1 {int (*f) (int a);};
8349 struct s2 {int (*f) (double a);};
8350 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8356 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8361 # Don't try gcc -ansi; that turns off useful extensions and
8362 # breaks some systems' header files.
8363 # AIX -qlanglvl=ansi
8364 # Ultrix and OSF/1 -std1
8365 # HP-UX 10.20 and later -Ae
8366 # HP-UX older versions -Aa -D_HPUX_SOURCE
8367 # SVR4 -Xc -D__EXTENSIONS__
8368 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8370 CC="$ac_save_CC $ac_arg"
8371 rm -f conftest.$ac_objext
8372 if { (eval echo "$as_me:8372: \"$ac_compile\"") >&5
8373 (eval $ac_compile) 2>&5
8375 echo "$as_me:8375: \$? = $ac_status" >&5
8376 (exit $ac_status); } &&
8377 { ac_try='test -s conftest.$ac_objext'
8378 { (eval echo "$as_me:8378: \"$ac_try\"") >&5
8381 echo "$as_me:8381: \$? = $ac_status" >&5
8382 (exit $ac_status); }; }; then
8383 ac_cv_prog_cc_stdc=$ac_arg
8386 echo "$as_me: failed program was:" >&5
8387 cat conftest.$ac_ext >&5
8389 rm -f conftest.$ac_objext
8391 rm -f conftest.$ac_ext conftest.$ac_objext
8396 case "x$ac_cv_prog_cc_stdc" in
8398 echo "$as_me:8398: result: none needed" >&5
8399 echo "${ECHO_T}none needed" >&6 ;;
8401 echo "$as_me:8401: result: $ac_cv_prog_cc_stdc" >&5
8402 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
8403 CC="$CC $ac_cv_prog_cc_stdc" ;;
8406 echo "$as_me:8406: checking for an ANSI C-conforming const" >&5
8407 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8408 if test "${ac_cv_c_const+set}" = set; then
8409 echo $ECHO_N "(cached) $ECHO_C" >&6
8411 cat >conftest.$ac_ext <<_ACEOF
8412 #line 8412 "configure"
8413 #include "confdefs.h"
8418 /* FIXME: Include the comments suggested by Paul. */
8420 /* Ultrix mips cc rejects this. */
8421 typedef int charset[2];
8423 /* SunOS 4.1.1 cc rejects this. */
8424 char const *const *ccp;
8426 /* NEC SVR4.0.2 mips cc rejects this. */
8427 struct point {int x, y;};
8428 static struct point const zero = {0,0};
8429 /* AIX XL C 1.02.0.0 rejects this.
8430 It does not let you subtract one const X* pointer from another in
8431 an arm of an if-expression whose if-part is not a constant
8433 const char *g = "string";
8434 ccp = &g + (g ? g-g : 0);
8435 /* HPUX 7.0 cc rejects these. */
8438 ccp = (char const *const *) p;
8439 { /* SCO 3.2v4 cc rejects this. */
8441 char const *s = 0 ? (char *) 0 : (char const *) 0;
8445 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8447 const int *foo = &x[0];
8450 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8451 typedef const int *iptr;
8455 { /* AIX XL C 1.02.0.0 rejects this saying
8456 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8457 struct s { int j; const int *ap[3]; };
8458 struct s *b; b->j = 5;
8460 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8469 rm -f conftest.$ac_objext
8470 if { (eval echo "$as_me:8470: \"$ac_compile\"") >&5
8471 (eval $ac_compile) 2>&5
8473 echo "$as_me:8473: \$? = $ac_status" >&5
8474 (exit $ac_status); } &&
8475 { ac_try='test -s conftest.$ac_objext'
8476 { (eval echo "$as_me:8476: \"$ac_try\"") >&5
8479 echo "$as_me:8479: \$? = $ac_status" >&5
8480 (exit $ac_status); }; }; then
8483 echo "$as_me: failed program was:" >&5
8484 cat conftest.$ac_ext >&5
8487 rm -f conftest.$ac_objext conftest.$ac_ext
8489 echo "$as_me:8489: result: $ac_cv_c_const" >&5
8490 echo "${ECHO_T}$ac_cv_c_const" >&6
8491 if test $ac_cv_c_const = no; then
8493 cat >>confdefs.h <<\EOF
8499 echo "$as_me:8499: checking for inline" >&5
8500 echo $ECHO_N "checking for inline... $ECHO_C" >&6
8501 if test "${ac_cv_c_inline+set}" = set; then
8502 echo $ECHO_N "(cached) $ECHO_C" >&6
8505 for ac_kw in inline __inline__ __inline; do
8506 cat >conftest.$ac_ext <<_ACEOF
8507 #line 8507 "configure"
8508 #include "confdefs.h"
8510 static $ac_kw int static_foo () {return 0; }
8511 $ac_kw int foo () {return 0; }
8515 rm -f conftest.$ac_objext
8516 if { (eval echo "$as_me:8516: \"$ac_compile\"") >&5
8517 (eval $ac_compile) 2>&5
8519 echo "$as_me:8519: \$? = $ac_status" >&5
8520 (exit $ac_status); } &&
8521 { ac_try='test -s conftest.$ac_objext'
8522 { (eval echo "$as_me:8522: \"$ac_try\"") >&5
8525 echo "$as_me:8525: \$? = $ac_status" >&5
8526 (exit $ac_status); }; }; then
8527 ac_cv_c_inline=$ac_kw; break
8529 echo "$as_me: failed program was:" >&5
8530 cat conftest.$ac_ext >&5
8532 rm -f conftest.$ac_objext conftest.$ac_ext
8536 echo "$as_me:8536: result: $ac_cv_c_inline" >&5
8537 echo "${ECHO_T}$ac_cv_c_inline" >&6
8538 case $ac_cv_c_inline in
8541 cat >>confdefs.h <<\EOF
8545 *) cat >>confdefs.h <<EOF
8546 #define inline $ac_cv_c_inline
8551 test "$ac_cv_c_inline" != no && cat >>confdefs.h <<\EOF
8552 #define CC_HAS_INLINE_FUNCS 1
8555 echo "$as_me:8555: checking if unsigned literals are legal" >&5
8556 echo $ECHO_N "checking if unsigned literals are legal... $ECHO_C" >&6
8557 if test "${cf_cv_unsigned_literals+set}" = set; then
8558 echo $ECHO_N "(cached) $ECHO_C" >&6
8561 cat >conftest.$ac_ext <<_ACEOF
8562 #line 8562 "configure"
8563 #include "confdefs.h"
8568 long x = 1L + 1UL + 1U + 1
8573 rm -f conftest.$ac_objext
8574 if { (eval echo "$as_me:8574: \"$ac_compile\"") >&5
8575 (eval $ac_compile) 2>&5
8577 echo "$as_me:8577: \$? = $ac_status" >&5
8578 (exit $ac_status); } &&
8579 { ac_try='test -s conftest.$ac_objext'
8580 { (eval echo "$as_me:8580: \"$ac_try\"") >&5
8583 echo "$as_me:8583: \$? = $ac_status" >&5
8584 (exit $ac_status); }; }; then
8585 cf_cv_unsigned_literals=yes
8587 echo "$as_me: failed program was:" >&5
8588 cat conftest.$ac_ext >&5
8589 cf_cv_unsigned_literals=no
8591 rm -f conftest.$ac_objext conftest.$ac_ext
8595 echo "$as_me:8595: result: $cf_cv_unsigned_literals" >&5
8596 echo "${ECHO_T}$cf_cv_unsigned_literals" >&6
8598 echo "$as_me:8598: checking for type of chtype" >&5
8599 echo $ECHO_N "checking for type of chtype... $ECHO_C" >&6
8600 if test "${cf_cv_typeof_chtype+set}" = set; then
8601 echo $ECHO_N "(cached) $ECHO_C" >&6
8604 if test "$cross_compiling" = yes; then
8605 cf_cv_typeof_chtype=long
8607 cat >conftest.$ac_ext <<_ACEOF
8608 #line 8608 "configure"
8609 #include "confdefs.h"
8611 #ifdef USE_WIDEC_SUPPORT
8612 #include <stddef.h> /* we want wchar_t */
8613 #define WANT_BITS 39
8615 #define WANT_BITS 31
8620 FILE *fp = fopen("cf_test.out", "w");
8622 char *result = "long";
8623 #ifdef USE_WIDEC_SUPPORT
8625 * If wchar_t is smaller than a long, it must be an int or a
8626 * short. We prefer not to use a short anyway.
8628 if (sizeof(unsigned long) > sizeof(wchar_t))
8631 if (sizeof(unsigned long) > sizeof(unsigned int)) {
8634 for (n = 0; n < WANT_BITS; n++) {
8635 unsigned int y = (x >> n);
8636 if (y != 1 || x == 0) {
8642 * If x is nonzero, an int is big enough for the bits
8645 result = (x != 0) ? "int" : "long";
8654 rm -f conftest$ac_exeext
8655 if { (eval echo "$as_me:8655: \"$ac_link\"") >&5
8656 (eval $ac_link) 2>&5
8658 echo "$as_me:8658: \$? = $ac_status" >&5
8659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8660 { (eval echo "$as_me:8660: \"$ac_try\"") >&5
8663 echo "$as_me:8663: \$? = $ac_status" >&5
8664 (exit $ac_status); }; }; then
8665 cf_cv_typeof_chtype=`cat cf_test.out`
8667 echo "$as_me: program exited with status $ac_status" >&5
8668 echo "$as_me: failed program was:" >&5
8669 cat conftest.$ac_ext >&5
8670 cf_cv_typeof_chtype=long
8672 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8678 echo "$as_me:8678: result: $cf_cv_typeof_chtype" >&5
8679 echo "${ECHO_T}$cf_cv_typeof_chtype" >&6
8681 cat >>confdefs.h <<EOF
8682 #define TYPEOF_CHTYPE $cf_cv_typeof_chtype
8686 test "$cf_cv_unsigned_literals" = yes && cf_cv_1UL="${cf_cv_1UL}U"
8687 test "$cf_cv_typeof_chtype" = long && cf_cv_1UL="${cf_cv_1UL}L"
8689 ### Checks for external-data
8691 echo "$as_me:8691: checking if external errno is declared" >&5
8692 echo $ECHO_N "checking if external errno is declared... $ECHO_C" >&6
8693 if test "${cf_cv_dcl_errno+set}" = set; then
8694 echo $ECHO_N "(cached) $ECHO_C" >&6
8697 cat >conftest.$ac_ext <<_ACEOF
8698 #line 8698 "configure"
8699 #include "confdefs.h"
8701 #ifdef HAVE_STDLIB_H
8705 #include <sys/types.h>
8710 long x = (long) errno
8715 rm -f conftest.$ac_objext
8716 if { (eval echo "$as_me:8716: \"$ac_compile\"") >&5
8717 (eval $ac_compile) 2>&5
8719 echo "$as_me:8719: \$? = $ac_status" >&5
8720 (exit $ac_status); } &&
8721 { ac_try='test -s conftest.$ac_objext'
8722 { (eval echo "$as_me:8722: \"$ac_try\"") >&5
8725 echo "$as_me:8725: \$? = $ac_status" >&5
8726 (exit $ac_status); }; }; then
8729 echo "$as_me: failed program was:" >&5
8730 cat conftest.$ac_ext >&5
8733 rm -f conftest.$ac_objext conftest.$ac_ext
8736 echo "$as_me:8736: result: $cf_cv_dcl_errno" >&5
8737 echo "${ECHO_T}$cf_cv_dcl_errno" >&6
8739 if test "$cf_cv_dcl_errno" = no ; then
8741 cf_result=`echo "decl_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
8743 cat >>confdefs.h <<EOF
8744 #define $cf_result 1
8749 # It's possible (for near-UNIX clones) that the data doesn't exist
8751 echo "$as_me:8751: checking if external errno exists" >&5
8752 echo $ECHO_N "checking if external errno exists... $ECHO_C" >&6
8753 if test "${cf_cv_have_errno+set}" = set; then
8754 echo $ECHO_N "(cached) $ECHO_C" >&6
8757 cat >conftest.$ac_ext <<_ACEOF
8758 #line 8758 "configure"
8759 #include "confdefs.h"
8772 rm -f conftest.$ac_objext conftest$ac_exeext
8773 if { (eval echo "$as_me:8773: \"$ac_link\"") >&5
8774 (eval $ac_link) 2>&5
8776 echo "$as_me:8776: \$? = $ac_status" >&5
8777 (exit $ac_status); } &&
8778 { ac_try='test -s conftest$ac_exeext'
8779 { (eval echo "$as_me:8779: \"$ac_try\"") >&5
8782 echo "$as_me:8782: \$? = $ac_status" >&5
8783 (exit $ac_status); }; }; then
8784 cf_cv_have_errno=yes
8786 echo "$as_me: failed program was:" >&5
8787 cat conftest.$ac_ext >&5
8790 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8793 echo "$as_me:8793: result: $cf_cv_have_errno" >&5
8794 echo "${ECHO_T}$cf_cv_have_errno" >&6
8796 if test "$cf_cv_have_errno" = yes ; then
8798 cf_result=`echo "have_errno" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
8800 cat >>confdefs.h <<EOF
8801 #define $cf_result 1
8806 echo "$as_me:8806: checking if data-only library module links" >&5
8807 echo $ECHO_N "checking if data-only library module links... $ECHO_C" >&6
8808 if test "${cf_cv_link_dataonly+set}" = set; then
8809 echo $ECHO_N "(cached) $ECHO_C" >&6
8813 cat >conftest.$ac_ext <<EOF
8814 #line 8814 "configure"
8815 int testdata[3] = { 123, 456, 789 };
8817 if { (eval echo "$as_me:8817: \"$ac_compile\"") >&5
8818 (eval $ac_compile) 2>&5
8820 echo "$as_me:8820: \$? = $ac_status" >&5
8821 (exit $ac_status); } ; then
8822 mv conftest.o data.o && \
8823 ( $AR $AR_OPTS conftest.a data.o ) 2>&5 1>/dev/null
8825 rm -f conftest.$ac_ext data.o
8826 cat >conftest.$ac_ext <<EOF
8827 #line 8827 "configure"
8831 exit(1); /* I'm told this linker is broken */
8833 extern int testdata[3];
8834 return testdata[0] == 123
8835 && testdata[1] == 456
8836 && testdata[2] == 789;
8840 if { (eval echo "$as_me:8840: \"$ac_compile\"") >&5
8841 (eval $ac_compile) 2>&5
8843 echo "$as_me:8843: \$? = $ac_status" >&5
8844 (exit $ac_status); }; then
8845 mv conftest.o func.o && \
8846 ( $AR $AR_OPTS conftest.a func.o ) 2>&5 1>/dev/null
8848 rm -f conftest.$ac_ext func.o
8849 ( eval $RANLIB conftest.a ) 2>&5 >/dev/null
8851 LIBS="conftest.a $LIBS"
8852 if test "$cross_compiling" = yes; then
8853 cf_cv_link_dataonly=unknown
8855 cat >conftest.$ac_ext <<_ACEOF
8856 #line 8856 "configure"
8857 #include "confdefs.h"
8861 extern int testfunc();
8866 rm -f conftest$ac_exeext
8867 if { (eval echo "$as_me:8867: \"$ac_link\"") >&5
8868 (eval $ac_link) 2>&5
8870 echo "$as_me:8870: \$? = $ac_status" >&5
8871 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8872 { (eval echo "$as_me:8872: \"$ac_try\"") >&5
8875 echo "$as_me:8875: \$? = $ac_status" >&5
8876 (exit $ac_status); }; }; then
8877 cf_cv_link_dataonly=yes
8879 echo "$as_me: program exited with status $ac_status" >&5
8880 echo "$as_me: failed program was:" >&5
8881 cat conftest.$ac_ext >&5
8882 cf_cv_link_dataonly=no
8884 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8890 echo "$as_me:8890: result: $cf_cv_link_dataonly" >&5
8891 echo "${ECHO_T}$cf_cv_link_dataonly" >&6
8893 if test "$cf_cv_link_dataonly" = no ; then
8894 cat >>confdefs.h <<\EOF
8895 #define BROKEN_LINKER 1
8901 ### Checks for library functions.
8926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8927 echo "$as_me:8927: checking for $ac_func" >&5
8928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8929 if eval "test \"\${$as_ac_var+set}\" = set"; then
8930 echo $ECHO_N "(cached) $ECHO_C" >&6
8932 cat >conftest.$ac_ext <<_ACEOF
8933 #line 8933 "configure"
8934 #include "confdefs.h"
8935 /* System header to define __stub macros and hopefully few prototypes,
8936 which can conflict with char $ac_func (); below. */
8938 /* Override any gcc2 internal prototype to avoid an error. */
8942 /* We use char because int might match the return type of a gcc2
8943 builtin and then its argument prototype would still apply. */
8950 /* The GNU C library defines this for functions which it implements
8951 to always fail with ENOSYS. Some functions are actually named
8952 something starting with __ and the normal name is an alias. */
8953 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8963 rm -f conftest.$ac_objext conftest$ac_exeext
8964 if { (eval echo "$as_me:8964: \"$ac_link\"") >&5
8965 (eval $ac_link) 2>&5
8967 echo "$as_me:8967: \$? = $ac_status" >&5
8968 (exit $ac_status); } &&
8969 { ac_try='test -s conftest$ac_exeext'
8970 { (eval echo "$as_me:8970: \"$ac_try\"") >&5
8973 echo "$as_me:8973: \$? = $ac_status" >&5
8974 (exit $ac_status); }; }; then
8975 eval "$as_ac_var=yes"
8977 echo "$as_me: failed program was:" >&5
8978 cat conftest.$ac_ext >&5
8979 eval "$as_ac_var=no"
8981 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8983 echo "$as_me:8983: result: `eval echo '${'$as_ac_var'}'`" >&5
8984 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8985 if test `eval echo '${'$as_ac_var'}'` = yes; then
8986 cat >>confdefs.h <<EOF
8987 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8993 if test "$with_getcap" = "yes" ; then
8995 echo "$as_me:8995: checking for terminal-capability database functions" >&5
8996 echo $ECHO_N "checking for terminal-capability database functions... $ECHO_C" >&6
8997 if test "${cf_cv_cgetent+set}" = set; then
8998 echo $ECHO_N "(cached) $ECHO_C" >&6
9001 cat >conftest.$ac_ext <<_ACEOF
9002 #line 9002 "configure"
9003 #include "confdefs.h"
9012 char *db_array = temp;
9013 cgetent(&buf, /* int *, */ &db_array, "vt100");
9014 cgetcap(buf, "tc", '=');
9015 cgetmatch(buf, "tc");
9021 rm -f conftest.$ac_objext conftest$ac_exeext
9022 if { (eval echo "$as_me:9022: \"$ac_link\"") >&5
9023 (eval $ac_link) 2>&5
9025 echo "$as_me:9025: \$? = $ac_status" >&5
9026 (exit $ac_status); } &&
9027 { ac_try='test -s conftest$ac_exeext'
9028 { (eval echo "$as_me:9028: \"$ac_try\"") >&5
9031 echo "$as_me:9031: \$? = $ac_status" >&5
9032 (exit $ac_status); }; }; then
9035 echo "$as_me: failed program was:" >&5
9036 cat conftest.$ac_ext >&5
9039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9043 echo "$as_me:9043: result: $cf_cv_cgetent" >&5
9044 echo "${ECHO_T}$cf_cv_cgetent" >&6
9045 test "$cf_cv_cgetent" = yes && cat >>confdefs.h <<\EOF
9046 #define HAVE_BSD_CGETENT 1
9051 echo "$as_me:9051: checking for isascii" >&5
9052 echo $ECHO_N "checking for isascii... $ECHO_C" >&6
9053 if test "${cf_cv_have_isascii+set}" = set; then
9054 echo $ECHO_N "(cached) $ECHO_C" >&6
9057 cat >conftest.$ac_ext <<_ACEOF
9058 #line 9058 "configure"
9059 #include "confdefs.h"
9064 int x = isascii(' ')
9069 rm -f conftest.$ac_objext conftest$ac_exeext
9070 if { (eval echo "$as_me:9070: \"$ac_link\"") >&5
9071 (eval $ac_link) 2>&5
9073 echo "$as_me:9073: \$? = $ac_status" >&5
9074 (exit $ac_status); } &&
9075 { ac_try='test -s conftest$ac_exeext'
9076 { (eval echo "$as_me:9076: \"$ac_try\"") >&5
9079 echo "$as_me:9079: \$? = $ac_status" >&5
9080 (exit $ac_status); }; }; then
9081 cf_cv_have_isascii=yes
9083 echo "$as_me: failed program was:" >&5
9084 cat conftest.$ac_ext >&5
9085 cf_cv_have_isascii=no
9087 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9090 echo "$as_me:9090: result: $cf_cv_have_isascii" >&5
9091 echo "${ECHO_T}$cf_cv_have_isascii" >&6
9092 test "$cf_cv_have_isascii" = yes && cat >>confdefs.h <<\EOF
9093 #define HAVE_ISASCII 1
9096 if test "$ac_cv_func_sigaction" = yes; then
9097 echo "$as_me:9097: checking whether sigaction needs _POSIX_SOURCE" >&5
9098 echo $ECHO_N "checking whether sigaction needs _POSIX_SOURCE... $ECHO_C" >&6
9099 cat >conftest.$ac_ext <<_ACEOF
9100 #line 9100 "configure"
9101 #include "confdefs.h"
9103 #include <sys/types.h>
9108 struct sigaction act
9113 rm -f conftest.$ac_objext
9114 if { (eval echo "$as_me:9114: \"$ac_compile\"") >&5
9115 (eval $ac_compile) 2>&5
9117 echo "$as_me:9117: \$? = $ac_status" >&5
9118 (exit $ac_status); } &&
9119 { ac_try='test -s conftest.$ac_objext'
9120 { (eval echo "$as_me:9120: \"$ac_try\"") >&5
9123 echo "$as_me:9123: \$? = $ac_status" >&5
9124 (exit $ac_status); }; }; then
9127 echo "$as_me: failed program was:" >&5
9128 cat conftest.$ac_ext >&5
9130 cat >conftest.$ac_ext <<_ACEOF
9131 #line 9131 "configure"
9132 #include "confdefs.h"
9134 #define _POSIX_SOURCE
9135 #include <sys/types.h>
9140 struct sigaction act
9145 rm -f conftest.$ac_objext
9146 if { (eval echo "$as_me:9146: \"$ac_compile\"") >&5
9147 (eval $ac_compile) 2>&5
9149 echo "$as_me:9149: \$? = $ac_status" >&5
9150 (exit $ac_status); } &&
9151 { ac_try='test -s conftest.$ac_objext'
9152 { (eval echo "$as_me:9152: \"$ac_try\"") >&5
9155 echo "$as_me:9155: \$? = $ac_status" >&5
9156 (exit $ac_status); }; }; then
9158 cat >>confdefs.h <<\EOF
9159 #define SVR4_ACTION 1
9163 echo "$as_me: failed program was:" >&5
9164 cat conftest.$ac_ext >&5
9167 rm -f conftest.$ac_objext conftest.$ac_ext
9169 rm -f conftest.$ac_objext conftest.$ac_ext
9170 echo "$as_me:9170: result: $sigact_bad" >&5
9171 echo "${ECHO_T}$sigact_bad" >&6
9180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9181 echo "$as_me:9181: checking for $ac_header" >&5
9182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9184 echo $ECHO_N "(cached) $ECHO_C" >&6
9186 cat >conftest.$ac_ext <<_ACEOF
9187 #line 9187 "configure"
9188 #include "confdefs.h"
9189 #include <$ac_header>
9191 if { (eval echo "$as_me:9191: \"$ac_cpp conftest.$ac_ext\"") >&5
9192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9194 egrep -v '^ *\+' conftest.er1 >conftest.err
9196 cat conftest.err >&5
9197 echo "$as_me:9197: \$? = $ac_status" >&5
9198 (exit $ac_status); } >/dev/null; then
9199 if test -s conftest.err; then
9200 ac_cpp_err=$ac_c_preproc_warn_flag
9207 if test -z "$ac_cpp_err"; then
9208 eval "$as_ac_Header=yes"
9210 echo "$as_me: failed program was:" >&5
9211 cat conftest.$ac_ext >&5
9212 eval "$as_ac_Header=no"
9214 rm -f conftest.err conftest.$ac_ext
9216 echo "$as_me:9216: result: `eval echo '${'$as_ac_Header'}'`" >&5
9217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9219 cat >>confdefs.h <<EOF
9220 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9226 if test "$ISC" = yes ; then
9228 for ac_header in sys/termio.h
9230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9231 echo "$as_me:9231: checking for $ac_header" >&5
9232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9234 echo $ECHO_N "(cached) $ECHO_C" >&6
9236 cat >conftest.$ac_ext <<_ACEOF
9237 #line 9237 "configure"
9238 #include "confdefs.h"
9239 #include <$ac_header>
9241 if { (eval echo "$as_me:9241: \"$ac_cpp conftest.$ac_ext\"") >&5
9242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9244 egrep -v '^ *\+' conftest.er1 >conftest.err
9246 cat conftest.err >&5
9247 echo "$as_me:9247: \$? = $ac_status" >&5
9248 (exit $ac_status); } >/dev/null; then
9249 if test -s conftest.err; then
9250 ac_cpp_err=$ac_c_preproc_warn_flag
9257 if test -z "$ac_cpp_err"; then
9258 eval "$as_ac_Header=yes"
9260 echo "$as_me: failed program was:" >&5
9261 cat conftest.$ac_ext >&5
9262 eval "$as_ac_Header=no"
9264 rm -f conftest.err conftest.$ac_ext
9266 echo "$as_me:9266: result: `eval echo '${'$as_ac_Header'}'`" >&5
9267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9269 cat >>confdefs.h <<EOF
9270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9277 if test "$ac_cv_header_termios_h" = yes ; then
9278 case "$CFLAGS $CPPFLAGS" in
9280 termios_bad=dunno ;;
9281 *) termios_bad=maybe ;;
9283 if test "$termios_bad" = maybe ; then
9284 echo "$as_me:9284: checking whether termios.h needs _POSIX_SOURCE" >&5
9285 echo $ECHO_N "checking whether termios.h needs _POSIX_SOURCE... $ECHO_C" >&6
9286 cat >conftest.$ac_ext <<_ACEOF
9287 #line 9287 "configure"
9288 #include "confdefs.h"
9289 #include <termios.h>
9293 struct termios foo; int x = foo.c_iflag
9298 rm -f conftest.$ac_objext
9299 if { (eval echo "$as_me:9299: \"$ac_compile\"") >&5
9300 (eval $ac_compile) 2>&5
9302 echo "$as_me:9302: \$? = $ac_status" >&5
9303 (exit $ac_status); } &&
9304 { ac_try='test -s conftest.$ac_objext'
9305 { (eval echo "$as_me:9305: \"$ac_try\"") >&5
9308 echo "$as_me:9308: \$? = $ac_status" >&5
9309 (exit $ac_status); }; }; then
9312 echo "$as_me: failed program was:" >&5
9313 cat conftest.$ac_ext >&5
9315 cat >conftest.$ac_ext <<_ACEOF
9316 #line 9316 "configure"
9317 #include "confdefs.h"
9319 #define _POSIX_SOURCE
9320 #include <termios.h>
9324 struct termios foo; int x = foo.c_iflag
9329 rm -f conftest.$ac_objext
9330 if { (eval echo "$as_me:9330: \"$ac_compile\"") >&5
9331 (eval $ac_compile) 2>&5
9333 echo "$as_me:9333: \$? = $ac_status" >&5
9334 (exit $ac_status); } &&
9335 { ac_try='test -s conftest.$ac_objext'
9336 { (eval echo "$as_me:9336: \"$ac_try\"") >&5
9339 echo "$as_me:9339: \$? = $ac_status" >&5
9340 (exit $ac_status); }; }; then
9343 echo "$as_me: failed program was:" >&5
9344 cat conftest.$ac_ext >&5
9345 termios_bad=yes cat >>confdefs.h <<\EOF
9346 #define SVR4_TERMIO 1
9350 rm -f conftest.$ac_objext conftest.$ac_ext
9353 rm -f conftest.$ac_objext conftest.$ac_ext
9354 echo "$as_me:9354: result: $termios_bad" >&5
9355 echo "${ECHO_T}$termios_bad" >&6
9359 echo "$as_me:9359: checking for tcgetattr" >&5
9360 echo $ECHO_N "checking for tcgetattr... $ECHO_C" >&6
9361 if test "${cf_cv_have_tcgetattr+set}" = set; then
9362 echo $ECHO_N "(cached) $ECHO_C" >&6
9365 cat >conftest.$ac_ext <<_ACEOF
9366 #line 9366 "configure"
9367 #include "confdefs.h"
9369 #include <sys/types.h>
9370 #ifdef HAVE_UNISTD_H
9373 #ifdef HAVE_TERMIOS_H
9374 #include <termios.h>
9375 #define TTY struct termios
9377 #ifdef HAVE_TERMIO_H
9379 #define TTY struct termio
9393 rm -f conftest.$ac_objext conftest$ac_exeext
9394 if { (eval echo "$as_me:9394: \"$ac_link\"") >&5
9395 (eval $ac_link) 2>&5
9397 echo "$as_me:9397: \$? = $ac_status" >&5
9398 (exit $ac_status); } &&
9399 { ac_try='test -s conftest$ac_exeext'
9400 { (eval echo "$as_me:9400: \"$ac_try\"") >&5
9403 echo "$as_me:9403: \$? = $ac_status" >&5
9404 (exit $ac_status); }; }; then
9405 cf_cv_have_tcgetattr=yes
9407 echo "$as_me: failed program was:" >&5
9408 cat conftest.$ac_ext >&5
9409 cf_cv_have_tcgetattr=no
9411 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9413 echo "$as_me:9413: result: $cf_cv_have_tcgetattr" >&5
9414 echo "${ECHO_T}$cf_cv_have_tcgetattr" >&6
9415 test "$cf_cv_have_tcgetattr" = yes && cat >>confdefs.h <<\EOF
9416 #define HAVE_TCGETATTR 1
9419 echo "$as_me:9419: checking for vsscanf function or workaround" >&5
9420 echo $ECHO_N "checking for vsscanf function or workaround... $ECHO_C" >&6
9421 if test "${cf_cv_func_vsscanf+set}" = set; then
9422 echo $ECHO_N "(cached) $ECHO_C" >&6
9425 cat >conftest.$ac_ext <<_ACEOF
9426 #line 9426 "configure"
9427 #include "confdefs.h"
9436 vsscanf("from", "%d", ap)
9441 rm -f conftest.$ac_objext conftest$ac_exeext
9442 if { (eval echo "$as_me:9442: \"$ac_link\"") >&5
9443 (eval $ac_link) 2>&5
9445 echo "$as_me:9445: \$? = $ac_status" >&5
9446 (exit $ac_status); } &&
9447 { ac_try='test -s conftest$ac_exeext'
9448 { (eval echo "$as_me:9448: \"$ac_try\"") >&5
9451 echo "$as_me:9451: \$? = $ac_status" >&5
9452 (exit $ac_status); }; }; then
9453 cf_cv_func_vsscanf=vsscanf
9455 echo "$as_me: failed program was:" >&5
9456 cat conftest.$ac_ext >&5
9458 cat >conftest.$ac_ext <<_ACEOF
9459 #line 9459 "configure"
9460 #include "confdefs.h"
9471 strbuf._flag = _IOREAD;
9472 strbuf._ptr = strbuf._base = (unsigned char *) str;
9473 strbuf._cnt = strlen(str);
9474 strbuf._file = _NFILE;
9475 return (vfscanf(&strbuf, "%d", ap))
9480 rm -f conftest.$ac_objext conftest$ac_exeext
9481 if { (eval echo "$as_me:9481: \"$ac_link\"") >&5
9482 (eval $ac_link) 2>&5
9484 echo "$as_me:9484: \$? = $ac_status" >&5
9485 (exit $ac_status); } &&
9486 { ac_try='test -s conftest$ac_exeext'
9487 { (eval echo "$as_me:9487: \"$ac_try\"") >&5
9490 echo "$as_me:9490: \$? = $ac_status" >&5
9491 (exit $ac_status); }; }; then
9492 cf_cv_func_vsscanf=vfscanf
9494 echo "$as_me: failed program was:" >&5
9495 cat conftest.$ac_ext >&5
9497 cat >conftest.$ac_ext <<_ACEOF
9498 #line 9498 "configure"
9499 #include "confdefs.h"
9510 strbuf._flag = _IOREAD;
9511 strbuf._ptr = strbuf._base = (unsigned char *) str;
9512 strbuf._cnt = strlen(str);
9513 strbuf._file = _NFILE;
9514 return (_doscan(&strbuf, "%d", ap))
9519 rm -f conftest.$ac_objext conftest$ac_exeext
9520 if { (eval echo "$as_me:9520: \"$ac_link\"") >&5
9521 (eval $ac_link) 2>&5
9523 echo "$as_me:9523: \$? = $ac_status" >&5
9524 (exit $ac_status); } &&
9525 { ac_try='test -s conftest$ac_exeext'
9526 { (eval echo "$as_me:9526: \"$ac_try\"") >&5
9529 echo "$as_me:9529: \$? = $ac_status" >&5
9530 (exit $ac_status); }; }; then
9531 cf_cv_func_vsscanf=_doscan
9533 echo "$as_me: failed program was:" >&5
9534 cat conftest.$ac_ext >&5
9536 cf_cv_func_vsscanf=no
9538 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9540 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9542 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9544 echo "$as_me:9544: result: $cf_cv_func_vsscanf" >&5
9545 echo "${ECHO_T}$cf_cv_func_vsscanf" >&6
9547 case $cf_cv_func_vsscanf in #(vi
9548 vsscanf) cat >>confdefs.h <<\EOF
9549 #define HAVE_VSSCANF 1
9552 vfscanf) cat >>confdefs.h <<\EOF
9553 #define HAVE_VFSCANF 1
9556 _doscan) cat >>confdefs.h <<\EOF
9557 #define HAVE__DOSCAN 1
9562 echo "$as_me:9562: checking for working mkstemp" >&5
9563 echo $ECHO_N "checking for working mkstemp... $ECHO_C" >&6
9564 if test "${cf_cv_func_mkstemp+set}" = set; then
9565 echo $ECHO_N "(cached) $ECHO_C" >&6
9569 if test "$cross_compiling" = yes; then
9570 echo "$as_me:9570: checking for mkstemp" >&5
9571 echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6
9572 if test "${ac_cv_func_mkstemp+set}" = set; then
9573 echo $ECHO_N "(cached) $ECHO_C" >&6
9575 cat >conftest.$ac_ext <<_ACEOF
9576 #line 9576 "configure"
9577 #include "confdefs.h"
9578 /* System header to define __stub macros and hopefully few prototypes,
9579 which can conflict with char mkstemp (); below. */
9581 /* Override any gcc2 internal prototype to avoid an error. */
9585 /* We use char because int might match the return type of a gcc2
9586 builtin and then its argument prototype would still apply. */
9593 /* The GNU C library defines this for functions which it implements
9594 to always fail with ENOSYS. Some functions are actually named
9595 something starting with __ and the normal name is an alias. */
9596 #if defined (__stub_mkstemp) || defined (__stub___mkstemp)
9606 rm -f conftest.$ac_objext conftest$ac_exeext
9607 if { (eval echo "$as_me:9607: \"$ac_link\"") >&5
9608 (eval $ac_link) 2>&5
9610 echo "$as_me:9610: \$? = $ac_status" >&5
9611 (exit $ac_status); } &&
9612 { ac_try='test -s conftest$ac_exeext'
9613 { (eval echo "$as_me:9613: \"$ac_try\"") >&5
9616 echo "$as_me:9616: \$? = $ac_status" >&5
9617 (exit $ac_status); }; }; then
9618 ac_cv_func_mkstemp=yes
9620 echo "$as_me: failed program was:" >&5
9621 cat conftest.$ac_ext >&5
9622 ac_cv_func_mkstemp=no
9624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9626 echo "$as_me:9626: result: $ac_cv_func_mkstemp" >&5
9627 echo "${ECHO_T}$ac_cv_func_mkstemp" >&6
9630 cat >conftest.$ac_ext <<_ACEOF
9631 #line 9631 "configure"
9632 #include "confdefs.h"
9634 #include <sys/types.h>
9638 #include <sys/stat.h>
9641 char *tmpl = "conftestXXXXXX";
9649 for (n = 0; n < 2; ++n) {
9650 strcpy(name[n], tmpl);
9651 if ((fd = mkstemp(name[n])) >= 0) {
9652 if (!strcmp(name[n], tmpl)
9653 || stat(name[n], &sb) != 0
9654 || (sb.st_mode & S_IFMT) != S_IFREG
9655 || (sb.st_mode & 077) != 0) {
9662 && !strcmp(name[0], name[1]))
9668 rm -f conftest$ac_exeext
9669 if { (eval echo "$as_me:9669: \"$ac_link\"") >&5
9670 (eval $ac_link) 2>&5
9672 echo "$as_me:9672: \$? = $ac_status" >&5
9673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9674 { (eval echo "$as_me:9674: \"$ac_try\"") >&5
9677 echo "$as_me:9677: \$? = $ac_status" >&5
9678 (exit $ac_status); }; }; then
9679 cf_cv_func_mkstemp=yes
9682 echo "$as_me: program exited with status $ac_status" >&5
9683 echo "$as_me: failed program was:" >&5
9684 cat conftest.$ac_ext >&5
9685 cf_cv_func_mkstemp=no
9688 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9692 echo "$as_me:9692: result: $cf_cv_func_mkstemp" >&5
9693 echo "${ECHO_T}$cf_cv_func_mkstemp" >&6
9694 if test "$cf_cv_func_mkstemp" = yes ; then
9695 cat >>confdefs.h <<\EOF
9696 #define HAVE_MKSTEMP 1
9701 # setup for prototype of fallback for vsscanf()
9702 if test "$cf_cv_func_vsscanf" = vsscanf ; then
9708 if test "$cross_compiling" = yes ; then
9709 { echo "$as_me:9709: WARNING: cross compiling: assume setvbuf params not reversed" >&5
9710 echo "$as_me: WARNING: cross compiling: assume setvbuf params not reversed" >&2;}
9712 echo "$as_me:9712: checking whether setvbuf arguments are reversed" >&5
9713 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
9714 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
9715 echo $ECHO_N "(cached) $ECHO_C" >&6
9717 if test "$cross_compiling" = yes; then
9718 { { echo "$as_me:9718: error: cannot run test program while cross compiling" >&5
9719 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
9720 { (exit 1); exit 1; }; }
9722 cat >conftest.$ac_ext <<_ACEOF
9723 #line 9723 "configure"
9724 #include "confdefs.h"
9726 /* If setvbuf has the reversed format, exit 0. */
9730 /* This call has the arguments reversed.
9731 A reversed system may check and see that the address of main
9732 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
9733 if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
9736 exit(0); /* Non-reversed systems segv here. */
9739 rm -f conftest$ac_exeext
9740 if { (eval echo "$as_me:9740: \"$ac_link\"") >&5
9741 (eval $ac_link) 2>&5
9743 echo "$as_me:9743: \$? = $ac_status" >&5
9744 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9745 { (eval echo "$as_me:9745: \"$ac_try\"") >&5
9748 echo "$as_me:9748: \$? = $ac_status" >&5
9749 (exit $ac_status); }; }; then
9750 ac_cv_func_setvbuf_reversed=yes
9752 echo "$as_me: program exited with status $ac_status" >&5
9753 echo "$as_me: failed program was:" >&5
9754 cat conftest.$ac_ext >&5
9755 ac_cv_func_setvbuf_reversed=no
9757 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9759 rm -f core core.* *.core
9761 echo "$as_me:9761: result: $ac_cv_func_setvbuf_reversed" >&5
9762 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
9763 if test $ac_cv_func_setvbuf_reversed = yes; then
9765 cat >>confdefs.h <<\EOF
9766 #define SETVBUF_REVERSED 1
9772 echo "$as_me:9772: checking return type of signal handlers" >&5
9773 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
9774 if test "${ac_cv_type_signal+set}" = set; then
9775 echo $ECHO_N "(cached) $ECHO_C" >&6
9777 cat >conftest.$ac_ext <<_ACEOF
9778 #line 9778 "configure"
9779 #include "confdefs.h"
9780 #include <sys/types.h>
9786 extern "C" void (*signal (int, void (*)(int)))(int);
9788 void (*signal ()) ();
9799 rm -f conftest.$ac_objext
9800 if { (eval echo "$as_me:9800: \"$ac_compile\"") >&5
9801 (eval $ac_compile) 2>&5
9803 echo "$as_me:9803: \$? = $ac_status" >&5
9804 (exit $ac_status); } &&
9805 { ac_try='test -s conftest.$ac_objext'
9806 { (eval echo "$as_me:9806: \"$ac_try\"") >&5
9809 echo "$as_me:9809: \$? = $ac_status" >&5
9810 (exit $ac_status); }; }; then
9811 ac_cv_type_signal=void
9813 echo "$as_me: failed program was:" >&5
9814 cat conftest.$ac_ext >&5
9815 ac_cv_type_signal=int
9817 rm -f conftest.$ac_objext conftest.$ac_ext
9819 echo "$as_me:9819: result: $ac_cv_type_signal" >&5
9820 echo "${ECHO_T}$ac_cv_type_signal" >&6
9822 cat >>confdefs.h <<EOF
9823 #define RETSIGTYPE $ac_cv_type_signal
9826 echo "$as_me:9826: checking for type sigaction_t" >&5
9827 echo $ECHO_N "checking for type sigaction_t... $ECHO_C" >&6
9828 if test "${cf_cv_type_sigaction+set}" = set; then
9829 echo $ECHO_N "(cached) $ECHO_C" >&6
9832 cat >conftest.$ac_ext <<_ACEOF
9833 #line 9833 "configure"
9834 #include "confdefs.h"
9845 rm -f conftest.$ac_objext
9846 if { (eval echo "$as_me:9846: \"$ac_compile\"") >&5
9847 (eval $ac_compile) 2>&5
9849 echo "$as_me:9849: \$? = $ac_status" >&5
9850 (exit $ac_status); } &&
9851 { ac_try='test -s conftest.$ac_objext'
9852 { (eval echo "$as_me:9852: \"$ac_try\"") >&5
9855 echo "$as_me:9855: \$? = $ac_status" >&5
9856 (exit $ac_status); }; }; then
9857 cf_cv_type_sigaction=yes
9859 echo "$as_me: failed program was:" >&5
9860 cat conftest.$ac_ext >&5
9861 cf_cv_type_sigaction=no
9863 rm -f conftest.$ac_objext conftest.$ac_ext
9866 echo "$as_me:9866: result: $cf_cv_type_sigaction" >&5
9867 echo "${ECHO_T}$cf_cv_type_sigaction" >&6
9868 test "$cf_cv_type_sigaction" = yes && cat >>confdefs.h <<\EOF
9869 #define HAVE_TYPE_SIGACTION 1
9872 echo "$as_me:9872: checking declaration of size-change" >&5
9873 echo $ECHO_N "checking declaration of size-change... $ECHO_C" >&6
9874 if test "${cf_cv_sizechange+set}" = set; then
9875 echo $ECHO_N "(cached) $ECHO_C" >&6
9878 cf_cv_sizechange=unknown
9879 cf_save_CPPFLAGS="$CPPFLAGS"
9881 for cf_opts in "" "NEED_PTEM_H"
9884 CPPFLAGS="$cf_save_CPPFLAGS"
9885 test -n "$cf_opts" && CPPFLAGS="$CPPFLAGS -D$cf_opts"
9886 cat >conftest.$ac_ext <<_ACEOF
9887 #line 9887 "configure"
9888 #include "confdefs.h"
9889 #include <sys/types.h>
9890 #ifdef HAVE_TERMIOS_H
9891 #include <termios.h>
9893 #ifdef HAVE_TERMIO_H
9898 /* This is a workaround for SCO: they neglected to define struct winsize in
9899 * termios.h -- it's only in termio.h and ptem.h
9901 #include <sys/stream.h>
9902 #include <sys/ptem.h>
9904 #if !defined(sun) || !defined(HAVE_TERMIOS_H)
9905 #include <sys/ioctl.h>
9913 struct ttysize win; /* FIXME: what system is this? */
9914 int y = win.ts_lines;
9915 int x = win.ts_cols;
9922 no TIOCGSIZE or TIOCGWINSZ
9923 #endif /* TIOCGWINSZ */
9924 #endif /* TIOCGSIZE */
9930 rm -f conftest.$ac_objext
9931 if { (eval echo "$as_me:9931: \"$ac_compile\"") >&5
9932 (eval $ac_compile) 2>&5
9934 echo "$as_me:9934: \$? = $ac_status" >&5
9935 (exit $ac_status); } &&
9936 { ac_try='test -s conftest.$ac_objext'
9937 { (eval echo "$as_me:9937: \"$ac_try\"") >&5
9940 echo "$as_me:9940: \$? = $ac_status" >&5
9941 (exit $ac_status); }; }; then
9942 cf_cv_sizechange=yes
9944 echo "$as_me: failed program was:" >&5
9945 cat conftest.$ac_ext >&5
9948 rm -f conftest.$ac_objext conftest.$ac_ext
9950 CPPFLAGS="$cf_save_CPPFLAGS"
9951 if test "$cf_cv_sizechange" = yes ; then
9952 echo "size-change succeeded ($cf_opts)" >&5
9953 test -n "$cf_opts" && cf_cv_sizechange="$cf_opts"
9959 echo "$as_me:9959: result: $cf_cv_sizechange" >&5
9960 echo "${ECHO_T}$cf_cv_sizechange" >&6
9961 if test "$cf_cv_sizechange" != no ; then
9962 cat >>confdefs.h <<\EOF
9963 #define HAVE_SIZECHANGE 1
9966 case $cf_cv_sizechange in #(vi
9968 cat >>confdefs.h <<EOF
9969 #define $cf_cv_sizechange 1
9976 echo "$as_me:9976: checking for memmove" >&5
9977 echo $ECHO_N "checking for memmove... $ECHO_C" >&6
9978 if test "${ac_cv_func_memmove+set}" = set; then
9979 echo $ECHO_N "(cached) $ECHO_C" >&6
9981 cat >conftest.$ac_ext <<_ACEOF
9982 #line 9982 "configure"
9983 #include "confdefs.h"
9984 /* System header to define __stub macros and hopefully few prototypes,
9985 which can conflict with char memmove (); below. */
9987 /* Override any gcc2 internal prototype to avoid an error. */
9991 /* We use char because int might match the return type of a gcc2
9992 builtin and then its argument prototype would still apply. */
9999 /* The GNU C library defines this for functions which it implements
10000 to always fail with ENOSYS. Some functions are actually named
10001 something starting with __ and the normal name is an alias. */
10002 #if defined (__stub_memmove) || defined (__stub___memmove)
10012 rm -f conftest.$ac_objext conftest$ac_exeext
10013 if { (eval echo "$as_me:10013: \"$ac_link\"") >&5
10014 (eval $ac_link) 2>&5
10016 echo "$as_me:10016: \$? = $ac_status" >&5
10017 (exit $ac_status); } &&
10018 { ac_try='test -s conftest$ac_exeext'
10019 { (eval echo "$as_me:10019: \"$ac_try\"") >&5
10020 (eval $ac_try) 2>&5
10022 echo "$as_me:10022: \$? = $ac_status" >&5
10023 (exit $ac_status); }; }; then
10024 ac_cv_func_memmove=yes
10026 echo "$as_me: failed program was:" >&5
10027 cat conftest.$ac_ext >&5
10028 ac_cv_func_memmove=no
10030 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10032 echo "$as_me:10032: result: $ac_cv_func_memmove" >&5
10033 echo "${ECHO_T}$ac_cv_func_memmove" >&6
10034 if test $ac_cv_func_memmove = yes; then
10038 echo "$as_me:10038: checking for bcopy" >&5
10039 echo $ECHO_N "checking for bcopy... $ECHO_C" >&6
10040 if test "${ac_cv_func_bcopy+set}" = set; then
10041 echo $ECHO_N "(cached) $ECHO_C" >&6
10043 cat >conftest.$ac_ext <<_ACEOF
10044 #line 10044 "configure"
10045 #include "confdefs.h"
10046 /* System header to define __stub macros and hopefully few prototypes,
10047 which can conflict with char bcopy (); below. */
10048 #include <assert.h>
10049 /* Override any gcc2 internal prototype to avoid an error. */
10053 /* We use char because int might match the return type of a gcc2
10054 builtin and then its argument prototype would still apply. */
10061 /* The GNU C library defines this for functions which it implements
10062 to always fail with ENOSYS. Some functions are actually named
10063 something starting with __ and the normal name is an alias. */
10064 #if defined (__stub_bcopy) || defined (__stub___bcopy)
10074 rm -f conftest.$ac_objext conftest$ac_exeext
10075 if { (eval echo "$as_me:10075: \"$ac_link\"") >&5
10076 (eval $ac_link) 2>&5
10078 echo "$as_me:10078: \$? = $ac_status" >&5
10079 (exit $ac_status); } &&
10080 { ac_try='test -s conftest$ac_exeext'
10081 { (eval echo "$as_me:10081: \"$ac_try\"") >&5
10082 (eval $ac_try) 2>&5
10084 echo "$as_me:10084: \$? = $ac_status" >&5
10085 (exit $ac_status); }; }; then
10086 ac_cv_func_bcopy=yes
10088 echo "$as_me: failed program was:" >&5
10089 cat conftest.$ac_ext >&5
10090 ac_cv_func_bcopy=no
10092 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10094 echo "$as_me:10094: result: $ac_cv_func_bcopy" >&5
10095 echo "${ECHO_T}$ac_cv_func_bcopy" >&6
10096 if test $ac_cv_func_bcopy = yes; then
10098 echo "$as_me:10098: checking if bcopy does overlapping moves" >&5
10099 echo $ECHO_N "checking if bcopy does overlapping moves... $ECHO_C" >&6
10100 if test "${cf_cv_good_bcopy+set}" = set; then
10101 echo $ECHO_N "(cached) $ECHO_C" >&6
10104 if test "$cross_compiling" = yes; then
10105 cf_cv_good_bcopy=unknown
10107 cat >conftest.$ac_ext <<_ACEOF
10108 #line 10108 "configure"
10109 #include "confdefs.h"
10112 static char data[] = "abcdefghijklmnopqrstuwwxyz";
10114 bcopy(data, temp, sizeof(data));
10115 bcopy(temp+10, temp, 15);
10116 bcopy(temp+5, temp+15, 10);
10117 exit (strcmp(temp, "klmnopqrstuwwxypqrstuwwxyz"));
10121 rm -f conftest$ac_exeext
10122 if { (eval echo "$as_me:10122: \"$ac_link\"") >&5
10123 (eval $ac_link) 2>&5
10125 echo "$as_me:10125: \$? = $ac_status" >&5
10126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10127 { (eval echo "$as_me:10127: \"$ac_try\"") >&5
10128 (eval $ac_try) 2>&5
10130 echo "$as_me:10130: \$? = $ac_status" >&5
10131 (exit $ac_status); }; }; then
10132 cf_cv_good_bcopy=yes
10134 echo "$as_me: program exited with status $ac_status" >&5
10135 echo "$as_me: failed program was:" >&5
10136 cat conftest.$ac_ext >&5
10137 cf_cv_good_bcopy=no
10139 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10143 echo "$as_me:10143: result: $cf_cv_good_bcopy" >&5
10144 echo "${ECHO_T}$cf_cv_good_bcopy" >&6
10147 cf_cv_good_bcopy=no
10150 if test "$cf_cv_good_bcopy" = yes ; then
10151 cat >>confdefs.h <<\EOF
10152 #define USE_OK_BCOPY 1
10156 cat >>confdefs.h <<\EOF
10157 #define USE_MY_MEMMOVE 1
10164 echo "$as_me:10164: checking if poll really works" >&5
10165 echo $ECHO_N "checking if poll really works... $ECHO_C" >&6
10166 if test "${cf_cv_working_poll+set}" = set; then
10167 echo $ECHO_N "(cached) $ECHO_C" >&6
10170 if test "$cross_compiling" = yes; then
10171 cf_cv_working_poll=unknown
10173 cat >conftest.$ac_ext <<_ACEOF
10174 #line 10174 "configure"
10175 #include "confdefs.h"
10181 #include <sys/poll.h>
10184 struct pollfd myfds;
10188 myfds.events = POLLIN;
10190 ret = poll(&myfds, 1, 100);
10194 rm -f conftest$ac_exeext
10195 if { (eval echo "$as_me:10195: \"$ac_link\"") >&5
10196 (eval $ac_link) 2>&5
10198 echo "$as_me:10198: \$? = $ac_status" >&5
10199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10200 { (eval echo "$as_me:10200: \"$ac_try\"") >&5
10201 (eval $ac_try) 2>&5
10203 echo "$as_me:10203: \$? = $ac_status" >&5
10204 (exit $ac_status); }; }; then
10205 cf_cv_working_poll=yes
10207 echo "$as_me: program exited with status $ac_status" >&5
10208 echo "$as_me: failed program was:" >&5
10209 cat conftest.$ac_ext >&5
10210 cf_cv_working_poll=no
10212 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10215 echo "$as_me:10215: result: $cf_cv_working_poll" >&5
10216 echo "${ECHO_T}$cf_cv_working_poll" >&6
10217 test "$cf_cv_working_poll" = "yes" && cat >>confdefs.h <<\EOF
10218 #define HAVE_WORKING_POLL 1
10221 if test -z "$cf_user_CFLAGS" ; then
10222 CFLAGS=`echo ${CFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
10223 CXXFLAGS=`echo ${CXXFLAGS} | sed -e 's%-g %%' -e 's%-g$%%'`
10226 # Just in case, check if the C compiler has a bool type.
10228 echo "$as_me:10228: checking if we should include stdbool.h" >&5
10229 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
10231 if test "${cf_cv_header_stdbool_h+set}" = set; then
10232 echo $ECHO_N "(cached) $ECHO_C" >&6
10235 cat >conftest.$ac_ext <<_ACEOF
10236 #line 10236 "configure"
10237 #include "confdefs.h"
10247 rm -f conftest.$ac_objext
10248 if { (eval echo "$as_me:10248: \"$ac_compile\"") >&5
10249 (eval $ac_compile) 2>&5
10251 echo "$as_me:10251: \$? = $ac_status" >&5
10252 (exit $ac_status); } &&
10253 { ac_try='test -s conftest.$ac_objext'
10254 { (eval echo "$as_me:10254: \"$ac_try\"") >&5
10255 (eval $ac_try) 2>&5
10257 echo "$as_me:10257: \$? = $ac_status" >&5
10258 (exit $ac_status); }; }; then
10259 cf_cv_header_stdbool_h=0
10261 echo "$as_me: failed program was:" >&5
10262 cat conftest.$ac_ext >&5
10263 cat >conftest.$ac_ext <<_ACEOF
10264 #line 10264 "configure"
10265 #include "confdefs.h"
10268 #include <stdbool.h>
10279 rm -f conftest.$ac_objext
10280 if { (eval echo "$as_me:10280: \"$ac_compile\"") >&5
10281 (eval $ac_compile) 2>&5
10283 echo "$as_me:10283: \$? = $ac_status" >&5
10284 (exit $ac_status); } &&
10285 { ac_try='test -s conftest.$ac_objext'
10286 { (eval echo "$as_me:10286: \"$ac_try\"") >&5
10287 (eval $ac_try) 2>&5
10289 echo "$as_me:10289: \$? = $ac_status" >&5
10290 (exit $ac_status); }; }; then
10291 cf_cv_header_stdbool_h=1
10293 echo "$as_me: failed program was:" >&5
10294 cat conftest.$ac_ext >&5
10295 cf_cv_header_stdbool_h=0
10297 rm -f conftest.$ac_objext conftest.$ac_ext
10299 rm -f conftest.$ac_objext conftest.$ac_ext
10302 if test "$cf_cv_header_stdbool_h" = 1
10303 then echo "$as_me:10303: result: yes" >&5
10304 echo "${ECHO_T}yes" >&6
10305 else echo "$as_me:10305: result: no" >&5
10306 echo "${ECHO_T}no" >&6
10309 echo "$as_me:10309: checking for builtin bool type" >&5
10310 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
10312 if test "${cf_cv_cc_bool_type+set}" = set; then
10313 echo $ECHO_N "(cached) $ECHO_C" >&6
10316 cat >conftest.$ac_ext <<_ACEOF
10317 #line 10317 "configure"
10318 #include "confdefs.h"
10321 #include <sys/types.h>
10331 rm -f conftest.$ac_objext
10332 if { (eval echo "$as_me:10332: \"$ac_compile\"") >&5
10333 (eval $ac_compile) 2>&5
10335 echo "$as_me:10335: \$? = $ac_status" >&5
10336 (exit $ac_status); } &&
10337 { ac_try='test -s conftest.$ac_objext'
10338 { (eval echo "$as_me:10338: \"$ac_try\"") >&5
10339 (eval $ac_try) 2>&5
10341 echo "$as_me:10341: \$? = $ac_status" >&5
10342 (exit $ac_status); }; }; then
10343 cf_cv_cc_bool_type=1
10345 echo "$as_me: failed program was:" >&5
10346 cat conftest.$ac_ext >&5
10347 cf_cv_cc_bool_type=0
10349 rm -f conftest.$ac_objext conftest.$ac_ext
10353 if test "$cf_cv_cc_bool_type" = 1
10354 then echo "$as_me:10354: result: yes" >&5
10355 echo "${ECHO_T}yes" >&6
10356 else echo "$as_me:10356: result: no" >&5
10357 echo "${ECHO_T}no" >&6
10360 # Check for C++ compiler characteristics (and ensure that it's there!)
10361 if test -n "$CXX" ; then
10363 ac_cpp='$CXXCPP $CPPFLAGS'
10364 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10365 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10366 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10368 if test -n "$GXX" ; then
10369 case $cf_cv_system_name in #(vi
10371 cf_stdcpp_libname=stdcpp
10374 cf_stdcpp_libname=stdc++
10377 echo "$as_me:10377: checking for library $cf_stdcpp_libname" >&5
10378 echo $ECHO_N "checking for library $cf_stdcpp_libname... $ECHO_C" >&6
10379 if test "${cf_cv_libstdcpp+set}" = set; then
10380 echo $ECHO_N "(cached) $ECHO_C" >&6
10384 LIBS="$LIBS -l$cf_stdcpp_libname"
10385 cat >conftest.$ac_ext <<_ACEOF
10386 #line 10386 "configure"
10387 #include "confdefs.h"
10389 #include <strstream.h>
10395 strstreambuf foo(buf, sizeof(buf))
10401 rm -f conftest.$ac_objext conftest$ac_exeext
10402 if { (eval echo "$as_me:10402: \"$ac_link\"") >&5
10403 (eval $ac_link) 2>&5
10405 echo "$as_me:10405: \$? = $ac_status" >&5
10406 (exit $ac_status); } &&
10407 { ac_try='test -s conftest$ac_exeext'
10408 { (eval echo "$as_me:10408: \"$ac_try\"") >&5
10409 (eval $ac_try) 2>&5
10411 echo "$as_me:10411: \$? = $ac_status" >&5
10412 (exit $ac_status); }; }; then
10413 cf_cv_libstdcpp=yes
10415 echo "$as_me: failed program was:" >&5
10416 cat conftest.$ac_ext >&5
10419 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10423 echo "$as_me:10423: result: $cf_cv_libstdcpp" >&5
10424 echo "${ECHO_T}$cf_cv_libstdcpp" >&6
10425 test "$cf_cv_libstdcpp" = yes && CXXLIBS="$CXXLIBS -l$cf_stdcpp_libname"
10428 case $GXX_VERSION in
10434 cf_cxx_library=unknown
10435 case $cf_cv_system_name in #(vi
10443 if test "$GXX" = yes; then
10444 echo "$as_me:10444: checking for lib$cf_gpp_libname" >&5
10445 echo $ECHO_N "checking for lib$cf_gpp_libname... $ECHO_C" >&6
10447 LIBS="$LIBS -l$cf_gpp_libname"
10448 cat >conftest.$ac_ext <<_ACEOF
10449 #line 10449 "configure"
10450 #include "confdefs.h"
10452 #include <$cf_gpp_libname/builtin.h>
10457 two_arg_error_handler_t foo2 = lib_error_handler
10462 rm -f conftest.$ac_objext conftest$ac_exeext
10463 if { (eval echo "$as_me:10463: \"$ac_link\"") >&5
10464 (eval $ac_link) 2>&5
10466 echo "$as_me:10466: \$? = $ac_status" >&5
10467 (exit $ac_status); } &&
10468 { ac_try='test -s conftest$ac_exeext'
10469 { (eval echo "$as_me:10469: \"$ac_try\"") >&5
10470 (eval $ac_try) 2>&5
10472 echo "$as_me:10472: \$? = $ac_status" >&5
10473 (exit $ac_status); }; }; then
10475 CXXLIBS="$CXXLIBS -l$cf_gpp_libname"
10476 if test "$cf_gpp_libname" = cpp ; then
10477 cat >>confdefs.h <<\EOF
10478 #define HAVE_GPP_BUILTIN_H 1
10482 cat >>confdefs.h <<\EOF
10483 #define HAVE_GXX_BUILTIN_H 1
10488 echo "$as_me: failed program was:" >&5
10489 cat conftest.$ac_ext >&5
10490 cat >conftest.$ac_ext <<_ACEOF
10491 #line 10491 "configure"
10492 #include "confdefs.h"
10494 #include <builtin.h>
10499 two_arg_error_handler_t foo2 = lib_error_handler
10504 rm -f conftest.$ac_objext conftest$ac_exeext
10505 if { (eval echo "$as_me:10505: \"$ac_link\"") >&5
10506 (eval $ac_link) 2>&5
10508 echo "$as_me:10508: \$? = $ac_status" >&5
10509 (exit $ac_status); } &&
10510 { ac_try='test -s conftest$ac_exeext'
10511 { (eval echo "$as_me:10511: \"$ac_try\"") >&5
10512 (eval $ac_try) 2>&5
10514 echo "$as_me:10514: \$? = $ac_status" >&5
10515 (exit $ac_status); }; }; then
10517 CXXLIBS="$CXXLIBS -l$cf_gpp_libname"
10518 cat >>confdefs.h <<\EOF
10519 #define HAVE_BUILTIN_H 1
10523 echo "$as_me: failed program was:" >&5
10524 cat conftest.$ac_ext >&5
10527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10529 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10531 echo "$as_me:10531: result: $cf_cxx_library" >&5
10532 echo "${ECHO_T}$cf_cxx_library" >&6
10542 ac_cpp='$CXXCPP $CPPFLAGS'
10543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10546 echo "$as_me:10546: checking how to run the C++ preprocessor" >&5
10547 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10548 if test -z "$CXXCPP"; then
10549 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10550 echo $ECHO_N "(cached) $ECHO_C" >&6
10552 # Double quotes because CXXCPP needs to be expanded
10553 for CXXCPP in "$CXX -E" "/lib/cpp"
10555 ac_preproc_ok=false
10556 for ac_cxx_preproc_warn_flag in '' yes
10558 # Use a header file that comes with gcc, so configuring glibc
10559 # with a fresh cross-compiler works.
10560 # On the NeXT, cc -E runs the code through the compiler's parser,
10561 # not just through cpp. "Syntax error" is here to catch this case.
10562 cat >conftest.$ac_ext <<_ACEOF
10563 #line 10563 "configure"
10564 #include "confdefs.h"
10565 #include <assert.h>
10568 if { (eval echo "$as_me:10568: \"$ac_cpp conftest.$ac_ext\"") >&5
10569 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10571 egrep -v '^ *\+' conftest.er1 >conftest.err
10573 cat conftest.err >&5
10574 echo "$as_me:10574: \$? = $ac_status" >&5
10575 (exit $ac_status); } >/dev/null; then
10576 if test -s conftest.err; then
10577 ac_cpp_err=$ac_cxx_preproc_warn_flag
10584 if test -z "$ac_cpp_err"; then
10587 echo "$as_me: failed program was:" >&5
10588 cat conftest.$ac_ext >&5
10589 # Broken: fails on valid input.
10592 rm -f conftest.err conftest.$ac_ext
10594 # OK, works on sane cases. Now check whether non-existent headers
10595 # can be detected and how.
10596 cat >conftest.$ac_ext <<_ACEOF
10597 #line 10597 "configure"
10598 #include "confdefs.h"
10599 #include <ac_nonexistent.h>
10601 if { (eval echo "$as_me:10601: \"$ac_cpp conftest.$ac_ext\"") >&5
10602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10604 egrep -v '^ *\+' conftest.er1 >conftest.err
10606 cat conftest.err >&5
10607 echo "$as_me:10607: \$? = $ac_status" >&5
10608 (exit $ac_status); } >/dev/null; then
10609 if test -s conftest.err; then
10610 ac_cpp_err=$ac_cxx_preproc_warn_flag
10617 if test -z "$ac_cpp_err"; then
10618 # Broken: success on invalid input.
10621 echo "$as_me: failed program was:" >&5
10622 cat conftest.$ac_ext >&5
10623 # Passes both tests.
10627 rm -f conftest.err conftest.$ac_ext
10630 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10631 rm -f conftest.err conftest.$ac_ext
10632 if $ac_preproc_ok; then
10637 ac_cv_prog_CXXCPP=$CXXCPP
10640 CXXCPP=$ac_cv_prog_CXXCPP
10642 ac_cv_prog_CXXCPP=$CXXCPP
10644 echo "$as_me:10644: result: $CXXCPP" >&5
10645 echo "${ECHO_T}$CXXCPP" >&6
10646 ac_preproc_ok=false
10647 for ac_cxx_preproc_warn_flag in '' yes
10649 # Use a header file that comes with gcc, so configuring glibc
10650 # with a fresh cross-compiler works.
10651 # On the NeXT, cc -E runs the code through the compiler's parser,
10652 # not just through cpp. "Syntax error" is here to catch this case.
10653 cat >conftest.$ac_ext <<_ACEOF
10654 #line 10654 "configure"
10655 #include "confdefs.h"
10656 #include <assert.h>
10659 if { (eval echo "$as_me:10659: \"$ac_cpp conftest.$ac_ext\"") >&5
10660 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10662 egrep -v '^ *\+' conftest.er1 >conftest.err
10664 cat conftest.err >&5
10665 echo "$as_me:10665: \$? = $ac_status" >&5
10666 (exit $ac_status); } >/dev/null; then
10667 if test -s conftest.err; then
10668 ac_cpp_err=$ac_cxx_preproc_warn_flag
10675 if test -z "$ac_cpp_err"; then
10678 echo "$as_me: failed program was:" >&5
10679 cat conftest.$ac_ext >&5
10680 # Broken: fails on valid input.
10683 rm -f conftest.err conftest.$ac_ext
10685 # OK, works on sane cases. Now check whether non-existent headers
10686 # can be detected and how.
10687 cat >conftest.$ac_ext <<_ACEOF
10688 #line 10688 "configure"
10689 #include "confdefs.h"
10690 #include <ac_nonexistent.h>
10692 if { (eval echo "$as_me:10692: \"$ac_cpp conftest.$ac_ext\"") >&5
10693 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10695 egrep -v '^ *\+' conftest.er1 >conftest.err
10697 cat conftest.err >&5
10698 echo "$as_me:10698: \$? = $ac_status" >&5
10699 (exit $ac_status); } >/dev/null; then
10700 if test -s conftest.err; then
10701 ac_cpp_err=$ac_cxx_preproc_warn_flag
10708 if test -z "$ac_cpp_err"; then
10709 # Broken: success on invalid input.
10712 echo "$as_me: failed program was:" >&5
10713 cat conftest.$ac_ext >&5
10714 # Passes both tests.
10718 rm -f conftest.err conftest.$ac_ext
10721 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10722 rm -f conftest.err conftest.$ac_ext
10723 if $ac_preproc_ok; then
10726 { { echo "$as_me:10726: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
10727 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
10728 { (exit 1); exit 1; }; }
10732 ac_cpp='$CXXCPP $CPPFLAGS'
10733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10737 for ac_header in typeinfo
10739 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10740 echo "$as_me:10740: checking for $ac_header" >&5
10741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10743 echo $ECHO_N "(cached) $ECHO_C" >&6
10745 cat >conftest.$ac_ext <<_ACEOF
10746 #line 10746 "configure"
10747 #include "confdefs.h"
10748 #include <$ac_header>
10750 if { (eval echo "$as_me:10750: \"$ac_cpp conftest.$ac_ext\"") >&5
10751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10753 egrep -v '^ *\+' conftest.er1 >conftest.err
10755 cat conftest.err >&5
10756 echo "$as_me:10756: \$? = $ac_status" >&5
10757 (exit $ac_status); } >/dev/null; then
10758 if test -s conftest.err; then
10759 ac_cpp_err=$ac_cxx_preproc_warn_flag
10766 if test -z "$ac_cpp_err"; then
10767 eval "$as_ac_Header=yes"
10769 echo "$as_me: failed program was:" >&5
10770 cat conftest.$ac_ext >&5
10771 eval "$as_ac_Header=no"
10773 rm -f conftest.err conftest.$ac_ext
10775 echo "$as_me:10775: result: `eval echo '${'$as_ac_Header'}'`" >&5
10776 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10778 cat >>confdefs.h <<EOF
10779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10785 echo "$as_me:10785: checking if we should include stdbool.h" >&5
10786 echo $ECHO_N "checking if we should include stdbool.h... $ECHO_C" >&6
10788 if test "${cf_cv_header_stdbool_h+set}" = set; then
10789 echo $ECHO_N "(cached) $ECHO_C" >&6
10792 cat >conftest.$ac_ext <<_ACEOF
10793 #line 10793 "configure"
10794 #include "confdefs.h"
10804 rm -f conftest.$ac_objext
10805 if { (eval echo "$as_me:10805: \"$ac_compile\"") >&5
10806 (eval $ac_compile) 2>&5
10808 echo "$as_me:10808: \$? = $ac_status" >&5
10809 (exit $ac_status); } &&
10810 { ac_try='test -s conftest.$ac_objext'
10811 { (eval echo "$as_me:10811: \"$ac_try\"") >&5
10812 (eval $ac_try) 2>&5
10814 echo "$as_me:10814: \$? = $ac_status" >&5
10815 (exit $ac_status); }; }; then
10816 cf_cv_header_stdbool_h=0
10818 echo "$as_me: failed program was:" >&5
10819 cat conftest.$ac_ext >&5
10820 cat >conftest.$ac_ext <<_ACEOF
10821 #line 10821 "configure"
10822 #include "confdefs.h"
10825 #include <stdbool.h>
10836 rm -f conftest.$ac_objext
10837 if { (eval echo "$as_me:10837: \"$ac_compile\"") >&5
10838 (eval $ac_compile) 2>&5
10840 echo "$as_me:10840: \$? = $ac_status" >&5
10841 (exit $ac_status); } &&
10842 { ac_try='test -s conftest.$ac_objext'
10843 { (eval echo "$as_me:10843: \"$ac_try\"") >&5
10844 (eval $ac_try) 2>&5
10846 echo "$as_me:10846: \$? = $ac_status" >&5
10847 (exit $ac_status); }; }; then
10848 cf_cv_header_stdbool_h=1
10850 echo "$as_me: failed program was:" >&5
10851 cat conftest.$ac_ext >&5
10852 cf_cv_header_stdbool_h=0
10854 rm -f conftest.$ac_objext conftest.$ac_ext
10856 rm -f conftest.$ac_objext conftest.$ac_ext
10859 if test "$cf_cv_header_stdbool_h" = 1
10860 then echo "$as_me:10860: result: yes" >&5
10861 echo "${ECHO_T}yes" >&6
10862 else echo "$as_me:10862: result: no" >&5
10863 echo "${ECHO_T}no" >&6
10866 echo "$as_me:10866: checking for builtin bool type" >&5
10867 echo $ECHO_N "checking for builtin bool type... $ECHO_C" >&6
10869 if test "${cf_cv_builtin_bool+set}" = set; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
10873 cat >conftest.$ac_ext <<_ACEOF
10874 #line 10874 "configure"
10875 #include "confdefs.h"
10878 #include <sys/types.h>
10888 rm -f conftest.$ac_objext
10889 if { (eval echo "$as_me:10889: \"$ac_compile\"") >&5
10890 (eval $ac_compile) 2>&5
10892 echo "$as_me:10892: \$? = $ac_status" >&5
10893 (exit $ac_status); } &&
10894 { ac_try='test -s conftest.$ac_objext'
10895 { (eval echo "$as_me:10895: \"$ac_try\"") >&5
10896 (eval $ac_try) 2>&5
10898 echo "$as_me:10898: \$? = $ac_status" >&5
10899 (exit $ac_status); }; }; then
10900 cf_cv_builtin_bool=1
10902 echo "$as_me: failed program was:" >&5
10903 cat conftest.$ac_ext >&5
10904 cf_cv_builtin_bool=0
10906 rm -f conftest.$ac_objext conftest.$ac_ext
10910 if test "$cf_cv_builtin_bool" = 1
10911 then echo "$as_me:10911: result: yes" >&5
10912 echo "${ECHO_T}yes" >&6
10913 else echo "$as_me:10913: result: no" >&5
10914 echo "${ECHO_T}no" >&6
10917 echo "$as_me:10917: checking for size of bool" >&5
10918 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
10919 if test "${cf_cv_type_of_bool+set}" = set; then
10920 echo $ECHO_N "(cached) $ECHO_C" >&6
10924 if test "$cross_compiling" = yes; then
10925 cf_cv_type_of_bool=unknown
10927 cat >conftest.$ac_ext <<_ACEOF
10928 #line 10928 "configure"
10929 #include "confdefs.h"
10931 #include <stdlib.h>
10934 #if defined(__cplusplus)
10936 #ifdef HAVE_GXX_BUILTIN_H
10937 #include <g++/builtin.h>
10938 #elif HAVE_GPP_BUILTIN_H
10939 #include <gpp/builtin.h>
10940 #elif HAVE_BUILTIN_H
10941 #include <builtin.h>
10946 #if $cf_cv_header_stdbool_h
10947 #include <stdbool.h>
10954 FILE *fp = fopen("cf_test.out", "w");
10957 if ((bool)(-x) >= 0)
10958 fputs("unsigned ", fp);
10959 if (sizeof(x) == sizeof(int)) fputs("int", fp);
10960 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
10961 else if (sizeof(x) == sizeof(short))fputs("short",fp);
10962 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
10969 rm -f conftest$ac_exeext
10970 if { (eval echo "$as_me:10970: \"$ac_link\"") >&5
10971 (eval $ac_link) 2>&5
10973 echo "$as_me:10973: \$? = $ac_status" >&5
10974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10975 { (eval echo "$as_me:10975: \"$ac_try\"") >&5
10976 (eval $ac_try) 2>&5
10978 echo "$as_me:10978: \$? = $ac_status" >&5
10979 (exit $ac_status); }; }; then
10980 cf_cv_type_of_bool=`cat cf_test.out`
10981 if test -z "$cf_cv_type_of_bool"; then
10982 cf_cv_type_of_bool=unknown
10985 echo "$as_me: program exited with status $ac_status" >&5
10986 echo "$as_me: failed program was:" >&5
10987 cat conftest.$ac_ext >&5
10988 cf_cv_type_of_bool=unknown
10990 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10996 echo "$as_me:10996: result: $cf_cv_type_of_bool" >&5
10997 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
10998 if test "$cf_cv_type_of_bool" = unknown ; then
10999 case .$NCURSES_BOOL in #(vi
11000 .auto|.) NCURSES_BOOL=unsigned;;
11002 { echo "$as_me:11002: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
11003 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
11004 cf_cv_type_of_bool=$NCURSES_BOOL
11007 echo "$as_me:11007: checking for special defines needed for etip.h" >&5
11008 echo $ECHO_N "checking for special defines needed for etip.h... $ECHO_C" >&6
11009 cf_save_CXXFLAGS="$CXXFLAGS"
11011 for cf_math in "" MATH_H
11013 for cf_excp in "" MATH_EXCEPTION
11015 CXXFLAGS="$cf_save_CXXFLAGS -I${srcdir}/c++ -I${srcdir}/menu -I${srcdir}/include"
11016 test -n "$cf_math" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_math}"
11017 test -n "$cf_excp" && CXXFLAGS="$CXXFLAGS -DETIP_NEEDS_${cf_excp}"
11018 cat >conftest.$ac_ext <<_ACEOF
11019 #line 11019 "configure"
11020 #include "confdefs.h"
11022 #include <etip.h.in>
11032 rm -f conftest.$ac_objext
11033 if { (eval echo "$as_me:11033: \"$ac_compile\"") >&5
11034 (eval $ac_compile) 2>&5
11036 echo "$as_me:11036: \$? = $ac_status" >&5
11037 (exit $ac_status); } &&
11038 { ac_try='test -s conftest.$ac_objext'
11039 { (eval echo "$as_me:11039: \"$ac_try\"") >&5
11040 (eval $ac_try) 2>&5
11042 echo "$as_me:11042: \$? = $ac_status" >&5
11043 (exit $ac_status); }; }; then
11045 test -n "$cf_math" && cat >>confdefs.h <<EOF
11046 #define ETIP_NEEDS_${cf_math} 1
11049 test -n "$cf_excp" && cat >>confdefs.h <<EOF
11050 #define ETIP_NEEDS_${cf_excp} 1
11053 cf_result="$cf_math $cf_excp"
11057 echo "$as_me: failed program was:" >&5
11058 cat conftest.$ac_ext >&5
11060 rm -f conftest.$ac_objext conftest.$ac_ext
11063 echo "$as_me:11063: result: $cf_result" >&5
11064 echo "${ECHO_T}$cf_result" >&6
11065 CXXFLAGS="$cf_save_CXXFLAGS"
11067 if test -n "$CXX"; then
11068 echo "$as_me:11068: checking if $CXX accepts parameter initialization" >&5
11069 echo $ECHO_N "checking if $CXX accepts parameter initialization... $ECHO_C" >&6
11070 if test "${cf_cv_cpp_param_init+set}" = set; then
11071 echo $ECHO_N "(cached) $ECHO_C" >&6
11075 ac_cpp='$CXXCPP $CPPFLAGS'
11076 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11077 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11078 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11080 if test "$cross_compiling" = yes; then
11081 cf_cv_cpp_param_init=unknown
11083 cat >conftest.$ac_ext <<_ACEOF
11084 #line 11084 "configure"
11085 #include "confdefs.h"
11095 TEST::TEST(int x = 1) // some compilers do not like second initializer
11102 rm -f conftest$ac_exeext
11103 if { (eval echo "$as_me:11103: \"$ac_link\"") >&5
11104 (eval $ac_link) 2>&5
11106 echo "$as_me:11106: \$? = $ac_status" >&5
11107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11108 { (eval echo "$as_me:11108: \"$ac_try\"") >&5
11109 (eval $ac_try) 2>&5
11111 echo "$as_me:11111: \$? = $ac_status" >&5
11112 (exit $ac_status); }; }; then
11113 cf_cv_cpp_param_init=yes
11115 echo "$as_me: program exited with status $ac_status" >&5
11116 echo "$as_me: failed program was:" >&5
11117 cat conftest.$ac_ext >&5
11118 cf_cv_cpp_param_init=no
11120 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11123 ac_cpp='$CXXCPP $CPPFLAGS'
11124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11129 echo "$as_me:11129: result: $cf_cv_cpp_param_init" >&5
11130 echo "${ECHO_T}$cf_cv_cpp_param_init" >&6
11132 test "$cf_cv_cpp_param_init" = yes && cat >>confdefs.h <<\EOF
11133 #define CPP_HAS_PARAM_INIT 1
11136 if test -n "$CXX"; then
11139 ac_cpp='$CXXCPP $CPPFLAGS'
11140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11144 for ac_header in strstream.h
11146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11147 echo "$as_me:11147: checking for $ac_header" >&5
11148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11150 echo $ECHO_N "(cached) $ECHO_C" >&6
11152 cat >conftest.$ac_ext <<_ACEOF
11153 #line 11153 "configure"
11154 #include "confdefs.h"
11155 #include <$ac_header>
11157 if { (eval echo "$as_me:11157: \"$ac_cpp conftest.$ac_ext\"") >&5
11158 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11160 egrep -v '^ *\+' conftest.er1 >conftest.err
11162 cat conftest.err >&5
11163 echo "$as_me:11163: \$? = $ac_status" >&5
11164 (exit $ac_status); } >/dev/null; then
11165 if test -s conftest.err; then
11166 ac_cpp_err=$ac_cxx_preproc_warn_flag
11173 if test -z "$ac_cpp_err"; then
11174 eval "$as_ac_Header=yes"
11176 echo "$as_me: failed program was:" >&5
11177 cat conftest.$ac_ext >&5
11178 eval "$as_ac_Header=no"
11180 rm -f conftest.err conftest.$ac_ext
11182 echo "$as_me:11182: result: `eval echo '${'$as_ac_Header'}'`" >&5
11183 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11185 cat >>confdefs.h <<EOF
11186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11192 echo "$as_me:11192: checking if $CXX supports vscan function" >&5
11193 echo $ECHO_N "checking if $CXX supports vscan function... $ECHO_C" >&6
11194 if test "${cf_cv_cpp_vscan_func+set}" = set; then
11195 echo $ECHO_N "(cached) $ECHO_C" >&6
11198 for cf_vscan_func in strstream strstream_cast stdio
11200 case $cf_vscan_func in #(vi
11201 stdio) cf_vscan_defs=USE_STDIO_VSCAN ;; #(vi
11202 strstream) cf_vscan_defs=USE_STRSTREAM_VSCAN ;;
11203 strstream_cast) cf_vscan_defs=USE_STRSTREAM_VSCAN_CAST ;;
11205 cat >conftest.$ac_ext <<_ACEOF
11206 #line 11206 "configure"
11207 #include "confdefs.h"
11210 #include <stdarg.h>
11211 #define $cf_vscan_defs 1
11212 #if defined(USE_STDIO_VSCAN)
11213 #elif defined(HAVE_STRSTREAM_H) && defined(USE_STRSTREAM_VSCAN)
11214 #include <strstream.h>
11217 int scanw(const char* fmt, ...)
11223 va_start(args, fmt);
11224 #if defined(USE_STDIO_VSCAN)
11225 if (::vsscanf(buf, fmt, args) != -1)
11227 #elif defined(USE_STRSTREAM_VSCAN)
11228 strstreambuf ss(buf, sizeof(buf));
11229 if (ss.vscan(fmt, args) != -1)
11231 #elif defined(USE_STRSTREAM_VSCAN_CAST)
11232 strstreambuf ss(buf, sizeof(buf));
11233 if (ss.vscan(fmt, (_IO_va_list)args) != -1)
11236 #error case $cf_vscan_func failed
11245 int tmp, foo = scanw("%d", &tmp)
11250 rm -f conftest.$ac_objext conftest$ac_exeext
11251 if { (eval echo "$as_me:11251: \"$ac_link\"") >&5
11252 (eval $ac_link) 2>&5
11254 echo "$as_me:11254: \$? = $ac_status" >&5
11255 (exit $ac_status); } &&
11256 { ac_try='test -s conftest$ac_exeext'
11257 { (eval echo "$as_me:11257: \"$ac_try\"") >&5
11258 (eval $ac_try) 2>&5
11260 echo "$as_me:11260: \$? = $ac_status" >&5
11261 (exit $ac_status); }; }; then
11262 cf_cv_cpp_vscan_func=$cf_vscan_func; break
11264 echo "$as_me: failed program was:" >&5
11265 cat conftest.$ac_ext >&5
11266 cf_cv_cpp_vscan_func=no
11268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11269 test "$cf_cv_cpp_vscan_func" != no && break
11273 echo "$as_me:11273: result: $cf_cv_cpp_vscan_func" >&5
11274 echo "${ECHO_T}$cf_cv_cpp_vscan_func" >&6
11277 ac_cpp='$CXXCPP $CPPFLAGS'
11278 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11279 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11280 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11284 case $cf_cv_cpp_vscan_func in #(vi
11286 cat >>confdefs.h <<\EOF
11287 #define CPP_HAS_VSCAN_FUNC 1
11290 cat >>confdefs.h <<\EOF
11291 #define USE_STDIO_VSCAN 1
11296 cat >>confdefs.h <<\EOF
11297 #define CPP_HAS_VSCAN_FUNC 1
11300 cat >>confdefs.h <<\EOF
11301 #define USE_STRSTREAM_VSCAN 1
11306 cat >>confdefs.h <<\EOF
11307 #define CPP_HAS_VSCAN_FUNC 1
11310 cat >>confdefs.h <<\EOF
11311 #define USE_STRSTREAM_VSCAN_CAST 1
11318 CXX_AR_OPTS='$(AR_OPTS)'
11319 case $cf_cv_system_name in #(vi
11321 if test "$GXX" != yes ; then
11323 CXX_AR_OPTS='-ar -o'
11327 CXXLDFLAGS="-u main"
11330 if test "$GXX" != yes ; then
11332 CXX_AR_OPTS='-xar -o'
11339 cf_cv_builtin_bool=1
11341 # Just because we are not configuring against C++ right now does not
11342 # mean that a user will not want to use C++. Some distributors disable
11343 # the C++ portion of this configuration as a shortcut (or just to avoid
11344 # compiling the demo in the c++ directory). So we need a reasonable
11345 # default for the 'bool' type.
11347 # Caveat: since the storage of the bool type is not standardized, it
11350 if test "$NCURSES_BOOL" != auto ; then
11351 cf_cv_type_of_bool=$NCURSES_AUTO
11353 if test "$cf_cv_header_stdbool_h" = 1 ; then
11355 echo "$as_me:11355: checking for size of bool" >&5
11356 echo $ECHO_N "checking for size of bool... $ECHO_C" >&6
11357 if test "${cf_cv_type_of_bool+set}" = set; then
11358 echo $ECHO_N "(cached) $ECHO_C" >&6
11362 if test "$cross_compiling" = yes; then
11363 cf_cv_type_of_bool=unknown
11365 cat >conftest.$ac_ext <<_ACEOF
11366 #line 11366 "configure"
11367 #include "confdefs.h"
11369 #include <stdlib.h>
11372 #if defined(__cplusplus)
11374 #ifdef HAVE_GXX_BUILTIN_H
11375 #include <g++/builtin.h>
11376 #elif HAVE_GPP_BUILTIN_H
11377 #include <gpp/builtin.h>
11378 #elif HAVE_BUILTIN_H
11379 #include <builtin.h>
11384 #if $cf_cv_header_stdbool_h
11385 #include <stdbool.h>
11392 FILE *fp = fopen("cf_test.out", "w");
11395 if ((bool)(-x) >= 0)
11396 fputs("unsigned ", fp);
11397 if (sizeof(x) == sizeof(int)) fputs("int", fp);
11398 else if (sizeof(x) == sizeof(char)) fputs("char", fp);
11399 else if (sizeof(x) == sizeof(short))fputs("short",fp);
11400 else if (sizeof(x) == sizeof(long)) fputs("long", fp);
11407 rm -f conftest$ac_exeext
11408 if { (eval echo "$as_me:11408: \"$ac_link\"") >&5
11409 (eval $ac_link) 2>&5
11411 echo "$as_me:11411: \$? = $ac_status" >&5
11412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11413 { (eval echo "$as_me:11413: \"$ac_try\"") >&5
11414 (eval $ac_try) 2>&5
11416 echo "$as_me:11416: \$? = $ac_status" >&5
11417 (exit $ac_status); }; }; then
11418 cf_cv_type_of_bool=`cat cf_test.out`
11419 if test -z "$cf_cv_type_of_bool"; then
11420 cf_cv_type_of_bool=unknown
11423 echo "$as_me: program exited with status $ac_status" >&5
11424 echo "$as_me: failed program was:" >&5
11425 cat conftest.$ac_ext >&5
11426 cf_cv_type_of_bool=unknown
11428 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11434 echo "$as_me:11434: result: $cf_cv_type_of_bool" >&5
11435 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
11436 if test "$cf_cv_type_of_bool" = unknown ; then
11437 case .$NCURSES_BOOL in #(vi
11438 .auto|.) NCURSES_BOOL=unsigned;;
11440 { echo "$as_me:11440: WARNING: Assuming $NCURSES_BOOL for type of bool" >&5
11441 echo "$as_me: WARNING: Assuming $NCURSES_BOOL for type of bool" >&2;}
11442 cf_cv_type_of_bool=$NCURSES_BOOL
11446 echo "$as_me:11446: checking for fallback type of bool" >&5
11447 echo $ECHO_N "checking for fallback type of bool... $ECHO_C" >&6
11448 case "$host_cpu" in #(vi
11449 i?86) cf_cv_type_of_bool=char ;; #(vi
11450 *) cf_cv_type_of_bool=int ;;
11452 echo "$as_me:11452: result: $cf_cv_type_of_bool" >&5
11453 echo "${ECHO_T}$cf_cv_type_of_bool" >&6
11458 # If the C compiler did not declare bool, and we did not determine that the C++
11459 # compiler does not declare bool, turn on an ifdef in curses.h that makes the
11460 # ncurses library use the same type as C++ bool. Note that this allows one to
11461 # specify the type of bool in a configure-script option and postpone
11462 # integration with the C++ compiler provided that the types are compatible.
11464 if test $cf_cv_cc_bool_type = 1
11466 # oops: C has a bool. Unlikely, but C++ could differ.
11468 elif test $cf_cv_builtin_bool = 0
11473 # this is the normal case
11474 USE_CXX_BOOL='defined(__cplusplus)'
11477 if test "$cf_with_ada" != "no" ; then
11478 cf_ada_make=gnatmake
11479 # Extract the first word of "$cf_ada_make", so it can be a program name with args.
11480 set dummy $cf_ada_make; ac_word=$2
11481 echo "$as_me:11481: checking for $ac_word" >&5
11482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11483 if test "${ac_cv_prog_gnat_exists+set}" = set; then
11484 echo $ECHO_N "(cached) $ECHO_C" >&6
11486 if test -n "$gnat_exists"; then
11487 ac_cv_prog_gnat_exists="$gnat_exists" # Let the user override the test.
11489 ac_save_IFS=$IFS; IFS=$ac_path_separator
11491 for ac_dir in $ac_dummy; do
11493 test -z "$ac_dir" && ac_dir=.
11494 $as_executable_p "$ac_dir/$ac_word" || continue
11495 ac_cv_prog_gnat_exists="yes"
11496 echo "$as_me:11496: found $ac_dir/$ac_word" >&5
11500 test -z "$ac_cv_prog_gnat_exists" && ac_cv_prog_gnat_exists="no"
11503 gnat_exists=$ac_cv_prog_gnat_exists
11504 if test -n "$gnat_exists"; then
11505 echo "$as_me:11505: result: $gnat_exists" >&5
11506 echo "${ECHO_T}$gnat_exists" >&6
11508 echo "$as_me:11508: result: no" >&5
11509 echo "${ECHO_T}no" >&6
11512 if test "$ac_cv_prog_gnat_exists" = no; then
11516 echo "$as_me:11516: checking for gnat version" >&5
11517 echo $ECHO_N "checking for gnat version... $ECHO_C" >&6
11518 cf_gnat_version=`${cf_ada_make-gnatmake} -v 2>&1 | grep '[0-9].[0-9][0-9]*' |\
11519 sed -e '2,$d' -e 's/[^0-9 \.]//g' -e 's/^[ ]*//' -e 's/ .*//'`
11520 echo "$as_me:11520: result: $cf_gnat_version" >&5
11521 echo "${ECHO_T}$cf_gnat_version" >&6
11523 case $cf_gnat_version in
11524 3.1[1-9]*|3.[2-9]*|[4-9].*)
11525 cf_cv_prog_gnat_correct=yes
11527 *) echo Unsupported GNAT version $cf_gnat_version. Required is 3.11 or better. Disabling Ada95 binding.
11528 cf_cv_prog_gnat_correct=no
11531 case $cf_gnat_version in
11533 cf_compile_generics=generics
11534 cf_generic_objects="\$(GENOBJS)"
11536 *) cf_compile_generics=
11537 cf_generic_objects=
11541 # Extract the first word of "m4", so it can be a program name with args.
11542 set dummy m4; ac_word=$2
11543 echo "$as_me:11543: checking for $ac_word" >&5
11544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11545 if test "${ac_cv_prog_M4_exists+set}" = set; then
11546 echo $ECHO_N "(cached) $ECHO_C" >&6
11548 if test -n "$M4_exists"; then
11549 ac_cv_prog_M4_exists="$M4_exists" # Let the user override the test.
11551 ac_save_IFS=$IFS; IFS=$ac_path_separator
11553 for ac_dir in $ac_dummy; do
11555 test -z "$ac_dir" && ac_dir=.
11556 $as_executable_p "$ac_dir/$ac_word" || continue
11557 ac_cv_prog_M4_exists="yes"
11558 echo "$as_me:11558: found $ac_dir/$ac_word" >&5
11562 test -z "$ac_cv_prog_M4_exists" && ac_cv_prog_M4_exists="no"
11565 M4_exists=$ac_cv_prog_M4_exists
11566 if test -n "$M4_exists"; then
11567 echo "$as_me:11567: result: $M4_exists" >&5
11568 echo "${ECHO_T}$M4_exists" >&6
11570 echo "$as_me:11570: result: no" >&5
11571 echo "${ECHO_T}no" >&6
11574 if test "$ac_cv_prog_M4_exists" = no; then
11575 cf_cv_prog_gnat_correct=no
11576 echo Ada95 binding required program m4 not found. Ada95 binding disabled.
11578 if test "$cf_cv_prog_gnat_correct" = yes; then
11579 echo "$as_me:11579: checking if GNAT works" >&5
11580 echo $ECHO_N "checking if GNAT works... $ECHO_C" >&6
11583 cat >>conftest.ads <<CF_EOF
11584 procedure conftest;
11586 cat >>conftest.adb <<CF_EOF
11589 procedure conftest is
11591 Text_IO.Put ("Hello World");
11593 GNAT.OS_Lib.OS_Exit (0);
11596 if ( $cf_ada_make conftest 1>&5 2>&1 ) ; then
11597 if ( ./conftest 1>&5 2>&1 ) ; then
11598 cf_cv_prog_gnat_correct=yes
11600 cf_cv_prog_gnat_correct=no
11603 cf_cv_prog_gnat_correct=no
11607 echo "$as_me:11607: result: $cf_cv_prog_gnat_correct" >&5
11608 echo "${ECHO_T}$cf_cv_prog_gnat_correct" >&6
11611 if test "$cf_cv_prog_gnat_correct" = yes; then
11612 ADAFLAGS="-O3 -gnatpn $ADAFLAGS"
11614 # Check whether --with-ada-compiler or --without-ada-compiler was given.
11615 if test "${with_ada_compiler+set}" = set; then
11616 withval="$with_ada_compiler"
11617 cf_ada_compiler=$withval
11619 cf_ada_compiler=gnatmake
11622 cf_ada_package=terminal_interface
11624 # Check whether --with-ada-include or --without-ada-include was given.
11625 if test "${with_ada_include+set}" = set; then
11626 withval="$with_ada_include"
11629 withval="${ADA_INCLUDE-$prefix/lib/ada/adainclude}"
11631 case ".$withval" in #(vi
11632 .\$\(*\)*|.\'*\'*) #(vi
11636 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
11638 .\${*prefix}*) #(vi
11639 eval withval="$withval"
11640 case ".$withval" in #(vi
11642 withval=`echo $withval | sed -e s%NONE%$ac_default_prefix%`
11647 withval=`echo $withval | sed -e s%NONE%$ac_default_prefix%`
11650 { { echo "$as_me:11650: error: expected a pathname, not \"$withval\"" >&5
11651 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
11652 { (exit 1); exit 1; }; }
11656 eval ADA_INCLUDE="$withval"
11658 # Check whether --with-ada-objects or --without-ada-objects was given.
11659 if test "${with_ada_objects+set}" = set; then
11660 withval="$with_ada_objects"
11663 withval="${ADA_OBJECTS-$prefix/lib/ada/adalib}"
11665 case ".$withval" in #(vi
11666 .\$\(*\)*|.\'*\'*) #(vi
11670 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
11672 .\${*prefix}*) #(vi
11673 eval withval="$withval"
11674 case ".$withval" in #(vi
11676 withval=`echo $withval | sed -e s%NONE%$ac_default_prefix%`
11681 withval=`echo $withval | sed -e s%NONE%$ac_default_prefix%`
11684 { { echo "$as_me:11684: error: expected a pathname, not \"$withval\"" >&5
11685 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
11686 { (exit 1); exit 1; }; }
11690 eval ADA_OBJECTS="$withval"
11695 ### Construct the library-subsets, if any, from this set of keywords:
11696 ### none, base, ext_funcs, ext_tinfo, termlib, widechar (see CF_LIB_RULES).
11697 echo "$as_me:11697: checking for library subsets" >&5
11698 echo $ECHO_N "checking for library subsets... $ECHO_C" >&6
11699 if test "$with_termlib" = yes ; then
11700 LIB_SUBSETS="termlib"
11701 test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_tinfo"
11702 LIB_SUBSETS="${LIB_SUBSETS} "
11704 LIB_SUBSETS="termlib+"
11705 test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}ext_tinfo+"
11707 LIB_SUBSETS="${LIB_SUBSETS}base"
11708 test "$with_widec" = yes && LIB_SUBSETS="${LIB_SUBSETS}+widechar"
11709 test "$with_ext_funcs" = yes && LIB_SUBSETS="${LIB_SUBSETS}+ext_funcs"
11710 echo "$as_me:11710: result: $LIB_SUBSETS" >&5
11711 echo "${ECHO_T}$LIB_SUBSETS" >&6
11713 ### Construct the list of include-directories to be generated
11715 CPPFLAGS="-I. -I../include $CPPFLAGS"
11716 if test "$srcdir" != "."; then
11717 CPPFLAGS="-I\$(srcdir)/../include $CPPFLAGS"
11719 if test "$GCC" != yes; then
11720 CPPFLAGS="$CPPFLAGS -I\$(includedir)"
11721 elif test "$includedir" != "/usr/include"; then
11722 if test "$includedir" = '${prefix}/include' ; then
11723 if test $prefix != /usr ; then
11724 CPPFLAGS="$CPPFLAGS -I\$(includedir)"
11727 CPPFLAGS="$CPPFLAGS -I\$(includedir)"
11731 ACPPFLAGS="-I. -I../../include $ACPPFLAGS"
11732 if test "$srcdir" != "."; then
11733 ACPPFLAGS="-I\$(srcdir)/../../include $ACPPFLAGS"
11735 if test "$GCC" != yes; then
11736 ACPPFLAGS="$ACPPFLAGS -I\$(includedir)"
11737 elif test "$includedir" != "/usr/include"; then
11738 if test "$includedir" = '${prefix}/include' ; then
11739 if test $prefix != /usr ; then
11740 ACPPFLAGS="$ACPPFLAGS -I\$(includedir)"
11743 ACPPFLAGS="$ACPPFLAGS -I\$(includedir)"
11747 ### Build up pieces for makefile rules
11748 echo "$as_me:11748: checking default library suffix" >&5
11749 echo $ECHO_N "checking default library suffix... $ECHO_C" >&6
11751 case $DFT_LWR_MODEL in
11752 libtool) DFT_ARG_SUFFIX='' ;;
11753 normal) DFT_ARG_SUFFIX='' ;;
11754 debug) DFT_ARG_SUFFIX='_g' ;;
11755 profile) DFT_ARG_SUFFIX='_p' ;;
11756 shared) DFT_ARG_SUFFIX='' ;;
11758 test -n "$LIB_SUFFIX" && DFT_ARG_SUFFIX="${LIB_SUFFIX}${DFT_ARG_SUFFIX}"
11759 echo "$as_me:11759: result: $DFT_ARG_SUFFIX" >&5
11760 echo "${ECHO_T}$DFT_ARG_SUFFIX" >&6
11762 echo "$as_me:11762: checking default library-dependency suffix" >&5
11763 echo $ECHO_N "checking default library-dependency suffix... $ECHO_C" >&6
11765 case $DFT_LWR_MODEL in
11766 libtool) DFT_DEP_SUFFIX='.la' ;;
11767 normal) DFT_DEP_SUFFIX='.a' ;;
11768 debug) DFT_DEP_SUFFIX='_g.a' ;;
11769 profile) DFT_DEP_SUFFIX='_p.a' ;;
11771 case $cf_cv_system_name in
11772 cygwin*) DFT_DEP_SUFFIX='.dll' ;;
11773 darwin*) DFT_DEP_SUFFIX='.dylib' ;;
11776 ia64*) DFT_DEP_SUFFIX='.so' ;;
11777 *) DFT_DEP_SUFFIX='.sl' ;;
11780 *) DFT_DEP_SUFFIX='.so' ;;
11783 test -n "$LIB_SUFFIX" && DFT_DEP_SUFFIX="${LIB_SUFFIX}${DFT_DEP_SUFFIX}"
11784 if test $DFT_LWR_MODEL = shared ; then
11785 case $cf_cv_system_name in #(vi
11787 DFT_DEP_SUFFIX=".dll.a"
11791 echo "$as_me:11791: result: $DFT_DEP_SUFFIX" >&5
11792 echo "${ECHO_T}$DFT_DEP_SUFFIX" >&6
11794 echo "$as_me:11794: checking default object directory" >&5
11795 echo $ECHO_N "checking default object directory... $ECHO_C" >&6
11797 case $DFT_LWR_MODEL in
11798 libtool) DFT_OBJ_SUBDIR='obj_lo' ;;
11799 normal) DFT_OBJ_SUBDIR='objects' ;;
11800 debug) DFT_OBJ_SUBDIR='obj_g' ;;
11801 profile) DFT_OBJ_SUBDIR='obj_p' ;;
11803 case $cf_cv_system_name in #(vi
11805 DFT_OBJ_SUBDIR='objects' ;;
11807 DFT_OBJ_SUBDIR='obj_s' ;;
11810 echo "$as_me:11810: result: $DFT_OBJ_SUBDIR" >&5
11811 echo "${ECHO_T}$DFT_OBJ_SUBDIR" >&6
11813 # libtool thinks it can make c++ shared libraries (perhaps only g++)
11814 if test "$cf_with_cxx" = yes ; then
11815 echo "$as_me:11815: checking c++ library-dependency suffix" >&5
11816 echo $ECHO_N "checking c++ library-dependency suffix... $ECHO_C" >&6
11817 if test "$with_libtool" != "no"; then
11818 CXX_LIB_SUFFIX=$DFT_DEP_SUFFIX
11822 libtool) CXX_LIB_SUFFIX='.la' ;;
11823 normal) CXX_LIB_SUFFIX='.a' ;;
11824 debug) CXX_LIB_SUFFIX='_g.a' ;;
11825 profile) CXX_LIB_SUFFIX='_p.a' ;;
11827 case $cf_cv_system_name in
11828 cygwin*) CXX_LIB_SUFFIX='.dll' ;;
11829 darwin*) CXX_LIB_SUFFIX='.dylib' ;;
11832 ia64*) CXX_LIB_SUFFIX='.so' ;;
11833 *) CXX_LIB_SUFFIX='.sl' ;;
11836 *) CXX_LIB_SUFFIX='.so' ;;
11839 test -n "$LIB_SUFFIX" && CXX_LIB_SUFFIX="${LIB_SUFFIX}${CXX_LIB_SUFFIX}"
11841 echo "$as_me:11841: result: $CXX_LIB_SUFFIX" >&5
11842 echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6
11846 TINFO_LIST="$SHLIB_LIST"
11847 if test "$with_libtool" = no ; then
11848 test "$with_termlib" = yes && SHLIB_LIST="$SHLIB_LIST -ltinfo${LIB_SUFFIX}"
11851 echo "$as_me:11851: checking where we will install curses.h" >&5
11852 echo $ECHO_N "checking where we will install curses.h... $ECHO_C" >&6
11853 test "$with_overwrite" = no && \
11854 test "x$includedir" = 'x${prefix}/include' && \
11855 includedir='$(prefix)/include/ncurses'${LIB_SUFFIX}
11856 echo "$as_me:11856: result: $includedir" >&5
11857 echo "${ECHO_T}$includedir" >&6
11859 ### Resolve a conflict between normal and wide-curses by forcing applications
11860 ### that will need libutf8 to add it to their configure script.
11861 if test "$with_overwrite" != no ; then
11862 if test "$NCURSES_LIBUTF8" = 1 ; then
11863 NCURSES_LIBUTF8='defined(HAVE_LIBUTF8_H)'
11864 { echo "$as_me:11864: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&5
11865 echo "$as_me: WARNING: Wide-character applications must define HAVE_LIBUTF8_H to include curses.h" >&2;}
11869 ### Set up low-level terminfo dependencies for makefiles. Note that we
11870 ### could override this.
11871 if test "$with_termlib" = yes ; then
11872 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${TINFO_NAME}${DFT_DEP_SUFFIX}"
11873 if test "$DFT_LWR_MODEL" = "libtool"; then
11874 TEST_ARGS="${TEST_DEPS}"
11876 TEST_ARGS="-l${TINFO_NAME}${DFT_ARG_SUFFIX}"
11879 PROG_DEPS="$TEST_DEPS"
11880 PROG_ARGS="$TEST_ARGS"
11882 ### predefined stuff for the test programs
11883 cat >>confdefs.h <<\EOF
11884 #define HAVE_SLK_COLOR 1
11887 ### Construct the list of subdirectories for which we'll customize makefiles
11888 ### with the appropriate compile-rules.
11890 echo "$as_me:11890: checking for src modules" >&5
11891 echo $ECHO_N "checking for src modules... $ECHO_C" >&6
11893 # dependencies and linker-arguments for test-programs
11894 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${LIB_NAME}${DFT_DEP_SUFFIX} $TEST_DEPS"
11895 if test "$DFT_LWR_MODEL" = "libtool"; then
11896 TEST_ARGS="${TEST_DEPS}"
11898 TEST_ARGS="-l${LIB_NAME}${DFT_ARG_SUFFIX} $TEST_ARGS"
11901 # dependencies and linker-arguments for utility-programs
11902 test "$with_termlib" != yes && PROG_ARGS="$TEST_ARGS"
11905 for cf_dir in $modules_to_build
11907 if test -f $srcdir/$cf_dir/modules; then
11909 # We may/may not have tack in the distribution, though the
11911 if test $cf_dir = tack ; then
11912 if test ! -f $srcdir/${cf_dir}/${cf_dir}.h; then
11917 if test -z "$cf_cv_src_modules"; then
11918 cf_cv_src_modules=$cf_dir
11920 cf_cv_src_modules="$cf_cv_src_modules $cf_dir"
11923 # Make the ncurses_cfg.h file record the library interface files as
11924 # well. These are header files that are the same name as their
11925 # directory. Ncurses is the only library that does not follow
11927 if test $cf_dir = tack ; then
11929 elif test -f $srcdir/${cf_dir}/${cf_dir}.h; then
11931 cf_have_include=`echo "$cf_dir" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
11933 cat >>confdefs.h <<EOF
11934 #define HAVE_${cf_have_include}_H 1
11937 cat >>confdefs.h <<EOF
11938 #define HAVE_LIB${cf_have_include} 1
11941 TEST_DEPS="${LIB_DIR}/${LIB_PREFIX}${cf_dir}${DFT_DEP_SUFFIX} $TEST_DEPS"
11942 if test "$DFT_LWR_MODEL" = "libtool"; then
11943 TEST_ARGS="${TEST_DEPS}"
11945 TEST_ARGS="-l${cf_dir}${DFT_ARG_SUFFIX} $TEST_ARGS"
11950 echo "$as_me:11950: result: $cf_cv_src_modules" >&5
11951 echo "${ECHO_T}$cf_cv_src_modules" >&6
11952 TEST_ARGS="-L${LIB_DIR} $TEST_ARGS"
11954 PROG_ARGS="-L${LIB_DIR} $PROG_ARGS"
11956 SRC_SUBDIRS="man include"
11957 for cf_dir in $cf_cv_src_modules
11959 SRC_SUBDIRS="$SRC_SUBDIRS $cf_dir"
11961 SRC_SUBDIRS="$SRC_SUBDIRS test"
11962 test -z "$MAKE_TERMINFO" && SRC_SUBDIRS="$SRC_SUBDIRS misc"
11963 test "$cf_with_cxx_binding" != no && SRC_SUBDIRS="$SRC_SUBDIRS c++"
11966 if test "$cf_cv_prog_gnat_correct" = yes && test -f $srcdir/Ada95/Makefile.in; then
11967 SRC_SUBDIRS="$SRC_SUBDIRS Ada95"
11968 ADA_SUBDIRS="gen src samples"
11972 for cf_dir in $SRC_SUBDIRS
11974 SUB_MAKEFILES="$SUB_MAKEFILES $cf_dir/Makefile"
11977 if test -n "$ADA_SUBDIRS"; then
11978 for cf_dir in $ADA_SUBDIRS
11980 SUB_MAKEFILES="$SUB_MAKEFILES Ada95/$cf_dir/Makefile"
11986 for cf_item in $cf_list_models
11990 libtool) cf_subdir='obj_lo' ;;
11991 normal) cf_subdir='objects' ;;
11992 debug) cf_subdir='obj_g' ;;
11993 profile) cf_subdir='obj_p' ;;
11995 case $cf_cv_system_name in #(vi
11997 cf_subdir='objects' ;;
11999 cf_subdir='obj_s' ;;
12003 for cf_item2 in $DIRS_TO_MAKE
12005 test $cf_item2 = $cf_subdir && break
12007 test ".$cf_item2" != ".$cf_subdir" && DIRS_TO_MAKE="$DIRS_TO_MAKE $cf_subdir"
12009 for cf_dir in $DIRS_TO_MAKE
12011 test ! -d $cf_dir && mkdir $cf_dir
12014 cat >>confdefs.h <<EOF
12015 #define NCURSES_PATHSEP '$PATHSEP'
12018 cat >>confdefs.h <<EOF
12019 #define NCURSES_VERSION_STRING "${NCURSES_MAJOR}.${NCURSES_MINOR}.${NCURSES_PATCH}"
12022 ### Now that we're done running tests, add the compiler-warnings, if any
12026 for cf_add_cflags in $EXTRA_CFLAGS
12028 case $cf_add_cflags in #(vi
12029 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
12030 case "$CPPFLAGS" in
12031 *$cf_add_cflags) #(vi
12034 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12039 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12044 if test -n "$cf_new_cflags" ; then
12046 CFLAGS="$CFLAGS $cf_new_cflags"
12049 if test -n "$cf_new_cppflags" ; then
12051 CPPFLAGS="$cf_new_cppflags $CPPFLAGS"
12054 ################################################################################
12055 test "$use_database" = yes && SUB_MAKEFILES="$SUB_MAKEFILES misc/run_tic.sh:misc/run_tic.in"
12056 ac_config_files="$ac_config_files include/MKterm.h.awk include/curses.head:include/curses.h.in include/termcap.h include/unctrl.h $SUB_MAKEFILES Makefile"
12057 ac_config_commands="$ac_config_commands default"
12058 cat >confcache <<\_ACEOF
12059 # This file is a shell script that caches the results of configure
12060 # tests run on this system so they can be shared between configure
12061 # scripts and configure runs, see configure's option --config-cache.
12062 # It is not useful on other systems. If it contains results you don't
12063 # want to keep, you may remove or edit it.
12065 # config.status only pays attention to the cache file if you give it
12066 # the --recheck option to rerun configure.
12068 # `ac_cv_env_foo' variables (set or unset) will be overriden when
12069 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12070 # following values.
12074 # The following way of writing the cache mishandles newlines in values,
12075 # but we know of no workaround that is simple, portable, and efficient.
12076 # So, don't put newlines in cache variables' values.
12077 # Ultrix sh set writes to stderr and can't be redirected directly,
12078 # and sets the high bit in the cache file unless we assign to the vars.
12081 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12083 # `set' does not quote correctly, so add quotes (double-quote
12084 # substitution turns \\\\ into \\, and sed turns \\ into \).
12087 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12090 # `set' quotes correctly as required by POSIX, so do not add quotes.
12092 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12099 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12101 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12103 if cmp -s $cache_file confcache; then :; else
12104 if test -w $cache_file; then
12105 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12106 cat confcache >$cache_file
12108 echo "not updating unwritable cache $cache_file"
12113 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12114 # Let make expand exec_prefix.
12115 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12117 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12118 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12119 # trailing colons and then remove the whole line if VPATH becomes empty
12120 # (actually we leave an empty line to preserve line numbers).
12121 if test "x$srcdir" = x.; then
12122 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12123 s/:*\$(srcdir):*/:/;
12124 s/:*\${srcdir}:*/:/;
12126 s/^\([^=]*=[ ]*\):*/\1/;
12132 DEFS=-DHAVE_CONFIG_H
12134 : ${CONFIG_STATUS=./config.status}
12135 ac_clean_files_save=$ac_clean_files
12136 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12137 { echo "$as_me:12137: creating $CONFIG_STATUS" >&5
12138 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12139 cat >$CONFIG_STATUS <<_ACEOF
12141 # Generated automatically by configure.
12142 # Run this file to recreate the current configuration.
12143 # Compiler output produced by configure, useful for debugging
12144 # configure, is in config.log if it exists.
12147 SHELL=\${CONFIG_SHELL-$SHELL}
12148 ac_cs_invocation="\$0 \$@"
12152 cat >>$CONFIG_STATUS <<\_ACEOF
12153 # Be Bourne compatible
12154 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12157 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12161 # Name of the executable.
12162 as_me=`echo "$0" |sed 's,.*[\\/],,'`
12164 if expr a : '\(a\)' >/dev/null 2>&1; then
12170 rm -f conf$$ conf$$.exe conf$$.file
12172 if ln -s conf$$.file conf$$ 2>/dev/null; then
12173 # We could just check for DJGPP; but this test a) works b) is more generic
12174 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12175 if test -f conf$$.exe; then
12176 # Don't use ln at all; we don't have any links
12181 elif ln conf$$.file conf$$ 2>/dev/null; then
12186 rm -f conf$$ conf$$.exe conf$$.file
12188 as_executable_p="test -f"
12190 # Support unset when possible.
12191 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
12198 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
12199 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
12200 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
12201 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
12202 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
12203 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
12204 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
12205 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
12208 # We need space, tab and new line, in precisely that order.
12214 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
12220 # Files that config.status was made for.
12221 if test -n "$ac_config_files"; then
12222 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12225 if test -n "$ac_config_headers"; then
12226 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12229 if test -n "$ac_config_links"; then
12230 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12233 if test -n "$ac_config_commands"; then
12234 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12237 cat >>$CONFIG_STATUS <<\EOF
12240 \`$as_me' instantiates files from templates according to the
12241 current configuration.
12243 Usage: $0 [OPTIONS] [FILE]...
12245 -h, --help print this help, then exit
12246 -V, --version print version number, then exit
12247 -d, --debug don't remove temporary files
12248 --recheck update $as_me by reconfiguring in the same conditions
12249 --file=FILE[:TEMPLATE]
12250 instantiate the configuration file FILE
12251 --header=FILE[:TEMPLATE]
12252 instantiate the configuration header FILE
12254 Configuration files:
12257 Configuration headers:
12260 Configuration commands:
12263 Report bugs to <bug-autoconf@gnu.org>."
12266 cat >>$CONFIG_STATUS <<EOF
12269 configured by $0, generated by GNU Autoconf 2.52.20030208,
12270 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12272 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12273 Free Software Foundation, Inc.
12274 This config.status script is free software; the Free Software Foundation
12275 gives unlimited permission to copy, distribute and modify it."
12280 cat >>$CONFIG_STATUS <<\EOF
12281 # If no file are specified by the user, then we need to provide default
12282 # value. By we need to know if files were specified by the user.
12288 ac_option=`expr "x$1" : 'x\([^=]*\)='`
12289 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12291 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
12295 *) # This is not an option, so the user has probably given explicit
12297 ac_need_defaults=false;;
12301 # Handling of the options.
12303 cat >>$CONFIG_STATUS <<EOF
12304 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12305 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
12306 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
12308 cat >>$CONFIG_STATUS <<\EOF
12309 --version | --vers* | -V )
12310 echo "$ac_cs_version"; exit 0 ;;
12312 # Conflict between --help and --header
12313 { { echo "$as_me:12313: error: ambiguous option: $1
12314 Try \`$0 --help' for more information." >&5
12315 echo "$as_me: error: ambiguous option: $1
12316 Try \`$0 --help' for more information." >&2;}
12317 { (exit 1); exit 1; }; };;
12318 --help | --hel | -h )
12319 echo "$ac_cs_usage"; exit 0 ;;
12320 --debug | --d* | -d )
12322 --file | --fil | --fi | --f )
12324 CONFIG_FILES="$CONFIG_FILES $1"
12325 ac_need_defaults=false;;
12326 --header | --heade | --head | --hea )
12328 CONFIG_HEADERS="$CONFIG_HEADERS $1"
12329 ac_need_defaults=false;;
12331 # This is an error.
12332 -*) { { echo "$as_me:12332: error: unrecognized option: $1
12333 Try \`$0 --help' for more information." >&5
12334 echo "$as_me: error: unrecognized option: $1
12335 Try \`$0 --help' for more information." >&2;}
12336 { (exit 1); exit 1; }; } ;;
12338 *) ac_config_targets="$ac_config_targets $1" ;;
12347 ## ----------------------- ##
12348 ## Running config.status. ##
12349 ## ----------------------- ##
12351 This file was extended by $as_me 2.52.20030208, executed with
12352 CONFIG_FILES = $CONFIG_FILES
12353 CONFIG_HEADERS = $CONFIG_HEADERS
12354 CONFIG_LINKS = $CONFIG_LINKS
12355 CONFIG_COMMANDS = $CONFIG_COMMANDS
12356 > $ac_cs_invocation
12357 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12362 cat >>$CONFIG_STATUS <<EOF
12364 # INIT-COMMANDS section.
12367 ### Special initialization commands, used to pass information from the
12368 ### configuration-run into config.status
12371 CF_LIST_MODELS="$cf_list_models"
12372 DFT_LWR_MODEL="$DFT_LWR_MODEL"
12373 LDCONFIG="$LDCONFIG"
12374 LIB_NAME="$LIB_NAME"
12375 LIB_SUBSETS="$LIB_SUBSETS"
12376 LIB_SUFFIX="$LIB_SUFFIX"
12377 LIB_TRACING="$LIB_TRACING"
12378 MAKE_TERMINFO="$MAKE_TERMINFO"
12379 NCURSES_OSPEED="$NCURSES_OSPEED"
12380 SRC_SUBDIRS="$SRC_SUBDIRS"
12381 TERMINFO="$TERMINFO"
12382 TINFO_NAME="$TINFO_NAME"
12383 WITH_CURSES_H="$with_curses_h"
12384 WITH_ECHO="$with_echo"
12385 WITH_OVERWRITE="$with_overwrite"
12386 cf_cv_abi_version="$cf_cv_abi_version"
12387 cf_cv_do_symlinks="$cf_cv_do_symlinks"
12388 cf_cv_rel_version="$cf_cv_rel_version"
12389 cf_cv_rm_so_locs="$cf_cv_rm_so_locs"
12390 cf_cv_shlib_version="$cf_cv_shlib_version"
12391 cf_cv_shlib_version_infix="$cf_cv_shlib_version_infix"
12392 cf_cv_system_name="$cf_cv_system_name"
12393 cf_with_cxx_binding="$cf_with_cxx_binding"
12399 cat >>$CONFIG_STATUS <<\EOF
12400 for ac_config_target in $ac_config_targets
12402 case "$ac_config_target" in
12403 # Handling of arguments.
12404 "include/MKterm.h.awk" ) CONFIG_FILES="$CONFIG_FILES include/MKterm.h.awk" ;;
12405 "include/curses.head" ) CONFIG_FILES="$CONFIG_FILES include/curses.head:include/curses.h.in" ;;
12406 "include/termcap.h" ) CONFIG_FILES="$CONFIG_FILES include/termcap.h" ;;
12407 "include/unctrl.h" ) CONFIG_FILES="$CONFIG_FILES include/unctrl.h" ;;
12408 "$SUB_MAKEFILES" ) CONFIG_FILES="$CONFIG_FILES $SUB_MAKEFILES" ;;
12409 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12410 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12411 "include/ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ncurses_cfg.h:include/ncurses_cfg.hin" ;;
12412 *) { { echo "$as_me:12412: error: invalid argument: $ac_config_target" >&5
12413 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12414 { (exit 1); exit 1; }; };;
12418 # If the user did not use the arguments to specify the items to instantiate,
12419 # then the envvar interface is used. Set only those that are not.
12420 # We use the long form for the default assignment because of an extremely
12421 # bizarre bug on SunOS 4.1.3.
12422 if $ac_need_defaults; then
12423 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12424 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12425 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12428 # Create a temporary directory, and hook for its removal unless debugging.
12431 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12432 trap '{ (exit 1); exit 1; }' 1 2 13 15
12435 # Create a (secure) tmp directory for tmp files.
12438 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
12439 test -n "$tmp" && test -d "$tmp"
12442 tmp=$TMPDIR/cs$$-$RANDOM
12443 (umask 077 && mkdir $tmp)
12446 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
12447 { (exit 1); exit 1; }
12452 cat >>$CONFIG_STATUS <<EOF
12455 # CONFIG_FILES section.
12458 # No need to generate the scripts if there are no CONFIG_FILES.
12459 # This happens for instance when ./config.status config.h
12460 if test -n "\$CONFIG_FILES"; then
12461 # Protect against being on the right side of a sed subst in config.status.
12462 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12463 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12464 s,@SHELL@,$SHELL,;t t
12465 s,@exec_prefix@,$exec_prefix,;t t
12466 s,@prefix@,$prefix,;t t
12467 s,@program_transform_name@,$program_transform_name,;t t
12468 s,@bindir@,$bindir,;t t
12469 s,@sbindir@,$sbindir,;t t
12470 s,@libexecdir@,$libexecdir,;t t
12471 s,@datadir@,$datadir,;t t
12472 s,@sysconfdir@,$sysconfdir,;t t
12473 s,@sharedstatedir@,$sharedstatedir,;t t
12474 s,@localstatedir@,$localstatedir,;t t
12475 s,@libdir@,$libdir,;t t
12476 s,@includedir@,$includedir,;t t
12477 s,@oldincludedir@,$oldincludedir,;t t
12478 s,@infodir@,$infodir,;t t
12479 s,@mandir@,$mandir,;t t
12480 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12481 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12482 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12483 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12484 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12485 s,@build_alias@,$build_alias,;t t
12486 s,@host_alias@,$host_alias,;t t
12487 s,@target_alias@,$target_alias,;t t
12488 s,@ECHO_C@,$ECHO_C,;t t
12489 s,@ECHO_N@,$ECHO_N,;t t
12490 s,@ECHO_T@,$ECHO_T,;t t
12491 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12492 s,@DEFS@,$DEFS,;t t
12493 s,@LIBS@,$LIBS,;t t
12494 s,@NCURSES_MAJOR@,$NCURSES_MAJOR,;t t
12495 s,@NCURSES_MINOR@,$NCURSES_MINOR,;t t
12496 s,@NCURSES_PATCH@,$NCURSES_PATCH,;t t
12497 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
12498 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
12499 s,@cf_cv_builtin_bool@,$cf_cv_builtin_bool,;t t
12500 s,@cf_cv_header_stdbool_h@,$cf_cv_header_stdbool_h,;t t
12501 s,@cf_cv_type_of_bool@,$cf_cv_type_of_bool,;t t
12502 s,@build@,$build,;t t
12503 s,@build_cpu@,$build_cpu,;t t
12504 s,@build_vendor@,$build_vendor,;t t
12505 s,@build_os@,$build_os,;t t
12506 s,@host@,$host,;t t
12507 s,@host_cpu@,$host_cpu,;t t
12508 s,@host_vendor@,$host_vendor,;t t
12509 s,@host_os@,$host_os,;t t
12510 s,@target@,$target,;t t
12511 s,@target_cpu@,$target_cpu,;t t
12512 s,@target_vendor@,$target_vendor,;t t
12513 s,@target_os@,$target_os,;t t
12515 s,@CFLAGS@,$CFLAGS,;t t
12516 s,@LDFLAGS@,$LDFLAGS,;t t
12517 s,@CPPFLAGS@,$CPPFLAGS,;t t
12518 s,@ac_ct_CC@,$ac_ct_CC,;t t
12519 s,@EXEEXT@,$EXEEXT,;t t
12520 s,@OBJEXT@,$OBJEXT,;t t
12522 s,@PROG_EXT@,$PROG_EXT,;t t
12523 s,@LDCONFIG@,$LDCONFIG,;t t
12525 s,@CXXFLAGS@,$CXXFLAGS,;t t
12526 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
12528 s,@SET_MAKE@,$SET_MAKE,;t t
12529 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12530 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12531 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12532 s,@LN_S@,$LN_S,;t t
12533 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
12534 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
12535 s,@LINT@,$LINT,;t t
12537 s,@LINT_OPTS@,$LINT_OPTS,;t t
12538 s,@RANLIB@,$RANLIB,;t t
12539 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12541 s,@ac_ct_LD@,$ac_ct_LD,;t t
12543 s,@ac_ct_AR@,$ac_ct_AR,;t t
12544 s,@AR_OPTS@,$AR_OPTS,;t t
12545 s,@cf_cv_makeflags@,$cf_cv_makeflags,;t t
12546 s,@DESTDIR@,$DESTDIR,;t t
12547 s,@BUILD_CC@,$BUILD_CC,;t t
12548 s,@BUILD_CFLAGS@,$BUILD_CFLAGS,;t t
12549 s,@BUILD_CPPFLAGS@,$BUILD_CPPFLAGS,;t t
12550 s,@BUILD_LDFLAGS@,$BUILD_LDFLAGS,;t t
12551 s,@BUILD_LIBS@,$BUILD_LIBS,;t t
12552 s,@BUILD_EXEEXT@,$BUILD_EXEEXT,;t t
12553 s,@cf_list_models@,$cf_list_models,;t t
12554 s,@LIBTOOL@,$LIBTOOL,;t t
12555 s,@LIBTOOL_CXX@,$LIBTOOL_CXX,;t t
12556 s,@LIB_CREATE@,$LIB_CREATE,;t t
12557 s,@LIB_OBJECT@,$LIB_OBJECT,;t t
12558 s,@LIB_SUFFIX@,$LIB_SUFFIX,;t t
12559 s,@LIB_PREP@,$LIB_PREP,;t t
12560 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
12561 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
12562 s,@LIB_LINK@,$LIB_LINK,;t t
12563 s,@LIB_INSTALL@,$LIB_INSTALL,;t t
12564 s,@LIB_UNINSTALL@,$LIB_UNINSTALL,;t t
12565 s,@DFT_LWR_MODEL@,$DFT_LWR_MODEL,;t t
12566 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
12567 s,@TINFO_NAME@,$TINFO_NAME,;t t
12568 s,@LIB_NAME@,$LIB_NAME,;t t
12569 s,@LIB_PREFIX@,$LIB_PREFIX,;t t
12570 s,@CC_G_OPT@,$CC_G_OPT,;t t
12571 s,@CXX_G_OPT@,$CXX_G_OPT,;t t
12572 s,@LD_MODEL@,$LD_MODEL,;t t
12573 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
12574 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
12575 s,@MK_SHARED_LIB@,$MK_SHARED_LIB,;t t
12576 s,@LINK_PROGS@,$LINK_PROGS,;t t
12577 s,@LINK_TESTS@,$LINK_TESTS,;t t
12578 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
12579 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
12580 s,@LOCAL_LDFLAGS2@,$LOCAL_LDFLAGS2,;t t
12581 s,@INSTALL_LIB@,$INSTALL_LIB,;t t
12582 s,@TERMINFO_SRC@,$TERMINFO_SRC,;t t
12583 s,@PATHSEP@,$PATHSEP,;t t
12584 s,@FALLBACK_LIST@,$FALLBACK_LIST,;t t
12585 s,@TERMINFO_DIRS@,$TERMINFO_DIRS,;t t
12586 s,@TERMINFO@,$TERMINFO,;t t
12587 s,@MAKE_TERMINFO@,$MAKE_TERMINFO,;t t
12588 s,@TERMPATH@,$TERMPATH,;t t
12589 s,@BROKEN_LINKER@,$BROKEN_LINKER,;t t
12590 s,@NCURSES_BOOL@,$NCURSES_BOOL,;t t
12591 s,@NCURSES_OSPEED@,$NCURSES_OSPEED,;t t
12592 s,@MANPAGE_RENAMES@,$MANPAGE_RENAMES,;t t
12593 s,@NCURSES_EXT_FUNCS@,$NCURSES_EXT_FUNCS,;t t
12594 s,@NCURSES_CONST@,$NCURSES_CONST,;t t
12595 s,@NCURSES_XNAMES@,$NCURSES_XNAMES,;t t
12596 s,@NCURSES_CH_T@,$NCURSES_CH_T,;t t
12597 s,@NCURSES_LIBUTF8@,$NCURSES_LIBUTF8,;t t
12598 s,@NEED_WCHAR_H@,$NEED_WCHAR_H,;t t
12599 s,@NCURSES_MBSTATE_T@,$NCURSES_MBSTATE_T,;t t
12600 s,@NCURSES_WCHAR_T@,$NCURSES_WCHAR_T,;t t
12601 s,@NCURSES_WINT_T@,$NCURSES_WINT_T,;t t
12602 s,@NCURSES_OK_WCHAR_T@,$NCURSES_OK_WCHAR_T,;t t
12603 s,@NCURSES_OK_WINT_T@,$NCURSES_OK_WINT_T,;t t
12604 s,@TERMINFO_CAPS@,$TERMINFO_CAPS,;t t
12605 s,@ECHO_LINK@,$ECHO_LINK,;t t
12606 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
12607 s,@ADA_TRACE@,$ADA_TRACE,;t t
12608 s,@MATH_LIB@,$MATH_LIB,;t t
12609 s,@cf_cv_typeof_chtype@,$cf_cv_typeof_chtype,;t t
12610 s,@cf_cv_1UL@,$cf_cv_1UL,;t t
12611 s,@HAVE_VSSCANF@,$HAVE_VSSCANF,;t t
12612 s,@CXXCPP@,$CXXCPP,;t t
12613 s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
12614 s,@CXX_AR@,$CXX_AR,;t t
12615 s,@CXX_AR_OPTS@,$CXX_AR_OPTS,;t t
12616 s,@CXXLIBS@,$CXXLIBS,;t t
12617 s,@USE_CXX_BOOL@,$USE_CXX_BOOL,;t t
12618 s,@gnat_exists@,$gnat_exists,;t t
12619 s,@M4_exists@,$M4_exists,;t t
12620 s,@cf_ada_make@,$cf_ada_make,;t t
12621 s,@cf_ada_compiler@,$cf_ada_compiler,;t t
12622 s,@cf_ada_package@,$cf_ada_package,;t t
12623 s,@ADAFLAGS@,$ADAFLAGS,;t t
12624 s,@cf_compile_generics@,$cf_compile_generics,;t t
12625 s,@cf_generic_objects@,$cf_generic_objects,;t t
12626 s,@ADA_INCLUDE@,$ADA_INCLUDE,;t t
12627 s,@ADA_OBJECTS@,$ADA_OBJECTS,;t t
12628 s,@ACPPFLAGS@,$ACPPFLAGS,;t t
12629 s,@DFT_ARG_SUFFIX@,$DFT_ARG_SUFFIX,;t t
12630 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
12631 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
12632 s,@CXX_LIB_SUFFIX@,$CXX_LIB_SUFFIX,;t t
12633 s,@EXTRA_LIBS@,$EXTRA_LIBS,;t t
12634 s,@TINFO_LIST@,$TINFO_LIST,;t t
12635 s,@SHLIB_LIST@,$SHLIB_LIST,;t t
12636 s,@TEST_DEPS@,$TEST_DEPS,;t t
12637 s,@TEST_ARGS@,$TEST_ARGS,;t t
12638 s,@PROG_ARGS@,$PROG_ARGS,;t t
12639 s,@ADA_SUBDIRS@,$ADA_SUBDIRS,;t t
12640 s,@DIRS_TO_MAKE@,$DIRS_TO_MAKE,;t t
12645 cat >>$CONFIG_STATUS <<\EOF
12646 # Split the substitutions into bite-sized pieces for seds with
12647 # small command number limits, like on Digital OSF/1 and HP-UX.
12648 ac_max_sed_lines=48
12649 ac_sed_frag=1 # Number of current file.
12650 ac_beg=1 # First line for current file.
12651 ac_end=$ac_max_sed_lines # Line after last line for current file.
12654 while $ac_more_lines; do
12655 if test $ac_beg -gt 1; then
12656 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12658 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12660 if test ! -s $tmp/subs.frag; then
12661 ac_more_lines=false
12663 # The purpose of the label and of the branching condition is to
12664 # speed up the sed processing (if there are no `@' at all, there
12665 # is no need to browse any of the substitutions).
12666 # These are the two extra sed commands mentioned above.
12668 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12669 if test -z "$ac_sed_cmds"; then
12670 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12672 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12674 ac_sed_frag=`expr $ac_sed_frag + 1`
12676 ac_end=`expr $ac_end + $ac_max_sed_lines`
12679 if test -z "$ac_sed_cmds"; then
12682 fi # test -n "$CONFIG_FILES"
12685 cat >>$CONFIG_STATUS <<\EOF
12686 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12687 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12689 - | *:- | *:-:* ) # input from stdin
12691 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12692 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12693 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12694 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12695 * ) ac_file_in=$ac_file.in ;;
12698 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12699 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12700 X"$ac_file" : 'X\(//\)[^/]' \| \
12701 X"$ac_file" : 'X\(//\)$' \| \
12702 X"$ac_file" : 'X\(/\)' \| \
12703 . : '\(.\)' 2>/dev/null ||
12705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12706 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12707 /^X\(\/\/\)$/{ s//\1/; q; }
12708 /^X\(\/\).*/{ s//\1/; q; }
12710 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12711 { case "$ac_dir" in
12712 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12716 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12717 case $as_mkdir_dir in
12718 # Skip DOS drivespec
12719 ?:) as_incr_dir=$as_mkdir_dir ;;
12721 as_incr_dir=$as_incr_dir/$as_mkdir_dir
12722 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
12727 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
12728 # A "../" for each directory in $ac_dir_suffix.
12729 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
12731 ac_dir_suffix= ac_dots=
12736 if test -z "$ac_dots"; then
12739 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
12741 [\\/]* | ?:[\\/]* )
12742 ac_srcdir=$srcdir$ac_dir_suffix;
12743 ac_top_srcdir=$srcdir ;;
12744 *) # Relative path.
12745 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
12746 ac_top_srcdir=$ac_dots$srcdir ;;
12750 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12751 *) ac_INSTALL=$ac_dots$INSTALL ;;
12754 if test x"$ac_file" != x-; then
12755 { echo "$as_me:12755: creating $ac_file" >&5
12756 echo "$as_me: creating $ac_file" >&6;}
12759 # Let's still pretend it is `configure' which instantiates (i.e., don't
12760 # use $as_me), people would be surprised to read:
12761 # /* config.h. Generated automatically by config.status. */
12762 configure_input="Generated automatically from `echo $ac_file_in |
12763 sed 's,.*/,,'` by configure."
12765 # First look for the input files in the build tree, otherwise in the
12767 ac_file_inputs=`IFS=:
12768 for f in $ac_file_in; do
12770 -) echo $tmp/stdin ;;
12772 # Absolute (can't be DOS-style, as IFS=:)
12773 test -f "$f" || { { echo "$as_me:12773: error: cannot find input file: $f" >&5
12774 echo "$as_me: error: cannot find input file: $f" >&2;}
12775 { (exit 1); exit 1; }; }
12778 if test -f "$f"; then
12781 elif test -f "$srcdir/$f"; then
12786 { { echo "$as_me:12786: error: cannot find input file: $f" >&5
12787 echo "$as_me: error: cannot find input file: $f" >&2;}
12788 { (exit 1); exit 1; }; }
12791 done` || { (exit 1); exit 1; }
12793 cat >>$CONFIG_STATUS <<EOF
12797 cat >>$CONFIG_STATUS <<\EOF
12799 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12800 s,@configure_input@,$configure_input,;t t
12801 s,@srcdir@,$ac_srcdir,;t t
12802 s,@top_srcdir@,$ac_top_srcdir,;t t
12803 s,@INSTALL@,$ac_INSTALL,;t t
12804 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12806 if test x"$ac_file" != x-; then
12807 mv $tmp/out $ac_file
12815 cat >>$CONFIG_STATUS <<\EOF
12818 # CONFIG_HEADER section.
12821 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12822 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12824 # ac_d sets the value in "#define NAME VALUE" lines.
12825 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12826 ac_dB='[ ].*$,\1#\2'
12829 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
12830 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12831 ac_iB='\([ ]\),\1#\2define\3'
12834 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12835 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12836 ac_uB='$,\1#\2define\3'
12840 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12841 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12843 - | *:- | *:-:* ) # input from stdin
12845 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12846 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12847 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12848 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12849 * ) ac_file_in=$ac_file.in ;;
12852 test x"$ac_file" != x- && { echo "$as_me:12852: creating $ac_file" >&5
12853 echo "$as_me: creating $ac_file" >&6;}
12855 # First look for the input files in the build tree, otherwise in the
12857 ac_file_inputs=`IFS=:
12858 for f in $ac_file_in; do
12860 -) echo $tmp/stdin ;;
12862 # Absolute (can't be DOS-style, as IFS=:)
12863 test -f "$f" || { { echo "$as_me:12863: error: cannot find input file: $f" >&5
12864 echo "$as_me: error: cannot find input file: $f" >&2;}
12865 { (exit 1); exit 1; }; }
12868 if test -f "$f"; then
12871 elif test -f "$srcdir/$f"; then
12876 { { echo "$as_me:12876: error: cannot find input file: $f" >&5
12877 echo "$as_me: error: cannot find input file: $f" >&2;}
12878 { (exit 1); exit 1; }; }
12881 done` || { (exit 1); exit 1; }
12882 # Remove the trailing spaces.
12883 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12887 # Transform confdefs.h into a list of #define's. We won't use it as a sed
12888 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
12889 # be either 'cat' or 'sort'.
12890 cat confdefs.h | uniq >conftest.vals
12892 # Break up conftest.vals because some shells have a limit on
12893 # the size of here documents, and old seds have small limits too.
12895 rm -f conftest.tail
12896 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
12897 while grep . conftest.vals >/dev/null
12899 # Write chunks of a limited-size here document to conftest.frag.
12900 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
12901 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
12902 echo 'CEOF' >> $CONFIG_STATUS
12903 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
12904 rm -f conftest.vals
12905 mv conftest.tail conftest.vals
12907 rm -f conftest.vals
12909 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
12911 echo ' cat >> conftest.edit <<CEOF
12912 /@DEFS@/r conftest.frag
12915 sed -f conftest.edit $tmp/in > $tmp/out
12917 mv $tmp/out $tmp/in
12918 rm -f conftest.edit conftest.frag
12919 ' >> $CONFIG_STATUS
12921 cat >>$CONFIG_STATUS <<\EOF
12922 # Let's still pretend it is `configure' which instantiates (i.e., don't
12923 # use $as_me), people would be surprised to read:
12924 # /* config.h. Generated automatically by config.status. */
12925 if test x"$ac_file" = x-; then
12926 echo "/* Generated automatically by configure. */" >$tmp/config.h
12928 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
12930 cat $tmp/in >>$tmp/config.h
12932 if test x"$ac_file" != x-; then
12933 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
12934 { echo "$as_me:12934: $ac_file is unchanged" >&5
12935 echo "$as_me: $ac_file is unchanged" >&6;}
12937 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12938 X"$ac_file" : 'X\(//\)[^/]' \| \
12939 X"$ac_file" : 'X\(//\)$' \| \
12940 X"$ac_file" : 'X\(/\)' \| \
12941 . : '\(.\)' 2>/dev/null ||
12943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12944 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12945 /^X\(\/\/\)$/{ s//\1/; q; }
12946 /^X\(\/\).*/{ s//\1/; q; }
12948 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
12949 { case "$ac_dir" in
12950 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
12954 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
12955 case $as_mkdir_dir in
12956 # Skip DOS drivespec
12957 ?:) as_incr_dir=$as_mkdir_dir ;;
12959 as_incr_dir=$as_incr_dir/$as_mkdir_dir
12960 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
12967 mv $tmp/config.h $ac_file
12971 rm -f $tmp/config.h
12975 cat >>$CONFIG_STATUS <<\EOF
12978 # CONFIG_COMMANDS section.
12980 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12981 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12982 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12987 case $cf_cv_system_name in
12988 OS/2*) LIB_PREFIX='' ;;
12989 os2*) LIB_PREFIX='' ;;
12990 *) LIB_PREFIX='lib' ;;
12992 cf_prefix=$LIB_PREFIX
12994 for cf_dir in $SRC_SUBDIRS
12996 if test -f $srcdir/$cf_dir/modules; then
13001 for cf_item in $CF_LIST_MODELS
13005 libtool) cf_suffix='.la' ;;
13006 normal) cf_suffix='.a' ;;
13007 debug) cf_suffix='_g.a' ;;
13008 profile) cf_suffix='_p.a' ;;
13010 case $cf_cv_system_name in
13011 cygwin*) cf_suffix='.dll' ;;
13012 darwin*) cf_suffix='.dylib' ;;
13015 ia64*) cf_suffix='.so' ;;
13016 *) cf_suffix='.sl' ;;
13019 *) cf_suffix='.so' ;;
13022 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
13024 if test $cf_item = shared ; then
13025 if test "$cf_cv_do_symlinks" = yes ; then
13026 case "$cf_cv_shlib_version" in #(vi
13028 case "$cf_cv_system_name" in #(vi
13029 darwin*) cf_suffix='.$(REL_VERSION)'"$cf_suffix" ;; #(vi
13030 *) cf_suffix="$cf_suffix"'.$(REL_VERSION)' ;;
13034 case "$cf_cv_system_name" in #(vi
13035 darwin*) cf_suffix='.$(ABI_VERSION)'"$cf_suffix" ;; #(vi
13036 *) cf_suffix="$cf_suffix"'.$(ABI_VERSION)' ;;
13041 # cygwin needs import library, and has unique naming convention
13042 # use autodetected ${cf_prefix} for import lib and static lib, but
13043 # use 'cyg' prefix for shared lib.
13044 if test $cf_cv_shlib_version = cygdll ; then
13045 SHARED_LIB="../lib/cyg${cf_dir}\$(ABI_VERSION).dll"
13046 IMPORT_LIB="../lib/${cf_prefix}${cf_dir}.dll.a"
13047 LIBS_TO_MAKE="$LIBS_TO_MAKE \$(SHARED_LIB) \$(IMPORT_LIB)"
13051 LIBS_TO_MAKE="$LIBS_TO_MAKE ../lib/${cf_prefix}${cf_dir}${cf_suffix}"
13054 if test $cf_dir = ncurses ; then
13055 cf_subsets="$LIB_SUBSETS"
13056 cf_termlib=`echo "$cf_subsets" |sed -e 's/ .*$//'`
13057 if test "$cf_termlib" != "$cf_subsets" ; then
13058 cf_item=`echo $LIBS_TO_MAKE |sed -e s%$LIB_NAME%$TINFO_NAME%g`
13059 LIBS_TO_MAKE="$cf_item $LIBS_TO_MAKE"
13062 cf_subsets=`echo "$LIB_SUBSETS" | sed -e 's/^termlib.* //'`
13065 sed -e "s%@LIBS_TO_MAKE@%$LIBS_TO_MAKE%" \
13066 -e "s%@IMPORT_LIB@%$IMPORT_LIB%" \
13067 -e "s%@SHARED_LIB@%$SHARED_LIB%" \
13068 $cf_dir/Makefile >$cf_dir/Makefile.out
13069 mv $cf_dir/Makefile.out $cf_dir/Makefile
13071 $AWK -f $srcdir/mk-0th.awk \
13072 libname="${cf_dir}${LIB_SUFFIX}" subsets="$LIB_SUBSETS" \
13073 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
13075 for cf_subset in $cf_subsets
13078 for cf_item in $CF_LIST_MODELS
13080 echo "Appending rules for ${cf_item} model (${cf_dir}: ${cf_subset})"
13082 CF_ITEM=`echo "$cf_item" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13085 libtool) cf_suffix='.la' ;;
13086 normal) cf_suffix='.a' ;;
13087 debug) cf_suffix='_g.a' ;;
13088 profile) cf_suffix='_p.a' ;;
13090 case $cf_cv_system_name in
13091 cygwin*) cf_suffix='.dll' ;;
13092 darwin*) cf_suffix='.dylib' ;;
13095 ia64*) cf_suffix='.so' ;;
13096 *) cf_suffix='.sl' ;;
13099 *) cf_suffix='.so' ;;
13102 test -n "$LIB_SUFFIX" && cf_suffix="${LIB_SUFFIX}${cf_suffix}"
13105 libtool) cf_subdir='obj_lo' ;;
13106 normal) cf_subdir='objects' ;;
13107 debug) cf_subdir='obj_g' ;;
13108 profile) cf_subdir='obj_p' ;;
13110 case $cf_cv_system_name in #(vi
13112 cf_subdir='objects' ;;
13114 cf_subdir='obj_s' ;;
13118 # These dependencies really are for development, not
13119 # builds, but they are useful in porting, too.
13120 cf_depend="../include/ncurses_cfg.h"
13121 if test "$srcdir" = "."; then
13124 cf_reldir="\$(srcdir)"
13127 if test -f $srcdir/$cf_dir/$cf_dir.priv.h; then
13128 cf_depend="$cf_depend $cf_reldir/$cf_dir.priv.h"
13129 elif test -f $srcdir/$cf_dir/curses.priv.h; then
13130 cf_depend="$cf_depend $cf_reldir/curses.priv.h"
13133 $AWK -f $srcdir/mk-1st.awk \
13135 traces=$LIB_TRACING \
13138 prefix=$cf_prefix \
13139 suffix=$cf_suffix \
13140 subset=$cf_subset \
13141 ShlibVer=$cf_cv_shlib_version \
13142 ShlibVerInfix=$cf_cv_shlib_version_infix \
13143 DoLinks=$cf_cv_do_symlinks \
13144 rmSoLocs=$cf_cv_rm_so_locs \
13145 ldconfig="$LDCONFIG" \
13146 overwrite=$WITH_OVERWRITE \
13147 depend="$cf_depend" \
13149 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
13150 for cf_subdir2 in $cf_subdirs lib
13152 test $cf_subdir = $cf_subdir2 && break
13154 test "${cf_subset}.${cf_subdir2}" != "${cf_subset}.${cf_subdir}" && \
13155 $AWK -f $srcdir/mk-2nd.awk \
13157 traces=$LIB_TRACING \
13160 subset=$cf_subset \
13163 $srcdir/$cf_dir/modules >>$cf_dir/Makefile
13164 cf_subdirs="$cf_subdirs $cf_subdir"
13169 echo ' cd '$cf_dir' && $(MAKE) $(CF_MFLAGS) $@' >>Makefile
13172 for cf_dir in $SRC_SUBDIRS
13174 if test -f $cf_dir/Makefile ; then
13177 echo 'libs \' >> Makefile
13178 echo 'install.libs \' >> Makefile
13179 echo 'uninstall.libs ::' >> Makefile
13180 echo ' cd '$cf_dir' && $(MAKE) $(CF_MFLAGS) $@' >> Makefile
13185 if test -f $srcdir/$cf_dir/modules; then
13187 if test -f $srcdir/$cf_dir/headers; then
13188 cat >> Makefile <<CF_EOF
13189 install.includes \\
13190 uninstall.includes \\
13193 if test "$cf_dir" != "c++" ; then
13194 echo 'lint \' >> Makefile
13196 cat >> Makefile <<CF_EOF
13202 uninstall.$cf_dir ::
13203 cd $cf_dir && \$(MAKE) \$(CF_MFLAGS) \$@
13205 elif test -f $srcdir/$cf_dir/headers; then
13206 cat >> Makefile <<CF_EOF
13211 install.includes \\
13212 uninstall.includes ::
13213 cd $cf_dir && \$(MAKE) \$(CF_MFLAGS) \$@
13218 cat >> Makefile <<CF_EOF
13222 $MAKE_TERMINFO cd misc && \$(MAKE) \$(CF_MFLAGS) \$@
13226 cd man && \$(MAKE) \$(CF_MFLAGS) \$@
13229 rm -f config.cache config.log config.status Makefile include/ncurses_cfg.h
13230 rm -f headers.sh headers.sed
13231 rm -rf \$(DIRS_TO_MAKE)
13234 # Special case: tack's manpage lives in its own directory.
13235 if test -d tack ; then
13236 if test -f $srcdir/$tack.h; then
13237 cat >> Makefile <<CF_EOF
13241 cd tack && \$(MAKE) \$(CF_MFLAGS) \$@
13246 rm -f headers.sed headers.sh
13248 echo creating headers.sh
13249 cat >headers.sh <<CF_EOF
13251 # This shell script is generated by the 'configure' script. It is invoked in a
13252 # subdirectory of the build tree. It generates a sed-script in the parent
13253 # directory that is used to adjust includes for header files that reside in a
13254 # subdirectory of /usr/include, etc.
13256 while test \$# != 3
13258 PRG="\$PRG \$1"; shift
13263 TMPSRC=\${TMPDIR-/tmp}/\`basename \$SRC\`\$\$
13264 TMPSED=\${TMPDIR-/tmp}/headers.sed\$\$
13265 echo installing \$SRC in \$DST
13267 if test $WITH_CURSES_H = yes; then
13268 cat >>headers.sh <<CF_EOF
13271 END=\`basename \$DST\`
13272 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
13274 NAME=\`basename \$i\`
13275 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
13279 echo "" >> \$TMPSED
13284 cat >>headers.sh <<CF_EOF
13287 END=\`basename \$DST\`
13288 for i in \`cat \$REF/../*/headers |fgrep -v "#"\`
13290 NAME=\`basename \$i\`
13291 if test "\$NAME" = "curses.h"
13293 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
13296 echo "s/<\$NAME>/<\$END\/\$NAME>/" >> \$TMPSED
13300 echo "s/<curses.h>/<ncurses.h>/" >> \$TMPSED
13305 cat >>headers.sh <<CF_EOF
13307 sed -f \$TMPSED \$SRC > \$TMPSRC
13308 NAME=\`basename \$SRC\`
13310 if test $WITH_CURSES_H != yes; then
13311 cat >>headers.sh <<CF_EOF
13312 test "\$NAME" = "curses.h" && NAME=ncurses.h
13315 cat >>headers.sh <<CF_EOF
13316 # Just in case someone gzip'd manpages, remove the conflicting copy.
13317 test -f \$DST/\$NAME.gz && rm -f \$DST/\$NAME.gz
13319 eval \$PRG \$TMPSRC \$DST/\$NAME
13320 rm -f \$TMPSRC \$TMPSED
13323 chmod 0755 headers.sh
13325 for cf_dir in $SRC_SUBDIRS
13327 if test -f $srcdir/$cf_dir/headers; then
13328 cat >>$cf_dir/Makefile <<CF_EOF
13329 \$(DESTDIR)\$(includedir) :
13330 sh \$(srcdir)/../mkinstalldirs \$@
13334 install.includes :: \$(AUTO_SRC) \$(DESTDIR)\$(includedir) \\
13337 for i in `cat $srcdir/$cf_dir/headers |fgrep -v "#"`
13339 test -n "$j" && echo " $j \\" >>$cf_dir/Makefile
13342 echo " $j" >>$cf_dir/Makefile
13343 for i in `cat $srcdir/$cf_dir/headers |fgrep -v "#"`
13345 echo " @ (cd \$(DESTDIR)\$(includedir) && rm -f `basename $i`) ; ../headers.sh \$(INSTALL_DATA) \$(DESTDIR)\$(includedir) \$(srcdir) $i" >>$cf_dir/Makefile
13346 test $i = curses.h && test $WITH_CURSES_H = yes && echo " @ (cd \$(DESTDIR)\$(includedir) && rm -f ncurses.h && \$(LN_S) curses.h ncurses.h)" >>$cf_dir/Makefile
13349 cat >>$cf_dir/Makefile <<CF_EOF
13353 uninstall.includes ::
13355 for i in `cat $srcdir/$cf_dir/headers |fgrep -v "#"`
13358 echo " -@ (cd \$(DESTDIR)\$(includedir) && rm -f $i)" >>$cf_dir/Makefile
13359 test $i = curses.h && echo " -@ (cd \$(DESTDIR)\$(includedir) && rm -f ncurses.h)" >>$cf_dir/Makefile
13363 if test -f $srcdir/$cf_dir/modules; then
13364 if test "$cf_dir" != "c++" ; then
13365 cat >>$cf_dir/Makefile <<"CF_EOF"
13366 depend : $(AUTO_SRC)
13367 makedepend -- $(CPPFLAGS) -- $(C_SRC)
13369 # DO NOT DELETE THIS LINE -- make depend depends on it.
13380 cat >>$CONFIG_STATUS <<\EOF
13382 { (exit 0); exit 0; }
13384 chmod +x $CONFIG_STATUS
13385 ac_clean_files=$ac_clean_files_save
13387 # configure is writing to config.log, and then calls config.status.
13388 # config.status does its own redirection, appending to config.log.
13389 # Unfortunately, on DOS this fails, as config.log is still kept open
13390 # by configure, so config.status won't be able to write to it; its
13391 # output is simply discarded. So we exec the FD to /dev/null,
13392 # effectively closing config.log, so it can be properly (re)opened and
13393 # appended to by config.status. When coming back to configure, we
13394 # need to make the FD available again.
13395 if test "$no_create" != yes; then
13398 $SHELL $CONFIG_STATUS || ac_cs_success=false
13400 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13401 # would make configure fail if this is the last instruction.
13402 $ac_cs_success || { (exit 1); exit 1; }
13404 ${MAKE-make} preinstall