2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.20170501.
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 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
651 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
654 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
655 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
657 --enable-string-hacks work around bogus compiler/loader warnings
659 --with-pkg-config{=path} enable/disable use of pkg-config
660 --disable-echo do not display "compiling" commands
661 Curses Version-dependent Options:
662 --with-ncurses-wrap-prefix naming-prefix for ncurses wrapped-variables
663 --disable-widec disable checks for wide-character functions
664 --with-curses-dir=DIR directory in which (n)curses is installed
665 --with-screen=XXX use specified curses-libraries
666 --with-ncursesw use wide ncurses-libraries
667 --with-ncurses use ncurses-libraries
668 --with-pdcurses compile/link with pdcurses X11 library
669 --with-curses-colr compile/link with HPUX 10.x color-curses
670 --with-curses-5lib compile/link with SunOS 5lib curses
671 --with-Xaw3d link with Xaw 3d library
672 --with-Xaw3dxft link with Xaw 3d xft library
673 --with-neXtaw link with neXT Athena library
674 --with-XawPlus link with Athena-Plus library
675 --with-x use the X Window System
676 --with-x11-rgb=FILE file containing X11 rgb information (EPREFIX/lib/X11/rgb.txt)
677 --disable-panel disable checks for panel functions
678 --disable-menu disable checks for menu functions
679 --disable-form disable checks for form functions
680 Testing/development Options:
681 --enable-warnings test: turn on gcc compiler warnings
682 --with-dmalloc test: use Gray Watson's dmalloc library
683 --with-dbmalloc test: use Conor Cahill's dbmalloc library
684 --with-valgrind test: use valgrind
685 --disable-leaks test: free permanent memory, analyze leaks
686 --disable-rpath-hack don't add rpath options for additional libraries
688 Some influential environment variables:
689 CC C compiler command
690 CFLAGS C compiler flags
691 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
692 nonstandard directory <lib dir>
693 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
694 headers in a nonstandard directory <include dir>
697 Use these variables to override the choices made by `configure' or to help
698 it to find libraries and programs with nonstandard names/locations.
703 if test "$ac_init_help" = "recursive"; then
704 # If there are subdirs, report their specific --help.
706 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
708 # A "../" for each directory in /$ac_subdir.
709 ac_dots=`echo $ac_subdir |
710 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
713 .) # No --srcdir option. We are building in place.
714 ac_sub_srcdir=$srcdir ;;
715 [\\/]* | ?:[\\/]* ) # Absolute path.
716 ac_sub_srcdir=$srcdir/$ac_subdir ;;
718 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
721 # Check for guested configure; otherwise get Cygnus style configure.
722 if test -f $ac_sub_srcdir/configure.gnu; then
724 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
725 elif test -f $ac_sub_srcdir/configure; then
727 $SHELL $ac_sub_srcdir/configure --help=recursive
728 elif test -f $ac_sub_srcdir/configure.ac ||
729 test -f $ac_sub_srcdir/configure.in; then
733 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
739 test -n "$ac_init_help" && exit 0
740 if $ac_init_version; then
743 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
744 Free Software Foundation, Inc.
745 This configure script is free software; the Free Software Foundation
746 gives unlimited permission to copy, distribute and modify it.
752 This file contains any messages produced by compilers while
753 running configure, to aid debugging if configure makes a mistake.
755 It was created by $as_me, which was
756 generated by GNU Autoconf 2.52.20170501. Invocation command line was
767 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
768 uname -m = `(uname -m) 2>/dev/null || echo unknown`
769 uname -r = `(uname -r) 2>/dev/null || echo unknown`
770 uname -s = `(uname -s) 2>/dev/null || echo unknown`
771 uname -v = `(uname -v) 2>/dev/null || echo unknown`
773 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
774 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
776 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
777 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
778 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
779 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
780 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
781 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
782 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
796 # Keep a trace of the command line.
797 # Strip out --no-create and --no-recursion so they do not pile up.
798 # Also quote any args containing shell meta-characters.
804 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
805 | --no-cr | --no-c) ;;
806 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
807 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
808 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
809 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
810 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
812 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
815 # Get rid of the leading space.
818 # When interrupted or exit'd, cleanup temporary files, and complete
819 # config.log. We remove comments because anyway the quotes in there
820 # would cause problems or look ugly.
822 # Save into config.log some information that might help in debugging.
824 echo "## ----------------- ##" >&5
825 echo "## Cache variables. ##" >&5
826 echo "## ----------------- ##" >&5
828 # The following way of writing the cache mishandles newlines in values,
831 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
834 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
835 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
839 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
843 sed "/^$/d" confdefs.h >conftest.log
844 if test -s conftest.log; then
846 echo "## ------------ ##" >&5
847 echo "## confdefs.h. ##" >&5
848 echo "## ------------ ##" >&5
853 test "$ac_signal" != 0 &&
854 echo "$as_me: caught signal $ac_signal" >&5
855 echo "$as_me: exit $exit_status" >&5
856 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
859 for ac_signal in 1 2 13 15; do
860 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
864 # confdefs.h avoids OS command line length limits that DEFS can exceed.
865 rm -rf conftest* confdefs.h
866 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
869 # Let the site file select an alternate cache file if it wants to.
870 # Prefer explicitly selected file to automatically selected ones.
871 if test -z "$CONFIG_SITE"; then
872 if test "x$prefix" != xNONE; then
873 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
875 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
878 for ac_site_file in $CONFIG_SITE; do
879 if test -r "$ac_site_file"; then
880 { echo "$as_me:880: loading site script $ac_site_file" >&5
881 echo "$as_me: loading site script $ac_site_file" >&6;}
882 cat "$ac_site_file" >&5
887 if test -r "$cache_file"; then
888 # Some versions of bash will fail to source /dev/null (special
889 # files actually), so we avoid doing that.
890 if test -f "$cache_file"; then
891 { echo "$as_me:891: loading cache $cache_file" >&5
892 echo "$as_me: loading cache $cache_file" >&6;}
894 [\\/]* | ?:[\\/]* ) . $cache_file;;
899 { echo "$as_me:899: creating cache $cache_file" >&5
900 echo "$as_me: creating cache $cache_file" >&6;}
904 # Check that the precious variables saved in the cache have kept the same
906 ac_cache_corrupted=false
907 for ac_var in `(set) 2>&1 |
908 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
909 eval ac_old_set=\$ac_cv_env_${ac_var}_set
910 eval ac_new_set=\$ac_env_${ac_var}_set
911 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
912 eval ac_new_val="\$ac_env_${ac_var}_value"
913 case $ac_old_set,$ac_new_set in
915 { echo "$as_me:915: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
916 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
917 ac_cache_corrupted=: ;;
919 { echo "$as_me:919: error: \`$ac_var' was not set in the previous run" >&5
920 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
921 ac_cache_corrupted=: ;;
924 if test "x$ac_old_val" != "x$ac_new_val"; then
925 { echo "$as_me:925: error: \`$ac_var' has changed since the previous run:" >&5
926 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
927 { echo "$as_me:927: former value: $ac_old_val" >&5
928 echo "$as_me: former value: $ac_old_val" >&2;}
929 { echo "$as_me:929: current value: $ac_new_val" >&5
930 echo "$as_me: current value: $ac_new_val" >&2;}
934 # Pass precious variables to config.status. It doesn't matter if
935 # we pass some twice (in addition to the command line arguments).
936 if test "$ac_new_set" = set; then
938 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
939 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
940 ac_configure_args="$ac_configure_args '$ac_arg'"
942 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
947 if $ac_cache_corrupted; then
948 { echo "$as_me:948: error: changes in the environment can compromise the build" >&5
949 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
950 { { echo "$as_me:950: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
951 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
952 { (exit 1); exit 1; }; }
956 ac_cpp='$CPP $CPPFLAGS'
957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
960 ac_main_return=return
962 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
963 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
965 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
966 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
968 echo "#! $SHELL" >conftest.sh
969 echo "exit 0" >>conftest.sh
971 if { (echo "$as_me:971: PATH=\".;.\"; conftest.sh") >&5
972 (PATH=".;."; conftest.sh) 2>&5
974 echo "$as_me:974: \$? = $ac_status" >&5
975 (exit $ac_status); }; then
976 ac_path_separator=';'
980 PATH_SEPARATOR="$ac_path_separator"
983 ac_config_headers="$ac_config_headers ncurses_cfg.h:ncurses_tst.hin"
985 test -f config.guess || ( test -f ../config.guess && cp ../config.guess ./ )
987 test -f config.sub || ( test -f ../config.sub && cp ../config.sub ./ )
990 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
991 if test -f $ac_dir/install-sh; then
993 ac_install_sh="$ac_aux_dir/install-sh -c"
995 elif test -f $ac_dir/install.sh; then
997 ac_install_sh="$ac_aux_dir/install.sh -c"
999 elif test -f $ac_dir/shtool; then
1001 ac_install_sh="$ac_aux_dir/shtool install -c"
1005 if test -z "$ac_aux_dir"; then
1006 { { echo "$as_me:1006: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1007 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1008 { (exit 1); exit 1; }; }
1010 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1011 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1012 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1014 # Make sure we can run config.sub.
1015 $ac_config_sub sun4 >/dev/null 2>&1 ||
1016 { { echo "$as_me:1016: error: cannot run $ac_config_sub" >&5
1017 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1018 { (exit 1); exit 1; }; }
1020 echo "$as_me:1020: checking build system type" >&5
1021 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1022 if test "${ac_cv_build+set}" = set; then
1023 echo $ECHO_N "(cached) $ECHO_C" >&6
1025 ac_cv_build_alias=$build_alias
1026 test -z "$ac_cv_build_alias" &&
1027 ac_cv_build_alias=`$ac_config_guess`
1028 test -z "$ac_cv_build_alias" &&
1029 { { echo "$as_me:1029: error: cannot guess build type; you must specify one" >&5
1030 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1031 { (exit 1); exit 1; }; }
1032 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1033 { { echo "$as_me:1033: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1034 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1035 { (exit 1); exit 1; }; }
1038 echo "$as_me:1038: result: $ac_cv_build" >&5
1039 echo "${ECHO_T}$ac_cv_build" >&6
1041 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1042 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1043 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1045 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1046 echo "$as_me:1046: checking host system type" >&5
1047 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1048 if test "${ac_cv_host+set}" = set; then
1049 echo $ECHO_N "(cached) $ECHO_C" >&6
1051 ac_cv_host_alias=$host_alias
1052 test -z "$ac_cv_host_alias" &&
1053 ac_cv_host_alias=$ac_cv_build_alias
1054 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1055 { { echo "$as_me:1055: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1056 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1057 { (exit 1); exit 1; }; }
1060 echo "$as_me:1060: result: $ac_cv_host" >&5
1061 echo "${ECHO_T}$ac_cv_host" >&6
1063 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1064 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1065 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1067 system_name="$host_os"
1069 system_name="`(uname -s -r) 2>/dev/null`"
1070 if test -z "$system_name" ; then
1071 system_name="`(hostname) 2>/dev/null`"
1074 test -n "$system_name" &&
1075 cat >>confdefs.h <<EOF
1076 #define SYSTEM_NAME "$system_name"
1079 if test "${cf_cv_system_name+set}" = set; then
1080 echo $ECHO_N "(cached) $ECHO_C" >&6
1082 cf_cv_system_name="$system_name"
1085 test -z "$system_name" && system_name="$cf_cv_system_name"
1086 test -n "$cf_cv_system_name" && echo "$as_me:1086: result: Configuring for $cf_cv_system_name" >&5
1087 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1089 if test ".$system_name" != ".$cf_cv_system_name" ; then
1090 echo "$as_me:1090: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1091 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1092 { { echo "$as_me:1092: error: \"Please remove config.cache and try again.\"" >&5
1093 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1094 { (exit 1); exit 1; }; }
1097 test "$program_prefix" != NONE &&
1098 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1099 # Use a double $ so make ignores it.
1100 test "$program_suffix" != NONE &&
1101 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1102 # Double any \ or $. echo might interpret backslashes.
1103 # By default was `s,x,x', remove it if useless.
1104 cat <<\_ACEOF >conftest.sed
1105 s/[\\$]/&&/g;s/;s,x,x,$//
1107 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1110 echo "$as_me:1110: checking whether ${MAKE-make} sets \${MAKE}" >&5
1111 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1112 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1113 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1114 echo $ECHO_N "(cached) $ECHO_C" >&6
1116 cat >conftest.make <<\EOF
1118 @echo 'ac_maketemp="${MAKE}"'
1120 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1121 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1122 if test -n "$ac_maketemp"; then
1123 eval ac_cv_prog_make_${ac_make}_set=yes
1125 eval ac_cv_prog_make_${ac_make}_set=no
1129 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1130 echo "$as_me:1130: result: yes" >&5
1131 echo "${ECHO_T}yes" >&6
1134 echo "$as_me:1134: result: no" >&5
1135 echo "${ECHO_T}no" >&6
1136 SET_MAKE="MAKE=${MAKE-make}"
1140 ac_cpp='$CPP $CPPFLAGS'
1141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1144 ac_main_return=return
1145 if test -n "$ac_tool_prefix"; then
1146 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1147 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1148 echo "$as_me:1148: checking for $ac_word" >&5
1149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1150 if test "${ac_cv_prog_CC+set}" = set; then
1151 echo $ECHO_N "(cached) $ECHO_C" >&6
1153 if test -n "$CC"; then
1154 ac_cv_prog_CC="$CC" # Let the user override the test.
1156 ac_save_IFS=$IFS; IFS=$ac_path_separator
1158 for ac_dir in $ac_dummy; do
1160 test -z "$ac_dir" && ac_dir=.
1161 $as_executable_p "$ac_dir/$ac_word" || continue
1162 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1163 echo "$as_me:1163: found $ac_dir/$ac_word" >&5
1170 if test -n "$CC"; then
1171 echo "$as_me:1171: result: $CC" >&5
1172 echo "${ECHO_T}$CC" >&6
1174 echo "$as_me:1174: result: no" >&5
1175 echo "${ECHO_T}no" >&6
1179 if test -z "$ac_cv_prog_CC"; then
1181 # Extract the first word of "gcc", so it can be a program name with args.
1182 set dummy gcc; ac_word=$2
1183 echo "$as_me:1183: checking for $ac_word" >&5
1184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1185 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1186 echo $ECHO_N "(cached) $ECHO_C" >&6
1188 if test -n "$ac_ct_CC"; then
1189 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1191 ac_save_IFS=$IFS; IFS=$ac_path_separator
1193 for ac_dir in $ac_dummy; do
1195 test -z "$ac_dir" && ac_dir=.
1196 $as_executable_p "$ac_dir/$ac_word" || continue
1197 ac_cv_prog_ac_ct_CC="gcc"
1198 echo "$as_me:1198: found $ac_dir/$ac_word" >&5
1204 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1205 if test -n "$ac_ct_CC"; then
1206 echo "$as_me:1206: result: $ac_ct_CC" >&5
1207 echo "${ECHO_T}$ac_ct_CC" >&6
1209 echo "$as_me:1209: result: no" >&5
1210 echo "${ECHO_T}no" >&6
1218 if test -z "$CC"; then
1219 if test -n "$ac_tool_prefix"; then
1220 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1221 set dummy ${ac_tool_prefix}cc; ac_word=$2
1222 echo "$as_me:1222: checking for $ac_word" >&5
1223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1224 if test "${ac_cv_prog_CC+set}" = set; then
1225 echo $ECHO_N "(cached) $ECHO_C" >&6
1227 if test -n "$CC"; then
1228 ac_cv_prog_CC="$CC" # Let the user override the test.
1230 ac_save_IFS=$IFS; IFS=$ac_path_separator
1232 for ac_dir in $ac_dummy; do
1234 test -z "$ac_dir" && ac_dir=.
1235 $as_executable_p "$ac_dir/$ac_word" || continue
1236 ac_cv_prog_CC="${ac_tool_prefix}cc"
1237 echo "$as_me:1237: found $ac_dir/$ac_word" >&5
1244 if test -n "$CC"; then
1245 echo "$as_me:1245: result: $CC" >&5
1246 echo "${ECHO_T}$CC" >&6
1248 echo "$as_me:1248: result: no" >&5
1249 echo "${ECHO_T}no" >&6
1253 if test -z "$ac_cv_prog_CC"; then
1255 # Extract the first word of "cc", so it can be a program name with args.
1256 set dummy cc; ac_word=$2
1257 echo "$as_me:1257: checking for $ac_word" >&5
1258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1259 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1260 echo $ECHO_N "(cached) $ECHO_C" >&6
1262 if test -n "$ac_ct_CC"; then
1263 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1265 ac_save_IFS=$IFS; IFS=$ac_path_separator
1267 for ac_dir in $ac_dummy; do
1269 test -z "$ac_dir" && ac_dir=.
1270 $as_executable_p "$ac_dir/$ac_word" || continue
1271 ac_cv_prog_ac_ct_CC="cc"
1272 echo "$as_me:1272: found $ac_dir/$ac_word" >&5
1278 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1279 if test -n "$ac_ct_CC"; then
1280 echo "$as_me:1280: result: $ac_ct_CC" >&5
1281 echo "${ECHO_T}$ac_ct_CC" >&6
1283 echo "$as_me:1283: result: no" >&5
1284 echo "${ECHO_T}no" >&6
1293 if test -z "$CC"; then
1294 # Extract the first word of "cc", so it can be a program name with args.
1295 set dummy cc; ac_word=$2
1296 echo "$as_me:1296: checking for $ac_word" >&5
1297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1298 if test "${ac_cv_prog_CC+set}" = set; then
1299 echo $ECHO_N "(cached) $ECHO_C" >&6
1301 if test -n "$CC"; then
1302 ac_cv_prog_CC="$CC" # Let the user override the test.
1305 ac_save_IFS=$IFS; IFS=$ac_path_separator
1307 for ac_dir in $ac_dummy; do
1309 test -z "$ac_dir" && ac_dir=.
1310 $as_executable_p "$ac_dir/$ac_word" || continue
1311 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1312 ac_prog_rejected=yes
1316 echo "$as_me:1316: found $ac_dir/$ac_word" >&5
1320 if test $ac_prog_rejected = yes; then
1321 # We found a bogon in the path, so make sure we never use it.
1322 set dummy $ac_cv_prog_CC
1324 if test $# != 0; then
1325 # We chose a different compiler from the bogus one.
1326 # However, it has the same basename, so the bogon will be chosen
1327 # first if we set CC to just the basename; use the full file name.
1329 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1337 if test -n "$CC"; then
1338 echo "$as_me:1338: result: $CC" >&5
1339 echo "${ECHO_T}$CC" >&6
1341 echo "$as_me:1341: result: no" >&5
1342 echo "${ECHO_T}no" >&6
1346 if test -z "$CC"; then
1347 if test -n "$ac_tool_prefix"; then
1350 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1351 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1352 echo "$as_me:1352: checking for $ac_word" >&5
1353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1354 if test "${ac_cv_prog_CC+set}" = set; then
1355 echo $ECHO_N "(cached) $ECHO_C" >&6
1357 if test -n "$CC"; then
1358 ac_cv_prog_CC="$CC" # Let the user override the test.
1360 ac_save_IFS=$IFS; IFS=$ac_path_separator
1362 for ac_dir in $ac_dummy; do
1364 test -z "$ac_dir" && ac_dir=.
1365 $as_executable_p "$ac_dir/$ac_word" || continue
1366 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1367 echo "$as_me:1367: found $ac_dir/$ac_word" >&5
1374 if test -n "$CC"; then
1375 echo "$as_me:1375: result: $CC" >&5
1376 echo "${ECHO_T}$CC" >&6
1378 echo "$as_me:1378: result: no" >&5
1379 echo "${ECHO_T}no" >&6
1382 test -n "$CC" && break
1385 if test -z "$CC"; then
1389 # Extract the first word of "$ac_prog", so it can be a program name with args.
1390 set dummy $ac_prog; ac_word=$2
1391 echo "$as_me:1391: checking for $ac_word" >&5
1392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1393 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1394 echo $ECHO_N "(cached) $ECHO_C" >&6
1396 if test -n "$ac_ct_CC"; then
1397 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1399 ac_save_IFS=$IFS; IFS=$ac_path_separator
1401 for ac_dir in $ac_dummy; do
1403 test -z "$ac_dir" && ac_dir=.
1404 $as_executable_p "$ac_dir/$ac_word" || continue
1405 ac_cv_prog_ac_ct_CC="$ac_prog"
1406 echo "$as_me:1406: found $ac_dir/$ac_word" >&5
1412 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1413 if test -n "$ac_ct_CC"; then
1414 echo "$as_me:1414: result: $ac_ct_CC" >&5
1415 echo "${ECHO_T}$ac_ct_CC" >&6
1417 echo "$as_me:1417: result: no" >&5
1418 echo "${ECHO_T}no" >&6
1421 test -n "$ac_ct_CC" && break
1429 test -z "$CC" && { { echo "$as_me:1429: error: no acceptable cc found in \$PATH" >&5
1430 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1431 { (exit 1); exit 1; }; }
1433 # Provide some information about the compiler.
1434 echo "$as_me:1434:" \
1435 "checking for C compiler version" >&5
1436 ac_compiler=`set X $ac_compile; echo $2`
1437 { (eval echo "$as_me:1437: \"$ac_compiler --version </dev/null >&5\"") >&5
1438 (eval $ac_compiler --version </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); }
1447 { (eval echo "$as_me:1447: \"$ac_compiler -V </dev/null >&5\"") >&5
1448 (eval $ac_compiler -V </dev/null >&5) 2>&5
1450 echo "$as_me:1450: \$? = $ac_status" >&5
1451 (exit $ac_status); }
1453 cat >conftest.$ac_ext <<_ACEOF
1454 #line 1454 "configure"
1455 #include "confdefs.h"
1465 ac_clean_files_save=$ac_clean_files
1466 ac_clean_files="$ac_clean_files a.out a.exe"
1467 # Try to create an executable without -o first, disregard a.out.
1468 # It will help us diagnose broken compilers, and finding out an intuition
1470 echo "$as_me:1470: checking for C compiler default output" >&5
1471 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1472 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1473 if { (eval echo "$as_me:1473: \"$ac_link_default\"") >&5
1474 (eval $ac_link_default) 2>&5
1476 echo "$as_me:1476: \$? = $ac_status" >&5
1477 (exit $ac_status); }; then
1478 # Find the output, starting from the most likely. This scheme is
1479 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1481 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1482 ls a.out conftest 2>/dev/null;
1483 ls a.* conftest.* 2>/dev/null`; do
1485 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1486 a.out ) # We found the default executable, but exeext='' is most
1489 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1490 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1497 echo "$as_me: failed program was:" >&5
1498 cat conftest.$ac_ext >&5
1499 { { echo "$as_me:1499: error: C compiler cannot create executables" >&5
1500 echo "$as_me: error: C compiler cannot create executables" >&2;}
1501 { (exit 77); exit 77; }; }
1504 ac_exeext=$ac_cv_exeext
1505 echo "$as_me:1505: result: $ac_file" >&5
1506 echo "${ECHO_T}$ac_file" >&6
1508 # Check the compiler produces executables we can run. If not, either
1509 # the compiler is broken, or we cross compile.
1510 echo "$as_me:1510: checking whether the C compiler works" >&5
1511 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1512 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1513 # If not cross compiling, check that we can run a simple program.
1514 if test "$cross_compiling" != yes; then
1515 if { ac_try='./$ac_file'
1516 { (eval echo "$as_me:1516: \"$ac_try\"") >&5
1519 echo "$as_me:1519: \$? = $ac_status" >&5
1520 (exit $ac_status); }; }; then
1523 if test "$cross_compiling" = maybe; then
1526 { { echo "$as_me:1526: error: cannot run C compiled programs.
1527 If you meant to cross compile, use \`--host'." >&5
1528 echo "$as_me: error: cannot run C compiled programs.
1529 If you meant to cross compile, use \`--host'." >&2;}
1530 { (exit 1); exit 1; }; }
1534 echo "$as_me:1534: result: yes" >&5
1535 echo "${ECHO_T}yes" >&6
1537 rm -f a.out a.exe conftest$ac_cv_exeext
1538 ac_clean_files=$ac_clean_files_save
1539 # Check the compiler produces executables we can run. If not, either
1540 # the compiler is broken, or we cross compile.
1541 echo "$as_me:1541: checking whether we are cross compiling" >&5
1542 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1543 echo "$as_me:1543: result: $cross_compiling" >&5
1544 echo "${ECHO_T}$cross_compiling" >&6
1546 echo "$as_me:1546: checking for executable suffix" >&5
1547 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1548 if { (eval echo "$as_me:1548: \"$ac_link\"") >&5
1549 (eval $ac_link) 2>&5
1551 echo "$as_me:1551: \$? = $ac_status" >&5
1552 (exit $ac_status); }; then
1553 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1554 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1555 # work properly (i.e., refer to `conftest.exe'), while it won't with
1557 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1559 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1560 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1567 { { echo "$as_me:1567: error: cannot compute EXEEXT: cannot compile and link" >&5
1568 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1569 { (exit 1); exit 1; }; }
1572 rm -f conftest$ac_cv_exeext
1573 echo "$as_me:1573: result: $ac_cv_exeext" >&5
1574 echo "${ECHO_T}$ac_cv_exeext" >&6
1576 rm -f conftest.$ac_ext
1577 EXEEXT=$ac_cv_exeext
1579 echo "$as_me:1579: checking for object suffix" >&5
1580 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1581 if test "${ac_cv_objext+set}" = set; then
1582 echo $ECHO_N "(cached) $ECHO_C" >&6
1584 cat >conftest.$ac_ext <<_ACEOF
1585 #line 1585 "configure"
1586 #include "confdefs.h"
1596 rm -f conftest.o conftest.obj
1597 if { (eval echo "$as_me:1597: \"$ac_compile\"") >&5
1598 (eval $ac_compile) 2>&5
1600 echo "$as_me:1600: \$? = $ac_status" >&5
1601 (exit $ac_status); }; then
1602 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1604 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1605 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1610 echo "$as_me: failed program was:" >&5
1611 cat conftest.$ac_ext >&5
1612 { { echo "$as_me:1612: error: cannot compute OBJEXT: cannot compile" >&5
1613 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1614 { (exit 1); exit 1; }; }
1617 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1619 echo "$as_me:1619: result: $ac_cv_objext" >&5
1620 echo "${ECHO_T}$ac_cv_objext" >&6
1621 OBJEXT=$ac_cv_objext
1623 echo "$as_me:1623: checking whether we are using the GNU C compiler" >&5
1624 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1625 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1628 cat >conftest.$ac_ext <<_ACEOF
1629 #line 1629 "configure"
1630 #include "confdefs.h"
1643 rm -f conftest.$ac_objext
1644 if { (eval echo "$as_me:1644: \"$ac_compile\"") >&5
1645 (eval $ac_compile) 2>&5
1647 echo "$as_me:1647: \$? = $ac_status" >&5
1648 (exit $ac_status); } &&
1649 { ac_try='test -s conftest.$ac_objext'
1650 { (eval echo "$as_me:1650: \"$ac_try\"") >&5
1653 echo "$as_me:1653: \$? = $ac_status" >&5
1654 (exit $ac_status); }; }; then
1657 echo "$as_me: failed program was:" >&5
1658 cat conftest.$ac_ext >&5
1661 rm -f conftest.$ac_objext conftest.$ac_ext
1662 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1665 echo "$as_me:1665: result: $ac_cv_c_compiler_gnu" >&5
1666 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1667 GCC=`test $ac_compiler_gnu = yes && echo yes`
1668 ac_test_CFLAGS=${CFLAGS+set}
1669 ac_save_CFLAGS=$CFLAGS
1671 echo "$as_me:1671: checking whether $CC accepts -g" >&5
1672 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1673 if test "${ac_cv_prog_cc_g+set}" = set; then
1674 echo $ECHO_N "(cached) $ECHO_C" >&6
1676 cat >conftest.$ac_ext <<_ACEOF
1677 #line 1677 "configure"
1678 #include "confdefs.h"
1688 rm -f conftest.$ac_objext
1689 if { (eval echo "$as_me:1689: \"$ac_compile\"") >&5
1690 (eval $ac_compile) 2>&5
1692 echo "$as_me:1692: \$? = $ac_status" >&5
1693 (exit $ac_status); } &&
1694 { ac_try='test -s conftest.$ac_objext'
1695 { (eval echo "$as_me:1695: \"$ac_try\"") >&5
1698 echo "$as_me:1698: \$? = $ac_status" >&5
1699 (exit $ac_status); }; }; then
1702 echo "$as_me: failed program was:" >&5
1703 cat conftest.$ac_ext >&5
1706 rm -f conftest.$ac_objext conftest.$ac_ext
1708 echo "$as_me:1708: result: $ac_cv_prog_cc_g" >&5
1709 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1710 if test "$ac_test_CFLAGS" = set; then
1711 CFLAGS=$ac_save_CFLAGS
1712 elif test $ac_cv_prog_cc_g = yes; then
1713 if test "$GCC" = yes; then
1719 if test "$GCC" = yes; then
1725 # Some people use a C++ compiler to compile C. Since we use `exit',
1726 # in C++ we need to declare it. In case someone uses the same compiler
1727 # for both compiling C and C++ we need to have the C++ compiler decide
1728 # the declaration of exit, since it's the most demanding environment.
1729 cat >conftest.$ac_ext <<_ACEOF
1734 rm -f conftest.$ac_objext
1735 if { (eval echo "$as_me:1735: \"$ac_compile\"") >&5
1736 (eval $ac_compile) 2>&5
1738 echo "$as_me:1738: \$? = $ac_status" >&5
1739 (exit $ac_status); } &&
1740 { ac_try='test -s conftest.$ac_objext'
1741 { (eval echo "$as_me:1741: \"$ac_try\"") >&5
1744 echo "$as_me:1744: \$? = $ac_status" >&5
1745 (exit $ac_status); }; }; then
1746 for ac_declaration in \
1748 '#include <stdlib.h>' \
1749 'extern "C" void std::exit (int) throw (); using std::exit;' \
1750 'extern "C" void std::exit (int); using std::exit;' \
1751 'extern "C" void exit (int) throw ();' \
1752 'extern "C" void exit (int);' \
1755 cat >conftest.$ac_ext <<_ACEOF
1756 #line 1756 "configure"
1757 #include "confdefs.h"
1768 rm -f conftest.$ac_objext
1769 if { (eval echo "$as_me:1769: \"$ac_compile\"") >&5
1770 (eval $ac_compile) 2>&5
1772 echo "$as_me:1772: \$? = $ac_status" >&5
1773 (exit $ac_status); } &&
1774 { ac_try='test -s conftest.$ac_objext'
1775 { (eval echo "$as_me:1775: \"$ac_try\"") >&5
1778 echo "$as_me:1778: \$? = $ac_status" >&5
1779 (exit $ac_status); }; }; then
1782 echo "$as_me: failed program was:" >&5
1783 cat conftest.$ac_ext >&5
1786 rm -f conftest.$ac_objext conftest.$ac_ext
1787 cat >conftest.$ac_ext <<_ACEOF
1788 #line 1788 "configure"
1789 #include "confdefs.h"
1799 rm -f conftest.$ac_objext
1800 if { (eval echo "$as_me:1800: \"$ac_compile\"") >&5
1801 (eval $ac_compile) 2>&5
1803 echo "$as_me:1803: \$? = $ac_status" >&5
1804 (exit $ac_status); } &&
1805 { ac_try='test -s conftest.$ac_objext'
1806 { (eval echo "$as_me:1806: \"$ac_try\"") >&5
1809 echo "$as_me:1809: \$? = $ac_status" >&5
1810 (exit $ac_status); }; }; then
1813 echo "$as_me: failed program was:" >&5
1814 cat conftest.$ac_ext >&5
1816 rm -f conftest.$ac_objext conftest.$ac_ext
1819 if test -n "$ac_declaration"; then
1820 echo '#ifdef __cplusplus' >>confdefs.h
1821 echo $ac_declaration >>confdefs.h
1822 echo '#endif' >>confdefs.h
1826 echo "$as_me: failed program was:" >&5
1827 cat conftest.$ac_ext >&5
1829 rm -f conftest.$ac_objext conftest.$ac_ext
1831 ac_cpp='$CPP $CPPFLAGS'
1832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1835 ac_main_return=return
1838 if test "$GCC" = yes ; then
1839 echo "$as_me:1839: checking version of $CC" >&5
1840 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1841 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.].*//'`"
1842 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1843 echo "$as_me:1843: result: $GCC_VERSION" >&5
1844 echo "${ECHO_T}$GCC_VERSION" >&6
1847 echo "$as_me:1847: checking for $CC option to accept ANSI C" >&5
1848 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1849 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1850 echo $ECHO_N "(cached) $ECHO_C" >&6
1852 ac_cv_prog_cc_stdc=no
1854 cat >conftest.$ac_ext <<_ACEOF
1855 #line 1855 "configure"
1856 #include "confdefs.h"
1859 #include <sys/types.h>
1860 #include <sys/stat.h>
1861 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1862 struct buf { int x; };
1863 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1864 static char *e (p, i)
1870 static char *f (char * (*g) (char **, int), char **p, ...)
1875 s = g (p, va_arg (v,int));
1879 int test (int i, double x);
1880 struct s1 {int (*f) (int a);};
1881 struct s2 {int (*f) (double a);};
1882 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1888 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1893 # Don't try gcc -ansi; that turns off useful extensions and
1894 # breaks some systems' header files.
1895 # AIX -qlanglvl=ansi
1896 # Ultrix and OSF/1 -std1
1897 # HP-UX 10.20 and later -Ae
1898 # HP-UX older versions -Aa -D_HPUX_SOURCE
1899 # SVR4 -Xc -D__EXTENSIONS__
1900 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1902 CC="$ac_save_CC $ac_arg"
1903 rm -f conftest.$ac_objext
1904 if { (eval echo "$as_me:1904: \"$ac_compile\"") >&5
1905 (eval $ac_compile) 2>&5
1907 echo "$as_me:1907: \$? = $ac_status" >&5
1908 (exit $ac_status); } &&
1909 { ac_try='test -s conftest.$ac_objext'
1910 { (eval echo "$as_me:1910: \"$ac_try\"") >&5
1913 echo "$as_me:1913: \$? = $ac_status" >&5
1914 (exit $ac_status); }; }; then
1915 ac_cv_prog_cc_stdc=$ac_arg
1918 echo "$as_me: failed program was:" >&5
1919 cat conftest.$ac_ext >&5
1921 rm -f conftest.$ac_objext
1923 rm -f conftest.$ac_ext conftest.$ac_objext
1928 case "x$ac_cv_prog_cc_stdc" in
1930 echo "$as_me:1930: result: none needed" >&5
1931 echo "${ECHO_T}none needed" >&6 ;;
1933 echo "$as_me:1933: result: $ac_cv_prog_cc_stdc" >&5
1934 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1935 CC="$CC $ac_cv_prog_cc_stdc" ;;
1938 # This should have been defined by AC_PROG_CC
1941 echo "$as_me:1941: checking \$CC variable" >&5
1942 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
1945 echo "$as_me:1945: result: broken" >&5
1946 echo "${ECHO_T}broken" >&6
1947 { echo "$as_me:1947: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
1948 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
1950 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
1951 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
1953 for cf_arg in $cf_flags
1961 cf_new_extra_cppflags=
1963 for cf_add_cflags in $cf_arg
1965 case $cf_fix_cppflags in
1967 case $cf_add_cflags in
1968 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
1969 case $cf_add_cflags in
1971 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
1973 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
1974 && test -z "${cf_tst_cflags}" \
1975 && cf_fix_cppflags=yes
1977 if test $cf_fix_cppflags = yes ; then
1979 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
1980 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
1983 elif test "${cf_tst_cflags}" = "\"'" ; then
1985 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
1986 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
1996 case $cf_add_cflags in
1998 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2000 CPPFLAGS=`echo "$CPPFLAGS" | \
2001 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2002 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2007 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2008 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2015 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2016 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2023 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2024 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2026 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2028 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2029 && test -z "${cf_tst_cflags}" \
2030 && cf_fix_cppflags=no
2035 if test -n "$cf_new_cflags" ; then
2037 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2038 CFLAGS="${CFLAGS}$cf_new_cflags"
2042 if test -n "$cf_new_cppflags" ; then
2044 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2045 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2049 if test -n "$cf_new_extra_cppflags" ; then
2051 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2052 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2062 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2064 echo "${as_me:-configure}:2064: testing resulting CC: '$CC' ..." 1>&5
2066 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2068 echo "${as_me:-configure}:2068: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2070 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2072 echo "${as_me:-configure}:2072: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2076 echo "$as_me:2076: result: ok" >&5
2077 echo "${ECHO_T}ok" >&6
2081 echo "$as_me:2081: checking for inline" >&5
2082 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2083 if test "${ac_cv_c_inline+set}" = set; then
2084 echo $ECHO_N "(cached) $ECHO_C" >&6
2087 for ac_kw in inline __inline__ __inline; do
2088 cat >conftest.$ac_ext <<_ACEOF
2089 #line 2089 "configure"
2090 #include "confdefs.h"
2092 static $ac_kw int static_foo () {return 0; }
2093 $ac_kw int foo () {return 0; }
2097 rm -f conftest.$ac_objext
2098 if { (eval echo "$as_me:2098: \"$ac_compile\"") >&5
2099 (eval $ac_compile) 2>&5
2101 echo "$as_me:2101: \$? = $ac_status" >&5
2102 (exit $ac_status); } &&
2103 { ac_try='test -s conftest.$ac_objext'
2104 { (eval echo "$as_me:2104: \"$ac_try\"") >&5
2107 echo "$as_me:2107: \$? = $ac_status" >&5
2108 (exit $ac_status); }; }; then
2109 ac_cv_c_inline=$ac_kw; break
2111 echo "$as_me: failed program was:" >&5
2112 cat conftest.$ac_ext >&5
2114 rm -f conftest.$ac_objext conftest.$ac_ext
2118 echo "$as_me:2118: result: $ac_cv_c_inline" >&5
2119 echo "${ECHO_T}$ac_cv_c_inline" >&6
2120 case $ac_cv_c_inline in
2123 cat >>confdefs.h <<\EOF
2127 *) cat >>confdefs.h <<EOF
2128 #define inline $ac_cv_c_inline
2134 ac_cpp='$CPP $CPPFLAGS'
2135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2138 ac_main_return=return
2139 echo "$as_me:2139: checking how to run the C preprocessor" >&5
2140 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2141 # On Suns, sometimes $CPP names a directory.
2142 if test -n "$CPP" && test -d "$CPP"; then
2145 if test -z "$CPP"; then
2146 if test "${ac_cv_prog_CPP+set}" = set; then
2147 echo $ECHO_N "(cached) $ECHO_C" >&6
2149 # Double quotes because CPP needs to be expanded
2150 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2153 for ac_c_preproc_warn_flag in '' yes
2155 # Use a header file that comes with gcc, so configuring glibc
2156 # with a fresh cross-compiler works.
2157 # On the NeXT, cc -E runs the code through the compiler's parser,
2158 # not just through cpp. "Syntax error" is here to catch this case.
2159 cat >conftest.$ac_ext <<_ACEOF
2160 #line 2160 "configure"
2161 #include "confdefs.h"
2165 if { (eval echo "$as_me:2165: \"$ac_cpp conftest.$ac_ext\"") >&5
2166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2168 egrep -v '^ *\+' conftest.er1 >conftest.err
2170 cat conftest.err >&5
2171 echo "$as_me:2171: \$? = $ac_status" >&5
2172 (exit $ac_status); } >/dev/null; then
2173 if test -s conftest.err; then
2174 ac_cpp_err=$ac_c_preproc_warn_flag
2181 if test -z "$ac_cpp_err"; then
2184 echo "$as_me: failed program was:" >&5
2185 cat conftest.$ac_ext >&5
2186 # Broken: fails on valid input.
2189 rm -f conftest.err conftest.$ac_ext
2191 # OK, works on sane cases. Now check whether non-existent headers
2192 # can be detected and how.
2193 cat >conftest.$ac_ext <<_ACEOF
2194 #line 2194 "configure"
2195 #include "confdefs.h"
2196 #include <ac_nonexistent.h>
2198 if { (eval echo "$as_me:2198: \"$ac_cpp conftest.$ac_ext\"") >&5
2199 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2201 egrep -v '^ *\+' conftest.er1 >conftest.err
2203 cat conftest.err >&5
2204 echo "$as_me:2204: \$? = $ac_status" >&5
2205 (exit $ac_status); } >/dev/null; then
2206 if test -s conftest.err; then
2207 ac_cpp_err=$ac_c_preproc_warn_flag
2214 if test -z "$ac_cpp_err"; then
2215 # Broken: success on invalid input.
2218 echo "$as_me: failed program was:" >&5
2219 cat conftest.$ac_ext >&5
2220 # Passes both tests.
2224 rm -f conftest.err conftest.$ac_ext
2227 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2228 rm -f conftest.err conftest.$ac_ext
2229 if $ac_preproc_ok; then
2241 echo "$as_me:2241: result: $CPP" >&5
2242 echo "${ECHO_T}$CPP" >&6
2244 for ac_c_preproc_warn_flag in '' yes
2246 # Use a header file that comes with gcc, so configuring glibc
2247 # with a fresh cross-compiler works.
2248 # On the NeXT, cc -E runs the code through the compiler's parser,
2249 # not just through cpp. "Syntax error" is here to catch this case.
2250 cat >conftest.$ac_ext <<_ACEOF
2251 #line 2251 "configure"
2252 #include "confdefs.h"
2256 if { (eval echo "$as_me:2256: \"$ac_cpp conftest.$ac_ext\"") >&5
2257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2259 egrep -v '^ *\+' conftest.er1 >conftest.err
2261 cat conftest.err >&5
2262 echo "$as_me:2262: \$? = $ac_status" >&5
2263 (exit $ac_status); } >/dev/null; then
2264 if test -s conftest.err; then
2265 ac_cpp_err=$ac_c_preproc_warn_flag
2272 if test -z "$ac_cpp_err"; then
2275 echo "$as_me: failed program was:" >&5
2276 cat conftest.$ac_ext >&5
2277 # Broken: fails on valid input.
2280 rm -f conftest.err conftest.$ac_ext
2282 # OK, works on sane cases. Now check whether non-existent headers
2283 # can be detected and how.
2284 cat >conftest.$ac_ext <<_ACEOF
2285 #line 2285 "configure"
2286 #include "confdefs.h"
2287 #include <ac_nonexistent.h>
2289 if { (eval echo "$as_me:2289: \"$ac_cpp conftest.$ac_ext\"") >&5
2290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2292 egrep -v '^ *\+' conftest.er1 >conftest.err
2294 cat conftest.err >&5
2295 echo "$as_me:2295: \$? = $ac_status" >&5
2296 (exit $ac_status); } >/dev/null; then
2297 if test -s conftest.err; then
2298 ac_cpp_err=$ac_c_preproc_warn_flag
2305 if test -z "$ac_cpp_err"; then
2306 # Broken: success on invalid input.
2309 echo "$as_me: failed program was:" >&5
2310 cat conftest.$ac_ext >&5
2311 # Passes both tests.
2315 rm -f conftest.err conftest.$ac_ext
2318 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2319 rm -f conftest.err conftest.$ac_ext
2320 if $ac_preproc_ok; then
2323 { { echo "$as_me:2323: error: C preprocessor \"$CPP\" fails sanity check" >&5
2324 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2325 { (exit 1); exit 1; }; }
2329 ac_cpp='$CPP $CPPFLAGS'
2330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2333 ac_main_return=return
2335 for ac_prog in mawk gawk nawk awk
2337 # Extract the first word of "$ac_prog", so it can be a program name with args.
2338 set dummy $ac_prog; ac_word=$2
2339 echo "$as_me:2339: checking for $ac_word" >&5
2340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2341 if test "${ac_cv_prog_AWK+set}" = set; then
2342 echo $ECHO_N "(cached) $ECHO_C" >&6
2344 if test -n "$AWK"; then
2345 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2347 ac_save_IFS=$IFS; IFS=$ac_path_separator
2349 for ac_dir in $ac_dummy; do
2351 test -z "$ac_dir" && ac_dir=.
2352 $as_executable_p "$ac_dir/$ac_word" || continue
2353 ac_cv_prog_AWK="$ac_prog"
2354 echo "$as_me:2354: found $ac_dir/$ac_word" >&5
2361 if test -n "$AWK"; then
2362 echo "$as_me:2362: result: $AWK" >&5
2363 echo "${ECHO_T}$AWK" >&6
2365 echo "$as_me:2365: result: no" >&5
2366 echo "${ECHO_T}no" >&6
2369 test -n "$AWK" && break
2372 # Find a good install program. We prefer a C program (faster),
2373 # so one script is as good as another. But avoid the broken or
2374 # incompatible versions:
2375 # SysV /etc/install, /usr/sbin/install
2376 # SunOS /usr/etc/install
2377 # IRIX /sbin/install
2379 # AmigaOS /C/install, which installs bootblocks on floppy discs
2380 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2381 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2382 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2383 # ./install, which can be erroneously created by make from ./install.sh.
2384 echo "$as_me:2384: checking for a BSD compatible install" >&5
2385 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2386 if test -z "$INSTALL"; then
2387 if test "${ac_cv_path_install+set}" = set; then
2388 echo $ECHO_N "(cached) $ECHO_C" >&6
2390 ac_save_IFS=$IFS; IFS=$ac_path_separator
2391 for ac_dir in $PATH; do
2393 # Account for people who put trailing slashes in PATH elements.
2395 / | ./ | .// | /cC/* \
2396 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2399 # OSF1 and SCO ODT 3.0 have their own names for install.
2400 # Don't use installbsd from OSF since it installs stuff as root
2402 for ac_prog in ginstall scoinst install; do
2403 if $as_executable_p "$ac_dir/$ac_prog"; then
2404 if test $ac_prog = install &&
2405 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2406 # AIX install. It has an incompatible calling convention.
2408 elif test $ac_prog = install &&
2409 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2410 # program-specific install script used by HP pwplus--don't use.
2413 ac_cv_path_install="$ac_dir/$ac_prog -c"
2423 if test "${ac_cv_path_install+set}" = set; then
2424 INSTALL=$ac_cv_path_install
2426 # As a last resort, use the slow shell script. We don't cache a
2427 # path for INSTALL within a source directory, because that will
2428 # break other packages using the cache if that directory is
2429 # removed, or if the path is relative.
2430 INSTALL=$ac_install_sh
2433 echo "$as_me:2433: result: $INSTALL" >&5
2434 echo "${ECHO_T}$INSTALL" >&6
2436 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2437 # It thinks the first close brace ends the variable substitution.
2438 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2440 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2442 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2448 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
2449 test -z "$cf_dir" && cf_dir=.
2450 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
2454 for ac_prog in lint cppcheck splint
2456 # Extract the first word of "$ac_prog", so it can be a program name with args.
2457 set dummy $ac_prog; ac_word=$2
2458 echo "$as_me:2458: checking for $ac_word" >&5
2459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2460 if test "${ac_cv_prog_LINT+set}" = set; then
2461 echo $ECHO_N "(cached) $ECHO_C" >&6
2463 if test -n "$LINT"; then
2464 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2466 ac_save_IFS=$IFS; IFS=$ac_path_separator
2468 for ac_dir in $ac_dummy; do
2470 test -z "$ac_dir" && ac_dir=.
2471 $as_executable_p "$ac_dir/$ac_word" || continue
2472 ac_cv_prog_LINT="$ac_prog"
2473 echo "$as_me:2473: found $ac_dir/$ac_word" >&5
2479 LINT=$ac_cv_prog_LINT
2480 if test -n "$LINT"; then
2481 echo "$as_me:2481: result: $LINT" >&5
2482 echo "${ECHO_T}$LINT" >&6
2484 echo "$as_me:2484: result: no" >&5
2485 echo "${ECHO_T}no" >&6
2488 test -n "$LINT" && break
2491 echo "$as_me:2491: checking if filesystem supports mixed-case filenames" >&5
2492 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2493 if test "${cf_cv_mixedcase+set}" = set; then
2494 echo $ECHO_N "(cached) $ECHO_C" >&6
2497 if test "$cross_compiling" = yes ; then
2498 case $target_alias in
2499 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
2507 rm -f conftest CONFTEST
2509 if test -f CONFTEST ; then
2514 rm -f conftest CONFTEST
2518 echo "$as_me:2518: result: $cf_cv_mixedcase" >&5
2519 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2520 test "$cf_cv_mixedcase" = yes &&
2521 cat >>confdefs.h <<\EOF
2522 #define MIXEDCASE_FILENAMES 1
2525 for ac_prog in exctags ctags
2527 # Extract the first word of "$ac_prog", so it can be a program name with args.
2528 set dummy $ac_prog; ac_word=$2
2529 echo "$as_me:2529: checking for $ac_word" >&5
2530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2531 if test "${ac_cv_prog_CTAGS+set}" = set; then
2532 echo $ECHO_N "(cached) $ECHO_C" >&6
2534 if test -n "$CTAGS"; then
2535 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2537 ac_save_IFS=$IFS; IFS=$ac_path_separator
2539 for ac_dir in $ac_dummy; do
2541 test -z "$ac_dir" && ac_dir=.
2542 $as_executable_p "$ac_dir/$ac_word" || continue
2543 ac_cv_prog_CTAGS="$ac_prog"
2544 echo "$as_me:2544: found $ac_dir/$ac_word" >&5
2550 CTAGS=$ac_cv_prog_CTAGS
2551 if test -n "$CTAGS"; then
2552 echo "$as_me:2552: result: $CTAGS" >&5
2553 echo "${ECHO_T}$CTAGS" >&6
2555 echo "$as_me:2555: result: no" >&5
2556 echo "${ECHO_T}no" >&6
2559 test -n "$CTAGS" && break
2562 for ac_prog in exetags etags
2564 # Extract the first word of "$ac_prog", so it can be a program name with args.
2565 set dummy $ac_prog; ac_word=$2
2566 echo "$as_me:2566: checking for $ac_word" >&5
2567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2568 if test "${ac_cv_prog_ETAGS+set}" = set; then
2569 echo $ECHO_N "(cached) $ECHO_C" >&6
2571 if test -n "$ETAGS"; then
2572 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2574 ac_save_IFS=$IFS; IFS=$ac_path_separator
2576 for ac_dir in $ac_dummy; do
2578 test -z "$ac_dir" && ac_dir=.
2579 $as_executable_p "$ac_dir/$ac_word" || continue
2580 ac_cv_prog_ETAGS="$ac_prog"
2581 echo "$as_me:2581: found $ac_dir/$ac_word" >&5
2587 ETAGS=$ac_cv_prog_ETAGS
2588 if test -n "$ETAGS"; then
2589 echo "$as_me:2589: result: $ETAGS" >&5
2590 echo "${ECHO_T}$ETAGS" >&6
2592 echo "$as_me:2592: result: no" >&5
2593 echo "${ECHO_T}no" >&6
2596 test -n "$ETAGS" && break
2599 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2600 set dummy ${CTAGS:-ctags}; ac_word=$2
2601 echo "$as_me:2601: checking for $ac_word" >&5
2602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2603 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2604 echo $ECHO_N "(cached) $ECHO_C" >&6
2606 if test -n "$MAKE_LOWER_TAGS"; then
2607 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2609 ac_save_IFS=$IFS; IFS=$ac_path_separator
2611 for ac_dir in $ac_dummy; do
2613 test -z "$ac_dir" && ac_dir=.
2614 $as_executable_p "$ac_dir/$ac_word" || continue
2615 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2616 echo "$as_me:2616: found $ac_dir/$ac_word" >&5
2620 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2623 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2624 if test -n "$MAKE_LOWER_TAGS"; then
2625 echo "$as_me:2625: result: $MAKE_LOWER_TAGS" >&5
2626 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2628 echo "$as_me:2628: result: no" >&5
2629 echo "${ECHO_T}no" >&6
2632 if test "$cf_cv_mixedcase" = yes ; then
2633 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2634 set dummy ${ETAGS:-etags}; ac_word=$2
2635 echo "$as_me:2635: checking for $ac_word" >&5
2636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2637 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 if test -n "$MAKE_UPPER_TAGS"; then
2641 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2643 ac_save_IFS=$IFS; IFS=$ac_path_separator
2645 for ac_dir in $ac_dummy; do
2647 test -z "$ac_dir" && ac_dir=.
2648 $as_executable_p "$ac_dir/$ac_word" || continue
2649 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2650 echo "$as_me:2650: found $ac_dir/$ac_word" >&5
2654 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2657 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2658 if test -n "$MAKE_UPPER_TAGS"; then
2659 echo "$as_me:2659: result: $MAKE_UPPER_TAGS" >&5
2660 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2662 echo "$as_me:2662: result: no" >&5
2663 echo "${ECHO_T}no" >&6
2670 if test "$MAKE_UPPER_TAGS" = yes ; then
2676 if test "$MAKE_LOWER_TAGS" = yes ; then
2682 echo "$as_me:2682: checking if -lm needed for math functions" >&5
2683 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
2684 if test "${cf_cv_need_libm+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2688 cat >conftest.$ac_ext <<_ACEOF
2689 #line 2689 "configure"
2690 #include "confdefs.h"
2699 double x = rand(); printf("result = %g\n", pow(sin(x),x))
2704 rm -f conftest.$ac_objext conftest$ac_exeext
2705 if { (eval echo "$as_me:2705: \"$ac_link\"") >&5
2706 (eval $ac_link) 2>&5
2708 echo "$as_me:2708: \$? = $ac_status" >&5
2709 (exit $ac_status); } &&
2710 { ac_try='test -s conftest$ac_exeext'
2711 { (eval echo "$as_me:2711: \"$ac_try\"") >&5
2714 echo "$as_me:2714: \$? = $ac_status" >&5
2715 (exit $ac_status); }; }; then
2718 echo "$as_me: failed program was:" >&5
2719 cat conftest.$ac_ext >&5
2722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2724 echo "$as_me:2724: result: $cf_cv_need_libm" >&5
2725 echo "${ECHO_T}$cf_cv_need_libm" >&6
2726 if test "$cf_cv_need_libm" = yes
2734 CC_SHARED_OPTS=unknown
2735 CPPFLAGS="$CPPFLAGS"
2737 DFT_OBJ_SUBDIR=`pwd|sed -e's:.*/::'`
2738 DFT_UPR_MODEL="NORMAL"
2751 PACKAGE="ncurses-examples"
2757 TINFO_LIBS='$(LIBS_CURSES)'
2758 cf_cv_abi_version=""
2759 cf_cv_rel_version=""
2765 if test "$GCC" = yes
2767 cat > conftest.i <<EOF
2769 #define GCC_PRINTF 0
2774 #ifndef GCC_NORETURN
2775 #define GCC_NORETURN /* nothing */
2778 #define GCC_UNUSED /* nothing */
2781 if test "$GCC" = yes
2783 { echo "$as_me:2783: checking for $CC __attribute__ directives..." >&5
2784 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
2785 cat > conftest.$ac_ext <<EOF
2786 #line 2786 "${as_me:-configure}"
2787 #include "confdefs.h"
2788 #include "conftest.h"
2789 #include "conftest.i"
2791 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2793 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
2796 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2798 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
2800 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
2801 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
2802 extern void foo(void) GCC_NORETURN;
2803 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
2805 cf_printf_attribute=no
2806 cf_scanf_attribute=no
2807 for cf_attribute in scanf printf unused noreturn
2810 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
2812 cf_directive="__attribute__(($cf_attribute))"
2813 echo "checking for $CC $cf_directive" 1>&5
2815 case $cf_attribute in
2817 cf_printf_attribute=yes
2818 cat >conftest.h <<EOF
2819 #define GCC_$cf_ATTRIBUTE 1
2823 cf_scanf_attribute=yes
2824 cat >conftest.h <<EOF
2825 #define GCC_$cf_ATTRIBUTE 1
2829 cat >conftest.h <<EOF
2830 #define GCC_$cf_ATTRIBUTE $cf_directive
2835 if { (eval echo "$as_me:2835: \"$ac_compile\"") >&5
2836 (eval $ac_compile) 2>&5
2838 echo "$as_me:2838: \$? = $ac_status" >&5
2839 (exit $ac_status); }; then
2840 test -n "$verbose" && echo "$as_me:2840: result: ... $cf_attribute" >&5
2841 echo "${ECHO_T}... $cf_attribute" >&6
2842 cat conftest.h >>confdefs.h
2843 case $cf_attribute in
2846 cat >>confdefs.h <<EOF
2847 #define GCC_NORETURN $cf_directive
2852 cf_value='/* nothing */'
2853 if test "$cf_printf_attribute" != no ; then
2854 cf_value='__attribute__((format(printf,fmt,var)))'
2856 cat >>confdefs.h <<\EOF
2857 #define GCC_PRINTF 1
2862 cat >>confdefs.h <<EOF
2863 #define GCC_PRINTFLIKE(fmt,var) $cf_value
2868 cf_value='/* nothing */'
2869 if test "$cf_scanf_attribute" != no ; then
2870 cf_value='__attribute__((format(scanf,fmt,var)))'
2872 cat >>confdefs.h <<\EOF
2878 cat >>confdefs.h <<EOF
2879 #define GCC_SCANFLIKE(fmt,var) $cf_value
2885 cat >>confdefs.h <<EOF
2886 #define GCC_UNUSED $cf_directive
2894 fgrep define conftest.i >>confdefs.h
2899 echo "$as_me:2899: checking if you want to work around bogus compiler/loader warnings" >&5
2900 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
2902 # Check whether --enable-string-hacks or --disable-string-hacks was given.
2903 if test "${enable_string_hacks+set}" = set; then
2904 enableval="$enable_string_hacks"
2905 with_string_hacks=$enableval
2907 with_string_hacks=no
2909 echo "$as_me:2909: result: $with_string_hacks" >&5
2910 echo "${ECHO_T}$with_string_hacks" >&6
2912 if test "x$with_string_hacks" = "xyes"; then
2914 cat >>confdefs.h <<\EOF
2915 #define USE_STRING_HACKS 1
2918 { echo "$as_me:2918: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
2919 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
2920 echo "$as_me:2920: checking for strlcat" >&5
2921 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
2922 if test "${ac_cv_func_strlcat+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
2925 cat >conftest.$ac_ext <<_ACEOF
2926 #line 2926 "configure"
2927 #include "confdefs.h"
2928 /* System header to define __stub macros and hopefully few prototypes,
2929 which can conflict with char strlcat (); below. */
2931 /* Override any gcc2 internal prototype to avoid an error. */
2935 /* We use char because int might match the return type of a gcc2
2936 builtin and then its argument prototype would still apply. */
2943 /* The GNU C library defines this for functions which it implements
2944 to always fail with ENOSYS. Some functions are actually named
2945 something starting with __ and the normal name is an alias. */
2946 #if defined (__stub_strlcat) || defined (__stub___strlcat)
2949 f = strlcat; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
2956 rm -f conftest.$ac_objext conftest$ac_exeext
2957 if { (eval echo "$as_me:2957: \"$ac_link\"") >&5
2958 (eval $ac_link) 2>&5
2960 echo "$as_me:2960: \$? = $ac_status" >&5
2961 (exit $ac_status); } &&
2962 { ac_try='test -s conftest$ac_exeext'
2963 { (eval echo "$as_me:2963: \"$ac_try\"") >&5
2966 echo "$as_me:2966: \$? = $ac_status" >&5
2967 (exit $ac_status); }; }; then
2968 ac_cv_func_strlcat=yes
2970 echo "$as_me: failed program was:" >&5
2971 cat conftest.$ac_ext >&5
2972 ac_cv_func_strlcat=no
2974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2976 echo "$as_me:2976: result: $ac_cv_func_strlcat" >&5
2977 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
2978 if test $ac_cv_func_strlcat = yes; then
2980 cat >>confdefs.h <<\EOF
2981 #define HAVE_STRLCAT 1
2986 echo "$as_me:2986: checking for strlcat in -lbsd" >&5
2987 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
2988 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2991 ac_check_lib_save_LIBS=$LIBS
2993 cat >conftest.$ac_ext <<_ACEOF
2994 #line 2994 "configure"
2995 #include "confdefs.h"
2997 /* Override any gcc2 internal prototype to avoid an error. */
3001 /* We use char because int might match the return type of a gcc2
3002 builtin and then its argument prototype would still apply. */
3012 rm -f conftest.$ac_objext conftest$ac_exeext
3013 if { (eval echo "$as_me:3013: \"$ac_link\"") >&5
3014 (eval $ac_link) 2>&5
3016 echo "$as_me:3016: \$? = $ac_status" >&5
3017 (exit $ac_status); } &&
3018 { ac_try='test -s conftest$ac_exeext'
3019 { (eval echo "$as_me:3019: \"$ac_try\"") >&5
3022 echo "$as_me:3022: \$? = $ac_status" >&5
3023 (exit $ac_status); }; }; then
3024 ac_cv_lib_bsd_strlcat=yes
3026 echo "$as_me: failed program was:" >&5
3027 cat conftest.$ac_ext >&5
3028 ac_cv_lib_bsd_strlcat=no
3030 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3031 LIBS=$ac_check_lib_save_LIBS
3033 echo "$as_me:3033: result: $ac_cv_lib_bsd_strlcat" >&5
3034 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
3035 if test $ac_cv_lib_bsd_strlcat = yes; then
3038 # Filter out duplicates - this happens with badly-designed ".pc" files...
3039 for cf_add_1lib in $LIBS
3041 for cf_add_2lib in $cf_add_libs
3043 if test "x$cf_add_1lib" = "x$cf_add_2lib"
3049 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
3053 for ac_header in bsd/string.h
3055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3056 echo "$as_me:3056: checking for $ac_header" >&5
3057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3058 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3059 echo $ECHO_N "(cached) $ECHO_C" >&6
3061 cat >conftest.$ac_ext <<_ACEOF
3062 #line 3062 "configure"
3063 #include "confdefs.h"
3064 #include <$ac_header>
3066 if { (eval echo "$as_me:3066: \"$ac_cpp conftest.$ac_ext\"") >&5
3067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3069 egrep -v '^ *\+' conftest.er1 >conftest.err
3071 cat conftest.err >&5
3072 echo "$as_me:3072: \$? = $ac_status" >&5
3073 (exit $ac_status); } >/dev/null; then
3074 if test -s conftest.err; then
3075 ac_cpp_err=$ac_c_preproc_warn_flag
3082 if test -z "$ac_cpp_err"; then
3083 eval "$as_ac_Header=yes"
3085 echo "$as_me: failed program was:" >&5
3086 cat conftest.$ac_ext >&5
3087 eval "$as_ac_Header=no"
3089 rm -f conftest.err conftest.$ac_ext
3091 echo "$as_me:3091: result: `eval echo '${'$as_ac_Header'}'`" >&5
3092 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3094 cat >>confdefs.h <<EOF
3095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3101 cat >>confdefs.h <<\EOF
3102 #define HAVE_STRLCAT 1
3109 for ac_func in strlcpy snprintf
3111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3112 echo "$as_me:3112: checking for $ac_func" >&5
3113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3114 if eval "test \"\${$as_ac_var+set}\" = set"; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
3117 cat >conftest.$ac_ext <<_ACEOF
3118 #line 3118 "configure"
3119 #include "confdefs.h"
3120 /* System header to define __stub macros and hopefully few prototypes,
3121 which can conflict with char $ac_func (); below. */
3123 /* Override any gcc2 internal prototype to avoid an error. */
3127 /* We use char because int might match the return type of a gcc2
3128 builtin and then its argument prototype would still apply. */
3135 /* The GNU C library defines this for functions which it implements
3136 to always fail with ENOSYS. Some functions are actually named
3137 something starting with __ and the normal name is an alias. */
3138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3141 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
3148 rm -f conftest.$ac_objext conftest$ac_exeext
3149 if { (eval echo "$as_me:3149: \"$ac_link\"") >&5
3150 (eval $ac_link) 2>&5
3152 echo "$as_me:3152: \$? = $ac_status" >&5
3153 (exit $ac_status); } &&
3154 { ac_try='test -s conftest$ac_exeext'
3155 { (eval echo "$as_me:3155: \"$ac_try\"") >&5
3158 echo "$as_me:3158: \$? = $ac_status" >&5
3159 (exit $ac_status); }; }; then
3160 eval "$as_ac_var=yes"
3162 echo "$as_me: failed program was:" >&5
3163 cat conftest.$ac_ext >&5
3164 eval "$as_ac_var=no"
3166 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3168 echo "$as_me:3168: result: `eval echo '${'$as_ac_var'}'`" >&5
3169 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3170 if test `eval echo '${'$as_ac_var'}'` = yes; then
3171 cat >>confdefs.h <<EOF
3172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3181 cf_POSIX_C_SOURCE=199506L
3186 cf_xopen_source="-D_ALL_SOURCE"
3192 cf_xopen_source="-D_APPLE_C_SOURCE"
3195 cf_xopen_source="-D_DARWIN_C_SOURCE"
3198 (freebsd*|dragonfly*)
3199 # 5.x headers associate
3200 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
3201 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
3202 cf_POSIX_C_SOURCE=200112L
3204 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3207 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
3210 cf_xopen_source="-D_HPUX_SOURCE"
3213 cf_xopen_source="-D_SGI_SOURCE"
3216 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
3218 echo "$as_me:3218: checking if we must define _GNU_SOURCE" >&5
3219 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
3220 if test "${cf_cv_gnu_source+set}" = set; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
3224 cat >conftest.$ac_ext <<_ACEOF
3225 #line 3225 "configure"
3226 #include "confdefs.h"
3227 #include <sys/types.h>
3232 #ifndef _XOPEN_SOURCE
3239 rm -f conftest.$ac_objext
3240 if { (eval echo "$as_me:3240: \"$ac_compile\"") >&5
3241 (eval $ac_compile) 2>&5
3243 echo "$as_me:3243: \$? = $ac_status" >&5
3244 (exit $ac_status); } &&
3245 { ac_try='test -s conftest.$ac_objext'
3246 { (eval echo "$as_me:3246: \"$ac_try\"") >&5
3249 echo "$as_me:3249: \$? = $ac_status" >&5
3250 (exit $ac_status); }; }; then
3253 echo "$as_me: failed program was:" >&5
3254 cat conftest.$ac_ext >&5
3256 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
3257 cat >conftest.$ac_ext <<_ACEOF
3258 #line 3258 "configure"
3259 #include "confdefs.h"
3260 #include <sys/types.h>
3265 #ifdef _XOPEN_SOURCE
3272 rm -f conftest.$ac_objext
3273 if { (eval echo "$as_me:3273: \"$ac_compile\"") >&5
3274 (eval $ac_compile) 2>&5
3276 echo "$as_me:3276: \$? = $ac_status" >&5
3277 (exit $ac_status); } &&
3278 { ac_try='test -s conftest.$ac_objext'
3279 { (eval echo "$as_me:3279: \"$ac_try\"") >&5
3282 echo "$as_me:3282: \$? = $ac_status" >&5
3283 (exit $ac_status); }; }; then
3286 echo "$as_me: failed program was:" >&5
3287 cat conftest.$ac_ext >&5
3288 cf_cv_gnu_source=yes
3290 rm -f conftest.$ac_objext conftest.$ac_ext
3294 rm -f conftest.$ac_objext conftest.$ac_ext
3297 echo "$as_me:3297: result: $cf_cv_gnu_source" >&5
3298 echo "${ECHO_T}$cf_cv_gnu_source" >&6
3300 if test "$cf_cv_gnu_source" = yes
3302 echo "$as_me:3302: checking if we should also define _DEFAULT_SOURCE" >&5
3303 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
3304 if test "${cf_cv_default_source+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3308 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
3309 cat >conftest.$ac_ext <<_ACEOF
3310 #line 3310 "configure"
3311 #include "confdefs.h"
3312 #include <sys/types.h>
3317 #ifdef _DEFAULT_SOURCE
3324 rm -f conftest.$ac_objext
3325 if { (eval echo "$as_me:3325: \"$ac_compile\"") >&5
3326 (eval $ac_compile) 2>&5
3328 echo "$as_me:3328: \$? = $ac_status" >&5
3329 (exit $ac_status); } &&
3330 { ac_try='test -s conftest.$ac_objext'
3331 { (eval echo "$as_me:3331: \"$ac_try\"") >&5
3334 echo "$as_me:3334: \$? = $ac_status" >&5
3335 (exit $ac_status); }; }; then
3336 cf_cv_default_source=no
3338 echo "$as_me: failed program was:" >&5
3339 cat conftest.$ac_ext >&5
3340 cf_cv_default_source=yes
3342 rm -f conftest.$ac_objext conftest.$ac_ext
3345 echo "$as_me:3345: result: $cf_cv_default_source" >&5
3346 echo "${ECHO_T}$cf_cv_default_source" >&6
3347 test "$cf_cv_default_source" = yes && CPPFLAGS="$CPPFLAGS -D_DEFAULT_SOURCE"
3352 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
3355 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
3358 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3360 cf_save_CFLAGS="$CFLAGS"
3361 cf_save_CPPFLAGS="$CPPFLAGS"
3363 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3364 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3365 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3367 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3368 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3369 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3371 echo "$as_me:3371: checking if we should define _POSIX_C_SOURCE" >&5
3372 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3373 if test "${cf_cv_posix_c_source+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 echo "${as_me:-configure}:3377: testing if the symbol is already defined go no further ..." 1>&5
3379 cat >conftest.$ac_ext <<_ACEOF
3380 #line 3380 "configure"
3381 #include "confdefs.h"
3382 #include <sys/types.h>
3387 #ifndef _POSIX_C_SOURCE
3394 rm -f conftest.$ac_objext
3395 if { (eval echo "$as_me:3395: \"$ac_compile\"") >&5
3396 (eval $ac_compile) 2>&5
3398 echo "$as_me:3398: \$? = $ac_status" >&5
3399 (exit $ac_status); } &&
3400 { ac_try='test -s conftest.$ac_objext'
3401 { (eval echo "$as_me:3401: \"$ac_try\"") >&5
3404 echo "$as_me:3404: \$? = $ac_status" >&5
3405 (exit $ac_status); }; }; then
3406 cf_cv_posix_c_source=no
3408 echo "$as_me: failed program was:" >&5
3409 cat conftest.$ac_ext >&5
3410 cf_want_posix_source=no
3411 case .$cf_POSIX_C_SOURCE in
3413 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3416 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3417 cf_want_posix_source=yes
3420 cf_want_posix_source=yes
3423 if test "$cf_want_posix_source" = yes ; then
3424 cat >conftest.$ac_ext <<_ACEOF
3425 #line 3425 "configure"
3426 #include "confdefs.h"
3427 #include <sys/types.h>
3432 #ifdef _POSIX_SOURCE
3439 rm -f conftest.$ac_objext
3440 if { (eval echo "$as_me:3440: \"$ac_compile\"") >&5
3441 (eval $ac_compile) 2>&5
3443 echo "$as_me:3443: \$? = $ac_status" >&5
3444 (exit $ac_status); } &&
3445 { ac_try='test -s conftest.$ac_objext'
3446 { (eval echo "$as_me:3446: \"$ac_try\"") >&5
3449 echo "$as_me:3449: \$? = $ac_status" >&5
3450 (exit $ac_status); }; }; then
3453 echo "$as_me: failed program was:" >&5
3454 cat conftest.$ac_ext >&5
3455 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3457 rm -f conftest.$ac_objext conftest.$ac_ext
3460 echo "${as_me:-configure}:3460: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3462 CFLAGS="$cf_trim_CFLAGS"
3463 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3465 echo "${as_me:-configure}:3465: testing if the second compile does not leave our definition intact error ..." 1>&5
3467 cat >conftest.$ac_ext <<_ACEOF
3468 #line 3468 "configure"
3469 #include "confdefs.h"
3470 #include <sys/types.h>
3475 #ifndef _POSIX_C_SOURCE
3482 rm -f conftest.$ac_objext
3483 if { (eval echo "$as_me:3483: \"$ac_compile\"") >&5
3484 (eval $ac_compile) 2>&5
3486 echo "$as_me:3486: \$? = $ac_status" >&5
3487 (exit $ac_status); } &&
3488 { ac_try='test -s conftest.$ac_objext'
3489 { (eval echo "$as_me:3489: \"$ac_try\"") >&5
3492 echo "$as_me:3492: \$? = $ac_status" >&5
3493 (exit $ac_status); }; }; then
3496 echo "$as_me: failed program was:" >&5
3497 cat conftest.$ac_ext >&5
3498 cf_cv_posix_c_source=no
3500 rm -f conftest.$ac_objext conftest.$ac_ext
3501 CFLAGS="$cf_save_CFLAGS"
3502 CPPFLAGS="$cf_save_CPPFLAGS"
3505 rm -f conftest.$ac_objext conftest.$ac_ext
3508 echo "$as_me:3508: result: $cf_cv_posix_c_source" >&5
3509 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3511 if test "$cf_cv_posix_c_source" != no ; then
3512 CFLAGS="$cf_trim_CFLAGS"
3513 CPPFLAGS="$cf_trim_CPPFLAGS"
3518 cf_new_extra_cppflags=
3520 for cf_add_cflags in $cf_cv_posix_c_source
3522 case $cf_fix_cppflags in
3524 case $cf_add_cflags in
3525 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3526 case $cf_add_cflags in
3528 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3530 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3531 && test -z "${cf_tst_cflags}" \
3532 && cf_fix_cppflags=yes
3534 if test $cf_fix_cppflags = yes ; then
3536 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3537 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3540 elif test "${cf_tst_cflags}" = "\"'" ; then
3542 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3543 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3553 case $cf_add_cflags in
3555 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3557 CPPFLAGS=`echo "$CPPFLAGS" | \
3558 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3559 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3564 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3565 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3572 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3573 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3580 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3581 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3583 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3585 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3586 && test -z "${cf_tst_cflags}" \
3587 && cf_fix_cppflags=no
3592 if test -n "$cf_new_cflags" ; then
3594 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3595 CFLAGS="${CFLAGS}$cf_new_cflags"
3599 if test -n "$cf_new_cppflags" ; then
3601 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3602 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3606 if test -n "$cf_new_extra_cppflags" ; then
3608 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3609 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3617 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
3620 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
3621 cf_xopen_source="-D_BSD_SOURCE"
3625 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
3628 cf_xopen_source="-D_OSF_SOURCE"
3631 cf_xopen_source="-D_QNX_SOURCE"
3634 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
3637 cf_xopen_source="-D__EXTENSIONS__"
3638 cf_cv_xopen_source=broken
3640 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
3646 echo "$as_me:3646: checking if we should define _XOPEN_SOURCE" >&5
3647 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3648 if test "${cf_cv_xopen_source+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3652 cat >conftest.$ac_ext <<_ACEOF
3653 #line 3653 "configure"
3654 #include "confdefs.h"
3658 #include <sys/types.h>
3664 #ifndef _XOPEN_SOURCE
3671 rm -f conftest.$ac_objext
3672 if { (eval echo "$as_me:3672: \"$ac_compile\"") >&5
3673 (eval $ac_compile) 2>&5
3675 echo "$as_me:3675: \$? = $ac_status" >&5
3676 (exit $ac_status); } &&
3677 { ac_try='test -s conftest.$ac_objext'
3678 { (eval echo "$as_me:3678: \"$ac_try\"") >&5
3681 echo "$as_me:3681: \$? = $ac_status" >&5
3682 (exit $ac_status); }; }; then
3683 cf_cv_xopen_source=no
3685 echo "$as_me: failed program was:" >&5
3686 cat conftest.$ac_ext >&5
3688 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3689 cat >conftest.$ac_ext <<_ACEOF
3690 #line 3690 "configure"
3691 #include "confdefs.h"
3695 #include <sys/types.h>
3701 #ifdef _XOPEN_SOURCE
3708 rm -f conftest.$ac_objext
3709 if { (eval echo "$as_me:3709: \"$ac_compile\"") >&5
3710 (eval $ac_compile) 2>&5
3712 echo "$as_me:3712: \$? = $ac_status" >&5
3713 (exit $ac_status); } &&
3714 { ac_try='test -s conftest.$ac_objext'
3715 { (eval echo "$as_me:3715: \"$ac_try\"") >&5
3718 echo "$as_me:3718: \$? = $ac_status" >&5
3719 (exit $ac_status); }; }; then
3720 cf_cv_xopen_source=no
3722 echo "$as_me: failed program was:" >&5
3723 cat conftest.$ac_ext >&5
3724 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3726 rm -f conftest.$ac_objext conftest.$ac_ext
3730 rm -f conftest.$ac_objext conftest.$ac_ext
3733 echo "$as_me:3733: result: $cf_cv_xopen_source" >&5
3734 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3736 if test "$cf_cv_xopen_source" != no ; then
3738 CFLAGS=`echo "$CFLAGS" | \
3739 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3740 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3742 CPPFLAGS=`echo "$CPPFLAGS" | \
3743 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3744 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3746 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3751 cf_new_extra_cppflags=
3753 for cf_add_cflags in $cf_temp_xopen_source
3755 case $cf_fix_cppflags in
3757 case $cf_add_cflags in
3758 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3759 case $cf_add_cflags in
3761 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3763 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3764 && test -z "${cf_tst_cflags}" \
3765 && cf_fix_cppflags=yes
3767 if test $cf_fix_cppflags = yes ; then
3769 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3770 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3773 elif test "${cf_tst_cflags}" = "\"'" ; then
3775 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3776 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3786 case $cf_add_cflags in
3788 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3790 CPPFLAGS=`echo "$CPPFLAGS" | \
3791 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3792 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3797 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3798 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3805 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3806 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3813 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3814 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3816 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3818 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3819 && test -z "${cf_tst_cflags}" \
3820 && cf_fix_cppflags=no
3825 if test -n "$cf_new_cflags" ; then
3827 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3828 CFLAGS="${CFLAGS}$cf_new_cflags"
3832 if test -n "$cf_new_cppflags" ; then
3834 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3835 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3839 if test -n "$cf_new_extra_cppflags" ; then
3841 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3842 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3848 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3850 cf_save_CFLAGS="$CFLAGS"
3851 cf_save_CPPFLAGS="$CPPFLAGS"
3853 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3854 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3855 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3857 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3858 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3859 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3861 echo "$as_me:3861: checking if we should define _POSIX_C_SOURCE" >&5
3862 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3863 if test "${cf_cv_posix_c_source+set}" = set; then
3864 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 echo "${as_me:-configure}:3867: testing if the symbol is already defined go no further ..." 1>&5
3869 cat >conftest.$ac_ext <<_ACEOF
3870 #line 3870 "configure"
3871 #include "confdefs.h"
3872 #include <sys/types.h>
3877 #ifndef _POSIX_C_SOURCE
3884 rm -f conftest.$ac_objext
3885 if { (eval echo "$as_me:3885: \"$ac_compile\"") >&5
3886 (eval $ac_compile) 2>&5
3888 echo "$as_me:3888: \$? = $ac_status" >&5
3889 (exit $ac_status); } &&
3890 { ac_try='test -s conftest.$ac_objext'
3891 { (eval echo "$as_me:3891: \"$ac_try\"") >&5
3894 echo "$as_me:3894: \$? = $ac_status" >&5
3895 (exit $ac_status); }; }; then
3896 cf_cv_posix_c_source=no
3898 echo "$as_me: failed program was:" >&5
3899 cat conftest.$ac_ext >&5
3900 cf_want_posix_source=no
3901 case .$cf_POSIX_C_SOURCE in
3903 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3906 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3907 cf_want_posix_source=yes
3910 cf_want_posix_source=yes
3913 if test "$cf_want_posix_source" = yes ; then
3914 cat >conftest.$ac_ext <<_ACEOF
3915 #line 3915 "configure"
3916 #include "confdefs.h"
3917 #include <sys/types.h>
3922 #ifdef _POSIX_SOURCE
3929 rm -f conftest.$ac_objext
3930 if { (eval echo "$as_me:3930: \"$ac_compile\"") >&5
3931 (eval $ac_compile) 2>&5
3933 echo "$as_me:3933: \$? = $ac_status" >&5
3934 (exit $ac_status); } &&
3935 { ac_try='test -s conftest.$ac_objext'
3936 { (eval echo "$as_me:3936: \"$ac_try\"") >&5
3939 echo "$as_me:3939: \$? = $ac_status" >&5
3940 (exit $ac_status); }; }; then
3943 echo "$as_me: failed program was:" >&5
3944 cat conftest.$ac_ext >&5
3945 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3947 rm -f conftest.$ac_objext conftest.$ac_ext
3950 echo "${as_me:-configure}:3950: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3952 CFLAGS="$cf_trim_CFLAGS"
3953 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3955 echo "${as_me:-configure}:3955: testing if the second compile does not leave our definition intact error ..." 1>&5
3957 cat >conftest.$ac_ext <<_ACEOF
3958 #line 3958 "configure"
3959 #include "confdefs.h"
3960 #include <sys/types.h>
3965 #ifndef _POSIX_C_SOURCE
3972 rm -f conftest.$ac_objext
3973 if { (eval echo "$as_me:3973: \"$ac_compile\"") >&5
3974 (eval $ac_compile) 2>&5
3976 echo "$as_me:3976: \$? = $ac_status" >&5
3977 (exit $ac_status); } &&
3978 { ac_try='test -s conftest.$ac_objext'
3979 { (eval echo "$as_me:3979: \"$ac_try\"") >&5
3982 echo "$as_me:3982: \$? = $ac_status" >&5
3983 (exit $ac_status); }; }; then
3986 echo "$as_me: failed program was:" >&5
3987 cat conftest.$ac_ext >&5
3988 cf_cv_posix_c_source=no
3990 rm -f conftest.$ac_objext conftest.$ac_ext
3991 CFLAGS="$cf_save_CFLAGS"
3992 CPPFLAGS="$cf_save_CPPFLAGS"
3995 rm -f conftest.$ac_objext conftest.$ac_ext
3998 echo "$as_me:3998: result: $cf_cv_posix_c_source" >&5
3999 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
4001 if test "$cf_cv_posix_c_source" != no ; then
4002 CFLAGS="$cf_trim_CFLAGS"
4003 CPPFLAGS="$cf_trim_CPPFLAGS"
4008 cf_new_extra_cppflags=
4010 for cf_add_cflags in $cf_cv_posix_c_source
4012 case $cf_fix_cppflags in
4014 case $cf_add_cflags in
4015 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4016 case $cf_add_cflags in
4018 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4020 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4021 && test -z "${cf_tst_cflags}" \
4022 && cf_fix_cppflags=yes
4024 if test $cf_fix_cppflags = yes ; then
4026 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4027 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4030 elif test "${cf_tst_cflags}" = "\"'" ; then
4032 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4033 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4043 case $cf_add_cflags in
4045 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4047 CPPFLAGS=`echo "$CPPFLAGS" | \
4048 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4049 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4054 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4055 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4062 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4063 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4070 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4071 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4073 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4075 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4076 && test -z "${cf_tst_cflags}" \
4077 && cf_fix_cppflags=no
4082 if test -n "$cf_new_cflags" ; then
4084 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4085 CFLAGS="${CFLAGS}$cf_new_cflags"
4089 if test -n "$cf_new_cppflags" ; then
4091 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4092 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4096 if test -n "$cf_new_extra_cppflags" ; then
4098 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4099 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4108 if test -n "$cf_xopen_source" ; then
4113 cf_new_extra_cppflags=
4115 for cf_add_cflags in $cf_xopen_source
4117 case $cf_fix_cppflags in
4119 case $cf_add_cflags in
4120 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4121 case $cf_add_cflags in
4123 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4125 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4126 && test -z "${cf_tst_cflags}" \
4127 && cf_fix_cppflags=yes
4129 if test $cf_fix_cppflags = yes ; then
4131 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4132 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4135 elif test "${cf_tst_cflags}" = "\"'" ; then
4137 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4138 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4148 case $cf_add_cflags in
4150 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4152 CPPFLAGS=`echo "$CPPFLAGS" | \
4153 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4154 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4159 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4160 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4167 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4168 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4175 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4176 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4178 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4180 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4181 && test -z "${cf_tst_cflags}" \
4182 && cf_fix_cppflags=no
4187 if test -n "$cf_new_cflags" ; then
4188 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
4190 echo "${as_me:-configure}:4190: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
4192 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4193 CFLAGS="${CFLAGS}$cf_new_cflags"
4197 if test -n "$cf_new_cppflags" ; then
4198 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
4200 echo "${as_me:-configure}:4200: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
4202 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4203 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4207 if test -n "$cf_new_extra_cppflags" ; then
4208 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
4210 echo "${as_me:-configure}:4210: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
4212 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4213 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4219 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
4220 echo "$as_me:4220: checking if _XOPEN_SOURCE really is set" >&5
4221 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
4222 cat >conftest.$ac_ext <<_ACEOF
4223 #line 4223 "configure"
4224 #include "confdefs.h"
4230 #ifndef _XOPEN_SOURCE
4237 rm -f conftest.$ac_objext
4238 if { (eval echo "$as_me:4238: \"$ac_compile\"") >&5
4239 (eval $ac_compile) 2>&5
4241 echo "$as_me:4241: \$? = $ac_status" >&5
4242 (exit $ac_status); } &&
4243 { ac_try='test -s conftest.$ac_objext'
4244 { (eval echo "$as_me:4244: \"$ac_try\"") >&5
4247 echo "$as_me:4247: \$? = $ac_status" >&5
4248 (exit $ac_status); }; }; then
4249 cf_XOPEN_SOURCE_set=yes
4251 echo "$as_me: failed program was:" >&5
4252 cat conftest.$ac_ext >&5
4253 cf_XOPEN_SOURCE_set=no
4255 rm -f conftest.$ac_objext conftest.$ac_ext
4256 echo "$as_me:4256: result: $cf_XOPEN_SOURCE_set" >&5
4257 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
4258 if test $cf_XOPEN_SOURCE_set = yes
4260 cat >conftest.$ac_ext <<_ACEOF
4261 #line 4261 "configure"
4262 #include "confdefs.h"
4268 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
4275 rm -f conftest.$ac_objext
4276 if { (eval echo "$as_me:4276: \"$ac_compile\"") >&5
4277 (eval $ac_compile) 2>&5
4279 echo "$as_me:4279: \$? = $ac_status" >&5
4280 (exit $ac_status); } &&
4281 { ac_try='test -s conftest.$ac_objext'
4282 { (eval echo "$as_me:4282: \"$ac_try\"") >&5
4285 echo "$as_me:4285: \$? = $ac_status" >&5
4286 (exit $ac_status); }; }; then
4287 cf_XOPEN_SOURCE_set_ok=yes
4289 echo "$as_me: failed program was:" >&5
4290 cat conftest.$ac_ext >&5
4291 cf_XOPEN_SOURCE_set_ok=no
4293 rm -f conftest.$ac_objext conftest.$ac_ext
4294 if test $cf_XOPEN_SOURCE_set_ok = no
4296 { echo "$as_me:4296: WARNING: _XOPEN_SOURCE is lower than requested" >&5
4297 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
4301 echo "$as_me:4301: checking if we should define _XOPEN_SOURCE" >&5
4302 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
4303 if test "${cf_cv_xopen_source+set}" = set; then
4304 echo $ECHO_N "(cached) $ECHO_C" >&6
4307 cat >conftest.$ac_ext <<_ACEOF
4308 #line 4308 "configure"
4309 #include "confdefs.h"
4313 #include <sys/types.h>
4319 #ifndef _XOPEN_SOURCE
4326 rm -f conftest.$ac_objext
4327 if { (eval echo "$as_me:4327: \"$ac_compile\"") >&5
4328 (eval $ac_compile) 2>&5
4330 echo "$as_me:4330: \$? = $ac_status" >&5
4331 (exit $ac_status); } &&
4332 { ac_try='test -s conftest.$ac_objext'
4333 { (eval echo "$as_me:4333: \"$ac_try\"") >&5
4336 echo "$as_me:4336: \$? = $ac_status" >&5
4337 (exit $ac_status); }; }; then
4338 cf_cv_xopen_source=no
4340 echo "$as_me: failed program was:" >&5
4341 cat conftest.$ac_ext >&5
4343 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
4344 cat >conftest.$ac_ext <<_ACEOF
4345 #line 4345 "configure"
4346 #include "confdefs.h"
4350 #include <sys/types.h>
4356 #ifdef _XOPEN_SOURCE
4363 rm -f conftest.$ac_objext
4364 if { (eval echo "$as_me:4364: \"$ac_compile\"") >&5
4365 (eval $ac_compile) 2>&5
4367 echo "$as_me:4367: \$? = $ac_status" >&5
4368 (exit $ac_status); } &&
4369 { ac_try='test -s conftest.$ac_objext'
4370 { (eval echo "$as_me:4370: \"$ac_try\"") >&5
4373 echo "$as_me:4373: \$? = $ac_status" >&5
4374 (exit $ac_status); }; }; then
4375 cf_cv_xopen_source=no
4377 echo "$as_me: failed program was:" >&5
4378 cat conftest.$ac_ext >&5
4379 cf_cv_xopen_source=$cf_XOPEN_SOURCE
4381 rm -f conftest.$ac_objext conftest.$ac_ext
4385 rm -f conftest.$ac_objext conftest.$ac_ext
4388 echo "$as_me:4388: result: $cf_cv_xopen_source" >&5
4389 echo "${ECHO_T}$cf_cv_xopen_source" >&6
4391 if test "$cf_cv_xopen_source" != no ; then
4393 CFLAGS=`echo "$CFLAGS" | \
4394 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4395 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4397 CPPFLAGS=`echo "$CPPFLAGS" | \
4398 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4399 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4401 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
4406 cf_new_extra_cppflags=
4408 for cf_add_cflags in $cf_temp_xopen_source
4410 case $cf_fix_cppflags in
4412 case $cf_add_cflags in
4413 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4414 case $cf_add_cflags in
4416 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4418 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4419 && test -z "${cf_tst_cflags}" \
4420 && cf_fix_cppflags=yes
4422 if test $cf_fix_cppflags = yes ; then
4424 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4425 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4428 elif test "${cf_tst_cflags}" = "\"'" ; then
4430 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4431 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4441 case $cf_add_cflags in
4443 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4445 CPPFLAGS=`echo "$CPPFLAGS" | \
4446 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4447 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4452 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4453 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4460 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4461 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4468 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4469 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4471 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4473 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4474 && test -z "${cf_tst_cflags}" \
4475 && cf_fix_cppflags=no
4480 if test -n "$cf_new_cflags" ; then
4482 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4483 CFLAGS="${CFLAGS}$cf_new_cflags"
4487 if test -n "$cf_new_cppflags" ; then
4489 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4490 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4494 if test -n "$cf_new_extra_cppflags" ; then
4496 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4497 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4506 echo "$as_me:4506: checking for signal global datatype" >&5
4507 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
4508 if test "${cf_cv_sig_atomic_t+set}" = set; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 "volatile sig_atomic_t" \
4517 cat >conftest.$ac_ext <<_ACEOF
4518 #line 4518 "configure"
4519 #include "confdefs.h"
4521 #include <sys/types.h>
4527 static void handler(int sig)
4534 signal(SIGINT, handler);
4540 rm -f conftest.$ac_objext
4541 if { (eval echo "$as_me:4541: \"$ac_compile\"") >&5
4542 (eval $ac_compile) 2>&5
4544 echo "$as_me:4544: \$? = $ac_status" >&5
4545 (exit $ac_status); } &&
4546 { ac_try='test -s conftest.$ac_objext'
4547 { (eval echo "$as_me:4547: \"$ac_try\"") >&5
4550 echo "$as_me:4550: \$? = $ac_status" >&5
4551 (exit $ac_status); }; }; then
4552 cf_cv_sig_atomic_t=$cf_type
4554 echo "$as_me: failed program was:" >&5
4555 cat conftest.$ac_ext >&5
4556 cf_cv_sig_atomic_t=no
4558 rm -f conftest.$ac_objext conftest.$ac_ext
4559 test "$cf_cv_sig_atomic_t" != no && break
4564 echo "$as_me:4564: result: $cf_cv_sig_atomic_t" >&5
4565 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
4566 test "$cf_cv_sig_atomic_t" != no &&
4567 cat >>confdefs.h <<EOF
4568 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
4571 # Work around breakage on OS X
4573 echo "$as_me:4573: checking if SIGWINCH is defined" >&5
4574 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
4575 if test "${cf_cv_define_sigwinch+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4579 cat >conftest.$ac_ext <<_ACEOF
4580 #line 4580 "configure"
4581 #include "confdefs.h"
4583 #include <sys/types.h>
4584 #include <sys/signal.h>
4594 rm -f conftest.$ac_objext
4595 if { (eval echo "$as_me:4595: \"$ac_compile\"") >&5
4596 (eval $ac_compile) 2>&5
4598 echo "$as_me:4598: \$? = $ac_status" >&5
4599 (exit $ac_status); } &&
4600 { ac_try='test -s conftest.$ac_objext'
4601 { (eval echo "$as_me:4601: \"$ac_try\"") >&5
4604 echo "$as_me:4604: \$? = $ac_status" >&5
4605 (exit $ac_status); }; }; then
4606 cf_cv_define_sigwinch=yes
4608 echo "$as_me: failed program was:" >&5
4609 cat conftest.$ac_ext >&5
4610 cat >conftest.$ac_ext <<_ACEOF
4611 #line 4611 "configure"
4612 #include "confdefs.h"
4614 #undef _XOPEN_SOURCE
4615 #undef _POSIX_SOURCE
4616 #undef _POSIX_C_SOURCE
4617 #include <sys/types.h>
4618 #include <sys/signal.h>
4628 rm -f conftest.$ac_objext
4629 if { (eval echo "$as_me:4629: \"$ac_compile\"") >&5
4630 (eval $ac_compile) 2>&5
4632 echo "$as_me:4632: \$? = $ac_status" >&5
4633 (exit $ac_status); } &&
4634 { ac_try='test -s conftest.$ac_objext'
4635 { (eval echo "$as_me:4635: \"$ac_try\"") >&5
4638 echo "$as_me:4638: \$? = $ac_status" >&5
4639 (exit $ac_status); }; }; then
4640 cf_cv_define_sigwinch=maybe
4642 echo "$as_me: failed program was:" >&5
4643 cat conftest.$ac_ext >&5
4644 cf_cv_define_sigwinch=no
4646 rm -f conftest.$ac_objext conftest.$ac_ext
4649 rm -f conftest.$ac_objext conftest.$ac_ext
4652 echo "$as_me:4652: result: $cf_cv_define_sigwinch" >&5
4653 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
4655 if test "$cf_cv_define_sigwinch" = maybe ; then
4656 echo "$as_me:4656: checking for actual SIGWINCH definition" >&5
4657 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
4658 if test "${cf_cv_fixup_sigwinch+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 cf_cv_fixup_sigwinch=unknown
4664 while test $cf_sigwinch != 1
4666 cat >conftest.$ac_ext <<_ACEOF
4667 #line 4667 "configure"
4668 #include "confdefs.h"
4670 #undef _XOPEN_SOURCE
4671 #undef _POSIX_SOURCE
4672 #undef _POSIX_C_SOURCE
4673 #include <sys/types.h>
4674 #include <sys/signal.h>
4680 #if SIGWINCH != $cf_sigwinch
4688 rm -f conftest.$ac_objext
4689 if { (eval echo "$as_me:4689: \"$ac_compile\"") >&5
4690 (eval $ac_compile) 2>&5
4692 echo "$as_me:4692: \$? = $ac_status" >&5
4693 (exit $ac_status); } &&
4694 { ac_try='test -s conftest.$ac_objext'
4695 { (eval echo "$as_me:4695: \"$ac_try\"") >&5
4698 echo "$as_me:4698: \$? = $ac_status" >&5
4699 (exit $ac_status); }; }; then
4700 cf_cv_fixup_sigwinch=$cf_sigwinch
4703 echo "$as_me: failed program was:" >&5
4704 cat conftest.$ac_ext >&5
4706 rm -f conftest.$ac_objext conftest.$ac_ext
4708 cf_sigwinch=`expr $cf_sigwinch - 1`
4712 echo "$as_me:4712: result: $cf_cv_fixup_sigwinch" >&5
4713 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
4715 if test "$cf_cv_fixup_sigwinch" != unknown ; then
4716 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
4720 # Checks for CODESET support.
4722 echo "$as_me:4722: checking for nl_langinfo and CODESET" >&5
4723 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
4724 if test "${am_cv_langinfo_codeset+set}" = set; then
4725 echo $ECHO_N "(cached) $ECHO_C" >&6
4727 cat >conftest.$ac_ext <<_ACEOF
4728 #line 4728 "configure"
4729 #include "confdefs.h"
4730 #include <langinfo.h>
4734 char* cs = nl_langinfo(CODESET);
4739 rm -f conftest.$ac_objext conftest$ac_exeext
4740 if { (eval echo "$as_me:4740: \"$ac_link\"") >&5
4741 (eval $ac_link) 2>&5
4743 echo "$as_me:4743: \$? = $ac_status" >&5
4744 (exit $ac_status); } &&
4745 { ac_try='test -s conftest$ac_exeext'
4746 { (eval echo "$as_me:4746: \"$ac_try\"") >&5
4749 echo "$as_me:4749: \$? = $ac_status" >&5
4750 (exit $ac_status); }; }; then
4751 am_cv_langinfo_codeset=yes
4753 echo "$as_me: failed program was:" >&5
4754 cat conftest.$ac_ext >&5
4755 am_cv_langinfo_codeset=no
4757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4760 echo "$as_me:4760: result: $am_cv_langinfo_codeset" >&5
4761 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
4762 if test $am_cv_langinfo_codeset = yes; then
4764 cat >>confdefs.h <<\EOF
4765 #define HAVE_LANGINFO_CODESET 1
4770 echo "$as_me:4770: checking if you want to use pkg-config" >&5
4771 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
4773 # Check whether --with-pkg-config or --without-pkg-config was given.
4774 if test "${with_pkg_config+set}" = set; then
4775 withval="$with_pkg_config"
4776 cf_pkg_config=$withval
4780 echo "$as_me:4780: result: $cf_pkg_config" >&5
4781 echo "${ECHO_T}$cf_pkg_config" >&6
4783 case $cf_pkg_config in
4789 if test -n "$ac_tool_prefix"; then
4790 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4791 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4792 echo "$as_me:4792: checking for $ac_word" >&5
4793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4794 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4799 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4802 ac_save_IFS=$IFS; IFS=$ac_path_separator
4804 for ac_dir in $ac_dummy; do
4806 test -z "$ac_dir" && ac_dir=.
4807 if $as_executable_p "$ac_dir/$ac_word"; then
4808 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4809 echo "$as_me:4809: found $ac_dir/$ac_word" >&5
4817 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4819 if test -n "$PKG_CONFIG"; then
4820 echo "$as_me:4820: result: $PKG_CONFIG" >&5
4821 echo "${ECHO_T}$PKG_CONFIG" >&6
4823 echo "$as_me:4823: result: no" >&5
4824 echo "${ECHO_T}no" >&6
4828 if test -z "$ac_cv_path_PKG_CONFIG"; then
4829 ac_pt_PKG_CONFIG=$PKG_CONFIG
4830 # Extract the first word of "pkg-config", so it can be a program name with args.
4831 set dummy pkg-config; ac_word=$2
4832 echo "$as_me:4832: checking for $ac_word" >&5
4833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4834 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4837 case $ac_pt_PKG_CONFIG in
4839 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4842 ac_save_IFS=$IFS; IFS=$ac_path_separator
4844 for ac_dir in $ac_dummy; do
4846 test -z "$ac_dir" && ac_dir=.
4847 if $as_executable_p "$ac_dir/$ac_word"; then
4848 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
4849 echo "$as_me:4849: found $ac_dir/$ac_word" >&5
4854 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
4858 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4860 if test -n "$ac_pt_PKG_CONFIG"; then
4861 echo "$as_me:4861: result: $ac_pt_PKG_CONFIG" >&5
4862 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4864 echo "$as_me:4864: result: no" >&5
4865 echo "${ECHO_T}no" >&6
4868 PKG_CONFIG=$ac_pt_PKG_CONFIG
4870 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4879 test -z "$PKG_CONFIG" && PKG_CONFIG=none
4880 if test "$PKG_CONFIG" != none ; then
4882 if test "x$prefix" != xNONE; then
4883 cf_path_syntax="$prefix"
4885 cf_path_syntax="$ac_default_prefix"
4888 case ".$PKG_CONFIG" in
4893 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4895 (.\${*prefix}*|.\${*dir}*)
4896 eval PKG_CONFIG="$PKG_CONFIG"
4897 case ".$PKG_CONFIG" in
4899 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
4904 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
4907 { { echo "$as_me:4907: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
4908 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
4909 { (exit 1); exit 1; }; }
4913 elif test "x$cf_pkg_config" != xno ; then
4914 { echo "$as_me:4914: WARNING: pkg-config is not installed" >&5
4915 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
4918 echo "$as_me:4918: checking if you want to see long compiling messages" >&5
4919 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
4921 # Check whether --enable-echo or --disable-echo was given.
4922 if test "${enable_echo+set}" = set; then
4923 enableval="$enable_echo"
4924 test "$enableval" != no && enableval=yes
4925 if test "$enableval" != "yes" ; then
4928 ECHO_LD='@echo linking $@;'
4929 RULE_CC='@echo compiling $<'
4930 SHOW_CC='@echo compiling $@'
4952 echo "$as_me:4952: result: $enableval" >&5
4953 echo "${ECHO_T}$enableval" >&6
4955 echo "$as_me:4955: checking for ncurses wrap-prefix" >&5
4956 echo $ECHO_N "checking for ncurses wrap-prefix... $ECHO_C" >&6
4958 # Check whether --with-ncurses-wrap-prefix or --without-ncurses-wrap-prefix was given.
4959 if test "${with_ncurses_wrap_prefix+set}" = set; then
4960 withval="$with_ncurses_wrap_prefix"
4961 NCURSES_WRAP_PREFIX=$withval
4963 NCURSES_WRAP_PREFIX=_nc_
4965 echo "$as_me:4965: result: $NCURSES_WRAP_PREFIX" >&5
4966 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
4968 echo "$as_me:4968: checking if you want to check for wide-character functions" >&5
4969 echo $ECHO_N "checking if you want to check for wide-character functions... $ECHO_C" >&6
4971 # Check whether --enable-widec or --disable-widec was given.
4972 if test "${enable_widec+set}" = set; then
4973 enableval="$enable_widec"
4974 test "$enableval" != no && enableval=yes
4975 if test "$enableval" != "yes" ; then
4985 echo "$as_me:4985: result: $cf_enable_widec" >&5
4986 echo "${ECHO_T}$cf_enable_widec" >&6
4988 echo "$as_me:4988: checking for specific curses-directory" >&5
4989 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
4991 # Check whether --with-curses-dir or --without-curses-dir was given.
4992 if test "${with_curses_dir+set}" = set; then
4993 withval="$with_curses_dir"
4994 cf_cv_curses_dir=$withval
4998 echo "$as_me:4998: result: $cf_cv_curses_dir" >&5
4999 echo "${ECHO_T}$cf_cv_curses_dir" >&6
5001 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
5004 if test "x$prefix" != xNONE; then
5005 cf_path_syntax="$prefix"
5007 cf_path_syntax="$ac_default_prefix"
5015 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
5017 (.\${*prefix}*|.\${*dir}*)
5018 eval withval="$withval"
5021 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
5026 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
5029 { { echo "$as_me:5029: error: expected a pathname, not \"$withval\"" >&5
5030 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
5031 { (exit 1); exit 1; }; }
5035 if test -d "$cf_cv_curses_dir"
5038 if test -n "$cf_cv_curses_dir/include" ; then
5039 for cf_add_incdir in $cf_cv_curses_dir/include
5041 while test $cf_add_incdir != /usr/include
5043 if test -d $cf_add_incdir
5046 if test -n "$CFLAGS$CPPFLAGS" ; then
5047 # a loop is needed to ensure we can add subdirs of existing dirs
5048 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
5049 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
5050 cf_have_incdir=yes; break
5055 if test "$cf_have_incdir" = no ; then
5056 if test "$cf_add_incdir" = /usr/local/include ; then
5057 if test "$GCC" = yes
5059 cf_save_CPPFLAGS=$CPPFLAGS
5060 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5061 cat >conftest.$ac_ext <<_ACEOF
5062 #line 5062 "configure"
5063 #include "confdefs.h"
5073 rm -f conftest.$ac_objext
5074 if { (eval echo "$as_me:5074: \"$ac_compile\"") >&5
5075 (eval $ac_compile) 2>&5
5077 echo "$as_me:5077: \$? = $ac_status" >&5
5078 (exit $ac_status); } &&
5079 { ac_try='test -s conftest.$ac_objext'
5080 { (eval echo "$as_me:5080: \"$ac_try\"") >&5
5083 echo "$as_me:5083: \$? = $ac_status" >&5
5084 (exit $ac_status); }; }; then
5087 echo "$as_me: failed program was:" >&5
5088 cat conftest.$ac_ext >&5
5091 rm -f conftest.$ac_objext conftest.$ac_ext
5092 CPPFLAGS=$cf_save_CPPFLAGS
5097 if test "$cf_have_incdir" = no ; then
5098 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
5100 echo "${as_me:-configure}:5100: testing adding $cf_add_incdir to include-path ..." 1>&5
5102 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5104 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
5105 test "$cf_top_incdir" = "$cf_add_incdir" && break
5106 cf_add_incdir="$cf_top_incdir"
5117 if test -n "$cf_cv_curses_dir/lib" ; then
5118 for cf_add_libdir in $cf_cv_curses_dir/lib
5120 if test $cf_add_libdir = /usr/lib ; then
5122 elif test -d $cf_add_libdir
5125 if test -n "$LDFLAGS$LIBS" ; then
5126 # a loop is needed to ensure we can add subdirs of existing dirs
5127 for cf_test_libdir in $LDFLAGS $LIBS ; do
5128 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5129 cf_have_libdir=yes; break
5133 if test "$cf_have_libdir" = no ; then
5134 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5136 echo "${as_me:-configure}:5136: testing adding $cf_add_libdir to library-path ..." 1>&5
5138 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5149 echo "$as_me:5149: checking for specified curses library type" >&5
5150 echo $ECHO_N "checking for specified curses library type... $ECHO_C" >&6
5152 # Check whether --with-screen or --without-screen was given.
5153 if test "${with_screen+set}" = set; then
5154 withval="$with_screen"
5155 cf_cv_screen=$withval
5158 # Check whether --with-ncursesw or --without-ncursesw was given.
5159 if test "${with_ncursesw+set}" = set; then
5160 withval="$with_ncursesw"
5161 cf_cv_screen=ncursesw
5164 # Check whether --with-ncurses or --without-ncurses was given.
5165 if test "${with_ncurses+set}" = set; then
5166 withval="$with_ncurses"
5167 cf_cv_screen=ncurses
5170 # Check whether --with-pdcurses or --without-pdcurses was given.
5171 if test "${with_pdcurses+set}" = set; then
5172 withval="$with_pdcurses"
5173 cf_cv_screen=pdcurses
5176 # Check whether --with-curses-colr or --without-curses-colr was given.
5177 if test "${with_curses_colr+set}" = set; then
5178 withval="$with_curses_colr"
5179 cf_cv_screen=curses_colr
5182 # Check whether --with-curses-5lib or --without-curses-5lib was given.
5183 if test "${with_curses_5lib+set}" = set; then
5184 withval="$with_curses_5lib"
5185 cf_cv_screen=curses_5lib
5193 echo "$as_me:5193: result: $cf_cv_screen" >&5
5194 echo "${ECHO_T}$cf_cv_screen" >&6
5196 case $cf_cv_screen in
5199 echo "$as_me:5199: checking for extra include directories" >&5
5200 echo $ECHO_N "checking for extra include directories... $ECHO_C" >&6
5201 if test "${cf_cv_curses_incdir+set}" = set; then
5202 echo $ECHO_N "(cached) $ECHO_C" >&6
5205 cf_cv_curses_incdir=no
5208 if test "x$cf_cv_screen" = "xcurses_colr"
5210 test -d /usr/include/curses_colr && \
5211 cf_cv_curses_incdir="-I/usr/include/curses_colr"
5215 if test "x$cf_cv_screen" = "xcurses_5lib"
5217 test -d /usr/5lib && \
5218 test -d /usr/5include && \
5219 cf_cv_curses_incdir="-I/usr/5include"
5225 echo "$as_me:5225: result: $cf_cv_curses_incdir" >&5
5226 echo "${ECHO_T}$cf_cv_curses_incdir" >&6
5227 test "$cf_cv_curses_incdir" != no && CPPFLAGS="$CPPFLAGS $cf_cv_curses_incdir"
5229 echo "$as_me:5229: checking if we have identified curses headers" >&5
5230 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
5231 if test "${cf_cv_ncurses_header+set}" = set; then
5232 echo $ECHO_N "(cached) $ECHO_C" >&6
5235 cf_cv_ncurses_header=none
5238 curses.h ncurses/ncurses.h ncurses/curses.h
5240 cat >conftest.$ac_ext <<_ACEOF
5241 #line 5241 "configure"
5242 #include "confdefs.h"
5243 #include <${cf_header}>
5247 initscr(); tgoto("?", 0,0)
5252 rm -f conftest.$ac_objext
5253 if { (eval echo "$as_me:5253: \"$ac_compile\"") >&5
5254 (eval $ac_compile) 2>&5
5256 echo "$as_me:5256: \$? = $ac_status" >&5
5257 (exit $ac_status); } &&
5258 { ac_try='test -s conftest.$ac_objext'
5259 { (eval echo "$as_me:5259: \"$ac_try\"") >&5
5262 echo "$as_me:5262: \$? = $ac_status" >&5
5263 (exit $ac_status); }; }; then
5264 cf_cv_ncurses_header=$cf_header; break
5266 echo "$as_me: failed program was:" >&5
5267 cat conftest.$ac_ext >&5
5269 rm -f conftest.$ac_objext conftest.$ac_ext
5273 echo "$as_me:5273: result: $cf_cv_ncurses_header" >&5
5274 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
5276 if test "$cf_cv_ncurses_header" = none ; then
5277 { { echo "$as_me:5277: error: No curses header-files found" >&5
5278 echo "$as_me: error: No curses header-files found" >&2;}
5279 { (exit 1); exit 1; }; }
5282 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
5284 for ac_header in $cf_cv_ncurses_header
5286 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5287 echo "$as_me:5287: checking for $ac_header" >&5
5288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5290 echo $ECHO_N "(cached) $ECHO_C" >&6
5292 cat >conftest.$ac_ext <<_ACEOF
5293 #line 5293 "configure"
5294 #include "confdefs.h"
5295 #include <$ac_header>
5297 if { (eval echo "$as_me:5297: \"$ac_cpp conftest.$ac_ext\"") >&5
5298 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5300 egrep -v '^ *\+' conftest.er1 >conftest.err
5302 cat conftest.err >&5
5303 echo "$as_me:5303: \$? = $ac_status" >&5
5304 (exit $ac_status); } >/dev/null; then
5305 if test -s conftest.err; then
5306 ac_cpp_err=$ac_c_preproc_warn_flag
5313 if test -z "$ac_cpp_err"; then
5314 eval "$as_ac_Header=yes"
5316 echo "$as_me: failed program was:" >&5
5317 cat conftest.$ac_ext >&5
5318 eval "$as_ac_Header=no"
5320 rm -f conftest.err conftest.$ac_ext
5322 echo "$as_me:5322: result: `eval echo '${'$as_ac_Header'}'`" >&5
5323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5324 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5325 cat >>confdefs.h <<EOF
5326 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5332 echo "$as_me:5332: checking for terminfo header" >&5
5333 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
5334 if test "${cf_cv_term_header+set}" = set; then
5335 echo $ECHO_N "(cached) $ECHO_C" >&6
5338 case ${cf_cv_ncurses_header} in
5339 (*/ncurses.h|*/ncursesw.h)
5340 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
5343 cf_term_header=term.h
5347 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
5349 cat >conftest.$ac_ext <<_ACEOF
5350 #line 5350 "configure"
5351 #include "confdefs.h"
5353 #include <${cf_cv_ncurses_header:-curses.h}>
5359 int x = auto_left_margin
5364 rm -f conftest.$ac_objext
5365 if { (eval echo "$as_me:5365: \"$ac_compile\"") >&5
5366 (eval $ac_compile) 2>&5
5368 echo "$as_me:5368: \$? = $ac_status" >&5
5369 (exit $ac_status); } &&
5370 { ac_try='test -s conftest.$ac_objext'
5371 { (eval echo "$as_me:5371: \"$ac_try\"") >&5
5374 echo "$as_me:5374: \$? = $ac_status" >&5
5375 (exit $ac_status); }; }; then
5377 cf_cv_term_header="$cf_test"
5379 echo "$as_me: failed program was:" >&5
5380 cat conftest.$ac_ext >&5
5382 cf_cv_term_header=unknown
5385 rm -f conftest.$ac_objext conftest.$ac_ext
5386 test "$cf_cv_term_header" != unknown && break
5390 echo "$as_me:5390: result: $cf_cv_term_header" >&5
5391 echo "${ECHO_T}$cf_cv_term_header" >&6
5393 # Set definitions to allow ifdef'ing to accommodate subdirectories
5395 case $cf_cv_term_header in
5398 cat >>confdefs.h <<\EOF
5399 #define HAVE_TERM_H 1
5405 case $cf_cv_term_header in
5408 cat >>confdefs.h <<\EOF
5409 #define HAVE_NCURSES_TERM_H 1
5415 cat >>confdefs.h <<\EOF
5416 #define HAVE_NCURSESW_TERM_H 1
5422 echo "$as_me:5422: checking for ncurses version" >&5
5423 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
5424 if test "${cf_cv_ncurses_version+set}" = set; then
5425 echo $ECHO_N "(cached) $ECHO_C" >&6
5428 cf_cv_ncurses_version=no
5431 if test "$cross_compiling" = yes; then
5433 # This will not work if the preprocessor splits the line after the
5434 # Autoconf token. The 'unproto' program does that.
5435 cat > conftest.$ac_ext <<EOF
5436 #include <${cf_cv_ncurses_header:-curses.h}>
5438 #ifdef NCURSES_VERSION
5439 Autoconf NCURSES_VERSION
5447 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
5448 { (eval echo "$as_me:5448: \"$cf_try\"") >&5
5451 echo "$as_me:5451: \$? = $ac_status" >&5
5452 (exit $ac_status); }
5453 if test -f conftest.out ; then
5454 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
5455 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
5460 cat >conftest.$ac_ext <<_ACEOF
5461 #line 5461 "configure"
5462 #include "confdefs.h"
5464 #include <${cf_cv_ncurses_header:-curses.h}>
5468 FILE *fp = fopen("$cf_tempfile", "w");
5469 #ifdef NCURSES_VERSION
5470 # ifdef NCURSES_VERSION_PATCH
5471 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
5473 fprintf(fp, "%s\n", NCURSES_VERSION);
5477 fprintf(fp, "old\n");
5482 ${cf_cv_main_return:-return}(0);
5485 rm -f conftest$ac_exeext
5486 if { (eval echo "$as_me:5486: \"$ac_link\"") >&5
5487 (eval $ac_link) 2>&5
5489 echo "$as_me:5489: \$? = $ac_status" >&5
5490 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5491 { (eval echo "$as_me:5491: \"$ac_try\"") >&5
5494 echo "$as_me:5494: \$? = $ac_status" >&5
5495 (exit $ac_status); }; }; then
5497 cf_cv_ncurses_version=`cat $cf_tempfile`
5499 echo "$as_me: program exited with status $ac_status" >&5
5500 echo "$as_me: failed program was:" >&5
5501 cat conftest.$ac_ext >&5
5503 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5508 echo "$as_me:5508: result: $cf_cv_ncurses_version" >&5
5509 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
5510 test "$cf_cv_ncurses_version" = no ||
5511 cat >>confdefs.h <<\EOF
5515 echo "$as_me:5515: checking if we have identified curses libraries" >&5
5516 echo $ECHO_N "checking if we have identified curses libraries... $ECHO_C" >&6
5517 cat >conftest.$ac_ext <<_ACEOF
5518 #line 5518 "configure"
5519 #include "confdefs.h"
5520 #include <${cf_cv_ncurses_header:-curses.h}>
5524 initscr(); tgoto("?", 0,0)
5529 rm -f conftest.$ac_objext conftest$ac_exeext
5530 if { (eval echo "$as_me:5530: \"$ac_link\"") >&5
5531 (eval $ac_link) 2>&5
5533 echo "$as_me:5533: \$? = $ac_status" >&5
5534 (exit $ac_status); } &&
5535 { ac_try='test -s conftest$ac_exeext'
5536 { (eval echo "$as_me:5536: \"$ac_try\"") >&5
5539 echo "$as_me:5539: \$? = $ac_status" >&5
5540 (exit $ac_status); }; }; then
5543 echo "$as_me: failed program was:" >&5
5544 cat conftest.$ac_ext >&5
5547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5548 echo "$as_me:5548: result: $cf_result" >&5
5549 echo "${ECHO_T}$cf_result" >&6
5551 if test "$cf_result" = no ; then
5554 echo "$as_me:5554: checking for tgoto in -lmytinfo" >&5
5555 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
5556 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
5557 echo $ECHO_N "(cached) $ECHO_C" >&6
5559 ac_check_lib_save_LIBS=$LIBS
5560 LIBS="-lmytinfo $LIBS"
5561 cat >conftest.$ac_ext <<_ACEOF
5562 #line 5562 "configure"
5563 #include "confdefs.h"
5565 /* Override any gcc2 internal prototype to avoid an error. */
5569 /* We use char because int might match the return type of a gcc2
5570 builtin and then its argument prototype would still apply. */
5580 rm -f conftest.$ac_objext conftest$ac_exeext
5581 if { (eval echo "$as_me:5581: \"$ac_link\"") >&5
5582 (eval $ac_link) 2>&5
5584 echo "$as_me:5584: \$? = $ac_status" >&5
5585 (exit $ac_status); } &&
5586 { ac_try='test -s conftest$ac_exeext'
5587 { (eval echo "$as_me:5587: \"$ac_try\"") >&5
5590 echo "$as_me:5590: \$? = $ac_status" >&5
5591 (exit $ac_status); }; }; then
5592 ac_cv_lib_mytinfo_tgoto=yes
5594 echo "$as_me: failed program was:" >&5
5595 cat conftest.$ac_ext >&5
5596 ac_cv_lib_mytinfo_tgoto=no
5598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5599 LIBS=$ac_check_lib_save_LIBS
5601 echo "$as_me:5601: result: $ac_cv_lib_mytinfo_tgoto" >&5
5602 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
5603 if test $ac_cv_lib_mytinfo_tgoto = yes; then
5605 cf_add_libs="-lmytinfo"
5606 # Filter out duplicates - this happens with badly-designed ".pc" files...
5607 for cf_add_1lib in $LIBS
5609 for cf_add_2lib in $cf_add_libs
5611 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5617 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5625 # Looking at HPUX 10.20, the Hcurses library is the oldest (1997), cur_colr
5626 # next (1998), and xcurses "newer" (2000). There is no header file for
5627 # Hcurses; the subdirectory curses_colr has the headers (curses.h and
5628 # term.h) for cur_colr
5629 if test "x$cf_cv_screen" = "xcurses_colr"
5631 echo "$as_me:5631: checking for initscr in -lcur_colr" >&5
5632 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
5633 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5636 ac_check_lib_save_LIBS=$LIBS
5637 LIBS="-lcur_colr $LIBS"
5638 cat >conftest.$ac_ext <<_ACEOF
5639 #line 5639 "configure"
5640 #include "confdefs.h"
5642 /* Override any gcc2 internal prototype to avoid an error. */
5646 /* We use char because int might match the return type of a gcc2
5647 builtin and then its argument prototype would still apply. */
5657 rm -f conftest.$ac_objext conftest$ac_exeext
5658 if { (eval echo "$as_me:5658: \"$ac_link\"") >&5
5659 (eval $ac_link) 2>&5
5661 echo "$as_me:5661: \$? = $ac_status" >&5
5662 (exit $ac_status); } &&
5663 { ac_try='test -s conftest$ac_exeext'
5664 { (eval echo "$as_me:5664: \"$ac_try\"") >&5
5667 echo "$as_me:5667: \$? = $ac_status" >&5
5668 (exit $ac_status); }; }; then
5669 ac_cv_lib_cur_colr_initscr=yes
5671 echo "$as_me: failed program was:" >&5
5672 cat conftest.$ac_ext >&5
5673 ac_cv_lib_cur_colr_initscr=no
5675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5676 LIBS=$ac_check_lib_save_LIBS
5678 echo "$as_me:5678: result: $ac_cv_lib_cur_colr_initscr" >&5
5679 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
5680 if test $ac_cv_lib_cur_colr_initscr = yes; then
5682 cf_add_libs="-lcur_colr"
5683 # Filter out duplicates - this happens with badly-designed ".pc" files...
5684 for cf_add_1lib in $LIBS
5686 for cf_add_2lib in $cf_add_libs
5688 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5694 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5698 ac_cv_func_initscr=yes
5702 echo "$as_me:5702: checking for initscr in -lHcurses" >&5
5703 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
5704 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5707 ac_check_lib_save_LIBS=$LIBS
5708 LIBS="-lHcurses $LIBS"
5709 cat >conftest.$ac_ext <<_ACEOF
5710 #line 5710 "configure"
5711 #include "confdefs.h"
5713 /* Override any gcc2 internal prototype to avoid an error. */
5717 /* We use char because int might match the return type of a gcc2
5718 builtin and then its argument prototype would still apply. */
5728 rm -f conftest.$ac_objext conftest$ac_exeext
5729 if { (eval echo "$as_me:5729: \"$ac_link\"") >&5
5730 (eval $ac_link) 2>&5
5732 echo "$as_me:5732: \$? = $ac_status" >&5
5733 (exit $ac_status); } &&
5734 { ac_try='test -s conftest$ac_exeext'
5735 { (eval echo "$as_me:5735: \"$ac_try\"") >&5
5738 echo "$as_me:5738: \$? = $ac_status" >&5
5739 (exit $ac_status); }; }; then
5740 ac_cv_lib_Hcurses_initscr=yes
5742 echo "$as_me: failed program was:" >&5
5743 cat conftest.$ac_ext >&5
5744 ac_cv_lib_Hcurses_initscr=no
5746 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5747 LIBS=$ac_check_lib_save_LIBS
5749 echo "$as_me:5749: result: $ac_cv_lib_Hcurses_initscr" >&5
5750 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
5751 if test $ac_cv_lib_Hcurses_initscr = yes; then
5753 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
5755 cf_add_libs="-lHcurses"
5756 # Filter out duplicates - this happens with badly-designed ".pc" files...
5757 for cf_add_1lib in $LIBS
5759 for cf_add_2lib in $cf_add_libs
5761 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5767 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5771 CPPFLAGS="$CPPFLAGS -D__HP_CURSES -D_HP_CURSES"
5772 ac_cv_func_initscr=yes
5781 case `arch 2>/dev/null` in
5786 if test -n "/lib64" ; then
5787 for cf_add_libdir in /lib64
5789 if test $cf_add_libdir = /usr/lib ; then
5791 elif test -d $cf_add_libdir
5794 if test -n "$LDFLAGS$LIBS" ; then
5795 # a loop is needed to ensure we can add subdirs of existing dirs
5796 for cf_test_libdir in $LDFLAGS $LIBS ; do
5797 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5798 cf_have_libdir=yes; break
5802 if test "$cf_have_libdir" = no ; then
5803 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5805 echo "${as_me:-configure}:5805: testing adding $cf_add_libdir to library-path ..." 1>&5
5807 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5815 if test -n "/lib" ; then
5816 for cf_add_libdir in /lib
5818 if test $cf_add_libdir = /usr/lib ; then
5820 elif test -d $cf_add_libdir
5823 if test -n "$LDFLAGS$LIBS" ; then
5824 # a loop is needed to ensure we can add subdirs of existing dirs
5825 for cf_test_libdir in $LDFLAGS $LIBS ; do
5826 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5827 cf_have_libdir=yes; break
5831 if test "$cf_have_libdir" = no ; then
5832 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5834 echo "${as_me:-configure}:5834: testing adding $cf_add_libdir to library-path ..." 1>&5
5836 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5846 if test -n "/lib" ; then
5847 for cf_add_libdir in /lib
5849 if test $cf_add_libdir = /usr/lib ; then
5851 elif test -d $cf_add_libdir
5854 if test -n "$LDFLAGS$LIBS" ; then
5855 # a loop is needed to ensure we can add subdirs of existing dirs
5856 for cf_test_libdir in $LDFLAGS $LIBS ; do
5857 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5858 cf_have_libdir=yes; break
5862 if test "$cf_have_libdir" = no ; then
5863 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5865 echo "${as_me:-configure}:5865: testing adding $cf_add_libdir to library-path ..." 1>&5
5867 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5877 if test "x$cf_cv_screen" = "xcurses_5lib"
5879 if test -d /usr/5lib ; then
5881 if test -n "/usr/5lib" ; then
5882 for cf_add_libdir in /usr/5lib
5884 if test $cf_add_libdir = /usr/lib ; then
5886 elif test -d $cf_add_libdir
5889 if test -n "$LDFLAGS$LIBS" ; then
5890 # a loop is needed to ensure we can add subdirs of existing dirs
5891 for cf_test_libdir in $LDFLAGS $LIBS ; do
5892 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5893 cf_have_libdir=yes; break
5897 if test "$cf_have_libdir" = no ; then
5898 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5900 echo "${as_me:-configure}:5900: testing adding $cf_add_libdir to library-path ..." 1>&5
5902 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5908 cf_add_libs="-lcurses -ltermcap"
5909 # Filter out duplicates - this happens with badly-designed ".pc" files...
5910 for cf_add_1lib in $LIBS
5912 for cf_add_2lib in $cf_add_libs
5914 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5920 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5926 ac_cv_func_initscr=yes
5930 if test ".$ac_cv_func_initscr" != .yes ; then
5931 cf_save_LIBS="$LIBS"
5933 if test ".${cf_cv_ncurses_version:-no}" != .no
5935 cf_check_list="ncurses curses cursesX"
5937 cf_check_list="cursesX curses ncurses"
5940 # Check for library containing tgoto. Do this before curses library
5941 # because it may be needed to link the test-case for initscr.
5942 if test "x$cf_term_lib" = x
5944 echo "$as_me:5944: checking for tgoto" >&5
5945 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
5946 if test "${ac_cv_func_tgoto+set}" = set; then
5947 echo $ECHO_N "(cached) $ECHO_C" >&6
5949 cat >conftest.$ac_ext <<_ACEOF
5950 #line 5950 "configure"
5951 #include "confdefs.h"
5952 /* System header to define __stub macros and hopefully few prototypes,
5953 which can conflict with char tgoto (); below. */
5955 /* Override any gcc2 internal prototype to avoid an error. */
5959 /* We use char because int might match the return type of a gcc2
5960 builtin and then its argument prototype would still apply. */
5967 /* The GNU C library defines this for functions which it implements
5968 to always fail with ENOSYS. Some functions are actually named
5969 something starting with __ and the normal name is an alias. */
5970 #if defined (__stub_tgoto) || defined (__stub___tgoto)
5973 f = tgoto; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
5980 rm -f conftest.$ac_objext conftest$ac_exeext
5981 if { (eval echo "$as_me:5981: \"$ac_link\"") >&5
5982 (eval $ac_link) 2>&5
5984 echo "$as_me:5984: \$? = $ac_status" >&5
5985 (exit $ac_status); } &&
5986 { ac_try='test -s conftest$ac_exeext'
5987 { (eval echo "$as_me:5987: \"$ac_try\"") >&5
5990 echo "$as_me:5990: \$? = $ac_status" >&5
5991 (exit $ac_status); }; }; then
5992 ac_cv_func_tgoto=yes
5994 echo "$as_me: failed program was:" >&5
5995 cat conftest.$ac_ext >&5
5998 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6000 echo "$as_me:6000: result: $ac_cv_func_tgoto" >&5
6001 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
6002 if test $ac_cv_func_tgoto = yes; then
6003 cf_term_lib=predefined
6006 for cf_term_lib in $cf_check_list otermcap termcap tinfo termlib unknown
6008 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
6009 echo "$as_me:6009: checking for tgoto in -l$cf_term_lib" >&5
6010 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
6011 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6014 ac_check_lib_save_LIBS=$LIBS
6015 LIBS="-l$cf_term_lib $LIBS"
6016 cat >conftest.$ac_ext <<_ACEOF
6017 #line 6017 "configure"
6018 #include "confdefs.h"
6020 /* Override any gcc2 internal prototype to avoid an error. */
6024 /* We use char because int might match the return type of a gcc2
6025 builtin and then its argument prototype would still apply. */
6035 rm -f conftest.$ac_objext conftest$ac_exeext
6036 if { (eval echo "$as_me:6036: \"$ac_link\"") >&5
6037 (eval $ac_link) 2>&5
6039 echo "$as_me:6039: \$? = $ac_status" >&5
6040 (exit $ac_status); } &&
6041 { ac_try='test -s conftest$ac_exeext'
6042 { (eval echo "$as_me:6042: \"$ac_try\"") >&5
6045 echo "$as_me:6045: \$? = $ac_status" >&5
6046 (exit $ac_status); }; }; then
6047 eval "$as_ac_Lib=yes"
6049 echo "$as_me: failed program was:" >&5
6050 cat conftest.$ac_ext >&5
6051 eval "$as_ac_Lib=no"
6053 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6054 LIBS=$ac_check_lib_save_LIBS
6056 echo "$as_me:6056: result: `eval echo '${'$as_ac_Lib'}'`" >&5
6057 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
6058 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
6068 # Check for library containing initscr
6069 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
6070 if test "x$cf_curs_lib" = x
6072 for cf_curs_lib in $cf_check_list xcurses jcurses pdcurses unknown
6074 LIBS="-l$cf_curs_lib $cf_save_LIBS"
6075 if test "$cf_term_lib" = unknown || test "$cf_term_lib" = "$cf_curs_lib" ; then
6076 echo "$as_me:6076: checking if we can link with $cf_curs_lib library" >&5
6077 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
6078 cat >conftest.$ac_ext <<_ACEOF
6079 #line 6079 "configure"
6080 #include "confdefs.h"
6081 #include <${cf_cv_ncurses_header:-curses.h}>
6090 rm -f conftest.$ac_objext conftest$ac_exeext
6091 if { (eval echo "$as_me:6091: \"$ac_link\"") >&5
6092 (eval $ac_link) 2>&5
6094 echo "$as_me:6094: \$? = $ac_status" >&5
6095 (exit $ac_status); } &&
6096 { ac_try='test -s conftest$ac_exeext'
6097 { (eval echo "$as_me:6097: \"$ac_try\"") >&5
6100 echo "$as_me:6100: \$? = $ac_status" >&5
6101 (exit $ac_status); }; }; then
6104 echo "$as_me: failed program was:" >&5
6105 cat conftest.$ac_ext >&5
6108 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6109 echo "$as_me:6109: result: $cf_result" >&5
6110 echo "${ECHO_T}$cf_result" >&6
6111 test $cf_result = yes && break
6112 elif test "$cf_curs_lib" = "$cf_term_lib" ; then
6114 elif test "$cf_term_lib" != predefined ; then
6115 echo "$as_me:6115: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
6116 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
6117 cat >conftest.$ac_ext <<_ACEOF
6118 #line 6118 "configure"
6119 #include "confdefs.h"
6120 #include <${cf_cv_ncurses_header:-curses.h}>
6124 initscr(); tgoto((char *)0, 0, 0);
6129 rm -f conftest.$ac_objext conftest$ac_exeext
6130 if { (eval echo "$as_me:6130: \"$ac_link\"") >&5
6131 (eval $ac_link) 2>&5
6133 echo "$as_me:6133: \$? = $ac_status" >&5
6134 (exit $ac_status); } &&
6135 { ac_try='test -s conftest$ac_exeext'
6136 { (eval echo "$as_me:6136: \"$ac_try\"") >&5
6139 echo "$as_me:6139: \$? = $ac_status" >&5
6140 (exit $ac_status); }; }; then
6143 echo "$as_me: failed program was:" >&5
6144 cat conftest.$ac_ext >&5
6146 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
6147 cat >conftest.$ac_ext <<_ACEOF
6148 #line 6148 "configure"
6149 #include "confdefs.h"
6150 #include <${cf_cv_ncurses_header:-curses.h}>
6159 rm -f conftest.$ac_objext conftest$ac_exeext
6160 if { (eval echo "$as_me:6160: \"$ac_link\"") >&5
6161 (eval $ac_link) 2>&5
6163 echo "$as_me:6163: \$? = $ac_status" >&5
6164 (exit $ac_status); } &&
6165 { ac_try='test -s conftest$ac_exeext'
6166 { (eval echo "$as_me:6166: \"$ac_try\"") >&5
6169 echo "$as_me:6169: \$? = $ac_status" >&5
6170 (exit $ac_status); }; }; then
6173 echo "$as_me: failed program was:" >&5
6174 cat conftest.$ac_ext >&5
6177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6180 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6181 echo "$as_me:6181: result: $cf_result" >&5
6182 echo "${ECHO_T}$cf_result" >&6
6183 test $cf_result != error && break
6187 test $cf_curs_lib = unknown && { { echo "$as_me:6187: error: no curses library found" >&5
6188 echo "$as_me: error: no curses library found" >&2;}
6189 { (exit 1); exit 1; }; }
6196 echo "$as_me:6196: checking for multibyte character support" >&5
6197 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
6198 if test "${cf_cv_utf8_lib+set}" = set; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6202 cf_save_LIBS="$LIBS"
6203 cat >conftest.$ac_ext <<_ACEOF
6204 #line 6204 "configure"
6205 #include "confdefs.h"
6216 rm -f conftest.$ac_objext conftest$ac_exeext
6217 if { (eval echo "$as_me:6217: \"$ac_link\"") >&5
6218 (eval $ac_link) 2>&5
6220 echo "$as_me:6220: \$? = $ac_status" >&5
6221 (exit $ac_status); } &&
6222 { ac_try='test -s conftest$ac_exeext'
6223 { (eval echo "$as_me:6223: \"$ac_try\"") >&5
6226 echo "$as_me:6226: \$? = $ac_status" >&5
6227 (exit $ac_status); }; }; then
6230 echo "$as_me: failed program was:" >&5
6231 cat conftest.$ac_ext >&5
6233 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
6234 # will be set on completion of the AC_TRY_LINK below.
6235 cf_cv_header_path_utf8=
6236 cf_cv_library_path_utf8=
6238 echo "${as_me:-configure}:6238: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
6240 cf_save_LIBS="$LIBS"
6242 cat >conftest.$ac_ext <<_ACEOF
6243 #line 6243 "configure"
6244 #include "confdefs.h"
6246 #include <libutf8.h>
6255 rm -f conftest.$ac_objext conftest$ac_exeext
6256 if { (eval echo "$as_me:6256: \"$ac_link\"") >&5
6257 (eval $ac_link) 2>&5
6259 echo "$as_me:6259: \$? = $ac_status" >&5
6260 (exit $ac_status); } &&
6261 { ac_try='test -s conftest$ac_exeext'
6262 { (eval echo "$as_me:6262: \"$ac_try\"") >&5
6265 echo "$as_me:6265: \$? = $ac_status" >&5
6266 (exit $ac_status); }; }; then
6268 cf_cv_find_linkage_utf8=yes
6269 cf_cv_header_path_utf8=/usr/include
6270 cf_cv_library_path_utf8=/usr/lib
6273 echo "$as_me: failed program was:" >&5
6274 cat conftest.$ac_ext >&5
6276 LIBS="-lutf8 $cf_save_LIBS"
6278 cat >conftest.$ac_ext <<_ACEOF
6279 #line 6279 "configure"
6280 #include "confdefs.h"
6282 #include <libutf8.h>
6291 rm -f conftest.$ac_objext conftest$ac_exeext
6292 if { (eval echo "$as_me:6292: \"$ac_link\"") >&5
6293 (eval $ac_link) 2>&5
6295 echo "$as_me:6295: \$? = $ac_status" >&5
6296 (exit $ac_status); } &&
6297 { ac_try='test -s conftest$ac_exeext'
6298 { (eval echo "$as_me:6298: \"$ac_try\"") >&5
6301 echo "$as_me:6301: \$? = $ac_status" >&5
6302 (exit $ac_status); }; }; then
6304 cf_cv_find_linkage_utf8=yes
6305 cf_cv_header_path_utf8=/usr/include
6306 cf_cv_library_path_utf8=/usr/lib
6307 cf_cv_library_file_utf8="-lutf8"
6310 echo "$as_me: failed program was:" >&5
6311 cat conftest.$ac_ext >&5
6313 cf_cv_find_linkage_utf8=no
6314 LIBS="$cf_save_LIBS"
6316 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
6318 echo "${as_me:-configure}:6318: testing find linkage for utf8 library ..." 1>&5
6320 echo "${as_me:-configure}:6320: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
6322 cf_save_CPPFLAGS="$CPPFLAGS"
6323 cf_test_CPPFLAGS="$CPPFLAGS"
6327 # collect the current set of include-directories from compiler flags
6328 cf_header_path_list=""
6329 if test -n "${CFLAGS}${CPPFLAGS}" ; then
6330 for cf_header_path in $CPPFLAGS $CFLAGS
6332 case $cf_header_path in
6334 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
6336 test "x$cf_header_path" != "xNONE" && \
6337 test -d "$cf_header_path" && \
6339 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
6340 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
6341 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
6342 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
6343 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
6344 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
6347 cf_header_path_list="$cf_header_path_list $cf_search"
6353 # add the variations for the package we are looking for
6357 test "x$prefix" != "xNONE" && \
6358 test -d "$prefix" && \
6360 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
6361 test -d $prefix/include && cf_search="$cf_search $prefix/include"
6362 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
6363 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
6364 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
6365 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
6368 for cf_subdir_prefix in \
6377 test "x$cf_subdir_prefix" != "x$prefix" && \
6378 test -d "$cf_subdir_prefix" && \
6379 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
6380 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
6381 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
6382 test -d $cf_subdir_prefix/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
6383 test -d $cf_subdir_prefix/include/utf8/include && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
6384 test -d $cf_subdir_prefix/utf8/include && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
6385 test -d $cf_subdir_prefix/utf8/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
6390 test "$includedir" != NONE && \
6391 test "$includedir" != "/usr/include" && \
6392 test -d "$includedir" && {
6393 test -d $includedir && cf_search="$cf_search $includedir"
6394 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
6397 test "$oldincludedir" != NONE && \
6398 test "$oldincludedir" != "/usr/include" && \
6399 test -d "$oldincludedir" && {
6400 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
6401 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
6404 cf_search="$cf_search $cf_header_path_list"
6406 for cf_cv_header_path_utf8 in $cf_search
6408 if test -d $cf_cv_header_path_utf8 ; then
6409 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
6411 echo "${as_me:-configure}:6411: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
6413 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
6414 cat >conftest.$ac_ext <<_ACEOF
6415 #line 6415 "configure"
6416 #include "confdefs.h"
6418 #include <libutf8.h>
6427 rm -f conftest.$ac_objext
6428 if { (eval echo "$as_me:6428: \"$ac_compile\"") >&5
6429 (eval $ac_compile) 2>&5
6431 echo "$as_me:6431: \$? = $ac_status" >&5
6432 (exit $ac_status); } &&
6433 { ac_try='test -s conftest.$ac_objext'
6434 { (eval echo "$as_me:6434: \"$ac_try\"") >&5
6437 echo "$as_me:6437: \$? = $ac_status" >&5
6438 (exit $ac_status); }; }; then
6440 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
6442 echo "${as_me:-configure}:6442: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
6444 cf_cv_find_linkage_utf8=maybe
6445 cf_test_CPPFLAGS="$CPPFLAGS"
6448 echo "$as_me: failed program was:" >&5
6449 cat conftest.$ac_ext >&5
6451 CPPFLAGS="$cf_save_CPPFLAGS"
6454 rm -f conftest.$ac_objext conftest.$ac_ext
6458 if test "$cf_cv_find_linkage_utf8" = maybe ; then
6460 echo "${as_me:-configure}:6460: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
6462 cf_save_LIBS="$LIBS"
6463 cf_save_LDFLAGS="$LDFLAGS"
6465 if test "$cf_cv_find_linkage_utf8" != yes ; then
6468 cf_library_path_list=""
6469 if test -n "${LDFLAGS}${LIBS}" ; then
6470 for cf_library_path in $LDFLAGS $LIBS
6472 case $cf_library_path in
6474 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
6476 test "x$cf_library_path" != "xNONE" && \
6477 test -d "$cf_library_path" && \
6479 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
6480 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
6481 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
6482 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
6483 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
6484 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
6487 cf_library_path_list="$cf_library_path_list $cf_search"
6495 test "x$prefix" != "xNONE" && \
6496 test -d "$prefix" && \
6498 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
6499 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
6500 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
6501 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
6502 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
6503 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
6506 for cf_subdir_prefix in \
6515 test "x$cf_subdir_prefix" != "x$prefix" && \
6516 test -d "$cf_subdir_prefix" && \
6517 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
6518 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
6519 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
6520 test -d $cf_subdir_prefix/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
6521 test -d $cf_subdir_prefix/lib/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
6522 test -d $cf_subdir_prefix/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
6523 test -d $cf_subdir_prefix/utf8/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
6528 cf_search="$cf_library_path_list $cf_search"
6530 for cf_cv_library_path_utf8 in $cf_search
6532 if test -d $cf_cv_library_path_utf8 ; then
6533 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
6535 echo "${as_me:-configure}:6535: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
6537 CPPFLAGS="$cf_test_CPPFLAGS"
6538 LIBS="-lutf8 $cf_save_LIBS"
6539 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
6540 cat >conftest.$ac_ext <<_ACEOF
6541 #line 6541 "configure"
6542 #include "confdefs.h"
6544 #include <libutf8.h>
6553 rm -f conftest.$ac_objext conftest$ac_exeext
6554 if { (eval echo "$as_me:6554: \"$ac_link\"") >&5
6555 (eval $ac_link) 2>&5
6557 echo "$as_me:6557: \$? = $ac_status" >&5
6558 (exit $ac_status); } &&
6559 { ac_try='test -s conftest$ac_exeext'
6560 { (eval echo "$as_me:6560: \"$ac_try\"") >&5
6563 echo "$as_me:6563: \$? = $ac_status" >&5
6564 (exit $ac_status); }; }; then
6566 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
6568 echo "${as_me:-configure}:6568: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
6570 cf_cv_find_linkage_utf8=yes
6571 cf_cv_library_file_utf8="-lutf8"
6574 echo "$as_me: failed program was:" >&5
6575 cat conftest.$ac_ext >&5
6577 CPPFLAGS="$cf_save_CPPFLAGS"
6578 LIBS="$cf_save_LIBS"
6579 LDFLAGS="$cf_save_LDFLAGS"
6582 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6585 CPPFLAGS="$cf_save_CPPFLAGS"
6586 LDFLAGS="$cf_save_LDFLAGS"
6590 cf_cv_find_linkage_utf8=no
6594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6599 LIBS="$cf_save_LIBS"
6601 if test "$cf_cv_find_linkage_utf8" = yes ; then
6602 cf_cv_utf8_lib=add-on
6608 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6610 echo "$as_me:6610: result: $cf_cv_utf8_lib" >&5
6611 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
6613 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
6615 if test "$cf_cv_utf8_lib" = "add-on" ; then
6617 cat >>confdefs.h <<\EOF
6618 #define HAVE_LIBUTF8_H 1
6621 if test -n "$cf_cv_header_path_utf8" ; then
6622 for cf_add_incdir in $cf_cv_header_path_utf8
6624 while test $cf_add_incdir != /usr/include
6626 if test -d $cf_add_incdir
6629 if test -n "$CFLAGS$CPPFLAGS" ; then
6630 # a loop is needed to ensure we can add subdirs of existing dirs
6631 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6632 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6633 cf_have_incdir=yes; break
6638 if test "$cf_have_incdir" = no ; then
6639 if test "$cf_add_incdir" = /usr/local/include ; then
6640 if test "$GCC" = yes
6642 cf_save_CPPFLAGS=$CPPFLAGS
6643 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6644 cat >conftest.$ac_ext <<_ACEOF
6645 #line 6645 "configure"
6646 #include "confdefs.h"
6656 rm -f conftest.$ac_objext
6657 if { (eval echo "$as_me:6657: \"$ac_compile\"") >&5
6658 (eval $ac_compile) 2>&5
6660 echo "$as_me:6660: \$? = $ac_status" >&5
6661 (exit $ac_status); } &&
6662 { ac_try='test -s conftest.$ac_objext'
6663 { (eval echo "$as_me:6663: \"$ac_try\"") >&5
6666 echo "$as_me:6666: \$? = $ac_status" >&5
6667 (exit $ac_status); }; }; then
6670 echo "$as_me: failed program was:" >&5
6671 cat conftest.$ac_ext >&5
6674 rm -f conftest.$ac_objext conftest.$ac_ext
6675 CPPFLAGS=$cf_save_CPPFLAGS
6680 if test "$cf_have_incdir" = no ; then
6681 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6683 echo "${as_me:-configure}:6683: testing adding $cf_add_incdir to include-path ..." 1>&5
6685 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6687 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6688 test "$cf_top_incdir" = "$cf_add_incdir" && break
6689 cf_add_incdir="$cf_top_incdir"
6700 if test -n "$cf_cv_library_path_utf8" ; then
6701 for cf_add_libdir in $cf_cv_library_path_utf8
6703 if test $cf_add_libdir = /usr/lib ; then
6705 elif test -d $cf_add_libdir
6708 if test -n "$LDFLAGS$LIBS" ; then
6709 # a loop is needed to ensure we can add subdirs of existing dirs
6710 for cf_test_libdir in $LDFLAGS $LIBS ; do
6711 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
6712 cf_have_libdir=yes; break
6716 if test "$cf_have_libdir" = no ; then
6717 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
6719 echo "${as_me:-configure}:6719: testing adding $cf_add_libdir to library-path ..." 1>&5
6721 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
6727 cf_add_libs="$cf_cv_library_file_utf8"
6728 # Filter out duplicates - this happens with badly-designed ".pc" files...
6729 for cf_add_1lib in $LIBS
6731 for cf_add_2lib in $cf_add_libs
6733 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6739 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6745 cf_ncuconfig_root=$cf_cv_screen
6746 cf_have_ncuconfig=no
6748 if test "x${PKG_CONFIG:=none}" != xnone; then
6749 echo "$as_me:6749: checking pkg-config for $cf_ncuconfig_root" >&5
6750 echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
6751 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
6752 echo "$as_me:6752: result: yes" >&5
6753 echo "${ECHO_T}yes" >&6
6755 echo "$as_me:6755: checking if the $cf_ncuconfig_root package files work" >&5
6756 echo $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
6757 cf_have_ncuconfig=unknown
6759 cf_save_CPPFLAGS="$CPPFLAGS"
6760 cf_save_LIBS="$LIBS"
6762 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG --cflags $cf_ncuconfig_root`"
6764 cf_add_libs="`$PKG_CONFIG --libs $cf_ncuconfig_root`"
6765 # Filter out duplicates - this happens with badly-designed ".pc" files...
6766 for cf_add_1lib in $LIBS
6768 for cf_add_2lib in $cf_add_libs
6770 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6776 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6780 cat >conftest.$ac_ext <<_ACEOF
6781 #line 6781 "configure"
6782 #include "confdefs.h"
6783 #include <${cf_cv_ncurses_header:-curses.h}>
6787 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
6792 rm -f conftest.$ac_objext conftest$ac_exeext
6793 if { (eval echo "$as_me:6793: \"$ac_link\"") >&5
6794 (eval $ac_link) 2>&5
6796 echo "$as_me:6796: \$? = $ac_status" >&5
6797 (exit $ac_status); } &&
6798 { ac_try='test -s conftest$ac_exeext'
6799 { (eval echo "$as_me:6799: \"$ac_try\"") >&5
6802 echo "$as_me:6802: \$? = $ac_status" >&5
6803 (exit $ac_status); }; }; then
6804 if test "$cross_compiling" = yes; then
6805 cf_have_ncuconfig=maybe
6807 cat >conftest.$ac_ext <<_ACEOF
6808 #line 6808 "configure"
6809 #include "confdefs.h"
6810 #include <${cf_cv_ncurses_header:-curses.h}>
6812 { char *xx = curses_version(); return (xx == 0); }
6814 rm -f conftest$ac_exeext
6815 if { (eval echo "$as_me:6815: \"$ac_link\"") >&5
6816 (eval $ac_link) 2>&5
6818 echo "$as_me:6818: \$? = $ac_status" >&5
6819 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6820 { (eval echo "$as_me:6820: \"$ac_try\"") >&5
6823 echo "$as_me:6823: \$? = $ac_status" >&5
6824 (exit $ac_status); }; }; then
6825 cf_have_ncuconfig=yes
6827 echo "$as_me: program exited with status $ac_status" >&5
6828 echo "$as_me: failed program was:" >&5
6829 cat conftest.$ac_ext >&5
6830 cf_have_ncuconfig=no
6832 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6835 echo "$as_me: failed program was:" >&5
6836 cat conftest.$ac_ext >&5
6837 cf_have_ncuconfig=no
6839 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6840 echo "$as_me:6840: result: $cf_have_ncuconfig" >&5
6841 echo "${ECHO_T}$cf_have_ncuconfig" >&6
6842 test "$cf_have_ncuconfig" = maybe && cf_have_ncuconfig=yes
6843 if test "$cf_have_ncuconfig" != "yes"
6845 CPPFLAGS="$cf_save_CPPFLAGS"
6846 LIBS="$cf_save_LIBS"
6847 NCURSES_CONFIG_PKG=none
6850 cat >>confdefs.h <<\EOF
6854 NCURSES_CONFIG_PKG=$cf_ncuconfig_root
6857 echo "$as_me:6857: checking for terminfo header" >&5
6858 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
6859 if test "${cf_cv_term_header+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 case ${cf_cv_ncurses_header} in
6864 (*/ncurses.h|*/ncursesw.h)
6865 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
6868 cf_term_header=term.h
6872 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
6874 cat >conftest.$ac_ext <<_ACEOF
6875 #line 6875 "configure"
6876 #include "confdefs.h"
6878 #include <${cf_cv_ncurses_header:-curses.h}>
6884 int x = auto_left_margin
6889 rm -f conftest.$ac_objext
6890 if { (eval echo "$as_me:6890: \"$ac_compile\"") >&5
6891 (eval $ac_compile) 2>&5
6893 echo "$as_me:6893: \$? = $ac_status" >&5
6894 (exit $ac_status); } &&
6895 { ac_try='test -s conftest.$ac_objext'
6896 { (eval echo "$as_me:6896: \"$ac_try\"") >&5
6899 echo "$as_me:6899: \$? = $ac_status" >&5
6900 (exit $ac_status); }; }; then
6902 cf_cv_term_header="$cf_test"
6904 echo "$as_me: failed program was:" >&5
6905 cat conftest.$ac_ext >&5
6907 cf_cv_term_header=unknown
6910 rm -f conftest.$ac_objext conftest.$ac_ext
6911 test "$cf_cv_term_header" != unknown && break
6915 echo "$as_me:6915: result: $cf_cv_term_header" >&5
6916 echo "${ECHO_T}$cf_cv_term_header" >&6
6918 # Set definitions to allow ifdef'ing to accommodate subdirectories
6920 case $cf_cv_term_header in
6923 cat >>confdefs.h <<\EOF
6924 #define HAVE_TERM_H 1
6930 case $cf_cv_term_header in
6933 cat >>confdefs.h <<\EOF
6934 #define HAVE_NCURSES_TERM_H 1
6940 cat >>confdefs.h <<\EOF
6941 #define HAVE_NCURSESW_TERM_H 1
6948 echo "$as_me:6948: result: no" >&5
6949 echo "${ECHO_T}no" >&6
6950 NCURSES_CONFIG_PKG=none
6953 NCURSES_CONFIG_PKG=none
6956 if test "x$cf_have_ncuconfig" = "xno"; then
6957 echo "Looking for ${cf_ncuconfig_root}-config"
6959 if test -n "$ac_tool_prefix"; then
6960 for ac_prog in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
6962 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6963 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6964 echo "$as_me:6964: checking for $ac_word" >&5
6965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6966 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
6969 if test -n "$NCURSES_CONFIG"; then
6970 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
6972 ac_save_IFS=$IFS; IFS=$ac_path_separator
6974 for ac_dir in $ac_dummy; do
6976 test -z "$ac_dir" && ac_dir=.
6977 $as_executable_p "$ac_dir/$ac_word" || continue
6978 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
6979 echo "$as_me:6979: found $ac_dir/$ac_word" >&5
6985 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
6986 if test -n "$NCURSES_CONFIG"; then
6987 echo "$as_me:6987: result: $NCURSES_CONFIG" >&5
6988 echo "${ECHO_T}$NCURSES_CONFIG" >&6
6990 echo "$as_me:6990: result: no" >&5
6991 echo "${ECHO_T}no" >&6
6994 test -n "$NCURSES_CONFIG" && break
6997 if test -z "$NCURSES_CONFIG"; then
6998 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
6999 for ac_prog in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
7001 # Extract the first word of "$ac_prog", so it can be a program name with args.
7002 set dummy $ac_prog; ac_word=$2
7003 echo "$as_me:7003: checking for $ac_word" >&5
7004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7005 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7008 if test -n "$ac_ct_NCURSES_CONFIG"; then
7009 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
7011 ac_save_IFS=$IFS; IFS=$ac_path_separator
7013 for ac_dir in $ac_dummy; do
7015 test -z "$ac_dir" && ac_dir=.
7016 $as_executable_p "$ac_dir/$ac_word" || continue
7017 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
7018 echo "$as_me:7018: found $ac_dir/$ac_word" >&5
7024 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
7025 if test -n "$ac_ct_NCURSES_CONFIG"; then
7026 echo "$as_me:7026: result: $ac_ct_NCURSES_CONFIG" >&5
7027 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
7029 echo "$as_me:7029: result: no" >&5
7030 echo "${ECHO_T}no" >&6
7033 test -n "$ac_ct_NCURSES_CONFIG" && break
7035 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
7037 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
7040 if test "$NCURSES_CONFIG" != none ; then
7042 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
7044 cf_add_libs="`$NCURSES_CONFIG --libs`"
7045 # Filter out duplicates - this happens with badly-designed ".pc" files...
7046 for cf_add_1lib in $LIBS
7048 for cf_add_2lib in $cf_add_libs
7050 if test "x$cf_add_1lib" = "x$cf_add_2lib"
7056 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
7060 # even with config script, some packages use no-override for curses.h
7062 echo "$as_me:7062: checking if we have identified curses headers" >&5
7063 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
7064 if test "${cf_cv_ncurses_header+set}" = set; then
7065 echo $ECHO_N "(cached) $ECHO_C" >&6
7068 cf_cv_ncurses_header=none
7070 ncurses.h $cf_cv_screen/ncurses.h \
7071 curses.h $cf_cv_screen/curses.h
7073 cat >conftest.$ac_ext <<_ACEOF
7074 #line 7074 "configure"
7075 #include "confdefs.h"
7076 #include <${cf_header}>
7080 initscr(); tgoto("?", 0,0)
7085 rm -f conftest.$ac_objext
7086 if { (eval echo "$as_me:7086: \"$ac_compile\"") >&5
7087 (eval $ac_compile) 2>&5
7089 echo "$as_me:7089: \$? = $ac_status" >&5
7090 (exit $ac_status); } &&
7091 { ac_try='test -s conftest.$ac_objext'
7092 { (eval echo "$as_me:7092: \"$ac_try\"") >&5
7095 echo "$as_me:7095: \$? = $ac_status" >&5
7096 (exit $ac_status); }; }; then
7097 cf_cv_ncurses_header=$cf_header; break
7099 echo "$as_me: failed program was:" >&5
7100 cat conftest.$ac_ext >&5
7102 rm -f conftest.$ac_objext conftest.$ac_ext
7106 echo "$as_me:7106: result: $cf_cv_ncurses_header" >&5
7107 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
7109 if test "$cf_cv_ncurses_header" = none ; then
7110 { { echo "$as_me:7110: error: No curses header-files found" >&5
7111 echo "$as_me: error: No curses header-files found" >&2;}
7112 { (exit 1); exit 1; }; }
7115 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
7117 for ac_header in $cf_cv_ncurses_header
7119 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7120 echo "$as_me:7120: checking for $ac_header" >&5
7121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7125 cat >conftest.$ac_ext <<_ACEOF
7126 #line 7126 "configure"
7127 #include "confdefs.h"
7128 #include <$ac_header>
7130 if { (eval echo "$as_me:7130: \"$ac_cpp conftest.$ac_ext\"") >&5
7131 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7133 egrep -v '^ *\+' conftest.er1 >conftest.err
7135 cat conftest.err >&5
7136 echo "$as_me:7136: \$? = $ac_status" >&5
7137 (exit $ac_status); } >/dev/null; then
7138 if test -s conftest.err; then
7139 ac_cpp_err=$ac_c_preproc_warn_flag
7146 if test -z "$ac_cpp_err"; then
7147 eval "$as_ac_Header=yes"
7149 echo "$as_me: failed program was:" >&5
7150 cat conftest.$ac_ext >&5
7151 eval "$as_ac_Header=no"
7153 rm -f conftest.err conftest.$ac_ext
7155 echo "$as_me:7155: result: `eval echo '${'$as_ac_Header'}'`" >&5
7156 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7158 cat >>confdefs.h <<EOF
7159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7165 cat >>confdefs.h <<\EOF
7169 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7171 cat >>confdefs.h <<EOF
7172 #define $cf_nculib_ROOT 1
7175 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
7179 cf_ncuhdr_root=$cf_cv_screen
7181 test -n "$cf_cv_curses_dir" && \
7182 test "$cf_cv_curses_dir" != "no" && { \
7184 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
7185 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
7187 while test $cf_add_incdir != /usr/include
7189 if test -d $cf_add_incdir
7192 if test -n "$CFLAGS$CPPFLAGS" ; then
7193 # a loop is needed to ensure we can add subdirs of existing dirs
7194 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7195 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7196 cf_have_incdir=yes; break
7201 if test "$cf_have_incdir" = no ; then
7202 if test "$cf_add_incdir" = /usr/local/include ; then
7203 if test "$GCC" = yes
7205 cf_save_CPPFLAGS=$CPPFLAGS
7206 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7207 cat >conftest.$ac_ext <<_ACEOF
7208 #line 7208 "configure"
7209 #include "confdefs.h"
7219 rm -f conftest.$ac_objext
7220 if { (eval echo "$as_me:7220: \"$ac_compile\"") >&5
7221 (eval $ac_compile) 2>&5
7223 echo "$as_me:7223: \$? = $ac_status" >&5
7224 (exit $ac_status); } &&
7225 { ac_try='test -s conftest.$ac_objext'
7226 { (eval echo "$as_me:7226: \"$ac_try\"") >&5
7229 echo "$as_me:7229: \$? = $ac_status" >&5
7230 (exit $ac_status); }; }; then
7233 echo "$as_me: failed program was:" >&5
7234 cat conftest.$ac_ext >&5
7237 rm -f conftest.$ac_objext conftest.$ac_ext
7238 CPPFLAGS=$cf_save_CPPFLAGS
7243 if test "$cf_have_incdir" = no ; then
7244 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7246 echo "${as_me:-configure}:7246: testing adding $cf_add_incdir to include-path ..." 1>&5
7248 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7250 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
7251 test "$cf_top_incdir" = "$cf_add_incdir" && break
7252 cf_add_incdir="$cf_top_incdir"
7265 echo "$as_me:7265: checking for $cf_ncuhdr_root header in include-path" >&5
7266 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
7267 if test "${cf_cv_ncurses_h+set}" = set; then
7268 echo $ECHO_N "(cached) $ECHO_C" >&6
7271 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
7272 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
7273 for cf_header in $cf_header_list
7276 cat >conftest.$ac_ext <<_ACEOF
7277 #line 7277 "configure"
7278 #include "confdefs.h"
7280 #include <$cf_header>
7285 #ifdef NCURSES_VERSION
7287 printf("%s\n", NCURSES_VERSION);
7300 rm -f conftest.$ac_objext
7301 if { (eval echo "$as_me:7301: \"$ac_compile\"") >&5
7302 (eval $ac_compile) 2>&5
7304 echo "$as_me:7304: \$? = $ac_status" >&5
7305 (exit $ac_status); } &&
7306 { ac_try='test -s conftest.$ac_objext'
7307 { (eval echo "$as_me:7307: \"$ac_try\"") >&5
7310 echo "$as_me:7310: \$? = $ac_status" >&5
7311 (exit $ac_status); }; }; then
7312 cf_cv_ncurses_h=$cf_header
7315 echo "$as_me: failed program was:" >&5
7316 cat conftest.$ac_ext >&5
7319 rm -f conftest.$ac_objext conftest.$ac_ext
7321 test "$cf_cv_ncurses_h" != no && break
7325 echo "$as_me:7325: result: $cf_cv_ncurses_h" >&5
7326 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
7328 if test "$cf_cv_ncurses_h" != no ; then
7329 cf_cv_ncurses_header=$cf_cv_ncurses_h
7332 echo "$as_me:7332: checking for $cf_ncuhdr_root include-path" >&5
7333 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
7334 if test "${cf_cv_ncurses_h2+set}" = set; then
7335 echo $ECHO_N "(cached) $ECHO_C" >&6
7338 test -n "$verbose" && echo
7342 # collect the current set of include-directories from compiler flags
7343 cf_header_path_list=""
7344 if test -n "${CFLAGS}${CPPFLAGS}" ; then
7345 for cf_header_path in $CPPFLAGS $CFLAGS
7347 case $cf_header_path in
7349 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
7351 test "x$cf_header_path" != "xNONE" && \
7352 test -d "$cf_header_path" && \
7354 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
7355 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
7356 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
7357 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
7358 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
7359 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"
7362 cf_header_path_list="$cf_header_path_list $cf_search"
7368 # add the variations for the package we are looking for
7372 test "x$prefix" != "xNONE" && \
7373 test -d "$prefix" && \
7375 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
7376 test -d $prefix/include && cf_search="$cf_search $prefix/include"
7377 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
7378 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
7379 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
7380 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
7383 for cf_subdir_prefix in \
7392 test "x$cf_subdir_prefix" != "x$prefix" && \
7393 test -d "$cf_subdir_prefix" && \
7394 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
7395 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
7396 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
7397 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root"
7398 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root/include"
7399 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include"
7400 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"
7405 test "$includedir" != NONE && \
7406 test "$includedir" != "/usr/include" && \
7407 test -d "$includedir" && {
7408 test -d $includedir && cf_search="$cf_search $includedir"
7409 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
7412 test "$oldincludedir" != NONE && \
7413 test "$oldincludedir" != "/usr/include" && \
7414 test -d "$oldincludedir" && {
7415 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
7416 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
7419 cf_search="$cf_search $cf_header_path_list"
7421 test -n "$verbose" && echo search path $cf_search
7422 cf_save2_CPPFLAGS="$CPPFLAGS"
7423 for cf_incdir in $cf_search
7426 if test -n "$cf_incdir" ; then
7427 for cf_add_incdir in $cf_incdir
7429 while test $cf_add_incdir != /usr/include
7431 if test -d $cf_add_incdir
7434 if test -n "$CFLAGS$CPPFLAGS" ; then
7435 # a loop is needed to ensure we can add subdirs of existing dirs
7436 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7437 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7438 cf_have_incdir=yes; break
7443 if test "$cf_have_incdir" = no ; then
7444 if test "$cf_add_incdir" = /usr/local/include ; then
7445 if test "$GCC" = yes
7447 cf_save_CPPFLAGS=$CPPFLAGS
7448 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7449 cat >conftest.$ac_ext <<_ACEOF
7450 #line 7450 "configure"
7451 #include "confdefs.h"
7461 rm -f conftest.$ac_objext
7462 if { (eval echo "$as_me:7462: \"$ac_compile\"") >&5
7463 (eval $ac_compile) 2>&5
7465 echo "$as_me:7465: \$? = $ac_status" >&5
7466 (exit $ac_status); } &&
7467 { ac_try='test -s conftest.$ac_objext'
7468 { (eval echo "$as_me:7468: \"$ac_try\"") >&5
7471 echo "$as_me:7471: \$? = $ac_status" >&5
7472 (exit $ac_status); }; }; then
7475 echo "$as_me: failed program was:" >&5
7476 cat conftest.$ac_ext >&5
7479 rm -f conftest.$ac_objext conftest.$ac_ext
7480 CPPFLAGS=$cf_save_CPPFLAGS
7485 if test "$cf_have_incdir" = no ; then
7486 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7488 echo "${as_me:-configure}:7488: testing adding $cf_add_incdir to include-path ..." 1>&5
7490 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7492 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
7493 test "$cf_top_incdir" = "$cf_add_incdir" && break
7494 cf_add_incdir="$cf_top_incdir"
7510 cat >conftest.$ac_ext <<_ACEOF
7511 #line 7511 "configure"
7512 #include "confdefs.h"
7514 #include <$cf_header>
7519 #ifdef NCURSES_VERSION
7521 printf("%s\n", NCURSES_VERSION);
7534 rm -f conftest.$ac_objext
7535 if { (eval echo "$as_me:7535: \"$ac_compile\"") >&5
7536 (eval $ac_compile) 2>&5
7538 echo "$as_me:7538: \$? = $ac_status" >&5
7539 (exit $ac_status); } &&
7540 { ac_try='test -s conftest.$ac_objext'
7541 { (eval echo "$as_me:7541: \"$ac_try\"") >&5
7544 echo "$as_me:7544: \$? = $ac_status" >&5
7545 (exit $ac_status); }; }; then
7546 cf_cv_ncurses_h2=$cf_header
7549 echo "$as_me: failed program was:" >&5
7550 cat conftest.$ac_ext >&5
7553 rm -f conftest.$ac_objext conftest.$ac_ext
7555 if test "$cf_cv_ncurses_h2" != no ; then
7556 cf_cv_ncurses_h2=$cf_incdir/$cf_header
7557 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
7560 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
7562 CPPFLAGS="$cf_save2_CPPFLAGS"
7563 test "$cf_cv_ncurses_h2" != no && break
7565 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:7565: error: not found" >&5
7566 echo "$as_me: error: not found" >&2;}
7567 { (exit 1); exit 1; }; }
7570 echo "$as_me:7570: result: $cf_cv_ncurses_h2" >&5
7571 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
7573 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
7574 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
7575 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
7576 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
7579 if test -n "$cf_1st_incdir" ; then
7580 for cf_add_incdir in $cf_1st_incdir
7582 while test $cf_add_incdir != /usr/include
7584 if test -d $cf_add_incdir
7587 if test -n "$CFLAGS$CPPFLAGS" ; then
7588 # a loop is needed to ensure we can add subdirs of existing dirs
7589 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7590 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7591 cf_have_incdir=yes; break
7596 if test "$cf_have_incdir" = no ; then
7597 if test "$cf_add_incdir" = /usr/local/include ; then
7598 if test "$GCC" = yes
7600 cf_save_CPPFLAGS=$CPPFLAGS
7601 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7602 cat >conftest.$ac_ext <<_ACEOF
7603 #line 7603 "configure"
7604 #include "confdefs.h"
7614 rm -f conftest.$ac_objext
7615 if { (eval echo "$as_me:7615: \"$ac_compile\"") >&5
7616 (eval $ac_compile) 2>&5
7618 echo "$as_me:7618: \$? = $ac_status" >&5
7619 (exit $ac_status); } &&
7620 { ac_try='test -s conftest.$ac_objext'
7621 { (eval echo "$as_me:7621: \"$ac_try\"") >&5
7624 echo "$as_me:7624: \$? = $ac_status" >&5
7625 (exit $ac_status); }; }; then
7628 echo "$as_me: failed program was:" >&5
7629 cat conftest.$ac_ext >&5
7632 rm -f conftest.$ac_objext conftest.$ac_ext
7633 CPPFLAGS=$cf_save_CPPFLAGS
7638 if test "$cf_have_incdir" = no ; then
7639 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7641 echo "${as_me:-configure}:7641: testing adding $cf_add_incdir to include-path ..." 1>&5
7643 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7645 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
7646 test "$cf_top_incdir" = "$cf_add_incdir" && break
7647 cf_add_incdir="$cf_top_incdir"
7660 # Set definitions to allow ifdef'ing for ncurses.h
7662 case $cf_cv_ncurses_header in
7665 cat >>confdefs.h <<\EOF
7666 #define HAVE_NCURSES_H 1
7672 case $cf_cv_ncurses_header in
7673 (ncurses/curses.h|ncurses/ncurses.h)
7675 cat >>confdefs.h <<\EOF
7676 #define HAVE_NCURSES_NCURSES_H 1
7680 (ncursesw/curses.h|ncursesw/ncurses.h)
7682 cat >>confdefs.h <<\EOF
7683 #define HAVE_NCURSESW_NCURSES_H 1
7689 echo "$as_me:7689: checking for terminfo header" >&5
7690 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
7691 if test "${cf_cv_term_header+set}" = set; then
7692 echo $ECHO_N "(cached) $ECHO_C" >&6
7695 case ${cf_cv_ncurses_header} in
7696 (*/ncurses.h|*/ncursesw.h)
7697 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
7700 cf_term_header=term.h
7704 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
7706 cat >conftest.$ac_ext <<_ACEOF
7707 #line 7707 "configure"
7708 #include "confdefs.h"
7710 #include <${cf_cv_ncurses_header:-curses.h}>
7716 int x = auto_left_margin
7721 rm -f conftest.$ac_objext
7722 if { (eval echo "$as_me:7722: \"$ac_compile\"") >&5
7723 (eval $ac_compile) 2>&5
7725 echo "$as_me:7725: \$? = $ac_status" >&5
7726 (exit $ac_status); } &&
7727 { ac_try='test -s conftest.$ac_objext'
7728 { (eval echo "$as_me:7728: \"$ac_try\"") >&5
7731 echo "$as_me:7731: \$? = $ac_status" >&5
7732 (exit $ac_status); }; }; then
7734 cf_cv_term_header="$cf_test"
7736 echo "$as_me: failed program was:" >&5
7737 cat conftest.$ac_ext >&5
7739 cf_cv_term_header=unknown
7742 rm -f conftest.$ac_objext conftest.$ac_ext
7743 test "$cf_cv_term_header" != unknown && break
7747 echo "$as_me:7747: result: $cf_cv_term_header" >&5
7748 echo "${ECHO_T}$cf_cv_term_header" >&6
7750 # Set definitions to allow ifdef'ing to accommodate subdirectories
7752 case $cf_cv_term_header in
7755 cat >>confdefs.h <<\EOF
7756 #define HAVE_TERM_H 1
7762 case $cf_cv_term_header in
7765 cat >>confdefs.h <<\EOF
7766 #define HAVE_NCURSES_TERM_H 1
7772 cat >>confdefs.h <<\EOF
7773 #define HAVE_NCURSESW_TERM_H 1
7779 # some applications need this, but should check for NCURSES_VERSION
7781 cat >>confdefs.h <<\EOF
7785 echo "$as_me:7785: checking for ncurses version" >&5
7786 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
7787 if test "${cf_cv_ncurses_version+set}" = set; then
7788 echo $ECHO_N "(cached) $ECHO_C" >&6
7791 cf_cv_ncurses_version=no
7794 if test "$cross_compiling" = yes; then
7796 # This will not work if the preprocessor splits the line after the
7797 # Autoconf token. The 'unproto' program does that.
7798 cat > conftest.$ac_ext <<EOF
7799 #include <${cf_cv_ncurses_header:-curses.h}>
7801 #ifdef NCURSES_VERSION
7802 Autoconf NCURSES_VERSION
7810 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
7811 { (eval echo "$as_me:7811: \"$cf_try\"") >&5
7814 echo "$as_me:7814: \$? = $ac_status" >&5
7815 (exit $ac_status); }
7816 if test -f conftest.out ; then
7817 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
7818 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
7823 cat >conftest.$ac_ext <<_ACEOF
7824 #line 7824 "configure"
7825 #include "confdefs.h"
7827 #include <${cf_cv_ncurses_header:-curses.h}>
7831 FILE *fp = fopen("$cf_tempfile", "w");
7832 #ifdef NCURSES_VERSION
7833 # ifdef NCURSES_VERSION_PATCH
7834 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
7836 fprintf(fp, "%s\n", NCURSES_VERSION);
7840 fprintf(fp, "old\n");
7845 ${cf_cv_main_return:-return}(0);
7848 rm -f conftest$ac_exeext
7849 if { (eval echo "$as_me:7849: \"$ac_link\"") >&5
7850 (eval $ac_link) 2>&5
7852 echo "$as_me:7852: \$? = $ac_status" >&5
7853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7854 { (eval echo "$as_me:7854: \"$ac_try\"") >&5
7857 echo "$as_me:7857: \$? = $ac_status" >&5
7858 (exit $ac_status); }; }; then
7860 cf_cv_ncurses_version=`cat $cf_tempfile`
7862 echo "$as_me: program exited with status $ac_status" >&5
7863 echo "$as_me: failed program was:" >&5
7864 cat conftest.$ac_ext >&5
7866 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7871 echo "$as_me:7871: result: $cf_cv_ncurses_version" >&5
7872 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
7873 test "$cf_cv_ncurses_version" = no ||
7874 cat >>confdefs.h <<\EOF
7878 cf_nculib_root=$cf_cv_screen
7879 # This works, except for the special case where we find gpm, but
7880 # ncurses is in a nonstandard location via $LIBS, and we really want
7883 cf_ncurses_SAVE="$LIBS"
7884 echo "$as_me:7884: checking for Gpm_Open in -lgpm" >&5
7885 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
7886 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7889 ac_check_lib_save_LIBS=$LIBS
7891 cat >conftest.$ac_ext <<_ACEOF
7892 #line 7892 "configure"
7893 #include "confdefs.h"
7895 /* Override any gcc2 internal prototype to avoid an error. */
7899 /* We use char because int might match the return type of a gcc2
7900 builtin and then its argument prototype would still apply. */
7910 rm -f conftest.$ac_objext conftest$ac_exeext
7911 if { (eval echo "$as_me:7911: \"$ac_link\"") >&5
7912 (eval $ac_link) 2>&5
7914 echo "$as_me:7914: \$? = $ac_status" >&5
7915 (exit $ac_status); } &&
7916 { ac_try='test -s conftest$ac_exeext'
7917 { (eval echo "$as_me:7917: \"$ac_try\"") >&5
7920 echo "$as_me:7920: \$? = $ac_status" >&5
7921 (exit $ac_status); }; }; then
7922 ac_cv_lib_gpm_Gpm_Open=yes
7924 echo "$as_me: failed program was:" >&5
7925 cat conftest.$ac_ext >&5
7926 ac_cv_lib_gpm_Gpm_Open=no
7928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7929 LIBS=$ac_check_lib_save_LIBS
7931 echo "$as_me:7931: result: $ac_cv_lib_gpm_Gpm_Open" >&5
7932 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
7933 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
7934 echo "$as_me:7934: checking for initscr in -lgpm" >&5
7935 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
7936 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
7937 echo $ECHO_N "(cached) $ECHO_C" >&6
7939 ac_check_lib_save_LIBS=$LIBS
7941 cat >conftest.$ac_ext <<_ACEOF
7942 #line 7942 "configure"
7943 #include "confdefs.h"
7945 /* Override any gcc2 internal prototype to avoid an error. */
7949 /* We use char because int might match the return type of a gcc2
7950 builtin and then its argument prototype would still apply. */
7960 rm -f conftest.$ac_objext conftest$ac_exeext
7961 if { (eval echo "$as_me:7961: \"$ac_link\"") >&5
7962 (eval $ac_link) 2>&5
7964 echo "$as_me:7964: \$? = $ac_status" >&5
7965 (exit $ac_status); } &&
7966 { ac_try='test -s conftest$ac_exeext'
7967 { (eval echo "$as_me:7967: \"$ac_try\"") >&5
7970 echo "$as_me:7970: \$? = $ac_status" >&5
7971 (exit $ac_status); }; }; then
7972 ac_cv_lib_gpm_initscr=yes
7974 echo "$as_me: failed program was:" >&5
7975 cat conftest.$ac_ext >&5
7976 ac_cv_lib_gpm_initscr=no
7978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7979 LIBS=$ac_check_lib_save_LIBS
7981 echo "$as_me:7981: result: $ac_cv_lib_gpm_initscr" >&5
7982 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
7983 if test $ac_cv_lib_gpm_initscr = yes; then
7984 LIBS="$cf_ncurses_SAVE"
7986 cf_ncurses_LIBS="-lgpm"
7993 # This is only necessary if you are linking against an obsolete
7994 # version of ncurses (but it should do no harm, since it's static).
7995 if test "$cf_nculib_root" = ncurses ; then
7996 echo "$as_me:7996: checking for tgoto in -lmytinfo" >&5
7997 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
7998 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
7999 echo $ECHO_N "(cached) $ECHO_C" >&6
8001 ac_check_lib_save_LIBS=$LIBS
8002 LIBS="-lmytinfo $LIBS"
8003 cat >conftest.$ac_ext <<_ACEOF
8004 #line 8004 "configure"
8005 #include "confdefs.h"
8007 /* Override any gcc2 internal prototype to avoid an error. */
8011 /* We use char because int might match the return type of a gcc2
8012 builtin and then its argument prototype would still apply. */
8022 rm -f conftest.$ac_objext conftest$ac_exeext
8023 if { (eval echo "$as_me:8023: \"$ac_link\"") >&5
8024 (eval $ac_link) 2>&5
8026 echo "$as_me:8026: \$? = $ac_status" >&5
8027 (exit $ac_status); } &&
8028 { ac_try='test -s conftest$ac_exeext'
8029 { (eval echo "$as_me:8029: \"$ac_try\"") >&5
8032 echo "$as_me:8032: \$? = $ac_status" >&5
8033 (exit $ac_status); }; }; then
8034 ac_cv_lib_mytinfo_tgoto=yes
8036 echo "$as_me: failed program was:" >&5
8037 cat conftest.$ac_ext >&5
8038 ac_cv_lib_mytinfo_tgoto=no
8040 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8041 LIBS=$ac_check_lib_save_LIBS
8043 echo "$as_me:8043: result: $ac_cv_lib_mytinfo_tgoto" >&5
8044 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
8045 if test $ac_cv_lib_mytinfo_tgoto = yes; then
8046 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
8053 cf_add_libs="$cf_ncurses_LIBS"
8054 # Filter out duplicates - this happens with badly-designed ".pc" files...
8055 for cf_add_1lib in $LIBS
8057 for cf_add_2lib in $cf_add_libs
8059 if test "x$cf_add_1lib" = "x$cf_add_2lib"
8065 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
8069 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
8072 cf_add_libs="-l$cf_nculib_root"
8073 # Filter out duplicates - this happens with badly-designed ".pc" files...
8074 for cf_add_1lib in $LIBS
8076 for cf_add_2lib in $cf_add_libs
8078 if test "x$cf_add_1lib" = "x$cf_add_2lib"
8084 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
8090 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
8092 echo "$as_me:8092: checking for initscr" >&5
8093 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
8094 if test "${ac_cv_func_initscr+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8097 cat >conftest.$ac_ext <<_ACEOF
8098 #line 8098 "configure"
8099 #include "confdefs.h"
8100 /* System header to define __stub macros and hopefully few prototypes,
8101 which can conflict with char initscr (); below. */
8103 /* Override any gcc2 internal prototype to avoid an error. */
8107 /* We use char because int might match the return type of a gcc2
8108 builtin and then its argument prototype would still apply. */
8115 /* The GNU C library defines this for functions which it implements
8116 to always fail with ENOSYS. Some functions are actually named
8117 something starting with __ and the normal name is an alias. */
8118 #if defined (__stub_initscr) || defined (__stub___initscr)
8121 f = initscr; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
8128 rm -f conftest.$ac_objext conftest$ac_exeext
8129 if { (eval echo "$as_me:8129: \"$ac_link\"") >&5
8130 (eval $ac_link) 2>&5
8132 echo "$as_me:8132: \$? = $ac_status" >&5
8133 (exit $ac_status); } &&
8134 { ac_try='test -s conftest$ac_exeext'
8135 { (eval echo "$as_me:8135: \"$ac_try\"") >&5
8138 echo "$as_me:8138: \$? = $ac_status" >&5
8139 (exit $ac_status); }; }; then
8140 ac_cv_func_initscr=yes
8142 echo "$as_me: failed program was:" >&5
8143 cat conftest.$ac_ext >&5
8144 ac_cv_func_initscr=no
8146 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8148 echo "$as_me:8148: result: $ac_cv_func_initscr" >&5
8149 echo "${ECHO_T}$ac_cv_func_initscr" >&6
8150 if test $ac_cv_func_initscr = yes; then
8151 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
8154 cf_save_LIBS="$LIBS"
8155 echo "$as_me:8155: checking for initscr in -l$cf_nculib_root" >&5
8156 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
8157 LIBS="-l$cf_nculib_root $LIBS"
8158 cat >conftest.$ac_ext <<_ACEOF
8159 #line 8159 "configure"
8160 #include "confdefs.h"
8161 #include <${cf_cv_ncurses_header:-curses.h}>
8170 rm -f conftest.$ac_objext conftest$ac_exeext
8171 if { (eval echo "$as_me:8171: \"$ac_link\"") >&5
8172 (eval $ac_link) 2>&5
8174 echo "$as_me:8174: \$? = $ac_status" >&5
8175 (exit $ac_status); } &&
8176 { ac_try='test -s conftest$ac_exeext'
8177 { (eval echo "$as_me:8177: \"$ac_try\"") >&5
8180 echo "$as_me:8180: \$? = $ac_status" >&5
8181 (exit $ac_status); }; }; then
8182 echo "$as_me:8182: result: yes" >&5
8183 echo "${ECHO_T}yes" >&6
8184 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
8187 echo "$as_me: failed program was:" >&5
8188 cat conftest.$ac_ext >&5
8189 echo "$as_me:8189: result: no" >&5
8190 echo "${ECHO_T}no" >&6
8193 cf_library_path_list=""
8194 if test -n "${LDFLAGS}${LIBS}" ; then
8195 for cf_library_path in $LDFLAGS $LIBS
8197 case $cf_library_path in
8199 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
8201 test "x$cf_library_path" != "xNONE" && \
8202 test -d "$cf_library_path" && \
8204 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
8205 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
8206 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
8207 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
8208 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
8209 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"
8212 cf_library_path_list="$cf_library_path_list $cf_search"
8220 test "x$prefix" != "xNONE" && \
8221 test -d "$prefix" && \
8223 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
8224 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
8225 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
8226 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
8227 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
8228 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
8231 for cf_subdir_prefix in \
8240 test "x$cf_subdir_prefix" != "x$prefix" && \
8241 test -d "$cf_subdir_prefix" && \
8242 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
8243 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
8244 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
8245 test -d $cf_subdir_prefix/lib/$cf_nculib_root && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root"
8246 test -d $cf_subdir_prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root/lib"
8247 test -d $cf_subdir_prefix/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib"
8248 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"
8253 cf_search="$cf_library_path_list $cf_search"
8255 for cf_libdir in $cf_search
8257 echo "$as_me:8257: checking for -l$cf_nculib_root in $cf_libdir" >&5
8258 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
8259 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
8260 cat >conftest.$ac_ext <<_ACEOF
8261 #line 8261 "configure"
8262 #include "confdefs.h"
8263 #include <${cf_cv_ncurses_header:-curses.h}>
8272 rm -f conftest.$ac_objext conftest$ac_exeext
8273 if { (eval echo "$as_me:8273: \"$ac_link\"") >&5
8274 (eval $ac_link) 2>&5
8276 echo "$as_me:8276: \$? = $ac_status" >&5
8277 (exit $ac_status); } &&
8278 { ac_try='test -s conftest$ac_exeext'
8279 { (eval echo "$as_me:8279: \"$ac_try\"") >&5
8282 echo "$as_me:8282: \$? = $ac_status" >&5
8283 (exit $ac_status); }; }; then
8284 echo "$as_me:8284: result: yes" >&5
8285 echo "${ECHO_T}yes" >&6
8286 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
8289 echo "$as_me: failed program was:" >&5
8290 cat conftest.$ac_ext >&5
8291 echo "$as_me:8291: result: no" >&5
8292 echo "${ECHO_T}no" >&6
8293 LIBS="$cf_save_LIBS"
8295 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8299 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8303 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
8305 if test $cf_found_library = no ; then
8306 { { echo "$as_me:8306: error: Cannot link $cf_nculib_root library" >&5
8307 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
8308 { (exit 1); exit 1; }; }
8313 if test -n "$cf_ncurses_LIBS" ; then
8314 echo "$as_me:8314: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
8315 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
8316 cf_ncurses_SAVE="$LIBS"
8317 for p in $cf_ncurses_LIBS ; do
8318 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
8319 if test "$q" != "$LIBS" ; then
8323 cat >conftest.$ac_ext <<_ACEOF
8324 #line 8324 "configure"
8325 #include "confdefs.h"
8326 #include <${cf_cv_ncurses_header:-curses.h}>
8330 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
8335 rm -f conftest.$ac_objext conftest$ac_exeext
8336 if { (eval echo "$as_me:8336: \"$ac_link\"") >&5
8337 (eval $ac_link) 2>&5
8339 echo "$as_me:8339: \$? = $ac_status" >&5
8340 (exit $ac_status); } &&
8341 { ac_try='test -s conftest$ac_exeext'
8342 { (eval echo "$as_me:8342: \"$ac_try\"") >&5
8345 echo "$as_me:8345: \$? = $ac_status" >&5
8346 (exit $ac_status); }; }; then
8347 echo "$as_me:8347: result: yes" >&5
8348 echo "${ECHO_T}yes" >&6
8350 echo "$as_me: failed program was:" >&5
8351 cat conftest.$ac_ext >&5
8352 echo "$as_me:8352: result: no" >&5
8353 echo "${ECHO_T}no" >&6
8354 LIBS="$cf_ncurses_SAVE"
8356 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8359 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
8361 cat >>confdefs.h <<EOF
8362 #define $cf_nculib_ROOT 1
8373 cf_ncuconfig_root=$cf_cv_screen
8374 cf_have_ncuconfig=no
8376 if test "x${PKG_CONFIG:=none}" != xnone; then
8377 echo "$as_me:8377: checking pkg-config for $cf_ncuconfig_root" >&5
8378 echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
8379 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
8380 echo "$as_me:8380: result: yes" >&5
8381 echo "${ECHO_T}yes" >&6
8383 echo "$as_me:8383: checking if the $cf_ncuconfig_root package files work" >&5
8384 echo $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
8385 cf_have_ncuconfig=unknown
8387 cf_save_CPPFLAGS="$CPPFLAGS"
8388 cf_save_LIBS="$LIBS"
8390 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG --cflags $cf_ncuconfig_root`"
8392 cf_add_libs="`$PKG_CONFIG --libs $cf_ncuconfig_root`"
8393 # Filter out duplicates - this happens with badly-designed ".pc" files...
8394 for cf_add_1lib in $LIBS
8396 for cf_add_2lib in $cf_add_libs
8398 if test "x$cf_add_1lib" = "x$cf_add_2lib"
8404 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
8408 cat >conftest.$ac_ext <<_ACEOF
8409 #line 8409 "configure"
8410 #include "confdefs.h"
8411 #include <${cf_cv_ncurses_header:-curses.h}>
8415 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
8420 rm -f conftest.$ac_objext conftest$ac_exeext
8421 if { (eval echo "$as_me:8421: \"$ac_link\"") >&5
8422 (eval $ac_link) 2>&5
8424 echo "$as_me:8424: \$? = $ac_status" >&5
8425 (exit $ac_status); } &&
8426 { ac_try='test -s conftest$ac_exeext'
8427 { (eval echo "$as_me:8427: \"$ac_try\"") >&5
8430 echo "$as_me:8430: \$? = $ac_status" >&5
8431 (exit $ac_status); }; }; then
8432 if test "$cross_compiling" = yes; then
8433 cf_have_ncuconfig=maybe
8435 cat >conftest.$ac_ext <<_ACEOF
8436 #line 8436 "configure"
8437 #include "confdefs.h"
8438 #include <${cf_cv_ncurses_header:-curses.h}>
8440 { char *xx = curses_version(); return (xx == 0); }
8442 rm -f conftest$ac_exeext
8443 if { (eval echo "$as_me:8443: \"$ac_link\"") >&5
8444 (eval $ac_link) 2>&5
8446 echo "$as_me:8446: \$? = $ac_status" >&5
8447 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8448 { (eval echo "$as_me:8448: \"$ac_try\"") >&5
8451 echo "$as_me:8451: \$? = $ac_status" >&5
8452 (exit $ac_status); }; }; then
8453 cf_have_ncuconfig=yes
8455 echo "$as_me: program exited with status $ac_status" >&5
8456 echo "$as_me: failed program was:" >&5
8457 cat conftest.$ac_ext >&5
8458 cf_have_ncuconfig=no
8460 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8463 echo "$as_me: failed program was:" >&5
8464 cat conftest.$ac_ext >&5
8465 cf_have_ncuconfig=no
8467 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8468 echo "$as_me:8468: result: $cf_have_ncuconfig" >&5
8469 echo "${ECHO_T}$cf_have_ncuconfig" >&6
8470 test "$cf_have_ncuconfig" = maybe && cf_have_ncuconfig=yes
8471 if test "$cf_have_ncuconfig" != "yes"
8473 CPPFLAGS="$cf_save_CPPFLAGS"
8474 LIBS="$cf_save_LIBS"
8475 NCURSES_CONFIG_PKG=none
8478 cat >>confdefs.h <<\EOF
8482 NCURSES_CONFIG_PKG=$cf_ncuconfig_root
8485 echo "$as_me:8485: checking for terminfo header" >&5
8486 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
8487 if test "${cf_cv_term_header+set}" = set; then
8488 echo $ECHO_N "(cached) $ECHO_C" >&6
8491 case ${cf_cv_ncurses_header} in
8492 (*/ncurses.h|*/ncursesw.h)
8493 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
8496 cf_term_header=term.h
8500 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
8502 cat >conftest.$ac_ext <<_ACEOF
8503 #line 8503 "configure"
8504 #include "confdefs.h"
8506 #include <${cf_cv_ncurses_header:-curses.h}>
8512 int x = auto_left_margin
8517 rm -f conftest.$ac_objext
8518 if { (eval echo "$as_me:8518: \"$ac_compile\"") >&5
8519 (eval $ac_compile) 2>&5
8521 echo "$as_me:8521: \$? = $ac_status" >&5
8522 (exit $ac_status); } &&
8523 { ac_try='test -s conftest.$ac_objext'
8524 { (eval echo "$as_me:8524: \"$ac_try\"") >&5
8527 echo "$as_me:8527: \$? = $ac_status" >&5
8528 (exit $ac_status); }; }; then
8530 cf_cv_term_header="$cf_test"
8532 echo "$as_me: failed program was:" >&5
8533 cat conftest.$ac_ext >&5
8535 cf_cv_term_header=unknown
8538 rm -f conftest.$ac_objext conftest.$ac_ext
8539 test "$cf_cv_term_header" != unknown && break
8543 echo "$as_me:8543: result: $cf_cv_term_header" >&5
8544 echo "${ECHO_T}$cf_cv_term_header" >&6
8546 # Set definitions to allow ifdef'ing to accommodate subdirectories
8548 case $cf_cv_term_header in
8551 cat >>confdefs.h <<\EOF
8552 #define HAVE_TERM_H 1
8558 case $cf_cv_term_header in
8561 cat >>confdefs.h <<\EOF
8562 #define HAVE_NCURSES_TERM_H 1
8568 cat >>confdefs.h <<\EOF
8569 #define HAVE_NCURSESW_TERM_H 1
8576 echo "$as_me:8576: result: no" >&5
8577 echo "${ECHO_T}no" >&6
8578 NCURSES_CONFIG_PKG=none
8581 NCURSES_CONFIG_PKG=none
8584 if test "x$cf_have_ncuconfig" = "xno"; then
8585 echo "Looking for ${cf_ncuconfig_root}-config"
8587 if test -n "$ac_tool_prefix"; then
8588 for ac_prog in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
8590 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8591 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8592 echo "$as_me:8592: checking for $ac_word" >&5
8593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8594 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
8595 echo $ECHO_N "(cached) $ECHO_C" >&6
8597 if test -n "$NCURSES_CONFIG"; then
8598 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
8600 ac_save_IFS=$IFS; IFS=$ac_path_separator
8602 for ac_dir in $ac_dummy; do
8604 test -z "$ac_dir" && ac_dir=.
8605 $as_executable_p "$ac_dir/$ac_word" || continue
8606 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
8607 echo "$as_me:8607: found $ac_dir/$ac_word" >&5
8613 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
8614 if test -n "$NCURSES_CONFIG"; then
8615 echo "$as_me:8615: result: $NCURSES_CONFIG" >&5
8616 echo "${ECHO_T}$NCURSES_CONFIG" >&6
8618 echo "$as_me:8618: result: no" >&5
8619 echo "${ECHO_T}no" >&6
8622 test -n "$NCURSES_CONFIG" && break
8625 if test -z "$NCURSES_CONFIG"; then
8626 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
8627 for ac_prog in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
8629 # Extract the first word of "$ac_prog", so it can be a program name with args.
8630 set dummy $ac_prog; ac_word=$2
8631 echo "$as_me:8631: checking for $ac_word" >&5
8632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8633 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
8634 echo $ECHO_N "(cached) $ECHO_C" >&6
8636 if test -n "$ac_ct_NCURSES_CONFIG"; then
8637 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
8639 ac_save_IFS=$IFS; IFS=$ac_path_separator
8641 for ac_dir in $ac_dummy; do
8643 test -z "$ac_dir" && ac_dir=.
8644 $as_executable_p "$ac_dir/$ac_word" || continue
8645 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
8646 echo "$as_me:8646: found $ac_dir/$ac_word" >&5
8652 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
8653 if test -n "$ac_ct_NCURSES_CONFIG"; then
8654 echo "$as_me:8654: result: $ac_ct_NCURSES_CONFIG" >&5
8655 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
8657 echo "$as_me:8657: result: no" >&5
8658 echo "${ECHO_T}no" >&6
8661 test -n "$ac_ct_NCURSES_CONFIG" && break
8663 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
8665 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
8668 if test "$NCURSES_CONFIG" != none ; then
8670 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
8672 cf_add_libs="`$NCURSES_CONFIG --libs`"
8673 # Filter out duplicates - this happens with badly-designed ".pc" files...
8674 for cf_add_1lib in $LIBS
8676 for cf_add_2lib in $cf_add_libs
8678 if test "x$cf_add_1lib" = "x$cf_add_2lib"
8684 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
8688 # even with config script, some packages use no-override for curses.h
8690 echo "$as_me:8690: checking if we have identified curses headers" >&5
8691 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
8692 if test "${cf_cv_ncurses_header+set}" = set; then
8693 echo $ECHO_N "(cached) $ECHO_C" >&6
8696 cf_cv_ncurses_header=none
8698 ncurses.h $cf_cv_screen/ncurses.h \
8699 curses.h $cf_cv_screen/curses.h
8701 cat >conftest.$ac_ext <<_ACEOF
8702 #line 8702 "configure"
8703 #include "confdefs.h"
8704 #include <${cf_header}>
8708 initscr(); tgoto("?", 0,0)
8713 rm -f conftest.$ac_objext
8714 if { (eval echo "$as_me:8714: \"$ac_compile\"") >&5
8715 (eval $ac_compile) 2>&5
8717 echo "$as_me:8717: \$? = $ac_status" >&5
8718 (exit $ac_status); } &&
8719 { ac_try='test -s conftest.$ac_objext'
8720 { (eval echo "$as_me:8720: \"$ac_try\"") >&5
8723 echo "$as_me:8723: \$? = $ac_status" >&5
8724 (exit $ac_status); }; }; then
8725 cf_cv_ncurses_header=$cf_header; break
8727 echo "$as_me: failed program was:" >&5
8728 cat conftest.$ac_ext >&5
8730 rm -f conftest.$ac_objext conftest.$ac_ext
8734 echo "$as_me:8734: result: $cf_cv_ncurses_header" >&5
8735 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
8737 if test "$cf_cv_ncurses_header" = none ; then
8738 { { echo "$as_me:8738: error: No curses header-files found" >&5
8739 echo "$as_me: error: No curses header-files found" >&2;}
8740 { (exit 1); exit 1; }; }
8743 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
8745 for ac_header in $cf_cv_ncurses_header
8747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8748 echo "$as_me:8748: checking for $ac_header" >&5
8749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8751 echo $ECHO_N "(cached) $ECHO_C" >&6
8753 cat >conftest.$ac_ext <<_ACEOF
8754 #line 8754 "configure"
8755 #include "confdefs.h"
8756 #include <$ac_header>
8758 if { (eval echo "$as_me:8758: \"$ac_cpp conftest.$ac_ext\"") >&5
8759 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8761 egrep -v '^ *\+' conftest.er1 >conftest.err
8763 cat conftest.err >&5
8764 echo "$as_me:8764: \$? = $ac_status" >&5
8765 (exit $ac_status); } >/dev/null; then
8766 if test -s conftest.err; then
8767 ac_cpp_err=$ac_c_preproc_warn_flag
8774 if test -z "$ac_cpp_err"; then
8775 eval "$as_ac_Header=yes"
8777 echo "$as_me: failed program was:" >&5
8778 cat conftest.$ac_ext >&5
8779 eval "$as_ac_Header=no"
8781 rm -f conftest.err conftest.$ac_ext
8783 echo "$as_me:8783: result: `eval echo '${'$as_ac_Header'}'`" >&5
8784 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8786 cat >>confdefs.h <<EOF
8787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8793 cat >>confdefs.h <<\EOF
8797 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
8799 cat >>confdefs.h <<EOF
8800 #define $cf_nculib_ROOT 1
8803 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
8807 cf_ncuhdr_root=$cf_cv_screen
8809 test -n "$cf_cv_curses_dir" && \
8810 test "$cf_cv_curses_dir" != "no" && { \
8812 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
8813 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
8815 while test $cf_add_incdir != /usr/include
8817 if test -d $cf_add_incdir
8820 if test -n "$CFLAGS$CPPFLAGS" ; then
8821 # a loop is needed to ensure we can add subdirs of existing dirs
8822 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8823 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8824 cf_have_incdir=yes; break
8829 if test "$cf_have_incdir" = no ; then
8830 if test "$cf_add_incdir" = /usr/local/include ; then
8831 if test "$GCC" = yes
8833 cf_save_CPPFLAGS=$CPPFLAGS
8834 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8835 cat >conftest.$ac_ext <<_ACEOF
8836 #line 8836 "configure"
8837 #include "confdefs.h"
8847 rm -f conftest.$ac_objext
8848 if { (eval echo "$as_me:8848: \"$ac_compile\"") >&5
8849 (eval $ac_compile) 2>&5
8851 echo "$as_me:8851: \$? = $ac_status" >&5
8852 (exit $ac_status); } &&
8853 { ac_try='test -s conftest.$ac_objext'
8854 { (eval echo "$as_me:8854: \"$ac_try\"") >&5
8857 echo "$as_me:8857: \$? = $ac_status" >&5
8858 (exit $ac_status); }; }; then
8861 echo "$as_me: failed program was:" >&5
8862 cat conftest.$ac_ext >&5
8865 rm -f conftest.$ac_objext conftest.$ac_ext
8866 CPPFLAGS=$cf_save_CPPFLAGS
8871 if test "$cf_have_incdir" = no ; then
8872 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8874 echo "${as_me:-configure}:8874: testing adding $cf_add_incdir to include-path ..." 1>&5
8876 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8878 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8879 test "$cf_top_incdir" = "$cf_add_incdir" && break
8880 cf_add_incdir="$cf_top_incdir"
8893 echo "$as_me:8893: checking for $cf_ncuhdr_root header in include-path" >&5
8894 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
8895 if test "${cf_cv_ncurses_h+set}" = set; then
8896 echo $ECHO_N "(cached) $ECHO_C" >&6
8899 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
8900 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
8901 for cf_header in $cf_header_list
8904 cat >conftest.$ac_ext <<_ACEOF
8905 #line 8905 "configure"
8906 #include "confdefs.h"
8908 #include <$cf_header>
8913 #ifdef NCURSES_VERSION
8915 printf("%s\n", NCURSES_VERSION);
8928 rm -f conftest.$ac_objext
8929 if { (eval echo "$as_me:8929: \"$ac_compile\"") >&5
8930 (eval $ac_compile) 2>&5
8932 echo "$as_me:8932: \$? = $ac_status" >&5
8933 (exit $ac_status); } &&
8934 { ac_try='test -s conftest.$ac_objext'
8935 { (eval echo "$as_me:8935: \"$ac_try\"") >&5
8938 echo "$as_me:8938: \$? = $ac_status" >&5
8939 (exit $ac_status); }; }; then
8940 cf_cv_ncurses_h=$cf_header
8943 echo "$as_me: failed program was:" >&5
8944 cat conftest.$ac_ext >&5
8947 rm -f conftest.$ac_objext conftest.$ac_ext
8949 test "$cf_cv_ncurses_h" != no && break
8953 echo "$as_me:8953: result: $cf_cv_ncurses_h" >&5
8954 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
8956 if test "$cf_cv_ncurses_h" != no ; then
8957 cf_cv_ncurses_header=$cf_cv_ncurses_h
8960 echo "$as_me:8960: checking for $cf_ncuhdr_root include-path" >&5
8961 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
8962 if test "${cf_cv_ncurses_h2+set}" = set; then
8963 echo $ECHO_N "(cached) $ECHO_C" >&6
8966 test -n "$verbose" && echo
8970 # collect the current set of include-directories from compiler flags
8971 cf_header_path_list=""
8972 if test -n "${CFLAGS}${CPPFLAGS}" ; then
8973 for cf_header_path in $CPPFLAGS $CFLAGS
8975 case $cf_header_path in
8977 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
8979 test "x$cf_header_path" != "xNONE" && \
8980 test -d "$cf_header_path" && \
8982 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
8983 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
8984 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
8985 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
8986 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
8987 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"
8990 cf_header_path_list="$cf_header_path_list $cf_search"
8996 # add the variations for the package we are looking for
9000 test "x$prefix" != "xNONE" && \
9001 test -d "$prefix" && \
9003 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
9004 test -d $prefix/include && cf_search="$cf_search $prefix/include"
9005 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
9006 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
9007 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
9008 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
9011 for cf_subdir_prefix in \
9020 test "x$cf_subdir_prefix" != "x$prefix" && \
9021 test -d "$cf_subdir_prefix" && \
9022 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
9023 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
9024 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
9025 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root"
9026 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root/include"
9027 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include"
9028 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"
9033 test "$includedir" != NONE && \
9034 test "$includedir" != "/usr/include" && \
9035 test -d "$includedir" && {
9036 test -d $includedir && cf_search="$cf_search $includedir"
9037 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
9040 test "$oldincludedir" != NONE && \
9041 test "$oldincludedir" != "/usr/include" && \
9042 test -d "$oldincludedir" && {
9043 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
9044 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
9047 cf_search="$cf_search $cf_header_path_list"
9049 test -n "$verbose" && echo search path $cf_search
9050 cf_save2_CPPFLAGS="$CPPFLAGS"
9051 for cf_incdir in $cf_search
9054 if test -n "$cf_incdir" ; then
9055 for cf_add_incdir in $cf_incdir
9057 while test $cf_add_incdir != /usr/include
9059 if test -d $cf_add_incdir
9062 if test -n "$CFLAGS$CPPFLAGS" ; then
9063 # a loop is needed to ensure we can add subdirs of existing dirs
9064 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
9065 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
9066 cf_have_incdir=yes; break
9071 if test "$cf_have_incdir" = no ; then
9072 if test "$cf_add_incdir" = /usr/local/include ; then
9073 if test "$GCC" = yes
9075 cf_save_CPPFLAGS=$CPPFLAGS
9076 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9077 cat >conftest.$ac_ext <<_ACEOF
9078 #line 9078 "configure"
9079 #include "confdefs.h"
9089 rm -f conftest.$ac_objext
9090 if { (eval echo "$as_me:9090: \"$ac_compile\"") >&5
9091 (eval $ac_compile) 2>&5
9093 echo "$as_me:9093: \$? = $ac_status" >&5
9094 (exit $ac_status); } &&
9095 { ac_try='test -s conftest.$ac_objext'
9096 { (eval echo "$as_me:9096: \"$ac_try\"") >&5
9099 echo "$as_me:9099: \$? = $ac_status" >&5
9100 (exit $ac_status); }; }; then
9103 echo "$as_me: failed program was:" >&5
9104 cat conftest.$ac_ext >&5
9107 rm -f conftest.$ac_objext conftest.$ac_ext
9108 CPPFLAGS=$cf_save_CPPFLAGS
9113 if test "$cf_have_incdir" = no ; then
9114 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
9116 echo "${as_me:-configure}:9116: testing adding $cf_add_incdir to include-path ..." 1>&5
9118 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9120 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
9121 test "$cf_top_incdir" = "$cf_add_incdir" && break
9122 cf_add_incdir="$cf_top_incdir"
9138 cat >conftest.$ac_ext <<_ACEOF
9139 #line 9139 "configure"
9140 #include "confdefs.h"
9142 #include <$cf_header>
9147 #ifdef NCURSES_VERSION
9149 printf("%s\n", NCURSES_VERSION);
9162 rm -f conftest.$ac_objext
9163 if { (eval echo "$as_me:9163: \"$ac_compile\"") >&5
9164 (eval $ac_compile) 2>&5
9166 echo "$as_me:9166: \$? = $ac_status" >&5
9167 (exit $ac_status); } &&
9168 { ac_try='test -s conftest.$ac_objext'
9169 { (eval echo "$as_me:9169: \"$ac_try\"") >&5
9172 echo "$as_me:9172: \$? = $ac_status" >&5
9173 (exit $ac_status); }; }; then
9174 cf_cv_ncurses_h2=$cf_header
9177 echo "$as_me: failed program was:" >&5
9178 cat conftest.$ac_ext >&5
9181 rm -f conftest.$ac_objext conftest.$ac_ext
9183 if test "$cf_cv_ncurses_h2" != no ; then
9184 cf_cv_ncurses_h2=$cf_incdir/$cf_header
9185 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
9188 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
9190 CPPFLAGS="$cf_save2_CPPFLAGS"
9191 test "$cf_cv_ncurses_h2" != no && break
9193 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:9193: error: not found" >&5
9194 echo "$as_me: error: not found" >&2;}
9195 { (exit 1); exit 1; }; }
9198 echo "$as_me:9198: result: $cf_cv_ncurses_h2" >&5
9199 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
9201 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
9202 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
9203 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
9204 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
9207 if test -n "$cf_1st_incdir" ; then
9208 for cf_add_incdir in $cf_1st_incdir
9210 while test $cf_add_incdir != /usr/include
9212 if test -d $cf_add_incdir
9215 if test -n "$CFLAGS$CPPFLAGS" ; then
9216 # a loop is needed to ensure we can add subdirs of existing dirs
9217 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
9218 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
9219 cf_have_incdir=yes; break
9224 if test "$cf_have_incdir" = no ; then
9225 if test "$cf_add_incdir" = /usr/local/include ; then
9226 if test "$GCC" = yes
9228 cf_save_CPPFLAGS=$CPPFLAGS
9229 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9230 cat >conftest.$ac_ext <<_ACEOF
9231 #line 9231 "configure"
9232 #include "confdefs.h"
9242 rm -f conftest.$ac_objext
9243 if { (eval echo "$as_me:9243: \"$ac_compile\"") >&5
9244 (eval $ac_compile) 2>&5
9246 echo "$as_me:9246: \$? = $ac_status" >&5
9247 (exit $ac_status); } &&
9248 { ac_try='test -s conftest.$ac_objext'
9249 { (eval echo "$as_me:9249: \"$ac_try\"") >&5
9252 echo "$as_me:9252: \$? = $ac_status" >&5
9253 (exit $ac_status); }; }; then
9256 echo "$as_me: failed program was:" >&5
9257 cat conftest.$ac_ext >&5
9260 rm -f conftest.$ac_objext conftest.$ac_ext
9261 CPPFLAGS=$cf_save_CPPFLAGS
9266 if test "$cf_have_incdir" = no ; then
9267 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
9269 echo "${as_me:-configure}:9269: testing adding $cf_add_incdir to include-path ..." 1>&5
9271 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9273 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
9274 test "$cf_top_incdir" = "$cf_add_incdir" && break
9275 cf_add_incdir="$cf_top_incdir"
9288 # Set definitions to allow ifdef'ing for ncurses.h
9290 case $cf_cv_ncurses_header in
9293 cat >>confdefs.h <<\EOF
9294 #define HAVE_NCURSES_H 1
9300 case $cf_cv_ncurses_header in
9301 (ncurses/curses.h|ncurses/ncurses.h)
9303 cat >>confdefs.h <<\EOF
9304 #define HAVE_NCURSES_NCURSES_H 1
9308 (ncursesw/curses.h|ncursesw/ncurses.h)
9310 cat >>confdefs.h <<\EOF
9311 #define HAVE_NCURSESW_NCURSES_H 1
9317 echo "$as_me:9317: checking for terminfo header" >&5
9318 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
9319 if test "${cf_cv_term_header+set}" = set; then
9320 echo $ECHO_N "(cached) $ECHO_C" >&6
9323 case ${cf_cv_ncurses_header} in
9324 (*/ncurses.h|*/ncursesw.h)
9325 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
9328 cf_term_header=term.h
9332 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
9334 cat >conftest.$ac_ext <<_ACEOF
9335 #line 9335 "configure"
9336 #include "confdefs.h"
9338 #include <${cf_cv_ncurses_header:-curses.h}>
9344 int x = auto_left_margin
9349 rm -f conftest.$ac_objext
9350 if { (eval echo "$as_me:9350: \"$ac_compile\"") >&5
9351 (eval $ac_compile) 2>&5
9353 echo "$as_me:9353: \$? = $ac_status" >&5
9354 (exit $ac_status); } &&
9355 { ac_try='test -s conftest.$ac_objext'
9356 { (eval echo "$as_me:9356: \"$ac_try\"") >&5
9359 echo "$as_me:9359: \$? = $ac_status" >&5
9360 (exit $ac_status); }; }; then
9362 cf_cv_term_header="$cf_test"
9364 echo "$as_me: failed program was:" >&5
9365 cat conftest.$ac_ext >&5
9367 cf_cv_term_header=unknown
9370 rm -f conftest.$ac_objext conftest.$ac_ext
9371 test "$cf_cv_term_header" != unknown && break
9375 echo "$as_me:9375: result: $cf_cv_term_header" >&5
9376 echo "${ECHO_T}$cf_cv_term_header" >&6
9378 # Set definitions to allow ifdef'ing to accommodate subdirectories
9380 case $cf_cv_term_header in
9383 cat >>confdefs.h <<\EOF
9384 #define HAVE_TERM_H 1
9390 case $cf_cv_term_header in
9393 cat >>confdefs.h <<\EOF
9394 #define HAVE_NCURSES_TERM_H 1
9400 cat >>confdefs.h <<\EOF
9401 #define HAVE_NCURSESW_TERM_H 1
9407 # some applications need this, but should check for NCURSES_VERSION
9409 cat >>confdefs.h <<\EOF
9413 echo "$as_me:9413: checking for ncurses version" >&5
9414 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
9415 if test "${cf_cv_ncurses_version+set}" = set; then
9416 echo $ECHO_N "(cached) $ECHO_C" >&6
9419 cf_cv_ncurses_version=no
9422 if test "$cross_compiling" = yes; then
9424 # This will not work if the preprocessor splits the line after the
9425 # Autoconf token. The 'unproto' program does that.
9426 cat > conftest.$ac_ext <<EOF
9427 #include <${cf_cv_ncurses_header:-curses.h}>
9429 #ifdef NCURSES_VERSION
9430 Autoconf NCURSES_VERSION
9438 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
9439 { (eval echo "$as_me:9439: \"$cf_try\"") >&5
9442 echo "$as_me:9442: \$? = $ac_status" >&5
9443 (exit $ac_status); }
9444 if test -f conftest.out ; then
9445 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
9446 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
9451 cat >conftest.$ac_ext <<_ACEOF
9452 #line 9452 "configure"
9453 #include "confdefs.h"
9455 #include <${cf_cv_ncurses_header:-curses.h}>
9459 FILE *fp = fopen("$cf_tempfile", "w");
9460 #ifdef NCURSES_VERSION
9461 # ifdef NCURSES_VERSION_PATCH
9462 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
9464 fprintf(fp, "%s\n", NCURSES_VERSION);
9468 fprintf(fp, "old\n");
9473 ${cf_cv_main_return:-return}(0);
9476 rm -f conftest$ac_exeext
9477 if { (eval echo "$as_me:9477: \"$ac_link\"") >&5
9478 (eval $ac_link) 2>&5
9480 echo "$as_me:9480: \$? = $ac_status" >&5
9481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9482 { (eval echo "$as_me:9482: \"$ac_try\"") >&5
9485 echo "$as_me:9485: \$? = $ac_status" >&5
9486 (exit $ac_status); }; }; then
9488 cf_cv_ncurses_version=`cat $cf_tempfile`
9490 echo "$as_me: program exited with status $ac_status" >&5
9491 echo "$as_me: failed program was:" >&5
9492 cat conftest.$ac_ext >&5
9494 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9499 echo "$as_me:9499: result: $cf_cv_ncurses_version" >&5
9500 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
9501 test "$cf_cv_ncurses_version" = no ||
9502 cat >>confdefs.h <<\EOF
9506 cf_nculib_root=$cf_cv_screen
9507 # This works, except for the special case where we find gpm, but
9508 # ncurses is in a nonstandard location via $LIBS, and we really want
9511 cf_ncurses_SAVE="$LIBS"
9512 echo "$as_me:9512: checking for Gpm_Open in -lgpm" >&5
9513 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
9514 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
9515 echo $ECHO_N "(cached) $ECHO_C" >&6
9517 ac_check_lib_save_LIBS=$LIBS
9519 cat >conftest.$ac_ext <<_ACEOF
9520 #line 9520 "configure"
9521 #include "confdefs.h"
9523 /* Override any gcc2 internal prototype to avoid an error. */
9527 /* We use char because int might match the return type of a gcc2
9528 builtin and then its argument prototype would still apply. */
9538 rm -f conftest.$ac_objext conftest$ac_exeext
9539 if { (eval echo "$as_me:9539: \"$ac_link\"") >&5
9540 (eval $ac_link) 2>&5
9542 echo "$as_me:9542: \$? = $ac_status" >&5
9543 (exit $ac_status); } &&
9544 { ac_try='test -s conftest$ac_exeext'
9545 { (eval echo "$as_me:9545: \"$ac_try\"") >&5
9548 echo "$as_me:9548: \$? = $ac_status" >&5
9549 (exit $ac_status); }; }; then
9550 ac_cv_lib_gpm_Gpm_Open=yes
9552 echo "$as_me: failed program was:" >&5
9553 cat conftest.$ac_ext >&5
9554 ac_cv_lib_gpm_Gpm_Open=no
9556 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9557 LIBS=$ac_check_lib_save_LIBS
9559 echo "$as_me:9559: result: $ac_cv_lib_gpm_Gpm_Open" >&5
9560 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
9561 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
9562 echo "$as_me:9562: checking for initscr in -lgpm" >&5
9563 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
9564 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
9565 echo $ECHO_N "(cached) $ECHO_C" >&6
9567 ac_check_lib_save_LIBS=$LIBS
9569 cat >conftest.$ac_ext <<_ACEOF
9570 #line 9570 "configure"
9571 #include "confdefs.h"
9573 /* Override any gcc2 internal prototype to avoid an error. */
9577 /* We use char because int might match the return type of a gcc2
9578 builtin and then its argument prototype would still apply. */
9588 rm -f conftest.$ac_objext conftest$ac_exeext
9589 if { (eval echo "$as_me:9589: \"$ac_link\"") >&5
9590 (eval $ac_link) 2>&5
9592 echo "$as_me:9592: \$? = $ac_status" >&5
9593 (exit $ac_status); } &&
9594 { ac_try='test -s conftest$ac_exeext'
9595 { (eval echo "$as_me:9595: \"$ac_try\"") >&5
9598 echo "$as_me:9598: \$? = $ac_status" >&5
9599 (exit $ac_status); }; }; then
9600 ac_cv_lib_gpm_initscr=yes
9602 echo "$as_me: failed program was:" >&5
9603 cat conftest.$ac_ext >&5
9604 ac_cv_lib_gpm_initscr=no
9606 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9607 LIBS=$ac_check_lib_save_LIBS
9609 echo "$as_me:9609: result: $ac_cv_lib_gpm_initscr" >&5
9610 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
9611 if test $ac_cv_lib_gpm_initscr = yes; then
9612 LIBS="$cf_ncurses_SAVE"
9614 cf_ncurses_LIBS="-lgpm"
9621 # This is only necessary if you are linking against an obsolete
9622 # version of ncurses (but it should do no harm, since it's static).
9623 if test "$cf_nculib_root" = ncurses ; then
9624 echo "$as_me:9624: checking for tgoto in -lmytinfo" >&5
9625 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
9626 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
9627 echo $ECHO_N "(cached) $ECHO_C" >&6
9629 ac_check_lib_save_LIBS=$LIBS
9630 LIBS="-lmytinfo $LIBS"
9631 cat >conftest.$ac_ext <<_ACEOF
9632 #line 9632 "configure"
9633 #include "confdefs.h"
9635 /* Override any gcc2 internal prototype to avoid an error. */
9639 /* We use char because int might match the return type of a gcc2
9640 builtin and then its argument prototype would still apply. */
9650 rm -f conftest.$ac_objext conftest$ac_exeext
9651 if { (eval echo "$as_me:9651: \"$ac_link\"") >&5
9652 (eval $ac_link) 2>&5
9654 echo "$as_me:9654: \$? = $ac_status" >&5
9655 (exit $ac_status); } &&
9656 { ac_try='test -s conftest$ac_exeext'
9657 { (eval echo "$as_me:9657: \"$ac_try\"") >&5
9660 echo "$as_me:9660: \$? = $ac_status" >&5
9661 (exit $ac_status); }; }; then
9662 ac_cv_lib_mytinfo_tgoto=yes
9664 echo "$as_me: failed program was:" >&5
9665 cat conftest.$ac_ext >&5
9666 ac_cv_lib_mytinfo_tgoto=no
9668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9669 LIBS=$ac_check_lib_save_LIBS
9671 echo "$as_me:9671: result: $ac_cv_lib_mytinfo_tgoto" >&5
9672 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
9673 if test $ac_cv_lib_mytinfo_tgoto = yes; then
9674 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
9681 cf_add_libs="$cf_ncurses_LIBS"
9682 # Filter out duplicates - this happens with badly-designed ".pc" files...
9683 for cf_add_1lib in $LIBS
9685 for cf_add_2lib in $cf_add_libs
9687 if test "x$cf_add_1lib" = "x$cf_add_2lib"
9693 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
9697 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
9700 cf_add_libs="-l$cf_nculib_root"
9701 # Filter out duplicates - this happens with badly-designed ".pc" files...
9702 for cf_add_1lib in $LIBS
9704 for cf_add_2lib in $cf_add_libs
9706 if test "x$cf_add_1lib" = "x$cf_add_2lib"
9712 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
9718 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
9720 echo "$as_me:9720: checking for initscr" >&5
9721 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
9722 if test "${ac_cv_func_initscr+set}" = set; then
9723 echo $ECHO_N "(cached) $ECHO_C" >&6
9725 cat >conftest.$ac_ext <<_ACEOF
9726 #line 9726 "configure"
9727 #include "confdefs.h"
9728 /* System header to define __stub macros and hopefully few prototypes,
9729 which can conflict with char initscr (); below. */
9731 /* Override any gcc2 internal prototype to avoid an error. */
9735 /* We use char because int might match the return type of a gcc2
9736 builtin and then its argument prototype would still apply. */
9743 /* The GNU C library defines this for functions which it implements
9744 to always fail with ENOSYS. Some functions are actually named
9745 something starting with __ and the normal name is an alias. */
9746 #if defined (__stub_initscr) || defined (__stub___initscr)
9749 f = initscr; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
9756 rm -f conftest.$ac_objext conftest$ac_exeext
9757 if { (eval echo "$as_me:9757: \"$ac_link\"") >&5
9758 (eval $ac_link) 2>&5
9760 echo "$as_me:9760: \$? = $ac_status" >&5
9761 (exit $ac_status); } &&
9762 { ac_try='test -s conftest$ac_exeext'
9763 { (eval echo "$as_me:9763: \"$ac_try\"") >&5
9766 echo "$as_me:9766: \$? = $ac_status" >&5
9767 (exit $ac_status); }; }; then
9768 ac_cv_func_initscr=yes
9770 echo "$as_me: failed program was:" >&5
9771 cat conftest.$ac_ext >&5
9772 ac_cv_func_initscr=no
9774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9776 echo "$as_me:9776: result: $ac_cv_func_initscr" >&5
9777 echo "${ECHO_T}$ac_cv_func_initscr" >&6
9778 if test $ac_cv_func_initscr = yes; then
9779 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
9782 cf_save_LIBS="$LIBS"
9783 echo "$as_me:9783: checking for initscr in -l$cf_nculib_root" >&5
9784 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
9785 LIBS="-l$cf_nculib_root $LIBS"
9786 cat >conftest.$ac_ext <<_ACEOF
9787 #line 9787 "configure"
9788 #include "confdefs.h"
9789 #include <${cf_cv_ncurses_header:-curses.h}>
9798 rm -f conftest.$ac_objext conftest$ac_exeext
9799 if { (eval echo "$as_me:9799: \"$ac_link\"") >&5
9800 (eval $ac_link) 2>&5
9802 echo "$as_me:9802: \$? = $ac_status" >&5
9803 (exit $ac_status); } &&
9804 { ac_try='test -s conftest$ac_exeext'
9805 { (eval echo "$as_me:9805: \"$ac_try\"") >&5
9808 echo "$as_me:9808: \$? = $ac_status" >&5
9809 (exit $ac_status); }; }; then
9810 echo "$as_me:9810: result: yes" >&5
9811 echo "${ECHO_T}yes" >&6
9812 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
9815 echo "$as_me: failed program was:" >&5
9816 cat conftest.$ac_ext >&5
9817 echo "$as_me:9817: result: no" >&5
9818 echo "${ECHO_T}no" >&6
9821 cf_library_path_list=""
9822 if test -n "${LDFLAGS}${LIBS}" ; then
9823 for cf_library_path in $LDFLAGS $LIBS
9825 case $cf_library_path in
9827 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
9829 test "x$cf_library_path" != "xNONE" && \
9830 test -d "$cf_library_path" && \
9832 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
9833 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
9834 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
9835 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
9836 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
9837 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"
9840 cf_library_path_list="$cf_library_path_list $cf_search"
9848 test "x$prefix" != "xNONE" && \
9849 test -d "$prefix" && \
9851 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
9852 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
9853 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
9854 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
9855 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
9856 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
9859 for cf_subdir_prefix in \
9868 test "x$cf_subdir_prefix" != "x$prefix" && \
9869 test -d "$cf_subdir_prefix" && \
9870 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
9871 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
9872 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
9873 test -d $cf_subdir_prefix/lib/$cf_nculib_root && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root"
9874 test -d $cf_subdir_prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root/lib"
9875 test -d $cf_subdir_prefix/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib"
9876 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"
9881 cf_search="$cf_library_path_list $cf_search"
9883 for cf_libdir in $cf_search
9885 echo "$as_me:9885: checking for -l$cf_nculib_root in $cf_libdir" >&5
9886 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
9887 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
9888 cat >conftest.$ac_ext <<_ACEOF
9889 #line 9889 "configure"
9890 #include "confdefs.h"
9891 #include <${cf_cv_ncurses_header:-curses.h}>
9900 rm -f conftest.$ac_objext conftest$ac_exeext
9901 if { (eval echo "$as_me:9901: \"$ac_link\"") >&5
9902 (eval $ac_link) 2>&5
9904 echo "$as_me:9904: \$? = $ac_status" >&5
9905 (exit $ac_status); } &&
9906 { ac_try='test -s conftest$ac_exeext'
9907 { (eval echo "$as_me:9907: \"$ac_try\"") >&5
9910 echo "$as_me:9910: \$? = $ac_status" >&5
9911 (exit $ac_status); }; }; then
9912 echo "$as_me:9912: result: yes" >&5
9913 echo "${ECHO_T}yes" >&6
9914 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
9917 echo "$as_me: failed program was:" >&5
9918 cat conftest.$ac_ext >&5
9919 echo "$as_me:9919: result: no" >&5
9920 echo "${ECHO_T}no" >&6
9921 LIBS="$cf_save_LIBS"
9923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9931 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
9933 if test $cf_found_library = no ; then
9934 { { echo "$as_me:9934: error: Cannot link $cf_nculib_root library" >&5
9935 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
9936 { (exit 1); exit 1; }; }
9941 if test -n "$cf_ncurses_LIBS" ; then
9942 echo "$as_me:9942: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
9943 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
9944 cf_ncurses_SAVE="$LIBS"
9945 for p in $cf_ncurses_LIBS ; do
9946 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
9947 if test "$q" != "$LIBS" ; then
9951 cat >conftest.$ac_ext <<_ACEOF
9952 #line 9952 "configure"
9953 #include "confdefs.h"
9954 #include <${cf_cv_ncurses_header:-curses.h}>
9958 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
9963 rm -f conftest.$ac_objext conftest$ac_exeext
9964 if { (eval echo "$as_me:9964: \"$ac_link\"") >&5
9965 (eval $ac_link) 2>&5
9967 echo "$as_me:9967: \$? = $ac_status" >&5
9968 (exit $ac_status); } &&
9969 { ac_try='test -s conftest$ac_exeext'
9970 { (eval echo "$as_me:9970: \"$ac_try\"") >&5
9973 echo "$as_me:9973: \$? = $ac_status" >&5
9974 (exit $ac_status); }; }; then
9975 echo "$as_me:9975: result: yes" >&5
9976 echo "${ECHO_T}yes" >&6
9978 echo "$as_me: failed program was:" >&5
9979 cat conftest.$ac_ext >&5
9980 echo "$as_me:9980: result: no" >&5
9981 echo "${ECHO_T}no" >&6
9982 LIBS="$cf_ncurses_SAVE"
9984 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9987 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
9989 cat >>confdefs.h <<EOF
9990 #define $cf_nculib_ROOT 1
10000 echo "$as_me:10000: checking for X" >&5
10001 echo $ECHO_N "checking for X... $ECHO_C" >&6
10003 # Check whether --with-x or --without-x was given.
10004 if test "${with_x+set}" = set; then
10008 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10009 if test "x$with_x" = xno; then
10010 # The user explicitly disabled X.
10013 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
10014 # Both variables are already set.
10017 if test "${ac_cv_have_x+set}" = set; then
10018 echo $ECHO_N "(cached) $ECHO_C" >&6
10020 # One or both of the vars are not set, and there is no cached value.
10021 ac_x_includes=no ac_x_libraries=no
10022 rm -fr conftest.dir
10023 if mkdir conftest.dir; then
10025 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
10026 cat >Imakefile <<'EOF'
10028 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
10030 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
10031 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10032 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
10033 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10034 for ac_extension in a so sl dylib dll; do
10035 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
10036 test -f $ac_im_libdir/libX11.$ac_extension; then
10037 ac_im_usrlibdir=$ac_im_libdir; break
10040 # Screen out bogus values from the imake configuration. They are
10041 # bogus both because they are the default anyway, and because
10042 # using them would break gcc on systems where it needs fixed includes.
10043 case $ac_im_incroot in
10045 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
10047 case $ac_im_usrlibdir in
10048 /usr/lib | /lib) ;;
10049 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
10053 rm -fr conftest.dir
10056 # Standard set of common directories for X headers.
10057 # Check X11 before X11Rn because it is often a symlink to the current release.
10069 /usr/local/X11/include
10070 /usr/local/X11R6/include
10071 /usr/local/X11R5/include
10072 /usr/local/X11R4/include
10074 /usr/local/include/X11
10075 /usr/local/include/X11R6
10076 /usr/local/include/X11R5
10077 /usr/local/include/X11R4
10081 /usr/XFree86/include/X11
10085 /usr/unsupported/include
10086 /usr/athena/include
10087 /usr/local/x11r5/include
10088 /usr/lpp/Xamples/include
10090 /usr/openwin/include
10091 /usr/openwin/share/include'
10093 if test "$ac_x_includes" = no; then
10094 # Guess where to find include files, by looking for Intrinsic.h.
10095 # First, try using that file with no special directory specified.
10096 cat >conftest.$ac_ext <<_ACEOF
10097 #line 10097 "configure"
10098 #include "confdefs.h"
10099 #include <X11/Intrinsic.h>
10101 if { (eval echo "$as_me:10101: \"$ac_cpp conftest.$ac_ext\"") >&5
10102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10104 egrep -v '^ *\+' conftest.er1 >conftest.err
10106 cat conftest.err >&5
10107 echo "$as_me:10107: \$? = $ac_status" >&5
10108 (exit $ac_status); } >/dev/null; then
10109 if test -s conftest.err; then
10110 ac_cpp_err=$ac_c_preproc_warn_flag
10117 if test -z "$ac_cpp_err"; then
10118 # We can compile using X headers with no special include directory.
10121 echo "$as_me: failed program was:" >&5
10122 cat conftest.$ac_ext >&5
10123 for ac_dir in $ac_x_header_dirs; do
10124 if test -r "$ac_dir/X11/Intrinsic.h"; then
10125 ac_x_includes=$ac_dir
10130 rm -f conftest.err conftest.$ac_ext
10131 fi # $ac_x_includes = no
10133 if test "$ac_x_libraries" = no; then
10134 # Check for the libraries.
10135 # See if we find them without any special options.
10136 # Don't add to $LIBS permanently.
10139 cat >conftest.$ac_ext <<_ACEOF
10140 #line 10140 "configure"
10141 #include "confdefs.h"
10142 #include <X11/Intrinsic.h>
10151 rm -f conftest.$ac_objext conftest$ac_exeext
10152 if { (eval echo "$as_me:10152: \"$ac_link\"") >&5
10153 (eval $ac_link) 2>&5
10155 echo "$as_me:10155: \$? = $ac_status" >&5
10156 (exit $ac_status); } &&
10157 { ac_try='test -s conftest$ac_exeext'
10158 { (eval echo "$as_me:10158: \"$ac_try\"") >&5
10159 (eval $ac_try) 2>&5
10161 echo "$as_me:10161: \$? = $ac_status" >&5
10162 (exit $ac_status); }; }; then
10164 # We can link X programs with no special library path.
10167 echo "$as_me: failed program was:" >&5
10168 cat conftest.$ac_ext >&5
10170 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10172 # Don't even attempt the hair of trying to link an X program!
10173 for ac_extension in a so sl dylib dll; do
10174 if test -r $ac_dir/libXt.$ac_extension; then
10175 ac_x_libraries=$ac_dir
10181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10182 fi # $ac_x_libraries = no
10184 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
10185 # Didn't find X anywhere. Cache the known absence of X.
10186 ac_cv_have_x="have_x=no"
10188 # Record where we found X for the cache.
10189 ac_cv_have_x="have_x=yes \
10190 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10195 eval "$ac_cv_have_x"
10198 if test "$have_x" != yes; then
10199 echo "$as_me:10199: result: $have_x" >&5
10200 echo "${ECHO_T}$have_x" >&6
10203 # If each of the values was on the command line, it overrides each guess.
10204 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10205 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10206 # Update the cache value to reflect the command line values.
10207 ac_cv_have_x="have_x=yes \
10208 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
10209 echo "$as_me:10209: result: libraries $x_libraries, headers $x_includes" >&5
10210 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
10213 if test "$no_x" = yes; then
10214 # Not all programs may use this symbol, but it does not hurt to define it.
10216 cat >>confdefs.h <<\EOF
10217 #define X_DISPLAY_MISSING 1
10220 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
10222 if test -n "$x_includes"; then
10223 X_CFLAGS="$X_CFLAGS -I$x_includes"
10226 # It would also be nice to do this for all -L options, not just this one.
10227 if test -n "$x_libraries"; then
10228 X_LIBS="$X_LIBS -L$x_libraries"
10229 # For Solaris; some versions of Sun CC require a space after -R and
10230 # others require no space. Words are not sufficient . . . .
10231 case `(uname -sr) 2>/dev/null` in
10233 echo "$as_me:10233: checking whether -R must be followed by a space" >&5
10234 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
10235 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
10236 cat >conftest.$ac_ext <<_ACEOF
10237 #line 10237 "configure"
10238 #include "confdefs.h"
10248 rm -f conftest.$ac_objext conftest$ac_exeext
10249 if { (eval echo "$as_me:10249: \"$ac_link\"") >&5
10250 (eval $ac_link) 2>&5
10252 echo "$as_me:10252: \$? = $ac_status" >&5
10253 (exit $ac_status); } &&
10254 { ac_try='test -s conftest$ac_exeext'
10255 { (eval echo "$as_me:10255: \"$ac_try\"") >&5
10256 (eval $ac_try) 2>&5
10258 echo "$as_me:10258: \$? = $ac_status" >&5
10259 (exit $ac_status); }; }; then
10262 echo "$as_me: failed program was:" >&5
10263 cat conftest.$ac_ext >&5
10266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10267 if test $ac_R_nospace = yes; then
10268 echo "$as_me:10268: result: no" >&5
10269 echo "${ECHO_T}no" >&6
10270 X_LIBS="$X_LIBS -R$x_libraries"
10272 LIBS="$ac_xsave_LIBS -R $x_libraries"
10273 cat >conftest.$ac_ext <<_ACEOF
10274 #line 10274 "configure"
10275 #include "confdefs.h"
10285 rm -f conftest.$ac_objext conftest$ac_exeext
10286 if { (eval echo "$as_me:10286: \"$ac_link\"") >&5
10287 (eval $ac_link) 2>&5
10289 echo "$as_me:10289: \$? = $ac_status" >&5
10290 (exit $ac_status); } &&
10291 { ac_try='test -s conftest$ac_exeext'
10292 { (eval echo "$as_me:10292: \"$ac_try\"") >&5
10293 (eval $ac_try) 2>&5
10295 echo "$as_me:10295: \$? = $ac_status" >&5
10296 (exit $ac_status); }; }; then
10299 echo "$as_me: failed program was:" >&5
10300 cat conftest.$ac_ext >&5
10303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10304 if test $ac_R_space = yes; then
10305 echo "$as_me:10305: result: yes" >&5
10306 echo "${ECHO_T}yes" >&6
10307 X_LIBS="$X_LIBS -R $x_libraries"
10309 echo "$as_me:10309: result: neither works" >&5
10310 echo "${ECHO_T}neither works" >&6
10313 LIBS=$ac_xsave_LIBS
10317 # Check for system-dependent libraries X programs must link with.
10318 # Do this before checking for the system-independent R6 libraries
10319 # (-lICE), since we may need -lsocket or whatever for X linking.
10321 if test "$ISC" = yes; then
10322 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10324 # Martyn Johnson says this is needed for Ultrix, if the X
10325 # libraries were built with DECnet support. And Karl Berry says
10326 # the Alpha needs dnet_stub (dnet does not exist).
10327 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
10328 cat >conftest.$ac_ext <<_ACEOF
10329 #line 10329 "configure"
10330 #include "confdefs.h"
10332 /* Override any gcc2 internal prototype to avoid an error. */
10336 /* We use char because int might match the return type of a gcc2
10337 builtin and then its argument prototype would still apply. */
10338 char XOpenDisplay ();
10347 rm -f conftest.$ac_objext conftest$ac_exeext
10348 if { (eval echo "$as_me:10348: \"$ac_link\"") >&5
10349 (eval $ac_link) 2>&5
10351 echo "$as_me:10351: \$? = $ac_status" >&5
10352 (exit $ac_status); } &&
10353 { ac_try='test -s conftest$ac_exeext'
10354 { (eval echo "$as_me:10354: \"$ac_try\"") >&5
10355 (eval $ac_try) 2>&5
10357 echo "$as_me:10357: \$? = $ac_status" >&5
10358 (exit $ac_status); }; }; then
10361 echo "$as_me: failed program was:" >&5
10362 cat conftest.$ac_ext >&5
10363 echo "$as_me:10363: checking for dnet_ntoa in -ldnet" >&5
10364 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
10365 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10366 echo $ECHO_N "(cached) $ECHO_C" >&6
10368 ac_check_lib_save_LIBS=$LIBS
10369 LIBS="-ldnet $LIBS"
10370 cat >conftest.$ac_ext <<_ACEOF
10371 #line 10371 "configure"
10372 #include "confdefs.h"
10374 /* Override any gcc2 internal prototype to avoid an error. */
10378 /* We use char because int might match the return type of a gcc2
10379 builtin and then its argument prototype would still apply. */
10389 rm -f conftest.$ac_objext conftest$ac_exeext
10390 if { (eval echo "$as_me:10390: \"$ac_link\"") >&5
10391 (eval $ac_link) 2>&5
10393 echo "$as_me:10393: \$? = $ac_status" >&5
10394 (exit $ac_status); } &&
10395 { ac_try='test -s conftest$ac_exeext'
10396 { (eval echo "$as_me:10396: \"$ac_try\"") >&5
10397 (eval $ac_try) 2>&5
10399 echo "$as_me:10399: \$? = $ac_status" >&5
10400 (exit $ac_status); }; }; then
10401 ac_cv_lib_dnet_dnet_ntoa=yes
10403 echo "$as_me: failed program was:" >&5
10404 cat conftest.$ac_ext >&5
10405 ac_cv_lib_dnet_dnet_ntoa=no
10407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10408 LIBS=$ac_check_lib_save_LIBS
10410 echo "$as_me:10410: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10411 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
10412 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10413 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10416 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10417 echo "$as_me:10417: checking for dnet_ntoa in -ldnet_stub" >&5
10418 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
10419 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
10420 echo $ECHO_N "(cached) $ECHO_C" >&6
10422 ac_check_lib_save_LIBS=$LIBS
10423 LIBS="-ldnet_stub $LIBS"
10424 cat >conftest.$ac_ext <<_ACEOF
10425 #line 10425 "configure"
10426 #include "confdefs.h"
10428 /* Override any gcc2 internal prototype to avoid an error. */
10432 /* We use char because int might match the return type of a gcc2
10433 builtin and then its argument prototype would still apply. */
10443 rm -f conftest.$ac_objext conftest$ac_exeext
10444 if { (eval echo "$as_me:10444: \"$ac_link\"") >&5
10445 (eval $ac_link) 2>&5
10447 echo "$as_me:10447: \$? = $ac_status" >&5
10448 (exit $ac_status); } &&
10449 { ac_try='test -s conftest$ac_exeext'
10450 { (eval echo "$as_me:10450: \"$ac_try\"") >&5
10451 (eval $ac_try) 2>&5
10453 echo "$as_me:10453: \$? = $ac_status" >&5
10454 (exit $ac_status); }; }; then
10455 ac_cv_lib_dnet_stub_dnet_ntoa=yes
10457 echo "$as_me: failed program was:" >&5
10458 cat conftest.$ac_ext >&5
10459 ac_cv_lib_dnet_stub_dnet_ntoa=no
10461 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10462 LIBS=$ac_check_lib_save_LIBS
10464 echo "$as_me:10464: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
10465 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
10466 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
10467 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10473 LIBS="$ac_xsave_LIBS"
10475 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10476 # to get the SysV transport functions.
10477 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
10479 # The nsl library prevents programs from opening the X display
10480 # on Irix 5.2, according to T.E. Dickey.
10481 # The functions gethostbyname, getservbyname, and inet_addr are
10482 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
10483 echo "$as_me:10483: checking for gethostbyname" >&5
10484 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
10485 if test "${ac_cv_func_gethostbyname+set}" = set; then
10486 echo $ECHO_N "(cached) $ECHO_C" >&6
10488 cat >conftest.$ac_ext <<_ACEOF
10489 #line 10489 "configure"
10490 #include "confdefs.h"
10491 /* System header to define __stub macros and hopefully few prototypes,
10492 which can conflict with char gethostbyname (); below. */
10493 #include <assert.h>
10494 /* Override any gcc2 internal prototype to avoid an error. */
10498 /* We use char because int might match the return type of a gcc2
10499 builtin and then its argument prototype would still apply. */
10500 char gethostbyname ();
10506 /* The GNU C library defines this for functions which it implements
10507 to always fail with ENOSYS. Some functions are actually named
10508 something starting with __ and the normal name is an alias. */
10509 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10512 f = gethostbyname; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
10519 rm -f conftest.$ac_objext conftest$ac_exeext
10520 if { (eval echo "$as_me:10520: \"$ac_link\"") >&5
10521 (eval $ac_link) 2>&5
10523 echo "$as_me:10523: \$? = $ac_status" >&5
10524 (exit $ac_status); } &&
10525 { ac_try='test -s conftest$ac_exeext'
10526 { (eval echo "$as_me:10526: \"$ac_try\"") >&5
10527 (eval $ac_try) 2>&5
10529 echo "$as_me:10529: \$? = $ac_status" >&5
10530 (exit $ac_status); }; }; then
10531 ac_cv_func_gethostbyname=yes
10533 echo "$as_me: failed program was:" >&5
10534 cat conftest.$ac_ext >&5
10535 ac_cv_func_gethostbyname=no
10537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10539 echo "$as_me:10539: result: $ac_cv_func_gethostbyname" >&5
10540 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
10542 if test $ac_cv_func_gethostbyname = no; then
10543 echo "$as_me:10543: checking for gethostbyname in -lnsl" >&5
10544 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
10545 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
10548 ac_check_lib_save_LIBS=$LIBS
10550 cat >conftest.$ac_ext <<_ACEOF
10551 #line 10551 "configure"
10552 #include "confdefs.h"
10554 /* Override any gcc2 internal prototype to avoid an error. */
10558 /* We use char because int might match the return type of a gcc2
10559 builtin and then its argument prototype would still apply. */
10560 char gethostbyname ();
10569 rm -f conftest.$ac_objext conftest$ac_exeext
10570 if { (eval echo "$as_me:10570: \"$ac_link\"") >&5
10571 (eval $ac_link) 2>&5
10573 echo "$as_me:10573: \$? = $ac_status" >&5
10574 (exit $ac_status); } &&
10575 { ac_try='test -s conftest$ac_exeext'
10576 { (eval echo "$as_me:10576: \"$ac_try\"") >&5
10577 (eval $ac_try) 2>&5
10579 echo "$as_me:10579: \$? = $ac_status" >&5
10580 (exit $ac_status); }; }; then
10581 ac_cv_lib_nsl_gethostbyname=yes
10583 echo "$as_me: failed program was:" >&5
10584 cat conftest.$ac_ext >&5
10585 ac_cv_lib_nsl_gethostbyname=no
10587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10588 LIBS=$ac_check_lib_save_LIBS
10590 echo "$as_me:10590: result: $ac_cv_lib_nsl_gethostbyname" >&5
10591 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
10592 if test $ac_cv_lib_nsl_gethostbyname = yes; then
10593 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10596 if test $ac_cv_lib_nsl_gethostbyname = no; then
10597 echo "$as_me:10597: checking for gethostbyname in -lbsd" >&5
10598 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
10599 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
10600 echo $ECHO_N "(cached) $ECHO_C" >&6
10602 ac_check_lib_save_LIBS=$LIBS
10604 cat >conftest.$ac_ext <<_ACEOF
10605 #line 10605 "configure"
10606 #include "confdefs.h"
10608 /* Override any gcc2 internal prototype to avoid an error. */
10612 /* We use char because int might match the return type of a gcc2
10613 builtin and then its argument prototype would still apply. */
10614 char gethostbyname ();
10623 rm -f conftest.$ac_objext conftest$ac_exeext
10624 if { (eval echo "$as_me:10624: \"$ac_link\"") >&5
10625 (eval $ac_link) 2>&5
10627 echo "$as_me:10627: \$? = $ac_status" >&5
10628 (exit $ac_status); } &&
10629 { ac_try='test -s conftest$ac_exeext'
10630 { (eval echo "$as_me:10630: \"$ac_try\"") >&5
10631 (eval $ac_try) 2>&5
10633 echo "$as_me:10633: \$? = $ac_status" >&5
10634 (exit $ac_status); }; }; then
10635 ac_cv_lib_bsd_gethostbyname=yes
10637 echo "$as_me: failed program was:" >&5
10638 cat conftest.$ac_ext >&5
10639 ac_cv_lib_bsd_gethostbyname=no
10641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10642 LIBS=$ac_check_lib_save_LIBS
10644 echo "$as_me:10644: result: $ac_cv_lib_bsd_gethostbyname" >&5
10645 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
10646 if test $ac_cv_lib_bsd_gethostbyname = yes; then
10647 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10653 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10654 # socket/setsockopt and other routines are undefined under SCO ODT
10655 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10656 # on later versions), says Simon Leinen: it contains gethostby*
10657 # variants that don't use the nameserver (or something). -lsocket
10658 # must be given before -lnsl if both are needed. We assume that
10659 # if connect needs -lnsl, so does gethostbyname.
10660 echo "$as_me:10660: checking for connect" >&5
10661 echo $ECHO_N "checking for connect... $ECHO_C" >&6
10662 if test "${ac_cv_func_connect+set}" = set; then
10663 echo $ECHO_N "(cached) $ECHO_C" >&6
10665 cat >conftest.$ac_ext <<_ACEOF
10666 #line 10666 "configure"
10667 #include "confdefs.h"
10668 /* System header to define __stub macros and hopefully few prototypes,
10669 which can conflict with char connect (); below. */
10670 #include <assert.h>
10671 /* Override any gcc2 internal prototype to avoid an error. */
10675 /* We use char because int might match the return type of a gcc2
10676 builtin and then its argument prototype would still apply. */
10683 /* The GNU C library defines this for functions which it implements
10684 to always fail with ENOSYS. Some functions are actually named
10685 something starting with __ and the normal name is an alias. */
10686 #if defined (__stub_connect) || defined (__stub___connect)
10689 f = connect; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
10696 rm -f conftest.$ac_objext conftest$ac_exeext
10697 if { (eval echo "$as_me:10697: \"$ac_link\"") >&5
10698 (eval $ac_link) 2>&5
10700 echo "$as_me:10700: \$? = $ac_status" >&5
10701 (exit $ac_status); } &&
10702 { ac_try='test -s conftest$ac_exeext'
10703 { (eval echo "$as_me:10703: \"$ac_try\"") >&5
10704 (eval $ac_try) 2>&5
10706 echo "$as_me:10706: \$? = $ac_status" >&5
10707 (exit $ac_status); }; }; then
10708 ac_cv_func_connect=yes
10710 echo "$as_me: failed program was:" >&5
10711 cat conftest.$ac_ext >&5
10712 ac_cv_func_connect=no
10714 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10716 echo "$as_me:10716: result: $ac_cv_func_connect" >&5
10717 echo "${ECHO_T}$ac_cv_func_connect" >&6
10719 if test $ac_cv_func_connect = no; then
10720 echo "$as_me:10720: checking for connect in -lsocket" >&5
10721 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10722 if test "${ac_cv_lib_socket_connect+set}" = set; then
10723 echo $ECHO_N "(cached) $ECHO_C" >&6
10725 ac_check_lib_save_LIBS=$LIBS
10726 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10727 cat >conftest.$ac_ext <<_ACEOF
10728 #line 10728 "configure"
10729 #include "confdefs.h"
10731 /* Override any gcc2 internal prototype to avoid an error. */
10735 /* We use char because int might match the return type of a gcc2
10736 builtin and then its argument prototype would still apply. */
10746 rm -f conftest.$ac_objext conftest$ac_exeext
10747 if { (eval echo "$as_me:10747: \"$ac_link\"") >&5
10748 (eval $ac_link) 2>&5
10750 echo "$as_me:10750: \$? = $ac_status" >&5
10751 (exit $ac_status); } &&
10752 { ac_try='test -s conftest$ac_exeext'
10753 { (eval echo "$as_me:10753: \"$ac_try\"") >&5
10754 (eval $ac_try) 2>&5
10756 echo "$as_me:10756: \$? = $ac_status" >&5
10757 (exit $ac_status); }; }; then
10758 ac_cv_lib_socket_connect=yes
10760 echo "$as_me: failed program was:" >&5
10761 cat conftest.$ac_ext >&5
10762 ac_cv_lib_socket_connect=no
10764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10765 LIBS=$ac_check_lib_save_LIBS
10767 echo "$as_me:10767: result: $ac_cv_lib_socket_connect" >&5
10768 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10769 if test $ac_cv_lib_socket_connect = yes; then
10770 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10775 # Guillermo Gomez says -lposix is necessary on A/UX.
10776 echo "$as_me:10776: checking for remove" >&5
10777 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10778 if test "${ac_cv_func_remove+set}" = set; then
10779 echo $ECHO_N "(cached) $ECHO_C" >&6
10781 cat >conftest.$ac_ext <<_ACEOF
10782 #line 10782 "configure"
10783 #include "confdefs.h"
10784 /* System header to define __stub macros and hopefully few prototypes,
10785 which can conflict with char remove (); below. */
10786 #include <assert.h>
10787 /* Override any gcc2 internal prototype to avoid an error. */
10791 /* We use char because int might match the return type of a gcc2
10792 builtin and then its argument prototype would still apply. */
10799 /* The GNU C library defines this for functions which it implements
10800 to always fail with ENOSYS. Some functions are actually named
10801 something starting with __ and the normal name is an alias. */
10802 #if defined (__stub_remove) || defined (__stub___remove)
10805 f = remove; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
10812 rm -f conftest.$ac_objext conftest$ac_exeext
10813 if { (eval echo "$as_me:10813: \"$ac_link\"") >&5
10814 (eval $ac_link) 2>&5
10816 echo "$as_me:10816: \$? = $ac_status" >&5
10817 (exit $ac_status); } &&
10818 { ac_try='test -s conftest$ac_exeext'
10819 { (eval echo "$as_me:10819: \"$ac_try\"") >&5
10820 (eval $ac_try) 2>&5
10822 echo "$as_me:10822: \$? = $ac_status" >&5
10823 (exit $ac_status); }; }; then
10824 ac_cv_func_remove=yes
10826 echo "$as_me: failed program was:" >&5
10827 cat conftest.$ac_ext >&5
10828 ac_cv_func_remove=no
10830 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10832 echo "$as_me:10832: result: $ac_cv_func_remove" >&5
10833 echo "${ECHO_T}$ac_cv_func_remove" >&6
10835 if test $ac_cv_func_remove = no; then
10836 echo "$as_me:10836: checking for remove in -lposix" >&5
10837 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10838 if test "${ac_cv_lib_posix_remove+set}" = set; then
10839 echo $ECHO_N "(cached) $ECHO_C" >&6
10841 ac_check_lib_save_LIBS=$LIBS
10842 LIBS="-lposix $LIBS"
10843 cat >conftest.$ac_ext <<_ACEOF
10844 #line 10844 "configure"
10845 #include "confdefs.h"
10847 /* Override any gcc2 internal prototype to avoid an error. */
10851 /* We use char because int might match the return type of a gcc2
10852 builtin and then its argument prototype would still apply. */
10862 rm -f conftest.$ac_objext conftest$ac_exeext
10863 if { (eval echo "$as_me:10863: \"$ac_link\"") >&5
10864 (eval $ac_link) 2>&5
10866 echo "$as_me:10866: \$? = $ac_status" >&5
10867 (exit $ac_status); } &&
10868 { ac_try='test -s conftest$ac_exeext'
10869 { (eval echo "$as_me:10869: \"$ac_try\"") >&5
10870 (eval $ac_try) 2>&5
10872 echo "$as_me:10872: \$? = $ac_status" >&5
10873 (exit $ac_status); }; }; then
10874 ac_cv_lib_posix_remove=yes
10876 echo "$as_me: failed program was:" >&5
10877 cat conftest.$ac_ext >&5
10878 ac_cv_lib_posix_remove=no
10880 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10881 LIBS=$ac_check_lib_save_LIBS
10883 echo "$as_me:10883: result: $ac_cv_lib_posix_remove" >&5
10884 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10885 if test $ac_cv_lib_posix_remove = yes; then
10886 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10891 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10892 echo "$as_me:10892: checking for shmat" >&5
10893 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10894 if test "${ac_cv_func_shmat+set}" = set; then
10895 echo $ECHO_N "(cached) $ECHO_C" >&6
10897 cat >conftest.$ac_ext <<_ACEOF
10898 #line 10898 "configure"
10899 #include "confdefs.h"
10900 /* System header to define __stub macros and hopefully few prototypes,
10901 which can conflict with char shmat (); below. */
10902 #include <assert.h>
10903 /* Override any gcc2 internal prototype to avoid an error. */
10907 /* We use char because int might match the return type of a gcc2
10908 builtin and then its argument prototype would still apply. */
10915 /* The GNU C library defines this for functions which it implements
10916 to always fail with ENOSYS. Some functions are actually named
10917 something starting with __ and the normal name is an alias. */
10918 #if defined (__stub_shmat) || defined (__stub___shmat)
10921 f = shmat; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
10928 rm -f conftest.$ac_objext conftest$ac_exeext
10929 if { (eval echo "$as_me:10929: \"$ac_link\"") >&5
10930 (eval $ac_link) 2>&5
10932 echo "$as_me:10932: \$? = $ac_status" >&5
10933 (exit $ac_status); } &&
10934 { ac_try='test -s conftest$ac_exeext'
10935 { (eval echo "$as_me:10935: \"$ac_try\"") >&5
10936 (eval $ac_try) 2>&5
10938 echo "$as_me:10938: \$? = $ac_status" >&5
10939 (exit $ac_status); }; }; then
10940 ac_cv_func_shmat=yes
10942 echo "$as_me: failed program was:" >&5
10943 cat conftest.$ac_ext >&5
10944 ac_cv_func_shmat=no
10946 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10948 echo "$as_me:10948: result: $ac_cv_func_shmat" >&5
10949 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10951 if test $ac_cv_func_shmat = no; then
10952 echo "$as_me:10952: checking for shmat in -lipc" >&5
10953 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10954 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10955 echo $ECHO_N "(cached) $ECHO_C" >&6
10957 ac_check_lib_save_LIBS=$LIBS
10959 cat >conftest.$ac_ext <<_ACEOF
10960 #line 10960 "configure"
10961 #include "confdefs.h"
10963 /* Override any gcc2 internal prototype to avoid an error. */
10967 /* We use char because int might match the return type of a gcc2
10968 builtin and then its argument prototype would still apply. */
10978 rm -f conftest.$ac_objext conftest$ac_exeext
10979 if { (eval echo "$as_me:10979: \"$ac_link\"") >&5
10980 (eval $ac_link) 2>&5
10982 echo "$as_me:10982: \$? = $ac_status" >&5
10983 (exit $ac_status); } &&
10984 { ac_try='test -s conftest$ac_exeext'
10985 { (eval echo "$as_me:10985: \"$ac_try\"") >&5
10986 (eval $ac_try) 2>&5
10988 echo "$as_me:10988: \$? = $ac_status" >&5
10989 (exit $ac_status); }; }; then
10990 ac_cv_lib_ipc_shmat=yes
10992 echo "$as_me: failed program was:" >&5
10993 cat conftest.$ac_ext >&5
10994 ac_cv_lib_ipc_shmat=no
10996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10997 LIBS=$ac_check_lib_save_LIBS
10999 echo "$as_me:10999: result: $ac_cv_lib_ipc_shmat" >&5
11000 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
11001 if test $ac_cv_lib_ipc_shmat = yes; then
11002 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
11008 # Check for libraries that X11R6 Xt/Xaw programs need.
11009 ac_save_LDFLAGS=$LDFLAGS
11010 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
11011 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
11012 # check for ICE first), but we must link in the order -lSM -lICE or
11013 # we get undefined symbols. So assume we have SM if we have ICE.
11014 # These have to be linked with before -lX11, unlike the other
11015 # libraries we check for below, so use a different variable.
11016 # John Interrante, Karl Berry
11017 echo "$as_me:11017: checking for IceConnectionNumber in -lICE" >&5
11018 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
11019 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
11020 echo $ECHO_N "(cached) $ECHO_C" >&6
11022 ac_check_lib_save_LIBS=$LIBS
11023 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
11024 cat >conftest.$ac_ext <<_ACEOF
11025 #line 11025 "configure"
11026 #include "confdefs.h"
11028 /* Override any gcc2 internal prototype to avoid an error. */
11032 /* We use char because int might match the return type of a gcc2
11033 builtin and then its argument prototype would still apply. */
11034 char IceConnectionNumber ();
11038 IceConnectionNumber ();
11043 rm -f conftest.$ac_objext conftest$ac_exeext
11044 if { (eval echo "$as_me:11044: \"$ac_link\"") >&5
11045 (eval $ac_link) 2>&5
11047 echo "$as_me:11047: \$? = $ac_status" >&5
11048 (exit $ac_status); } &&
11049 { ac_try='test -s conftest$ac_exeext'
11050 { (eval echo "$as_me:11050: \"$ac_try\"") >&5
11051 (eval $ac_try) 2>&5
11053 echo "$as_me:11053: \$? = $ac_status" >&5
11054 (exit $ac_status); }; }; then
11055 ac_cv_lib_ICE_IceConnectionNumber=yes
11057 echo "$as_me: failed program was:" >&5
11058 cat conftest.$ac_ext >&5
11059 ac_cv_lib_ICE_IceConnectionNumber=no
11061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11062 LIBS=$ac_check_lib_save_LIBS
11064 echo "$as_me:11064: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
11065 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
11066 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
11067 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
11070 LDFLAGS=$ac_save_LDFLAGS
11074 cf_x_athena=${cf_x_athena:-Xaw}
11076 echo "$as_me:11076: checking if you want to link with Xaw 3d library" >&5
11077 echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6
11080 # Check whether --with-Xaw3d or --without-Xaw3d was given.
11081 if test "${with_Xaw3d+set}" = set; then
11082 withval="$with_Xaw3d"
11085 if test "$withval" = yes ; then
11087 echo "$as_me:11087: result: yes" >&5
11088 echo "${ECHO_T}yes" >&6
11090 echo "$as_me:11090: result: no" >&5
11091 echo "${ECHO_T}no" >&6
11094 echo "$as_me:11094: checking if you want to link with Xaw 3d xft library" >&5
11095 echo $ECHO_N "checking if you want to link with Xaw 3d xft library... $ECHO_C" >&6
11098 # Check whether --with-Xaw3dxft or --without-Xaw3dxft was given.
11099 if test "${with_Xaw3dxft+set}" = set; then
11100 withval="$with_Xaw3dxft"
11103 if test "$withval" = yes ; then
11104 cf_x_athena=Xaw3dxft
11105 echo "$as_me:11105: result: yes" >&5
11106 echo "${ECHO_T}yes" >&6
11108 echo "$as_me:11108: result: no" >&5
11109 echo "${ECHO_T}no" >&6
11112 echo "$as_me:11112: checking if you want to link with neXT Athena library" >&5
11113 echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6
11116 # Check whether --with-neXtaw or --without-neXtaw was given.
11117 if test "${with_neXtaw+set}" = set; then
11118 withval="$with_neXtaw"
11121 if test "$withval" = yes ; then
11123 echo "$as_me:11123: result: yes" >&5
11124 echo "${ECHO_T}yes" >&6
11126 echo "$as_me:11126: result: no" >&5
11127 echo "${ECHO_T}no" >&6
11130 echo "$as_me:11130: checking if you want to link with Athena-Plus library" >&5
11131 echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6
11134 # Check whether --with-XawPlus or --without-XawPlus was given.
11135 if test "${with_XawPlus+set}" = set; then
11136 withval="$with_XawPlus"
11139 if test "$withval" = yes ; then
11140 cf_x_athena=XawPlus
11141 echo "$as_me:11141: result: yes" >&5
11142 echo "${ECHO_T}yes" >&6
11144 echo "$as_me:11144: result: no" >&5
11145 echo "${ECHO_T}no" >&6
11150 if test "$PKG_CONFIG" != none ; then
11152 test "$cf_x_athena" = Xaw && cf_athena_list="xaw8 xaw7 xaw6"
11153 for cf_athena_pkg in \
11156 ${cf_x_athena}-devel \
11157 lib${cf_x_athena} \
11158 lib${cf_x_athena}-devel
11161 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists $cf_athena_pkg; then
11162 test -n "$verbose" && echo " found package $cf_athena_pkg" 1>&6
11164 echo "${as_me:-configure}:11164: testing found package $cf_athena_pkg ..." 1>&5
11166 cf_pkgconfig_incs="`$PKG_CONFIG --cflags $cf_athena_pkg 2>/dev/null`"
11167 cf_pkgconfig_libs="`$PKG_CONFIG --libs $cf_athena_pkg 2>/dev/null`"
11168 test -n "$verbose" && echo " package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs" 1>&6
11170 echo "${as_me:-configure}:11170: testing package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11172 test -n "$verbose" && echo " package $cf_athena_pkg LIBS: $cf_pkgconfig_libs" 1>&6
11174 echo "${as_me:-configure}:11174: testing package $cf_athena_pkg LIBS: $cf_pkgconfig_libs ..." 1>&5
11179 cf_new_extra_cppflags=
11181 for cf_add_cflags in $cf_pkgconfig_incs
11183 case $cf_fix_cppflags in
11185 case $cf_add_cflags in
11186 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11187 case $cf_add_cflags in
11189 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11191 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11192 && test -z "${cf_tst_cflags}" \
11193 && cf_fix_cppflags=yes
11195 if test $cf_fix_cppflags = yes ; then
11197 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11198 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11201 elif test "${cf_tst_cflags}" = "\"'" ; then
11203 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11204 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11210 case "$CPPFLAGS" in
11214 case $cf_add_cflags in
11216 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11218 CPPFLAGS=`echo "$CPPFLAGS" | \
11219 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11220 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11225 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11226 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11233 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11234 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11241 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11242 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11244 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11246 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11247 && test -z "${cf_tst_cflags}" \
11248 && cf_fix_cppflags=no
11253 if test -n "$cf_new_cflags" ; then
11255 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11256 CFLAGS="${CFLAGS}$cf_new_cflags"
11260 if test -n "$cf_new_cppflags" ; then
11262 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11263 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11267 if test -n "$cf_new_extra_cppflags" ; then
11269 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11270 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11274 cf_add_libs="$cf_pkgconfig_libs"
11275 # Filter out duplicates - this happens with badly-designed ".pc" files...
11276 for cf_add_1lib in $LIBS
11278 for cf_add_2lib in $cf_add_libs
11280 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11286 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11288 LIBS="$cf_add_libs"
11290 cf_x_athena_lib="$cf_pkgconfig_libs"
11292 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
11294 cat >>confdefs.h <<EOF
11295 #define $cf_x_athena_LIBS 1
11298 for cf_trim_lib in Xmu Xt X11
11301 (*-l$cf_trim_lib\ *-l$cf_trim_lib*)
11302 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
11303 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
11305 echo "${as_me:-configure}:11305: testing ..trimmed $LIBS ..." 1>&5
11311 echo "$as_me:11311: checking for usable $cf_x_athena/Xmu package" >&5
11312 echo $ECHO_N "checking for usable $cf_x_athena/Xmu package... $ECHO_C" >&6
11313 if test "${cf_cv_xaw_compat+set}" = set; then
11314 echo $ECHO_N "(cached) $ECHO_C" >&6
11317 cat >conftest.$ac_ext <<_ACEOF
11318 #line 11318 "configure"
11319 #include "confdefs.h"
11321 #include <X11/Xmu/CharSet.h>
11327 int check = XmuCompareISOLatin1("big", "small")
11333 rm -f conftest.$ac_objext conftest$ac_exeext
11334 if { (eval echo "$as_me:11334: \"$ac_link\"") >&5
11335 (eval $ac_link) 2>&5
11337 echo "$as_me:11337: \$? = $ac_status" >&5
11338 (exit $ac_status); } &&
11339 { ac_try='test -s conftest$ac_exeext'
11340 { (eval echo "$as_me:11340: \"$ac_try\"") >&5
11341 (eval $ac_try) 2>&5
11343 echo "$as_me:11343: \$? = $ac_status" >&5
11344 (exit $ac_status); }; }; then
11345 cf_cv_xaw_compat=yes
11347 echo "$as_me: failed program was:" >&5
11348 cat conftest.$ac_ext >&5
11349 cf_cv_xaw_compat=no
11351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11353 echo "$as_me:11353: result: $cf_cv_xaw_compat" >&5
11354 echo "${ECHO_T}$cf_cv_xaw_compat" >&6
11356 if test "$cf_cv_xaw_compat" = no
11358 # workaround for broken ".pc" files...
11359 case "$cf_x_athena_lib" in
11363 test -n "$verbose" && echo " work around broken package" 1>&6
11365 echo "${as_me:-configure}:11365: testing work around broken package ..." 1>&5
11367 cf_save_xmu="$LIBS"
11368 cf_first_lib=`echo "$cf_save_xmu" | sed -e 's/^ *//' -e 's/ .*//'`
11370 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xmu; then
11371 test -n "$verbose" && echo " found package xmu" 1>&6
11373 echo "${as_me:-configure}:11373: testing found package xmu ..." 1>&5
11375 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xmu 2>/dev/null`"
11376 cf_pkgconfig_libs="`$PKG_CONFIG --libs xmu 2>/dev/null`"
11377 test -n "$verbose" && echo " package xmu CFLAGS: $cf_pkgconfig_incs" 1>&6
11379 echo "${as_me:-configure}:11379: testing package xmu CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11381 test -n "$verbose" && echo " package xmu LIBS: $cf_pkgconfig_libs" 1>&6
11383 echo "${as_me:-configure}:11383: testing package xmu LIBS: $cf_pkgconfig_libs ..." 1>&5
11388 cf_new_extra_cppflags=
11390 for cf_add_cflags in $cf_pkgconfig_incs
11392 case $cf_fix_cppflags in
11394 case $cf_add_cflags in
11395 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11396 case $cf_add_cflags in
11398 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11400 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11401 && test -z "${cf_tst_cflags}" \
11402 && cf_fix_cppflags=yes
11404 if test $cf_fix_cppflags = yes ; then
11406 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11407 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11410 elif test "${cf_tst_cflags}" = "\"'" ; then
11412 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11413 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11419 case "$CPPFLAGS" in
11423 case $cf_add_cflags in
11425 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11427 CPPFLAGS=`echo "$CPPFLAGS" | \
11428 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11429 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11434 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11435 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11442 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11443 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11450 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11451 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11453 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11455 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11456 && test -z "${cf_tst_cflags}" \
11457 && cf_fix_cppflags=no
11462 if test -n "$cf_new_cflags" ; then
11464 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11465 CFLAGS="${CFLAGS}$cf_new_cflags"
11469 if test -n "$cf_new_cppflags" ; then
11471 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11472 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11476 if test -n "$cf_new_extra_cppflags" ; then
11478 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11479 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11483 cf_add_libs="$cf_pkgconfig_libs"
11484 # Filter out duplicates - this happens with badly-designed ".pc" files...
11485 for cf_add_1lib in $LIBS
11487 for cf_add_2lib in $cf_add_libs
11489 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11495 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11497 LIBS="$cf_add_libs"
11499 LIBS="$cf_save_xmu"
11501 test -n "$verbose" && echo " ...before $LIBS" 1>&6
11503 echo "${as_me:-configure}:11503: testing ...before $LIBS ..." 1>&5
11505 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib $cf_pkgconfig_libs %" -e 's% % %g'`
11506 test -n "$verbose" && echo " ...after $LIBS" 1>&6
11508 echo "${as_me:-configure}:11508: testing ...after $LIBS ..." 1>&5
11514 test -n "$verbose" && echo " ...before $LIBS" 1>&6
11516 echo "${as_me:-configure}:11516: testing ...before $LIBS ..." 1>&5
11518 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib -lXmu %" -e 's% % %g'`
11519 test -n "$verbose" && echo " ...after $LIBS" 1>&6
11521 echo "${as_me:-configure}:11521: testing ...after $LIBS ..." 1>&5
11525 for cf_trim_lib in Xmu Xt X11
11528 (*-l$cf_trim_lib\ *-l$cf_trim_lib*)
11529 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
11530 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
11532 echo "${as_me:-configure}:11532: testing ..trimmed $LIBS ..." 1>&5
11552 if test -z "$cf_x_athena_lib" ; then
11554 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists Xext; then
11555 test -n "$verbose" && echo " found package Xext" 1>&6
11557 echo "${as_me:-configure}:11557: testing found package Xext ..." 1>&5
11559 cf_pkgconfig_incs="`$PKG_CONFIG --cflags Xext 2>/dev/null`"
11560 cf_pkgconfig_libs="`$PKG_CONFIG --libs Xext 2>/dev/null`"
11561 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6
11563 echo "${as_me:-configure}:11563: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11565 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6
11567 echo "${as_me:-configure}:11567: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5
11572 cf_new_extra_cppflags=
11574 for cf_add_cflags in $cf_pkgconfig_incs
11576 case $cf_fix_cppflags in
11578 case $cf_add_cflags in
11579 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11580 case $cf_add_cflags in
11582 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11584 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11585 && test -z "${cf_tst_cflags}" \
11586 && cf_fix_cppflags=yes
11588 if test $cf_fix_cppflags = yes ; then
11590 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11591 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11594 elif test "${cf_tst_cflags}" = "\"'" ; then
11596 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11597 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11603 case "$CPPFLAGS" in
11607 case $cf_add_cflags in
11609 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11611 CPPFLAGS=`echo "$CPPFLAGS" | \
11612 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11613 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11618 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11619 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11626 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11627 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11634 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11635 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11637 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11639 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11640 && test -z "${cf_tst_cflags}" \
11641 && cf_fix_cppflags=no
11646 if test -n "$cf_new_cflags" ; then
11648 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11649 CFLAGS="${CFLAGS}$cf_new_cflags"
11653 if test -n "$cf_new_cppflags" ; then
11655 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11656 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11660 if test -n "$cf_new_extra_cppflags" ; then
11662 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11663 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11667 cf_add_libs="$cf_pkgconfig_libs"
11668 # Filter out duplicates - this happens with badly-designed ".pc" files...
11669 for cf_add_1lib in $LIBS
11671 for cf_add_2lib in $cf_add_libs
11673 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11679 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11681 LIBS="$cf_add_libs"
11688 echo "$as_me:11688: checking for XextCreateExtension in -lXext" >&5
11689 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
11690 if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
11691 echo $ECHO_N "(cached) $ECHO_C" >&6
11693 ac_check_lib_save_LIBS=$LIBS
11694 LIBS="-lXext $LIBS"
11695 cat >conftest.$ac_ext <<_ACEOF
11696 #line 11696 "configure"
11697 #include "confdefs.h"
11699 /* Override any gcc2 internal prototype to avoid an error. */
11703 /* We use char because int might match the return type of a gcc2
11704 builtin and then its argument prototype would still apply. */
11705 char XextCreateExtension ();
11709 XextCreateExtension ();
11714 rm -f conftest.$ac_objext conftest$ac_exeext
11715 if { (eval echo "$as_me:11715: \"$ac_link\"") >&5
11716 (eval $ac_link) 2>&5
11718 echo "$as_me:11718: \$? = $ac_status" >&5
11719 (exit $ac_status); } &&
11720 { ac_try='test -s conftest$ac_exeext'
11721 { (eval echo "$as_me:11721: \"$ac_try\"") >&5
11722 (eval $ac_try) 2>&5
11724 echo "$as_me:11724: \$? = $ac_status" >&5
11725 (exit $ac_status); }; }; then
11726 ac_cv_lib_Xext_XextCreateExtension=yes
11728 echo "$as_me: failed program was:" >&5
11729 cat conftest.$ac_ext >&5
11730 ac_cv_lib_Xext_XextCreateExtension=no
11732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11733 LIBS=$ac_check_lib_save_LIBS
11735 echo "$as_me:11735: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
11736 echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
11737 if test $ac_cv_lib_Xext_XextCreateExtension = yes; then
11739 cf_add_libs="-lXext"
11740 # Filter out duplicates - this happens with badly-designed ".pc" files...
11741 for cf_add_1lib in $LIBS
11743 for cf_add_2lib in $cf_add_libs
11745 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11751 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11753 LIBS="$cf_add_libs"
11759 # OSX is schizoid about who owns /usr/X11 (old) versus /opt/X11 (new), and (and
11760 # in some cases has installed dummy files in the former, other cases replaced
11761 # it with a link to the new location). This complicates the configure script.
11762 # Check for that pitfall, and recover using pkg-config
11764 # If none of these are set, the configuration is almost certainly broken.
11765 if test -z "${X_CFLAGS}${X_PRE_LIBS}${X_LIBS}${X_EXTRA_LIBS}"
11768 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then
11769 test -n "$verbose" && echo " found package x11" 1>&6
11771 echo "${as_me:-configure}:11771: testing found package x11 ..." 1>&5
11773 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`"
11774 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`"
11775 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
11777 echo "${as_me:-configure}:11777: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11779 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
11781 echo "${as_me:-configure}:11781: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
11786 cf_new_extra_cppflags=
11788 for cf_add_cflags in $cf_pkgconfig_incs
11790 case $cf_fix_cppflags in
11792 case $cf_add_cflags in
11793 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11794 case $cf_add_cflags in
11796 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11798 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11799 && test -z "${cf_tst_cflags}" \
11800 && cf_fix_cppflags=yes
11802 if test $cf_fix_cppflags = yes ; then
11804 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11805 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11808 elif test "${cf_tst_cflags}" = "\"'" ; then
11810 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11811 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11817 case "$CPPFLAGS" in
11821 case $cf_add_cflags in
11823 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11825 CPPFLAGS=`echo "$CPPFLAGS" | \
11826 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11827 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11832 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11833 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11840 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11841 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11848 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11849 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11851 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11853 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11854 && test -z "${cf_tst_cflags}" \
11855 && cf_fix_cppflags=no
11860 if test -n "$cf_new_cflags" ; then
11862 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11863 CFLAGS="${CFLAGS}$cf_new_cflags"
11867 if test -n "$cf_new_cppflags" ; then
11869 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11870 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11874 if test -n "$cf_new_extra_cppflags" ; then
11876 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11877 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11881 cf_add_libs="$cf_pkgconfig_libs"
11882 # Filter out duplicates - this happens with badly-designed ".pc" files...
11883 for cf_add_1lib in $LIBS
11885 for cf_add_2lib in $cf_add_libs
11887 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11893 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11895 LIBS="$cf_add_libs"
11901 { echo "$as_me:11901: WARNING: unable to find X11 library" >&5
11902 echo "$as_me: WARNING: unable to find X11 library" >&2;}
11905 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then
11906 test -n "$verbose" && echo " found package ice" 1>&6
11908 echo "${as_me:-configure}:11908: testing found package ice ..." 1>&5
11910 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`"
11911 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`"
11912 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
11914 echo "${as_me:-configure}:11914: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11916 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
11918 echo "${as_me:-configure}:11918: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
11923 cf_new_extra_cppflags=
11925 for cf_add_cflags in $cf_pkgconfig_incs
11927 case $cf_fix_cppflags in
11929 case $cf_add_cflags in
11930 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11931 case $cf_add_cflags in
11933 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11935 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11936 && test -z "${cf_tst_cflags}" \
11937 && cf_fix_cppflags=yes
11939 if test $cf_fix_cppflags = yes ; then
11941 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11942 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11945 elif test "${cf_tst_cflags}" = "\"'" ; then
11947 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11948 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11954 case "$CPPFLAGS" in
11958 case $cf_add_cflags in
11960 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11962 CPPFLAGS=`echo "$CPPFLAGS" | \
11963 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11964 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11969 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11970 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11977 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11978 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11985 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11986 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11988 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11990 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11991 && test -z "${cf_tst_cflags}" \
11992 && cf_fix_cppflags=no
11997 if test -n "$cf_new_cflags" ; then
11999 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12000 CFLAGS="${CFLAGS}$cf_new_cflags"
12004 if test -n "$cf_new_cppflags" ; then
12006 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12007 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12011 if test -n "$cf_new_extra_cppflags" ; then
12013 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12014 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
12018 cf_add_libs="$cf_pkgconfig_libs"
12019 # Filter out duplicates - this happens with badly-designed ".pc" files...
12020 for cf_add_1lib in $LIBS
12022 for cf_add_2lib in $cf_add_libs
12024 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12030 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12032 LIBS="$cf_add_libs"
12038 { echo "$as_me:12038: WARNING: unable to find ICE library" >&5
12039 echo "$as_me: WARNING: unable to find ICE library" >&2;}
12042 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then
12043 test -n "$verbose" && echo " found package sm" 1>&6
12045 echo "${as_me:-configure}:12045: testing found package sm ..." 1>&5
12047 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`"
12048 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`"
12049 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
12051 echo "${as_me:-configure}:12051: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
12053 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
12055 echo "${as_me:-configure}:12055: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
12060 cf_new_extra_cppflags=
12062 for cf_add_cflags in $cf_pkgconfig_incs
12064 case $cf_fix_cppflags in
12066 case $cf_add_cflags in
12067 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12068 case $cf_add_cflags in
12070 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12072 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12073 && test -z "${cf_tst_cflags}" \
12074 && cf_fix_cppflags=yes
12076 if test $cf_fix_cppflags = yes ; then
12078 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12079 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12082 elif test "${cf_tst_cflags}" = "\"'" ; then
12084 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12085 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12091 case "$CPPFLAGS" in
12095 case $cf_add_cflags in
12097 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12099 CPPFLAGS=`echo "$CPPFLAGS" | \
12100 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12101 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12106 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
12107 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
12114 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
12115 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
12122 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12123 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12125 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12127 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12128 && test -z "${cf_tst_cflags}" \
12129 && cf_fix_cppflags=no
12134 if test -n "$cf_new_cflags" ; then
12136 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12137 CFLAGS="${CFLAGS}$cf_new_cflags"
12141 if test -n "$cf_new_cppflags" ; then
12143 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12144 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12148 if test -n "$cf_new_extra_cppflags" ; then
12150 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12151 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
12155 cf_add_libs="$cf_pkgconfig_libs"
12156 # Filter out duplicates - this happens with badly-designed ".pc" files...
12157 for cf_add_1lib in $LIBS
12159 for cf_add_2lib in $cf_add_libs
12161 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12167 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12169 LIBS="$cf_add_libs"
12175 { echo "$as_me:12175: WARNING: unable to find SM library" >&5
12176 echo "$as_me: WARNING: unable to find SM library" >&2;}
12179 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
12180 test -n "$verbose" && echo " found package xt" 1>&6
12182 echo "${as_me:-configure}:12182: testing found package xt ..." 1>&5
12184 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
12185 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`"
12186 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
12188 echo "${as_me:-configure}:12188: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
12190 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
12192 echo "${as_me:-configure}:12192: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
12197 cf_new_extra_cppflags=
12199 for cf_add_cflags in $cf_pkgconfig_incs
12201 case $cf_fix_cppflags in
12203 case $cf_add_cflags in
12204 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12205 case $cf_add_cflags in
12207 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12209 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12210 && test -z "${cf_tst_cflags}" \
12211 && cf_fix_cppflags=yes
12213 if test $cf_fix_cppflags = yes ; then
12215 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12216 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12219 elif test "${cf_tst_cflags}" = "\"'" ; then
12221 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12222 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12228 case "$CPPFLAGS" in
12232 case $cf_add_cflags in
12234 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12236 CPPFLAGS=`echo "$CPPFLAGS" | \
12237 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12238 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12243 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
12244 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
12251 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
12252 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
12259 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12260 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12262 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12264 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12265 && test -z "${cf_tst_cflags}" \
12266 && cf_fix_cppflags=no
12271 if test -n "$cf_new_cflags" ; then
12273 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12274 CFLAGS="${CFLAGS}$cf_new_cflags"
12278 if test -n "$cf_new_cppflags" ; then
12280 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12281 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12285 if test -n "$cf_new_extra_cppflags" ; then
12287 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12288 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
12292 cf_add_libs="$cf_pkgconfig_libs"
12293 # Filter out duplicates - this happens with badly-designed ".pc" files...
12294 for cf_add_1lib in $LIBS
12296 for cf_add_2lib in $cf_add_libs
12298 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12304 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12306 LIBS="$cf_add_libs"
12312 { echo "$as_me:12312: WARNING: unable to find Xt library" >&5
12313 echo "$as_me: WARNING: unable to find Xt library" >&2;}
12320 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
12321 test -n "$verbose" && echo " found package xt" 1>&6
12323 echo "${as_me:-configure}:12323: testing found package xt ..." 1>&5
12325 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
12326 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`"
12327 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
12329 echo "${as_me:-configure}:12329: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
12331 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
12333 echo "${as_me:-configure}:12333: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
12338 cf_new_extra_cppflags=
12340 for cf_add_cflags in $cf_pkgconfig_incs
12342 case $cf_fix_cppflags in
12344 case $cf_add_cflags in
12345 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12346 case $cf_add_cflags in
12348 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12350 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12351 && test -z "${cf_tst_cflags}" \
12352 && cf_fix_cppflags=yes
12354 if test $cf_fix_cppflags = yes ; then
12356 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12357 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12360 elif test "${cf_tst_cflags}" = "\"'" ; then
12362 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12363 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12369 case "$CPPFLAGS" in
12373 case $cf_add_cflags in
12375 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12377 CPPFLAGS=`echo "$CPPFLAGS" | \
12378 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12379 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12384 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
12385 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
12392 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
12393 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
12400 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12401 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12403 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12405 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12406 && test -z "${cf_tst_cflags}" \
12407 && cf_fix_cppflags=no
12412 if test -n "$cf_new_cflags" ; then
12414 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12415 CFLAGS="${CFLAGS}$cf_new_cflags"
12419 if test -n "$cf_new_cppflags" ; then
12421 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12422 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12426 if test -n "$cf_new_extra_cppflags" ; then
12428 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12429 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
12433 cf_add_libs="$cf_pkgconfig_libs"
12434 # Filter out duplicates - this happens with badly-designed ".pc" files...
12435 for cf_add_1lib in $LIBS
12437 for cf_add_2lib in $cf_add_libs
12439 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12445 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12447 LIBS="$cf_add_libs"
12453 # we have an "xt" package, but it may omit Xt's dependency on X11
12454 echo "$as_me:12454: checking for usable X dependency" >&5
12455 echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6
12456 if test "${cf_cv_xt_x11_compat+set}" = set; then
12457 echo $ECHO_N "(cached) $ECHO_C" >&6
12460 cat >conftest.$ac_ext <<_ACEOF
12461 #line 12461 "configure"
12462 #include "confdefs.h"
12464 #include <X11/Xlib.h>
12470 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0);
12471 int rc2 = XClearWindow((Display*) 0, (Window) 0);
12472 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0);
12473 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0);
12479 rm -f conftest.$ac_objext conftest$ac_exeext
12480 if { (eval echo "$as_me:12480: \"$ac_link\"") >&5
12481 (eval $ac_link) 2>&5
12483 echo "$as_me:12483: \$? = $ac_status" >&5
12484 (exit $ac_status); } &&
12485 { ac_try='test -s conftest$ac_exeext'
12486 { (eval echo "$as_me:12486: \"$ac_try\"") >&5
12487 (eval $ac_try) 2>&5
12489 echo "$as_me:12489: \$? = $ac_status" >&5
12490 (exit $ac_status); }; }; then
12491 cf_cv_xt_x11_compat=yes
12493 echo "$as_me: failed program was:" >&5
12494 cat conftest.$ac_ext >&5
12495 cf_cv_xt_x11_compat=no
12497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12499 echo "$as_me:12499: result: $cf_cv_xt_x11_compat" >&5
12500 echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6
12501 if test "$cf_cv_xt_x11_compat" = no
12503 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6
12505 echo "${as_me:-configure}:12505: testing work around broken X11 dependency ..." 1>&5
12507 # 2010/11/19 - good enough until a working Xt on Xcb is delivered.
12509 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then
12510 test -n "$verbose" && echo " found package x11" 1>&6
12512 echo "${as_me:-configure}:12512: testing found package x11 ..." 1>&5
12514 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`"
12515 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`"
12516 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
12518 echo "${as_me:-configure}:12518: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
12520 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
12522 echo "${as_me:-configure}:12522: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
12527 cf_new_extra_cppflags=
12529 for cf_add_cflags in $cf_pkgconfig_incs
12531 case $cf_fix_cppflags in
12533 case $cf_add_cflags in
12534 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12535 case $cf_add_cflags in
12537 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12539 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12540 && test -z "${cf_tst_cflags}" \
12541 && cf_fix_cppflags=yes
12543 if test $cf_fix_cppflags = yes ; then
12545 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12546 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12549 elif test "${cf_tst_cflags}" = "\"'" ; then
12551 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12552 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12558 case "$CPPFLAGS" in
12562 case $cf_add_cflags in
12564 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12566 CPPFLAGS=`echo "$CPPFLAGS" | \
12567 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12568 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12573 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
12574 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
12581 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
12582 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
12589 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12590 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12592 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12594 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12595 && test -z "${cf_tst_cflags}" \
12596 && cf_fix_cppflags=no
12601 if test -n "$cf_new_cflags" ; then
12603 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12604 CFLAGS="${CFLAGS}$cf_new_cflags"
12608 if test -n "$cf_new_cppflags" ; then
12610 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12611 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12615 if test -n "$cf_new_extra_cppflags" ; then
12617 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12618 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
12622 cf_add_libs="$cf_pkgconfig_libs"
12623 # Filter out duplicates - this happens with badly-designed ".pc" files...
12624 for cf_add_1lib in $LIBS
12626 for cf_add_2lib in $cf_add_libs
12628 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12634 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12636 LIBS="$cf_add_libs"
12643 test -n "$verbose" && echo " ...before $LIBS" 1>&6
12645 echo "${as_me:-configure}:12645: testing ...before $LIBS ..." 1>&5
12647 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'`
12648 test -n "$verbose" && echo " ...after $LIBS" 1>&6
12650 echo "${as_me:-configure}:12650: testing ...after $LIBS ..." 1>&5
12658 echo "$as_me:12658: checking for usable X Toolkit package" >&5
12659 echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6
12660 if test "${cf_cv_xt_ice_compat+set}" = set; then
12661 echo $ECHO_N "(cached) $ECHO_C" >&6
12664 cat >conftest.$ac_ext <<_ACEOF
12665 #line 12665 "configure"
12666 #include "confdefs.h"
12668 #include <X11/Shell.h>
12673 int num = IceConnectionNumber(0)
12679 rm -f conftest.$ac_objext conftest$ac_exeext
12680 if { (eval echo "$as_me:12680: \"$ac_link\"") >&5
12681 (eval $ac_link) 2>&5
12683 echo "$as_me:12683: \$? = $ac_status" >&5
12684 (exit $ac_status); } &&
12685 { ac_try='test -s conftest$ac_exeext'
12686 { (eval echo "$as_me:12686: \"$ac_try\"") >&5
12687 (eval $ac_try) 2>&5
12689 echo "$as_me:12689: \$? = $ac_status" >&5
12690 (exit $ac_status); }; }; then
12691 cf_cv_xt_ice_compat=yes
12693 echo "$as_me: failed program was:" >&5
12694 cat conftest.$ac_ext >&5
12695 cf_cv_xt_ice_compat=no
12697 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12699 echo "$as_me:12699: result: $cf_cv_xt_ice_compat" >&5
12700 echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6
12702 if test "$cf_cv_xt_ice_compat" = no
12704 # workaround for broken ".pc" files used for X Toolkit.
12705 case "x$X_PRE_LIBS" in
12711 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6
12713 echo "${as_me:-configure}:12713: testing work around broken ICE dependency ..." 1>&5
12715 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then
12716 test -n "$verbose" && echo " found package ice" 1>&6
12718 echo "${as_me:-configure}:12718: testing found package ice ..." 1>&5
12720 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`"
12721 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`"
12722 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
12724 echo "${as_me:-configure}:12724: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
12726 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
12728 echo "${as_me:-configure}:12728: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
12733 cf_new_extra_cppflags=
12735 for cf_add_cflags in $cf_pkgconfig_incs
12737 case $cf_fix_cppflags in
12739 case $cf_add_cflags in
12740 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12741 case $cf_add_cflags in
12743 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12745 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12746 && test -z "${cf_tst_cflags}" \
12747 && cf_fix_cppflags=yes
12749 if test $cf_fix_cppflags = yes ; then
12751 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12752 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12755 elif test "${cf_tst_cflags}" = "\"'" ; then
12757 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12758 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12764 case "$CPPFLAGS" in
12768 case $cf_add_cflags in
12770 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12772 CPPFLAGS=`echo "$CPPFLAGS" | \
12773 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12774 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12779 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
12780 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
12787 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
12788 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
12795 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12796 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12798 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12800 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12801 && test -z "${cf_tst_cflags}" \
12802 && cf_fix_cppflags=no
12807 if test -n "$cf_new_cflags" ; then
12809 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12810 CFLAGS="${CFLAGS}$cf_new_cflags"
12814 if test -n "$cf_new_cppflags" ; then
12816 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12817 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12821 if test -n "$cf_new_extra_cppflags" ; then
12823 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12824 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
12828 cf_add_libs="$cf_pkgconfig_libs"
12829 # Filter out duplicates - this happens with badly-designed ".pc" files...
12830 for cf_add_1lib in $LIBS
12832 for cf_add_2lib in $cf_add_libs
12834 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12840 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12842 LIBS="$cf_add_libs"
12844 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then
12845 test -n "$verbose" && echo " found package sm" 1>&6
12847 echo "${as_me:-configure}:12847: testing found package sm ..." 1>&5
12849 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`"
12850 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`"
12851 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
12853 echo "${as_me:-configure}:12853: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
12855 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
12857 echo "${as_me:-configure}:12857: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
12862 cf_new_extra_cppflags=
12864 for cf_add_cflags in $cf_pkgconfig_incs
12866 case $cf_fix_cppflags in
12868 case $cf_add_cflags in
12869 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12870 case $cf_add_cflags in
12872 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12874 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12875 && test -z "${cf_tst_cflags}" \
12876 && cf_fix_cppflags=yes
12878 if test $cf_fix_cppflags = yes ; then
12880 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12881 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12884 elif test "${cf_tst_cflags}" = "\"'" ; then
12886 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12887 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12893 case "$CPPFLAGS" in
12897 case $cf_add_cflags in
12899 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12901 CPPFLAGS=`echo "$CPPFLAGS" | \
12902 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12903 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12908 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
12909 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
12916 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
12917 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
12924 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12925 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12927 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12929 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12930 && test -z "${cf_tst_cflags}" \
12931 && cf_fix_cppflags=no
12936 if test -n "$cf_new_cflags" ; then
12938 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12939 CFLAGS="${CFLAGS}$cf_new_cflags"
12943 if test -n "$cf_new_cppflags" ; then
12945 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12946 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12950 if test -n "$cf_new_extra_cppflags" ; then
12952 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12953 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
12957 cf_add_libs="$cf_pkgconfig_libs"
12958 # Filter out duplicates - this happens with badly-designed ".pc" files...
12959 for cf_add_1lib in $LIBS
12961 for cf_add_2lib in $cf_add_libs
12963 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12969 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12971 LIBS="$cf_add_libs"
12984 test -n "$verbose" && echo " ...before $LIBS" 1>&6
12986 echo "${as_me:-configure}:12986: testing ...before $LIBS ..." 1>&5
12988 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's% % %g'`
12989 test -n "$verbose" && echo " ...after $LIBS" 1>&6
12991 echo "${as_me:-configure}:12991: testing ...after $LIBS ..." 1>&5
13007 LDFLAGS="$X_LIBS $LDFLAGS"
13009 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
13011 echo "${as_me:-configure}:13011: testing checking additions to CFLAGS ..." 1>&5
13013 cf_check_cflags="$CFLAGS"
13014 cf_check_cppflags="$CPPFLAGS"
13019 cf_new_extra_cppflags=
13021 for cf_add_cflags in $X_CFLAGS
13023 case $cf_fix_cppflags in
13025 case $cf_add_cflags in
13026 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13027 case $cf_add_cflags in
13029 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13031 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13032 && test -z "${cf_tst_cflags}" \
13033 && cf_fix_cppflags=yes
13035 if test $cf_fix_cppflags = yes ; then
13037 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13038 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13041 elif test "${cf_tst_cflags}" = "\"'" ; then
13043 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13044 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13050 case "$CPPFLAGS" in
13054 case $cf_add_cflags in
13056 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13058 CPPFLAGS=`echo "$CPPFLAGS" | \
13059 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13060 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13065 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13066 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
13073 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13074 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
13081 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13082 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13084 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13086 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13087 && test -z "${cf_tst_cflags}" \
13088 && cf_fix_cppflags=no
13093 if test -n "$cf_new_cflags" ; then
13094 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
13096 echo "${as_me:-configure}:13096: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
13098 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
13099 CFLAGS="${CFLAGS}$cf_new_cflags"
13103 if test -n "$cf_new_cppflags" ; then
13104 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
13106 echo "${as_me:-configure}:13106: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
13108 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13109 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
13113 if test -n "$cf_new_extra_cppflags" ; then
13114 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
13116 echo "${as_me:-configure}:13116: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
13118 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
13119 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
13123 if test "x$cf_check_cflags" != "x$CFLAGS" ; then
13124 cat >conftest.$ac_ext <<_ACEOF
13125 #line 13125 "configure"
13126 #include "confdefs.h"
13131 printf("Hello world");
13136 rm -f conftest.$ac_objext conftest$ac_exeext
13137 if { (eval echo "$as_me:13137: \"$ac_link\"") >&5
13138 (eval $ac_link) 2>&5
13140 echo "$as_me:13140: \$? = $ac_status" >&5
13141 (exit $ac_status); } &&
13142 { ac_try='test -s conftest$ac_exeext'
13143 { (eval echo "$as_me:13143: \"$ac_try\"") >&5
13144 (eval $ac_try) 2>&5
13146 echo "$as_me:13146: \$? = $ac_status" >&5
13147 (exit $ac_status); }; }; then
13150 echo "$as_me: failed program was:" >&5
13151 cat conftest.$ac_ext >&5
13152 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
13154 echo "${as_me:-configure}:13154: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
13156 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then
13157 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
13159 echo "${as_me:-configure}:13159: testing but keeping change to \$CPPFLAGS ..." 1>&5
13162 CFLAGS="$cf_check_flags"
13164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13167 echo "$as_me:13167: checking for XOpenDisplay" >&5
13168 echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6
13169 if test "${ac_cv_func_XOpenDisplay+set}" = set; then
13170 echo $ECHO_N "(cached) $ECHO_C" >&6
13172 cat >conftest.$ac_ext <<_ACEOF
13173 #line 13173 "configure"
13174 #include "confdefs.h"
13175 /* System header to define __stub macros and hopefully few prototypes,
13176 which can conflict with char XOpenDisplay (); below. */
13177 #include <assert.h>
13178 /* Override any gcc2 internal prototype to avoid an error. */
13182 /* We use char because int might match the return type of a gcc2
13183 builtin and then its argument prototype would still apply. */
13184 char XOpenDisplay ();
13190 /* The GNU C library defines this for functions which it implements
13191 to always fail with ENOSYS. Some functions are actually named
13192 something starting with __ and the normal name is an alias. */
13193 #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay)
13196 f = XOpenDisplay; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
13203 rm -f conftest.$ac_objext conftest$ac_exeext
13204 if { (eval echo "$as_me:13204: \"$ac_link\"") >&5
13205 (eval $ac_link) 2>&5
13207 echo "$as_me:13207: \$? = $ac_status" >&5
13208 (exit $ac_status); } &&
13209 { ac_try='test -s conftest$ac_exeext'
13210 { (eval echo "$as_me:13210: \"$ac_try\"") >&5
13211 (eval $ac_try) 2>&5
13213 echo "$as_me:13213: \$? = $ac_status" >&5
13214 (exit $ac_status); }; }; then
13215 ac_cv_func_XOpenDisplay=yes
13217 echo "$as_me: failed program was:" >&5
13218 cat conftest.$ac_ext >&5
13219 ac_cv_func_XOpenDisplay=no
13221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13223 echo "$as_me:13223: result: $ac_cv_func_XOpenDisplay" >&5
13224 echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6
13225 if test $ac_cv_func_XOpenDisplay = yes; then
13229 echo "$as_me:13229: checking for XOpenDisplay in -lX11" >&5
13230 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
13231 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
13232 echo $ECHO_N "(cached) $ECHO_C" >&6
13234 ac_check_lib_save_LIBS=$LIBS
13235 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
13236 cat >conftest.$ac_ext <<_ACEOF
13237 #line 13237 "configure"
13238 #include "confdefs.h"
13240 /* Override any gcc2 internal prototype to avoid an error. */
13244 /* We use char because int might match the return type of a gcc2
13245 builtin and then its argument prototype would still apply. */
13246 char XOpenDisplay ();
13255 rm -f conftest.$ac_objext conftest$ac_exeext
13256 if { (eval echo "$as_me:13256: \"$ac_link\"") >&5
13257 (eval $ac_link) 2>&5
13259 echo "$as_me:13259: \$? = $ac_status" >&5
13260 (exit $ac_status); } &&
13261 { ac_try='test -s conftest$ac_exeext'
13262 { (eval echo "$as_me:13262: \"$ac_try\"") >&5
13263 (eval $ac_try) 2>&5
13265 echo "$as_me:13265: \$? = $ac_status" >&5
13266 (exit $ac_status); }; }; then
13267 ac_cv_lib_X11_XOpenDisplay=yes
13269 echo "$as_me: failed program was:" >&5
13270 cat conftest.$ac_ext >&5
13271 ac_cv_lib_X11_XOpenDisplay=no
13273 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13274 LIBS=$ac_check_lib_save_LIBS
13276 echo "$as_me:13276: result: $ac_cv_lib_X11_XOpenDisplay" >&5
13277 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
13278 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
13280 cf_add_libs="-lX11"
13281 # Filter out duplicates - this happens with badly-designed ".pc" files...
13282 for cf_add_1lib in $LIBS
13284 for cf_add_2lib in $cf_add_libs
13286 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13292 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13294 LIBS="$cf_add_libs"
13300 echo "$as_me:13300: checking for XtAppInitialize" >&5
13301 echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6
13302 if test "${ac_cv_func_XtAppInitialize+set}" = set; then
13303 echo $ECHO_N "(cached) $ECHO_C" >&6
13305 cat >conftest.$ac_ext <<_ACEOF
13306 #line 13306 "configure"
13307 #include "confdefs.h"
13308 /* System header to define __stub macros and hopefully few prototypes,
13309 which can conflict with char XtAppInitialize (); below. */
13310 #include <assert.h>
13311 /* Override any gcc2 internal prototype to avoid an error. */
13315 /* We use char because int might match the return type of a gcc2
13316 builtin and then its argument prototype would still apply. */
13317 char XtAppInitialize ();
13323 /* The GNU C library defines this for functions which it implements
13324 to always fail with ENOSYS. Some functions are actually named
13325 something starting with __ and the normal name is an alias. */
13326 #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize)
13329 f = XtAppInitialize; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
13336 rm -f conftest.$ac_objext conftest$ac_exeext
13337 if { (eval echo "$as_me:13337: \"$ac_link\"") >&5
13338 (eval $ac_link) 2>&5
13340 echo "$as_me:13340: \$? = $ac_status" >&5
13341 (exit $ac_status); } &&
13342 { ac_try='test -s conftest$ac_exeext'
13343 { (eval echo "$as_me:13343: \"$ac_try\"") >&5
13344 (eval $ac_try) 2>&5
13346 echo "$as_me:13346: \$? = $ac_status" >&5
13347 (exit $ac_status); }; }; then
13348 ac_cv_func_XtAppInitialize=yes
13350 echo "$as_me: failed program was:" >&5
13351 cat conftest.$ac_ext >&5
13352 ac_cv_func_XtAppInitialize=no
13354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13356 echo "$as_me:13356: result: $ac_cv_func_XtAppInitialize" >&5
13357 echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6
13358 if test $ac_cv_func_XtAppInitialize = yes; then
13362 echo "$as_me:13362: checking for XtAppInitialize in -lXt" >&5
13363 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
13364 if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
13365 echo $ECHO_N "(cached) $ECHO_C" >&6
13367 ac_check_lib_save_LIBS=$LIBS
13368 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
13369 cat >conftest.$ac_ext <<_ACEOF
13370 #line 13370 "configure"
13371 #include "confdefs.h"
13373 /* Override any gcc2 internal prototype to avoid an error. */
13377 /* We use char because int might match the return type of a gcc2
13378 builtin and then its argument prototype would still apply. */
13379 char XtAppInitialize ();
13383 XtAppInitialize ();
13388 rm -f conftest.$ac_objext conftest$ac_exeext
13389 if { (eval echo "$as_me:13389: \"$ac_link\"") >&5
13390 (eval $ac_link) 2>&5
13392 echo "$as_me:13392: \$? = $ac_status" >&5
13393 (exit $ac_status); } &&
13394 { ac_try='test -s conftest$ac_exeext'
13395 { (eval echo "$as_me:13395: \"$ac_try\"") >&5
13396 (eval $ac_try) 2>&5
13398 echo "$as_me:13398: \$? = $ac_status" >&5
13399 (exit $ac_status); }; }; then
13400 ac_cv_lib_Xt_XtAppInitialize=yes
13402 echo "$as_me: failed program was:" >&5
13403 cat conftest.$ac_ext >&5
13404 ac_cv_lib_Xt_XtAppInitialize=no
13406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13407 LIBS=$ac_check_lib_save_LIBS
13409 echo "$as_me:13409: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
13410 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
13411 if test $ac_cv_lib_Xt_XtAppInitialize = yes; then
13413 cat >>confdefs.h <<\EOF
13414 #define HAVE_LIBXT 1
13418 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
13425 if test $cf_have_X_LIBS = no ; then
13426 { echo "$as_me:13426: WARNING: Unable to successfully link X Toolkit library (-lXt) with
13427 test program. You will have to check and add the proper libraries by hand
13429 echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with
13430 test program. You will have to check and add the proper libraries by hand
13431 to makefile." >&2;}
13434 cf_x_athena_root=$cf_x_athena
13437 for cf_path in default \
13438 /usr/contrib/X11R6 \
13439 /usr/contrib/X11R5 \
13443 if test -z "$cf_x_athena_inc" ; then
13444 cf_save="$CPPFLAGS"
13445 cf_test=X11/$cf_x_athena_root/SimpleMenu.h
13446 if test $cf_path != default ; then
13447 CPPFLAGS="$cf_save -I$cf_path/include"
13448 echo "$as_me:13448: checking for $cf_test in $cf_path" >&5
13449 echo $ECHO_N "checking for $cf_test in $cf_path... $ECHO_C" >&6
13451 echo "$as_me:13451: checking for $cf_test" >&5
13452 echo $ECHO_N "checking for $cf_test... $ECHO_C" >&6
13454 cat >conftest.$ac_ext <<_ACEOF
13455 #line 13455 "configure"
13456 #include "confdefs.h"
13458 #include <X11/Intrinsic.h>
13459 #include <$cf_test>
13468 rm -f conftest.$ac_objext
13469 if { (eval echo "$as_me:13469: \"$ac_compile\"") >&5
13470 (eval $ac_compile) 2>&5
13472 echo "$as_me:13472: \$? = $ac_status" >&5
13473 (exit $ac_status); } &&
13474 { ac_try='test -s conftest.$ac_objext'
13475 { (eval echo "$as_me:13475: \"$ac_try\"") >&5
13476 (eval $ac_try) 2>&5
13478 echo "$as_me:13478: \$? = $ac_status" >&5
13479 (exit $ac_status); }; }; then
13482 echo "$as_me: failed program was:" >&5
13483 cat conftest.$ac_ext >&5
13486 rm -f conftest.$ac_objext conftest.$ac_ext
13487 echo "$as_me:13487: result: $cf_result" >&5
13488 echo "${ECHO_T}$cf_result" >&6
13489 if test "$cf_result" = yes ; then
13490 cf_x_athena_inc=$cf_path
13493 CPPFLAGS="$cf_save"
13498 if test -z "$cf_x_athena_inc" ; then
13499 { echo "$as_me:13499: WARNING: Unable to successfully find Athena header files with test program" >&5
13500 echo "$as_me: WARNING: Unable to successfully find Athena header files with test program" >&2;}
13501 elif test "$cf_x_athena_inc" != default ; then
13502 CPPFLAGS="$CPPFLAGS -I$cf_x_athena_inc"
13505 cf_x_athena_root=$cf_x_athena
13508 for cf_path in default \
13509 /usr/contrib/X11R6 \
13510 /usr/contrib/X11R5 \
13515 ${cf_x_athena_root} \
13516 ${cf_x_athena_root}7 \
13517 ${cf_x_athena_root}6
13520 "-l$cf_lib -lXmu" \
13521 "-l$cf_lib -lXpm -lXmu" \
13522 "-l${cf_lib}_s -lXmu_s"
13524 if test -z "$cf_x_athena_lib" ; then
13526 cf_test=XawSimpleMenuAddGlobalActions
13527 if test $cf_path != default ; then
13529 cf_add_libs="-L$cf_path/lib $cf_libs"
13530 # Filter out duplicates - this happens with badly-designed ".pc" files...
13531 for cf_add_1lib in $LIBS
13533 for cf_add_2lib in $cf_add_libs
13535 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13541 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13543 LIBS="$cf_add_libs"
13545 echo "$as_me:13545: checking for $cf_libs in $cf_path" >&5
13546 echo $ECHO_N "checking for $cf_libs in $cf_path... $ECHO_C" >&6
13549 cf_add_libs="$cf_libs"
13550 # Filter out duplicates - this happens with badly-designed ".pc" files...
13551 for cf_add_1lib in $LIBS
13553 for cf_add_2lib in $cf_add_libs
13555 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13561 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13563 LIBS="$cf_add_libs"
13565 echo "$as_me:13565: checking for $cf_test in $cf_libs" >&5
13566 echo $ECHO_N "checking for $cf_test in $cf_libs... $ECHO_C" >&6
13568 cat >conftest.$ac_ext <<_ACEOF
13569 #line 13569 "configure"
13570 #include "confdefs.h"
13572 #include <X11/Intrinsic.h>
13573 #include <X11/$cf_x_athena_root/SimpleMenu.h>
13579 $cf_test((XtAppContext) 0)
13584 rm -f conftest.$ac_objext conftest$ac_exeext
13585 if { (eval echo "$as_me:13585: \"$ac_link\"") >&5
13586 (eval $ac_link) 2>&5
13588 echo "$as_me:13588: \$? = $ac_status" >&5
13589 (exit $ac_status); } &&
13590 { ac_try='test -s conftest$ac_exeext'
13591 { (eval echo "$as_me:13591: \"$ac_try\"") >&5
13592 (eval $ac_try) 2>&5
13594 echo "$as_me:13594: \$? = $ac_status" >&5
13595 (exit $ac_status); }; }; then
13598 echo "$as_me: failed program was:" >&5
13599 cat conftest.$ac_ext >&5
13602 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13603 echo "$as_me:13603: result: $cf_result" >&5
13604 echo "${ECHO_T}$cf_result" >&6
13605 if test "$cf_result" = yes ; then
13606 cf_x_athena_lib="$cf_libs"
13612 test -n "$cf_x_athena_lib" && break
13616 if test -z "$cf_x_athena_lib" ; then
13617 { { echo "$as_me:13617: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&5
13618 echo "$as_me: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&2;}
13619 { (exit 1); exit 1; }; }
13622 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13624 cat >>confdefs.h <<EOF
13625 #define $cf_x_athena_LIBS 1
13630 if test -n "$ac_tool_prefix"; then
13631 for ac_prog in xcurses-config
13633 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13634 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13635 echo "$as_me:13635: checking for $ac_word" >&5
13636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13637 if test "${ac_cv_prog_XCURSES_CONFIG+set}" = set; then
13638 echo $ECHO_N "(cached) $ECHO_C" >&6
13640 if test -n "$XCURSES_CONFIG"; then
13641 ac_cv_prog_XCURSES_CONFIG="$XCURSES_CONFIG" # Let the user override the test.
13643 ac_save_IFS=$IFS; IFS=$ac_path_separator
13645 for ac_dir in $ac_dummy; do
13647 test -z "$ac_dir" && ac_dir=.
13648 $as_executable_p "$ac_dir/$ac_word" || continue
13649 ac_cv_prog_XCURSES_CONFIG="$ac_tool_prefix$ac_prog"
13650 echo "$as_me:13650: found $ac_dir/$ac_word" >&5
13656 XCURSES_CONFIG=$ac_cv_prog_XCURSES_CONFIG
13657 if test -n "$XCURSES_CONFIG"; then
13658 echo "$as_me:13658: result: $XCURSES_CONFIG" >&5
13659 echo "${ECHO_T}$XCURSES_CONFIG" >&6
13661 echo "$as_me:13661: result: no" >&5
13662 echo "${ECHO_T}no" >&6
13665 test -n "$XCURSES_CONFIG" && break
13668 if test -z "$XCURSES_CONFIG"; then
13669 ac_ct_XCURSES_CONFIG=$XCURSES_CONFIG
13670 for ac_prog in xcurses-config
13672 # Extract the first word of "$ac_prog", so it can be a program name with args.
13673 set dummy $ac_prog; ac_word=$2
13674 echo "$as_me:13674: checking for $ac_word" >&5
13675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13676 if test "${ac_cv_prog_ac_ct_XCURSES_CONFIG+set}" = set; then
13677 echo $ECHO_N "(cached) $ECHO_C" >&6
13679 if test -n "$ac_ct_XCURSES_CONFIG"; then
13680 ac_cv_prog_ac_ct_XCURSES_CONFIG="$ac_ct_XCURSES_CONFIG" # Let the user override the test.
13682 ac_save_IFS=$IFS; IFS=$ac_path_separator
13684 for ac_dir in $ac_dummy; do
13686 test -z "$ac_dir" && ac_dir=.
13687 $as_executable_p "$ac_dir/$ac_word" || continue
13688 ac_cv_prog_ac_ct_XCURSES_CONFIG="$ac_prog"
13689 echo "$as_me:13689: found $ac_dir/$ac_word" >&5
13695 ac_ct_XCURSES_CONFIG=$ac_cv_prog_ac_ct_XCURSES_CONFIG
13696 if test -n "$ac_ct_XCURSES_CONFIG"; then
13697 echo "$as_me:13697: result: $ac_ct_XCURSES_CONFIG" >&5
13698 echo "${ECHO_T}$ac_ct_XCURSES_CONFIG" >&6
13700 echo "$as_me:13700: result: no" >&5
13701 echo "${ECHO_T}no" >&6
13704 test -n "$ac_ct_XCURSES_CONFIG" && break
13706 test -n "$ac_ct_XCURSES_CONFIG" || ac_ct_XCURSES_CONFIG="none"
13708 XCURSES_CONFIG=$ac_ct_XCURSES_CONFIG
13711 if test "$XCURSES_CONFIG" != none ; then
13713 CPPFLAGS="$CPPFLAGS `$XCURSES_CONFIG --cflags`"
13715 cf_add_libs="`$XCURSES_CONFIG --libs`"
13716 # Filter out duplicates - this happens with badly-designed ".pc" files...
13717 for cf_add_1lib in $LIBS
13719 for cf_add_2lib in $cf_add_libs
13721 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13727 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13729 LIBS="$cf_add_libs"
13731 cf_cv_lib_XCurses=yes
13735 LDFLAGS="$LDFLAGS $X_LIBS"
13737 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
13739 echo "${as_me:-configure}:13739: testing checking additions to CFLAGS ..." 1>&5
13741 cf_check_cflags="$CFLAGS"
13742 cf_check_cppflags="$CPPFLAGS"
13747 cf_new_extra_cppflags=
13749 for cf_add_cflags in $X_CFLAGS
13751 case $cf_fix_cppflags in
13753 case $cf_add_cflags in
13754 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13755 case $cf_add_cflags in
13757 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13759 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13760 && test -z "${cf_tst_cflags}" \
13761 && cf_fix_cppflags=yes
13763 if test $cf_fix_cppflags = yes ; then
13765 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13766 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13769 elif test "${cf_tst_cflags}" = "\"'" ; then
13771 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13772 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13778 case "$CPPFLAGS" in
13782 case $cf_add_cflags in
13784 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13786 CPPFLAGS=`echo "$CPPFLAGS" | \
13787 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13788 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13793 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13794 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
13801 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13802 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
13809 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13810 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13812 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13814 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13815 && test -z "${cf_tst_cflags}" \
13816 && cf_fix_cppflags=no
13821 if test -n "$cf_new_cflags" ; then
13822 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
13824 echo "${as_me:-configure}:13824: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
13826 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
13827 CFLAGS="${CFLAGS}$cf_new_cflags"
13831 if test -n "$cf_new_cppflags" ; then
13832 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
13834 echo "${as_me:-configure}:13834: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
13836 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13837 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
13841 if test -n "$cf_new_extra_cppflags" ; then
13842 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
13844 echo "${as_me:-configure}:13844: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
13846 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
13847 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
13851 if test "x$cf_check_cflags" != "x$CFLAGS" ; then
13852 cat >conftest.$ac_ext <<_ACEOF
13853 #line 13853 "configure"
13854 #include "confdefs.h"
13859 printf("Hello world");
13864 rm -f conftest.$ac_objext conftest$ac_exeext
13865 if { (eval echo "$as_me:13865: \"$ac_link\"") >&5
13866 (eval $ac_link) 2>&5
13868 echo "$as_me:13868: \$? = $ac_status" >&5
13869 (exit $ac_status); } &&
13870 { ac_try='test -s conftest$ac_exeext'
13871 { (eval echo "$as_me:13871: \"$ac_try\"") >&5
13872 (eval $ac_try) 2>&5
13874 echo "$as_me:13874: \$? = $ac_status" >&5
13875 (exit $ac_status); }; }; then
13878 echo "$as_me: failed program was:" >&5
13879 cat conftest.$ac_ext >&5
13880 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
13882 echo "${as_me:-configure}:13882: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
13884 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then
13885 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
13887 echo "${as_me:-configure}:13887: testing but keeping change to \$CPPFLAGS ..." 1>&5
13890 CFLAGS="$cf_check_flags"
13892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13895 echo "$as_me:13895: checking for XOpenDisplay in -lX11" >&5
13896 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
13897 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
13898 echo $ECHO_N "(cached) $ECHO_C" >&6
13900 ac_check_lib_save_LIBS=$LIBS
13901 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
13902 cat >conftest.$ac_ext <<_ACEOF
13903 #line 13903 "configure"
13904 #include "confdefs.h"
13906 /* Override any gcc2 internal prototype to avoid an error. */
13910 /* We use char because int might match the return type of a gcc2
13911 builtin and then its argument prototype would still apply. */
13912 char XOpenDisplay ();
13921 rm -f conftest.$ac_objext conftest$ac_exeext
13922 if { (eval echo "$as_me:13922: \"$ac_link\"") >&5
13923 (eval $ac_link) 2>&5
13925 echo "$as_me:13925: \$? = $ac_status" >&5
13926 (exit $ac_status); } &&
13927 { ac_try='test -s conftest$ac_exeext'
13928 { (eval echo "$as_me:13928: \"$ac_try\"") >&5
13929 (eval $ac_try) 2>&5
13931 echo "$as_me:13931: \$? = $ac_status" >&5
13932 (exit $ac_status); }; }; then
13933 ac_cv_lib_X11_XOpenDisplay=yes
13935 echo "$as_me: failed program was:" >&5
13936 cat conftest.$ac_ext >&5
13937 ac_cv_lib_X11_XOpenDisplay=no
13939 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13940 LIBS=$ac_check_lib_save_LIBS
13942 echo "$as_me:13942: result: $ac_cv_lib_X11_XOpenDisplay" >&5
13943 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
13944 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
13946 cf_add_libs="-lX11"
13947 # Filter out duplicates - this happens with badly-designed ".pc" files...
13948 for cf_add_1lib in $LIBS
13950 for cf_add_2lib in $cf_add_libs
13952 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13958 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13960 LIBS="$cf_add_libs"
13964 echo "$as_me:13964: checking for XCurses library" >&5
13965 echo $ECHO_N "checking for XCurses library... $ECHO_C" >&6
13966 if test "${cf_cv_lib_XCurses+set}" = set; then
13967 echo $ECHO_N "(cached) $ECHO_C" >&6
13970 cf_add_libs="-lXCurses"
13971 # Filter out duplicates - this happens with badly-designed ".pc" files...
13972 for cf_add_1lib in $LIBS
13974 for cf_add_2lib in $cf_add_libs
13976 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13982 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13984 LIBS="$cf_add_libs"
13986 cat >conftest.$ac_ext <<_ACEOF
13987 #line 13987 "configure"
13988 #include "confdefs.h"
13990 #include <xcurses.h>
13991 char *XCursesProgramName = "test";
14001 rm -f conftest.$ac_objext conftest$ac_exeext
14002 if { (eval echo "$as_me:14002: \"$ac_link\"") >&5
14003 (eval $ac_link) 2>&5
14005 echo "$as_me:14005: \$? = $ac_status" >&5
14006 (exit $ac_status); } &&
14007 { ac_try='test -s conftest$ac_exeext'
14008 { (eval echo "$as_me:14008: \"$ac_try\"") >&5
14009 (eval $ac_try) 2>&5
14011 echo "$as_me:14011: \$? = $ac_status" >&5
14012 (exit $ac_status); }; }; then
14013 cf_cv_lib_XCurses=yes
14015 echo "$as_me: failed program was:" >&5
14016 cat conftest.$ac_ext >&5
14017 cf_cv_lib_XCurses=no
14019 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14022 echo "$as_me:14022: result: $cf_cv_lib_XCurses" >&5
14023 echo "${ECHO_T}$cf_cv_lib_XCurses" >&6
14027 if test $cf_cv_lib_XCurses = yes ; then
14029 cat >>confdefs.h <<\EOF
14033 cat >>confdefs.h <<\EOF
14037 echo "$as_me:14037: checking for xcurses.h" >&5
14038 echo $ECHO_N "checking for xcurses.h... $ECHO_C" >&6
14039 if test "${ac_cv_header_xcurses_h+set}" = set; then
14040 echo $ECHO_N "(cached) $ECHO_C" >&6
14042 cat >conftest.$ac_ext <<_ACEOF
14043 #line 14043 "configure"
14044 #include "confdefs.h"
14045 #include <xcurses.h>
14047 if { (eval echo "$as_me:14047: \"$ac_cpp conftest.$ac_ext\"") >&5
14048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14050 egrep -v '^ *\+' conftest.er1 >conftest.err
14052 cat conftest.err >&5
14053 echo "$as_me:14053: \$? = $ac_status" >&5
14054 (exit $ac_status); } >/dev/null; then
14055 if test -s conftest.err; then
14056 ac_cpp_err=$ac_c_preproc_warn_flag
14063 if test -z "$ac_cpp_err"; then
14064 ac_cv_header_xcurses_h=yes
14066 echo "$as_me: failed program was:" >&5
14067 cat conftest.$ac_ext >&5
14068 ac_cv_header_xcurses_h=no
14070 rm -f conftest.err conftest.$ac_ext
14072 echo "$as_me:14072: result: $ac_cv_header_xcurses_h" >&5
14073 echo "${ECHO_T}$ac_cv_header_xcurses_h" >&6
14074 if test $ac_cv_header_xcurses_h = yes; then
14076 cat >>confdefs.h <<\EOF
14077 #define HAVE_XCURSES 1
14083 { { echo "$as_me:14083: error: Cannot link with XCurses" >&5
14084 echo "$as_me: error: Cannot link with XCurses" >&2;}
14085 { (exit 1); exit 1; }; }
14090 { { echo "$as_me:14090: error: unexpected screen-value: $cf_cv_screen" >&5
14091 echo "$as_me: error: unexpected screen-value: $cf_cv_screen" >&2;}
14092 { (exit 1); exit 1; }; }
14096 : ${cf_nculib_root:=$cf_cv_screen}
14097 as_ac_Lib=`echo "ac_cv_lib_$cf_nculib_root''__nc_init_pthreads" | $as_tr_sh`
14098 echo "$as_me:14098: checking for _nc_init_pthreads in -l$cf_nculib_root" >&5
14099 echo $ECHO_N "checking for _nc_init_pthreads in -l$cf_nculib_root... $ECHO_C" >&6
14100 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
14101 echo $ECHO_N "(cached) $ECHO_C" >&6
14103 ac_check_lib_save_LIBS=$LIBS
14104 LIBS="-l$cf_nculib_root $LIBS"
14105 cat >conftest.$ac_ext <<_ACEOF
14106 #line 14106 "configure"
14107 #include "confdefs.h"
14109 /* Override any gcc2 internal prototype to avoid an error. */
14113 /* We use char because int might match the return type of a gcc2
14114 builtin and then its argument prototype would still apply. */
14115 char _nc_init_pthreads ();
14119 _nc_init_pthreads ();
14124 rm -f conftest.$ac_objext conftest$ac_exeext
14125 if { (eval echo "$as_me:14125: \"$ac_link\"") >&5
14126 (eval $ac_link) 2>&5
14128 echo "$as_me:14128: \$? = $ac_status" >&5
14129 (exit $ac_status); } &&
14130 { ac_try='test -s conftest$ac_exeext'
14131 { (eval echo "$as_me:14131: \"$ac_try\"") >&5
14132 (eval $ac_try) 2>&5
14134 echo "$as_me:14134: \$? = $ac_status" >&5
14135 (exit $ac_status); }; }; then
14136 eval "$as_ac_Lib=yes"
14138 echo "$as_me: failed program was:" >&5
14139 cat conftest.$ac_ext >&5
14140 eval "$as_ac_Lib=no"
14142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14143 LIBS=$ac_check_lib_save_LIBS
14145 echo "$as_me:14145: result: `eval echo '${'$as_ac_Lib'}'`" >&5
14146 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
14147 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
14148 cf_cv_ncurses_pthreads=yes
14150 cf_cv_ncurses_pthreads=no
14153 if test "$cf_cv_ncurses_pthreads" = yes
14156 cf_add_libs="-lpthread"
14157 # Filter out duplicates - this happens with badly-designed ".pc" files...
14158 for cf_add_1lib in $LIBS
14160 for cf_add_2lib in $cf_add_libs
14162 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14168 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14170 LIBS="$cf_add_libs"
14174 case $cf_cv_screen in
14176 cf_cv_libtype=`echo "$cf_cv_screen" | sed -e 's/^ncurses//'`
14180 echo "$as_me:14180: checking for X11 rgb file" >&5
14181 echo $ECHO_N "checking for X11 rgb file... $ECHO_C" >&6
14183 # Check whether --with-x11-rgb or --without-x11-rgb was given.
14184 if test "${with_x11_rgb+set}" = set; then
14185 withval="$with_x11_rgb"
14191 if test "x$RGB_PATH" = xauto
14193 RGB_PATH='${exec_prefix}/lib/X11/rgb.txt'
14195 /opt/local/share/X11/rgb.txt \
14196 /opt/X11/share/X11/rgb.txt \
14197 /usr/share/X11/rgb.txt \
14198 /usr/X11/share/X11/rgb.txt \
14199 /usr/X11/lib/X11/rgb.txt \
14200 /usr/lib/X11/rgb.txt \
14202 /usr/pkg/lib/X11/rgb.txt \
14203 /usr/X11R7/lib/X11/rgb.txt \
14204 /usr/X11R6/lib/X11/rgb.txt \
14205 /usr/X11R5/lib/X11/rgb.txt \
14206 /usr/X11R4/lib/X11/rgb.txt \
14207 /usr/local/lib/X11/rgb.txt \
14208 /usr/local/share/X11/rgb.txt \
14209 /usr/lib64/X11/rgb.txt
14211 if test -f "$cf_path" ; then
14212 RGB_PATH="$cf_path"
14219 if test "x$prefix" != xNONE; then
14220 cf_path_syntax="$prefix"
14222 cf_path_syntax="$ac_default_prefix"
14225 case ".$cf_path" in
14226 (.\$\(*\)*|.\'*\'*)
14230 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
14232 (.\${*prefix}*|.\${*dir}*)
14233 eval cf_path="$cf_path"
14234 case ".$cf_path" in
14236 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
14241 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
14244 { { echo "$as_me:14244: error: expected a pathname, not \"$cf_path\"" >&5
14245 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
14246 { (exit 1); exit 1; }; }
14252 echo "$as_me:14252: result: $RGB_PATH" >&5
14253 echo "${ECHO_T}$RGB_PATH" >&6
14255 cat >>confdefs.h <<EOF
14256 #define RGB_PATH "$cf_path"
14260 if test "$RGB_PATH" = no
14267 case $cf_cv_screen in
14269 cf_default_panel=no
14272 cf_default_tinfo=no
14274 (xcurses|bsdcurses)
14275 cf_default_panel=no
14278 cf_default_tinfo=yes
14281 cf_default_panel=yes
14282 cf_default_form=yes
14283 cf_default_menu=yes
14284 cf_default_tinfo=yes
14285 case $cf_cv_screen in
14287 cf_curses_headers="nc_alloc.h nomacros.h term_entry.h"
14293 echo "$as_me:14293: checking if you want to check for panel functions" >&5
14294 echo $ECHO_N "checking if you want to check for panel functions... $ECHO_C" >&6
14296 # Check whether --enable-panel or --disable-panel was given.
14297 if test "${enable_panel+set}" = set; then
14298 enableval="$enable_panel"
14299 test "$enableval" != no && enableval=yes
14300 if test "$enableval" != "yes" ; then
14303 cf_enable_panel=$cf_default_panel
14307 cf_enable_panel=$cf_default_panel
14310 echo "$as_me:14310: result: $cf_enable_panel" >&5
14311 echo "${ECHO_T}$cf_enable_panel" >&6
14312 if test $cf_enable_panel = yes
14315 as_ac_Lib=`echo "ac_cv_lib_panel$cf_cv_libtype''_new_panel" | $as_tr_sh`
14316 echo "$as_me:14316: checking for new_panel in -lpanel$cf_cv_libtype" >&5
14317 echo $ECHO_N "checking for new_panel in -lpanel$cf_cv_libtype... $ECHO_C" >&6
14318 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
14319 echo $ECHO_N "(cached) $ECHO_C" >&6
14321 ac_check_lib_save_LIBS=$LIBS
14322 LIBS="-lpanel$cf_cv_libtype $LIBS"
14323 cat >conftest.$ac_ext <<_ACEOF
14324 #line 14324 "configure"
14325 #include "confdefs.h"
14327 /* Override any gcc2 internal prototype to avoid an error. */
14331 /* We use char because int might match the return type of a gcc2
14332 builtin and then its argument prototype would still apply. */
14342 rm -f conftest.$ac_objext conftest$ac_exeext
14343 if { (eval echo "$as_me:14343: \"$ac_link\"") >&5
14344 (eval $ac_link) 2>&5
14346 echo "$as_me:14346: \$? = $ac_status" >&5
14347 (exit $ac_status); } &&
14348 { ac_try='test -s conftest$ac_exeext'
14349 { (eval echo "$as_me:14349: \"$ac_try\"") >&5
14350 (eval $ac_try) 2>&5
14352 echo "$as_me:14352: \$? = $ac_status" >&5
14353 (exit $ac_status); }; }; then
14354 eval "$as_ac_Lib=yes"
14356 echo "$as_me: failed program was:" >&5
14357 cat conftest.$ac_ext >&5
14358 eval "$as_ac_Lib=no"
14360 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14361 LIBS=$ac_check_lib_save_LIBS
14363 echo "$as_me:14363: result: `eval echo '${'$as_ac_Lib'}'`" >&5
14364 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
14365 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
14367 cf_upper=`echo "have_libpanel" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14369 cf_add_libs="-lpanel$cf_cv_libtype"
14370 # Filter out duplicates - this happens with badly-designed ".pc" files...
14371 for cf_add_1lib in $LIBS
14373 for cf_add_2lib in $cf_add_libs
14375 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14381 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14383 LIBS="$cf_add_libs"
14385 cat >>confdefs.h <<EOF
14386 #define $cf_upper 1
14391 cf_curses_headers="$cf_curses_headers panel.h"
14394 echo "$as_me:14394: checking if you want to check for menu functions" >&5
14395 echo $ECHO_N "checking if you want to check for menu functions... $ECHO_C" >&6
14397 # Check whether --enable-menu or --disable-menu was given.
14398 if test "${enable_menu+set}" = set; then
14399 enableval="$enable_menu"
14400 test "$enableval" != no && enableval=yes
14401 if test "$enableval" != "yes" ; then
14404 cf_enable_menu=$cf_default_menu
14408 cf_enable_menu=$cf_default_menu
14411 echo "$as_me:14411: result: $cf_enable_menu" >&5
14412 echo "${ECHO_T}$cf_enable_menu" >&6
14413 if test $cf_enable_menu = yes
14415 case $cf_cv_screen in
14420 echo "$as_me:14420: checking for NetBSD menu.h" >&5
14421 echo $ECHO_N "checking for NetBSD menu.h... $ECHO_C" >&6
14422 if test "${cf_cv_netbsd_menu_h+set}" = set; then
14423 echo $ECHO_N "(cached) $ECHO_C" >&6
14426 cat >conftest.$ac_ext <<_ACEOF
14427 #line 14427 "configure"
14428 #include "confdefs.h"
14430 #include <${cf_cv_ncurses_header:-curses.h}>
14438 int y = menu->max_item_width;
14444 rm -f conftest.$ac_objext
14445 if { (eval echo "$as_me:14445: \"$ac_compile\"") >&5
14446 (eval $ac_compile) 2>&5
14448 echo "$as_me:14448: \$? = $ac_status" >&5
14449 (exit $ac_status); } &&
14450 { ac_try='test -s conftest.$ac_objext'
14451 { (eval echo "$as_me:14451: \"$ac_try\"") >&5
14452 (eval $ac_try) 2>&5
14454 echo "$as_me:14454: \$? = $ac_status" >&5
14455 (exit $ac_status); }; }; then
14456 cf_cv_netbsd_menu_h=yes
14459 echo "$as_me: failed program was:" >&5
14460 cat conftest.$ac_ext >&5
14461 cf_cv_netbsd_menu_h=no
14463 rm -f conftest.$ac_objext conftest.$ac_ext
14466 echo "$as_me:14466: result: $cf_cv_netbsd_menu_h" >&5
14467 echo "${ECHO_T}$cf_cv_netbsd_menu_h" >&6
14469 test "$cf_cv_netbsd_menu_h" = yes &&
14470 cat >>confdefs.h <<\EOF
14471 #define HAVE_NETBSD_MENU_H 1
14477 as_ac_Lib=`echo "ac_cv_lib_menu$cf_cv_libtype''_menu_driver" | $as_tr_sh`
14478 echo "$as_me:14478: checking for menu_driver in -lmenu$cf_cv_libtype" >&5
14479 echo $ECHO_N "checking for menu_driver in -lmenu$cf_cv_libtype... $ECHO_C" >&6
14480 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
14481 echo $ECHO_N "(cached) $ECHO_C" >&6
14483 ac_check_lib_save_LIBS=$LIBS
14484 LIBS="-lmenu$cf_cv_libtype $LIBS"
14485 cat >conftest.$ac_ext <<_ACEOF
14486 #line 14486 "configure"
14487 #include "confdefs.h"
14489 /* Override any gcc2 internal prototype to avoid an error. */
14493 /* We use char because int might match the return type of a gcc2
14494 builtin and then its argument prototype would still apply. */
14495 char menu_driver ();
14504 rm -f conftest.$ac_objext conftest$ac_exeext
14505 if { (eval echo "$as_me:14505: \"$ac_link\"") >&5
14506 (eval $ac_link) 2>&5
14508 echo "$as_me:14508: \$? = $ac_status" >&5
14509 (exit $ac_status); } &&
14510 { ac_try='test -s conftest$ac_exeext'
14511 { (eval echo "$as_me:14511: \"$ac_try\"") >&5
14512 (eval $ac_try) 2>&5
14514 echo "$as_me:14514: \$? = $ac_status" >&5
14515 (exit $ac_status); }; }; then
14516 eval "$as_ac_Lib=yes"
14518 echo "$as_me: failed program was:" >&5
14519 cat conftest.$ac_ext >&5
14520 eval "$as_ac_Lib=no"
14522 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14523 LIBS=$ac_check_lib_save_LIBS
14525 echo "$as_me:14525: result: `eval echo '${'$as_ac_Lib'}'`" >&5
14526 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
14527 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
14529 cf_upper=`echo "have_libmenu" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14531 cf_add_libs="-lmenu$cf_cv_libtype"
14532 # Filter out duplicates - this happens with badly-designed ".pc" files...
14533 for cf_add_1lib in $LIBS
14535 for cf_add_2lib in $cf_add_libs
14537 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14543 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14545 LIBS="$cf_add_libs"
14547 cat >>confdefs.h <<EOF
14548 #define $cf_upper 1
14553 cf_curses_headers="$cf_curses_headers menu.h"
14556 echo "$as_me:14556: checking if you want to check for form functions" >&5
14557 echo $ECHO_N "checking if you want to check for form functions... $ECHO_C" >&6
14559 # Check whether --enable-form or --disable-form was given.
14560 if test "${enable_form+set}" = set; then
14561 enableval="$enable_form"
14562 test "$enableval" != no && enableval=yes
14563 if test "$enableval" != "yes" ; then
14566 cf_enable_form=$cf_default_form
14570 cf_enable_form=$cf_default_form
14573 echo "$as_me:14573: result: $cf_enable_form" >&5
14574 echo "${ECHO_T}$cf_enable_form" >&6
14575 if test $cf_enable_form = yes
14577 case $cf_cv_screen in
14582 echo "$as_me:14582: checking for NetBSD form.h" >&5
14583 echo $ECHO_N "checking for NetBSD form.h... $ECHO_C" >&6
14584 if test "${cf_cv_netbsd_form_h+set}" = set; then
14585 echo $ECHO_N "(cached) $ECHO_C" >&6
14588 cat >conftest.$ac_ext <<_ACEOF
14589 #line 14589 "configure"
14590 #include "confdefs.h"
14592 #include <${cf_cv_ncurses_header:-curses.h}>
14600 int y = current_field(form)->cursor_ypos;
14601 int x = current_field(form)->cursor_xpos;
14607 rm -f conftest.$ac_objext
14608 if { (eval echo "$as_me:14608: \"$ac_compile\"") >&5
14609 (eval $ac_compile) 2>&5
14611 echo "$as_me:14611: \$? = $ac_status" >&5
14612 (exit $ac_status); } &&
14613 { ac_try='test -s conftest.$ac_objext'
14614 { (eval echo "$as_me:14614: \"$ac_try\"") >&5
14615 (eval $ac_try) 2>&5
14617 echo "$as_me:14617: \$? = $ac_status" >&5
14618 (exit $ac_status); }; }; then
14619 cf_cv_netbsd_form_h=yes
14622 echo "$as_me: failed program was:" >&5
14623 cat conftest.$ac_ext >&5
14624 cf_cv_netbsd_form_h=no
14626 rm -f conftest.$ac_objext conftest.$ac_ext
14629 echo "$as_me:14629: result: $cf_cv_netbsd_form_h" >&5
14630 echo "${ECHO_T}$cf_cv_netbsd_form_h" >&6
14632 test "$cf_cv_netbsd_form_h" = yes &&
14633 cat >>confdefs.h <<\EOF
14634 #define HAVE_NETBSD_FORM_H 1
14640 as_ac_Lib=`echo "ac_cv_lib_form$cf_cv_libtype''_form_driver" | $as_tr_sh`
14641 echo "$as_me:14641: checking for form_driver in -lform$cf_cv_libtype" >&5
14642 echo $ECHO_N "checking for form_driver in -lform$cf_cv_libtype... $ECHO_C" >&6
14643 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
14644 echo $ECHO_N "(cached) $ECHO_C" >&6
14646 ac_check_lib_save_LIBS=$LIBS
14647 LIBS="-lform$cf_cv_libtype $LIBS"
14648 cat >conftest.$ac_ext <<_ACEOF
14649 #line 14649 "configure"
14650 #include "confdefs.h"
14652 /* Override any gcc2 internal prototype to avoid an error. */
14656 /* We use char because int might match the return type of a gcc2
14657 builtin and then its argument prototype would still apply. */
14658 char form_driver ();
14667 rm -f conftest.$ac_objext conftest$ac_exeext
14668 if { (eval echo "$as_me:14668: \"$ac_link\"") >&5
14669 (eval $ac_link) 2>&5
14671 echo "$as_me:14671: \$? = $ac_status" >&5
14672 (exit $ac_status); } &&
14673 { ac_try='test -s conftest$ac_exeext'
14674 { (eval echo "$as_me:14674: \"$ac_try\"") >&5
14675 (eval $ac_try) 2>&5
14677 echo "$as_me:14677: \$? = $ac_status" >&5
14678 (exit $ac_status); }; }; then
14679 eval "$as_ac_Lib=yes"
14681 echo "$as_me: failed program was:" >&5
14682 cat conftest.$ac_ext >&5
14683 eval "$as_ac_Lib=no"
14685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14686 LIBS=$ac_check_lib_save_LIBS
14688 echo "$as_me:14688: result: `eval echo '${'$as_ac_Lib'}'`" >&5
14689 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
14690 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
14692 cf_upper=`echo "have_libform" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14694 cf_add_libs="-lform$cf_cv_libtype"
14695 # Filter out duplicates - this happens with badly-designed ".pc" files...
14696 for cf_add_1lib in $LIBS
14698 for cf_add_2lib in $cf_add_libs
14700 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14706 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14708 LIBS="$cf_add_libs"
14710 cat >>confdefs.h <<EOF
14711 #define $cf_upper 1
14716 cf_curses_headers="$cf_curses_headers form.h"
14719 # look for curses-related headers
14721 for ac_header in $cf_curses_headers
14723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14724 echo "$as_me:14724: checking for $ac_header" >&5
14725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14727 echo $ECHO_N "(cached) $ECHO_C" >&6
14729 cat >conftest.$ac_ext <<_ACEOF
14730 #line 14730 "configure"
14731 #include "confdefs.h"
14732 #include <$ac_header>
14734 if { (eval echo "$as_me:14734: \"$ac_cpp conftest.$ac_ext\"") >&5
14735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14737 egrep -v '^ *\+' conftest.er1 >conftest.err
14739 cat conftest.err >&5
14740 echo "$as_me:14740: \$? = $ac_status" >&5
14741 (exit $ac_status); } >/dev/null; then
14742 if test -s conftest.err; then
14743 ac_cpp_err=$ac_c_preproc_warn_flag
14750 if test -z "$ac_cpp_err"; then
14751 eval "$as_ac_Header=yes"
14753 echo "$as_me: failed program was:" >&5
14754 cat conftest.$ac_ext >&5
14755 eval "$as_ac_Header=no"
14757 rm -f conftest.err conftest.$ac_ext
14759 echo "$as_me:14759: result: `eval echo '${'$as_ac_Header'}'`" >&5
14760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14762 cat >>confdefs.h <<EOF
14763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14769 echo "$as_me:14769: checking for ANSI C header files" >&5
14770 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
14771 if test "${ac_cv_header_stdc+set}" = set; then
14772 echo $ECHO_N "(cached) $ECHO_C" >&6
14774 cat >conftest.$ac_ext <<_ACEOF
14775 #line 14775 "configure"
14776 #include "confdefs.h"
14777 #include <stdlib.h>
14778 #include <stdarg.h>
14779 #include <string.h>
14783 if { (eval echo "$as_me:14783: \"$ac_cpp conftest.$ac_ext\"") >&5
14784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14786 egrep -v '^ *\+' conftest.er1 >conftest.err
14788 cat conftest.err >&5
14789 echo "$as_me:14789: \$? = $ac_status" >&5
14790 (exit $ac_status); } >/dev/null; then
14791 if test -s conftest.err; then
14792 ac_cpp_err=$ac_c_preproc_warn_flag
14799 if test -z "$ac_cpp_err"; then
14800 ac_cv_header_stdc=yes
14802 echo "$as_me: failed program was:" >&5
14803 cat conftest.$ac_ext >&5
14804 ac_cv_header_stdc=no
14806 rm -f conftest.err conftest.$ac_ext
14808 if test $ac_cv_header_stdc = yes; then
14809 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14810 cat >conftest.$ac_ext <<_ACEOF
14811 #line 14811 "configure"
14812 #include "confdefs.h"
14813 #include <string.h>
14816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14817 egrep "memchr" >/dev/null 2>&1; then
14820 ac_cv_header_stdc=no
14826 if test $ac_cv_header_stdc = yes; then
14827 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14828 cat >conftest.$ac_ext <<_ACEOF
14829 #line 14829 "configure"
14830 #include "confdefs.h"
14831 #include <stdlib.h>
14834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14835 egrep "free" >/dev/null 2>&1; then
14838 ac_cv_header_stdc=no
14844 if test $ac_cv_header_stdc = yes; then
14845 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14846 if test "$cross_compiling" = yes; then
14849 cat >conftest.$ac_ext <<_ACEOF
14850 #line 14850 "configure"
14851 #include "confdefs.h"
14853 #if ((' ' & 0x0FF) == 0x020)
14854 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14855 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14857 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14858 || ('j' <= (c) && (c) <= 'r') \
14859 || ('s' <= (c) && (c) <= 'z'))
14860 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14863 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14868 for (i = 0; i < 256; i++)
14869 if (XOR (islower (i), ISLOWER (i))
14870 || toupper (i) != TOUPPER (i))
14871 $ac_main_return(2);
14872 $ac_main_return (0);
14875 rm -f conftest$ac_exeext
14876 if { (eval echo "$as_me:14876: \"$ac_link\"") >&5
14877 (eval $ac_link) 2>&5
14879 echo "$as_me:14879: \$? = $ac_status" >&5
14880 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14881 { (eval echo "$as_me:14881: \"$ac_try\"") >&5
14882 (eval $ac_try) 2>&5
14884 echo "$as_me:14884: \$? = $ac_status" >&5
14885 (exit $ac_status); }; }; then
14888 echo "$as_me: program exited with status $ac_status" >&5
14889 echo "$as_me: failed program was:" >&5
14890 cat conftest.$ac_ext >&5
14891 ac_cv_header_stdc=no
14893 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14897 echo "$as_me:14897: result: $ac_cv_header_stdc" >&5
14898 echo "${ECHO_T}$ac_cv_header_stdc" >&6
14899 if test $ac_cv_header_stdc = yes; then
14901 cat >>confdefs.h <<\EOF
14902 #define STDC_HEADERS 1
14907 echo "$as_me:14907: checking whether time.h and sys/time.h may both be included" >&5
14908 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
14909 if test "${ac_cv_header_time+set}" = set; then
14910 echo $ECHO_N "(cached) $ECHO_C" >&6
14912 cat >conftest.$ac_ext <<_ACEOF
14913 #line 14913 "configure"
14914 #include "confdefs.h"
14915 #include <sys/types.h>
14916 #include <sys/time.h>
14922 if ((struct tm *) 0)
14928 rm -f conftest.$ac_objext
14929 if { (eval echo "$as_me:14929: \"$ac_compile\"") >&5
14930 (eval $ac_compile) 2>&5
14932 echo "$as_me:14932: \$? = $ac_status" >&5
14933 (exit $ac_status); } &&
14934 { ac_try='test -s conftest.$ac_objext'
14935 { (eval echo "$as_me:14935: \"$ac_try\"") >&5
14936 (eval $ac_try) 2>&5
14938 echo "$as_me:14938: \$? = $ac_status" >&5
14939 (exit $ac_status); }; }; then
14940 ac_cv_header_time=yes
14942 echo "$as_me: failed program was:" >&5
14943 cat conftest.$ac_ext >&5
14944 ac_cv_header_time=no
14946 rm -f conftest.$ac_objext conftest.$ac_ext
14948 echo "$as_me:14948: result: $ac_cv_header_time" >&5
14949 echo "${ECHO_T}$ac_cv_header_time" >&6
14950 if test $ac_cv_header_time = yes; then
14952 cat >>confdefs.h <<\EOF
14953 #define TIME_WITH_SYS_TIME 1
14971 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14972 echo "$as_me:14972: checking for $ac_header" >&5
14973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14975 echo $ECHO_N "(cached) $ECHO_C" >&6
14977 cat >conftest.$ac_ext <<_ACEOF
14978 #line 14978 "configure"
14979 #include "confdefs.h"
14980 #include <$ac_header>
14982 if { (eval echo "$as_me:14982: \"$ac_cpp conftest.$ac_ext\"") >&5
14983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14985 egrep -v '^ *\+' conftest.er1 >conftest.err
14987 cat conftest.err >&5
14988 echo "$as_me:14988: \$? = $ac_status" >&5
14989 (exit $ac_status); } >/dev/null; then
14990 if test -s conftest.err; then
14991 ac_cpp_err=$ac_c_preproc_warn_flag
14998 if test -z "$ac_cpp_err"; then
14999 eval "$as_ac_Header=yes"
15001 echo "$as_me: failed program was:" >&5
15002 cat conftest.$ac_ext >&5
15003 eval "$as_ac_Header=no"
15005 rm -f conftest.err conftest.$ac_ext
15007 echo "$as_me:15007: result: `eval echo '${'$as_ac_Header'}'`" >&5
15008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15010 cat >>confdefs.h <<EOF
15011 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15017 for ac_header in unistd.h getopt.h
15019 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15020 echo "$as_me:15020: checking for $ac_header" >&5
15021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15023 echo $ECHO_N "(cached) $ECHO_C" >&6
15025 cat >conftest.$ac_ext <<_ACEOF
15026 #line 15026 "configure"
15027 #include "confdefs.h"
15028 #include <$ac_header>
15030 if { (eval echo "$as_me:15030: \"$ac_cpp conftest.$ac_ext\"") >&5
15031 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15033 egrep -v '^ *\+' conftest.er1 >conftest.err
15035 cat conftest.err >&5
15036 echo "$as_me:15036: \$? = $ac_status" >&5
15037 (exit $ac_status); } >/dev/null; then
15038 if test -s conftest.err; then
15039 ac_cpp_err=$ac_c_preproc_warn_flag
15046 if test -z "$ac_cpp_err"; then
15047 eval "$as_ac_Header=yes"
15049 echo "$as_me: failed program was:" >&5
15050 cat conftest.$ac_ext >&5
15051 eval "$as_ac_Header=no"
15053 rm -f conftest.err conftest.$ac_ext
15055 echo "$as_me:15055: result: `eval echo '${'$as_ac_Header'}'`" >&5
15056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15058 cat >>confdefs.h <<EOF
15059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15065 echo "$as_me:15065: checking for header declaring getopt variables" >&5
15066 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
15067 if test "${cf_cv_getopt_header+set}" = set; then
15068 echo $ECHO_N "(cached) $ECHO_C" >&6
15071 cf_cv_getopt_header=none
15072 for cf_header in stdio.h stdlib.h unistd.h getopt.h
15074 cat >conftest.$ac_ext <<_ACEOF
15075 #line 15075 "configure"
15076 #include "confdefs.h"
15078 #include <$cf_header>
15082 int x = optind; char *y = optarg
15087 rm -f conftest.$ac_objext
15088 if { (eval echo "$as_me:15088: \"$ac_compile\"") >&5
15089 (eval $ac_compile) 2>&5
15091 echo "$as_me:15091: \$? = $ac_status" >&5
15092 (exit $ac_status); } &&
15093 { ac_try='test -s conftest.$ac_objext'
15094 { (eval echo "$as_me:15094: \"$ac_try\"") >&5
15095 (eval $ac_try) 2>&5
15097 echo "$as_me:15097: \$? = $ac_status" >&5
15098 (exit $ac_status); }; }; then
15099 cf_cv_getopt_header=$cf_header
15102 echo "$as_me: failed program was:" >&5
15103 cat conftest.$ac_ext >&5
15105 rm -f conftest.$ac_objext conftest.$ac_ext
15109 echo "$as_me:15109: result: $cf_cv_getopt_header" >&5
15110 echo "${ECHO_T}$cf_cv_getopt_header" >&6
15111 if test $cf_cv_getopt_header != none ; then
15113 cat >>confdefs.h <<\EOF
15114 #define HAVE_GETOPT_HEADER 1
15118 if test $cf_cv_getopt_header = getopt.h ; then
15120 cat >>confdefs.h <<\EOF
15121 #define NEED_GETOPT_H 1
15133 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15134 echo "$as_me:15134: checking for $ac_func" >&5
15135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15136 if eval "test \"\${$as_ac_var+set}\" = set"; then
15137 echo $ECHO_N "(cached) $ECHO_C" >&6
15139 cat >conftest.$ac_ext <<_ACEOF
15140 #line 15140 "configure"
15141 #include "confdefs.h"
15142 /* System header to define __stub macros and hopefully few prototypes,
15143 which can conflict with char $ac_func (); below. */
15144 #include <assert.h>
15145 /* Override any gcc2 internal prototype to avoid an error. */
15149 /* We use char because int might match the return type of a gcc2
15150 builtin and then its argument prototype would still apply. */
15157 /* The GNU C library defines this for functions which it implements
15158 to always fail with ENOSYS. Some functions are actually named
15159 something starting with __ and the normal name is an alias. */
15160 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15163 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
15170 rm -f conftest.$ac_objext conftest$ac_exeext
15171 if { (eval echo "$as_me:15171: \"$ac_link\"") >&5
15172 (eval $ac_link) 2>&5
15174 echo "$as_me:15174: \$? = $ac_status" >&5
15175 (exit $ac_status); } &&
15176 { ac_try='test -s conftest$ac_exeext'
15177 { (eval echo "$as_me:15177: \"$ac_try\"") >&5
15178 (eval $ac_try) 2>&5
15180 echo "$as_me:15180: \$? = $ac_status" >&5
15181 (exit $ac_status); }; }; then
15182 eval "$as_ac_var=yes"
15184 echo "$as_me: failed program was:" >&5
15185 cat conftest.$ac_ext >&5
15186 eval "$as_ac_var=no"
15188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15190 echo "$as_me:15190: result: `eval echo '${'$as_ac_var'}'`" >&5
15191 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15192 if test `eval echo '${'$as_ac_var'}'` = yes; then
15193 cat >>confdefs.h <<EOF
15194 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15200 if test "x$ac_cv_func_getopt" = xno; then
15201 { { echo "$as_me:15201: error: getopt is required for building programs" >&5
15202 echo "$as_me: error: getopt is required for building programs" >&2;}
15203 { (exit 1); exit 1; }; }
15206 if test "$cf_enable_widec" = yes; then
15219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15220 echo "$as_me:15220: checking for $ac_func" >&5
15221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15222 if eval "test \"\${$as_ac_var+set}\" = set"; then
15223 echo $ECHO_N "(cached) $ECHO_C" >&6
15225 cat >conftest.$ac_ext <<_ACEOF
15226 #line 15226 "configure"
15227 #include "confdefs.h"
15228 /* System header to define __stub macros and hopefully few prototypes,
15229 which can conflict with char $ac_func (); below. */
15230 #include <assert.h>
15231 /* Override any gcc2 internal prototype to avoid an error. */
15235 /* We use char because int might match the return type of a gcc2
15236 builtin and then its argument prototype would still apply. */
15243 /* The GNU C library defines this for functions which it implements
15244 to always fail with ENOSYS. Some functions are actually named
15245 something starting with __ and the normal name is an alias. */
15246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15249 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
15256 rm -f conftest.$ac_objext conftest$ac_exeext
15257 if { (eval echo "$as_me:15257: \"$ac_link\"") >&5
15258 (eval $ac_link) 2>&5
15260 echo "$as_me:15260: \$? = $ac_status" >&5
15261 (exit $ac_status); } &&
15262 { ac_try='test -s conftest$ac_exeext'
15263 { (eval echo "$as_me:15263: \"$ac_try\"") >&5
15264 (eval $ac_try) 2>&5
15266 echo "$as_me:15266: \$? = $ac_status" >&5
15267 (exit $ac_status); }; }; then
15268 eval "$as_ac_var=yes"
15270 echo "$as_me: failed program was:" >&5
15271 cat conftest.$ac_ext >&5
15272 eval "$as_ac_var=no"
15274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15276 echo "$as_me:15276: result: `eval echo '${'$as_ac_var'}'`" >&5
15277 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15278 if test `eval echo '${'$as_ac_var'}'` = yes; then
15279 cat >>confdefs.h <<EOF
15280 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15288 echo "$as_me:15288: checking definition to turn on extended curses functions" >&5
15289 echo $ECHO_N "checking definition to turn on extended curses functions... $ECHO_C" >&6
15290 if test "${cf_cv_need_xopen_extension+set}" = set; then
15291 echo $ECHO_N "(cached) $ECHO_C" >&6
15294 cf_cv_need_xopen_extension=unknown
15295 cat >conftest.$ac_ext <<_ACEOF
15296 #line 15296 "configure"
15297 #include "confdefs.h"
15299 #include <stdlib.h>
15300 #include <${cf_cv_ncurses_header:-curses.h}>
15305 #if defined(NCURSES_VERSION_PATCH)
15306 #if (NCURSES_VERSION_PATCH < 20100501) && (NCURSES_VERSION_PATCH >= 20100403)
15310 #ifdef NCURSES_VERSION
15312 int check2 = curs_set((int)sizeof(check));
15314 long x = winnstr(stdscr, "", 0);
15316 getbegyx(stdscr, y1, x1)
15321 rm -f conftest.$ac_objext conftest$ac_exeext
15322 if { (eval echo "$as_me:15322: \"$ac_link\"") >&5
15323 (eval $ac_link) 2>&5
15325 echo "$as_me:15325: \$? = $ac_status" >&5
15326 (exit $ac_status); } &&
15327 { ac_try='test -s conftest$ac_exeext'
15328 { (eval echo "$as_me:15328: \"$ac_try\"") >&5
15329 (eval $ac_try) 2>&5
15331 echo "$as_me:15331: \$? = $ac_status" >&5
15332 (exit $ac_status); }; }; then
15333 cf_cv_need_xopen_extension=none
15335 echo "$as_me: failed program was:" >&5
15336 cat conftest.$ac_ext >&5
15338 for cf_try_xopen_extension in _XOPEN_SOURCE_EXTENDED NCURSES_WIDECHAR
15340 cat >conftest.$ac_ext <<_ACEOF
15341 #line 15341 "configure"
15342 #include "confdefs.h"
15344 #define $cf_try_xopen_extension 1
15345 #include <stdlib.h>
15346 #include <${cf_cv_ncurses_header:-curses.h}>
15351 #ifdef NCURSES_VERSION
15353 int check2 = curs_set((int)sizeof(check));
15355 long x = winnstr(stdscr, "", 0);
15357 getbegyx(stdscr, y1, x1)
15362 rm -f conftest.$ac_objext conftest$ac_exeext
15363 if { (eval echo "$as_me:15363: \"$ac_link\"") >&5
15364 (eval $ac_link) 2>&5
15366 echo "$as_me:15366: \$? = $ac_status" >&5
15367 (exit $ac_status); } &&
15368 { ac_try='test -s conftest$ac_exeext'
15369 { (eval echo "$as_me:15369: \"$ac_try\"") >&5
15370 (eval $ac_try) 2>&5
15372 echo "$as_me:15372: \$? = $ac_status" >&5
15373 (exit $ac_status); }; }; then
15374 cf_cv_need_xopen_extension=$cf_try_xopen_extension; break
15376 echo "$as_me: failed program was:" >&5
15377 cat conftest.$ac_ext >&5
15379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15386 echo "$as_me:15386: result: $cf_cv_need_xopen_extension" >&5
15387 echo "${ECHO_T}$cf_cv_need_xopen_extension" >&6
15389 case $cf_cv_need_xopen_extension in
15391 CPPFLAGS="$CPPFLAGS -D$cf_cv_need_xopen_extension"
15395 echo "$as_me:15395: checking for term.h" >&5
15396 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
15397 if test "${cf_cv_term_header+set}" = set; then
15398 echo $ECHO_N "(cached) $ECHO_C" >&6
15401 # If we found <ncurses/curses.h>, look for <ncurses/term.h>, but always look
15402 # for <term.h> if we do not find the variant.
15404 cf_header_list="term.h ncurses/term.h ncursesw/term.h"
15406 case ${cf_cv_ncurses_header:-curses.h} in
15408 cf_header_item=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`term.h
15409 cf_header_list="$cf_header_item $cf_header_list"
15413 for cf_header in $cf_header_list
15415 cat >conftest.$ac_ext <<_ACEOF
15416 #line 15416 "configure"
15417 #include "confdefs.h"
15419 #include <${cf_cv_ncurses_header:-curses.h}>
15420 #include <${cf_header}>
15429 rm -f conftest.$ac_objext
15430 if { (eval echo "$as_me:15430: \"$ac_compile\"") >&5
15431 (eval $ac_compile) 2>&5
15433 echo "$as_me:15433: \$? = $ac_status" >&5
15434 (exit $ac_status); } &&
15435 { ac_try='test -s conftest.$ac_objext'
15436 { (eval echo "$as_me:15436: \"$ac_try\"") >&5
15437 (eval $ac_try) 2>&5
15439 echo "$as_me:15439: \$? = $ac_status" >&5
15440 (exit $ac_status); }; }; then
15441 cf_cv_term_header=$cf_header
15444 echo "$as_me: failed program was:" >&5
15445 cat conftest.$ac_ext >&5
15446 cf_cv_term_header=no
15448 rm -f conftest.$ac_objext conftest.$ac_ext
15451 case $cf_cv_term_header in
15453 # If curses is ncurses, some packagers still mess it up by trying to make
15454 # us use GNU termcap. This handles the most common case.
15455 for cf_header in ncurses/term.h ncursesw/term.h
15457 cat >conftest.$ac_ext <<_ACEOF
15458 #line 15458 "configure"
15459 #include "confdefs.h"
15461 #include <${cf_cv_ncurses_header:-curses.h}>
15462 #ifdef NCURSES_VERSION
15463 #include <${cf_header}>
15475 rm -f conftest.$ac_objext
15476 if { (eval echo "$as_me:15476: \"$ac_compile\"") >&5
15477 (eval $ac_compile) 2>&5
15479 echo "$as_me:15479: \$? = $ac_status" >&5
15480 (exit $ac_status); } &&
15481 { ac_try='test -s conftest.$ac_objext'
15482 { (eval echo "$as_me:15482: \"$ac_try\"") >&5
15483 (eval $ac_try) 2>&5
15485 echo "$as_me:15485: \$? = $ac_status" >&5
15486 (exit $ac_status); }; }; then
15487 cf_cv_term_header=$cf_header
15490 echo "$as_me: failed program was:" >&5
15491 cat conftest.$ac_ext >&5
15492 cf_cv_term_header=no
15494 rm -f conftest.$ac_objext conftest.$ac_ext
15500 echo "$as_me:15500: result: $cf_cv_term_header" >&5
15501 echo "${ECHO_T}$cf_cv_term_header" >&6
15503 case $cf_cv_term_header in
15506 cat >>confdefs.h <<\EOF
15507 #define HAVE_TERM_H 1
15513 cat >>confdefs.h <<\EOF
15514 #define HAVE_NCURSES_TERM_H 1
15520 cat >>confdefs.h <<\EOF
15521 #define HAVE_NCURSESW_TERM_H 1
15527 echo "$as_me:15527: checking for unctrl.h" >&5
15528 echo $ECHO_N "checking for unctrl.h... $ECHO_C" >&6
15529 if test "${cf_cv_unctrl_header+set}" = set; then
15530 echo $ECHO_N "(cached) $ECHO_C" >&6
15533 # If we found <ncurses/curses.h>, look for <ncurses/unctrl.h>, but always look
15534 # for <unctrl.h> if we do not find the variant.
15536 cf_header_list="unctrl.h ncurses/unctrl.h ncursesw/unctrl.h"
15538 case ${cf_cv_ncurses_header:-curses.h} in
15540 cf_header_item=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`unctrl.h
15541 cf_header_list="$cf_header_item $cf_header_list"
15545 for cf_header in $cf_header_list
15547 cat >conftest.$ac_ext <<_ACEOF
15548 #line 15548 "configure"
15549 #include "confdefs.h"
15551 #include <${cf_cv_ncurses_header:-curses.h}>
15552 #include <${cf_header}>
15561 rm -f conftest.$ac_objext
15562 if { (eval echo "$as_me:15562: \"$ac_compile\"") >&5
15563 (eval $ac_compile) 2>&5
15565 echo "$as_me:15565: \$? = $ac_status" >&5
15566 (exit $ac_status); } &&
15567 { ac_try='test -s conftest.$ac_objext'
15568 { (eval echo "$as_me:15568: \"$ac_try\"") >&5
15569 (eval $ac_try) 2>&5
15571 echo "$as_me:15571: \$? = $ac_status" >&5
15572 (exit $ac_status); }; }; then
15573 cf_cv_unctrl_header=$cf_header
15576 echo "$as_me: failed program was:" >&5
15577 cat conftest.$ac_ext >&5
15578 cf_cv_unctrl_header=no
15580 rm -f conftest.$ac_objext conftest.$ac_ext
15584 echo "$as_me:15584: result: $cf_cv_unctrl_header" >&5
15585 echo "${ECHO_T}$cf_cv_unctrl_header" >&6
15587 case $cf_cv_unctrl_header in
15589 { echo "$as_me:15589: WARNING: unctrl.h header not found" >&5
15590 echo "$as_me: WARNING: unctrl.h header not found" >&2;}
15594 case $cf_cv_unctrl_header in
15597 cat >>confdefs.h <<\EOF
15598 #define HAVE_UNCTRL_H 1
15604 cat >>confdefs.h <<\EOF
15605 #define HAVE_NCURSES_UNCTRL_H 1
15609 (ncursesw/unctrl.h)
15611 cat >>confdefs.h <<\EOF
15612 #define HAVE_NCURSESW_UNCTRL_H 1
15620 assume_default_colors \
15635 init_extended_color \
15657 use_default_colors \
15659 use_extended_names \
15675 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15677 echo "$as_me:15677: checking for ${cf_func}" >&5
15678 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
15680 echo "${as_me:-configure}:15680: testing ${cf_func} ..." 1>&5
15682 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
15683 echo $ECHO_N "(cached) $ECHO_C" >&6
15686 eval cf_result='$ac_cv_func_'$cf_func
15687 if test ".$cf_result" != ".no"; then
15688 cat >conftest.$ac_ext <<_ACEOF
15689 #line 15689 "configure"
15690 #include "confdefs.h"
15692 #ifdef HAVE_XCURSES
15693 #include <xcurses.h>
15694 char * XCursesProgramName = "test";
15696 #include <${cf_cv_ncurses_header:-curses.h}>
15697 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
15698 #include <ncursesw/term.h>
15699 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
15700 #include <ncurses/term.h>
15701 #elif defined(HAVE_TERM_H)
15711 long foo = (long)(&${cf_func});
15712 fprintf(stderr, "testing linkage of $cf_func:%p\n", foo);
15713 if (foo + 1234 > 5678)
15714 ${cf_cv_main_return:-return}(foo);
15721 rm -f conftest.$ac_objext conftest$ac_exeext
15722 if { (eval echo "$as_me:15722: \"$ac_link\"") >&5
15723 (eval $ac_link) 2>&5
15725 echo "$as_me:15725: \$? = $ac_status" >&5
15726 (exit $ac_status); } &&
15727 { ac_try='test -s conftest$ac_exeext'
15728 { (eval echo "$as_me:15728: \"$ac_try\"") >&5
15729 (eval $ac_try) 2>&5
15731 echo "$as_me:15731: \$? = $ac_status" >&5
15732 (exit $ac_status); }; }; then
15735 echo "$as_me: failed program was:" >&5
15736 cat conftest.$ac_ext >&5
15739 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15741 eval 'cf_cv_func_'$cf_func'=$cf_result'
15745 # use the computed/retrieved cache-value:
15746 eval 'cf_result=$cf_cv_func_'$cf_func
15747 echo "$as_me:15747: result: $cf_result" >&5
15748 echo "${ECHO_T}$cf_result" >&6
15749 if test $cf_result != no; then
15750 cat >>confdefs.h <<EOF
15751 #define HAVE_${cf_tr_func} 1
15757 for cf_func in tputs
15760 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15762 echo "$as_me:15762: checking for ${cf_func}" >&5
15763 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
15765 echo "${as_me:-configure}:15765: testing ${cf_func} ..." 1>&5
15767 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
15768 echo $ECHO_N "(cached) $ECHO_C" >&6
15771 eval cf_result='$ac_cv_func_'$cf_func
15772 if test ".$cf_result" != ".no"; then
15773 cat >conftest.$ac_ext <<_ACEOF
15774 #line 15774 "configure"
15775 #include "confdefs.h"
15777 #ifdef HAVE_XCURSES
15778 #include <xcurses.h>
15779 char * XCursesProgramName = "test";
15781 #include <${cf_cv_ncurses_header:-curses.h}>
15782 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
15783 #include <ncursesw/term.h>
15784 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
15785 #include <ncurses/term.h>
15786 #elif defined(HAVE_TERM_H)
15796 long foo = (long)(&${cf_func});
15797 fprintf(stderr, "testing linkage of $cf_func:%p\n", foo);
15798 if (foo + 1234 > 5678)
15799 ${cf_cv_main_return:-return}(foo);
15806 rm -f conftest.$ac_objext conftest$ac_exeext
15807 if { (eval echo "$as_me:15807: \"$ac_link\"") >&5
15808 (eval $ac_link) 2>&5
15810 echo "$as_me:15810: \$? = $ac_status" >&5
15811 (exit $ac_status); } &&
15812 { ac_try='test -s conftest$ac_exeext'
15813 { (eval echo "$as_me:15813: \"$ac_try\"") >&5
15814 (eval $ac_try) 2>&5
15816 echo "$as_me:15816: \$? = $ac_status" >&5
15817 (exit $ac_status); }; }; then
15820 echo "$as_me: failed program was:" >&5
15821 cat conftest.$ac_ext >&5
15824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15826 eval 'cf_cv_func_'$cf_func'=$cf_result'
15830 # use the computed/retrieved cache-value:
15831 eval 'cf_result=$cf_cv_func_'$cf_func
15832 echo "$as_me:15832: result: $cf_result" >&5
15833 echo "${ECHO_T}$cf_result" >&6
15834 if test $cf_result != no; then
15835 cat >>confdefs.h <<EOF
15836 #define HAVE_${cf_tr_func} 1
15842 if test x$cf_cv_func_tputs = xyes
15845 for cf_arg in int char
15847 for cf_ret in int void
15849 if test $cf_ret = void
15851 cf_return="/* nothing */"
15853 cf_return="return value"
15855 cat >conftest.$ac_ext <<_ACEOF
15856 #line 15856 "configure"
15857 #include "confdefs.h"
15859 #include <${cf_cv_ncurses_header:-curses.h}>
15860 #include <$cf_cv_term_header>
15862 static $cf_ret outc($cf_arg value) { $cf_return; }
15868 tputs("hello", 0, outc);
15869 ${cf_cv_main_return:-return}(0);
15875 rm -f conftest.$ac_objext
15876 if { (eval echo "$as_me:15876: \"$ac_compile\"") >&5
15877 (eval $ac_compile) 2>&5
15879 echo "$as_me:15879: \$? = $ac_status" >&5
15880 (exit $ac_status); } &&
15881 { ac_try='test -s conftest.$ac_objext'
15882 { (eval echo "$as_me:15882: \"$ac_try\"") >&5
15883 (eval $ac_try) 2>&5
15885 echo "$as_me:15885: \$? = $ac_status" >&5
15886 (exit $ac_status); }; }; then
15888 test -n "$verbose" && echo " prototype $cf_ret func($cf_arg value)" 1>&6
15890 echo "${as_me:-configure}:15890: testing prototype $cf_ret func($cf_arg value) ..." 1>&5
15892 cat >>confdefs.h <<EOF
15893 #define TPUTS_ARG $cf_arg
15894 #define TPUTS_PROTO(func,value) $cf_ret func(TPUTS_ARG value)
15895 #define TPUTS_RETURN(value) $cf_return
15901 echo "$as_me: failed program was:" >&5
15902 cat conftest.$ac_ext >&5
15904 rm -f conftest.$ac_objext conftest.$ac_ext
15906 test $cf_done = yes && break
15910 echo "$as_me:15910: checking for ncurses extended functions" >&5
15911 echo $ECHO_N "checking for ncurses extended functions... $ECHO_C" >&6
15912 if test "${cf_cv_ncurses_ext_funcs+set}" = set; then
15913 echo $ECHO_N "(cached) $ECHO_C" >&6
15916 cat >conftest.$ac_ext <<_ACEOF
15917 #line 15917 "configure"
15918 #include "confdefs.h"
15920 #include <${cf_cv_ncurses_header:-curses.h}>
15925 int x = NCURSES_EXT_FUNCS
15931 rm -f conftest.$ac_objext
15932 if { (eval echo "$as_me:15932: \"$ac_compile\"") >&5
15933 (eval $ac_compile) 2>&5
15935 echo "$as_me:15935: \$? = $ac_status" >&5
15936 (exit $ac_status); } &&
15937 { ac_try='test -s conftest.$ac_objext'
15938 { (eval echo "$as_me:15938: \"$ac_try\"") >&5
15939 (eval $ac_try) 2>&5
15941 echo "$as_me:15941: \$? = $ac_status" >&5
15942 (exit $ac_status); }; }; then
15943 cf_cv_ncurses_ext_funcs=defined
15945 echo "$as_me: failed program was:" >&5
15946 cat conftest.$ac_ext >&5
15948 cat >conftest.$ac_ext <<_ACEOF
15949 #line 15949 "configure"
15950 #include "confdefs.h"
15952 #include <${cf_cv_ncurses_header:-curses.h}>
15957 (void) assume_default_colors (0, 0);
15958 (void) curses_version ();
15959 (void) define_key (0, 0);
15960 (void) is_term_resized (0, 0);
15961 (void) key_defined (0);
15962 (void) keybound (0, 0);
15963 (void) keyok (0, 0);
15964 (void) resize_term (0, 0);
15965 (void) resizeterm (0, 0);
15966 (void) use_default_colors ();
15967 (void) use_extended_names (0);
15968 (void) wresize (0, 0, 0);
15973 rm -f conftest.$ac_objext conftest$ac_exeext
15974 if { (eval echo "$as_me:15974: \"$ac_link\"") >&5
15975 (eval $ac_link) 2>&5
15977 echo "$as_me:15977: \$? = $ac_status" >&5
15978 (exit $ac_status); } &&
15979 { ac_try='test -s conftest$ac_exeext'
15980 { (eval echo "$as_me:15980: \"$ac_try\"") >&5
15981 (eval $ac_try) 2>&5
15983 echo "$as_me:15983: \$? = $ac_status" >&5
15984 (exit $ac_status); }; }; then
15985 cf_cv_ncurses_ext_funcs=yes
15987 echo "$as_me: failed program was:" >&5
15988 cat conftest.$ac_ext >&5
15989 cf_cv_ncurses_ext_funcs=no
15991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15994 rm -f conftest.$ac_objext conftest.$ac_ext
15997 echo "$as_me:15997: result: $cf_cv_ncurses_ext_funcs" >&5
15998 echo "${ECHO_T}$cf_cv_ncurses_ext_funcs" >&6
15999 test "$cf_cv_ncurses_ext_funcs" = yes &&
16000 cat >>confdefs.h <<\EOF
16001 #define NCURSES_EXT_FUNCS 1
16004 if test "$cf_enable_widec" = yes
16006 # workaround for systems with ncurses before 20111029, due to change of
16007 # feature test macro from _XPG5 to _XOPEN_SOURCE
16008 if test -n "$cf_cv_ncurses_version" && test "x$cf_cv_ncurses_version" != xno
16011 echo "$as_me:16011: checking if _XPG5 should be defined to enable wide-characters" >&5
16012 echo $ECHO_N "checking if _XPG5 should be defined to enable wide-characters... $ECHO_C" >&6
16014 cat >conftest.$ac_ext <<_ACEOF
16015 #line 16015 "configure"
16016 #include "confdefs.h"
16018 #include <${cf_cv_ncurses_header:-curses.h}>
16027 rm -f conftest.$ac_objext
16028 if { (eval echo "$as_me:16028: \"$ac_compile\"") >&5
16029 (eval $ac_compile) 2>&5
16031 echo "$as_me:16031: \$? = $ac_status" >&5
16032 (exit $ac_status); } &&
16033 { ac_try='test -s conftest.$ac_objext'
16034 { (eval echo "$as_me:16034: \"$ac_try\"") >&5
16035 (eval $ac_try) 2>&5
16037 echo "$as_me:16037: \$? = $ac_status" >&5
16038 (exit $ac_status); }; }; then
16041 echo "$as_me: failed program was:" >&5
16042 cat conftest.$ac_ext >&5
16043 cf_save_cppflags="$CPPFLAGS"
16044 CPPFLAGS="$CPPFLAGS -D_XPG5"
16045 cat >conftest.$ac_ext <<_ACEOF
16046 #line 16046 "configure"
16047 #include "confdefs.h"
16049 #include <${cf_cv_ncurses_header:-curses.h}>
16058 rm -f conftest.$ac_objext
16059 if { (eval echo "$as_me:16059: \"$ac_compile\"") >&5
16060 (eval $ac_compile) 2>&5
16062 echo "$as_me:16062: \$? = $ac_status" >&5
16063 (exit $ac_status); } &&
16064 { ac_try='test -s conftest.$ac_objext'
16065 { (eval echo "$as_me:16065: \"$ac_try\"") >&5
16066 (eval $ac_try) 2>&5
16068 echo "$as_me:16068: \$? = $ac_status" >&5
16069 (exit $ac_status); }; }; then
16072 echo "$as_me: failed program was:" >&5
16073 cat conftest.$ac_ext >&5
16075 rm -f conftest.$ac_objext conftest.$ac_ext
16076 CPPFLAGS="$cf_save_cppflags"
16078 rm -f conftest.$ac_objext conftest.$ac_ext
16079 echo "$as_me:16079: result: $cf_define_xpg5" >&5
16080 echo "${ECHO_T}$cf_define_xpg5" >&6
16082 if test "$cf_define_xpg5" = yes
16084 CPPFLAGS="$CPPFLAGS -D_XPG5"
16088 echo "$as_me:16088: checking for wide-character functions" >&5
16089 echo $ECHO_N "checking for wide-character functions... $ECHO_C" >&6
16090 if test "${cf_cv_widechar_funcs+set}" = set; then
16091 echo $ECHO_N "(cached) $ECHO_C" >&6
16094 cat >conftest.$ac_ext <<_ACEOF
16095 #line 16095 "configure"
16096 #include "confdefs.h"
16098 #include <${cf_cv_ncurses_header:-curses.h}>
16103 static wchar_t src_wchar[2];
16104 static cchar_t dst_cchar;
16105 setcchar(&dst_cchar, src_wchar, A_NORMAL, 0, (void *) 0);
16111 rm -f conftest.$ac_objext conftest$ac_exeext
16112 if { (eval echo "$as_me:16112: \"$ac_link\"") >&5
16113 (eval $ac_link) 2>&5
16115 echo "$as_me:16115: \$? = $ac_status" >&5
16116 (exit $ac_status); } &&
16117 { ac_try='test -s conftest$ac_exeext'
16118 { (eval echo "$as_me:16118: \"$ac_try\"") >&5
16119 (eval $ac_try) 2>&5
16121 echo "$as_me:16121: \$? = $ac_status" >&5
16122 (exit $ac_status); }; }; then
16123 cf_cv_widechar_funcs=yes
16125 echo "$as_me: failed program was:" >&5
16126 cat conftest.$ac_ext >&5
16127 cf_cv_widechar_funcs=no
16129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16132 echo "$as_me:16132: result: $cf_cv_widechar_funcs" >&5
16133 echo "${ECHO_T}$cf_cv_widechar_funcs" >&6
16134 if test "$cf_cv_widechar_funcs" != no ; then
16136 cat >>confdefs.h <<\EOF
16137 #define USE_WIDEC_SUPPORT 1
16141 cat >>confdefs.h <<\EOF
16142 #define USE_WIDEC_SUPPORT 0
16147 cat >>confdefs.h <<\EOF
16148 #define USE_WIDEC_SUPPORT 0
16153 echo "$as_me:16153: checking if $cf_cv_screen library uses pthreads" >&5
16154 echo $ECHO_N "checking if $cf_cv_screen library uses pthreads... $ECHO_C" >&6
16155 if test "${cf_cv_use_pthreads+set}" = set; then
16156 echo $ECHO_N "(cached) $ECHO_C" >&6
16159 cat >conftest.$ac_ext <<_ACEOF
16160 #line 16160 "configure"
16161 #include "confdefs.h"
16163 #include <${cf_cv_ncurses_header:-curses.h}>
16164 extern void _nc_init_pthreads(void);
16171 _nc_init_pthreads();
16177 rm -f conftest.$ac_objext conftest$ac_exeext
16178 if { (eval echo "$as_me:16178: \"$ac_link\"") >&5
16179 (eval $ac_link) 2>&5
16181 echo "$as_me:16181: \$? = $ac_status" >&5
16182 (exit $ac_status); } &&
16183 { ac_try='test -s conftest$ac_exeext'
16184 { (eval echo "$as_me:16184: \"$ac_try\"") >&5
16185 (eval $ac_try) 2>&5
16187 echo "$as_me:16187: \$? = $ac_status" >&5
16188 (exit $ac_status); }; }; then
16189 cf_cv_use_pthreads=yes
16191 echo "$as_me: failed program was:" >&5
16192 cat conftest.$ac_ext >&5
16193 cf_cv_use_pthreads=no
16195 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16198 echo "$as_me:16198: result: $cf_cv_use_pthreads" >&5
16199 echo "${ECHO_T}$cf_cv_use_pthreads" >&6
16200 test $cf_cv_use_pthreads = yes && cat >>confdefs.h <<\EOF
16201 #define USE_PTHREADS 1
16204 echo "$as_me:16204: checking if sys/time.h works with sys/select.h" >&5
16205 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
16206 if test "${cf_cv_sys_time_select+set}" = set; then
16207 echo $ECHO_N "(cached) $ECHO_C" >&6
16210 cat >conftest.$ac_ext <<_ACEOF
16211 #line 16211 "configure"
16212 #include "confdefs.h"
16214 #include <sys/types.h>
16215 #ifdef HAVE_SYS_TIME_H
16216 #include <sys/time.h>
16218 #ifdef HAVE_SYS_SELECT_H
16219 #include <sys/select.h>
16230 rm -f conftest.$ac_objext
16231 if { (eval echo "$as_me:16231: \"$ac_compile\"") >&5
16232 (eval $ac_compile) 2>&5
16234 echo "$as_me:16234: \$? = $ac_status" >&5
16235 (exit $ac_status); } &&
16236 { ac_try='test -s conftest.$ac_objext'
16237 { (eval echo "$as_me:16237: \"$ac_try\"") >&5
16238 (eval $ac_try) 2>&5
16240 echo "$as_me:16240: \$? = $ac_status" >&5
16241 (exit $ac_status); }; }; then
16242 cf_cv_sys_time_select=yes
16244 echo "$as_me: failed program was:" >&5
16245 cat conftest.$ac_ext >&5
16246 cf_cv_sys_time_select=no
16248 rm -f conftest.$ac_objext conftest.$ac_ext
16252 echo "$as_me:16252: result: $cf_cv_sys_time_select" >&5
16253 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
16254 test "$cf_cv_sys_time_select" = yes &&
16255 cat >>confdefs.h <<\EOF
16256 #define HAVE_SYS_TIME_SELECT 1
16259 # special check for test/ditto.c
16261 echo "$as_me:16261: checking for openpty in -lutil" >&5
16262 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
16263 if test "${ac_cv_lib_util_openpty+set}" = set; then
16264 echo $ECHO_N "(cached) $ECHO_C" >&6
16266 ac_check_lib_save_LIBS=$LIBS
16267 LIBS="-lutil $LIBS"
16268 cat >conftest.$ac_ext <<_ACEOF
16269 #line 16269 "configure"
16270 #include "confdefs.h"
16272 /* Override any gcc2 internal prototype to avoid an error. */
16276 /* We use char because int might match the return type of a gcc2
16277 builtin and then its argument prototype would still apply. */
16287 rm -f conftest.$ac_objext conftest$ac_exeext
16288 if { (eval echo "$as_me:16288: \"$ac_link\"") >&5
16289 (eval $ac_link) 2>&5
16291 echo "$as_me:16291: \$? = $ac_status" >&5
16292 (exit $ac_status); } &&
16293 { ac_try='test -s conftest$ac_exeext'
16294 { (eval echo "$as_me:16294: \"$ac_try\"") >&5
16295 (eval $ac_try) 2>&5
16297 echo "$as_me:16297: \$? = $ac_status" >&5
16298 (exit $ac_status); }; }; then
16299 ac_cv_lib_util_openpty=yes
16301 echo "$as_me: failed program was:" >&5
16302 cat conftest.$ac_ext >&5
16303 ac_cv_lib_util_openpty=no
16305 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16306 LIBS=$ac_check_lib_save_LIBS
16308 echo "$as_me:16308: result: $ac_cv_lib_util_openpty" >&5
16309 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
16310 if test $ac_cv_lib_util_openpty = yes; then
16316 echo "$as_me:16316: checking for openpty header" >&5
16317 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
16318 if test "${cf_cv_func_openpty+set}" = set; then
16319 echo $ECHO_N "(cached) $ECHO_C" >&6
16322 cf_save_LIBS="$LIBS"
16323 test $cf_cv_lib_util = yes && {
16324 cf_add_libs="-lutil"
16325 # Filter out duplicates - this happens with badly-designed ".pc" files...
16326 for cf_add_1lib in $LIBS
16328 for cf_add_2lib in $cf_add_libs
16330 if test "x$cf_add_1lib" = "x$cf_add_2lib"
16336 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
16338 LIBS="$cf_add_libs"
16340 for cf_header in pty.h libutil.h util.h
16342 cat >conftest.$ac_ext <<_ACEOF
16343 #line 16343 "configure"
16344 #include "confdefs.h"
16346 #include <$cf_header>
16352 int x = openpty((int *)0, (int *)0, (char *)0,
16353 (struct termios *)0, (struct winsize *)0);
16359 rm -f conftest.$ac_objext conftest$ac_exeext
16360 if { (eval echo "$as_me:16360: \"$ac_link\"") >&5
16361 (eval $ac_link) 2>&5
16363 echo "$as_me:16363: \$? = $ac_status" >&5
16364 (exit $ac_status); } &&
16365 { ac_try='test -s conftest$ac_exeext'
16366 { (eval echo "$as_me:16366: \"$ac_try\"") >&5
16367 (eval $ac_try) 2>&5
16369 echo "$as_me:16369: \$? = $ac_status" >&5
16370 (exit $ac_status); }; }; then
16372 cf_cv_func_openpty=$cf_header
16376 echo "$as_me: failed program was:" >&5
16377 cat conftest.$ac_ext >&5
16379 cf_cv_func_openpty=no
16382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16384 LIBS="$cf_save_LIBS"
16387 echo "$as_me:16387: result: $cf_cv_func_openpty" >&5
16388 echo "${ECHO_T}$cf_cv_func_openpty" >&6
16390 if test "$cf_cv_func_openpty" != no ; then
16392 cat >>confdefs.h <<EOF
16393 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
16396 cat >>confdefs.h <<\EOF
16397 #define USE_XTERM_PTY 1
16400 if test "x$cf_cv_lib_util" = xyes ; then
16402 cf_add_libs="-lutil"
16403 # Filter out duplicates - this happens with badly-designed ".pc" files...
16404 for cf_add_1lib in $TEST_LIBS
16406 for cf_add_2lib in $cf_add_libs
16408 if test "x$cf_add_1lib" = "x$cf_add_2lib"
16414 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
16416 TEST_LIBS="$cf_add_libs"
16421 echo "$as_me:16421: checking for function curses_version" >&5
16422 echo $ECHO_N "checking for function curses_version... $ECHO_C" >&6
16423 if test "${cf_cv_func_curses_version+set}" = set; then
16424 echo $ECHO_N "(cached) $ECHO_C" >&6
16427 if test "$cross_compiling" = yes; then
16428 cf_cv_func_curses_version=unknown
16430 cat >conftest.$ac_ext <<_ACEOF
16431 #line 16431 "configure"
16432 #include "confdefs.h"
16434 #include <${cf_cv_ncurses_header:-curses.h}>
16438 sprintf(temp, "%s\n", curses_version());
16439 ${cf_cv_main_return:-return}(0);
16443 rm -f conftest$ac_exeext
16444 if { (eval echo "$as_me:16444: \"$ac_link\"") >&5
16445 (eval $ac_link) 2>&5
16447 echo "$as_me:16447: \$? = $ac_status" >&5
16448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16449 { (eval echo "$as_me:16449: \"$ac_try\"") >&5
16450 (eval $ac_try) 2>&5
16452 echo "$as_me:16452: \$? = $ac_status" >&5
16453 (exit $ac_status); }; }; then
16454 cf_cv_func_curses_version=yes
16457 echo "$as_me: program exited with status $ac_status" >&5
16458 echo "$as_me: failed program was:" >&5
16459 cat conftest.$ac_ext >&5
16460 cf_cv_func_curses_version=no
16463 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16467 echo "$as_me:16467: result: $cf_cv_func_curses_version" >&5
16468 echo "${ECHO_T}$cf_cv_func_curses_version" >&6
16469 test "$cf_cv_func_curses_version" = yes &&
16470 cat >>confdefs.h <<\EOF
16471 #define HAVE_CURSES_VERSION 1
16474 echo "$as_me:16474: checking for alternate character set array" >&5
16475 echo $ECHO_N "checking for alternate character set array... $ECHO_C" >&6
16476 if test "${cf_cv_curses_acs_map+set}" = set; then
16477 echo $ECHO_N "(cached) $ECHO_C" >&6
16480 cf_cv_curses_acs_map=unknown
16481 for name in acs_map _acs_map __acs_map ${NCURSES_WRAP_PREFIX}acs_map
16483 cat >conftest.$ac_ext <<_ACEOF
16484 #line 16484 "configure"
16485 #include "confdefs.h"
16487 #include <${cf_cv_ncurses_header:-curses.h}>
16493 $name['k'] = ACS_PLUS
16499 rm -f conftest.$ac_objext conftest$ac_exeext
16500 if { (eval echo "$as_me:16500: \"$ac_link\"") >&5
16501 (eval $ac_link) 2>&5
16503 echo "$as_me:16503: \$? = $ac_status" >&5
16504 (exit $ac_status); } &&
16505 { ac_try='test -s conftest$ac_exeext'
16506 { (eval echo "$as_me:16506: \"$ac_try\"") >&5
16507 (eval $ac_try) 2>&5
16509 echo "$as_me:16509: \$? = $ac_status" >&5
16510 (exit $ac_status); }; }; then
16511 cf_cv_curses_acs_map=$name; break
16513 echo "$as_me: failed program was:" >&5
16514 cat conftest.$ac_ext >&5
16516 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16520 echo "$as_me:16520: result: $cf_cv_curses_acs_map" >&5
16521 echo "${ECHO_T}$cf_cv_curses_acs_map" >&6
16523 test "$cf_cv_curses_acs_map" != unknown &&
16524 cat >>confdefs.h <<EOF
16525 #define CURSES_ACS_ARRAY $cf_cv_curses_acs_map
16528 if test "$cf_enable_widec" = yes; then
16530 echo "$as_me:16530: checking for wide alternate character set array" >&5
16531 echo $ECHO_N "checking for wide alternate character set array... $ECHO_C" >&6
16532 if test "${cf_cv_curses_wacs_map+set}" = set; then
16533 echo $ECHO_N "(cached) $ECHO_C" >&6
16536 cf_cv_curses_wacs_map=unknown
16537 for name in wacs_map _wacs_map __wacs_map _nc_wacs _wacs_char
16539 cat >conftest.$ac_ext <<_ACEOF
16540 #line 16540 "configure"
16541 #include "confdefs.h"
16543 #ifndef _XOPEN_SOURCE_EXTENDED
16544 #define _XOPEN_SOURCE_EXTENDED
16546 #include <${cf_cv_ncurses_header:-curses.h}>
16550 void *foo = &($name['k'])
16555 rm -f conftest.$ac_objext conftest$ac_exeext
16556 if { (eval echo "$as_me:16556: \"$ac_link\"") >&5
16557 (eval $ac_link) 2>&5
16559 echo "$as_me:16559: \$? = $ac_status" >&5
16560 (exit $ac_status); } &&
16561 { ac_try='test -s conftest$ac_exeext'
16562 { (eval echo "$as_me:16562: \"$ac_try\"") >&5
16563 (eval $ac_try) 2>&5
16565 echo "$as_me:16565: \$? = $ac_status" >&5
16566 (exit $ac_status); }; }; then
16567 cf_cv_curses_wacs_map=$name
16570 echo "$as_me: failed program was:" >&5
16571 cat conftest.$ac_ext >&5
16573 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16576 echo "$as_me:16576: result: $cf_cv_curses_wacs_map" >&5
16577 echo "${ECHO_T}$cf_cv_curses_wacs_map" >&6
16579 test "$cf_cv_curses_wacs_map" != unknown &&
16580 cat >>confdefs.h <<EOF
16581 #define CURSES_WACS_ARRAY $cf_cv_curses_wacs_map
16584 echo "$as_me:16584: checking for wide alternate character constants" >&5
16585 echo $ECHO_N "checking for wide alternate character constants... $ECHO_C" >&6
16586 if test "${cf_cv_curses_wacs_symbols+set}" = set; then
16587 echo $ECHO_N "(cached) $ECHO_C" >&6
16590 cf_cv_curses_wacs_symbols=no
16591 if test "$cf_cv_curses_wacs_map" != unknown
16593 cat >conftest.$ac_ext <<_ACEOF
16594 #line 16594 "configure"
16595 #include "confdefs.h"
16597 #ifndef _XOPEN_SOURCE_EXTENDED
16598 #define _XOPEN_SOURCE_EXTENDED
16600 #include <${cf_cv_ncurses_header:-curses.h}>
16604 cchar_t *foo = WACS_PLUS;
16605 $cf_cv_curses_wacs_map['k'] = *WACS_PLUS
16610 rm -f conftest.$ac_objext conftest$ac_exeext
16611 if { (eval echo "$as_me:16611: \"$ac_link\"") >&5
16612 (eval $ac_link) 2>&5
16614 echo "$as_me:16614: \$? = $ac_status" >&5
16615 (exit $ac_status); } &&
16616 { ac_try='test -s conftest$ac_exeext'
16617 { (eval echo "$as_me:16617: \"$ac_try\"") >&5
16618 (eval $ac_try) 2>&5
16620 echo "$as_me:16620: \$? = $ac_status" >&5
16621 (exit $ac_status); }; }; then
16622 cf_cv_curses_wacs_symbols=yes
16624 echo "$as_me: failed program was:" >&5
16625 cat conftest.$ac_ext >&5
16627 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16629 cat >conftest.$ac_ext <<_ACEOF
16630 #line 16630 "configure"
16631 #include "confdefs.h"
16633 #ifndef _XOPEN_SOURCE_EXTENDED
16634 #define _XOPEN_SOURCE_EXTENDED
16636 #include <${cf_cv_ncurses_header:-curses.h}>
16640 cchar_t *foo = WACS_PLUS
16645 rm -f conftest.$ac_objext conftest$ac_exeext
16646 if { (eval echo "$as_me:16646: \"$ac_link\"") >&5
16647 (eval $ac_link) 2>&5
16649 echo "$as_me:16649: \$? = $ac_status" >&5
16650 (exit $ac_status); } &&
16651 { ac_try='test -s conftest$ac_exeext'
16652 { (eval echo "$as_me:16652: \"$ac_try\"") >&5
16653 (eval $ac_try) 2>&5
16655 echo "$as_me:16655: \$? = $ac_status" >&5
16656 (exit $ac_status); }; }; then
16657 cf_cv_curses_wacs_symbols=yes
16659 echo "$as_me: failed program was:" >&5
16660 cat conftest.$ac_ext >&5
16662 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16666 echo "$as_me:16666: result: $cf_cv_curses_wacs_symbols" >&5
16667 echo "${ECHO_T}$cf_cv_curses_wacs_symbols" >&6
16669 test "$cf_cv_curses_wacs_symbols" != no &&
16670 cat >>confdefs.h <<\EOF
16671 #define CURSES_WACS_SYMBOLS 1
16676 echo "$as_me:16676: checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}" >&5
16677 echo $ECHO_N "checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
16678 cat >conftest.$ac_ext <<_ACEOF
16679 #line 16679 "configure"
16680 #include "confdefs.h"
16682 #ifndef _XOPEN_SOURCE_EXTENDED
16683 #define _XOPEN_SOURCE_EXTENDED
16685 #include <${cf_cv_ncurses_header:-curses.h}>
16696 rm -f conftest.$ac_objext
16697 if { (eval echo "$as_me:16697: \"$ac_compile\"") >&5
16698 (eval $ac_compile) 2>&5
16700 echo "$as_me:16700: \$? = $ac_status" >&5
16701 (exit $ac_status); } &&
16702 { ac_try='test -s conftest.$ac_objext'
16703 { (eval echo "$as_me:16703: \"$ac_try\"") >&5
16704 (eval $ac_try) 2>&5
16706 echo "$as_me:16706: \$? = $ac_status" >&5
16707 (exit $ac_status); }; }; then
16710 echo "$as_me: failed program was:" >&5
16711 cat conftest.$ac_ext >&5
16714 rm -f conftest.$ac_objext conftest.$ac_ext
16715 echo "$as_me:16715: result: $cf_result" >&5
16716 echo "${ECHO_T}$cf_result" >&6
16717 if test $cf_result = yes ; then
16719 cf_result=`echo "have_type_attr_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16721 cat >>confdefs.h <<EOF
16722 #define $cf_result 1
16727 cat >>confdefs.h <<EOF
16728 #define attr_t long
16733 if test "$cf_enable_widec" = yes; then
16735 # This is needed on Tru64 5.0 to declare mbstate_t
16736 echo "$as_me:16736: checking if we must include wchar.h to declare mbstate_t" >&5
16737 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
16738 if test "${cf_cv_mbstate_t+set}" = set; then
16739 echo $ECHO_N "(cached) $ECHO_C" >&6
16742 cat >conftest.$ac_ext <<_ACEOF
16743 #line 16743 "configure"
16744 #include "confdefs.h"
16746 #include <stdlib.h>
16747 #include <stdarg.h>
16749 #ifdef HAVE_LIBUTF8_H
16750 #include <libutf8.h>
16760 rm -f conftest.$ac_objext
16761 if { (eval echo "$as_me:16761: \"$ac_compile\"") >&5
16762 (eval $ac_compile) 2>&5
16764 echo "$as_me:16764: \$? = $ac_status" >&5
16765 (exit $ac_status); } &&
16766 { ac_try='test -s conftest.$ac_objext'
16767 { (eval echo "$as_me:16767: \"$ac_try\"") >&5
16768 (eval $ac_try) 2>&5
16770 echo "$as_me:16770: \$? = $ac_status" >&5
16771 (exit $ac_status); }; }; then
16774 echo "$as_me: failed program was:" >&5
16775 cat conftest.$ac_ext >&5
16776 cat >conftest.$ac_ext <<_ACEOF
16777 #line 16777 "configure"
16778 #include "confdefs.h"
16780 #include <stdlib.h>
16781 #include <stdarg.h>
16784 #ifdef HAVE_LIBUTF8_H
16785 #include <libutf8.h>
16795 rm -f conftest.$ac_objext
16796 if { (eval echo "$as_me:16796: \"$ac_compile\"") >&5
16797 (eval $ac_compile) 2>&5
16799 echo "$as_me:16799: \$? = $ac_status" >&5
16800 (exit $ac_status); } &&
16801 { ac_try='test -s conftest.$ac_objext'
16802 { (eval echo "$as_me:16802: \"$ac_try\"") >&5
16803 (eval $ac_try) 2>&5
16805 echo "$as_me:16805: \$? = $ac_status" >&5
16806 (exit $ac_status); }; }; then
16807 cf_cv_mbstate_t=yes
16809 echo "$as_me: failed program was:" >&5
16810 cat conftest.$ac_ext >&5
16811 cf_cv_mbstate_t=unknown
16813 rm -f conftest.$ac_objext conftest.$ac_ext
16815 rm -f conftest.$ac_objext conftest.$ac_ext
16817 echo "$as_me:16817: result: $cf_cv_mbstate_t" >&5
16818 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
16820 if test "$cf_cv_mbstate_t" = yes ; then
16822 cat >>confdefs.h <<\EOF
16823 #define NEED_WCHAR_H 1
16829 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
16830 if test "$cf_cv_mbstate_t" = unknown ; then
16831 NCURSES_MBSTATE_T=1
16834 # if we find mbstate_t in either place, use substitution to provide a fallback.
16835 if test "$cf_cv_mbstate_t" != unknown ; then
16836 NCURSES_OK_MBSTATE_T=1
16839 # This is needed on Tru64 5.0 to declare wchar_t
16840 echo "$as_me:16840: checking if we must include wchar.h to declare wchar_t" >&5
16841 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
16842 if test "${cf_cv_wchar_t+set}" = set; then
16843 echo $ECHO_N "(cached) $ECHO_C" >&6
16846 cat >conftest.$ac_ext <<_ACEOF
16847 #line 16847 "configure"
16848 #include "confdefs.h"
16850 #include <stdlib.h>
16851 #include <stdarg.h>
16853 #ifdef HAVE_LIBUTF8_H
16854 #include <libutf8.h>
16864 rm -f conftest.$ac_objext
16865 if { (eval echo "$as_me:16865: \"$ac_compile\"") >&5
16866 (eval $ac_compile) 2>&5
16868 echo "$as_me:16868: \$? = $ac_status" >&5
16869 (exit $ac_status); } &&
16870 { ac_try='test -s conftest.$ac_objext'
16871 { (eval echo "$as_me:16871: \"$ac_try\"") >&5
16872 (eval $ac_try) 2>&5
16874 echo "$as_me:16874: \$? = $ac_status" >&5
16875 (exit $ac_status); }; }; then
16878 echo "$as_me: failed program was:" >&5
16879 cat conftest.$ac_ext >&5
16880 cat >conftest.$ac_ext <<_ACEOF
16881 #line 16881 "configure"
16882 #include "confdefs.h"
16884 #include <stdlib.h>
16885 #include <stdarg.h>
16888 #ifdef HAVE_LIBUTF8_H
16889 #include <libutf8.h>
16899 rm -f conftest.$ac_objext
16900 if { (eval echo "$as_me:16900: \"$ac_compile\"") >&5
16901 (eval $ac_compile) 2>&5
16903 echo "$as_me:16903: \$? = $ac_status" >&5
16904 (exit $ac_status); } &&
16905 { ac_try='test -s conftest.$ac_objext'
16906 { (eval echo "$as_me:16906: \"$ac_try\"") >&5
16907 (eval $ac_try) 2>&5
16909 echo "$as_me:16909: \$? = $ac_status" >&5
16910 (exit $ac_status); }; }; then
16913 echo "$as_me: failed program was:" >&5
16914 cat conftest.$ac_ext >&5
16915 cf_cv_wchar_t=unknown
16917 rm -f conftest.$ac_objext conftest.$ac_ext
16919 rm -f conftest.$ac_objext conftest.$ac_ext
16921 echo "$as_me:16921: result: $cf_cv_wchar_t" >&5
16922 echo "${ECHO_T}$cf_cv_wchar_t" >&6
16924 if test "$cf_cv_wchar_t" = yes ; then
16926 cat >>confdefs.h <<\EOF
16927 #define NEED_WCHAR_H 1
16933 # if we do not find wchar_t in either place, use substitution to provide a fallback.
16934 if test "$cf_cv_wchar_t" = unknown ; then
16938 # if we find wchar_t in either place, use substitution to provide a fallback.
16939 if test "$cf_cv_wchar_t" != unknown ; then
16940 NCURSES_OK_WCHAR_T=1
16943 # This is needed on Tru64 5.0 to declare wint_t
16944 echo "$as_me:16944: checking if we must include wchar.h to declare wint_t" >&5
16945 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
16946 if test "${cf_cv_wint_t+set}" = set; then
16947 echo $ECHO_N "(cached) $ECHO_C" >&6
16950 cat >conftest.$ac_ext <<_ACEOF
16951 #line 16951 "configure"
16952 #include "confdefs.h"
16954 #include <stdlib.h>
16955 #include <stdarg.h>
16957 #ifdef HAVE_LIBUTF8_H
16958 #include <libutf8.h>
16968 rm -f conftest.$ac_objext
16969 if { (eval echo "$as_me:16969: \"$ac_compile\"") >&5
16970 (eval $ac_compile) 2>&5
16972 echo "$as_me:16972: \$? = $ac_status" >&5
16973 (exit $ac_status); } &&
16974 { ac_try='test -s conftest.$ac_objext'
16975 { (eval echo "$as_me:16975: \"$ac_try\"") >&5
16976 (eval $ac_try) 2>&5
16978 echo "$as_me:16978: \$? = $ac_status" >&5
16979 (exit $ac_status); }; }; then
16982 echo "$as_me: failed program was:" >&5
16983 cat conftest.$ac_ext >&5
16984 cat >conftest.$ac_ext <<_ACEOF
16985 #line 16985 "configure"
16986 #include "confdefs.h"
16988 #include <stdlib.h>
16989 #include <stdarg.h>
16992 #ifdef HAVE_LIBUTF8_H
16993 #include <libutf8.h>
17003 rm -f conftest.$ac_objext
17004 if { (eval echo "$as_me:17004: \"$ac_compile\"") >&5
17005 (eval $ac_compile) 2>&5
17007 echo "$as_me:17007: \$? = $ac_status" >&5
17008 (exit $ac_status); } &&
17009 { ac_try='test -s conftest.$ac_objext'
17010 { (eval echo "$as_me:17010: \"$ac_try\"") >&5
17011 (eval $ac_try) 2>&5
17013 echo "$as_me:17013: \$? = $ac_status" >&5
17014 (exit $ac_status); }; }; then
17017 echo "$as_me: failed program was:" >&5
17018 cat conftest.$ac_ext >&5
17019 cf_cv_wint_t=unknown
17021 rm -f conftest.$ac_objext conftest.$ac_ext
17023 rm -f conftest.$ac_objext conftest.$ac_ext
17025 echo "$as_me:17025: result: $cf_cv_wint_t" >&5
17026 echo "${ECHO_T}$cf_cv_wint_t" >&6
17028 if test "$cf_cv_wint_t" = yes ; then
17030 cat >>confdefs.h <<\EOF
17031 #define NEED_WCHAR_H 1
17037 # if we do not find wint_t in either place, use substitution to provide a fallback.
17038 if test "$cf_cv_wint_t" = unknown ; then
17042 # if we find wint_t in either place, use substitution to provide a fallback.
17043 if test "$cf_cv_wint_t" != unknown ; then
17044 NCURSES_OK_WINT_T=1
17047 if test "$NCURSES_OK_MBSTATE_T" = 0 ; then
17049 echo "$as_me:17049: checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}" >&5
17050 echo $ECHO_N "checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
17051 cat >conftest.$ac_ext <<_ACEOF
17052 #line 17052 "configure"
17053 #include "confdefs.h"
17055 #ifndef _XOPEN_SOURCE_EXTENDED
17056 #define _XOPEN_SOURCE_EXTENDED
17058 #include <${cf_cv_ncurses_header:-curses.h}>
17069 rm -f conftest.$ac_objext
17070 if { (eval echo "$as_me:17070: \"$ac_compile\"") >&5
17071 (eval $ac_compile) 2>&5
17073 echo "$as_me:17073: \$? = $ac_status" >&5
17074 (exit $ac_status); } &&
17075 { ac_try='test -s conftest.$ac_objext'
17076 { (eval echo "$as_me:17076: \"$ac_try\"") >&5
17077 (eval $ac_try) 2>&5
17079 echo "$as_me:17079: \$? = $ac_status" >&5
17080 (exit $ac_status); }; }; then
17083 echo "$as_me: failed program was:" >&5
17084 cat conftest.$ac_ext >&5
17087 rm -f conftest.$ac_objext conftest.$ac_ext
17088 echo "$as_me:17088: result: $cf_result" >&5
17089 echo "${ECHO_T}$cf_result" >&6
17090 if test $cf_result = yes ; then
17092 cf_result=`echo "have_type_mbstate_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17094 cat >>confdefs.h <<EOF
17095 #define $cf_result 1
17100 cat >>confdefs.h <<EOF
17101 #define mbstate_t long
17108 if test "$NCURSES_OK_WCHAR_T" = 0 ; then
17110 echo "$as_me:17110: checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}" >&5
17111 echo $ECHO_N "checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
17112 cat >conftest.$ac_ext <<_ACEOF
17113 #line 17113 "configure"
17114 #include "confdefs.h"
17116 #ifndef _XOPEN_SOURCE_EXTENDED
17117 #define _XOPEN_SOURCE_EXTENDED
17119 #include <${cf_cv_ncurses_header:-curses.h}>
17130 rm -f conftest.$ac_objext
17131 if { (eval echo "$as_me:17131: \"$ac_compile\"") >&5
17132 (eval $ac_compile) 2>&5
17134 echo "$as_me:17134: \$? = $ac_status" >&5
17135 (exit $ac_status); } &&
17136 { ac_try='test -s conftest.$ac_objext'
17137 { (eval echo "$as_me:17137: \"$ac_try\"") >&5
17138 (eval $ac_try) 2>&5
17140 echo "$as_me:17140: \$? = $ac_status" >&5
17141 (exit $ac_status); }; }; then
17144 echo "$as_me: failed program was:" >&5
17145 cat conftest.$ac_ext >&5
17148 rm -f conftest.$ac_objext conftest.$ac_ext
17149 echo "$as_me:17149: result: $cf_result" >&5
17150 echo "${ECHO_T}$cf_result" >&6
17151 if test $cf_result = yes ; then
17153 cf_result=`echo "have_type_wchar_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17155 cat >>confdefs.h <<EOF
17156 #define $cf_result 1
17161 cat >>confdefs.h <<EOF
17162 #define wchar_t long
17169 if test "$NCURSES_OK_WINT_T" = 0 ; then
17171 echo "$as_me:17171: checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}" >&5
17172 echo $ECHO_N "checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
17173 cat >conftest.$ac_ext <<_ACEOF
17174 #line 17174 "configure"
17175 #include "confdefs.h"
17177 #ifndef _XOPEN_SOURCE_EXTENDED
17178 #define _XOPEN_SOURCE_EXTENDED
17180 #include <${cf_cv_ncurses_header:-curses.h}>
17191 rm -f conftest.$ac_objext
17192 if { (eval echo "$as_me:17192: \"$ac_compile\"") >&5
17193 (eval $ac_compile) 2>&5
17195 echo "$as_me:17195: \$? = $ac_status" >&5
17196 (exit $ac_status); } &&
17197 { ac_try='test -s conftest.$ac_objext'
17198 { (eval echo "$as_me:17198: \"$ac_try\"") >&5
17199 (eval $ac_try) 2>&5
17201 echo "$as_me:17201: \$? = $ac_status" >&5
17202 (exit $ac_status); }; }; then
17205 echo "$as_me: failed program was:" >&5
17206 cat conftest.$ac_ext >&5
17209 rm -f conftest.$ac_objext conftest.$ac_ext
17210 echo "$as_me:17210: result: $cf_result" >&5
17211 echo "${ECHO_T}$cf_result" >&6
17212 if test $cf_result = yes ; then
17214 cf_result=`echo "have_type_wint_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17216 cat >>confdefs.h <<EOF
17217 #define $cf_result 1
17222 cat >>confdefs.h <<EOF
17223 #define wint_t long
17238 echo "$as_me:17238: checking for data $cf_data declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
17239 echo $ECHO_N "checking for data $cf_data declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
17241 cat >conftest.$ac_ext <<_ACEOF
17242 #line 17242 "configure"
17243 #include "confdefs.h"
17245 #ifdef HAVE_XCURSES
17246 #include <xcurses.h>
17247 char * XCursesProgramName = "test";
17249 #include <${cf_cv_ncurses_header:-curses.h}>
17250 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17251 #include <ncursesw/term.h>
17252 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17253 #include <ncurses/term.h>
17254 #elif defined(HAVE_TERM_H)
17263 void *foo = &($cf_data)
17269 rm -f conftest.$ac_objext
17270 if { (eval echo "$as_me:17270: \"$ac_compile\"") >&5
17271 (eval $ac_compile) 2>&5
17273 echo "$as_me:17273: \$? = $ac_status" >&5
17274 (exit $ac_status); } &&
17275 { ac_try='test -s conftest.$ac_objext'
17276 { (eval echo "$as_me:17276: \"$ac_try\"") >&5
17277 (eval $ac_try) 2>&5
17279 echo "$as_me:17279: \$? = $ac_status" >&5
17280 (exit $ac_status); }; }; then
17284 echo "$as_me: failed program was:" >&5
17285 cat conftest.$ac_ext >&5
17288 rm -f conftest.$ac_objext conftest.$ac_ext
17289 echo "$as_me:17289: result: $cf_result" >&5
17290 echo "${ECHO_T}$cf_result" >&6
17292 if test $cf_result = yes ; then
17294 cf_result=`echo "have_curses_data_$cf_data" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17296 cat >>confdefs.h <<EOF
17297 #define $cf_result 1
17301 echo "$as_me:17301: checking for data $cf_data in library" >&5
17302 echo $ECHO_N "checking for data $cf_data in library... $ECHO_C" >&6
17303 # BSD linkers insist on making weak linkage, but resolve at runtime.
17304 if test "$cross_compiling" = yes; then
17307 cat >conftest.$ac_ext <<_ACEOF
17308 #line 17308 "configure"
17309 #include "confdefs.h"
17311 #ifdef HAVE_XCURSES
17312 #include <xcurses.h>
17313 char * XCursesProgramName = "test";
17315 #include <${cf_cv_ncurses_header:-curses.h}>
17316 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17317 #include <ncursesw/term.h>
17318 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17319 #include <ncurses/term.h>
17320 #elif defined(HAVE_TERM_H)
17325 extern char $cf_data;
17331 void *foo = &($cf_data);
17332 fprintf(stderr, "testing linkage of $cf_data:%p\n", foo);
17333 ${cf_cv_main_return:-return}(foo == 0);
17340 rm -f conftest.$ac_objext conftest$ac_exeext
17341 if { (eval echo "$as_me:17341: \"$ac_link\"") >&5
17342 (eval $ac_link) 2>&5
17344 echo "$as_me:17344: \$? = $ac_status" >&5
17345 (exit $ac_status); } &&
17346 { ac_try='test -s conftest$ac_exeext'
17347 { (eval echo "$as_me:17347: \"$ac_try\"") >&5
17348 (eval $ac_try) 2>&5
17350 echo "$as_me:17350: \$? = $ac_status" >&5
17351 (exit $ac_status); }; }; then
17354 echo "$as_me: failed program was:" >&5
17355 cat conftest.$ac_ext >&5
17358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17361 cat >conftest.$ac_ext <<_ACEOF
17362 #line 17362 "configure"
17363 #include "confdefs.h"
17365 #ifdef HAVE_XCURSES
17366 #include <xcurses.h>
17367 char * XCursesProgramName = "test";
17369 #include <${cf_cv_ncurses_header:-curses.h}>
17370 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17371 #include <ncursesw/term.h>
17372 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17373 #include <ncurses/term.h>
17374 #elif defined(HAVE_TERM_H)
17379 extern char $cf_data;
17382 void *foo = &($cf_data);
17383 fprintf(stderr, "testing linkage of $cf_data:%p\n", foo);
17384 ${cf_cv_main_return:-return}(foo == 0);
17387 rm -f conftest$ac_exeext
17388 if { (eval echo "$as_me:17388: \"$ac_link\"") >&5
17389 (eval $ac_link) 2>&5
17391 echo "$as_me:17391: \$? = $ac_status" >&5
17392 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17393 { (eval echo "$as_me:17393: \"$ac_try\"") >&5
17394 (eval $ac_try) 2>&5
17396 echo "$as_me:17396: \$? = $ac_status" >&5
17397 (exit $ac_status); }; }; then
17401 echo "$as_me: program exited with status $ac_status" >&5
17402 echo "$as_me: failed program was:" >&5
17403 cat conftest.$ac_ext >&5
17406 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17408 echo "$as_me:17408: result: $cf_result" >&5
17409 echo "${ECHO_T}$cf_result" >&6
17410 if test $cf_result = yes ; then
17412 cf_result=`echo "decl_curses_data_$cf_data" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17414 cat >>confdefs.h <<EOF
17415 #define $cf_result 1
17418 # do not exit loop here, since we prefer system's declarations
17423 if ( test "$GCC" = yes || test "$GXX" = yes )
17425 echo "$as_me:17425: checking if you want to turn on gcc warnings" >&5
17426 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
17428 # Check whether --enable-warnings or --disable-warnings was given.
17429 if test "${enable_warnings+set}" = set; then
17430 enableval="$enable_warnings"
17431 test "$enableval" != yes && enableval=no
17432 if test "$enableval" != "no" ; then
17442 echo "$as_me:17442: result: $with_warnings" >&5
17443 echo "${ECHO_T}$with_warnings" >&6
17444 if test "$with_warnings" = "yes"
17447 if test "$GCC" = yes
17449 cat > conftest.i <<EOF
17451 #define GCC_PRINTF 0
17454 #define GCC_SCANF 0
17456 #ifndef GCC_NORETURN
17457 #define GCC_NORETURN /* nothing */
17460 #define GCC_UNUSED /* nothing */
17463 if test "$GCC" = yes
17465 { echo "$as_me:17465: checking for $CC __attribute__ directives..." >&5
17466 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
17467 cat > conftest.$ac_ext <<EOF
17468 #line 17468 "${as_me:-configure}"
17469 #include "confdefs.h"
17470 #include "conftest.h"
17471 #include "conftest.i"
17473 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
17475 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
17478 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
17480 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
17482 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
17483 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
17484 extern void foo(void) GCC_NORETURN;
17485 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
17487 cf_printf_attribute=no
17488 cf_scanf_attribute=no
17489 for cf_attribute in scanf printf unused noreturn
17492 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17494 cf_directive="__attribute__(($cf_attribute))"
17495 echo "checking for $CC $cf_directive" 1>&5
17497 case $cf_attribute in
17499 cf_printf_attribute=yes
17500 cat >conftest.h <<EOF
17501 #define GCC_$cf_ATTRIBUTE 1
17505 cf_scanf_attribute=yes
17506 cat >conftest.h <<EOF
17507 #define GCC_$cf_ATTRIBUTE 1
17511 cat >conftest.h <<EOF
17512 #define GCC_$cf_ATTRIBUTE $cf_directive
17517 if { (eval echo "$as_me:17517: \"$ac_compile\"") >&5
17518 (eval $ac_compile) 2>&5
17520 echo "$as_me:17520: \$? = $ac_status" >&5
17521 (exit $ac_status); }; then
17522 test -n "$verbose" && echo "$as_me:17522: result: ... $cf_attribute" >&5
17523 echo "${ECHO_T}... $cf_attribute" >&6
17524 cat conftest.h >>confdefs.h
17525 case $cf_attribute in
17528 cat >>confdefs.h <<EOF
17529 #define GCC_NORETURN $cf_directive
17534 cf_value='/* nothing */'
17535 if test "$cf_printf_attribute" != no ; then
17536 cf_value='__attribute__((format(printf,fmt,var)))'
17538 cat >>confdefs.h <<\EOF
17539 #define GCC_PRINTF 1
17544 cat >>confdefs.h <<EOF
17545 #define GCC_PRINTFLIKE(fmt,var) $cf_value
17550 cf_value='/* nothing */'
17551 if test "$cf_scanf_attribute" != no ; then
17552 cf_value='__attribute__((format(scanf,fmt,var)))'
17554 cat >>confdefs.h <<\EOF
17555 #define GCC_SCANF 1
17560 cat >>confdefs.h <<EOF
17561 #define GCC_SCANFLIKE(fmt,var) $cf_value
17567 cat >>confdefs.h <<EOF
17568 #define GCC_UNUSED $cf_directive
17576 fgrep define conftest.i >>confdefs.h
17583 if test "$GCC" = yes ; then
17586 echo "$as_me:17586: checking if this is really Intel C compiler" >&5
17587 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
17588 cf_save_CFLAGS="$CFLAGS"
17589 CFLAGS="$CFLAGS -no-gcc"
17590 cat >conftest.$ac_ext <<_ACEOF
17591 #line 17591 "configure"
17592 #include "confdefs.h"
17598 #ifdef __INTEL_COMPILER
17607 rm -f conftest.$ac_objext
17608 if { (eval echo "$as_me:17608: \"$ac_compile\"") >&5
17609 (eval $ac_compile) 2>&5
17611 echo "$as_me:17611: \$? = $ac_status" >&5
17612 (exit $ac_status); } &&
17613 { ac_try='test -s conftest.$ac_objext'
17614 { (eval echo "$as_me:17614: \"$ac_try\"") >&5
17615 (eval $ac_try) 2>&5
17617 echo "$as_me:17617: \$? = $ac_status" >&5
17618 (exit $ac_status); }; }; then
17620 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
17623 echo "$as_me: failed program was:" >&5
17624 cat conftest.$ac_ext >&5
17626 rm -f conftest.$ac_objext conftest.$ac_ext
17627 CFLAGS="$cf_save_CFLAGS"
17628 echo "$as_me:17628: result: $INTEL_COMPILER" >&5
17629 echo "${ECHO_T}$INTEL_COMPILER" >&6
17636 if test "$GCC" = yes ; then
17637 echo "$as_me:17637: checking if this is really Clang C compiler" >&5
17638 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
17639 cf_save_CFLAGS="$CFLAGS"
17640 CFLAGS="$CFLAGS -Qunused-arguments"
17641 cat >conftest.$ac_ext <<_ACEOF
17642 #line 17642 "configure"
17643 #include "confdefs.h"
17658 rm -f conftest.$ac_objext
17659 if { (eval echo "$as_me:17659: \"$ac_compile\"") >&5
17660 (eval $ac_compile) 2>&5
17662 echo "$as_me:17662: \$? = $ac_status" >&5
17663 (exit $ac_status); } &&
17664 { ac_try='test -s conftest.$ac_objext'
17665 { (eval echo "$as_me:17665: \"$ac_try\"") >&5
17666 (eval $ac_try) 2>&5
17668 echo "$as_me:17668: \$? = $ac_status" >&5
17669 (exit $ac_status); }; }; then
17671 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
17674 echo "$as_me: failed program was:" >&5
17675 cat conftest.$ac_ext >&5
17677 rm -f conftest.$ac_objext conftest.$ac_ext
17678 CFLAGS="$cf_save_CFLAGS"
17679 echo "$as_me:17679: result: $CLANG_COMPILER" >&5
17680 echo "${ECHO_T}$CLANG_COMPILER" >&6
17683 cat > conftest.$ac_ext <<EOF
17684 #line 17684 "${as_me:-configure}"
17685 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
17688 if test "$INTEL_COMPILER" = yes
17690 # The "-wdXXX" options suppress warnings:
17691 # remark #1419: external declaration in primary source file
17692 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
17693 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
17694 # remark #193: zero used for undefined preprocessing identifier
17695 # remark #593: variable "curs_sb_left_arrow" was set but never used
17696 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
17697 # remark #869: parameter "tw" was never referenced
17698 # remark #981: operands are evaluated in unspecified order
17699 # warning #279: controlling expression is constant
17701 { echo "$as_me:17701: checking for $CC warning options..." >&5
17702 echo "$as_me: checking for $CC warning options..." >&6;}
17703 cf_save_CFLAGS="$CFLAGS"
17704 EXTRA_CFLAGS="-Wall"
17716 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
17717 if { (eval echo "$as_me:17717: \"$ac_compile\"") >&5
17718 (eval $ac_compile) 2>&5
17720 echo "$as_me:17720: \$? = $ac_status" >&5
17721 (exit $ac_status); }; then
17722 test -n "$verbose" && echo "$as_me:17722: result: ... -$cf_opt" >&5
17723 echo "${ECHO_T}... -$cf_opt" >&6
17724 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
17727 CFLAGS="$cf_save_CFLAGS"
17729 elif test "$GCC" = yes
17731 { echo "$as_me:17731: checking for $CC warning options..." >&5
17732 echo "$as_me: checking for $CC warning options..." >&6;}
17733 cf_save_CFLAGS="$CFLAGS"
17736 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
17737 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
17738 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
17739 for cf_opt in W Wall \
17740 Wbad-function-cast \
17743 Wdeclaration-after-statement \
17746 Wmissing-declarations \
17747 Wmissing-prototypes \
17751 Wstrict-prototypes \
17752 Wundef $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas
17754 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
17755 if { (eval echo "$as_me:17755: \"$ac_compile\"") >&5
17756 (eval $ac_compile) 2>&5
17758 echo "$as_me:17758: \$? = $ac_status" >&5
17759 (exit $ac_status); }; then
17760 test -n "$verbose" && echo "$as_me:17760: result: ... -$cf_opt" >&5
17761 echo "${ECHO_T}... -$cf_opt" >&6
17764 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
17767 case $GCC_VERSION in
17769 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
17771 echo "${as_me:-configure}:17771: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
17777 case $GCC_VERSION in
17779 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
17781 echo "${as_me:-configure}:17781: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
17787 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
17790 CFLAGS="$cf_save_CFLAGS"
17797 echo "$as_me:17797: checking if you want to use dmalloc for testing" >&5
17798 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
17800 # Check whether --with-dmalloc or --without-dmalloc was given.
17801 if test "${with_dmalloc+set}" = set; then
17802 withval="$with_dmalloc"
17804 cat >>confdefs.h <<EOF
17805 #define USE_DMALLOC 1
17808 : ${with_cflags:=-g}
17809 : ${with_no_leaks:=yes}
17814 echo "$as_me:17814: result: ${with_dmalloc:-no}" >&5
17815 echo "${ECHO_T}${with_dmalloc:-no}" >&6
17817 case .$with_cflags in
17827 cf_new_extra_cppflags=
17829 for cf_add_cflags in -g
17831 case $cf_fix_cppflags in
17833 case $cf_add_cflags in
17834 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17835 case $cf_add_cflags in
17837 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17839 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17840 && test -z "${cf_tst_cflags}" \
17841 && cf_fix_cppflags=yes
17843 if test $cf_fix_cppflags = yes ; then
17845 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17846 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17849 elif test "${cf_tst_cflags}" = "\"'" ; then
17851 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17852 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17858 case "$CPPFLAGS" in
17862 case $cf_add_cflags in
17864 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17866 CPPFLAGS=`echo "$CPPFLAGS" | \
17867 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17868 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17873 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
17874 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
17881 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
17882 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
17889 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
17890 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
17892 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
17894 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17895 && test -z "${cf_tst_cflags}" \
17896 && cf_fix_cppflags=no
17901 if test -n "$cf_new_cflags" ; then
17903 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
17904 CFLAGS="${CFLAGS}$cf_new_cflags"
17908 if test -n "$cf_new_cppflags" ; then
17910 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17911 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
17915 if test -n "$cf_new_extra_cppflags" ; then
17917 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
17918 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
17927 if test "$with_dmalloc" = yes ; then
17928 echo "$as_me:17928: checking for dmalloc.h" >&5
17929 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
17930 if test "${ac_cv_header_dmalloc_h+set}" = set; then
17931 echo $ECHO_N "(cached) $ECHO_C" >&6
17933 cat >conftest.$ac_ext <<_ACEOF
17934 #line 17934 "configure"
17935 #include "confdefs.h"
17936 #include <dmalloc.h>
17938 if { (eval echo "$as_me:17938: \"$ac_cpp conftest.$ac_ext\"") >&5
17939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17941 egrep -v '^ *\+' conftest.er1 >conftest.err
17943 cat conftest.err >&5
17944 echo "$as_me:17944: \$? = $ac_status" >&5
17945 (exit $ac_status); } >/dev/null; then
17946 if test -s conftest.err; then
17947 ac_cpp_err=$ac_c_preproc_warn_flag
17954 if test -z "$ac_cpp_err"; then
17955 ac_cv_header_dmalloc_h=yes
17957 echo "$as_me: failed program was:" >&5
17958 cat conftest.$ac_ext >&5
17959 ac_cv_header_dmalloc_h=no
17961 rm -f conftest.err conftest.$ac_ext
17963 echo "$as_me:17963: result: $ac_cv_header_dmalloc_h" >&5
17964 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
17965 if test $ac_cv_header_dmalloc_h = yes; then
17967 echo "$as_me:17967: checking for dmalloc_debug in -ldmalloc" >&5
17968 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
17969 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
17970 echo $ECHO_N "(cached) $ECHO_C" >&6
17972 ac_check_lib_save_LIBS=$LIBS
17973 LIBS="-ldmalloc $LIBS"
17974 cat >conftest.$ac_ext <<_ACEOF
17975 #line 17975 "configure"
17976 #include "confdefs.h"
17978 /* Override any gcc2 internal prototype to avoid an error. */
17982 /* We use char because int might match the return type of a gcc2
17983 builtin and then its argument prototype would still apply. */
17984 char dmalloc_debug ();
17993 rm -f conftest.$ac_objext conftest$ac_exeext
17994 if { (eval echo "$as_me:17994: \"$ac_link\"") >&5
17995 (eval $ac_link) 2>&5
17997 echo "$as_me:17997: \$? = $ac_status" >&5
17998 (exit $ac_status); } &&
17999 { ac_try='test -s conftest$ac_exeext'
18000 { (eval echo "$as_me:18000: \"$ac_try\"") >&5
18001 (eval $ac_try) 2>&5
18003 echo "$as_me:18003: \$? = $ac_status" >&5
18004 (exit $ac_status); }; }; then
18005 ac_cv_lib_dmalloc_dmalloc_debug=yes
18007 echo "$as_me: failed program was:" >&5
18008 cat conftest.$ac_ext >&5
18009 ac_cv_lib_dmalloc_dmalloc_debug=no
18011 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18012 LIBS=$ac_check_lib_save_LIBS
18014 echo "$as_me:18014: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
18015 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
18016 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
18017 cat >>confdefs.h <<EOF
18018 #define HAVE_LIBDMALLOC 1
18021 LIBS="-ldmalloc $LIBS"
18029 echo "$as_me:18029: checking if you want to use dbmalloc for testing" >&5
18030 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
18032 # Check whether --with-dbmalloc or --without-dbmalloc was given.
18033 if test "${with_dbmalloc+set}" = set; then
18034 withval="$with_dbmalloc"
18036 cat >>confdefs.h <<EOF
18037 #define USE_DBMALLOC 1
18040 : ${with_cflags:=-g}
18041 : ${with_no_leaks:=yes}
18046 echo "$as_me:18046: result: ${with_dbmalloc:-no}" >&5
18047 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
18049 case .$with_cflags in
18059 cf_new_extra_cppflags=
18061 for cf_add_cflags in -g
18063 case $cf_fix_cppflags in
18065 case $cf_add_cflags in
18066 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18067 case $cf_add_cflags in
18069 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18071 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18072 && test -z "${cf_tst_cflags}" \
18073 && cf_fix_cppflags=yes
18075 if test $cf_fix_cppflags = yes ; then
18077 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18078 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18081 elif test "${cf_tst_cflags}" = "\"'" ; then
18083 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18084 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18090 case "$CPPFLAGS" in
18094 case $cf_add_cflags in
18096 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18098 CPPFLAGS=`echo "$CPPFLAGS" | \
18099 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18100 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18105 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18106 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18113 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18114 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18121 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18122 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18124 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
18126 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18127 && test -z "${cf_tst_cflags}" \
18128 && cf_fix_cppflags=no
18133 if test -n "$cf_new_cflags" ; then
18135 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18136 CFLAGS="${CFLAGS}$cf_new_cflags"
18140 if test -n "$cf_new_cppflags" ; then
18142 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18143 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18147 if test -n "$cf_new_extra_cppflags" ; then
18149 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18150 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18159 if test "$with_dbmalloc" = yes ; then
18160 echo "$as_me:18160: checking for dbmalloc.h" >&5
18161 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
18162 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
18163 echo $ECHO_N "(cached) $ECHO_C" >&6
18165 cat >conftest.$ac_ext <<_ACEOF
18166 #line 18166 "configure"
18167 #include "confdefs.h"
18168 #include <dbmalloc.h>
18170 if { (eval echo "$as_me:18170: \"$ac_cpp conftest.$ac_ext\"") >&5
18171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18173 egrep -v '^ *\+' conftest.er1 >conftest.err
18175 cat conftest.err >&5
18176 echo "$as_me:18176: \$? = $ac_status" >&5
18177 (exit $ac_status); } >/dev/null; then
18178 if test -s conftest.err; then
18179 ac_cpp_err=$ac_c_preproc_warn_flag
18186 if test -z "$ac_cpp_err"; then
18187 ac_cv_header_dbmalloc_h=yes
18189 echo "$as_me: failed program was:" >&5
18190 cat conftest.$ac_ext >&5
18191 ac_cv_header_dbmalloc_h=no
18193 rm -f conftest.err conftest.$ac_ext
18195 echo "$as_me:18195: result: $ac_cv_header_dbmalloc_h" >&5
18196 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
18197 if test $ac_cv_header_dbmalloc_h = yes; then
18199 echo "$as_me:18199: checking for debug_malloc in -ldbmalloc" >&5
18200 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
18201 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
18202 echo $ECHO_N "(cached) $ECHO_C" >&6
18204 ac_check_lib_save_LIBS=$LIBS
18205 LIBS="-ldbmalloc $LIBS"
18206 cat >conftest.$ac_ext <<_ACEOF
18207 #line 18207 "configure"
18208 #include "confdefs.h"
18210 /* Override any gcc2 internal prototype to avoid an error. */
18214 /* We use char because int might match the return type of a gcc2
18215 builtin and then its argument prototype would still apply. */
18216 char debug_malloc ();
18225 rm -f conftest.$ac_objext conftest$ac_exeext
18226 if { (eval echo "$as_me:18226: \"$ac_link\"") >&5
18227 (eval $ac_link) 2>&5
18229 echo "$as_me:18229: \$? = $ac_status" >&5
18230 (exit $ac_status); } &&
18231 { ac_try='test -s conftest$ac_exeext'
18232 { (eval echo "$as_me:18232: \"$ac_try\"") >&5
18233 (eval $ac_try) 2>&5
18235 echo "$as_me:18235: \$? = $ac_status" >&5
18236 (exit $ac_status); }; }; then
18237 ac_cv_lib_dbmalloc_debug_malloc=yes
18239 echo "$as_me: failed program was:" >&5
18240 cat conftest.$ac_ext >&5
18241 ac_cv_lib_dbmalloc_debug_malloc=no
18243 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18244 LIBS=$ac_check_lib_save_LIBS
18246 echo "$as_me:18246: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
18247 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
18248 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
18249 cat >>confdefs.h <<EOF
18250 #define HAVE_LIBDBMALLOC 1
18253 LIBS="-ldbmalloc $LIBS"
18261 echo "$as_me:18261: checking if you want to use valgrind for testing" >&5
18262 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
18264 # Check whether --with-valgrind or --without-valgrind was given.
18265 if test "${with_valgrind+set}" = set; then
18266 withval="$with_valgrind"
18268 cat >>confdefs.h <<EOF
18269 #define USE_VALGRIND 1
18272 : ${with_cflags:=-g}
18273 : ${with_no_leaks:=yes}
18278 echo "$as_me:18278: result: ${with_valgrind:-no}" >&5
18279 echo "${ECHO_T}${with_valgrind:-no}" >&6
18281 case .$with_cflags in
18291 cf_new_extra_cppflags=
18293 for cf_add_cflags in -g
18295 case $cf_fix_cppflags in
18297 case $cf_add_cflags in
18298 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18299 case $cf_add_cflags in
18301 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18303 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18304 && test -z "${cf_tst_cflags}" \
18305 && cf_fix_cppflags=yes
18307 if test $cf_fix_cppflags = yes ; then
18309 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18310 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18313 elif test "${cf_tst_cflags}" = "\"'" ; then
18315 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18316 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18322 case "$CPPFLAGS" in
18326 case $cf_add_cflags in
18328 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18330 CPPFLAGS=`echo "$CPPFLAGS" | \
18331 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18332 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18337 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18338 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18345 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18346 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18353 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18354 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18356 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
18358 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18359 && test -z "${cf_tst_cflags}" \
18360 && cf_fix_cppflags=no
18365 if test -n "$cf_new_cflags" ; then
18367 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18368 CFLAGS="${CFLAGS}$cf_new_cflags"
18372 if test -n "$cf_new_cppflags" ; then
18374 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18375 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18379 if test -n "$cf_new_extra_cppflags" ; then
18381 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18382 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18391 echo "$as_me:18391: checking if you want to perform memory-leak testing" >&5
18392 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
18394 # Check whether --enable-leaks or --disable-leaks was given.
18395 if test "${enable_leaks+set}" = set; then
18396 enableval="$enable_leaks"
18397 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
18399 : ${with_no_leaks:=no}
18401 echo "$as_me:18401: result: $with_no_leaks" >&5
18402 echo "${ECHO_T}$with_no_leaks" >&6
18404 if test "$with_no_leaks" = yes ; then
18406 cat >>confdefs.h <<\EOF
18410 cat >>confdefs.h <<\EOF
18411 #define YY_NO_LEAKS 1
18417 echo "$as_me:18417: checking for an rpath option" >&5
18418 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
18419 case $cf_cv_system_name in
18421 if test "$GCC" = yes; then
18422 LD_RPATH_OPT="-Wl,-rpath,"
18424 LD_RPATH_OPT="-rpath "
18427 (linux*|gnu*|k*bsd*-gnu|freebsd*)
18428 LD_RPATH_OPT="-Wl,-rpath,"
18430 (openbsd[2-9].*|mirbsd*)
18431 LD_RPATH_OPT="-Wl,-rpath,"
18434 LD_RPATH_OPT="-rpath "
18437 LD_RPATH_OPT="-Wl,-rpath,"
18440 LD_RPATH_OPT="-rpath "
18448 echo "$as_me:18448: result: $LD_RPATH_OPT" >&5
18449 echo "${ECHO_T}$LD_RPATH_OPT" >&6
18451 case "x$LD_RPATH_OPT" in
18453 echo "$as_me:18453: checking if we need a space after rpath option" >&5
18454 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
18455 cf_save_LIBS="$LIBS"
18457 cf_add_libs="${LD_RPATH_OPT}$libdir"
18458 # Filter out duplicates - this happens with badly-designed ".pc" files...
18459 for cf_add_1lib in $LIBS
18461 for cf_add_2lib in $cf_add_libs
18463 if test "x$cf_add_1lib" = "x$cf_add_2lib"
18469 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
18471 LIBS="$cf_add_libs"
18473 cat >conftest.$ac_ext <<_ACEOF
18474 #line 18474 "configure"
18475 #include "confdefs.h"
18485 rm -f conftest.$ac_objext conftest$ac_exeext
18486 if { (eval echo "$as_me:18486: \"$ac_link\"") >&5
18487 (eval $ac_link) 2>&5
18489 echo "$as_me:18489: \$? = $ac_status" >&5
18490 (exit $ac_status); } &&
18491 { ac_try='test -s conftest$ac_exeext'
18492 { (eval echo "$as_me:18492: \"$ac_try\"") >&5
18493 (eval $ac_try) 2>&5
18495 echo "$as_me:18495: \$? = $ac_status" >&5
18496 (exit $ac_status); }; }; then
18499 echo "$as_me: failed program was:" >&5
18500 cat conftest.$ac_ext >&5
18503 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18504 LIBS="$cf_save_LIBS"
18505 echo "$as_me:18505: result: $cf_rpath_space" >&5
18506 echo "${ECHO_T}$cf_rpath_space" >&6
18507 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
18511 echo "$as_me:18511: checking if rpath-hack should be disabled" >&5
18512 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
18514 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
18515 if test "${enable_rpath_hack+set}" = set; then
18516 enableval="$enable_rpath_hack"
18517 test "$enableval" != no && enableval=yes
18518 if test "$enableval" != "yes" ; then
18519 cf_disable_rpath_hack=yes
18521 cf_disable_rpath_hack=no
18525 cf_disable_rpath_hack=no
18528 echo "$as_me:18528: result: $cf_disable_rpath_hack" >&5
18529 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
18530 if test "$cf_disable_rpath_hack" = no ; then
18532 echo "$as_me:18532: checking for updated LDFLAGS" >&5
18533 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
18534 if test -n "$LD_RPATH_OPT" ; then
18535 echo "$as_me:18535: result: maybe" >&5
18536 echo "${ECHO_T}maybe" >&6
18540 # Extract the first word of "$ac_prog", so it can be a program name with args.
18541 set dummy $ac_prog; ac_word=$2
18542 echo "$as_me:18542: checking for $ac_word" >&5
18543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18544 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
18545 echo $ECHO_N "(cached) $ECHO_C" >&6
18547 if test -n "$cf_ldd_prog"; then
18548 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
18550 ac_save_IFS=$IFS; IFS=$ac_path_separator
18552 for ac_dir in $ac_dummy; do
18554 test -z "$ac_dir" && ac_dir=.
18555 $as_executable_p "$ac_dir/$ac_word" || continue
18556 ac_cv_prog_cf_ldd_prog="$ac_prog"
18557 echo "$as_me:18557: found $ac_dir/$ac_word" >&5
18563 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
18564 if test -n "$cf_ldd_prog"; then
18565 echo "$as_me:18565: result: $cf_ldd_prog" >&5
18566 echo "${ECHO_T}$cf_ldd_prog" >&6
18568 echo "$as_me:18568: result: no" >&5
18569 echo "${ECHO_T}no" >&6
18572 test -n "$cf_ldd_prog" && break
18574 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
18576 cf_rpath_list="/usr/lib /lib"
18577 if test "$cf_ldd_prog" != no
18581 cat >conftest.$ac_ext <<_ACEOF
18582 #line 18582 "configure"
18583 #include "confdefs.h"
18593 rm -f conftest.$ac_objext conftest$ac_exeext
18594 if { (eval echo "$as_me:18594: \"$ac_link\"") >&5
18595 (eval $ac_link) 2>&5
18597 echo "$as_me:18597: \$? = $ac_status" >&5
18598 (exit $ac_status); } &&
18599 { ac_try='test -s conftest$ac_exeext'
18600 { (eval echo "$as_me:18600: \"$ac_try\"") >&5
18601 (eval $ac_try) 2>&5
18603 echo "$as_me:18603: \$? = $ac_status" >&5
18604 (exit $ac_status); }; }; then
18605 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
18606 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
18608 echo "$as_me: failed program was:" >&5
18609 cat conftest.$ac_ext >&5
18611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18613 # If we passed the link-test, but get a "not found" on a given library,
18614 # this could be due to inept reconfiguration of gcc to make it only
18615 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
18616 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
18617 # /usr/local libraries.
18618 if test -n "$cf_rpath_oops"
18620 for cf_rpath_src in $cf_rpath_oops
18622 for cf_rpath_dir in \
18627 if test -f $cf_rpath_dir/lib/$cf_rpath_src
18629 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
18631 echo "${as_me:-configure}:18631: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
18633 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
18641 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
18643 echo "${as_me:-configure}:18643: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
18645 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
18647 echo "${as_me:-configure}:18647: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
18650 for cf_rpath_src in $LDFLAGS
18652 case $cf_rpath_src in
18655 # check if this refers to a directory which we will ignore
18657 if test -n "$cf_rpath_list"
18659 for cf_rpath_item in $cf_rpath_list
18661 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
18669 if test "$cf_rpath_skip" = no
18671 # transform the option
18672 if test "$LD_RPATH_OPT" = "-R " ; then
18673 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
18675 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
18678 # if we have not already added this, add it now
18679 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
18680 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
18682 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
18684 echo "${as_me:-configure}:18684: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
18686 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
18691 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
18693 LDFLAGS=$cf_rpath_dst
18695 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
18697 echo "${as_me:-configure}:18697: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
18699 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
18701 echo "${as_me:-configure}:18701: testing ...checking LIBS $LIBS ..." 1>&5
18704 for cf_rpath_src in $LIBS
18706 case $cf_rpath_src in
18709 # check if this refers to a directory which we will ignore
18711 if test -n "$cf_rpath_list"
18713 for cf_rpath_item in $cf_rpath_list
18715 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
18723 if test "$cf_rpath_skip" = no
18725 # transform the option
18726 if test "$LD_RPATH_OPT" = "-R " ; then
18727 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
18729 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
18732 # if we have not already added this, add it now
18733 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
18734 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
18736 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
18738 echo "${as_me:-configure}:18738: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
18740 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
18745 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
18749 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
18751 echo "${as_me:-configure}:18751: testing ...checked LIBS $LIBS ..." 1>&5
18753 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
18755 echo "${as_me:-configure}:18755: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
18758 echo "$as_me:18758: result: no" >&5
18759 echo "${ECHO_T}no" >&6
18767 ac_config_files="$ac_config_files Makefile"
18768 ac_config_commands="$ac_config_commands default"
18769 cat >confcache <<\_ACEOF
18770 # This file is a shell script that caches the results of configure
18771 # tests run on this system so they can be shared between configure
18772 # scripts and configure runs, see configure's option --config-cache.
18773 # It is not useful on other systems. If it contains results you don't
18774 # want to keep, you may remove or edit it.
18776 # config.status only pays attention to the cache file if you give it
18777 # the --recheck option to rerun configure.
18779 # `ac_cv_env_foo' variables (set or unset) will be overriden when
18780 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18781 # following values.
18785 # The following way of writing the cache mishandles newlines in values,
18786 # but we know of no workaround that is simple, portable, and efficient.
18787 # So, don't put newlines in cache variables' values.
18788 # Ultrix sh set writes to stderr and can't be redirected directly,
18789 # and sets the high bit in the cache file unless we assign to the vars.
18792 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18794 # `set' does not quote correctly, so add quotes (double-quote
18795 # substitution turns \\\\ into \\, and sed turns \\ into \).
18798 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18801 # `set' quotes correctly as required by POSIX, so do not add quotes.
18803 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18810 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18812 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18814 if cmp -s $cache_file confcache; then :; else
18815 if test -w $cache_file; then
18816 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18817 cat confcache >$cache_file
18819 echo "not updating unwritable cache $cache_file"
18824 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18825 # Let make expand exec_prefix.
18826 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18828 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18829 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18830 # trailing colons and then remove the whole line if VPATH becomes empty
18831 # (actually we leave an empty line to preserve line numbers).
18832 if test "x$srcdir" = x.; then
18833 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18834 s/:*\$(srcdir):*/:/;
18835 s/:*\${srcdir}:*/:/;
18837 s/^\([^=]*=[ ]*\):*/\1/;
18843 DEFS=-DHAVE_CONFIG_H
18845 : ${CONFIG_STATUS=./config.status}
18846 ac_clean_files_save=$ac_clean_files
18847 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18848 { echo "$as_me:18848: creating $CONFIG_STATUS" >&5
18849 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18850 cat >$CONFIG_STATUS <<_ACEOF
18852 # Generated automatically by configure.
18853 # Run this file to recreate the current configuration.
18854 # Compiler output produced by configure, useful for debugging
18855 # configure, is in config.log if it exists.
18858 SHELL=\${CONFIG_SHELL-$SHELL}
18859 ac_cs_invocation="\$0 \$@"
18863 cat >>$CONFIG_STATUS <<\_ACEOF
18864 # Be Bourne compatible
18865 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18868 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18872 # Name of the executable.
18873 as_me=`echo "$0" |sed 's,.*[\\/],,'`
18875 if expr a : '\(a\)' >/dev/null 2>&1; then
18881 rm -f conf$$ conf$$.exe conf$$.file
18883 if ln -s conf$$.file conf$$ 2>/dev/null; then
18884 # We could just check for DJGPP; but this test a) works b) is more generic
18885 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18886 if test -f conf$$.exe; then
18887 # Don't use ln at all; we don't have any links
18892 elif ln conf$$.file conf$$ 2>/dev/null; then
18897 rm -f conf$$ conf$$.exe conf$$.file
18899 as_executable_p="test -f"
18901 # Support unset when possible.
18902 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18909 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
18910 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
18911 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
18912 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
18913 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
18914 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
18915 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
18916 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
18919 # We need space, tab and new line, in precisely that order.
18925 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
18931 # Files that config.status was made for.
18932 if test -n "$ac_config_files"; then
18933 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18936 if test -n "$ac_config_headers"; then
18937 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18940 if test -n "$ac_config_links"; then
18941 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18944 if test -n "$ac_config_commands"; then
18945 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18948 cat >>$CONFIG_STATUS <<\EOF
18951 \`$as_me' instantiates files from templates according to the
18952 current configuration.
18954 Usage: $0 [OPTIONS] [FILE]...
18956 -h, --help print this help, then exit
18957 -V, --version print version number, then exit
18958 -d, --debug don't remove temporary files
18959 --recheck update $as_me by reconfiguring in the same conditions
18960 --file=FILE[:TEMPLATE]
18961 instantiate the configuration file FILE
18962 --header=FILE[:TEMPLATE]
18963 instantiate the configuration header FILE
18965 Configuration files:
18968 Configuration headers:
18971 Configuration commands:
18974 Report bugs to <dickey@invisible-island.net>."
18977 cat >>$CONFIG_STATUS <<EOF
18980 configured by $0, generated by GNU Autoconf 2.52.20170501,
18981 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18983 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18984 Free Software Foundation, Inc.
18985 This config.status script is free software; the Free Software Foundation
18986 gives unlimited permission to copy, distribute and modify it."
18991 cat >>$CONFIG_STATUS <<\EOF
18992 # If no file are specified by the user, then we need to provide default
18993 # value. By we need to know if files were specified by the user.
18999 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19000 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19002 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
19006 *) # This is not an option, so the user has probably given explicit
19008 ac_need_defaults=false;;
19012 # Handling of the options.
19014 cat >>$CONFIG_STATUS <<EOF
19015 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19016 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
19017 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
19019 cat >>$CONFIG_STATUS <<\EOF
19020 --version | --vers* | -V )
19021 echo "$ac_cs_version"; exit 0 ;;
19023 # Conflict between --help and --header
19024 { { echo "$as_me:19024: error: ambiguous option: $1
19025 Try \`$0 --help' for more information." >&5
19026 echo "$as_me: error: ambiguous option: $1
19027 Try \`$0 --help' for more information." >&2;}
19028 { (exit 1); exit 1; }; };;
19029 --help | --hel | -h )
19030 echo "$ac_cs_usage"; exit 0 ;;
19031 --debug | --d* | -d )
19033 --file | --fil | --fi | --f )
19035 CONFIG_FILES="$CONFIG_FILES $1"
19036 ac_need_defaults=false;;
19037 --header | --heade | --head | --hea )
19039 CONFIG_HEADERS="$CONFIG_HEADERS $1"
19040 ac_need_defaults=false;;
19042 # This is an error.
19043 -*) { { echo "$as_me:19043: error: unrecognized option: $1
19044 Try \`$0 --help' for more information." >&5
19045 echo "$as_me: error: unrecognized option: $1
19046 Try \`$0 --help' for more information." >&2;}
19047 { (exit 1); exit 1; }; } ;;
19049 *) ac_config_targets="$ac_config_targets $1" ;;
19058 ## ----------------------- ##
19059 ## Running config.status. ##
19060 ## ----------------------- ##
19062 This file was extended by $as_me 2.52.20170501, executed with
19063 CONFIG_FILES = $CONFIG_FILES
19064 CONFIG_HEADERS = $CONFIG_HEADERS
19065 CONFIG_LINKS = $CONFIG_LINKS
19066 CONFIG_COMMANDS = $CONFIG_COMMANDS
19067 > $ac_cs_invocation
19068 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19073 cat >>$CONFIG_STATUS <<EOF
19075 # INIT-COMMANDS section.
19085 cat >>$CONFIG_STATUS <<\EOF
19086 for ac_config_target in $ac_config_targets
19088 case "$ac_config_target" in
19089 # Handling of arguments.
19090 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19091 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19092 "ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ncurses_cfg.h:ncurses_tst.hin" ;;
19093 *) { { echo "$as_me:19093: error: invalid argument: $ac_config_target" >&5
19094 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19095 { (exit 1); exit 1; }; };;
19099 # If the user did not use the arguments to specify the items to instantiate,
19100 # then the envvar interface is used. Set only those that are not.
19101 # We use the long form for the default assignment because of an extremely
19102 # bizarre bug on SunOS 4.1.3.
19103 if $ac_need_defaults; then
19104 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19105 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19106 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19109 # Create a temporary directory, and hook for its removal unless debugging.
19112 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19113 trap '{ (exit 1); exit 1; }' 1 2 13 15
19116 # Create a (secure) tmp directory for tmp files.
19119 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
19120 test -n "$tmp" && test -d "$tmp"
19123 tmp=$TMPDIR/cs$$-$RANDOM
19124 (umask 077 && mkdir $tmp)
19127 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
19128 { (exit 1); exit 1; }
19133 cat >>$CONFIG_STATUS <<EOF
19136 # CONFIG_FILES section.
19139 # No need to generate the scripts if there are no CONFIG_FILES.
19140 # This happens for instance when ./config.status config.h
19141 if test -n "\$CONFIG_FILES"; then
19142 # Protect against being on the right side of a sed subst in config.status.
19143 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19144 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19145 s,@SHELL@,$SHELL,;t t
19146 s,@exec_prefix@,$exec_prefix,;t t
19147 s,@prefix@,$prefix,;t t
19148 s,@program_transform_name@,$program_transform_name,;t t
19149 s,@bindir@,$bindir,;t t
19150 s,@sbindir@,$sbindir,;t t
19151 s,@libexecdir@,$libexecdir,;t t
19152 s,@datarootdir@,$datarootdir,;t t
19153 s,@datadir@,$datadir,;t t
19154 s,@sysconfdir@,$sysconfdir,;t t
19155 s,@sharedstatedir@,$sharedstatedir,;t t
19156 s,@localstatedir@,$localstatedir,;t t
19157 s,@libdir@,$libdir,;t t
19158 s,@includedir@,$includedir,;t t
19159 s,@oldincludedir@,$oldincludedir,;t t
19160 s,@infodir@,$infodir,;t t
19161 s,@mandir@,$mandir,;t t
19162 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19163 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19164 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19165 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19166 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19167 s,@build_alias@,$build_alias,;t t
19168 s,@host_alias@,$host_alias,;t t
19169 s,@target_alias@,$target_alias,;t t
19170 s,@ECHO_C@,$ECHO_C,;t t
19171 s,@ECHO_N@,$ECHO_N,;t t
19172 s,@ECHO_T@,$ECHO_T,;t t
19173 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19174 s,@DEFS@,$DEFS,;t t
19175 s,@LIBS@,$LIBS,;t t
19176 s,@build@,$build,;t t
19177 s,@build_cpu@,$build_cpu,;t t
19178 s,@build_vendor@,$build_vendor,;t t
19179 s,@build_os@,$build_os,;t t
19180 s,@host@,$host,;t t
19181 s,@host_cpu@,$host_cpu,;t t
19182 s,@host_vendor@,$host_vendor,;t t
19183 s,@host_os@,$host_os,;t t
19184 s,@SET_MAKE@,$SET_MAKE,;t t
19186 s,@CFLAGS@,$CFLAGS,;t t
19187 s,@LDFLAGS@,$LDFLAGS,;t t
19188 s,@CPPFLAGS@,$CPPFLAGS,;t t
19189 s,@ac_ct_CC@,$ac_ct_CC,;t t
19190 s,@EXEEXT@,$EXEEXT,;t t
19191 s,@OBJEXT@,$OBJEXT,;t t
19192 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
19195 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19196 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19197 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19198 s,@LINT@,$LINT,;t t
19199 s,@LINT_OPTS@,$LINT_OPTS,;t t
19200 s,@CTAGS@,$CTAGS,;t t
19201 s,@ETAGS@,$ETAGS,;t t
19202 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
19203 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
19204 s,@MATH_LIB@,$MATH_LIB,;t t
19205 s,@top_builddir@,$top_builddir,;t t
19206 s,@CC_G_OPT@,$CC_G_OPT,;t t
19207 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
19208 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
19209 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
19210 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
19212 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
19213 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
19214 s,@LD_MODEL@,$LD_MODEL,;t t
19215 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
19216 s,@LIBTOOL@,$LIBTOOL,;t t
19217 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
19218 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
19219 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
19220 s,@LIB_LINK@,$LIB_LINK,;t t
19221 s,@LINK_TESTS@,$LINK_TESTS,;t t
19222 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19223 s,@PACKAGE@,$PACKAGE,;t t
19224 s,@PTHREAD@,$PTHREAD,;t t
19225 s,@TEST_ARGS@,$TEST_ARGS,;t t
19226 s,@TEST_DEPS@,$TEST_DEPS,;t t
19227 s,@TEST_LIBS@,$TEST_LIBS,;t t
19228 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
19229 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
19230 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
19231 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
19232 s,@includesubdir@,$includesubdir,;t t
19233 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
19234 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
19235 s,@ECHO_LT@,$ECHO_LT,;t t
19236 s,@ECHO_LD@,$ECHO_LD,;t t
19237 s,@RULE_CC@,$RULE_CC,;t t
19238 s,@SHOW_CC@,$SHOW_CC,;t t
19239 s,@ECHO_CC@,$ECHO_CC,;t t
19240 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
19241 s,@NCURSES_CONFIG@,$NCURSES_CONFIG,;t t
19242 s,@ac_ct_NCURSES_CONFIG@,$ac_ct_NCURSES_CONFIG,;t t
19243 s,@X_CFLAGS@,$X_CFLAGS,;t t
19244 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19245 s,@X_LIBS@,$X_LIBS,;t t
19246 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19247 s,@XCURSES_CONFIG@,$XCURSES_CONFIG,;t t
19248 s,@ac_ct_XCURSES_CONFIG@,$ac_ct_XCURSES_CONFIG,;t t
19249 s,@RGB_PATH@,$RGB_PATH,;t t
19250 s,@no_x11_rgb@,$no_x11_rgb,;t t
19251 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
19252 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
19253 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
19258 cat >>$CONFIG_STATUS <<\EOF
19259 # Split the substitutions into bite-sized pieces for seds with
19260 # small command number limits, like on Digital OSF/1 and HP-UX.
19261 ac_max_sed_lines=48
19262 ac_sed_frag=1 # Number of current file.
19263 ac_beg=1 # First line for current file.
19264 ac_end=$ac_max_sed_lines # Line after last line for current file.
19267 while $ac_more_lines; do
19268 if test $ac_beg -gt 1; then
19269 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19271 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19273 if test ! -s $tmp/subs.frag; then
19274 ac_more_lines=false
19276 # The purpose of the label and of the branching condition is to
19277 # speed up the sed processing (if there are no `@' at all, there
19278 # is no need to browse any of the substitutions).
19279 # These are the two extra sed commands mentioned above.
19281 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19282 # It is possible to make a multiline substitution using escaped newlines.
19283 # Ensure that we do not split the substitution between script fragments.
19285 ac_END=`expr $ac_end + $ac_max_sed_lines`
19286 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
19287 if test -s $tmp/subs.next; then
19288 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
19289 if test ! -s $tmp/subs.edit; then
19290 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
19291 if test ! -s $tmp/subs.edit; then
19292 if test $ac_beg -gt 1; then
19293 ac_end=`expr $ac_end - 1`
19300 if test -z "$ac_sed_cmds"; then
19301 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19303 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19305 ac_sed_frag=`expr $ac_sed_frag + 1`
19307 ac_end=`expr $ac_end + $ac_max_sed_lines`
19310 if test -z "$ac_sed_cmds"; then
19313 fi # test -n "$CONFIG_FILES"
19316 cat >>$CONFIG_STATUS <<\EOF
19317 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19318 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19320 - | *:- | *:-:* ) # input from stdin
19322 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19323 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19324 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19325 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19326 * ) ac_file_in=$ac_file.in ;;
19329 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19330 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19331 X"$ac_file" : 'X\(//\)[^/]' \| \
19332 X"$ac_file" : 'X\(//\)$' \| \
19333 X"$ac_file" : 'X\(/\)' \| \
19334 . : '\(.\)' 2>/dev/null ||
19336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19337 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19338 /^X\(\/\/\)$/{ s//\1/; q; }
19339 /^X\(\/\).*/{ s//\1/; q; }
19341 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19342 { case "$ac_dir" in
19343 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19347 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19348 case $as_mkdir_dir in
19349 # Skip DOS drivespec
19350 ?:) as_incr_dir=$as_mkdir_dir ;;
19352 as_incr_dir=$as_incr_dir/$as_mkdir_dir
19353 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
19358 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
19359 # A "../" for each directory in $ac_dir_suffix.
19360 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
19362 ac_dir_suffix= ac_dots=
19367 if test -z "$ac_dots"; then
19370 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
19372 [\\/]* | ?:[\\/]* )
19373 ac_srcdir=$srcdir$ac_dir_suffix;
19374 ac_top_srcdir=$srcdir ;;
19375 *) # Relative path.
19376 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
19377 ac_top_srcdir=$ac_dots$srcdir ;;
19381 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19382 *) ac_INSTALL=$ac_dots$INSTALL ;;
19385 if test x"$ac_file" != x-; then
19386 { echo "$as_me:19386: creating $ac_file" >&5
19387 echo "$as_me: creating $ac_file" >&6;}
19390 # Let's still pretend it is `configure' which instantiates (i.e., don't
19391 # use $as_me), people would be surprised to read:
19392 # /* config.h. Generated automatically by config.status. */
19393 configure_input="Generated automatically from `echo $ac_file_in |
19394 sed 's,.*/,,'` by configure."
19396 # First look for the input files in the build tree, otherwise in the
19398 ac_file_inputs=`IFS=:
19399 for f in $ac_file_in; do
19401 -) echo $tmp/stdin ;;
19403 # Absolute (can't be DOS-style, as IFS=:)
19404 test -f "$f" || { { echo "$as_me:19404: error: cannot find input file: $f" >&5
19405 echo "$as_me: error: cannot find input file: $f" >&2;}
19406 { (exit 1); exit 1; }; }
19409 if test -f "$f"; then
19412 elif test -f "$srcdir/$f"; then
19417 { { echo "$as_me:19417: error: cannot find input file: $f" >&5
19418 echo "$as_me: error: cannot find input file: $f" >&2;}
19419 { (exit 1); exit 1; }; }
19422 done` || { (exit 1); exit 1; }
19424 cat >>$CONFIG_STATUS <<\EOF
19425 ac_warn_datarootdir=no
19426 if test x"$ac_file" != x-; then
19427 for ac_item in $ac_file_inputs
19429 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
19430 if test -n "$ac_seen"; then
19431 ac_used=`grep '@datarootdir@' $ac_item`
19432 if test -z "$ac_used"; then
19433 { echo "$as_me:19433: WARNING: datarootdir was used implicitly but not set:
19435 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
19437 ac_warn_datarootdir=yes
19440 ac_seen=`grep '${datarootdir}' $ac_item`
19441 if test -n "$ac_seen"; then
19442 { echo "$as_me:19442: WARNING: datarootdir was used explicitly but not set:
19444 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
19446 ac_warn_datarootdir=yes
19451 if test "x$ac_warn_datarootdir" = xyes; then
19452 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
19456 cat >>$CONFIG_STATUS <<EOF
19460 cat >>$CONFIG_STATUS <<\EOF
19462 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19463 s,@configure_input@,$configure_input,;t t
19464 s,@srcdir@,$ac_srcdir,;t t
19465 s,@top_srcdir@,$ac_top_srcdir,;t t
19466 s,@INSTALL@,$ac_INSTALL,;t t
19467 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19469 if test x"$ac_file" != x-; then
19470 cp $tmp/out $ac_file
19472 for ac_name in prefix exec_prefix datarootdir
19474 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
19475 if test -n "$ac_seen"; then
19476 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
19477 if test -z "$ac_init"; then
19478 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
19479 { echo "$as_me:19479: WARNING: Variable $ac_name is used but was not set:
19481 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
19486 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
19487 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
19488 if test -s $tmp/out; then
19489 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
19490 { echo "$as_me:19490: WARNING: Some variables may not be substituted:
19492 echo "$as_me: WARNING: Some variables may not be substituted:
19502 cat >>$CONFIG_STATUS <<\EOF
19505 # CONFIG_HEADER section.
19508 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19509 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19511 # ac_d sets the value in "#define NAME VALUE" lines.
19512 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19513 ac_dB='[ ].*$,\1#\2'
19516 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
19517 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19518 ac_iB='\([ ]\),\1#\2define\3'
19521 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19522 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19523 ac_uB='$,\1#\2define\3'
19527 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19528 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19530 - | *:- | *:-:* ) # input from stdin
19532 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19533 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19534 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19535 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19536 * ) ac_file_in=$ac_file.in ;;
19539 test x"$ac_file" != x- && { echo "$as_me:19539: creating $ac_file" >&5
19540 echo "$as_me: creating $ac_file" >&6;}
19542 # First look for the input files in the build tree, otherwise in the
19544 ac_file_inputs=`IFS=:
19545 for f in $ac_file_in; do
19547 -) echo $tmp/stdin ;;
19549 # Absolute (can't be DOS-style, as IFS=:)
19550 test -f "$f" || { { echo "$as_me:19550: error: cannot find input file: $f" >&5
19551 echo "$as_me: error: cannot find input file: $f" >&2;}
19552 { (exit 1); exit 1; }; }
19555 if test -f "$f"; then
19558 elif test -f "$srcdir/$f"; then
19563 { { echo "$as_me:19563: error: cannot find input file: $f" >&5
19564 echo "$as_me: error: cannot find input file: $f" >&2;}
19565 { (exit 1); exit 1; }; }
19568 done` || { (exit 1); exit 1; }
19569 # Remove the trailing spaces.
19570 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19574 # Transform confdefs.h into a list of #define's. We won't use it as a sed
19575 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
19576 # be either 'cat' or 'sort'.
19577 cat confdefs.h | uniq >conftest.vals
19579 # Break up conftest.vals because some shells have a limit on
19580 # the size of here documents, and old seds have small limits too.
19582 rm -f conftest.tail
19583 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
19584 while grep . conftest.vals >/dev/null
19586 # Write chunks of a limited-size here document to conftest.frag.
19587 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
19588 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
19589 echo 'CEOF' >> $CONFIG_STATUS
19590 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
19591 rm -f conftest.vals
19592 mv conftest.tail conftest.vals
19594 rm -f conftest.vals
19596 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
19598 echo ' cat >> conftest.edit <<CEOF
19599 /@DEFS@/r conftest.frag
19602 sed -f conftest.edit $tmp/in > $tmp/out
19604 mv $tmp/out $tmp/in
19605 rm -f conftest.edit conftest.frag
19606 ' >> $CONFIG_STATUS
19608 cat >>$CONFIG_STATUS <<\EOF
19609 # Let's still pretend it is `configure' which instantiates (i.e., don't
19610 # use $as_me), people would be surprised to read:
19611 # /* config.h. Generated automatically by config.status. */
19612 if test x"$ac_file" = x-; then
19613 echo "/* Generated automatically by configure. */" >$tmp/config.h
19615 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
19617 cat $tmp/in >>$tmp/config.h
19619 if test x"$ac_file" != x-; then
19620 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
19621 { echo "$as_me:19621: $ac_file is unchanged" >&5
19622 echo "$as_me: $ac_file is unchanged" >&6;}
19624 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19625 X"$ac_file" : 'X\(//\)[^/]' \| \
19626 X"$ac_file" : 'X\(//\)$' \| \
19627 X"$ac_file" : 'X\(/\)' \| \
19628 . : '\(.\)' 2>/dev/null ||
19630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19631 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19632 /^X\(\/\/\)$/{ s//\1/; q; }
19633 /^X\(\/\).*/{ s//\1/; q; }
19635 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19636 { case "$ac_dir" in
19637 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19641 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19642 case $as_mkdir_dir in
19643 # Skip DOS drivespec
19644 ?:) as_incr_dir=$as_mkdir_dir ;;
19646 as_incr_dir=$as_incr_dir/$as_mkdir_dir
19647 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
19654 mv $tmp/config.h $ac_file
19658 rm -f $tmp/config.h
19662 cat >>$CONFIG_STATUS <<\EOF
19664 # CONFIG_COMMANDS section.
19666 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19667 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19668 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19675 if test ! -d $srcdir/$cf_dir; then
19677 elif test -f $srcdir/$cf_dir/programs; then
19678 $AWK -f $srcdir/mk-test.awk INSTALL=yes ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
19682 cat >>Makefile <<TEST_EOF
19684 # These rules are generated so we do not rely on suffix rules, which do not
19685 # work consistently for different make-programs (the '\$(MODEL)/' confuses
19686 # some, and the '\$x' confuses others).
19689 LIST=`sed -e 's/[ ].*//' -e '/^[#@]/d' $srcdir/modules`
19692 cat >>Makefile <<TEST_EOF
19694 \$(MODEL)/$N.o : \$(srcdir)/$N.c \\
19695 \$(srcdir)/test.priv.h \\
19698 $ECHO_CC\$(CC) -c \$(CFLAGS_DEFAULT) -DMODULE_NAME="$N" \$(srcdir)/$N.c
19702 if test -f ../config.guess && test -f ../config.sub
19704 cat >>Makefile <<TEST_EOF
19706 # if we used CF_INHERIT for getting these files, we can remove them
19708 rm -f config.guess config.sub
19716 cat >>$CONFIG_STATUS <<\EOF
19718 { (exit 0); exit 0; }
19720 chmod +x $CONFIG_STATUS
19721 ac_clean_files=$ac_clean_files_save
19723 # configure is writing to config.log, and then calls config.status.
19724 # config.status does its own redirection, appending to config.log.
19725 # Unfortunately, on DOS this fails, as config.log is still kept open
19726 # by configure, so config.status won't be able to write to it; its
19727 # output is simply discarded. So we exec the FD to /dev/null,
19728 # effectively closing config.log, so it can be properly (re)opened and
19729 # appended to by config.status. When coming back to configure, we
19730 # need to make the FD available again.
19731 if test "$no_create" != yes; then
19734 $SHELL $CONFIG_STATUS || ac_cs_success=false
19736 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19737 # would make configure fail if this is the last instruction.
19738 $ac_cs_success || { (exit 1); exit 1; }