2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.20101001.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Avoid depending upon Character Ranges.
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits='0123456789'
15 as_cr_alnum=$as_cr_Letters$as_cr_digits
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34 if expr a : '\(a\)' >/dev/null 2>&1; then
40 rm -f conf$$ conf$$.exe conf$$.file
42 if ln -s conf$$.file conf$$ 2>/dev/null; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe; then
46 # Don't use ln at all; we don't have any links
51 elif ln conf$$.file conf$$ 2>/dev/null; then
56 rm -f conf$$ conf$$.exe conf$$.file
58 as_executable_p="test -f"
60 # Support unset when possible.
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
78 # We need space, tab and new line, in precisely that order.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
96 ac_default_prefix=/usr/local
100 SHELL=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete. It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
107 ac_unique_file="ncurses.c"
108 # Factoring default headers for most tests.
109 ac_includes_default="\
112 # include <sys/types.h>
115 # include <sys/stat.h>
126 # if !STDC_HEADERS && HAVE_MEMORY_H
132 # include <strings.h>
135 # include <inttypes.h>
145 # Initialize some variables set by options.
147 ac_init_version=false
148 # The variables have the same names as the options, with
149 # dashes changed to underlines.
157 program_transform_name=s,x,x,
165 # Installation directory options.
166 # These are left unexpanded so users can "make install exec_prefix=/foo"
167 # and all the variables that are supposed to be based on exec_prefix
168 # by default will actually change.
169 # Use braces instead of parens because sh, perl, etc. also accept them.
170 bindir='${exec_prefix}/bin'
171 sbindir='${exec_prefix}/sbin'
172 libexecdir='${exec_prefix}/libexec'
173 datadir='${prefix}/share'
174 sysconfdir='${prefix}/etc'
175 sharedstatedir='${prefix}/com'
176 localstatedir='${prefix}/var'
177 libdir='${exec_prefix}/lib'
178 includedir='${prefix}/include'
179 oldincludedir='/usr/include'
180 infodir='${prefix}/info'
181 mandir='${prefix}/man'
183 # Identity of this package.
193 # If the previous option needs an argument, assign it.
194 if test -n "$ac_prev"; then
195 eval "$ac_prev=\$ac_option"
200 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
202 # Accept the important Cygnus configure options, so we can diagnose typos.
206 -bindir | --bindir | --bindi | --bind | --bin | --bi)
208 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
211 -build | --build | --buil | --bui | --bu)
212 ac_prev=build_alias ;;
213 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
214 build_alias=$ac_optarg ;;
216 -cache-file | --cache-file | --cache-fil | --cache-fi \
217 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
218 ac_prev=cache_file ;;
219 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
220 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
221 cache_file=$ac_optarg ;;
224 cache_file=config.cache ;;
226 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
228 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
230 datadir=$ac_optarg ;;
232 -disable-* | --disable-*)
233 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
234 # Reject names that are not valid shell variable names.
235 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
236 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
237 { (exit 1); exit 1; }; }
238 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
239 eval "enable_$ac_feature=no" ;;
241 -enable-* | --enable-*)
242 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
243 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
249 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
252 eval "enable_$ac_feature='$ac_optarg'" ;;
254 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
255 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
256 | --exec | --exe | --ex)
257 ac_prev=exec_prefix ;;
258 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
259 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
260 | --exec=* | --exe=* | --ex=*)
261 exec_prefix=$ac_optarg ;;
263 -gas | --gas | --ga | --g)
264 # Obsolete; use --with-gas.
267 -help | --help | --hel | --he | -h)
269 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
270 ac_init_help=recursive ;;
271 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
272 ac_init_help=short ;;
274 -host | --host | --hos | --ho)
275 ac_prev=host_alias ;;
276 -host=* | --host=* | --hos=* | --ho=*)
277 host_alias=$ac_optarg ;;
279 -includedir | --includedir | --includedi | --included | --include \
280 | --includ | --inclu | --incl | --inc)
281 ac_prev=includedir ;;
282 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
283 | --includ=* | --inclu=* | --incl=* | --inc=*)
284 includedir=$ac_optarg ;;
286 -infodir | --infodir | --infodi | --infod | --info | --inf)
288 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
289 infodir=$ac_optarg ;;
291 -libdir | --libdir | --libdi | --libd)
293 -libdir=* | --libdir=* | --libdi=* | --libd=*)
296 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
297 | --libexe | --libex | --libe)
298 ac_prev=libexecdir ;;
299 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
300 | --libexe=* | --libex=* | --libe=*)
301 libexecdir=$ac_optarg ;;
303 -localstatedir | --localstatedir | --localstatedi | --localstated \
304 | --localstate | --localstat | --localsta | --localst \
305 | --locals | --local | --loca | --loc | --lo)
306 ac_prev=localstatedir ;;
307 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
308 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
309 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
310 localstatedir=$ac_optarg ;;
312 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
314 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
318 # Obsolete; use --without-fp.
321 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
325 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
326 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
329 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
330 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
331 | --oldin | --oldi | --old | --ol | --o)
332 ac_prev=oldincludedir ;;
333 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
334 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
335 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
336 oldincludedir=$ac_optarg ;;
338 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
340 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
343 -program-prefix | --program-prefix | --program-prefi | --program-pref \
344 | --program-pre | --program-pr | --program-p)
345 ac_prev=program_prefix ;;
346 -program-prefix=* | --program-prefix=* | --program-prefi=* \
347 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
348 program_prefix=$ac_optarg ;;
350 -program-suffix | --program-suffix | --program-suffi | --program-suff \
351 | --program-suf | --program-su | --program-s)
352 ac_prev=program_suffix ;;
353 -program-suffix=* | --program-suffix=* | --program-suffi=* \
354 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
355 program_suffix=$ac_optarg ;;
357 -program-transform-name | --program-transform-name \
358 | --program-transform-nam | --program-transform-na \
359 | --program-transform-n | --program-transform- \
360 | --program-transform | --program-transfor \
361 | --program-transfo | --program-transf \
362 | --program-trans | --program-tran \
363 | --progr-tra | --program-tr | --program-t)
364 ac_prev=program_transform_name ;;
365 -program-transform-name=* | --program-transform-name=* \
366 | --program-transform-nam=* | --program-transform-na=* \
367 | --program-transform-n=* | --program-transform-=* \
368 | --program-transform=* | --program-transfor=* \
369 | --program-transfo=* | --program-transf=* \
370 | --program-trans=* | --program-tran=* \
371 | --progr-tra=* | --program-tr=* | --program-t=*)
372 program_transform_name=$ac_optarg ;;
374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
375 | -silent | --silent | --silen | --sile | --sil)
378 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
382 sbindir=$ac_optarg ;;
384 -sharedstatedir | --sharedstatedir | --sharedstatedi \
385 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
386 | --sharedst | --shareds | --shared | --share | --shar \
388 ac_prev=sharedstatedir ;;
389 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
390 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
393 sharedstatedir=$ac_optarg ;;
395 -site | --site | --sit)
397 -site=* | --site=* | --sit=*)
400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
405 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
406 | --syscon | --sysco | --sysc | --sys | --sy)
407 ac_prev=sysconfdir ;;
408 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
409 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
410 sysconfdir=$ac_optarg ;;
412 -target | --target | --targe | --targ | --tar | --ta | --t)
413 ac_prev=target_alias ;;
414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
415 target_alias=$ac_optarg ;;
417 -v | -verbose | --verbose | --verbos | --verbo | --verb)
420 -version | --version | --versio | --versi | --vers | -V)
424 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
425 # Reject names that are not valid shell variable names.
426 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
427 { echo "$as_me: error: invalid package name: $ac_package" >&2
428 { (exit 1); exit 1; }; }
429 ac_package=`echo $ac_package| sed 's/-/_/g'`
431 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
434 eval "with_$ac_package='$ac_optarg'" ;;
436 -without-* | --without-*)
437 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
438 # Reject names that are not valid shell variable names.
439 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
440 { echo "$as_me: error: invalid package name: $ac_package" >&2
441 { (exit 1); exit 1; }; }
442 ac_package=`echo $ac_package | sed 's/-/_/g'`
443 eval "with_$ac_package=no" ;;
446 # Obsolete; use --with-x.
449 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
450 | --x-incl | --x-inc | --x-in | --x-i)
451 ac_prev=x_includes ;;
452 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
453 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
454 x_includes=$ac_optarg ;;
456 -x-libraries | --x-libraries | --x-librarie | --x-librari \
457 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
458 ac_prev=x_libraries ;;
459 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
460 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
461 x_libraries=$ac_optarg ;;
463 -*) { echo "$as_me: error: unrecognized option: $ac_option
464 Try \`$0 --help' for more information." >&2
465 { (exit 1); exit 1; }; }
469 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
470 # Reject names that are not valid shell variable names.
471 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
472 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
473 { (exit 1); exit 1; }; }
474 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
475 eval "$ac_envvar='$ac_optarg'"
479 # FIXME: should be removed in autoconf 3.0.
480 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
481 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
482 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
483 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
489 if test -n "$ac_prev"; then
490 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
491 { echo "$as_me: error: missing argument to $ac_option" >&2
492 { (exit 1); exit 1; }; }
495 # Be sure to have absolute paths.
496 for ac_var in exec_prefix prefix
498 eval ac_val=$`echo $ac_var`
500 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
501 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
502 { (exit 1); exit 1; }; };;
506 # Be sure to have absolute paths.
507 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
508 localstatedir libdir includedir oldincludedir infodir mandir
510 eval ac_val=$`echo $ac_var`
512 [\\/$]* | ?:[\\/]* ) ;;
513 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
514 { (exit 1); exit 1; }; };;
518 # There might be people who depend on the old broken behavior: `$host'
519 # used to hold the argument of --host etc.
524 # FIXME: should be removed in autoconf 3.0.
525 if test "x$host_alias" != x; then
526 if test "x$build_alias" = x; then
527 cross_compiling=maybe
528 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
529 If a cross compiler is detected then cross compile mode will be used." >&2
530 elif test "x$build_alias" != "x$host_alias"; then
536 test -n "$host_alias" && ac_tool_prefix=$host_alias-
538 test "$silent" = yes && exec 6>/dev/null
540 # Find the source files, if location was not specified.
541 if test -z "$srcdir"; then
542 ac_srcdir_defaulted=yes
543 # Try the directory containing this script, then its parent.
545 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
548 if test ! -r $srcdir/$ac_unique_file; then
552 ac_srcdir_defaulted=no
554 if test ! -r $srcdir/$ac_unique_file; then
555 if test "$ac_srcdir_defaulted" = yes; then
556 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
557 { (exit 1); exit 1; }; }
559 { echo "$as_me: error: cannot find sources in $srcdir" >&2
560 { (exit 1); exit 1; }; }
563 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
564 ac_env_build_alias_set=${build_alias+set}
565 ac_env_build_alias_value=$build_alias
566 ac_cv_env_build_alias_set=${build_alias+set}
567 ac_cv_env_build_alias_value=$build_alias
568 ac_env_host_alias_set=${host_alias+set}
569 ac_env_host_alias_value=$host_alias
570 ac_cv_env_host_alias_set=${host_alias+set}
571 ac_cv_env_host_alias_value=$host_alias
572 ac_env_target_alias_set=${target_alias+set}
573 ac_env_target_alias_value=$target_alias
574 ac_cv_env_target_alias_set=${target_alias+set}
575 ac_cv_env_target_alias_value=$target_alias
576 ac_env_CC_set=${CC+set}
578 ac_cv_env_CC_set=${CC+set}
579 ac_cv_env_CC_value=$CC
580 ac_env_CFLAGS_set=${CFLAGS+set}
581 ac_env_CFLAGS_value=$CFLAGS
582 ac_cv_env_CFLAGS_set=${CFLAGS+set}
583 ac_cv_env_CFLAGS_value=$CFLAGS
584 ac_env_LDFLAGS_set=${LDFLAGS+set}
585 ac_env_LDFLAGS_value=$LDFLAGS
586 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
587 ac_cv_env_LDFLAGS_value=$LDFLAGS
588 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
589 ac_env_CPPFLAGS_value=$CPPFLAGS
590 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
591 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
592 ac_env_CPP_set=${CPP+set}
593 ac_env_CPP_value=$CPP
594 ac_cv_env_CPP_set=${CPP+set}
595 ac_cv_env_CPP_value=$CPP
598 # Report the --help message.
600 if test "$ac_init_help" = "long"; then
601 # Omit some internal or obsolete options to make the list less imposing.
602 # This message is too long to be a string in the A/UX 3.1 sh.
604 \`configure' configures this package to adapt to many kinds of systems.
606 Usage: $0 [OPTION]... [VAR=VALUE]...
608 To assign environment variables (e.g., CC, CFLAGS...), specify them as
609 VAR=VALUE. See below for descriptions of some of the useful variables.
611 Defaults for the options are specified in brackets.
614 -h, --help display this help and exit
615 --help=short display options specific to this package
616 --help=recursive display the short help of all the included packages
617 -V, --version display version information and exit
618 -q, --quiet, --silent do not print \`checking...' messages
619 --cache-file=FILE cache test results in FILE [disabled]
620 -C, --config-cache alias for \`--cache-file=config.cache'
621 -n, --no-create do not create output files
622 --srcdir=DIR find the sources in DIR [configure dir or \`..']
627 Installation directories:
628 --prefix=PREFIX install architecture-independent files in PREFIX
630 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
633 By default, \`make install' will install all the files in
634 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
635 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
636 for instance \`--prefix=\$HOME'.
638 For better control, use the options below.
640 Fine tuning of the installation directories:
641 --bindir=DIR user executables [EPREFIX/bin]
642 --sbindir=DIR system admin executables [EPREFIX/sbin]
643 --libexecdir=DIR program executables [EPREFIX/libexec]
644 --datadir=DIR read-only architecture-independent data [PREFIX/share]
645 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
646 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
647 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
648 --libdir=DIR object code libraries [EPREFIX/lib]
649 --includedir=DIR C header files [PREFIX/include]
650 --oldincludedir=DIR C header files for non-gcc [/usr/include]
651 --infodir=DIR info documentation [PREFIX/info]
652 --mandir=DIR man documentation [PREFIX/man]
658 --program-prefix=PREFIX prepend PREFIX to installed program names
659 --program-suffix=SUFFIX append SUFFIX to installed program names
660 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
663 --x-includes=DIR X include files are in DIR
664 --x-libraries=DIR X library files are in DIR
667 --build=BUILD configure for building on BUILD [guessed]
668 --host=HOST build programs to run on HOST [BUILD]
672 if test -n "$ac_init_help"; then
677 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
678 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
681 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
682 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
684 --disable-echo display "compiling" commands
685 --enable-warnings test: turn on gcc compiler warnings
686 --with-curses-dir=DIR directory in which (n)curses is installed
687 --with-5lib use SunOS sysv-libraries
688 --with-ncursesw use wide ncurses-libraries (installed)
689 --with-ncurses use ncurses-libraries (installed)
690 --with-pdcurses compile/link with pdcurses X11 library
691 --with-Xaw3d link with Xaw 3d library
692 --with-neXtaw link with neXT Athena library
693 --with-XawPlus link with Athena-Plus library
694 --with-pkg-config{=path} enable/disable use of pkg-config
695 --with-x use the X Window System
696 --with-ncurses-wrap-prefix naming-prefix for ncurses wrapped-variables
698 Some influential environment variables:
699 CC C compiler command
700 CFLAGS C compiler flags
701 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
702 nonstandard directory <lib dir>
703 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
704 headers in a nonstandard directory <include dir>
707 Use these variables to override the choices made by `configure' or to help
708 it to find libraries and programs with nonstandard names/locations.
713 if test "$ac_init_help" = "recursive"; then
714 # If there are subdirs, report their specific --help.
716 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
718 # A "../" for each directory in /$ac_subdir.
719 ac_dots=`echo $ac_subdir |
720 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
723 .) # No --srcdir option. We are building in place.
724 ac_sub_srcdir=$srcdir ;;
725 [\\/]* | ?:[\\/]* ) # Absolute path.
726 ac_sub_srcdir=$srcdir/$ac_subdir ;;
728 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
731 # Check for guested configure; otherwise get Cygnus style configure.
732 if test -f $ac_sub_srcdir/configure.gnu; then
734 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
735 elif test -f $ac_sub_srcdir/configure; then
737 $SHELL $ac_sub_srcdir/configure --help=recursive
738 elif test -f $ac_sub_srcdir/configure.ac ||
739 test -f $ac_sub_srcdir/configure.in; then
743 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
749 test -n "$ac_init_help" && exit 0
750 if $ac_init_version; then
753 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
754 Free Software Foundation, Inc.
755 This configure script is free software; the Free Software Foundation
756 gives unlimited permission to copy, distribute and modify it.
762 This file contains any messages produced by compilers while
763 running configure, to aid debugging if configure makes a mistake.
765 It was created by $as_me, which was
766 generated by GNU Autoconf 2.52.20101001. Invocation command line was
777 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
778 uname -m = `(uname -m) 2>/dev/null || echo unknown`
779 uname -r = `(uname -r) 2>/dev/null || echo unknown`
780 uname -s = `(uname -s) 2>/dev/null || echo unknown`
781 uname -v = `(uname -v) 2>/dev/null || echo unknown`
783 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
784 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
786 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
787 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
788 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
789 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
790 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
791 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
792 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
806 # Keep a trace of the command line.
807 # Strip out --no-create and --no-recursion so they do not pile up.
808 # Also quote any args containing shell meta-characters.
814 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
815 | --no-cr | --no-c) ;;
816 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
817 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
818 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
819 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
820 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
822 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
825 # Get rid of the leading space.
828 # When interrupted or exit'd, cleanup temporary files, and complete
829 # config.log. We remove comments because anyway the quotes in there
830 # would cause problems or look ugly.
832 # Save into config.log some information that might help in debugging.
834 echo "## ----------------- ##" >&5
835 echo "## Cache variables. ##" >&5
836 echo "## ----------------- ##" >&5
838 # The following way of writing the cache mishandles newlines in values,
841 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
844 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
845 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
849 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
853 sed "/^$/d" confdefs.h >conftest.log
854 if test -s conftest.log; then
856 echo "## ------------ ##" >&5
857 echo "## confdefs.h. ##" >&5
858 echo "## ------------ ##" >&5
863 test "$ac_signal" != 0 &&
864 echo "$as_me: caught signal $ac_signal" >&5
865 echo "$as_me: exit $exit_status" >&5
866 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
869 for ac_signal in 1 2 13 15; do
870 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
874 # confdefs.h avoids OS command line length limits that DEFS can exceed.
875 rm -rf conftest* confdefs.h
876 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
879 # Let the site file select an alternate cache file if it wants to.
880 # Prefer explicitly selected file to automatically selected ones.
881 if test -z "$CONFIG_SITE"; then
882 if test "x$prefix" != xNONE; then
883 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
885 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
888 for ac_site_file in $CONFIG_SITE; do
889 if test -r "$ac_site_file"; then
890 { echo "$as_me:890: loading site script $ac_site_file" >&5
891 echo "$as_me: loading site script $ac_site_file" >&6;}
892 cat "$ac_site_file" >&5
897 if test -r "$cache_file"; then
898 # Some versions of bash will fail to source /dev/null (special
899 # files actually), so we avoid doing that.
900 if test -f "$cache_file"; then
901 { echo "$as_me:901: loading cache $cache_file" >&5
902 echo "$as_me: loading cache $cache_file" >&6;}
904 [\\/]* | ?:[\\/]* ) . $cache_file;;
909 { echo "$as_me:909: creating cache $cache_file" >&5
910 echo "$as_me: creating cache $cache_file" >&6;}
914 # Check that the precious variables saved in the cache have kept the same
916 ac_cache_corrupted=false
917 for ac_var in `(set) 2>&1 |
918 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
919 eval ac_old_set=\$ac_cv_env_${ac_var}_set
920 eval ac_new_set=\$ac_env_${ac_var}_set
921 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
922 eval ac_new_val="\$ac_env_${ac_var}_value"
923 case $ac_old_set,$ac_new_set in
925 { echo "$as_me:925: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
926 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
927 ac_cache_corrupted=: ;;
929 { echo "$as_me:929: error: \`$ac_var' was not set in the previous run" >&5
930 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
931 ac_cache_corrupted=: ;;
934 if test "x$ac_old_val" != "x$ac_new_val"; then
935 { echo "$as_me:935: error: \`$ac_var' has changed since the previous run:" >&5
936 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
937 { echo "$as_me:937: former value: $ac_old_val" >&5
938 echo "$as_me: former value: $ac_old_val" >&2;}
939 { echo "$as_me:939: current value: $ac_new_val" >&5
940 echo "$as_me: current value: $ac_new_val" >&2;}
944 # Pass precious variables to config.status. It doesn't matter if
945 # we pass some twice (in addition to the command line arguments).
946 if test "$ac_new_set" = set; then
948 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
949 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
950 ac_configure_args="$ac_configure_args '$ac_arg'"
952 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
957 if $ac_cache_corrupted; then
958 { echo "$as_me:958: error: changes in the environment can compromise the build" >&5
959 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
960 { { echo "$as_me:960: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
961 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
962 { (exit 1); exit 1; }; }
966 ac_cpp='$CPP $CPPFLAGS'
967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
970 ac_main_return=return
972 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
973 *c*,-n*) ECHO_N= ECHO_C='
975 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
976 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
978 echo "#! $SHELL" >conftest.sh
979 echo "exit 0" >>conftest.sh
981 if { (echo "$as_me:981: PATH=\".;.\"; conftest.sh") >&5
982 (PATH=".;."; conftest.sh) 2>&5
984 echo "$as_me:984: \$? = $ac_status" >&5
985 (exit $ac_status); }; then
986 ac_path_separator=';'
990 PATH_SEPARATOR="$ac_path_separator"
993 ac_config_headers="$ac_config_headers ncurses_cfg.h:ncurses_tst.hin"
995 test -f config.guess || ( test -f ../config.guess && cp ../config.guess ./ )
997 test -f config.sub || ( test -f ../config.sub && cp ../config.sub ./ )
1000 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1001 if test -f $ac_dir/install-sh; then
1003 ac_install_sh="$ac_aux_dir/install-sh -c"
1005 elif test -f $ac_dir/install.sh; then
1007 ac_install_sh="$ac_aux_dir/install.sh -c"
1009 elif test -f $ac_dir/shtool; then
1011 ac_install_sh="$ac_aux_dir/shtool install -c"
1015 if test -z "$ac_aux_dir"; then
1016 { { echo "$as_me:1016: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1017 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1018 { (exit 1); exit 1; }; }
1020 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1021 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1022 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1024 # Make sure we can run config.sub.
1025 $ac_config_sub sun4 >/dev/null 2>&1 ||
1026 { { echo "$as_me:1026: error: cannot run $ac_config_sub" >&5
1027 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1028 { (exit 1); exit 1; }; }
1030 echo "$as_me:1030: checking build system type" >&5
1031 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1032 if test "${ac_cv_build+set}" = set; then
1033 echo $ECHO_N "(cached) $ECHO_C" >&6
1035 ac_cv_build_alias=$build_alias
1036 test -z "$ac_cv_build_alias" &&
1037 ac_cv_build_alias=`$ac_config_guess`
1038 test -z "$ac_cv_build_alias" &&
1039 { { echo "$as_me:1039: error: cannot guess build type; you must specify one" >&5
1040 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1041 { (exit 1); exit 1; }; }
1042 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1043 { { echo "$as_me:1043: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1044 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1045 { (exit 1); exit 1; }; }
1048 echo "$as_me:1048: result: $ac_cv_build" >&5
1049 echo "${ECHO_T}$ac_cv_build" >&6
1051 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1052 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1053 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1055 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1056 echo "$as_me:1056: checking host system type" >&5
1057 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1058 if test "${ac_cv_host+set}" = set; then
1059 echo $ECHO_N "(cached) $ECHO_C" >&6
1061 ac_cv_host_alias=$host_alias
1062 test -z "$ac_cv_host_alias" &&
1063 ac_cv_host_alias=$ac_cv_build_alias
1064 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1065 { { echo "$as_me:1065: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1066 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1067 { (exit 1); exit 1; }; }
1070 echo "$as_me:1070: result: $ac_cv_host" >&5
1071 echo "${ECHO_T}$ac_cv_host" >&6
1073 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1074 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1075 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1077 system_name="$host_os"
1079 system_name="`(uname -s -r) 2>/dev/null`"
1080 if test -z "$system_name" ; then
1081 system_name="`(hostname) 2>/dev/null`"
1084 test -n "$system_name" && cat >>confdefs.h <<EOF
1085 #define SYSTEM_NAME "$system_name"
1088 if test "${cf_cv_system_name+set}" = set; then
1089 echo $ECHO_N "(cached) $ECHO_C" >&6
1091 cf_cv_system_name="$system_name"
1094 test -z "$system_name" && system_name="$cf_cv_system_name"
1095 test -n "$cf_cv_system_name" && echo "$as_me:1095: result: Configuring for $cf_cv_system_name" >&5
1096 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1098 if test ".$system_name" != ".$cf_cv_system_name" ; then
1099 echo "$as_me:1099: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1100 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1101 { { echo "$as_me:1101: error: \"Please remove config.cache and try again.\"" >&5
1102 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1103 { (exit 1); exit 1; }; }
1106 test "$program_prefix" != NONE &&
1107 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1108 # Use a double $ so make ignores it.
1109 test "$program_suffix" != NONE &&
1110 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1111 # Double any \ or $. echo might interpret backslashes.
1112 # By default was `s,x,x', remove it if useless.
1113 cat <<\_ACEOF >conftest.sed
1114 s/[\\$]/&&/g;s/;s,x,x,$//
1116 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1119 echo "$as_me:1119: checking whether ${MAKE-make} sets \${MAKE}" >&5
1120 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1121 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1122 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1123 echo $ECHO_N "(cached) $ECHO_C" >&6
1125 cat >conftest.make <<\EOF
1127 @echo 'ac_maketemp="${MAKE}"'
1129 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1130 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1131 if test -n "$ac_maketemp"; then
1132 eval ac_cv_prog_make_${ac_make}_set=yes
1134 eval ac_cv_prog_make_${ac_make}_set=no
1138 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1139 echo "$as_me:1139: result: yes" >&5
1140 echo "${ECHO_T}yes" >&6
1143 echo "$as_me:1143: result: no" >&5
1144 echo "${ECHO_T}no" >&6
1145 SET_MAKE="MAKE=${MAKE-make}"
1149 ac_cpp='$CPP $CPPFLAGS'
1150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1153 ac_main_return=return
1154 if test -n "$ac_tool_prefix"; then
1155 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1156 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1157 echo "$as_me:1157: checking for $ac_word" >&5
1158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1159 if test "${ac_cv_prog_CC+set}" = set; then
1160 echo $ECHO_N "(cached) $ECHO_C" >&6
1162 if test -n "$CC"; then
1163 ac_cv_prog_CC="$CC" # Let the user override the test.
1165 ac_save_IFS=$IFS; IFS=$ac_path_separator
1167 for ac_dir in $ac_dummy; do
1169 test -z "$ac_dir" && ac_dir=.
1170 $as_executable_p "$ac_dir/$ac_word" || continue
1171 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1172 echo "$as_me:1172: found $ac_dir/$ac_word" >&5
1179 if test -n "$CC"; then
1180 echo "$as_me:1180: result: $CC" >&5
1181 echo "${ECHO_T}$CC" >&6
1183 echo "$as_me:1183: result: no" >&5
1184 echo "${ECHO_T}no" >&6
1188 if test -z "$ac_cv_prog_CC"; then
1190 # Extract the first word of "gcc", so it can be a program name with args.
1191 set dummy gcc; ac_word=$2
1192 echo "$as_me:1192: checking for $ac_word" >&5
1193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1194 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1195 echo $ECHO_N "(cached) $ECHO_C" >&6
1197 if test -n "$ac_ct_CC"; then
1198 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1200 ac_save_IFS=$IFS; IFS=$ac_path_separator
1202 for ac_dir in $ac_dummy; do
1204 test -z "$ac_dir" && ac_dir=.
1205 $as_executable_p "$ac_dir/$ac_word" || continue
1206 ac_cv_prog_ac_ct_CC="gcc"
1207 echo "$as_me:1207: found $ac_dir/$ac_word" >&5
1213 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1214 if test -n "$ac_ct_CC"; then
1215 echo "$as_me:1215: result: $ac_ct_CC" >&5
1216 echo "${ECHO_T}$ac_ct_CC" >&6
1218 echo "$as_me:1218: result: no" >&5
1219 echo "${ECHO_T}no" >&6
1227 if test -z "$CC"; then
1228 if test -n "$ac_tool_prefix"; then
1229 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1230 set dummy ${ac_tool_prefix}cc; ac_word=$2
1231 echo "$as_me:1231: checking for $ac_word" >&5
1232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1233 if test "${ac_cv_prog_CC+set}" = set; then
1234 echo $ECHO_N "(cached) $ECHO_C" >&6
1236 if test -n "$CC"; then
1237 ac_cv_prog_CC="$CC" # Let the user override the test.
1239 ac_save_IFS=$IFS; IFS=$ac_path_separator
1241 for ac_dir in $ac_dummy; do
1243 test -z "$ac_dir" && ac_dir=.
1244 $as_executable_p "$ac_dir/$ac_word" || continue
1245 ac_cv_prog_CC="${ac_tool_prefix}cc"
1246 echo "$as_me:1246: found $ac_dir/$ac_word" >&5
1253 if test -n "$CC"; then
1254 echo "$as_me:1254: result: $CC" >&5
1255 echo "${ECHO_T}$CC" >&6
1257 echo "$as_me:1257: result: no" >&5
1258 echo "${ECHO_T}no" >&6
1262 if test -z "$ac_cv_prog_CC"; then
1264 # Extract the first word of "cc", so it can be a program name with args.
1265 set dummy cc; ac_word=$2
1266 echo "$as_me:1266: checking for $ac_word" >&5
1267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1268 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1269 echo $ECHO_N "(cached) $ECHO_C" >&6
1271 if test -n "$ac_ct_CC"; then
1272 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1274 ac_save_IFS=$IFS; IFS=$ac_path_separator
1276 for ac_dir in $ac_dummy; do
1278 test -z "$ac_dir" && ac_dir=.
1279 $as_executable_p "$ac_dir/$ac_word" || continue
1280 ac_cv_prog_ac_ct_CC="cc"
1281 echo "$as_me:1281: found $ac_dir/$ac_word" >&5
1287 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1288 if test -n "$ac_ct_CC"; then
1289 echo "$as_me:1289: result: $ac_ct_CC" >&5
1290 echo "${ECHO_T}$ac_ct_CC" >&6
1292 echo "$as_me:1292: result: no" >&5
1293 echo "${ECHO_T}no" >&6
1302 if test -z "$CC"; then
1303 # Extract the first word of "cc", so it can be a program name with args.
1304 set dummy cc; ac_word=$2
1305 echo "$as_me:1305: checking for $ac_word" >&5
1306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1307 if test "${ac_cv_prog_CC+set}" = set; then
1308 echo $ECHO_N "(cached) $ECHO_C" >&6
1310 if test -n "$CC"; then
1311 ac_cv_prog_CC="$CC" # Let the user override the test.
1314 ac_save_IFS=$IFS; IFS=$ac_path_separator
1316 for ac_dir in $ac_dummy; do
1318 test -z "$ac_dir" && ac_dir=.
1319 $as_executable_p "$ac_dir/$ac_word" || continue
1320 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1321 ac_prog_rejected=yes
1325 echo "$as_me:1325: found $ac_dir/$ac_word" >&5
1329 if test $ac_prog_rejected = yes; then
1330 # We found a bogon in the path, so make sure we never use it.
1331 set dummy $ac_cv_prog_CC
1333 if test $# != 0; then
1334 # We chose a different compiler from the bogus one.
1335 # However, it has the same basename, so the bogon will be chosen
1336 # first if we set CC to just the basename; use the full file name.
1338 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1346 if test -n "$CC"; then
1347 echo "$as_me:1347: result: $CC" >&5
1348 echo "${ECHO_T}$CC" >&6
1350 echo "$as_me:1350: result: no" >&5
1351 echo "${ECHO_T}no" >&6
1355 if test -z "$CC"; then
1356 if test -n "$ac_tool_prefix"; then
1359 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1360 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1361 echo "$as_me:1361: checking for $ac_word" >&5
1362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1363 if test "${ac_cv_prog_CC+set}" = set; then
1364 echo $ECHO_N "(cached) $ECHO_C" >&6
1366 if test -n "$CC"; then
1367 ac_cv_prog_CC="$CC" # Let the user override the test.
1369 ac_save_IFS=$IFS; IFS=$ac_path_separator
1371 for ac_dir in $ac_dummy; do
1373 test -z "$ac_dir" && ac_dir=.
1374 $as_executable_p "$ac_dir/$ac_word" || continue
1375 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1376 echo "$as_me:1376: found $ac_dir/$ac_word" >&5
1383 if test -n "$CC"; then
1384 echo "$as_me:1384: result: $CC" >&5
1385 echo "${ECHO_T}$CC" >&6
1387 echo "$as_me:1387: result: no" >&5
1388 echo "${ECHO_T}no" >&6
1391 test -n "$CC" && break
1394 if test -z "$CC"; then
1398 # Extract the first word of "$ac_prog", so it can be a program name with args.
1399 set dummy $ac_prog; ac_word=$2
1400 echo "$as_me:1400: checking for $ac_word" >&5
1401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1402 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1403 echo $ECHO_N "(cached) $ECHO_C" >&6
1405 if test -n "$ac_ct_CC"; then
1406 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1408 ac_save_IFS=$IFS; IFS=$ac_path_separator
1410 for ac_dir in $ac_dummy; do
1412 test -z "$ac_dir" && ac_dir=.
1413 $as_executable_p "$ac_dir/$ac_word" || continue
1414 ac_cv_prog_ac_ct_CC="$ac_prog"
1415 echo "$as_me:1415: found $ac_dir/$ac_word" >&5
1421 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1422 if test -n "$ac_ct_CC"; then
1423 echo "$as_me:1423: result: $ac_ct_CC" >&5
1424 echo "${ECHO_T}$ac_ct_CC" >&6
1426 echo "$as_me:1426: result: no" >&5
1427 echo "${ECHO_T}no" >&6
1430 test -n "$ac_ct_CC" && break
1438 test -z "$CC" && { { echo "$as_me:1438: error: no acceptable cc found in \$PATH" >&5
1439 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1440 { (exit 1); exit 1; }; }
1442 # Provide some information about the compiler.
1443 echo "$as_me:1443:" \
1444 "checking for C compiler version" >&5
1445 ac_compiler=`set X $ac_compile; echo $2`
1446 { (eval echo "$as_me:1446: \"$ac_compiler --version </dev/null >&5\"") >&5
1447 (eval $ac_compiler --version </dev/null >&5) 2>&5
1449 echo "$as_me:1449: \$? = $ac_status" >&5
1450 (exit $ac_status); }
1451 { (eval echo "$as_me:1451: \"$ac_compiler -v </dev/null >&5\"") >&5
1452 (eval $ac_compiler -v </dev/null >&5) 2>&5
1454 echo "$as_me:1454: \$? = $ac_status" >&5
1455 (exit $ac_status); }
1456 { (eval echo "$as_me:1456: \"$ac_compiler -V </dev/null >&5\"") >&5
1457 (eval $ac_compiler -V </dev/null >&5) 2>&5
1459 echo "$as_me:1459: \$? = $ac_status" >&5
1460 (exit $ac_status); }
1462 cat >conftest.$ac_ext <<_ACEOF
1463 #line 1463 "configure"
1464 #include "confdefs.h"
1474 ac_clean_files_save=$ac_clean_files
1475 ac_clean_files="$ac_clean_files a.out a.exe"
1476 # Try to create an executable without -o first, disregard a.out.
1477 # It will help us diagnose broken compilers, and finding out an intuition
1479 echo "$as_me:1479: checking for C compiler default output" >&5
1480 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1481 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1482 if { (eval echo "$as_me:1482: \"$ac_link_default\"") >&5
1483 (eval $ac_link_default) 2>&5
1485 echo "$as_me:1485: \$? = $ac_status" >&5
1486 (exit $ac_status); }; then
1487 # Find the output, starting from the most likely. This scheme is
1488 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1490 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1491 ls a.out conftest 2>/dev/null;
1492 ls a.* conftest.* 2>/dev/null`; do
1494 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1495 a.out ) # We found the default executable, but exeext='' is most
1498 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1499 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1506 echo "$as_me: failed program was:" >&5
1507 cat conftest.$ac_ext >&5
1508 { { echo "$as_me:1508: error: C compiler cannot create executables" >&5
1509 echo "$as_me: error: C compiler cannot create executables" >&2;}
1510 { (exit 77); exit 77; }; }
1513 ac_exeext=$ac_cv_exeext
1514 echo "$as_me:1514: result: $ac_file" >&5
1515 echo "${ECHO_T}$ac_file" >&6
1517 # Check the compiler produces executables we can run. If not, either
1518 # the compiler is broken, or we cross compile.
1519 echo "$as_me:1519: checking whether the C compiler works" >&5
1520 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1521 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1522 # If not cross compiling, check that we can run a simple program.
1523 if test "$cross_compiling" != yes; then
1524 if { ac_try='./$ac_file'
1525 { (eval echo "$as_me:1525: \"$ac_try\"") >&5
1528 echo "$as_me:1528: \$? = $ac_status" >&5
1529 (exit $ac_status); }; }; then
1532 if test "$cross_compiling" = maybe; then
1535 { { echo "$as_me:1535: error: cannot run C compiled programs.
1536 If you meant to cross compile, use \`--host'." >&5
1537 echo "$as_me: error: cannot run C compiled programs.
1538 If you meant to cross compile, use \`--host'." >&2;}
1539 { (exit 1); exit 1; }; }
1543 echo "$as_me:1543: result: yes" >&5
1544 echo "${ECHO_T}yes" >&6
1546 rm -f a.out a.exe conftest$ac_cv_exeext
1547 ac_clean_files=$ac_clean_files_save
1548 # Check the compiler produces executables we can run. If not, either
1549 # the compiler is broken, or we cross compile.
1550 echo "$as_me:1550: checking whether we are cross compiling" >&5
1551 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1552 echo "$as_me:1552: result: $cross_compiling" >&5
1553 echo "${ECHO_T}$cross_compiling" >&6
1555 echo "$as_me:1555: checking for executable suffix" >&5
1556 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1557 if { (eval echo "$as_me:1557: \"$ac_link\"") >&5
1558 (eval $ac_link) 2>&5
1560 echo "$as_me:1560: \$? = $ac_status" >&5
1561 (exit $ac_status); }; then
1562 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1563 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1564 # work properly (i.e., refer to `conftest.exe'), while it won't with
1566 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1568 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1569 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1576 { { echo "$as_me:1576: error: cannot compute EXEEXT: cannot compile and link" >&5
1577 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1578 { (exit 1); exit 1; }; }
1581 rm -f conftest$ac_cv_exeext
1582 echo "$as_me:1582: result: $ac_cv_exeext" >&5
1583 echo "${ECHO_T}$ac_cv_exeext" >&6
1585 rm -f conftest.$ac_ext
1586 EXEEXT=$ac_cv_exeext
1588 echo "$as_me:1588: checking for object suffix" >&5
1589 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1590 if test "${ac_cv_objext+set}" = set; then
1591 echo $ECHO_N "(cached) $ECHO_C" >&6
1593 cat >conftest.$ac_ext <<_ACEOF
1594 #line 1594 "configure"
1595 #include "confdefs.h"
1605 rm -f conftest.o conftest.obj
1606 if { (eval echo "$as_me:1606: \"$ac_compile\"") >&5
1607 (eval $ac_compile) 2>&5
1609 echo "$as_me:1609: \$? = $ac_status" >&5
1610 (exit $ac_status); }; then
1611 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1613 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1614 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1619 echo "$as_me: failed program was:" >&5
1620 cat conftest.$ac_ext >&5
1621 { { echo "$as_me:1621: error: cannot compute OBJEXT: cannot compile" >&5
1622 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1623 { (exit 1); exit 1; }; }
1626 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1628 echo "$as_me:1628: result: $ac_cv_objext" >&5
1629 echo "${ECHO_T}$ac_cv_objext" >&6
1630 OBJEXT=$ac_cv_objext
1632 echo "$as_me:1632: checking whether we are using the GNU C compiler" >&5
1633 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1634 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1635 echo $ECHO_N "(cached) $ECHO_C" >&6
1637 cat >conftest.$ac_ext <<_ACEOF
1638 #line 1638 "configure"
1639 #include "confdefs.h"
1652 rm -f conftest.$ac_objext
1653 if { (eval echo "$as_me:1653: \"$ac_compile\"") >&5
1654 (eval $ac_compile) 2>&5
1656 echo "$as_me:1656: \$? = $ac_status" >&5
1657 (exit $ac_status); } &&
1658 { ac_try='test -s conftest.$ac_objext'
1659 { (eval echo "$as_me:1659: \"$ac_try\"") >&5
1662 echo "$as_me:1662: \$? = $ac_status" >&5
1663 (exit $ac_status); }; }; then
1666 echo "$as_me: failed program was:" >&5
1667 cat conftest.$ac_ext >&5
1670 rm -f conftest.$ac_objext conftest.$ac_ext
1671 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1674 echo "$as_me:1674: result: $ac_cv_c_compiler_gnu" >&5
1675 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1676 GCC=`test $ac_compiler_gnu = yes && echo yes`
1677 ac_test_CFLAGS=${CFLAGS+set}
1678 ac_save_CFLAGS=$CFLAGS
1680 echo "$as_me:1680: checking whether $CC accepts -g" >&5
1681 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1682 if test "${ac_cv_prog_cc_g+set}" = set; then
1683 echo $ECHO_N "(cached) $ECHO_C" >&6
1685 cat >conftest.$ac_ext <<_ACEOF
1686 #line 1686 "configure"
1687 #include "confdefs.h"
1697 rm -f conftest.$ac_objext
1698 if { (eval echo "$as_me:1698: \"$ac_compile\"") >&5
1699 (eval $ac_compile) 2>&5
1701 echo "$as_me:1701: \$? = $ac_status" >&5
1702 (exit $ac_status); } &&
1703 { ac_try='test -s conftest.$ac_objext'
1704 { (eval echo "$as_me:1704: \"$ac_try\"") >&5
1707 echo "$as_me:1707: \$? = $ac_status" >&5
1708 (exit $ac_status); }; }; then
1711 echo "$as_me: failed program was:" >&5
1712 cat conftest.$ac_ext >&5
1715 rm -f conftest.$ac_objext conftest.$ac_ext
1717 echo "$as_me:1717: result: $ac_cv_prog_cc_g" >&5
1718 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1719 if test "$ac_test_CFLAGS" = set; then
1720 CFLAGS=$ac_save_CFLAGS
1721 elif test $ac_cv_prog_cc_g = yes; then
1722 if test "$GCC" = yes; then
1728 if test "$GCC" = yes; then
1734 # Some people use a C++ compiler to compile C. Since we use `exit',
1735 # in C++ we need to declare it. In case someone uses the same compiler
1736 # for both compiling C and C++ we need to have the C++ compiler decide
1737 # the declaration of exit, since it's the most demanding environment.
1738 cat >conftest.$ac_ext <<_ACEOF
1743 rm -f conftest.$ac_objext
1744 if { (eval echo "$as_me:1744: \"$ac_compile\"") >&5
1745 (eval $ac_compile) 2>&5
1747 echo "$as_me:1747: \$? = $ac_status" >&5
1748 (exit $ac_status); } &&
1749 { ac_try='test -s conftest.$ac_objext'
1750 { (eval echo "$as_me:1750: \"$ac_try\"") >&5
1753 echo "$as_me:1753: \$? = $ac_status" >&5
1754 (exit $ac_status); }; }; then
1755 for ac_declaration in \
1757 '#include <stdlib.h>' \
1758 'extern "C" void std::exit (int) throw (); using std::exit;' \
1759 'extern "C" void std::exit (int); using std::exit;' \
1760 'extern "C" void exit (int) throw ();' \
1761 'extern "C" void exit (int);' \
1764 cat >conftest.$ac_ext <<_ACEOF
1765 #line 1765 "configure"
1766 #include "confdefs.h"
1777 rm -f conftest.$ac_objext
1778 if { (eval echo "$as_me:1778: \"$ac_compile\"") >&5
1779 (eval $ac_compile) 2>&5
1781 echo "$as_me:1781: \$? = $ac_status" >&5
1782 (exit $ac_status); } &&
1783 { ac_try='test -s conftest.$ac_objext'
1784 { (eval echo "$as_me:1784: \"$ac_try\"") >&5
1787 echo "$as_me:1787: \$? = $ac_status" >&5
1788 (exit $ac_status); }; }; then
1791 echo "$as_me: failed program was:" >&5
1792 cat conftest.$ac_ext >&5
1795 rm -f conftest.$ac_objext conftest.$ac_ext
1796 cat >conftest.$ac_ext <<_ACEOF
1797 #line 1797 "configure"
1798 #include "confdefs.h"
1808 rm -f conftest.$ac_objext
1809 if { (eval echo "$as_me:1809: \"$ac_compile\"") >&5
1810 (eval $ac_compile) 2>&5
1812 echo "$as_me:1812: \$? = $ac_status" >&5
1813 (exit $ac_status); } &&
1814 { ac_try='test -s conftest.$ac_objext'
1815 { (eval echo "$as_me:1815: \"$ac_try\"") >&5
1818 echo "$as_me:1818: \$? = $ac_status" >&5
1819 (exit $ac_status); }; }; then
1822 echo "$as_me: failed program was:" >&5
1823 cat conftest.$ac_ext >&5
1825 rm -f conftest.$ac_objext conftest.$ac_ext
1828 if test -n "$ac_declaration"; then
1829 echo '#ifdef __cplusplus' >>confdefs.h
1830 echo $ac_declaration >>confdefs.h
1831 echo '#endif' >>confdefs.h
1835 echo "$as_me: failed program was:" >&5
1836 cat conftest.$ac_ext >&5
1838 rm -f conftest.$ac_objext conftest.$ac_ext
1840 ac_cpp='$CPP $CPPFLAGS'
1841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1844 ac_main_return=return
1847 ac_cpp='$CPP $CPPFLAGS'
1848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1851 ac_main_return=return
1852 echo "$as_me:1852: checking how to run the C preprocessor" >&5
1853 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1854 # On Suns, sometimes $CPP names a directory.
1855 if test -n "$CPP" && test -d "$CPP"; then
1858 if test -z "$CPP"; then
1859 if test "${ac_cv_prog_CPP+set}" = set; then
1860 echo $ECHO_N "(cached) $ECHO_C" >&6
1862 # Double quotes because CPP needs to be expanded
1863 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1866 for ac_c_preproc_warn_flag in '' yes
1868 # Use a header file that comes with gcc, so configuring glibc
1869 # with a fresh cross-compiler works.
1870 # On the NeXT, cc -E runs the code through the compiler's parser,
1871 # not just through cpp. "Syntax error" is here to catch this case.
1872 cat >conftest.$ac_ext <<_ACEOF
1873 #line 1873 "configure"
1874 #include "confdefs.h"
1878 if { (eval echo "$as_me:1878: \"$ac_cpp conftest.$ac_ext\"") >&5
1879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1881 egrep -v '^ *\+' conftest.er1 >conftest.err
1883 cat conftest.err >&5
1884 echo "$as_me:1884: \$? = $ac_status" >&5
1885 (exit $ac_status); } >/dev/null; then
1886 if test -s conftest.err; then
1887 ac_cpp_err=$ac_c_preproc_warn_flag
1894 if test -z "$ac_cpp_err"; then
1897 echo "$as_me: failed program was:" >&5
1898 cat conftest.$ac_ext >&5
1899 # Broken: fails on valid input.
1902 rm -f conftest.err conftest.$ac_ext
1904 # OK, works on sane cases. Now check whether non-existent headers
1905 # can be detected and how.
1906 cat >conftest.$ac_ext <<_ACEOF
1907 #line 1907 "configure"
1908 #include "confdefs.h"
1909 #include <ac_nonexistent.h>
1911 if { (eval echo "$as_me:1911: \"$ac_cpp conftest.$ac_ext\"") >&5
1912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1914 egrep -v '^ *\+' conftest.er1 >conftest.err
1916 cat conftest.err >&5
1917 echo "$as_me:1917: \$? = $ac_status" >&5
1918 (exit $ac_status); } >/dev/null; then
1919 if test -s conftest.err; then
1920 ac_cpp_err=$ac_c_preproc_warn_flag
1927 if test -z "$ac_cpp_err"; then
1928 # Broken: success on invalid input.
1931 echo "$as_me: failed program was:" >&5
1932 cat conftest.$ac_ext >&5
1933 # Passes both tests.
1937 rm -f conftest.err conftest.$ac_ext
1940 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1941 rm -f conftest.err conftest.$ac_ext
1942 if $ac_preproc_ok; then
1954 echo "$as_me:1954: result: $CPP" >&5
1955 echo "${ECHO_T}$CPP" >&6
1957 for ac_c_preproc_warn_flag in '' yes
1959 # Use a header file that comes with gcc, so configuring glibc
1960 # with a fresh cross-compiler works.
1961 # On the NeXT, cc -E runs the code through the compiler's parser,
1962 # not just through cpp. "Syntax error" is here to catch this case.
1963 cat >conftest.$ac_ext <<_ACEOF
1964 #line 1964 "configure"
1965 #include "confdefs.h"
1969 if { (eval echo "$as_me:1969: \"$ac_cpp conftest.$ac_ext\"") >&5
1970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1972 egrep -v '^ *\+' conftest.er1 >conftest.err
1974 cat conftest.err >&5
1975 echo "$as_me:1975: \$? = $ac_status" >&5
1976 (exit $ac_status); } >/dev/null; then
1977 if test -s conftest.err; then
1978 ac_cpp_err=$ac_c_preproc_warn_flag
1985 if test -z "$ac_cpp_err"; then
1988 echo "$as_me: failed program was:" >&5
1989 cat conftest.$ac_ext >&5
1990 # Broken: fails on valid input.
1993 rm -f conftest.err conftest.$ac_ext
1995 # OK, works on sane cases. Now check whether non-existent headers
1996 # can be detected and how.
1997 cat >conftest.$ac_ext <<_ACEOF
1998 #line 1998 "configure"
1999 #include "confdefs.h"
2000 #include <ac_nonexistent.h>
2002 if { (eval echo "$as_me:2002: \"$ac_cpp conftest.$ac_ext\"") >&5
2003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2005 egrep -v '^ *\+' conftest.er1 >conftest.err
2007 cat conftest.err >&5
2008 echo "$as_me:2008: \$? = $ac_status" >&5
2009 (exit $ac_status); } >/dev/null; then
2010 if test -s conftest.err; then
2011 ac_cpp_err=$ac_c_preproc_warn_flag
2018 if test -z "$ac_cpp_err"; then
2019 # Broken: success on invalid input.
2022 echo "$as_me: failed program was:" >&5
2023 cat conftest.$ac_ext >&5
2024 # Passes both tests.
2028 rm -f conftest.err conftest.$ac_ext
2031 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2032 rm -f conftest.err conftest.$ac_ext
2033 if $ac_preproc_ok; then
2036 { { echo "$as_me:2036: error: C preprocessor \"$CPP\" fails sanity check" >&5
2037 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2038 { (exit 1); exit 1; }; }
2042 ac_cpp='$CPP $CPPFLAGS'
2043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2046 ac_main_return=return
2048 for ac_prog in mawk gawk nawk awk
2050 # Extract the first word of "$ac_prog", so it can be a program name with args.
2051 set dummy $ac_prog; ac_word=$2
2052 echo "$as_me:2052: checking for $ac_word" >&5
2053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2054 if test "${ac_cv_prog_AWK+set}" = set; then
2055 echo $ECHO_N "(cached) $ECHO_C" >&6
2057 if test -n "$AWK"; then
2058 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2060 ac_save_IFS=$IFS; IFS=$ac_path_separator
2062 for ac_dir in $ac_dummy; do
2064 test -z "$ac_dir" && ac_dir=.
2065 $as_executable_p "$ac_dir/$ac_word" || continue
2066 ac_cv_prog_AWK="$ac_prog"
2067 echo "$as_me:2067: found $ac_dir/$ac_word" >&5
2074 if test -n "$AWK"; then
2075 echo "$as_me:2075: result: $AWK" >&5
2076 echo "${ECHO_T}$AWK" >&6
2078 echo "$as_me:2078: result: no" >&5
2079 echo "${ECHO_T}no" >&6
2082 test -n "$AWK" && break
2085 # Find a good install program. We prefer a C program (faster),
2086 # so one script is as good as another. But avoid the broken or
2087 # incompatible versions:
2088 # SysV /etc/install, /usr/sbin/install
2089 # SunOS /usr/etc/install
2090 # IRIX /sbin/install
2092 # AmigaOS /C/install, which installs bootblocks on floppy discs
2093 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2094 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2095 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2096 # ./install, which can be erroneously created by make from ./install.sh.
2097 echo "$as_me:2097: checking for a BSD compatible install" >&5
2098 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2099 if test -z "$INSTALL"; then
2100 if test "${ac_cv_path_install+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
2103 ac_save_IFS=$IFS; IFS=$ac_path_separator
2104 for ac_dir in $PATH; do
2106 # Account for people who put trailing slashes in PATH elements.
2108 / | ./ | .// | /cC/* \
2109 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2112 # OSF1 and SCO ODT 3.0 have their own names for install.
2113 # Don't use installbsd from OSF since it installs stuff as root
2115 for ac_prog in ginstall scoinst install; do
2116 if $as_executable_p "$ac_dir/$ac_prog"; then
2117 if test $ac_prog = install &&
2118 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2119 # AIX install. It has an incompatible calling convention.
2121 elif test $ac_prog = install &&
2122 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2123 # program-specific install script used by HP pwplus--don't use.
2126 ac_cv_path_install="$ac_dir/$ac_prog -c"
2136 if test "${ac_cv_path_install+set}" = set; then
2137 INSTALL=$ac_cv_path_install
2139 # As a last resort, use the slow shell script. We don't cache a
2140 # path for INSTALL within a source directory, because that will
2141 # break other packages using the cache if that directory is
2142 # removed, or if the path is relative.
2143 INSTALL=$ac_install_sh
2146 echo "$as_me:2146: result: $INSTALL" >&5
2147 echo "${ECHO_T}$INSTALL" >&6
2149 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2150 # It thinks the first close brace ends the variable substitution.
2151 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2153 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2155 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2161 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
2162 test -z "$cf_dir" && cf_dir=.
2163 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
2167 for ac_prog in tdlint lint alint splint lclint
2169 # Extract the first word of "$ac_prog", so it can be a program name with args.
2170 set dummy $ac_prog; ac_word=$2
2171 echo "$as_me:2171: checking for $ac_word" >&5
2172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2173 if test "${ac_cv_prog_LINT+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2176 if test -n "$LINT"; then
2177 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2179 ac_save_IFS=$IFS; IFS=$ac_path_separator
2181 for ac_dir in $ac_dummy; do
2183 test -z "$ac_dir" && ac_dir=.
2184 $as_executable_p "$ac_dir/$ac_word" || continue
2185 ac_cv_prog_LINT="$ac_prog"
2186 echo "$as_me:2186: found $ac_dir/$ac_word" >&5
2192 LINT=$ac_cv_prog_LINT
2193 if test -n "$LINT"; then
2194 echo "$as_me:2194: result: $LINT" >&5
2195 echo "${ECHO_T}$LINT" >&6
2197 echo "$as_me:2197: result: no" >&5
2198 echo "${ECHO_T}no" >&6
2201 test -n "$LINT" && break
2204 echo "$as_me:2204: checking if filesystem supports mixed-case filenames" >&5
2205 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2206 if test "${cf_cv_mixedcase+set}" = set; then
2207 echo $ECHO_N "(cached) $ECHO_C" >&6
2210 if test "$cross_compiling" = yes ; then
2211 case $target_alias in #(vi
2212 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
2220 rm -f conftest CONFTEST
2222 if test -f CONFTEST ; then
2227 rm -f conftest CONFTEST
2231 echo "$as_me:2231: result: $cf_cv_mixedcase" >&5
2232 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2233 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
2234 #define MIXEDCASE_FILENAMES 1
2237 for ac_prog in exctags ctags
2239 # Extract the first word of "$ac_prog", so it can be a program name with args.
2240 set dummy $ac_prog; ac_word=$2
2241 echo "$as_me:2241: checking for $ac_word" >&5
2242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2243 if test "${ac_cv_prog_CTAGS+set}" = set; then
2244 echo $ECHO_N "(cached) $ECHO_C" >&6
2246 if test -n "$CTAGS"; then
2247 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2249 ac_save_IFS=$IFS; IFS=$ac_path_separator
2251 for ac_dir in $ac_dummy; do
2253 test -z "$ac_dir" && ac_dir=.
2254 $as_executable_p "$ac_dir/$ac_word" || continue
2255 ac_cv_prog_CTAGS="$ac_prog"
2256 echo "$as_me:2256: found $ac_dir/$ac_word" >&5
2262 CTAGS=$ac_cv_prog_CTAGS
2263 if test -n "$CTAGS"; then
2264 echo "$as_me:2264: result: $CTAGS" >&5
2265 echo "${ECHO_T}$CTAGS" >&6
2267 echo "$as_me:2267: result: no" >&5
2268 echo "${ECHO_T}no" >&6
2271 test -n "$CTAGS" && break
2274 for ac_prog in exetags etags
2276 # Extract the first word of "$ac_prog", so it can be a program name with args.
2277 set dummy $ac_prog; ac_word=$2
2278 echo "$as_me:2278: checking for $ac_word" >&5
2279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2280 if test "${ac_cv_prog_ETAGS+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2283 if test -n "$ETAGS"; then
2284 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2286 ac_save_IFS=$IFS; IFS=$ac_path_separator
2288 for ac_dir in $ac_dummy; do
2290 test -z "$ac_dir" && ac_dir=.
2291 $as_executable_p "$ac_dir/$ac_word" || continue
2292 ac_cv_prog_ETAGS="$ac_prog"
2293 echo "$as_me:2293: found $ac_dir/$ac_word" >&5
2299 ETAGS=$ac_cv_prog_ETAGS
2300 if test -n "$ETAGS"; then
2301 echo "$as_me:2301: result: $ETAGS" >&5
2302 echo "${ECHO_T}$ETAGS" >&6
2304 echo "$as_me:2304: result: no" >&5
2305 echo "${ECHO_T}no" >&6
2308 test -n "$ETAGS" && break
2311 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2312 set dummy ${CTAGS:-ctags}; ac_word=$2
2313 echo "$as_me:2313: checking for $ac_word" >&5
2314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2315 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2316 echo $ECHO_N "(cached) $ECHO_C" >&6
2318 if test -n "$MAKE_LOWER_TAGS"; then
2319 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2321 ac_save_IFS=$IFS; IFS=$ac_path_separator
2323 for ac_dir in $ac_dummy; do
2325 test -z "$ac_dir" && ac_dir=.
2326 $as_executable_p "$ac_dir/$ac_word" || continue
2327 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2328 echo "$as_me:2328: found $ac_dir/$ac_word" >&5
2332 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2335 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2336 if test -n "$MAKE_LOWER_TAGS"; then
2337 echo "$as_me:2337: result: $MAKE_LOWER_TAGS" >&5
2338 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2340 echo "$as_me:2340: result: no" >&5
2341 echo "${ECHO_T}no" >&6
2344 if test "$cf_cv_mixedcase" = yes ; then
2345 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2346 set dummy ${ETAGS:-etags}; ac_word=$2
2347 echo "$as_me:2347: checking for $ac_word" >&5
2348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2349 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2352 if test -n "$MAKE_UPPER_TAGS"; then
2353 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2355 ac_save_IFS=$IFS; IFS=$ac_path_separator
2357 for ac_dir in $ac_dummy; do
2359 test -z "$ac_dir" && ac_dir=.
2360 $as_executable_p "$ac_dir/$ac_word" || continue
2361 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2362 echo "$as_me:2362: found $ac_dir/$ac_word" >&5
2366 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2369 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2370 if test -n "$MAKE_UPPER_TAGS"; then
2371 echo "$as_me:2371: result: $MAKE_UPPER_TAGS" >&5
2372 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2374 echo "$as_me:2374: result: no" >&5
2375 echo "${ECHO_T}no" >&6
2382 if test "$MAKE_UPPER_TAGS" = yes ; then
2388 if test "$MAKE_LOWER_TAGS" = yes ; then
2394 echo "$as_me:2394: checking if -lm needed for math functions" >&5
2395 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
2396 if test "${cf_cv_need_libm+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2400 cat >conftest.$ac_ext <<_ACEOF
2401 #line 2401 "configure"
2402 #include "confdefs.h"
2410 double x = rand(); printf("result = %g\n", sin(x))
2415 rm -f conftest.$ac_objext conftest$ac_exeext
2416 if { (eval echo "$as_me:2416: \"$ac_link\"") >&5
2417 (eval $ac_link) 2>&5
2419 echo "$as_me:2419: \$? = $ac_status" >&5
2420 (exit $ac_status); } &&
2421 { ac_try='test -s conftest$ac_exeext'
2422 { (eval echo "$as_me:2422: \"$ac_try\"") >&5
2425 echo "$as_me:2425: \$? = $ac_status" >&5
2426 (exit $ac_status); }; }; then
2429 echo "$as_me: failed program was:" >&5
2430 cat conftest.$ac_ext >&5
2433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2435 echo "$as_me:2435: result: $cf_cv_need_libm" >&5
2436 echo "${ECHO_T}$cf_cv_need_libm" >&6
2437 if test "$cf_cv_need_libm" = yes
2443 CC_SHARED_OPTS=unknown
2444 CPPFLAGS="$CPPFLAGS"
2446 DFT_OBJ_SUBDIR=`pwd|sed -e's:.*/::'`
2447 DFT_UPR_MODEL="NORMAL"
2463 TINFO_ARGS='$(LIBS_CURSES)'
2464 cf_cv_abi_version=""
2465 cf_cv_rel_version=""
2470 echo "$as_me:2470: checking for ${CC:-cc} option to accept ANSI C" >&5
2471 echo $ECHO_N "checking for ${CC:-cc} option to accept ANSI C... $ECHO_C" >&6
2472 if test "${cf_cv_ansi_cc+set}" = set; then
2473 echo $ECHO_N "(cached) $ECHO_C" >&6
2477 cf_save_CFLAGS="$CFLAGS"
2478 cf_save_CPPFLAGS="$CPPFLAGS"
2479 # Don't try gcc -ansi; that turns off useful extensions and
2480 # breaks some systems' header files.
2481 # AIX -qlanglvl=ansi
2482 # Ultrix and OSF/1 -std1
2483 # HP-UX -Aa -D_HPUX_SOURCE
2485 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2486 for cf_arg in "-DCC_HAS_PROTOS" \
2491 "-Aa -D_HPUX_SOURCE" \
2498 cf_new_extra_cppflags=
2500 for cf_add_cflags in $cf_arg
2502 case $cf_fix_cppflags in
2504 case $cf_add_cflags in #(vi
2505 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2506 case $cf_add_cflags in
2508 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2510 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2511 && test -z "${cf_tst_cflags}" \
2512 && cf_fix_cppflags=yes
2514 if test $cf_fix_cppflags = yes ; then
2515 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2517 elif test "${cf_tst_cflags}" = "\"'" ; then
2518 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2524 *$cf_add_cflags) #(vi
2527 case $cf_add_cflags in #(vi
2529 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2531 CPPFLAGS=`echo "$CPPFLAGS" | \
2532 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2533 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2537 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2542 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2547 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2549 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2551 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2552 && test -z "${cf_tst_cflags}" \
2553 && cf_fix_cppflags=no
2558 if test -n "$cf_new_cflags" ; then
2560 CFLAGS="$CFLAGS $cf_new_cflags"
2563 if test -n "$cf_new_cppflags" ; then
2565 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2568 if test -n "$cf_new_extra_cppflags" ; then
2570 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2573 cat >conftest.$ac_ext <<_ACEOF
2574 #line 2574 "configure"
2575 #include "confdefs.h"
2577 #ifndef CC_HAS_PROTOS
2578 #if !defined(__STDC__) || (__STDC__ != 1)
2587 int test (int i, double x);
2588 struct s1 {int (*f) (int a);};
2589 struct s2 {int (*f) (double a);};
2594 rm -f conftest.$ac_objext
2595 if { (eval echo "$as_me:2595: \"$ac_compile\"") >&5
2596 (eval $ac_compile) 2>&5
2598 echo "$as_me:2598: \$? = $ac_status" >&5
2599 (exit $ac_status); } &&
2600 { ac_try='test -s conftest.$ac_objext'
2601 { (eval echo "$as_me:2601: \"$ac_try\"") >&5
2604 echo "$as_me:2604: \$? = $ac_status" >&5
2605 (exit $ac_status); }; }; then
2606 cf_cv_ansi_cc="$cf_arg"; break
2608 echo "$as_me: failed program was:" >&5
2609 cat conftest.$ac_ext >&5
2611 rm -f conftest.$ac_objext conftest.$ac_ext
2613 CFLAGS="$cf_save_CFLAGS"
2614 CPPFLAGS="$cf_save_CPPFLAGS"
2617 echo "$as_me:2617: result: $cf_cv_ansi_cc" >&5
2618 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2620 if test "$cf_cv_ansi_cc" != "no"; then
2621 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2626 cf_new_extra_cppflags=
2628 for cf_add_cflags in $cf_cv_ansi_cc
2630 case $cf_fix_cppflags in
2632 case $cf_add_cflags in #(vi
2633 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2634 case $cf_add_cflags in
2636 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2638 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2639 && test -z "${cf_tst_cflags}" \
2640 && cf_fix_cppflags=yes
2642 if test $cf_fix_cppflags = yes ; then
2643 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2645 elif test "${cf_tst_cflags}" = "\"'" ; then
2646 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2652 *$cf_add_cflags) #(vi
2655 case $cf_add_cflags in #(vi
2657 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2659 CPPFLAGS=`echo "$CPPFLAGS" | \
2660 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2661 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2665 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2670 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2675 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2677 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2679 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2680 && test -z "${cf_tst_cflags}" \
2681 && cf_fix_cppflags=no
2686 if test -n "$cf_new_cflags" ; then
2688 CFLAGS="$CFLAGS $cf_new_cflags"
2691 if test -n "$cf_new_cppflags" ; then
2693 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2696 if test -n "$cf_new_extra_cppflags" ; then
2698 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2702 cat >>confdefs.h <<\EOF
2703 #define CC_HAS_PROTOS 1
2709 if test "$cf_cv_ansi_cc" = "no"; then
2710 { { echo "$as_me:2710: error: Your compiler does not appear to recognize prototypes.
2711 You have the following choices:
2712 a. adjust your compiler options
2713 b. get an up-to-date compiler
2714 c. use a wrapper such as unproto" >&5
2715 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2716 You have the following choices:
2717 a. adjust your compiler options
2718 b. get an up-to-date compiler
2719 c. use a wrapper such as unproto" >&2;}
2720 { (exit 1); exit 1; }; }
2723 if test "$GCC" = yes
2725 cat > conftest.i <<EOF
2727 #define GCC_PRINTF 0
2732 #ifndef GCC_NORETURN
2733 #define GCC_NORETURN /* nothing */
2736 #define GCC_UNUSED /* nothing */
2739 if test "$GCC" = yes
2741 { echo "$as_me:2741: checking for $CC __attribute__ directives..." >&5
2742 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
2743 cat > conftest.$ac_ext <<EOF
2744 #line 2744 "${as_me:-configure}"
2745 #include "confdefs.h"
2746 #include "conftest.h"
2747 #include "conftest.i"
2749 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2751 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
2754 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2756 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
2758 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
2759 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
2760 extern void foo(void) GCC_NORETURN;
2761 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
2763 cf_printf_attribute=no
2764 cf_scanf_attribute=no
2765 for cf_attribute in scanf printf unused noreturn
2768 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
2770 cf_directive="__attribute__(($cf_attribute))"
2771 echo "checking for $CC $cf_directive" 1>&5
2773 case $cf_attribute in #(vi
2775 cf_printf_attribute=yes
2776 cat >conftest.h <<EOF
2777 #define GCC_$cf_ATTRIBUTE 1
2781 cf_scanf_attribute=yes
2782 cat >conftest.h <<EOF
2783 #define GCC_$cf_ATTRIBUTE 1
2787 cat >conftest.h <<EOF
2788 #define GCC_$cf_ATTRIBUTE $cf_directive
2793 if { (eval echo "$as_me:2793: \"$ac_compile\"") >&5
2794 (eval $ac_compile) 2>&5
2796 echo "$as_me:2796: \$? = $ac_status" >&5
2797 (exit $ac_status); }; then
2798 test -n "$verbose" && echo "$as_me:2798: result: ... $cf_attribute" >&5
2799 echo "${ECHO_T}... $cf_attribute" >&6
2800 cat conftest.h >>confdefs.h
2801 case $cf_attribute in #(vi
2803 if test "$cf_printf_attribute" = no ; then
2804 cat >>confdefs.h <<EOF
2805 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
2808 cat >>confdefs.h <<EOF
2809 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2814 if test "$cf_scanf_attribute" = no ; then
2815 cat >>confdefs.h <<EOF
2816 #define GCC_SCANFLIKE(fmt,var) /* nothing */
2819 cat >>confdefs.h <<EOF
2820 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2828 fgrep define conftest.i >>confdefs.h
2834 cf_POSIX_C_SOURCE=199506L
2837 case $host_os in #(vi
2839 cf_xopen_source="-D_ALL_SOURCE"
2842 cf_xopen_source="-D_APPLE_C_SOURCE"
2845 cf_xopen_source="-D_DARWIN_C_SOURCE"
2847 freebsd*|dragonfly*) #(vi
2848 # 5.x headers associate
2849 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
2850 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
2851 cf_POSIX_C_SOURCE=200112L
2853 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2856 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
2859 cf_xopen_source="-D_HPUX_SOURCE"
2862 cf_xopen_source="-D_SGI_SOURCE"
2864 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
2866 echo "$as_me:2866: checking if we must define _GNU_SOURCE" >&5
2867 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
2868 if test "${cf_cv_gnu_source+set}" = set; then
2869 echo $ECHO_N "(cached) $ECHO_C" >&6
2872 cat >conftest.$ac_ext <<_ACEOF
2873 #line 2873 "configure"
2874 #include "confdefs.h"
2875 #include <sys/types.h>
2880 #ifndef _XOPEN_SOURCE
2887 rm -f conftest.$ac_objext
2888 if { (eval echo "$as_me:2888: \"$ac_compile\"") >&5
2889 (eval $ac_compile) 2>&5
2891 echo "$as_me:2891: \$? = $ac_status" >&5
2892 (exit $ac_status); } &&
2893 { ac_try='test -s conftest.$ac_objext'
2894 { (eval echo "$as_me:2894: \"$ac_try\"") >&5
2897 echo "$as_me:2897: \$? = $ac_status" >&5
2898 (exit $ac_status); }; }; then
2901 echo "$as_me: failed program was:" >&5
2902 cat conftest.$ac_ext >&5
2904 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2905 cat >conftest.$ac_ext <<_ACEOF
2906 #line 2906 "configure"
2907 #include "confdefs.h"
2908 #include <sys/types.h>
2913 #ifdef _XOPEN_SOURCE
2920 rm -f conftest.$ac_objext
2921 if { (eval echo "$as_me:2921: \"$ac_compile\"") >&5
2922 (eval $ac_compile) 2>&5
2924 echo "$as_me:2924: \$? = $ac_status" >&5
2925 (exit $ac_status); } &&
2926 { ac_try='test -s conftest.$ac_objext'
2927 { (eval echo "$as_me:2927: \"$ac_try\"") >&5
2930 echo "$as_me:2930: \$? = $ac_status" >&5
2931 (exit $ac_status); }; }; then
2934 echo "$as_me: failed program was:" >&5
2935 cat conftest.$ac_ext >&5
2936 cf_cv_gnu_source=yes
2938 rm -f conftest.$ac_objext conftest.$ac_ext
2942 rm -f conftest.$ac_objext conftest.$ac_ext
2945 echo "$as_me:2945: result: $cf_cv_gnu_source" >&5
2946 echo "${ECHO_T}$cf_cv_gnu_source" >&6
2947 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2951 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h>
2954 # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
2957 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
2960 cf_xopen_source="-D_OSF_SOURCE"
2963 cf_xopen_source="-D_QNX_SOURCE"
2966 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
2968 solaris2.1[0-9]) #(vi
2969 cf_xopen_source="-D__EXTENSIONS__ -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2971 solaris2.[1-9]) #(vi
2972 cf_xopen_source="-D__EXTENSIONS__"
2975 echo "$as_me:2975: checking if we should define _XOPEN_SOURCE" >&5
2976 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
2977 if test "${cf_cv_xopen_source+set}" = set; then
2978 echo $ECHO_N "(cached) $ECHO_C" >&6
2981 cat >conftest.$ac_ext <<_ACEOF
2982 #line 2982 "configure"
2983 #include "confdefs.h"
2984 #include <sys/types.h>
2989 #ifndef _XOPEN_SOURCE
2996 rm -f conftest.$ac_objext
2997 if { (eval echo "$as_me:2997: \"$ac_compile\"") >&5
2998 (eval $ac_compile) 2>&5
3000 echo "$as_me:3000: \$? = $ac_status" >&5
3001 (exit $ac_status); } &&
3002 { ac_try='test -s conftest.$ac_objext'
3003 { (eval echo "$as_me:3003: \"$ac_try\"") >&5
3006 echo "$as_me:3006: \$? = $ac_status" >&5
3007 (exit $ac_status); }; }; then
3008 cf_cv_xopen_source=no
3010 echo "$as_me: failed program was:" >&5
3011 cat conftest.$ac_ext >&5
3013 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3014 cat >conftest.$ac_ext <<_ACEOF
3015 #line 3015 "configure"
3016 #include "confdefs.h"
3017 #include <sys/types.h>
3022 #ifdef _XOPEN_SOURCE
3029 rm -f conftest.$ac_objext
3030 if { (eval echo "$as_me:3030: \"$ac_compile\"") >&5
3031 (eval $ac_compile) 2>&5
3033 echo "$as_me:3033: \$? = $ac_status" >&5
3034 (exit $ac_status); } &&
3035 { ac_try='test -s conftest.$ac_objext'
3036 { (eval echo "$as_me:3036: \"$ac_try\"") >&5
3039 echo "$as_me:3039: \$? = $ac_status" >&5
3040 (exit $ac_status); }; }; then
3041 cf_cv_xopen_source=no
3043 echo "$as_me: failed program was:" >&5
3044 cat conftest.$ac_ext >&5
3045 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3047 rm -f conftest.$ac_objext conftest.$ac_ext
3051 rm -f conftest.$ac_objext conftest.$ac_ext
3054 echo "$as_me:3054: result: $cf_cv_xopen_source" >&5
3055 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3056 if test "$cf_cv_xopen_source" != no ; then
3058 CFLAGS=`echo "$CFLAGS" | \
3059 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3060 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3062 CPPFLAGS=`echo "$CPPFLAGS" | \
3063 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3064 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3066 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3071 cf_new_extra_cppflags=
3073 for cf_add_cflags in $cf_temp_xopen_source
3075 case $cf_fix_cppflags in
3077 case $cf_add_cflags in #(vi
3078 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3079 case $cf_add_cflags in
3081 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3083 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3084 && test -z "${cf_tst_cflags}" \
3085 && cf_fix_cppflags=yes
3087 if test $cf_fix_cppflags = yes ; then
3088 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3090 elif test "${cf_tst_cflags}" = "\"'" ; then
3091 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3097 *$cf_add_cflags) #(vi
3100 case $cf_add_cflags in #(vi
3102 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3104 CPPFLAGS=`echo "$CPPFLAGS" | \
3105 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3106 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3110 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3115 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3120 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3122 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3124 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3125 && test -z "${cf_tst_cflags}" \
3126 && cf_fix_cppflags=no
3131 if test -n "$cf_new_cflags" ; then
3133 CFLAGS="$CFLAGS $cf_new_cflags"
3136 if test -n "$cf_new_cppflags" ; then
3138 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3141 if test -n "$cf_new_extra_cppflags" ; then
3143 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3148 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3150 cf_save_CFLAGS="$CFLAGS"
3151 cf_save_CPPFLAGS="$CPPFLAGS"
3153 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3154 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3155 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3157 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3158 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3159 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3161 echo "$as_me:3161: checking if we should define _POSIX_C_SOURCE" >&5
3162 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3163 if test "${cf_cv_posix_c_source+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3167 echo "${as_me:-configure}:3167: testing if the symbol is already defined go no further ..." 1>&5
3169 cat >conftest.$ac_ext <<_ACEOF
3170 #line 3170 "configure"
3171 #include "confdefs.h"
3172 #include <sys/types.h>
3177 #ifndef _POSIX_C_SOURCE
3184 rm -f conftest.$ac_objext
3185 if { (eval echo "$as_me:3185: \"$ac_compile\"") >&5
3186 (eval $ac_compile) 2>&5
3188 echo "$as_me:3188: \$? = $ac_status" >&5
3189 (exit $ac_status); } &&
3190 { ac_try='test -s conftest.$ac_objext'
3191 { (eval echo "$as_me:3191: \"$ac_try\"") >&5
3194 echo "$as_me:3194: \$? = $ac_status" >&5
3195 (exit $ac_status); }; }; then
3196 cf_cv_posix_c_source=no
3198 echo "$as_me: failed program was:" >&5
3199 cat conftest.$ac_ext >&5
3200 cf_want_posix_source=no
3201 case .$cf_POSIX_C_SOURCE in #(vi
3203 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3206 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3207 cf_want_posix_source=yes
3210 cf_want_posix_source=yes
3213 if test "$cf_want_posix_source" = yes ; then
3214 cat >conftest.$ac_ext <<_ACEOF
3215 #line 3215 "configure"
3216 #include "confdefs.h"
3217 #include <sys/types.h>
3222 #ifdef _POSIX_SOURCE
3229 rm -f conftest.$ac_objext
3230 if { (eval echo "$as_me:3230: \"$ac_compile\"") >&5
3231 (eval $ac_compile) 2>&5
3233 echo "$as_me:3233: \$? = $ac_status" >&5
3234 (exit $ac_status); } &&
3235 { ac_try='test -s conftest.$ac_objext'
3236 { (eval echo "$as_me:3236: \"$ac_try\"") >&5
3239 echo "$as_me:3239: \$? = $ac_status" >&5
3240 (exit $ac_status); }; }; then
3243 echo "$as_me: failed program was:" >&5
3244 cat conftest.$ac_ext >&5
3245 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3247 rm -f conftest.$ac_objext conftest.$ac_ext
3250 echo "${as_me:-configure}:3250: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3252 CFLAGS="$cf_trim_CFLAGS"
3253 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3255 echo "${as_me:-configure}:3255: testing if the second compile does not leave our definition intact error ..." 1>&5
3257 cat >conftest.$ac_ext <<_ACEOF
3258 #line 3258 "configure"
3259 #include "confdefs.h"
3260 #include <sys/types.h>
3265 #ifndef _POSIX_C_SOURCE
3272 rm -f conftest.$ac_objext
3273 if { (eval echo "$as_me:3273: \"$ac_compile\"") >&5
3274 (eval $ac_compile) 2>&5
3276 echo "$as_me:3276: \$? = $ac_status" >&5
3277 (exit $ac_status); } &&
3278 { ac_try='test -s conftest.$ac_objext'
3279 { (eval echo "$as_me:3279: \"$ac_try\"") >&5
3282 echo "$as_me:3282: \$? = $ac_status" >&5
3283 (exit $ac_status); }; }; then
3286 echo "$as_me: failed program was:" >&5
3287 cat conftest.$ac_ext >&5
3288 cf_cv_posix_c_source=no
3290 rm -f conftest.$ac_objext conftest.$ac_ext
3291 CFLAGS="$cf_save_CFLAGS"
3292 CPPFLAGS="$cf_save_CPPFLAGS"
3295 rm -f conftest.$ac_objext conftest.$ac_ext
3298 echo "$as_me:3298: result: $cf_cv_posix_c_source" >&5
3299 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3301 if test "$cf_cv_posix_c_source" != no ; then
3302 CFLAGS="$cf_trim_CFLAGS"
3303 CPPFLAGS="$cf_trim_CPPFLAGS"
3308 cf_new_extra_cppflags=
3310 for cf_add_cflags in $cf_cv_posix_c_source
3312 case $cf_fix_cppflags in
3314 case $cf_add_cflags in #(vi
3315 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3316 case $cf_add_cflags in
3318 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3320 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3321 && test -z "${cf_tst_cflags}" \
3322 && cf_fix_cppflags=yes
3324 if test $cf_fix_cppflags = yes ; then
3325 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3327 elif test "${cf_tst_cflags}" = "\"'" ; then
3328 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3334 *$cf_add_cflags) #(vi
3337 case $cf_add_cflags in #(vi
3339 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3341 CPPFLAGS=`echo "$CPPFLAGS" | \
3342 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3343 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3347 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3352 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3357 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3359 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3361 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3362 && test -z "${cf_tst_cflags}" \
3363 && cf_fix_cppflags=no
3368 if test -n "$cf_new_cflags" ; then
3370 CFLAGS="$CFLAGS $cf_new_cflags"
3373 if test -n "$cf_new_cppflags" ; then
3375 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3378 if test -n "$cf_new_extra_cppflags" ; then
3380 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3388 if test -n "$cf_xopen_source" ; then
3393 cf_new_extra_cppflags=
3395 for cf_add_cflags in $cf_xopen_source
3397 case $cf_fix_cppflags in
3399 case $cf_add_cflags in #(vi
3400 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3401 case $cf_add_cflags in
3403 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3405 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3406 && test -z "${cf_tst_cflags}" \
3407 && cf_fix_cppflags=yes
3409 if test $cf_fix_cppflags = yes ; then
3410 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3412 elif test "${cf_tst_cflags}" = "\"'" ; then
3413 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3419 *$cf_add_cflags) #(vi
3422 case $cf_add_cflags in #(vi
3424 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3426 CPPFLAGS=`echo "$CPPFLAGS" | \
3427 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3428 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3432 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3437 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3442 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3444 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3446 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3447 && test -z "${cf_tst_cflags}" \
3448 && cf_fix_cppflags=no
3453 if test -n "$cf_new_cflags" ; then
3455 CFLAGS="$CFLAGS $cf_new_cflags"
3458 if test -n "$cf_new_cppflags" ; then
3460 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3463 if test -n "$cf_new_extra_cppflags" ; then
3465 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3470 echo "$as_me:3470: checking for $CC option to accept ANSI C" >&5
3471 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3472 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3473 echo $ECHO_N "(cached) $ECHO_C" >&6
3475 ac_cv_prog_cc_stdc=no
3477 cat >conftest.$ac_ext <<_ACEOF
3478 #line 3478 "configure"
3479 #include "confdefs.h"
3482 #include <sys/types.h>
3483 #include <sys/stat.h>
3484 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3485 struct buf { int x; };
3486 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3487 static char *e (p, i)
3493 static char *f (char * (*g) (char **, int), char **p, ...)
3498 s = g (p, va_arg (v,int));
3502 int test (int i, double x);
3503 struct s1 {int (*f) (int a);};
3504 struct s2 {int (*f) (double a);};
3505 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3511 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3516 # Don't try gcc -ansi; that turns off useful extensions and
3517 # breaks some systems' header files.
3518 # AIX -qlanglvl=ansi
3519 # Ultrix and OSF/1 -std1
3520 # HP-UX 10.20 and later -Ae
3521 # HP-UX older versions -Aa -D_HPUX_SOURCE
3522 # SVR4 -Xc -D__EXTENSIONS__
3523 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3525 CC="$ac_save_CC $ac_arg"
3526 rm -f conftest.$ac_objext
3527 if { (eval echo "$as_me:3527: \"$ac_compile\"") >&5
3528 (eval $ac_compile) 2>&5
3530 echo "$as_me:3530: \$? = $ac_status" >&5
3531 (exit $ac_status); } &&
3532 { ac_try='test -s conftest.$ac_objext'
3533 { (eval echo "$as_me:3533: \"$ac_try\"") >&5
3536 echo "$as_me:3536: \$? = $ac_status" >&5
3537 (exit $ac_status); }; }; then
3538 ac_cv_prog_cc_stdc=$ac_arg
3541 echo "$as_me: failed program was:" >&5
3542 cat conftest.$ac_ext >&5
3544 rm -f conftest.$ac_objext
3546 rm -f conftest.$ac_ext conftest.$ac_objext
3551 case "x$ac_cv_prog_cc_stdc" in
3553 echo "$as_me:3553: result: none needed" >&5
3554 echo "${ECHO_T}none needed" >&6 ;;
3556 echo "$as_me:3556: result: $ac_cv_prog_cc_stdc" >&5
3557 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3558 CC="$CC $ac_cv_prog_cc_stdc" ;;
3561 echo "$as_me:3561: checking for an ANSI C-conforming const" >&5
3562 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3563 if test "${ac_cv_c_const+set}" = set; then
3564 echo $ECHO_N "(cached) $ECHO_C" >&6
3566 cat >conftest.$ac_ext <<_ACEOF
3567 #line 3567 "configure"
3568 #include "confdefs.h"
3573 /* FIXME: Include the comments suggested by Paul. */
3575 /* Ultrix mips cc rejects this. */
3576 typedef int charset[2];
3578 /* SunOS 4.1.1 cc rejects this. */
3579 char const *const *ccp;
3581 /* NEC SVR4.0.2 mips cc rejects this. */
3582 struct point {int x, y;};
3583 static struct point const zero = {0,0};
3584 /* AIX XL C 1.02.0.0 rejects this.
3585 It does not let you subtract one const X* pointer from another in
3586 an arm of an if-expression whose if-part is not a constant
3588 const char *g = "string";
3589 ccp = &g + (g ? g-g : 0);
3590 /* HPUX 7.0 cc rejects these. */
3593 ccp = (char const *const *) p;
3594 { /* SCO 3.2v4 cc rejects this. */
3596 char const *s = 0 ? (char *) 0 : (char const *) 0;
3600 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3602 const int *foo = &x[0];
3605 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3606 typedef const int *iptr;
3610 { /* AIX XL C 1.02.0.0 rejects this saying
3611 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3612 struct s { int j; const int *ap[3]; };
3613 struct s *b; b->j = 5;
3615 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3624 rm -f conftest.$ac_objext
3625 if { (eval echo "$as_me:3625: \"$ac_compile\"") >&5
3626 (eval $ac_compile) 2>&5
3628 echo "$as_me:3628: \$? = $ac_status" >&5
3629 (exit $ac_status); } &&
3630 { ac_try='test -s conftest.$ac_objext'
3631 { (eval echo "$as_me:3631: \"$ac_try\"") >&5
3634 echo "$as_me:3634: \$? = $ac_status" >&5
3635 (exit $ac_status); }; }; then
3638 echo "$as_me: failed program was:" >&5
3639 cat conftest.$ac_ext >&5
3642 rm -f conftest.$ac_objext conftest.$ac_ext
3644 echo "$as_me:3644: result: $ac_cv_c_const" >&5
3645 echo "${ECHO_T}$ac_cv_c_const" >&6
3646 if test $ac_cv_c_const = no; then
3648 cat >>confdefs.h <<\EOF
3654 echo "$as_me:3654: checking for signal global datatype" >&5
3655 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
3656 if test "${cf_cv_sig_atomic_t+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3661 "volatile sig_atomic_t" \
3665 cat >conftest.$ac_ext <<_ACEOF
3666 #line 3666 "configure"
3667 #include "confdefs.h"
3669 #include <sys/types.h>
3675 static void handler(int sig)
3682 signal(SIGINT, handler);
3688 rm -f conftest.$ac_objext
3689 if { (eval echo "$as_me:3689: \"$ac_compile\"") >&5
3690 (eval $ac_compile) 2>&5
3692 echo "$as_me:3692: \$? = $ac_status" >&5
3693 (exit $ac_status); } &&
3694 { ac_try='test -s conftest.$ac_objext'
3695 { (eval echo "$as_me:3695: \"$ac_try\"") >&5
3698 echo "$as_me:3698: \$? = $ac_status" >&5
3699 (exit $ac_status); }; }; then
3700 cf_cv_sig_atomic_t=$cf_type
3702 echo "$as_me: failed program was:" >&5
3703 cat conftest.$ac_ext >&5
3704 cf_cv_sig_atomic_t=no
3706 rm -f conftest.$ac_objext conftest.$ac_ext
3707 test "$cf_cv_sig_atomic_t" != no && break
3712 echo "$as_me:3712: result: $cf_cv_sig_atomic_t" >&5
3713 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
3714 test "$cf_cv_sig_atomic_t" != no && cat >>confdefs.h <<EOF
3715 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
3718 echo "$as_me:3718: checking if you want to see long compiling messages" >&5
3719 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
3721 # Check whether --enable-echo or --disable-echo was given.
3722 if test "${enable_echo+set}" = set; then
3723 enableval="$enable_echo"
3724 test "$enableval" != no && enableval=yes
3725 if test "$enableval" != "yes" ; then
3728 ECHO_LD='@echo linking $@;'
3729 RULE_CC='@echo compiling $<'
3730 SHOW_CC='@echo compiling $@'
3752 echo "$as_me:3752: result: $enableval" >&5
3753 echo "${ECHO_T}$enableval" >&6
3756 if test "$GCC" = yes ; then
3757 echo "$as_me:3757: checking version of $CC" >&5
3758 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
3759 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3760 test -z "$GCC_VERSION" && GCC_VERSION=unknown
3761 echo "$as_me:3761: result: $GCC_VERSION" >&5
3762 echo "${ECHO_T}$GCC_VERSION" >&6
3765 if ( test "$GCC" = yes || test "$GXX" = yes )
3767 echo "$as_me:3767: checking if you want to turn on gcc warnings" >&5
3768 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
3770 # Check whether --enable-warnings or --disable-warnings was given.
3771 if test "${enable_warnings+set}" = set; then
3772 enableval="$enable_warnings"
3773 test "$enableval" != yes && enableval=no
3774 if test "$enableval" != "no" ; then
3784 echo "$as_me:3784: result: $with_warnings" >&5
3785 echo "${ECHO_T}$with_warnings" >&6
3786 if test "$with_warnings" = "yes"
3789 if test "$GCC" = yes
3791 cat > conftest.i <<EOF
3793 #define GCC_PRINTF 0
3798 #ifndef GCC_NORETURN
3799 #define GCC_NORETURN /* nothing */
3802 #define GCC_UNUSED /* nothing */
3805 if test "$GCC" = yes
3807 { echo "$as_me:3807: checking for $CC __attribute__ directives..." >&5
3808 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
3809 cat > conftest.$ac_ext <<EOF
3810 #line 3810 "${as_me:-configure}"
3811 #include "confdefs.h"
3812 #include "conftest.h"
3813 #include "conftest.i"
3815 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
3817 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
3820 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
3822 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
3824 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
3825 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
3826 extern void foo(void) GCC_NORETURN;
3827 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
3829 cf_printf_attribute=no
3830 cf_scanf_attribute=no
3831 for cf_attribute in scanf printf unused noreturn
3834 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3836 cf_directive="__attribute__(($cf_attribute))"
3837 echo "checking for $CC $cf_directive" 1>&5
3839 case $cf_attribute in #(vi
3841 cf_printf_attribute=yes
3842 cat >conftest.h <<EOF
3843 #define GCC_$cf_ATTRIBUTE 1
3847 cf_scanf_attribute=yes
3848 cat >conftest.h <<EOF
3849 #define GCC_$cf_ATTRIBUTE 1
3853 cat >conftest.h <<EOF
3854 #define GCC_$cf_ATTRIBUTE $cf_directive
3859 if { (eval echo "$as_me:3859: \"$ac_compile\"") >&5
3860 (eval $ac_compile) 2>&5
3862 echo "$as_me:3862: \$? = $ac_status" >&5
3863 (exit $ac_status); }; then
3864 test -n "$verbose" && echo "$as_me:3864: result: ... $cf_attribute" >&5
3865 echo "${ECHO_T}... $cf_attribute" >&6
3866 cat conftest.h >>confdefs.h
3867 case $cf_attribute in #(vi
3869 if test "$cf_printf_attribute" = no ; then
3870 cat >>confdefs.h <<EOF
3871 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
3874 cat >>confdefs.h <<EOF
3875 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
3880 if test "$cf_scanf_attribute" = no ; then
3881 cat >>confdefs.h <<EOF
3882 #define GCC_SCANFLIKE(fmt,var) /* nothing */
3885 cat >>confdefs.h <<EOF
3886 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
3894 fgrep define conftest.i >>confdefs.h
3901 if test "$GCC" = yes ; then
3904 echo "$as_me:3904: checking if this is really Intel C compiler" >&5
3905 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
3906 cf_save_CFLAGS="$CFLAGS"
3907 CFLAGS="$CFLAGS -no-gcc"
3908 cat >conftest.$ac_ext <<_ACEOF
3909 #line 3909 "configure"
3910 #include "confdefs.h"
3916 #ifdef __INTEL_COMPILER
3925 rm -f conftest.$ac_objext
3926 if { (eval echo "$as_me:3926: \"$ac_compile\"") >&5
3927 (eval $ac_compile) 2>&5
3929 echo "$as_me:3929: \$? = $ac_status" >&5
3930 (exit $ac_status); } &&
3931 { ac_try='test -s conftest.$ac_objext'
3932 { (eval echo "$as_me:3932: \"$ac_try\"") >&5
3935 echo "$as_me:3935: \$? = $ac_status" >&5
3936 (exit $ac_status); }; }; then
3938 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
3941 echo "$as_me: failed program was:" >&5
3942 cat conftest.$ac_ext >&5
3944 rm -f conftest.$ac_objext conftest.$ac_ext
3945 CFLAGS="$cf_save_CFLAGS"
3946 echo "$as_me:3946: result: $INTEL_COMPILER" >&5
3947 echo "${ECHO_T}$INTEL_COMPILER" >&6
3952 cat > conftest.$ac_ext <<EOF
3953 #line 3953 "${as_me:-configure}"
3954 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
3957 if test "$INTEL_COMPILER" = yes
3959 # The "-wdXXX" options suppress warnings:
3960 # remark #1419: external declaration in primary source file
3961 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
3962 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
3963 # remark #193: zero used for undefined preprocessing identifier
3964 # remark #593: variable "curs_sb_left_arrow" was set but never used
3965 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
3966 # remark #869: parameter "tw" was never referenced
3967 # remark #981: operands are evaluated in unspecified order
3968 # warning #279: controlling expression is constant
3970 { echo "$as_me:3970: checking for $CC warning options..." >&5
3971 echo "$as_me: checking for $CC warning options..." >&6;}
3972 cf_save_CFLAGS="$CFLAGS"
3973 EXTRA_CFLAGS="-Wall"
3985 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
3986 if { (eval echo "$as_me:3986: \"$ac_compile\"") >&5
3987 (eval $ac_compile) 2>&5
3989 echo "$as_me:3989: \$? = $ac_status" >&5
3990 (exit $ac_status); }; then
3991 test -n "$verbose" && echo "$as_me:3991: result: ... -$cf_opt" >&5
3992 echo "${ECHO_T}... -$cf_opt" >&6
3993 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
3996 CFLAGS="$cf_save_CFLAGS"
3998 elif test "$GCC" = yes
4000 { echo "$as_me:4000: checking for $CC warning options..." >&5
4001 echo "$as_me: checking for $CC warning options..." >&6;}
4002 cf_save_CFLAGS="$CFLAGS"
4005 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
4006 for cf_opt in W Wall \
4007 Wbad-function-cast \
4011 Wmissing-declarations \
4012 Wmissing-prototypes \
4016 Wstrict-prototypes \
4017 Wundef $cf_warn_CONST
4019 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
4020 if { (eval echo "$as_me:4020: \"$ac_compile\"") >&5
4021 (eval $ac_compile) 2>&5
4023 echo "$as_me:4023: \$? = $ac_status" >&5
4024 (exit $ac_status); }; then
4025 test -n "$verbose" && echo "$as_me:4025: result: ... -$cf_opt" >&5
4026 echo "${ECHO_T}... -$cf_opt" >&6
4027 case $cf_opt in #(vi
4029 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
4032 case $GCC_VERSION in
4034 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
4036 echo "${as_me:-configure}:4036: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
4042 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
4045 CFLAGS="$cf_save_CFLAGS"
4052 # Check whether --with-curses-dir or --without-curses-dir was given.
4053 if test "${with_curses_dir+set}" = set; then
4054 withval="$with_curses_dir"
4056 if test "x$prefix" != xNONE; then
4057 cf_path_syntax="$prefix"
4059 cf_path_syntax="$ac_default_prefix"
4062 case ".$withval" in #(vi
4063 .\$\(*\)*|.\'*\'*) #(vi
4067 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4070 eval withval="$withval"
4071 case ".$withval" in #(vi
4073 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4078 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4081 { { echo "$as_me:4081: error: expected a pathname, not \"$withval\"" >&5
4082 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
4083 { (exit 1); exit 1; }; }
4087 cf_cv_curses_dir=$withval
4092 # Check whether --with-5lib or --without-5lib was given.
4093 if test "${with_5lib+set}" = set; then
4094 withval="$with_5lib"
4095 LIBS="-L/usr/5lib $LIBS"
4096 CPPFLAGS="$CPPFLAGS -I/usr/5include"
4099 # Check whether --with-ncursesw or --without-ncursesw was given.
4100 if test "${with_ncursesw+set}" = set; then
4101 withval="$with_ncursesw"
4102 cf_cv_screen=ncursesw
4105 # Check whether --with-ncurses or --without-ncurses was given.
4106 if test "${with_ncurses+set}" = set; then
4107 withval="$with_ncurses"
4108 cf_cv_screen=ncurses
4111 # Check whether --with-pdcurses or --without-pdcurses was given.
4112 if test "${with_pdcurses+set}" = set; then
4113 withval="$with_pdcurses"
4114 cf_cv_screen=pdcurses
4119 case $cf_cv_screen in
4122 echo "$as_me:4122: checking for extra include directories" >&5
4123 echo $ECHO_N "checking for extra include directories... $ECHO_C" >&6
4124 if test "${cf_cv_curses_incdir+set}" = set; then
4125 echo $ECHO_N "(cached) $ECHO_C" >&6
4128 cf_cv_curses_incdir=no
4129 case $host_os in #(vi
4131 test -d /usr/include/curses_colr && \
4132 cf_cv_curses_incdir="-I/usr/include/curses_colr"
4135 test -d /usr/5lib && \
4136 test -d /usr/5include && \
4137 cf_cv_curses_incdir="-I/usr/5include"
4142 echo "$as_me:4142: result: $cf_cv_curses_incdir" >&5
4143 echo "${ECHO_T}$cf_cv_curses_incdir" >&6
4144 test "$cf_cv_curses_incdir" != no && CPPFLAGS="$CPPFLAGS $cf_cv_curses_incdir"
4146 echo "$as_me:4146: checking if we have identified curses headers" >&5
4147 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
4148 if test "${cf_cv_ncurses_header+set}" = set; then
4149 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 cf_cv_ncurses_header=none
4155 ncurses.h ncurses/curses.h ncurses/ncurses.h
4157 cat >conftest.$ac_ext <<_ACEOF
4158 #line 4158 "configure"
4159 #include "confdefs.h"
4160 #include <${cf_header}>
4164 initscr(); tgoto("?", 0,0)
4169 rm -f conftest.$ac_objext
4170 if { (eval echo "$as_me:4170: \"$ac_compile\"") >&5
4171 (eval $ac_compile) 2>&5
4173 echo "$as_me:4173: \$? = $ac_status" >&5
4174 (exit $ac_status); } &&
4175 { ac_try='test -s conftest.$ac_objext'
4176 { (eval echo "$as_me:4176: \"$ac_try\"") >&5
4179 echo "$as_me:4179: \$? = $ac_status" >&5
4180 (exit $ac_status); }; }; then
4181 cf_cv_ncurses_header=$cf_header; break
4183 echo "$as_me: failed program was:" >&5
4184 cat conftest.$ac_ext >&5
4186 rm -f conftest.$ac_objext conftest.$ac_ext
4190 echo "$as_me:4190: result: $cf_cv_ncurses_header" >&5
4191 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
4193 if test "$cf_cv_ncurses_header" = none ; then
4194 { { echo "$as_me:4194: error: No curses header-files found" >&5
4195 echo "$as_me: error: No curses header-files found" >&2;}
4196 { (exit 1); exit 1; }; }
4199 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
4201 for ac_header in $cf_cv_ncurses_header
4203 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4204 echo "$as_me:4204: checking for $ac_header" >&5
4205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4209 cat >conftest.$ac_ext <<_ACEOF
4210 #line 4210 "configure"
4211 #include "confdefs.h"
4212 #include <$ac_header>
4214 if { (eval echo "$as_me:4214: \"$ac_cpp conftest.$ac_ext\"") >&5
4215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4217 egrep -v '^ *\+' conftest.er1 >conftest.err
4219 cat conftest.err >&5
4220 echo "$as_me:4220: \$? = $ac_status" >&5
4221 (exit $ac_status); } >/dev/null; then
4222 if test -s conftest.err; then
4223 ac_cpp_err=$ac_c_preproc_warn_flag
4230 if test -z "$ac_cpp_err"; then
4231 eval "$as_ac_Header=yes"
4233 echo "$as_me: failed program was:" >&5
4234 cat conftest.$ac_ext >&5
4235 eval "$as_ac_Header=no"
4237 rm -f conftest.err conftest.$ac_ext
4239 echo "$as_me:4239: result: `eval echo '${'$as_ac_Header'}'`" >&5
4240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4242 cat >>confdefs.h <<EOF
4243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4249 echo "$as_me:4249: checking for terminfo header" >&5
4250 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
4251 if test "${cf_cv_term_header+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4255 case ${cf_cv_ncurses_header} in #(vi
4256 */ncurses.h|*/ncursesw.h) #(vi
4257 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
4260 cf_term_header=term.h
4264 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
4266 cat >conftest.$ac_ext <<_ACEOF
4267 #line 4267 "configure"
4268 #include "confdefs.h"
4270 #include <${cf_cv_ncurses_header:-curses.h}>
4276 int x = auto_left_margin
4281 rm -f conftest.$ac_objext
4282 if { (eval echo "$as_me:4282: \"$ac_compile\"") >&5
4283 (eval $ac_compile) 2>&5
4285 echo "$as_me:4285: \$? = $ac_status" >&5
4286 (exit $ac_status); } &&
4287 { ac_try='test -s conftest.$ac_objext'
4288 { (eval echo "$as_me:4288: \"$ac_try\"") >&5
4291 echo "$as_me:4291: \$? = $ac_status" >&5
4292 (exit $ac_status); }; }; then
4294 cf_cv_term_header="$cf_test"
4296 echo "$as_me: failed program was:" >&5
4297 cat conftest.$ac_ext >&5
4299 cf_cv_term_header=unknown
4302 rm -f conftest.$ac_objext conftest.$ac_ext
4303 test "$cf_cv_term_header" != unknown && break
4307 echo "$as_me:4307: result: $cf_cv_term_header" >&5
4308 echo "${ECHO_T}$cf_cv_term_header" >&6
4310 # Set definitions to allow ifdef'ing to accommodate subdirectories
4312 case $cf_cv_term_header in # (vi
4314 cat >>confdefs.h <<\EOF
4315 #define HAVE_TERM_H 1
4321 case $cf_cv_term_header in # (vi
4322 ncurses/term.h) #(vi
4323 cat >>confdefs.h <<\EOF
4324 #define HAVE_NCURSES_TERM_H 1
4329 cat >>confdefs.h <<\EOF
4330 #define HAVE_NCURSESW_TERM_H 1
4336 echo "$as_me:4336: checking for ncurses version" >&5
4337 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
4338 if test "${cf_cv_ncurses_version+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4342 cf_cv_ncurses_version=no
4345 if test "$cross_compiling" = yes; then
4347 # This will not work if the preprocessor splits the line after the
4348 # Autoconf token. The 'unproto' program does that.
4349 cat > conftest.$ac_ext <<EOF
4350 #include <${cf_cv_ncurses_header:-curses.h}>
4352 #ifdef NCURSES_VERSION
4353 Autoconf NCURSES_VERSION
4361 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
4362 { (eval echo "$as_me:4362: \"$cf_try\"") >&5
4365 echo "$as_me:4365: \$? = $ac_status" >&5
4366 (exit $ac_status); }
4367 if test -f conftest.out ; then
4368 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
4369 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
4374 cat >conftest.$ac_ext <<_ACEOF
4375 #line 4375 "configure"
4376 #include "confdefs.h"
4378 #include <${cf_cv_ncurses_header:-curses.h}>
4382 FILE *fp = fopen("$cf_tempfile", "w");
4383 #ifdef NCURSES_VERSION
4384 # ifdef NCURSES_VERSION_PATCH
4385 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
4387 fprintf(fp, "%s\n", NCURSES_VERSION);
4391 fprintf(fp, "old\n");
4396 ${cf_cv_main_return:-return}(0);
4399 rm -f conftest$ac_exeext
4400 if { (eval echo "$as_me:4400: \"$ac_link\"") >&5
4401 (eval $ac_link) 2>&5
4403 echo "$as_me:4403: \$? = $ac_status" >&5
4404 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4405 { (eval echo "$as_me:4405: \"$ac_try\"") >&5
4408 echo "$as_me:4408: \$? = $ac_status" >&5
4409 (exit $ac_status); }; }; then
4411 cf_cv_ncurses_version=`cat $cf_tempfile`
4413 echo "$as_me: program exited with status $ac_status" >&5
4414 echo "$as_me: failed program was:" >&5
4415 cat conftest.$ac_ext >&5
4417 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4422 echo "$as_me:4422: result: $cf_cv_ncurses_version" >&5
4423 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
4424 test "$cf_cv_ncurses_version" = no || cat >>confdefs.h <<\EOF
4428 echo "$as_me:4428: checking if we have identified curses libraries" >&5
4429 echo $ECHO_N "checking if we have identified curses libraries... $ECHO_C" >&6
4430 cat >conftest.$ac_ext <<_ACEOF
4431 #line 4431 "configure"
4432 #include "confdefs.h"
4433 #include <${cf_cv_ncurses_header:-curses.h}>
4437 initscr(); tgoto("?", 0,0)
4442 rm -f conftest.$ac_objext conftest$ac_exeext
4443 if { (eval echo "$as_me:4443: \"$ac_link\"") >&5
4444 (eval $ac_link) 2>&5
4446 echo "$as_me:4446: \$? = $ac_status" >&5
4447 (exit $ac_status); } &&
4448 { ac_try='test -s conftest$ac_exeext'
4449 { (eval echo "$as_me:4449: \"$ac_try\"") >&5
4452 echo "$as_me:4452: \$? = $ac_status" >&5
4453 (exit $ac_status); }; }; then
4456 echo "$as_me: failed program was:" >&5
4457 cat conftest.$ac_ext >&5
4460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4461 echo "$as_me:4461: result: $cf_result" >&5
4462 echo "${ECHO_T}$cf_result" >&6
4464 if test "$cf_result" = no ; then
4465 case $host_os in #(vi
4467 echo "$as_me:4467: checking for tgoto in -lmytinfo" >&5
4468 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
4469 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 ac_check_lib_save_LIBS=$LIBS
4473 LIBS="-lmytinfo $LIBS"
4474 cat >conftest.$ac_ext <<_ACEOF
4475 #line 4475 "configure"
4476 #include "confdefs.h"
4478 /* Override any gcc2 internal prototype to avoid an error. */
4482 /* We use char because int might match the return type of a gcc2
4483 builtin and then its argument prototype would still apply. */
4493 rm -f conftest.$ac_objext conftest$ac_exeext
4494 if { (eval echo "$as_me:4494: \"$ac_link\"") >&5
4495 (eval $ac_link) 2>&5
4497 echo "$as_me:4497: \$? = $ac_status" >&5
4498 (exit $ac_status); } &&
4499 { ac_try='test -s conftest$ac_exeext'
4500 { (eval echo "$as_me:4500: \"$ac_try\"") >&5
4503 echo "$as_me:4503: \$? = $ac_status" >&5
4504 (exit $ac_status); }; }; then
4505 ac_cv_lib_mytinfo_tgoto=yes
4507 echo "$as_me: failed program was:" >&5
4508 cat conftest.$ac_ext >&5
4509 ac_cv_lib_mytinfo_tgoto=no
4511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4512 LIBS=$ac_check_lib_save_LIBS
4514 echo "$as_me:4514: result: $ac_cv_lib_mytinfo_tgoto" >&5
4515 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
4516 if test $ac_cv_lib_mytinfo_tgoto = yes; then
4517 LIBS="-lmytinfo $LIBS"
4522 echo "$as_me:4522: checking for initscr in -lcur_colr" >&5
4523 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
4524 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
4527 ac_check_lib_save_LIBS=$LIBS
4528 LIBS="-lcur_colr $LIBS"
4529 cat >conftest.$ac_ext <<_ACEOF
4530 #line 4530 "configure"
4531 #include "confdefs.h"
4533 /* Override any gcc2 internal prototype to avoid an error. */
4537 /* We use char because int might match the return type of a gcc2
4538 builtin and then its argument prototype would still apply. */
4548 rm -f conftest.$ac_objext conftest$ac_exeext
4549 if { (eval echo "$as_me:4549: \"$ac_link\"") >&5
4550 (eval $ac_link) 2>&5
4552 echo "$as_me:4552: \$? = $ac_status" >&5
4553 (exit $ac_status); } &&
4554 { ac_try='test -s conftest$ac_exeext'
4555 { (eval echo "$as_me:4555: \"$ac_try\"") >&5
4558 echo "$as_me:4558: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }; then
4560 ac_cv_lib_cur_colr_initscr=yes
4562 echo "$as_me: failed program was:" >&5
4563 cat conftest.$ac_ext >&5
4564 ac_cv_lib_cur_colr_initscr=no
4566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4567 LIBS=$ac_check_lib_save_LIBS
4569 echo "$as_me:4569: result: $ac_cv_lib_cur_colr_initscr" >&5
4570 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
4571 if test $ac_cv_lib_cur_colr_initscr = yes; then
4573 LIBS="-lcur_colr $LIBS"
4574 ac_cv_func_initscr=yes
4578 echo "$as_me:4578: checking for initscr in -lHcurses" >&5
4579 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
4580 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4583 ac_check_lib_save_LIBS=$LIBS
4584 LIBS="-lHcurses $LIBS"
4585 cat >conftest.$ac_ext <<_ACEOF
4586 #line 4586 "configure"
4587 #include "confdefs.h"
4589 /* Override any gcc2 internal prototype to avoid an error. */
4593 /* We use char because int might match the return type of a gcc2
4594 builtin and then its argument prototype would still apply. */
4604 rm -f conftest.$ac_objext conftest$ac_exeext
4605 if { (eval echo "$as_me:4605: \"$ac_link\"") >&5
4606 (eval $ac_link) 2>&5
4608 echo "$as_me:4608: \$? = $ac_status" >&5
4609 (exit $ac_status); } &&
4610 { ac_try='test -s conftest$ac_exeext'
4611 { (eval echo "$as_me:4611: \"$ac_try\"") >&5
4614 echo "$as_me:4614: \$? = $ac_status" >&5
4615 (exit $ac_status); }; }; then
4616 ac_cv_lib_Hcurses_initscr=yes
4618 echo "$as_me: failed program was:" >&5
4619 cat conftest.$ac_ext >&5
4620 ac_cv_lib_Hcurses_initscr=no
4622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4623 LIBS=$ac_check_lib_save_LIBS
4625 echo "$as_me:4625: result: $ac_cv_lib_Hcurses_initscr" >&5
4626 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
4627 if test $ac_cv_lib_Hcurses_initscr = yes; then
4629 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
4630 LIBS="-lHcurses $LIBS"
4631 CPPFLAGS="$CPPFLAGS -D__HP_CURSES -D_HP_CURSES"
4632 ac_cv_func_initscr=yes
4639 linux*) # Suse Linux does not follow /usr/lib convention
4641 if test -n "/lib" ; then
4642 for cf_add_libdir in /lib
4644 if test $cf_add_libdir = /usr/lib ; then
4646 elif test -d $cf_add_libdir
4649 if test -n "$LDFLAGS$LIBS" ; then
4650 # a loop is needed to ensure we can add subdirs of existing dirs
4651 for cf_test_libdir in $LDFLAGS $LIBS ; do
4652 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
4653 cf_have_libdir=yes; break
4657 if test "$cf_have_libdir" = no ; then
4658 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
4660 echo "${as_me:-configure}:4660: testing adding $cf_add_libdir to library-path ..." 1>&5
4662 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
4670 if test -d /usr/5lib ; then
4672 if test -n "/usr/5lib" ; then
4673 for cf_add_libdir in /usr/5lib
4675 if test $cf_add_libdir = /usr/lib ; then
4677 elif test -d $cf_add_libdir
4680 if test -n "$LDFLAGS$LIBS" ; then
4681 # a loop is needed to ensure we can add subdirs of existing dirs
4682 for cf_test_libdir in $LDFLAGS $LIBS ; do
4683 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
4684 cf_have_libdir=yes; break
4688 if test "$cf_have_libdir" = no ; then
4689 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
4691 echo "${as_me:-configure}:4691: testing adding $cf_add_libdir to library-path ..." 1>&5
4693 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
4699 LIBS="-lcurses -ltermcap $LIBS"
4701 ac_cv_func_initscr=yes
4705 if test ".$ac_cv_func_initscr" != .yes ; then
4706 cf_save_LIBS="$LIBS"
4710 if test ".${cf_cv_ncurses_version:-no}" != .no
4712 cf_check_list="ncurses curses cursesX"
4714 cf_check_list="cursesX curses ncurses"
4717 # Check for library containing tgoto. Do this before curses library
4718 # because it may be needed to link the test-case for initscr.
4719 echo "$as_me:4719: checking for tgoto" >&5
4720 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
4721 if test "${ac_cv_func_tgoto+set}" = set; then
4722 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 cat >conftest.$ac_ext <<_ACEOF
4725 #line 4725 "configure"
4726 #include "confdefs.h"
4727 /* System header to define __stub macros and hopefully few prototypes,
4728 which can conflict with char tgoto (); below. */
4730 /* Override any gcc2 internal prototype to avoid an error. */
4734 /* We use char because int might match the return type of a gcc2
4735 builtin and then its argument prototype would still apply. */
4742 /* The GNU C library defines this for functions which it implements
4743 to always fail with ENOSYS. Some functions are actually named
4744 something starting with __ and the normal name is an alias. */
4745 #if defined (__stub_tgoto) || defined (__stub___tgoto)
4755 rm -f conftest.$ac_objext conftest$ac_exeext
4756 if { (eval echo "$as_me:4756: \"$ac_link\"") >&5
4757 (eval $ac_link) 2>&5
4759 echo "$as_me:4759: \$? = $ac_status" >&5
4760 (exit $ac_status); } &&
4761 { ac_try='test -s conftest$ac_exeext'
4762 { (eval echo "$as_me:4762: \"$ac_try\"") >&5
4765 echo "$as_me:4765: \$? = $ac_status" >&5
4766 (exit $ac_status); }; }; then
4767 ac_cv_func_tgoto=yes
4769 echo "$as_me: failed program was:" >&5
4770 cat conftest.$ac_ext >&5
4773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4775 echo "$as_me:4775: result: $ac_cv_func_tgoto" >&5
4776 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
4777 if test $ac_cv_func_tgoto = yes; then
4778 cf_term_lib=predefined
4781 for cf_term_lib in $cf_check_list termcap termlib unknown
4783 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
4784 echo "$as_me:4784: checking for tgoto in -l$cf_term_lib" >&5
4785 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
4786 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
4787 echo $ECHO_N "(cached) $ECHO_C" >&6
4789 ac_check_lib_save_LIBS=$LIBS
4790 LIBS="-l$cf_term_lib $LIBS"
4791 cat >conftest.$ac_ext <<_ACEOF
4792 #line 4792 "configure"
4793 #include "confdefs.h"
4795 /* Override any gcc2 internal prototype to avoid an error. */
4799 /* We use char because int might match the return type of a gcc2
4800 builtin and then its argument prototype would still apply. */
4810 rm -f conftest.$ac_objext conftest$ac_exeext
4811 if { (eval echo "$as_me:4811: \"$ac_link\"") >&5
4812 (eval $ac_link) 2>&5
4814 echo "$as_me:4814: \$? = $ac_status" >&5
4815 (exit $ac_status); } &&
4816 { ac_try='test -s conftest$ac_exeext'
4817 { (eval echo "$as_me:4817: \"$ac_try\"") >&5
4820 echo "$as_me:4820: \$? = $ac_status" >&5
4821 (exit $ac_status); }; }; then
4822 eval "$as_ac_Lib=yes"
4824 echo "$as_me: failed program was:" >&5
4825 cat conftest.$ac_ext >&5
4826 eval "$as_ac_Lib=no"
4828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4829 LIBS=$ac_check_lib_save_LIBS
4831 echo "$as_me:4831: result: `eval echo '${'$as_ac_Lib'}'`" >&5
4832 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
4833 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
4841 # Check for library containing initscr
4842 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
4843 for cf_curs_lib in $cf_check_list xcurses jcurses pdcurses unknown
4845 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
4846 echo "$as_me:4846: checking for initscr in -l$cf_curs_lib" >&5
4847 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
4848 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
4849 echo $ECHO_N "(cached) $ECHO_C" >&6
4851 ac_check_lib_save_LIBS=$LIBS
4852 LIBS="-l$cf_curs_lib $LIBS"
4853 cat >conftest.$ac_ext <<_ACEOF
4854 #line 4854 "configure"
4855 #include "confdefs.h"
4857 /* Override any gcc2 internal prototype to avoid an error. */
4861 /* We use char because int might match the return type of a gcc2
4862 builtin and then its argument prototype would still apply. */
4872 rm -f conftest.$ac_objext conftest$ac_exeext
4873 if { (eval echo "$as_me:4873: \"$ac_link\"") >&5
4874 (eval $ac_link) 2>&5
4876 echo "$as_me:4876: \$? = $ac_status" >&5
4877 (exit $ac_status); } &&
4878 { ac_try='test -s conftest$ac_exeext'
4879 { (eval echo "$as_me:4879: \"$ac_try\"") >&5
4882 echo "$as_me:4882: \$? = $ac_status" >&5
4883 (exit $ac_status); }; }; then
4884 eval "$as_ac_Lib=yes"
4886 echo "$as_me: failed program was:" >&5
4887 cat conftest.$ac_ext >&5
4888 eval "$as_ac_Lib=no"
4890 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4891 LIBS=$ac_check_lib_save_LIBS
4893 echo "$as_me:4893: result: `eval echo '${'$as_ac_Lib'}'`" >&5
4894 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
4895 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
4900 test $cf_curs_lib = unknown && { { echo "$as_me:4900: error: no curses library found" >&5
4901 echo "$as_me: error: no curses library found" >&2;}
4902 { (exit 1); exit 1; }; }
4904 LIBS="-l$cf_curs_lib $cf_save_LIBS"
4905 if test "$cf_term_lib" = unknown ; then
4906 echo "$as_me:4906: checking if we can link with $cf_curs_lib library" >&5
4907 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
4908 cat >conftest.$ac_ext <<_ACEOF
4909 #line 4909 "configure"
4910 #include "confdefs.h"
4911 #include <${cf_cv_ncurses_header:-curses.h}>
4920 rm -f conftest.$ac_objext conftest$ac_exeext
4921 if { (eval echo "$as_me:4921: \"$ac_link\"") >&5
4922 (eval $ac_link) 2>&5
4924 echo "$as_me:4924: \$? = $ac_status" >&5
4925 (exit $ac_status); } &&
4926 { ac_try='test -s conftest$ac_exeext'
4927 { (eval echo "$as_me:4927: \"$ac_try\"") >&5
4930 echo "$as_me:4930: \$? = $ac_status" >&5
4931 (exit $ac_status); }; }; then
4934 echo "$as_me: failed program was:" >&5
4935 cat conftest.$ac_ext >&5
4938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4939 echo "$as_me:4939: result: $cf_result" >&5
4940 echo "${ECHO_T}$cf_result" >&6
4941 test $cf_result = no && { { echo "$as_me:4941: error: Cannot link curses library" >&5
4942 echo "$as_me: error: Cannot link curses library" >&2;}
4943 { (exit 1); exit 1; }; }
4944 elif test "$cf_curs_lib" = "$cf_term_lib" ; then
4946 elif test "$cf_term_lib" != predefined ; then
4947 echo "$as_me:4947: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
4948 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
4949 cat >conftest.$ac_ext <<_ACEOF
4950 #line 4950 "configure"
4951 #include "confdefs.h"
4952 #include <${cf_cv_ncurses_header:-curses.h}>
4956 initscr(); tgoto((char *)0, 0, 0);
4961 rm -f conftest.$ac_objext conftest$ac_exeext
4962 if { (eval echo "$as_me:4962: \"$ac_link\"") >&5
4963 (eval $ac_link) 2>&5
4965 echo "$as_me:4965: \$? = $ac_status" >&5
4966 (exit $ac_status); } &&
4967 { ac_try='test -s conftest$ac_exeext'
4968 { (eval echo "$as_me:4968: \"$ac_try\"") >&5
4971 echo "$as_me:4971: \$? = $ac_status" >&5
4972 (exit $ac_status); }; }; then
4975 echo "$as_me: failed program was:" >&5
4976 cat conftest.$ac_ext >&5
4978 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
4979 cat >conftest.$ac_ext <<_ACEOF
4980 #line 4980 "configure"
4981 #include "confdefs.h"
4982 #include <${cf_cv_ncurses_header:-curses.h}>
4991 rm -f conftest.$ac_objext conftest$ac_exeext
4992 if { (eval echo "$as_me:4992: \"$ac_link\"") >&5
4993 (eval $ac_link) 2>&5
4995 echo "$as_me:4995: \$? = $ac_status" >&5
4996 (exit $ac_status); } &&
4997 { ac_try='test -s conftest$ac_exeext'
4998 { (eval echo "$as_me:4998: \"$ac_try\"") >&5
5001 echo "$as_me:5001: \$? = $ac_status" >&5
5002 (exit $ac_status); }; }; then
5005 echo "$as_me: failed program was:" >&5
5006 cat conftest.$ac_ext >&5
5009 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5012 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5013 echo "$as_me:5013: result: $cf_result" >&5
5014 echo "${ECHO_T}$cf_result" >&6
5022 cf_ncuconfig_root=ncurses
5024 echo "Looking for ${cf_ncuconfig_root}-config"
5025 for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
5027 # Extract the first word of "$ac_prog", so it can be a program name with args.
5028 set dummy $ac_prog; ac_word=$2
5029 echo "$as_me:5029: checking for $ac_word" >&5
5030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5031 if test "${ac_cv_path_NCURSES_CONFIG+set}" = set; then
5032 echo $ECHO_N "(cached) $ECHO_C" >&6
5034 case $NCURSES_CONFIG in
5036 ac_cv_path_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test with a path.
5039 ac_save_IFS=$IFS; IFS=$ac_path_separator
5041 for ac_dir in $ac_dummy; do
5043 test -z "$ac_dir" && ac_dir=.
5044 if $as_executable_p "$ac_dir/$ac_word"; then
5045 ac_cv_path_NCURSES_CONFIG="$ac_dir/$ac_word"
5046 echo "$as_me:5046: found $ac_dir/$ac_word" >&5
5054 NCURSES_CONFIG=$ac_cv_path_NCURSES_CONFIG
5056 if test -n "$NCURSES_CONFIG"; then
5057 echo "$as_me:5057: result: $NCURSES_CONFIG" >&5
5058 echo "${ECHO_T}$NCURSES_CONFIG" >&6
5060 echo "$as_me:5060: result: no" >&5
5061 echo "${ECHO_T}no" >&6
5064 test -n "$NCURSES_CONFIG" && break
5066 test -n "$NCURSES_CONFIG" || NCURSES_CONFIG="none"
5068 if test "$NCURSES_CONFIG" != none ; then
5070 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
5071 LIBS="`$NCURSES_CONFIG --libs` $LIBS"
5073 # even with config script, some packages use no-override for curses.h
5075 echo "$as_me:5075: checking if we have identified curses headers" >&5
5076 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
5077 if test "${cf_cv_ncurses_header+set}" = set; then
5078 echo $ECHO_N "(cached) $ECHO_C" >&6
5081 cf_cv_ncurses_header=none
5088 cat >conftest.$ac_ext <<_ACEOF
5089 #line 5089 "configure"
5090 #include "confdefs.h"
5091 #include <${cf_header}>
5095 initscr(); tgoto("?", 0,0)
5100 rm -f conftest.$ac_objext
5101 if { (eval echo "$as_me:5101: \"$ac_compile\"") >&5
5102 (eval $ac_compile) 2>&5
5104 echo "$as_me:5104: \$? = $ac_status" >&5
5105 (exit $ac_status); } &&
5106 { ac_try='test -s conftest.$ac_objext'
5107 { (eval echo "$as_me:5107: \"$ac_try\"") >&5
5110 echo "$as_me:5110: \$? = $ac_status" >&5
5111 (exit $ac_status); }; }; then
5112 cf_cv_ncurses_header=$cf_header; break
5114 echo "$as_me: failed program was:" >&5
5115 cat conftest.$ac_ext >&5
5117 rm -f conftest.$ac_objext conftest.$ac_ext
5121 echo "$as_me:5121: result: $cf_cv_ncurses_header" >&5
5122 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
5124 if test "$cf_cv_ncurses_header" = none ; then
5125 { { echo "$as_me:5125: error: No curses header-files found" >&5
5126 echo "$as_me: error: No curses header-files found" >&2;}
5127 { (exit 1); exit 1; }; }
5130 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
5132 for ac_header in $cf_cv_ncurses_header
5134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5135 echo "$as_me:5135: checking for $ac_header" >&5
5136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5138 echo $ECHO_N "(cached) $ECHO_C" >&6
5140 cat >conftest.$ac_ext <<_ACEOF
5141 #line 5141 "configure"
5142 #include "confdefs.h"
5143 #include <$ac_header>
5145 if { (eval echo "$as_me:5145: \"$ac_cpp conftest.$ac_ext\"") >&5
5146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5148 egrep -v '^ *\+' conftest.er1 >conftest.err
5150 cat conftest.err >&5
5151 echo "$as_me:5151: \$? = $ac_status" >&5
5152 (exit $ac_status); } >/dev/null; then
5153 if test -s conftest.err; then
5154 ac_cpp_err=$ac_c_preproc_warn_flag
5161 if test -z "$ac_cpp_err"; then
5162 eval "$as_ac_Header=yes"
5164 echo "$as_me: failed program was:" >&5
5165 cat conftest.$ac_ext >&5
5166 eval "$as_ac_Header=no"
5168 rm -f conftest.err conftest.$ac_ext
5170 echo "$as_me:5170: result: `eval echo '${'$as_ac_Header'}'`" >&5
5171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5173 cat >>confdefs.h <<EOF
5174 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5180 cat >>confdefs.h <<\EOF
5184 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
5186 cat >>confdefs.h <<EOF
5187 #define $cf_nculib_ROOT 1
5190 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
5194 cf_ncuhdr_root=ncurses
5196 test -n "$cf_cv_curses_dir" && \
5197 test "$cf_cv_curses_dir" != "no" && { \
5199 if test -n "$cf_cv_curses_dir/include $cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
5200 for cf_add_incdir in $cf_cv_curses_dir/include $cf_cv_curses_dir/include/$cf_ncuhdr_root
5202 while test $cf_add_incdir != /usr/include
5204 if test -d $cf_add_incdir
5207 if test -n "$CFLAGS$CPPFLAGS" ; then
5208 # a loop is needed to ensure we can add subdirs of existing dirs
5209 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
5210 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
5211 cf_have_incdir=yes; break
5216 if test "$cf_have_incdir" = no ; then
5217 if test "$cf_add_incdir" = /usr/local/include ; then
5218 if test "$GCC" = yes
5220 cf_save_CPPFLAGS=$CPPFLAGS
5221 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5222 cat >conftest.$ac_ext <<_ACEOF
5223 #line 5223 "configure"
5224 #include "confdefs.h"
5234 rm -f conftest.$ac_objext
5235 if { (eval echo "$as_me:5235: \"$ac_compile\"") >&5
5236 (eval $ac_compile) 2>&5
5238 echo "$as_me:5238: \$? = $ac_status" >&5
5239 (exit $ac_status); } &&
5240 { ac_try='test -s conftest.$ac_objext'
5241 { (eval echo "$as_me:5241: \"$ac_try\"") >&5
5244 echo "$as_me:5244: \$? = $ac_status" >&5
5245 (exit $ac_status); }; }; then
5248 echo "$as_me: failed program was:" >&5
5249 cat conftest.$ac_ext >&5
5252 rm -f conftest.$ac_objext conftest.$ac_ext
5253 CPPFLAGS=$cf_save_CPPFLAGS
5258 if test "$cf_have_incdir" = no ; then
5259 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
5261 echo "${as_me:-configure}:5261: testing adding $cf_add_incdir to include-path ..." 1>&5
5263 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5265 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
5266 test "$cf_top_incdir" = "$cf_add_incdir" && break
5267 cf_add_incdir="$cf_top_incdir"
5278 echo "$as_me:5278: checking for $cf_ncuhdr_root header in include-path" >&5
5279 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
5280 if test "${cf_cv_ncurses_h+set}" = set; then
5281 echo $ECHO_N "(cached) $ECHO_C" >&6
5284 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
5285 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
5286 for cf_header in $cf_header_list
5289 cat >conftest.$ac_ext <<_ACEOF
5290 #line 5290 "configure"
5291 #include "confdefs.h"
5293 #include <$cf_header>
5298 #ifdef NCURSES_VERSION
5300 printf("%s\n", NCURSES_VERSION);
5313 rm -f conftest.$ac_objext
5314 if { (eval echo "$as_me:5314: \"$ac_compile\"") >&5
5315 (eval $ac_compile) 2>&5
5317 echo "$as_me:5317: \$? = $ac_status" >&5
5318 (exit $ac_status); } &&
5319 { ac_try='test -s conftest.$ac_objext'
5320 { (eval echo "$as_me:5320: \"$ac_try\"") >&5
5323 echo "$as_me:5323: \$? = $ac_status" >&5
5324 (exit $ac_status); }; }; then
5325 cf_cv_ncurses_h=$cf_header
5328 echo "$as_me: failed program was:" >&5
5329 cat conftest.$ac_ext >&5
5332 rm -f conftest.$ac_objext conftest.$ac_ext
5334 test "$cf_cv_ncurses_h" != no && break
5338 echo "$as_me:5338: result: $cf_cv_ncurses_h" >&5
5339 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
5341 if test "$cf_cv_ncurses_h" != no ; then
5342 cf_cv_ncurses_header=$cf_cv_ncurses_h
5345 echo "$as_me:5345: checking for $cf_ncuhdr_root include-path" >&5
5346 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
5347 if test "${cf_cv_ncurses_h2+set}" = set; then
5348 echo $ECHO_N "(cached) $ECHO_C" >&6
5351 test -n "$verbose" && echo
5355 # collect the current set of include-directories from compiler flags
5356 cf_header_path_list=""
5357 if test -n "${CFLAGS}${CPPFLAGS}" ; then
5358 for cf_header_path in $CPPFLAGS $CFLAGS
5360 case $cf_header_path in #(vi
5362 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
5364 test "$cf_header_path" != "NONE" && \
5365 test -d "$cf_header_path" && \
5367 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
5368 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
5369 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
5370 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
5371 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
5372 test -d $cf_header_path/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
5375 cf_header_path_list="$cf_header_path_list $cf_search"
5381 # add the variations for the package we are looking for
5385 test "/usr" != "$prefix" && \
5387 (test $prefix = NONE || test "/usr" != "$prefix") && {
5388 test -n "$verbose" && echo " ... testing for include-directories under /usr"
5389 test -d /usr/include && cf_search="$cf_search /usr/include"
5390 test -d /usr/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/include/$cf_ncuhdr_root"
5391 test -d /usr/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/include/$cf_ncuhdr_root/include"
5392 test -d /usr/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/$cf_ncuhdr_root/include"
5393 test -d /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
5396 test "$prefix" != "NONE" && \
5397 test -d "$prefix" && \
5399 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
5400 test -d $prefix/include && cf_search="$cf_search $prefix/include"
5401 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
5402 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
5403 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
5404 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
5407 test "/usr/local" != "$prefix" && \
5408 test -d "/usr/local" && \
5409 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
5410 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
5411 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
5412 test -d /usr/local/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root"
5413 test -d /usr/local/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root/include"
5414 test -d /usr/local/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include"
5415 test -d /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
5418 test "/opt" != "$prefix" && \
5420 (test $prefix = NONE || test "/opt" != "$prefix") && {
5421 test -n "$verbose" && echo " ... testing for include-directories under /opt"
5422 test -d /opt/include && cf_search="$cf_search /opt/include"
5423 test -d /opt/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/include/$cf_ncuhdr_root"
5424 test -d /opt/include/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/include/$cf_ncuhdr_root/include"
5425 test -d /opt/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/$cf_ncuhdr_root/include"
5426 test -d /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
5429 test "$HOME" != "$prefix" && \
5430 test -d "$HOME" && \
5431 (test $prefix = NONE || test "$HOME" != "$prefix") && {
5432 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
5433 test -d $HOME/include && cf_search="$cf_search $HOME/include"
5434 test -d $HOME/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root"
5435 test -d $HOME/include/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root/include"
5436 test -d $HOME/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include"
5437 test -d $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
5440 test "$includedir" != NONE && \
5441 test "$includedir" != "/usr/include" && \
5442 test -d "$includedir" && {
5443 test -d $includedir && cf_search="$cf_search $includedir"
5444 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
5447 test "$oldincludedir" != NONE && \
5448 test "$oldincludedir" != "/usr/include" && \
5449 test -d "$oldincludedir" && {
5450 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
5451 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
5454 cf_search="$cf_search $cf_header_path_list"
5456 test -n "$verbose" && echo search path $cf_search
5457 cf_save2_CPPFLAGS="$CPPFLAGS"
5458 for cf_incdir in $cf_search
5461 if test -n "$cf_incdir" ; then
5462 for cf_add_incdir in $cf_incdir
5464 while test $cf_add_incdir != /usr/include
5466 if test -d $cf_add_incdir
5469 if test -n "$CFLAGS$CPPFLAGS" ; then
5470 # a loop is needed to ensure we can add subdirs of existing dirs
5471 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
5472 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
5473 cf_have_incdir=yes; break
5478 if test "$cf_have_incdir" = no ; then
5479 if test "$cf_add_incdir" = /usr/local/include ; then
5480 if test "$GCC" = yes
5482 cf_save_CPPFLAGS=$CPPFLAGS
5483 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5484 cat >conftest.$ac_ext <<_ACEOF
5485 #line 5485 "configure"
5486 #include "confdefs.h"
5496 rm -f conftest.$ac_objext
5497 if { (eval echo "$as_me:5497: \"$ac_compile\"") >&5
5498 (eval $ac_compile) 2>&5
5500 echo "$as_me:5500: \$? = $ac_status" >&5
5501 (exit $ac_status); } &&
5502 { ac_try='test -s conftest.$ac_objext'
5503 { (eval echo "$as_me:5503: \"$ac_try\"") >&5
5506 echo "$as_me:5506: \$? = $ac_status" >&5
5507 (exit $ac_status); }; }; then
5510 echo "$as_me: failed program was:" >&5
5511 cat conftest.$ac_ext >&5
5514 rm -f conftest.$ac_objext conftest.$ac_ext
5515 CPPFLAGS=$cf_save_CPPFLAGS
5520 if test "$cf_have_incdir" = no ; then
5521 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
5523 echo "${as_me:-configure}:5523: testing adding $cf_add_incdir to include-path ..." 1>&5
5525 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5527 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
5528 test "$cf_top_incdir" = "$cf_add_incdir" && break
5529 cf_add_incdir="$cf_top_incdir"
5543 cat >conftest.$ac_ext <<_ACEOF
5544 #line 5544 "configure"
5545 #include "confdefs.h"
5547 #include <$cf_header>
5552 #ifdef NCURSES_VERSION
5554 printf("%s\n", NCURSES_VERSION);
5567 rm -f conftest.$ac_objext
5568 if { (eval echo "$as_me:5568: \"$ac_compile\"") >&5
5569 (eval $ac_compile) 2>&5
5571 echo "$as_me:5571: \$? = $ac_status" >&5
5572 (exit $ac_status); } &&
5573 { ac_try='test -s conftest.$ac_objext'
5574 { (eval echo "$as_me:5574: \"$ac_try\"") >&5
5577 echo "$as_me:5577: \$? = $ac_status" >&5
5578 (exit $ac_status); }; }; then
5579 cf_cv_ncurses_h2=$cf_header
5582 echo "$as_me: failed program was:" >&5
5583 cat conftest.$ac_ext >&5
5586 rm -f conftest.$ac_objext conftest.$ac_ext
5588 if test "$cf_cv_ncurses_h2" != no ; then
5589 cf_cv_ncurses_h2=$cf_incdir/$cf_header
5590 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
5593 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
5595 CPPFLAGS="$cf_save2_CPPFLAGS"
5596 test "$cf_cv_ncurses_h2" != no && break
5598 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:5598: error: not found" >&5
5599 echo "$as_me: error: not found" >&2;}
5600 { (exit 1); exit 1; }; }
5603 echo "$as_me:5603: result: $cf_cv_ncurses_h2" >&5
5604 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
5606 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
5607 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
5608 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
5609 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
5612 if test -n "$cf_1st_incdir" ; then
5613 for cf_add_incdir in $cf_1st_incdir
5615 while test $cf_add_incdir != /usr/include
5617 if test -d $cf_add_incdir
5620 if test -n "$CFLAGS$CPPFLAGS" ; then
5621 # a loop is needed to ensure we can add subdirs of existing dirs
5622 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
5623 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
5624 cf_have_incdir=yes; break
5629 if test "$cf_have_incdir" = no ; then
5630 if test "$cf_add_incdir" = /usr/local/include ; then
5631 if test "$GCC" = yes
5633 cf_save_CPPFLAGS=$CPPFLAGS
5634 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5635 cat >conftest.$ac_ext <<_ACEOF
5636 #line 5636 "configure"
5637 #include "confdefs.h"
5647 rm -f conftest.$ac_objext
5648 if { (eval echo "$as_me:5648: \"$ac_compile\"") >&5
5649 (eval $ac_compile) 2>&5
5651 echo "$as_me:5651: \$? = $ac_status" >&5
5652 (exit $ac_status); } &&
5653 { ac_try='test -s conftest.$ac_objext'
5654 { (eval echo "$as_me:5654: \"$ac_try\"") >&5
5657 echo "$as_me:5657: \$? = $ac_status" >&5
5658 (exit $ac_status); }; }; then
5661 echo "$as_me: failed program was:" >&5
5662 cat conftest.$ac_ext >&5
5665 rm -f conftest.$ac_objext conftest.$ac_ext
5666 CPPFLAGS=$cf_save_CPPFLAGS
5671 if test "$cf_have_incdir" = no ; then
5672 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
5674 echo "${as_me:-configure}:5674: testing adding $cf_add_incdir to include-path ..." 1>&5
5676 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5678 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
5679 test "$cf_top_incdir" = "$cf_add_incdir" && break
5680 cf_add_incdir="$cf_top_incdir"
5691 # Set definitions to allow ifdef'ing for ncurses.h
5693 case $cf_cv_ncurses_header in # (vi
5695 cat >>confdefs.h <<\EOF
5696 #define HAVE_NCURSES_H 1
5702 case $cf_cv_ncurses_header in # (vi
5703 ncurses/curses.h|ncurses/ncurses.h)
5704 cat >>confdefs.h <<\EOF
5705 #define HAVE_NCURSES_NCURSES_H 1
5709 ncursesw/curses.h|ncursesw/ncurses.h)
5710 cat >>confdefs.h <<\EOF
5711 #define HAVE_NCURSESW_NCURSES_H 1
5717 echo "$as_me:5717: checking for terminfo header" >&5
5718 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
5719 if test "${cf_cv_term_header+set}" = set; then
5720 echo $ECHO_N "(cached) $ECHO_C" >&6
5723 case ${cf_cv_ncurses_header} in #(vi
5724 */ncurses.h|*/ncursesw.h) #(vi
5725 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
5728 cf_term_header=term.h
5732 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
5734 cat >conftest.$ac_ext <<_ACEOF
5735 #line 5735 "configure"
5736 #include "confdefs.h"
5738 #include <${cf_cv_ncurses_header:-curses.h}>
5744 int x = auto_left_margin
5749 rm -f conftest.$ac_objext
5750 if { (eval echo "$as_me:5750: \"$ac_compile\"") >&5
5751 (eval $ac_compile) 2>&5
5753 echo "$as_me:5753: \$? = $ac_status" >&5
5754 (exit $ac_status); } &&
5755 { ac_try='test -s conftest.$ac_objext'
5756 { (eval echo "$as_me:5756: \"$ac_try\"") >&5
5759 echo "$as_me:5759: \$? = $ac_status" >&5
5760 (exit $ac_status); }; }; then
5762 cf_cv_term_header="$cf_test"
5764 echo "$as_me: failed program was:" >&5
5765 cat conftest.$ac_ext >&5
5767 cf_cv_term_header=unknown
5770 rm -f conftest.$ac_objext conftest.$ac_ext
5771 test "$cf_cv_term_header" != unknown && break
5775 echo "$as_me:5775: result: $cf_cv_term_header" >&5
5776 echo "${ECHO_T}$cf_cv_term_header" >&6
5778 # Set definitions to allow ifdef'ing to accommodate subdirectories
5780 case $cf_cv_term_header in # (vi
5782 cat >>confdefs.h <<\EOF
5783 #define HAVE_TERM_H 1
5789 case $cf_cv_term_header in # (vi
5790 ncurses/term.h) #(vi
5791 cat >>confdefs.h <<\EOF
5792 #define HAVE_NCURSES_TERM_H 1
5797 cat >>confdefs.h <<\EOF
5798 #define HAVE_NCURSESW_TERM_H 1
5804 # some applications need this, but should check for NCURSES_VERSION
5805 cat >>confdefs.h <<\EOF
5809 echo "$as_me:5809: checking for ncurses version" >&5
5810 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
5811 if test "${cf_cv_ncurses_version+set}" = set; then
5812 echo $ECHO_N "(cached) $ECHO_C" >&6
5815 cf_cv_ncurses_version=no
5818 if test "$cross_compiling" = yes; then
5820 # This will not work if the preprocessor splits the line after the
5821 # Autoconf token. The 'unproto' program does that.
5822 cat > conftest.$ac_ext <<EOF
5823 #include <${cf_cv_ncurses_header:-curses.h}>
5825 #ifdef NCURSES_VERSION
5826 Autoconf NCURSES_VERSION
5834 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
5835 { (eval echo "$as_me:5835: \"$cf_try\"") >&5
5838 echo "$as_me:5838: \$? = $ac_status" >&5
5839 (exit $ac_status); }
5840 if test -f conftest.out ; then
5841 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
5842 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
5847 cat >conftest.$ac_ext <<_ACEOF
5848 #line 5848 "configure"
5849 #include "confdefs.h"
5851 #include <${cf_cv_ncurses_header:-curses.h}>
5855 FILE *fp = fopen("$cf_tempfile", "w");
5856 #ifdef NCURSES_VERSION
5857 # ifdef NCURSES_VERSION_PATCH
5858 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
5860 fprintf(fp, "%s\n", NCURSES_VERSION);
5864 fprintf(fp, "old\n");
5869 ${cf_cv_main_return:-return}(0);
5872 rm -f conftest$ac_exeext
5873 if { (eval echo "$as_me:5873: \"$ac_link\"") >&5
5874 (eval $ac_link) 2>&5
5876 echo "$as_me:5876: \$? = $ac_status" >&5
5877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5878 { (eval echo "$as_me:5878: \"$ac_try\"") >&5
5881 echo "$as_me:5881: \$? = $ac_status" >&5
5882 (exit $ac_status); }; }; then
5884 cf_cv_ncurses_version=`cat $cf_tempfile`
5886 echo "$as_me: program exited with status $ac_status" >&5
5887 echo "$as_me: failed program was:" >&5
5888 cat conftest.$ac_ext >&5
5890 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5895 echo "$as_me:5895: result: $cf_cv_ncurses_version" >&5
5896 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
5897 test "$cf_cv_ncurses_version" = no || cat >>confdefs.h <<\EOF
5901 cf_nculib_root=ncurses
5902 # This works, except for the special case where we find gpm, but
5903 # ncurses is in a nonstandard location via $LIBS, and we really want
5906 cf_ncurses_SAVE="$LIBS"
5907 echo "$as_me:5907: checking for Gpm_Open in -lgpm" >&5
5908 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
5909 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
5910 echo $ECHO_N "(cached) $ECHO_C" >&6
5912 ac_check_lib_save_LIBS=$LIBS
5914 cat >conftest.$ac_ext <<_ACEOF
5915 #line 5915 "configure"
5916 #include "confdefs.h"
5918 /* Override any gcc2 internal prototype to avoid an error. */
5922 /* We use char because int might match the return type of a gcc2
5923 builtin and then its argument prototype would still apply. */
5933 rm -f conftest.$ac_objext conftest$ac_exeext
5934 if { (eval echo "$as_me:5934: \"$ac_link\"") >&5
5935 (eval $ac_link) 2>&5
5937 echo "$as_me:5937: \$? = $ac_status" >&5
5938 (exit $ac_status); } &&
5939 { ac_try='test -s conftest$ac_exeext'
5940 { (eval echo "$as_me:5940: \"$ac_try\"") >&5
5943 echo "$as_me:5943: \$? = $ac_status" >&5
5944 (exit $ac_status); }; }; then
5945 ac_cv_lib_gpm_Gpm_Open=yes
5947 echo "$as_me: failed program was:" >&5
5948 cat conftest.$ac_ext >&5
5949 ac_cv_lib_gpm_Gpm_Open=no
5951 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5952 LIBS=$ac_check_lib_save_LIBS
5954 echo "$as_me:5954: result: $ac_cv_lib_gpm_Gpm_Open" >&5
5955 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
5956 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
5957 echo "$as_me:5957: checking for initscr in -lgpm" >&5
5958 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
5959 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
5962 ac_check_lib_save_LIBS=$LIBS
5964 cat >conftest.$ac_ext <<_ACEOF
5965 #line 5965 "configure"
5966 #include "confdefs.h"
5968 /* Override any gcc2 internal prototype to avoid an error. */
5972 /* We use char because int might match the return type of a gcc2
5973 builtin and then its argument prototype would still apply. */
5983 rm -f conftest.$ac_objext conftest$ac_exeext
5984 if { (eval echo "$as_me:5984: \"$ac_link\"") >&5
5985 (eval $ac_link) 2>&5
5987 echo "$as_me:5987: \$? = $ac_status" >&5
5988 (exit $ac_status); } &&
5989 { ac_try='test -s conftest$ac_exeext'
5990 { (eval echo "$as_me:5990: \"$ac_try\"") >&5
5993 echo "$as_me:5993: \$? = $ac_status" >&5
5994 (exit $ac_status); }; }; then
5995 ac_cv_lib_gpm_initscr=yes
5997 echo "$as_me: failed program was:" >&5
5998 cat conftest.$ac_ext >&5
5999 ac_cv_lib_gpm_initscr=no
6001 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6002 LIBS=$ac_check_lib_save_LIBS
6004 echo "$as_me:6004: result: $ac_cv_lib_gpm_initscr" >&5
6005 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
6006 if test $ac_cv_lib_gpm_initscr = yes; then
6007 LIBS="$cf_ncurses_SAVE"
6009 cf_ncurses_LIBS="-lgpm"
6014 case $host_os in #(vi
6016 # This is only necessary if you are linking against an obsolete
6017 # version of ncurses (but it should do no harm, since it's static).
6018 if test "$cf_nculib_root" = ncurses ; then
6019 echo "$as_me:6019: checking for tgoto in -lmytinfo" >&5
6020 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
6021 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
6022 echo $ECHO_N "(cached) $ECHO_C" >&6
6024 ac_check_lib_save_LIBS=$LIBS
6025 LIBS="-lmytinfo $LIBS"
6026 cat >conftest.$ac_ext <<_ACEOF
6027 #line 6027 "configure"
6028 #include "confdefs.h"
6030 /* Override any gcc2 internal prototype to avoid an error. */
6034 /* We use char because int might match the return type of a gcc2
6035 builtin and then its argument prototype would still apply. */
6045 rm -f conftest.$ac_objext conftest$ac_exeext
6046 if { (eval echo "$as_me:6046: \"$ac_link\"") >&5
6047 (eval $ac_link) 2>&5
6049 echo "$as_me:6049: \$? = $ac_status" >&5
6050 (exit $ac_status); } &&
6051 { ac_try='test -s conftest$ac_exeext'
6052 { (eval echo "$as_me:6052: \"$ac_try\"") >&5
6055 echo "$as_me:6055: \$? = $ac_status" >&5
6056 (exit $ac_status); }; }; then
6057 ac_cv_lib_mytinfo_tgoto=yes
6059 echo "$as_me: failed program was:" >&5
6060 cat conftest.$ac_ext >&5
6061 ac_cv_lib_mytinfo_tgoto=no
6063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6064 LIBS=$ac_check_lib_save_LIBS
6066 echo "$as_me:6066: result: $ac_cv_lib_mytinfo_tgoto" >&5
6067 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
6068 if test $ac_cv_lib_mytinfo_tgoto = yes; then
6069 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
6076 LIBS="$cf_ncurses_LIBS $LIBS"
6078 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
6081 if test -n "$cf_cv_curses_dir/lib" ; then
6082 for cf_add_libdir in $cf_cv_curses_dir/lib
6084 if test $cf_add_libdir = /usr/lib ; then
6086 elif test -d $cf_add_libdir
6089 if test -n "$LDFLAGS$LIBS" ; then
6090 # a loop is needed to ensure we can add subdirs of existing dirs
6091 for cf_test_libdir in $LDFLAGS $LIBS ; do
6092 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
6093 cf_have_libdir=yes; break
6097 if test "$cf_have_libdir" = no ; then
6098 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
6100 echo "${as_me:-configure}:6100: testing adding $cf_add_libdir to library-path ..." 1>&5
6102 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
6108 LIBS="-l$cf_nculib_root $LIBS"
6111 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
6113 echo "$as_me:6113: checking for initscr" >&5
6114 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
6115 if test "${ac_cv_func_initscr+set}" = set; then
6116 echo $ECHO_N "(cached) $ECHO_C" >&6
6118 cat >conftest.$ac_ext <<_ACEOF
6119 #line 6119 "configure"
6120 #include "confdefs.h"
6121 /* System header to define __stub macros and hopefully few prototypes,
6122 which can conflict with char initscr (); below. */
6124 /* Override any gcc2 internal prototype to avoid an error. */
6128 /* We use char because int might match the return type of a gcc2
6129 builtin and then its argument prototype would still apply. */
6136 /* The GNU C library defines this for functions which it implements
6137 to always fail with ENOSYS. Some functions are actually named
6138 something starting with __ and the normal name is an alias. */
6139 #if defined (__stub_initscr) || defined (__stub___initscr)
6149 rm -f conftest.$ac_objext conftest$ac_exeext
6150 if { (eval echo "$as_me:6150: \"$ac_link\"") >&5
6151 (eval $ac_link) 2>&5
6153 echo "$as_me:6153: \$? = $ac_status" >&5
6154 (exit $ac_status); } &&
6155 { ac_try='test -s conftest$ac_exeext'
6156 { (eval echo "$as_me:6156: \"$ac_try\"") >&5
6159 echo "$as_me:6159: \$? = $ac_status" >&5
6160 (exit $ac_status); }; }; then
6161 ac_cv_func_initscr=yes
6163 echo "$as_me: failed program was:" >&5
6164 cat conftest.$ac_ext >&5
6165 ac_cv_func_initscr=no
6167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6169 echo "$as_me:6169: result: $ac_cv_func_initscr" >&5
6170 echo "${ECHO_T}$ac_cv_func_initscr" >&6
6171 if test $ac_cv_func_initscr = yes; then
6172 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
6175 cf_save_LIBS="$LIBS"
6176 echo "$as_me:6176: checking for initscr in -l$cf_nculib_root" >&5
6177 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
6178 LIBS="-l$cf_nculib_root $LIBS"
6179 cat >conftest.$ac_ext <<_ACEOF
6180 #line 6180 "configure"
6181 #include "confdefs.h"
6182 #include <${cf_cv_ncurses_header:-curses.h}>
6191 rm -f conftest.$ac_objext conftest$ac_exeext
6192 if { (eval echo "$as_me:6192: \"$ac_link\"") >&5
6193 (eval $ac_link) 2>&5
6195 echo "$as_me:6195: \$? = $ac_status" >&5
6196 (exit $ac_status); } &&
6197 { ac_try='test -s conftest$ac_exeext'
6198 { (eval echo "$as_me:6198: \"$ac_try\"") >&5
6201 echo "$as_me:6201: \$? = $ac_status" >&5
6202 (exit $ac_status); }; }; then
6203 echo "$as_me:6203: result: yes" >&5
6204 echo "${ECHO_T}yes" >&6
6205 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
6208 echo "$as_me: failed program was:" >&5
6209 cat conftest.$ac_ext >&5
6210 echo "$as_me:6210: result: no" >&5
6211 echo "${ECHO_T}no" >&6
6214 cf_library_path_list=""
6215 if test -n "${LDFLAGS}${LIBS}" ; then
6216 for cf_library_path in $LDFLAGS $LIBS
6218 case $cf_library_path in #(vi
6220 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
6222 test "$cf_library_path" != "NONE" && \
6223 test -d "$cf_library_path" && \
6225 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
6226 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
6227 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
6228 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
6229 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
6230 test -d $cf_library_path/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib/$cf_nculib_root"
6233 cf_library_path_list="$cf_library_path_list $cf_search"
6241 test "/usr" != "$prefix" && \
6243 (test $prefix = NONE || test "/usr" != "$prefix") && {
6244 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
6245 test -d /usr/lib && cf_search="$cf_search /usr/lib"
6246 test -d /usr/lib/$cf_nculib_root && cf_search="$cf_search /usr/lib/$cf_nculib_root"
6247 test -d /usr/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/lib/$cf_nculib_root/lib"
6248 test -d /usr/$cf_nculib_root/lib && cf_search="$cf_search /usr/$cf_nculib_root/lib"
6249 test -d /usr/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/$cf_nculib_root/lib/$cf_nculib_root"
6252 test "$prefix" != "NONE" && \
6253 test -d "$prefix" && \
6255 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
6256 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
6257 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
6258 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
6259 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
6260 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
6263 test "/usr/local" != "$prefix" && \
6264 test -d "/usr/local" && \
6265 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
6266 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
6267 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
6268 test -d /usr/local/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/lib/$cf_nculib_root"
6269 test -d /usr/local/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/lib/$cf_nculib_root/lib"
6270 test -d /usr/local/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/$cf_nculib_root/lib"
6271 test -d /usr/local/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/$cf_nculib_root/lib/$cf_nculib_root"
6274 test "/opt" != "$prefix" && \
6276 (test $prefix = NONE || test "/opt" != "$prefix") && {
6277 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
6278 test -d /opt/lib && cf_search="$cf_search /opt/lib"
6279 test -d /opt/lib/$cf_nculib_root && cf_search="$cf_search /opt/lib/$cf_nculib_root"
6280 test -d /opt/lib/$cf_nculib_root/lib && cf_search="$cf_search /opt/lib/$cf_nculib_root/lib"
6281 test -d /opt/$cf_nculib_root/lib && cf_search="$cf_search /opt/$cf_nculib_root/lib"
6282 test -d /opt/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /opt/$cf_nculib_root/lib/$cf_nculib_root"
6285 test "$HOME" != "$prefix" && \
6286 test -d "$HOME" && \
6287 (test $prefix = NONE || test "$HOME" != "$prefix") && {
6288 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
6289 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
6290 test -d $HOME/lib/$cf_nculib_root && cf_search="$cf_search $HOME/lib/$cf_nculib_root"
6291 test -d $HOME/lib/$cf_nculib_root/lib && cf_search="$cf_search $HOME/lib/$cf_nculib_root/lib"
6292 test -d $HOME/$cf_nculib_root/lib && cf_search="$cf_search $HOME/$cf_nculib_root/lib"
6293 test -d $HOME/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $HOME/$cf_nculib_root/lib/$cf_nculib_root"
6296 cf_search="$cf_library_path_list $cf_search"
6298 for cf_libdir in $cf_search
6300 echo "$as_me:6300: checking for -l$cf_nculib_root in $cf_libdir" >&5
6301 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
6302 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
6303 cat >conftest.$ac_ext <<_ACEOF
6304 #line 6304 "configure"
6305 #include "confdefs.h"
6306 #include <${cf_cv_ncurses_header:-curses.h}>
6315 rm -f conftest.$ac_objext conftest$ac_exeext
6316 if { (eval echo "$as_me:6316: \"$ac_link\"") >&5
6317 (eval $ac_link) 2>&5
6319 echo "$as_me:6319: \$? = $ac_status" >&5
6320 (exit $ac_status); } &&
6321 { ac_try='test -s conftest$ac_exeext'
6322 { (eval echo "$as_me:6322: \"$ac_try\"") >&5
6325 echo "$as_me:6325: \$? = $ac_status" >&5
6326 (exit $ac_status); }; }; then
6327 echo "$as_me:6327: result: yes" >&5
6328 echo "${ECHO_T}yes" >&6
6329 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
6332 echo "$as_me: failed program was:" >&5
6333 cat conftest.$ac_ext >&5
6334 echo "$as_me:6334: result: no" >&5
6335 echo "${ECHO_T}no" >&6
6336 LIBS="$cf_save_LIBS"
6338 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6346 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
6348 if test $cf_found_library = no ; then
6349 { { echo "$as_me:6349: error: Cannot link $cf_nculib_root library" >&5
6350 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
6351 { (exit 1); exit 1; }; }
6356 if test -n "$cf_ncurses_LIBS" ; then
6357 echo "$as_me:6357: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
6358 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
6359 cf_ncurses_SAVE="$LIBS"
6360 for p in $cf_ncurses_LIBS ; do
6361 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
6362 if test "$q" != "$LIBS" ; then
6366 cat >conftest.$ac_ext <<_ACEOF
6367 #line 6367 "configure"
6368 #include "confdefs.h"
6369 #include <${cf_cv_ncurses_header:-curses.h}>
6373 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
6378 rm -f conftest.$ac_objext conftest$ac_exeext
6379 if { (eval echo "$as_me:6379: \"$ac_link\"") >&5
6380 (eval $ac_link) 2>&5
6382 echo "$as_me:6382: \$? = $ac_status" >&5
6383 (exit $ac_status); } &&
6384 { ac_try='test -s conftest$ac_exeext'
6385 { (eval echo "$as_me:6385: \"$ac_try\"") >&5
6388 echo "$as_me:6388: \$? = $ac_status" >&5
6389 (exit $ac_status); }; }; then
6390 echo "$as_me:6390: result: yes" >&5
6391 echo "${ECHO_T}yes" >&6
6393 echo "$as_me: failed program was:" >&5
6394 cat conftest.$ac_ext >&5
6395 echo "$as_me:6395: result: no" >&5
6396 echo "${ECHO_T}no" >&6
6397 LIBS="$cf_ncurses_SAVE"
6399 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6402 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
6404 cat >>confdefs.h <<EOF
6405 #define $cf_nculib_ROOT 1
6414 echo "$as_me:6414: checking for multibyte character support" >&5
6415 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
6416 if test "${cf_cv_utf8_lib+set}" = set; then
6417 echo $ECHO_N "(cached) $ECHO_C" >&6
6420 cf_save_LIBS="$LIBS"
6421 cat >conftest.$ac_ext <<_ACEOF
6422 #line 6422 "configure"
6423 #include "confdefs.h"
6434 rm -f conftest.$ac_objext conftest$ac_exeext
6435 if { (eval echo "$as_me:6435: \"$ac_link\"") >&5
6436 (eval $ac_link) 2>&5
6438 echo "$as_me:6438: \$? = $ac_status" >&5
6439 (exit $ac_status); } &&
6440 { ac_try='test -s conftest$ac_exeext'
6441 { (eval echo "$as_me:6441: \"$ac_try\"") >&5
6444 echo "$as_me:6444: \$? = $ac_status" >&5
6445 (exit $ac_status); }; }; then
6448 echo "$as_me: failed program was:" >&5
6449 cat conftest.$ac_ext >&5
6451 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
6452 # will be set on completion of the AC_TRY_LINK below.
6453 cf_cv_header_path_utf8=
6454 cf_cv_library_path_utf8=
6456 echo "${as_me:-configure}:6456: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
6458 cf_save_LIBS="$LIBS"
6460 cat >conftest.$ac_ext <<_ACEOF
6461 #line 6461 "configure"
6462 #include "confdefs.h"
6464 #include <libutf8.h>
6473 rm -f conftest.$ac_objext conftest$ac_exeext
6474 if { (eval echo "$as_me:6474: \"$ac_link\"") >&5
6475 (eval $ac_link) 2>&5
6477 echo "$as_me:6477: \$? = $ac_status" >&5
6478 (exit $ac_status); } &&
6479 { ac_try='test -s conftest$ac_exeext'
6480 { (eval echo "$as_me:6480: \"$ac_try\"") >&5
6483 echo "$as_me:6483: \$? = $ac_status" >&5
6484 (exit $ac_status); }; }; then
6486 cf_cv_find_linkage_utf8=yes
6487 cf_cv_header_path_utf8=/usr/include
6488 cf_cv_library_path_utf8=/usr/lib
6491 echo "$as_me: failed program was:" >&5
6492 cat conftest.$ac_ext >&5
6494 LIBS="-lutf8 $cf_save_LIBS"
6496 cat >conftest.$ac_ext <<_ACEOF
6497 #line 6497 "configure"
6498 #include "confdefs.h"
6500 #include <libutf8.h>
6509 rm -f conftest.$ac_objext conftest$ac_exeext
6510 if { (eval echo "$as_me:6510: \"$ac_link\"") >&5
6511 (eval $ac_link) 2>&5
6513 echo "$as_me:6513: \$? = $ac_status" >&5
6514 (exit $ac_status); } &&
6515 { ac_try='test -s conftest$ac_exeext'
6516 { (eval echo "$as_me:6516: \"$ac_try\"") >&5
6519 echo "$as_me:6519: \$? = $ac_status" >&5
6520 (exit $ac_status); }; }; then
6522 cf_cv_find_linkage_utf8=yes
6523 cf_cv_header_path_utf8=/usr/include
6524 cf_cv_library_path_utf8=/usr/lib
6525 cf_cv_library_file_utf8="-lutf8"
6528 echo "$as_me: failed program was:" >&5
6529 cat conftest.$ac_ext >&5
6531 cf_cv_find_linkage_utf8=no
6532 LIBS="$cf_save_LIBS"
6534 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
6536 echo "${as_me:-configure}:6536: testing find linkage for utf8 library ..." 1>&5
6538 echo "${as_me:-configure}:6538: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
6540 cf_save_CPPFLAGS="$CPPFLAGS"
6541 cf_test_CPPFLAGS="$CPPFLAGS"
6545 # collect the current set of include-directories from compiler flags
6546 cf_header_path_list=""
6547 if test -n "${CFLAGS}${CPPFLAGS}" ; then
6548 for cf_header_path in $CPPFLAGS $CFLAGS
6550 case $cf_header_path in #(vi
6552 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
6554 test "$cf_header_path" != "NONE" && \
6555 test -d "$cf_header_path" && \
6557 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
6558 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
6559 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
6560 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
6561 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
6562 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
6565 cf_header_path_list="$cf_header_path_list $cf_search"
6571 # add the variations for the package we are looking for
6575 test "/usr" != "$prefix" && \
6577 (test $prefix = NONE || test "/usr" != "$prefix") && {
6578 test -n "$verbose" && echo " ... testing for include-directories under /usr"
6579 test -d /usr/include && cf_search="$cf_search /usr/include"
6580 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8"
6581 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include"
6582 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include"
6583 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8"
6586 test "$prefix" != "NONE" && \
6587 test -d "$prefix" && \
6589 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
6590 test -d $prefix/include && cf_search="$cf_search $prefix/include"
6591 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
6592 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
6593 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
6594 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
6597 test "/usr/local" != "$prefix" && \
6598 test -d "/usr/local" && \
6599 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
6600 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
6601 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
6602 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8"
6603 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include"
6604 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include"
6605 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8"
6608 test "/opt" != "$prefix" && \
6610 (test $prefix = NONE || test "/opt" != "$prefix") && {
6611 test -n "$verbose" && echo " ... testing for include-directories under /opt"
6612 test -d /opt/include && cf_search="$cf_search /opt/include"
6613 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8"
6614 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include"
6615 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include"
6616 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8"
6619 test "$HOME" != "$prefix" && \
6620 test -d "$HOME" && \
6621 (test $prefix = NONE || test "$HOME" != "$prefix") && {
6622 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
6623 test -d $HOME/include && cf_search="$cf_search $HOME/include"
6624 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8"
6625 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include"
6626 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include"
6627 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8"
6630 test "$includedir" != NONE && \
6631 test "$includedir" != "/usr/include" && \
6632 test -d "$includedir" && {
6633 test -d $includedir && cf_search="$cf_search $includedir"
6634 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
6637 test "$oldincludedir" != NONE && \
6638 test "$oldincludedir" != "/usr/include" && \
6639 test -d "$oldincludedir" && {
6640 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
6641 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
6644 cf_search="$cf_search $cf_header_path_list"
6646 for cf_cv_header_path_utf8 in $cf_search
6648 if test -d $cf_cv_header_path_utf8 ; then
6649 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
6651 echo "${as_me:-configure}:6651: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
6653 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
6654 cat >conftest.$ac_ext <<_ACEOF
6655 #line 6655 "configure"
6656 #include "confdefs.h"
6658 #include <libutf8.h>
6667 rm -f conftest.$ac_objext
6668 if { (eval echo "$as_me:6668: \"$ac_compile\"") >&5
6669 (eval $ac_compile) 2>&5
6671 echo "$as_me:6671: \$? = $ac_status" >&5
6672 (exit $ac_status); } &&
6673 { ac_try='test -s conftest.$ac_objext'
6674 { (eval echo "$as_me:6674: \"$ac_try\"") >&5
6677 echo "$as_me:6677: \$? = $ac_status" >&5
6678 (exit $ac_status); }; }; then
6680 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
6682 echo "${as_me:-configure}:6682: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
6684 cf_cv_find_linkage_utf8=maybe
6685 cf_test_CPPFLAGS="$CPPFLAGS"
6688 echo "$as_me: failed program was:" >&5
6689 cat conftest.$ac_ext >&5
6691 CPPFLAGS="$cf_save_CPPFLAGS"
6694 rm -f conftest.$ac_objext conftest.$ac_ext
6698 if test "$cf_cv_find_linkage_utf8" = maybe ; then
6700 echo "${as_me:-configure}:6700: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
6702 cf_save_LIBS="$LIBS"
6703 cf_save_LDFLAGS="$LDFLAGS"
6705 if test "$cf_cv_find_linkage_utf8" != yes ; then
6708 cf_library_path_list=""
6709 if test -n "${LDFLAGS}${LIBS}" ; then
6710 for cf_library_path in $LDFLAGS $LIBS
6712 case $cf_library_path in #(vi
6714 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
6716 test "$cf_library_path" != "NONE" && \
6717 test -d "$cf_library_path" && \
6719 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
6720 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
6721 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
6722 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
6723 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
6724 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
6727 cf_library_path_list="$cf_library_path_list $cf_search"
6735 test "/usr" != "$prefix" && \
6737 (test $prefix = NONE || test "/usr" != "$prefix") && {
6738 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
6739 test -d /usr/lib && cf_search="$cf_search /usr/lib"
6740 test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8"
6741 test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib"
6742 test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib"
6743 test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8"
6746 test "$prefix" != "NONE" && \
6747 test -d "$prefix" && \
6749 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
6750 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
6751 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
6752 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
6753 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
6754 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
6757 test "/usr/local" != "$prefix" && \
6758 test -d "/usr/local" && \
6759 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
6760 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
6761 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
6762 test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8"
6763 test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib"
6764 test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib"
6765 test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8"
6768 test "/opt" != "$prefix" && \
6770 (test $prefix = NONE || test "/opt" != "$prefix") && {
6771 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
6772 test -d /opt/lib && cf_search="$cf_search /opt/lib"
6773 test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8"
6774 test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib"
6775 test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib"
6776 test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8"
6779 test "$HOME" != "$prefix" && \
6780 test -d "$HOME" && \
6781 (test $prefix = NONE || test "$HOME" != "$prefix") && {
6782 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
6783 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
6784 test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8"
6785 test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib"
6786 test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib"
6787 test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8"
6790 cf_search="$cf_library_path_list $cf_search"
6792 for cf_cv_library_path_utf8 in $cf_search
6794 if test -d $cf_cv_library_path_utf8 ; then
6795 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
6797 echo "${as_me:-configure}:6797: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
6799 CPPFLAGS="$cf_test_CPPFLAGS"
6800 LIBS="-lutf8 $cf_save_LIBS"
6801 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
6802 cat >conftest.$ac_ext <<_ACEOF
6803 #line 6803 "configure"
6804 #include "confdefs.h"
6806 #include <libutf8.h>
6815 rm -f conftest.$ac_objext conftest$ac_exeext
6816 if { (eval echo "$as_me:6816: \"$ac_link\"") >&5
6817 (eval $ac_link) 2>&5
6819 echo "$as_me:6819: \$? = $ac_status" >&5
6820 (exit $ac_status); } &&
6821 { ac_try='test -s conftest$ac_exeext'
6822 { (eval echo "$as_me:6822: \"$ac_try\"") >&5
6825 echo "$as_me:6825: \$? = $ac_status" >&5
6826 (exit $ac_status); }; }; then
6828 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
6830 echo "${as_me:-configure}:6830: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
6832 cf_cv_find_linkage_utf8=yes
6833 cf_cv_library_file_utf8="-lutf8"
6836 echo "$as_me: failed program was:" >&5
6837 cat conftest.$ac_ext >&5
6839 CPPFLAGS="$cf_save_CPPFLAGS"
6840 LIBS="$cf_save_LIBS"
6841 LDFLAGS="$cf_save_LDFLAGS"
6844 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6847 CPPFLAGS="$cf_save_CPPFLAGS"
6848 LDFLAGS="$cf_save_LDFLAGS"
6852 cf_cv_find_linkage_utf8=no
6856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6861 LIBS="$cf_save_LIBS"
6863 if test "$cf_cv_find_linkage_utf8" = yes ; then
6864 cf_cv_utf8_lib=add-on
6870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6872 echo "$as_me:6872: result: $cf_cv_utf8_lib" >&5
6873 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
6875 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
6877 if test "$cf_cv_utf8_lib" = "add-on" ; then
6878 cat >>confdefs.h <<\EOF
6879 #define HAVE_LIBUTF8_H 1
6882 if test -n "$cf_cv_header_path_utf8" ; then
6883 for cf_add_incdir in $cf_cv_header_path_utf8
6885 while test $cf_add_incdir != /usr/include
6887 if test -d $cf_add_incdir
6890 if test -n "$CFLAGS$CPPFLAGS" ; then
6891 # a loop is needed to ensure we can add subdirs of existing dirs
6892 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6893 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6894 cf_have_incdir=yes; break
6899 if test "$cf_have_incdir" = no ; then
6900 if test "$cf_add_incdir" = /usr/local/include ; then
6901 if test "$GCC" = yes
6903 cf_save_CPPFLAGS=$CPPFLAGS
6904 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6905 cat >conftest.$ac_ext <<_ACEOF
6906 #line 6906 "configure"
6907 #include "confdefs.h"
6917 rm -f conftest.$ac_objext
6918 if { (eval echo "$as_me:6918: \"$ac_compile\"") >&5
6919 (eval $ac_compile) 2>&5
6921 echo "$as_me:6921: \$? = $ac_status" >&5
6922 (exit $ac_status); } &&
6923 { ac_try='test -s conftest.$ac_objext'
6924 { (eval echo "$as_me:6924: \"$ac_try\"") >&5
6927 echo "$as_me:6927: \$? = $ac_status" >&5
6928 (exit $ac_status); }; }; then
6931 echo "$as_me: failed program was:" >&5
6932 cat conftest.$ac_ext >&5
6935 rm -f conftest.$ac_objext conftest.$ac_ext
6936 CPPFLAGS=$cf_save_CPPFLAGS
6941 if test "$cf_have_incdir" = no ; then
6942 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6944 echo "${as_me:-configure}:6944: testing adding $cf_add_incdir to include-path ..." 1>&5
6946 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6948 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6949 test "$cf_top_incdir" = "$cf_add_incdir" && break
6950 cf_add_incdir="$cf_top_incdir"
6959 if test -n "$cf_cv_library_path_utf8" ; then
6960 for cf_add_libdir in $cf_cv_library_path_utf8
6962 if test $cf_add_libdir = /usr/lib ; then
6964 elif test -d $cf_add_libdir
6967 if test -n "$LDFLAGS$LIBS" ; then
6968 # a loop is needed to ensure we can add subdirs of existing dirs
6969 for cf_test_libdir in $LDFLAGS $LIBS ; do
6970 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
6971 cf_have_libdir=yes; break
6975 if test "$cf_have_libdir" = no ; then
6976 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
6978 echo "${as_me:-configure}:6978: testing adding $cf_add_libdir to library-path ..." 1>&5
6980 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
6986 LIBS="$cf_cv_library_file_utf8 $LIBS"
6989 cf_ncuconfig_root=ncursesw
6991 echo "Looking for ${cf_ncuconfig_root}-config"
6992 for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
6994 # Extract the first word of "$ac_prog", so it can be a program name with args.
6995 set dummy $ac_prog; ac_word=$2
6996 echo "$as_me:6996: checking for $ac_word" >&5
6997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6998 if test "${ac_cv_path_NCURSES_CONFIG+set}" = set; then
6999 echo $ECHO_N "(cached) $ECHO_C" >&6
7001 case $NCURSES_CONFIG in
7003 ac_cv_path_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test with a path.
7006 ac_save_IFS=$IFS; IFS=$ac_path_separator
7008 for ac_dir in $ac_dummy; do
7010 test -z "$ac_dir" && ac_dir=.
7011 if $as_executable_p "$ac_dir/$ac_word"; then
7012 ac_cv_path_NCURSES_CONFIG="$ac_dir/$ac_word"
7013 echo "$as_me:7013: found $ac_dir/$ac_word" >&5
7021 NCURSES_CONFIG=$ac_cv_path_NCURSES_CONFIG
7023 if test -n "$NCURSES_CONFIG"; then
7024 echo "$as_me:7024: result: $NCURSES_CONFIG" >&5
7025 echo "${ECHO_T}$NCURSES_CONFIG" >&6
7027 echo "$as_me:7027: result: no" >&5
7028 echo "${ECHO_T}no" >&6
7031 test -n "$NCURSES_CONFIG" && break
7033 test -n "$NCURSES_CONFIG" || NCURSES_CONFIG="none"
7035 if test "$NCURSES_CONFIG" != none ; then
7037 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
7038 LIBS="`$NCURSES_CONFIG --libs` $LIBS"
7040 # even with config script, some packages use no-override for curses.h
7042 echo "$as_me:7042: checking if we have identified curses headers" >&5
7043 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
7044 if test "${cf_cv_ncurses_header+set}" = set; then
7045 echo $ECHO_N "(cached) $ECHO_C" >&6
7048 cf_cv_ncurses_header=none
7051 ncursesw/ncurses.h \
7055 cat >conftest.$ac_ext <<_ACEOF
7056 #line 7056 "configure"
7057 #include "confdefs.h"
7058 #include <${cf_header}>
7062 initscr(); tgoto("?", 0,0)
7067 rm -f conftest.$ac_objext
7068 if { (eval echo "$as_me:7068: \"$ac_compile\"") >&5
7069 (eval $ac_compile) 2>&5
7071 echo "$as_me:7071: \$? = $ac_status" >&5
7072 (exit $ac_status); } &&
7073 { ac_try='test -s conftest.$ac_objext'
7074 { (eval echo "$as_me:7074: \"$ac_try\"") >&5
7077 echo "$as_me:7077: \$? = $ac_status" >&5
7078 (exit $ac_status); }; }; then
7079 cf_cv_ncurses_header=$cf_header; break
7081 echo "$as_me: failed program was:" >&5
7082 cat conftest.$ac_ext >&5
7084 rm -f conftest.$ac_objext conftest.$ac_ext
7088 echo "$as_me:7088: result: $cf_cv_ncurses_header" >&5
7089 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
7091 if test "$cf_cv_ncurses_header" = none ; then
7092 { { echo "$as_me:7092: error: No curses header-files found" >&5
7093 echo "$as_me: error: No curses header-files found" >&2;}
7094 { (exit 1); exit 1; }; }
7097 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
7099 for ac_header in $cf_cv_ncurses_header
7101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7102 echo "$as_me:7102: checking for $ac_header" >&5
7103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
7107 cat >conftest.$ac_ext <<_ACEOF
7108 #line 7108 "configure"
7109 #include "confdefs.h"
7110 #include <$ac_header>
7112 if { (eval echo "$as_me:7112: \"$ac_cpp conftest.$ac_ext\"") >&5
7113 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7115 egrep -v '^ *\+' conftest.er1 >conftest.err
7117 cat conftest.err >&5
7118 echo "$as_me:7118: \$? = $ac_status" >&5
7119 (exit $ac_status); } >/dev/null; then
7120 if test -s conftest.err; then
7121 ac_cpp_err=$ac_c_preproc_warn_flag
7128 if test -z "$ac_cpp_err"; then
7129 eval "$as_ac_Header=yes"
7131 echo "$as_me: failed program was:" >&5
7132 cat conftest.$ac_ext >&5
7133 eval "$as_ac_Header=no"
7135 rm -f conftest.err conftest.$ac_ext
7137 echo "$as_me:7137: result: `eval echo '${'$as_ac_Header'}'`" >&5
7138 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7139 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7140 cat >>confdefs.h <<EOF
7141 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7147 cat >>confdefs.h <<\EOF
7151 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7153 cat >>confdefs.h <<EOF
7154 #define $cf_nculib_ROOT 1
7157 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
7161 cf_ncuhdr_root=ncursesw
7163 test -n "$cf_cv_curses_dir" && \
7164 test "$cf_cv_curses_dir" != "no" && { \
7166 if test -n "$cf_cv_curses_dir/include $cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
7167 for cf_add_incdir in $cf_cv_curses_dir/include $cf_cv_curses_dir/include/$cf_ncuhdr_root
7169 while test $cf_add_incdir != /usr/include
7171 if test -d $cf_add_incdir
7174 if test -n "$CFLAGS$CPPFLAGS" ; then
7175 # a loop is needed to ensure we can add subdirs of existing dirs
7176 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7177 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7178 cf_have_incdir=yes; break
7183 if test "$cf_have_incdir" = no ; then
7184 if test "$cf_add_incdir" = /usr/local/include ; then
7185 if test "$GCC" = yes
7187 cf_save_CPPFLAGS=$CPPFLAGS
7188 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7189 cat >conftest.$ac_ext <<_ACEOF
7190 #line 7190 "configure"
7191 #include "confdefs.h"
7201 rm -f conftest.$ac_objext
7202 if { (eval echo "$as_me:7202: \"$ac_compile\"") >&5
7203 (eval $ac_compile) 2>&5
7205 echo "$as_me:7205: \$? = $ac_status" >&5
7206 (exit $ac_status); } &&
7207 { ac_try='test -s conftest.$ac_objext'
7208 { (eval echo "$as_me:7208: \"$ac_try\"") >&5
7211 echo "$as_me:7211: \$? = $ac_status" >&5
7212 (exit $ac_status); }; }; then
7215 echo "$as_me: failed program was:" >&5
7216 cat conftest.$ac_ext >&5
7219 rm -f conftest.$ac_objext conftest.$ac_ext
7220 CPPFLAGS=$cf_save_CPPFLAGS
7225 if test "$cf_have_incdir" = no ; then
7226 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7228 echo "${as_me:-configure}:7228: testing adding $cf_add_incdir to include-path ..." 1>&5
7230 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7232 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
7233 test "$cf_top_incdir" = "$cf_add_incdir" && break
7234 cf_add_incdir="$cf_top_incdir"
7245 echo "$as_me:7245: checking for $cf_ncuhdr_root header in include-path" >&5
7246 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
7247 if test "${cf_cv_ncurses_h+set}" = set; then
7248 echo $ECHO_N "(cached) $ECHO_C" >&6
7251 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
7252 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
7253 for cf_header in $cf_header_list
7256 cat >conftest.$ac_ext <<_ACEOF
7257 #line 7257 "configure"
7258 #include "confdefs.h"
7260 #define _XOPEN_SOURCE_EXTENDED
7261 #undef HAVE_LIBUTF8_H /* in case we used CF_UTF8_LIB */
7262 #define HAVE_LIBUTF8_H /* to force ncurses' header file to use cchar_t */
7264 #include <$cf_header>
7269 #ifdef NCURSES_VERSION
7275 printf("%s\n", NCURSES_VERSION);
7288 rm -f conftest.$ac_objext
7289 if { (eval echo "$as_me:7289: \"$ac_compile\"") >&5
7290 (eval $ac_compile) 2>&5
7292 echo "$as_me:7292: \$? = $ac_status" >&5
7293 (exit $ac_status); } &&
7294 { ac_try='test -s conftest.$ac_objext'
7295 { (eval echo "$as_me:7295: \"$ac_try\"") >&5
7298 echo "$as_me:7298: \$? = $ac_status" >&5
7299 (exit $ac_status); }; }; then
7300 cf_cv_ncurses_h=$cf_header
7303 echo "$as_me: failed program was:" >&5
7304 cat conftest.$ac_ext >&5
7307 rm -f conftest.$ac_objext conftest.$ac_ext
7309 test "$cf_cv_ncurses_h" != no && break
7313 echo "$as_me:7313: result: $cf_cv_ncurses_h" >&5
7314 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
7316 if test "$cf_cv_ncurses_h" != no ; then
7317 cf_cv_ncurses_header=$cf_cv_ncurses_h
7320 echo "$as_me:7320: checking for $cf_ncuhdr_root include-path" >&5
7321 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
7322 if test "${cf_cv_ncurses_h2+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7326 test -n "$verbose" && echo
7330 # collect the current set of include-directories from compiler flags
7331 cf_header_path_list=""
7332 if test -n "${CFLAGS}${CPPFLAGS}" ; then
7333 for cf_header_path in $CPPFLAGS $CFLAGS
7335 case $cf_header_path in #(vi
7337 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
7339 test "$cf_header_path" != "NONE" && \
7340 test -d "$cf_header_path" && \
7342 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
7343 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
7344 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
7345 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
7346 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
7347 test -d $cf_header_path/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
7350 cf_header_path_list="$cf_header_path_list $cf_search"
7356 # add the variations for the package we are looking for
7360 test "/usr" != "$prefix" && \
7362 (test $prefix = NONE || test "/usr" != "$prefix") && {
7363 test -n "$verbose" && echo " ... testing for include-directories under /usr"
7364 test -d /usr/include && cf_search="$cf_search /usr/include"
7365 test -d /usr/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/include/$cf_ncuhdr_root"
7366 test -d /usr/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/include/$cf_ncuhdr_root/include"
7367 test -d /usr/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/$cf_ncuhdr_root/include"
7368 test -d /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
7371 test "$prefix" != "NONE" && \
7372 test -d "$prefix" && \
7374 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
7375 test -d $prefix/include && cf_search="$cf_search $prefix/include"
7376 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
7377 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
7378 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
7379 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
7382 test "/usr/local" != "$prefix" && \
7383 test -d "/usr/local" && \
7384 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
7385 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
7386 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
7387 test -d /usr/local/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root"
7388 test -d /usr/local/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root/include"
7389 test -d /usr/local/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include"
7390 test -d /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
7393 test "/opt" != "$prefix" && \
7395 (test $prefix = NONE || test "/opt" != "$prefix") && {
7396 test -n "$verbose" && echo " ... testing for include-directories under /opt"
7397 test -d /opt/include && cf_search="$cf_search /opt/include"
7398 test -d /opt/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/include/$cf_ncuhdr_root"
7399 test -d /opt/include/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/include/$cf_ncuhdr_root/include"
7400 test -d /opt/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/$cf_ncuhdr_root/include"
7401 test -d /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
7404 test "$HOME" != "$prefix" && \
7405 test -d "$HOME" && \
7406 (test $prefix = NONE || test "$HOME" != "$prefix") && {
7407 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
7408 test -d $HOME/include && cf_search="$cf_search $HOME/include"
7409 test -d $HOME/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root"
7410 test -d $HOME/include/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root/include"
7411 test -d $HOME/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include"
7412 test -d $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
7415 test "$includedir" != NONE && \
7416 test "$includedir" != "/usr/include" && \
7417 test -d "$includedir" && {
7418 test -d $includedir && cf_search="$cf_search $includedir"
7419 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
7422 test "$oldincludedir" != NONE && \
7423 test "$oldincludedir" != "/usr/include" && \
7424 test -d "$oldincludedir" && {
7425 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
7426 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
7429 cf_search="$cf_search $cf_header_path_list"
7431 test -n "$verbose" && echo search path $cf_search
7432 cf_save2_CPPFLAGS="$CPPFLAGS"
7433 for cf_incdir in $cf_search
7436 if test -n "$cf_incdir" ; then
7437 for cf_add_incdir in $cf_incdir
7439 while test $cf_add_incdir != /usr/include
7441 if test -d $cf_add_incdir
7444 if test -n "$CFLAGS$CPPFLAGS" ; then
7445 # a loop is needed to ensure we can add subdirs of existing dirs
7446 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7447 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7448 cf_have_incdir=yes; break
7453 if test "$cf_have_incdir" = no ; then
7454 if test "$cf_add_incdir" = /usr/local/include ; then
7455 if test "$GCC" = yes
7457 cf_save_CPPFLAGS=$CPPFLAGS
7458 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7459 cat >conftest.$ac_ext <<_ACEOF
7460 #line 7460 "configure"
7461 #include "confdefs.h"
7471 rm -f conftest.$ac_objext
7472 if { (eval echo "$as_me:7472: \"$ac_compile\"") >&5
7473 (eval $ac_compile) 2>&5
7475 echo "$as_me:7475: \$? = $ac_status" >&5
7476 (exit $ac_status); } &&
7477 { ac_try='test -s conftest.$ac_objext'
7478 { (eval echo "$as_me:7478: \"$ac_try\"") >&5
7481 echo "$as_me:7481: \$? = $ac_status" >&5
7482 (exit $ac_status); }; }; then
7485 echo "$as_me: failed program was:" >&5
7486 cat conftest.$ac_ext >&5
7489 rm -f conftest.$ac_objext conftest.$ac_ext
7490 CPPFLAGS=$cf_save_CPPFLAGS
7495 if test "$cf_have_incdir" = no ; then
7496 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7498 echo "${as_me:-configure}:7498: testing adding $cf_add_incdir to include-path ..." 1>&5
7500 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7502 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
7503 test "$cf_top_incdir" = "$cf_add_incdir" && break
7504 cf_add_incdir="$cf_top_incdir"
7518 cat >conftest.$ac_ext <<_ACEOF
7519 #line 7519 "configure"
7520 #include "confdefs.h"
7522 #include <$cf_header>
7527 #ifdef NCURSES_VERSION
7529 printf("%s\n", NCURSES_VERSION);
7542 rm -f conftest.$ac_objext
7543 if { (eval echo "$as_me:7543: \"$ac_compile\"") >&5
7544 (eval $ac_compile) 2>&5
7546 echo "$as_me:7546: \$? = $ac_status" >&5
7547 (exit $ac_status); } &&
7548 { ac_try='test -s conftest.$ac_objext'
7549 { (eval echo "$as_me:7549: \"$ac_try\"") >&5
7552 echo "$as_me:7552: \$? = $ac_status" >&5
7553 (exit $ac_status); }; }; then
7554 cf_cv_ncurses_h2=$cf_header
7557 echo "$as_me: failed program was:" >&5
7558 cat conftest.$ac_ext >&5
7561 rm -f conftest.$ac_objext conftest.$ac_ext
7563 if test "$cf_cv_ncurses_h2" != no ; then
7564 cf_cv_ncurses_h2=$cf_incdir/$cf_header
7565 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
7568 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
7570 CPPFLAGS="$cf_save2_CPPFLAGS"
7571 test "$cf_cv_ncurses_h2" != no && break
7573 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:7573: error: not found" >&5
7574 echo "$as_me: error: not found" >&2;}
7575 { (exit 1); exit 1; }; }
7578 echo "$as_me:7578: result: $cf_cv_ncurses_h2" >&5
7579 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
7581 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
7582 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
7583 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
7584 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
7587 if test -n "$cf_1st_incdir" ; then
7588 for cf_add_incdir in $cf_1st_incdir
7590 while test $cf_add_incdir != /usr/include
7592 if test -d $cf_add_incdir
7595 if test -n "$CFLAGS$CPPFLAGS" ; then
7596 # a loop is needed to ensure we can add subdirs of existing dirs
7597 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7598 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7599 cf_have_incdir=yes; break
7604 if test "$cf_have_incdir" = no ; then
7605 if test "$cf_add_incdir" = /usr/local/include ; then
7606 if test "$GCC" = yes
7608 cf_save_CPPFLAGS=$CPPFLAGS
7609 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7610 cat >conftest.$ac_ext <<_ACEOF
7611 #line 7611 "configure"
7612 #include "confdefs.h"
7622 rm -f conftest.$ac_objext
7623 if { (eval echo "$as_me:7623: \"$ac_compile\"") >&5
7624 (eval $ac_compile) 2>&5
7626 echo "$as_me:7626: \$? = $ac_status" >&5
7627 (exit $ac_status); } &&
7628 { ac_try='test -s conftest.$ac_objext'
7629 { (eval echo "$as_me:7629: \"$ac_try\"") >&5
7632 echo "$as_me:7632: \$? = $ac_status" >&5
7633 (exit $ac_status); }; }; then
7636 echo "$as_me: failed program was:" >&5
7637 cat conftest.$ac_ext >&5
7640 rm -f conftest.$ac_objext conftest.$ac_ext
7641 CPPFLAGS=$cf_save_CPPFLAGS
7646 if test "$cf_have_incdir" = no ; then
7647 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7649 echo "${as_me:-configure}:7649: testing adding $cf_add_incdir to include-path ..." 1>&5
7651 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7653 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
7654 test "$cf_top_incdir" = "$cf_add_incdir" && break
7655 cf_add_incdir="$cf_top_incdir"
7666 # Set definitions to allow ifdef'ing for ncurses.h
7668 case $cf_cv_ncurses_header in # (vi
7670 cat >>confdefs.h <<\EOF
7671 #define HAVE_NCURSES_H 1
7677 case $cf_cv_ncurses_header in # (vi
7678 ncurses/curses.h|ncurses/ncurses.h)
7679 cat >>confdefs.h <<\EOF
7680 #define HAVE_NCURSES_NCURSES_H 1
7684 ncursesw/curses.h|ncursesw/ncurses.h)
7685 cat >>confdefs.h <<\EOF
7686 #define HAVE_NCURSESW_NCURSES_H 1
7692 echo "$as_me:7692: checking for terminfo header" >&5
7693 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
7694 if test "${cf_cv_term_header+set}" = set; then
7695 echo $ECHO_N "(cached) $ECHO_C" >&6
7698 case ${cf_cv_ncurses_header} in #(vi
7699 */ncurses.h|*/ncursesw.h) #(vi
7700 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
7703 cf_term_header=term.h
7707 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
7709 cat >conftest.$ac_ext <<_ACEOF
7710 #line 7710 "configure"
7711 #include "confdefs.h"
7713 #include <${cf_cv_ncurses_header:-curses.h}>
7719 int x = auto_left_margin
7724 rm -f conftest.$ac_objext
7725 if { (eval echo "$as_me:7725: \"$ac_compile\"") >&5
7726 (eval $ac_compile) 2>&5
7728 echo "$as_me:7728: \$? = $ac_status" >&5
7729 (exit $ac_status); } &&
7730 { ac_try='test -s conftest.$ac_objext'
7731 { (eval echo "$as_me:7731: \"$ac_try\"") >&5
7734 echo "$as_me:7734: \$? = $ac_status" >&5
7735 (exit $ac_status); }; }; then
7737 cf_cv_term_header="$cf_test"
7739 echo "$as_me: failed program was:" >&5
7740 cat conftest.$ac_ext >&5
7742 cf_cv_term_header=unknown
7745 rm -f conftest.$ac_objext conftest.$ac_ext
7746 test "$cf_cv_term_header" != unknown && break
7750 echo "$as_me:7750: result: $cf_cv_term_header" >&5
7751 echo "${ECHO_T}$cf_cv_term_header" >&6
7753 # Set definitions to allow ifdef'ing to accommodate subdirectories
7755 case $cf_cv_term_header in # (vi
7757 cat >>confdefs.h <<\EOF
7758 #define HAVE_TERM_H 1
7764 case $cf_cv_term_header in # (vi
7765 ncurses/term.h) #(vi
7766 cat >>confdefs.h <<\EOF
7767 #define HAVE_NCURSES_TERM_H 1
7772 cat >>confdefs.h <<\EOF
7773 #define HAVE_NCURSESW_TERM_H 1
7779 # some applications need this, but should check for NCURSES_VERSION
7780 cat >>confdefs.h <<\EOF
7784 echo "$as_me:7784: checking for ncurses version" >&5
7785 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
7786 if test "${cf_cv_ncurses_version+set}" = set; then
7787 echo $ECHO_N "(cached) $ECHO_C" >&6
7790 cf_cv_ncurses_version=no
7793 if test "$cross_compiling" = yes; then
7795 # This will not work if the preprocessor splits the line after the
7796 # Autoconf token. The 'unproto' program does that.
7797 cat > conftest.$ac_ext <<EOF
7798 #include <${cf_cv_ncurses_header:-curses.h}>
7800 #ifdef NCURSES_VERSION
7801 Autoconf NCURSES_VERSION
7809 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
7810 { (eval echo "$as_me:7810: \"$cf_try\"") >&5
7813 echo "$as_me:7813: \$? = $ac_status" >&5
7814 (exit $ac_status); }
7815 if test -f conftest.out ; then
7816 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
7817 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
7822 cat >conftest.$ac_ext <<_ACEOF
7823 #line 7823 "configure"
7824 #include "confdefs.h"
7826 #include <${cf_cv_ncurses_header:-curses.h}>
7830 FILE *fp = fopen("$cf_tempfile", "w");
7831 #ifdef NCURSES_VERSION
7832 # ifdef NCURSES_VERSION_PATCH
7833 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
7835 fprintf(fp, "%s\n", NCURSES_VERSION);
7839 fprintf(fp, "old\n");
7844 ${cf_cv_main_return:-return}(0);
7847 rm -f conftest$ac_exeext
7848 if { (eval echo "$as_me:7848: \"$ac_link\"") >&5
7849 (eval $ac_link) 2>&5
7851 echo "$as_me:7851: \$? = $ac_status" >&5
7852 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7853 { (eval echo "$as_me:7853: \"$ac_try\"") >&5
7856 echo "$as_me:7856: \$? = $ac_status" >&5
7857 (exit $ac_status); }; }; then
7859 cf_cv_ncurses_version=`cat $cf_tempfile`
7861 echo "$as_me: program exited with status $ac_status" >&5
7862 echo "$as_me: failed program was:" >&5
7863 cat conftest.$ac_ext >&5
7865 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7870 echo "$as_me:7870: result: $cf_cv_ncurses_version" >&5
7871 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
7872 test "$cf_cv_ncurses_version" = no || cat >>confdefs.h <<\EOF
7876 cf_nculib_root=ncursesw
7877 # This works, except for the special case where we find gpm, but
7878 # ncurses is in a nonstandard location via $LIBS, and we really want
7881 cf_ncurses_SAVE="$LIBS"
7882 echo "$as_me:7882: checking for Gpm_Open in -lgpm" >&5
7883 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
7884 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
7885 echo $ECHO_N "(cached) $ECHO_C" >&6
7887 ac_check_lib_save_LIBS=$LIBS
7889 cat >conftest.$ac_ext <<_ACEOF
7890 #line 7890 "configure"
7891 #include "confdefs.h"
7893 /* Override any gcc2 internal prototype to avoid an error. */
7897 /* We use char because int might match the return type of a gcc2
7898 builtin and then its argument prototype would still apply. */
7908 rm -f conftest.$ac_objext conftest$ac_exeext
7909 if { (eval echo "$as_me:7909: \"$ac_link\"") >&5
7910 (eval $ac_link) 2>&5
7912 echo "$as_me:7912: \$? = $ac_status" >&5
7913 (exit $ac_status); } &&
7914 { ac_try='test -s conftest$ac_exeext'
7915 { (eval echo "$as_me:7915: \"$ac_try\"") >&5
7918 echo "$as_me:7918: \$? = $ac_status" >&5
7919 (exit $ac_status); }; }; then
7920 ac_cv_lib_gpm_Gpm_Open=yes
7922 echo "$as_me: failed program was:" >&5
7923 cat conftest.$ac_ext >&5
7924 ac_cv_lib_gpm_Gpm_Open=no
7926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7927 LIBS=$ac_check_lib_save_LIBS
7929 echo "$as_me:7929: result: $ac_cv_lib_gpm_Gpm_Open" >&5
7930 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
7931 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
7932 echo "$as_me:7932: checking for initscr in -lgpm" >&5
7933 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
7934 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
7935 echo $ECHO_N "(cached) $ECHO_C" >&6
7937 ac_check_lib_save_LIBS=$LIBS
7939 cat >conftest.$ac_ext <<_ACEOF
7940 #line 7940 "configure"
7941 #include "confdefs.h"
7943 /* Override any gcc2 internal prototype to avoid an error. */
7947 /* We use char because int might match the return type of a gcc2
7948 builtin and then its argument prototype would still apply. */
7958 rm -f conftest.$ac_objext conftest$ac_exeext
7959 if { (eval echo "$as_me:7959: \"$ac_link\"") >&5
7960 (eval $ac_link) 2>&5
7962 echo "$as_me:7962: \$? = $ac_status" >&5
7963 (exit $ac_status); } &&
7964 { ac_try='test -s conftest$ac_exeext'
7965 { (eval echo "$as_me:7965: \"$ac_try\"") >&5
7968 echo "$as_me:7968: \$? = $ac_status" >&5
7969 (exit $ac_status); }; }; then
7970 ac_cv_lib_gpm_initscr=yes
7972 echo "$as_me: failed program was:" >&5
7973 cat conftest.$ac_ext >&5
7974 ac_cv_lib_gpm_initscr=no
7976 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7977 LIBS=$ac_check_lib_save_LIBS
7979 echo "$as_me:7979: result: $ac_cv_lib_gpm_initscr" >&5
7980 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
7981 if test $ac_cv_lib_gpm_initscr = yes; then
7982 LIBS="$cf_ncurses_SAVE"
7984 cf_ncurses_LIBS="-lgpm"
7989 case $host_os in #(vi
7991 # This is only necessary if you are linking against an obsolete
7992 # version of ncurses (but it should do no harm, since it's static).
7993 if test "$cf_nculib_root" = ncurses ; then
7994 echo "$as_me:7994: checking for tgoto in -lmytinfo" >&5
7995 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
7996 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
7997 echo $ECHO_N "(cached) $ECHO_C" >&6
7999 ac_check_lib_save_LIBS=$LIBS
8000 LIBS="-lmytinfo $LIBS"
8001 cat >conftest.$ac_ext <<_ACEOF
8002 #line 8002 "configure"
8003 #include "confdefs.h"
8005 /* Override any gcc2 internal prototype to avoid an error. */
8009 /* We use char because int might match the return type of a gcc2
8010 builtin and then its argument prototype would still apply. */
8020 rm -f conftest.$ac_objext conftest$ac_exeext
8021 if { (eval echo "$as_me:8021: \"$ac_link\"") >&5
8022 (eval $ac_link) 2>&5
8024 echo "$as_me:8024: \$? = $ac_status" >&5
8025 (exit $ac_status); } &&
8026 { ac_try='test -s conftest$ac_exeext'
8027 { (eval echo "$as_me:8027: \"$ac_try\"") >&5
8030 echo "$as_me:8030: \$? = $ac_status" >&5
8031 (exit $ac_status); }; }; then
8032 ac_cv_lib_mytinfo_tgoto=yes
8034 echo "$as_me: failed program was:" >&5
8035 cat conftest.$ac_ext >&5
8036 ac_cv_lib_mytinfo_tgoto=no
8038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8039 LIBS=$ac_check_lib_save_LIBS
8041 echo "$as_me:8041: result: $ac_cv_lib_mytinfo_tgoto" >&5
8042 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
8043 if test $ac_cv_lib_mytinfo_tgoto = yes; then
8044 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
8051 LIBS="$cf_ncurses_LIBS $LIBS"
8053 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
8056 if test -n "$cf_cv_curses_dir/lib" ; then
8057 for cf_add_libdir in $cf_cv_curses_dir/lib
8059 if test $cf_add_libdir = /usr/lib ; then
8061 elif test -d $cf_add_libdir
8064 if test -n "$LDFLAGS$LIBS" ; then
8065 # a loop is needed to ensure we can add subdirs of existing dirs
8066 for cf_test_libdir in $LDFLAGS $LIBS ; do
8067 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
8068 cf_have_libdir=yes; break
8072 if test "$cf_have_libdir" = no ; then
8073 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
8075 echo "${as_me:-configure}:8075: testing adding $cf_add_libdir to library-path ..." 1>&5
8077 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
8083 LIBS="-l$cf_nculib_root $LIBS"
8086 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
8088 echo "$as_me:8088: checking for initscr" >&5
8089 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
8090 if test "${ac_cv_func_initscr+set}" = set; then
8091 echo $ECHO_N "(cached) $ECHO_C" >&6
8093 cat >conftest.$ac_ext <<_ACEOF
8094 #line 8094 "configure"
8095 #include "confdefs.h"
8096 /* System header to define __stub macros and hopefully few prototypes,
8097 which can conflict with char initscr (); below. */
8099 /* Override any gcc2 internal prototype to avoid an error. */
8103 /* We use char because int might match the return type of a gcc2
8104 builtin and then its argument prototype would still apply. */
8111 /* The GNU C library defines this for functions which it implements
8112 to always fail with ENOSYS. Some functions are actually named
8113 something starting with __ and the normal name is an alias. */
8114 #if defined (__stub_initscr) || defined (__stub___initscr)
8124 rm -f conftest.$ac_objext conftest$ac_exeext
8125 if { (eval echo "$as_me:8125: \"$ac_link\"") >&5
8126 (eval $ac_link) 2>&5
8128 echo "$as_me:8128: \$? = $ac_status" >&5
8129 (exit $ac_status); } &&
8130 { ac_try='test -s conftest$ac_exeext'
8131 { (eval echo "$as_me:8131: \"$ac_try\"") >&5
8134 echo "$as_me:8134: \$? = $ac_status" >&5
8135 (exit $ac_status); }; }; then
8136 ac_cv_func_initscr=yes
8138 echo "$as_me: failed program was:" >&5
8139 cat conftest.$ac_ext >&5
8140 ac_cv_func_initscr=no
8142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8144 echo "$as_me:8144: result: $ac_cv_func_initscr" >&5
8145 echo "${ECHO_T}$ac_cv_func_initscr" >&6
8146 if test $ac_cv_func_initscr = yes; then
8147 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
8150 cf_save_LIBS="$LIBS"
8151 echo "$as_me:8151: checking for initscr in -l$cf_nculib_root" >&5
8152 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
8153 LIBS="-l$cf_nculib_root $LIBS"
8154 cat >conftest.$ac_ext <<_ACEOF
8155 #line 8155 "configure"
8156 #include "confdefs.h"
8157 #include <${cf_cv_ncurses_header:-curses.h}>
8166 rm -f conftest.$ac_objext conftest$ac_exeext
8167 if { (eval echo "$as_me:8167: \"$ac_link\"") >&5
8168 (eval $ac_link) 2>&5
8170 echo "$as_me:8170: \$? = $ac_status" >&5
8171 (exit $ac_status); } &&
8172 { ac_try='test -s conftest$ac_exeext'
8173 { (eval echo "$as_me:8173: \"$ac_try\"") >&5
8176 echo "$as_me:8176: \$? = $ac_status" >&5
8177 (exit $ac_status); }; }; then
8178 echo "$as_me:8178: result: yes" >&5
8179 echo "${ECHO_T}yes" >&6
8180 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
8183 echo "$as_me: failed program was:" >&5
8184 cat conftest.$ac_ext >&5
8185 echo "$as_me:8185: result: no" >&5
8186 echo "${ECHO_T}no" >&6
8189 cf_library_path_list=""
8190 if test -n "${LDFLAGS}${LIBS}" ; then
8191 for cf_library_path in $LDFLAGS $LIBS
8193 case $cf_library_path in #(vi
8195 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
8197 test "$cf_library_path" != "NONE" && \
8198 test -d "$cf_library_path" && \
8200 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
8201 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
8202 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
8203 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
8204 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
8205 test -d $cf_library_path/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib/$cf_nculib_root"
8208 cf_library_path_list="$cf_library_path_list $cf_search"
8216 test "/usr" != "$prefix" && \
8218 (test $prefix = NONE || test "/usr" != "$prefix") && {
8219 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
8220 test -d /usr/lib && cf_search="$cf_search /usr/lib"
8221 test -d /usr/lib/$cf_nculib_root && cf_search="$cf_search /usr/lib/$cf_nculib_root"
8222 test -d /usr/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/lib/$cf_nculib_root/lib"
8223 test -d /usr/$cf_nculib_root/lib && cf_search="$cf_search /usr/$cf_nculib_root/lib"
8224 test -d /usr/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/$cf_nculib_root/lib/$cf_nculib_root"
8227 test "$prefix" != "NONE" && \
8228 test -d "$prefix" && \
8230 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
8231 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
8232 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
8233 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
8234 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
8235 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
8238 test "/usr/local" != "$prefix" && \
8239 test -d "/usr/local" && \
8240 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
8241 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
8242 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
8243 test -d /usr/local/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/lib/$cf_nculib_root"
8244 test -d /usr/local/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/lib/$cf_nculib_root/lib"
8245 test -d /usr/local/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/$cf_nculib_root/lib"
8246 test -d /usr/local/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/$cf_nculib_root/lib/$cf_nculib_root"
8249 test "/opt" != "$prefix" && \
8251 (test $prefix = NONE || test "/opt" != "$prefix") && {
8252 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
8253 test -d /opt/lib && cf_search="$cf_search /opt/lib"
8254 test -d /opt/lib/$cf_nculib_root && cf_search="$cf_search /opt/lib/$cf_nculib_root"
8255 test -d /opt/lib/$cf_nculib_root/lib && cf_search="$cf_search /opt/lib/$cf_nculib_root/lib"
8256 test -d /opt/$cf_nculib_root/lib && cf_search="$cf_search /opt/$cf_nculib_root/lib"
8257 test -d /opt/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /opt/$cf_nculib_root/lib/$cf_nculib_root"
8260 test "$HOME" != "$prefix" && \
8261 test -d "$HOME" && \
8262 (test $prefix = NONE || test "$HOME" != "$prefix") && {
8263 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
8264 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
8265 test -d $HOME/lib/$cf_nculib_root && cf_search="$cf_search $HOME/lib/$cf_nculib_root"
8266 test -d $HOME/lib/$cf_nculib_root/lib && cf_search="$cf_search $HOME/lib/$cf_nculib_root/lib"
8267 test -d $HOME/$cf_nculib_root/lib && cf_search="$cf_search $HOME/$cf_nculib_root/lib"
8268 test -d $HOME/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $HOME/$cf_nculib_root/lib/$cf_nculib_root"
8271 cf_search="$cf_library_path_list $cf_search"
8273 for cf_libdir in $cf_search
8275 echo "$as_me:8275: checking for -l$cf_nculib_root in $cf_libdir" >&5
8276 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
8277 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
8278 cat >conftest.$ac_ext <<_ACEOF
8279 #line 8279 "configure"
8280 #include "confdefs.h"
8281 #include <${cf_cv_ncurses_header:-curses.h}>
8290 rm -f conftest.$ac_objext conftest$ac_exeext
8291 if { (eval echo "$as_me:8291: \"$ac_link\"") >&5
8292 (eval $ac_link) 2>&5
8294 echo "$as_me:8294: \$? = $ac_status" >&5
8295 (exit $ac_status); } &&
8296 { ac_try='test -s conftest$ac_exeext'
8297 { (eval echo "$as_me:8297: \"$ac_try\"") >&5
8300 echo "$as_me:8300: \$? = $ac_status" >&5
8301 (exit $ac_status); }; }; then
8302 echo "$as_me:8302: result: yes" >&5
8303 echo "${ECHO_T}yes" >&6
8304 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
8307 echo "$as_me: failed program was:" >&5
8308 cat conftest.$ac_ext >&5
8309 echo "$as_me:8309: result: no" >&5
8310 echo "${ECHO_T}no" >&6
8311 LIBS="$cf_save_LIBS"
8313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8321 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
8323 if test $cf_found_library = no ; then
8324 { { echo "$as_me:8324: error: Cannot link $cf_nculib_root library" >&5
8325 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
8326 { (exit 1); exit 1; }; }
8331 if test -n "$cf_ncurses_LIBS" ; then
8332 echo "$as_me:8332: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
8333 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
8334 cf_ncurses_SAVE="$LIBS"
8335 for p in $cf_ncurses_LIBS ; do
8336 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
8337 if test "$q" != "$LIBS" ; then
8341 cat >conftest.$ac_ext <<_ACEOF
8342 #line 8342 "configure"
8343 #include "confdefs.h"
8344 #include <${cf_cv_ncurses_header:-curses.h}>
8348 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
8353 rm -f conftest.$ac_objext conftest$ac_exeext
8354 if { (eval echo "$as_me:8354: \"$ac_link\"") >&5
8355 (eval $ac_link) 2>&5
8357 echo "$as_me:8357: \$? = $ac_status" >&5
8358 (exit $ac_status); } &&
8359 { ac_try='test -s conftest$ac_exeext'
8360 { (eval echo "$as_me:8360: \"$ac_try\"") >&5
8363 echo "$as_me:8363: \$? = $ac_status" >&5
8364 (exit $ac_status); }; }; then
8365 echo "$as_me:8365: result: yes" >&5
8366 echo "${ECHO_T}yes" >&6
8368 echo "$as_me: failed program was:" >&5
8369 cat conftest.$ac_ext >&5
8370 echo "$as_me:8370: result: no" >&5
8371 echo "${ECHO_T}no" >&6
8372 LIBS="$cf_ncurses_SAVE"
8374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8377 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
8379 cat >>confdefs.h <<EOF
8380 #define $cf_nculib_ROOT 1
8388 echo "$as_me:8388: checking if you want to use pkg-config" >&5
8389 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
8391 # Check whether --with-pkg-config or --without-pkg-config was given.
8392 if test "${with_pkg_config+set}" = set; then
8393 withval="$with_pkg_config"
8394 cf_pkg_config=$withval
8398 echo "$as_me:8398: result: $cf_pkg_config" >&5
8399 echo "${ECHO_T}$cf_pkg_config" >&6
8401 case $cf_pkg_config in #(vi
8406 # Extract the first word of "pkg-config", so it can be a program name with args.
8407 set dummy pkg-config; ac_word=$2
8408 echo "$as_me:8408: checking for $ac_word" >&5
8409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8410 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
8415 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8418 ac_save_IFS=$IFS; IFS=$ac_path_separator
8420 for ac_dir in $ac_dummy; do
8422 test -z "$ac_dir" && ac_dir=.
8423 if $as_executable_p "$ac_dir/$ac_word"; then
8424 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
8425 echo "$as_me:8425: found $ac_dir/$ac_word" >&5
8430 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="none"
8434 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8436 if test -n "$PKG_CONFIG"; then
8437 echo "$as_me:8437: result: $PKG_CONFIG" >&5
8438 echo "${ECHO_T}$PKG_CONFIG" >&6
8440 echo "$as_me:8440: result: no" >&5
8441 echo "${ECHO_T}no" >&6
8450 test -z "$PKG_CONFIG" && PKG_CONFIG=none
8451 if test "$PKG_CONFIG" != none ; then
8453 if test "x$prefix" != xNONE; then
8454 cf_path_syntax="$prefix"
8456 cf_path_syntax="$ac_default_prefix"
8459 case ".$PKG_CONFIG" in #(vi
8460 .\$\(*\)*|.\'*\'*) #(vi
8464 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
8467 eval PKG_CONFIG="$PKG_CONFIG"
8468 case ".$PKG_CONFIG" in #(vi
8470 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
8475 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
8478 { { echo "$as_me:8478: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
8479 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
8480 { (exit 1); exit 1; }; }
8486 echo "$as_me:8486: checking for X" >&5
8487 echo $ECHO_N "checking for X... $ECHO_C" >&6
8489 # Check whether --with-x or --without-x was given.
8490 if test "${with_x+set}" = set; then
8494 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8495 if test "x$with_x" = xno; then
8496 # The user explicitly disabled X.
8499 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8500 # Both variables are already set.
8503 if test "${ac_cv_have_x+set}" = set; then
8504 echo $ECHO_N "(cached) $ECHO_C" >&6
8506 # One or both of the vars are not set, and there is no cached value.
8507 ac_x_includes=no ac_x_libraries=no
8509 if mkdir conftest.dir; then
8511 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8512 cat >Imakefile <<'EOF'
8514 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8516 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8517 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8518 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8519 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8520 for ac_extension in a so sl dylib dll; do
8521 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8522 test -f $ac_im_libdir/libX11.$ac_extension; then
8523 ac_im_usrlibdir=$ac_im_libdir; break
8526 # Screen out bogus values from the imake configuration. They are
8527 # bogus both because they are the default anyway, and because
8528 # using them would break gcc on systems where it needs fixed includes.
8529 case $ac_im_incroot in
8531 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8533 case $ac_im_usrlibdir in
8535 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8542 # Standard set of common directories for X headers.
8543 # Check X11 before X11Rn because it is often a symlink to the current release.
8555 /usr/local/X11/include
8556 /usr/local/X11R6/include
8557 /usr/local/X11R5/include
8558 /usr/local/X11R4/include
8560 /usr/local/include/X11
8561 /usr/local/include/X11R6
8562 /usr/local/include/X11R5
8563 /usr/local/include/X11R4
8567 /usr/XFree86/include/X11
8571 /usr/unsupported/include
8573 /usr/local/x11r5/include
8574 /usr/lpp/Xamples/include
8576 /usr/openwin/include
8577 /usr/openwin/share/include'
8579 if test "$ac_x_includes" = no; then
8580 # Guess where to find include files, by looking for Intrinsic.h.
8581 # First, try using that file with no special directory specified.
8582 cat >conftest.$ac_ext <<_ACEOF
8583 #line 8583 "configure"
8584 #include "confdefs.h"
8585 #include <X11/Intrinsic.h>
8587 if { (eval echo "$as_me:8587: \"$ac_cpp conftest.$ac_ext\"") >&5
8588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8590 egrep -v '^ *\+' conftest.er1 >conftest.err
8592 cat conftest.err >&5
8593 echo "$as_me:8593: \$? = $ac_status" >&5
8594 (exit $ac_status); } >/dev/null; then
8595 if test -s conftest.err; then
8596 ac_cpp_err=$ac_c_preproc_warn_flag
8603 if test -z "$ac_cpp_err"; then
8604 # We can compile using X headers with no special include directory.
8607 echo "$as_me: failed program was:" >&5
8608 cat conftest.$ac_ext >&5
8609 for ac_dir in $ac_x_header_dirs; do
8610 if test -r "$ac_dir/X11/Intrinsic.h"; then
8611 ac_x_includes=$ac_dir
8616 rm -f conftest.err conftest.$ac_ext
8617 fi # $ac_x_includes = no
8619 if test "$ac_x_libraries" = no; then
8620 # Check for the libraries.
8621 # See if we find them without any special options.
8622 # Don't add to $LIBS permanently.
8625 cat >conftest.$ac_ext <<_ACEOF
8626 #line 8626 "configure"
8627 #include "confdefs.h"
8628 #include <X11/Intrinsic.h>
8637 rm -f conftest.$ac_objext conftest$ac_exeext
8638 if { (eval echo "$as_me:8638: \"$ac_link\"") >&5
8639 (eval $ac_link) 2>&5
8641 echo "$as_me:8641: \$? = $ac_status" >&5
8642 (exit $ac_status); } &&
8643 { ac_try='test -s conftest$ac_exeext'
8644 { (eval echo "$as_me:8644: \"$ac_try\"") >&5
8647 echo "$as_me:8647: \$? = $ac_status" >&5
8648 (exit $ac_status); }; }; then
8650 # We can link X programs with no special library path.
8653 echo "$as_me: failed program was:" >&5
8654 cat conftest.$ac_ext >&5
8656 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8658 # Don't even attempt the hair of trying to link an X program!
8659 for ac_extension in a so sl dylib dll; do
8660 if test -r $ac_dir/libXt.$ac_extension; then
8661 ac_x_libraries=$ac_dir
8667 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8668 fi # $ac_x_libraries = no
8670 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8671 # Didn't find X anywhere. Cache the known absence of X.
8672 ac_cv_have_x="have_x=no"
8674 # Record where we found X for the cache.
8675 ac_cv_have_x="have_x=yes \
8676 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8681 eval "$ac_cv_have_x"
8684 if test "$have_x" != yes; then
8685 echo "$as_me:8685: result: $have_x" >&5
8686 echo "${ECHO_T}$have_x" >&6
8689 # If each of the values was on the command line, it overrides each guess.
8690 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8691 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8692 # Update the cache value to reflect the command line values.
8693 ac_cv_have_x="have_x=yes \
8694 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8695 echo "$as_me:8695: result: libraries $x_libraries, headers $x_includes" >&5
8696 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8699 if test "$no_x" = yes; then
8700 # Not all programs may use this symbol, but it does not hurt to define it.
8702 cat >>confdefs.h <<\EOF
8703 #define X_DISPLAY_MISSING 1
8706 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8708 if test -n "$x_includes"; then
8709 X_CFLAGS="$X_CFLAGS -I$x_includes"
8712 # It would also be nice to do this for all -L options, not just this one.
8713 if test -n "$x_libraries"; then
8714 X_LIBS="$X_LIBS -L$x_libraries"
8715 # For Solaris; some versions of Sun CC require a space after -R and
8716 # others require no space. Words are not sufficient . . . .
8717 case `(uname -sr) 2>/dev/null` in
8719 echo "$as_me:8719: checking whether -R must be followed by a space" >&5
8720 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8721 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8722 cat >conftest.$ac_ext <<_ACEOF
8723 #line 8723 "configure"
8724 #include "confdefs.h"
8734 rm -f conftest.$ac_objext conftest$ac_exeext
8735 if { (eval echo "$as_me:8735: \"$ac_link\"") >&5
8736 (eval $ac_link) 2>&5
8738 echo "$as_me:8738: \$? = $ac_status" >&5
8739 (exit $ac_status); } &&
8740 { ac_try='test -s conftest$ac_exeext'
8741 { (eval echo "$as_me:8741: \"$ac_try\"") >&5
8744 echo "$as_me:8744: \$? = $ac_status" >&5
8745 (exit $ac_status); }; }; then
8748 echo "$as_me: failed program was:" >&5
8749 cat conftest.$ac_ext >&5
8752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8753 if test $ac_R_nospace = yes; then
8754 echo "$as_me:8754: result: no" >&5
8755 echo "${ECHO_T}no" >&6
8756 X_LIBS="$X_LIBS -R$x_libraries"
8758 LIBS="$ac_xsave_LIBS -R $x_libraries"
8759 cat >conftest.$ac_ext <<_ACEOF
8760 #line 8760 "configure"
8761 #include "confdefs.h"
8771 rm -f conftest.$ac_objext conftest$ac_exeext
8772 if { (eval echo "$as_me:8772: \"$ac_link\"") >&5
8773 (eval $ac_link) 2>&5
8775 echo "$as_me:8775: \$? = $ac_status" >&5
8776 (exit $ac_status); } &&
8777 { ac_try='test -s conftest$ac_exeext'
8778 { (eval echo "$as_me:8778: \"$ac_try\"") >&5
8781 echo "$as_me:8781: \$? = $ac_status" >&5
8782 (exit $ac_status); }; }; then
8785 echo "$as_me: failed program was:" >&5
8786 cat conftest.$ac_ext >&5
8789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8790 if test $ac_R_space = yes; then
8791 echo "$as_me:8791: result: yes" >&5
8792 echo "${ECHO_T}yes" >&6
8793 X_LIBS="$X_LIBS -R $x_libraries"
8795 echo "$as_me:8795: result: neither works" >&5
8796 echo "${ECHO_T}neither works" >&6
8803 # Check for system-dependent libraries X programs must link with.
8804 # Do this before checking for the system-independent R6 libraries
8805 # (-lICE), since we may need -lsocket or whatever for X linking.
8807 if test "$ISC" = yes; then
8808 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8810 # Martyn Johnson says this is needed for Ultrix, if the X
8811 # libraries were built with DECnet support. And Karl Berry says
8812 # the Alpha needs dnet_stub (dnet does not exist).
8813 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8814 cat >conftest.$ac_ext <<_ACEOF
8815 #line 8815 "configure"
8816 #include "confdefs.h"
8818 /* Override any gcc2 internal prototype to avoid an error. */
8822 /* We use char because int might match the return type of a gcc2
8823 builtin and then its argument prototype would still apply. */
8824 char XOpenDisplay ();
8833 rm -f conftest.$ac_objext conftest$ac_exeext
8834 if { (eval echo "$as_me:8834: \"$ac_link\"") >&5
8835 (eval $ac_link) 2>&5
8837 echo "$as_me:8837: \$? = $ac_status" >&5
8838 (exit $ac_status); } &&
8839 { ac_try='test -s conftest$ac_exeext'
8840 { (eval echo "$as_me:8840: \"$ac_try\"") >&5
8843 echo "$as_me:8843: \$? = $ac_status" >&5
8844 (exit $ac_status); }; }; then
8847 echo "$as_me: failed program was:" >&5
8848 cat conftest.$ac_ext >&5
8849 echo "$as_me:8849: checking for dnet_ntoa in -ldnet" >&5
8850 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8851 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8852 echo $ECHO_N "(cached) $ECHO_C" >&6
8854 ac_check_lib_save_LIBS=$LIBS
8856 cat >conftest.$ac_ext <<_ACEOF
8857 #line 8857 "configure"
8858 #include "confdefs.h"
8860 /* Override any gcc2 internal prototype to avoid an error. */
8864 /* We use char because int might match the return type of a gcc2
8865 builtin and then its argument prototype would still apply. */
8875 rm -f conftest.$ac_objext conftest$ac_exeext
8876 if { (eval echo "$as_me:8876: \"$ac_link\"") >&5
8877 (eval $ac_link) 2>&5
8879 echo "$as_me:8879: \$? = $ac_status" >&5
8880 (exit $ac_status); } &&
8881 { ac_try='test -s conftest$ac_exeext'
8882 { (eval echo "$as_me:8882: \"$ac_try\"") >&5
8885 echo "$as_me:8885: \$? = $ac_status" >&5
8886 (exit $ac_status); }; }; then
8887 ac_cv_lib_dnet_dnet_ntoa=yes
8889 echo "$as_me: failed program was:" >&5
8890 cat conftest.$ac_ext >&5
8891 ac_cv_lib_dnet_dnet_ntoa=no
8893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8894 LIBS=$ac_check_lib_save_LIBS
8896 echo "$as_me:8896: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8897 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8898 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8899 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8902 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8903 echo "$as_me:8903: checking for dnet_ntoa in -ldnet_stub" >&5
8904 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8905 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8906 echo $ECHO_N "(cached) $ECHO_C" >&6
8908 ac_check_lib_save_LIBS=$LIBS
8909 LIBS="-ldnet_stub $LIBS"
8910 cat >conftest.$ac_ext <<_ACEOF
8911 #line 8911 "configure"
8912 #include "confdefs.h"
8914 /* Override any gcc2 internal prototype to avoid an error. */
8918 /* We use char because int might match the return type of a gcc2
8919 builtin and then its argument prototype would still apply. */
8929 rm -f conftest.$ac_objext conftest$ac_exeext
8930 if { (eval echo "$as_me:8930: \"$ac_link\"") >&5
8931 (eval $ac_link) 2>&5
8933 echo "$as_me:8933: \$? = $ac_status" >&5
8934 (exit $ac_status); } &&
8935 { ac_try='test -s conftest$ac_exeext'
8936 { (eval echo "$as_me:8936: \"$ac_try\"") >&5
8939 echo "$as_me:8939: \$? = $ac_status" >&5
8940 (exit $ac_status); }; }; then
8941 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8943 echo "$as_me: failed program was:" >&5
8944 cat conftest.$ac_ext >&5
8945 ac_cv_lib_dnet_stub_dnet_ntoa=no
8947 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8948 LIBS=$ac_check_lib_save_LIBS
8950 echo "$as_me:8950: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8951 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8952 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8953 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8959 LIBS="$ac_xsave_LIBS"
8961 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8962 # to get the SysV transport functions.
8963 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8965 # The nsl library prevents programs from opening the X display
8966 # on Irix 5.2, according to T.E. Dickey.
8967 # The functions gethostbyname, getservbyname, and inet_addr are
8968 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8969 echo "$as_me:8969: checking for gethostbyname" >&5
8970 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8971 if test "${ac_cv_func_gethostbyname+set}" = set; then
8972 echo $ECHO_N "(cached) $ECHO_C" >&6
8974 cat >conftest.$ac_ext <<_ACEOF
8975 #line 8975 "configure"
8976 #include "confdefs.h"
8977 /* System header to define __stub macros and hopefully few prototypes,
8978 which can conflict with char gethostbyname (); below. */
8980 /* Override any gcc2 internal prototype to avoid an error. */
8984 /* We use char because int might match the return type of a gcc2
8985 builtin and then its argument prototype would still apply. */
8986 char gethostbyname ();
8992 /* The GNU C library defines this for functions which it implements
8993 to always fail with ENOSYS. Some functions are actually named
8994 something starting with __ and the normal name is an alias. */
8995 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9005 rm -f conftest.$ac_objext conftest$ac_exeext
9006 if { (eval echo "$as_me:9006: \"$ac_link\"") >&5
9007 (eval $ac_link) 2>&5
9009 echo "$as_me:9009: \$? = $ac_status" >&5
9010 (exit $ac_status); } &&
9011 { ac_try='test -s conftest$ac_exeext'
9012 { (eval echo "$as_me:9012: \"$ac_try\"") >&5
9015 echo "$as_me:9015: \$? = $ac_status" >&5
9016 (exit $ac_status); }; }; then
9017 ac_cv_func_gethostbyname=yes
9019 echo "$as_me: failed program was:" >&5
9020 cat conftest.$ac_ext >&5
9021 ac_cv_func_gethostbyname=no
9023 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9025 echo "$as_me:9025: result: $ac_cv_func_gethostbyname" >&5
9026 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9028 if test $ac_cv_func_gethostbyname = no; then
9029 echo "$as_me:9029: checking for gethostbyname in -lnsl" >&5
9030 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9031 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9032 echo $ECHO_N "(cached) $ECHO_C" >&6
9034 ac_check_lib_save_LIBS=$LIBS
9036 cat >conftest.$ac_ext <<_ACEOF
9037 #line 9037 "configure"
9038 #include "confdefs.h"
9040 /* Override any gcc2 internal prototype to avoid an error. */
9044 /* We use char because int might match the return type of a gcc2
9045 builtin and then its argument prototype would still apply. */
9046 char gethostbyname ();
9055 rm -f conftest.$ac_objext conftest$ac_exeext
9056 if { (eval echo "$as_me:9056: \"$ac_link\"") >&5
9057 (eval $ac_link) 2>&5
9059 echo "$as_me:9059: \$? = $ac_status" >&5
9060 (exit $ac_status); } &&
9061 { ac_try='test -s conftest$ac_exeext'
9062 { (eval echo "$as_me:9062: \"$ac_try\"") >&5
9065 echo "$as_me:9065: \$? = $ac_status" >&5
9066 (exit $ac_status); }; }; then
9067 ac_cv_lib_nsl_gethostbyname=yes
9069 echo "$as_me: failed program was:" >&5
9070 cat conftest.$ac_ext >&5
9071 ac_cv_lib_nsl_gethostbyname=no
9073 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9074 LIBS=$ac_check_lib_save_LIBS
9076 echo "$as_me:9076: result: $ac_cv_lib_nsl_gethostbyname" >&5
9077 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9078 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9079 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9082 if test $ac_cv_lib_nsl_gethostbyname = no; then
9083 echo "$as_me:9083: checking for gethostbyname in -lbsd" >&5
9084 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9085 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9086 echo $ECHO_N "(cached) $ECHO_C" >&6
9088 ac_check_lib_save_LIBS=$LIBS
9090 cat >conftest.$ac_ext <<_ACEOF
9091 #line 9091 "configure"
9092 #include "confdefs.h"
9094 /* Override any gcc2 internal prototype to avoid an error. */
9098 /* We use char because int might match the return type of a gcc2
9099 builtin and then its argument prototype would still apply. */
9100 char gethostbyname ();
9109 rm -f conftest.$ac_objext conftest$ac_exeext
9110 if { (eval echo "$as_me:9110: \"$ac_link\"") >&5
9111 (eval $ac_link) 2>&5
9113 echo "$as_me:9113: \$? = $ac_status" >&5
9114 (exit $ac_status); } &&
9115 { ac_try='test -s conftest$ac_exeext'
9116 { (eval echo "$as_me:9116: \"$ac_try\"") >&5
9119 echo "$as_me:9119: \$? = $ac_status" >&5
9120 (exit $ac_status); }; }; then
9121 ac_cv_lib_bsd_gethostbyname=yes
9123 echo "$as_me: failed program was:" >&5
9124 cat conftest.$ac_ext >&5
9125 ac_cv_lib_bsd_gethostbyname=no
9127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9128 LIBS=$ac_check_lib_save_LIBS
9130 echo "$as_me:9130: result: $ac_cv_lib_bsd_gethostbyname" >&5
9131 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9132 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9133 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9139 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9140 # socket/setsockopt and other routines are undefined under SCO ODT
9141 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9142 # on later versions), says Simon Leinen: it contains gethostby*
9143 # variants that don't use the nameserver (or something). -lsocket
9144 # must be given before -lnsl if both are needed. We assume that
9145 # if connect needs -lnsl, so does gethostbyname.
9146 echo "$as_me:9146: checking for connect" >&5
9147 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9148 if test "${ac_cv_func_connect+set}" = set; then
9149 echo $ECHO_N "(cached) $ECHO_C" >&6
9151 cat >conftest.$ac_ext <<_ACEOF
9152 #line 9152 "configure"
9153 #include "confdefs.h"
9154 /* System header to define __stub macros and hopefully few prototypes,
9155 which can conflict with char connect (); below. */
9157 /* Override any gcc2 internal prototype to avoid an error. */
9161 /* We use char because int might match the return type of a gcc2
9162 builtin and then its argument prototype would still apply. */
9169 /* The GNU C library defines this for functions which it implements
9170 to always fail with ENOSYS. Some functions are actually named
9171 something starting with __ and the normal name is an alias. */
9172 #if defined (__stub_connect) || defined (__stub___connect)
9182 rm -f conftest.$ac_objext conftest$ac_exeext
9183 if { (eval echo "$as_me:9183: \"$ac_link\"") >&5
9184 (eval $ac_link) 2>&5
9186 echo "$as_me:9186: \$? = $ac_status" >&5
9187 (exit $ac_status); } &&
9188 { ac_try='test -s conftest$ac_exeext'
9189 { (eval echo "$as_me:9189: \"$ac_try\"") >&5
9192 echo "$as_me:9192: \$? = $ac_status" >&5
9193 (exit $ac_status); }; }; then
9194 ac_cv_func_connect=yes
9196 echo "$as_me: failed program was:" >&5
9197 cat conftest.$ac_ext >&5
9198 ac_cv_func_connect=no
9200 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9202 echo "$as_me:9202: result: $ac_cv_func_connect" >&5
9203 echo "${ECHO_T}$ac_cv_func_connect" >&6
9205 if test $ac_cv_func_connect = no; then
9206 echo "$as_me:9206: checking for connect in -lsocket" >&5
9207 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9208 if test "${ac_cv_lib_socket_connect+set}" = set; then
9209 echo $ECHO_N "(cached) $ECHO_C" >&6
9211 ac_check_lib_save_LIBS=$LIBS
9212 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9213 cat >conftest.$ac_ext <<_ACEOF
9214 #line 9214 "configure"
9215 #include "confdefs.h"
9217 /* Override any gcc2 internal prototype to avoid an error. */
9221 /* We use char because int might match the return type of a gcc2
9222 builtin and then its argument prototype would still apply. */
9232 rm -f conftest.$ac_objext conftest$ac_exeext
9233 if { (eval echo "$as_me:9233: \"$ac_link\"") >&5
9234 (eval $ac_link) 2>&5
9236 echo "$as_me:9236: \$? = $ac_status" >&5
9237 (exit $ac_status); } &&
9238 { ac_try='test -s conftest$ac_exeext'
9239 { (eval echo "$as_me:9239: \"$ac_try\"") >&5
9242 echo "$as_me:9242: \$? = $ac_status" >&5
9243 (exit $ac_status); }; }; then
9244 ac_cv_lib_socket_connect=yes
9246 echo "$as_me: failed program was:" >&5
9247 cat conftest.$ac_ext >&5
9248 ac_cv_lib_socket_connect=no
9250 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9251 LIBS=$ac_check_lib_save_LIBS
9253 echo "$as_me:9253: result: $ac_cv_lib_socket_connect" >&5
9254 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9255 if test $ac_cv_lib_socket_connect = yes; then
9256 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9261 # Guillermo Gomez says -lposix is necessary on A/UX.
9262 echo "$as_me:9262: checking for remove" >&5
9263 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9264 if test "${ac_cv_func_remove+set}" = set; then
9265 echo $ECHO_N "(cached) $ECHO_C" >&6
9267 cat >conftest.$ac_ext <<_ACEOF
9268 #line 9268 "configure"
9269 #include "confdefs.h"
9270 /* System header to define __stub macros and hopefully few prototypes,
9271 which can conflict with char remove (); below. */
9273 /* Override any gcc2 internal prototype to avoid an error. */
9277 /* We use char because int might match the return type of a gcc2
9278 builtin and then its argument prototype would still apply. */
9285 /* The GNU C library defines this for functions which it implements
9286 to always fail with ENOSYS. Some functions are actually named
9287 something starting with __ and the normal name is an alias. */
9288 #if defined (__stub_remove) || defined (__stub___remove)
9298 rm -f conftest.$ac_objext conftest$ac_exeext
9299 if { (eval echo "$as_me:9299: \"$ac_link\"") >&5
9300 (eval $ac_link) 2>&5
9302 echo "$as_me:9302: \$? = $ac_status" >&5
9303 (exit $ac_status); } &&
9304 { ac_try='test -s conftest$ac_exeext'
9305 { (eval echo "$as_me:9305: \"$ac_try\"") >&5
9308 echo "$as_me:9308: \$? = $ac_status" >&5
9309 (exit $ac_status); }; }; then
9310 ac_cv_func_remove=yes
9312 echo "$as_me: failed program was:" >&5
9313 cat conftest.$ac_ext >&5
9314 ac_cv_func_remove=no
9316 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9318 echo "$as_me:9318: result: $ac_cv_func_remove" >&5
9319 echo "${ECHO_T}$ac_cv_func_remove" >&6
9321 if test $ac_cv_func_remove = no; then
9322 echo "$as_me:9322: checking for remove in -lposix" >&5
9323 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9324 if test "${ac_cv_lib_posix_remove+set}" = set; then
9325 echo $ECHO_N "(cached) $ECHO_C" >&6
9327 ac_check_lib_save_LIBS=$LIBS
9328 LIBS="-lposix $LIBS"
9329 cat >conftest.$ac_ext <<_ACEOF
9330 #line 9330 "configure"
9331 #include "confdefs.h"
9333 /* Override any gcc2 internal prototype to avoid an error. */
9337 /* We use char because int might match the return type of a gcc2
9338 builtin and then its argument prototype would still apply. */
9348 rm -f conftest.$ac_objext conftest$ac_exeext
9349 if { (eval echo "$as_me:9349: \"$ac_link\"") >&5
9350 (eval $ac_link) 2>&5
9352 echo "$as_me:9352: \$? = $ac_status" >&5
9353 (exit $ac_status); } &&
9354 { ac_try='test -s conftest$ac_exeext'
9355 { (eval echo "$as_me:9355: \"$ac_try\"") >&5
9358 echo "$as_me:9358: \$? = $ac_status" >&5
9359 (exit $ac_status); }; }; then
9360 ac_cv_lib_posix_remove=yes
9362 echo "$as_me: failed program was:" >&5
9363 cat conftest.$ac_ext >&5
9364 ac_cv_lib_posix_remove=no
9366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9367 LIBS=$ac_check_lib_save_LIBS
9369 echo "$as_me:9369: result: $ac_cv_lib_posix_remove" >&5
9370 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9371 if test $ac_cv_lib_posix_remove = yes; then
9372 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9377 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9378 echo "$as_me:9378: checking for shmat" >&5
9379 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9380 if test "${ac_cv_func_shmat+set}" = set; then
9381 echo $ECHO_N "(cached) $ECHO_C" >&6
9383 cat >conftest.$ac_ext <<_ACEOF
9384 #line 9384 "configure"
9385 #include "confdefs.h"
9386 /* System header to define __stub macros and hopefully few prototypes,
9387 which can conflict with char shmat (); below. */
9389 /* Override any gcc2 internal prototype to avoid an error. */
9393 /* We use char because int might match the return type of a gcc2
9394 builtin and then its argument prototype would still apply. */
9401 /* The GNU C library defines this for functions which it implements
9402 to always fail with ENOSYS. Some functions are actually named
9403 something starting with __ and the normal name is an alias. */
9404 #if defined (__stub_shmat) || defined (__stub___shmat)
9414 rm -f conftest.$ac_objext conftest$ac_exeext
9415 if { (eval echo "$as_me:9415: \"$ac_link\"") >&5
9416 (eval $ac_link) 2>&5
9418 echo "$as_me:9418: \$? = $ac_status" >&5
9419 (exit $ac_status); } &&
9420 { ac_try='test -s conftest$ac_exeext'
9421 { (eval echo "$as_me:9421: \"$ac_try\"") >&5
9424 echo "$as_me:9424: \$? = $ac_status" >&5
9425 (exit $ac_status); }; }; then
9426 ac_cv_func_shmat=yes
9428 echo "$as_me: failed program was:" >&5
9429 cat conftest.$ac_ext >&5
9432 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9434 echo "$as_me:9434: result: $ac_cv_func_shmat" >&5
9435 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9437 if test $ac_cv_func_shmat = no; then
9438 echo "$as_me:9438: checking for shmat in -lipc" >&5
9439 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9440 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9441 echo $ECHO_N "(cached) $ECHO_C" >&6
9443 ac_check_lib_save_LIBS=$LIBS
9445 cat >conftest.$ac_ext <<_ACEOF
9446 #line 9446 "configure"
9447 #include "confdefs.h"
9449 /* Override any gcc2 internal prototype to avoid an error. */
9453 /* We use char because int might match the return type of a gcc2
9454 builtin and then its argument prototype would still apply. */
9464 rm -f conftest.$ac_objext conftest$ac_exeext
9465 if { (eval echo "$as_me:9465: \"$ac_link\"") >&5
9466 (eval $ac_link) 2>&5
9468 echo "$as_me:9468: \$? = $ac_status" >&5
9469 (exit $ac_status); } &&
9470 { ac_try='test -s conftest$ac_exeext'
9471 { (eval echo "$as_me:9471: \"$ac_try\"") >&5
9474 echo "$as_me:9474: \$? = $ac_status" >&5
9475 (exit $ac_status); }; }; then
9476 ac_cv_lib_ipc_shmat=yes
9478 echo "$as_me: failed program was:" >&5
9479 cat conftest.$ac_ext >&5
9480 ac_cv_lib_ipc_shmat=no
9482 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9483 LIBS=$ac_check_lib_save_LIBS
9485 echo "$as_me:9485: result: $ac_cv_lib_ipc_shmat" >&5
9486 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9487 if test $ac_cv_lib_ipc_shmat = yes; then
9488 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9494 # Check for libraries that X11R6 Xt/Xaw programs need.
9495 ac_save_LDFLAGS=$LDFLAGS
9496 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9497 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9498 # check for ICE first), but we must link in the order -lSM -lICE or
9499 # we get undefined symbols. So assume we have SM if we have ICE.
9500 # These have to be linked with before -lX11, unlike the other
9501 # libraries we check for below, so use a different variable.
9502 # John Interrante, Karl Berry
9503 echo "$as_me:9503: checking for IceConnectionNumber in -lICE" >&5
9504 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9505 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9506 echo $ECHO_N "(cached) $ECHO_C" >&6
9508 ac_check_lib_save_LIBS=$LIBS
9509 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9510 cat >conftest.$ac_ext <<_ACEOF
9511 #line 9511 "configure"
9512 #include "confdefs.h"
9514 /* Override any gcc2 internal prototype to avoid an error. */
9518 /* We use char because int might match the return type of a gcc2
9519 builtin and then its argument prototype would still apply. */
9520 char IceConnectionNumber ();
9524 IceConnectionNumber ();
9529 rm -f conftest.$ac_objext conftest$ac_exeext
9530 if { (eval echo "$as_me:9530: \"$ac_link\"") >&5
9531 (eval $ac_link) 2>&5
9533 echo "$as_me:9533: \$? = $ac_status" >&5
9534 (exit $ac_status); } &&
9535 { ac_try='test -s conftest$ac_exeext'
9536 { (eval echo "$as_me:9536: \"$ac_try\"") >&5
9539 echo "$as_me:9539: \$? = $ac_status" >&5
9540 (exit $ac_status); }; }; then
9541 ac_cv_lib_ICE_IceConnectionNumber=yes
9543 echo "$as_me: failed program was:" >&5
9544 cat conftest.$ac_ext >&5
9545 ac_cv_lib_ICE_IceConnectionNumber=no
9547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9548 LIBS=$ac_check_lib_save_LIBS
9550 echo "$as_me:9550: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9551 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9552 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9553 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9556 LDFLAGS=$ac_save_LDFLAGS
9560 cf_x_athena=${cf_x_athena:-Xaw}
9562 echo "$as_me:9562: checking if you want to link with Xaw 3d library" >&5
9563 echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6
9566 # Check whether --with-Xaw3d or --without-Xaw3d was given.
9567 if test "${with_Xaw3d+set}" = set; then
9568 withval="$with_Xaw3d"
9571 if test "$withval" = yes ; then
9573 echo "$as_me:9573: result: yes" >&5
9574 echo "${ECHO_T}yes" >&6
9576 echo "$as_me:9576: result: no" >&5
9577 echo "${ECHO_T}no" >&6
9580 echo "$as_me:9580: checking if you want to link with neXT Athena library" >&5
9581 echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6
9584 # Check whether --with-neXtaw or --without-neXtaw was given.
9585 if test "${with_neXtaw+set}" = set; then
9586 withval="$with_neXtaw"
9589 if test "$withval" = yes ; then
9591 echo "$as_me:9591: result: yes" >&5
9592 echo "${ECHO_T}yes" >&6
9594 echo "$as_me:9594: result: no" >&5
9595 echo "${ECHO_T}no" >&6
9598 echo "$as_me:9598: checking if you want to link with Athena-Plus library" >&5
9599 echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6
9602 # Check whether --with-XawPlus or --without-XawPlus was given.
9603 if test "${with_XawPlus+set}" = set; then
9604 withval="$with_XawPlus"
9607 if test "$withval" = yes ; then
9609 echo "$as_me:9609: result: yes" >&5
9610 echo "${ECHO_T}yes" >&6
9612 echo "$as_me:9612: result: no" >&5
9613 echo "${ECHO_T}no" >&6
9618 if test "$PKG_CONFIG" != none ; then
9620 test "$cf_x_athena" = Xaw && cf_athena_list="xaw8 xaw7 xaw6"
9621 for cf_athena_pkg in \
9624 ${cf_x_athena}-devel \
9626 lib${cf_x_athena}-devel
9629 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists $cf_athena_pkg; then
9630 test -n "$verbose" && echo " found package $cf_athena_pkg" 1>&6
9632 echo "${as_me:-configure}:9632: testing found package $cf_athena_pkg ..." 1>&5
9634 cf_pkgconfig_incs="`$PKG_CONFIG --cflags $cf_athena_pkg 2>/dev/null`"
9635 cf_pkgconfig_libs="`$PKG_CONFIG --libs $cf_athena_pkg 2>/dev/null`"
9636 test -n "$verbose" && echo " package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs" 1>&6
9638 echo "${as_me:-configure}:9638: testing package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs ..." 1>&5
9640 test -n "$verbose" && echo " package $cf_athena_pkg LIBS: $cf_pkgconfig_libs" 1>&6
9642 echo "${as_me:-configure}:9642: testing package $cf_athena_pkg LIBS: $cf_pkgconfig_libs ..." 1>&5
9647 cf_new_extra_cppflags=
9649 for cf_add_cflags in $cf_pkgconfig_incs
9651 case $cf_fix_cppflags in
9653 case $cf_add_cflags in #(vi
9654 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
9655 case $cf_add_cflags in
9657 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9659 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9660 && test -z "${cf_tst_cflags}" \
9661 && cf_fix_cppflags=yes
9663 if test $cf_fix_cppflags = yes ; then
9664 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9666 elif test "${cf_tst_cflags}" = "\"'" ; then
9667 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9673 *$cf_add_cflags) #(vi
9676 case $cf_add_cflags in #(vi
9678 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9680 CPPFLAGS=`echo "$CPPFLAGS" | \
9681 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9682 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9686 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
9691 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
9696 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9698 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9700 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9701 && test -z "${cf_tst_cflags}" \
9702 && cf_fix_cppflags=no
9707 if test -n "$cf_new_cflags" ; then
9709 CFLAGS="$CFLAGS $cf_new_cflags"
9712 if test -n "$cf_new_cppflags" ; then
9714 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
9717 if test -n "$cf_new_extra_cppflags" ; then
9719 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
9722 LIBS="$cf_pkgconfig_libs $LIBS"
9724 cf_x_athena_lib="$cf_pkgconfig_libs"
9726 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
9728 cat >>confdefs.h <<EOF
9729 #define $cf_x_athena_LIBS 1
9740 if test -z "$cf_x_athena_lib" ; then
9742 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists Xext; then
9743 test -n "$verbose" && echo " found package Xext" 1>&6
9745 echo "${as_me:-configure}:9745: testing found package Xext ..." 1>&5
9747 cf_pkgconfig_incs="`$PKG_CONFIG --cflags Xext 2>/dev/null`"
9748 cf_pkgconfig_libs="`$PKG_CONFIG --libs Xext 2>/dev/null`"
9749 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6
9751 echo "${as_me:-configure}:9751: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5
9753 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6
9755 echo "${as_me:-configure}:9755: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5
9760 cf_new_extra_cppflags=
9762 for cf_add_cflags in $cf_pkgconfig_incs
9764 case $cf_fix_cppflags in
9766 case $cf_add_cflags in #(vi
9767 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
9768 case $cf_add_cflags in
9770 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9772 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9773 && test -z "${cf_tst_cflags}" \
9774 && cf_fix_cppflags=yes
9776 if test $cf_fix_cppflags = yes ; then
9777 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9779 elif test "${cf_tst_cflags}" = "\"'" ; then
9780 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9786 *$cf_add_cflags) #(vi
9789 case $cf_add_cflags in #(vi
9791 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9793 CPPFLAGS=`echo "$CPPFLAGS" | \
9794 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9795 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9799 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
9804 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
9809 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9811 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9813 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9814 && test -z "${cf_tst_cflags}" \
9815 && cf_fix_cppflags=no
9820 if test -n "$cf_new_cflags" ; then
9822 CFLAGS="$CFLAGS $cf_new_cflags"
9825 if test -n "$cf_new_cppflags" ; then
9827 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
9830 if test -n "$cf_new_extra_cppflags" ; then
9832 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
9835 LIBS="$cf_pkgconfig_libs $LIBS"
9839 echo "$as_me:9839: checking for XextCreateExtension in -lXext" >&5
9840 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
9841 if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
9842 echo $ECHO_N "(cached) $ECHO_C" >&6
9844 ac_check_lib_save_LIBS=$LIBS
9846 cat >conftest.$ac_ext <<_ACEOF
9847 #line 9847 "configure"
9848 #include "confdefs.h"
9850 /* Override any gcc2 internal prototype to avoid an error. */
9854 /* We use char because int might match the return type of a gcc2
9855 builtin and then its argument prototype would still apply. */
9856 char XextCreateExtension ();
9860 XextCreateExtension ();
9865 rm -f conftest.$ac_objext conftest$ac_exeext
9866 if { (eval echo "$as_me:9866: \"$ac_link\"") >&5
9867 (eval $ac_link) 2>&5
9869 echo "$as_me:9869: \$? = $ac_status" >&5
9870 (exit $ac_status); } &&
9871 { ac_try='test -s conftest$ac_exeext'
9872 { (eval echo "$as_me:9872: \"$ac_try\"") >&5
9875 echo "$as_me:9875: \$? = $ac_status" >&5
9876 (exit $ac_status); }; }; then
9877 ac_cv_lib_Xext_XextCreateExtension=yes
9879 echo "$as_me: failed program was:" >&5
9880 cat conftest.$ac_ext >&5
9881 ac_cv_lib_Xext_XextCreateExtension=no
9883 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9884 LIBS=$ac_check_lib_save_LIBS
9886 echo "$as_me:9886: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
9887 echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
9888 if test $ac_cv_lib_Xext_XextCreateExtension = yes; then
9896 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
9897 test -n "$verbose" && echo " found package xt" 1>&6
9899 echo "${as_me:-configure}:9899: testing found package xt ..." 1>&5
9901 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
9902 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`"
9903 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
9905 echo "${as_me:-configure}:9905: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
9907 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
9909 echo "${as_me:-configure}:9909: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
9914 cf_new_extra_cppflags=
9916 for cf_add_cflags in $cf_pkgconfig_incs
9918 case $cf_fix_cppflags in
9920 case $cf_add_cflags in #(vi
9921 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
9922 case $cf_add_cflags in
9924 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9926 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9927 && test -z "${cf_tst_cflags}" \
9928 && cf_fix_cppflags=yes
9930 if test $cf_fix_cppflags = yes ; then
9931 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9933 elif test "${cf_tst_cflags}" = "\"'" ; then
9934 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9940 *$cf_add_cflags) #(vi
9943 case $cf_add_cflags in #(vi
9945 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9947 CPPFLAGS=`echo "$CPPFLAGS" | \
9948 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9949 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9953 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
9958 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
9963 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
9965 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9967 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
9968 && test -z "${cf_tst_cflags}" \
9969 && cf_fix_cppflags=no
9974 if test -n "$cf_new_cflags" ; then
9976 CFLAGS="$CFLAGS $cf_new_cflags"
9979 if test -n "$cf_new_cppflags" ; then
9981 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
9984 if test -n "$cf_new_extra_cppflags" ; then
9986 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
9989 LIBS="$cf_pkgconfig_libs $LIBS"
9991 # workaround for broken ".pc" files used for X Toolkit.
9992 case "x$X_PRE_LIBS" in #(vi
9994 case "x$LIBS" in #(vi
9998 test -n "$verbose" && echo " work around broken package" 1>&6
10000 echo "${as_me:-configure}:10000: testing work around broken package ..." 1>&5
10002 test -n "$verbose" && echo " ...before $LIBS" 1>&6
10004 echo "${as_me:-configure}:10004: testing ...before $LIBS ..." 1>&5
10006 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s,-lXt ,-lXt $X_PRE_LIBS ," -e 's/ / /g'`
10007 test -n "$verbose" && echo " ...after $LIBS" 1>&6
10009 echo "${as_me:-configure}:10009: testing ...after $LIBS ..." 1>&5
10020 LDFLAGS="$X_LIBS $LDFLAGS"
10022 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
10024 echo "${as_me:-configure}:10024: testing checking additions to CFLAGS ..." 1>&5
10026 cf_check_cflags="$CFLAGS"
10027 cf_check_cppflags="$CPPFLAGS"
10032 cf_new_extra_cppflags=
10034 for cf_add_cflags in $X_CFLAGS
10036 case $cf_fix_cppflags in
10038 case $cf_add_cflags in #(vi
10039 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10040 case $cf_add_cflags in
10042 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10044 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10045 && test -z "${cf_tst_cflags}" \
10046 && cf_fix_cppflags=yes
10048 if test $cf_fix_cppflags = yes ; then
10049 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10051 elif test "${cf_tst_cflags}" = "\"'" ; then
10052 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10057 case "$CPPFLAGS" in
10058 *$cf_add_cflags) #(vi
10061 case $cf_add_cflags in #(vi
10063 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10065 CPPFLAGS=`echo "$CPPFLAGS" | \
10066 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10067 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10071 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10076 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10081 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10083 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10085 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10086 && test -z "${cf_tst_cflags}" \
10087 && cf_fix_cppflags=no
10092 if test -n "$cf_new_cflags" ; then
10093 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
10095 echo "${as_me:-configure}:10095: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
10097 CFLAGS="$CFLAGS $cf_new_cflags"
10100 if test -n "$cf_new_cppflags" ; then
10101 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
10103 echo "${as_me:-configure}:10103: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
10105 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10108 if test -n "$cf_new_extra_cppflags" ; then
10109 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
10111 echo "${as_me:-configure}:10111: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
10113 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10116 if test "$cf_check_cflags" != "$CFLAGS" ; then
10117 cat >conftest.$ac_ext <<_ACEOF
10118 #line 10118 "configure"
10119 #include "confdefs.h"
10124 printf("Hello world");
10129 rm -f conftest.$ac_objext conftest$ac_exeext
10130 if { (eval echo "$as_me:10130: \"$ac_link\"") >&5
10131 (eval $ac_link) 2>&5
10133 echo "$as_me:10133: \$? = $ac_status" >&5
10134 (exit $ac_status); } &&
10135 { ac_try='test -s conftest$ac_exeext'
10136 { (eval echo "$as_me:10136: \"$ac_try\"") >&5
10137 (eval $ac_try) 2>&5
10139 echo "$as_me:10139: \$? = $ac_status" >&5
10140 (exit $ac_status); }; }; then
10143 echo "$as_me: failed program was:" >&5
10144 cat conftest.$ac_ext >&5
10145 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
10147 echo "${as_me:-configure}:10147: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
10149 if test "$cf_check_cppflags" != "$CPPFLAGS" ; then
10150 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
10152 echo "${as_me:-configure}:10152: testing but keeping change to \$CPPFLAGS ..." 1>&5
10155 CFLAGS="$cf_check_flags"
10157 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10160 echo "$as_me:10160: checking for XOpenDisplay" >&5
10161 echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6
10162 if test "${ac_cv_func_XOpenDisplay+set}" = set; then
10163 echo $ECHO_N "(cached) $ECHO_C" >&6
10165 cat >conftest.$ac_ext <<_ACEOF
10166 #line 10166 "configure"
10167 #include "confdefs.h"
10168 /* System header to define __stub macros and hopefully few prototypes,
10169 which can conflict with char XOpenDisplay (); below. */
10170 #include <assert.h>
10171 /* Override any gcc2 internal prototype to avoid an error. */
10175 /* We use char because int might match the return type of a gcc2
10176 builtin and then its argument prototype would still apply. */
10177 char XOpenDisplay ();
10183 /* The GNU C library defines this for functions which it implements
10184 to always fail with ENOSYS. Some functions are actually named
10185 something starting with __ and the normal name is an alias. */
10186 #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay)
10196 rm -f conftest.$ac_objext conftest$ac_exeext
10197 if { (eval echo "$as_me:10197: \"$ac_link\"") >&5
10198 (eval $ac_link) 2>&5
10200 echo "$as_me:10200: \$? = $ac_status" >&5
10201 (exit $ac_status); } &&
10202 { ac_try='test -s conftest$ac_exeext'
10203 { (eval echo "$as_me:10203: \"$ac_try\"") >&5
10204 (eval $ac_try) 2>&5
10206 echo "$as_me:10206: \$? = $ac_status" >&5
10207 (exit $ac_status); }; }; then
10208 ac_cv_func_XOpenDisplay=yes
10210 echo "$as_me: failed program was:" >&5
10211 cat conftest.$ac_ext >&5
10212 ac_cv_func_XOpenDisplay=no
10214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10216 echo "$as_me:10216: result: $ac_cv_func_XOpenDisplay" >&5
10217 echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6
10218 if test $ac_cv_func_XOpenDisplay = yes; then
10222 echo "$as_me:10222: checking for XOpenDisplay in -lX11" >&5
10223 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
10224 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
10225 echo $ECHO_N "(cached) $ECHO_C" >&6
10227 ac_check_lib_save_LIBS=$LIBS
10228 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
10229 cat >conftest.$ac_ext <<_ACEOF
10230 #line 10230 "configure"
10231 #include "confdefs.h"
10233 /* Override any gcc2 internal prototype to avoid an error. */
10237 /* We use char because int might match the return type of a gcc2
10238 builtin and then its argument prototype would still apply. */
10239 char XOpenDisplay ();
10248 rm -f conftest.$ac_objext conftest$ac_exeext
10249 if { (eval echo "$as_me:10249: \"$ac_link\"") >&5
10250 (eval $ac_link) 2>&5
10252 echo "$as_me:10252: \$? = $ac_status" >&5
10253 (exit $ac_status); } &&
10254 { ac_try='test -s conftest$ac_exeext'
10255 { (eval echo "$as_me:10255: \"$ac_try\"") >&5
10256 (eval $ac_try) 2>&5
10258 echo "$as_me:10258: \$? = $ac_status" >&5
10259 (exit $ac_status); }; }; then
10260 ac_cv_lib_X11_XOpenDisplay=yes
10262 echo "$as_me: failed program was:" >&5
10263 cat conftest.$ac_ext >&5
10264 ac_cv_lib_X11_XOpenDisplay=no
10266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10267 LIBS=$ac_check_lib_save_LIBS
10269 echo "$as_me:10269: result: $ac_cv_lib_X11_XOpenDisplay" >&5
10270 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
10271 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
10277 echo "$as_me:10277: checking for XtAppInitialize" >&5
10278 echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6
10279 if test "${ac_cv_func_XtAppInitialize+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10282 cat >conftest.$ac_ext <<_ACEOF
10283 #line 10283 "configure"
10284 #include "confdefs.h"
10285 /* System header to define __stub macros and hopefully few prototypes,
10286 which can conflict with char XtAppInitialize (); below. */
10287 #include <assert.h>
10288 /* Override any gcc2 internal prototype to avoid an error. */
10292 /* We use char because int might match the return type of a gcc2
10293 builtin and then its argument prototype would still apply. */
10294 char XtAppInitialize ();
10300 /* The GNU C library defines this for functions which it implements
10301 to always fail with ENOSYS. Some functions are actually named
10302 something starting with __ and the normal name is an alias. */
10303 #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize)
10306 f = XtAppInitialize;
10313 rm -f conftest.$ac_objext conftest$ac_exeext
10314 if { (eval echo "$as_me:10314: \"$ac_link\"") >&5
10315 (eval $ac_link) 2>&5
10317 echo "$as_me:10317: \$? = $ac_status" >&5
10318 (exit $ac_status); } &&
10319 { ac_try='test -s conftest$ac_exeext'
10320 { (eval echo "$as_me:10320: \"$ac_try\"") >&5
10321 (eval $ac_try) 2>&5
10323 echo "$as_me:10323: \$? = $ac_status" >&5
10324 (exit $ac_status); }; }; then
10325 ac_cv_func_XtAppInitialize=yes
10327 echo "$as_me: failed program was:" >&5
10328 cat conftest.$ac_ext >&5
10329 ac_cv_func_XtAppInitialize=no
10331 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10333 echo "$as_me:10333: result: $ac_cv_func_XtAppInitialize" >&5
10334 echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6
10335 if test $ac_cv_func_XtAppInitialize = yes; then
10339 echo "$as_me:10339: checking for XtAppInitialize in -lXt" >&5
10340 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
10341 if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
10342 echo $ECHO_N "(cached) $ECHO_C" >&6
10344 ac_check_lib_save_LIBS=$LIBS
10345 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
10346 cat >conftest.$ac_ext <<_ACEOF
10347 #line 10347 "configure"
10348 #include "confdefs.h"
10350 /* Override any gcc2 internal prototype to avoid an error. */
10354 /* We use char because int might match the return type of a gcc2
10355 builtin and then its argument prototype would still apply. */
10356 char XtAppInitialize ();
10360 XtAppInitialize ();
10365 rm -f conftest.$ac_objext conftest$ac_exeext
10366 if { (eval echo "$as_me:10366: \"$ac_link\"") >&5
10367 (eval $ac_link) 2>&5
10369 echo "$as_me:10369: \$? = $ac_status" >&5
10370 (exit $ac_status); } &&
10371 { ac_try='test -s conftest$ac_exeext'
10372 { (eval echo "$as_me:10372: \"$ac_try\"") >&5
10373 (eval $ac_try) 2>&5
10375 echo "$as_me:10375: \$? = $ac_status" >&5
10376 (exit $ac_status); }; }; then
10377 ac_cv_lib_Xt_XtAppInitialize=yes
10379 echo "$as_me: failed program was:" >&5
10380 cat conftest.$ac_ext >&5
10381 ac_cv_lib_Xt_XtAppInitialize=no
10383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10384 LIBS=$ac_check_lib_save_LIBS
10386 echo "$as_me:10386: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
10387 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
10388 if test $ac_cv_lib_Xt_XtAppInitialize = yes; then
10389 cat >>confdefs.h <<\EOF
10390 #define HAVE_LIBXT 1
10394 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
10401 if test $cf_have_X_LIBS = no ; then
10402 { echo "$as_me:10402: WARNING: Unable to successfully link X Toolkit library (-lXt) with
10403 test program. You will have to check and add the proper libraries by hand
10405 echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with
10406 test program. You will have to check and add the proper libraries by hand
10407 to makefile." >&2;}
10410 cf_x_athena_root=$cf_x_athena
10413 for cf_path in default \
10414 /usr/contrib/X11R6 \
10415 /usr/contrib/X11R5 \
10419 if test -z "$cf_x_athena_inc" ; then
10420 cf_save="$CPPFLAGS"
10421 cf_test=X11/$cf_x_athena_root/SimpleMenu.h
10422 if test $cf_path != default ; then
10423 CPPFLAGS="$cf_save -I$cf_path/include"
10424 echo "$as_me:10424: checking for $cf_test in $cf_path" >&5
10425 echo $ECHO_N "checking for $cf_test in $cf_path... $ECHO_C" >&6
10427 echo "$as_me:10427: checking for $cf_test" >&5
10428 echo $ECHO_N "checking for $cf_test... $ECHO_C" >&6
10430 cat >conftest.$ac_ext <<_ACEOF
10431 #line 10431 "configure"
10432 #include "confdefs.h"
10434 #include <X11/Intrinsic.h>
10435 #include <$cf_test>
10444 rm -f conftest.$ac_objext
10445 if { (eval echo "$as_me:10445: \"$ac_compile\"") >&5
10446 (eval $ac_compile) 2>&5
10448 echo "$as_me:10448: \$? = $ac_status" >&5
10449 (exit $ac_status); } &&
10450 { ac_try='test -s conftest.$ac_objext'
10451 { (eval echo "$as_me:10451: \"$ac_try\"") >&5
10452 (eval $ac_try) 2>&5
10454 echo "$as_me:10454: \$? = $ac_status" >&5
10455 (exit $ac_status); }; }; then
10458 echo "$as_me: failed program was:" >&5
10459 cat conftest.$ac_ext >&5
10462 rm -f conftest.$ac_objext conftest.$ac_ext
10463 echo "$as_me:10463: result: $cf_result" >&5
10464 echo "${ECHO_T}$cf_result" >&6
10465 if test "$cf_result" = yes ; then
10466 cf_x_athena_inc=$cf_path
10469 CPPFLAGS="$cf_save"
10474 if test -z "$cf_x_athena_inc" ; then
10475 { echo "$as_me:10475: WARNING: Unable to successfully find Athena header files with test program" >&5
10476 echo "$as_me: WARNING: Unable to successfully find Athena header files with test program" >&2;}
10477 elif test "$cf_x_athena_inc" != default ; then
10478 CPPFLAGS="$CPPFLAGS -I$cf_x_athena_inc"
10481 cf_x_athena_root=$cf_x_athena
10484 for cf_path in default \
10485 /usr/contrib/X11R6 \
10486 /usr/contrib/X11R5 \
10491 "-l$cf_x_athena_root -lXmu" \
10492 "-l$cf_x_athena_root -lXpm -lXmu" \
10493 "-l${cf_x_athena_root}_s -lXmu_s"
10495 if test -z "$cf_x_athena_lib" ; then
10497 cf_test=XawSimpleMenuAddGlobalActions
10498 if test $cf_path != default ; then
10499 LIBS="-L$cf_path/lib $cf_lib $LIBS"
10500 echo "$as_me:10500: checking for $cf_lib in $cf_path" >&5
10501 echo $ECHO_N "checking for $cf_lib in $cf_path... $ECHO_C" >&6
10503 LIBS="$cf_lib $LIBS"
10504 echo "$as_me:10504: checking for $cf_test in $cf_lib" >&5
10505 echo $ECHO_N "checking for $cf_test in $cf_lib... $ECHO_C" >&6
10507 cat >conftest.$ac_ext <<_ACEOF
10508 #line 10508 "configure"
10509 #include "confdefs.h"
10519 rm -f conftest.$ac_objext conftest$ac_exeext
10520 if { (eval echo "$as_me:10520: \"$ac_link\"") >&5
10521 (eval $ac_link) 2>&5
10523 echo "$as_me:10523: \$? = $ac_status" >&5
10524 (exit $ac_status); } &&
10525 { ac_try='test -s conftest$ac_exeext'
10526 { (eval echo "$as_me:10526: \"$ac_try\"") >&5
10527 (eval $ac_try) 2>&5
10529 echo "$as_me:10529: \$? = $ac_status" >&5
10530 (exit $ac_status); }; }; then
10533 echo "$as_me: failed program was:" >&5
10534 cat conftest.$ac_ext >&5
10537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10538 echo "$as_me:10538: result: $cf_result" >&5
10539 echo "${ECHO_T}$cf_result" >&6
10540 if test "$cf_result" = yes ; then
10541 cf_x_athena_lib="$cf_lib"
10549 if test -z "$cf_x_athena_lib" ; then
10550 { { echo "$as_me:10550: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&5
10551 echo "$as_me: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&2;}
10552 { (exit 1); exit 1; }; }
10555 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
10557 cat >>confdefs.h <<EOF
10558 #define $cf_x_athena_LIBS 1
10563 for ac_prog in xcurses-config
10565 # Extract the first word of "$ac_prog", so it can be a program name with args.
10566 set dummy $ac_prog; ac_word=$2
10567 echo "$as_me:10567: checking for $ac_word" >&5
10568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10569 if test "${ac_cv_path_XCURSES_CONFIG+set}" = set; then
10570 echo $ECHO_N "(cached) $ECHO_C" >&6
10572 case $XCURSES_CONFIG in
10574 ac_cv_path_XCURSES_CONFIG="$XCURSES_CONFIG" # Let the user override the test with a path.
10577 ac_save_IFS=$IFS; IFS=$ac_path_separator
10579 for ac_dir in $ac_dummy; do
10581 test -z "$ac_dir" && ac_dir=.
10582 if $as_executable_p "$ac_dir/$ac_word"; then
10583 ac_cv_path_XCURSES_CONFIG="$ac_dir/$ac_word"
10584 echo "$as_me:10584: found $ac_dir/$ac_word" >&5
10592 XCURSES_CONFIG=$ac_cv_path_XCURSES_CONFIG
10594 if test -n "$XCURSES_CONFIG"; then
10595 echo "$as_me:10595: result: $XCURSES_CONFIG" >&5
10596 echo "${ECHO_T}$XCURSES_CONFIG" >&6
10598 echo "$as_me:10598: result: no" >&5
10599 echo "${ECHO_T}no" >&6
10602 test -n "$XCURSES_CONFIG" && break
10604 test -n "$XCURSES_CONFIG" || XCURSES_CONFIG="none"
10606 if test "$XCURSES_CONFIG" != none ; then
10608 CPPFLAGS="$CPPFLAGS `$XCURSES_CONFIG --cflags`"
10609 LIBS="`$XCURSES_CONFIG --libs` $LIBS"
10611 cf_cv_lib_XCurses=yes
10615 LDFLAGS="$LDFLAGS $X_LIBS"
10617 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
10619 echo "${as_me:-configure}:10619: testing checking additions to CFLAGS ..." 1>&5
10621 cf_check_cflags="$CFLAGS"
10622 cf_check_cppflags="$CPPFLAGS"
10627 cf_new_extra_cppflags=
10629 for cf_add_cflags in $X_CFLAGS
10631 case $cf_fix_cppflags in
10633 case $cf_add_cflags in #(vi
10634 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10635 case $cf_add_cflags in
10637 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10639 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10640 && test -z "${cf_tst_cflags}" \
10641 && cf_fix_cppflags=yes
10643 if test $cf_fix_cppflags = yes ; then
10644 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10646 elif test "${cf_tst_cflags}" = "\"'" ; then
10647 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10652 case "$CPPFLAGS" in
10653 *$cf_add_cflags) #(vi
10656 case $cf_add_cflags in #(vi
10658 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10660 CPPFLAGS=`echo "$CPPFLAGS" | \
10661 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10662 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10666 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10671 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10676 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10678 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10680 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10681 && test -z "${cf_tst_cflags}" \
10682 && cf_fix_cppflags=no
10687 if test -n "$cf_new_cflags" ; then
10688 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
10690 echo "${as_me:-configure}:10690: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
10692 CFLAGS="$CFLAGS $cf_new_cflags"
10695 if test -n "$cf_new_cppflags" ; then
10696 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
10698 echo "${as_me:-configure}:10698: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
10700 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10703 if test -n "$cf_new_extra_cppflags" ; then
10704 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
10706 echo "${as_me:-configure}:10706: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
10708 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10711 if test "$cf_check_cflags" != "$CFLAGS" ; then
10712 cat >conftest.$ac_ext <<_ACEOF
10713 #line 10713 "configure"
10714 #include "confdefs.h"
10719 printf("Hello world");
10724 rm -f conftest.$ac_objext conftest$ac_exeext
10725 if { (eval echo "$as_me:10725: \"$ac_link\"") >&5
10726 (eval $ac_link) 2>&5
10728 echo "$as_me:10728: \$? = $ac_status" >&5
10729 (exit $ac_status); } &&
10730 { ac_try='test -s conftest$ac_exeext'
10731 { (eval echo "$as_me:10731: \"$ac_try\"") >&5
10732 (eval $ac_try) 2>&5
10734 echo "$as_me:10734: \$? = $ac_status" >&5
10735 (exit $ac_status); }; }; then
10738 echo "$as_me: failed program was:" >&5
10739 cat conftest.$ac_ext >&5
10740 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
10742 echo "${as_me:-configure}:10742: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
10744 if test "$cf_check_cppflags" != "$CPPFLAGS" ; then
10745 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
10747 echo "${as_me:-configure}:10747: testing but keeping change to \$CPPFLAGS ..." 1>&5
10750 CFLAGS="$cf_check_flags"
10752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10755 echo "$as_me:10755: checking for XOpenDisplay in -lX11" >&5
10756 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
10757 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
10758 echo $ECHO_N "(cached) $ECHO_C" >&6
10760 ac_check_lib_save_LIBS=$LIBS
10761 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
10762 cat >conftest.$ac_ext <<_ACEOF
10763 #line 10763 "configure"
10764 #include "confdefs.h"
10766 /* Override any gcc2 internal prototype to avoid an error. */
10770 /* We use char because int might match the return type of a gcc2
10771 builtin and then its argument prototype would still apply. */
10772 char XOpenDisplay ();
10781 rm -f conftest.$ac_objext conftest$ac_exeext
10782 if { (eval echo "$as_me:10782: \"$ac_link\"") >&5
10783 (eval $ac_link) 2>&5
10785 echo "$as_me:10785: \$? = $ac_status" >&5
10786 (exit $ac_status); } &&
10787 { ac_try='test -s conftest$ac_exeext'
10788 { (eval echo "$as_me:10788: \"$ac_try\"") >&5
10789 (eval $ac_try) 2>&5
10791 echo "$as_me:10791: \$? = $ac_status" >&5
10792 (exit $ac_status); }; }; then
10793 ac_cv_lib_X11_XOpenDisplay=yes
10795 echo "$as_me: failed program was:" >&5
10796 cat conftest.$ac_ext >&5
10797 ac_cv_lib_X11_XOpenDisplay=no
10799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10800 LIBS=$ac_check_lib_save_LIBS
10802 echo "$as_me:10802: result: $ac_cv_lib_X11_XOpenDisplay" >&5
10803 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
10804 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
10808 echo "$as_me:10808: checking for XCurses library" >&5
10809 echo $ECHO_N "checking for XCurses library... $ECHO_C" >&6
10810 if test "${cf_cv_lib_XCurses+set}" = set; then
10811 echo $ECHO_N "(cached) $ECHO_C" >&6
10814 LIBS="-lXCurses $LIBS"
10815 cat >conftest.$ac_ext <<_ACEOF
10816 #line 10816 "configure"
10817 #include "confdefs.h"
10819 #include <xcurses.h>
10820 char *XCursesProgramName = "test";
10830 rm -f conftest.$ac_objext conftest$ac_exeext
10831 if { (eval echo "$as_me:10831: \"$ac_link\"") >&5
10832 (eval $ac_link) 2>&5
10834 echo "$as_me:10834: \$? = $ac_status" >&5
10835 (exit $ac_status); } &&
10836 { ac_try='test -s conftest$ac_exeext'
10837 { (eval echo "$as_me:10837: \"$ac_try\"") >&5
10838 (eval $ac_try) 2>&5
10840 echo "$as_me:10840: \$? = $ac_status" >&5
10841 (exit $ac_status); }; }; then
10842 cf_cv_lib_XCurses=yes
10844 echo "$as_me: failed program was:" >&5
10845 cat conftest.$ac_ext >&5
10846 cf_cv_lib_XCurses=no
10848 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10851 echo "$as_me:10851: result: $cf_cv_lib_XCurses" >&5
10852 echo "${ECHO_T}$cf_cv_lib_XCurses" >&6
10856 if test $cf_cv_lib_XCurses = yes ; then
10857 cat >>confdefs.h <<\EOF
10861 cat >>confdefs.h <<\EOF
10865 cat >>confdefs.h <<\EOF
10866 #define HAVE_XCURSES 1
10870 { { echo "$as_me:10870: error: Cannot link with XCurses" >&5
10871 echo "$as_me: error: Cannot link with XCurses" >&2;}
10872 { (exit 1); exit 1; }; }
10878 case $cf_cv_screen in #(vi
10882 # look for curses-related libraries
10884 as_ac_Lib=`echo "ac_cv_lib_panel$cf_cv_libtype''_new_panel" | $as_tr_sh`
10885 echo "$as_me:10885: checking for new_panel in -lpanel$cf_cv_libtype" >&5
10886 echo $ECHO_N "checking for new_panel in -lpanel$cf_cv_libtype... $ECHO_C" >&6
10887 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
10888 echo $ECHO_N "(cached) $ECHO_C" >&6
10890 ac_check_lib_save_LIBS=$LIBS
10891 LIBS="-lpanel$cf_cv_libtype $LIBS"
10892 cat >conftest.$ac_ext <<_ACEOF
10893 #line 10893 "configure"
10894 #include "confdefs.h"
10896 /* Override any gcc2 internal prototype to avoid an error. */
10900 /* We use char because int might match the return type of a gcc2
10901 builtin and then its argument prototype would still apply. */
10911 rm -f conftest.$ac_objext conftest$ac_exeext
10912 if { (eval echo "$as_me:10912: \"$ac_link\"") >&5
10913 (eval $ac_link) 2>&5
10915 echo "$as_me:10915: \$? = $ac_status" >&5
10916 (exit $ac_status); } &&
10917 { ac_try='test -s conftest$ac_exeext'
10918 { (eval echo "$as_me:10918: \"$ac_try\"") >&5
10919 (eval $ac_try) 2>&5
10921 echo "$as_me:10921: \$? = $ac_status" >&5
10922 (exit $ac_status); }; }; then
10923 eval "$as_ac_Lib=yes"
10925 echo "$as_me: failed program was:" >&5
10926 cat conftest.$ac_ext >&5
10927 eval "$as_ac_Lib=no"
10929 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10930 LIBS=$ac_check_lib_save_LIBS
10932 echo "$as_me:10932: result: `eval echo '${'$as_ac_Lib'}'`" >&5
10933 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
10934 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
10935 cat >>confdefs.h <<EOF
10936 #define `echo "HAVE_LIBpanel$cf_cv_libtype" | $as_tr_cpp` 1
10939 LIBS="-lpanel$cf_cv_libtype $LIBS"
10943 as_ac_Lib=`echo "ac_cv_lib_menu$cf_cv_libtype''_menu_driver" | $as_tr_sh`
10944 echo "$as_me:10944: checking for menu_driver in -lmenu$cf_cv_libtype" >&5
10945 echo $ECHO_N "checking for menu_driver in -lmenu$cf_cv_libtype... $ECHO_C" >&6
10946 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
10947 echo $ECHO_N "(cached) $ECHO_C" >&6
10949 ac_check_lib_save_LIBS=$LIBS
10950 LIBS="-lmenu$cf_cv_libtype $LIBS"
10951 cat >conftest.$ac_ext <<_ACEOF
10952 #line 10952 "configure"
10953 #include "confdefs.h"
10955 /* Override any gcc2 internal prototype to avoid an error. */
10959 /* We use char because int might match the return type of a gcc2
10960 builtin and then its argument prototype would still apply. */
10961 char menu_driver ();
10970 rm -f conftest.$ac_objext conftest$ac_exeext
10971 if { (eval echo "$as_me:10971: \"$ac_link\"") >&5
10972 (eval $ac_link) 2>&5
10974 echo "$as_me:10974: \$? = $ac_status" >&5
10975 (exit $ac_status); } &&
10976 { ac_try='test -s conftest$ac_exeext'
10977 { (eval echo "$as_me:10977: \"$ac_try\"") >&5
10978 (eval $ac_try) 2>&5
10980 echo "$as_me:10980: \$? = $ac_status" >&5
10981 (exit $ac_status); }; }; then
10982 eval "$as_ac_Lib=yes"
10984 echo "$as_me: failed program was:" >&5
10985 cat conftest.$ac_ext >&5
10986 eval "$as_ac_Lib=no"
10988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10989 LIBS=$ac_check_lib_save_LIBS
10991 echo "$as_me:10991: result: `eval echo '${'$as_ac_Lib'}'`" >&5
10992 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
10993 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
10994 cat >>confdefs.h <<EOF
10995 #define `echo "HAVE_LIBmenu$cf_cv_libtype" | $as_tr_cpp` 1
10998 LIBS="-lmenu$cf_cv_libtype $LIBS"
11002 as_ac_Lib=`echo "ac_cv_lib_form$cf_cv_libtype''_form_driver" | $as_tr_sh`
11003 echo "$as_me:11003: checking for form_driver in -lform$cf_cv_libtype" >&5
11004 echo $ECHO_N "checking for form_driver in -lform$cf_cv_libtype... $ECHO_C" >&6
11005 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
11006 echo $ECHO_N "(cached) $ECHO_C" >&6
11008 ac_check_lib_save_LIBS=$LIBS
11009 LIBS="-lform$cf_cv_libtype $LIBS"
11010 cat >conftest.$ac_ext <<_ACEOF
11011 #line 11011 "configure"
11012 #include "confdefs.h"
11014 /* Override any gcc2 internal prototype to avoid an error. */
11018 /* We use char because int might match the return type of a gcc2
11019 builtin and then its argument prototype would still apply. */
11020 char form_driver ();
11029 rm -f conftest.$ac_objext conftest$ac_exeext
11030 if { (eval echo "$as_me:11030: \"$ac_link\"") >&5
11031 (eval $ac_link) 2>&5
11033 echo "$as_me:11033: \$? = $ac_status" >&5
11034 (exit $ac_status); } &&
11035 { ac_try='test -s conftest$ac_exeext'
11036 { (eval echo "$as_me:11036: \"$ac_try\"") >&5
11037 (eval $ac_try) 2>&5
11039 echo "$as_me:11039: \$? = $ac_status" >&5
11040 (exit $ac_status); }; }; then
11041 eval "$as_ac_Lib=yes"
11043 echo "$as_me: failed program was:" >&5
11044 cat conftest.$ac_ext >&5
11045 eval "$as_ac_Lib=no"
11047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11048 LIBS=$ac_check_lib_save_LIBS
11050 echo "$as_me:11050: result: `eval echo '${'$as_ac_Lib'}'`" >&5
11051 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
11052 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
11053 cat >>confdefs.h <<EOF
11054 #define `echo "HAVE_LIBform$cf_cv_libtype" | $as_tr_cpp` 1
11057 LIBS="-lform$cf_cv_libtype $LIBS"
11061 # look for curses-related headers
11071 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11072 echo "$as_me:11072: checking for $ac_header" >&5
11073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11075 echo $ECHO_N "(cached) $ECHO_C" >&6
11077 cat >conftest.$ac_ext <<_ACEOF
11078 #line 11078 "configure"
11079 #include "confdefs.h"
11080 #include <$ac_header>
11082 if { (eval echo "$as_me:11082: \"$ac_cpp conftest.$ac_ext\"") >&5
11083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11085 egrep -v '^ *\+' conftest.er1 >conftest.err
11087 cat conftest.err >&5
11088 echo "$as_me:11088: \$? = $ac_status" >&5
11089 (exit $ac_status); } >/dev/null; then
11090 if test -s conftest.err; then
11091 ac_cpp_err=$ac_c_preproc_warn_flag
11098 if test -z "$ac_cpp_err"; then
11099 eval "$as_ac_Header=yes"
11101 echo "$as_me: failed program was:" >&5
11102 cat conftest.$ac_ext >&5
11103 eval "$as_ac_Header=no"
11105 rm -f conftest.err conftest.$ac_ext
11107 echo "$as_me:11107: result: `eval echo '${'$as_ac_Header'}'`" >&5
11108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11110 cat >>confdefs.h <<EOF
11111 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11120 echo "$as_me:11120: checking return type of signal handlers" >&5
11121 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11122 if test "${ac_cv_type_signal+set}" = set; then
11123 echo $ECHO_N "(cached) $ECHO_C" >&6
11125 cat >conftest.$ac_ext <<_ACEOF
11126 #line 11126 "configure"
11127 #include "confdefs.h"
11128 #include <sys/types.h>
11129 #include <signal.h>
11134 extern "C" void (*signal (int, void (*)(int)))(int);
11136 void (*signal ()) ();
11147 rm -f conftest.$ac_objext
11148 if { (eval echo "$as_me:11148: \"$ac_compile\"") >&5
11149 (eval $ac_compile) 2>&5
11151 echo "$as_me:11151: \$? = $ac_status" >&5
11152 (exit $ac_status); } &&
11153 { ac_try='test -s conftest.$ac_objext'
11154 { (eval echo "$as_me:11154: \"$ac_try\"") >&5
11155 (eval $ac_try) 2>&5
11157 echo "$as_me:11157: \$? = $ac_status" >&5
11158 (exit $ac_status); }; }; then
11159 ac_cv_type_signal=void
11161 echo "$as_me: failed program was:" >&5
11162 cat conftest.$ac_ext >&5
11163 ac_cv_type_signal=int
11165 rm -f conftest.$ac_objext conftest.$ac_ext
11167 echo "$as_me:11167: result: $ac_cv_type_signal" >&5
11168 echo "${ECHO_T}$ac_cv_type_signal" >&6
11170 cat >>confdefs.h <<EOF
11171 #define RETSIGTYPE $ac_cv_type_signal
11174 echo "$as_me:11174: checking for ANSI C header files" >&5
11175 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11176 if test "${ac_cv_header_stdc+set}" = set; then
11177 echo $ECHO_N "(cached) $ECHO_C" >&6
11179 cat >conftest.$ac_ext <<_ACEOF
11180 #line 11180 "configure"
11181 #include "confdefs.h"
11182 #include <stdlib.h>
11183 #include <stdarg.h>
11184 #include <string.h>
11188 if { (eval echo "$as_me:11188: \"$ac_cpp conftest.$ac_ext\"") >&5
11189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11191 egrep -v '^ *\+' conftest.er1 >conftest.err
11193 cat conftest.err >&5
11194 echo "$as_me:11194: \$? = $ac_status" >&5
11195 (exit $ac_status); } >/dev/null; then
11196 if test -s conftest.err; then
11197 ac_cpp_err=$ac_c_preproc_warn_flag
11204 if test -z "$ac_cpp_err"; then
11205 ac_cv_header_stdc=yes
11207 echo "$as_me: failed program was:" >&5
11208 cat conftest.$ac_ext >&5
11209 ac_cv_header_stdc=no
11211 rm -f conftest.err conftest.$ac_ext
11213 if test $ac_cv_header_stdc = yes; then
11214 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11215 cat >conftest.$ac_ext <<_ACEOF
11216 #line 11216 "configure"
11217 #include "confdefs.h"
11218 #include <string.h>
11221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11222 egrep "memchr" >/dev/null 2>&1; then
11225 ac_cv_header_stdc=no
11231 if test $ac_cv_header_stdc = yes; then
11232 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11233 cat >conftest.$ac_ext <<_ACEOF
11234 #line 11234 "configure"
11235 #include "confdefs.h"
11236 #include <stdlib.h>
11239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11240 egrep "free" >/dev/null 2>&1; then
11243 ac_cv_header_stdc=no
11249 if test $ac_cv_header_stdc = yes; then
11250 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11251 if test "$cross_compiling" = yes; then
11254 cat >conftest.$ac_ext <<_ACEOF
11255 #line 11255 "configure"
11256 #include "confdefs.h"
11258 #if ((' ' & 0x0FF) == 0x020)
11259 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11260 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11262 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
11263 || ('j' <= (c) && (c) <= 'r') \
11264 || ('s' <= (c) && (c) <= 'z'))
11265 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11268 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11273 for (i = 0; i < 256; i++)
11274 if (XOR (islower (i), ISLOWER (i))
11275 || toupper (i) != TOUPPER (i))
11276 $ac_main_return(2);
11277 $ac_main_return (0);
11280 rm -f conftest$ac_exeext
11281 if { (eval echo "$as_me:11281: \"$ac_link\"") >&5
11282 (eval $ac_link) 2>&5
11284 echo "$as_me:11284: \$? = $ac_status" >&5
11285 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11286 { (eval echo "$as_me:11286: \"$ac_try\"") >&5
11287 (eval $ac_try) 2>&5
11289 echo "$as_me:11289: \$? = $ac_status" >&5
11290 (exit $ac_status); }; }; then
11293 echo "$as_me: program exited with status $ac_status" >&5
11294 echo "$as_me: failed program was:" >&5
11295 cat conftest.$ac_ext >&5
11296 ac_cv_header_stdc=no
11298 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11302 echo "$as_me:11302: result: $ac_cv_header_stdc" >&5
11303 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11304 if test $ac_cv_header_stdc = yes; then
11306 cat >>confdefs.h <<\EOF
11307 #define STDC_HEADERS 1
11312 echo "$as_me:11312: checking whether time.h and sys/time.h may both be included" >&5
11313 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11314 if test "${ac_cv_header_time+set}" = set; then
11315 echo $ECHO_N "(cached) $ECHO_C" >&6
11317 cat >conftest.$ac_ext <<_ACEOF
11318 #line 11318 "configure"
11319 #include "confdefs.h"
11320 #include <sys/types.h>
11321 #include <sys/time.h>
11327 if ((struct tm *) 0)
11333 rm -f conftest.$ac_objext
11334 if { (eval echo "$as_me:11334: \"$ac_compile\"") >&5
11335 (eval $ac_compile) 2>&5
11337 echo "$as_me:11337: \$? = $ac_status" >&5
11338 (exit $ac_status); } &&
11339 { ac_try='test -s conftest.$ac_objext'
11340 { (eval echo "$as_me:11340: \"$ac_try\"") >&5
11341 (eval $ac_try) 2>&5
11343 echo "$as_me:11343: \$? = $ac_status" >&5
11344 (exit $ac_status); }; }; then
11345 ac_cv_header_time=yes
11347 echo "$as_me: failed program was:" >&5
11348 cat conftest.$ac_ext >&5
11349 ac_cv_header_time=no
11351 rm -f conftest.$ac_objext conftest.$ac_ext
11353 echo "$as_me:11353: result: $ac_cv_header_time" >&5
11354 echo "${ECHO_T}$ac_cv_header_time" >&6
11355 if test $ac_cv_header_time = yes; then
11357 cat >>confdefs.h <<\EOF
11358 #define TIME_WITH_SYS_TIME 1
11374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11375 echo "$as_me:11375: checking for $ac_header" >&5
11376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11377 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11378 echo $ECHO_N "(cached) $ECHO_C" >&6
11380 cat >conftest.$ac_ext <<_ACEOF
11381 #line 11381 "configure"
11382 #include "confdefs.h"
11383 #include <$ac_header>
11385 if { (eval echo "$as_me:11385: \"$ac_cpp conftest.$ac_ext\"") >&5
11386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11388 egrep -v '^ *\+' conftest.er1 >conftest.err
11390 cat conftest.err >&5
11391 echo "$as_me:11391: \$? = $ac_status" >&5
11392 (exit $ac_status); } >/dev/null; then
11393 if test -s conftest.err; then
11394 ac_cpp_err=$ac_c_preproc_warn_flag
11401 if test -z "$ac_cpp_err"; then
11402 eval "$as_ac_Header=yes"
11404 echo "$as_me: failed program was:" >&5
11405 cat conftest.$ac_ext >&5
11406 eval "$as_ac_Header=no"
11408 rm -f conftest.err conftest.$ac_ext
11410 echo "$as_me:11410: result: `eval echo '${'$as_ac_Header'}'`" >&5
11411 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11413 cat >>confdefs.h <<EOF
11414 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11434 echo "$as_me:11434: checking for $ac_func" >&5
11435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11436 if eval "test \"\${$as_ac_var+set}\" = set"; then
11437 echo $ECHO_N "(cached) $ECHO_C" >&6
11439 cat >conftest.$ac_ext <<_ACEOF
11440 #line 11440 "configure"
11441 #include "confdefs.h"
11442 /* System header to define __stub macros and hopefully few prototypes,
11443 which can conflict with char $ac_func (); below. */
11444 #include <assert.h>
11445 /* Override any gcc2 internal prototype to avoid an error. */
11449 /* We use char because int might match the return type of a gcc2
11450 builtin and then its argument prototype would still apply. */
11457 /* The GNU C library defines this for functions which it implements
11458 to always fail with ENOSYS. Some functions are actually named
11459 something starting with __ and the normal name is an alias. */
11460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11470 rm -f conftest.$ac_objext conftest$ac_exeext
11471 if { (eval echo "$as_me:11471: \"$ac_link\"") >&5
11472 (eval $ac_link) 2>&5
11474 echo "$as_me:11474: \$? = $ac_status" >&5
11475 (exit $ac_status); } &&
11476 { ac_try='test -s conftest$ac_exeext'
11477 { (eval echo "$as_me:11477: \"$ac_try\"") >&5
11478 (eval $ac_try) 2>&5
11480 echo "$as_me:11480: \$? = $ac_status" >&5
11481 (exit $ac_status); }; }; then
11482 eval "$as_ac_var=yes"
11484 echo "$as_me: failed program was:" >&5
11485 cat conftest.$ac_ext >&5
11486 eval "$as_ac_var=no"
11488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11490 echo "$as_me:11490: result: `eval echo '${'$as_ac_var'}'`" >&5
11491 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11492 if test `eval echo '${'$as_ac_var'}'` = yes; then
11493 cat >>confdefs.h <<EOF
11494 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11500 echo "$as_me:11500: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
11501 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
11502 if test "${cf_cv_need_xopen_extension+set}" = set; then
11503 echo $ECHO_N "(cached) $ECHO_C" >&6
11506 cat >conftest.$ac_ext <<_ACEOF
11507 #line 11507 "configure"
11508 #include "confdefs.h"
11510 #include <stdlib.h>
11511 #include <${cf_cv_ncurses_header:-curses.h}>
11516 #if defined(NCURSES_VERSION_PATCH)
11517 if (NCURSES_VERSION_PATCH < 20100501) && (NCURSES_VERSION_PATCH >= 20100403)
11521 long x = winnstr(stdscr, "", 0);
11523 getbegyx(stdscr, y1, x1)
11528 rm -f conftest.$ac_objext conftest$ac_exeext
11529 if { (eval echo "$as_me:11529: \"$ac_link\"") >&5
11530 (eval $ac_link) 2>&5
11532 echo "$as_me:11532: \$? = $ac_status" >&5
11533 (exit $ac_status); } &&
11534 { ac_try='test -s conftest$ac_exeext'
11535 { (eval echo "$as_me:11535: \"$ac_try\"") >&5
11536 (eval $ac_try) 2>&5
11538 echo "$as_me:11538: \$? = $ac_status" >&5
11539 (exit $ac_status); }; }; then
11540 cf_cv_need_xopen_extension=no
11542 echo "$as_me: failed program was:" >&5
11543 cat conftest.$ac_ext >&5
11544 cat >conftest.$ac_ext <<_ACEOF
11545 #line 11545 "configure"
11546 #include "confdefs.h"
11548 #define _XOPEN_SOURCE_EXTENDED
11549 #include <stdlib.h>
11550 #include <${cf_cv_ncurses_header:-curses.h}>
11555 #ifdef NCURSES_VERSION
11557 int check2 = curs_set((int)sizeof(check));
11559 long x = winnstr(stdscr, "", 0);
11561 getbegyx(stdscr, y1, x1)
11566 rm -f conftest.$ac_objext conftest$ac_exeext
11567 if { (eval echo "$as_me:11567: \"$ac_link\"") >&5
11568 (eval $ac_link) 2>&5
11570 echo "$as_me:11570: \$? = $ac_status" >&5
11571 (exit $ac_status); } &&
11572 { ac_try='test -s conftest$ac_exeext'
11573 { (eval echo "$as_me:11573: \"$ac_try\"") >&5
11574 (eval $ac_try) 2>&5
11576 echo "$as_me:11576: \$? = $ac_status" >&5
11577 (exit $ac_status); }; }; then
11578 cf_cv_need_xopen_extension=yes
11580 echo "$as_me: failed program was:" >&5
11581 cat conftest.$ac_ext >&5
11582 cf_cv_need_xopen_extension=unknown
11584 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11586 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11588 echo "$as_me:11588: result: $cf_cv_need_xopen_extension" >&5
11589 echo "${ECHO_T}$cf_cv_need_xopen_extension" >&6
11590 test $cf_cv_need_xopen_extension = yes && CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
11592 echo "$as_me:11592: checking for term.h" >&5
11593 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
11594 if test "${cf_cv_term_header+set}" = set; then
11595 echo $ECHO_N "(cached) $ECHO_C" >&6
11598 # If we found <ncurses/curses.h>, look for <ncurses/term.h>, but always look
11599 # for <term.h> if we do not find the variant.
11601 `echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%/.*%/%'`term.h \
11604 cat >conftest.$ac_ext <<_ACEOF
11605 #line 11605 "configure"
11606 #include "confdefs.h"
11608 #include <${cf_cv_ncurses_header:-curses.h}>
11609 #include <${cf_header}>
11618 rm -f conftest.$ac_objext
11619 if { (eval echo "$as_me:11619: \"$ac_compile\"") >&5
11620 (eval $ac_compile) 2>&5
11622 echo "$as_me:11622: \$? = $ac_status" >&5
11623 (exit $ac_status); } &&
11624 { ac_try='test -s conftest.$ac_objext'
11625 { (eval echo "$as_me:11625: \"$ac_try\"") >&5
11626 (eval $ac_try) 2>&5
11628 echo "$as_me:11628: \$? = $ac_status" >&5
11629 (exit $ac_status); }; }; then
11630 cf_cv_term_header=$cf_header
11633 echo "$as_me: failed program was:" >&5
11634 cat conftest.$ac_ext >&5
11635 cf_cv_term_header=no
11637 rm -f conftest.$ac_objext conftest.$ac_ext
11640 case $cf_cv_term_header in #(vi
11642 # If curses is ncurses, some packagers still mess it up by trying to make
11643 # us use GNU termcap. This handles the most common case.
11644 for cf_header in ncurses/term.h ncursesw/term.h
11646 cat >conftest.$ac_ext <<_ACEOF
11647 #line 11647 "configure"
11648 #include "confdefs.h"
11650 #include <${cf_cv_ncurses_header:-curses.h}>
11651 #ifdef NCURSES_VERSION
11652 #include <${cf_header}>
11664 rm -f conftest.$ac_objext
11665 if { (eval echo "$as_me:11665: \"$ac_compile\"") >&5
11666 (eval $ac_compile) 2>&5
11668 echo "$as_me:11668: \$? = $ac_status" >&5
11669 (exit $ac_status); } &&
11670 { ac_try='test -s conftest.$ac_objext'
11671 { (eval echo "$as_me:11671: \"$ac_try\"") >&5
11672 (eval $ac_try) 2>&5
11674 echo "$as_me:11674: \$? = $ac_status" >&5
11675 (exit $ac_status); }; }; then
11676 cf_cv_term_header=$cf_header
11679 echo "$as_me: failed program was:" >&5
11680 cat conftest.$ac_ext >&5
11681 cf_cv_term_header=no
11683 rm -f conftest.$ac_objext conftest.$ac_ext
11689 echo "$as_me:11689: result: $cf_cv_term_header" >&5
11690 echo "${ECHO_T}$cf_cv_term_header" >&6
11692 case $cf_cv_term_header in #(vi
11694 cat >>confdefs.h <<\EOF
11695 #define HAVE_TERM_H 1
11699 ncurses/term.h) #(vi
11700 cat >>confdefs.h <<\EOF
11701 #define HAVE_NCURSES_TERM_H 1
11706 cat >>confdefs.h <<\EOF
11707 #define HAVE_NCURSESW_TERM_H 1
11738 use_default_colors \
11747 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
11749 echo "$as_me:11749: checking for ${cf_func}" >&5
11750 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
11752 echo "${as_me:-configure}:11752: testing ${cf_func} ..." 1>&5
11754 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
11755 echo $ECHO_N "(cached) $ECHO_C" >&6
11758 eval cf_result='$ac_cv_func_'$cf_func
11759 if test ".$cf_result" != ".no"; then
11760 cat >conftest.$ac_ext <<_ACEOF
11761 #line 11761 "configure"
11762 #include "confdefs.h"
11764 #ifdef HAVE_XCURSES
11765 #include <xcurses.h>
11766 char * XCursesProgramName = "test";
11768 #include <${cf_cv_ncurses_header:-curses.h}>
11769 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
11770 #include <ncursesw/term.h>
11771 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
11772 #include <ncurses/term.h>
11773 #elif defined(HAVE_TERM_H)
11783 long foo = (long)(&${cf_func});
11784 ${cf_cv_main_return:-return}(foo == 0);
11791 rm -f conftest.$ac_objext conftest$ac_exeext
11792 if { (eval echo "$as_me:11792: \"$ac_link\"") >&5
11793 (eval $ac_link) 2>&5
11795 echo "$as_me:11795: \$? = $ac_status" >&5
11796 (exit $ac_status); } &&
11797 { ac_try='test -s conftest$ac_exeext'
11798 { (eval echo "$as_me:11798: \"$ac_try\"") >&5
11799 (eval $ac_try) 2>&5
11801 echo "$as_me:11801: \$? = $ac_status" >&5
11802 (exit $ac_status); }; }; then
11805 echo "$as_me: failed program was:" >&5
11806 cat conftest.$ac_ext >&5
11809 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11811 eval 'cf_cv_func_'$cf_func'=$cf_result'
11815 # use the computed/retrieved cache-value:
11816 eval 'cf_result=$cf_cv_func_'$cf_func
11817 echo "$as_me:11817: result: $cf_result" >&5
11818 echo "${ECHO_T}$cf_result" >&6
11819 if test $cf_result != no; then
11820 cat >>confdefs.h <<EOF
11821 #define HAVE_${cf_tr_func} 1
11827 echo "$as_me:11827: checking for ncurses extended functions" >&5
11828 echo $ECHO_N "checking for ncurses extended functions... $ECHO_C" >&6
11829 if test "${cf_cv_ncurses_ext_funcs+set}" = set; then
11830 echo $ECHO_N "(cached) $ECHO_C" >&6
11833 cat >conftest.$ac_ext <<_ACEOF
11834 #line 11834 "configure"
11835 #include "confdefs.h"
11837 #include <${cf_cv_ncurses_header:-curses.h}>
11842 int x = NCURSES_EXT_FUNCS
11848 rm -f conftest.$ac_objext
11849 if { (eval echo "$as_me:11849: \"$ac_compile\"") >&5
11850 (eval $ac_compile) 2>&5
11852 echo "$as_me:11852: \$? = $ac_status" >&5
11853 (exit $ac_status); } &&
11854 { ac_try='test -s conftest.$ac_objext'
11855 { (eval echo "$as_me:11855: \"$ac_try\"") >&5
11856 (eval $ac_try) 2>&5
11858 echo "$as_me:11858: \$? = $ac_status" >&5
11859 (exit $ac_status); }; }; then
11860 cf_cv_ncurses_ext_funcs=defined
11862 echo "$as_me: failed program was:" >&5
11863 cat conftest.$ac_ext >&5
11865 cat >conftest.$ac_ext <<_ACEOF
11866 #line 11866 "configure"
11867 #include "confdefs.h"
11869 #include <${cf_cv_ncurses_header:-curses.h}>
11874 (void) assume_default_colors (0, 0);
11875 (void) curses_version ();
11876 (void) define_key (0, 0);
11877 (void) is_term_resized (0, 0);
11878 (void) key_defined (0);
11879 (void) keybound (0, 0);
11880 (void) keyok (0, 0);
11881 (void) resize_term (0, 0);
11882 (void) resizeterm (0, 0);
11883 (void) use_default_colors ();
11884 (void) use_extended_names (0);
11885 (void) wresize (0, 0, 0);
11890 rm -f conftest.$ac_objext conftest$ac_exeext
11891 if { (eval echo "$as_me:11891: \"$ac_link\"") >&5
11892 (eval $ac_link) 2>&5
11894 echo "$as_me:11894: \$? = $ac_status" >&5
11895 (exit $ac_status); } &&
11896 { ac_try='test -s conftest$ac_exeext'
11897 { (eval echo "$as_me:11897: \"$ac_try\"") >&5
11898 (eval $ac_try) 2>&5
11900 echo "$as_me:11900: \$? = $ac_status" >&5
11901 (exit $ac_status); }; }; then
11902 cf_cv_ncurses_ext_funcs=yes
11904 echo "$as_me: failed program was:" >&5
11905 cat conftest.$ac_ext >&5
11906 cf_cv_ncurses_ext_funcs=no
11908 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11911 rm -f conftest.$ac_objext conftest.$ac_ext
11914 echo "$as_me:11914: result: $cf_cv_ncurses_ext_funcs" >&5
11915 echo "${ECHO_T}$cf_cv_ncurses_ext_funcs" >&6
11916 test "$cf_cv_ncurses_ext_funcs" == yes && cat >>confdefs.h <<\EOF
11917 #define NCURSES_EXT_FUNCS 1
11920 echo "$as_me:11920: checking for wide-character functions" >&5
11921 echo $ECHO_N "checking for wide-character functions... $ECHO_C" >&6
11922 if test "${cf_cv_widechar_funcs+set}" = set; then
11923 echo $ECHO_N "(cached) $ECHO_C" >&6
11926 cat >conftest.$ac_ext <<_ACEOF
11927 #line 11927 "configure"
11928 #include "confdefs.h"
11930 #include <${cf_cv_ncurses_header:-curses.h}>
11935 static wchar_t src_wchar[2];
11936 static cchar_t dst_cchar;
11937 setcchar(&dst_cchar, src_wchar, A_NORMAL, 0, (void *) 0);
11943 rm -f conftest.$ac_objext conftest$ac_exeext
11944 if { (eval echo "$as_me:11944: \"$ac_link\"") >&5
11945 (eval $ac_link) 2>&5
11947 echo "$as_me:11947: \$? = $ac_status" >&5
11948 (exit $ac_status); } &&
11949 { ac_try='test -s conftest$ac_exeext'
11950 { (eval echo "$as_me:11950: \"$ac_try\"") >&5
11951 (eval $ac_try) 2>&5
11953 echo "$as_me:11953: \$? = $ac_status" >&5
11954 (exit $ac_status); }; }; then
11955 cf_cv_widechar_funcs=yes
11957 echo "$as_me: failed program was:" >&5
11958 cat conftest.$ac_ext >&5
11959 cf_cv_widechar_funcs=no
11961 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11964 echo "$as_me:11964: result: $cf_cv_widechar_funcs" >&5
11965 echo "${ECHO_T}$cf_cv_widechar_funcs" >&6
11966 if test "$cf_cv_widechar_funcs" != no ; then
11967 cat >>confdefs.h <<\EOF
11968 #define USE_WIDEC_SUPPORT 1
11972 cat >>confdefs.h <<\EOF
11973 #define USE_WIDEC_SUPPORT 0
11978 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
11980 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
11981 inttypes.h stdint.h unistd.h
11983 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11984 echo "$as_me:11984: checking for $ac_header" >&5
11985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11987 echo $ECHO_N "(cached) $ECHO_C" >&6
11989 cat >conftest.$ac_ext <<_ACEOF
11990 #line 11990 "configure"
11991 #include "confdefs.h"
11992 $ac_includes_default
11993 #include <$ac_header>
11995 rm -f conftest.$ac_objext
11996 if { (eval echo "$as_me:11996: \"$ac_compile\"") >&5
11997 (eval $ac_compile) 2>&5
11999 echo "$as_me:11999: \$? = $ac_status" >&5
12000 (exit $ac_status); } &&
12001 { ac_try='test -s conftest.$ac_objext'
12002 { (eval echo "$as_me:12002: \"$ac_try\"") >&5
12003 (eval $ac_try) 2>&5
12005 echo "$as_me:12005: \$? = $ac_status" >&5
12006 (exit $ac_status); }; }; then
12007 eval "$as_ac_Header=yes"
12009 echo "$as_me: failed program was:" >&5
12010 cat conftest.$ac_ext >&5
12011 eval "$as_ac_Header=no"
12013 rm -f conftest.$ac_objext conftest.$ac_ext
12015 echo "$as_me:12015: result: `eval echo '${'$as_ac_Header'}'`" >&5
12016 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12018 cat >>confdefs.h <<EOF
12019 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12025 echo "$as_me:12025: checking for pid_t" >&5
12026 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12027 if test "${ac_cv_type_pid_t+set}" = set; then
12028 echo $ECHO_N "(cached) $ECHO_C" >&6
12030 cat >conftest.$ac_ext <<_ACEOF
12031 #line 12031 "configure"
12032 #include "confdefs.h"
12033 $ac_includes_default
12039 if (sizeof (pid_t))
12045 rm -f conftest.$ac_objext
12046 if { (eval echo "$as_me:12046: \"$ac_compile\"") >&5
12047 (eval $ac_compile) 2>&5
12049 echo "$as_me:12049: \$? = $ac_status" >&5
12050 (exit $ac_status); } &&
12051 { ac_try='test -s conftest.$ac_objext'
12052 { (eval echo "$as_me:12052: \"$ac_try\"") >&5
12053 (eval $ac_try) 2>&5
12055 echo "$as_me:12055: \$? = $ac_status" >&5
12056 (exit $ac_status); }; }; then
12057 ac_cv_type_pid_t=yes
12059 echo "$as_me: failed program was:" >&5
12060 cat conftest.$ac_ext >&5
12061 ac_cv_type_pid_t=no
12063 rm -f conftest.$ac_objext conftest.$ac_ext
12065 echo "$as_me:12065: result: $ac_cv_type_pid_t" >&5
12066 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12067 if test $ac_cv_type_pid_t = yes; then
12071 cat >>confdefs.h <<EOF
12077 for ac_header in unistd.h vfork.h
12079 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12080 echo "$as_me:12080: checking for $ac_header" >&5
12081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12083 echo $ECHO_N "(cached) $ECHO_C" >&6
12085 cat >conftest.$ac_ext <<_ACEOF
12086 #line 12086 "configure"
12087 #include "confdefs.h"
12088 #include <$ac_header>
12090 if { (eval echo "$as_me:12090: \"$ac_cpp conftest.$ac_ext\"") >&5
12091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12093 egrep -v '^ *\+' conftest.er1 >conftest.err
12095 cat conftest.err >&5
12096 echo "$as_me:12096: \$? = $ac_status" >&5
12097 (exit $ac_status); } >/dev/null; then
12098 if test -s conftest.err; then
12099 ac_cpp_err=$ac_c_preproc_warn_flag
12106 if test -z "$ac_cpp_err"; then
12107 eval "$as_ac_Header=yes"
12109 echo "$as_me: failed program was:" >&5
12110 cat conftest.$ac_ext >&5
12111 eval "$as_ac_Header=no"
12113 rm -f conftest.err conftest.$ac_ext
12115 echo "$as_me:12115: result: `eval echo '${'$as_ac_Header'}'`" >&5
12116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12118 cat >>confdefs.h <<EOF
12119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12125 for ac_func in fork vfork
12127 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12128 echo "$as_me:12128: checking for $ac_func" >&5
12129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12130 if eval "test \"\${$as_ac_var+set}\" = set"; then
12131 echo $ECHO_N "(cached) $ECHO_C" >&6
12133 cat >conftest.$ac_ext <<_ACEOF
12134 #line 12134 "configure"
12135 #include "confdefs.h"
12136 /* System header to define __stub macros and hopefully few prototypes,
12137 which can conflict with char $ac_func (); below. */
12138 #include <assert.h>
12139 /* Override any gcc2 internal prototype to avoid an error. */
12143 /* We use char because int might match the return type of a gcc2
12144 builtin and then its argument prototype would still apply. */
12151 /* The GNU C library defines this for functions which it implements
12152 to always fail with ENOSYS. Some functions are actually named
12153 something starting with __ and the normal name is an alias. */
12154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12164 rm -f conftest.$ac_objext conftest$ac_exeext
12165 if { (eval echo "$as_me:12165: \"$ac_link\"") >&5
12166 (eval $ac_link) 2>&5
12168 echo "$as_me:12168: \$? = $ac_status" >&5
12169 (exit $ac_status); } &&
12170 { ac_try='test -s conftest$ac_exeext'
12171 { (eval echo "$as_me:12171: \"$ac_try\"") >&5
12172 (eval $ac_try) 2>&5
12174 echo "$as_me:12174: \$? = $ac_status" >&5
12175 (exit $ac_status); }; }; then
12176 eval "$as_ac_var=yes"
12178 echo "$as_me: failed program was:" >&5
12179 cat conftest.$ac_ext >&5
12180 eval "$as_ac_var=no"
12182 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12184 echo "$as_me:12184: result: `eval echo '${'$as_ac_var'}'`" >&5
12185 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12186 if test `eval echo '${'$as_ac_var'}'` = yes; then
12187 cat >>confdefs.h <<EOF
12188 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12194 ac_cv_func_fork_works=$ac_cv_func_fork
12195 if test "x$ac_cv_func_fork" = xyes; then
12196 echo "$as_me:12196: checking for working fork" >&5
12197 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
12198 if test "${ac_cv_func_fork_works+set}" = set; then
12199 echo $ECHO_N "(cached) $ECHO_C" >&6
12201 if test "$cross_compiling" = yes; then
12202 ac_cv_func_fork_works=cross
12204 cat >conftest.$ac_ext <<_ACEOF
12205 /* By Rüdiger Kuhlmann. */
12206 #include <sys/types.h>
12208 # include <unistd.h>
12210 /* Some systems only have a dummy stub for fork() */
12214 $ac_main_return (1);
12215 $ac_main_return (0);
12218 rm -f conftest$ac_exeext
12219 if { (eval echo "$as_me:12219: \"$ac_link\"") >&5
12220 (eval $ac_link) 2>&5
12222 echo "$as_me:12222: \$? = $ac_status" >&5
12223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12224 { (eval echo "$as_me:12224: \"$ac_try\"") >&5
12225 (eval $ac_try) 2>&5
12227 echo "$as_me:12227: \$? = $ac_status" >&5
12228 (exit $ac_status); }; }; then
12229 ac_cv_func_fork_works=yes
12231 echo "$as_me: program exited with status $ac_status" >&5
12232 echo "$as_me: failed program was:" >&5
12233 cat conftest.$ac_ext >&5
12234 ac_cv_func_fork_works=no
12236 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12239 echo "$as_me:12239: result: $ac_cv_func_fork_works" >&5
12240 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
12243 if test "x$ac_cv_func_fork_works" = xcross; then
12245 *-*-amigaos* | *-*-msdosdjgpp*)
12246 # Override, as these systems have only a dummy fork() stub
12247 ac_cv_func_fork_works=no
12250 ac_cv_func_fork_works=yes
12253 { echo "$as_me:12253: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
12254 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
12256 ac_cv_func_vfork_works=$ac_cv_func_vfork
12257 if test "x$ac_cv_func_vfork" = xyes; then
12258 echo "$as_me:12258: checking for working vfork" >&5
12259 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
12260 if test "${ac_cv_func_vfork_works+set}" = set; then
12261 echo $ECHO_N "(cached) $ECHO_C" >&6
12263 if test "$cross_compiling" = yes; then
12264 ac_cv_func_vfork_works=cross
12266 cat >conftest.$ac_ext <<_ACEOF
12267 #line 12267 "configure"
12268 #include "confdefs.h"
12269 /* Thanks to Paul Eggert for this test. */
12271 #include <sys/types.h>
12272 #include <sys/stat.h>
12274 # include <unistd.h>
12277 # include <vfork.h>
12279 /* On some sparc systems, changes by the child to local and incoming
12280 argument registers are propagated back to the parent. The compiler
12281 is told about this with #include <vfork.h>, but some compilers
12282 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12283 static variable whose address is put into a register that is
12284 clobbered by the vfork. */
12287 sparc_address_test (int arg)
12289 sparc_address_test (arg) int arg;
12292 static pid_t child;
12310 pid_t parent = getpid ();
12313 sparc_address_test ();
12318 /* Here is another test for sparc vfork register problems. This
12319 test uses lots of local variables, at least as many local
12320 variables as main has allocated so far including compiler
12321 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12322 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12323 reuse the register of parent for one of the local variables,
12324 since it will think that parent can't possibly be used any more
12325 in this routine. Assigning to the local variable will thus
12326 munge parent in the parent process. */
12328 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12329 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12330 /* Convince the compiler that p..p7 are live; otherwise, it might
12331 use the same hardware register for all 8 local variables. */
12332 if (p != p1 || p != p2 || p != p3 || p != p4
12333 || p != p5 || p != p6 || p != p7)
12336 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12337 from child file descriptors. If the child closes a descriptor
12338 before it execs or exits, this munges the parent's descriptor
12339 as well. Test for this by closing stdout in the child. */
12340 _exit(close(fileno(stdout)) != 0);
12345 while (wait(&status) != child)
12348 /* Was there some problem with vforking? */
12351 /* Did the child fail? (This shouldn't happen.) */
12354 /* Did the vfork/compiler bug occur? */
12355 || parent != getpid()
12357 /* Did the file descriptor bug occur? */
12358 || fstat(fileno(stdout), &st) != 0
12363 rm -f conftest$ac_exeext
12364 if { (eval echo "$as_me:12364: \"$ac_link\"") >&5
12365 (eval $ac_link) 2>&5
12367 echo "$as_me:12367: \$? = $ac_status" >&5
12368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12369 { (eval echo "$as_me:12369: \"$ac_try\"") >&5
12370 (eval $ac_try) 2>&5
12372 echo "$as_me:12372: \$? = $ac_status" >&5
12373 (exit $ac_status); }; }; then
12374 ac_cv_func_vfork_works=yes
12376 echo "$as_me: program exited with status $ac_status" >&5
12377 echo "$as_me: failed program was:" >&5
12378 cat conftest.$ac_ext >&5
12379 ac_cv_func_vfork_works=no
12381 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12384 echo "$as_me:12384: result: $ac_cv_func_vfork_works" >&5
12385 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
12388 if test "x$ac_cv_func_fork_works" = xcross; then
12389 ac_cv_func_vfork_works=ac_cv_func_vfork
12390 { echo "$as_me:12390: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
12391 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
12394 if test "x$ac_cv_func_vfork_works" = xyes; then
12396 cat >>confdefs.h <<\EOF
12397 #define HAVE_WORKING_VFORK 1
12402 cat >>confdefs.h <<\EOF
12407 if test "x$ac_cv_func_fork_works" = xyes; then
12409 cat >>confdefs.h <<\EOF
12410 #define HAVE_WORKING_FORK 1
12415 echo "$as_me:12415: checking if sys/time.h works with sys/select.h" >&5
12416 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
12417 if test "${cf_cv_sys_time_select+set}" = set; then
12418 echo $ECHO_N "(cached) $ECHO_C" >&6
12421 cat >conftest.$ac_ext <<_ACEOF
12422 #line 12422 "configure"
12423 #include "confdefs.h"
12425 #include <sys/types.h>
12426 #ifdef HAVE_SYS_TIME_H
12427 #include <sys/time.h>
12429 #ifdef HAVE_SYS_SELECT_H
12430 #include <sys/select.h>
12441 rm -f conftest.$ac_objext
12442 if { (eval echo "$as_me:12442: \"$ac_compile\"") >&5
12443 (eval $ac_compile) 2>&5
12445 echo "$as_me:12445: \$? = $ac_status" >&5
12446 (exit $ac_status); } &&
12447 { ac_try='test -s conftest.$ac_objext'
12448 { (eval echo "$as_me:12448: \"$ac_try\"") >&5
12449 (eval $ac_try) 2>&5
12451 echo "$as_me:12451: \$? = $ac_status" >&5
12452 (exit $ac_status); }; }; then
12453 cf_cv_sys_time_select=yes
12455 echo "$as_me: failed program was:" >&5
12456 cat conftest.$ac_ext >&5
12457 cf_cv_sys_time_select=no
12459 rm -f conftest.$ac_objext conftest.$ac_ext
12463 echo "$as_me:12463: result: $cf_cv_sys_time_select" >&5
12464 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
12465 test "$cf_cv_sys_time_select" = yes && cat >>confdefs.h <<\EOF
12466 #define HAVE_SYS_TIME_SELECT 1
12469 echo "$as_me:12469: checking for function curses_version" >&5
12470 echo $ECHO_N "checking for function curses_version... $ECHO_C" >&6
12471 if test "${cf_cv_func_curses_version+set}" = set; then
12472 echo $ECHO_N "(cached) $ECHO_C" >&6
12475 if test "$cross_compiling" = yes; then
12476 cf_cv_func_curses_version=unknown
12478 cat >conftest.$ac_ext <<_ACEOF
12479 #line 12479 "configure"
12480 #include "confdefs.h"
12482 #include <${cf_cv_ncurses_header:-curses.h}>
12486 sprintf(temp, "%s\n", curses_version());
12487 ${cf_cv_main_return:-return}(0);
12491 rm -f conftest$ac_exeext
12492 if { (eval echo "$as_me:12492: \"$ac_link\"") >&5
12493 (eval $ac_link) 2>&5
12495 echo "$as_me:12495: \$? = $ac_status" >&5
12496 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12497 { (eval echo "$as_me:12497: \"$ac_try\"") >&5
12498 (eval $ac_try) 2>&5
12500 echo "$as_me:12500: \$? = $ac_status" >&5
12501 (exit $ac_status); }; }; then
12502 cf_cv_func_curses_version=yes
12505 echo "$as_me: program exited with status $ac_status" >&5
12506 echo "$as_me: failed program was:" >&5
12507 cat conftest.$ac_ext >&5
12508 cf_cv_func_curses_version=no
12511 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12515 echo "$as_me:12515: result: $cf_cv_func_curses_version" >&5
12516 echo "${ECHO_T}$cf_cv_func_curses_version" >&6
12517 test "$cf_cv_func_curses_version" = yes && cat >>confdefs.h <<\EOF
12518 #define HAVE_CURSES_VERSION 1
12521 echo "$as_me:12521: checking for ncurses wrap-prefix" >&5
12522 echo $ECHO_N "checking for ncurses wrap-prefix... $ECHO_C" >&6
12524 # Check whether --with-ncurses-wrap-prefix or --without-ncurses-wrap-prefix was given.
12525 if test "${with_ncurses_wrap_prefix+set}" = set; then
12526 withval="$with_ncurses_wrap_prefix"
12527 NCURSES_WRAP_PREFIX=$withval
12529 NCURSES_WRAP_PREFIX=_nc_
12531 echo "$as_me:12531: result: $NCURSES_WRAP_PREFIX" >&5
12532 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
12534 echo "$as_me:12534: checking for alternate character set array" >&5
12535 echo $ECHO_N "checking for alternate character set array... $ECHO_C" >&6
12536 if test "${cf_cv_curses_acs_map+set}" = set; then
12537 echo $ECHO_N "(cached) $ECHO_C" >&6
12540 cf_cv_curses_acs_map=unknown
12541 for name in acs_map _acs_map __acs_map ${NCURSES_WRAP_PREFIX}acs_map
12543 cat >conftest.$ac_ext <<_ACEOF
12544 #line 12544 "configure"
12545 #include "confdefs.h"
12547 #include <${cf_cv_ncurses_header:-curses.h}>
12553 $name['k'] = ACS_PLUS
12559 rm -f conftest.$ac_objext conftest$ac_exeext
12560 if { (eval echo "$as_me:12560: \"$ac_link\"") >&5
12561 (eval $ac_link) 2>&5
12563 echo "$as_me:12563: \$? = $ac_status" >&5
12564 (exit $ac_status); } &&
12565 { ac_try='test -s conftest$ac_exeext'
12566 { (eval echo "$as_me:12566: \"$ac_try\"") >&5
12567 (eval $ac_try) 2>&5
12569 echo "$as_me:12569: \$? = $ac_status" >&5
12570 (exit $ac_status); }; }; then
12571 cf_cv_curses_acs_map=$name; break
12573 echo "$as_me: failed program was:" >&5
12574 cat conftest.$ac_ext >&5
12576 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12580 echo "$as_me:12580: result: $cf_cv_curses_acs_map" >&5
12581 echo "${ECHO_T}$cf_cv_curses_acs_map" >&6
12583 test "$cf_cv_curses_acs_map" != unknown && cat >>confdefs.h <<EOF
12584 #define CURSES_ACS_ARRAY $cf_cv_curses_acs_map
12587 echo "$as_me:12587: checking for wide alternate character set array" >&5
12588 echo $ECHO_N "checking for wide alternate character set array... $ECHO_C" >&6
12589 if test "${cf_cv_curses_wacs_map+set}" = set; then
12590 echo $ECHO_N "(cached) $ECHO_C" >&6
12593 cf_cv_curses_wacs_map=unknown
12594 for name in wacs_map _wacs_map __wacs_map _nc_wacs
12596 cat >conftest.$ac_ext <<_ACEOF
12597 #line 12597 "configure"
12598 #include "confdefs.h"
12600 #ifndef _XOPEN_SOURCE_EXTENDED
12601 #define _XOPEN_SOURCE_EXTENDED
12603 #include <${cf_cv_ncurses_header:-curses.h}>
12607 $name['k'] = *WACS_PLUS
12612 rm -f conftest.$ac_objext conftest$ac_exeext
12613 if { (eval echo "$as_me:12613: \"$ac_link\"") >&5
12614 (eval $ac_link) 2>&5
12616 echo "$as_me:12616: \$? = $ac_status" >&5
12617 (exit $ac_status); } &&
12618 { ac_try='test -s conftest$ac_exeext'
12619 { (eval echo "$as_me:12619: \"$ac_try\"") >&5
12620 (eval $ac_try) 2>&5
12622 echo "$as_me:12622: \$? = $ac_status" >&5
12623 (exit $ac_status); }; }; then
12624 cf_cv_curses_wacs_map=$name
12627 echo "$as_me: failed program was:" >&5
12628 cat conftest.$ac_ext >&5
12630 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12633 echo "$as_me:12633: result: $cf_cv_curses_wacs_map" >&5
12634 echo "${ECHO_T}$cf_cv_curses_wacs_map" >&6
12636 echo "$as_me:12636: checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}" >&5
12637 echo $ECHO_N "checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
12638 cat >conftest.$ac_ext <<_ACEOF
12639 #line 12639 "configure"
12640 #include "confdefs.h"
12642 #ifndef _XOPEN_SOURCE_EXTENDED
12643 #define _XOPEN_SOURCE_EXTENDED
12645 #include <${cf_cv_ncurses_header:-curses.h}>
12656 rm -f conftest.$ac_objext
12657 if { (eval echo "$as_me:12657: \"$ac_compile\"") >&5
12658 (eval $ac_compile) 2>&5
12660 echo "$as_me:12660: \$? = $ac_status" >&5
12661 (exit $ac_status); } &&
12662 { ac_try='test -s conftest.$ac_objext'
12663 { (eval echo "$as_me:12663: \"$ac_try\"") >&5
12664 (eval $ac_try) 2>&5
12666 echo "$as_me:12666: \$? = $ac_status" >&5
12667 (exit $ac_status); }; }; then
12670 echo "$as_me: failed program was:" >&5
12671 cat conftest.$ac_ext >&5
12674 rm -f conftest.$ac_objext conftest.$ac_ext
12675 echo "$as_me:12675: result: $cf_result" >&5
12676 echo "${ECHO_T}$cf_result" >&6
12677 if test $cf_result = yes ; then
12679 cf_result=`echo "have_type_attr_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
12681 cat >>confdefs.h <<EOF
12682 #define $cf_result 1
12686 cat >>confdefs.h <<EOF
12687 #define attr_t long
12692 # This is needed on Tru64 5.0 to declare mbstate_t
12693 echo "$as_me:12693: checking if we must include wchar.h to declare mbstate_t" >&5
12694 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
12695 if test "${cf_cv_mbstate_t+set}" = set; then
12696 echo $ECHO_N "(cached) $ECHO_C" >&6
12699 cat >conftest.$ac_ext <<_ACEOF
12700 #line 12700 "configure"
12701 #include "confdefs.h"
12703 #include <stdlib.h>
12704 #include <stdarg.h>
12706 #ifdef HAVE_LIBUTF8_H
12707 #include <libutf8.h>
12717 rm -f conftest.$ac_objext
12718 if { (eval echo "$as_me:12718: \"$ac_compile\"") >&5
12719 (eval $ac_compile) 2>&5
12721 echo "$as_me:12721: \$? = $ac_status" >&5
12722 (exit $ac_status); } &&
12723 { ac_try='test -s conftest.$ac_objext'
12724 { (eval echo "$as_me:12724: \"$ac_try\"") >&5
12725 (eval $ac_try) 2>&5
12727 echo "$as_me:12727: \$? = $ac_status" >&5
12728 (exit $ac_status); }; }; then
12731 echo "$as_me: failed program was:" >&5
12732 cat conftest.$ac_ext >&5
12733 cat >conftest.$ac_ext <<_ACEOF
12734 #line 12734 "configure"
12735 #include "confdefs.h"
12737 #include <stdlib.h>
12738 #include <stdarg.h>
12741 #ifdef HAVE_LIBUTF8_H
12742 #include <libutf8.h>
12752 rm -f conftest.$ac_objext
12753 if { (eval echo "$as_me:12753: \"$ac_compile\"") >&5
12754 (eval $ac_compile) 2>&5
12756 echo "$as_me:12756: \$? = $ac_status" >&5
12757 (exit $ac_status); } &&
12758 { ac_try='test -s conftest.$ac_objext'
12759 { (eval echo "$as_me:12759: \"$ac_try\"") >&5
12760 (eval $ac_try) 2>&5
12762 echo "$as_me:12762: \$? = $ac_status" >&5
12763 (exit $ac_status); }; }; then
12764 cf_cv_mbstate_t=yes
12766 echo "$as_me: failed program was:" >&5
12767 cat conftest.$ac_ext >&5
12768 cf_cv_mbstate_t=unknown
12770 rm -f conftest.$ac_objext conftest.$ac_ext
12772 rm -f conftest.$ac_objext conftest.$ac_ext
12774 echo "$as_me:12774: result: $cf_cv_mbstate_t" >&5
12775 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
12777 if test "$cf_cv_mbstate_t" = yes ; then
12778 cat >>confdefs.h <<\EOF
12779 #define NEED_WCHAR_H 1
12785 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
12786 if test "$cf_cv_mbstate_t" = unknown ; then
12787 NCURSES_MBSTATE_T=1
12790 # if we find mbstate_t in either place, use substitution to provide a fallback.
12791 if test "$cf_cv_mbstate_t" != unknown ; then
12792 NCURSES_OK_MBSTATE_T=1
12795 # This is needed on Tru64 5.0 to declare wchar_t
12796 echo "$as_me:12796: checking if we must include wchar.h to declare wchar_t" >&5
12797 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
12798 if test "${cf_cv_wchar_t+set}" = set; then
12799 echo $ECHO_N "(cached) $ECHO_C" >&6
12802 cat >conftest.$ac_ext <<_ACEOF
12803 #line 12803 "configure"
12804 #include "confdefs.h"
12806 #include <stdlib.h>
12807 #include <stdarg.h>
12809 #ifdef HAVE_LIBUTF8_H
12810 #include <libutf8.h>
12820 rm -f conftest.$ac_objext
12821 if { (eval echo "$as_me:12821: \"$ac_compile\"") >&5
12822 (eval $ac_compile) 2>&5
12824 echo "$as_me:12824: \$? = $ac_status" >&5
12825 (exit $ac_status); } &&
12826 { ac_try='test -s conftest.$ac_objext'
12827 { (eval echo "$as_me:12827: \"$ac_try\"") >&5
12828 (eval $ac_try) 2>&5
12830 echo "$as_me:12830: \$? = $ac_status" >&5
12831 (exit $ac_status); }; }; then
12834 echo "$as_me: failed program was:" >&5
12835 cat conftest.$ac_ext >&5
12836 cat >conftest.$ac_ext <<_ACEOF
12837 #line 12837 "configure"
12838 #include "confdefs.h"
12840 #include <stdlib.h>
12841 #include <stdarg.h>
12844 #ifdef HAVE_LIBUTF8_H
12845 #include <libutf8.h>
12855 rm -f conftest.$ac_objext
12856 if { (eval echo "$as_me:12856: \"$ac_compile\"") >&5
12857 (eval $ac_compile) 2>&5
12859 echo "$as_me:12859: \$? = $ac_status" >&5
12860 (exit $ac_status); } &&
12861 { ac_try='test -s conftest.$ac_objext'
12862 { (eval echo "$as_me:12862: \"$ac_try\"") >&5
12863 (eval $ac_try) 2>&5
12865 echo "$as_me:12865: \$? = $ac_status" >&5
12866 (exit $ac_status); }; }; then
12869 echo "$as_me: failed program was:" >&5
12870 cat conftest.$ac_ext >&5
12871 cf_cv_wchar_t=unknown
12873 rm -f conftest.$ac_objext conftest.$ac_ext
12875 rm -f conftest.$ac_objext conftest.$ac_ext
12877 echo "$as_me:12877: result: $cf_cv_wchar_t" >&5
12878 echo "${ECHO_T}$cf_cv_wchar_t" >&6
12880 if test "$cf_cv_wchar_t" = yes ; then
12881 cat >>confdefs.h <<\EOF
12882 #define NEED_WCHAR_H 1
12888 # if we do not find wchar_t in either place, use substitution to provide a fallback.
12889 if test "$cf_cv_wchar_t" = unknown ; then
12893 # if we find wchar_t in either place, use substitution to provide a fallback.
12894 if test "$cf_cv_wchar_t" != unknown ; then
12895 NCURSES_OK_WCHAR_T=1
12898 # This is needed on Tru64 5.0 to declare wint_t
12899 echo "$as_me:12899: checking if we must include wchar.h to declare wint_t" >&5
12900 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
12901 if test "${cf_cv_wint_t+set}" = set; then
12902 echo $ECHO_N "(cached) $ECHO_C" >&6
12905 cat >conftest.$ac_ext <<_ACEOF
12906 #line 12906 "configure"
12907 #include "confdefs.h"
12909 #include <stdlib.h>
12910 #include <stdarg.h>
12912 #ifdef HAVE_LIBUTF8_H
12913 #include <libutf8.h>
12923 rm -f conftest.$ac_objext
12924 if { (eval echo "$as_me:12924: \"$ac_compile\"") >&5
12925 (eval $ac_compile) 2>&5
12927 echo "$as_me:12927: \$? = $ac_status" >&5
12928 (exit $ac_status); } &&
12929 { ac_try='test -s conftest.$ac_objext'
12930 { (eval echo "$as_me:12930: \"$ac_try\"") >&5
12931 (eval $ac_try) 2>&5
12933 echo "$as_me:12933: \$? = $ac_status" >&5
12934 (exit $ac_status); }; }; then
12937 echo "$as_me: failed program was:" >&5
12938 cat conftest.$ac_ext >&5
12939 cat >conftest.$ac_ext <<_ACEOF
12940 #line 12940 "configure"
12941 #include "confdefs.h"
12943 #include <stdlib.h>
12944 #include <stdarg.h>
12947 #ifdef HAVE_LIBUTF8_H
12948 #include <libutf8.h>
12958 rm -f conftest.$ac_objext
12959 if { (eval echo "$as_me:12959: \"$ac_compile\"") >&5
12960 (eval $ac_compile) 2>&5
12962 echo "$as_me:12962: \$? = $ac_status" >&5
12963 (exit $ac_status); } &&
12964 { ac_try='test -s conftest.$ac_objext'
12965 { (eval echo "$as_me:12965: \"$ac_try\"") >&5
12966 (eval $ac_try) 2>&5
12968 echo "$as_me:12968: \$? = $ac_status" >&5
12969 (exit $ac_status); }; }; then
12972 echo "$as_me: failed program was:" >&5
12973 cat conftest.$ac_ext >&5
12974 cf_cv_wint_t=unknown
12976 rm -f conftest.$ac_objext conftest.$ac_ext
12978 rm -f conftest.$ac_objext conftest.$ac_ext
12980 echo "$as_me:12980: result: $cf_cv_wint_t" >&5
12981 echo "${ECHO_T}$cf_cv_wint_t" >&6
12983 if test "$cf_cv_wint_t" = yes ; then
12984 cat >>confdefs.h <<\EOF
12985 #define NEED_WCHAR_H 1
12991 # if we do not find wint_t in either place, use substitution to provide a fallback.
12992 if test "$cf_cv_wint_t" = unknown ; then
12996 # if we find wint_t in either place, use substitution to provide a fallback.
12997 if test "$cf_cv_wint_t" != unknown ; then
12998 NCURSES_OK_WINT_T=1
13001 if test "$NCURSES_OK_MBSTATE_T" = 0 ; then
13003 echo "$as_me:13003: checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}" >&5
13004 echo $ECHO_N "checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
13005 cat >conftest.$ac_ext <<_ACEOF
13006 #line 13006 "configure"
13007 #include "confdefs.h"
13009 #ifndef _XOPEN_SOURCE_EXTENDED
13010 #define _XOPEN_SOURCE_EXTENDED
13012 #include <${cf_cv_ncurses_header:-curses.h}>
13023 rm -f conftest.$ac_objext
13024 if { (eval echo "$as_me:13024: \"$ac_compile\"") >&5
13025 (eval $ac_compile) 2>&5
13027 echo "$as_me:13027: \$? = $ac_status" >&5
13028 (exit $ac_status); } &&
13029 { ac_try='test -s conftest.$ac_objext'
13030 { (eval echo "$as_me:13030: \"$ac_try\"") >&5
13031 (eval $ac_try) 2>&5
13033 echo "$as_me:13033: \$? = $ac_status" >&5
13034 (exit $ac_status); }; }; then
13037 echo "$as_me: failed program was:" >&5
13038 cat conftest.$ac_ext >&5
13041 rm -f conftest.$ac_objext conftest.$ac_ext
13042 echo "$as_me:13042: result: $cf_result" >&5
13043 echo "${ECHO_T}$cf_result" >&6
13044 if test $cf_result = yes ; then
13046 cf_result=`echo "have_type_mbstate_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13048 cat >>confdefs.h <<EOF
13049 #define $cf_result 1
13053 cat >>confdefs.h <<EOF
13054 #define mbstate_t long
13061 if test "$NCURSES_OK_WCHAR_T" = 0 ; then
13063 echo "$as_me:13063: checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}" >&5
13064 echo $ECHO_N "checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
13065 cat >conftest.$ac_ext <<_ACEOF
13066 #line 13066 "configure"
13067 #include "confdefs.h"
13069 #ifndef _XOPEN_SOURCE_EXTENDED
13070 #define _XOPEN_SOURCE_EXTENDED
13072 #include <${cf_cv_ncurses_header:-curses.h}>
13083 rm -f conftest.$ac_objext
13084 if { (eval echo "$as_me:13084: \"$ac_compile\"") >&5
13085 (eval $ac_compile) 2>&5
13087 echo "$as_me:13087: \$? = $ac_status" >&5
13088 (exit $ac_status); } &&
13089 { ac_try='test -s conftest.$ac_objext'
13090 { (eval echo "$as_me:13090: \"$ac_try\"") >&5
13091 (eval $ac_try) 2>&5
13093 echo "$as_me:13093: \$? = $ac_status" >&5
13094 (exit $ac_status); }; }; then
13097 echo "$as_me: failed program was:" >&5
13098 cat conftest.$ac_ext >&5
13101 rm -f conftest.$ac_objext conftest.$ac_ext
13102 echo "$as_me:13102: result: $cf_result" >&5
13103 echo "${ECHO_T}$cf_result" >&6
13104 if test $cf_result = yes ; then
13106 cf_result=`echo "have_type_wchar_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13108 cat >>confdefs.h <<EOF
13109 #define $cf_result 1
13113 cat >>confdefs.h <<EOF
13114 #define wchar_t long
13121 if test "$NCURSES_OK_WINT_T" = 0 ; then
13123 echo "$as_me:13123: checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}" >&5
13124 echo $ECHO_N "checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
13125 cat >conftest.$ac_ext <<_ACEOF
13126 #line 13126 "configure"
13127 #include "confdefs.h"
13129 #ifndef _XOPEN_SOURCE_EXTENDED
13130 #define _XOPEN_SOURCE_EXTENDED
13132 #include <${cf_cv_ncurses_header:-curses.h}>
13143 rm -f conftest.$ac_objext
13144 if { (eval echo "$as_me:13144: \"$ac_compile\"") >&5
13145 (eval $ac_compile) 2>&5
13147 echo "$as_me:13147: \$? = $ac_status" >&5
13148 (exit $ac_status); } &&
13149 { ac_try='test -s conftest.$ac_objext'
13150 { (eval echo "$as_me:13150: \"$ac_try\"") >&5
13151 (eval $ac_try) 2>&5
13153 echo "$as_me:13153: \$? = $ac_status" >&5
13154 (exit $ac_status); }; }; then
13157 echo "$as_me: failed program was:" >&5
13158 cat conftest.$ac_ext >&5
13161 rm -f conftest.$ac_objext conftest.$ac_ext
13162 echo "$as_me:13162: result: $cf_result" >&5
13163 echo "${ECHO_T}$cf_result" >&6
13164 if test $cf_result = yes ; then
13166 cf_result=`echo "have_type_wint_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13168 cat >>confdefs.h <<EOF
13169 #define $cf_result 1
13173 cat >>confdefs.h <<EOF
13174 #define wint_t long
13181 echo "$as_me:13181: checking for data boolnames declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
13182 echo $ECHO_N "checking for data boolnames declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
13183 cat >conftest.$ac_ext <<_ACEOF
13184 #line 13184 "configure"
13185 #include "confdefs.h"
13187 #ifdef HAVE_XCURSES
13188 #include <xcurses.h>
13189 char * XCursesProgramName = "test";
13191 #include <${cf_cv_ncurses_header:-curses.h}>
13192 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
13193 #include <ncursesw/term.h>
13194 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
13195 #include <ncurses/term.h>
13196 #elif defined(HAVE_TERM_H)
13205 void *foo = &(boolnames)
13211 rm -f conftest.$ac_objext
13212 if { (eval echo "$as_me:13212: \"$ac_compile\"") >&5
13213 (eval $ac_compile) 2>&5
13215 echo "$as_me:13215: \$? = $ac_status" >&5
13216 (exit $ac_status); } &&
13217 { ac_try='test -s conftest.$ac_objext'
13218 { (eval echo "$as_me:13218: \"$ac_try\"") >&5
13219 (eval $ac_try) 2>&5
13221 echo "$as_me:13221: \$? = $ac_status" >&5
13222 (exit $ac_status); }; }; then
13225 echo "$as_me: failed program was:" >&5
13226 cat conftest.$ac_ext >&5
13229 rm -f conftest.$ac_objext conftest.$ac_ext
13230 echo "$as_me:13230: result: $cf_result" >&5
13231 echo "${ECHO_T}$cf_result" >&6
13232 if test $cf_result = yes ; then
13234 cf_result=`echo "have_curses_data_boolnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13236 cat >>confdefs.h <<EOF
13237 #define $cf_result 1
13241 echo "$as_me:13241: checking for data boolnames in library" >&5
13242 echo $ECHO_N "checking for data boolnames in library... $ECHO_C" >&6
13243 cat >conftest.$ac_ext <<_ACEOF
13244 #line 13244 "configure"
13245 #include "confdefs.h"
13247 #ifdef HAVE_XCURSES
13248 #include <xcurses.h>
13249 char * XCursesProgramName = "test";
13251 #include <${cf_cv_ncurses_header:-curses.h}>
13252 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
13253 #include <ncursesw/term.h>
13254 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
13255 #include <ncurses/term.h>
13256 #elif defined(HAVE_TERM_H)
13261 extern char boolnames;
13267 void *foo = &(boolnames);
13268 ${cf_cv_main_return:-return}(foo == 0);
13275 rm -f conftest.$ac_objext conftest$ac_exeext
13276 if { (eval echo "$as_me:13276: \"$ac_link\"") >&5
13277 (eval $ac_link) 2>&5
13279 echo "$as_me:13279: \$? = $ac_status" >&5
13280 (exit $ac_status); } &&
13281 { ac_try='test -s conftest$ac_exeext'
13282 { (eval echo "$as_me:13282: \"$ac_try\"") >&5
13283 (eval $ac_try) 2>&5
13285 echo "$as_me:13285: \$? = $ac_status" >&5
13286 (exit $ac_status); }; }; then
13289 echo "$as_me: failed program was:" >&5
13290 cat conftest.$ac_ext >&5
13293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13294 echo "$as_me:13294: result: $cf_result" >&5
13295 echo "${ECHO_T}$cf_result" >&6
13296 if test $cf_result = yes ; then
13298 cf_result=`echo "decl_curses_data_boolnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13300 cat >>confdefs.h <<EOF
13301 #define $cf_result 1
13307 echo "$as_me:13307: checking for data boolfnames declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
13308 echo $ECHO_N "checking for data boolfnames declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
13309 cat >conftest.$ac_ext <<_ACEOF
13310 #line 13310 "configure"
13311 #include "confdefs.h"
13313 #ifdef HAVE_XCURSES
13314 #include <xcurses.h>
13315 char * XCursesProgramName = "test";
13317 #include <${cf_cv_ncurses_header:-curses.h}>
13318 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
13319 #include <ncursesw/term.h>
13320 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
13321 #include <ncurses/term.h>
13322 #elif defined(HAVE_TERM_H)
13331 void *foo = &(boolfnames)
13337 rm -f conftest.$ac_objext
13338 if { (eval echo "$as_me:13338: \"$ac_compile\"") >&5
13339 (eval $ac_compile) 2>&5
13341 echo "$as_me:13341: \$? = $ac_status" >&5
13342 (exit $ac_status); } &&
13343 { ac_try='test -s conftest.$ac_objext'
13344 { (eval echo "$as_me:13344: \"$ac_try\"") >&5
13345 (eval $ac_try) 2>&5
13347 echo "$as_me:13347: \$? = $ac_status" >&5
13348 (exit $ac_status); }; }; then
13351 echo "$as_me: failed program was:" >&5
13352 cat conftest.$ac_ext >&5
13355 rm -f conftest.$ac_objext conftest.$ac_ext
13356 echo "$as_me:13356: result: $cf_result" >&5
13357 echo "${ECHO_T}$cf_result" >&6
13358 if test $cf_result = yes ; then
13360 cf_result=`echo "have_curses_data_boolfnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13362 cat >>confdefs.h <<EOF
13363 #define $cf_result 1
13367 echo "$as_me:13367: checking for data boolfnames in library" >&5
13368 echo $ECHO_N "checking for data boolfnames in library... $ECHO_C" >&6
13369 cat >conftest.$ac_ext <<_ACEOF
13370 #line 13370 "configure"
13371 #include "confdefs.h"
13373 #ifdef HAVE_XCURSES
13374 #include <xcurses.h>
13375 char * XCursesProgramName = "test";
13377 #include <${cf_cv_ncurses_header:-curses.h}>
13378 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
13379 #include <ncursesw/term.h>
13380 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
13381 #include <ncurses/term.h>
13382 #elif defined(HAVE_TERM_H)
13387 extern char boolfnames;
13393 void *foo = &(boolfnames);
13394 ${cf_cv_main_return:-return}(foo == 0);
13401 rm -f conftest.$ac_objext conftest$ac_exeext
13402 if { (eval echo "$as_me:13402: \"$ac_link\"") >&5
13403 (eval $ac_link) 2>&5
13405 echo "$as_me:13405: \$? = $ac_status" >&5
13406 (exit $ac_status); } &&
13407 { ac_try='test -s conftest$ac_exeext'
13408 { (eval echo "$as_me:13408: \"$ac_try\"") >&5
13409 (eval $ac_try) 2>&5
13411 echo "$as_me:13411: \$? = $ac_status" >&5
13412 (exit $ac_status); }; }; then
13415 echo "$as_me: failed program was:" >&5
13416 cat conftest.$ac_ext >&5
13419 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13420 echo "$as_me:13420: result: $cf_result" >&5
13421 echo "${ECHO_T}$cf_result" >&6
13422 if test $cf_result = yes ; then
13424 cf_result=`echo "decl_curses_data_boolfnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13426 cat >>confdefs.h <<EOF
13427 #define $cf_result 1
13436 ac_config_files="$ac_config_files Makefile"
13437 ac_config_commands="$ac_config_commands default"
13438 cat >confcache <<\_ACEOF
13439 # This file is a shell script that caches the results of configure
13440 # tests run on this system so they can be shared between configure
13441 # scripts and configure runs, see configure's option --config-cache.
13442 # It is not useful on other systems. If it contains results you don't
13443 # want to keep, you may remove or edit it.
13445 # config.status only pays attention to the cache file if you give it
13446 # the --recheck option to rerun configure.
13448 # `ac_cv_env_foo' variables (set or unset) will be overriden when
13449 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13450 # following values.
13454 # The following way of writing the cache mishandles newlines in values,
13455 # but we know of no workaround that is simple, portable, and efficient.
13456 # So, don't put newlines in cache variables' values.
13457 # Ultrix sh set writes to stderr and can't be redirected directly,
13458 # and sets the high bit in the cache file unless we assign to the vars.
13461 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13463 # `set' does not quote correctly, so add quotes (double-quote
13464 # substitution turns \\\\ into \\, and sed turns \\ into \).
13467 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13470 # `set' quotes correctly as required by POSIX, so do not add quotes.
13472 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13479 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13481 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13483 if cmp -s $cache_file confcache; then :; else
13484 if test -w $cache_file; then
13485 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13486 cat confcache >$cache_file
13488 echo "not updating unwritable cache $cache_file"
13493 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13494 # Let make expand exec_prefix.
13495 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13497 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13498 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13499 # trailing colons and then remove the whole line if VPATH becomes empty
13500 # (actually we leave an empty line to preserve line numbers).
13501 if test "x$srcdir" = x.; then
13502 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13503 s/:*\$(srcdir):*/:/;
13504 s/:*\${srcdir}:*/:/;
13506 s/^\([^=]*=[ ]*\):*/\1/;
13512 DEFS=-DHAVE_CONFIG_H
13514 : ${CONFIG_STATUS=./config.status}
13515 ac_clean_files_save=$ac_clean_files
13516 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13517 { echo "$as_me:13517: creating $CONFIG_STATUS" >&5
13518 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13519 cat >$CONFIG_STATUS <<_ACEOF
13521 # Generated automatically by configure.
13522 # Run this file to recreate the current configuration.
13523 # Compiler output produced by configure, useful for debugging
13524 # configure, is in config.log if it exists.
13527 SHELL=\${CONFIG_SHELL-$SHELL}
13528 ac_cs_invocation="\$0 \$@"
13532 cat >>$CONFIG_STATUS <<\_ACEOF
13533 # Be Bourne compatible
13534 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13537 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13541 # Name of the executable.
13542 as_me=`echo "$0" |sed 's,.*[\\/],,'`
13544 if expr a : '\(a\)' >/dev/null 2>&1; then
13550 rm -f conf$$ conf$$.exe conf$$.file
13552 if ln -s conf$$.file conf$$ 2>/dev/null; then
13553 # We could just check for DJGPP; but this test a) works b) is more generic
13554 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13555 if test -f conf$$.exe; then
13556 # Don't use ln at all; we don't have any links
13561 elif ln conf$$.file conf$$ 2>/dev/null; then
13566 rm -f conf$$ conf$$.exe conf$$.file
13568 as_executable_p="test -f"
13570 # Support unset when possible.
13571 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
13578 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
13579 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
13580 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
13581 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
13582 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
13583 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
13584 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
13585 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
13588 # We need space, tab and new line, in precisely that order.
13594 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
13600 # Files that config.status was made for.
13601 if test -n "$ac_config_files"; then
13602 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13605 if test -n "$ac_config_headers"; then
13606 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13609 if test -n "$ac_config_links"; then
13610 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13613 if test -n "$ac_config_commands"; then
13614 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13617 cat >>$CONFIG_STATUS <<\EOF
13620 \`$as_me' instantiates files from templates according to the
13621 current configuration.
13623 Usage: $0 [OPTIONS] [FILE]...
13625 -h, --help print this help, then exit
13626 -V, --version print version number, then exit
13627 -d, --debug don't remove temporary files
13628 --recheck update $as_me by reconfiguring in the same conditions
13629 --file=FILE[:TEMPLATE]
13630 instantiate the configuration file FILE
13631 --header=FILE[:TEMPLATE]
13632 instantiate the configuration header FILE
13634 Configuration files:
13637 Configuration headers:
13640 Configuration commands:
13643 Report bugs to <dickey@invisible-island.net>."
13646 cat >>$CONFIG_STATUS <<EOF
13649 configured by $0, generated by GNU Autoconf 2.52.20101001,
13650 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13652 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
13653 Free Software Foundation, Inc.
13654 This config.status script is free software; the Free Software Foundation
13655 gives unlimited permission to copy, distribute and modify it."
13660 cat >>$CONFIG_STATUS <<\EOF
13661 # If no file are specified by the user, then we need to provide default
13662 # value. By we need to know if files were specified by the user.
13668 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13669 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13671 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
13675 *) # This is not an option, so the user has probably given explicit
13677 ac_need_defaults=false;;
13681 # Handling of the options.
13683 cat >>$CONFIG_STATUS <<EOF
13684 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13685 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
13686 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
13688 cat >>$CONFIG_STATUS <<\EOF
13689 --version | --vers* | -V )
13690 echo "$ac_cs_version"; exit 0 ;;
13692 # Conflict between --help and --header
13693 { { echo "$as_me:13693: error: ambiguous option: $1
13694 Try \`$0 --help' for more information." >&5
13695 echo "$as_me: error: ambiguous option: $1
13696 Try \`$0 --help' for more information." >&2;}
13697 { (exit 1); exit 1; }; };;
13698 --help | --hel | -h )
13699 echo "$ac_cs_usage"; exit 0 ;;
13700 --debug | --d* | -d )
13702 --file | --fil | --fi | --f )
13704 CONFIG_FILES="$CONFIG_FILES $1"
13705 ac_need_defaults=false;;
13706 --header | --heade | --head | --hea )
13708 CONFIG_HEADERS="$CONFIG_HEADERS $1"
13709 ac_need_defaults=false;;
13711 # This is an error.
13712 -*) { { echo "$as_me:13712: error: unrecognized option: $1
13713 Try \`$0 --help' for more information." >&5
13714 echo "$as_me: error: unrecognized option: $1
13715 Try \`$0 --help' for more information." >&2;}
13716 { (exit 1); exit 1; }; } ;;
13718 *) ac_config_targets="$ac_config_targets $1" ;;
13727 ## ----------------------- ##
13728 ## Running config.status. ##
13729 ## ----------------------- ##
13731 This file was extended by $as_me 2.52.20101001, executed with
13732 CONFIG_FILES = $CONFIG_FILES
13733 CONFIG_HEADERS = $CONFIG_HEADERS
13734 CONFIG_LINKS = $CONFIG_LINKS
13735 CONFIG_COMMANDS = $CONFIG_COMMANDS
13736 > $ac_cs_invocation
13737 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13742 cat >>$CONFIG_STATUS <<EOF
13744 # INIT-COMMANDS section.
13752 cat >>$CONFIG_STATUS <<\EOF
13753 for ac_config_target in $ac_config_targets
13755 case "$ac_config_target" in
13756 # Handling of arguments.
13757 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13758 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13759 "ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ncurses_cfg.h:ncurses_tst.hin" ;;
13760 *) { { echo "$as_me:13760: error: invalid argument: $ac_config_target" >&5
13761 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13762 { (exit 1); exit 1; }; };;
13766 # If the user did not use the arguments to specify the items to instantiate,
13767 # then the envvar interface is used. Set only those that are not.
13768 # We use the long form for the default assignment because of an extremely
13769 # bizarre bug on SunOS 4.1.3.
13770 if $ac_need_defaults; then
13771 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13772 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13773 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13776 # Create a temporary directory, and hook for its removal unless debugging.
13779 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13780 trap '{ (exit 1); exit 1; }' 1 2 13 15
13783 # Create a (secure) tmp directory for tmp files.
13786 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
13787 test -n "$tmp" && test -d "$tmp"
13790 tmp=$TMPDIR/cs$$-$RANDOM
13791 (umask 077 && mkdir $tmp)
13794 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
13795 { (exit 1); exit 1; }
13800 cat >>$CONFIG_STATUS <<EOF
13803 # CONFIG_FILES section.
13806 # No need to generate the scripts if there are no CONFIG_FILES.
13807 # This happens for instance when ./config.status config.h
13808 if test -n "\$CONFIG_FILES"; then
13809 # Protect against being on the right side of a sed subst in config.status.
13810 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13811 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13812 s,@SHELL@,$SHELL,;t t
13813 s,@exec_prefix@,$exec_prefix,;t t
13814 s,@prefix@,$prefix,;t t
13815 s,@program_transform_name@,$program_transform_name,;t t
13816 s,@bindir@,$bindir,;t t
13817 s,@sbindir@,$sbindir,;t t
13818 s,@libexecdir@,$libexecdir,;t t
13819 s,@datadir@,$datadir,;t t
13820 s,@sysconfdir@,$sysconfdir,;t t
13821 s,@sharedstatedir@,$sharedstatedir,;t t
13822 s,@localstatedir@,$localstatedir,;t t
13823 s,@libdir@,$libdir,;t t
13824 s,@includedir@,$includedir,;t t
13825 s,@oldincludedir@,$oldincludedir,;t t
13826 s,@infodir@,$infodir,;t t
13827 s,@mandir@,$mandir,;t t
13828 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13829 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13830 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13831 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13832 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13833 s,@build_alias@,$build_alias,;t t
13834 s,@host_alias@,$host_alias,;t t
13835 s,@target_alias@,$target_alias,;t t
13836 s,@ECHO_C@,$ECHO_C,;t t
13837 s,@ECHO_N@,$ECHO_N,;t t
13838 s,@ECHO_T@,$ECHO_T,;t t
13839 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13840 s,@DEFS@,$DEFS,;t t
13841 s,@LIBS@,$LIBS,;t t
13842 s,@build@,$build,;t t
13843 s,@build_cpu@,$build_cpu,;t t
13844 s,@build_vendor@,$build_vendor,;t t
13845 s,@build_os@,$build_os,;t t
13846 s,@host@,$host,;t t
13847 s,@host_cpu@,$host_cpu,;t t
13848 s,@host_vendor@,$host_vendor,;t t
13849 s,@host_os@,$host_os,;t t
13850 s,@SET_MAKE@,$SET_MAKE,;t t
13852 s,@CFLAGS@,$CFLAGS,;t t
13853 s,@LDFLAGS@,$LDFLAGS,;t t
13854 s,@CPPFLAGS@,$CPPFLAGS,;t t
13855 s,@ac_ct_CC@,$ac_ct_CC,;t t
13856 s,@EXEEXT@,$EXEEXT,;t t
13857 s,@OBJEXT@,$OBJEXT,;t t
13860 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13861 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13862 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13863 s,@LINT@,$LINT,;t t
13864 s,@LINT_OPTS@,$LINT_OPTS,;t t
13865 s,@CTAGS@,$CTAGS,;t t
13866 s,@ETAGS@,$ETAGS,;t t
13867 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
13868 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
13869 s,@MATH_LIB@,$MATH_LIB,;t t
13870 s,@CC_G_OPT@,$CC_G_OPT,;t t
13871 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
13872 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
13873 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
13874 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
13876 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
13877 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
13878 s,@LD_MODEL@,$LD_MODEL,;t t
13879 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
13880 s,@LIBTOOL@,$LIBTOOL,;t t
13881 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
13882 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
13883 s,@LIB_LINK@,$LIB_LINK,;t t
13884 s,@LINK_TESTS@,$LINK_TESTS,;t t
13885 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
13886 s,@PTHREAD@,$PTHREAD,;t t
13887 s,@TEST_ARGS@,$TEST_ARGS,;t t
13888 s,@TEST_DEPS@,$TEST_DEPS,;t t
13889 s,@TEST_LIBS@,$TEST_LIBS,;t t
13890 s,@TINFO_ARGS@,$TINFO_ARGS,;t t
13891 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
13892 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
13893 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
13894 s,@ECHO_LT@,$ECHO_LT,;t t
13895 s,@ECHO_LD@,$ECHO_LD,;t t
13896 s,@RULE_CC@,$RULE_CC,;t t
13897 s,@SHOW_CC@,$SHOW_CC,;t t
13898 s,@ECHO_CC@,$ECHO_CC,;t t
13899 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
13900 s,@NCURSES_CONFIG@,$NCURSES_CONFIG,;t t
13901 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
13902 s,@X_CFLAGS@,$X_CFLAGS,;t t
13903 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
13904 s,@X_LIBS@,$X_LIBS,;t t
13905 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
13906 s,@XCURSES_CONFIG@,$XCURSES_CONFIG,;t t
13907 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
13912 cat >>$CONFIG_STATUS <<\EOF
13913 # Split the substitutions into bite-sized pieces for seds with
13914 # small command number limits, like on Digital OSF/1 and HP-UX.
13915 ac_max_sed_lines=48
13916 ac_sed_frag=1 # Number of current file.
13917 ac_beg=1 # First line for current file.
13918 ac_end=$ac_max_sed_lines # Line after last line for current file.
13921 while $ac_more_lines; do
13922 if test $ac_beg -gt 1; then
13923 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13925 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13927 if test ! -s $tmp/subs.frag; then
13928 ac_more_lines=false
13930 # The purpose of the label and of the branching condition is to
13931 # speed up the sed processing (if there are no `@' at all, there
13932 # is no need to browse any of the substitutions).
13933 # These are the two extra sed commands mentioned above.
13935 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13936 if test -z "$ac_sed_cmds"; then
13937 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13939 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13941 ac_sed_frag=`expr $ac_sed_frag + 1`
13943 ac_end=`expr $ac_end + $ac_max_sed_lines`
13946 if test -z "$ac_sed_cmds"; then
13949 fi # test -n "$CONFIG_FILES"
13952 cat >>$CONFIG_STATUS <<\EOF
13953 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13954 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13956 - | *:- | *:-:* ) # input from stdin
13958 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13959 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13960 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13961 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13962 * ) ac_file_in=$ac_file.in ;;
13965 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13966 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13967 X"$ac_file" : 'X\(//\)[^/]' \| \
13968 X"$ac_file" : 'X\(//\)$' \| \
13969 X"$ac_file" : 'X\(/\)' \| \
13970 . : '\(.\)' 2>/dev/null ||
13972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13973 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13974 /^X\(\/\/\)$/{ s//\1/; q; }
13975 /^X\(\/\).*/{ s//\1/; q; }
13977 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13978 { case "$ac_dir" in
13979 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13983 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13984 case $as_mkdir_dir in
13985 # Skip DOS drivespec
13986 ?:) as_incr_dir=$as_mkdir_dir ;;
13988 as_incr_dir=$as_incr_dir/$as_mkdir_dir
13989 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
13994 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
13995 # A "../" for each directory in $ac_dir_suffix.
13996 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
13998 ac_dir_suffix= ac_dots=
14003 if test -z "$ac_dots"; then
14006 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
14008 [\\/]* | ?:[\\/]* )
14009 ac_srcdir=$srcdir$ac_dir_suffix;
14010 ac_top_srcdir=$srcdir ;;
14011 *) # Relative path.
14012 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
14013 ac_top_srcdir=$ac_dots$srcdir ;;
14017 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14018 *) ac_INSTALL=$ac_dots$INSTALL ;;
14021 if test x"$ac_file" != x-; then
14022 { echo "$as_me:14022: creating $ac_file" >&5
14023 echo "$as_me: creating $ac_file" >&6;}
14026 # Let's still pretend it is `configure' which instantiates (i.e., don't
14027 # use $as_me), people would be surprised to read:
14028 # /* config.h. Generated automatically by config.status. */
14029 configure_input="Generated automatically from `echo $ac_file_in |
14030 sed 's,.*/,,'` by configure."
14032 # First look for the input files in the build tree, otherwise in the
14034 ac_file_inputs=`IFS=:
14035 for f in $ac_file_in; do
14037 -) echo $tmp/stdin ;;
14039 # Absolute (can't be DOS-style, as IFS=:)
14040 test -f "$f" || { { echo "$as_me:14040: error: cannot find input file: $f" >&5
14041 echo "$as_me: error: cannot find input file: $f" >&2;}
14042 { (exit 1); exit 1; }; }
14045 if test -f "$f"; then
14048 elif test -f "$srcdir/$f"; then
14053 { { echo "$as_me:14053: error: cannot find input file: $f" >&5
14054 echo "$as_me: error: cannot find input file: $f" >&2;}
14055 { (exit 1); exit 1; }; }
14058 done` || { (exit 1); exit 1; }
14060 cat >>$CONFIG_STATUS <<EOF
14064 cat >>$CONFIG_STATUS <<\EOF
14066 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14067 s,@configure_input@,$configure_input,;t t
14068 s,@srcdir@,$ac_srcdir,;t t
14069 s,@top_srcdir@,$ac_top_srcdir,;t t
14070 s,@INSTALL@,$ac_INSTALL,;t t
14071 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14073 if test x"$ac_file" != x-; then
14074 mv $tmp/out $ac_file
14082 cat >>$CONFIG_STATUS <<\EOF
14085 # CONFIG_HEADER section.
14088 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14089 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14091 # ac_d sets the value in "#define NAME VALUE" lines.
14092 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14093 ac_dB='[ ].*$,\1#\2'
14096 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
14097 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14098 ac_iB='\([ ]\),\1#\2define\3'
14101 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14102 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14103 ac_uB='$,\1#\2define\3'
14107 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14108 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14110 - | *:- | *:-:* ) # input from stdin
14112 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14113 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14114 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14115 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14116 * ) ac_file_in=$ac_file.in ;;
14119 test x"$ac_file" != x- && { echo "$as_me:14119: creating $ac_file" >&5
14120 echo "$as_me: creating $ac_file" >&6;}
14122 # First look for the input files in the build tree, otherwise in the
14124 ac_file_inputs=`IFS=:
14125 for f in $ac_file_in; do
14127 -) echo $tmp/stdin ;;
14129 # Absolute (can't be DOS-style, as IFS=:)
14130 test -f "$f" || { { echo "$as_me:14130: error: cannot find input file: $f" >&5
14131 echo "$as_me: error: cannot find input file: $f" >&2;}
14132 { (exit 1); exit 1; }; }
14135 if test -f "$f"; then
14138 elif test -f "$srcdir/$f"; then
14143 { { echo "$as_me:14143: error: cannot find input file: $f" >&5
14144 echo "$as_me: error: cannot find input file: $f" >&2;}
14145 { (exit 1); exit 1; }; }
14148 done` || { (exit 1); exit 1; }
14149 # Remove the trailing spaces.
14150 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14154 # Transform confdefs.h into a list of #define's. We won't use it as a sed
14155 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
14156 # be either 'cat' or 'sort'.
14157 cat confdefs.h | uniq >conftest.vals
14159 # Break up conftest.vals because some shells have a limit on
14160 # the size of here documents, and old seds have small limits too.
14162 rm -f conftest.tail
14163 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
14164 while grep . conftest.vals >/dev/null
14166 # Write chunks of a limited-size here document to conftest.frag.
14167 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
14168 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
14169 echo 'CEOF' >> $CONFIG_STATUS
14170 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
14171 rm -f conftest.vals
14172 mv conftest.tail conftest.vals
14174 rm -f conftest.vals
14176 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
14178 echo ' cat >> conftest.edit <<CEOF
14179 /@DEFS@/r conftest.frag
14182 sed -f conftest.edit $tmp/in > $tmp/out
14184 mv $tmp/out $tmp/in
14185 rm -f conftest.edit conftest.frag
14186 ' >> $CONFIG_STATUS
14188 cat >>$CONFIG_STATUS <<\EOF
14189 # Let's still pretend it is `configure' which instantiates (i.e., don't
14190 # use $as_me), people would be surprised to read:
14191 # /* config.h. Generated automatically by config.status. */
14192 if test x"$ac_file" = x-; then
14193 echo "/* Generated automatically by configure. */" >$tmp/config.h
14195 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
14197 cat $tmp/in >>$tmp/config.h
14199 if test x"$ac_file" != x-; then
14200 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
14201 { echo "$as_me:14201: $ac_file is unchanged" >&5
14202 echo "$as_me: $ac_file is unchanged" >&6;}
14204 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14205 X"$ac_file" : 'X\(//\)[^/]' \| \
14206 X"$ac_file" : 'X\(//\)$' \| \
14207 X"$ac_file" : 'X\(/\)' \| \
14208 . : '\(.\)' 2>/dev/null ||
14210 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14211 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14212 /^X\(\/\/\)$/{ s//\1/; q; }
14213 /^X\(\/\).*/{ s//\1/; q; }
14215 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
14216 { case "$ac_dir" in
14217 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
14221 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
14222 case $as_mkdir_dir in
14223 # Skip DOS drivespec
14224 ?:) as_incr_dir=$as_mkdir_dir ;;
14226 as_incr_dir=$as_incr_dir/$as_mkdir_dir
14227 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
14234 mv $tmp/config.h $ac_file
14238 rm -f $tmp/config.h
14242 cat >>$CONFIG_STATUS <<\EOF
14244 # CONFIG_COMMANDS section.
14246 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14247 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14248 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14255 if test ! -d $srcdir/$cf_dir; then
14257 elif test -f $srcdir/$cf_dir/programs; then
14258 $AWK -f $srcdir/mk-test.awk INSTALL=yes ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
14262 cat >>Makefile <<TEST_EOF
14264 # These rules are generated so we do not rely on suffix rules, which do not
14265 # work consistently for different make-programs (the '\$(MODEL)/' confuses
14266 # some, and the '\$x' confuses others).
14269 LIST=`sed -e 's/[ ].*//' -e '/^[#@]/d' $srcdir/modules`
14272 cat >>Makefile <<TEST_EOF
14274 \$(MODEL)/$N.o : $N.c \\
14277 @echo compiling $N; \$(CC) -c \$(CFLAGS_DEFAULT) $N.c
14281 if test -f ../config.guess && test -f ../config.sub
14283 cat >>Makefile <<TEST_EOF
14285 # if we used CF_INHERIT for getting these files, we can remove them
14287 rm -f config.guess config.sub
14295 cat >>$CONFIG_STATUS <<\EOF
14297 { (exit 0); exit 0; }
14299 chmod +x $CONFIG_STATUS
14300 ac_clean_files=$ac_clean_files_save
14302 # configure is writing to config.log, and then calls config.status.
14303 # config.status does its own redirection, appending to config.log.
14304 # Unfortunately, on DOS this fails, as config.log is still kept open
14305 # by configure, so config.status won't be able to write to it; its
14306 # output is simply discarded. So we exec the FD to /dev/null,
14307 # effectively closing config.log, so it can be properly (re)opened and
14308 # appended to by config.status. When coming back to configure, we
14309 # need to make the FD available again.
14310 if test "$no_create" != yes; then
14313 $SHELL $CONFIG_STATUS || ac_cs_success=false
14315 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14316 # would make configure fail if this is the last instruction.
14317 $ac_cs_success || { (exit 1); exit 1; }