2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.20141204.
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"
109 # Initialize some variables set by options.
111 ac_init_version=false
112 # The variables have the same names as the options, with
113 # dashes changed to underlines.
121 program_transform_name=s,x,x,
129 # Installation directory options.
130 # These are left unexpanded so users can "make install exec_prefix=/foo"
131 # and all the variables that are supposed to be based on exec_prefix
132 # by default will actually change.
133 # Use braces instead of parens because sh, perl, etc. also accept them.
134 bindir='${exec_prefix}/bin'
135 sbindir='${exec_prefix}/sbin'
136 libexecdir='${exec_prefix}/libexec'
137 datarootdir='${prefix}/share'
138 datadir='${datarootdir}'
139 sysconfdir='${prefix}/etc'
140 sharedstatedir='${prefix}/com'
141 localstatedir='${prefix}/var'
142 libdir='${exec_prefix}/lib'
143 includedir='${prefix}/include'
144 oldincludedir='/usr/include'
145 infodir='${datarootdir}/info'
146 mandir='${datarootdir}/man'
148 # Identity of this package.
158 # If the previous option needs an argument, assign it.
159 if test -n "$ac_prev"; then
160 eval "$ac_prev=\$ac_option"
165 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
167 # Accept the important Cygnus configure options, so we can diagnose typos.
171 -bindir | --bindir | --bindi | --bind | --bin | --bi)
173 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
176 -build | --build | --buil | --bui | --bu)
177 ac_prev=build_alias ;;
178 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
179 build_alias=$ac_optarg ;;
181 -cache-file | --cache-file | --cache-fil | --cache-fi \
182 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
183 ac_prev=cache_file ;;
184 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
185 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
186 cache_file=$ac_optarg ;;
189 cache_file=config.cache ;;
191 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
193 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
195 datadir=$ac_optarg ;;
197 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
198 | --dataroo | --dataro | --datar)
199 ac_prev=datarootdir ;;
200 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
201 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
202 datarootdir=$ac_optarg ;;
204 -disable-* | --disable-*)
205 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
206 # Reject names that are not valid shell variable names.
207 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
208 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
209 { (exit 1); exit 1; }; }
210 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
211 eval "enable_$ac_feature=no" ;;
213 -enable-* | --enable-*)
214 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
215 # Reject names that are not valid shell variable names.
216 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
217 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
218 { (exit 1); exit 1; }; }
219 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
221 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
224 eval "enable_$ac_feature='$ac_optarg'" ;;
226 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
227 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
228 | --exec | --exe | --ex)
229 ac_prev=exec_prefix ;;
230 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
231 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
232 | --exec=* | --exe=* | --ex=*)
233 exec_prefix=$ac_optarg ;;
235 -gas | --gas | --ga | --g)
236 # Obsolete; use --with-gas.
239 -help | --help | --hel | --he | -h)
241 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
242 ac_init_help=recursive ;;
243 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
244 ac_init_help=short ;;
246 -host | --host | --hos | --ho)
247 ac_prev=host_alias ;;
248 -host=* | --host=* | --hos=* | --ho=*)
249 host_alias=$ac_optarg ;;
251 -includedir | --includedir | --includedi | --included | --include \
252 | --includ | --inclu | --incl | --inc)
253 ac_prev=includedir ;;
254 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
255 | --includ=* | --inclu=* | --incl=* | --inc=*)
256 includedir=$ac_optarg ;;
258 -infodir | --infodir | --infodi | --infod | --info | --inf)
260 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
261 infodir=$ac_optarg ;;
263 -libdir | --libdir | --libdi | --libd)
265 -libdir=* | --libdir=* | --libdi=* | --libd=*)
268 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
269 | --libexe | --libex | --libe)
270 ac_prev=libexecdir ;;
271 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
272 | --libexe=* | --libex=* | --libe=*)
273 libexecdir=$ac_optarg ;;
275 -localstatedir | --localstatedir | --localstatedi | --localstated \
276 | --localstate | --localstat | --localsta | --localst \
277 | --locals | --local | --loca | --loc | --lo)
278 ac_prev=localstatedir ;;
279 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
280 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
281 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
282 localstatedir=$ac_optarg ;;
284 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
286 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
290 # Obsolete; use --without-fp.
293 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
297 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
298 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
301 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
302 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
303 | --oldin | --oldi | --old | --ol | --o)
304 ac_prev=oldincludedir ;;
305 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
306 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
307 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
308 oldincludedir=$ac_optarg ;;
310 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
312 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
315 -program-prefix | --program-prefix | --program-prefi | --program-pref \
316 | --program-pre | --program-pr | --program-p)
317 ac_prev=program_prefix ;;
318 -program-prefix=* | --program-prefix=* | --program-prefi=* \
319 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
320 program_prefix=$ac_optarg ;;
322 -program-suffix | --program-suffix | --program-suffi | --program-suff \
323 | --program-suf | --program-su | --program-s)
324 ac_prev=program_suffix ;;
325 -program-suffix=* | --program-suffix=* | --program-suffi=* \
326 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
327 program_suffix=$ac_optarg ;;
329 -program-transform-name | --program-transform-name \
330 | --program-transform-nam | --program-transform-na \
331 | --program-transform-n | --program-transform- \
332 | --program-transform | --program-transfor \
333 | --program-transfo | --program-transf \
334 | --program-trans | --program-tran \
335 | --progr-tra | --program-tr | --program-t)
336 ac_prev=program_transform_name ;;
337 -program-transform-name=* | --program-transform-name=* \
338 | --program-transform-nam=* | --program-transform-na=* \
339 | --program-transform-n=* | --program-transform-=* \
340 | --program-transform=* | --program-transfor=* \
341 | --program-transfo=* | --program-transf=* \
342 | --program-trans=* | --program-tran=* \
343 | --progr-tra=* | --program-tr=* | --program-t=*)
344 program_transform_name=$ac_optarg ;;
346 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
347 | -silent | --silent | --silen | --sile | --sil)
350 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
352 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
354 sbindir=$ac_optarg ;;
356 -sharedstatedir | --sharedstatedir | --sharedstatedi \
357 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
358 | --sharedst | --shareds | --shared | --share | --shar \
360 ac_prev=sharedstatedir ;;
361 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
362 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
363 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
365 sharedstatedir=$ac_optarg ;;
367 -site | --site | --sit)
369 -site=* | --site=* | --sit=*)
372 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
374 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
377 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
378 | --syscon | --sysco | --sysc | --sys | --sy)
379 ac_prev=sysconfdir ;;
380 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
381 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
382 sysconfdir=$ac_optarg ;;
384 -target | --target | --targe | --targ | --tar | --ta | --t)
385 ac_prev=target_alias ;;
386 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
387 target_alias=$ac_optarg ;;
389 -v | -verbose | --verbose | --verbos | --verbo | --verb)
392 -version | --version | --versio | --versi | --vers | -V)
396 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid package name: $ac_package" >&2
400 { (exit 1); exit 1; }; }
401 ac_package=`echo $ac_package| sed 's/-/_/g'`
403 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
406 eval "with_$ac_package='$ac_optarg'" ;;
408 -without-* | --without-*)
409 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid package name: $ac_package" >&2
413 { (exit 1); exit 1; }; }
414 ac_package=`echo $ac_package | sed 's/-/_/g'`
415 eval "with_$ac_package=no" ;;
418 # Obsolete; use --with-x.
421 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
422 | --x-incl | --x-inc | --x-in | --x-i)
423 ac_prev=x_includes ;;
424 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
425 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
426 x_includes=$ac_optarg ;;
428 -x-libraries | --x-libraries | --x-librarie | --x-librari \
429 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
430 ac_prev=x_libraries ;;
431 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
432 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
433 x_libraries=$ac_optarg ;;
435 -*) { echo "$as_me: error: unrecognized option: $ac_option
436 Try \`$0 --help' for more information." >&2
437 { (exit 1); exit 1; }; }
441 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
442 # Reject names that are not valid shell variable names.
443 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
444 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
445 { (exit 1); exit 1; }; }
446 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
447 eval "$ac_envvar='$ac_optarg'"
451 # FIXME: should be removed in autoconf 3.0.
452 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
453 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
454 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
455 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
461 if test -n "$ac_prev"; then
462 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
463 { echo "$as_me: error: missing argument to $ac_option" >&2
464 { (exit 1); exit 1; }; }
467 # Be sure to have absolute paths.
468 for ac_var in exec_prefix prefix
470 eval ac_val=$`echo $ac_var`
472 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
473 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
474 { (exit 1); exit 1; }; };;
478 # Be sure to have absolute paths.
479 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
480 localstatedir libdir includedir oldincludedir infodir mandir
482 eval ac_val=$`echo $ac_var`
484 [\\/$]* | ?:[\\/]* ) ;;
485 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
486 { (exit 1); exit 1; }; };;
490 # There might be people who depend on the old broken behavior: `$host'
491 # used to hold the argument of --host etc.
496 # FIXME: should be removed in autoconf 3.0.
497 if test "x$host_alias" != x; then
498 if test "x$build_alias" = x; then
499 cross_compiling=maybe
500 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
501 If a cross compiler is detected then cross compile mode will be used." >&2
502 elif test "x$build_alias" != "x$host_alias"; then
508 test -n "$host_alias" && ac_tool_prefix=$host_alias-
510 test "$silent" = yes && exec 6>/dev/null
512 # Find the source files, if location was not specified.
513 if test -z "$srcdir"; then
514 ac_srcdir_defaulted=yes
515 # Try the directory containing this script, then its parent.
517 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
518 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
520 if test ! -r $srcdir/$ac_unique_file; then
524 ac_srcdir_defaulted=no
526 if test ! -r $srcdir/$ac_unique_file; then
527 if test "$ac_srcdir_defaulted" = yes; then
528 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
529 { (exit 1); exit 1; }; }
531 { echo "$as_me: error: cannot find sources in $srcdir" >&2
532 { (exit 1); exit 1; }; }
535 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
536 ac_env_build_alias_set=${build_alias+set}
537 ac_env_build_alias_value=$build_alias
538 ac_cv_env_build_alias_set=${build_alias+set}
539 ac_cv_env_build_alias_value=$build_alias
540 ac_env_host_alias_set=${host_alias+set}
541 ac_env_host_alias_value=$host_alias
542 ac_cv_env_host_alias_set=${host_alias+set}
543 ac_cv_env_host_alias_value=$host_alias
544 ac_env_target_alias_set=${target_alias+set}
545 ac_env_target_alias_value=$target_alias
546 ac_cv_env_target_alias_set=${target_alias+set}
547 ac_cv_env_target_alias_value=$target_alias
548 ac_env_CC_set=${CC+set}
550 ac_cv_env_CC_set=${CC+set}
551 ac_cv_env_CC_value=$CC
552 ac_env_CFLAGS_set=${CFLAGS+set}
553 ac_env_CFLAGS_value=$CFLAGS
554 ac_cv_env_CFLAGS_set=${CFLAGS+set}
555 ac_cv_env_CFLAGS_value=$CFLAGS
556 ac_env_LDFLAGS_set=${LDFLAGS+set}
557 ac_env_LDFLAGS_value=$LDFLAGS
558 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
559 ac_cv_env_LDFLAGS_value=$LDFLAGS
560 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
561 ac_env_CPPFLAGS_value=$CPPFLAGS
562 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
563 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
564 ac_env_CPP_set=${CPP+set}
565 ac_env_CPP_value=$CPP
566 ac_cv_env_CPP_set=${CPP+set}
567 ac_cv_env_CPP_value=$CPP
570 # Report the --help message.
572 if test "$ac_init_help" = "long"; then
573 # Omit some internal or obsolete options to make the list less imposing.
574 # This message is too long to be a string in the A/UX 3.1 sh.
576 \`configure' configures this package to adapt to many kinds of systems.
578 Usage: $0 [OPTION]... [VAR=VALUE]...
580 To assign environment variables (e.g., CC, CFLAGS...), specify them as
581 VAR=VALUE. See below for descriptions of some of the useful variables.
583 Defaults for the options are specified in brackets.
586 -h, --help display this help and exit
587 --help=short display options specific to this package
588 --help=recursive display the short help of all the included packages
589 -V, --version display version information and exit
590 -q, --quiet, --silent do not print \`checking...' messages
591 --cache-file=FILE cache test results in FILE [disabled]
592 -C, --config-cache alias for \`--cache-file=config.cache'
593 -n, --no-create do not create output files
594 --srcdir=DIR find the sources in DIR [configure dir or \`..']
599 Installation directories:
600 --prefix=PREFIX install architecture-independent files in PREFIX
602 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
605 By default, \`make install' will install all the files in
606 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
607 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
608 for instance \`--prefix=\$HOME'.
610 For better control, use the options below.
612 Fine tuning of the installation directories:
613 --bindir=DIR user executables [EPREFIX/bin]
614 --sbindir=DIR system admin executables [EPREFIX/sbin]
615 --libexecdir=DIR program executables [EPREFIX/libexec]
616 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
617 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
618 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
619 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
620 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
621 --libdir=DIR object code libraries [EPREFIX/lib]
622 --includedir=DIR C header files [PREFIX/include]
623 --oldincludedir=DIR C header files for non-gcc [/usr/include]
624 --infodir=DIR info documentation [DATAROOTDIR/info]
625 --mandir=DIR man documentation [DATAROOTDIR/man]
631 --program-prefix=PREFIX prepend PREFIX to installed program names
632 --program-suffix=SUFFIX append SUFFIX to installed program names
633 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
636 --x-includes=DIR X include files are in DIR
637 --x-libraries=DIR X library files are in DIR
640 --build=BUILD configure for building on BUILD [guessed]
641 --host=HOST build programs to run on HOST [BUILD]
645 if test -n "$ac_init_help"; then
650 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
651 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
654 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
655 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
658 --with-pkg-config{=path} enable/disable use of pkg-config
659 --disable-echo do not display "compiling" commands
660 Curses Version-dependent Options:
661 --with-ncurses-wrap-prefix naming-prefix for ncurses wrapped-variables
662 --disable-widec disable checks for wide-character functions
663 --with-curses-dir=DIR directory in which (n)curses is installed
664 --with-screen=XXX use specified curses-libraries
665 --with-ncursesw use wide ncurses-libraries
666 --with-ncurses use ncurses-libraries
667 --with-pdcurses compile/link with pdcurses X11 library
668 --with-curses-colr compile/link with HPUX 10.x color-curses
669 --with-curses-5lib compile/link with SunOS 5lib curses
670 --with-Xaw3d link with Xaw 3d library
671 --with-Xaw3dxft link with Xaw 3d xft library
672 --with-neXtaw link with neXT Athena library
673 --with-XawPlus link with Athena-Plus library
674 --with-x use the X Window System
675 Testing/development Options:
676 --enable-warnings test: turn on gcc compiler warnings
677 --with-dmalloc test: use Gray Watson's dmalloc library
678 --with-dbmalloc test: use Conor Cahill's dbmalloc library
679 --with-valgrind test: use valgrind
680 --disable-leaks test: free permanent memory, analyze leaks
681 --disable-rpath-hack don't add rpath options for additional libraries
683 Some influential environment variables:
684 CC C compiler command
685 CFLAGS C compiler flags
686 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
687 nonstandard directory <lib dir>
688 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
689 headers in a nonstandard directory <include dir>
692 Use these variables to override the choices made by `configure' or to help
693 it to find libraries and programs with nonstandard names/locations.
698 if test "$ac_init_help" = "recursive"; then
699 # If there are subdirs, report their specific --help.
701 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
703 # A "../" for each directory in /$ac_subdir.
704 ac_dots=`echo $ac_subdir |
705 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
708 .) # No --srcdir option. We are building in place.
709 ac_sub_srcdir=$srcdir ;;
710 [\\/]* | ?:[\\/]* ) # Absolute path.
711 ac_sub_srcdir=$srcdir/$ac_subdir ;;
713 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
716 # Check for guested configure; otherwise get Cygnus style configure.
717 if test -f $ac_sub_srcdir/configure.gnu; then
719 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
720 elif test -f $ac_sub_srcdir/configure; then
722 $SHELL $ac_sub_srcdir/configure --help=recursive
723 elif test -f $ac_sub_srcdir/configure.ac ||
724 test -f $ac_sub_srcdir/configure.in; then
728 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
734 test -n "$ac_init_help" && exit 0
735 if $ac_init_version; then
738 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
739 Free Software Foundation, Inc.
740 This configure script is free software; the Free Software Foundation
741 gives unlimited permission to copy, distribute and modify it.
747 This file contains any messages produced by compilers while
748 running configure, to aid debugging if configure makes a mistake.
750 It was created by $as_me, which was
751 generated by GNU Autoconf 2.52.20141204. Invocation command line was
762 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
763 uname -m = `(uname -m) 2>/dev/null || echo unknown`
764 uname -r = `(uname -r) 2>/dev/null || echo unknown`
765 uname -s = `(uname -s) 2>/dev/null || echo unknown`
766 uname -v = `(uname -v) 2>/dev/null || echo unknown`
768 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
769 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
771 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
772 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
773 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
774 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
775 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
776 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
777 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
791 # Keep a trace of the command line.
792 # Strip out --no-create and --no-recursion so they do not pile up.
793 # Also quote any args containing shell meta-characters.
799 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
800 | --no-cr | --no-c) ;;
801 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
802 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
803 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
804 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
805 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
807 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
810 # Get rid of the leading space.
813 # When interrupted or exit'd, cleanup temporary files, and complete
814 # config.log. We remove comments because anyway the quotes in there
815 # would cause problems or look ugly.
817 # Save into config.log some information that might help in debugging.
819 echo "## ----------------- ##" >&5
820 echo "## Cache variables. ##" >&5
821 echo "## ----------------- ##" >&5
823 # The following way of writing the cache mishandles newlines in values,
826 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
829 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
830 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
834 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
838 sed "/^$/d" confdefs.h >conftest.log
839 if test -s conftest.log; then
841 echo "## ------------ ##" >&5
842 echo "## confdefs.h. ##" >&5
843 echo "## ------------ ##" >&5
848 test "$ac_signal" != 0 &&
849 echo "$as_me: caught signal $ac_signal" >&5
850 echo "$as_me: exit $exit_status" >&5
851 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
854 for ac_signal in 1 2 13 15; do
855 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
859 # confdefs.h avoids OS command line length limits that DEFS can exceed.
860 rm -rf conftest* confdefs.h
861 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
864 # Let the site file select an alternate cache file if it wants to.
865 # Prefer explicitly selected file to automatically selected ones.
866 if test -z "$CONFIG_SITE"; then
867 if test "x$prefix" != xNONE; then
868 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
870 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
873 for ac_site_file in $CONFIG_SITE; do
874 if test -r "$ac_site_file"; then
875 { echo "$as_me:875: loading site script $ac_site_file" >&5
876 echo "$as_me: loading site script $ac_site_file" >&6;}
877 cat "$ac_site_file" >&5
882 if test -r "$cache_file"; then
883 # Some versions of bash will fail to source /dev/null (special
884 # files actually), so we avoid doing that.
885 if test -f "$cache_file"; then
886 { echo "$as_me:886: loading cache $cache_file" >&5
887 echo "$as_me: loading cache $cache_file" >&6;}
889 [\\/]* | ?:[\\/]* ) . $cache_file;;
894 { echo "$as_me:894: creating cache $cache_file" >&5
895 echo "$as_me: creating cache $cache_file" >&6;}
899 # Check that the precious variables saved in the cache have kept the same
901 ac_cache_corrupted=false
902 for ac_var in `(set) 2>&1 |
903 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
904 eval ac_old_set=\$ac_cv_env_${ac_var}_set
905 eval ac_new_set=\$ac_env_${ac_var}_set
906 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
907 eval ac_new_val="\$ac_env_${ac_var}_value"
908 case $ac_old_set,$ac_new_set in
910 { echo "$as_me:910: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
911 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
912 ac_cache_corrupted=: ;;
914 { echo "$as_me:914: error: \`$ac_var' was not set in the previous run" >&5
915 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
916 ac_cache_corrupted=: ;;
919 if test "x$ac_old_val" != "x$ac_new_val"; then
920 { echo "$as_me:920: error: \`$ac_var' has changed since the previous run:" >&5
921 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
922 { echo "$as_me:922: former value: $ac_old_val" >&5
923 echo "$as_me: former value: $ac_old_val" >&2;}
924 { echo "$as_me:924: current value: $ac_new_val" >&5
925 echo "$as_me: current value: $ac_new_val" >&2;}
929 # Pass precious variables to config.status. It doesn't matter if
930 # we pass some twice (in addition to the command line arguments).
931 if test "$ac_new_set" = set; then
933 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
934 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
935 ac_configure_args="$ac_configure_args '$ac_arg'"
937 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
942 if $ac_cache_corrupted; then
943 { echo "$as_me:943: error: changes in the environment can compromise the build" >&5
944 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
945 { { echo "$as_me:945: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
946 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
947 { (exit 1); exit 1; }; }
951 ac_cpp='$CPP $CPPFLAGS'
952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
955 ac_main_return=return
957 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
958 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
960 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
961 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
963 echo "#! $SHELL" >conftest.sh
964 echo "exit 0" >>conftest.sh
966 if { (echo "$as_me:966: PATH=\".;.\"; conftest.sh") >&5
967 (PATH=".;."; conftest.sh) 2>&5
969 echo "$as_me:969: \$? = $ac_status" >&5
970 (exit $ac_status); }; then
971 ac_path_separator=';'
975 PATH_SEPARATOR="$ac_path_separator"
978 ac_config_headers="$ac_config_headers ncurses_cfg.h:ncurses_tst.hin"
980 test -f config.guess || ( test -f ../config.guess && cp ../config.guess ./ )
982 test -f config.sub || ( test -f ../config.sub && cp ../config.sub ./ )
985 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
986 if test -f $ac_dir/install-sh; then
988 ac_install_sh="$ac_aux_dir/install-sh -c"
990 elif test -f $ac_dir/install.sh; then
992 ac_install_sh="$ac_aux_dir/install.sh -c"
994 elif test -f $ac_dir/shtool; then
996 ac_install_sh="$ac_aux_dir/shtool install -c"
1000 if test -z "$ac_aux_dir"; then
1001 { { echo "$as_me:1001: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1002 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1003 { (exit 1); exit 1; }; }
1005 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1006 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1007 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1009 # Make sure we can run config.sub.
1010 $ac_config_sub sun4 >/dev/null 2>&1 ||
1011 { { echo "$as_me:1011: error: cannot run $ac_config_sub" >&5
1012 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1013 { (exit 1); exit 1; }; }
1015 echo "$as_me:1015: checking build system type" >&5
1016 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1017 if test "${ac_cv_build+set}" = set; then
1018 echo $ECHO_N "(cached) $ECHO_C" >&6
1020 ac_cv_build_alias=$build_alias
1021 test -z "$ac_cv_build_alias" &&
1022 ac_cv_build_alias=`$ac_config_guess`
1023 test -z "$ac_cv_build_alias" &&
1024 { { echo "$as_me:1024: error: cannot guess build type; you must specify one" >&5
1025 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1026 { (exit 1); exit 1; }; }
1027 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1028 { { echo "$as_me:1028: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1029 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1030 { (exit 1); exit 1; }; }
1033 echo "$as_me:1033: result: $ac_cv_build" >&5
1034 echo "${ECHO_T}$ac_cv_build" >&6
1036 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1037 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1038 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1040 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1041 echo "$as_me:1041: checking host system type" >&5
1042 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1043 if test "${ac_cv_host+set}" = set; then
1044 echo $ECHO_N "(cached) $ECHO_C" >&6
1046 ac_cv_host_alias=$host_alias
1047 test -z "$ac_cv_host_alias" &&
1048 ac_cv_host_alias=$ac_cv_build_alias
1049 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1050 { { echo "$as_me:1050: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1051 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1052 { (exit 1); exit 1; }; }
1055 echo "$as_me:1055: result: $ac_cv_host" >&5
1056 echo "${ECHO_T}$ac_cv_host" >&6
1058 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1059 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1060 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1062 system_name="$host_os"
1064 system_name="`(uname -s -r) 2>/dev/null`"
1065 if test -z "$system_name" ; then
1066 system_name="`(hostname) 2>/dev/null`"
1069 test -n "$system_name" &&
1070 cat >>confdefs.h <<EOF
1071 #define SYSTEM_NAME "$system_name"
1074 if test "${cf_cv_system_name+set}" = set; then
1075 echo $ECHO_N "(cached) $ECHO_C" >&6
1077 cf_cv_system_name="$system_name"
1080 test -z "$system_name" && system_name="$cf_cv_system_name"
1081 test -n "$cf_cv_system_name" && echo "$as_me:1081: result: Configuring for $cf_cv_system_name" >&5
1082 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1084 if test ".$system_name" != ".$cf_cv_system_name" ; then
1085 echo "$as_me:1085: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1086 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1087 { { echo "$as_me:1087: error: \"Please remove config.cache and try again.\"" >&5
1088 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1089 { (exit 1); exit 1; }; }
1092 test "$program_prefix" != NONE &&
1093 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1094 # Use a double $ so make ignores it.
1095 test "$program_suffix" != NONE &&
1096 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1097 # Double any \ or $. echo might interpret backslashes.
1098 # By default was `s,x,x', remove it if useless.
1099 cat <<\_ACEOF >conftest.sed
1100 s/[\\$]/&&/g;s/;s,x,x,$//
1102 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1105 echo "$as_me:1105: checking whether ${MAKE-make} sets \${MAKE}" >&5
1106 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1107 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1108 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1109 echo $ECHO_N "(cached) $ECHO_C" >&6
1111 cat >conftest.make <<\EOF
1113 @echo 'ac_maketemp="${MAKE}"'
1115 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1116 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1117 if test -n "$ac_maketemp"; then
1118 eval ac_cv_prog_make_${ac_make}_set=yes
1120 eval ac_cv_prog_make_${ac_make}_set=no
1124 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1125 echo "$as_me:1125: result: yes" >&5
1126 echo "${ECHO_T}yes" >&6
1129 echo "$as_me:1129: result: no" >&5
1130 echo "${ECHO_T}no" >&6
1131 SET_MAKE="MAKE=${MAKE-make}"
1135 ac_cpp='$CPP $CPPFLAGS'
1136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1139 ac_main_return=return
1140 if test -n "$ac_tool_prefix"; then
1141 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1142 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1143 echo "$as_me:1143: checking for $ac_word" >&5
1144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1145 if test "${ac_cv_prog_CC+set}" = set; then
1146 echo $ECHO_N "(cached) $ECHO_C" >&6
1148 if test -n "$CC"; then
1149 ac_cv_prog_CC="$CC" # Let the user override the test.
1151 ac_save_IFS=$IFS; IFS=$ac_path_separator
1153 for ac_dir in $ac_dummy; do
1155 test -z "$ac_dir" && ac_dir=.
1156 $as_executable_p "$ac_dir/$ac_word" || continue
1157 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1158 echo "$as_me:1158: found $ac_dir/$ac_word" >&5
1165 if test -n "$CC"; then
1166 echo "$as_me:1166: result: $CC" >&5
1167 echo "${ECHO_T}$CC" >&6
1169 echo "$as_me:1169: result: no" >&5
1170 echo "${ECHO_T}no" >&6
1174 if test -z "$ac_cv_prog_CC"; then
1176 # Extract the first word of "gcc", so it can be a program name with args.
1177 set dummy gcc; ac_word=$2
1178 echo "$as_me:1178: checking for $ac_word" >&5
1179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1180 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1181 echo $ECHO_N "(cached) $ECHO_C" >&6
1183 if test -n "$ac_ct_CC"; then
1184 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1186 ac_save_IFS=$IFS; IFS=$ac_path_separator
1188 for ac_dir in $ac_dummy; do
1190 test -z "$ac_dir" && ac_dir=.
1191 $as_executable_p "$ac_dir/$ac_word" || continue
1192 ac_cv_prog_ac_ct_CC="gcc"
1193 echo "$as_me:1193: found $ac_dir/$ac_word" >&5
1199 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1200 if test -n "$ac_ct_CC"; then
1201 echo "$as_me:1201: result: $ac_ct_CC" >&5
1202 echo "${ECHO_T}$ac_ct_CC" >&6
1204 echo "$as_me:1204: result: no" >&5
1205 echo "${ECHO_T}no" >&6
1213 if test -z "$CC"; then
1214 if test -n "$ac_tool_prefix"; then
1215 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1216 set dummy ${ac_tool_prefix}cc; ac_word=$2
1217 echo "$as_me:1217: checking for $ac_word" >&5
1218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1219 if test "${ac_cv_prog_CC+set}" = set; then
1220 echo $ECHO_N "(cached) $ECHO_C" >&6
1222 if test -n "$CC"; then
1223 ac_cv_prog_CC="$CC" # Let the user override the test.
1225 ac_save_IFS=$IFS; IFS=$ac_path_separator
1227 for ac_dir in $ac_dummy; do
1229 test -z "$ac_dir" && ac_dir=.
1230 $as_executable_p "$ac_dir/$ac_word" || continue
1231 ac_cv_prog_CC="${ac_tool_prefix}cc"
1232 echo "$as_me:1232: found $ac_dir/$ac_word" >&5
1239 if test -n "$CC"; then
1240 echo "$as_me:1240: result: $CC" >&5
1241 echo "${ECHO_T}$CC" >&6
1243 echo "$as_me:1243: result: no" >&5
1244 echo "${ECHO_T}no" >&6
1248 if test -z "$ac_cv_prog_CC"; then
1250 # Extract the first word of "cc", so it can be a program name with args.
1251 set dummy cc; ac_word=$2
1252 echo "$as_me:1252: checking for $ac_word" >&5
1253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1254 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1255 echo $ECHO_N "(cached) $ECHO_C" >&6
1257 if test -n "$ac_ct_CC"; then
1258 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1260 ac_save_IFS=$IFS; IFS=$ac_path_separator
1262 for ac_dir in $ac_dummy; do
1264 test -z "$ac_dir" && ac_dir=.
1265 $as_executable_p "$ac_dir/$ac_word" || continue
1266 ac_cv_prog_ac_ct_CC="cc"
1267 echo "$as_me:1267: found $ac_dir/$ac_word" >&5
1273 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1274 if test -n "$ac_ct_CC"; then
1275 echo "$as_me:1275: result: $ac_ct_CC" >&5
1276 echo "${ECHO_T}$ac_ct_CC" >&6
1278 echo "$as_me:1278: result: no" >&5
1279 echo "${ECHO_T}no" >&6
1288 if test -z "$CC"; then
1289 # Extract the first word of "cc", so it can be a program name with args.
1290 set dummy cc; ac_word=$2
1291 echo "$as_me:1291: checking for $ac_word" >&5
1292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1293 if test "${ac_cv_prog_CC+set}" = set; then
1294 echo $ECHO_N "(cached) $ECHO_C" >&6
1296 if test -n "$CC"; then
1297 ac_cv_prog_CC="$CC" # Let the user override the test.
1300 ac_save_IFS=$IFS; IFS=$ac_path_separator
1302 for ac_dir in $ac_dummy; do
1304 test -z "$ac_dir" && ac_dir=.
1305 $as_executable_p "$ac_dir/$ac_word" || continue
1306 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1307 ac_prog_rejected=yes
1311 echo "$as_me:1311: found $ac_dir/$ac_word" >&5
1315 if test $ac_prog_rejected = yes; then
1316 # We found a bogon in the path, so make sure we never use it.
1317 set dummy $ac_cv_prog_CC
1319 if test $# != 0; then
1320 # We chose a different compiler from the bogus one.
1321 # However, it has the same basename, so the bogon will be chosen
1322 # first if we set CC to just the basename; use the full file name.
1324 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1332 if test -n "$CC"; then
1333 echo "$as_me:1333: result: $CC" >&5
1334 echo "${ECHO_T}$CC" >&6
1336 echo "$as_me:1336: result: no" >&5
1337 echo "${ECHO_T}no" >&6
1341 if test -z "$CC"; then
1342 if test -n "$ac_tool_prefix"; then
1345 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1346 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1347 echo "$as_me:1347: checking for $ac_word" >&5
1348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1349 if test "${ac_cv_prog_CC+set}" = set; then
1350 echo $ECHO_N "(cached) $ECHO_C" >&6
1352 if test -n "$CC"; then
1353 ac_cv_prog_CC="$CC" # Let the user override the test.
1355 ac_save_IFS=$IFS; IFS=$ac_path_separator
1357 for ac_dir in $ac_dummy; do
1359 test -z "$ac_dir" && ac_dir=.
1360 $as_executable_p "$ac_dir/$ac_word" || continue
1361 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1362 echo "$as_me:1362: found $ac_dir/$ac_word" >&5
1369 if test -n "$CC"; then
1370 echo "$as_me:1370: result: $CC" >&5
1371 echo "${ECHO_T}$CC" >&6
1373 echo "$as_me:1373: result: no" >&5
1374 echo "${ECHO_T}no" >&6
1377 test -n "$CC" && break
1380 if test -z "$CC"; then
1384 # Extract the first word of "$ac_prog", so it can be a program name with args.
1385 set dummy $ac_prog; ac_word=$2
1386 echo "$as_me:1386: checking for $ac_word" >&5
1387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1388 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1389 echo $ECHO_N "(cached) $ECHO_C" >&6
1391 if test -n "$ac_ct_CC"; then
1392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1394 ac_save_IFS=$IFS; IFS=$ac_path_separator
1396 for ac_dir in $ac_dummy; do
1398 test -z "$ac_dir" && ac_dir=.
1399 $as_executable_p "$ac_dir/$ac_word" || continue
1400 ac_cv_prog_ac_ct_CC="$ac_prog"
1401 echo "$as_me:1401: found $ac_dir/$ac_word" >&5
1407 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1408 if test -n "$ac_ct_CC"; then
1409 echo "$as_me:1409: result: $ac_ct_CC" >&5
1410 echo "${ECHO_T}$ac_ct_CC" >&6
1412 echo "$as_me:1412: result: no" >&5
1413 echo "${ECHO_T}no" >&6
1416 test -n "$ac_ct_CC" && break
1424 test -z "$CC" && { { echo "$as_me:1424: error: no acceptable cc found in \$PATH" >&5
1425 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1426 { (exit 1); exit 1; }; }
1428 # Provide some information about the compiler.
1429 echo "$as_me:1429:" \
1430 "checking for C compiler version" >&5
1431 ac_compiler=`set X $ac_compile; echo $2`
1432 { (eval echo "$as_me:1432: \"$ac_compiler --version </dev/null >&5\"") >&5
1433 (eval $ac_compiler --version </dev/null >&5) 2>&5
1435 echo "$as_me:1435: \$? = $ac_status" >&5
1436 (exit $ac_status); }
1437 { (eval echo "$as_me:1437: \"$ac_compiler -v </dev/null >&5\"") >&5
1438 (eval $ac_compiler -v </dev/null >&5) 2>&5
1440 echo "$as_me:1440: \$? = $ac_status" >&5
1441 (exit $ac_status); }
1442 { (eval echo "$as_me:1442: \"$ac_compiler -V </dev/null >&5\"") >&5
1443 (eval $ac_compiler -V </dev/null >&5) 2>&5
1445 echo "$as_me:1445: \$? = $ac_status" >&5
1446 (exit $ac_status); }
1448 cat >conftest.$ac_ext <<_ACEOF
1449 #line 1449 "configure"
1450 #include "confdefs.h"
1460 ac_clean_files_save=$ac_clean_files
1461 ac_clean_files="$ac_clean_files a.out a.exe"
1462 # Try to create an executable without -o first, disregard a.out.
1463 # It will help us diagnose broken compilers, and finding out an intuition
1465 echo "$as_me:1465: checking for C compiler default output" >&5
1466 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1467 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1468 if { (eval echo "$as_me:1468: \"$ac_link_default\"") >&5
1469 (eval $ac_link_default) 2>&5
1471 echo "$as_me:1471: \$? = $ac_status" >&5
1472 (exit $ac_status); }; then
1473 # Find the output, starting from the most likely. This scheme is
1474 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1476 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1477 ls a.out conftest 2>/dev/null;
1478 ls a.* conftest.* 2>/dev/null`; do
1480 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1481 a.out ) # We found the default executable, but exeext='' is most
1484 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1485 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1492 echo "$as_me: failed program was:" >&5
1493 cat conftest.$ac_ext >&5
1494 { { echo "$as_me:1494: error: C compiler cannot create executables" >&5
1495 echo "$as_me: error: C compiler cannot create executables" >&2;}
1496 { (exit 77); exit 77; }; }
1499 ac_exeext=$ac_cv_exeext
1500 echo "$as_me:1500: result: $ac_file" >&5
1501 echo "${ECHO_T}$ac_file" >&6
1503 # Check the compiler produces executables we can run. If not, either
1504 # the compiler is broken, or we cross compile.
1505 echo "$as_me:1505: checking whether the C compiler works" >&5
1506 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1507 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1508 # If not cross compiling, check that we can run a simple program.
1509 if test "$cross_compiling" != yes; then
1510 if { ac_try='./$ac_file'
1511 { (eval echo "$as_me:1511: \"$ac_try\"") >&5
1514 echo "$as_me:1514: \$? = $ac_status" >&5
1515 (exit $ac_status); }; }; then
1518 if test "$cross_compiling" = maybe; then
1521 { { echo "$as_me:1521: error: cannot run C compiled programs.
1522 If you meant to cross compile, use \`--host'." >&5
1523 echo "$as_me: error: cannot run C compiled programs.
1524 If you meant to cross compile, use \`--host'." >&2;}
1525 { (exit 1); exit 1; }; }
1529 echo "$as_me:1529: result: yes" >&5
1530 echo "${ECHO_T}yes" >&6
1532 rm -f a.out a.exe conftest$ac_cv_exeext
1533 ac_clean_files=$ac_clean_files_save
1534 # Check the compiler produces executables we can run. If not, either
1535 # the compiler is broken, or we cross compile.
1536 echo "$as_me:1536: checking whether we are cross compiling" >&5
1537 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1538 echo "$as_me:1538: result: $cross_compiling" >&5
1539 echo "${ECHO_T}$cross_compiling" >&6
1541 echo "$as_me:1541: checking for executable suffix" >&5
1542 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1543 if { (eval echo "$as_me:1543: \"$ac_link\"") >&5
1544 (eval $ac_link) 2>&5
1546 echo "$as_me:1546: \$? = $ac_status" >&5
1547 (exit $ac_status); }; then
1548 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1549 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1550 # work properly (i.e., refer to `conftest.exe'), while it won't with
1552 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1554 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1555 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1562 { { echo "$as_me:1562: error: cannot compute EXEEXT: cannot compile and link" >&5
1563 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1564 { (exit 1); exit 1; }; }
1567 rm -f conftest$ac_cv_exeext
1568 echo "$as_me:1568: result: $ac_cv_exeext" >&5
1569 echo "${ECHO_T}$ac_cv_exeext" >&6
1571 rm -f conftest.$ac_ext
1572 EXEEXT=$ac_cv_exeext
1574 echo "$as_me:1574: checking for object suffix" >&5
1575 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1576 if test "${ac_cv_objext+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1579 cat >conftest.$ac_ext <<_ACEOF
1580 #line 1580 "configure"
1581 #include "confdefs.h"
1591 rm -f conftest.o conftest.obj
1592 if { (eval echo "$as_me:1592: \"$ac_compile\"") >&5
1593 (eval $ac_compile) 2>&5
1595 echo "$as_me:1595: \$? = $ac_status" >&5
1596 (exit $ac_status); }; then
1597 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1599 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1600 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1605 echo "$as_me: failed program was:" >&5
1606 cat conftest.$ac_ext >&5
1607 { { echo "$as_me:1607: error: cannot compute OBJEXT: cannot compile" >&5
1608 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1609 { (exit 1); exit 1; }; }
1612 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1614 echo "$as_me:1614: result: $ac_cv_objext" >&5
1615 echo "${ECHO_T}$ac_cv_objext" >&6
1616 OBJEXT=$ac_cv_objext
1618 echo "$as_me:1618: checking whether we are using the GNU C compiler" >&5
1619 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1620 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1623 cat >conftest.$ac_ext <<_ACEOF
1624 #line 1624 "configure"
1625 #include "confdefs.h"
1638 rm -f conftest.$ac_objext
1639 if { (eval echo "$as_me:1639: \"$ac_compile\"") >&5
1640 (eval $ac_compile) 2>&5
1642 echo "$as_me:1642: \$? = $ac_status" >&5
1643 (exit $ac_status); } &&
1644 { ac_try='test -s conftest.$ac_objext'
1645 { (eval echo "$as_me:1645: \"$ac_try\"") >&5
1648 echo "$as_me:1648: \$? = $ac_status" >&5
1649 (exit $ac_status); }; }; then
1652 echo "$as_me: failed program was:" >&5
1653 cat conftest.$ac_ext >&5
1656 rm -f conftest.$ac_objext conftest.$ac_ext
1657 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1660 echo "$as_me:1660: result: $ac_cv_c_compiler_gnu" >&5
1661 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1662 GCC=`test $ac_compiler_gnu = yes && echo yes`
1663 ac_test_CFLAGS=${CFLAGS+set}
1664 ac_save_CFLAGS=$CFLAGS
1666 echo "$as_me:1666: checking whether $CC accepts -g" >&5
1667 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1668 if test "${ac_cv_prog_cc_g+set}" = set; then
1669 echo $ECHO_N "(cached) $ECHO_C" >&6
1671 cat >conftest.$ac_ext <<_ACEOF
1672 #line 1672 "configure"
1673 #include "confdefs.h"
1683 rm -f conftest.$ac_objext
1684 if { (eval echo "$as_me:1684: \"$ac_compile\"") >&5
1685 (eval $ac_compile) 2>&5
1687 echo "$as_me:1687: \$? = $ac_status" >&5
1688 (exit $ac_status); } &&
1689 { ac_try='test -s conftest.$ac_objext'
1690 { (eval echo "$as_me:1690: \"$ac_try\"") >&5
1693 echo "$as_me:1693: \$? = $ac_status" >&5
1694 (exit $ac_status); }; }; then
1697 echo "$as_me: failed program was:" >&5
1698 cat conftest.$ac_ext >&5
1701 rm -f conftest.$ac_objext conftest.$ac_ext
1703 echo "$as_me:1703: result: $ac_cv_prog_cc_g" >&5
1704 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1705 if test "$ac_test_CFLAGS" = set; then
1706 CFLAGS=$ac_save_CFLAGS
1707 elif test $ac_cv_prog_cc_g = yes; then
1708 if test "$GCC" = yes; then
1714 if test "$GCC" = yes; then
1720 # Some people use a C++ compiler to compile C. Since we use `exit',
1721 # in C++ we need to declare it. In case someone uses the same compiler
1722 # for both compiling C and C++ we need to have the C++ compiler decide
1723 # the declaration of exit, since it's the most demanding environment.
1724 cat >conftest.$ac_ext <<_ACEOF
1729 rm -f conftest.$ac_objext
1730 if { (eval echo "$as_me:1730: \"$ac_compile\"") >&5
1731 (eval $ac_compile) 2>&5
1733 echo "$as_me:1733: \$? = $ac_status" >&5
1734 (exit $ac_status); } &&
1735 { ac_try='test -s conftest.$ac_objext'
1736 { (eval echo "$as_me:1736: \"$ac_try\"") >&5
1739 echo "$as_me:1739: \$? = $ac_status" >&5
1740 (exit $ac_status); }; }; then
1741 for ac_declaration in \
1743 '#include <stdlib.h>' \
1744 'extern "C" void std::exit (int) throw (); using std::exit;' \
1745 'extern "C" void std::exit (int); using std::exit;' \
1746 'extern "C" void exit (int) throw ();' \
1747 'extern "C" void exit (int);' \
1750 cat >conftest.$ac_ext <<_ACEOF
1751 #line 1751 "configure"
1752 #include "confdefs.h"
1763 rm -f conftest.$ac_objext
1764 if { (eval echo "$as_me:1764: \"$ac_compile\"") >&5
1765 (eval $ac_compile) 2>&5
1767 echo "$as_me:1767: \$? = $ac_status" >&5
1768 (exit $ac_status); } &&
1769 { ac_try='test -s conftest.$ac_objext'
1770 { (eval echo "$as_me:1770: \"$ac_try\"") >&5
1773 echo "$as_me:1773: \$? = $ac_status" >&5
1774 (exit $ac_status); }; }; then
1777 echo "$as_me: failed program was:" >&5
1778 cat conftest.$ac_ext >&5
1781 rm -f conftest.$ac_objext conftest.$ac_ext
1782 cat >conftest.$ac_ext <<_ACEOF
1783 #line 1783 "configure"
1784 #include "confdefs.h"
1794 rm -f conftest.$ac_objext
1795 if { (eval echo "$as_me:1795: \"$ac_compile\"") >&5
1796 (eval $ac_compile) 2>&5
1798 echo "$as_me:1798: \$? = $ac_status" >&5
1799 (exit $ac_status); } &&
1800 { ac_try='test -s conftest.$ac_objext'
1801 { (eval echo "$as_me:1801: \"$ac_try\"") >&5
1804 echo "$as_me:1804: \$? = $ac_status" >&5
1805 (exit $ac_status); }; }; then
1808 echo "$as_me: failed program was:" >&5
1809 cat conftest.$ac_ext >&5
1811 rm -f conftest.$ac_objext conftest.$ac_ext
1814 if test -n "$ac_declaration"; then
1815 echo '#ifdef __cplusplus' >>confdefs.h
1816 echo $ac_declaration >>confdefs.h
1817 echo '#endif' >>confdefs.h
1821 echo "$as_me: failed program was:" >&5
1822 cat conftest.$ac_ext >&5
1824 rm -f conftest.$ac_objext conftest.$ac_ext
1826 ac_cpp='$CPP $CPPFLAGS'
1827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1830 ac_main_return=return
1833 if test "$GCC" = yes ; then
1834 echo "$as_me:1834: checking version of $CC" >&5
1835 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1836 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
1837 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1838 echo "$as_me:1838: result: $GCC_VERSION" >&5
1839 echo "${ECHO_T}$GCC_VERSION" >&6
1842 echo "$as_me:1842: checking for $CC option to accept ANSI C" >&5
1843 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1844 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1845 echo $ECHO_N "(cached) $ECHO_C" >&6
1847 ac_cv_prog_cc_stdc=no
1849 cat >conftest.$ac_ext <<_ACEOF
1850 #line 1850 "configure"
1851 #include "confdefs.h"
1854 #include <sys/types.h>
1855 #include <sys/stat.h>
1856 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1857 struct buf { int x; };
1858 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1859 static char *e (p, i)
1865 static char *f (char * (*g) (char **, int), char **p, ...)
1870 s = g (p, va_arg (v,int));
1874 int test (int i, double x);
1875 struct s1 {int (*f) (int a);};
1876 struct s2 {int (*f) (double a);};
1877 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1883 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1888 # Don't try gcc -ansi; that turns off useful extensions and
1889 # breaks some systems' header files.
1890 # AIX -qlanglvl=ansi
1891 # Ultrix and OSF/1 -std1
1892 # HP-UX 10.20 and later -Ae
1893 # HP-UX older versions -Aa -D_HPUX_SOURCE
1894 # SVR4 -Xc -D__EXTENSIONS__
1895 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1897 CC="$ac_save_CC $ac_arg"
1898 rm -f conftest.$ac_objext
1899 if { (eval echo "$as_me:1899: \"$ac_compile\"") >&5
1900 (eval $ac_compile) 2>&5
1902 echo "$as_me:1902: \$? = $ac_status" >&5
1903 (exit $ac_status); } &&
1904 { ac_try='test -s conftest.$ac_objext'
1905 { (eval echo "$as_me:1905: \"$ac_try\"") >&5
1908 echo "$as_me:1908: \$? = $ac_status" >&5
1909 (exit $ac_status); }; }; then
1910 ac_cv_prog_cc_stdc=$ac_arg
1913 echo "$as_me: failed program was:" >&5
1914 cat conftest.$ac_ext >&5
1916 rm -f conftest.$ac_objext
1918 rm -f conftest.$ac_ext conftest.$ac_objext
1923 case "x$ac_cv_prog_cc_stdc" in
1925 echo "$as_me:1925: result: none needed" >&5
1926 echo "${ECHO_T}none needed" >&6 ;;
1928 echo "$as_me:1928: result: $ac_cv_prog_cc_stdc" >&5
1929 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1930 CC="$CC $ac_cv_prog_cc_stdc" ;;
1933 # This should have been defined by AC_PROG_CC
1936 echo "$as_me:1936: checking \$CC variable" >&5
1937 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
1940 echo "$as_me:1940: result: broken" >&5
1941 echo "${ECHO_T}broken" >&6
1942 { echo "$as_me:1942: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
1943 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
1945 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
1946 CC=`echo "$CC" | sed -e 's/[ ].*//'`
1951 cf_new_extra_cppflags=
1953 for cf_add_cflags in $cf_flags
1955 case $cf_fix_cppflags in
1957 case $cf_add_cflags in
1958 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
1959 case $cf_add_cflags in
1961 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
1963 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
1964 && test -z "${cf_tst_cflags}" \
1965 && cf_fix_cppflags=yes
1967 if test $cf_fix_cppflags = yes ; then
1968 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1970 elif test "${cf_tst_cflags}" = "\"'" ; then
1971 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1980 case $cf_add_cflags in
1982 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
1984 CPPFLAGS=`echo "$CPPFLAGS" | \
1985 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
1986 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
1990 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
1995 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2000 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2002 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2004 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2005 && test -z "${cf_tst_cflags}" \
2006 && cf_fix_cppflags=no
2011 if test -n "$cf_new_cflags" ; then
2013 CFLAGS="$CFLAGS $cf_new_cflags"
2016 if test -n "$cf_new_cppflags" ; then
2018 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2021 if test -n "$cf_new_extra_cppflags" ; then
2023 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2028 echo "$as_me:2028: result: ok" >&5
2029 echo "${ECHO_T}ok" >&6
2034 ac_cpp='$CPP $CPPFLAGS'
2035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2038 ac_main_return=return
2039 echo "$as_me:2039: checking how to run the C preprocessor" >&5
2040 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2041 # On Suns, sometimes $CPP names a directory.
2042 if test -n "$CPP" && test -d "$CPP"; then
2045 if test -z "$CPP"; then
2046 if test "${ac_cv_prog_CPP+set}" = set; then
2047 echo $ECHO_N "(cached) $ECHO_C" >&6
2049 # Double quotes because CPP needs to be expanded
2050 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2053 for ac_c_preproc_warn_flag in '' yes
2055 # Use a header file that comes with gcc, so configuring glibc
2056 # with a fresh cross-compiler works.
2057 # On the NeXT, cc -E runs the code through the compiler's parser,
2058 # not just through cpp. "Syntax error" is here to catch this case.
2059 cat >conftest.$ac_ext <<_ACEOF
2060 #line 2060 "configure"
2061 #include "confdefs.h"
2065 if { (eval echo "$as_me:2065: \"$ac_cpp conftest.$ac_ext\"") >&5
2066 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2068 egrep -v '^ *\+' conftest.er1 >conftest.err
2070 cat conftest.err >&5
2071 echo "$as_me:2071: \$? = $ac_status" >&5
2072 (exit $ac_status); } >/dev/null; then
2073 if test -s conftest.err; then
2074 ac_cpp_err=$ac_c_preproc_warn_flag
2081 if test -z "$ac_cpp_err"; then
2084 echo "$as_me: failed program was:" >&5
2085 cat conftest.$ac_ext >&5
2086 # Broken: fails on valid input.
2089 rm -f conftest.err conftest.$ac_ext
2091 # OK, works on sane cases. Now check whether non-existent headers
2092 # can be detected and how.
2093 cat >conftest.$ac_ext <<_ACEOF
2094 #line 2094 "configure"
2095 #include "confdefs.h"
2096 #include <ac_nonexistent.h>
2098 if { (eval echo "$as_me:2098: \"$ac_cpp conftest.$ac_ext\"") >&5
2099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2101 egrep -v '^ *\+' conftest.er1 >conftest.err
2103 cat conftest.err >&5
2104 echo "$as_me:2104: \$? = $ac_status" >&5
2105 (exit $ac_status); } >/dev/null; then
2106 if test -s conftest.err; then
2107 ac_cpp_err=$ac_c_preproc_warn_flag
2114 if test -z "$ac_cpp_err"; then
2115 # Broken: success on invalid input.
2118 echo "$as_me: failed program was:" >&5
2119 cat conftest.$ac_ext >&5
2120 # Passes both tests.
2124 rm -f conftest.err conftest.$ac_ext
2127 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2128 rm -f conftest.err conftest.$ac_ext
2129 if $ac_preproc_ok; then
2141 echo "$as_me:2141: result: $CPP" >&5
2142 echo "${ECHO_T}$CPP" >&6
2144 for ac_c_preproc_warn_flag in '' yes
2146 # Use a header file that comes with gcc, so configuring glibc
2147 # with a fresh cross-compiler works.
2148 # On the NeXT, cc -E runs the code through the compiler's parser,
2149 # not just through cpp. "Syntax error" is here to catch this case.
2150 cat >conftest.$ac_ext <<_ACEOF
2151 #line 2151 "configure"
2152 #include "confdefs.h"
2156 if { (eval echo "$as_me:2156: \"$ac_cpp conftest.$ac_ext\"") >&5
2157 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2159 egrep -v '^ *\+' conftest.er1 >conftest.err
2161 cat conftest.err >&5
2162 echo "$as_me:2162: \$? = $ac_status" >&5
2163 (exit $ac_status); } >/dev/null; then
2164 if test -s conftest.err; then
2165 ac_cpp_err=$ac_c_preproc_warn_flag
2172 if test -z "$ac_cpp_err"; then
2175 echo "$as_me: failed program was:" >&5
2176 cat conftest.$ac_ext >&5
2177 # Broken: fails on valid input.
2180 rm -f conftest.err conftest.$ac_ext
2182 # OK, works on sane cases. Now check whether non-existent headers
2183 # can be detected and how.
2184 cat >conftest.$ac_ext <<_ACEOF
2185 #line 2185 "configure"
2186 #include "confdefs.h"
2187 #include <ac_nonexistent.h>
2189 if { (eval echo "$as_me:2189: \"$ac_cpp conftest.$ac_ext\"") >&5
2190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2192 egrep -v '^ *\+' conftest.er1 >conftest.err
2194 cat conftest.err >&5
2195 echo "$as_me:2195: \$? = $ac_status" >&5
2196 (exit $ac_status); } >/dev/null; then
2197 if test -s conftest.err; then
2198 ac_cpp_err=$ac_c_preproc_warn_flag
2205 if test -z "$ac_cpp_err"; then
2206 # Broken: success on invalid input.
2209 echo "$as_me: failed program was:" >&5
2210 cat conftest.$ac_ext >&5
2211 # Passes both tests.
2215 rm -f conftest.err conftest.$ac_ext
2218 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2219 rm -f conftest.err conftest.$ac_ext
2220 if $ac_preproc_ok; then
2223 { { echo "$as_me:2223: error: C preprocessor \"$CPP\" fails sanity check" >&5
2224 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2225 { (exit 1); exit 1; }; }
2229 ac_cpp='$CPP $CPPFLAGS'
2230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2233 ac_main_return=return
2235 for ac_prog in mawk gawk nawk awk
2237 # Extract the first word of "$ac_prog", so it can be a program name with args.
2238 set dummy $ac_prog; ac_word=$2
2239 echo "$as_me:2239: checking for $ac_word" >&5
2240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2241 if test "${ac_cv_prog_AWK+set}" = set; then
2242 echo $ECHO_N "(cached) $ECHO_C" >&6
2244 if test -n "$AWK"; then
2245 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2247 ac_save_IFS=$IFS; IFS=$ac_path_separator
2249 for ac_dir in $ac_dummy; do
2251 test -z "$ac_dir" && ac_dir=.
2252 $as_executable_p "$ac_dir/$ac_word" || continue
2253 ac_cv_prog_AWK="$ac_prog"
2254 echo "$as_me:2254: found $ac_dir/$ac_word" >&5
2261 if test -n "$AWK"; then
2262 echo "$as_me:2262: result: $AWK" >&5
2263 echo "${ECHO_T}$AWK" >&6
2265 echo "$as_me:2265: result: no" >&5
2266 echo "${ECHO_T}no" >&6
2269 test -n "$AWK" && break
2272 # Find a good install program. We prefer a C program (faster),
2273 # so one script is as good as another. But avoid the broken or
2274 # incompatible versions:
2275 # SysV /etc/install, /usr/sbin/install
2276 # SunOS /usr/etc/install
2277 # IRIX /sbin/install
2279 # AmigaOS /C/install, which installs bootblocks on floppy discs
2280 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2281 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2282 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2283 # ./install, which can be erroneously created by make from ./install.sh.
2284 echo "$as_me:2284: checking for a BSD compatible install" >&5
2285 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2286 if test -z "$INSTALL"; then
2287 if test "${ac_cv_path_install+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2290 ac_save_IFS=$IFS; IFS=$ac_path_separator
2291 for ac_dir in $PATH; do
2293 # Account for people who put trailing slashes in PATH elements.
2295 / | ./ | .// | /cC/* \
2296 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2299 # OSF1 and SCO ODT 3.0 have their own names for install.
2300 # Don't use installbsd from OSF since it installs stuff as root
2302 for ac_prog in ginstall scoinst install; do
2303 if $as_executable_p "$ac_dir/$ac_prog"; then
2304 if test $ac_prog = install &&
2305 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2306 # AIX install. It has an incompatible calling convention.
2308 elif test $ac_prog = install &&
2309 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2310 # program-specific install script used by HP pwplus--don't use.
2313 ac_cv_path_install="$ac_dir/$ac_prog -c"
2323 if test "${ac_cv_path_install+set}" = set; then
2324 INSTALL=$ac_cv_path_install
2326 # As a last resort, use the slow shell script. We don't cache a
2327 # path for INSTALL within a source directory, because that will
2328 # break other packages using the cache if that directory is
2329 # removed, or if the path is relative.
2330 INSTALL=$ac_install_sh
2333 echo "$as_me:2333: result: $INSTALL" >&5
2334 echo "${ECHO_T}$INSTALL" >&6
2336 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2337 # It thinks the first close brace ends the variable substitution.
2338 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2340 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2342 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2348 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
2349 test -z "$cf_dir" && cf_dir=.
2350 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
2354 for ac_prog in tdlint lint alint splint lclint
2356 # Extract the first word of "$ac_prog", so it can be a program name with args.
2357 set dummy $ac_prog; ac_word=$2
2358 echo "$as_me:2358: checking for $ac_word" >&5
2359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2360 if test "${ac_cv_prog_LINT+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 if test -n "$LINT"; then
2364 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2366 ac_save_IFS=$IFS; IFS=$ac_path_separator
2368 for ac_dir in $ac_dummy; do
2370 test -z "$ac_dir" && ac_dir=.
2371 $as_executable_p "$ac_dir/$ac_word" || continue
2372 ac_cv_prog_LINT="$ac_prog"
2373 echo "$as_me:2373: found $ac_dir/$ac_word" >&5
2379 LINT=$ac_cv_prog_LINT
2380 if test -n "$LINT"; then
2381 echo "$as_me:2381: result: $LINT" >&5
2382 echo "${ECHO_T}$LINT" >&6
2384 echo "$as_me:2384: result: no" >&5
2385 echo "${ECHO_T}no" >&6
2388 test -n "$LINT" && break
2391 echo "$as_me:2391: checking if filesystem supports mixed-case filenames" >&5
2392 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2393 if test "${cf_cv_mixedcase+set}" = set; then
2394 echo $ECHO_N "(cached) $ECHO_C" >&6
2397 if test "$cross_compiling" = yes ; then
2398 case $target_alias in
2399 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
2407 rm -f conftest CONFTEST
2409 if test -f CONFTEST ; then
2414 rm -f conftest CONFTEST
2418 echo "$as_me:2418: result: $cf_cv_mixedcase" >&5
2419 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2420 test "$cf_cv_mixedcase" = yes &&
2421 cat >>confdefs.h <<\EOF
2422 #define MIXEDCASE_FILENAMES 1
2425 for ac_prog in exctags ctags
2427 # Extract the first word of "$ac_prog", so it can be a program name with args.
2428 set dummy $ac_prog; ac_word=$2
2429 echo "$as_me:2429: checking for $ac_word" >&5
2430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2431 if test "${ac_cv_prog_CTAGS+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2434 if test -n "$CTAGS"; then
2435 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2437 ac_save_IFS=$IFS; IFS=$ac_path_separator
2439 for ac_dir in $ac_dummy; do
2441 test -z "$ac_dir" && ac_dir=.
2442 $as_executable_p "$ac_dir/$ac_word" || continue
2443 ac_cv_prog_CTAGS="$ac_prog"
2444 echo "$as_me:2444: found $ac_dir/$ac_word" >&5
2450 CTAGS=$ac_cv_prog_CTAGS
2451 if test -n "$CTAGS"; then
2452 echo "$as_me:2452: result: $CTAGS" >&5
2453 echo "${ECHO_T}$CTAGS" >&6
2455 echo "$as_me:2455: result: no" >&5
2456 echo "${ECHO_T}no" >&6
2459 test -n "$CTAGS" && break
2462 for ac_prog in exetags etags
2464 # Extract the first word of "$ac_prog", so it can be a program name with args.
2465 set dummy $ac_prog; ac_word=$2
2466 echo "$as_me:2466: checking for $ac_word" >&5
2467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2468 if test "${ac_cv_prog_ETAGS+set}" = set; then
2469 echo $ECHO_N "(cached) $ECHO_C" >&6
2471 if test -n "$ETAGS"; then
2472 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2474 ac_save_IFS=$IFS; IFS=$ac_path_separator
2476 for ac_dir in $ac_dummy; do
2478 test -z "$ac_dir" && ac_dir=.
2479 $as_executable_p "$ac_dir/$ac_word" || continue
2480 ac_cv_prog_ETAGS="$ac_prog"
2481 echo "$as_me:2481: found $ac_dir/$ac_word" >&5
2487 ETAGS=$ac_cv_prog_ETAGS
2488 if test -n "$ETAGS"; then
2489 echo "$as_me:2489: result: $ETAGS" >&5
2490 echo "${ECHO_T}$ETAGS" >&6
2492 echo "$as_me:2492: result: no" >&5
2493 echo "${ECHO_T}no" >&6
2496 test -n "$ETAGS" && break
2499 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2500 set dummy ${CTAGS:-ctags}; ac_word=$2
2501 echo "$as_me:2501: checking for $ac_word" >&5
2502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2503 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 if test -n "$MAKE_LOWER_TAGS"; then
2507 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2509 ac_save_IFS=$IFS; IFS=$ac_path_separator
2511 for ac_dir in $ac_dummy; do
2513 test -z "$ac_dir" && ac_dir=.
2514 $as_executable_p "$ac_dir/$ac_word" || continue
2515 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2516 echo "$as_me:2516: found $ac_dir/$ac_word" >&5
2520 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2523 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2524 if test -n "$MAKE_LOWER_TAGS"; then
2525 echo "$as_me:2525: result: $MAKE_LOWER_TAGS" >&5
2526 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2528 echo "$as_me:2528: result: no" >&5
2529 echo "${ECHO_T}no" >&6
2532 if test "$cf_cv_mixedcase" = yes ; then
2533 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2534 set dummy ${ETAGS:-etags}; ac_word=$2
2535 echo "$as_me:2535: checking for $ac_word" >&5
2536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2537 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2540 if test -n "$MAKE_UPPER_TAGS"; then
2541 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2543 ac_save_IFS=$IFS; IFS=$ac_path_separator
2545 for ac_dir in $ac_dummy; do
2547 test -z "$ac_dir" && ac_dir=.
2548 $as_executable_p "$ac_dir/$ac_word" || continue
2549 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2550 echo "$as_me:2550: found $ac_dir/$ac_word" >&5
2554 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2557 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2558 if test -n "$MAKE_UPPER_TAGS"; then
2559 echo "$as_me:2559: result: $MAKE_UPPER_TAGS" >&5
2560 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2562 echo "$as_me:2562: result: no" >&5
2563 echo "${ECHO_T}no" >&6
2570 if test "$MAKE_UPPER_TAGS" = yes ; then
2576 if test "$MAKE_LOWER_TAGS" = yes ; then
2582 echo "$as_me:2582: checking if -lm needed for math functions" >&5
2583 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
2584 if test "${cf_cv_need_libm+set}" = set; then
2585 echo $ECHO_N "(cached) $ECHO_C" >&6
2588 cat >conftest.$ac_ext <<_ACEOF
2589 #line 2589 "configure"
2590 #include "confdefs.h"
2598 double x = rand(); printf("result = %g\n", pow(sin(x),x))
2603 rm -f conftest.$ac_objext conftest$ac_exeext
2604 if { (eval echo "$as_me:2604: \"$ac_link\"") >&5
2605 (eval $ac_link) 2>&5
2607 echo "$as_me:2607: \$? = $ac_status" >&5
2608 (exit $ac_status); } &&
2609 { ac_try='test -s conftest$ac_exeext'
2610 { (eval echo "$as_me:2610: \"$ac_try\"") >&5
2613 echo "$as_me:2613: \$? = $ac_status" >&5
2614 (exit $ac_status); }; }; then
2617 echo "$as_me: failed program was:" >&5
2618 cat conftest.$ac_ext >&5
2621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2623 echo "$as_me:2623: result: $cf_cv_need_libm" >&5
2624 echo "${ECHO_T}$cf_cv_need_libm" >&6
2625 if test "$cf_cv_need_libm" = yes
2633 CC_SHARED_OPTS=unknown
2634 CPPFLAGS="$CPPFLAGS"
2636 DFT_OBJ_SUBDIR=`pwd|sed -e's:.*/::'`
2637 DFT_UPR_MODEL="NORMAL"
2650 PACKAGE="ncurses-examples"
2656 TINFO_LIBS='$(LIBS_CURSES)'
2657 cf_cv_abi_version=""
2658 cf_cv_rel_version=""
2664 if test "$GCC" = yes
2666 cat > conftest.i <<EOF
2668 #define GCC_PRINTF 0
2673 #ifndef GCC_NORETURN
2674 #define GCC_NORETURN /* nothing */
2677 #define GCC_UNUSED /* nothing */
2680 if test "$GCC" = yes
2682 { echo "$as_me:2682: checking for $CC __attribute__ directives..." >&5
2683 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
2684 cat > conftest.$ac_ext <<EOF
2685 #line 2685 "${as_me:-configure}"
2686 #include "confdefs.h"
2687 #include "conftest.h"
2688 #include "conftest.i"
2690 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2692 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
2695 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2697 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
2699 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
2700 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
2701 extern void foo(void) GCC_NORETURN;
2702 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
2704 cf_printf_attribute=no
2705 cf_scanf_attribute=no
2706 for cf_attribute in scanf printf unused noreturn
2709 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
2711 cf_directive="__attribute__(($cf_attribute))"
2712 echo "checking for $CC $cf_directive" 1>&5
2714 case $cf_attribute in
2716 cf_printf_attribute=yes
2717 cat >conftest.h <<EOF
2718 #define GCC_$cf_ATTRIBUTE 1
2722 cf_scanf_attribute=yes
2723 cat >conftest.h <<EOF
2724 #define GCC_$cf_ATTRIBUTE 1
2728 cat >conftest.h <<EOF
2729 #define GCC_$cf_ATTRIBUTE $cf_directive
2734 if { (eval echo "$as_me:2734: \"$ac_compile\"") >&5
2735 (eval $ac_compile) 2>&5
2737 echo "$as_me:2737: \$? = $ac_status" >&5
2738 (exit $ac_status); }; then
2739 test -n "$verbose" && echo "$as_me:2739: result: ... $cf_attribute" >&5
2740 echo "${ECHO_T}... $cf_attribute" >&6
2741 cat conftest.h >>confdefs.h
2742 case $cf_attribute in
2745 cat >>confdefs.h <<EOF
2746 #define GCC_NORETURN $cf_directive
2751 cf_value='/* nothing */'
2752 if test "$cf_printf_attribute" != no ; then
2753 cf_value='__attribute__((format(printf,fmt,var)))'
2755 cat >>confdefs.h <<\EOF
2756 #define GCC_PRINTF 1
2761 cat >>confdefs.h <<EOF
2762 #define GCC_PRINTFLIKE(fmt,var) $cf_value
2767 cf_value='/* nothing */'
2768 if test "$cf_scanf_attribute" != no ; then
2769 cf_value='__attribute__((format(scanf,fmt,var)))'
2771 cat >>confdefs.h <<\EOF
2777 cat >>confdefs.h <<EOF
2778 #define GCC_SCANFLIKE(fmt,var) $cf_value
2784 cat >>confdefs.h <<EOF
2785 #define GCC_UNUSED $cf_directive
2793 fgrep define conftest.i >>confdefs.h
2799 cf_POSIX_C_SOURCE=199506L
2804 cf_xopen_source="-D_ALL_SOURCE"
2810 cf_xopen_source="-D_APPLE_C_SOURCE"
2813 cf_xopen_source="-D_DARWIN_C_SOURCE"
2816 (freebsd*|dragonfly*)
2817 # 5.x headers associate
2818 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
2819 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
2820 cf_POSIX_C_SOURCE=200112L
2822 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2825 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
2828 cf_xopen_source="-D_HPUX_SOURCE"
2831 cf_xopen_source="-D_SGI_SOURCE"
2834 (linux*|gnu*|mint*|k*bsd*-gnu)
2836 echo "$as_me:2836: checking if we must define _GNU_SOURCE" >&5
2837 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
2838 if test "${cf_cv_gnu_source+set}" = set; then
2839 echo $ECHO_N "(cached) $ECHO_C" >&6
2842 cat >conftest.$ac_ext <<_ACEOF
2843 #line 2843 "configure"
2844 #include "confdefs.h"
2845 #include <sys/types.h>
2850 #ifndef _XOPEN_SOURCE
2857 rm -f conftest.$ac_objext
2858 if { (eval echo "$as_me:2858: \"$ac_compile\"") >&5
2859 (eval $ac_compile) 2>&5
2861 echo "$as_me:2861: \$? = $ac_status" >&5
2862 (exit $ac_status); } &&
2863 { ac_try='test -s conftest.$ac_objext'
2864 { (eval echo "$as_me:2864: \"$ac_try\"") >&5
2867 echo "$as_me:2867: \$? = $ac_status" >&5
2868 (exit $ac_status); }; }; then
2871 echo "$as_me: failed program was:" >&5
2872 cat conftest.$ac_ext >&5
2874 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2875 cat >conftest.$ac_ext <<_ACEOF
2876 #line 2876 "configure"
2877 #include "confdefs.h"
2878 #include <sys/types.h>
2883 #ifdef _XOPEN_SOURCE
2890 rm -f conftest.$ac_objext
2891 if { (eval echo "$as_me:2891: \"$ac_compile\"") >&5
2892 (eval $ac_compile) 2>&5
2894 echo "$as_me:2894: \$? = $ac_status" >&5
2895 (exit $ac_status); } &&
2896 { ac_try='test -s conftest.$ac_objext'
2897 { (eval echo "$as_me:2897: \"$ac_try\"") >&5
2900 echo "$as_me:2900: \$? = $ac_status" >&5
2901 (exit $ac_status); }; }; then
2904 echo "$as_me: failed program was:" >&5
2905 cat conftest.$ac_ext >&5
2906 cf_cv_gnu_source=yes
2908 rm -f conftest.$ac_objext conftest.$ac_ext
2912 rm -f conftest.$ac_objext conftest.$ac_ext
2915 echo "$as_me:2915: result: $cf_cv_gnu_source" >&5
2916 echo "${ECHO_T}$cf_cv_gnu_source" >&6
2917 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2921 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
2924 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
2927 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
2929 cf_save_CFLAGS="$CFLAGS"
2930 cf_save_CPPFLAGS="$CPPFLAGS"
2932 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
2933 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2934 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2936 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
2937 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2938 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2940 echo "$as_me:2940: checking if we should define _POSIX_C_SOURCE" >&5
2941 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
2942 if test "${cf_cv_posix_c_source+set}" = set; then
2943 echo $ECHO_N "(cached) $ECHO_C" >&6
2946 echo "${as_me:-configure}:2946: testing if the symbol is already defined go no further ..." 1>&5
2948 cat >conftest.$ac_ext <<_ACEOF
2949 #line 2949 "configure"
2950 #include "confdefs.h"
2951 #include <sys/types.h>
2956 #ifndef _POSIX_C_SOURCE
2963 rm -f conftest.$ac_objext
2964 if { (eval echo "$as_me:2964: \"$ac_compile\"") >&5
2965 (eval $ac_compile) 2>&5
2967 echo "$as_me:2967: \$? = $ac_status" >&5
2968 (exit $ac_status); } &&
2969 { ac_try='test -s conftest.$ac_objext'
2970 { (eval echo "$as_me:2970: \"$ac_try\"") >&5
2973 echo "$as_me:2973: \$? = $ac_status" >&5
2974 (exit $ac_status); }; }; then
2975 cf_cv_posix_c_source=no
2977 echo "$as_me: failed program was:" >&5
2978 cat conftest.$ac_ext >&5
2979 cf_want_posix_source=no
2980 case .$cf_POSIX_C_SOURCE in
2982 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2985 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2986 cf_want_posix_source=yes
2989 cf_want_posix_source=yes
2992 if test "$cf_want_posix_source" = yes ; then
2993 cat >conftest.$ac_ext <<_ACEOF
2994 #line 2994 "configure"
2995 #include "confdefs.h"
2996 #include <sys/types.h>
3001 #ifdef _POSIX_SOURCE
3008 rm -f conftest.$ac_objext
3009 if { (eval echo "$as_me:3009: \"$ac_compile\"") >&5
3010 (eval $ac_compile) 2>&5
3012 echo "$as_me:3012: \$? = $ac_status" >&5
3013 (exit $ac_status); } &&
3014 { ac_try='test -s conftest.$ac_objext'
3015 { (eval echo "$as_me:3015: \"$ac_try\"") >&5
3018 echo "$as_me:3018: \$? = $ac_status" >&5
3019 (exit $ac_status); }; }; then
3022 echo "$as_me: failed program was:" >&5
3023 cat conftest.$ac_ext >&5
3024 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3026 rm -f conftest.$ac_objext conftest.$ac_ext
3029 echo "${as_me:-configure}:3029: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3031 CFLAGS="$cf_trim_CFLAGS"
3032 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3034 echo "${as_me:-configure}:3034: testing if the second compile does not leave our definition intact error ..." 1>&5
3036 cat >conftest.$ac_ext <<_ACEOF
3037 #line 3037 "configure"
3038 #include "confdefs.h"
3039 #include <sys/types.h>
3044 #ifndef _POSIX_C_SOURCE
3051 rm -f conftest.$ac_objext
3052 if { (eval echo "$as_me:3052: \"$ac_compile\"") >&5
3053 (eval $ac_compile) 2>&5
3055 echo "$as_me:3055: \$? = $ac_status" >&5
3056 (exit $ac_status); } &&
3057 { ac_try='test -s conftest.$ac_objext'
3058 { (eval echo "$as_me:3058: \"$ac_try\"") >&5
3061 echo "$as_me:3061: \$? = $ac_status" >&5
3062 (exit $ac_status); }; }; then
3065 echo "$as_me: failed program was:" >&5
3066 cat conftest.$ac_ext >&5
3067 cf_cv_posix_c_source=no
3069 rm -f conftest.$ac_objext conftest.$ac_ext
3070 CFLAGS="$cf_save_CFLAGS"
3071 CPPFLAGS="$cf_save_CPPFLAGS"
3074 rm -f conftest.$ac_objext conftest.$ac_ext
3077 echo "$as_me:3077: result: $cf_cv_posix_c_source" >&5
3078 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3080 if test "$cf_cv_posix_c_source" != no ; then
3081 CFLAGS="$cf_trim_CFLAGS"
3082 CPPFLAGS="$cf_trim_CPPFLAGS"
3087 cf_new_extra_cppflags=
3089 for cf_add_cflags in $cf_cv_posix_c_source
3091 case $cf_fix_cppflags in
3093 case $cf_add_cflags in
3094 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3095 case $cf_add_cflags in
3097 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3099 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3100 && test -z "${cf_tst_cflags}" \
3101 && cf_fix_cppflags=yes
3103 if test $cf_fix_cppflags = yes ; then
3104 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3106 elif test "${cf_tst_cflags}" = "\"'" ; then
3107 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3116 case $cf_add_cflags in
3118 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3120 CPPFLAGS=`echo "$CPPFLAGS" | \
3121 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3122 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3126 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3131 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3136 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3138 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3140 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3141 && test -z "${cf_tst_cflags}" \
3142 && cf_fix_cppflags=no
3147 if test -n "$cf_new_cflags" ; then
3149 CFLAGS="$CFLAGS $cf_new_cflags"
3152 if test -n "$cf_new_cppflags" ; then
3154 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3157 if test -n "$cf_new_extra_cppflags" ; then
3159 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3166 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
3169 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
3170 cf_xopen_source="-D_BSD_SOURCE"
3174 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
3177 cf_xopen_source="-D_OSF_SOURCE"
3180 cf_xopen_source="-D_QNX_SOURCE"
3183 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
3186 cf_xopen_source="-D__EXTENSIONS__"
3187 cf_cv_xopen_source=broken
3189 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
3195 echo "$as_me:3195: checking if we should define _XOPEN_SOURCE" >&5
3196 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3197 if test "${cf_cv_xopen_source+set}" = set; then
3198 echo $ECHO_N "(cached) $ECHO_C" >&6
3201 cat >conftest.$ac_ext <<_ACEOF
3202 #line 3202 "configure"
3203 #include "confdefs.h"
3207 #include <sys/types.h>
3213 #ifndef _XOPEN_SOURCE
3220 rm -f conftest.$ac_objext
3221 if { (eval echo "$as_me:3221: \"$ac_compile\"") >&5
3222 (eval $ac_compile) 2>&5
3224 echo "$as_me:3224: \$? = $ac_status" >&5
3225 (exit $ac_status); } &&
3226 { ac_try='test -s conftest.$ac_objext'
3227 { (eval echo "$as_me:3227: \"$ac_try\"") >&5
3230 echo "$as_me:3230: \$? = $ac_status" >&5
3231 (exit $ac_status); }; }; then
3232 cf_cv_xopen_source=no
3234 echo "$as_me: failed program was:" >&5
3235 cat conftest.$ac_ext >&5
3237 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3238 cat >conftest.$ac_ext <<_ACEOF
3239 #line 3239 "configure"
3240 #include "confdefs.h"
3244 #include <sys/types.h>
3250 #ifdef _XOPEN_SOURCE
3257 rm -f conftest.$ac_objext
3258 if { (eval echo "$as_me:3258: \"$ac_compile\"") >&5
3259 (eval $ac_compile) 2>&5
3261 echo "$as_me:3261: \$? = $ac_status" >&5
3262 (exit $ac_status); } &&
3263 { ac_try='test -s conftest.$ac_objext'
3264 { (eval echo "$as_me:3264: \"$ac_try\"") >&5
3267 echo "$as_me:3267: \$? = $ac_status" >&5
3268 (exit $ac_status); }; }; then
3269 cf_cv_xopen_source=no
3271 echo "$as_me: failed program was:" >&5
3272 cat conftest.$ac_ext >&5
3273 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3275 rm -f conftest.$ac_objext conftest.$ac_ext
3279 rm -f conftest.$ac_objext conftest.$ac_ext
3282 echo "$as_me:3282: result: $cf_cv_xopen_source" >&5
3283 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3285 if test "$cf_cv_xopen_source" != no ; then
3287 CFLAGS=`echo "$CFLAGS" | \
3288 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3289 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3291 CPPFLAGS=`echo "$CPPFLAGS" | \
3292 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3293 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3295 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3300 cf_new_extra_cppflags=
3302 for cf_add_cflags in $cf_temp_xopen_source
3304 case $cf_fix_cppflags in
3306 case $cf_add_cflags in
3307 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3308 case $cf_add_cflags in
3310 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3312 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3313 && test -z "${cf_tst_cflags}" \
3314 && cf_fix_cppflags=yes
3316 if test $cf_fix_cppflags = yes ; then
3317 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3319 elif test "${cf_tst_cflags}" = "\"'" ; then
3320 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3329 case $cf_add_cflags in
3331 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3333 CPPFLAGS=`echo "$CPPFLAGS" | \
3334 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3335 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3339 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3344 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3349 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3351 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3353 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3354 && test -z "${cf_tst_cflags}" \
3355 && cf_fix_cppflags=no
3360 if test -n "$cf_new_cflags" ; then
3362 CFLAGS="$CFLAGS $cf_new_cflags"
3365 if test -n "$cf_new_cppflags" ; then
3367 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3370 if test -n "$cf_new_extra_cppflags" ; then
3372 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3377 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3379 cf_save_CFLAGS="$CFLAGS"
3380 cf_save_CPPFLAGS="$CPPFLAGS"
3382 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3383 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3384 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3386 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3387 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3388 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3390 echo "$as_me:3390: checking if we should define _POSIX_C_SOURCE" >&5
3391 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3392 if test "${cf_cv_posix_c_source+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3396 echo "${as_me:-configure}:3396: testing if the symbol is already defined go no further ..." 1>&5
3398 cat >conftest.$ac_ext <<_ACEOF
3399 #line 3399 "configure"
3400 #include "confdefs.h"
3401 #include <sys/types.h>
3406 #ifndef _POSIX_C_SOURCE
3413 rm -f conftest.$ac_objext
3414 if { (eval echo "$as_me:3414: \"$ac_compile\"") >&5
3415 (eval $ac_compile) 2>&5
3417 echo "$as_me:3417: \$? = $ac_status" >&5
3418 (exit $ac_status); } &&
3419 { ac_try='test -s conftest.$ac_objext'
3420 { (eval echo "$as_me:3420: \"$ac_try\"") >&5
3423 echo "$as_me:3423: \$? = $ac_status" >&5
3424 (exit $ac_status); }; }; then
3425 cf_cv_posix_c_source=no
3427 echo "$as_me: failed program was:" >&5
3428 cat conftest.$ac_ext >&5
3429 cf_want_posix_source=no
3430 case .$cf_POSIX_C_SOURCE in
3432 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3435 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3436 cf_want_posix_source=yes
3439 cf_want_posix_source=yes
3442 if test "$cf_want_posix_source" = yes ; then
3443 cat >conftest.$ac_ext <<_ACEOF
3444 #line 3444 "configure"
3445 #include "confdefs.h"
3446 #include <sys/types.h>
3451 #ifdef _POSIX_SOURCE
3458 rm -f conftest.$ac_objext
3459 if { (eval echo "$as_me:3459: \"$ac_compile\"") >&5
3460 (eval $ac_compile) 2>&5
3462 echo "$as_me:3462: \$? = $ac_status" >&5
3463 (exit $ac_status); } &&
3464 { ac_try='test -s conftest.$ac_objext'
3465 { (eval echo "$as_me:3465: \"$ac_try\"") >&5
3468 echo "$as_me:3468: \$? = $ac_status" >&5
3469 (exit $ac_status); }; }; then
3472 echo "$as_me: failed program was:" >&5
3473 cat conftest.$ac_ext >&5
3474 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3476 rm -f conftest.$ac_objext conftest.$ac_ext
3479 echo "${as_me:-configure}:3479: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3481 CFLAGS="$cf_trim_CFLAGS"
3482 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3484 echo "${as_me:-configure}:3484: testing if the second compile does not leave our definition intact error ..." 1>&5
3486 cat >conftest.$ac_ext <<_ACEOF
3487 #line 3487 "configure"
3488 #include "confdefs.h"
3489 #include <sys/types.h>
3494 #ifndef _POSIX_C_SOURCE
3501 rm -f conftest.$ac_objext
3502 if { (eval echo "$as_me:3502: \"$ac_compile\"") >&5
3503 (eval $ac_compile) 2>&5
3505 echo "$as_me:3505: \$? = $ac_status" >&5
3506 (exit $ac_status); } &&
3507 { ac_try='test -s conftest.$ac_objext'
3508 { (eval echo "$as_me:3508: \"$ac_try\"") >&5
3511 echo "$as_me:3511: \$? = $ac_status" >&5
3512 (exit $ac_status); }; }; then
3515 echo "$as_me: failed program was:" >&5
3516 cat conftest.$ac_ext >&5
3517 cf_cv_posix_c_source=no
3519 rm -f conftest.$ac_objext conftest.$ac_ext
3520 CFLAGS="$cf_save_CFLAGS"
3521 CPPFLAGS="$cf_save_CPPFLAGS"
3524 rm -f conftest.$ac_objext conftest.$ac_ext
3527 echo "$as_me:3527: result: $cf_cv_posix_c_source" >&5
3528 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3530 if test "$cf_cv_posix_c_source" != no ; then
3531 CFLAGS="$cf_trim_CFLAGS"
3532 CPPFLAGS="$cf_trim_CPPFLAGS"
3537 cf_new_extra_cppflags=
3539 for cf_add_cflags in $cf_cv_posix_c_source
3541 case $cf_fix_cppflags in
3543 case $cf_add_cflags in
3544 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3545 case $cf_add_cflags in
3547 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3549 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3550 && test -z "${cf_tst_cflags}" \
3551 && cf_fix_cppflags=yes
3553 if test $cf_fix_cppflags = yes ; then
3554 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3556 elif test "${cf_tst_cflags}" = "\"'" ; then
3557 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3566 case $cf_add_cflags in
3568 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3570 CPPFLAGS=`echo "$CPPFLAGS" | \
3571 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3572 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3576 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3581 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3586 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3588 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3590 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3591 && test -z "${cf_tst_cflags}" \
3592 && cf_fix_cppflags=no
3597 if test -n "$cf_new_cflags" ; then
3599 CFLAGS="$CFLAGS $cf_new_cflags"
3602 if test -n "$cf_new_cppflags" ; then
3604 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3607 if test -n "$cf_new_extra_cppflags" ; then
3609 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3617 if test -n "$cf_xopen_source" ; then
3622 cf_new_extra_cppflags=
3624 for cf_add_cflags in $cf_xopen_source
3626 case $cf_fix_cppflags in
3628 case $cf_add_cflags in
3629 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3630 case $cf_add_cflags in
3632 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3634 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3635 && test -z "${cf_tst_cflags}" \
3636 && cf_fix_cppflags=yes
3638 if test $cf_fix_cppflags = yes ; then
3639 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3641 elif test "${cf_tst_cflags}" = "\"'" ; then
3642 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3651 case $cf_add_cflags in
3653 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3655 CPPFLAGS=`echo "$CPPFLAGS" | \
3656 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3657 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3661 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3666 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3671 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3673 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3675 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3676 && test -z "${cf_tst_cflags}" \
3677 && cf_fix_cppflags=no
3682 if test -n "$cf_new_cflags" ; then
3683 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
3685 echo "${as_me:-configure}:3685: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
3687 CFLAGS="$CFLAGS $cf_new_cflags"
3690 if test -n "$cf_new_cppflags" ; then
3691 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
3693 echo "${as_me:-configure}:3693: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
3695 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3698 if test -n "$cf_new_extra_cppflags" ; then
3699 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
3701 echo "${as_me:-configure}:3701: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
3703 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3708 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
3709 echo "$as_me:3709: checking if _XOPEN_SOURCE really is set" >&5
3710 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
3711 cat >conftest.$ac_ext <<_ACEOF
3712 #line 3712 "configure"
3713 #include "confdefs.h"
3719 #ifndef _XOPEN_SOURCE
3726 rm -f conftest.$ac_objext
3727 if { (eval echo "$as_me:3727: \"$ac_compile\"") >&5
3728 (eval $ac_compile) 2>&5
3730 echo "$as_me:3730: \$? = $ac_status" >&5
3731 (exit $ac_status); } &&
3732 { ac_try='test -s conftest.$ac_objext'
3733 { (eval echo "$as_me:3733: \"$ac_try\"") >&5
3736 echo "$as_me:3736: \$? = $ac_status" >&5
3737 (exit $ac_status); }; }; then
3738 cf_XOPEN_SOURCE_set=yes
3740 echo "$as_me: failed program was:" >&5
3741 cat conftest.$ac_ext >&5
3742 cf_XOPEN_SOURCE_set=no
3744 rm -f conftest.$ac_objext conftest.$ac_ext
3745 echo "$as_me:3745: result: $cf_XOPEN_SOURCE_set" >&5
3746 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
3747 if test $cf_XOPEN_SOURCE_set = yes
3749 cat >conftest.$ac_ext <<_ACEOF
3750 #line 3750 "configure"
3751 #include "confdefs.h"
3757 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
3764 rm -f conftest.$ac_objext
3765 if { (eval echo "$as_me:3765: \"$ac_compile\"") >&5
3766 (eval $ac_compile) 2>&5
3768 echo "$as_me:3768: \$? = $ac_status" >&5
3769 (exit $ac_status); } &&
3770 { ac_try='test -s conftest.$ac_objext'
3771 { (eval echo "$as_me:3771: \"$ac_try\"") >&5
3774 echo "$as_me:3774: \$? = $ac_status" >&5
3775 (exit $ac_status); }; }; then
3776 cf_XOPEN_SOURCE_set_ok=yes
3778 echo "$as_me: failed program was:" >&5
3779 cat conftest.$ac_ext >&5
3780 cf_XOPEN_SOURCE_set_ok=no
3782 rm -f conftest.$ac_objext conftest.$ac_ext
3783 if test $cf_XOPEN_SOURCE_set_ok = no
3785 { echo "$as_me:3785: WARNING: _XOPEN_SOURCE is lower than requested" >&5
3786 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
3790 echo "$as_me:3790: checking if we should define _XOPEN_SOURCE" >&5
3791 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3792 if test "${cf_cv_xopen_source+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3796 cat >conftest.$ac_ext <<_ACEOF
3797 #line 3797 "configure"
3798 #include "confdefs.h"
3802 #include <sys/types.h>
3808 #ifndef _XOPEN_SOURCE
3815 rm -f conftest.$ac_objext
3816 if { (eval echo "$as_me:3816: \"$ac_compile\"") >&5
3817 (eval $ac_compile) 2>&5
3819 echo "$as_me:3819: \$? = $ac_status" >&5
3820 (exit $ac_status); } &&
3821 { ac_try='test -s conftest.$ac_objext'
3822 { (eval echo "$as_me:3822: \"$ac_try\"") >&5
3825 echo "$as_me:3825: \$? = $ac_status" >&5
3826 (exit $ac_status); }; }; then
3827 cf_cv_xopen_source=no
3829 echo "$as_me: failed program was:" >&5
3830 cat conftest.$ac_ext >&5
3832 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3833 cat >conftest.$ac_ext <<_ACEOF
3834 #line 3834 "configure"
3835 #include "confdefs.h"
3839 #include <sys/types.h>
3845 #ifdef _XOPEN_SOURCE
3852 rm -f conftest.$ac_objext
3853 if { (eval echo "$as_me:3853: \"$ac_compile\"") >&5
3854 (eval $ac_compile) 2>&5
3856 echo "$as_me:3856: \$? = $ac_status" >&5
3857 (exit $ac_status); } &&
3858 { ac_try='test -s conftest.$ac_objext'
3859 { (eval echo "$as_me:3859: \"$ac_try\"") >&5
3862 echo "$as_me:3862: \$? = $ac_status" >&5
3863 (exit $ac_status); }; }; then
3864 cf_cv_xopen_source=no
3866 echo "$as_me: failed program was:" >&5
3867 cat conftest.$ac_ext >&5
3868 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3870 rm -f conftest.$ac_objext conftest.$ac_ext
3874 rm -f conftest.$ac_objext conftest.$ac_ext
3877 echo "$as_me:3877: result: $cf_cv_xopen_source" >&5
3878 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3880 if test "$cf_cv_xopen_source" != no ; then
3882 CFLAGS=`echo "$CFLAGS" | \
3883 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3884 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3886 CPPFLAGS=`echo "$CPPFLAGS" | \
3887 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3888 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3890 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3895 cf_new_extra_cppflags=
3897 for cf_add_cflags in $cf_temp_xopen_source
3899 case $cf_fix_cppflags in
3901 case $cf_add_cflags in
3902 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3903 case $cf_add_cflags in
3905 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3907 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3908 && test -z "${cf_tst_cflags}" \
3909 && cf_fix_cppflags=yes
3911 if test $cf_fix_cppflags = yes ; then
3912 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3914 elif test "${cf_tst_cflags}" = "\"'" ; then
3915 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3924 case $cf_add_cflags in
3926 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3928 CPPFLAGS=`echo "$CPPFLAGS" | \
3929 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3930 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3934 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3939 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3944 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3946 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3948 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3949 && test -z "${cf_tst_cflags}" \
3950 && cf_fix_cppflags=no
3955 if test -n "$cf_new_cflags" ; then
3957 CFLAGS="$CFLAGS $cf_new_cflags"
3960 if test -n "$cf_new_cppflags" ; then
3962 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3965 if test -n "$cf_new_extra_cppflags" ; then
3967 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3975 echo "$as_me:3975: checking for signal global datatype" >&5
3976 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
3977 if test "${cf_cv_sig_atomic_t+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3982 "volatile sig_atomic_t" \
3986 cat >conftest.$ac_ext <<_ACEOF
3987 #line 3987 "configure"
3988 #include "confdefs.h"
3990 #include <sys/types.h>
3996 static void handler(int sig)
4003 signal(SIGINT, handler);
4009 rm -f conftest.$ac_objext
4010 if { (eval echo "$as_me:4010: \"$ac_compile\"") >&5
4011 (eval $ac_compile) 2>&5
4013 echo "$as_me:4013: \$? = $ac_status" >&5
4014 (exit $ac_status); } &&
4015 { ac_try='test -s conftest.$ac_objext'
4016 { (eval echo "$as_me:4016: \"$ac_try\"") >&5
4019 echo "$as_me:4019: \$? = $ac_status" >&5
4020 (exit $ac_status); }; }; then
4021 cf_cv_sig_atomic_t=$cf_type
4023 echo "$as_me: failed program was:" >&5
4024 cat conftest.$ac_ext >&5
4025 cf_cv_sig_atomic_t=no
4027 rm -f conftest.$ac_objext conftest.$ac_ext
4028 test "$cf_cv_sig_atomic_t" != no && break
4033 echo "$as_me:4033: result: $cf_cv_sig_atomic_t" >&5
4034 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
4035 test "$cf_cv_sig_atomic_t" != no &&
4036 cat >>confdefs.h <<EOF
4037 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
4040 echo "$as_me:4040: checking if you want to use pkg-config" >&5
4041 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
4043 # Check whether --with-pkg-config or --without-pkg-config was given.
4044 if test "${with_pkg_config+set}" = set; then
4045 withval="$with_pkg_config"
4046 cf_pkg_config=$withval
4050 echo "$as_me:4050: result: $cf_pkg_config" >&5
4051 echo "${ECHO_T}$cf_pkg_config" >&6
4053 case $cf_pkg_config in
4059 if test -n "$ac_tool_prefix"; then
4060 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4061 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4062 echo "$as_me:4062: checking for $ac_word" >&5
4063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4064 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4069 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4072 ac_save_IFS=$IFS; IFS=$ac_path_separator
4074 for ac_dir in $ac_dummy; do
4076 test -z "$ac_dir" && ac_dir=.
4077 if $as_executable_p "$ac_dir/$ac_word"; then
4078 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4079 echo "$as_me:4079: found $ac_dir/$ac_word" >&5
4087 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4089 if test -n "$PKG_CONFIG"; then
4090 echo "$as_me:4090: result: $PKG_CONFIG" >&5
4091 echo "${ECHO_T}$PKG_CONFIG" >&6
4093 echo "$as_me:4093: result: no" >&5
4094 echo "${ECHO_T}no" >&6
4098 if test -z "$ac_cv_path_PKG_CONFIG"; then
4099 ac_pt_PKG_CONFIG=$PKG_CONFIG
4100 # Extract the first word of "pkg-config", so it can be a program name with args.
4101 set dummy pkg-config; ac_word=$2
4102 echo "$as_me:4102: checking for $ac_word" >&5
4103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4104 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4107 case $ac_pt_PKG_CONFIG in
4109 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4112 ac_save_IFS=$IFS; IFS=$ac_path_separator
4114 for ac_dir in $ac_dummy; do
4116 test -z "$ac_dir" && ac_dir=.
4117 if $as_executable_p "$ac_dir/$ac_word"; then
4118 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
4119 echo "$as_me:4119: found $ac_dir/$ac_word" >&5
4124 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
4128 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4130 if test -n "$ac_pt_PKG_CONFIG"; then
4131 echo "$as_me:4131: result: $ac_pt_PKG_CONFIG" >&5
4132 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4134 echo "$as_me:4134: result: no" >&5
4135 echo "${ECHO_T}no" >&6
4138 PKG_CONFIG=$ac_pt_PKG_CONFIG
4140 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4149 test -z "$PKG_CONFIG" && PKG_CONFIG=none
4150 if test "$PKG_CONFIG" != none ; then
4152 if test "x$prefix" != xNONE; then
4153 cf_path_syntax="$prefix"
4155 cf_path_syntax="$ac_default_prefix"
4158 case ".$PKG_CONFIG" in
4163 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4165 (.\${*prefix}*|.\${*dir}*)
4166 eval PKG_CONFIG="$PKG_CONFIG"
4167 case ".$PKG_CONFIG" in
4169 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
4174 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
4177 { { echo "$as_me:4177: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
4178 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
4179 { (exit 1); exit 1; }; }
4183 elif test "x$cf_pkg_config" != xno ; then
4184 { echo "$as_me:4184: WARNING: pkg-config is not installed" >&5
4185 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
4188 echo "$as_me:4188: checking if you want to see long compiling messages" >&5
4189 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
4191 # Check whether --enable-echo or --disable-echo was given.
4192 if test "${enable_echo+set}" = set; then
4193 enableval="$enable_echo"
4194 test "$enableval" != no && enableval=yes
4195 if test "$enableval" != "yes" ; then
4198 ECHO_LD='@echo linking $@;'
4199 RULE_CC='@echo compiling $<'
4200 SHOW_CC='@echo compiling $@'
4222 echo "$as_me:4222: result: $enableval" >&5
4223 echo "${ECHO_T}$enableval" >&6
4225 echo "$as_me:4225: checking for ncurses wrap-prefix" >&5
4226 echo $ECHO_N "checking for ncurses wrap-prefix... $ECHO_C" >&6
4228 # Check whether --with-ncurses-wrap-prefix or --without-ncurses-wrap-prefix was given.
4229 if test "${with_ncurses_wrap_prefix+set}" = set; then
4230 withval="$with_ncurses_wrap_prefix"
4231 NCURSES_WRAP_PREFIX=$withval
4233 NCURSES_WRAP_PREFIX=_nc_
4235 echo "$as_me:4235: result: $NCURSES_WRAP_PREFIX" >&5
4236 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
4238 echo "$as_me:4238: checking if you want to check for wide-character functions" >&5
4239 echo $ECHO_N "checking if you want to check for wide-character functions... $ECHO_C" >&6
4241 # Check whether --enable-widec or --disable-widec was given.
4242 if test "${enable_widec+set}" = set; then
4243 enableval="$enable_widec"
4244 test "$enableval" != no && enableval=yes
4245 if test "$enableval" != "yes" ; then
4255 echo "$as_me:4255: result: $cf_enable_widec" >&5
4256 echo "${ECHO_T}$cf_enable_widec" >&6
4258 echo "$as_me:4258: checking for specific curses-directory" >&5
4259 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
4261 # Check whether --with-curses-dir or --without-curses-dir was given.
4262 if test "${with_curses_dir+set}" = set; then
4263 withval="$with_curses_dir"
4264 cf_cv_curses_dir=$withval
4268 echo "$as_me:4268: result: $cf_cv_curses_dir" >&5
4269 echo "${ECHO_T}$cf_cv_curses_dir" >&6
4271 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
4274 if test "x$prefix" != xNONE; then
4275 cf_path_syntax="$prefix"
4277 cf_path_syntax="$ac_default_prefix"
4285 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4287 (.\${*prefix}*|.\${*dir}*)
4288 eval withval="$withval"
4291 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4296 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4299 { { echo "$as_me:4299: error: expected a pathname, not \"$withval\"" >&5
4300 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
4301 { (exit 1); exit 1; }; }
4305 if test -d "$cf_cv_curses_dir"
4308 if test -n "$cf_cv_curses_dir/include" ; then
4309 for cf_add_incdir in $cf_cv_curses_dir/include
4311 while test $cf_add_incdir != /usr/include
4313 if test -d $cf_add_incdir
4316 if test -n "$CFLAGS$CPPFLAGS" ; then
4317 # a loop is needed to ensure we can add subdirs of existing dirs
4318 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4319 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4320 cf_have_incdir=yes; break
4325 if test "$cf_have_incdir" = no ; then
4326 if test "$cf_add_incdir" = /usr/local/include ; then
4327 if test "$GCC" = yes
4329 cf_save_CPPFLAGS=$CPPFLAGS
4330 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4331 cat >conftest.$ac_ext <<_ACEOF
4332 #line 4332 "configure"
4333 #include "confdefs.h"
4343 rm -f conftest.$ac_objext
4344 if { (eval echo "$as_me:4344: \"$ac_compile\"") >&5
4345 (eval $ac_compile) 2>&5
4347 echo "$as_me:4347: \$? = $ac_status" >&5
4348 (exit $ac_status); } &&
4349 { ac_try='test -s conftest.$ac_objext'
4350 { (eval echo "$as_me:4350: \"$ac_try\"") >&5
4353 echo "$as_me:4353: \$? = $ac_status" >&5
4354 (exit $ac_status); }; }; then
4357 echo "$as_me: failed program was:" >&5
4358 cat conftest.$ac_ext >&5
4361 rm -f conftest.$ac_objext conftest.$ac_ext
4362 CPPFLAGS=$cf_save_CPPFLAGS
4367 if test "$cf_have_incdir" = no ; then
4368 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4370 echo "${as_me:-configure}:4370: testing adding $cf_add_incdir to include-path ..." 1>&5
4372 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4374 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4375 test "$cf_top_incdir" = "$cf_add_incdir" && break
4376 cf_add_incdir="$cf_top_incdir"
4385 if test -n "$cf_cv_curses_dir/lib" ; then
4386 for cf_add_libdir in $cf_cv_curses_dir/lib
4388 if test $cf_add_libdir = /usr/lib ; then
4390 elif test -d $cf_add_libdir
4393 if test -n "$LDFLAGS$LIBS" ; then
4394 # a loop is needed to ensure we can add subdirs of existing dirs
4395 for cf_test_libdir in $LDFLAGS $LIBS ; do
4396 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
4397 cf_have_libdir=yes; break
4401 if test "$cf_have_libdir" = no ; then
4402 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
4404 echo "${as_me:-configure}:4404: testing adding $cf_add_libdir to library-path ..." 1>&5
4406 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
4417 echo "$as_me:4417: checking for specified curses library type" >&5
4418 echo $ECHO_N "checking for specified curses library type... $ECHO_C" >&6
4420 # Check whether --with-screen or --without-screen was given.
4421 if test "${with_screen+set}" = set; then
4422 withval="$with_screen"
4423 cf_cv_screen=$withval
4426 # Check whether --with-ncursesw or --without-ncursesw was given.
4427 if test "${with_ncursesw+set}" = set; then
4428 withval="$with_ncursesw"
4429 cf_cv_screen=ncursesw
4432 # Check whether --with-ncurses or --without-ncurses was given.
4433 if test "${with_ncurses+set}" = set; then
4434 withval="$with_ncurses"
4435 cf_cv_screen=ncurses
4438 # Check whether --with-pdcurses or --without-pdcurses was given.
4439 if test "${with_pdcurses+set}" = set; then
4440 withval="$with_pdcurses"
4441 cf_cv_screen=pdcurses
4444 # Check whether --with-curses-colr or --without-curses-colr was given.
4445 if test "${with_curses_colr+set}" = set; then
4446 withval="$with_curses_colr"
4447 cf_cv_screen=curses_colr
4450 # Check whether --with-curses-5lib or --without-curses-5lib was given.
4451 if test "${with_curses_5lib+set}" = set; then
4452 withval="$with_curses_5lib"
4453 cf_cv_screen=curses_5lib
4461 echo "$as_me:4461: result: $cf_cv_screen" >&5
4462 echo "${ECHO_T}$cf_cv_screen" >&6
4464 case $cf_cv_screen in
4467 echo "$as_me:4467: checking for extra include directories" >&5
4468 echo $ECHO_N "checking for extra include directories... $ECHO_C" >&6
4469 if test "${cf_cv_curses_incdir+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4473 cf_cv_curses_incdir=no
4476 if test "x$cf_cv_screen" = "xcurses_colr"
4478 test -d /usr/include/curses_colr && \
4479 cf_cv_curses_incdir="-I/usr/include/curses_colr"
4483 if test "x$cf_cv_screen" = "xcurses_5lib"
4485 test -d /usr/5lib && \
4486 test -d /usr/5include && \
4487 cf_cv_curses_incdir="-I/usr/5include"
4493 echo "$as_me:4493: result: $cf_cv_curses_incdir" >&5
4494 echo "${ECHO_T}$cf_cv_curses_incdir" >&6
4495 test "$cf_cv_curses_incdir" != no && CPPFLAGS="$CPPFLAGS $cf_cv_curses_incdir"
4497 echo "$as_me:4497: checking if we have identified curses headers" >&5
4498 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
4499 if test "${cf_cv_ncurses_header+set}" = set; then
4500 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 cf_cv_ncurses_header=none
4506 curses.h ncurses/ncurses.h ncurses/curses.h
4508 cat >conftest.$ac_ext <<_ACEOF
4509 #line 4509 "configure"
4510 #include "confdefs.h"
4511 #include <${cf_header}>
4515 initscr(); tgoto("?", 0,0)
4520 rm -f conftest.$ac_objext
4521 if { (eval echo "$as_me:4521: \"$ac_compile\"") >&5
4522 (eval $ac_compile) 2>&5
4524 echo "$as_me:4524: \$? = $ac_status" >&5
4525 (exit $ac_status); } &&
4526 { ac_try='test -s conftest.$ac_objext'
4527 { (eval echo "$as_me:4527: \"$ac_try\"") >&5
4530 echo "$as_me:4530: \$? = $ac_status" >&5
4531 (exit $ac_status); }; }; then
4532 cf_cv_ncurses_header=$cf_header; break
4534 echo "$as_me: failed program was:" >&5
4535 cat conftest.$ac_ext >&5
4537 rm -f conftest.$ac_objext conftest.$ac_ext
4541 echo "$as_me:4541: result: $cf_cv_ncurses_header" >&5
4542 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
4544 if test "$cf_cv_ncurses_header" = none ; then
4545 { { echo "$as_me:4545: error: No curses header-files found" >&5
4546 echo "$as_me: error: No curses header-files found" >&2;}
4547 { (exit 1); exit 1; }; }
4550 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
4552 for ac_header in $cf_cv_ncurses_header
4554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4555 echo "$as_me:4555: checking for $ac_header" >&5
4556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4558 echo $ECHO_N "(cached) $ECHO_C" >&6
4560 cat >conftest.$ac_ext <<_ACEOF
4561 #line 4561 "configure"
4562 #include "confdefs.h"
4563 #include <$ac_header>
4565 if { (eval echo "$as_me:4565: \"$ac_cpp conftest.$ac_ext\"") >&5
4566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4568 egrep -v '^ *\+' conftest.er1 >conftest.err
4570 cat conftest.err >&5
4571 echo "$as_me:4571: \$? = $ac_status" >&5
4572 (exit $ac_status); } >/dev/null; then
4573 if test -s conftest.err; then
4574 ac_cpp_err=$ac_c_preproc_warn_flag
4581 if test -z "$ac_cpp_err"; then
4582 eval "$as_ac_Header=yes"
4584 echo "$as_me: failed program was:" >&5
4585 cat conftest.$ac_ext >&5
4586 eval "$as_ac_Header=no"
4588 rm -f conftest.err conftest.$ac_ext
4590 echo "$as_me:4590: result: `eval echo '${'$as_ac_Header'}'`" >&5
4591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4593 cat >>confdefs.h <<EOF
4594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4600 echo "$as_me:4600: checking for terminfo header" >&5
4601 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
4602 if test "${cf_cv_term_header+set}" = set; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4606 case ${cf_cv_ncurses_header} in
4607 (*/ncurses.h|*/ncursesw.h)
4608 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
4611 cf_term_header=term.h
4615 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
4617 cat >conftest.$ac_ext <<_ACEOF
4618 #line 4618 "configure"
4619 #include "confdefs.h"
4621 #include <${cf_cv_ncurses_header:-curses.h}>
4627 int x = auto_left_margin
4632 rm -f conftest.$ac_objext
4633 if { (eval echo "$as_me:4633: \"$ac_compile\"") >&5
4634 (eval $ac_compile) 2>&5
4636 echo "$as_me:4636: \$? = $ac_status" >&5
4637 (exit $ac_status); } &&
4638 { ac_try='test -s conftest.$ac_objext'
4639 { (eval echo "$as_me:4639: \"$ac_try\"") >&5
4642 echo "$as_me:4642: \$? = $ac_status" >&5
4643 (exit $ac_status); }; }; then
4645 cf_cv_term_header="$cf_test"
4647 echo "$as_me: failed program was:" >&5
4648 cat conftest.$ac_ext >&5
4650 cf_cv_term_header=unknown
4653 rm -f conftest.$ac_objext conftest.$ac_ext
4654 test "$cf_cv_term_header" != unknown && break
4658 echo "$as_me:4658: result: $cf_cv_term_header" >&5
4659 echo "${ECHO_T}$cf_cv_term_header" >&6
4661 # Set definitions to allow ifdef'ing to accommodate subdirectories
4663 case $cf_cv_term_header in
4666 cat >>confdefs.h <<\EOF
4667 #define HAVE_TERM_H 1
4673 case $cf_cv_term_header in
4676 cat >>confdefs.h <<\EOF
4677 #define HAVE_NCURSES_TERM_H 1
4683 cat >>confdefs.h <<\EOF
4684 #define HAVE_NCURSESW_TERM_H 1
4690 echo "$as_me:4690: checking for ncurses version" >&5
4691 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
4692 if test "${cf_cv_ncurses_version+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4696 cf_cv_ncurses_version=no
4699 if test "$cross_compiling" = yes; then
4701 # This will not work if the preprocessor splits the line after the
4702 # Autoconf token. The 'unproto' program does that.
4703 cat > conftest.$ac_ext <<EOF
4704 #include <${cf_cv_ncurses_header:-curses.h}>
4706 #ifdef NCURSES_VERSION
4707 Autoconf NCURSES_VERSION
4715 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
4716 { (eval echo "$as_me:4716: \"$cf_try\"") >&5
4719 echo "$as_me:4719: \$? = $ac_status" >&5
4720 (exit $ac_status); }
4721 if test -f conftest.out ; then
4722 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
4723 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
4728 cat >conftest.$ac_ext <<_ACEOF
4729 #line 4729 "configure"
4730 #include "confdefs.h"
4732 #include <${cf_cv_ncurses_header:-curses.h}>
4736 FILE *fp = fopen("$cf_tempfile", "w");
4737 #ifdef NCURSES_VERSION
4738 # ifdef NCURSES_VERSION_PATCH
4739 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
4741 fprintf(fp, "%s\n", NCURSES_VERSION);
4745 fprintf(fp, "old\n");
4750 ${cf_cv_main_return:-return}(0);
4753 rm -f conftest$ac_exeext
4754 if { (eval echo "$as_me:4754: \"$ac_link\"") >&5
4755 (eval $ac_link) 2>&5
4757 echo "$as_me:4757: \$? = $ac_status" >&5
4758 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4759 { (eval echo "$as_me:4759: \"$ac_try\"") >&5
4762 echo "$as_me:4762: \$? = $ac_status" >&5
4763 (exit $ac_status); }; }; then
4765 cf_cv_ncurses_version=`cat $cf_tempfile`
4767 echo "$as_me: program exited with status $ac_status" >&5
4768 echo "$as_me: failed program was:" >&5
4769 cat conftest.$ac_ext >&5
4771 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4776 echo "$as_me:4776: result: $cf_cv_ncurses_version" >&5
4777 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
4778 test "$cf_cv_ncurses_version" = no ||
4779 cat >>confdefs.h <<\EOF
4783 echo "$as_me:4783: checking if we have identified curses libraries" >&5
4784 echo $ECHO_N "checking if we have identified curses libraries... $ECHO_C" >&6
4785 cat >conftest.$ac_ext <<_ACEOF
4786 #line 4786 "configure"
4787 #include "confdefs.h"
4788 #include <${cf_cv_ncurses_header:-curses.h}>
4792 initscr(); tgoto("?", 0,0)
4797 rm -f conftest.$ac_objext conftest$ac_exeext
4798 if { (eval echo "$as_me:4798: \"$ac_link\"") >&5
4799 (eval $ac_link) 2>&5
4801 echo "$as_me:4801: \$? = $ac_status" >&5
4802 (exit $ac_status); } &&
4803 { ac_try='test -s conftest$ac_exeext'
4804 { (eval echo "$as_me:4804: \"$ac_try\"") >&5
4807 echo "$as_me:4807: \$? = $ac_status" >&5
4808 (exit $ac_status); }; }; then
4811 echo "$as_me: failed program was:" >&5
4812 cat conftest.$ac_ext >&5
4815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4816 echo "$as_me:4816: result: $cf_result" >&5
4817 echo "${ECHO_T}$cf_result" >&6
4819 if test "$cf_result" = no ; then
4822 echo "$as_me:4822: checking for tgoto in -lmytinfo" >&5
4823 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
4824 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4827 ac_check_lib_save_LIBS=$LIBS
4828 LIBS="-lmytinfo $LIBS"
4829 cat >conftest.$ac_ext <<_ACEOF
4830 #line 4830 "configure"
4831 #include "confdefs.h"
4833 /* Override any gcc2 internal prototype to avoid an error. */
4837 /* We use char because int might match the return type of a gcc2
4838 builtin and then its argument prototype would still apply. */
4848 rm -f conftest.$ac_objext conftest$ac_exeext
4849 if { (eval echo "$as_me:4849: \"$ac_link\"") >&5
4850 (eval $ac_link) 2>&5
4852 echo "$as_me:4852: \$? = $ac_status" >&5
4853 (exit $ac_status); } &&
4854 { ac_try='test -s conftest$ac_exeext'
4855 { (eval echo "$as_me:4855: \"$ac_try\"") >&5
4858 echo "$as_me:4858: \$? = $ac_status" >&5
4859 (exit $ac_status); }; }; then
4860 ac_cv_lib_mytinfo_tgoto=yes
4862 echo "$as_me: failed program was:" >&5
4863 cat conftest.$ac_ext >&5
4864 ac_cv_lib_mytinfo_tgoto=no
4866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4867 LIBS=$ac_check_lib_save_LIBS
4869 echo "$as_me:4869: result: $ac_cv_lib_mytinfo_tgoto" >&5
4870 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
4871 if test $ac_cv_lib_mytinfo_tgoto = yes; then
4873 cf_add_libs="-lmytinfo"
4874 # Filter out duplicates - this happens with badly-designed ".pc" files...
4875 for cf_add_1lib in $LIBS
4877 for cf_add_2lib in $cf_add_libs
4879 if test "x$cf_add_1lib" = "x$cf_add_2lib"
4885 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
4893 # Looking at HPUX 10.20, the Hcurses library is the oldest (1997), cur_colr
4894 # next (1998), and xcurses "newer" (2000). There is no header file for
4895 # Hcurses; the subdirectory curses_colr has the headers (curses.h and
4896 # term.h) for cur_colr
4897 if test "x$cf_cv_screen" = "xcurses_colr"
4899 echo "$as_me:4899: checking for initscr in -lcur_colr" >&5
4900 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
4901 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4904 ac_check_lib_save_LIBS=$LIBS
4905 LIBS="-lcur_colr $LIBS"
4906 cat >conftest.$ac_ext <<_ACEOF
4907 #line 4907 "configure"
4908 #include "confdefs.h"
4910 /* Override any gcc2 internal prototype to avoid an error. */
4914 /* We use char because int might match the return type of a gcc2
4915 builtin and then its argument prototype would still apply. */
4925 rm -f conftest.$ac_objext conftest$ac_exeext
4926 if { (eval echo "$as_me:4926: \"$ac_link\"") >&5
4927 (eval $ac_link) 2>&5
4929 echo "$as_me:4929: \$? = $ac_status" >&5
4930 (exit $ac_status); } &&
4931 { ac_try='test -s conftest$ac_exeext'
4932 { (eval echo "$as_me:4932: \"$ac_try\"") >&5
4935 echo "$as_me:4935: \$? = $ac_status" >&5
4936 (exit $ac_status); }; }; then
4937 ac_cv_lib_cur_colr_initscr=yes
4939 echo "$as_me: failed program was:" >&5
4940 cat conftest.$ac_ext >&5
4941 ac_cv_lib_cur_colr_initscr=no
4943 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4944 LIBS=$ac_check_lib_save_LIBS
4946 echo "$as_me:4946: result: $ac_cv_lib_cur_colr_initscr" >&5
4947 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
4948 if test $ac_cv_lib_cur_colr_initscr = yes; then
4950 cf_add_libs="-lcur_colr"
4951 # Filter out duplicates - this happens with badly-designed ".pc" files...
4952 for cf_add_1lib in $LIBS
4954 for cf_add_2lib in $cf_add_libs
4956 if test "x$cf_add_1lib" = "x$cf_add_2lib"
4962 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
4966 ac_cv_func_initscr=yes
4970 echo "$as_me:4970: checking for initscr in -lHcurses" >&5
4971 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
4972 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4975 ac_check_lib_save_LIBS=$LIBS
4976 LIBS="-lHcurses $LIBS"
4977 cat >conftest.$ac_ext <<_ACEOF
4978 #line 4978 "configure"
4979 #include "confdefs.h"
4981 /* Override any gcc2 internal prototype to avoid an error. */
4985 /* We use char because int might match the return type of a gcc2
4986 builtin and then its argument prototype would still apply. */
4996 rm -f conftest.$ac_objext conftest$ac_exeext
4997 if { (eval echo "$as_me:4997: \"$ac_link\"") >&5
4998 (eval $ac_link) 2>&5
5000 echo "$as_me:5000: \$? = $ac_status" >&5
5001 (exit $ac_status); } &&
5002 { ac_try='test -s conftest$ac_exeext'
5003 { (eval echo "$as_me:5003: \"$ac_try\"") >&5
5006 echo "$as_me:5006: \$? = $ac_status" >&5
5007 (exit $ac_status); }; }; then
5008 ac_cv_lib_Hcurses_initscr=yes
5010 echo "$as_me: failed program was:" >&5
5011 cat conftest.$ac_ext >&5
5012 ac_cv_lib_Hcurses_initscr=no
5014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5015 LIBS=$ac_check_lib_save_LIBS
5017 echo "$as_me:5017: result: $ac_cv_lib_Hcurses_initscr" >&5
5018 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
5019 if test $ac_cv_lib_Hcurses_initscr = yes; then
5021 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
5023 cf_add_libs="-lHcurses"
5024 # Filter out duplicates - this happens with badly-designed ".pc" files...
5025 for cf_add_1lib in $LIBS
5027 for cf_add_2lib in $cf_add_libs
5029 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5035 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5039 CPPFLAGS="$CPPFLAGS -D__HP_CURSES -D_HP_CURSES"
5040 ac_cv_func_initscr=yes
5049 case `arch 2>/dev/null` in
5054 if test -n "/lib64" ; then
5055 for cf_add_libdir in /lib64
5057 if test $cf_add_libdir = /usr/lib ; then
5059 elif test -d $cf_add_libdir
5062 if test -n "$LDFLAGS$LIBS" ; then
5063 # a loop is needed to ensure we can add subdirs of existing dirs
5064 for cf_test_libdir in $LDFLAGS $LIBS ; do
5065 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5066 cf_have_libdir=yes; break
5070 if test "$cf_have_libdir" = no ; then
5071 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5073 echo "${as_me:-configure}:5073: testing adding $cf_add_libdir to library-path ..." 1>&5
5075 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5083 if test -n "/lib" ; then
5084 for cf_add_libdir in /lib
5086 if test $cf_add_libdir = /usr/lib ; then
5088 elif test -d $cf_add_libdir
5091 if test -n "$LDFLAGS$LIBS" ; then
5092 # a loop is needed to ensure we can add subdirs of existing dirs
5093 for cf_test_libdir in $LDFLAGS $LIBS ; do
5094 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5095 cf_have_libdir=yes; break
5099 if test "$cf_have_libdir" = no ; then
5100 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5102 echo "${as_me:-configure}:5102: testing adding $cf_add_libdir to library-path ..." 1>&5
5104 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5114 if test -n "/lib" ; then
5115 for cf_add_libdir in /lib
5117 if test $cf_add_libdir = /usr/lib ; then
5119 elif test -d $cf_add_libdir
5122 if test -n "$LDFLAGS$LIBS" ; then
5123 # a loop is needed to ensure we can add subdirs of existing dirs
5124 for cf_test_libdir in $LDFLAGS $LIBS ; do
5125 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5126 cf_have_libdir=yes; break
5130 if test "$cf_have_libdir" = no ; then
5131 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5133 echo "${as_me:-configure}:5133: testing adding $cf_add_libdir to library-path ..." 1>&5
5135 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5145 if test "x$cf_cv_screen" = "xcurses_5lib"
5147 if test -d /usr/5lib ; then
5149 if test -n "/usr/5lib" ; then
5150 for cf_add_libdir in /usr/5lib
5152 if test $cf_add_libdir = /usr/lib ; then
5154 elif test -d $cf_add_libdir
5157 if test -n "$LDFLAGS$LIBS" ; then
5158 # a loop is needed to ensure we can add subdirs of existing dirs
5159 for cf_test_libdir in $LDFLAGS $LIBS ; do
5160 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5161 cf_have_libdir=yes; break
5165 if test "$cf_have_libdir" = no ; then
5166 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5168 echo "${as_me:-configure}:5168: testing adding $cf_add_libdir to library-path ..." 1>&5
5170 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5176 cf_add_libs="-lcurses -ltermcap"
5177 # Filter out duplicates - this happens with badly-designed ".pc" files...
5178 for cf_add_1lib in $LIBS
5180 for cf_add_2lib in $cf_add_libs
5182 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5188 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5194 ac_cv_func_initscr=yes
5198 if test ".$ac_cv_func_initscr" != .yes ; then
5199 cf_save_LIBS="$LIBS"
5201 if test ".${cf_cv_ncurses_version:-no}" != .no
5203 cf_check_list="ncurses curses cursesX"
5205 cf_check_list="cursesX curses ncurses"
5208 # Check for library containing tgoto. Do this before curses library
5209 # because it may be needed to link the test-case for initscr.
5210 if test "x$cf_term_lib" = x
5212 echo "$as_me:5212: checking for tgoto" >&5
5213 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
5214 if test "${ac_cv_func_tgoto+set}" = set; then
5215 echo $ECHO_N "(cached) $ECHO_C" >&6
5217 cat >conftest.$ac_ext <<_ACEOF
5218 #line 5218 "configure"
5219 #include "confdefs.h"
5220 /* System header to define __stub macros and hopefully few prototypes,
5221 which can conflict with char tgoto (); below. */
5223 /* Override any gcc2 internal prototype to avoid an error. */
5227 /* We use char because int might match the return type of a gcc2
5228 builtin and then its argument prototype would still apply. */
5235 /* The GNU C library defines this for functions which it implements
5236 to always fail with ENOSYS. Some functions are actually named
5237 something starting with __ and the normal name is an alias. */
5238 #if defined (__stub_tgoto) || defined (__stub___tgoto)
5241 f = tgoto; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
5248 rm -f conftest.$ac_objext conftest$ac_exeext
5249 if { (eval echo "$as_me:5249: \"$ac_link\"") >&5
5250 (eval $ac_link) 2>&5
5252 echo "$as_me:5252: \$? = $ac_status" >&5
5253 (exit $ac_status); } &&
5254 { ac_try='test -s conftest$ac_exeext'
5255 { (eval echo "$as_me:5255: \"$ac_try\"") >&5
5258 echo "$as_me:5258: \$? = $ac_status" >&5
5259 (exit $ac_status); }; }; then
5260 ac_cv_func_tgoto=yes
5262 echo "$as_me: failed program was:" >&5
5263 cat conftest.$ac_ext >&5
5266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5268 echo "$as_me:5268: result: $ac_cv_func_tgoto" >&5
5269 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
5270 if test $ac_cv_func_tgoto = yes; then
5271 cf_term_lib=predefined
5274 for cf_term_lib in $cf_check_list otermcap termcap tinfo termlib unknown
5276 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
5277 echo "$as_me:5277: checking for tgoto in -l$cf_term_lib" >&5
5278 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
5279 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5282 ac_check_lib_save_LIBS=$LIBS
5283 LIBS="-l$cf_term_lib $LIBS"
5284 cat >conftest.$ac_ext <<_ACEOF
5285 #line 5285 "configure"
5286 #include "confdefs.h"
5288 /* Override any gcc2 internal prototype to avoid an error. */
5292 /* We use char because int might match the return type of a gcc2
5293 builtin and then its argument prototype would still apply. */
5303 rm -f conftest.$ac_objext conftest$ac_exeext
5304 if { (eval echo "$as_me:5304: \"$ac_link\"") >&5
5305 (eval $ac_link) 2>&5
5307 echo "$as_me:5307: \$? = $ac_status" >&5
5308 (exit $ac_status); } &&
5309 { ac_try='test -s conftest$ac_exeext'
5310 { (eval echo "$as_me:5310: \"$ac_try\"") >&5
5313 echo "$as_me:5313: \$? = $ac_status" >&5
5314 (exit $ac_status); }; }; then
5315 eval "$as_ac_Lib=yes"
5317 echo "$as_me: failed program was:" >&5
5318 cat conftest.$ac_ext >&5
5319 eval "$as_ac_Lib=no"
5321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5322 LIBS=$ac_check_lib_save_LIBS
5324 echo "$as_me:5324: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5325 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5326 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5336 # Check for library containing initscr
5337 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
5338 if test "x$cf_curs_lib" = x
5340 for cf_curs_lib in $cf_check_list xcurses jcurses pdcurses unknown
5342 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
5343 echo "$as_me:5343: checking for initscr in -l$cf_curs_lib" >&5
5344 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
5345 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 ac_check_lib_save_LIBS=$LIBS
5349 LIBS="-l$cf_curs_lib $LIBS"
5350 cat >conftest.$ac_ext <<_ACEOF
5351 #line 5351 "configure"
5352 #include "confdefs.h"
5354 /* Override any gcc2 internal prototype to avoid an error. */
5358 /* We use char because int might match the return type of a gcc2
5359 builtin and then its argument prototype would still apply. */
5369 rm -f conftest.$ac_objext conftest$ac_exeext
5370 if { (eval echo "$as_me:5370: \"$ac_link\"") >&5
5371 (eval $ac_link) 2>&5
5373 echo "$as_me:5373: \$? = $ac_status" >&5
5374 (exit $ac_status); } &&
5375 { ac_try='test -s conftest$ac_exeext'
5376 { (eval echo "$as_me:5376: \"$ac_try\"") >&5
5379 echo "$as_me:5379: \$? = $ac_status" >&5
5380 (exit $ac_status); }; }; then
5381 eval "$as_ac_Lib=yes"
5383 echo "$as_me: failed program was:" >&5
5384 cat conftest.$ac_ext >&5
5385 eval "$as_ac_Lib=no"
5387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5388 LIBS=$ac_check_lib_save_LIBS
5390 echo "$as_me:5390: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5391 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5392 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5398 test $cf_curs_lib = unknown && { { echo "$as_me:5398: error: no curses library found" >&5
5399 echo "$as_me: error: no curses library found" >&2;}
5400 { (exit 1); exit 1; }; }
5402 LIBS="-l$cf_curs_lib $cf_save_LIBS"
5403 if test "$cf_term_lib" = unknown ; then
5404 echo "$as_me:5404: checking if we can link with $cf_curs_lib library" >&5
5405 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
5406 cat >conftest.$ac_ext <<_ACEOF
5407 #line 5407 "configure"
5408 #include "confdefs.h"
5409 #include <${cf_cv_ncurses_header:-curses.h}>
5418 rm -f conftest.$ac_objext conftest$ac_exeext
5419 if { (eval echo "$as_me:5419: \"$ac_link\"") >&5
5420 (eval $ac_link) 2>&5
5422 echo "$as_me:5422: \$? = $ac_status" >&5
5423 (exit $ac_status); } &&
5424 { ac_try='test -s conftest$ac_exeext'
5425 { (eval echo "$as_me:5425: \"$ac_try\"") >&5
5428 echo "$as_me:5428: \$? = $ac_status" >&5
5429 (exit $ac_status); }; }; then
5432 echo "$as_me: failed program was:" >&5
5433 cat conftest.$ac_ext >&5
5436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5437 echo "$as_me:5437: result: $cf_result" >&5
5438 echo "${ECHO_T}$cf_result" >&6
5439 test $cf_result = no && { { echo "$as_me:5439: error: Cannot link curses library" >&5
5440 echo "$as_me: error: Cannot link curses library" >&2;}
5441 { (exit 1); exit 1; }; }
5442 elif test "$cf_curs_lib" = "$cf_term_lib" ; then
5444 elif test "$cf_term_lib" != predefined ; then
5445 echo "$as_me:5445: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
5446 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
5447 cat >conftest.$ac_ext <<_ACEOF
5448 #line 5448 "configure"
5449 #include "confdefs.h"
5450 #include <${cf_cv_ncurses_header:-curses.h}>
5454 initscr(); tgoto((char *)0, 0, 0);
5459 rm -f conftest.$ac_objext conftest$ac_exeext
5460 if { (eval echo "$as_me:5460: \"$ac_link\"") >&5
5461 (eval $ac_link) 2>&5
5463 echo "$as_me:5463: \$? = $ac_status" >&5
5464 (exit $ac_status); } &&
5465 { ac_try='test -s conftest$ac_exeext'
5466 { (eval echo "$as_me:5466: \"$ac_try\"") >&5
5469 echo "$as_me:5469: \$? = $ac_status" >&5
5470 (exit $ac_status); }; }; then
5473 echo "$as_me: failed program was:" >&5
5474 cat conftest.$ac_ext >&5
5476 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
5477 cat >conftest.$ac_ext <<_ACEOF
5478 #line 5478 "configure"
5479 #include "confdefs.h"
5480 #include <${cf_cv_ncurses_header:-curses.h}>
5489 rm -f conftest.$ac_objext conftest$ac_exeext
5490 if { (eval echo "$as_me:5490: \"$ac_link\"") >&5
5491 (eval $ac_link) 2>&5
5493 echo "$as_me:5493: \$? = $ac_status" >&5
5494 (exit $ac_status); } &&
5495 { ac_try='test -s conftest$ac_exeext'
5496 { (eval echo "$as_me:5496: \"$ac_try\"") >&5
5499 echo "$as_me:5499: \$? = $ac_status" >&5
5500 (exit $ac_status); }; }; then
5503 echo "$as_me: failed program was:" >&5
5504 cat conftest.$ac_ext >&5
5507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5510 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5511 echo "$as_me:5511: result: $cf_result" >&5
5512 echo "${ECHO_T}$cf_result" >&6
5520 echo "$as_me:5520: checking for multibyte character support" >&5
5521 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
5522 if test "${cf_cv_utf8_lib+set}" = set; then
5523 echo $ECHO_N "(cached) $ECHO_C" >&6
5526 cf_save_LIBS="$LIBS"
5527 cat >conftest.$ac_ext <<_ACEOF
5528 #line 5528 "configure"
5529 #include "confdefs.h"
5540 rm -f conftest.$ac_objext conftest$ac_exeext
5541 if { (eval echo "$as_me:5541: \"$ac_link\"") >&5
5542 (eval $ac_link) 2>&5
5544 echo "$as_me:5544: \$? = $ac_status" >&5
5545 (exit $ac_status); } &&
5546 { ac_try='test -s conftest$ac_exeext'
5547 { (eval echo "$as_me:5547: \"$ac_try\"") >&5
5550 echo "$as_me:5550: \$? = $ac_status" >&5
5551 (exit $ac_status); }; }; then
5554 echo "$as_me: failed program was:" >&5
5555 cat conftest.$ac_ext >&5
5557 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
5558 # will be set on completion of the AC_TRY_LINK below.
5559 cf_cv_header_path_utf8=
5560 cf_cv_library_path_utf8=
5562 echo "${as_me:-configure}:5562: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
5564 cf_save_LIBS="$LIBS"
5566 cat >conftest.$ac_ext <<_ACEOF
5567 #line 5567 "configure"
5568 #include "confdefs.h"
5570 #include <libutf8.h>
5579 rm -f conftest.$ac_objext conftest$ac_exeext
5580 if { (eval echo "$as_me:5580: \"$ac_link\"") >&5
5581 (eval $ac_link) 2>&5
5583 echo "$as_me:5583: \$? = $ac_status" >&5
5584 (exit $ac_status); } &&
5585 { ac_try='test -s conftest$ac_exeext'
5586 { (eval echo "$as_me:5586: \"$ac_try\"") >&5
5589 echo "$as_me:5589: \$? = $ac_status" >&5
5590 (exit $ac_status); }; }; then
5592 cf_cv_find_linkage_utf8=yes
5593 cf_cv_header_path_utf8=/usr/include
5594 cf_cv_library_path_utf8=/usr/lib
5597 echo "$as_me: failed program was:" >&5
5598 cat conftest.$ac_ext >&5
5600 LIBS="-lutf8 $cf_save_LIBS"
5602 cat >conftest.$ac_ext <<_ACEOF
5603 #line 5603 "configure"
5604 #include "confdefs.h"
5606 #include <libutf8.h>
5615 rm -f conftest.$ac_objext conftest$ac_exeext
5616 if { (eval echo "$as_me:5616: \"$ac_link\"") >&5
5617 (eval $ac_link) 2>&5
5619 echo "$as_me:5619: \$? = $ac_status" >&5
5620 (exit $ac_status); } &&
5621 { ac_try='test -s conftest$ac_exeext'
5622 { (eval echo "$as_me:5622: \"$ac_try\"") >&5
5625 echo "$as_me:5625: \$? = $ac_status" >&5
5626 (exit $ac_status); }; }; then
5628 cf_cv_find_linkage_utf8=yes
5629 cf_cv_header_path_utf8=/usr/include
5630 cf_cv_library_path_utf8=/usr/lib
5631 cf_cv_library_file_utf8="-lutf8"
5634 echo "$as_me: failed program was:" >&5
5635 cat conftest.$ac_ext >&5
5637 cf_cv_find_linkage_utf8=no
5638 LIBS="$cf_save_LIBS"
5640 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
5642 echo "${as_me:-configure}:5642: testing find linkage for utf8 library ..." 1>&5
5644 echo "${as_me:-configure}:5644: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
5646 cf_save_CPPFLAGS="$CPPFLAGS"
5647 cf_test_CPPFLAGS="$CPPFLAGS"
5651 # collect the current set of include-directories from compiler flags
5652 cf_header_path_list=""
5653 if test -n "${CFLAGS}${CPPFLAGS}" ; then
5654 for cf_header_path in $CPPFLAGS $CFLAGS
5656 case $cf_header_path in
5658 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
5660 test "x$cf_header_path" != "xNONE" && \
5661 test -d "$cf_header_path" && \
5663 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
5664 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
5665 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
5666 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
5667 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
5668 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
5671 cf_header_path_list="$cf_header_path_list $cf_search"
5677 # add the variations for the package we are looking for
5681 test "x$prefix" != "xNONE" && \
5682 test -d "$prefix" && \
5684 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
5685 test -d $prefix/include && cf_search="$cf_search $prefix/include"
5686 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
5687 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
5688 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
5689 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
5692 for cf_subdir_prefix in \
5701 test "x$cf_subdir_prefix" != "x$prefix" && \
5702 test -d "$cf_subdir_prefix" && \
5703 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
5704 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
5705 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
5706 test -d $cf_subdir_prefix/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
5707 test -d $cf_subdir_prefix/include/utf8/include && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
5708 test -d $cf_subdir_prefix/utf8/include && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
5709 test -d $cf_subdir_prefix/utf8/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
5714 test "$includedir" != NONE && \
5715 test "$includedir" != "/usr/include" && \
5716 test -d "$includedir" && {
5717 test -d $includedir && cf_search="$cf_search $includedir"
5718 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
5721 test "$oldincludedir" != NONE && \
5722 test "$oldincludedir" != "/usr/include" && \
5723 test -d "$oldincludedir" && {
5724 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
5725 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
5728 cf_search="$cf_search $cf_header_path_list"
5730 for cf_cv_header_path_utf8 in $cf_search
5732 if test -d $cf_cv_header_path_utf8 ; then
5733 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
5735 echo "${as_me:-configure}:5735: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
5737 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
5738 cat >conftest.$ac_ext <<_ACEOF
5739 #line 5739 "configure"
5740 #include "confdefs.h"
5742 #include <libutf8.h>
5751 rm -f conftest.$ac_objext
5752 if { (eval echo "$as_me:5752: \"$ac_compile\"") >&5
5753 (eval $ac_compile) 2>&5
5755 echo "$as_me:5755: \$? = $ac_status" >&5
5756 (exit $ac_status); } &&
5757 { ac_try='test -s conftest.$ac_objext'
5758 { (eval echo "$as_me:5758: \"$ac_try\"") >&5
5761 echo "$as_me:5761: \$? = $ac_status" >&5
5762 (exit $ac_status); }; }; then
5764 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
5766 echo "${as_me:-configure}:5766: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
5768 cf_cv_find_linkage_utf8=maybe
5769 cf_test_CPPFLAGS="$CPPFLAGS"
5772 echo "$as_me: failed program was:" >&5
5773 cat conftest.$ac_ext >&5
5775 CPPFLAGS="$cf_save_CPPFLAGS"
5778 rm -f conftest.$ac_objext conftest.$ac_ext
5782 if test "$cf_cv_find_linkage_utf8" = maybe ; then
5784 echo "${as_me:-configure}:5784: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
5786 cf_save_LIBS="$LIBS"
5787 cf_save_LDFLAGS="$LDFLAGS"
5789 if test "$cf_cv_find_linkage_utf8" != yes ; then
5792 cf_library_path_list=""
5793 if test -n "${LDFLAGS}${LIBS}" ; then
5794 for cf_library_path in $LDFLAGS $LIBS
5796 case $cf_library_path in
5798 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
5800 test "x$cf_library_path" != "xNONE" && \
5801 test -d "$cf_library_path" && \
5803 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
5804 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
5805 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
5806 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
5807 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
5808 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
5811 cf_library_path_list="$cf_library_path_list $cf_search"
5819 test "x$prefix" != "xNONE" && \
5820 test -d "$prefix" && \
5822 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
5823 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
5824 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
5825 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
5826 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
5827 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
5830 for cf_subdir_prefix in \
5839 test "x$cf_subdir_prefix" != "x$prefix" && \
5840 test -d "$cf_subdir_prefix" && \
5841 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
5842 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
5843 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
5844 test -d $cf_subdir_prefix/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
5845 test -d $cf_subdir_prefix/lib/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
5846 test -d $cf_subdir_prefix/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
5847 test -d $cf_subdir_prefix/utf8/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
5852 cf_search="$cf_library_path_list $cf_search"
5854 for cf_cv_library_path_utf8 in $cf_search
5856 if test -d $cf_cv_library_path_utf8 ; then
5857 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
5859 echo "${as_me:-configure}:5859: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
5861 CPPFLAGS="$cf_test_CPPFLAGS"
5862 LIBS="-lutf8 $cf_save_LIBS"
5863 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
5864 cat >conftest.$ac_ext <<_ACEOF
5865 #line 5865 "configure"
5866 #include "confdefs.h"
5868 #include <libutf8.h>
5877 rm -f conftest.$ac_objext conftest$ac_exeext
5878 if { (eval echo "$as_me:5878: \"$ac_link\"") >&5
5879 (eval $ac_link) 2>&5
5881 echo "$as_me:5881: \$? = $ac_status" >&5
5882 (exit $ac_status); } &&
5883 { ac_try='test -s conftest$ac_exeext'
5884 { (eval echo "$as_me:5884: \"$ac_try\"") >&5
5887 echo "$as_me:5887: \$? = $ac_status" >&5
5888 (exit $ac_status); }; }; then
5890 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
5892 echo "${as_me:-configure}:5892: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
5894 cf_cv_find_linkage_utf8=yes
5895 cf_cv_library_file_utf8="-lutf8"
5898 echo "$as_me: failed program was:" >&5
5899 cat conftest.$ac_ext >&5
5901 CPPFLAGS="$cf_save_CPPFLAGS"
5902 LIBS="$cf_save_LIBS"
5903 LDFLAGS="$cf_save_LDFLAGS"
5906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5909 CPPFLAGS="$cf_save_CPPFLAGS"
5910 LDFLAGS="$cf_save_LDFLAGS"
5914 cf_cv_find_linkage_utf8=no
5918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5923 LIBS="$cf_save_LIBS"
5925 if test "$cf_cv_find_linkage_utf8" = yes ; then
5926 cf_cv_utf8_lib=add-on
5932 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5934 echo "$as_me:5934: result: $cf_cv_utf8_lib" >&5
5935 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
5937 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
5939 if test "$cf_cv_utf8_lib" = "add-on" ; then
5941 cat >>confdefs.h <<\EOF
5942 #define HAVE_LIBUTF8_H 1
5945 if test -n "$cf_cv_header_path_utf8" ; then
5946 for cf_add_incdir in $cf_cv_header_path_utf8
5948 while test $cf_add_incdir != /usr/include
5950 if test -d $cf_add_incdir
5953 if test -n "$CFLAGS$CPPFLAGS" ; then
5954 # a loop is needed to ensure we can add subdirs of existing dirs
5955 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
5956 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
5957 cf_have_incdir=yes; break
5962 if test "$cf_have_incdir" = no ; then
5963 if test "$cf_add_incdir" = /usr/local/include ; then
5964 if test "$GCC" = yes
5966 cf_save_CPPFLAGS=$CPPFLAGS
5967 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5968 cat >conftest.$ac_ext <<_ACEOF
5969 #line 5969 "configure"
5970 #include "confdefs.h"
5980 rm -f conftest.$ac_objext
5981 if { (eval echo "$as_me:5981: \"$ac_compile\"") >&5
5982 (eval $ac_compile) 2>&5
5984 echo "$as_me:5984: \$? = $ac_status" >&5
5985 (exit $ac_status); } &&
5986 { ac_try='test -s conftest.$ac_objext'
5987 { (eval echo "$as_me:5987: \"$ac_try\"") >&5
5990 echo "$as_me:5990: \$? = $ac_status" >&5
5991 (exit $ac_status); }; }; then
5994 echo "$as_me: failed program was:" >&5
5995 cat conftest.$ac_ext >&5
5998 rm -f conftest.$ac_objext conftest.$ac_ext
5999 CPPFLAGS=$cf_save_CPPFLAGS
6004 if test "$cf_have_incdir" = no ; then
6005 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6007 echo "${as_me:-configure}:6007: testing adding $cf_add_incdir to include-path ..." 1>&5
6009 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6011 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6012 test "$cf_top_incdir" = "$cf_add_incdir" && break
6013 cf_add_incdir="$cf_top_incdir"
6022 if test -n "$cf_cv_library_path_utf8" ; then
6023 for cf_add_libdir in $cf_cv_library_path_utf8
6025 if test $cf_add_libdir = /usr/lib ; then
6027 elif test -d $cf_add_libdir
6030 if test -n "$LDFLAGS$LIBS" ; then
6031 # a loop is needed to ensure we can add subdirs of existing dirs
6032 for cf_test_libdir in $LDFLAGS $LIBS ; do
6033 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
6034 cf_have_libdir=yes; break
6038 if test "$cf_have_libdir" = no ; then
6039 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
6041 echo "${as_me:-configure}:6041: testing adding $cf_add_libdir to library-path ..." 1>&5
6043 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
6049 cf_add_libs="$cf_cv_library_file_utf8"
6050 # Filter out duplicates - this happens with badly-designed ".pc" files...
6051 for cf_add_1lib in $LIBS
6053 for cf_add_2lib in $cf_add_libs
6055 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6061 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6067 cf_ncuconfig_root=$cf_cv_screen
6068 cf_have_ncuconfig=no
6070 if test "x$PKG_CONFIG" != xnone; then
6071 echo "$as_me:6071: checking pkg-config for $cf_ncuconfig_root" >&5
6072 echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
6073 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
6074 echo "$as_me:6074: result: yes" >&5
6075 echo "${ECHO_T}yes" >&6
6077 echo "$as_me:6077: checking if the $cf_ncuconfig_root package files work" >&5
6078 echo $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
6079 cf_have_ncuconfig=unknown
6081 cf_save_CPPFLAGS="$CPPFLAGS"
6082 cf_save_LIBS="$LIBS"
6084 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG --cflags $cf_ncuconfig_root`"
6086 cf_add_libs="`$PKG_CONFIG --libs $cf_ncuconfig_root`"
6087 # Filter out duplicates - this happens with badly-designed ".pc" files...
6088 for cf_add_1lib in $LIBS
6090 for cf_add_2lib in $cf_add_libs
6092 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6098 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6102 cat >conftest.$ac_ext <<_ACEOF
6103 #line 6103 "configure"
6104 #include "confdefs.h"
6105 #include <${cf_cv_ncurses_header:-curses.h}>
6109 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
6114 rm -f conftest.$ac_objext conftest$ac_exeext
6115 if { (eval echo "$as_me:6115: \"$ac_link\"") >&5
6116 (eval $ac_link) 2>&5
6118 echo "$as_me:6118: \$? = $ac_status" >&5
6119 (exit $ac_status); } &&
6120 { ac_try='test -s conftest$ac_exeext'
6121 { (eval echo "$as_me:6121: \"$ac_try\"") >&5
6124 echo "$as_me:6124: \$? = $ac_status" >&5
6125 (exit $ac_status); }; }; then
6126 if test "$cross_compiling" = yes; then
6127 { { echo "$as_me:6127: error: cannot run test program while cross compiling" >&5
6128 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
6129 { (exit 1); exit 1; }; }
6131 cat >conftest.$ac_ext <<_ACEOF
6132 #line 6132 "configure"
6133 #include "confdefs.h"
6134 #include <${cf_cv_ncurses_header:-curses.h}>
6136 { char *xx = curses_version(); return (xx == 0); }
6138 rm -f conftest$ac_exeext
6139 if { (eval echo "$as_me:6139: \"$ac_link\"") >&5
6140 (eval $ac_link) 2>&5
6142 echo "$as_me:6142: \$? = $ac_status" >&5
6143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6144 { (eval echo "$as_me:6144: \"$ac_try\"") >&5
6147 echo "$as_me:6147: \$? = $ac_status" >&5
6148 (exit $ac_status); }; }; then
6149 cf_have_ncuconfig=yes
6151 echo "$as_me: program exited with status $ac_status" >&5
6152 echo "$as_me: failed program was:" >&5
6153 cat conftest.$ac_ext >&5
6154 cf_have_ncuconfig=no
6156 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6159 echo "$as_me: failed program was:" >&5
6160 cat conftest.$ac_ext >&5
6161 cf_have_ncuconfig=no
6163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6165 echo "$as_me:6165: result: $cf_have_ncuconfig" >&5
6166 echo "${ECHO_T}$cf_have_ncuconfig" >&6
6167 if test "$cf_have_ncuconfig" != "yes"
6169 CPPFLAGS="$cf_save_CPPFLAGS"
6170 LIBS="$cf_save_LIBS"
6171 NCURSES_CONFIG_PKG=none
6174 cat >>confdefs.h <<\EOF
6178 NCURSES_CONFIG_PKG=$cf_ncuconfig_root
6182 echo "$as_me:6182: result: no" >&5
6183 echo "${ECHO_T}no" >&6
6184 NCURSES_CONFIG_PKG=none
6187 NCURSES_CONFIG_PKG=none
6190 if test "x$cf_have_ncuconfig" = "xno"; then
6191 echo "Looking for ${cf_ncuconfig_root}-config"
6193 if test -n "$ac_tool_prefix"; then
6194 for ac_prog in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
6196 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6197 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6198 echo "$as_me:6198: checking for $ac_word" >&5
6199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6200 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6203 if test -n "$NCURSES_CONFIG"; then
6204 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
6206 ac_save_IFS=$IFS; IFS=$ac_path_separator
6208 for ac_dir in $ac_dummy; do
6210 test -z "$ac_dir" && ac_dir=.
6211 $as_executable_p "$ac_dir/$ac_word" || continue
6212 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
6213 echo "$as_me:6213: found $ac_dir/$ac_word" >&5
6219 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
6220 if test -n "$NCURSES_CONFIG"; then
6221 echo "$as_me:6221: result: $NCURSES_CONFIG" >&5
6222 echo "${ECHO_T}$NCURSES_CONFIG" >&6
6224 echo "$as_me:6224: result: no" >&5
6225 echo "${ECHO_T}no" >&6
6228 test -n "$NCURSES_CONFIG" && break
6231 if test -z "$NCURSES_CONFIG"; then
6232 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
6233 for ac_prog in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
6235 # Extract the first word of "$ac_prog", so it can be a program name with args.
6236 set dummy $ac_prog; ac_word=$2
6237 echo "$as_me:6237: checking for $ac_word" >&5
6238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6239 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
6240 echo $ECHO_N "(cached) $ECHO_C" >&6
6242 if test -n "$ac_ct_NCURSES_CONFIG"; then
6243 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
6245 ac_save_IFS=$IFS; IFS=$ac_path_separator
6247 for ac_dir in $ac_dummy; do
6249 test -z "$ac_dir" && ac_dir=.
6250 $as_executable_p "$ac_dir/$ac_word" || continue
6251 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
6252 echo "$as_me:6252: found $ac_dir/$ac_word" >&5
6258 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
6259 if test -n "$ac_ct_NCURSES_CONFIG"; then
6260 echo "$as_me:6260: result: $ac_ct_NCURSES_CONFIG" >&5
6261 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
6263 echo "$as_me:6263: result: no" >&5
6264 echo "${ECHO_T}no" >&6
6267 test -n "$ac_ct_NCURSES_CONFIG" && break
6269 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
6271 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
6274 if test "$NCURSES_CONFIG" != none ; then
6276 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
6278 cf_add_libs="`$NCURSES_CONFIG --libs`"
6279 # Filter out duplicates - this happens with badly-designed ".pc" files...
6280 for cf_add_1lib in $LIBS
6282 for cf_add_2lib in $cf_add_libs
6284 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6290 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6294 # even with config script, some packages use no-override for curses.h
6296 echo "$as_me:6296: checking if we have identified curses headers" >&5
6297 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
6298 if test "${cf_cv_ncurses_header+set}" = set; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6302 cf_cv_ncurses_header=none
6304 ncurses.h $cf_cv_screen/ncurses.h \
6305 curses.h $cf_cv_screen/curses.h
6307 cat >conftest.$ac_ext <<_ACEOF
6308 #line 6308 "configure"
6309 #include "confdefs.h"
6310 #include <${cf_header}>
6314 initscr(); tgoto("?", 0,0)
6319 rm -f conftest.$ac_objext
6320 if { (eval echo "$as_me:6320: \"$ac_compile\"") >&5
6321 (eval $ac_compile) 2>&5
6323 echo "$as_me:6323: \$? = $ac_status" >&5
6324 (exit $ac_status); } &&
6325 { ac_try='test -s conftest.$ac_objext'
6326 { (eval echo "$as_me:6326: \"$ac_try\"") >&5
6329 echo "$as_me:6329: \$? = $ac_status" >&5
6330 (exit $ac_status); }; }; then
6331 cf_cv_ncurses_header=$cf_header; break
6333 echo "$as_me: failed program was:" >&5
6334 cat conftest.$ac_ext >&5
6336 rm -f conftest.$ac_objext conftest.$ac_ext
6340 echo "$as_me:6340: result: $cf_cv_ncurses_header" >&5
6341 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
6343 if test "$cf_cv_ncurses_header" = none ; then
6344 { { echo "$as_me:6344: error: No curses header-files found" >&5
6345 echo "$as_me: error: No curses header-files found" >&2;}
6346 { (exit 1); exit 1; }; }
6349 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
6351 for ac_header in $cf_cv_ncurses_header
6353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6354 echo "$as_me:6354: checking for $ac_header" >&5
6355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6359 cat >conftest.$ac_ext <<_ACEOF
6360 #line 6360 "configure"
6361 #include "confdefs.h"
6362 #include <$ac_header>
6364 if { (eval echo "$as_me:6364: \"$ac_cpp conftest.$ac_ext\"") >&5
6365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6367 egrep -v '^ *\+' conftest.er1 >conftest.err
6369 cat conftest.err >&5
6370 echo "$as_me:6370: \$? = $ac_status" >&5
6371 (exit $ac_status); } >/dev/null; then
6372 if test -s conftest.err; then
6373 ac_cpp_err=$ac_c_preproc_warn_flag
6380 if test -z "$ac_cpp_err"; then
6381 eval "$as_ac_Header=yes"
6383 echo "$as_me: failed program was:" >&5
6384 cat conftest.$ac_ext >&5
6385 eval "$as_ac_Header=no"
6387 rm -f conftest.err conftest.$ac_ext
6389 echo "$as_me:6389: result: `eval echo '${'$as_ac_Header'}'`" >&5
6390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6392 cat >>confdefs.h <<EOF
6393 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6399 cat >>confdefs.h <<\EOF
6403 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
6405 cat >>confdefs.h <<EOF
6406 #define $cf_nculib_ROOT 1
6409 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
6413 cf_ncuhdr_root=$cf_cv_screen
6415 test -n "$cf_cv_curses_dir" && \
6416 test "$cf_cv_curses_dir" != "no" && { \
6418 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
6419 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
6421 while test $cf_add_incdir != /usr/include
6423 if test -d $cf_add_incdir
6426 if test -n "$CFLAGS$CPPFLAGS" ; then
6427 # a loop is needed to ensure we can add subdirs of existing dirs
6428 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6429 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6430 cf_have_incdir=yes; break
6435 if test "$cf_have_incdir" = no ; then
6436 if test "$cf_add_incdir" = /usr/local/include ; then
6437 if test "$GCC" = yes
6439 cf_save_CPPFLAGS=$CPPFLAGS
6440 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6441 cat >conftest.$ac_ext <<_ACEOF
6442 #line 6442 "configure"
6443 #include "confdefs.h"
6453 rm -f conftest.$ac_objext
6454 if { (eval echo "$as_me:6454: \"$ac_compile\"") >&5
6455 (eval $ac_compile) 2>&5
6457 echo "$as_me:6457: \$? = $ac_status" >&5
6458 (exit $ac_status); } &&
6459 { ac_try='test -s conftest.$ac_objext'
6460 { (eval echo "$as_me:6460: \"$ac_try\"") >&5
6463 echo "$as_me:6463: \$? = $ac_status" >&5
6464 (exit $ac_status); }; }; then
6467 echo "$as_me: failed program was:" >&5
6468 cat conftest.$ac_ext >&5
6471 rm -f conftest.$ac_objext conftest.$ac_ext
6472 CPPFLAGS=$cf_save_CPPFLAGS
6477 if test "$cf_have_incdir" = no ; then
6478 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6480 echo "${as_me:-configure}:6480: testing adding $cf_add_incdir to include-path ..." 1>&5
6482 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6484 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6485 test "$cf_top_incdir" = "$cf_add_incdir" && break
6486 cf_add_incdir="$cf_top_incdir"
6497 echo "$as_me:6497: checking for $cf_ncuhdr_root header in include-path" >&5
6498 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
6499 if test "${cf_cv_ncurses_h+set}" = set; then
6500 echo $ECHO_N "(cached) $ECHO_C" >&6
6503 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
6504 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
6505 for cf_header in $cf_header_list
6508 cat >conftest.$ac_ext <<_ACEOF
6509 #line 6509 "configure"
6510 #include "confdefs.h"
6512 #include <$cf_header>
6517 #ifdef NCURSES_VERSION
6519 printf("%s\n", NCURSES_VERSION);
6532 rm -f conftest.$ac_objext
6533 if { (eval echo "$as_me:6533: \"$ac_compile\"") >&5
6534 (eval $ac_compile) 2>&5
6536 echo "$as_me:6536: \$? = $ac_status" >&5
6537 (exit $ac_status); } &&
6538 { ac_try='test -s conftest.$ac_objext'
6539 { (eval echo "$as_me:6539: \"$ac_try\"") >&5
6542 echo "$as_me:6542: \$? = $ac_status" >&5
6543 (exit $ac_status); }; }; then
6544 cf_cv_ncurses_h=$cf_header
6547 echo "$as_me: failed program was:" >&5
6548 cat conftest.$ac_ext >&5
6551 rm -f conftest.$ac_objext conftest.$ac_ext
6553 test "$cf_cv_ncurses_h" != no && break
6557 echo "$as_me:6557: result: $cf_cv_ncurses_h" >&5
6558 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
6560 if test "$cf_cv_ncurses_h" != no ; then
6561 cf_cv_ncurses_header=$cf_cv_ncurses_h
6564 echo "$as_me:6564: checking for $cf_ncuhdr_root include-path" >&5
6565 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
6566 if test "${cf_cv_ncurses_h2+set}" = set; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
6570 test -n "$verbose" && echo
6574 # collect the current set of include-directories from compiler flags
6575 cf_header_path_list=""
6576 if test -n "${CFLAGS}${CPPFLAGS}" ; then
6577 for cf_header_path in $CPPFLAGS $CFLAGS
6579 case $cf_header_path in
6581 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
6583 test "x$cf_header_path" != "xNONE" && \
6584 test -d "$cf_header_path" && \
6586 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
6587 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
6588 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
6589 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
6590 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
6591 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"
6594 cf_header_path_list="$cf_header_path_list $cf_search"
6600 # add the variations for the package we are looking for
6604 test "x$prefix" != "xNONE" && \
6605 test -d "$prefix" && \
6607 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
6608 test -d $prefix/include && cf_search="$cf_search $prefix/include"
6609 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
6610 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
6611 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
6612 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6615 for cf_subdir_prefix in \
6624 test "x$cf_subdir_prefix" != "x$prefix" && \
6625 test -d "$cf_subdir_prefix" && \
6626 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
6627 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
6628 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
6629 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root"
6630 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root/include"
6631 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include"
6632 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6637 test "$includedir" != NONE && \
6638 test "$includedir" != "/usr/include" && \
6639 test -d "$includedir" && {
6640 test -d $includedir && cf_search="$cf_search $includedir"
6641 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
6644 test "$oldincludedir" != NONE && \
6645 test "$oldincludedir" != "/usr/include" && \
6646 test -d "$oldincludedir" && {
6647 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
6648 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
6651 cf_search="$cf_search $cf_header_path_list"
6653 test -n "$verbose" && echo search path $cf_search
6654 cf_save2_CPPFLAGS="$CPPFLAGS"
6655 for cf_incdir in $cf_search
6658 if test -n "$cf_incdir" ; then
6659 for cf_add_incdir in $cf_incdir
6661 while test $cf_add_incdir != /usr/include
6663 if test -d $cf_add_incdir
6666 if test -n "$CFLAGS$CPPFLAGS" ; then
6667 # a loop is needed to ensure we can add subdirs of existing dirs
6668 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6669 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6670 cf_have_incdir=yes; break
6675 if test "$cf_have_incdir" = no ; then
6676 if test "$cf_add_incdir" = /usr/local/include ; then
6677 if test "$GCC" = yes
6679 cf_save_CPPFLAGS=$CPPFLAGS
6680 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6681 cat >conftest.$ac_ext <<_ACEOF
6682 #line 6682 "configure"
6683 #include "confdefs.h"
6693 rm -f conftest.$ac_objext
6694 if { (eval echo "$as_me:6694: \"$ac_compile\"") >&5
6695 (eval $ac_compile) 2>&5
6697 echo "$as_me:6697: \$? = $ac_status" >&5
6698 (exit $ac_status); } &&
6699 { ac_try='test -s conftest.$ac_objext'
6700 { (eval echo "$as_me:6700: \"$ac_try\"") >&5
6703 echo "$as_me:6703: \$? = $ac_status" >&5
6704 (exit $ac_status); }; }; then
6707 echo "$as_me: failed program was:" >&5
6708 cat conftest.$ac_ext >&5
6711 rm -f conftest.$ac_objext conftest.$ac_ext
6712 CPPFLAGS=$cf_save_CPPFLAGS
6717 if test "$cf_have_incdir" = no ; then
6718 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6720 echo "${as_me:-configure}:6720: testing adding $cf_add_incdir to include-path ..." 1>&5
6722 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6724 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6725 test "$cf_top_incdir" = "$cf_add_incdir" && break
6726 cf_add_incdir="$cf_top_incdir"
6740 cat >conftest.$ac_ext <<_ACEOF
6741 #line 6741 "configure"
6742 #include "confdefs.h"
6744 #include <$cf_header>
6749 #ifdef NCURSES_VERSION
6751 printf("%s\n", NCURSES_VERSION);
6764 rm -f conftest.$ac_objext
6765 if { (eval echo "$as_me:6765: \"$ac_compile\"") >&5
6766 (eval $ac_compile) 2>&5
6768 echo "$as_me:6768: \$? = $ac_status" >&5
6769 (exit $ac_status); } &&
6770 { ac_try='test -s conftest.$ac_objext'
6771 { (eval echo "$as_me:6771: \"$ac_try\"") >&5
6774 echo "$as_me:6774: \$? = $ac_status" >&5
6775 (exit $ac_status); }; }; then
6776 cf_cv_ncurses_h2=$cf_header
6779 echo "$as_me: failed program was:" >&5
6780 cat conftest.$ac_ext >&5
6783 rm -f conftest.$ac_objext conftest.$ac_ext
6785 if test "$cf_cv_ncurses_h2" != no ; then
6786 cf_cv_ncurses_h2=$cf_incdir/$cf_header
6787 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
6790 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
6792 CPPFLAGS="$cf_save2_CPPFLAGS"
6793 test "$cf_cv_ncurses_h2" != no && break
6795 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:6795: error: not found" >&5
6796 echo "$as_me: error: not found" >&2;}
6797 { (exit 1); exit 1; }; }
6800 echo "$as_me:6800: result: $cf_cv_ncurses_h2" >&5
6801 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
6803 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
6804 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
6805 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
6806 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
6809 if test -n "$cf_1st_incdir" ; then
6810 for cf_add_incdir in $cf_1st_incdir
6812 while test $cf_add_incdir != /usr/include
6814 if test -d $cf_add_incdir
6817 if test -n "$CFLAGS$CPPFLAGS" ; then
6818 # a loop is needed to ensure we can add subdirs of existing dirs
6819 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6820 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6821 cf_have_incdir=yes; break
6826 if test "$cf_have_incdir" = no ; then
6827 if test "$cf_add_incdir" = /usr/local/include ; then
6828 if test "$GCC" = yes
6830 cf_save_CPPFLAGS=$CPPFLAGS
6831 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6832 cat >conftest.$ac_ext <<_ACEOF
6833 #line 6833 "configure"
6834 #include "confdefs.h"
6844 rm -f conftest.$ac_objext
6845 if { (eval echo "$as_me:6845: \"$ac_compile\"") >&5
6846 (eval $ac_compile) 2>&5
6848 echo "$as_me:6848: \$? = $ac_status" >&5
6849 (exit $ac_status); } &&
6850 { ac_try='test -s conftest.$ac_objext'
6851 { (eval echo "$as_me:6851: \"$ac_try\"") >&5
6854 echo "$as_me:6854: \$? = $ac_status" >&5
6855 (exit $ac_status); }; }; then
6858 echo "$as_me: failed program was:" >&5
6859 cat conftest.$ac_ext >&5
6862 rm -f conftest.$ac_objext conftest.$ac_ext
6863 CPPFLAGS=$cf_save_CPPFLAGS
6868 if test "$cf_have_incdir" = no ; then
6869 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6871 echo "${as_me:-configure}:6871: testing adding $cf_add_incdir to include-path ..." 1>&5
6873 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6875 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6876 test "$cf_top_incdir" = "$cf_add_incdir" && break
6877 cf_add_incdir="$cf_top_incdir"
6888 # Set definitions to allow ifdef'ing for ncurses.h
6890 case $cf_cv_ncurses_header in
6893 cat >>confdefs.h <<\EOF
6894 #define HAVE_NCURSES_H 1
6900 case $cf_cv_ncurses_header in
6901 (ncurses/curses.h|ncurses/ncurses.h)
6903 cat >>confdefs.h <<\EOF
6904 #define HAVE_NCURSES_NCURSES_H 1
6908 (ncursesw/curses.h|ncursesw/ncurses.h)
6910 cat >>confdefs.h <<\EOF
6911 #define HAVE_NCURSESW_NCURSES_H 1
6917 echo "$as_me:6917: checking for terminfo header" >&5
6918 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
6919 if test "${cf_cv_term_header+set}" = set; then
6920 echo $ECHO_N "(cached) $ECHO_C" >&6
6923 case ${cf_cv_ncurses_header} in
6924 (*/ncurses.h|*/ncursesw.h)
6925 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
6928 cf_term_header=term.h
6932 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
6934 cat >conftest.$ac_ext <<_ACEOF
6935 #line 6935 "configure"
6936 #include "confdefs.h"
6938 #include <${cf_cv_ncurses_header:-curses.h}>
6944 int x = auto_left_margin
6949 rm -f conftest.$ac_objext
6950 if { (eval echo "$as_me:6950: \"$ac_compile\"") >&5
6951 (eval $ac_compile) 2>&5
6953 echo "$as_me:6953: \$? = $ac_status" >&5
6954 (exit $ac_status); } &&
6955 { ac_try='test -s conftest.$ac_objext'
6956 { (eval echo "$as_me:6956: \"$ac_try\"") >&5
6959 echo "$as_me:6959: \$? = $ac_status" >&5
6960 (exit $ac_status); }; }; then
6962 cf_cv_term_header="$cf_test"
6964 echo "$as_me: failed program was:" >&5
6965 cat conftest.$ac_ext >&5
6967 cf_cv_term_header=unknown
6970 rm -f conftest.$ac_objext conftest.$ac_ext
6971 test "$cf_cv_term_header" != unknown && break
6975 echo "$as_me:6975: result: $cf_cv_term_header" >&5
6976 echo "${ECHO_T}$cf_cv_term_header" >&6
6978 # Set definitions to allow ifdef'ing to accommodate subdirectories
6980 case $cf_cv_term_header in
6983 cat >>confdefs.h <<\EOF
6984 #define HAVE_TERM_H 1
6990 case $cf_cv_term_header in
6993 cat >>confdefs.h <<\EOF
6994 #define HAVE_NCURSES_TERM_H 1
7000 cat >>confdefs.h <<\EOF
7001 #define HAVE_NCURSESW_TERM_H 1
7007 # some applications need this, but should check for NCURSES_VERSION
7009 cat >>confdefs.h <<\EOF
7013 echo "$as_me:7013: checking for ncurses version" >&5
7014 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
7015 if test "${cf_cv_ncurses_version+set}" = set; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
7019 cf_cv_ncurses_version=no
7022 if test "$cross_compiling" = yes; then
7024 # This will not work if the preprocessor splits the line after the
7025 # Autoconf token. The 'unproto' program does that.
7026 cat > conftest.$ac_ext <<EOF
7027 #include <${cf_cv_ncurses_header:-curses.h}>
7029 #ifdef NCURSES_VERSION
7030 Autoconf NCURSES_VERSION
7038 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
7039 { (eval echo "$as_me:7039: \"$cf_try\"") >&5
7042 echo "$as_me:7042: \$? = $ac_status" >&5
7043 (exit $ac_status); }
7044 if test -f conftest.out ; then
7045 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
7046 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
7051 cat >conftest.$ac_ext <<_ACEOF
7052 #line 7052 "configure"
7053 #include "confdefs.h"
7055 #include <${cf_cv_ncurses_header:-curses.h}>
7059 FILE *fp = fopen("$cf_tempfile", "w");
7060 #ifdef NCURSES_VERSION
7061 # ifdef NCURSES_VERSION_PATCH
7062 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
7064 fprintf(fp, "%s\n", NCURSES_VERSION);
7068 fprintf(fp, "old\n");
7073 ${cf_cv_main_return:-return}(0);
7076 rm -f conftest$ac_exeext
7077 if { (eval echo "$as_me:7077: \"$ac_link\"") >&5
7078 (eval $ac_link) 2>&5
7080 echo "$as_me:7080: \$? = $ac_status" >&5
7081 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7082 { (eval echo "$as_me:7082: \"$ac_try\"") >&5
7085 echo "$as_me:7085: \$? = $ac_status" >&5
7086 (exit $ac_status); }; }; then
7088 cf_cv_ncurses_version=`cat $cf_tempfile`
7090 echo "$as_me: program exited with status $ac_status" >&5
7091 echo "$as_me: failed program was:" >&5
7092 cat conftest.$ac_ext >&5
7094 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7099 echo "$as_me:7099: result: $cf_cv_ncurses_version" >&5
7100 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
7101 test "$cf_cv_ncurses_version" = no ||
7102 cat >>confdefs.h <<\EOF
7106 cf_nculib_root=$cf_cv_screen
7107 # This works, except for the special case where we find gpm, but
7108 # ncurses is in a nonstandard location via $LIBS, and we really want
7111 cf_ncurses_SAVE="$LIBS"
7112 echo "$as_me:7112: checking for Gpm_Open in -lgpm" >&5
7113 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
7114 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
7115 echo $ECHO_N "(cached) $ECHO_C" >&6
7117 ac_check_lib_save_LIBS=$LIBS
7119 cat >conftest.$ac_ext <<_ACEOF
7120 #line 7120 "configure"
7121 #include "confdefs.h"
7123 /* Override any gcc2 internal prototype to avoid an error. */
7127 /* We use char because int might match the return type of a gcc2
7128 builtin and then its argument prototype would still apply. */
7138 rm -f conftest.$ac_objext conftest$ac_exeext
7139 if { (eval echo "$as_me:7139: \"$ac_link\"") >&5
7140 (eval $ac_link) 2>&5
7142 echo "$as_me:7142: \$? = $ac_status" >&5
7143 (exit $ac_status); } &&
7144 { ac_try='test -s conftest$ac_exeext'
7145 { (eval echo "$as_me:7145: \"$ac_try\"") >&5
7148 echo "$as_me:7148: \$? = $ac_status" >&5
7149 (exit $ac_status); }; }; then
7150 ac_cv_lib_gpm_Gpm_Open=yes
7152 echo "$as_me: failed program was:" >&5
7153 cat conftest.$ac_ext >&5
7154 ac_cv_lib_gpm_Gpm_Open=no
7156 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7157 LIBS=$ac_check_lib_save_LIBS
7159 echo "$as_me:7159: result: $ac_cv_lib_gpm_Gpm_Open" >&5
7160 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
7161 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
7162 echo "$as_me:7162: checking for initscr in -lgpm" >&5
7163 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
7164 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7167 ac_check_lib_save_LIBS=$LIBS
7169 cat >conftest.$ac_ext <<_ACEOF
7170 #line 7170 "configure"
7171 #include "confdefs.h"
7173 /* Override any gcc2 internal prototype to avoid an error. */
7177 /* We use char because int might match the return type of a gcc2
7178 builtin and then its argument prototype would still apply. */
7188 rm -f conftest.$ac_objext conftest$ac_exeext
7189 if { (eval echo "$as_me:7189: \"$ac_link\"") >&5
7190 (eval $ac_link) 2>&5
7192 echo "$as_me:7192: \$? = $ac_status" >&5
7193 (exit $ac_status); } &&
7194 { ac_try='test -s conftest$ac_exeext'
7195 { (eval echo "$as_me:7195: \"$ac_try\"") >&5
7198 echo "$as_me:7198: \$? = $ac_status" >&5
7199 (exit $ac_status); }; }; then
7200 ac_cv_lib_gpm_initscr=yes
7202 echo "$as_me: failed program was:" >&5
7203 cat conftest.$ac_ext >&5
7204 ac_cv_lib_gpm_initscr=no
7206 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7207 LIBS=$ac_check_lib_save_LIBS
7209 echo "$as_me:7209: result: $ac_cv_lib_gpm_initscr" >&5
7210 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
7211 if test $ac_cv_lib_gpm_initscr = yes; then
7212 LIBS="$cf_ncurses_SAVE"
7214 cf_ncurses_LIBS="-lgpm"
7221 # This is only necessary if you are linking against an obsolete
7222 # version of ncurses (but it should do no harm, since it's static).
7223 if test "$cf_nculib_root" = ncurses ; then
7224 echo "$as_me:7224: checking for tgoto in -lmytinfo" >&5
7225 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
7226 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7229 ac_check_lib_save_LIBS=$LIBS
7230 LIBS="-lmytinfo $LIBS"
7231 cat >conftest.$ac_ext <<_ACEOF
7232 #line 7232 "configure"
7233 #include "confdefs.h"
7235 /* Override any gcc2 internal prototype to avoid an error. */
7239 /* We use char because int might match the return type of a gcc2
7240 builtin and then its argument prototype would still apply. */
7250 rm -f conftest.$ac_objext conftest$ac_exeext
7251 if { (eval echo "$as_me:7251: \"$ac_link\"") >&5
7252 (eval $ac_link) 2>&5
7254 echo "$as_me:7254: \$? = $ac_status" >&5
7255 (exit $ac_status); } &&
7256 { ac_try='test -s conftest$ac_exeext'
7257 { (eval echo "$as_me:7257: \"$ac_try\"") >&5
7260 echo "$as_me:7260: \$? = $ac_status" >&5
7261 (exit $ac_status); }; }; then
7262 ac_cv_lib_mytinfo_tgoto=yes
7264 echo "$as_me: failed program was:" >&5
7265 cat conftest.$ac_ext >&5
7266 ac_cv_lib_mytinfo_tgoto=no
7268 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7269 LIBS=$ac_check_lib_save_LIBS
7271 echo "$as_me:7271: result: $ac_cv_lib_mytinfo_tgoto" >&5
7272 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
7273 if test $ac_cv_lib_mytinfo_tgoto = yes; then
7274 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
7281 cf_add_libs="$cf_ncurses_LIBS"
7282 # Filter out duplicates - this happens with badly-designed ".pc" files...
7283 for cf_add_1lib in $LIBS
7285 for cf_add_2lib in $cf_add_libs
7287 if test "x$cf_add_1lib" = "x$cf_add_2lib"
7293 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
7297 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
7300 cf_add_libs="-l$cf_nculib_root"
7301 # Filter out duplicates - this happens with badly-designed ".pc" files...
7302 for cf_add_1lib in $LIBS
7304 for cf_add_2lib in $cf_add_libs
7306 if test "x$cf_add_1lib" = "x$cf_add_2lib"
7312 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
7318 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
7320 echo "$as_me:7320: checking for initscr" >&5
7321 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
7322 if test "${ac_cv_func_initscr+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7325 cat >conftest.$ac_ext <<_ACEOF
7326 #line 7326 "configure"
7327 #include "confdefs.h"
7328 /* System header to define __stub macros and hopefully few prototypes,
7329 which can conflict with char initscr (); below. */
7331 /* Override any gcc2 internal prototype to avoid an error. */
7335 /* We use char because int might match the return type of a gcc2
7336 builtin and then its argument prototype would still apply. */
7343 /* The GNU C library defines this for functions which it implements
7344 to always fail with ENOSYS. Some functions are actually named
7345 something starting with __ and the normal name is an alias. */
7346 #if defined (__stub_initscr) || defined (__stub___initscr)
7349 f = initscr; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
7356 rm -f conftest.$ac_objext conftest$ac_exeext
7357 if { (eval echo "$as_me:7357: \"$ac_link\"") >&5
7358 (eval $ac_link) 2>&5
7360 echo "$as_me:7360: \$? = $ac_status" >&5
7361 (exit $ac_status); } &&
7362 { ac_try='test -s conftest$ac_exeext'
7363 { (eval echo "$as_me:7363: \"$ac_try\"") >&5
7366 echo "$as_me:7366: \$? = $ac_status" >&5
7367 (exit $ac_status); }; }; then
7368 ac_cv_func_initscr=yes
7370 echo "$as_me: failed program was:" >&5
7371 cat conftest.$ac_ext >&5
7372 ac_cv_func_initscr=no
7374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7376 echo "$as_me:7376: result: $ac_cv_func_initscr" >&5
7377 echo "${ECHO_T}$ac_cv_func_initscr" >&6
7378 if test $ac_cv_func_initscr = yes; then
7379 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
7382 cf_save_LIBS="$LIBS"
7383 echo "$as_me:7383: checking for initscr in -l$cf_nculib_root" >&5
7384 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
7385 LIBS="-l$cf_nculib_root $LIBS"
7386 cat >conftest.$ac_ext <<_ACEOF
7387 #line 7387 "configure"
7388 #include "confdefs.h"
7389 #include <${cf_cv_ncurses_header:-curses.h}>
7398 rm -f conftest.$ac_objext conftest$ac_exeext
7399 if { (eval echo "$as_me:7399: \"$ac_link\"") >&5
7400 (eval $ac_link) 2>&5
7402 echo "$as_me:7402: \$? = $ac_status" >&5
7403 (exit $ac_status); } &&
7404 { ac_try='test -s conftest$ac_exeext'
7405 { (eval echo "$as_me:7405: \"$ac_try\"") >&5
7408 echo "$as_me:7408: \$? = $ac_status" >&5
7409 (exit $ac_status); }; }; then
7410 echo "$as_me:7410: result: yes" >&5
7411 echo "${ECHO_T}yes" >&6
7412 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
7415 echo "$as_me: failed program was:" >&5
7416 cat conftest.$ac_ext >&5
7417 echo "$as_me:7417: result: no" >&5
7418 echo "${ECHO_T}no" >&6
7421 cf_library_path_list=""
7422 if test -n "${LDFLAGS}${LIBS}" ; then
7423 for cf_library_path in $LDFLAGS $LIBS
7425 case $cf_library_path in
7427 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
7429 test "x$cf_library_path" != "xNONE" && \
7430 test -d "$cf_library_path" && \
7432 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
7433 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
7434 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
7435 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
7436 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
7437 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"
7440 cf_library_path_list="$cf_library_path_list $cf_search"
7448 test "x$prefix" != "xNONE" && \
7449 test -d "$prefix" && \
7451 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
7452 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
7453 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
7454 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
7455 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
7456 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
7459 for cf_subdir_prefix in \
7468 test "x$cf_subdir_prefix" != "x$prefix" && \
7469 test -d "$cf_subdir_prefix" && \
7470 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
7471 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
7472 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
7473 test -d $cf_subdir_prefix/lib/$cf_nculib_root && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root"
7474 test -d $cf_subdir_prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root/lib"
7475 test -d $cf_subdir_prefix/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib"
7476 test -d $cf_subdir_prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib/$cf_nculib_root"
7481 cf_search="$cf_library_path_list $cf_search"
7483 for cf_libdir in $cf_search
7485 echo "$as_me:7485: checking for -l$cf_nculib_root in $cf_libdir" >&5
7486 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
7487 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
7488 cat >conftest.$ac_ext <<_ACEOF
7489 #line 7489 "configure"
7490 #include "confdefs.h"
7491 #include <${cf_cv_ncurses_header:-curses.h}>
7500 rm -f conftest.$ac_objext conftest$ac_exeext
7501 if { (eval echo "$as_me:7501: \"$ac_link\"") >&5
7502 (eval $ac_link) 2>&5
7504 echo "$as_me:7504: \$? = $ac_status" >&5
7505 (exit $ac_status); } &&
7506 { ac_try='test -s conftest$ac_exeext'
7507 { (eval echo "$as_me:7507: \"$ac_try\"") >&5
7510 echo "$as_me:7510: \$? = $ac_status" >&5
7511 (exit $ac_status); }; }; then
7512 echo "$as_me:7512: result: yes" >&5
7513 echo "${ECHO_T}yes" >&6
7514 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
7517 echo "$as_me: failed program was:" >&5
7518 cat conftest.$ac_ext >&5
7519 echo "$as_me:7519: result: no" >&5
7520 echo "${ECHO_T}no" >&6
7521 LIBS="$cf_save_LIBS"
7523 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7527 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7531 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
7533 if test $cf_found_library = no ; then
7534 { { echo "$as_me:7534: error: Cannot link $cf_nculib_root library" >&5
7535 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
7536 { (exit 1); exit 1; }; }
7541 if test -n "$cf_ncurses_LIBS" ; then
7542 echo "$as_me:7542: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
7543 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
7544 cf_ncurses_SAVE="$LIBS"
7545 for p in $cf_ncurses_LIBS ; do
7546 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
7547 if test "$q" != "$LIBS" ; then
7551 cat >conftest.$ac_ext <<_ACEOF
7552 #line 7552 "configure"
7553 #include "confdefs.h"
7554 #include <${cf_cv_ncurses_header:-curses.h}>
7558 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
7563 rm -f conftest.$ac_objext conftest$ac_exeext
7564 if { (eval echo "$as_me:7564: \"$ac_link\"") >&5
7565 (eval $ac_link) 2>&5
7567 echo "$as_me:7567: \$? = $ac_status" >&5
7568 (exit $ac_status); } &&
7569 { ac_try='test -s conftest$ac_exeext'
7570 { (eval echo "$as_me:7570: \"$ac_try\"") >&5
7573 echo "$as_me:7573: \$? = $ac_status" >&5
7574 (exit $ac_status); }; }; then
7575 echo "$as_me:7575: result: yes" >&5
7576 echo "${ECHO_T}yes" >&6
7578 echo "$as_me: failed program was:" >&5
7579 cat conftest.$ac_ext >&5
7580 echo "$as_me:7580: result: no" >&5
7581 echo "${ECHO_T}no" >&6
7582 LIBS="$cf_ncurses_SAVE"
7584 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7587 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7589 cat >>confdefs.h <<EOF
7590 #define $cf_nculib_ROOT 1
7601 cf_ncuconfig_root=$cf_cv_screen
7602 cf_have_ncuconfig=no
7604 if test "x$PKG_CONFIG" != xnone; then
7605 echo "$as_me:7605: checking pkg-config for $cf_ncuconfig_root" >&5
7606 echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
7607 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
7608 echo "$as_me:7608: result: yes" >&5
7609 echo "${ECHO_T}yes" >&6
7611 echo "$as_me:7611: checking if the $cf_ncuconfig_root package files work" >&5
7612 echo $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
7613 cf_have_ncuconfig=unknown
7615 cf_save_CPPFLAGS="$CPPFLAGS"
7616 cf_save_LIBS="$LIBS"
7618 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG --cflags $cf_ncuconfig_root`"
7620 cf_add_libs="`$PKG_CONFIG --libs $cf_ncuconfig_root`"
7621 # Filter out duplicates - this happens with badly-designed ".pc" files...
7622 for cf_add_1lib in $LIBS
7624 for cf_add_2lib in $cf_add_libs
7626 if test "x$cf_add_1lib" = "x$cf_add_2lib"
7632 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
7636 cat >conftest.$ac_ext <<_ACEOF
7637 #line 7637 "configure"
7638 #include "confdefs.h"
7639 #include <${cf_cv_ncurses_header:-curses.h}>
7643 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
7648 rm -f conftest.$ac_objext conftest$ac_exeext
7649 if { (eval echo "$as_me:7649: \"$ac_link\"") >&5
7650 (eval $ac_link) 2>&5
7652 echo "$as_me:7652: \$? = $ac_status" >&5
7653 (exit $ac_status); } &&
7654 { ac_try='test -s conftest$ac_exeext'
7655 { (eval echo "$as_me:7655: \"$ac_try\"") >&5
7658 echo "$as_me:7658: \$? = $ac_status" >&5
7659 (exit $ac_status); }; }; then
7660 if test "$cross_compiling" = yes; then
7661 { { echo "$as_me:7661: error: cannot run test program while cross compiling" >&5
7662 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7663 { (exit 1); exit 1; }; }
7665 cat >conftest.$ac_ext <<_ACEOF
7666 #line 7666 "configure"
7667 #include "confdefs.h"
7668 #include <${cf_cv_ncurses_header:-curses.h}>
7670 { char *xx = curses_version(); return (xx == 0); }
7672 rm -f conftest$ac_exeext
7673 if { (eval echo "$as_me:7673: \"$ac_link\"") >&5
7674 (eval $ac_link) 2>&5
7676 echo "$as_me:7676: \$? = $ac_status" >&5
7677 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7678 { (eval echo "$as_me:7678: \"$ac_try\"") >&5
7681 echo "$as_me:7681: \$? = $ac_status" >&5
7682 (exit $ac_status); }; }; then
7683 cf_have_ncuconfig=yes
7685 echo "$as_me: program exited with status $ac_status" >&5
7686 echo "$as_me: failed program was:" >&5
7687 cat conftest.$ac_ext >&5
7688 cf_have_ncuconfig=no
7690 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7693 echo "$as_me: failed program was:" >&5
7694 cat conftest.$ac_ext >&5
7695 cf_have_ncuconfig=no
7697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7699 echo "$as_me:7699: result: $cf_have_ncuconfig" >&5
7700 echo "${ECHO_T}$cf_have_ncuconfig" >&6
7701 if test "$cf_have_ncuconfig" != "yes"
7703 CPPFLAGS="$cf_save_CPPFLAGS"
7704 LIBS="$cf_save_LIBS"
7705 NCURSES_CONFIG_PKG=none
7708 cat >>confdefs.h <<\EOF
7712 NCURSES_CONFIG_PKG=$cf_ncuconfig_root
7716 echo "$as_me:7716: result: no" >&5
7717 echo "${ECHO_T}no" >&6
7718 NCURSES_CONFIG_PKG=none
7721 NCURSES_CONFIG_PKG=none
7724 if test "x$cf_have_ncuconfig" = "xno"; then
7725 echo "Looking for ${cf_ncuconfig_root}-config"
7727 if test -n "$ac_tool_prefix"; then
7728 for ac_prog in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
7730 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7731 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7732 echo "$as_me:7732: checking for $ac_word" >&5
7733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7734 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
7735 echo $ECHO_N "(cached) $ECHO_C" >&6
7737 if test -n "$NCURSES_CONFIG"; then
7738 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
7740 ac_save_IFS=$IFS; IFS=$ac_path_separator
7742 for ac_dir in $ac_dummy; do
7744 test -z "$ac_dir" && ac_dir=.
7745 $as_executable_p "$ac_dir/$ac_word" || continue
7746 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
7747 echo "$as_me:7747: found $ac_dir/$ac_word" >&5
7753 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
7754 if test -n "$NCURSES_CONFIG"; then
7755 echo "$as_me:7755: result: $NCURSES_CONFIG" >&5
7756 echo "${ECHO_T}$NCURSES_CONFIG" >&6
7758 echo "$as_me:7758: result: no" >&5
7759 echo "${ECHO_T}no" >&6
7762 test -n "$NCURSES_CONFIG" && break
7765 if test -z "$NCURSES_CONFIG"; then
7766 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
7767 for ac_prog in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
7769 # Extract the first word of "$ac_prog", so it can be a program name with args.
7770 set dummy $ac_prog; ac_word=$2
7771 echo "$as_me:7771: checking for $ac_word" >&5
7772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7773 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
7774 echo $ECHO_N "(cached) $ECHO_C" >&6
7776 if test -n "$ac_ct_NCURSES_CONFIG"; then
7777 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
7779 ac_save_IFS=$IFS; IFS=$ac_path_separator
7781 for ac_dir in $ac_dummy; do
7783 test -z "$ac_dir" && ac_dir=.
7784 $as_executable_p "$ac_dir/$ac_word" || continue
7785 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
7786 echo "$as_me:7786: found $ac_dir/$ac_word" >&5
7792 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
7793 if test -n "$ac_ct_NCURSES_CONFIG"; then
7794 echo "$as_me:7794: result: $ac_ct_NCURSES_CONFIG" >&5
7795 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
7797 echo "$as_me:7797: result: no" >&5
7798 echo "${ECHO_T}no" >&6
7801 test -n "$ac_ct_NCURSES_CONFIG" && break
7803 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
7805 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
7808 if test "$NCURSES_CONFIG" != none ; then
7810 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
7812 cf_add_libs="`$NCURSES_CONFIG --libs`"
7813 # Filter out duplicates - this happens with badly-designed ".pc" files...
7814 for cf_add_1lib in $LIBS
7816 for cf_add_2lib in $cf_add_libs
7818 if test "x$cf_add_1lib" = "x$cf_add_2lib"
7824 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
7828 # even with config script, some packages use no-override for curses.h
7830 echo "$as_me:7830: checking if we have identified curses headers" >&5
7831 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
7832 if test "${cf_cv_ncurses_header+set}" = set; then
7833 echo $ECHO_N "(cached) $ECHO_C" >&6
7836 cf_cv_ncurses_header=none
7838 ncurses.h $cf_cv_screen/ncurses.h \
7839 curses.h $cf_cv_screen/curses.h
7841 cat >conftest.$ac_ext <<_ACEOF
7842 #line 7842 "configure"
7843 #include "confdefs.h"
7844 #include <${cf_header}>
7848 initscr(); tgoto("?", 0,0)
7853 rm -f conftest.$ac_objext
7854 if { (eval echo "$as_me:7854: \"$ac_compile\"") >&5
7855 (eval $ac_compile) 2>&5
7857 echo "$as_me:7857: \$? = $ac_status" >&5
7858 (exit $ac_status); } &&
7859 { ac_try='test -s conftest.$ac_objext'
7860 { (eval echo "$as_me:7860: \"$ac_try\"") >&5
7863 echo "$as_me:7863: \$? = $ac_status" >&5
7864 (exit $ac_status); }; }; then
7865 cf_cv_ncurses_header=$cf_header; break
7867 echo "$as_me: failed program was:" >&5
7868 cat conftest.$ac_ext >&5
7870 rm -f conftest.$ac_objext conftest.$ac_ext
7874 echo "$as_me:7874: result: $cf_cv_ncurses_header" >&5
7875 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
7877 if test "$cf_cv_ncurses_header" = none ; then
7878 { { echo "$as_me:7878: error: No curses header-files found" >&5
7879 echo "$as_me: error: No curses header-files found" >&2;}
7880 { (exit 1); exit 1; }; }
7883 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
7885 for ac_header in $cf_cv_ncurses_header
7887 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7888 echo "$as_me:7888: checking for $ac_header" >&5
7889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7891 echo $ECHO_N "(cached) $ECHO_C" >&6
7893 cat >conftest.$ac_ext <<_ACEOF
7894 #line 7894 "configure"
7895 #include "confdefs.h"
7896 #include <$ac_header>
7898 if { (eval echo "$as_me:7898: \"$ac_cpp conftest.$ac_ext\"") >&5
7899 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7901 egrep -v '^ *\+' conftest.er1 >conftest.err
7903 cat conftest.err >&5
7904 echo "$as_me:7904: \$? = $ac_status" >&5
7905 (exit $ac_status); } >/dev/null; then
7906 if test -s conftest.err; then
7907 ac_cpp_err=$ac_c_preproc_warn_flag
7914 if test -z "$ac_cpp_err"; then
7915 eval "$as_ac_Header=yes"
7917 echo "$as_me: failed program was:" >&5
7918 cat conftest.$ac_ext >&5
7919 eval "$as_ac_Header=no"
7921 rm -f conftest.err conftest.$ac_ext
7923 echo "$as_me:7923: result: `eval echo '${'$as_ac_Header'}'`" >&5
7924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7926 cat >>confdefs.h <<EOF
7927 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7933 cat >>confdefs.h <<\EOF
7937 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7939 cat >>confdefs.h <<EOF
7940 #define $cf_nculib_ROOT 1
7943 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
7947 cf_ncuhdr_root=$cf_cv_screen
7949 test -n "$cf_cv_curses_dir" && \
7950 test "$cf_cv_curses_dir" != "no" && { \
7952 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
7953 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
7955 while test $cf_add_incdir != /usr/include
7957 if test -d $cf_add_incdir
7960 if test -n "$CFLAGS$CPPFLAGS" ; then
7961 # a loop is needed to ensure we can add subdirs of existing dirs
7962 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7963 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7964 cf_have_incdir=yes; break
7969 if test "$cf_have_incdir" = no ; then
7970 if test "$cf_add_incdir" = /usr/local/include ; then
7971 if test "$GCC" = yes
7973 cf_save_CPPFLAGS=$CPPFLAGS
7974 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7975 cat >conftest.$ac_ext <<_ACEOF
7976 #line 7976 "configure"
7977 #include "confdefs.h"
7987 rm -f conftest.$ac_objext
7988 if { (eval echo "$as_me:7988: \"$ac_compile\"") >&5
7989 (eval $ac_compile) 2>&5
7991 echo "$as_me:7991: \$? = $ac_status" >&5
7992 (exit $ac_status); } &&
7993 { ac_try='test -s conftest.$ac_objext'
7994 { (eval echo "$as_me:7994: \"$ac_try\"") >&5
7997 echo "$as_me:7997: \$? = $ac_status" >&5
7998 (exit $ac_status); }; }; then
8001 echo "$as_me: failed program was:" >&5
8002 cat conftest.$ac_ext >&5
8005 rm -f conftest.$ac_objext conftest.$ac_ext
8006 CPPFLAGS=$cf_save_CPPFLAGS
8011 if test "$cf_have_incdir" = no ; then
8012 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8014 echo "${as_me:-configure}:8014: testing adding $cf_add_incdir to include-path ..." 1>&5
8016 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8018 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8019 test "$cf_top_incdir" = "$cf_add_incdir" && break
8020 cf_add_incdir="$cf_top_incdir"
8031 echo "$as_me:8031: checking for $cf_ncuhdr_root header in include-path" >&5
8032 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
8033 if test "${cf_cv_ncurses_h+set}" = set; then
8034 echo $ECHO_N "(cached) $ECHO_C" >&6
8037 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
8038 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
8039 for cf_header in $cf_header_list
8042 cat >conftest.$ac_ext <<_ACEOF
8043 #line 8043 "configure"
8044 #include "confdefs.h"
8046 #include <$cf_header>
8051 #ifdef NCURSES_VERSION
8053 printf("%s\n", NCURSES_VERSION);
8066 rm -f conftest.$ac_objext
8067 if { (eval echo "$as_me:8067: \"$ac_compile\"") >&5
8068 (eval $ac_compile) 2>&5
8070 echo "$as_me:8070: \$? = $ac_status" >&5
8071 (exit $ac_status); } &&
8072 { ac_try='test -s conftest.$ac_objext'
8073 { (eval echo "$as_me:8073: \"$ac_try\"") >&5
8076 echo "$as_me:8076: \$? = $ac_status" >&5
8077 (exit $ac_status); }; }; then
8078 cf_cv_ncurses_h=$cf_header
8081 echo "$as_me: failed program was:" >&5
8082 cat conftest.$ac_ext >&5
8085 rm -f conftest.$ac_objext conftest.$ac_ext
8087 test "$cf_cv_ncurses_h" != no && break
8091 echo "$as_me:8091: result: $cf_cv_ncurses_h" >&5
8092 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
8094 if test "$cf_cv_ncurses_h" != no ; then
8095 cf_cv_ncurses_header=$cf_cv_ncurses_h
8098 echo "$as_me:8098: checking for $cf_ncuhdr_root include-path" >&5
8099 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
8100 if test "${cf_cv_ncurses_h2+set}" = set; then
8101 echo $ECHO_N "(cached) $ECHO_C" >&6
8104 test -n "$verbose" && echo
8108 # collect the current set of include-directories from compiler flags
8109 cf_header_path_list=""
8110 if test -n "${CFLAGS}${CPPFLAGS}" ; then
8111 for cf_header_path in $CPPFLAGS $CFLAGS
8113 case $cf_header_path in
8115 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
8117 test "x$cf_header_path" != "xNONE" && \
8118 test -d "$cf_header_path" && \
8120 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
8121 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
8122 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
8123 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
8124 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
8125 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"
8128 cf_header_path_list="$cf_header_path_list $cf_search"
8134 # add the variations for the package we are looking for
8138 test "x$prefix" != "xNONE" && \
8139 test -d "$prefix" && \
8141 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
8142 test -d $prefix/include && cf_search="$cf_search $prefix/include"
8143 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
8144 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
8145 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
8146 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
8149 for cf_subdir_prefix in \
8158 test "x$cf_subdir_prefix" != "x$prefix" && \
8159 test -d "$cf_subdir_prefix" && \
8160 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
8161 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
8162 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
8163 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root"
8164 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root/include"
8165 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include"
8166 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
8171 test "$includedir" != NONE && \
8172 test "$includedir" != "/usr/include" && \
8173 test -d "$includedir" && {
8174 test -d $includedir && cf_search="$cf_search $includedir"
8175 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
8178 test "$oldincludedir" != NONE && \
8179 test "$oldincludedir" != "/usr/include" && \
8180 test -d "$oldincludedir" && {
8181 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
8182 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
8185 cf_search="$cf_search $cf_header_path_list"
8187 test -n "$verbose" && echo search path $cf_search
8188 cf_save2_CPPFLAGS="$CPPFLAGS"
8189 for cf_incdir in $cf_search
8192 if test -n "$cf_incdir" ; then
8193 for cf_add_incdir in $cf_incdir
8195 while test $cf_add_incdir != /usr/include
8197 if test -d $cf_add_incdir
8200 if test -n "$CFLAGS$CPPFLAGS" ; then
8201 # a loop is needed to ensure we can add subdirs of existing dirs
8202 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8203 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8204 cf_have_incdir=yes; break
8209 if test "$cf_have_incdir" = no ; then
8210 if test "$cf_add_incdir" = /usr/local/include ; then
8211 if test "$GCC" = yes
8213 cf_save_CPPFLAGS=$CPPFLAGS
8214 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8215 cat >conftest.$ac_ext <<_ACEOF
8216 #line 8216 "configure"
8217 #include "confdefs.h"
8227 rm -f conftest.$ac_objext
8228 if { (eval echo "$as_me:8228: \"$ac_compile\"") >&5
8229 (eval $ac_compile) 2>&5
8231 echo "$as_me:8231: \$? = $ac_status" >&5
8232 (exit $ac_status); } &&
8233 { ac_try='test -s conftest.$ac_objext'
8234 { (eval echo "$as_me:8234: \"$ac_try\"") >&5
8237 echo "$as_me:8237: \$? = $ac_status" >&5
8238 (exit $ac_status); }; }; then
8241 echo "$as_me: failed program was:" >&5
8242 cat conftest.$ac_ext >&5
8245 rm -f conftest.$ac_objext conftest.$ac_ext
8246 CPPFLAGS=$cf_save_CPPFLAGS
8251 if test "$cf_have_incdir" = no ; then
8252 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8254 echo "${as_me:-configure}:8254: testing adding $cf_add_incdir to include-path ..." 1>&5
8256 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8258 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8259 test "$cf_top_incdir" = "$cf_add_incdir" && break
8260 cf_add_incdir="$cf_top_incdir"
8274 cat >conftest.$ac_ext <<_ACEOF
8275 #line 8275 "configure"
8276 #include "confdefs.h"
8278 #include <$cf_header>
8283 #ifdef NCURSES_VERSION
8285 printf("%s\n", NCURSES_VERSION);
8298 rm -f conftest.$ac_objext
8299 if { (eval echo "$as_me:8299: \"$ac_compile\"") >&5
8300 (eval $ac_compile) 2>&5
8302 echo "$as_me:8302: \$? = $ac_status" >&5
8303 (exit $ac_status); } &&
8304 { ac_try='test -s conftest.$ac_objext'
8305 { (eval echo "$as_me:8305: \"$ac_try\"") >&5
8308 echo "$as_me:8308: \$? = $ac_status" >&5
8309 (exit $ac_status); }; }; then
8310 cf_cv_ncurses_h2=$cf_header
8313 echo "$as_me: failed program was:" >&5
8314 cat conftest.$ac_ext >&5
8317 rm -f conftest.$ac_objext conftest.$ac_ext
8319 if test "$cf_cv_ncurses_h2" != no ; then
8320 cf_cv_ncurses_h2=$cf_incdir/$cf_header
8321 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
8324 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
8326 CPPFLAGS="$cf_save2_CPPFLAGS"
8327 test "$cf_cv_ncurses_h2" != no && break
8329 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:8329: error: not found" >&5
8330 echo "$as_me: error: not found" >&2;}
8331 { (exit 1); exit 1; }; }
8334 echo "$as_me:8334: result: $cf_cv_ncurses_h2" >&5
8335 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
8337 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
8338 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
8339 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
8340 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
8343 if test -n "$cf_1st_incdir" ; then
8344 for cf_add_incdir in $cf_1st_incdir
8346 while test $cf_add_incdir != /usr/include
8348 if test -d $cf_add_incdir
8351 if test -n "$CFLAGS$CPPFLAGS" ; then
8352 # a loop is needed to ensure we can add subdirs of existing dirs
8353 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8354 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8355 cf_have_incdir=yes; break
8360 if test "$cf_have_incdir" = no ; then
8361 if test "$cf_add_incdir" = /usr/local/include ; then
8362 if test "$GCC" = yes
8364 cf_save_CPPFLAGS=$CPPFLAGS
8365 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8366 cat >conftest.$ac_ext <<_ACEOF
8367 #line 8367 "configure"
8368 #include "confdefs.h"
8378 rm -f conftest.$ac_objext
8379 if { (eval echo "$as_me:8379: \"$ac_compile\"") >&5
8380 (eval $ac_compile) 2>&5
8382 echo "$as_me:8382: \$? = $ac_status" >&5
8383 (exit $ac_status); } &&
8384 { ac_try='test -s conftest.$ac_objext'
8385 { (eval echo "$as_me:8385: \"$ac_try\"") >&5
8388 echo "$as_me:8388: \$? = $ac_status" >&5
8389 (exit $ac_status); }; }; then
8392 echo "$as_me: failed program was:" >&5
8393 cat conftest.$ac_ext >&5
8396 rm -f conftest.$ac_objext conftest.$ac_ext
8397 CPPFLAGS=$cf_save_CPPFLAGS
8402 if test "$cf_have_incdir" = no ; then
8403 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8405 echo "${as_me:-configure}:8405: testing adding $cf_add_incdir to include-path ..." 1>&5
8407 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8409 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8410 test "$cf_top_incdir" = "$cf_add_incdir" && break
8411 cf_add_incdir="$cf_top_incdir"
8422 # Set definitions to allow ifdef'ing for ncurses.h
8424 case $cf_cv_ncurses_header in
8427 cat >>confdefs.h <<\EOF
8428 #define HAVE_NCURSES_H 1
8434 case $cf_cv_ncurses_header in
8435 (ncurses/curses.h|ncurses/ncurses.h)
8437 cat >>confdefs.h <<\EOF
8438 #define HAVE_NCURSES_NCURSES_H 1
8442 (ncursesw/curses.h|ncursesw/ncurses.h)
8444 cat >>confdefs.h <<\EOF
8445 #define HAVE_NCURSESW_NCURSES_H 1
8451 echo "$as_me:8451: checking for terminfo header" >&5
8452 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
8453 if test "${cf_cv_term_header+set}" = set; then
8454 echo $ECHO_N "(cached) $ECHO_C" >&6
8457 case ${cf_cv_ncurses_header} in
8458 (*/ncurses.h|*/ncursesw.h)
8459 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
8462 cf_term_header=term.h
8466 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
8468 cat >conftest.$ac_ext <<_ACEOF
8469 #line 8469 "configure"
8470 #include "confdefs.h"
8472 #include <${cf_cv_ncurses_header:-curses.h}>
8478 int x = auto_left_margin
8483 rm -f conftest.$ac_objext
8484 if { (eval echo "$as_me:8484: \"$ac_compile\"") >&5
8485 (eval $ac_compile) 2>&5
8487 echo "$as_me:8487: \$? = $ac_status" >&5
8488 (exit $ac_status); } &&
8489 { ac_try='test -s conftest.$ac_objext'
8490 { (eval echo "$as_me:8490: \"$ac_try\"") >&5
8493 echo "$as_me:8493: \$? = $ac_status" >&5
8494 (exit $ac_status); }; }; then
8496 cf_cv_term_header="$cf_test"
8498 echo "$as_me: failed program was:" >&5
8499 cat conftest.$ac_ext >&5
8501 cf_cv_term_header=unknown
8504 rm -f conftest.$ac_objext conftest.$ac_ext
8505 test "$cf_cv_term_header" != unknown && break
8509 echo "$as_me:8509: result: $cf_cv_term_header" >&5
8510 echo "${ECHO_T}$cf_cv_term_header" >&6
8512 # Set definitions to allow ifdef'ing to accommodate subdirectories
8514 case $cf_cv_term_header in
8517 cat >>confdefs.h <<\EOF
8518 #define HAVE_TERM_H 1
8524 case $cf_cv_term_header in
8527 cat >>confdefs.h <<\EOF
8528 #define HAVE_NCURSES_TERM_H 1
8534 cat >>confdefs.h <<\EOF
8535 #define HAVE_NCURSESW_TERM_H 1
8541 # some applications need this, but should check for NCURSES_VERSION
8543 cat >>confdefs.h <<\EOF
8547 echo "$as_me:8547: checking for ncurses version" >&5
8548 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
8549 if test "${cf_cv_ncurses_version+set}" = set; then
8550 echo $ECHO_N "(cached) $ECHO_C" >&6
8553 cf_cv_ncurses_version=no
8556 if test "$cross_compiling" = yes; then
8558 # This will not work if the preprocessor splits the line after the
8559 # Autoconf token. The 'unproto' program does that.
8560 cat > conftest.$ac_ext <<EOF
8561 #include <${cf_cv_ncurses_header:-curses.h}>
8563 #ifdef NCURSES_VERSION
8564 Autoconf NCURSES_VERSION
8572 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
8573 { (eval echo "$as_me:8573: \"$cf_try\"") >&5
8576 echo "$as_me:8576: \$? = $ac_status" >&5
8577 (exit $ac_status); }
8578 if test -f conftest.out ; then
8579 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
8580 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
8585 cat >conftest.$ac_ext <<_ACEOF
8586 #line 8586 "configure"
8587 #include "confdefs.h"
8589 #include <${cf_cv_ncurses_header:-curses.h}>
8593 FILE *fp = fopen("$cf_tempfile", "w");
8594 #ifdef NCURSES_VERSION
8595 # ifdef NCURSES_VERSION_PATCH
8596 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
8598 fprintf(fp, "%s\n", NCURSES_VERSION);
8602 fprintf(fp, "old\n");
8607 ${cf_cv_main_return:-return}(0);
8610 rm -f conftest$ac_exeext
8611 if { (eval echo "$as_me:8611: \"$ac_link\"") >&5
8612 (eval $ac_link) 2>&5
8614 echo "$as_me:8614: \$? = $ac_status" >&5
8615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8616 { (eval echo "$as_me:8616: \"$ac_try\"") >&5
8619 echo "$as_me:8619: \$? = $ac_status" >&5
8620 (exit $ac_status); }; }; then
8622 cf_cv_ncurses_version=`cat $cf_tempfile`
8624 echo "$as_me: program exited with status $ac_status" >&5
8625 echo "$as_me: failed program was:" >&5
8626 cat conftest.$ac_ext >&5
8628 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8633 echo "$as_me:8633: result: $cf_cv_ncurses_version" >&5
8634 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
8635 test "$cf_cv_ncurses_version" = no ||
8636 cat >>confdefs.h <<\EOF
8640 cf_nculib_root=$cf_cv_screen
8641 # This works, except for the special case where we find gpm, but
8642 # ncurses is in a nonstandard location via $LIBS, and we really want
8645 cf_ncurses_SAVE="$LIBS"
8646 echo "$as_me:8646: checking for Gpm_Open in -lgpm" >&5
8647 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
8648 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
8649 echo $ECHO_N "(cached) $ECHO_C" >&6
8651 ac_check_lib_save_LIBS=$LIBS
8653 cat >conftest.$ac_ext <<_ACEOF
8654 #line 8654 "configure"
8655 #include "confdefs.h"
8657 /* Override any gcc2 internal prototype to avoid an error. */
8661 /* We use char because int might match the return type of a gcc2
8662 builtin and then its argument prototype would still apply. */
8672 rm -f conftest.$ac_objext conftest$ac_exeext
8673 if { (eval echo "$as_me:8673: \"$ac_link\"") >&5
8674 (eval $ac_link) 2>&5
8676 echo "$as_me:8676: \$? = $ac_status" >&5
8677 (exit $ac_status); } &&
8678 { ac_try='test -s conftest$ac_exeext'
8679 { (eval echo "$as_me:8679: \"$ac_try\"") >&5
8682 echo "$as_me:8682: \$? = $ac_status" >&5
8683 (exit $ac_status); }; }; then
8684 ac_cv_lib_gpm_Gpm_Open=yes
8686 echo "$as_me: failed program was:" >&5
8687 cat conftest.$ac_ext >&5
8688 ac_cv_lib_gpm_Gpm_Open=no
8690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8691 LIBS=$ac_check_lib_save_LIBS
8693 echo "$as_me:8693: result: $ac_cv_lib_gpm_Gpm_Open" >&5
8694 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
8695 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
8696 echo "$as_me:8696: checking for initscr in -lgpm" >&5
8697 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
8698 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
8699 echo $ECHO_N "(cached) $ECHO_C" >&6
8701 ac_check_lib_save_LIBS=$LIBS
8703 cat >conftest.$ac_ext <<_ACEOF
8704 #line 8704 "configure"
8705 #include "confdefs.h"
8707 /* Override any gcc2 internal prototype to avoid an error. */
8711 /* We use char because int might match the return type of a gcc2
8712 builtin and then its argument prototype would still apply. */
8722 rm -f conftest.$ac_objext conftest$ac_exeext
8723 if { (eval echo "$as_me:8723: \"$ac_link\"") >&5
8724 (eval $ac_link) 2>&5
8726 echo "$as_me:8726: \$? = $ac_status" >&5
8727 (exit $ac_status); } &&
8728 { ac_try='test -s conftest$ac_exeext'
8729 { (eval echo "$as_me:8729: \"$ac_try\"") >&5
8732 echo "$as_me:8732: \$? = $ac_status" >&5
8733 (exit $ac_status); }; }; then
8734 ac_cv_lib_gpm_initscr=yes
8736 echo "$as_me: failed program was:" >&5
8737 cat conftest.$ac_ext >&5
8738 ac_cv_lib_gpm_initscr=no
8740 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8741 LIBS=$ac_check_lib_save_LIBS
8743 echo "$as_me:8743: result: $ac_cv_lib_gpm_initscr" >&5
8744 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
8745 if test $ac_cv_lib_gpm_initscr = yes; then
8746 LIBS="$cf_ncurses_SAVE"
8748 cf_ncurses_LIBS="-lgpm"
8755 # This is only necessary if you are linking against an obsolete
8756 # version of ncurses (but it should do no harm, since it's static).
8757 if test "$cf_nculib_root" = ncurses ; then
8758 echo "$as_me:8758: checking for tgoto in -lmytinfo" >&5
8759 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
8760 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
8761 echo $ECHO_N "(cached) $ECHO_C" >&6
8763 ac_check_lib_save_LIBS=$LIBS
8764 LIBS="-lmytinfo $LIBS"
8765 cat >conftest.$ac_ext <<_ACEOF
8766 #line 8766 "configure"
8767 #include "confdefs.h"
8769 /* Override any gcc2 internal prototype to avoid an error. */
8773 /* We use char because int might match the return type of a gcc2
8774 builtin and then its argument prototype would still apply. */
8784 rm -f conftest.$ac_objext conftest$ac_exeext
8785 if { (eval echo "$as_me:8785: \"$ac_link\"") >&5
8786 (eval $ac_link) 2>&5
8788 echo "$as_me:8788: \$? = $ac_status" >&5
8789 (exit $ac_status); } &&
8790 { ac_try='test -s conftest$ac_exeext'
8791 { (eval echo "$as_me:8791: \"$ac_try\"") >&5
8794 echo "$as_me:8794: \$? = $ac_status" >&5
8795 (exit $ac_status); }; }; then
8796 ac_cv_lib_mytinfo_tgoto=yes
8798 echo "$as_me: failed program was:" >&5
8799 cat conftest.$ac_ext >&5
8800 ac_cv_lib_mytinfo_tgoto=no
8802 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8803 LIBS=$ac_check_lib_save_LIBS
8805 echo "$as_me:8805: result: $ac_cv_lib_mytinfo_tgoto" >&5
8806 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
8807 if test $ac_cv_lib_mytinfo_tgoto = yes; then
8808 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
8815 cf_add_libs="$cf_ncurses_LIBS"
8816 # Filter out duplicates - this happens with badly-designed ".pc" files...
8817 for cf_add_1lib in $LIBS
8819 for cf_add_2lib in $cf_add_libs
8821 if test "x$cf_add_1lib" = "x$cf_add_2lib"
8827 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
8831 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
8834 cf_add_libs="-l$cf_nculib_root"
8835 # Filter out duplicates - this happens with badly-designed ".pc" files...
8836 for cf_add_1lib in $LIBS
8838 for cf_add_2lib in $cf_add_libs
8840 if test "x$cf_add_1lib" = "x$cf_add_2lib"
8846 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
8852 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
8854 echo "$as_me:8854: checking for initscr" >&5
8855 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
8856 if test "${ac_cv_func_initscr+set}" = set; then
8857 echo $ECHO_N "(cached) $ECHO_C" >&6
8859 cat >conftest.$ac_ext <<_ACEOF
8860 #line 8860 "configure"
8861 #include "confdefs.h"
8862 /* System header to define __stub macros and hopefully few prototypes,
8863 which can conflict with char initscr (); below. */
8865 /* Override any gcc2 internal prototype to avoid an error. */
8869 /* We use char because int might match the return type of a gcc2
8870 builtin and then its argument prototype would still apply. */
8877 /* The GNU C library defines this for functions which it implements
8878 to always fail with ENOSYS. Some functions are actually named
8879 something starting with __ and the normal name is an alias. */
8880 #if defined (__stub_initscr) || defined (__stub___initscr)
8883 f = initscr; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
8890 rm -f conftest.$ac_objext conftest$ac_exeext
8891 if { (eval echo "$as_me:8891: \"$ac_link\"") >&5
8892 (eval $ac_link) 2>&5
8894 echo "$as_me:8894: \$? = $ac_status" >&5
8895 (exit $ac_status); } &&
8896 { ac_try='test -s conftest$ac_exeext'
8897 { (eval echo "$as_me:8897: \"$ac_try\"") >&5
8900 echo "$as_me:8900: \$? = $ac_status" >&5
8901 (exit $ac_status); }; }; then
8902 ac_cv_func_initscr=yes
8904 echo "$as_me: failed program was:" >&5
8905 cat conftest.$ac_ext >&5
8906 ac_cv_func_initscr=no
8908 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8910 echo "$as_me:8910: result: $ac_cv_func_initscr" >&5
8911 echo "${ECHO_T}$ac_cv_func_initscr" >&6
8912 if test $ac_cv_func_initscr = yes; then
8913 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
8916 cf_save_LIBS="$LIBS"
8917 echo "$as_me:8917: checking for initscr in -l$cf_nculib_root" >&5
8918 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
8919 LIBS="-l$cf_nculib_root $LIBS"
8920 cat >conftest.$ac_ext <<_ACEOF
8921 #line 8921 "configure"
8922 #include "confdefs.h"
8923 #include <${cf_cv_ncurses_header:-curses.h}>
8932 rm -f conftest.$ac_objext conftest$ac_exeext
8933 if { (eval echo "$as_me:8933: \"$ac_link\"") >&5
8934 (eval $ac_link) 2>&5
8936 echo "$as_me:8936: \$? = $ac_status" >&5
8937 (exit $ac_status); } &&
8938 { ac_try='test -s conftest$ac_exeext'
8939 { (eval echo "$as_me:8939: \"$ac_try\"") >&5
8942 echo "$as_me:8942: \$? = $ac_status" >&5
8943 (exit $ac_status); }; }; then
8944 echo "$as_me:8944: result: yes" >&5
8945 echo "${ECHO_T}yes" >&6
8946 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
8949 echo "$as_me: failed program was:" >&5
8950 cat conftest.$ac_ext >&5
8951 echo "$as_me:8951: result: no" >&5
8952 echo "${ECHO_T}no" >&6
8955 cf_library_path_list=""
8956 if test -n "${LDFLAGS}${LIBS}" ; then
8957 for cf_library_path in $LDFLAGS $LIBS
8959 case $cf_library_path in
8961 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
8963 test "x$cf_library_path" != "xNONE" && \
8964 test -d "$cf_library_path" && \
8966 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
8967 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
8968 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
8969 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
8970 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
8971 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"
8974 cf_library_path_list="$cf_library_path_list $cf_search"
8982 test "x$prefix" != "xNONE" && \
8983 test -d "$prefix" && \
8985 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
8986 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
8987 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
8988 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
8989 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
8990 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
8993 for cf_subdir_prefix in \
9002 test "x$cf_subdir_prefix" != "x$prefix" && \
9003 test -d "$cf_subdir_prefix" && \
9004 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
9005 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
9006 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
9007 test -d $cf_subdir_prefix/lib/$cf_nculib_root && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root"
9008 test -d $cf_subdir_prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root/lib"
9009 test -d $cf_subdir_prefix/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib"
9010 test -d $cf_subdir_prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib/$cf_nculib_root"
9015 cf_search="$cf_library_path_list $cf_search"
9017 for cf_libdir in $cf_search
9019 echo "$as_me:9019: checking for -l$cf_nculib_root in $cf_libdir" >&5
9020 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
9021 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
9022 cat >conftest.$ac_ext <<_ACEOF
9023 #line 9023 "configure"
9024 #include "confdefs.h"
9025 #include <${cf_cv_ncurses_header:-curses.h}>
9034 rm -f conftest.$ac_objext conftest$ac_exeext
9035 if { (eval echo "$as_me:9035: \"$ac_link\"") >&5
9036 (eval $ac_link) 2>&5
9038 echo "$as_me:9038: \$? = $ac_status" >&5
9039 (exit $ac_status); } &&
9040 { ac_try='test -s conftest$ac_exeext'
9041 { (eval echo "$as_me:9041: \"$ac_try\"") >&5
9044 echo "$as_me:9044: \$? = $ac_status" >&5
9045 (exit $ac_status); }; }; then
9046 echo "$as_me:9046: result: yes" >&5
9047 echo "${ECHO_T}yes" >&6
9048 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
9051 echo "$as_me: failed program was:" >&5
9052 cat conftest.$ac_ext >&5
9053 echo "$as_me:9053: result: no" >&5
9054 echo "${ECHO_T}no" >&6
9055 LIBS="$cf_save_LIBS"
9057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9065 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
9067 if test $cf_found_library = no ; then
9068 { { echo "$as_me:9068: error: Cannot link $cf_nculib_root library" >&5
9069 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
9070 { (exit 1); exit 1; }; }
9075 if test -n "$cf_ncurses_LIBS" ; then
9076 echo "$as_me:9076: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
9077 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
9078 cf_ncurses_SAVE="$LIBS"
9079 for p in $cf_ncurses_LIBS ; do
9080 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
9081 if test "$q" != "$LIBS" ; then
9085 cat >conftest.$ac_ext <<_ACEOF
9086 #line 9086 "configure"
9087 #include "confdefs.h"
9088 #include <${cf_cv_ncurses_header:-curses.h}>
9092 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
9097 rm -f conftest.$ac_objext conftest$ac_exeext
9098 if { (eval echo "$as_me:9098: \"$ac_link\"") >&5
9099 (eval $ac_link) 2>&5
9101 echo "$as_me:9101: \$? = $ac_status" >&5
9102 (exit $ac_status); } &&
9103 { ac_try='test -s conftest$ac_exeext'
9104 { (eval echo "$as_me:9104: \"$ac_try\"") >&5
9107 echo "$as_me:9107: \$? = $ac_status" >&5
9108 (exit $ac_status); }; }; then
9109 echo "$as_me:9109: result: yes" >&5
9110 echo "${ECHO_T}yes" >&6
9112 echo "$as_me: failed program was:" >&5
9113 cat conftest.$ac_ext >&5
9114 echo "$as_me:9114: result: no" >&5
9115 echo "${ECHO_T}no" >&6
9116 LIBS="$cf_ncurses_SAVE"
9118 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9121 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
9123 cat >>confdefs.h <<EOF
9124 #define $cf_nculib_ROOT 1
9134 echo "$as_me:9134: checking for X" >&5
9135 echo $ECHO_N "checking for X... $ECHO_C" >&6
9137 # Check whether --with-x or --without-x was given.
9138 if test "${with_x+set}" = set; then
9142 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9143 if test "x$with_x" = xno; then
9144 # The user explicitly disabled X.
9147 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9148 # Both variables are already set.
9151 if test "${ac_cv_have_x+set}" = set; then
9152 echo $ECHO_N "(cached) $ECHO_C" >&6
9154 # One or both of the vars are not set, and there is no cached value.
9155 ac_x_includes=no ac_x_libraries=no
9157 if mkdir conftest.dir; then
9159 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9160 cat >Imakefile <<'EOF'
9162 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9164 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9165 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9166 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9167 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9168 for ac_extension in a so sl dylib dll; do
9169 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9170 test -f $ac_im_libdir/libX11.$ac_extension; then
9171 ac_im_usrlibdir=$ac_im_libdir; break
9174 # Screen out bogus values from the imake configuration. They are
9175 # bogus both because they are the default anyway, and because
9176 # using them would break gcc on systems where it needs fixed includes.
9177 case $ac_im_incroot in
9179 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9181 case $ac_im_usrlibdir in
9183 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9190 # Standard set of common directories for X headers.
9191 # Check X11 before X11Rn because it is often a symlink to the current release.
9203 /usr/local/X11/include
9204 /usr/local/X11R6/include
9205 /usr/local/X11R5/include
9206 /usr/local/X11R4/include
9208 /usr/local/include/X11
9209 /usr/local/include/X11R6
9210 /usr/local/include/X11R5
9211 /usr/local/include/X11R4
9215 /usr/XFree86/include/X11
9219 /usr/unsupported/include
9221 /usr/local/x11r5/include
9222 /usr/lpp/Xamples/include
9224 /usr/openwin/include
9225 /usr/openwin/share/include'
9227 if test "$ac_x_includes" = no; then
9228 # Guess where to find include files, by looking for Intrinsic.h.
9229 # First, try using that file with no special directory specified.
9230 cat >conftest.$ac_ext <<_ACEOF
9231 #line 9231 "configure"
9232 #include "confdefs.h"
9233 #include <X11/Intrinsic.h>
9235 if { (eval echo "$as_me:9235: \"$ac_cpp conftest.$ac_ext\"") >&5
9236 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9238 egrep -v '^ *\+' conftest.er1 >conftest.err
9240 cat conftest.err >&5
9241 echo "$as_me:9241: \$? = $ac_status" >&5
9242 (exit $ac_status); } >/dev/null; then
9243 if test -s conftest.err; then
9244 ac_cpp_err=$ac_c_preproc_warn_flag
9251 if test -z "$ac_cpp_err"; then
9252 # We can compile using X headers with no special include directory.
9255 echo "$as_me: failed program was:" >&5
9256 cat conftest.$ac_ext >&5
9257 for ac_dir in $ac_x_header_dirs; do
9258 if test -r "$ac_dir/X11/Intrinsic.h"; then
9259 ac_x_includes=$ac_dir
9264 rm -f conftest.err conftest.$ac_ext
9265 fi # $ac_x_includes = no
9267 if test "$ac_x_libraries" = no; then
9268 # Check for the libraries.
9269 # See if we find them without any special options.
9270 # Don't add to $LIBS permanently.
9273 cat >conftest.$ac_ext <<_ACEOF
9274 #line 9274 "configure"
9275 #include "confdefs.h"
9276 #include <X11/Intrinsic.h>
9285 rm -f conftest.$ac_objext conftest$ac_exeext
9286 if { (eval echo "$as_me:9286: \"$ac_link\"") >&5
9287 (eval $ac_link) 2>&5
9289 echo "$as_me:9289: \$? = $ac_status" >&5
9290 (exit $ac_status); } &&
9291 { ac_try='test -s conftest$ac_exeext'
9292 { (eval echo "$as_me:9292: \"$ac_try\"") >&5
9295 echo "$as_me:9295: \$? = $ac_status" >&5
9296 (exit $ac_status); }; }; then
9298 # We can link X programs with no special library path.
9301 echo "$as_me: failed program was:" >&5
9302 cat conftest.$ac_ext >&5
9304 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9306 # Don't even attempt the hair of trying to link an X program!
9307 for ac_extension in a so sl dylib dll; do
9308 if test -r $ac_dir/libXt.$ac_extension; then
9309 ac_x_libraries=$ac_dir
9315 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9316 fi # $ac_x_libraries = no
9318 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9319 # Didn't find X anywhere. Cache the known absence of X.
9320 ac_cv_have_x="have_x=no"
9322 # Record where we found X for the cache.
9323 ac_cv_have_x="have_x=yes \
9324 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9329 eval "$ac_cv_have_x"
9332 if test "$have_x" != yes; then
9333 echo "$as_me:9333: result: $have_x" >&5
9334 echo "${ECHO_T}$have_x" >&6
9337 # If each of the values was on the command line, it overrides each guess.
9338 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9339 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9340 # Update the cache value to reflect the command line values.
9341 ac_cv_have_x="have_x=yes \
9342 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9343 echo "$as_me:9343: result: libraries $x_libraries, headers $x_includes" >&5
9344 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9347 if test "$no_x" = yes; then
9348 # Not all programs may use this symbol, but it does not hurt to define it.
9350 cat >>confdefs.h <<\EOF
9351 #define X_DISPLAY_MISSING 1
9354 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9356 if test -n "$x_includes"; then
9357 X_CFLAGS="$X_CFLAGS -I$x_includes"
9360 # It would also be nice to do this for all -L options, not just this one.
9361 if test -n "$x_libraries"; then
9362 X_LIBS="$X_LIBS -L$x_libraries"
9363 # For Solaris; some versions of Sun CC require a space after -R and
9364 # others require no space. Words are not sufficient . . . .
9365 case `(uname -sr) 2>/dev/null` in
9367 echo "$as_me:9367: checking whether -R must be followed by a space" >&5
9368 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9369 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9370 cat >conftest.$ac_ext <<_ACEOF
9371 #line 9371 "configure"
9372 #include "confdefs.h"
9382 rm -f conftest.$ac_objext conftest$ac_exeext
9383 if { (eval echo "$as_me:9383: \"$ac_link\"") >&5
9384 (eval $ac_link) 2>&5
9386 echo "$as_me:9386: \$? = $ac_status" >&5
9387 (exit $ac_status); } &&
9388 { ac_try='test -s conftest$ac_exeext'
9389 { (eval echo "$as_me:9389: \"$ac_try\"") >&5
9392 echo "$as_me:9392: \$? = $ac_status" >&5
9393 (exit $ac_status); }; }; then
9396 echo "$as_me: failed program was:" >&5
9397 cat conftest.$ac_ext >&5
9400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9401 if test $ac_R_nospace = yes; then
9402 echo "$as_me:9402: result: no" >&5
9403 echo "${ECHO_T}no" >&6
9404 X_LIBS="$X_LIBS -R$x_libraries"
9406 LIBS="$ac_xsave_LIBS -R $x_libraries"
9407 cat >conftest.$ac_ext <<_ACEOF
9408 #line 9408 "configure"
9409 #include "confdefs.h"
9419 rm -f conftest.$ac_objext conftest$ac_exeext
9420 if { (eval echo "$as_me:9420: \"$ac_link\"") >&5
9421 (eval $ac_link) 2>&5
9423 echo "$as_me:9423: \$? = $ac_status" >&5
9424 (exit $ac_status); } &&
9425 { ac_try='test -s conftest$ac_exeext'
9426 { (eval echo "$as_me:9426: \"$ac_try\"") >&5
9429 echo "$as_me:9429: \$? = $ac_status" >&5
9430 (exit $ac_status); }; }; then
9433 echo "$as_me: failed program was:" >&5
9434 cat conftest.$ac_ext >&5
9437 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9438 if test $ac_R_space = yes; then
9439 echo "$as_me:9439: result: yes" >&5
9440 echo "${ECHO_T}yes" >&6
9441 X_LIBS="$X_LIBS -R $x_libraries"
9443 echo "$as_me:9443: result: neither works" >&5
9444 echo "${ECHO_T}neither works" >&6
9451 # Check for system-dependent libraries X programs must link with.
9452 # Do this before checking for the system-independent R6 libraries
9453 # (-lICE), since we may need -lsocket or whatever for X linking.
9455 if test "$ISC" = yes; then
9456 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9458 # Martyn Johnson says this is needed for Ultrix, if the X
9459 # libraries were built with DECnet support. And Karl Berry says
9460 # the Alpha needs dnet_stub (dnet does not exist).
9461 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9462 cat >conftest.$ac_ext <<_ACEOF
9463 #line 9463 "configure"
9464 #include "confdefs.h"
9466 /* Override any gcc2 internal prototype to avoid an error. */
9470 /* We use char because int might match the return type of a gcc2
9471 builtin and then its argument prototype would still apply. */
9472 char XOpenDisplay ();
9481 rm -f conftest.$ac_objext conftest$ac_exeext
9482 if { (eval echo "$as_me:9482: \"$ac_link\"") >&5
9483 (eval $ac_link) 2>&5
9485 echo "$as_me:9485: \$? = $ac_status" >&5
9486 (exit $ac_status); } &&
9487 { ac_try='test -s conftest$ac_exeext'
9488 { (eval echo "$as_me:9488: \"$ac_try\"") >&5
9491 echo "$as_me:9491: \$? = $ac_status" >&5
9492 (exit $ac_status); }; }; then
9495 echo "$as_me: failed program was:" >&5
9496 cat conftest.$ac_ext >&5
9497 echo "$as_me:9497: checking for dnet_ntoa in -ldnet" >&5
9498 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9499 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9500 echo $ECHO_N "(cached) $ECHO_C" >&6
9502 ac_check_lib_save_LIBS=$LIBS
9504 cat >conftest.$ac_ext <<_ACEOF
9505 #line 9505 "configure"
9506 #include "confdefs.h"
9508 /* Override any gcc2 internal prototype to avoid an error. */
9512 /* We use char because int might match the return type of a gcc2
9513 builtin and then its argument prototype would still apply. */
9523 rm -f conftest.$ac_objext conftest$ac_exeext
9524 if { (eval echo "$as_me:9524: \"$ac_link\"") >&5
9525 (eval $ac_link) 2>&5
9527 echo "$as_me:9527: \$? = $ac_status" >&5
9528 (exit $ac_status); } &&
9529 { ac_try='test -s conftest$ac_exeext'
9530 { (eval echo "$as_me:9530: \"$ac_try\"") >&5
9533 echo "$as_me:9533: \$? = $ac_status" >&5
9534 (exit $ac_status); }; }; then
9535 ac_cv_lib_dnet_dnet_ntoa=yes
9537 echo "$as_me: failed program was:" >&5
9538 cat conftest.$ac_ext >&5
9539 ac_cv_lib_dnet_dnet_ntoa=no
9541 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9542 LIBS=$ac_check_lib_save_LIBS
9544 echo "$as_me:9544: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9545 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9546 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9547 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9550 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9551 echo "$as_me:9551: checking for dnet_ntoa in -ldnet_stub" >&5
9552 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9553 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9554 echo $ECHO_N "(cached) $ECHO_C" >&6
9556 ac_check_lib_save_LIBS=$LIBS
9557 LIBS="-ldnet_stub $LIBS"
9558 cat >conftest.$ac_ext <<_ACEOF
9559 #line 9559 "configure"
9560 #include "confdefs.h"
9562 /* Override any gcc2 internal prototype to avoid an error. */
9566 /* We use char because int might match the return type of a gcc2
9567 builtin and then its argument prototype would still apply. */
9577 rm -f conftest.$ac_objext conftest$ac_exeext
9578 if { (eval echo "$as_me:9578: \"$ac_link\"") >&5
9579 (eval $ac_link) 2>&5
9581 echo "$as_me:9581: \$? = $ac_status" >&5
9582 (exit $ac_status); } &&
9583 { ac_try='test -s conftest$ac_exeext'
9584 { (eval echo "$as_me:9584: \"$ac_try\"") >&5
9587 echo "$as_me:9587: \$? = $ac_status" >&5
9588 (exit $ac_status); }; }; then
9589 ac_cv_lib_dnet_stub_dnet_ntoa=yes
9591 echo "$as_me: failed program was:" >&5
9592 cat conftest.$ac_ext >&5
9593 ac_cv_lib_dnet_stub_dnet_ntoa=no
9595 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9596 LIBS=$ac_check_lib_save_LIBS
9598 echo "$as_me:9598: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9599 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9600 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9601 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9606 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9607 LIBS="$ac_xsave_LIBS"
9609 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9610 # to get the SysV transport functions.
9611 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9613 # The nsl library prevents programs from opening the X display
9614 # on Irix 5.2, according to T.E. Dickey.
9615 # The functions gethostbyname, getservbyname, and inet_addr are
9616 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9617 echo "$as_me:9617: checking for gethostbyname" >&5
9618 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9619 if test "${ac_cv_func_gethostbyname+set}" = set; then
9620 echo $ECHO_N "(cached) $ECHO_C" >&6
9622 cat >conftest.$ac_ext <<_ACEOF
9623 #line 9623 "configure"
9624 #include "confdefs.h"
9625 /* System header to define __stub macros and hopefully few prototypes,
9626 which can conflict with char gethostbyname (); below. */
9628 /* Override any gcc2 internal prototype to avoid an error. */
9632 /* We use char because int might match the return type of a gcc2
9633 builtin and then its argument prototype would still apply. */
9634 char gethostbyname ();
9640 /* The GNU C library defines this for functions which it implements
9641 to always fail with ENOSYS. Some functions are actually named
9642 something starting with __ and the normal name is an alias. */
9643 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9646 f = gethostbyname; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
9653 rm -f conftest.$ac_objext conftest$ac_exeext
9654 if { (eval echo "$as_me:9654: \"$ac_link\"") >&5
9655 (eval $ac_link) 2>&5
9657 echo "$as_me:9657: \$? = $ac_status" >&5
9658 (exit $ac_status); } &&
9659 { ac_try='test -s conftest$ac_exeext'
9660 { (eval echo "$as_me:9660: \"$ac_try\"") >&5
9663 echo "$as_me:9663: \$? = $ac_status" >&5
9664 (exit $ac_status); }; }; then
9665 ac_cv_func_gethostbyname=yes
9667 echo "$as_me: failed program was:" >&5
9668 cat conftest.$ac_ext >&5
9669 ac_cv_func_gethostbyname=no
9671 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9673 echo "$as_me:9673: result: $ac_cv_func_gethostbyname" >&5
9674 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9676 if test $ac_cv_func_gethostbyname = no; then
9677 echo "$as_me:9677: checking for gethostbyname in -lnsl" >&5
9678 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9679 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9680 echo $ECHO_N "(cached) $ECHO_C" >&6
9682 ac_check_lib_save_LIBS=$LIBS
9684 cat >conftest.$ac_ext <<_ACEOF
9685 #line 9685 "configure"
9686 #include "confdefs.h"
9688 /* Override any gcc2 internal prototype to avoid an error. */
9692 /* We use char because int might match the return type of a gcc2
9693 builtin and then its argument prototype would still apply. */
9694 char gethostbyname ();
9703 rm -f conftest.$ac_objext conftest$ac_exeext
9704 if { (eval echo "$as_me:9704: \"$ac_link\"") >&5
9705 (eval $ac_link) 2>&5
9707 echo "$as_me:9707: \$? = $ac_status" >&5
9708 (exit $ac_status); } &&
9709 { ac_try='test -s conftest$ac_exeext'
9710 { (eval echo "$as_me:9710: \"$ac_try\"") >&5
9713 echo "$as_me:9713: \$? = $ac_status" >&5
9714 (exit $ac_status); }; }; then
9715 ac_cv_lib_nsl_gethostbyname=yes
9717 echo "$as_me: failed program was:" >&5
9718 cat conftest.$ac_ext >&5
9719 ac_cv_lib_nsl_gethostbyname=no
9721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9722 LIBS=$ac_check_lib_save_LIBS
9724 echo "$as_me:9724: result: $ac_cv_lib_nsl_gethostbyname" >&5
9725 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9726 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9727 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9730 if test $ac_cv_lib_nsl_gethostbyname = no; then
9731 echo "$as_me:9731: checking for gethostbyname in -lbsd" >&5
9732 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9733 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9734 echo $ECHO_N "(cached) $ECHO_C" >&6
9736 ac_check_lib_save_LIBS=$LIBS
9738 cat >conftest.$ac_ext <<_ACEOF
9739 #line 9739 "configure"
9740 #include "confdefs.h"
9742 /* Override any gcc2 internal prototype to avoid an error. */
9746 /* We use char because int might match the return type of a gcc2
9747 builtin and then its argument prototype would still apply. */
9748 char gethostbyname ();
9757 rm -f conftest.$ac_objext conftest$ac_exeext
9758 if { (eval echo "$as_me:9758: \"$ac_link\"") >&5
9759 (eval $ac_link) 2>&5
9761 echo "$as_me:9761: \$? = $ac_status" >&5
9762 (exit $ac_status); } &&
9763 { ac_try='test -s conftest$ac_exeext'
9764 { (eval echo "$as_me:9764: \"$ac_try\"") >&5
9767 echo "$as_me:9767: \$? = $ac_status" >&5
9768 (exit $ac_status); }; }; then
9769 ac_cv_lib_bsd_gethostbyname=yes
9771 echo "$as_me: failed program was:" >&5
9772 cat conftest.$ac_ext >&5
9773 ac_cv_lib_bsd_gethostbyname=no
9775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9776 LIBS=$ac_check_lib_save_LIBS
9778 echo "$as_me:9778: result: $ac_cv_lib_bsd_gethostbyname" >&5
9779 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9780 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9781 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9787 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9788 # socket/setsockopt and other routines are undefined under SCO ODT
9789 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9790 # on later versions), says Simon Leinen: it contains gethostby*
9791 # variants that don't use the nameserver (or something). -lsocket
9792 # must be given before -lnsl if both are needed. We assume that
9793 # if connect needs -lnsl, so does gethostbyname.
9794 echo "$as_me:9794: checking for connect" >&5
9795 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9796 if test "${ac_cv_func_connect+set}" = set; then
9797 echo $ECHO_N "(cached) $ECHO_C" >&6
9799 cat >conftest.$ac_ext <<_ACEOF
9800 #line 9800 "configure"
9801 #include "confdefs.h"
9802 /* System header to define __stub macros and hopefully few prototypes,
9803 which can conflict with char connect (); below. */
9805 /* Override any gcc2 internal prototype to avoid an error. */
9809 /* We use char because int might match the return type of a gcc2
9810 builtin and then its argument prototype would still apply. */
9817 /* The GNU C library defines this for functions which it implements
9818 to always fail with ENOSYS. Some functions are actually named
9819 something starting with __ and the normal name is an alias. */
9820 #if defined (__stub_connect) || defined (__stub___connect)
9823 f = connect; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
9830 rm -f conftest.$ac_objext conftest$ac_exeext
9831 if { (eval echo "$as_me:9831: \"$ac_link\"") >&5
9832 (eval $ac_link) 2>&5
9834 echo "$as_me:9834: \$? = $ac_status" >&5
9835 (exit $ac_status); } &&
9836 { ac_try='test -s conftest$ac_exeext'
9837 { (eval echo "$as_me:9837: \"$ac_try\"") >&5
9840 echo "$as_me:9840: \$? = $ac_status" >&5
9841 (exit $ac_status); }; }; then
9842 ac_cv_func_connect=yes
9844 echo "$as_me: failed program was:" >&5
9845 cat conftest.$ac_ext >&5
9846 ac_cv_func_connect=no
9848 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9850 echo "$as_me:9850: result: $ac_cv_func_connect" >&5
9851 echo "${ECHO_T}$ac_cv_func_connect" >&6
9853 if test $ac_cv_func_connect = no; then
9854 echo "$as_me:9854: checking for connect in -lsocket" >&5
9855 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9856 if test "${ac_cv_lib_socket_connect+set}" = set; then
9857 echo $ECHO_N "(cached) $ECHO_C" >&6
9859 ac_check_lib_save_LIBS=$LIBS
9860 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9861 cat >conftest.$ac_ext <<_ACEOF
9862 #line 9862 "configure"
9863 #include "confdefs.h"
9865 /* Override any gcc2 internal prototype to avoid an error. */
9869 /* We use char because int might match the return type of a gcc2
9870 builtin and then its argument prototype would still apply. */
9880 rm -f conftest.$ac_objext conftest$ac_exeext
9881 if { (eval echo "$as_me:9881: \"$ac_link\"") >&5
9882 (eval $ac_link) 2>&5
9884 echo "$as_me:9884: \$? = $ac_status" >&5
9885 (exit $ac_status); } &&
9886 { ac_try='test -s conftest$ac_exeext'
9887 { (eval echo "$as_me:9887: \"$ac_try\"") >&5
9890 echo "$as_me:9890: \$? = $ac_status" >&5
9891 (exit $ac_status); }; }; then
9892 ac_cv_lib_socket_connect=yes
9894 echo "$as_me: failed program was:" >&5
9895 cat conftest.$ac_ext >&5
9896 ac_cv_lib_socket_connect=no
9898 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9899 LIBS=$ac_check_lib_save_LIBS
9901 echo "$as_me:9901: result: $ac_cv_lib_socket_connect" >&5
9902 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9903 if test $ac_cv_lib_socket_connect = yes; then
9904 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9909 # Guillermo Gomez says -lposix is necessary on A/UX.
9910 echo "$as_me:9910: checking for remove" >&5
9911 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9912 if test "${ac_cv_func_remove+set}" = set; then
9913 echo $ECHO_N "(cached) $ECHO_C" >&6
9915 cat >conftest.$ac_ext <<_ACEOF
9916 #line 9916 "configure"
9917 #include "confdefs.h"
9918 /* System header to define __stub macros and hopefully few prototypes,
9919 which can conflict with char remove (); below. */
9921 /* Override any gcc2 internal prototype to avoid an error. */
9925 /* We use char because int might match the return type of a gcc2
9926 builtin and then its argument prototype would still apply. */
9933 /* The GNU C library defines this for functions which it implements
9934 to always fail with ENOSYS. Some functions are actually named
9935 something starting with __ and the normal name is an alias. */
9936 #if defined (__stub_remove) || defined (__stub___remove)
9939 f = remove; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
9946 rm -f conftest.$ac_objext conftest$ac_exeext
9947 if { (eval echo "$as_me:9947: \"$ac_link\"") >&5
9948 (eval $ac_link) 2>&5
9950 echo "$as_me:9950: \$? = $ac_status" >&5
9951 (exit $ac_status); } &&
9952 { ac_try='test -s conftest$ac_exeext'
9953 { (eval echo "$as_me:9953: \"$ac_try\"") >&5
9956 echo "$as_me:9956: \$? = $ac_status" >&5
9957 (exit $ac_status); }; }; then
9958 ac_cv_func_remove=yes
9960 echo "$as_me: failed program was:" >&5
9961 cat conftest.$ac_ext >&5
9962 ac_cv_func_remove=no
9964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9966 echo "$as_me:9966: result: $ac_cv_func_remove" >&5
9967 echo "${ECHO_T}$ac_cv_func_remove" >&6
9969 if test $ac_cv_func_remove = no; then
9970 echo "$as_me:9970: checking for remove in -lposix" >&5
9971 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9972 if test "${ac_cv_lib_posix_remove+set}" = set; then
9973 echo $ECHO_N "(cached) $ECHO_C" >&6
9975 ac_check_lib_save_LIBS=$LIBS
9976 LIBS="-lposix $LIBS"
9977 cat >conftest.$ac_ext <<_ACEOF
9978 #line 9978 "configure"
9979 #include "confdefs.h"
9981 /* Override any gcc2 internal prototype to avoid an error. */
9985 /* We use char because int might match the return type of a gcc2
9986 builtin and then its argument prototype would still apply. */
9996 rm -f conftest.$ac_objext conftest$ac_exeext
9997 if { (eval echo "$as_me:9997: \"$ac_link\"") >&5
9998 (eval $ac_link) 2>&5
10000 echo "$as_me:10000: \$? = $ac_status" >&5
10001 (exit $ac_status); } &&
10002 { ac_try='test -s conftest$ac_exeext'
10003 { (eval echo "$as_me:10003: \"$ac_try\"") >&5
10004 (eval $ac_try) 2>&5
10006 echo "$as_me:10006: \$? = $ac_status" >&5
10007 (exit $ac_status); }; }; then
10008 ac_cv_lib_posix_remove=yes
10010 echo "$as_me: failed program was:" >&5
10011 cat conftest.$ac_ext >&5
10012 ac_cv_lib_posix_remove=no
10014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10015 LIBS=$ac_check_lib_save_LIBS
10017 echo "$as_me:10017: result: $ac_cv_lib_posix_remove" >&5
10018 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10019 if test $ac_cv_lib_posix_remove = yes; then
10020 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10025 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10026 echo "$as_me:10026: checking for shmat" >&5
10027 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10028 if test "${ac_cv_func_shmat+set}" = set; then
10029 echo $ECHO_N "(cached) $ECHO_C" >&6
10031 cat >conftest.$ac_ext <<_ACEOF
10032 #line 10032 "configure"
10033 #include "confdefs.h"
10034 /* System header to define __stub macros and hopefully few prototypes,
10035 which can conflict with char shmat (); below. */
10036 #include <assert.h>
10037 /* Override any gcc2 internal prototype to avoid an error. */
10041 /* We use char because int might match the return type of a gcc2
10042 builtin and then its argument prototype would still apply. */
10049 /* The GNU C library defines this for functions which it implements
10050 to always fail with ENOSYS. Some functions are actually named
10051 something starting with __ and the normal name is an alias. */
10052 #if defined (__stub_shmat) || defined (__stub___shmat)
10055 f = shmat; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
10062 rm -f conftest.$ac_objext conftest$ac_exeext
10063 if { (eval echo "$as_me:10063: \"$ac_link\"") >&5
10064 (eval $ac_link) 2>&5
10066 echo "$as_me:10066: \$? = $ac_status" >&5
10067 (exit $ac_status); } &&
10068 { ac_try='test -s conftest$ac_exeext'
10069 { (eval echo "$as_me:10069: \"$ac_try\"") >&5
10070 (eval $ac_try) 2>&5
10072 echo "$as_me:10072: \$? = $ac_status" >&5
10073 (exit $ac_status); }; }; then
10074 ac_cv_func_shmat=yes
10076 echo "$as_me: failed program was:" >&5
10077 cat conftest.$ac_ext >&5
10078 ac_cv_func_shmat=no
10080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10082 echo "$as_me:10082: result: $ac_cv_func_shmat" >&5
10083 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10085 if test $ac_cv_func_shmat = no; then
10086 echo "$as_me:10086: checking for shmat in -lipc" >&5
10087 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10088 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10089 echo $ECHO_N "(cached) $ECHO_C" >&6
10091 ac_check_lib_save_LIBS=$LIBS
10093 cat >conftest.$ac_ext <<_ACEOF
10094 #line 10094 "configure"
10095 #include "confdefs.h"
10097 /* Override any gcc2 internal prototype to avoid an error. */
10101 /* We use char because int might match the return type of a gcc2
10102 builtin and then its argument prototype would still apply. */
10112 rm -f conftest.$ac_objext conftest$ac_exeext
10113 if { (eval echo "$as_me:10113: \"$ac_link\"") >&5
10114 (eval $ac_link) 2>&5
10116 echo "$as_me:10116: \$? = $ac_status" >&5
10117 (exit $ac_status); } &&
10118 { ac_try='test -s conftest$ac_exeext'
10119 { (eval echo "$as_me:10119: \"$ac_try\"") >&5
10120 (eval $ac_try) 2>&5
10122 echo "$as_me:10122: \$? = $ac_status" >&5
10123 (exit $ac_status); }; }; then
10124 ac_cv_lib_ipc_shmat=yes
10126 echo "$as_me: failed program was:" >&5
10127 cat conftest.$ac_ext >&5
10128 ac_cv_lib_ipc_shmat=no
10130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10131 LIBS=$ac_check_lib_save_LIBS
10133 echo "$as_me:10133: result: $ac_cv_lib_ipc_shmat" >&5
10134 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10135 if test $ac_cv_lib_ipc_shmat = yes; then
10136 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10142 # Check for libraries that X11R6 Xt/Xaw programs need.
10143 ac_save_LDFLAGS=$LDFLAGS
10144 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10145 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10146 # check for ICE first), but we must link in the order -lSM -lICE or
10147 # we get undefined symbols. So assume we have SM if we have ICE.
10148 # These have to be linked with before -lX11, unlike the other
10149 # libraries we check for below, so use a different variable.
10150 # John Interrante, Karl Berry
10151 echo "$as_me:10151: checking for IceConnectionNumber in -lICE" >&5
10152 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10153 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10154 echo $ECHO_N "(cached) $ECHO_C" >&6
10156 ac_check_lib_save_LIBS=$LIBS
10157 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10158 cat >conftest.$ac_ext <<_ACEOF
10159 #line 10159 "configure"
10160 #include "confdefs.h"
10162 /* Override any gcc2 internal prototype to avoid an error. */
10166 /* We use char because int might match the return type of a gcc2
10167 builtin and then its argument prototype would still apply. */
10168 char IceConnectionNumber ();
10172 IceConnectionNumber ();
10177 rm -f conftest.$ac_objext conftest$ac_exeext
10178 if { (eval echo "$as_me:10178: \"$ac_link\"") >&5
10179 (eval $ac_link) 2>&5
10181 echo "$as_me:10181: \$? = $ac_status" >&5
10182 (exit $ac_status); } &&
10183 { ac_try='test -s conftest$ac_exeext'
10184 { (eval echo "$as_me:10184: \"$ac_try\"") >&5
10185 (eval $ac_try) 2>&5
10187 echo "$as_me:10187: \$? = $ac_status" >&5
10188 (exit $ac_status); }; }; then
10189 ac_cv_lib_ICE_IceConnectionNumber=yes
10191 echo "$as_me: failed program was:" >&5
10192 cat conftest.$ac_ext >&5
10193 ac_cv_lib_ICE_IceConnectionNumber=no
10195 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10196 LIBS=$ac_check_lib_save_LIBS
10198 echo "$as_me:10198: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10199 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10200 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10201 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10204 LDFLAGS=$ac_save_LDFLAGS
10208 cf_x_athena=${cf_x_athena:-Xaw}
10210 echo "$as_me:10210: checking if you want to link with Xaw 3d library" >&5
10211 echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6
10214 # Check whether --with-Xaw3d or --without-Xaw3d was given.
10215 if test "${with_Xaw3d+set}" = set; then
10216 withval="$with_Xaw3d"
10219 if test "$withval" = yes ; then
10221 echo "$as_me:10221: result: yes" >&5
10222 echo "${ECHO_T}yes" >&6
10224 echo "$as_me:10224: result: no" >&5
10225 echo "${ECHO_T}no" >&6
10228 echo "$as_me:10228: checking if you want to link with Xaw 3d xft library" >&5
10229 echo $ECHO_N "checking if you want to link with Xaw 3d xft library... $ECHO_C" >&6
10232 # Check whether --with-Xaw3dxft or --without-Xaw3dxft was given.
10233 if test "${with_Xaw3dxft+set}" = set; then
10234 withval="$with_Xaw3dxft"
10237 if test "$withval" = yes ; then
10238 cf_x_athena=Xaw3dxft
10239 echo "$as_me:10239: result: yes" >&5
10240 echo "${ECHO_T}yes" >&6
10242 echo "$as_me:10242: result: no" >&5
10243 echo "${ECHO_T}no" >&6
10246 echo "$as_me:10246: checking if you want to link with neXT Athena library" >&5
10247 echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6
10250 # Check whether --with-neXtaw or --without-neXtaw was given.
10251 if test "${with_neXtaw+set}" = set; then
10252 withval="$with_neXtaw"
10255 if test "$withval" = yes ; then
10257 echo "$as_me:10257: result: yes" >&5
10258 echo "${ECHO_T}yes" >&6
10260 echo "$as_me:10260: result: no" >&5
10261 echo "${ECHO_T}no" >&6
10264 echo "$as_me:10264: checking if you want to link with Athena-Plus library" >&5
10265 echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6
10268 # Check whether --with-XawPlus or --without-XawPlus was given.
10269 if test "${with_XawPlus+set}" = set; then
10270 withval="$with_XawPlus"
10273 if test "$withval" = yes ; then
10274 cf_x_athena=XawPlus
10275 echo "$as_me:10275: result: yes" >&5
10276 echo "${ECHO_T}yes" >&6
10278 echo "$as_me:10278: result: no" >&5
10279 echo "${ECHO_T}no" >&6
10284 if test "$PKG_CONFIG" != none ; then
10286 test "$cf_x_athena" = Xaw && cf_athena_list="xaw8 xaw7 xaw6"
10287 for cf_athena_pkg in \
10290 ${cf_x_athena}-devel \
10291 lib${cf_x_athena} \
10292 lib${cf_x_athena}-devel
10295 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists $cf_athena_pkg; then
10296 test -n "$verbose" && echo " found package $cf_athena_pkg" 1>&6
10298 echo "${as_me:-configure}:10298: testing found package $cf_athena_pkg ..." 1>&5
10300 cf_pkgconfig_incs="`$PKG_CONFIG --cflags $cf_athena_pkg 2>/dev/null`"
10301 cf_pkgconfig_libs="`$PKG_CONFIG --libs $cf_athena_pkg 2>/dev/null`"
10302 test -n "$verbose" && echo " package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs" 1>&6
10304 echo "${as_me:-configure}:10304: testing package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10306 test -n "$verbose" && echo " package $cf_athena_pkg LIBS: $cf_pkgconfig_libs" 1>&6
10308 echo "${as_me:-configure}:10308: testing package $cf_athena_pkg LIBS: $cf_pkgconfig_libs ..." 1>&5
10313 cf_new_extra_cppflags=
10315 for cf_add_cflags in $cf_pkgconfig_incs
10317 case $cf_fix_cppflags in
10319 case $cf_add_cflags in
10320 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10321 case $cf_add_cflags in
10323 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10325 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10326 && test -z "${cf_tst_cflags}" \
10327 && cf_fix_cppflags=yes
10329 if test $cf_fix_cppflags = yes ; then
10330 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10332 elif test "${cf_tst_cflags}" = "\"'" ; then
10333 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10338 case "$CPPFLAGS" in
10342 case $cf_add_cflags in
10344 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10346 CPPFLAGS=`echo "$CPPFLAGS" | \
10347 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10348 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10352 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10357 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10362 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10364 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10366 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10367 && test -z "${cf_tst_cflags}" \
10368 && cf_fix_cppflags=no
10373 if test -n "$cf_new_cflags" ; then
10375 CFLAGS="$CFLAGS $cf_new_cflags"
10378 if test -n "$cf_new_cppflags" ; then
10380 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10383 if test -n "$cf_new_extra_cppflags" ; then
10385 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10388 cf_add_libs="$cf_pkgconfig_libs"
10389 # Filter out duplicates - this happens with badly-designed ".pc" files...
10390 for cf_add_1lib in $LIBS
10392 for cf_add_2lib in $cf_add_libs
10394 if test "x$cf_add_1lib" = "x$cf_add_2lib"
10400 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
10402 LIBS="$cf_add_libs"
10404 cf_x_athena_lib="$cf_pkgconfig_libs"
10406 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
10408 cat >>confdefs.h <<EOF
10409 #define $cf_x_athena_LIBS 1
10412 for cf_trim_lib in Xmu Xt X11
10415 (*-l$cf_trim_lib\ *-l$cf_trim_lib*)
10416 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
10417 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
10419 echo "${as_me:-configure}:10419: testing ..trimmed $LIBS ..." 1>&5
10425 echo "$as_me:10425: checking for usable $cf_x_athena/Xmu package" >&5
10426 echo $ECHO_N "checking for usable $cf_x_athena/Xmu package... $ECHO_C" >&6
10427 if test "${cf_cv_xaw_compat+set}" = set; then
10428 echo $ECHO_N "(cached) $ECHO_C" >&6
10431 cat >conftest.$ac_ext <<_ACEOF
10432 #line 10432 "configure"
10433 #include "confdefs.h"
10435 #include <X11/Xmu/CharSet.h>
10441 int check = XmuCompareISOLatin1("big", "small")
10447 rm -f conftest.$ac_objext conftest$ac_exeext
10448 if { (eval echo "$as_me:10448: \"$ac_link\"") >&5
10449 (eval $ac_link) 2>&5
10451 echo "$as_me:10451: \$? = $ac_status" >&5
10452 (exit $ac_status); } &&
10453 { ac_try='test -s conftest$ac_exeext'
10454 { (eval echo "$as_me:10454: \"$ac_try\"") >&5
10455 (eval $ac_try) 2>&5
10457 echo "$as_me:10457: \$? = $ac_status" >&5
10458 (exit $ac_status); }; }; then
10459 cf_cv_xaw_compat=yes
10461 echo "$as_me: failed program was:" >&5
10462 cat conftest.$ac_ext >&5
10463 cf_cv_xaw_compat=no
10465 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10467 echo "$as_me:10467: result: $cf_cv_xaw_compat" >&5
10468 echo "${ECHO_T}$cf_cv_xaw_compat" >&6
10470 if test "$cf_cv_xaw_compat" = no
10472 # workaround for broken ".pc" files...
10473 case "$cf_x_athena_lib" in
10477 test -n "$verbose" && echo " work around broken package" 1>&6
10479 echo "${as_me:-configure}:10479: testing work around broken package ..." 1>&5
10481 cf_save_xmu="$LIBS"
10482 cf_first_lib=`echo "$cf_save_xmu" | sed -e 's/^ *//' -e 's/ .*//'`
10484 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xmu; then
10485 test -n "$verbose" && echo " found package xmu" 1>&6
10487 echo "${as_me:-configure}:10487: testing found package xmu ..." 1>&5
10489 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xmu 2>/dev/null`"
10490 cf_pkgconfig_libs="`$PKG_CONFIG --libs xmu 2>/dev/null`"
10491 test -n "$verbose" && echo " package xmu CFLAGS: $cf_pkgconfig_incs" 1>&6
10493 echo "${as_me:-configure}:10493: testing package xmu CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10495 test -n "$verbose" && echo " package xmu LIBS: $cf_pkgconfig_libs" 1>&6
10497 echo "${as_me:-configure}:10497: testing package xmu LIBS: $cf_pkgconfig_libs ..." 1>&5
10502 cf_new_extra_cppflags=
10504 for cf_add_cflags in $cf_pkgconfig_incs
10506 case $cf_fix_cppflags in
10508 case $cf_add_cflags in
10509 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10510 case $cf_add_cflags in
10512 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10514 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10515 && test -z "${cf_tst_cflags}" \
10516 && cf_fix_cppflags=yes
10518 if test $cf_fix_cppflags = yes ; then
10519 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10521 elif test "${cf_tst_cflags}" = "\"'" ; then
10522 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10527 case "$CPPFLAGS" in
10531 case $cf_add_cflags in
10533 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10535 CPPFLAGS=`echo "$CPPFLAGS" | \
10536 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10537 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10541 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10546 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10551 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10553 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10555 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10556 && test -z "${cf_tst_cflags}" \
10557 && cf_fix_cppflags=no
10562 if test -n "$cf_new_cflags" ; then
10564 CFLAGS="$CFLAGS $cf_new_cflags"
10567 if test -n "$cf_new_cppflags" ; then
10569 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10572 if test -n "$cf_new_extra_cppflags" ; then
10574 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10577 cf_add_libs="$cf_pkgconfig_libs"
10578 # Filter out duplicates - this happens with badly-designed ".pc" files...
10579 for cf_add_1lib in $LIBS
10581 for cf_add_2lib in $cf_add_libs
10583 if test "x$cf_add_1lib" = "x$cf_add_2lib"
10589 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
10591 LIBS="$cf_add_libs"
10593 LIBS="$cf_save_xmu"
10595 test -n "$verbose" && echo " ...before $LIBS" 1>&6
10597 echo "${as_me:-configure}:10597: testing ...before $LIBS ..." 1>&5
10599 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib $cf_pkgconfig_libs %" -e 's% % %g'`
10600 test -n "$verbose" && echo " ...after $LIBS" 1>&6
10602 echo "${as_me:-configure}:10602: testing ...after $LIBS ..." 1>&5
10608 test -n "$verbose" && echo " ...before $LIBS" 1>&6
10610 echo "${as_me:-configure}:10610: testing ...before $LIBS ..." 1>&5
10612 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib -lXmu %" -e 's% % %g'`
10613 test -n "$verbose" && echo " ...after $LIBS" 1>&6
10615 echo "${as_me:-configure}:10615: testing ...after $LIBS ..." 1>&5
10619 for cf_trim_lib in Xmu Xt X11
10622 (*-l$cf_trim_lib\ *-l$cf_trim_lib*)
10623 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
10624 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
10626 echo "${as_me:-configure}:10626: testing ..trimmed $LIBS ..." 1>&5
10646 if test -z "$cf_x_athena_lib" ; then
10648 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists Xext; then
10649 test -n "$verbose" && echo " found package Xext" 1>&6
10651 echo "${as_me:-configure}:10651: testing found package Xext ..." 1>&5
10653 cf_pkgconfig_incs="`$PKG_CONFIG --cflags Xext 2>/dev/null`"
10654 cf_pkgconfig_libs="`$PKG_CONFIG --libs Xext 2>/dev/null`"
10655 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6
10657 echo "${as_me:-configure}:10657: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10659 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6
10661 echo "${as_me:-configure}:10661: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5
10666 cf_new_extra_cppflags=
10668 for cf_add_cflags in $cf_pkgconfig_incs
10670 case $cf_fix_cppflags in
10672 case $cf_add_cflags in
10673 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10674 case $cf_add_cflags in
10676 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10678 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10679 && test -z "${cf_tst_cflags}" \
10680 && cf_fix_cppflags=yes
10682 if test $cf_fix_cppflags = yes ; then
10683 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10685 elif test "${cf_tst_cflags}" = "\"'" ; then
10686 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10691 case "$CPPFLAGS" in
10695 case $cf_add_cflags in
10697 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10699 CPPFLAGS=`echo "$CPPFLAGS" | \
10700 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10701 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10705 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10710 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10715 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10717 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10719 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10720 && test -z "${cf_tst_cflags}" \
10721 && cf_fix_cppflags=no
10726 if test -n "$cf_new_cflags" ; then
10728 CFLAGS="$CFLAGS $cf_new_cflags"
10731 if test -n "$cf_new_cppflags" ; then
10733 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10736 if test -n "$cf_new_extra_cppflags" ; then
10738 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10741 cf_add_libs="$cf_pkgconfig_libs"
10742 # Filter out duplicates - this happens with badly-designed ".pc" files...
10743 for cf_add_1lib in $LIBS
10745 for cf_add_2lib in $cf_add_libs
10747 if test "x$cf_add_1lib" = "x$cf_add_2lib"
10753 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
10755 LIBS="$cf_add_libs"
10762 echo "$as_me:10762: checking for XextCreateExtension in -lXext" >&5
10763 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
10764 if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
10765 echo $ECHO_N "(cached) $ECHO_C" >&6
10767 ac_check_lib_save_LIBS=$LIBS
10768 LIBS="-lXext $LIBS"
10769 cat >conftest.$ac_ext <<_ACEOF
10770 #line 10770 "configure"
10771 #include "confdefs.h"
10773 /* Override any gcc2 internal prototype to avoid an error. */
10777 /* We use char because int might match the return type of a gcc2
10778 builtin and then its argument prototype would still apply. */
10779 char XextCreateExtension ();
10783 XextCreateExtension ();
10788 rm -f conftest.$ac_objext conftest$ac_exeext
10789 if { (eval echo "$as_me:10789: \"$ac_link\"") >&5
10790 (eval $ac_link) 2>&5
10792 echo "$as_me:10792: \$? = $ac_status" >&5
10793 (exit $ac_status); } &&
10794 { ac_try='test -s conftest$ac_exeext'
10795 { (eval echo "$as_me:10795: \"$ac_try\"") >&5
10796 (eval $ac_try) 2>&5
10798 echo "$as_me:10798: \$? = $ac_status" >&5
10799 (exit $ac_status); }; }; then
10800 ac_cv_lib_Xext_XextCreateExtension=yes
10802 echo "$as_me: failed program was:" >&5
10803 cat conftest.$ac_ext >&5
10804 ac_cv_lib_Xext_XextCreateExtension=no
10806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10807 LIBS=$ac_check_lib_save_LIBS
10809 echo "$as_me:10809: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
10810 echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
10811 if test $ac_cv_lib_Xext_XextCreateExtension = yes; then
10813 cf_add_libs="-lXext"
10814 # Filter out duplicates - this happens with badly-designed ".pc" files...
10815 for cf_add_1lib in $LIBS
10817 for cf_add_2lib in $cf_add_libs
10819 if test "x$cf_add_1lib" = "x$cf_add_2lib"
10825 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
10827 LIBS="$cf_add_libs"
10833 # OSX is schizoid about who owns /usr/X11 (old) versus /opt/X11 (new), and (and
10834 # in some cases has installed dummy files in the former, other cases replaced
10835 # it with a link to the new location). This complicates the configure script.
10836 # Check for that pitfall, and recover using pkg-config
10838 # If none of these are set, the configuration is almost certainly broken.
10839 if test -z "${X_CFLAGS}${X_PRE_LIBS}${X_LIBS}${X_EXTRA_LIBS}"
10842 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then
10843 test -n "$verbose" && echo " found package x11" 1>&6
10845 echo "${as_me:-configure}:10845: testing found package x11 ..." 1>&5
10847 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`"
10848 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`"
10849 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
10851 echo "${as_me:-configure}:10851: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10853 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
10855 echo "${as_me:-configure}:10855: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
10860 cf_new_extra_cppflags=
10862 for cf_add_cflags in $cf_pkgconfig_incs
10864 case $cf_fix_cppflags in
10866 case $cf_add_cflags in
10867 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10868 case $cf_add_cflags in
10870 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10872 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10873 && test -z "${cf_tst_cflags}" \
10874 && cf_fix_cppflags=yes
10876 if test $cf_fix_cppflags = yes ; then
10877 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10879 elif test "${cf_tst_cflags}" = "\"'" ; then
10880 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10885 case "$CPPFLAGS" in
10889 case $cf_add_cflags in
10891 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10893 CPPFLAGS=`echo "$CPPFLAGS" | \
10894 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10895 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10899 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10904 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10909 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10911 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10913 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10914 && test -z "${cf_tst_cflags}" \
10915 && cf_fix_cppflags=no
10920 if test -n "$cf_new_cflags" ; then
10922 CFLAGS="$CFLAGS $cf_new_cflags"
10925 if test -n "$cf_new_cppflags" ; then
10927 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10930 if test -n "$cf_new_extra_cppflags" ; then
10932 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10935 cf_add_libs="$cf_pkgconfig_libs"
10936 # Filter out duplicates - this happens with badly-designed ".pc" files...
10937 for cf_add_1lib in $LIBS
10939 for cf_add_2lib in $cf_add_libs
10941 if test "x$cf_add_1lib" = "x$cf_add_2lib"
10947 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
10949 LIBS="$cf_add_libs"
10955 { echo "$as_me:10955: WARNING: unable to find X11 library" >&5
10956 echo "$as_me: WARNING: unable to find X11 library" >&2;}
10959 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then
10960 test -n "$verbose" && echo " found package ice" 1>&6
10962 echo "${as_me:-configure}:10962: testing found package ice ..." 1>&5
10964 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`"
10965 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`"
10966 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
10968 echo "${as_me:-configure}:10968: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10970 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
10972 echo "${as_me:-configure}:10972: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
10977 cf_new_extra_cppflags=
10979 for cf_add_cflags in $cf_pkgconfig_incs
10981 case $cf_fix_cppflags in
10983 case $cf_add_cflags in
10984 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10985 case $cf_add_cflags in
10987 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10989 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10990 && test -z "${cf_tst_cflags}" \
10991 && cf_fix_cppflags=yes
10993 if test $cf_fix_cppflags = yes ; then
10994 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10996 elif test "${cf_tst_cflags}" = "\"'" ; then
10997 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11002 case "$CPPFLAGS" in
11006 case $cf_add_cflags in
11008 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11010 CPPFLAGS=`echo "$CPPFLAGS" | \
11011 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11012 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11016 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11021 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11026 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11028 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11030 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11031 && test -z "${cf_tst_cflags}" \
11032 && cf_fix_cppflags=no
11037 if test -n "$cf_new_cflags" ; then
11039 CFLAGS="$CFLAGS $cf_new_cflags"
11042 if test -n "$cf_new_cppflags" ; then
11044 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11047 if test -n "$cf_new_extra_cppflags" ; then
11049 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11052 cf_add_libs="$cf_pkgconfig_libs"
11053 # Filter out duplicates - this happens with badly-designed ".pc" files...
11054 for cf_add_1lib in $LIBS
11056 for cf_add_2lib in $cf_add_libs
11058 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11064 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11066 LIBS="$cf_add_libs"
11072 { echo "$as_me:11072: WARNING: unable to find ICE library" >&5
11073 echo "$as_me: WARNING: unable to find ICE library" >&2;}
11076 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then
11077 test -n "$verbose" && echo " found package sm" 1>&6
11079 echo "${as_me:-configure}:11079: testing found package sm ..." 1>&5
11081 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`"
11082 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`"
11083 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
11085 echo "${as_me:-configure}:11085: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11087 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
11089 echo "${as_me:-configure}:11089: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
11094 cf_new_extra_cppflags=
11096 for cf_add_cflags in $cf_pkgconfig_incs
11098 case $cf_fix_cppflags in
11100 case $cf_add_cflags in
11101 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11102 case $cf_add_cflags in
11104 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11106 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11107 && test -z "${cf_tst_cflags}" \
11108 && cf_fix_cppflags=yes
11110 if test $cf_fix_cppflags = yes ; then
11111 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11113 elif test "${cf_tst_cflags}" = "\"'" ; then
11114 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11119 case "$CPPFLAGS" in
11123 case $cf_add_cflags in
11125 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11127 CPPFLAGS=`echo "$CPPFLAGS" | \
11128 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11129 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11133 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11138 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11143 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11145 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11147 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11148 && test -z "${cf_tst_cflags}" \
11149 && cf_fix_cppflags=no
11154 if test -n "$cf_new_cflags" ; then
11156 CFLAGS="$CFLAGS $cf_new_cflags"
11159 if test -n "$cf_new_cppflags" ; then
11161 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11164 if test -n "$cf_new_extra_cppflags" ; then
11166 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11169 cf_add_libs="$cf_pkgconfig_libs"
11170 # Filter out duplicates - this happens with badly-designed ".pc" files...
11171 for cf_add_1lib in $LIBS
11173 for cf_add_2lib in $cf_add_libs
11175 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11181 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11183 LIBS="$cf_add_libs"
11189 { echo "$as_me:11189: WARNING: unable to find SM library" >&5
11190 echo "$as_me: WARNING: unable to find SM library" >&2;}
11193 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
11194 test -n "$verbose" && echo " found package xt" 1>&6
11196 echo "${as_me:-configure}:11196: testing found package xt ..." 1>&5
11198 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
11199 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`"
11200 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
11202 echo "${as_me:-configure}:11202: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11204 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
11206 echo "${as_me:-configure}:11206: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
11211 cf_new_extra_cppflags=
11213 for cf_add_cflags in $cf_pkgconfig_incs
11215 case $cf_fix_cppflags in
11217 case $cf_add_cflags in
11218 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11219 case $cf_add_cflags in
11221 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11223 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11224 && test -z "${cf_tst_cflags}" \
11225 && cf_fix_cppflags=yes
11227 if test $cf_fix_cppflags = yes ; then
11228 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11230 elif test "${cf_tst_cflags}" = "\"'" ; then
11231 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11236 case "$CPPFLAGS" in
11240 case $cf_add_cflags in
11242 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11244 CPPFLAGS=`echo "$CPPFLAGS" | \
11245 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11246 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11250 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11255 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11260 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11262 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11264 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11265 && test -z "${cf_tst_cflags}" \
11266 && cf_fix_cppflags=no
11271 if test -n "$cf_new_cflags" ; then
11273 CFLAGS="$CFLAGS $cf_new_cflags"
11276 if test -n "$cf_new_cppflags" ; then
11278 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11281 if test -n "$cf_new_extra_cppflags" ; then
11283 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11286 cf_add_libs="$cf_pkgconfig_libs"
11287 # Filter out duplicates - this happens with badly-designed ".pc" files...
11288 for cf_add_1lib in $LIBS
11290 for cf_add_2lib in $cf_add_libs
11292 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11298 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11300 LIBS="$cf_add_libs"
11306 { echo "$as_me:11306: WARNING: unable to find Xt library" >&5
11307 echo "$as_me: WARNING: unable to find Xt library" >&2;}
11314 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
11315 test -n "$verbose" && echo " found package xt" 1>&6
11317 echo "${as_me:-configure}:11317: testing found package xt ..." 1>&5
11319 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
11320 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`"
11321 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
11323 echo "${as_me:-configure}:11323: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11325 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
11327 echo "${as_me:-configure}:11327: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
11332 cf_new_extra_cppflags=
11334 for cf_add_cflags in $cf_pkgconfig_incs
11336 case $cf_fix_cppflags in
11338 case $cf_add_cflags in
11339 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11340 case $cf_add_cflags in
11342 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11344 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11345 && test -z "${cf_tst_cflags}" \
11346 && cf_fix_cppflags=yes
11348 if test $cf_fix_cppflags = yes ; then
11349 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11351 elif test "${cf_tst_cflags}" = "\"'" ; then
11352 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11357 case "$CPPFLAGS" in
11361 case $cf_add_cflags in
11363 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11365 CPPFLAGS=`echo "$CPPFLAGS" | \
11366 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11367 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11371 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11376 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11381 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11383 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11385 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11386 && test -z "${cf_tst_cflags}" \
11387 && cf_fix_cppflags=no
11392 if test -n "$cf_new_cflags" ; then
11394 CFLAGS="$CFLAGS $cf_new_cflags"
11397 if test -n "$cf_new_cppflags" ; then
11399 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11402 if test -n "$cf_new_extra_cppflags" ; then
11404 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11407 cf_add_libs="$cf_pkgconfig_libs"
11408 # Filter out duplicates - this happens with badly-designed ".pc" files...
11409 for cf_add_1lib in $LIBS
11411 for cf_add_2lib in $cf_add_libs
11413 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11419 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11421 LIBS="$cf_add_libs"
11427 # we have an "xt" package, but it may omit Xt's dependency on X11
11428 echo "$as_me:11428: checking for usable X dependency" >&5
11429 echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6
11430 if test "${cf_cv_xt_x11_compat+set}" = set; then
11431 echo $ECHO_N "(cached) $ECHO_C" >&6
11434 cat >conftest.$ac_ext <<_ACEOF
11435 #line 11435 "configure"
11436 #include "confdefs.h"
11438 #include <X11/Xlib.h>
11444 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0);
11445 int rc2 = XClearWindow((Display*) 0, (Window) 0);
11446 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0);
11447 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0);
11453 rm -f conftest.$ac_objext conftest$ac_exeext
11454 if { (eval echo "$as_me:11454: \"$ac_link\"") >&5
11455 (eval $ac_link) 2>&5
11457 echo "$as_me:11457: \$? = $ac_status" >&5
11458 (exit $ac_status); } &&
11459 { ac_try='test -s conftest$ac_exeext'
11460 { (eval echo "$as_me:11460: \"$ac_try\"") >&5
11461 (eval $ac_try) 2>&5
11463 echo "$as_me:11463: \$? = $ac_status" >&5
11464 (exit $ac_status); }; }; then
11465 cf_cv_xt_x11_compat=yes
11467 echo "$as_me: failed program was:" >&5
11468 cat conftest.$ac_ext >&5
11469 cf_cv_xt_x11_compat=no
11471 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11473 echo "$as_me:11473: result: $cf_cv_xt_x11_compat" >&5
11474 echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6
11475 if test "$cf_cv_xt_x11_compat" = no
11477 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6
11479 echo "${as_me:-configure}:11479: testing work around broken X11 dependency ..." 1>&5
11481 # 2010/11/19 - good enough until a working Xt on Xcb is delivered.
11483 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then
11484 test -n "$verbose" && echo " found package x11" 1>&6
11486 echo "${as_me:-configure}:11486: testing found package x11 ..." 1>&5
11488 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`"
11489 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`"
11490 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
11492 echo "${as_me:-configure}:11492: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11494 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
11496 echo "${as_me:-configure}:11496: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
11501 cf_new_extra_cppflags=
11503 for cf_add_cflags in $cf_pkgconfig_incs
11505 case $cf_fix_cppflags in
11507 case $cf_add_cflags in
11508 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11509 case $cf_add_cflags in
11511 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11513 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11514 && test -z "${cf_tst_cflags}" \
11515 && cf_fix_cppflags=yes
11517 if test $cf_fix_cppflags = yes ; then
11518 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11520 elif test "${cf_tst_cflags}" = "\"'" ; then
11521 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11526 case "$CPPFLAGS" in
11530 case $cf_add_cflags in
11532 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11534 CPPFLAGS=`echo "$CPPFLAGS" | \
11535 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11536 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11540 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11545 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11550 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11552 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11554 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11555 && test -z "${cf_tst_cflags}" \
11556 && cf_fix_cppflags=no
11561 if test -n "$cf_new_cflags" ; then
11563 CFLAGS="$CFLAGS $cf_new_cflags"
11566 if test -n "$cf_new_cppflags" ; then
11568 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11571 if test -n "$cf_new_extra_cppflags" ; then
11573 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11576 cf_add_libs="$cf_pkgconfig_libs"
11577 # Filter out duplicates - this happens with badly-designed ".pc" files...
11578 for cf_add_1lib in $LIBS
11580 for cf_add_2lib in $cf_add_libs
11582 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11588 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11590 LIBS="$cf_add_libs"
11597 test -n "$verbose" && echo " ...before $LIBS" 1>&6
11599 echo "${as_me:-configure}:11599: testing ...before $LIBS ..." 1>&5
11601 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'`
11602 test -n "$verbose" && echo " ...after $LIBS" 1>&6
11604 echo "${as_me:-configure}:11604: testing ...after $LIBS ..." 1>&5
11612 echo "$as_me:11612: checking for usable X Toolkit package" >&5
11613 echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6
11614 if test "${cf_cv_xt_ice_compat+set}" = set; then
11615 echo $ECHO_N "(cached) $ECHO_C" >&6
11618 cat >conftest.$ac_ext <<_ACEOF
11619 #line 11619 "configure"
11620 #include "confdefs.h"
11622 #include <X11/Shell.h>
11627 int num = IceConnectionNumber(0)
11633 rm -f conftest.$ac_objext conftest$ac_exeext
11634 if { (eval echo "$as_me:11634: \"$ac_link\"") >&5
11635 (eval $ac_link) 2>&5
11637 echo "$as_me:11637: \$? = $ac_status" >&5
11638 (exit $ac_status); } &&
11639 { ac_try='test -s conftest$ac_exeext'
11640 { (eval echo "$as_me:11640: \"$ac_try\"") >&5
11641 (eval $ac_try) 2>&5
11643 echo "$as_me:11643: \$? = $ac_status" >&5
11644 (exit $ac_status); }; }; then
11645 cf_cv_xt_ice_compat=yes
11647 echo "$as_me: failed program was:" >&5
11648 cat conftest.$ac_ext >&5
11649 cf_cv_xt_ice_compat=no
11651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11653 echo "$as_me:11653: result: $cf_cv_xt_ice_compat" >&5
11654 echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6
11656 if test "$cf_cv_xt_ice_compat" = no
11658 # workaround for broken ".pc" files used for X Toolkit.
11659 case "x$X_PRE_LIBS" in
11665 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6
11667 echo "${as_me:-configure}:11667: testing work around broken ICE dependency ..." 1>&5
11669 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then
11670 test -n "$verbose" && echo " found package ice" 1>&6
11672 echo "${as_me:-configure}:11672: testing found package ice ..." 1>&5
11674 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`"
11675 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`"
11676 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
11678 echo "${as_me:-configure}:11678: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11680 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
11682 echo "${as_me:-configure}:11682: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
11687 cf_new_extra_cppflags=
11689 for cf_add_cflags in $cf_pkgconfig_incs
11691 case $cf_fix_cppflags in
11693 case $cf_add_cflags in
11694 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11695 case $cf_add_cflags in
11697 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11699 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11700 && test -z "${cf_tst_cflags}" \
11701 && cf_fix_cppflags=yes
11703 if test $cf_fix_cppflags = yes ; then
11704 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11706 elif test "${cf_tst_cflags}" = "\"'" ; then
11707 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11712 case "$CPPFLAGS" in
11716 case $cf_add_cflags in
11718 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11720 CPPFLAGS=`echo "$CPPFLAGS" | \
11721 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11722 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11726 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11731 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11736 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11738 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11740 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11741 && test -z "${cf_tst_cflags}" \
11742 && cf_fix_cppflags=no
11747 if test -n "$cf_new_cflags" ; then
11749 CFLAGS="$CFLAGS $cf_new_cflags"
11752 if test -n "$cf_new_cppflags" ; then
11754 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11757 if test -n "$cf_new_extra_cppflags" ; then
11759 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11762 cf_add_libs="$cf_pkgconfig_libs"
11763 # Filter out duplicates - this happens with badly-designed ".pc" files...
11764 for cf_add_1lib in $LIBS
11766 for cf_add_2lib in $cf_add_libs
11768 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11774 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11776 LIBS="$cf_add_libs"
11778 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then
11779 test -n "$verbose" && echo " found package sm" 1>&6
11781 echo "${as_me:-configure}:11781: testing found package sm ..." 1>&5
11783 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`"
11784 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`"
11785 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
11787 echo "${as_me:-configure}:11787: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11789 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
11791 echo "${as_me:-configure}:11791: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
11796 cf_new_extra_cppflags=
11798 for cf_add_cflags in $cf_pkgconfig_incs
11800 case $cf_fix_cppflags in
11802 case $cf_add_cflags in
11803 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11804 case $cf_add_cflags in
11806 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11808 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11809 && test -z "${cf_tst_cflags}" \
11810 && cf_fix_cppflags=yes
11812 if test $cf_fix_cppflags = yes ; then
11813 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11815 elif test "${cf_tst_cflags}" = "\"'" ; then
11816 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11821 case "$CPPFLAGS" in
11825 case $cf_add_cflags in
11827 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11829 CPPFLAGS=`echo "$CPPFLAGS" | \
11830 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11831 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11835 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11840 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11845 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11847 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11849 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11850 && test -z "${cf_tst_cflags}" \
11851 && cf_fix_cppflags=no
11856 if test -n "$cf_new_cflags" ; then
11858 CFLAGS="$CFLAGS $cf_new_cflags"
11861 if test -n "$cf_new_cppflags" ; then
11863 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11866 if test -n "$cf_new_extra_cppflags" ; then
11868 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11871 cf_add_libs="$cf_pkgconfig_libs"
11872 # Filter out duplicates - this happens with badly-designed ".pc" files...
11873 for cf_add_1lib in $LIBS
11875 for cf_add_2lib in $cf_add_libs
11877 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11883 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11885 LIBS="$cf_add_libs"
11898 test -n "$verbose" && echo " ...before $LIBS" 1>&6
11900 echo "${as_me:-configure}:11900: testing ...before $LIBS ..." 1>&5
11902 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's% % %g'`
11903 test -n "$verbose" && echo " ...after $LIBS" 1>&6
11905 echo "${as_me:-configure}:11905: testing ...after $LIBS ..." 1>&5
11921 LDFLAGS="$X_LIBS $LDFLAGS"
11923 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
11925 echo "${as_me:-configure}:11925: testing checking additions to CFLAGS ..." 1>&5
11927 cf_check_cflags="$CFLAGS"
11928 cf_check_cppflags="$CPPFLAGS"
11933 cf_new_extra_cppflags=
11935 for cf_add_cflags in $X_CFLAGS
11937 case $cf_fix_cppflags in
11939 case $cf_add_cflags in
11940 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11941 case $cf_add_cflags in
11943 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11945 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11946 && test -z "${cf_tst_cflags}" \
11947 && cf_fix_cppflags=yes
11949 if test $cf_fix_cppflags = yes ; then
11950 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11952 elif test "${cf_tst_cflags}" = "\"'" ; then
11953 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11958 case "$CPPFLAGS" in
11962 case $cf_add_cflags in
11964 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11966 CPPFLAGS=`echo "$CPPFLAGS" | \
11967 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11968 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11972 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11977 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11982 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11984 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11986 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11987 && test -z "${cf_tst_cflags}" \
11988 && cf_fix_cppflags=no
11993 if test -n "$cf_new_cflags" ; then
11994 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
11996 echo "${as_me:-configure}:11996: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
11998 CFLAGS="$CFLAGS $cf_new_cflags"
12001 if test -n "$cf_new_cppflags" ; then
12002 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
12004 echo "${as_me:-configure}:12004: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
12006 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12009 if test -n "$cf_new_extra_cppflags" ; then
12010 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
12012 echo "${as_me:-configure}:12012: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
12014 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12017 if test "x$cf_check_cflags" != "x$CFLAGS" ; then
12018 cat >conftest.$ac_ext <<_ACEOF
12019 #line 12019 "configure"
12020 #include "confdefs.h"
12025 printf("Hello world");
12030 rm -f conftest.$ac_objext conftest$ac_exeext
12031 if { (eval echo "$as_me:12031: \"$ac_link\"") >&5
12032 (eval $ac_link) 2>&5
12034 echo "$as_me:12034: \$? = $ac_status" >&5
12035 (exit $ac_status); } &&
12036 { ac_try='test -s conftest$ac_exeext'
12037 { (eval echo "$as_me:12037: \"$ac_try\"") >&5
12038 (eval $ac_try) 2>&5
12040 echo "$as_me:12040: \$? = $ac_status" >&5
12041 (exit $ac_status); }; }; then
12044 echo "$as_me: failed program was:" >&5
12045 cat conftest.$ac_ext >&5
12046 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
12048 echo "${as_me:-configure}:12048: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
12050 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then
12051 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
12053 echo "${as_me:-configure}:12053: testing but keeping change to \$CPPFLAGS ..." 1>&5
12056 CFLAGS="$cf_check_flags"
12058 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12061 echo "$as_me:12061: checking for XOpenDisplay" >&5
12062 echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6
12063 if test "${ac_cv_func_XOpenDisplay+set}" = set; then
12064 echo $ECHO_N "(cached) $ECHO_C" >&6
12066 cat >conftest.$ac_ext <<_ACEOF
12067 #line 12067 "configure"
12068 #include "confdefs.h"
12069 /* System header to define __stub macros and hopefully few prototypes,
12070 which can conflict with char XOpenDisplay (); below. */
12071 #include <assert.h>
12072 /* Override any gcc2 internal prototype to avoid an error. */
12076 /* We use char because int might match the return type of a gcc2
12077 builtin and then its argument prototype would still apply. */
12078 char XOpenDisplay ();
12084 /* The GNU C library defines this for functions which it implements
12085 to always fail with ENOSYS. Some functions are actually named
12086 something starting with __ and the normal name is an alias. */
12087 #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay)
12090 f = XOpenDisplay; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
12097 rm -f conftest.$ac_objext conftest$ac_exeext
12098 if { (eval echo "$as_me:12098: \"$ac_link\"") >&5
12099 (eval $ac_link) 2>&5
12101 echo "$as_me:12101: \$? = $ac_status" >&5
12102 (exit $ac_status); } &&
12103 { ac_try='test -s conftest$ac_exeext'
12104 { (eval echo "$as_me:12104: \"$ac_try\"") >&5
12105 (eval $ac_try) 2>&5
12107 echo "$as_me:12107: \$? = $ac_status" >&5
12108 (exit $ac_status); }; }; then
12109 ac_cv_func_XOpenDisplay=yes
12111 echo "$as_me: failed program was:" >&5
12112 cat conftest.$ac_ext >&5
12113 ac_cv_func_XOpenDisplay=no
12115 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12117 echo "$as_me:12117: result: $ac_cv_func_XOpenDisplay" >&5
12118 echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6
12119 if test $ac_cv_func_XOpenDisplay = yes; then
12123 echo "$as_me:12123: checking for XOpenDisplay in -lX11" >&5
12124 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
12125 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
12126 echo $ECHO_N "(cached) $ECHO_C" >&6
12128 ac_check_lib_save_LIBS=$LIBS
12129 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
12130 cat >conftest.$ac_ext <<_ACEOF
12131 #line 12131 "configure"
12132 #include "confdefs.h"
12134 /* Override any gcc2 internal prototype to avoid an error. */
12138 /* We use char because int might match the return type of a gcc2
12139 builtin and then its argument prototype would still apply. */
12140 char XOpenDisplay ();
12149 rm -f conftest.$ac_objext conftest$ac_exeext
12150 if { (eval echo "$as_me:12150: \"$ac_link\"") >&5
12151 (eval $ac_link) 2>&5
12153 echo "$as_me:12153: \$? = $ac_status" >&5
12154 (exit $ac_status); } &&
12155 { ac_try='test -s conftest$ac_exeext'
12156 { (eval echo "$as_me:12156: \"$ac_try\"") >&5
12157 (eval $ac_try) 2>&5
12159 echo "$as_me:12159: \$? = $ac_status" >&5
12160 (exit $ac_status); }; }; then
12161 ac_cv_lib_X11_XOpenDisplay=yes
12163 echo "$as_me: failed program was:" >&5
12164 cat conftest.$ac_ext >&5
12165 ac_cv_lib_X11_XOpenDisplay=no
12167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12168 LIBS=$ac_check_lib_save_LIBS
12170 echo "$as_me:12170: result: $ac_cv_lib_X11_XOpenDisplay" >&5
12171 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
12172 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
12174 cf_add_libs="-lX11"
12175 # Filter out duplicates - this happens with badly-designed ".pc" files...
12176 for cf_add_1lib in $LIBS
12178 for cf_add_2lib in $cf_add_libs
12180 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12186 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12188 LIBS="$cf_add_libs"
12194 echo "$as_me:12194: checking for XtAppInitialize" >&5
12195 echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6
12196 if test "${ac_cv_func_XtAppInitialize+set}" = set; then
12197 echo $ECHO_N "(cached) $ECHO_C" >&6
12199 cat >conftest.$ac_ext <<_ACEOF
12200 #line 12200 "configure"
12201 #include "confdefs.h"
12202 /* System header to define __stub macros and hopefully few prototypes,
12203 which can conflict with char XtAppInitialize (); below. */
12204 #include <assert.h>
12205 /* Override any gcc2 internal prototype to avoid an error. */
12209 /* We use char because int might match the return type of a gcc2
12210 builtin and then its argument prototype would still apply. */
12211 char XtAppInitialize ();
12217 /* The GNU C library defines this for functions which it implements
12218 to always fail with ENOSYS. Some functions are actually named
12219 something starting with __ and the normal name is an alias. */
12220 #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize)
12223 f = XtAppInitialize; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
12230 rm -f conftest.$ac_objext conftest$ac_exeext
12231 if { (eval echo "$as_me:12231: \"$ac_link\"") >&5
12232 (eval $ac_link) 2>&5
12234 echo "$as_me:12234: \$? = $ac_status" >&5
12235 (exit $ac_status); } &&
12236 { ac_try='test -s conftest$ac_exeext'
12237 { (eval echo "$as_me:12237: \"$ac_try\"") >&5
12238 (eval $ac_try) 2>&5
12240 echo "$as_me:12240: \$? = $ac_status" >&5
12241 (exit $ac_status); }; }; then
12242 ac_cv_func_XtAppInitialize=yes
12244 echo "$as_me: failed program was:" >&5
12245 cat conftest.$ac_ext >&5
12246 ac_cv_func_XtAppInitialize=no
12248 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12250 echo "$as_me:12250: result: $ac_cv_func_XtAppInitialize" >&5
12251 echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6
12252 if test $ac_cv_func_XtAppInitialize = yes; then
12256 echo "$as_me:12256: checking for XtAppInitialize in -lXt" >&5
12257 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
12258 if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
12259 echo $ECHO_N "(cached) $ECHO_C" >&6
12261 ac_check_lib_save_LIBS=$LIBS
12262 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
12263 cat >conftest.$ac_ext <<_ACEOF
12264 #line 12264 "configure"
12265 #include "confdefs.h"
12267 /* Override any gcc2 internal prototype to avoid an error. */
12271 /* We use char because int might match the return type of a gcc2
12272 builtin and then its argument prototype would still apply. */
12273 char XtAppInitialize ();
12277 XtAppInitialize ();
12282 rm -f conftest.$ac_objext conftest$ac_exeext
12283 if { (eval echo "$as_me:12283: \"$ac_link\"") >&5
12284 (eval $ac_link) 2>&5
12286 echo "$as_me:12286: \$? = $ac_status" >&5
12287 (exit $ac_status); } &&
12288 { ac_try='test -s conftest$ac_exeext'
12289 { (eval echo "$as_me:12289: \"$ac_try\"") >&5
12290 (eval $ac_try) 2>&5
12292 echo "$as_me:12292: \$? = $ac_status" >&5
12293 (exit $ac_status); }; }; then
12294 ac_cv_lib_Xt_XtAppInitialize=yes
12296 echo "$as_me: failed program was:" >&5
12297 cat conftest.$ac_ext >&5
12298 ac_cv_lib_Xt_XtAppInitialize=no
12300 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12301 LIBS=$ac_check_lib_save_LIBS
12303 echo "$as_me:12303: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
12304 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
12305 if test $ac_cv_lib_Xt_XtAppInitialize = yes; then
12307 cat >>confdefs.h <<\EOF
12308 #define HAVE_LIBXT 1
12312 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
12319 if test $cf_have_X_LIBS = no ; then
12320 { echo "$as_me:12320: WARNING: Unable to successfully link X Toolkit library (-lXt) with
12321 test program. You will have to check and add the proper libraries by hand
12323 echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with
12324 test program. You will have to check and add the proper libraries by hand
12325 to makefile." >&2;}
12328 cf_x_athena_root=$cf_x_athena
12331 for cf_path in default \
12332 /usr/contrib/X11R6 \
12333 /usr/contrib/X11R5 \
12337 if test -z "$cf_x_athena_inc" ; then
12338 cf_save="$CPPFLAGS"
12339 cf_test=X11/$cf_x_athena_root/SimpleMenu.h
12340 if test $cf_path != default ; then
12341 CPPFLAGS="$cf_save -I$cf_path/include"
12342 echo "$as_me:12342: checking for $cf_test in $cf_path" >&5
12343 echo $ECHO_N "checking for $cf_test in $cf_path... $ECHO_C" >&6
12345 echo "$as_me:12345: checking for $cf_test" >&5
12346 echo $ECHO_N "checking for $cf_test... $ECHO_C" >&6
12348 cat >conftest.$ac_ext <<_ACEOF
12349 #line 12349 "configure"
12350 #include "confdefs.h"
12352 #include <X11/Intrinsic.h>
12353 #include <$cf_test>
12362 rm -f conftest.$ac_objext
12363 if { (eval echo "$as_me:12363: \"$ac_compile\"") >&5
12364 (eval $ac_compile) 2>&5
12366 echo "$as_me:12366: \$? = $ac_status" >&5
12367 (exit $ac_status); } &&
12368 { ac_try='test -s conftest.$ac_objext'
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
12376 echo "$as_me: failed program was:" >&5
12377 cat conftest.$ac_ext >&5
12380 rm -f conftest.$ac_objext conftest.$ac_ext
12381 echo "$as_me:12381: result: $cf_result" >&5
12382 echo "${ECHO_T}$cf_result" >&6
12383 if test "$cf_result" = yes ; then
12384 cf_x_athena_inc=$cf_path
12387 CPPFLAGS="$cf_save"
12392 if test -z "$cf_x_athena_inc" ; then
12393 { echo "$as_me:12393: WARNING: Unable to successfully find Athena header files with test program" >&5
12394 echo "$as_me: WARNING: Unable to successfully find Athena header files with test program" >&2;}
12395 elif test "$cf_x_athena_inc" != default ; then
12396 CPPFLAGS="$CPPFLAGS -I$cf_x_athena_inc"
12399 cf_x_athena_root=$cf_x_athena
12402 for cf_path in default \
12403 /usr/contrib/X11R6 \
12404 /usr/contrib/X11R5 \
12409 ${cf_x_athena_root} \
12410 ${cf_x_athena_root}7 \
12411 ${cf_x_athena_root}6
12414 "-l$cf_lib -lXmu" \
12415 "-l$cf_lib -lXpm -lXmu" \
12416 "-l${cf_lib}_s -lXmu_s"
12418 if test -z "$cf_x_athena_lib" ; then
12420 cf_test=XawSimpleMenuAddGlobalActions
12421 if test $cf_path != default ; then
12423 cf_add_libs="-L$cf_path/lib $cf_libs"
12424 # Filter out duplicates - this happens with badly-designed ".pc" files...
12425 for cf_add_1lib in $LIBS
12427 for cf_add_2lib in $cf_add_libs
12429 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12435 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12437 LIBS="$cf_add_libs"
12439 echo "$as_me:12439: checking for $cf_libs in $cf_path" >&5
12440 echo $ECHO_N "checking for $cf_libs in $cf_path... $ECHO_C" >&6
12443 cf_add_libs="$cf_libs"
12444 # Filter out duplicates - this happens with badly-designed ".pc" files...
12445 for cf_add_1lib in $LIBS
12447 for cf_add_2lib in $cf_add_libs
12449 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12455 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12457 LIBS="$cf_add_libs"
12459 echo "$as_me:12459: checking for $cf_test in $cf_libs" >&5
12460 echo $ECHO_N "checking for $cf_test in $cf_libs... $ECHO_C" >&6
12462 cat >conftest.$ac_ext <<_ACEOF
12463 #line 12463 "configure"
12464 #include "confdefs.h"
12466 #include <X11/Intrinsic.h>
12467 #include <X11/$cf_x_athena_root/SimpleMenu.h>
12473 $cf_test((XtAppContext) 0)
12478 rm -f conftest.$ac_objext conftest$ac_exeext
12479 if { (eval echo "$as_me:12479: \"$ac_link\"") >&5
12480 (eval $ac_link) 2>&5
12482 echo "$as_me:12482: \$? = $ac_status" >&5
12483 (exit $ac_status); } &&
12484 { ac_try='test -s conftest$ac_exeext'
12485 { (eval echo "$as_me:12485: \"$ac_try\"") >&5
12486 (eval $ac_try) 2>&5
12488 echo "$as_me:12488: \$? = $ac_status" >&5
12489 (exit $ac_status); }; }; then
12492 echo "$as_me: failed program was:" >&5
12493 cat conftest.$ac_ext >&5
12496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12497 echo "$as_me:12497: result: $cf_result" >&5
12498 echo "${ECHO_T}$cf_result" >&6
12499 if test "$cf_result" = yes ; then
12500 cf_x_athena_lib="$cf_libs"
12506 test -n "$cf_x_athena_lib" && break
12510 if test -z "$cf_x_athena_lib" ; then
12511 { { echo "$as_me:12511: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&5
12512 echo "$as_me: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&2;}
12513 { (exit 1); exit 1; }; }
12516 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
12518 cat >>confdefs.h <<EOF
12519 #define $cf_x_athena_LIBS 1
12524 if test -n "$ac_tool_prefix"; then
12525 for ac_prog in xcurses-config
12527 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12528 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12529 echo "$as_me:12529: checking for $ac_word" >&5
12530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12531 if test "${ac_cv_prog_XCURSES_CONFIG+set}" = set; then
12532 echo $ECHO_N "(cached) $ECHO_C" >&6
12534 if test -n "$XCURSES_CONFIG"; then
12535 ac_cv_prog_XCURSES_CONFIG="$XCURSES_CONFIG" # Let the user override the test.
12537 ac_save_IFS=$IFS; IFS=$ac_path_separator
12539 for ac_dir in $ac_dummy; do
12541 test -z "$ac_dir" && ac_dir=.
12542 $as_executable_p "$ac_dir/$ac_word" || continue
12543 ac_cv_prog_XCURSES_CONFIG="$ac_tool_prefix$ac_prog"
12544 echo "$as_me:12544: found $ac_dir/$ac_word" >&5
12550 XCURSES_CONFIG=$ac_cv_prog_XCURSES_CONFIG
12551 if test -n "$XCURSES_CONFIG"; then
12552 echo "$as_me:12552: result: $XCURSES_CONFIG" >&5
12553 echo "${ECHO_T}$XCURSES_CONFIG" >&6
12555 echo "$as_me:12555: result: no" >&5
12556 echo "${ECHO_T}no" >&6
12559 test -n "$XCURSES_CONFIG" && break
12562 if test -z "$XCURSES_CONFIG"; then
12563 ac_ct_XCURSES_CONFIG=$XCURSES_CONFIG
12564 for ac_prog in xcurses-config
12566 # Extract the first word of "$ac_prog", so it can be a program name with args.
12567 set dummy $ac_prog; ac_word=$2
12568 echo "$as_me:12568: checking for $ac_word" >&5
12569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12570 if test "${ac_cv_prog_ac_ct_XCURSES_CONFIG+set}" = set; then
12571 echo $ECHO_N "(cached) $ECHO_C" >&6
12573 if test -n "$ac_ct_XCURSES_CONFIG"; then
12574 ac_cv_prog_ac_ct_XCURSES_CONFIG="$ac_ct_XCURSES_CONFIG" # Let the user override the test.
12576 ac_save_IFS=$IFS; IFS=$ac_path_separator
12578 for ac_dir in $ac_dummy; do
12580 test -z "$ac_dir" && ac_dir=.
12581 $as_executable_p "$ac_dir/$ac_word" || continue
12582 ac_cv_prog_ac_ct_XCURSES_CONFIG="$ac_prog"
12583 echo "$as_me:12583: found $ac_dir/$ac_word" >&5
12589 ac_ct_XCURSES_CONFIG=$ac_cv_prog_ac_ct_XCURSES_CONFIG
12590 if test -n "$ac_ct_XCURSES_CONFIG"; then
12591 echo "$as_me:12591: result: $ac_ct_XCURSES_CONFIG" >&5
12592 echo "${ECHO_T}$ac_ct_XCURSES_CONFIG" >&6
12594 echo "$as_me:12594: result: no" >&5
12595 echo "${ECHO_T}no" >&6
12598 test -n "$ac_ct_XCURSES_CONFIG" && break
12600 test -n "$ac_ct_XCURSES_CONFIG" || ac_ct_XCURSES_CONFIG="none"
12602 XCURSES_CONFIG=$ac_ct_XCURSES_CONFIG
12605 if test "$XCURSES_CONFIG" != none ; then
12607 CPPFLAGS="$CPPFLAGS `$XCURSES_CONFIG --cflags`"
12609 cf_add_libs="`$XCURSES_CONFIG --libs`"
12610 # Filter out duplicates - this happens with badly-designed ".pc" files...
12611 for cf_add_1lib in $LIBS
12613 for cf_add_2lib in $cf_add_libs
12615 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12621 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12623 LIBS="$cf_add_libs"
12625 cf_cv_lib_XCurses=yes
12629 LDFLAGS="$LDFLAGS $X_LIBS"
12631 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
12633 echo "${as_me:-configure}:12633: testing checking additions to CFLAGS ..." 1>&5
12635 cf_check_cflags="$CFLAGS"
12636 cf_check_cppflags="$CPPFLAGS"
12641 cf_new_extra_cppflags=
12643 for cf_add_cflags in $X_CFLAGS
12645 case $cf_fix_cppflags in
12647 case $cf_add_cflags in
12648 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12649 case $cf_add_cflags in
12651 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12653 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12654 && test -z "${cf_tst_cflags}" \
12655 && cf_fix_cppflags=yes
12657 if test $cf_fix_cppflags = yes ; then
12658 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12660 elif test "${cf_tst_cflags}" = "\"'" ; then
12661 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12666 case "$CPPFLAGS" in
12670 case $cf_add_cflags in
12672 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12674 CPPFLAGS=`echo "$CPPFLAGS" | \
12675 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12676 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12680 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12685 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12690 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12692 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12694 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12695 && test -z "${cf_tst_cflags}" \
12696 && cf_fix_cppflags=no
12701 if test -n "$cf_new_cflags" ; then
12702 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
12704 echo "${as_me:-configure}:12704: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
12706 CFLAGS="$CFLAGS $cf_new_cflags"
12709 if test -n "$cf_new_cppflags" ; then
12710 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
12712 echo "${as_me:-configure}:12712: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
12714 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12717 if test -n "$cf_new_extra_cppflags" ; then
12718 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
12720 echo "${as_me:-configure}:12720: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
12722 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12725 if test "x$cf_check_cflags" != "x$CFLAGS" ; then
12726 cat >conftest.$ac_ext <<_ACEOF
12727 #line 12727 "configure"
12728 #include "confdefs.h"
12733 printf("Hello world");
12738 rm -f conftest.$ac_objext conftest$ac_exeext
12739 if { (eval echo "$as_me:12739: \"$ac_link\"") >&5
12740 (eval $ac_link) 2>&5
12742 echo "$as_me:12742: \$? = $ac_status" >&5
12743 (exit $ac_status); } &&
12744 { ac_try='test -s conftest$ac_exeext'
12745 { (eval echo "$as_me:12745: \"$ac_try\"") >&5
12746 (eval $ac_try) 2>&5
12748 echo "$as_me:12748: \$? = $ac_status" >&5
12749 (exit $ac_status); }; }; then
12752 echo "$as_me: failed program was:" >&5
12753 cat conftest.$ac_ext >&5
12754 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
12756 echo "${as_me:-configure}:12756: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
12758 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then
12759 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
12761 echo "${as_me:-configure}:12761: testing but keeping change to \$CPPFLAGS ..." 1>&5
12764 CFLAGS="$cf_check_flags"
12766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12769 echo "$as_me:12769: checking for XOpenDisplay in -lX11" >&5
12770 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
12771 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
12772 echo $ECHO_N "(cached) $ECHO_C" >&6
12774 ac_check_lib_save_LIBS=$LIBS
12775 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
12776 cat >conftest.$ac_ext <<_ACEOF
12777 #line 12777 "configure"
12778 #include "confdefs.h"
12780 /* Override any gcc2 internal prototype to avoid an error. */
12784 /* We use char because int might match the return type of a gcc2
12785 builtin and then its argument prototype would still apply. */
12786 char XOpenDisplay ();
12795 rm -f conftest.$ac_objext conftest$ac_exeext
12796 if { (eval echo "$as_me:12796: \"$ac_link\"") >&5
12797 (eval $ac_link) 2>&5
12799 echo "$as_me:12799: \$? = $ac_status" >&5
12800 (exit $ac_status); } &&
12801 { ac_try='test -s conftest$ac_exeext'
12802 { (eval echo "$as_me:12802: \"$ac_try\"") >&5
12803 (eval $ac_try) 2>&5
12805 echo "$as_me:12805: \$? = $ac_status" >&5
12806 (exit $ac_status); }; }; then
12807 ac_cv_lib_X11_XOpenDisplay=yes
12809 echo "$as_me: failed program was:" >&5
12810 cat conftest.$ac_ext >&5
12811 ac_cv_lib_X11_XOpenDisplay=no
12813 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12814 LIBS=$ac_check_lib_save_LIBS
12816 echo "$as_me:12816: result: $ac_cv_lib_X11_XOpenDisplay" >&5
12817 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
12818 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
12820 cf_add_libs="-lX11"
12821 # Filter out duplicates - this happens with badly-designed ".pc" files...
12822 for cf_add_1lib in $LIBS
12824 for cf_add_2lib in $cf_add_libs
12826 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12832 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12834 LIBS="$cf_add_libs"
12838 echo "$as_me:12838: checking for XCurses library" >&5
12839 echo $ECHO_N "checking for XCurses library... $ECHO_C" >&6
12840 if test "${cf_cv_lib_XCurses+set}" = set; then
12841 echo $ECHO_N "(cached) $ECHO_C" >&6
12844 cf_add_libs="-lXCurses"
12845 # Filter out duplicates - this happens with badly-designed ".pc" files...
12846 for cf_add_1lib in $LIBS
12848 for cf_add_2lib in $cf_add_libs
12850 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12856 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12858 LIBS="$cf_add_libs"
12860 cat >conftest.$ac_ext <<_ACEOF
12861 #line 12861 "configure"
12862 #include "confdefs.h"
12864 #include <xcurses.h>
12865 char *XCursesProgramName = "test";
12875 rm -f conftest.$ac_objext conftest$ac_exeext
12876 if { (eval echo "$as_me:12876: \"$ac_link\"") >&5
12877 (eval $ac_link) 2>&5
12879 echo "$as_me:12879: \$? = $ac_status" >&5
12880 (exit $ac_status); } &&
12881 { ac_try='test -s conftest$ac_exeext'
12882 { (eval echo "$as_me:12882: \"$ac_try\"") >&5
12883 (eval $ac_try) 2>&5
12885 echo "$as_me:12885: \$? = $ac_status" >&5
12886 (exit $ac_status); }; }; then
12887 cf_cv_lib_XCurses=yes
12889 echo "$as_me: failed program was:" >&5
12890 cat conftest.$ac_ext >&5
12891 cf_cv_lib_XCurses=no
12893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12896 echo "$as_me:12896: result: $cf_cv_lib_XCurses" >&5
12897 echo "${ECHO_T}$cf_cv_lib_XCurses" >&6
12901 if test $cf_cv_lib_XCurses = yes ; then
12903 cat >>confdefs.h <<\EOF
12907 cat >>confdefs.h <<\EOF
12911 echo "$as_me:12911: checking for xcurses.h" >&5
12912 echo $ECHO_N "checking for xcurses.h... $ECHO_C" >&6
12913 if test "${ac_cv_header_xcurses_h+set}" = set; then
12914 echo $ECHO_N "(cached) $ECHO_C" >&6
12916 cat >conftest.$ac_ext <<_ACEOF
12917 #line 12917 "configure"
12918 #include "confdefs.h"
12919 #include <xcurses.h>
12921 if { (eval echo "$as_me:12921: \"$ac_cpp conftest.$ac_ext\"") >&5
12922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12924 egrep -v '^ *\+' conftest.er1 >conftest.err
12926 cat conftest.err >&5
12927 echo "$as_me:12927: \$? = $ac_status" >&5
12928 (exit $ac_status); } >/dev/null; then
12929 if test -s conftest.err; then
12930 ac_cpp_err=$ac_c_preproc_warn_flag
12937 if test -z "$ac_cpp_err"; then
12938 ac_cv_header_xcurses_h=yes
12940 echo "$as_me: failed program was:" >&5
12941 cat conftest.$ac_ext >&5
12942 ac_cv_header_xcurses_h=no
12944 rm -f conftest.err conftest.$ac_ext
12946 echo "$as_me:12946: result: $ac_cv_header_xcurses_h" >&5
12947 echo "${ECHO_T}$ac_cv_header_xcurses_h" >&6
12948 if test $ac_cv_header_xcurses_h = yes; then
12950 cat >>confdefs.h <<\EOF
12951 #define HAVE_XCURSES 1
12957 { { echo "$as_me:12957: error: Cannot link with XCurses" >&5
12958 echo "$as_me: error: Cannot link with XCurses" >&2;}
12959 { (exit 1); exit 1; }; }
12964 { { echo "$as_me:12964: error: unexpected screen-value: $cf_cv_screen" >&5
12965 echo "$as_me: error: unexpected screen-value: $cf_cv_screen" >&2;}
12966 { (exit 1); exit 1; }; }
12970 case $cf_cv_screen in
12972 cf_cv_libtype=`echo "$cf_cv_screen" | sed -e 's/^ncurses//'`
12976 echo "$as_me:12976: checking for NetBSD form.h" >&5
12977 echo $ECHO_N "checking for NetBSD form.h... $ECHO_C" >&6
12978 if test "${cf_cv_netbsd_form_h+set}" = set; then
12979 echo $ECHO_N "(cached) $ECHO_C" >&6
12982 cat >conftest.$ac_ext <<_ACEOF
12983 #line 12983 "configure"
12984 #include "confdefs.h"
12986 #include <${cf_cv_ncurses_header:-curses.h}>
12994 int y = current_field(form)->cursor_ypos;
12995 int x = current_field(form)->cursor_xpos;
13001 rm -f conftest.$ac_objext
13002 if { (eval echo "$as_me:13002: \"$ac_compile\"") >&5
13003 (eval $ac_compile) 2>&5
13005 echo "$as_me:13005: \$? = $ac_status" >&5
13006 (exit $ac_status); } &&
13007 { ac_try='test -s conftest.$ac_objext'
13008 { (eval echo "$as_me:13008: \"$ac_try\"") >&5
13009 (eval $ac_try) 2>&5
13011 echo "$as_me:13011: \$? = $ac_status" >&5
13012 (exit $ac_status); }; }; then
13013 cf_cv_netbsd_form_h=yes
13016 echo "$as_me: failed program was:" >&5
13017 cat conftest.$ac_ext >&5
13018 cf_cv_netbsd_form_h=no
13020 rm -f conftest.$ac_objext conftest.$ac_ext
13023 echo "$as_me:13023: result: $cf_cv_netbsd_form_h" >&5
13024 echo "${ECHO_T}$cf_cv_netbsd_form_h" >&6
13026 test "$cf_cv_netbsd_form_h" = yes &&
13027 cat >>confdefs.h <<\EOF
13028 #define HAVE_NETBSD_FORM_H 1
13031 echo "$as_me:13031: checking for NetBSD menu.h" >&5
13032 echo $ECHO_N "checking for NetBSD menu.h... $ECHO_C" >&6
13033 if test "${cf_cv_netbsd_menu_h+set}" = set; then
13034 echo $ECHO_N "(cached) $ECHO_C" >&6
13037 cat >conftest.$ac_ext <<_ACEOF
13038 #line 13038 "configure"
13039 #include "confdefs.h"
13041 #include <${cf_cv_ncurses_header:-curses.h}>
13049 int y = menu->max_item_width;
13055 rm -f conftest.$ac_objext
13056 if { (eval echo "$as_me:13056: \"$ac_compile\"") >&5
13057 (eval $ac_compile) 2>&5
13059 echo "$as_me:13059: \$? = $ac_status" >&5
13060 (exit $ac_status); } &&
13061 { ac_try='test -s conftest.$ac_objext'
13062 { (eval echo "$as_me:13062: \"$ac_try\"") >&5
13063 (eval $ac_try) 2>&5
13065 echo "$as_me:13065: \$? = $ac_status" >&5
13066 (exit $ac_status); }; }; then
13067 cf_cv_netbsd_menu_h=yes
13070 echo "$as_me: failed program was:" >&5
13071 cat conftest.$ac_ext >&5
13072 cf_cv_netbsd_menu_h=no
13074 rm -f conftest.$ac_objext conftest.$ac_ext
13077 echo "$as_me:13077: result: $cf_cv_netbsd_menu_h" >&5
13078 echo "${ECHO_T}$cf_cv_netbsd_menu_h" >&6
13080 test "$cf_cv_netbsd_menu_h" = yes &&
13081 cat >>confdefs.h <<\EOF
13082 #define HAVE_NETBSD_MENU_H 1
13088 case $cf_cv_screen in
13092 # look for curses-related libraries
13094 as_ac_Lib=`echo "ac_cv_lib_panel$cf_cv_libtype''_new_panel" | $as_tr_sh`
13095 echo "$as_me:13095: checking for new_panel in -lpanel$cf_cv_libtype" >&5
13096 echo $ECHO_N "checking for new_panel in -lpanel$cf_cv_libtype... $ECHO_C" >&6
13097 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13098 echo $ECHO_N "(cached) $ECHO_C" >&6
13100 ac_check_lib_save_LIBS=$LIBS
13101 LIBS="-lpanel$cf_cv_libtype $LIBS"
13102 cat >conftest.$ac_ext <<_ACEOF
13103 #line 13103 "configure"
13104 #include "confdefs.h"
13106 /* Override any gcc2 internal prototype to avoid an error. */
13110 /* We use char because int might match the return type of a gcc2
13111 builtin and then its argument prototype would still apply. */
13121 rm -f conftest.$ac_objext conftest$ac_exeext
13122 if { (eval echo "$as_me:13122: \"$ac_link\"") >&5
13123 (eval $ac_link) 2>&5
13125 echo "$as_me:13125: \$? = $ac_status" >&5
13126 (exit $ac_status); } &&
13127 { ac_try='test -s conftest$ac_exeext'
13128 { (eval echo "$as_me:13128: \"$ac_try\"") >&5
13129 (eval $ac_try) 2>&5
13131 echo "$as_me:13131: \$? = $ac_status" >&5
13132 (exit $ac_status); }; }; then
13133 eval "$as_ac_Lib=yes"
13135 echo "$as_me: failed program was:" >&5
13136 cat conftest.$ac_ext >&5
13137 eval "$as_ac_Lib=no"
13139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13140 LIBS=$ac_check_lib_save_LIBS
13142 echo "$as_me:13142: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13143 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13144 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13146 cf_upper=`echo "have_libpanel" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13148 cf_add_libs="-lpanel$cf_cv_libtype"
13149 # Filter out duplicates - this happens with badly-designed ".pc" files...
13150 for cf_add_1lib in $LIBS
13152 for cf_add_2lib in $cf_add_libs
13154 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13160 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13162 LIBS="$cf_add_libs"
13164 cat >>confdefs.h <<EOF
13165 #define $cf_upper 1
13170 as_ac_Lib=`echo "ac_cv_lib_menu$cf_cv_libtype''_menu_driver" | $as_tr_sh`
13171 echo "$as_me:13171: checking for menu_driver in -lmenu$cf_cv_libtype" >&5
13172 echo $ECHO_N "checking for menu_driver in -lmenu$cf_cv_libtype... $ECHO_C" >&6
13173 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13174 echo $ECHO_N "(cached) $ECHO_C" >&6
13176 ac_check_lib_save_LIBS=$LIBS
13177 LIBS="-lmenu$cf_cv_libtype $LIBS"
13178 cat >conftest.$ac_ext <<_ACEOF
13179 #line 13179 "configure"
13180 #include "confdefs.h"
13182 /* Override any gcc2 internal prototype to avoid an error. */
13186 /* We use char because int might match the return type of a gcc2
13187 builtin and then its argument prototype would still apply. */
13188 char menu_driver ();
13197 rm -f conftest.$ac_objext conftest$ac_exeext
13198 if { (eval echo "$as_me:13198: \"$ac_link\"") >&5
13199 (eval $ac_link) 2>&5
13201 echo "$as_me:13201: \$? = $ac_status" >&5
13202 (exit $ac_status); } &&
13203 { ac_try='test -s conftest$ac_exeext'
13204 { (eval echo "$as_me:13204: \"$ac_try\"") >&5
13205 (eval $ac_try) 2>&5
13207 echo "$as_me:13207: \$? = $ac_status" >&5
13208 (exit $ac_status); }; }; then
13209 eval "$as_ac_Lib=yes"
13211 echo "$as_me: failed program was:" >&5
13212 cat conftest.$ac_ext >&5
13213 eval "$as_ac_Lib=no"
13215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13216 LIBS=$ac_check_lib_save_LIBS
13218 echo "$as_me:13218: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13219 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13220 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13222 cf_upper=`echo "have_libmenu" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13224 cf_add_libs="-lmenu$cf_cv_libtype"
13225 # Filter out duplicates - this happens with badly-designed ".pc" files...
13226 for cf_add_1lib in $LIBS
13228 for cf_add_2lib in $cf_add_libs
13230 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13236 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13238 LIBS="$cf_add_libs"
13240 cat >>confdefs.h <<EOF
13241 #define $cf_upper 1
13246 as_ac_Lib=`echo "ac_cv_lib_form$cf_cv_libtype''_form_driver" | $as_tr_sh`
13247 echo "$as_me:13247: checking for form_driver in -lform$cf_cv_libtype" >&5
13248 echo $ECHO_N "checking for form_driver in -lform$cf_cv_libtype... $ECHO_C" >&6
13249 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13250 echo $ECHO_N "(cached) $ECHO_C" >&6
13252 ac_check_lib_save_LIBS=$LIBS
13253 LIBS="-lform$cf_cv_libtype $LIBS"
13254 cat >conftest.$ac_ext <<_ACEOF
13255 #line 13255 "configure"
13256 #include "confdefs.h"
13258 /* Override any gcc2 internal prototype to avoid an error. */
13262 /* We use char because int might match the return type of a gcc2
13263 builtin and then its argument prototype would still apply. */
13264 char form_driver ();
13273 rm -f conftest.$ac_objext conftest$ac_exeext
13274 if { (eval echo "$as_me:13274: \"$ac_link\"") >&5
13275 (eval $ac_link) 2>&5
13277 echo "$as_me:13277: \$? = $ac_status" >&5
13278 (exit $ac_status); } &&
13279 { ac_try='test -s conftest$ac_exeext'
13280 { (eval echo "$as_me:13280: \"$ac_try\"") >&5
13281 (eval $ac_try) 2>&5
13283 echo "$as_me:13283: \$? = $ac_status" >&5
13284 (exit $ac_status); }; }; then
13285 eval "$as_ac_Lib=yes"
13287 echo "$as_me: failed program was:" >&5
13288 cat conftest.$ac_ext >&5
13289 eval "$as_ac_Lib=no"
13291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13292 LIBS=$ac_check_lib_save_LIBS
13294 echo "$as_me:13294: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13295 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13296 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13298 cf_upper=`echo "have_libform" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13300 cf_add_libs="-lform$cf_cv_libtype"
13301 # Filter out duplicates - this happens with badly-designed ".pc" files...
13302 for cf_add_1lib in $LIBS
13304 for cf_add_2lib in $cf_add_libs
13306 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13312 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13314 LIBS="$cf_add_libs"
13316 cat >>confdefs.h <<EOF
13317 #define $cf_upper 1
13322 # look for curses-related headers
13333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13334 echo "$as_me:13334: checking for $ac_header" >&5
13335 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13336 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13337 echo $ECHO_N "(cached) $ECHO_C" >&6
13339 cat >conftest.$ac_ext <<_ACEOF
13340 #line 13340 "configure"
13341 #include "confdefs.h"
13342 #include <$ac_header>
13344 if { (eval echo "$as_me:13344: \"$ac_cpp conftest.$ac_ext\"") >&5
13345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13347 egrep -v '^ *\+' conftest.er1 >conftest.err
13349 cat conftest.err >&5
13350 echo "$as_me:13350: \$? = $ac_status" >&5
13351 (exit $ac_status); } >/dev/null; then
13352 if test -s conftest.err; then
13353 ac_cpp_err=$ac_c_preproc_warn_flag
13360 if test -z "$ac_cpp_err"; then
13361 eval "$as_ac_Header=yes"
13363 echo "$as_me: failed program was:" >&5
13364 cat conftest.$ac_ext >&5
13365 eval "$as_ac_Header=no"
13367 rm -f conftest.err conftest.$ac_ext
13369 echo "$as_me:13369: result: `eval echo '${'$as_ac_Header'}'`" >&5
13370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13372 cat >>confdefs.h <<EOF
13373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13382 echo "$as_me:13382: checking for ANSI C header files" >&5
13383 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13384 if test "${ac_cv_header_stdc+set}" = set; then
13385 echo $ECHO_N "(cached) $ECHO_C" >&6
13387 cat >conftest.$ac_ext <<_ACEOF
13388 #line 13388 "configure"
13389 #include "confdefs.h"
13390 #include <stdlib.h>
13391 #include <stdarg.h>
13392 #include <string.h>
13396 if { (eval echo "$as_me:13396: \"$ac_cpp conftest.$ac_ext\"") >&5
13397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13399 egrep -v '^ *\+' conftest.er1 >conftest.err
13401 cat conftest.err >&5
13402 echo "$as_me:13402: \$? = $ac_status" >&5
13403 (exit $ac_status); } >/dev/null; then
13404 if test -s conftest.err; then
13405 ac_cpp_err=$ac_c_preproc_warn_flag
13412 if test -z "$ac_cpp_err"; then
13413 ac_cv_header_stdc=yes
13415 echo "$as_me: failed program was:" >&5
13416 cat conftest.$ac_ext >&5
13417 ac_cv_header_stdc=no
13419 rm -f conftest.err conftest.$ac_ext
13421 if test $ac_cv_header_stdc = yes; then
13422 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13423 cat >conftest.$ac_ext <<_ACEOF
13424 #line 13424 "configure"
13425 #include "confdefs.h"
13426 #include <string.h>
13429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13430 egrep "memchr" >/dev/null 2>&1; then
13433 ac_cv_header_stdc=no
13439 if test $ac_cv_header_stdc = yes; then
13440 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13441 cat >conftest.$ac_ext <<_ACEOF
13442 #line 13442 "configure"
13443 #include "confdefs.h"
13444 #include <stdlib.h>
13447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13448 egrep "free" >/dev/null 2>&1; then
13451 ac_cv_header_stdc=no
13457 if test $ac_cv_header_stdc = yes; then
13458 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13459 if test "$cross_compiling" = yes; then
13462 cat >conftest.$ac_ext <<_ACEOF
13463 #line 13463 "configure"
13464 #include "confdefs.h"
13466 #if ((' ' & 0x0FF) == 0x020)
13467 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13468 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13470 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13471 || ('j' <= (c) && (c) <= 'r') \
13472 || ('s' <= (c) && (c) <= 'z'))
13473 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13476 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13481 for (i = 0; i < 256; i++)
13482 if (XOR (islower (i), ISLOWER (i))
13483 || toupper (i) != TOUPPER (i))
13484 $ac_main_return(2);
13485 $ac_main_return (0);
13488 rm -f conftest$ac_exeext
13489 if { (eval echo "$as_me:13489: \"$ac_link\"") >&5
13490 (eval $ac_link) 2>&5
13492 echo "$as_me:13492: \$? = $ac_status" >&5
13493 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13494 { (eval echo "$as_me:13494: \"$ac_try\"") >&5
13495 (eval $ac_try) 2>&5
13497 echo "$as_me:13497: \$? = $ac_status" >&5
13498 (exit $ac_status); }; }; then
13501 echo "$as_me: program exited with status $ac_status" >&5
13502 echo "$as_me: failed program was:" >&5
13503 cat conftest.$ac_ext >&5
13504 ac_cv_header_stdc=no
13506 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13510 echo "$as_me:13510: result: $ac_cv_header_stdc" >&5
13511 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13512 if test $ac_cv_header_stdc = yes; then
13514 cat >>confdefs.h <<\EOF
13515 #define STDC_HEADERS 1
13520 echo "$as_me:13520: checking whether time.h and sys/time.h may both be included" >&5
13521 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
13522 if test "${ac_cv_header_time+set}" = set; then
13523 echo $ECHO_N "(cached) $ECHO_C" >&6
13525 cat >conftest.$ac_ext <<_ACEOF
13526 #line 13526 "configure"
13527 #include "confdefs.h"
13528 #include <sys/types.h>
13529 #include <sys/time.h>
13535 if ((struct tm *) 0)
13541 rm -f conftest.$ac_objext
13542 if { (eval echo "$as_me:13542: \"$ac_compile\"") >&5
13543 (eval $ac_compile) 2>&5
13545 echo "$as_me:13545: \$? = $ac_status" >&5
13546 (exit $ac_status); } &&
13547 { ac_try='test -s conftest.$ac_objext'
13548 { (eval echo "$as_me:13548: \"$ac_try\"") >&5
13549 (eval $ac_try) 2>&5
13551 echo "$as_me:13551: \$? = $ac_status" >&5
13552 (exit $ac_status); }; }; then
13553 ac_cv_header_time=yes
13555 echo "$as_me: failed program was:" >&5
13556 cat conftest.$ac_ext >&5
13557 ac_cv_header_time=no
13559 rm -f conftest.$ac_objext conftest.$ac_ext
13561 echo "$as_me:13561: result: $ac_cv_header_time" >&5
13562 echo "${ECHO_T}$ac_cv_header_time" >&6
13563 if test $ac_cv_header_time = yes; then
13565 cat >>confdefs.h <<\EOF
13566 #define TIME_WITH_SYS_TIME 1
13583 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13584 echo "$as_me:13584: checking for $ac_header" >&5
13585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13587 echo $ECHO_N "(cached) $ECHO_C" >&6
13589 cat >conftest.$ac_ext <<_ACEOF
13590 #line 13590 "configure"
13591 #include "confdefs.h"
13592 #include <$ac_header>
13594 if { (eval echo "$as_me:13594: \"$ac_cpp conftest.$ac_ext\"") >&5
13595 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13597 egrep -v '^ *\+' conftest.er1 >conftest.err
13599 cat conftest.err >&5
13600 echo "$as_me:13600: \$? = $ac_status" >&5
13601 (exit $ac_status); } >/dev/null; then
13602 if test -s conftest.err; then
13603 ac_cpp_err=$ac_c_preproc_warn_flag
13610 if test -z "$ac_cpp_err"; then
13611 eval "$as_ac_Header=yes"
13613 echo "$as_me: failed program was:" >&5
13614 cat conftest.$ac_ext >&5
13615 eval "$as_ac_Header=no"
13617 rm -f conftest.err conftest.$ac_ext
13619 echo "$as_me:13619: result: `eval echo '${'$as_ac_Header'}'`" >&5
13620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13622 cat >>confdefs.h <<EOF
13623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13629 for ac_header in unistd.h getopt.h
13631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13632 echo "$as_me:13632: checking for $ac_header" >&5
13633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13635 echo $ECHO_N "(cached) $ECHO_C" >&6
13637 cat >conftest.$ac_ext <<_ACEOF
13638 #line 13638 "configure"
13639 #include "confdefs.h"
13640 #include <$ac_header>
13642 if { (eval echo "$as_me:13642: \"$ac_cpp conftest.$ac_ext\"") >&5
13643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13645 egrep -v '^ *\+' conftest.er1 >conftest.err
13647 cat conftest.err >&5
13648 echo "$as_me:13648: \$? = $ac_status" >&5
13649 (exit $ac_status); } >/dev/null; then
13650 if test -s conftest.err; then
13651 ac_cpp_err=$ac_c_preproc_warn_flag
13658 if test -z "$ac_cpp_err"; then
13659 eval "$as_ac_Header=yes"
13661 echo "$as_me: failed program was:" >&5
13662 cat conftest.$ac_ext >&5
13663 eval "$as_ac_Header=no"
13665 rm -f conftest.err conftest.$ac_ext
13667 echo "$as_me:13667: result: `eval echo '${'$as_ac_Header'}'`" >&5
13668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13670 cat >>confdefs.h <<EOF
13671 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13677 echo "$as_me:13677: checking for header declaring getopt variables" >&5
13678 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
13679 if test "${cf_cv_getopt_header+set}" = set; then
13680 echo $ECHO_N "(cached) $ECHO_C" >&6
13683 cf_cv_getopt_header=none
13684 for cf_header in stdio.h stdlib.h unistd.h getopt.h
13686 cat >conftest.$ac_ext <<_ACEOF
13687 #line 13687 "configure"
13688 #include "confdefs.h"
13690 #include <$cf_header>
13694 int x = optind; char *y = optarg
13699 rm -f conftest.$ac_objext
13700 if { (eval echo "$as_me:13700: \"$ac_compile\"") >&5
13701 (eval $ac_compile) 2>&5
13703 echo "$as_me:13703: \$? = $ac_status" >&5
13704 (exit $ac_status); } &&
13705 { ac_try='test -s conftest.$ac_objext'
13706 { (eval echo "$as_me:13706: \"$ac_try\"") >&5
13707 (eval $ac_try) 2>&5
13709 echo "$as_me:13709: \$? = $ac_status" >&5
13710 (exit $ac_status); }; }; then
13711 cf_cv_getopt_header=$cf_header
13714 echo "$as_me: failed program was:" >&5
13715 cat conftest.$ac_ext >&5
13717 rm -f conftest.$ac_objext conftest.$ac_ext
13721 echo "$as_me:13721: result: $cf_cv_getopt_header" >&5
13722 echo "${ECHO_T}$cf_cv_getopt_header" >&6
13723 if test $cf_cv_getopt_header != none ; then
13725 cat >>confdefs.h <<\EOF
13726 #define HAVE_GETOPT_HEADER 1
13730 if test $cf_cv_getopt_header = getopt.h ; then
13732 cat >>confdefs.h <<\EOF
13733 #define NEED_GETOPT_H 1
13743 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13744 echo "$as_me:13744: checking for $ac_func" >&5
13745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13746 if eval "test \"\${$as_ac_var+set}\" = set"; then
13747 echo $ECHO_N "(cached) $ECHO_C" >&6
13749 cat >conftest.$ac_ext <<_ACEOF
13750 #line 13750 "configure"
13751 #include "confdefs.h"
13752 /* System header to define __stub macros and hopefully few prototypes,
13753 which can conflict with char $ac_func (); below. */
13754 #include <assert.h>
13755 /* Override any gcc2 internal prototype to avoid an error. */
13759 /* We use char because int might match the return type of a gcc2
13760 builtin and then its argument prototype would still apply. */
13767 /* The GNU C library defines this for functions which it implements
13768 to always fail with ENOSYS. Some functions are actually named
13769 something starting with __ and the normal name is an alias. */
13770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13773 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
13780 rm -f conftest.$ac_objext conftest$ac_exeext
13781 if { (eval echo "$as_me:13781: \"$ac_link\"") >&5
13782 (eval $ac_link) 2>&5
13784 echo "$as_me:13784: \$? = $ac_status" >&5
13785 (exit $ac_status); } &&
13786 { ac_try='test -s conftest$ac_exeext'
13787 { (eval echo "$as_me:13787: \"$ac_try\"") >&5
13788 (eval $ac_try) 2>&5
13790 echo "$as_me:13790: \$? = $ac_status" >&5
13791 (exit $ac_status); }; }; then
13792 eval "$as_ac_var=yes"
13794 echo "$as_me: failed program was:" >&5
13795 cat conftest.$ac_ext >&5
13796 eval "$as_ac_var=no"
13798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13800 echo "$as_me:13800: result: `eval echo '${'$as_ac_var'}'`" >&5
13801 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13802 if test `eval echo '${'$as_ac_var'}'` = yes; then
13803 cat >>confdefs.h <<EOF
13804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13810 if test "x$ac_cv_func_getopt" = xno; then
13811 { { echo "$as_me:13811: error: getopt is required for building programs" >&5
13812 echo "$as_me: error: getopt is required for building programs" >&2;}
13813 { (exit 1); exit 1; }; }
13816 if test "$cf_enable_widec" = yes; then
13829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13830 echo "$as_me:13830: checking for $ac_func" >&5
13831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13832 if eval "test \"\${$as_ac_var+set}\" = set"; then
13833 echo $ECHO_N "(cached) $ECHO_C" >&6
13835 cat >conftest.$ac_ext <<_ACEOF
13836 #line 13836 "configure"
13837 #include "confdefs.h"
13838 /* System header to define __stub macros and hopefully few prototypes,
13839 which can conflict with char $ac_func (); below. */
13840 #include <assert.h>
13841 /* Override any gcc2 internal prototype to avoid an error. */
13845 /* We use char because int might match the return type of a gcc2
13846 builtin and then its argument prototype would still apply. */
13853 /* The GNU C library defines this for functions which it implements
13854 to always fail with ENOSYS. Some functions are actually named
13855 something starting with __ and the normal name is an alias. */
13856 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13859 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
13866 rm -f conftest.$ac_objext conftest$ac_exeext
13867 if { (eval echo "$as_me:13867: \"$ac_link\"") >&5
13868 (eval $ac_link) 2>&5
13870 echo "$as_me:13870: \$? = $ac_status" >&5
13871 (exit $ac_status); } &&
13872 { ac_try='test -s conftest$ac_exeext'
13873 { (eval echo "$as_me:13873: \"$ac_try\"") >&5
13874 (eval $ac_try) 2>&5
13876 echo "$as_me:13876: \$? = $ac_status" >&5
13877 (exit $ac_status); }; }; then
13878 eval "$as_ac_var=yes"
13880 echo "$as_me: failed program was:" >&5
13881 cat conftest.$ac_ext >&5
13882 eval "$as_ac_var=no"
13884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13886 echo "$as_me:13886: result: `eval echo '${'$as_ac_var'}'`" >&5
13887 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13888 if test `eval echo '${'$as_ac_var'}'` = yes; then
13889 cat >>confdefs.h <<EOF
13890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13898 echo "$as_me:13898: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
13899 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
13900 if test "${cf_cv_need_xopen_extension+set}" = set; then
13901 echo $ECHO_N "(cached) $ECHO_C" >&6
13904 cat >conftest.$ac_ext <<_ACEOF
13905 #line 13905 "configure"
13906 #include "confdefs.h"
13908 #include <stdlib.h>
13909 #include <${cf_cv_ncurses_header:-curses.h}>
13914 #if defined(NCURSES_VERSION_PATCH)
13915 #if (NCURSES_VERSION_PATCH < 20100501) && (NCURSES_VERSION_PATCH >= 20100403)
13919 long x = winnstr(stdscr, "", 0);
13921 getbegyx(stdscr, y1, x1)
13926 rm -f conftest.$ac_objext conftest$ac_exeext
13927 if { (eval echo "$as_me:13927: \"$ac_link\"") >&5
13928 (eval $ac_link) 2>&5
13930 echo "$as_me:13930: \$? = $ac_status" >&5
13931 (exit $ac_status); } &&
13932 { ac_try='test -s conftest$ac_exeext'
13933 { (eval echo "$as_me:13933: \"$ac_try\"") >&5
13934 (eval $ac_try) 2>&5
13936 echo "$as_me:13936: \$? = $ac_status" >&5
13937 (exit $ac_status); }; }; then
13938 cf_cv_need_xopen_extension=no
13940 echo "$as_me: failed program was:" >&5
13941 cat conftest.$ac_ext >&5
13942 cat >conftest.$ac_ext <<_ACEOF
13943 #line 13943 "configure"
13944 #include "confdefs.h"
13946 #define _XOPEN_SOURCE_EXTENDED
13947 #include <stdlib.h>
13948 #include <${cf_cv_ncurses_header:-curses.h}>
13953 #ifdef NCURSES_VERSION
13955 int check2 = curs_set((int)sizeof(check));
13957 long x = winnstr(stdscr, "", 0);
13959 getbegyx(stdscr, y1, x1)
13964 rm -f conftest.$ac_objext conftest$ac_exeext
13965 if { (eval echo "$as_me:13965: \"$ac_link\"") >&5
13966 (eval $ac_link) 2>&5
13968 echo "$as_me:13968: \$? = $ac_status" >&5
13969 (exit $ac_status); } &&
13970 { ac_try='test -s conftest$ac_exeext'
13971 { (eval echo "$as_me:13971: \"$ac_try\"") >&5
13972 (eval $ac_try) 2>&5
13974 echo "$as_me:13974: \$? = $ac_status" >&5
13975 (exit $ac_status); }; }; then
13976 cf_cv_need_xopen_extension=yes
13978 echo "$as_me: failed program was:" >&5
13979 cat conftest.$ac_ext >&5
13980 cf_cv_need_xopen_extension=unknown
13982 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13984 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13986 echo "$as_me:13986: result: $cf_cv_need_xopen_extension" >&5
13987 echo "${ECHO_T}$cf_cv_need_xopen_extension" >&6
13988 test $cf_cv_need_xopen_extension = yes && CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
13990 echo "$as_me:13990: checking for term.h" >&5
13991 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
13992 if test "${cf_cv_term_header+set}" = set; then
13993 echo $ECHO_N "(cached) $ECHO_C" >&6
13996 # If we found <ncurses/curses.h>, look for <ncurses/term.h>, but always look
13997 # for <term.h> if we do not find the variant.
13999 cf_header_list="term.h ncurses/term.h ncursesw/term.h"
14001 case ${cf_cv_ncurses_header:-curses.h} in
14003 cf_header_item=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`term.h
14004 cf_header_list="$cf_header_item $cf_header_list"
14008 for cf_header in $cf_header_list
14010 cat >conftest.$ac_ext <<_ACEOF
14011 #line 14011 "configure"
14012 #include "confdefs.h"
14014 #include <${cf_cv_ncurses_header:-curses.h}>
14015 #include <${cf_header}>
14024 rm -f conftest.$ac_objext
14025 if { (eval echo "$as_me:14025: \"$ac_compile\"") >&5
14026 (eval $ac_compile) 2>&5
14028 echo "$as_me:14028: \$? = $ac_status" >&5
14029 (exit $ac_status); } &&
14030 { ac_try='test -s conftest.$ac_objext'
14031 { (eval echo "$as_me:14031: \"$ac_try\"") >&5
14032 (eval $ac_try) 2>&5
14034 echo "$as_me:14034: \$? = $ac_status" >&5
14035 (exit $ac_status); }; }; then
14036 cf_cv_term_header=$cf_header
14039 echo "$as_me: failed program was:" >&5
14040 cat conftest.$ac_ext >&5
14041 cf_cv_term_header=no
14043 rm -f conftest.$ac_objext conftest.$ac_ext
14046 case $cf_cv_term_header in
14048 # If curses is ncurses, some packagers still mess it up by trying to make
14049 # us use GNU termcap. This handles the most common case.
14050 for cf_header in ncurses/term.h ncursesw/term.h
14052 cat >conftest.$ac_ext <<_ACEOF
14053 #line 14053 "configure"
14054 #include "confdefs.h"
14056 #include <${cf_cv_ncurses_header:-curses.h}>
14057 #ifdef NCURSES_VERSION
14058 #include <${cf_header}>
14070 rm -f conftest.$ac_objext
14071 if { (eval echo "$as_me:14071: \"$ac_compile\"") >&5
14072 (eval $ac_compile) 2>&5
14074 echo "$as_me:14074: \$? = $ac_status" >&5
14075 (exit $ac_status); } &&
14076 { ac_try='test -s conftest.$ac_objext'
14077 { (eval echo "$as_me:14077: \"$ac_try\"") >&5
14078 (eval $ac_try) 2>&5
14080 echo "$as_me:14080: \$? = $ac_status" >&5
14081 (exit $ac_status); }; }; then
14082 cf_cv_term_header=$cf_header
14085 echo "$as_me: failed program was:" >&5
14086 cat conftest.$ac_ext >&5
14087 cf_cv_term_header=no
14089 rm -f conftest.$ac_objext conftest.$ac_ext
14095 echo "$as_me:14095: result: $cf_cv_term_header" >&5
14096 echo "${ECHO_T}$cf_cv_term_header" >&6
14098 case $cf_cv_term_header in
14101 cat >>confdefs.h <<\EOF
14102 #define HAVE_TERM_H 1
14108 cat >>confdefs.h <<\EOF
14109 #define HAVE_NCURSES_TERM_H 1
14115 cat >>confdefs.h <<\EOF
14116 #define HAVE_NCURSESW_TERM_H 1
14122 echo "$as_me:14122: checking for unctrl.h" >&5
14123 echo $ECHO_N "checking for unctrl.h... $ECHO_C" >&6
14124 if test "${cf_cv_unctrl_header+set}" = set; then
14125 echo $ECHO_N "(cached) $ECHO_C" >&6
14128 # If we found <ncurses/curses.h>, look for <ncurses/unctrl.h>, but always look
14129 # for <unctrl.h> if we do not find the variant.
14131 cf_header_list="unctrl.h ncurses/unctrl.h ncursesw/unctrl.h"
14133 case ${cf_cv_ncurses_header:-curses.h} in
14135 cf_header_item=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`unctrl.h
14136 cf_header_list="$cf_header_item $cf_header_list"
14140 for cf_header in $cf_header_list
14142 cat >conftest.$ac_ext <<_ACEOF
14143 #line 14143 "configure"
14144 #include "confdefs.h"
14146 #include <${cf_cv_ncurses_header:-curses.h}>
14147 #include <${cf_header}>
14156 rm -f conftest.$ac_objext
14157 if { (eval echo "$as_me:14157: \"$ac_compile\"") >&5
14158 (eval $ac_compile) 2>&5
14160 echo "$as_me:14160: \$? = $ac_status" >&5
14161 (exit $ac_status); } &&
14162 { ac_try='test -s conftest.$ac_objext'
14163 { (eval echo "$as_me:14163: \"$ac_try\"") >&5
14164 (eval $ac_try) 2>&5
14166 echo "$as_me:14166: \$? = $ac_status" >&5
14167 (exit $ac_status); }; }; then
14168 cf_cv_unctrl_header=$cf_header
14171 echo "$as_me: failed program was:" >&5
14172 cat conftest.$ac_ext >&5
14173 cf_cv_unctrl_header=no
14175 rm -f conftest.$ac_objext conftest.$ac_ext
14179 echo "$as_me:14179: result: $cf_cv_unctrl_header" >&5
14180 echo "${ECHO_T}$cf_cv_unctrl_header" >&6
14182 case $cf_cv_unctrl_header in
14184 { echo "$as_me:14184: WARNING: unctrl.h header not found" >&5
14185 echo "$as_me: WARNING: unctrl.h header not found" >&2;}
14189 case $cf_cv_unctrl_header in
14192 cat >>confdefs.h <<\EOF
14193 #define HAVE_UNCTRL_H 1
14199 cat >>confdefs.h <<\EOF
14200 #define HAVE_NCURSES_UNCTRL_H 1
14204 (ncursesw/unctrl.h)
14206 cat >>confdefs.h <<\EOF
14207 #define HAVE_NCURSESW_UNCTRL_H 1
14214 assume_default_colors \
14240 use_default_colors \
14242 use_extended_names \
14256 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14258 echo "$as_me:14258: checking for ${cf_func}" >&5
14259 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
14261 echo "${as_me:-configure}:14261: testing ${cf_func} ..." 1>&5
14263 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
14264 echo $ECHO_N "(cached) $ECHO_C" >&6
14267 eval cf_result='$ac_cv_func_'$cf_func
14268 if test ".$cf_result" != ".no"; then
14269 cat >conftest.$ac_ext <<_ACEOF
14270 #line 14270 "configure"
14271 #include "confdefs.h"
14273 #ifdef HAVE_XCURSES
14274 #include <xcurses.h>
14275 char * XCursesProgramName = "test";
14277 #include <${cf_cv_ncurses_header:-curses.h}>
14278 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
14279 #include <ncursesw/term.h>
14280 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
14281 #include <ncurses/term.h>
14282 #elif defined(HAVE_TERM_H)
14292 long foo = (long)(&${cf_func});
14293 fprintf(stderr, "testing linkage of $cf_func:%p\n", foo);
14294 if (foo + 1234 > 5678)
14295 ${cf_cv_main_return:-return}(foo);
14302 rm -f conftest.$ac_objext conftest$ac_exeext
14303 if { (eval echo "$as_me:14303: \"$ac_link\"") >&5
14304 (eval $ac_link) 2>&5
14306 echo "$as_me:14306: \$? = $ac_status" >&5
14307 (exit $ac_status); } &&
14308 { ac_try='test -s conftest$ac_exeext'
14309 { (eval echo "$as_me:14309: \"$ac_try\"") >&5
14310 (eval $ac_try) 2>&5
14312 echo "$as_me:14312: \$? = $ac_status" >&5
14313 (exit $ac_status); }; }; then
14316 echo "$as_me: failed program was:" >&5
14317 cat conftest.$ac_ext >&5
14320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14322 eval 'cf_cv_func_'$cf_func'=$cf_result'
14326 # use the computed/retrieved cache-value:
14327 eval 'cf_result=$cf_cv_func_'$cf_func
14328 echo "$as_me:14328: result: $cf_result" >&5
14329 echo "${ECHO_T}$cf_result" >&6
14330 if test $cf_result != no; then
14331 cat >>confdefs.h <<EOF
14332 #define HAVE_${cf_tr_func} 1
14338 for cf_func in tputs
14341 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14343 echo "$as_me:14343: checking for ${cf_func}" >&5
14344 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
14346 echo "${as_me:-configure}:14346: testing ${cf_func} ..." 1>&5
14348 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
14349 echo $ECHO_N "(cached) $ECHO_C" >&6
14352 eval cf_result='$ac_cv_func_'$cf_func
14353 if test ".$cf_result" != ".no"; then
14354 cat >conftest.$ac_ext <<_ACEOF
14355 #line 14355 "configure"
14356 #include "confdefs.h"
14358 #ifdef HAVE_XCURSES
14359 #include <xcurses.h>
14360 char * XCursesProgramName = "test";
14362 #include <${cf_cv_ncurses_header:-curses.h}>
14363 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
14364 #include <ncursesw/term.h>
14365 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
14366 #include <ncurses/term.h>
14367 #elif defined(HAVE_TERM_H)
14377 long foo = (long)(&${cf_func});
14378 fprintf(stderr, "testing linkage of $cf_func:%p\n", foo);
14379 if (foo + 1234 > 5678)
14380 ${cf_cv_main_return:-return}(foo);
14387 rm -f conftest.$ac_objext conftest$ac_exeext
14388 if { (eval echo "$as_me:14388: \"$ac_link\"") >&5
14389 (eval $ac_link) 2>&5
14391 echo "$as_me:14391: \$? = $ac_status" >&5
14392 (exit $ac_status); } &&
14393 { ac_try='test -s conftest$ac_exeext'
14394 { (eval echo "$as_me:14394: \"$ac_try\"") >&5
14395 (eval $ac_try) 2>&5
14397 echo "$as_me:14397: \$? = $ac_status" >&5
14398 (exit $ac_status); }; }; then
14401 echo "$as_me: failed program was:" >&5
14402 cat conftest.$ac_ext >&5
14405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14407 eval 'cf_cv_func_'$cf_func'=$cf_result'
14411 # use the computed/retrieved cache-value:
14412 eval 'cf_result=$cf_cv_func_'$cf_func
14413 echo "$as_me:14413: result: $cf_result" >&5
14414 echo "${ECHO_T}$cf_result" >&6
14415 if test $cf_result != no; then
14416 cat >>confdefs.h <<EOF
14417 #define HAVE_${cf_tr_func} 1
14423 if test x$cf_cv_func_tputs = xyes
14426 for cf_arg in int char
14428 for cf_ret in int void
14430 if test $cf_ret = void
14432 cf_return="/* nothing */"
14434 cf_return="return value"
14436 cat >conftest.$ac_ext <<_ACEOF
14437 #line 14437 "configure"
14438 #include "confdefs.h"
14440 #include <${cf_cv_ncurses_header:-curses.h}>
14441 #include <$cf_cv_term_header>
14443 static $cf_ret outc($cf_arg value) { $cf_return; }
14449 tputs("hello", 0, outc);
14450 ${cf_cv_main_return:-return}(0);
14456 rm -f conftest.$ac_objext
14457 if { (eval echo "$as_me:14457: \"$ac_compile\"") >&5
14458 (eval $ac_compile) 2>&5
14460 echo "$as_me:14460: \$? = $ac_status" >&5
14461 (exit $ac_status); } &&
14462 { ac_try='test -s conftest.$ac_objext'
14463 { (eval echo "$as_me:14463: \"$ac_try\"") >&5
14464 (eval $ac_try) 2>&5
14466 echo "$as_me:14466: \$? = $ac_status" >&5
14467 (exit $ac_status); }; }; then
14469 test -n "$verbose" && echo " prototype $cf_ret func($cf_arg value)" 1>&6
14471 echo "${as_me:-configure}:14471: testing prototype $cf_ret func($cf_arg value) ..." 1>&5
14473 cat >>confdefs.h <<EOF
14474 #define TPUTS_ARG $cf_arg
14475 #define TPUTS_PROTO(func,value) $cf_ret func(TPUTS_ARG value)
14476 #define TPUTS_RETURN(value) $cf_return
14482 echo "$as_me: failed program was:" >&5
14483 cat conftest.$ac_ext >&5
14485 rm -f conftest.$ac_objext conftest.$ac_ext
14487 test $cf_done = yes && break
14491 echo "$as_me:14491: checking for ncurses extended functions" >&5
14492 echo $ECHO_N "checking for ncurses extended functions... $ECHO_C" >&6
14493 if test "${cf_cv_ncurses_ext_funcs+set}" = set; then
14494 echo $ECHO_N "(cached) $ECHO_C" >&6
14497 cat >conftest.$ac_ext <<_ACEOF
14498 #line 14498 "configure"
14499 #include "confdefs.h"
14501 #include <${cf_cv_ncurses_header:-curses.h}>
14506 int x = NCURSES_EXT_FUNCS
14512 rm -f conftest.$ac_objext
14513 if { (eval echo "$as_me:14513: \"$ac_compile\"") >&5
14514 (eval $ac_compile) 2>&5
14516 echo "$as_me:14516: \$? = $ac_status" >&5
14517 (exit $ac_status); } &&
14518 { ac_try='test -s conftest.$ac_objext'
14519 { (eval echo "$as_me:14519: \"$ac_try\"") >&5
14520 (eval $ac_try) 2>&5
14522 echo "$as_me:14522: \$? = $ac_status" >&5
14523 (exit $ac_status); }; }; then
14524 cf_cv_ncurses_ext_funcs=defined
14526 echo "$as_me: failed program was:" >&5
14527 cat conftest.$ac_ext >&5
14529 cat >conftest.$ac_ext <<_ACEOF
14530 #line 14530 "configure"
14531 #include "confdefs.h"
14533 #include <${cf_cv_ncurses_header:-curses.h}>
14538 (void) assume_default_colors (0, 0);
14539 (void) curses_version ();
14540 (void) define_key (0, 0);
14541 (void) is_term_resized (0, 0);
14542 (void) key_defined (0);
14543 (void) keybound (0, 0);
14544 (void) keyok (0, 0);
14545 (void) resize_term (0, 0);
14546 (void) resizeterm (0, 0);
14547 (void) use_default_colors ();
14548 (void) use_extended_names (0);
14549 (void) wresize (0, 0, 0);
14554 rm -f conftest.$ac_objext conftest$ac_exeext
14555 if { (eval echo "$as_me:14555: \"$ac_link\"") >&5
14556 (eval $ac_link) 2>&5
14558 echo "$as_me:14558: \$? = $ac_status" >&5
14559 (exit $ac_status); } &&
14560 { ac_try='test -s conftest$ac_exeext'
14561 { (eval echo "$as_me:14561: \"$ac_try\"") >&5
14562 (eval $ac_try) 2>&5
14564 echo "$as_me:14564: \$? = $ac_status" >&5
14565 (exit $ac_status); }; }; then
14566 cf_cv_ncurses_ext_funcs=yes
14568 echo "$as_me: failed program was:" >&5
14569 cat conftest.$ac_ext >&5
14570 cf_cv_ncurses_ext_funcs=no
14572 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14575 rm -f conftest.$ac_objext conftest.$ac_ext
14578 echo "$as_me:14578: result: $cf_cv_ncurses_ext_funcs" >&5
14579 echo "${ECHO_T}$cf_cv_ncurses_ext_funcs" >&6
14580 test "$cf_cv_ncurses_ext_funcs" = yes &&
14581 cat >>confdefs.h <<\EOF
14582 #define NCURSES_EXT_FUNCS 1
14585 if test "$cf_enable_widec" = yes
14587 # workaround for systems with ncurses before 20111029, due to change of
14588 # feature test macro from _XPG5 to _XOPEN_SOURCE
14589 if test -n "$cf_cv_ncurses_version" && test "x$cf_cv_ncurses_version" != xno
14592 echo "$as_me:14592: checking if _XPG5 should be defined to enable wide-characters" >&5
14593 echo $ECHO_N "checking if _XPG5 should be defined to enable wide-characters... $ECHO_C" >&6
14595 cat >conftest.$ac_ext <<_ACEOF
14596 #line 14596 "configure"
14597 #include "confdefs.h"
14599 #include <${cf_cv_ncurses_header:-curses.h}>
14608 rm -f conftest.$ac_objext
14609 if { (eval echo "$as_me:14609: \"$ac_compile\"") >&5
14610 (eval $ac_compile) 2>&5
14612 echo "$as_me:14612: \$? = $ac_status" >&5
14613 (exit $ac_status); } &&
14614 { ac_try='test -s conftest.$ac_objext'
14615 { (eval echo "$as_me:14615: \"$ac_try\"") >&5
14616 (eval $ac_try) 2>&5
14618 echo "$as_me:14618: \$? = $ac_status" >&5
14619 (exit $ac_status); }; }; then
14622 echo "$as_me: failed program was:" >&5
14623 cat conftest.$ac_ext >&5
14624 cf_save_cppflags="$CPPFLAGS"
14625 CPPFLAGS="$CPPFLAGS -D_XPG5"
14626 cat >conftest.$ac_ext <<_ACEOF
14627 #line 14627 "configure"
14628 #include "confdefs.h"
14630 #include <${cf_cv_ncurses_header:-curses.h}>
14639 rm -f conftest.$ac_objext
14640 if { (eval echo "$as_me:14640: \"$ac_compile\"") >&5
14641 (eval $ac_compile) 2>&5
14643 echo "$as_me:14643: \$? = $ac_status" >&5
14644 (exit $ac_status); } &&
14645 { ac_try='test -s conftest.$ac_objext'
14646 { (eval echo "$as_me:14646: \"$ac_try\"") >&5
14647 (eval $ac_try) 2>&5
14649 echo "$as_me:14649: \$? = $ac_status" >&5
14650 (exit $ac_status); }; }; then
14653 echo "$as_me: failed program was:" >&5
14654 cat conftest.$ac_ext >&5
14656 rm -f conftest.$ac_objext conftest.$ac_ext
14657 CPPFLAGS="$cf_save_cppflags"
14659 rm -f conftest.$ac_objext conftest.$ac_ext
14660 echo "$as_me:14660: result: $cf_define_xpg5" >&5
14661 echo "${ECHO_T}$cf_define_xpg5" >&6
14663 if test "$cf_define_xpg5" = yes
14665 CPPFLAGS="$CPPFLAGS -D_XPG5"
14669 echo "$as_me:14669: checking for wide-character functions" >&5
14670 echo $ECHO_N "checking for wide-character functions... $ECHO_C" >&6
14671 if test "${cf_cv_widechar_funcs+set}" = set; then
14672 echo $ECHO_N "(cached) $ECHO_C" >&6
14675 cat >conftest.$ac_ext <<_ACEOF
14676 #line 14676 "configure"
14677 #include "confdefs.h"
14679 #include <${cf_cv_ncurses_header:-curses.h}>
14684 static wchar_t src_wchar[2];
14685 static cchar_t dst_cchar;
14686 setcchar(&dst_cchar, src_wchar, A_NORMAL, 0, (void *) 0);
14692 rm -f conftest.$ac_objext conftest$ac_exeext
14693 if { (eval echo "$as_me:14693: \"$ac_link\"") >&5
14694 (eval $ac_link) 2>&5
14696 echo "$as_me:14696: \$? = $ac_status" >&5
14697 (exit $ac_status); } &&
14698 { ac_try='test -s conftest$ac_exeext'
14699 { (eval echo "$as_me:14699: \"$ac_try\"") >&5
14700 (eval $ac_try) 2>&5
14702 echo "$as_me:14702: \$? = $ac_status" >&5
14703 (exit $ac_status); }; }; then
14704 cf_cv_widechar_funcs=yes
14706 echo "$as_me: failed program was:" >&5
14707 cat conftest.$ac_ext >&5
14708 cf_cv_widechar_funcs=no
14710 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14713 echo "$as_me:14713: result: $cf_cv_widechar_funcs" >&5
14714 echo "${ECHO_T}$cf_cv_widechar_funcs" >&6
14715 if test "$cf_cv_widechar_funcs" != no ; then
14717 cat >>confdefs.h <<\EOF
14718 #define USE_WIDEC_SUPPORT 1
14722 cat >>confdefs.h <<\EOF
14723 #define USE_WIDEC_SUPPORT 0
14728 cat >>confdefs.h <<\EOF
14729 #define USE_WIDEC_SUPPORT 0
14734 echo "$as_me:14734: checking if sys/time.h works with sys/select.h" >&5
14735 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
14736 if test "${cf_cv_sys_time_select+set}" = set; then
14737 echo $ECHO_N "(cached) $ECHO_C" >&6
14740 cat >conftest.$ac_ext <<_ACEOF
14741 #line 14741 "configure"
14742 #include "confdefs.h"
14744 #include <sys/types.h>
14745 #ifdef HAVE_SYS_TIME_H
14746 #include <sys/time.h>
14748 #ifdef HAVE_SYS_SELECT_H
14749 #include <sys/select.h>
14760 rm -f conftest.$ac_objext
14761 if { (eval echo "$as_me:14761: \"$ac_compile\"") >&5
14762 (eval $ac_compile) 2>&5
14764 echo "$as_me:14764: \$? = $ac_status" >&5
14765 (exit $ac_status); } &&
14766 { ac_try='test -s conftest.$ac_objext'
14767 { (eval echo "$as_me:14767: \"$ac_try\"") >&5
14768 (eval $ac_try) 2>&5
14770 echo "$as_me:14770: \$? = $ac_status" >&5
14771 (exit $ac_status); }; }; then
14772 cf_cv_sys_time_select=yes
14774 echo "$as_me: failed program was:" >&5
14775 cat conftest.$ac_ext >&5
14776 cf_cv_sys_time_select=no
14778 rm -f conftest.$ac_objext conftest.$ac_ext
14782 echo "$as_me:14782: result: $cf_cv_sys_time_select" >&5
14783 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
14784 test "$cf_cv_sys_time_select" = yes &&
14785 cat >>confdefs.h <<\EOF
14786 #define HAVE_SYS_TIME_SELECT 1
14789 echo "$as_me:14789: checking for function curses_version" >&5
14790 echo $ECHO_N "checking for function curses_version... $ECHO_C" >&6
14791 if test "${cf_cv_func_curses_version+set}" = set; then
14792 echo $ECHO_N "(cached) $ECHO_C" >&6
14795 if test "$cross_compiling" = yes; then
14796 cf_cv_func_curses_version=unknown
14798 cat >conftest.$ac_ext <<_ACEOF
14799 #line 14799 "configure"
14800 #include "confdefs.h"
14802 #include <${cf_cv_ncurses_header:-curses.h}>
14806 sprintf(temp, "%s\n", curses_version());
14807 ${cf_cv_main_return:-return}(0);
14811 rm -f conftest$ac_exeext
14812 if { (eval echo "$as_me:14812: \"$ac_link\"") >&5
14813 (eval $ac_link) 2>&5
14815 echo "$as_me:14815: \$? = $ac_status" >&5
14816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14817 { (eval echo "$as_me:14817: \"$ac_try\"") >&5
14818 (eval $ac_try) 2>&5
14820 echo "$as_me:14820: \$? = $ac_status" >&5
14821 (exit $ac_status); }; }; then
14822 cf_cv_func_curses_version=yes
14825 echo "$as_me: program exited with status $ac_status" >&5
14826 echo "$as_me: failed program was:" >&5
14827 cat conftest.$ac_ext >&5
14828 cf_cv_func_curses_version=no
14831 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14835 echo "$as_me:14835: result: $cf_cv_func_curses_version" >&5
14836 echo "${ECHO_T}$cf_cv_func_curses_version" >&6
14837 test "$cf_cv_func_curses_version" = yes &&
14838 cat >>confdefs.h <<\EOF
14839 #define HAVE_CURSES_VERSION 1
14842 echo "$as_me:14842: checking for alternate character set array" >&5
14843 echo $ECHO_N "checking for alternate character set array... $ECHO_C" >&6
14844 if test "${cf_cv_curses_acs_map+set}" = set; then
14845 echo $ECHO_N "(cached) $ECHO_C" >&6
14848 cf_cv_curses_acs_map=unknown
14849 for name in acs_map _acs_map __acs_map ${NCURSES_WRAP_PREFIX}acs_map
14851 cat >conftest.$ac_ext <<_ACEOF
14852 #line 14852 "configure"
14853 #include "confdefs.h"
14855 #include <${cf_cv_ncurses_header:-curses.h}>
14861 $name['k'] = ACS_PLUS
14867 rm -f conftest.$ac_objext conftest$ac_exeext
14868 if { (eval echo "$as_me:14868: \"$ac_link\"") >&5
14869 (eval $ac_link) 2>&5
14871 echo "$as_me:14871: \$? = $ac_status" >&5
14872 (exit $ac_status); } &&
14873 { ac_try='test -s conftest$ac_exeext'
14874 { (eval echo "$as_me:14874: \"$ac_try\"") >&5
14875 (eval $ac_try) 2>&5
14877 echo "$as_me:14877: \$? = $ac_status" >&5
14878 (exit $ac_status); }; }; then
14879 cf_cv_curses_acs_map=$name; break
14881 echo "$as_me: failed program was:" >&5
14882 cat conftest.$ac_ext >&5
14884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14888 echo "$as_me:14888: result: $cf_cv_curses_acs_map" >&5
14889 echo "${ECHO_T}$cf_cv_curses_acs_map" >&6
14891 test "$cf_cv_curses_acs_map" != unknown &&
14892 cat >>confdefs.h <<EOF
14893 #define CURSES_ACS_ARRAY $cf_cv_curses_acs_map
14896 if test "$cf_enable_widec" = yes; then
14898 echo "$as_me:14898: checking for wide alternate character set array" >&5
14899 echo $ECHO_N "checking for wide alternate character set array... $ECHO_C" >&6
14900 if test "${cf_cv_curses_wacs_map+set}" = set; then
14901 echo $ECHO_N "(cached) $ECHO_C" >&6
14904 cf_cv_curses_wacs_map=unknown
14905 for name in wacs_map _wacs_map __wacs_map _nc_wacs _wacs_char
14907 cat >conftest.$ac_ext <<_ACEOF
14908 #line 14908 "configure"
14909 #include "confdefs.h"
14911 #ifndef _XOPEN_SOURCE_EXTENDED
14912 #define _XOPEN_SOURCE_EXTENDED
14914 #include <${cf_cv_ncurses_header:-curses.h}>
14918 void *foo = &($name['k'])
14923 rm -f conftest.$ac_objext conftest$ac_exeext
14924 if { (eval echo "$as_me:14924: \"$ac_link\"") >&5
14925 (eval $ac_link) 2>&5
14927 echo "$as_me:14927: \$? = $ac_status" >&5
14928 (exit $ac_status); } &&
14929 { ac_try='test -s conftest$ac_exeext'
14930 { (eval echo "$as_me:14930: \"$ac_try\"") >&5
14931 (eval $ac_try) 2>&5
14933 echo "$as_me:14933: \$? = $ac_status" >&5
14934 (exit $ac_status); }; }; then
14935 cf_cv_curses_wacs_map=$name
14938 echo "$as_me: failed program was:" >&5
14939 cat conftest.$ac_ext >&5
14941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14944 echo "$as_me:14944: result: $cf_cv_curses_wacs_map" >&5
14945 echo "${ECHO_T}$cf_cv_curses_wacs_map" >&6
14947 test "$cf_cv_curses_wacs_map" != unknown &&
14948 cat >>confdefs.h <<EOF
14949 #define CURSES_WACS_ARRAY $cf_cv_curses_wacs_map
14952 echo "$as_me:14952: checking for wide alternate character constants" >&5
14953 echo $ECHO_N "checking for wide alternate character constants... $ECHO_C" >&6
14954 if test "${cf_cv_curses_wacs_symbols+set}" = set; then
14955 echo $ECHO_N "(cached) $ECHO_C" >&6
14958 cf_cv_curses_wacs_symbols=no
14959 if test "$cf_cv_curses_wacs_map" != unknown
14961 cat >conftest.$ac_ext <<_ACEOF
14962 #line 14962 "configure"
14963 #include "confdefs.h"
14965 #ifndef _XOPEN_SOURCE_EXTENDED
14966 #define _XOPEN_SOURCE_EXTENDED
14968 #include <${cf_cv_ncurses_header:-curses.h}>
14972 cchar_t *foo = WACS_PLUS;
14973 $cf_cv_curses_wacs_map['k'] = *WACS_PLUS
14978 rm -f conftest.$ac_objext conftest$ac_exeext
14979 if { (eval echo "$as_me:14979: \"$ac_link\"") >&5
14980 (eval $ac_link) 2>&5
14982 echo "$as_me:14982: \$? = $ac_status" >&5
14983 (exit $ac_status); } &&
14984 { ac_try='test -s conftest$ac_exeext'
14985 { (eval echo "$as_me:14985: \"$ac_try\"") >&5
14986 (eval $ac_try) 2>&5
14988 echo "$as_me:14988: \$? = $ac_status" >&5
14989 (exit $ac_status); }; }; then
14990 cf_cv_curses_wacs_symbols=yes
14992 echo "$as_me: failed program was:" >&5
14993 cat conftest.$ac_ext >&5
14995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14997 cat >conftest.$ac_ext <<_ACEOF
14998 #line 14998 "configure"
14999 #include "confdefs.h"
15001 #ifndef _XOPEN_SOURCE_EXTENDED
15002 #define _XOPEN_SOURCE_EXTENDED
15004 #include <${cf_cv_ncurses_header:-curses.h}>
15008 cchar_t *foo = WACS_PLUS
15013 rm -f conftest.$ac_objext conftest$ac_exeext
15014 if { (eval echo "$as_me:15014: \"$ac_link\"") >&5
15015 (eval $ac_link) 2>&5
15017 echo "$as_me:15017: \$? = $ac_status" >&5
15018 (exit $ac_status); } &&
15019 { ac_try='test -s conftest$ac_exeext'
15020 { (eval echo "$as_me:15020: \"$ac_try\"") >&5
15021 (eval $ac_try) 2>&5
15023 echo "$as_me:15023: \$? = $ac_status" >&5
15024 (exit $ac_status); }; }; then
15025 cf_cv_curses_wacs_symbols=yes
15027 echo "$as_me: failed program was:" >&5
15028 cat conftest.$ac_ext >&5
15030 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15034 echo "$as_me:15034: result: $cf_cv_curses_wacs_symbols" >&5
15035 echo "${ECHO_T}$cf_cv_curses_wacs_symbols" >&6
15037 test "$cf_cv_curses_wacs_symbols" != no &&
15038 cat >>confdefs.h <<\EOF
15039 #define CURSES_WACS_SYMBOLS 1
15044 echo "$as_me:15044: checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}" >&5
15045 echo $ECHO_N "checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
15046 cat >conftest.$ac_ext <<_ACEOF
15047 #line 15047 "configure"
15048 #include "confdefs.h"
15050 #ifndef _XOPEN_SOURCE_EXTENDED
15051 #define _XOPEN_SOURCE_EXTENDED
15053 #include <${cf_cv_ncurses_header:-curses.h}>
15064 rm -f conftest.$ac_objext
15065 if { (eval echo "$as_me:15065: \"$ac_compile\"") >&5
15066 (eval $ac_compile) 2>&5
15068 echo "$as_me:15068: \$? = $ac_status" >&5
15069 (exit $ac_status); } &&
15070 { ac_try='test -s conftest.$ac_objext'
15071 { (eval echo "$as_me:15071: \"$ac_try\"") >&5
15072 (eval $ac_try) 2>&5
15074 echo "$as_me:15074: \$? = $ac_status" >&5
15075 (exit $ac_status); }; }; then
15078 echo "$as_me: failed program was:" >&5
15079 cat conftest.$ac_ext >&5
15082 rm -f conftest.$ac_objext conftest.$ac_ext
15083 echo "$as_me:15083: result: $cf_result" >&5
15084 echo "${ECHO_T}$cf_result" >&6
15085 if test $cf_result = yes ; then
15087 cf_result=`echo "have_type_attr_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15089 cat >>confdefs.h <<EOF
15090 #define $cf_result 1
15095 cat >>confdefs.h <<EOF
15096 #define attr_t long
15101 if test "$cf_enable_widec" = yes; then
15103 # This is needed on Tru64 5.0 to declare mbstate_t
15104 echo "$as_me:15104: checking if we must include wchar.h to declare mbstate_t" >&5
15105 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
15106 if test "${cf_cv_mbstate_t+set}" = set; then
15107 echo $ECHO_N "(cached) $ECHO_C" >&6
15110 cat >conftest.$ac_ext <<_ACEOF
15111 #line 15111 "configure"
15112 #include "confdefs.h"
15114 #include <stdlib.h>
15115 #include <stdarg.h>
15117 #ifdef HAVE_LIBUTF8_H
15118 #include <libutf8.h>
15128 rm -f conftest.$ac_objext
15129 if { (eval echo "$as_me:15129: \"$ac_compile\"") >&5
15130 (eval $ac_compile) 2>&5
15132 echo "$as_me:15132: \$? = $ac_status" >&5
15133 (exit $ac_status); } &&
15134 { ac_try='test -s conftest.$ac_objext'
15135 { (eval echo "$as_me:15135: \"$ac_try\"") >&5
15136 (eval $ac_try) 2>&5
15138 echo "$as_me:15138: \$? = $ac_status" >&5
15139 (exit $ac_status); }; }; then
15142 echo "$as_me: failed program was:" >&5
15143 cat conftest.$ac_ext >&5
15144 cat >conftest.$ac_ext <<_ACEOF
15145 #line 15145 "configure"
15146 #include "confdefs.h"
15148 #include <stdlib.h>
15149 #include <stdarg.h>
15152 #ifdef HAVE_LIBUTF8_H
15153 #include <libutf8.h>
15163 rm -f conftest.$ac_objext
15164 if { (eval echo "$as_me:15164: \"$ac_compile\"") >&5
15165 (eval $ac_compile) 2>&5
15167 echo "$as_me:15167: \$? = $ac_status" >&5
15168 (exit $ac_status); } &&
15169 { ac_try='test -s conftest.$ac_objext'
15170 { (eval echo "$as_me:15170: \"$ac_try\"") >&5
15171 (eval $ac_try) 2>&5
15173 echo "$as_me:15173: \$? = $ac_status" >&5
15174 (exit $ac_status); }; }; then
15175 cf_cv_mbstate_t=yes
15177 echo "$as_me: failed program was:" >&5
15178 cat conftest.$ac_ext >&5
15179 cf_cv_mbstate_t=unknown
15181 rm -f conftest.$ac_objext conftest.$ac_ext
15183 rm -f conftest.$ac_objext conftest.$ac_ext
15185 echo "$as_me:15185: result: $cf_cv_mbstate_t" >&5
15186 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
15188 if test "$cf_cv_mbstate_t" = yes ; then
15190 cat >>confdefs.h <<\EOF
15191 #define NEED_WCHAR_H 1
15197 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
15198 if test "$cf_cv_mbstate_t" = unknown ; then
15199 NCURSES_MBSTATE_T=1
15202 # if we find mbstate_t in either place, use substitution to provide a fallback.
15203 if test "$cf_cv_mbstate_t" != unknown ; then
15204 NCURSES_OK_MBSTATE_T=1
15207 # This is needed on Tru64 5.0 to declare wchar_t
15208 echo "$as_me:15208: checking if we must include wchar.h to declare wchar_t" >&5
15209 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
15210 if test "${cf_cv_wchar_t+set}" = set; then
15211 echo $ECHO_N "(cached) $ECHO_C" >&6
15214 cat >conftest.$ac_ext <<_ACEOF
15215 #line 15215 "configure"
15216 #include "confdefs.h"
15218 #include <stdlib.h>
15219 #include <stdarg.h>
15221 #ifdef HAVE_LIBUTF8_H
15222 #include <libutf8.h>
15232 rm -f conftest.$ac_objext
15233 if { (eval echo "$as_me:15233: \"$ac_compile\"") >&5
15234 (eval $ac_compile) 2>&5
15236 echo "$as_me:15236: \$? = $ac_status" >&5
15237 (exit $ac_status); } &&
15238 { ac_try='test -s conftest.$ac_objext'
15239 { (eval echo "$as_me:15239: \"$ac_try\"") >&5
15240 (eval $ac_try) 2>&5
15242 echo "$as_me:15242: \$? = $ac_status" >&5
15243 (exit $ac_status); }; }; then
15246 echo "$as_me: failed program was:" >&5
15247 cat conftest.$ac_ext >&5
15248 cat >conftest.$ac_ext <<_ACEOF
15249 #line 15249 "configure"
15250 #include "confdefs.h"
15252 #include <stdlib.h>
15253 #include <stdarg.h>
15256 #ifdef HAVE_LIBUTF8_H
15257 #include <libutf8.h>
15267 rm -f conftest.$ac_objext
15268 if { (eval echo "$as_me:15268: \"$ac_compile\"") >&5
15269 (eval $ac_compile) 2>&5
15271 echo "$as_me:15271: \$? = $ac_status" >&5
15272 (exit $ac_status); } &&
15273 { ac_try='test -s conftest.$ac_objext'
15274 { (eval echo "$as_me:15274: \"$ac_try\"") >&5
15275 (eval $ac_try) 2>&5
15277 echo "$as_me:15277: \$? = $ac_status" >&5
15278 (exit $ac_status); }; }; then
15281 echo "$as_me: failed program was:" >&5
15282 cat conftest.$ac_ext >&5
15283 cf_cv_wchar_t=unknown
15285 rm -f conftest.$ac_objext conftest.$ac_ext
15287 rm -f conftest.$ac_objext conftest.$ac_ext
15289 echo "$as_me:15289: result: $cf_cv_wchar_t" >&5
15290 echo "${ECHO_T}$cf_cv_wchar_t" >&6
15292 if test "$cf_cv_wchar_t" = yes ; then
15294 cat >>confdefs.h <<\EOF
15295 #define NEED_WCHAR_H 1
15301 # if we do not find wchar_t in either place, use substitution to provide a fallback.
15302 if test "$cf_cv_wchar_t" = unknown ; then
15306 # if we find wchar_t in either place, use substitution to provide a fallback.
15307 if test "$cf_cv_wchar_t" != unknown ; then
15308 NCURSES_OK_WCHAR_T=1
15311 # This is needed on Tru64 5.0 to declare wint_t
15312 echo "$as_me:15312: checking if we must include wchar.h to declare wint_t" >&5
15313 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
15314 if test "${cf_cv_wint_t+set}" = set; then
15315 echo $ECHO_N "(cached) $ECHO_C" >&6
15318 cat >conftest.$ac_ext <<_ACEOF
15319 #line 15319 "configure"
15320 #include "confdefs.h"
15322 #include <stdlib.h>
15323 #include <stdarg.h>
15325 #ifdef HAVE_LIBUTF8_H
15326 #include <libutf8.h>
15336 rm -f conftest.$ac_objext
15337 if { (eval echo "$as_me:15337: \"$ac_compile\"") >&5
15338 (eval $ac_compile) 2>&5
15340 echo "$as_me:15340: \$? = $ac_status" >&5
15341 (exit $ac_status); } &&
15342 { ac_try='test -s conftest.$ac_objext'
15343 { (eval echo "$as_me:15343: \"$ac_try\"") >&5
15344 (eval $ac_try) 2>&5
15346 echo "$as_me:15346: \$? = $ac_status" >&5
15347 (exit $ac_status); }; }; then
15350 echo "$as_me: failed program was:" >&5
15351 cat conftest.$ac_ext >&5
15352 cat >conftest.$ac_ext <<_ACEOF
15353 #line 15353 "configure"
15354 #include "confdefs.h"
15356 #include <stdlib.h>
15357 #include <stdarg.h>
15360 #ifdef HAVE_LIBUTF8_H
15361 #include <libutf8.h>
15371 rm -f conftest.$ac_objext
15372 if { (eval echo "$as_me:15372: \"$ac_compile\"") >&5
15373 (eval $ac_compile) 2>&5
15375 echo "$as_me:15375: \$? = $ac_status" >&5
15376 (exit $ac_status); } &&
15377 { ac_try='test -s conftest.$ac_objext'
15378 { (eval echo "$as_me:15378: \"$ac_try\"") >&5
15379 (eval $ac_try) 2>&5
15381 echo "$as_me:15381: \$? = $ac_status" >&5
15382 (exit $ac_status); }; }; then
15385 echo "$as_me: failed program was:" >&5
15386 cat conftest.$ac_ext >&5
15387 cf_cv_wint_t=unknown
15389 rm -f conftest.$ac_objext conftest.$ac_ext
15391 rm -f conftest.$ac_objext conftest.$ac_ext
15393 echo "$as_me:15393: result: $cf_cv_wint_t" >&5
15394 echo "${ECHO_T}$cf_cv_wint_t" >&6
15396 if test "$cf_cv_wint_t" = yes ; then
15398 cat >>confdefs.h <<\EOF
15399 #define NEED_WCHAR_H 1
15405 # if we do not find wint_t in either place, use substitution to provide a fallback.
15406 if test "$cf_cv_wint_t" = unknown ; then
15410 # if we find wint_t in either place, use substitution to provide a fallback.
15411 if test "$cf_cv_wint_t" != unknown ; then
15412 NCURSES_OK_WINT_T=1
15415 if test "$NCURSES_OK_MBSTATE_T" = 0 ; then
15417 echo "$as_me:15417: checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}" >&5
15418 echo $ECHO_N "checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
15419 cat >conftest.$ac_ext <<_ACEOF
15420 #line 15420 "configure"
15421 #include "confdefs.h"
15423 #ifndef _XOPEN_SOURCE_EXTENDED
15424 #define _XOPEN_SOURCE_EXTENDED
15426 #include <${cf_cv_ncurses_header:-curses.h}>
15437 rm -f conftest.$ac_objext
15438 if { (eval echo "$as_me:15438: \"$ac_compile\"") >&5
15439 (eval $ac_compile) 2>&5
15441 echo "$as_me:15441: \$? = $ac_status" >&5
15442 (exit $ac_status); } &&
15443 { ac_try='test -s conftest.$ac_objext'
15444 { (eval echo "$as_me:15444: \"$ac_try\"") >&5
15445 (eval $ac_try) 2>&5
15447 echo "$as_me:15447: \$? = $ac_status" >&5
15448 (exit $ac_status); }; }; then
15451 echo "$as_me: failed program was:" >&5
15452 cat conftest.$ac_ext >&5
15455 rm -f conftest.$ac_objext conftest.$ac_ext
15456 echo "$as_me:15456: result: $cf_result" >&5
15457 echo "${ECHO_T}$cf_result" >&6
15458 if test $cf_result = yes ; then
15460 cf_result=`echo "have_type_mbstate_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15462 cat >>confdefs.h <<EOF
15463 #define $cf_result 1
15468 cat >>confdefs.h <<EOF
15469 #define mbstate_t long
15476 if test "$NCURSES_OK_WCHAR_T" = 0 ; then
15478 echo "$as_me:15478: checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}" >&5
15479 echo $ECHO_N "checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
15480 cat >conftest.$ac_ext <<_ACEOF
15481 #line 15481 "configure"
15482 #include "confdefs.h"
15484 #ifndef _XOPEN_SOURCE_EXTENDED
15485 #define _XOPEN_SOURCE_EXTENDED
15487 #include <${cf_cv_ncurses_header:-curses.h}>
15498 rm -f conftest.$ac_objext
15499 if { (eval echo "$as_me:15499: \"$ac_compile\"") >&5
15500 (eval $ac_compile) 2>&5
15502 echo "$as_me:15502: \$? = $ac_status" >&5
15503 (exit $ac_status); } &&
15504 { ac_try='test -s conftest.$ac_objext'
15505 { (eval echo "$as_me:15505: \"$ac_try\"") >&5
15506 (eval $ac_try) 2>&5
15508 echo "$as_me:15508: \$? = $ac_status" >&5
15509 (exit $ac_status); }; }; then
15512 echo "$as_me: failed program was:" >&5
15513 cat conftest.$ac_ext >&5
15516 rm -f conftest.$ac_objext conftest.$ac_ext
15517 echo "$as_me:15517: result: $cf_result" >&5
15518 echo "${ECHO_T}$cf_result" >&6
15519 if test $cf_result = yes ; then
15521 cf_result=`echo "have_type_wchar_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15523 cat >>confdefs.h <<EOF
15524 #define $cf_result 1
15529 cat >>confdefs.h <<EOF
15530 #define wchar_t long
15537 if test "$NCURSES_OK_WINT_T" = 0 ; then
15539 echo "$as_me:15539: checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}" >&5
15540 echo $ECHO_N "checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
15541 cat >conftest.$ac_ext <<_ACEOF
15542 #line 15542 "configure"
15543 #include "confdefs.h"
15545 #ifndef _XOPEN_SOURCE_EXTENDED
15546 #define _XOPEN_SOURCE_EXTENDED
15548 #include <${cf_cv_ncurses_header:-curses.h}>
15559 rm -f conftest.$ac_objext
15560 if { (eval echo "$as_me:15560: \"$ac_compile\"") >&5
15561 (eval $ac_compile) 2>&5
15563 echo "$as_me:15563: \$? = $ac_status" >&5
15564 (exit $ac_status); } &&
15565 { ac_try='test -s conftest.$ac_objext'
15566 { (eval echo "$as_me:15566: \"$ac_try\"") >&5
15567 (eval $ac_try) 2>&5
15569 echo "$as_me:15569: \$? = $ac_status" >&5
15570 (exit $ac_status); }; }; then
15573 echo "$as_me: failed program was:" >&5
15574 cat conftest.$ac_ext >&5
15577 rm -f conftest.$ac_objext conftest.$ac_ext
15578 echo "$as_me:15578: result: $cf_result" >&5
15579 echo "${ECHO_T}$cf_result" >&6
15580 if test $cf_result = yes ; then
15582 cf_result=`echo "have_type_wint_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15584 cat >>confdefs.h <<EOF
15585 #define $cf_result 1
15590 cat >>confdefs.h <<EOF
15591 #define wint_t long
15599 echo "$as_me:15599: checking for data boolnames declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
15600 echo $ECHO_N "checking for data boolnames declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
15602 cat >conftest.$ac_ext <<_ACEOF
15603 #line 15603 "configure"
15604 #include "confdefs.h"
15606 #ifdef HAVE_XCURSES
15607 #include <xcurses.h>
15608 char * XCursesProgramName = "test";
15610 #include <${cf_cv_ncurses_header:-curses.h}>
15611 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
15612 #include <ncursesw/term.h>
15613 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
15614 #include <ncurses/term.h>
15615 #elif defined(HAVE_TERM_H)
15624 void *foo = &(boolnames)
15630 rm -f conftest.$ac_objext
15631 if { (eval echo "$as_me:15631: \"$ac_compile\"") >&5
15632 (eval $ac_compile) 2>&5
15634 echo "$as_me:15634: \$? = $ac_status" >&5
15635 (exit $ac_status); } &&
15636 { ac_try='test -s conftest.$ac_objext'
15637 { (eval echo "$as_me:15637: \"$ac_try\"") >&5
15638 (eval $ac_try) 2>&5
15640 echo "$as_me:15640: \$? = $ac_status" >&5
15641 (exit $ac_status); }; }; then
15644 echo "$as_me: failed program was:" >&5
15645 cat conftest.$ac_ext >&5
15648 rm -f conftest.$ac_objext conftest.$ac_ext
15649 echo "$as_me:15649: result: $cf_result" >&5
15650 echo "${ECHO_T}$cf_result" >&6
15652 if test $cf_result = yes ; then
15654 cf_result=`echo "have_curses_data_boolnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15656 cat >>confdefs.h <<EOF
15657 #define $cf_result 1
15661 echo "$as_me:15661: checking for data boolnames in library" >&5
15662 echo $ECHO_N "checking for data boolnames in library... $ECHO_C" >&6
15663 # BSD linkers insist on making weak linkage, but resolve at runtime.
15664 if test "$cross_compiling" = yes; then
15667 cat >conftest.$ac_ext <<_ACEOF
15668 #line 15668 "configure"
15669 #include "confdefs.h"
15671 #ifdef HAVE_XCURSES
15672 #include <xcurses.h>
15673 char * XCursesProgramName = "test";
15675 #include <${cf_cv_ncurses_header:-curses.h}>
15676 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
15677 #include <ncursesw/term.h>
15678 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
15679 #include <ncurses/term.h>
15680 #elif defined(HAVE_TERM_H)
15685 extern char boolnames;
15691 void *foo = &(boolnames);
15692 fprintf(stderr, "testing linkage of boolnames:%p\n", foo);
15693 ${cf_cv_main_return:-return}(foo == 0);
15700 rm -f conftest.$ac_objext conftest$ac_exeext
15701 if { (eval echo "$as_me:15701: \"$ac_link\"") >&5
15702 (eval $ac_link) 2>&5
15704 echo "$as_me:15704: \$? = $ac_status" >&5
15705 (exit $ac_status); } &&
15706 { ac_try='test -s conftest$ac_exeext'
15707 { (eval echo "$as_me:15707: \"$ac_try\"") >&5
15708 (eval $ac_try) 2>&5
15710 echo "$as_me:15710: \$? = $ac_status" >&5
15711 (exit $ac_status); }; }; then
15714 echo "$as_me: failed program was:" >&5
15715 cat conftest.$ac_ext >&5
15718 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15721 cat >conftest.$ac_ext <<_ACEOF
15722 #line 15722 "configure"
15723 #include "confdefs.h"
15725 #ifdef HAVE_XCURSES
15726 #include <xcurses.h>
15727 char * XCursesProgramName = "test";
15729 #include <${cf_cv_ncurses_header:-curses.h}>
15730 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
15731 #include <ncursesw/term.h>
15732 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
15733 #include <ncurses/term.h>
15734 #elif defined(HAVE_TERM_H)
15739 extern char boolnames;
15742 void *foo = &(boolnames);
15743 fprintf(stderr, "testing linkage of boolnames:%p\n", foo);
15744 ${cf_cv_main_return:-return}(foo == 0);
15747 rm -f conftest$ac_exeext
15748 if { (eval echo "$as_me:15748: \"$ac_link\"") >&5
15749 (eval $ac_link) 2>&5
15751 echo "$as_me:15751: \$? = $ac_status" >&5
15752 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15753 { (eval echo "$as_me:15753: \"$ac_try\"") >&5
15754 (eval $ac_try) 2>&5
15756 echo "$as_me:15756: \$? = $ac_status" >&5
15757 (exit $ac_status); }; }; then
15760 echo "$as_me: program exited with status $ac_status" >&5
15761 echo "$as_me: failed program was:" >&5
15762 cat conftest.$ac_ext >&5
15765 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15767 echo "$as_me:15767: result: $cf_result" >&5
15768 echo "${ECHO_T}$cf_result" >&6
15769 if test $cf_result = yes ; then
15771 cf_result=`echo "decl_curses_data_boolnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15773 cat >>confdefs.h <<EOF
15774 #define $cf_result 1
15780 echo "$as_me:15780: checking for data boolfnames declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
15781 echo $ECHO_N "checking for data boolfnames declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
15783 cat >conftest.$ac_ext <<_ACEOF
15784 #line 15784 "configure"
15785 #include "confdefs.h"
15787 #ifdef HAVE_XCURSES
15788 #include <xcurses.h>
15789 char * XCursesProgramName = "test";
15791 #include <${cf_cv_ncurses_header:-curses.h}>
15792 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
15793 #include <ncursesw/term.h>
15794 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
15795 #include <ncurses/term.h>
15796 #elif defined(HAVE_TERM_H)
15805 void *foo = &(boolfnames)
15811 rm -f conftest.$ac_objext
15812 if { (eval echo "$as_me:15812: \"$ac_compile\"") >&5
15813 (eval $ac_compile) 2>&5
15815 echo "$as_me:15815: \$? = $ac_status" >&5
15816 (exit $ac_status); } &&
15817 { ac_try='test -s conftest.$ac_objext'
15818 { (eval echo "$as_me:15818: \"$ac_try\"") >&5
15819 (eval $ac_try) 2>&5
15821 echo "$as_me:15821: \$? = $ac_status" >&5
15822 (exit $ac_status); }; }; then
15825 echo "$as_me: failed program was:" >&5
15826 cat conftest.$ac_ext >&5
15829 rm -f conftest.$ac_objext conftest.$ac_ext
15830 echo "$as_me:15830: result: $cf_result" >&5
15831 echo "${ECHO_T}$cf_result" >&6
15833 if test $cf_result = yes ; then
15835 cf_result=`echo "have_curses_data_boolfnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15837 cat >>confdefs.h <<EOF
15838 #define $cf_result 1
15842 echo "$as_me:15842: checking for data boolfnames in library" >&5
15843 echo $ECHO_N "checking for data boolfnames in library... $ECHO_C" >&6
15844 # BSD linkers insist on making weak linkage, but resolve at runtime.
15845 if test "$cross_compiling" = yes; then
15848 cat >conftest.$ac_ext <<_ACEOF
15849 #line 15849 "configure"
15850 #include "confdefs.h"
15852 #ifdef HAVE_XCURSES
15853 #include <xcurses.h>
15854 char * XCursesProgramName = "test";
15856 #include <${cf_cv_ncurses_header:-curses.h}>
15857 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
15858 #include <ncursesw/term.h>
15859 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
15860 #include <ncurses/term.h>
15861 #elif defined(HAVE_TERM_H)
15866 extern char boolfnames;
15872 void *foo = &(boolfnames);
15873 fprintf(stderr, "testing linkage of boolfnames:%p\n", foo);
15874 ${cf_cv_main_return:-return}(foo == 0);
15881 rm -f conftest.$ac_objext conftest$ac_exeext
15882 if { (eval echo "$as_me:15882: \"$ac_link\"") >&5
15883 (eval $ac_link) 2>&5
15885 echo "$as_me:15885: \$? = $ac_status" >&5
15886 (exit $ac_status); } &&
15887 { ac_try='test -s conftest$ac_exeext'
15888 { (eval echo "$as_me:15888: \"$ac_try\"") >&5
15889 (eval $ac_try) 2>&5
15891 echo "$as_me:15891: \$? = $ac_status" >&5
15892 (exit $ac_status); }; }; then
15895 echo "$as_me: failed program was:" >&5
15896 cat conftest.$ac_ext >&5
15899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15902 cat >conftest.$ac_ext <<_ACEOF
15903 #line 15903 "configure"
15904 #include "confdefs.h"
15906 #ifdef HAVE_XCURSES
15907 #include <xcurses.h>
15908 char * XCursesProgramName = "test";
15910 #include <${cf_cv_ncurses_header:-curses.h}>
15911 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
15912 #include <ncursesw/term.h>
15913 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
15914 #include <ncurses/term.h>
15915 #elif defined(HAVE_TERM_H)
15920 extern char boolfnames;
15923 void *foo = &(boolfnames);
15924 fprintf(stderr, "testing linkage of boolfnames:%p\n", foo);
15925 ${cf_cv_main_return:-return}(foo == 0);
15928 rm -f conftest$ac_exeext
15929 if { (eval echo "$as_me:15929: \"$ac_link\"") >&5
15930 (eval $ac_link) 2>&5
15932 echo "$as_me:15932: \$? = $ac_status" >&5
15933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15934 { (eval echo "$as_me:15934: \"$ac_try\"") >&5
15935 (eval $ac_try) 2>&5
15937 echo "$as_me:15937: \$? = $ac_status" >&5
15938 (exit $ac_status); }; }; then
15941 echo "$as_me: program exited with status $ac_status" >&5
15942 echo "$as_me: failed program was:" >&5
15943 cat conftest.$ac_ext >&5
15946 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15948 echo "$as_me:15948: result: $cf_result" >&5
15949 echo "${ECHO_T}$cf_result" >&6
15950 if test $cf_result = yes ; then
15952 cf_result=`echo "decl_curses_data_boolfnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15954 cat >>confdefs.h <<EOF
15955 #define $cf_result 1
15961 if ( test "$GCC" = yes || test "$GXX" = yes )
15963 echo "$as_me:15963: checking if you want to turn on gcc warnings" >&5
15964 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
15966 # Check whether --enable-warnings or --disable-warnings was given.
15967 if test "${enable_warnings+set}" = set; then
15968 enableval="$enable_warnings"
15969 test "$enableval" != yes && enableval=no
15970 if test "$enableval" != "no" ; then
15980 echo "$as_me:15980: result: $with_warnings" >&5
15981 echo "${ECHO_T}$with_warnings" >&6
15982 if test "$with_warnings" = "yes"
15985 if test "$GCC" = yes
15987 cat > conftest.i <<EOF
15989 #define GCC_PRINTF 0
15992 #define GCC_SCANF 0
15994 #ifndef GCC_NORETURN
15995 #define GCC_NORETURN /* nothing */
15998 #define GCC_UNUSED /* nothing */
16001 if test "$GCC" = yes
16003 { echo "$as_me:16003: checking for $CC __attribute__ directives..." >&5
16004 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
16005 cat > conftest.$ac_ext <<EOF
16006 #line 16006 "${as_me:-configure}"
16007 #include "confdefs.h"
16008 #include "conftest.h"
16009 #include "conftest.i"
16011 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
16013 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
16016 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
16018 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
16020 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
16021 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
16022 extern void foo(void) GCC_NORETURN;
16023 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
16025 cf_printf_attribute=no
16026 cf_scanf_attribute=no
16027 for cf_attribute in scanf printf unused noreturn
16030 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16032 cf_directive="__attribute__(($cf_attribute))"
16033 echo "checking for $CC $cf_directive" 1>&5
16035 case $cf_attribute in
16037 cf_printf_attribute=yes
16038 cat >conftest.h <<EOF
16039 #define GCC_$cf_ATTRIBUTE 1
16043 cf_scanf_attribute=yes
16044 cat >conftest.h <<EOF
16045 #define GCC_$cf_ATTRIBUTE 1
16049 cat >conftest.h <<EOF
16050 #define GCC_$cf_ATTRIBUTE $cf_directive
16055 if { (eval echo "$as_me:16055: \"$ac_compile\"") >&5
16056 (eval $ac_compile) 2>&5
16058 echo "$as_me:16058: \$? = $ac_status" >&5
16059 (exit $ac_status); }; then
16060 test -n "$verbose" && echo "$as_me:16060: result: ... $cf_attribute" >&5
16061 echo "${ECHO_T}... $cf_attribute" >&6
16062 cat conftest.h >>confdefs.h
16063 case $cf_attribute in
16066 cat >>confdefs.h <<EOF
16067 #define GCC_NORETURN $cf_directive
16072 cf_value='/* nothing */'
16073 if test "$cf_printf_attribute" != no ; then
16074 cf_value='__attribute__((format(printf,fmt,var)))'
16076 cat >>confdefs.h <<\EOF
16077 #define GCC_PRINTF 1
16082 cat >>confdefs.h <<EOF
16083 #define GCC_PRINTFLIKE(fmt,var) $cf_value
16088 cf_value='/* nothing */'
16089 if test "$cf_scanf_attribute" != no ; then
16090 cf_value='__attribute__((format(scanf,fmt,var)))'
16092 cat >>confdefs.h <<\EOF
16093 #define GCC_SCANF 1
16098 cat >>confdefs.h <<EOF
16099 #define GCC_SCANFLIKE(fmt,var) $cf_value
16105 cat >>confdefs.h <<EOF
16106 #define GCC_UNUSED $cf_directive
16114 fgrep define conftest.i >>confdefs.h
16121 if test "$GCC" = yes ; then
16124 echo "$as_me:16124: checking if this is really Intel C compiler" >&5
16125 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
16126 cf_save_CFLAGS="$CFLAGS"
16127 CFLAGS="$CFLAGS -no-gcc"
16128 cat >conftest.$ac_ext <<_ACEOF
16129 #line 16129 "configure"
16130 #include "confdefs.h"
16136 #ifdef __INTEL_COMPILER
16145 rm -f conftest.$ac_objext
16146 if { (eval echo "$as_me:16146: \"$ac_compile\"") >&5
16147 (eval $ac_compile) 2>&5
16149 echo "$as_me:16149: \$? = $ac_status" >&5
16150 (exit $ac_status); } &&
16151 { ac_try='test -s conftest.$ac_objext'
16152 { (eval echo "$as_me:16152: \"$ac_try\"") >&5
16153 (eval $ac_try) 2>&5
16155 echo "$as_me:16155: \$? = $ac_status" >&5
16156 (exit $ac_status); }; }; then
16158 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
16161 echo "$as_me: failed program was:" >&5
16162 cat conftest.$ac_ext >&5
16164 rm -f conftest.$ac_objext conftest.$ac_ext
16165 CFLAGS="$cf_save_CFLAGS"
16166 echo "$as_me:16166: result: $INTEL_COMPILER" >&5
16167 echo "${ECHO_T}$INTEL_COMPILER" >&6
16174 if test "$GCC" = yes ; then
16175 echo "$as_me:16175: checking if this is really Clang C compiler" >&5
16176 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
16177 cf_save_CFLAGS="$CFLAGS"
16178 CFLAGS="$CFLAGS -Qunused-arguments"
16179 cat >conftest.$ac_ext <<_ACEOF
16180 #line 16180 "configure"
16181 #include "confdefs.h"
16196 rm -f conftest.$ac_objext
16197 if { (eval echo "$as_me:16197: \"$ac_compile\"") >&5
16198 (eval $ac_compile) 2>&5
16200 echo "$as_me:16200: \$? = $ac_status" >&5
16201 (exit $ac_status); } &&
16202 { ac_try='test -s conftest.$ac_objext'
16203 { (eval echo "$as_me:16203: \"$ac_try\"") >&5
16204 (eval $ac_try) 2>&5
16206 echo "$as_me:16206: \$? = $ac_status" >&5
16207 (exit $ac_status); }; }; then
16209 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
16212 echo "$as_me: failed program was:" >&5
16213 cat conftest.$ac_ext >&5
16215 rm -f conftest.$ac_objext conftest.$ac_ext
16216 CFLAGS="$cf_save_CFLAGS"
16217 echo "$as_me:16217: result: $CLANG_COMPILER" >&5
16218 echo "${ECHO_T}$CLANG_COMPILER" >&6
16221 cat > conftest.$ac_ext <<EOF
16222 #line 16222 "${as_me:-configure}"
16223 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
16226 if test "$INTEL_COMPILER" = yes
16228 # The "-wdXXX" options suppress warnings:
16229 # remark #1419: external declaration in primary source file
16230 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
16231 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
16232 # remark #193: zero used for undefined preprocessing identifier
16233 # remark #593: variable "curs_sb_left_arrow" was set but never used
16234 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
16235 # remark #869: parameter "tw" was never referenced
16236 # remark #981: operands are evaluated in unspecified order
16237 # warning #279: controlling expression is constant
16239 { echo "$as_me:16239: checking for $CC warning options..." >&5
16240 echo "$as_me: checking for $CC warning options..." >&6;}
16241 cf_save_CFLAGS="$CFLAGS"
16242 EXTRA_CFLAGS="-Wall"
16254 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
16255 if { (eval echo "$as_me:16255: \"$ac_compile\"") >&5
16256 (eval $ac_compile) 2>&5
16258 echo "$as_me:16258: \$? = $ac_status" >&5
16259 (exit $ac_status); }; then
16260 test -n "$verbose" && echo "$as_me:16260: result: ... -$cf_opt" >&5
16261 echo "${ECHO_T}... -$cf_opt" >&6
16262 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
16265 CFLAGS="$cf_save_CFLAGS"
16267 elif test "$GCC" = yes
16269 { echo "$as_me:16269: checking for $CC warning options..." >&5
16270 echo "$as_me: checking for $CC warning options..." >&6;}
16271 cf_save_CFLAGS="$CFLAGS"
16274 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
16275 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
16276 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
16277 for cf_opt in W Wall \
16278 Wbad-function-cast \
16281 Wdeclaration-after-statement \
16284 Wmissing-declarations \
16285 Wmissing-prototypes \
16289 Wstrict-prototypes \
16290 Wundef $cf_gcc_warnings $cf_warn_CONST
16292 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
16293 if { (eval echo "$as_me:16293: \"$ac_compile\"") >&5
16294 (eval $ac_compile) 2>&5
16296 echo "$as_me:16296: \$? = $ac_status" >&5
16297 (exit $ac_status); }; then
16298 test -n "$verbose" && echo "$as_me:16298: result: ... -$cf_opt" >&5
16299 echo "${ECHO_T}... -$cf_opt" >&6
16302 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
16305 case $GCC_VERSION in
16307 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
16309 echo "${as_me:-configure}:16309: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
16315 case $GCC_VERSION in
16317 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
16319 echo "${as_me:-configure}:16319: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
16325 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
16328 CFLAGS="$cf_save_CFLAGS"
16335 echo "$as_me:16335: checking if you want to use dmalloc for testing" >&5
16336 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
16338 # Check whether --with-dmalloc or --without-dmalloc was given.
16339 if test "${with_dmalloc+set}" = set; then
16340 withval="$with_dmalloc"
16342 cat >>confdefs.h <<EOF
16343 #define USE_DMALLOC 1
16346 : ${with_cflags:=-g}
16347 : ${with_no_leaks:=yes}
16352 echo "$as_me:16352: result: ${with_dmalloc:-no}" >&5
16353 echo "${ECHO_T}${with_dmalloc:-no}" >&6
16355 case .$with_cflags in
16365 cf_new_extra_cppflags=
16367 for cf_add_cflags in -g
16369 case $cf_fix_cppflags in
16371 case $cf_add_cflags in
16372 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16373 case $cf_add_cflags in
16375 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16377 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16378 && test -z "${cf_tst_cflags}" \
16379 && cf_fix_cppflags=yes
16381 if test $cf_fix_cppflags = yes ; then
16382 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16384 elif test "${cf_tst_cflags}" = "\"'" ; then
16385 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16390 case "$CPPFLAGS" in
16394 case $cf_add_cflags in
16396 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16398 CPPFLAGS=`echo "$CPPFLAGS" | \
16399 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16400 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16404 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
16409 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
16414 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16416 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16418 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16419 && test -z "${cf_tst_cflags}" \
16420 && cf_fix_cppflags=no
16425 if test -n "$cf_new_cflags" ; then
16427 CFLAGS="$CFLAGS $cf_new_cflags"
16430 if test -n "$cf_new_cppflags" ; then
16432 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
16435 if test -n "$cf_new_extra_cppflags" ; then
16437 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
16445 if test "$with_dmalloc" = yes ; then
16446 echo "$as_me:16446: checking for dmalloc.h" >&5
16447 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
16448 if test "${ac_cv_header_dmalloc_h+set}" = set; then
16449 echo $ECHO_N "(cached) $ECHO_C" >&6
16451 cat >conftest.$ac_ext <<_ACEOF
16452 #line 16452 "configure"
16453 #include "confdefs.h"
16454 #include <dmalloc.h>
16456 if { (eval echo "$as_me:16456: \"$ac_cpp conftest.$ac_ext\"") >&5
16457 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16459 egrep -v '^ *\+' conftest.er1 >conftest.err
16461 cat conftest.err >&5
16462 echo "$as_me:16462: \$? = $ac_status" >&5
16463 (exit $ac_status); } >/dev/null; then
16464 if test -s conftest.err; then
16465 ac_cpp_err=$ac_c_preproc_warn_flag
16472 if test -z "$ac_cpp_err"; then
16473 ac_cv_header_dmalloc_h=yes
16475 echo "$as_me: failed program was:" >&5
16476 cat conftest.$ac_ext >&5
16477 ac_cv_header_dmalloc_h=no
16479 rm -f conftest.err conftest.$ac_ext
16481 echo "$as_me:16481: result: $ac_cv_header_dmalloc_h" >&5
16482 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
16483 if test $ac_cv_header_dmalloc_h = yes; then
16485 echo "$as_me:16485: checking for dmalloc_debug in -ldmalloc" >&5
16486 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
16487 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
16488 echo $ECHO_N "(cached) $ECHO_C" >&6
16490 ac_check_lib_save_LIBS=$LIBS
16491 LIBS="-ldmalloc $LIBS"
16492 cat >conftest.$ac_ext <<_ACEOF
16493 #line 16493 "configure"
16494 #include "confdefs.h"
16496 /* Override any gcc2 internal prototype to avoid an error. */
16500 /* We use char because int might match the return type of a gcc2
16501 builtin and then its argument prototype would still apply. */
16502 char dmalloc_debug ();
16511 rm -f conftest.$ac_objext conftest$ac_exeext
16512 if { (eval echo "$as_me:16512: \"$ac_link\"") >&5
16513 (eval $ac_link) 2>&5
16515 echo "$as_me:16515: \$? = $ac_status" >&5
16516 (exit $ac_status); } &&
16517 { ac_try='test -s conftest$ac_exeext'
16518 { (eval echo "$as_me:16518: \"$ac_try\"") >&5
16519 (eval $ac_try) 2>&5
16521 echo "$as_me:16521: \$? = $ac_status" >&5
16522 (exit $ac_status); }; }; then
16523 ac_cv_lib_dmalloc_dmalloc_debug=yes
16525 echo "$as_me: failed program was:" >&5
16526 cat conftest.$ac_ext >&5
16527 ac_cv_lib_dmalloc_dmalloc_debug=no
16529 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16530 LIBS=$ac_check_lib_save_LIBS
16532 echo "$as_me:16532: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
16533 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
16534 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
16535 cat >>confdefs.h <<EOF
16536 #define HAVE_LIBDMALLOC 1
16539 LIBS="-ldmalloc $LIBS"
16547 echo "$as_me:16547: checking if you want to use dbmalloc for testing" >&5
16548 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
16550 # Check whether --with-dbmalloc or --without-dbmalloc was given.
16551 if test "${with_dbmalloc+set}" = set; then
16552 withval="$with_dbmalloc"
16554 cat >>confdefs.h <<EOF
16555 #define USE_DBMALLOC 1
16558 : ${with_cflags:=-g}
16559 : ${with_no_leaks:=yes}
16564 echo "$as_me:16564: result: ${with_dbmalloc:-no}" >&5
16565 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
16567 case .$with_cflags in
16577 cf_new_extra_cppflags=
16579 for cf_add_cflags in -g
16581 case $cf_fix_cppflags in
16583 case $cf_add_cflags in
16584 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16585 case $cf_add_cflags in
16587 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16589 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16590 && test -z "${cf_tst_cflags}" \
16591 && cf_fix_cppflags=yes
16593 if test $cf_fix_cppflags = yes ; then
16594 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16596 elif test "${cf_tst_cflags}" = "\"'" ; then
16597 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16602 case "$CPPFLAGS" in
16606 case $cf_add_cflags in
16608 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16610 CPPFLAGS=`echo "$CPPFLAGS" | \
16611 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16612 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16616 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
16621 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
16626 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16628 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16630 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16631 && test -z "${cf_tst_cflags}" \
16632 && cf_fix_cppflags=no
16637 if test -n "$cf_new_cflags" ; then
16639 CFLAGS="$CFLAGS $cf_new_cflags"
16642 if test -n "$cf_new_cppflags" ; then
16644 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
16647 if test -n "$cf_new_extra_cppflags" ; then
16649 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
16657 if test "$with_dbmalloc" = yes ; then
16658 echo "$as_me:16658: checking for dbmalloc.h" >&5
16659 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
16660 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
16661 echo $ECHO_N "(cached) $ECHO_C" >&6
16663 cat >conftest.$ac_ext <<_ACEOF
16664 #line 16664 "configure"
16665 #include "confdefs.h"
16666 #include <dbmalloc.h>
16668 if { (eval echo "$as_me:16668: \"$ac_cpp conftest.$ac_ext\"") >&5
16669 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16671 egrep -v '^ *\+' conftest.er1 >conftest.err
16673 cat conftest.err >&5
16674 echo "$as_me:16674: \$? = $ac_status" >&5
16675 (exit $ac_status); } >/dev/null; then
16676 if test -s conftest.err; then
16677 ac_cpp_err=$ac_c_preproc_warn_flag
16684 if test -z "$ac_cpp_err"; then
16685 ac_cv_header_dbmalloc_h=yes
16687 echo "$as_me: failed program was:" >&5
16688 cat conftest.$ac_ext >&5
16689 ac_cv_header_dbmalloc_h=no
16691 rm -f conftest.err conftest.$ac_ext
16693 echo "$as_me:16693: result: $ac_cv_header_dbmalloc_h" >&5
16694 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
16695 if test $ac_cv_header_dbmalloc_h = yes; then
16697 echo "$as_me:16697: checking for debug_malloc in -ldbmalloc" >&5
16698 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
16699 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
16700 echo $ECHO_N "(cached) $ECHO_C" >&6
16702 ac_check_lib_save_LIBS=$LIBS
16703 LIBS="-ldbmalloc $LIBS"
16704 cat >conftest.$ac_ext <<_ACEOF
16705 #line 16705 "configure"
16706 #include "confdefs.h"
16708 /* Override any gcc2 internal prototype to avoid an error. */
16712 /* We use char because int might match the return type of a gcc2
16713 builtin and then its argument prototype would still apply. */
16714 char debug_malloc ();
16723 rm -f conftest.$ac_objext conftest$ac_exeext
16724 if { (eval echo "$as_me:16724: \"$ac_link\"") >&5
16725 (eval $ac_link) 2>&5
16727 echo "$as_me:16727: \$? = $ac_status" >&5
16728 (exit $ac_status); } &&
16729 { ac_try='test -s conftest$ac_exeext'
16730 { (eval echo "$as_me:16730: \"$ac_try\"") >&5
16731 (eval $ac_try) 2>&5
16733 echo "$as_me:16733: \$? = $ac_status" >&5
16734 (exit $ac_status); }; }; then
16735 ac_cv_lib_dbmalloc_debug_malloc=yes
16737 echo "$as_me: failed program was:" >&5
16738 cat conftest.$ac_ext >&5
16739 ac_cv_lib_dbmalloc_debug_malloc=no
16741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16742 LIBS=$ac_check_lib_save_LIBS
16744 echo "$as_me:16744: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
16745 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
16746 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
16747 cat >>confdefs.h <<EOF
16748 #define HAVE_LIBDBMALLOC 1
16751 LIBS="-ldbmalloc $LIBS"
16759 echo "$as_me:16759: checking if you want to use valgrind for testing" >&5
16760 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
16762 # Check whether --with-valgrind or --without-valgrind was given.
16763 if test "${with_valgrind+set}" = set; then
16764 withval="$with_valgrind"
16766 cat >>confdefs.h <<EOF
16767 #define USE_VALGRIND 1
16770 : ${with_cflags:=-g}
16771 : ${with_no_leaks:=yes}
16776 echo "$as_me:16776: result: ${with_valgrind:-no}" >&5
16777 echo "${ECHO_T}${with_valgrind:-no}" >&6
16779 case .$with_cflags in
16789 cf_new_extra_cppflags=
16791 for cf_add_cflags in -g
16793 case $cf_fix_cppflags in
16795 case $cf_add_cflags in
16796 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16797 case $cf_add_cflags in
16799 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16801 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16802 && test -z "${cf_tst_cflags}" \
16803 && cf_fix_cppflags=yes
16805 if test $cf_fix_cppflags = yes ; then
16806 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16808 elif test "${cf_tst_cflags}" = "\"'" ; then
16809 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16814 case "$CPPFLAGS" in
16818 case $cf_add_cflags in
16820 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16822 CPPFLAGS=`echo "$CPPFLAGS" | \
16823 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16824 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16828 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
16833 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
16838 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
16840 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16842 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16843 && test -z "${cf_tst_cflags}" \
16844 && cf_fix_cppflags=no
16849 if test -n "$cf_new_cflags" ; then
16851 CFLAGS="$CFLAGS $cf_new_cflags"
16854 if test -n "$cf_new_cppflags" ; then
16856 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
16859 if test -n "$cf_new_extra_cppflags" ; then
16861 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
16869 echo "$as_me:16869: checking if you want to perform memory-leak testing" >&5
16870 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
16872 # Check whether --enable-leaks or --disable-leaks was given.
16873 if test "${enable_leaks+set}" = set; then
16874 enableval="$enable_leaks"
16875 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
16877 : ${with_no_leaks:=no}
16879 echo "$as_me:16879: result: $with_no_leaks" >&5
16880 echo "${ECHO_T}$with_no_leaks" >&6
16882 if test "$with_no_leaks" = yes ; then
16884 cat >>confdefs.h <<\EOF
16888 cat >>confdefs.h <<\EOF
16889 #define YY_NO_LEAKS 1
16895 echo "$as_me:16895: checking for an rpath option" >&5
16896 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
16897 case $cf_cv_system_name in
16899 if test "$GCC" = yes; then
16900 LD_RPATH_OPT="-Wl,-rpath,"
16902 LD_RPATH_OPT="-rpath "
16905 (linux*|gnu*|k*bsd*-gnu)
16906 LD_RPATH_OPT="-Wl,-rpath,"
16908 (openbsd[2-9].*|mirbsd*)
16909 LD_RPATH_OPT="-Wl,-rpath,"
16911 (dragonfly*|freebsd*)
16912 LD_RPATH_OPT="-rpath "
16915 LD_RPATH_OPT="-Wl,-rpath,"
16918 LD_RPATH_OPT="-rpath "
16926 echo "$as_me:16926: result: $LD_RPATH_OPT" >&5
16927 echo "${ECHO_T}$LD_RPATH_OPT" >&6
16929 case "x$LD_RPATH_OPT" in
16931 echo "$as_me:16931: checking if we need a space after rpath option" >&5
16932 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
16933 cf_save_LIBS="$LIBS"
16935 cf_add_libs="${LD_RPATH_OPT}$libdir"
16936 # Filter out duplicates - this happens with badly-designed ".pc" files...
16937 for cf_add_1lib in $LIBS
16939 for cf_add_2lib in $cf_add_libs
16941 if test "x$cf_add_1lib" = "x$cf_add_2lib"
16947 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
16949 LIBS="$cf_add_libs"
16951 cat >conftest.$ac_ext <<_ACEOF
16952 #line 16952 "configure"
16953 #include "confdefs.h"
16963 rm -f conftest.$ac_objext conftest$ac_exeext
16964 if { (eval echo "$as_me:16964: \"$ac_link\"") >&5
16965 (eval $ac_link) 2>&5
16967 echo "$as_me:16967: \$? = $ac_status" >&5
16968 (exit $ac_status); } &&
16969 { ac_try='test -s conftest$ac_exeext'
16970 { (eval echo "$as_me:16970: \"$ac_try\"") >&5
16971 (eval $ac_try) 2>&5
16973 echo "$as_me:16973: \$? = $ac_status" >&5
16974 (exit $ac_status); }; }; then
16977 echo "$as_me: failed program was:" >&5
16978 cat conftest.$ac_ext >&5
16981 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16982 LIBS="$cf_save_LIBS"
16983 echo "$as_me:16983: result: $cf_rpath_space" >&5
16984 echo "${ECHO_T}$cf_rpath_space" >&6
16985 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
16989 echo "$as_me:16989: checking if rpath-hack should be disabled" >&5
16990 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
16992 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
16993 if test "${enable_rpath_hack+set}" = set; then
16994 enableval="$enable_rpath_hack"
16995 test "$enableval" != no && enableval=yes
16996 if test "$enableval" != "yes" ; then
16997 cf_disable_rpath_hack=yes
16999 cf_disable_rpath_hack=no
17003 cf_disable_rpath_hack=no
17006 echo "$as_me:17006: result: $cf_disable_rpath_hack" >&5
17007 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
17008 if test "$cf_disable_rpath_hack" = no ; then
17010 echo "$as_me:17010: checking for updated LDFLAGS" >&5
17011 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
17012 if test -n "$LD_RPATH_OPT" ; then
17013 echo "$as_me:17013: result: maybe" >&5
17014 echo "${ECHO_T}maybe" >&6
17018 # Extract the first word of "$ac_prog", so it can be a program name with args.
17019 set dummy $ac_prog; ac_word=$2
17020 echo "$as_me:17020: checking for $ac_word" >&5
17021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17022 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
17023 echo $ECHO_N "(cached) $ECHO_C" >&6
17025 if test -n "$cf_ldd_prog"; then
17026 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
17028 ac_save_IFS=$IFS; IFS=$ac_path_separator
17030 for ac_dir in $ac_dummy; do
17032 test -z "$ac_dir" && ac_dir=.
17033 $as_executable_p "$ac_dir/$ac_word" || continue
17034 ac_cv_prog_cf_ldd_prog="$ac_prog"
17035 echo "$as_me:17035: found $ac_dir/$ac_word" >&5
17041 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
17042 if test -n "$cf_ldd_prog"; then
17043 echo "$as_me:17043: result: $cf_ldd_prog" >&5
17044 echo "${ECHO_T}$cf_ldd_prog" >&6
17046 echo "$as_me:17046: result: no" >&5
17047 echo "${ECHO_T}no" >&6
17050 test -n "$cf_ldd_prog" && break
17052 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
17054 cf_rpath_list="/usr/lib /lib"
17055 if test "$cf_ldd_prog" != no
17059 cat >conftest.$ac_ext <<_ACEOF
17060 #line 17060 "configure"
17061 #include "confdefs.h"
17071 rm -f conftest.$ac_objext conftest$ac_exeext
17072 if { (eval echo "$as_me:17072: \"$ac_link\"") >&5
17073 (eval $ac_link) 2>&5
17075 echo "$as_me:17075: \$? = $ac_status" >&5
17076 (exit $ac_status); } &&
17077 { ac_try='test -s conftest$ac_exeext'
17078 { (eval echo "$as_me:17078: \"$ac_try\"") >&5
17079 (eval $ac_try) 2>&5
17081 echo "$as_me:17081: \$? = $ac_status" >&5
17082 (exit $ac_status); }; }; then
17083 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
17084 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
17086 echo "$as_me: failed program was:" >&5
17087 cat conftest.$ac_ext >&5
17089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17091 # If we passed the link-test, but get a "not found" on a given library,
17092 # this could be due to inept reconfiguration of gcc to make it only
17093 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
17094 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
17095 # /usr/local libraries.
17096 if test -n "$cf_rpath_oops"
17098 for cf_rpath_src in $cf_rpath_oops
17100 for cf_rpath_dir in \
17105 if test -f $cf_rpath_dir/lib/$cf_rpath_src
17107 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
17109 echo "${as_me:-configure}:17109: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
17111 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
17119 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
17121 echo "${as_me:-configure}:17121: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
17123 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
17125 echo "${as_me:-configure}:17125: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
17128 for cf_rpath_src in $LDFLAGS
17130 case $cf_rpath_src in
17133 # check if this refers to a directory which we will ignore
17135 if test -n "$cf_rpath_list"
17137 for cf_rpath_item in $cf_rpath_list
17139 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
17147 if test "$cf_rpath_skip" = no
17149 # transform the option
17150 if test "$LD_RPATH_OPT" = "-R " ; then
17151 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
17153 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
17156 # if we have not already added this, add it now
17157 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
17158 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
17160 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
17162 echo "${as_me:-configure}:17162: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
17164 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
17169 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
17171 LDFLAGS=$cf_rpath_dst
17173 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
17175 echo "${as_me:-configure}:17175: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
17177 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
17179 echo "${as_me:-configure}:17179: testing ...checking LIBS $LIBS ..." 1>&5
17182 for cf_rpath_src in $LIBS
17184 case $cf_rpath_src in
17187 # check if this refers to a directory which we will ignore
17189 if test -n "$cf_rpath_list"
17191 for cf_rpath_item in $cf_rpath_list
17193 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
17201 if test "$cf_rpath_skip" = no
17203 # transform the option
17204 if test "$LD_RPATH_OPT" = "-R " ; then
17205 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
17207 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
17210 # if we have not already added this, add it now
17211 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
17212 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
17214 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
17216 echo "${as_me:-configure}:17216: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
17218 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
17223 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
17227 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
17229 echo "${as_me:-configure}:17229: testing ...checked LIBS $LIBS ..." 1>&5
17231 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
17233 echo "${as_me:-configure}:17233: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
17236 echo "$as_me:17236: result: no" >&5
17237 echo "${ECHO_T}no" >&6
17245 ac_config_files="$ac_config_files Makefile"
17246 ac_config_commands="$ac_config_commands default"
17247 cat >confcache <<\_ACEOF
17248 # This file is a shell script that caches the results of configure
17249 # tests run on this system so they can be shared between configure
17250 # scripts and configure runs, see configure's option --config-cache.
17251 # It is not useful on other systems. If it contains results you don't
17252 # want to keep, you may remove or edit it.
17254 # config.status only pays attention to the cache file if you give it
17255 # the --recheck option to rerun configure.
17257 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17258 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17259 # following values.
17263 # The following way of writing the cache mishandles newlines in values,
17264 # but we know of no workaround that is simple, portable, and efficient.
17265 # So, don't put newlines in cache variables' values.
17266 # Ultrix sh set writes to stderr and can't be redirected directly,
17267 # and sets the high bit in the cache file unless we assign to the vars.
17270 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17272 # `set' does not quote correctly, so add quotes (double-quote
17273 # substitution turns \\\\ into \\, and sed turns \\ into \).
17276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17279 # `set' quotes correctly as required by POSIX, so do not add quotes.
17281 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17288 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17290 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17292 if cmp -s $cache_file confcache; then :; else
17293 if test -w $cache_file; then
17294 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17295 cat confcache >$cache_file
17297 echo "not updating unwritable cache $cache_file"
17302 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17303 # Let make expand exec_prefix.
17304 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17306 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17307 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17308 # trailing colons and then remove the whole line if VPATH becomes empty
17309 # (actually we leave an empty line to preserve line numbers).
17310 if test "x$srcdir" = x.; then
17311 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17312 s/:*\$(srcdir):*/:/;
17313 s/:*\${srcdir}:*/:/;
17315 s/^\([^=]*=[ ]*\):*/\1/;
17321 DEFS=-DHAVE_CONFIG_H
17323 : ${CONFIG_STATUS=./config.status}
17324 ac_clean_files_save=$ac_clean_files
17325 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17326 { echo "$as_me:17326: creating $CONFIG_STATUS" >&5
17327 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17328 cat >$CONFIG_STATUS <<_ACEOF
17330 # Generated automatically by configure.
17331 # Run this file to recreate the current configuration.
17332 # Compiler output produced by configure, useful for debugging
17333 # configure, is in config.log if it exists.
17336 SHELL=\${CONFIG_SHELL-$SHELL}
17337 ac_cs_invocation="\$0 \$@"
17341 cat >>$CONFIG_STATUS <<\_ACEOF
17342 # Be Bourne compatible
17343 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17346 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17350 # Name of the executable.
17351 as_me=`echo "$0" |sed 's,.*[\\/],,'`
17353 if expr a : '\(a\)' >/dev/null 2>&1; then
17359 rm -f conf$$ conf$$.exe conf$$.file
17361 if ln -s conf$$.file conf$$ 2>/dev/null; then
17362 # We could just check for DJGPP; but this test a) works b) is more generic
17363 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17364 if test -f conf$$.exe; then
17365 # Don't use ln at all; we don't have any links
17370 elif ln conf$$.file conf$$ 2>/dev/null; then
17375 rm -f conf$$ conf$$.exe conf$$.file
17377 as_executable_p="test -f"
17379 # Support unset when possible.
17380 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17387 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
17388 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
17389 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
17390 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
17391 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
17392 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
17393 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
17394 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
17397 # We need space, tab and new line, in precisely that order.
17403 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
17409 # Files that config.status was made for.
17410 if test -n "$ac_config_files"; then
17411 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17414 if test -n "$ac_config_headers"; then
17415 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17418 if test -n "$ac_config_links"; then
17419 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17422 if test -n "$ac_config_commands"; then
17423 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17426 cat >>$CONFIG_STATUS <<\EOF
17429 \`$as_me' instantiates files from templates according to the
17430 current configuration.
17432 Usage: $0 [OPTIONS] [FILE]...
17434 -h, --help print this help, then exit
17435 -V, --version print version number, then exit
17436 -d, --debug don't remove temporary files
17437 --recheck update $as_me by reconfiguring in the same conditions
17438 --file=FILE[:TEMPLATE]
17439 instantiate the configuration file FILE
17440 --header=FILE[:TEMPLATE]
17441 instantiate the configuration header FILE
17443 Configuration files:
17446 Configuration headers:
17449 Configuration commands:
17452 Report bugs to <dickey@invisible-island.net>."
17455 cat >>$CONFIG_STATUS <<EOF
17458 configured by $0, generated by GNU Autoconf 2.52.20141204,
17459 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17461 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17462 Free Software Foundation, Inc.
17463 This config.status script is free software; the Free Software Foundation
17464 gives unlimited permission to copy, distribute and modify it."
17469 cat >>$CONFIG_STATUS <<\EOF
17470 # If no file are specified by the user, then we need to provide default
17471 # value. By we need to know if files were specified by the user.
17477 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17478 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17480 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
17484 *) # This is not an option, so the user has probably given explicit
17486 ac_need_defaults=false;;
17490 # Handling of the options.
17492 cat >>$CONFIG_STATUS <<EOF
17493 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17494 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17495 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17497 cat >>$CONFIG_STATUS <<\EOF
17498 --version | --vers* | -V )
17499 echo "$ac_cs_version"; exit 0 ;;
17501 # Conflict between --help and --header
17502 { { echo "$as_me:17502: error: ambiguous option: $1
17503 Try \`$0 --help' for more information." >&5
17504 echo "$as_me: error: ambiguous option: $1
17505 Try \`$0 --help' for more information." >&2;}
17506 { (exit 1); exit 1; }; };;
17507 --help | --hel | -h )
17508 echo "$ac_cs_usage"; exit 0 ;;
17509 --debug | --d* | -d )
17511 --file | --fil | --fi | --f )
17513 CONFIG_FILES="$CONFIG_FILES $1"
17514 ac_need_defaults=false;;
17515 --header | --heade | --head | --hea )
17517 CONFIG_HEADERS="$CONFIG_HEADERS $1"
17518 ac_need_defaults=false;;
17520 # This is an error.
17521 -*) { { echo "$as_me:17521: error: unrecognized option: $1
17522 Try \`$0 --help' for more information." >&5
17523 echo "$as_me: error: unrecognized option: $1
17524 Try \`$0 --help' for more information." >&2;}
17525 { (exit 1); exit 1; }; } ;;
17527 *) ac_config_targets="$ac_config_targets $1" ;;
17536 ## ----------------------- ##
17537 ## Running config.status. ##
17538 ## ----------------------- ##
17540 This file was extended by $as_me 2.52.20141204, executed with
17541 CONFIG_FILES = $CONFIG_FILES
17542 CONFIG_HEADERS = $CONFIG_HEADERS
17543 CONFIG_LINKS = $CONFIG_LINKS
17544 CONFIG_COMMANDS = $CONFIG_COMMANDS
17545 > $ac_cs_invocation
17546 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17551 cat >>$CONFIG_STATUS <<EOF
17553 # INIT-COMMANDS section.
17563 cat >>$CONFIG_STATUS <<\EOF
17564 for ac_config_target in $ac_config_targets
17566 case "$ac_config_target" in
17567 # Handling of arguments.
17568 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17569 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17570 "ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ncurses_cfg.h:ncurses_tst.hin" ;;
17571 *) { { echo "$as_me:17571: error: invalid argument: $ac_config_target" >&5
17572 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17573 { (exit 1); exit 1; }; };;
17577 # If the user did not use the arguments to specify the items to instantiate,
17578 # then the envvar interface is used. Set only those that are not.
17579 # We use the long form for the default assignment because of an extremely
17580 # bizarre bug on SunOS 4.1.3.
17581 if $ac_need_defaults; then
17582 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17583 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17584 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17587 # Create a temporary directory, and hook for its removal unless debugging.
17590 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17591 trap '{ (exit 1); exit 1; }' 1 2 13 15
17594 # Create a (secure) tmp directory for tmp files.
17597 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17598 test -n "$tmp" && test -d "$tmp"
17601 tmp=$TMPDIR/cs$$-$RANDOM
17602 (umask 077 && mkdir $tmp)
17605 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17606 { (exit 1); exit 1; }
17611 cat >>$CONFIG_STATUS <<EOF
17614 # CONFIG_FILES section.
17617 # No need to generate the scripts if there are no CONFIG_FILES.
17618 # This happens for instance when ./config.status config.h
17619 if test -n "\$CONFIG_FILES"; then
17620 # Protect against being on the right side of a sed subst in config.status.
17621 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17622 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17623 s,@SHELL@,$SHELL,;t t
17624 s,@exec_prefix@,$exec_prefix,;t t
17625 s,@prefix@,$prefix,;t t
17626 s,@program_transform_name@,$program_transform_name,;t t
17627 s,@bindir@,$bindir,;t t
17628 s,@sbindir@,$sbindir,;t t
17629 s,@libexecdir@,$libexecdir,;t t
17630 s,@datarootdir@,$datarootdir,;t t
17631 s,@datadir@,$datadir,;t t
17632 s,@sysconfdir@,$sysconfdir,;t t
17633 s,@sharedstatedir@,$sharedstatedir,;t t
17634 s,@localstatedir@,$localstatedir,;t t
17635 s,@libdir@,$libdir,;t t
17636 s,@includedir@,$includedir,;t t
17637 s,@oldincludedir@,$oldincludedir,;t t
17638 s,@infodir@,$infodir,;t t
17639 s,@mandir@,$mandir,;t t
17640 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17641 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17642 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17643 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17644 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17645 s,@build_alias@,$build_alias,;t t
17646 s,@host_alias@,$host_alias,;t t
17647 s,@target_alias@,$target_alias,;t t
17648 s,@ECHO_C@,$ECHO_C,;t t
17649 s,@ECHO_N@,$ECHO_N,;t t
17650 s,@ECHO_T@,$ECHO_T,;t t
17651 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17652 s,@DEFS@,$DEFS,;t t
17653 s,@LIBS@,$LIBS,;t t
17654 s,@build@,$build,;t t
17655 s,@build_cpu@,$build_cpu,;t t
17656 s,@build_vendor@,$build_vendor,;t t
17657 s,@build_os@,$build_os,;t t
17658 s,@host@,$host,;t t
17659 s,@host_cpu@,$host_cpu,;t t
17660 s,@host_vendor@,$host_vendor,;t t
17661 s,@host_os@,$host_os,;t t
17662 s,@SET_MAKE@,$SET_MAKE,;t t
17664 s,@CFLAGS@,$CFLAGS,;t t
17665 s,@LDFLAGS@,$LDFLAGS,;t t
17666 s,@CPPFLAGS@,$CPPFLAGS,;t t
17667 s,@ac_ct_CC@,$ac_ct_CC,;t t
17668 s,@EXEEXT@,$EXEEXT,;t t
17669 s,@OBJEXT@,$OBJEXT,;t t
17670 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
17673 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17674 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17675 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17676 s,@LINT@,$LINT,;t t
17677 s,@LINT_OPTS@,$LINT_OPTS,;t t
17678 s,@CTAGS@,$CTAGS,;t t
17679 s,@ETAGS@,$ETAGS,;t t
17680 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
17681 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
17682 s,@MATH_LIB@,$MATH_LIB,;t t
17683 s,@top_builddir@,$top_builddir,;t t
17684 s,@CC_G_OPT@,$CC_G_OPT,;t t
17685 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
17686 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
17687 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
17688 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
17690 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
17691 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
17692 s,@LD_MODEL@,$LD_MODEL,;t t
17693 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
17694 s,@LIBTOOL@,$LIBTOOL,;t t
17695 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
17696 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
17697 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
17698 s,@LIB_LINK@,$LIB_LINK,;t t
17699 s,@LINK_TESTS@,$LINK_TESTS,;t t
17700 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
17701 s,@PACKAGE@,$PACKAGE,;t t
17702 s,@PTHREAD@,$PTHREAD,;t t
17703 s,@TEST_ARGS@,$TEST_ARGS,;t t
17704 s,@TEST_DEPS@,$TEST_DEPS,;t t
17705 s,@TEST_LIBS@,$TEST_LIBS,;t t
17706 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
17707 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
17708 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
17709 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
17710 s,@includesubdir@,$includesubdir,;t t
17711 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17712 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
17713 s,@ECHO_LT@,$ECHO_LT,;t t
17714 s,@ECHO_LD@,$ECHO_LD,;t t
17715 s,@RULE_CC@,$RULE_CC,;t t
17716 s,@SHOW_CC@,$SHOW_CC,;t t
17717 s,@ECHO_CC@,$ECHO_CC,;t t
17718 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
17719 s,@NCURSES_CONFIG@,$NCURSES_CONFIG,;t t
17720 s,@ac_ct_NCURSES_CONFIG@,$ac_ct_NCURSES_CONFIG,;t t
17721 s,@X_CFLAGS@,$X_CFLAGS,;t t
17722 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17723 s,@X_LIBS@,$X_LIBS,;t t
17724 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17725 s,@XCURSES_CONFIG@,$XCURSES_CONFIG,;t t
17726 s,@ac_ct_XCURSES_CONFIG@,$ac_ct_XCURSES_CONFIG,;t t
17727 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
17728 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
17729 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
17734 cat >>$CONFIG_STATUS <<\EOF
17735 # Split the substitutions into bite-sized pieces for seds with
17736 # small command number limits, like on Digital OSF/1 and HP-UX.
17737 ac_max_sed_lines=48
17738 ac_sed_frag=1 # Number of current file.
17739 ac_beg=1 # First line for current file.
17740 ac_end=$ac_max_sed_lines # Line after last line for current file.
17743 while $ac_more_lines; do
17744 if test $ac_beg -gt 1; then
17745 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17747 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17749 if test ! -s $tmp/subs.frag; then
17750 ac_more_lines=false
17752 # The purpose of the label and of the branching condition is to
17753 # speed up the sed processing (if there are no `@' at all, there
17754 # is no need to browse any of the substitutions).
17755 # These are the two extra sed commands mentioned above.
17757 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17758 if test -z "$ac_sed_cmds"; then
17759 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17761 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17763 ac_sed_frag=`expr $ac_sed_frag + 1`
17765 ac_end=`expr $ac_end + $ac_max_sed_lines`
17768 if test -z "$ac_sed_cmds"; then
17771 fi # test -n "$CONFIG_FILES"
17774 cat >>$CONFIG_STATUS <<\EOF
17775 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17776 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17778 - | *:- | *:-:* ) # input from stdin
17780 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17781 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17782 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17783 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17784 * ) ac_file_in=$ac_file.in ;;
17787 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17788 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17789 X"$ac_file" : 'X\(//\)[^/]' \| \
17790 X"$ac_file" : 'X\(//\)$' \| \
17791 X"$ac_file" : 'X\(/\)' \| \
17792 . : '\(.\)' 2>/dev/null ||
17794 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17795 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17796 /^X\(\/\/\)$/{ s//\1/; q; }
17797 /^X\(\/\).*/{ s//\1/; q; }
17799 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17800 { case "$ac_dir" in
17801 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
17805 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17806 case $as_mkdir_dir in
17807 # Skip DOS drivespec
17808 ?:) as_incr_dir=$as_mkdir_dir ;;
17810 as_incr_dir=$as_incr_dir/$as_mkdir_dir
17811 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
17816 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
17817 # A "../" for each directory in $ac_dir_suffix.
17818 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
17820 ac_dir_suffix= ac_dots=
17825 if test -z "$ac_dots"; then
17828 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
17830 [\\/]* | ?:[\\/]* )
17831 ac_srcdir=$srcdir$ac_dir_suffix;
17832 ac_top_srcdir=$srcdir ;;
17833 *) # Relative path.
17834 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
17835 ac_top_srcdir=$ac_dots$srcdir ;;
17839 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17840 *) ac_INSTALL=$ac_dots$INSTALL ;;
17843 if test x"$ac_file" != x-; then
17844 { echo "$as_me:17844: creating $ac_file" >&5
17845 echo "$as_me: creating $ac_file" >&6;}
17848 # Let's still pretend it is `configure' which instantiates (i.e., don't
17849 # use $as_me), people would be surprised to read:
17850 # /* config.h. Generated automatically by config.status. */
17851 configure_input="Generated automatically from `echo $ac_file_in |
17852 sed 's,.*/,,'` by configure."
17854 # First look for the input files in the build tree, otherwise in the
17856 ac_file_inputs=`IFS=:
17857 for f in $ac_file_in; do
17859 -) echo $tmp/stdin ;;
17861 # Absolute (can't be DOS-style, as IFS=:)
17862 test -f "$f" || { { echo "$as_me:17862: error: cannot find input file: $f" >&5
17863 echo "$as_me: error: cannot find input file: $f" >&2;}
17864 { (exit 1); exit 1; }; }
17867 if test -f "$f"; then
17870 elif test -f "$srcdir/$f"; then
17875 { { echo "$as_me:17875: error: cannot find input file: $f" >&5
17876 echo "$as_me: error: cannot find input file: $f" >&2;}
17877 { (exit 1); exit 1; }; }
17880 done` || { (exit 1); exit 1; }
17882 cat >>$CONFIG_STATUS <<\EOF
17883 ac_warn_datarootdir=no
17884 if test x"$ac_file" != x-; then
17885 for ac_item in $ac_file_inputs
17887 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
17888 if test -n "$ac_seen"; then
17889 ac_used=`grep '@datarootdir@' $ac_item`
17890 if test -z "$ac_used"; then
17891 { echo "$as_me:17891: WARNING: datarootdir was used implicitly but not set:
17893 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
17895 ac_warn_datarootdir=yes
17898 ac_seen=`grep '${datarootdir}' $ac_item`
17899 if test -n "$ac_seen"; then
17900 { echo "$as_me:17900: WARNING: datarootdir was used explicitly but not set:
17902 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
17904 ac_warn_datarootdir=yes
17909 if test "x$ac_warn_datarootdir" = xyes; then
17910 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
17914 cat >>$CONFIG_STATUS <<EOF
17918 cat >>$CONFIG_STATUS <<\EOF
17920 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17921 s,@configure_input@,$configure_input,;t t
17922 s,@srcdir@,$ac_srcdir,;t t
17923 s,@top_srcdir@,$ac_top_srcdir,;t t
17924 s,@INSTALL@,$ac_INSTALL,;t t
17925 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17927 if test x"$ac_file" != x-; then
17928 cp $tmp/out $ac_file
17930 for ac_name in prefix exec_prefix datarootdir
17932 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
17933 if test -n "$ac_seen"; then
17934 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
17935 if test -z "$ac_init"; then
17936 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
17937 { echo "$as_me:17937: WARNING: Variable $ac_name is used but was not set:
17939 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
17944 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
17945 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
17946 if test -s $tmp/out; then
17947 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
17948 { echo "$as_me:17948: WARNING: Some variables may not be substituted:
17950 echo "$as_me: WARNING: Some variables may not be substituted:
17960 cat >>$CONFIG_STATUS <<\EOF
17963 # CONFIG_HEADER section.
17966 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17967 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17969 # ac_d sets the value in "#define NAME VALUE" lines.
17970 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17971 ac_dB='[ ].*$,\1#\2'
17974 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
17975 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17976 ac_iB='\([ ]\),\1#\2define\3'
17979 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17980 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17981 ac_uB='$,\1#\2define\3'
17985 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17986 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17988 - | *:- | *:-:* ) # input from stdin
17990 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17991 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17992 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17993 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17994 * ) ac_file_in=$ac_file.in ;;
17997 test x"$ac_file" != x- && { echo "$as_me:17997: creating $ac_file" >&5
17998 echo "$as_me: creating $ac_file" >&6;}
18000 # First look for the input files in the build tree, otherwise in the
18002 ac_file_inputs=`IFS=:
18003 for f in $ac_file_in; do
18005 -) echo $tmp/stdin ;;
18007 # Absolute (can't be DOS-style, as IFS=:)
18008 test -f "$f" || { { echo "$as_me:18008: error: cannot find input file: $f" >&5
18009 echo "$as_me: error: cannot find input file: $f" >&2;}
18010 { (exit 1); exit 1; }; }
18013 if test -f "$f"; then
18016 elif test -f "$srcdir/$f"; then
18021 { { echo "$as_me:18021: error: cannot find input file: $f" >&5
18022 echo "$as_me: error: cannot find input file: $f" >&2;}
18023 { (exit 1); exit 1; }; }
18026 done` || { (exit 1); exit 1; }
18027 # Remove the trailing spaces.
18028 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18032 # Transform confdefs.h into a list of #define's. We won't use it as a sed
18033 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
18034 # be either 'cat' or 'sort'.
18035 cat confdefs.h | uniq >conftest.vals
18037 # Break up conftest.vals because some shells have a limit on
18038 # the size of here documents, and old seds have small limits too.
18040 rm -f conftest.tail
18041 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
18042 while grep . conftest.vals >/dev/null
18044 # Write chunks of a limited-size here document to conftest.frag.
18045 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
18046 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
18047 echo 'CEOF' >> $CONFIG_STATUS
18048 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18049 rm -f conftest.vals
18050 mv conftest.tail conftest.vals
18052 rm -f conftest.vals
18054 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
18056 echo ' cat >> conftest.edit <<CEOF
18057 /@DEFS@/r conftest.frag
18060 sed -f conftest.edit $tmp/in > $tmp/out
18062 mv $tmp/out $tmp/in
18063 rm -f conftest.edit conftest.frag
18064 ' >> $CONFIG_STATUS
18066 cat >>$CONFIG_STATUS <<\EOF
18067 # Let's still pretend it is `configure' which instantiates (i.e., don't
18068 # use $as_me), people would be surprised to read:
18069 # /* config.h. Generated automatically by config.status. */
18070 if test x"$ac_file" = x-; then
18071 echo "/* Generated automatically by configure. */" >$tmp/config.h
18073 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
18075 cat $tmp/in >>$tmp/config.h
18077 if test x"$ac_file" != x-; then
18078 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18079 { echo "$as_me:18079: $ac_file is unchanged" >&5
18080 echo "$as_me: $ac_file is unchanged" >&6;}
18082 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18083 X"$ac_file" : 'X\(//\)[^/]' \| \
18084 X"$ac_file" : 'X\(//\)$' \| \
18085 X"$ac_file" : 'X\(/\)' \| \
18086 . : '\(.\)' 2>/dev/null ||
18088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18089 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18090 /^X\(\/\/\)$/{ s//\1/; q; }
18091 /^X\(\/\).*/{ s//\1/; q; }
18093 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18094 { case "$ac_dir" in
18095 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18099 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18100 case $as_mkdir_dir in
18101 # Skip DOS drivespec
18102 ?:) as_incr_dir=$as_mkdir_dir ;;
18104 as_incr_dir=$as_incr_dir/$as_mkdir_dir
18105 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
18112 mv $tmp/config.h $ac_file
18116 rm -f $tmp/config.h
18120 cat >>$CONFIG_STATUS <<\EOF
18122 # CONFIG_COMMANDS section.
18124 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18125 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18126 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18133 if test ! -d $srcdir/$cf_dir; then
18135 elif test -f $srcdir/$cf_dir/programs; then
18136 $AWK -f $srcdir/mk-test.awk INSTALL=yes ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
18140 cat >>Makefile <<TEST_EOF
18142 # These rules are generated so we do not rely on suffix rules, which do not
18143 # work consistently for different make-programs (the '\$(MODEL)/' confuses
18144 # some, and the '\$x' confuses others).
18147 LIST=`sed -e 's/[ ].*//' -e '/^[#@]/d' $srcdir/modules`
18150 cat >>Makefile <<TEST_EOF
18152 \$(MODEL)/$N.o : \$(srcdir)/$N.c \\
18153 \$(srcdir)/test.priv.h \\
18156 $ECHO_CC\$(CC) -c \$(CFLAGS_DEFAULT) \$(srcdir)/$N.c
18160 if test -f ../config.guess && test -f ../config.sub
18162 cat >>Makefile <<TEST_EOF
18164 # if we used CF_INHERIT for getting these files, we can remove them
18166 rm -f config.guess config.sub
18174 cat >>$CONFIG_STATUS <<\EOF
18176 { (exit 0); exit 0; }
18178 chmod +x $CONFIG_STATUS
18179 ac_clean_files=$ac_clean_files_save
18181 # configure is writing to config.log, and then calls config.status.
18182 # config.status does its own redirection, appending to config.log.
18183 # Unfortunately, on DOS this fails, as config.log is still kept open
18184 # by configure, so config.status won't be able to write to it; its
18185 # output is simply discarded. So we exec the FD to /dev/null,
18186 # effectively closing config.log, so it can be properly (re)opened and
18187 # appended to by config.status. When coming back to configure, we
18188 # need to make the FD available again.
18189 if test "$no_create" != yes; then
18192 $SHELL $CONFIG_STATUS || ac_cs_success=false
18194 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18195 # would make configure fail if this is the last instruction.
18196 $ac_cs_success || { (exit 1); exit 1; }