2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.20150926.
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 Testing/development Options:
677 --enable-warnings test: turn on gcc compiler warnings
678 --with-dmalloc test: use Gray Watson's dmalloc library
679 --with-dbmalloc test: use Conor Cahill's dbmalloc library
680 --with-valgrind test: use valgrind
681 --disable-leaks test: free permanent memory, analyze leaks
682 --disable-rpath-hack don't add rpath options for additional libraries
684 Some influential environment variables:
685 CC C compiler command
686 CFLAGS C compiler flags
687 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
688 nonstandard directory <lib dir>
689 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
690 headers in a nonstandard directory <include dir>
693 Use these variables to override the choices made by `configure' or to help
694 it to find libraries and programs with nonstandard names/locations.
699 if test "$ac_init_help" = "recursive"; then
700 # If there are subdirs, report their specific --help.
702 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
704 # A "../" for each directory in /$ac_subdir.
705 ac_dots=`echo $ac_subdir |
706 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
709 .) # No --srcdir option. We are building in place.
710 ac_sub_srcdir=$srcdir ;;
711 [\\/]* | ?:[\\/]* ) # Absolute path.
712 ac_sub_srcdir=$srcdir/$ac_subdir ;;
714 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
717 # Check for guested configure; otherwise get Cygnus style configure.
718 if test -f $ac_sub_srcdir/configure.gnu; then
720 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
721 elif test -f $ac_sub_srcdir/configure; then
723 $SHELL $ac_sub_srcdir/configure --help=recursive
724 elif test -f $ac_sub_srcdir/configure.ac ||
725 test -f $ac_sub_srcdir/configure.in; then
729 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
735 test -n "$ac_init_help" && exit 0
736 if $ac_init_version; then
739 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
740 Free Software Foundation, Inc.
741 This configure script is free software; the Free Software Foundation
742 gives unlimited permission to copy, distribute and modify it.
748 This file contains any messages produced by compilers while
749 running configure, to aid debugging if configure makes a mistake.
751 It was created by $as_me, which was
752 generated by GNU Autoconf 2.52.20150926. Invocation command line was
763 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
764 uname -m = `(uname -m) 2>/dev/null || echo unknown`
765 uname -r = `(uname -r) 2>/dev/null || echo unknown`
766 uname -s = `(uname -s) 2>/dev/null || echo unknown`
767 uname -v = `(uname -v) 2>/dev/null || echo unknown`
769 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
770 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
772 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
773 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
774 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
775 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
776 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
777 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
778 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
792 # Keep a trace of the command line.
793 # Strip out --no-create and --no-recursion so they do not pile up.
794 # Also quote any args containing shell meta-characters.
800 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
801 | --no-cr | --no-c) ;;
802 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
803 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
804 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
805 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
806 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
808 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
811 # Get rid of the leading space.
814 # When interrupted or exit'd, cleanup temporary files, and complete
815 # config.log. We remove comments because anyway the quotes in there
816 # would cause problems or look ugly.
818 # Save into config.log some information that might help in debugging.
820 echo "## ----------------- ##" >&5
821 echo "## Cache variables. ##" >&5
822 echo "## ----------------- ##" >&5
824 # The following way of writing the cache mishandles newlines in values,
827 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
830 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
831 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
835 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
839 sed "/^$/d" confdefs.h >conftest.log
840 if test -s conftest.log; then
842 echo "## ------------ ##" >&5
843 echo "## confdefs.h. ##" >&5
844 echo "## ------------ ##" >&5
849 test "$ac_signal" != 0 &&
850 echo "$as_me: caught signal $ac_signal" >&5
851 echo "$as_me: exit $exit_status" >&5
852 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
855 for ac_signal in 1 2 13 15; do
856 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
860 # confdefs.h avoids OS command line length limits that DEFS can exceed.
861 rm -rf conftest* confdefs.h
862 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
865 # Let the site file select an alternate cache file if it wants to.
866 # Prefer explicitly selected file to automatically selected ones.
867 if test -z "$CONFIG_SITE"; then
868 if test "x$prefix" != xNONE; then
869 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
871 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
874 for ac_site_file in $CONFIG_SITE; do
875 if test -r "$ac_site_file"; then
876 { echo "$as_me:876: loading site script $ac_site_file" >&5
877 echo "$as_me: loading site script $ac_site_file" >&6;}
878 cat "$ac_site_file" >&5
883 if test -r "$cache_file"; then
884 # Some versions of bash will fail to source /dev/null (special
885 # files actually), so we avoid doing that.
886 if test -f "$cache_file"; then
887 { echo "$as_me:887: loading cache $cache_file" >&5
888 echo "$as_me: loading cache $cache_file" >&6;}
890 [\\/]* | ?:[\\/]* ) . $cache_file;;
895 { echo "$as_me:895: creating cache $cache_file" >&5
896 echo "$as_me: creating cache $cache_file" >&6;}
900 # Check that the precious variables saved in the cache have kept the same
902 ac_cache_corrupted=false
903 for ac_var in `(set) 2>&1 |
904 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
905 eval ac_old_set=\$ac_cv_env_${ac_var}_set
906 eval ac_new_set=\$ac_env_${ac_var}_set
907 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
908 eval ac_new_val="\$ac_env_${ac_var}_value"
909 case $ac_old_set,$ac_new_set in
911 { echo "$as_me:911: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
912 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
913 ac_cache_corrupted=: ;;
915 { echo "$as_me:915: error: \`$ac_var' was not set in the previous run" >&5
916 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
917 ac_cache_corrupted=: ;;
920 if test "x$ac_old_val" != "x$ac_new_val"; then
921 { echo "$as_me:921: error: \`$ac_var' has changed since the previous run:" >&5
922 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
923 { echo "$as_me:923: former value: $ac_old_val" >&5
924 echo "$as_me: former value: $ac_old_val" >&2;}
925 { echo "$as_me:925: current value: $ac_new_val" >&5
926 echo "$as_me: current value: $ac_new_val" >&2;}
930 # Pass precious variables to config.status. It doesn't matter if
931 # we pass some twice (in addition to the command line arguments).
932 if test "$ac_new_set" = set; then
934 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
935 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
936 ac_configure_args="$ac_configure_args '$ac_arg'"
938 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
943 if $ac_cache_corrupted; then
944 { echo "$as_me:944: error: changes in the environment can compromise the build" >&5
945 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
946 { { echo "$as_me:946: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
947 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
948 { (exit 1); exit 1; }; }
952 ac_cpp='$CPP $CPPFLAGS'
953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
956 ac_main_return=return
958 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
959 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
961 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
962 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
964 echo "#! $SHELL" >conftest.sh
965 echo "exit 0" >>conftest.sh
967 if { (echo "$as_me:967: PATH=\".;.\"; conftest.sh") >&5
968 (PATH=".;."; conftest.sh) 2>&5
970 echo "$as_me:970: \$? = $ac_status" >&5
971 (exit $ac_status); }; then
972 ac_path_separator=';'
976 PATH_SEPARATOR="$ac_path_separator"
979 ac_config_headers="$ac_config_headers ncurses_cfg.h:ncurses_tst.hin"
981 test -f config.guess || ( test -f ../config.guess && cp ../config.guess ./ )
983 test -f config.sub || ( test -f ../config.sub && cp ../config.sub ./ )
986 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
987 if test -f $ac_dir/install-sh; then
989 ac_install_sh="$ac_aux_dir/install-sh -c"
991 elif test -f $ac_dir/install.sh; then
993 ac_install_sh="$ac_aux_dir/install.sh -c"
995 elif test -f $ac_dir/shtool; then
997 ac_install_sh="$ac_aux_dir/shtool install -c"
1001 if test -z "$ac_aux_dir"; then
1002 { { echo "$as_me:1002: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1003 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1004 { (exit 1); exit 1; }; }
1006 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1007 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1008 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1010 # Make sure we can run config.sub.
1011 $ac_config_sub sun4 >/dev/null 2>&1 ||
1012 { { echo "$as_me:1012: error: cannot run $ac_config_sub" >&5
1013 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1014 { (exit 1); exit 1; }; }
1016 echo "$as_me:1016: checking build system type" >&5
1017 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1018 if test "${ac_cv_build+set}" = set; then
1019 echo $ECHO_N "(cached) $ECHO_C" >&6
1021 ac_cv_build_alias=$build_alias
1022 test -z "$ac_cv_build_alias" &&
1023 ac_cv_build_alias=`$ac_config_guess`
1024 test -z "$ac_cv_build_alias" &&
1025 { { echo "$as_me:1025: error: cannot guess build type; you must specify one" >&5
1026 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1027 { (exit 1); exit 1; }; }
1028 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1029 { { echo "$as_me:1029: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1030 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1031 { (exit 1); exit 1; }; }
1034 echo "$as_me:1034: result: $ac_cv_build" >&5
1035 echo "${ECHO_T}$ac_cv_build" >&6
1037 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1038 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1039 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1041 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1042 echo "$as_me:1042: checking host system type" >&5
1043 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1044 if test "${ac_cv_host+set}" = set; then
1045 echo $ECHO_N "(cached) $ECHO_C" >&6
1047 ac_cv_host_alias=$host_alias
1048 test -z "$ac_cv_host_alias" &&
1049 ac_cv_host_alias=$ac_cv_build_alias
1050 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1051 { { echo "$as_me:1051: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1052 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1053 { (exit 1); exit 1; }; }
1056 echo "$as_me:1056: result: $ac_cv_host" >&5
1057 echo "${ECHO_T}$ac_cv_host" >&6
1059 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1060 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1061 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1063 system_name="$host_os"
1065 system_name="`(uname -s -r) 2>/dev/null`"
1066 if test -z "$system_name" ; then
1067 system_name="`(hostname) 2>/dev/null`"
1070 test -n "$system_name" &&
1071 cat >>confdefs.h <<EOF
1072 #define SYSTEM_NAME "$system_name"
1075 if test "${cf_cv_system_name+set}" = set; then
1076 echo $ECHO_N "(cached) $ECHO_C" >&6
1078 cf_cv_system_name="$system_name"
1081 test -z "$system_name" && system_name="$cf_cv_system_name"
1082 test -n "$cf_cv_system_name" && echo "$as_me:1082: result: Configuring for $cf_cv_system_name" >&5
1083 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1085 if test ".$system_name" != ".$cf_cv_system_name" ; then
1086 echo "$as_me:1086: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1087 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1088 { { echo "$as_me:1088: error: \"Please remove config.cache and try again.\"" >&5
1089 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1090 { (exit 1); exit 1; }; }
1093 test "$program_prefix" != NONE &&
1094 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1095 # Use a double $ so make ignores it.
1096 test "$program_suffix" != NONE &&
1097 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1098 # Double any \ or $. echo might interpret backslashes.
1099 # By default was `s,x,x', remove it if useless.
1100 cat <<\_ACEOF >conftest.sed
1101 s/[\\$]/&&/g;s/;s,x,x,$//
1103 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1106 echo "$as_me:1106: checking whether ${MAKE-make} sets \${MAKE}" >&5
1107 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1108 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1109 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1110 echo $ECHO_N "(cached) $ECHO_C" >&6
1112 cat >conftest.make <<\EOF
1114 @echo 'ac_maketemp="${MAKE}"'
1116 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1117 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1118 if test -n "$ac_maketemp"; then
1119 eval ac_cv_prog_make_${ac_make}_set=yes
1121 eval ac_cv_prog_make_${ac_make}_set=no
1125 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1126 echo "$as_me:1126: result: yes" >&5
1127 echo "${ECHO_T}yes" >&6
1130 echo "$as_me:1130: result: no" >&5
1131 echo "${ECHO_T}no" >&6
1132 SET_MAKE="MAKE=${MAKE-make}"
1136 ac_cpp='$CPP $CPPFLAGS'
1137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1140 ac_main_return=return
1141 if test -n "$ac_tool_prefix"; then
1142 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1143 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1144 echo "$as_me:1144: checking for $ac_word" >&5
1145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1146 if test "${ac_cv_prog_CC+set}" = set; then
1147 echo $ECHO_N "(cached) $ECHO_C" >&6
1149 if test -n "$CC"; then
1150 ac_cv_prog_CC="$CC" # Let the user override the test.
1152 ac_save_IFS=$IFS; IFS=$ac_path_separator
1154 for ac_dir in $ac_dummy; do
1156 test -z "$ac_dir" && ac_dir=.
1157 $as_executable_p "$ac_dir/$ac_word" || continue
1158 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1159 echo "$as_me:1159: found $ac_dir/$ac_word" >&5
1166 if test -n "$CC"; then
1167 echo "$as_me:1167: result: $CC" >&5
1168 echo "${ECHO_T}$CC" >&6
1170 echo "$as_me:1170: result: no" >&5
1171 echo "${ECHO_T}no" >&6
1175 if test -z "$ac_cv_prog_CC"; then
1177 # Extract the first word of "gcc", so it can be a program name with args.
1178 set dummy gcc; ac_word=$2
1179 echo "$as_me:1179: checking for $ac_word" >&5
1180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1181 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1182 echo $ECHO_N "(cached) $ECHO_C" >&6
1184 if test -n "$ac_ct_CC"; then
1185 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1187 ac_save_IFS=$IFS; IFS=$ac_path_separator
1189 for ac_dir in $ac_dummy; do
1191 test -z "$ac_dir" && ac_dir=.
1192 $as_executable_p "$ac_dir/$ac_word" || continue
1193 ac_cv_prog_ac_ct_CC="gcc"
1194 echo "$as_me:1194: found $ac_dir/$ac_word" >&5
1200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1201 if test -n "$ac_ct_CC"; then
1202 echo "$as_me:1202: result: $ac_ct_CC" >&5
1203 echo "${ECHO_T}$ac_ct_CC" >&6
1205 echo "$as_me:1205: result: no" >&5
1206 echo "${ECHO_T}no" >&6
1214 if test -z "$CC"; then
1215 if test -n "$ac_tool_prefix"; then
1216 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1217 set dummy ${ac_tool_prefix}cc; ac_word=$2
1218 echo "$as_me:1218: checking for $ac_word" >&5
1219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1220 if test "${ac_cv_prog_CC+set}" = set; then
1221 echo $ECHO_N "(cached) $ECHO_C" >&6
1223 if test -n "$CC"; then
1224 ac_cv_prog_CC="$CC" # Let the user override the test.
1226 ac_save_IFS=$IFS; IFS=$ac_path_separator
1228 for ac_dir in $ac_dummy; do
1230 test -z "$ac_dir" && ac_dir=.
1231 $as_executable_p "$ac_dir/$ac_word" || continue
1232 ac_cv_prog_CC="${ac_tool_prefix}cc"
1233 echo "$as_me:1233: found $ac_dir/$ac_word" >&5
1240 if test -n "$CC"; then
1241 echo "$as_me:1241: result: $CC" >&5
1242 echo "${ECHO_T}$CC" >&6
1244 echo "$as_me:1244: result: no" >&5
1245 echo "${ECHO_T}no" >&6
1249 if test -z "$ac_cv_prog_CC"; then
1251 # Extract the first word of "cc", so it can be a program name with args.
1252 set dummy cc; ac_word=$2
1253 echo "$as_me:1253: checking for $ac_word" >&5
1254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1255 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1256 echo $ECHO_N "(cached) $ECHO_C" >&6
1258 if test -n "$ac_ct_CC"; then
1259 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1261 ac_save_IFS=$IFS; IFS=$ac_path_separator
1263 for ac_dir in $ac_dummy; do
1265 test -z "$ac_dir" && ac_dir=.
1266 $as_executable_p "$ac_dir/$ac_word" || continue
1267 ac_cv_prog_ac_ct_CC="cc"
1268 echo "$as_me:1268: found $ac_dir/$ac_word" >&5
1274 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1275 if test -n "$ac_ct_CC"; then
1276 echo "$as_me:1276: result: $ac_ct_CC" >&5
1277 echo "${ECHO_T}$ac_ct_CC" >&6
1279 echo "$as_me:1279: result: no" >&5
1280 echo "${ECHO_T}no" >&6
1289 if test -z "$CC"; then
1290 # Extract the first word of "cc", so it can be a program name with args.
1291 set dummy cc; ac_word=$2
1292 echo "$as_me:1292: checking for $ac_word" >&5
1293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1294 if test "${ac_cv_prog_CC+set}" = set; then
1295 echo $ECHO_N "(cached) $ECHO_C" >&6
1297 if test -n "$CC"; then
1298 ac_cv_prog_CC="$CC" # Let the user override the test.
1301 ac_save_IFS=$IFS; IFS=$ac_path_separator
1303 for ac_dir in $ac_dummy; do
1305 test -z "$ac_dir" && ac_dir=.
1306 $as_executable_p "$ac_dir/$ac_word" || continue
1307 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1308 ac_prog_rejected=yes
1312 echo "$as_me:1312: found $ac_dir/$ac_word" >&5
1316 if test $ac_prog_rejected = yes; then
1317 # We found a bogon in the path, so make sure we never use it.
1318 set dummy $ac_cv_prog_CC
1320 if test $# != 0; then
1321 # We chose a different compiler from the bogus one.
1322 # However, it has the same basename, so the bogon will be chosen
1323 # first if we set CC to just the basename; use the full file name.
1325 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1333 if test -n "$CC"; then
1334 echo "$as_me:1334: result: $CC" >&5
1335 echo "${ECHO_T}$CC" >&6
1337 echo "$as_me:1337: result: no" >&5
1338 echo "${ECHO_T}no" >&6
1342 if test -z "$CC"; then
1343 if test -n "$ac_tool_prefix"; then
1346 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1347 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1348 echo "$as_me:1348: checking for $ac_word" >&5
1349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1350 if test "${ac_cv_prog_CC+set}" = set; then
1351 echo $ECHO_N "(cached) $ECHO_C" >&6
1353 if test -n "$CC"; then
1354 ac_cv_prog_CC="$CC" # Let the user override the test.
1356 ac_save_IFS=$IFS; IFS=$ac_path_separator
1358 for ac_dir in $ac_dummy; do
1360 test -z "$ac_dir" && ac_dir=.
1361 $as_executable_p "$ac_dir/$ac_word" || continue
1362 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1363 echo "$as_me:1363: found $ac_dir/$ac_word" >&5
1370 if test -n "$CC"; then
1371 echo "$as_me:1371: result: $CC" >&5
1372 echo "${ECHO_T}$CC" >&6
1374 echo "$as_me:1374: result: no" >&5
1375 echo "${ECHO_T}no" >&6
1378 test -n "$CC" && break
1381 if test -z "$CC"; then
1385 # Extract the first word of "$ac_prog", so it can be a program name with args.
1386 set dummy $ac_prog; ac_word=$2
1387 echo "$as_me:1387: checking for $ac_word" >&5
1388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1389 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1390 echo $ECHO_N "(cached) $ECHO_C" >&6
1392 if test -n "$ac_ct_CC"; then
1393 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1395 ac_save_IFS=$IFS; IFS=$ac_path_separator
1397 for ac_dir in $ac_dummy; do
1399 test -z "$ac_dir" && ac_dir=.
1400 $as_executable_p "$ac_dir/$ac_word" || continue
1401 ac_cv_prog_ac_ct_CC="$ac_prog"
1402 echo "$as_me:1402: found $ac_dir/$ac_word" >&5
1408 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1409 if test -n "$ac_ct_CC"; then
1410 echo "$as_me:1410: result: $ac_ct_CC" >&5
1411 echo "${ECHO_T}$ac_ct_CC" >&6
1413 echo "$as_me:1413: result: no" >&5
1414 echo "${ECHO_T}no" >&6
1417 test -n "$ac_ct_CC" && break
1425 test -z "$CC" && { { echo "$as_me:1425: error: no acceptable cc found in \$PATH" >&5
1426 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1427 { (exit 1); exit 1; }; }
1429 # Provide some information about the compiler.
1430 echo "$as_me:1430:" \
1431 "checking for C compiler version" >&5
1432 ac_compiler=`set X $ac_compile; echo $2`
1433 { (eval echo "$as_me:1433: \"$ac_compiler --version </dev/null >&5\"") >&5
1434 (eval $ac_compiler --version </dev/null >&5) 2>&5
1436 echo "$as_me:1436: \$? = $ac_status" >&5
1437 (exit $ac_status); }
1438 { (eval echo "$as_me:1438: \"$ac_compiler -v </dev/null >&5\"") >&5
1439 (eval $ac_compiler -v </dev/null >&5) 2>&5
1441 echo "$as_me:1441: \$? = $ac_status" >&5
1442 (exit $ac_status); }
1443 { (eval echo "$as_me:1443: \"$ac_compiler -V </dev/null >&5\"") >&5
1444 (eval $ac_compiler -V </dev/null >&5) 2>&5
1446 echo "$as_me:1446: \$? = $ac_status" >&5
1447 (exit $ac_status); }
1449 cat >conftest.$ac_ext <<_ACEOF
1450 #line 1450 "configure"
1451 #include "confdefs.h"
1461 ac_clean_files_save=$ac_clean_files
1462 ac_clean_files="$ac_clean_files a.out a.exe"
1463 # Try to create an executable without -o first, disregard a.out.
1464 # It will help us diagnose broken compilers, and finding out an intuition
1466 echo "$as_me:1466: checking for C compiler default output" >&5
1467 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1468 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1469 if { (eval echo "$as_me:1469: \"$ac_link_default\"") >&5
1470 (eval $ac_link_default) 2>&5
1472 echo "$as_me:1472: \$? = $ac_status" >&5
1473 (exit $ac_status); }; then
1474 # Find the output, starting from the most likely. This scheme is
1475 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1477 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1478 ls a.out conftest 2>/dev/null;
1479 ls a.* conftest.* 2>/dev/null`; do
1481 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1482 a.out ) # We found the default executable, but exeext='' is most
1485 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1486 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1493 echo "$as_me: failed program was:" >&5
1494 cat conftest.$ac_ext >&5
1495 { { echo "$as_me:1495: error: C compiler cannot create executables" >&5
1496 echo "$as_me: error: C compiler cannot create executables" >&2;}
1497 { (exit 77); exit 77; }; }
1500 ac_exeext=$ac_cv_exeext
1501 echo "$as_me:1501: result: $ac_file" >&5
1502 echo "${ECHO_T}$ac_file" >&6
1504 # Check the compiler produces executables we can run. If not, either
1505 # the compiler is broken, or we cross compile.
1506 echo "$as_me:1506: checking whether the C compiler works" >&5
1507 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1508 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1509 # If not cross compiling, check that we can run a simple program.
1510 if test "$cross_compiling" != yes; then
1511 if { ac_try='./$ac_file'
1512 { (eval echo "$as_me:1512: \"$ac_try\"") >&5
1515 echo "$as_me:1515: \$? = $ac_status" >&5
1516 (exit $ac_status); }; }; then
1519 if test "$cross_compiling" = maybe; then
1522 { { echo "$as_me:1522: error: cannot run C compiled programs.
1523 If you meant to cross compile, use \`--host'." >&5
1524 echo "$as_me: error: cannot run C compiled programs.
1525 If you meant to cross compile, use \`--host'." >&2;}
1526 { (exit 1); exit 1; }; }
1530 echo "$as_me:1530: result: yes" >&5
1531 echo "${ECHO_T}yes" >&6
1533 rm -f a.out a.exe conftest$ac_cv_exeext
1534 ac_clean_files=$ac_clean_files_save
1535 # Check the compiler produces executables we can run. If not, either
1536 # the compiler is broken, or we cross compile.
1537 echo "$as_me:1537: checking whether we are cross compiling" >&5
1538 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1539 echo "$as_me:1539: result: $cross_compiling" >&5
1540 echo "${ECHO_T}$cross_compiling" >&6
1542 echo "$as_me:1542: checking for executable suffix" >&5
1543 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1544 if { (eval echo "$as_me:1544: \"$ac_link\"") >&5
1545 (eval $ac_link) 2>&5
1547 echo "$as_me:1547: \$? = $ac_status" >&5
1548 (exit $ac_status); }; then
1549 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1550 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1551 # work properly (i.e., refer to `conftest.exe'), while it won't with
1553 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1555 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1556 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1563 { { echo "$as_me:1563: error: cannot compute EXEEXT: cannot compile and link" >&5
1564 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1565 { (exit 1); exit 1; }; }
1568 rm -f conftest$ac_cv_exeext
1569 echo "$as_me:1569: result: $ac_cv_exeext" >&5
1570 echo "${ECHO_T}$ac_cv_exeext" >&6
1572 rm -f conftest.$ac_ext
1573 EXEEXT=$ac_cv_exeext
1575 echo "$as_me:1575: checking for object suffix" >&5
1576 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1577 if test "${ac_cv_objext+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1580 cat >conftest.$ac_ext <<_ACEOF
1581 #line 1581 "configure"
1582 #include "confdefs.h"
1592 rm -f conftest.o conftest.obj
1593 if { (eval echo "$as_me:1593: \"$ac_compile\"") >&5
1594 (eval $ac_compile) 2>&5
1596 echo "$as_me:1596: \$? = $ac_status" >&5
1597 (exit $ac_status); }; then
1598 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1600 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1601 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1606 echo "$as_me: failed program was:" >&5
1607 cat conftest.$ac_ext >&5
1608 { { echo "$as_me:1608: error: cannot compute OBJEXT: cannot compile" >&5
1609 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1610 { (exit 1); exit 1; }; }
1613 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1615 echo "$as_me:1615: result: $ac_cv_objext" >&5
1616 echo "${ECHO_T}$ac_cv_objext" >&6
1617 OBJEXT=$ac_cv_objext
1619 echo "$as_me:1619: checking whether we are using the GNU C compiler" >&5
1620 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1621 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1622 echo $ECHO_N "(cached) $ECHO_C" >&6
1624 cat >conftest.$ac_ext <<_ACEOF
1625 #line 1625 "configure"
1626 #include "confdefs.h"
1639 rm -f conftest.$ac_objext
1640 if { (eval echo "$as_me:1640: \"$ac_compile\"") >&5
1641 (eval $ac_compile) 2>&5
1643 echo "$as_me:1643: \$? = $ac_status" >&5
1644 (exit $ac_status); } &&
1645 { ac_try='test -s conftest.$ac_objext'
1646 { (eval echo "$as_me:1646: \"$ac_try\"") >&5
1649 echo "$as_me:1649: \$? = $ac_status" >&5
1650 (exit $ac_status); }; }; then
1653 echo "$as_me: failed program was:" >&5
1654 cat conftest.$ac_ext >&5
1657 rm -f conftest.$ac_objext conftest.$ac_ext
1658 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1661 echo "$as_me:1661: result: $ac_cv_c_compiler_gnu" >&5
1662 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1663 GCC=`test $ac_compiler_gnu = yes && echo yes`
1664 ac_test_CFLAGS=${CFLAGS+set}
1665 ac_save_CFLAGS=$CFLAGS
1667 echo "$as_me:1667: checking whether $CC accepts -g" >&5
1668 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1669 if test "${ac_cv_prog_cc_g+set}" = set; then
1670 echo $ECHO_N "(cached) $ECHO_C" >&6
1672 cat >conftest.$ac_ext <<_ACEOF
1673 #line 1673 "configure"
1674 #include "confdefs.h"
1684 rm -f conftest.$ac_objext
1685 if { (eval echo "$as_me:1685: \"$ac_compile\"") >&5
1686 (eval $ac_compile) 2>&5
1688 echo "$as_me:1688: \$? = $ac_status" >&5
1689 (exit $ac_status); } &&
1690 { ac_try='test -s conftest.$ac_objext'
1691 { (eval echo "$as_me:1691: \"$ac_try\"") >&5
1694 echo "$as_me:1694: \$? = $ac_status" >&5
1695 (exit $ac_status); }; }; then
1698 echo "$as_me: failed program was:" >&5
1699 cat conftest.$ac_ext >&5
1702 rm -f conftest.$ac_objext conftest.$ac_ext
1704 echo "$as_me:1704: result: $ac_cv_prog_cc_g" >&5
1705 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1706 if test "$ac_test_CFLAGS" = set; then
1707 CFLAGS=$ac_save_CFLAGS
1708 elif test $ac_cv_prog_cc_g = yes; then
1709 if test "$GCC" = yes; then
1715 if test "$GCC" = yes; then
1721 # Some people use a C++ compiler to compile C. Since we use `exit',
1722 # in C++ we need to declare it. In case someone uses the same compiler
1723 # for both compiling C and C++ we need to have the C++ compiler decide
1724 # the declaration of exit, since it's the most demanding environment.
1725 cat >conftest.$ac_ext <<_ACEOF
1730 rm -f conftest.$ac_objext
1731 if { (eval echo "$as_me:1731: \"$ac_compile\"") >&5
1732 (eval $ac_compile) 2>&5
1734 echo "$as_me:1734: \$? = $ac_status" >&5
1735 (exit $ac_status); } &&
1736 { ac_try='test -s conftest.$ac_objext'
1737 { (eval echo "$as_me:1737: \"$ac_try\"") >&5
1740 echo "$as_me:1740: \$? = $ac_status" >&5
1741 (exit $ac_status); }; }; then
1742 for ac_declaration in \
1744 '#include <stdlib.h>' \
1745 'extern "C" void std::exit (int) throw (); using std::exit;' \
1746 'extern "C" void std::exit (int); using std::exit;' \
1747 'extern "C" void exit (int) throw ();' \
1748 'extern "C" void exit (int);' \
1751 cat >conftest.$ac_ext <<_ACEOF
1752 #line 1752 "configure"
1753 #include "confdefs.h"
1764 rm -f conftest.$ac_objext
1765 if { (eval echo "$as_me:1765: \"$ac_compile\"") >&5
1766 (eval $ac_compile) 2>&5
1768 echo "$as_me:1768: \$? = $ac_status" >&5
1769 (exit $ac_status); } &&
1770 { ac_try='test -s conftest.$ac_objext'
1771 { (eval echo "$as_me:1771: \"$ac_try\"") >&5
1774 echo "$as_me:1774: \$? = $ac_status" >&5
1775 (exit $ac_status); }; }; then
1778 echo "$as_me: failed program was:" >&5
1779 cat conftest.$ac_ext >&5
1782 rm -f conftest.$ac_objext conftest.$ac_ext
1783 cat >conftest.$ac_ext <<_ACEOF
1784 #line 1784 "configure"
1785 #include "confdefs.h"
1795 rm -f conftest.$ac_objext
1796 if { (eval echo "$as_me:1796: \"$ac_compile\"") >&5
1797 (eval $ac_compile) 2>&5
1799 echo "$as_me:1799: \$? = $ac_status" >&5
1800 (exit $ac_status); } &&
1801 { ac_try='test -s conftest.$ac_objext'
1802 { (eval echo "$as_me:1802: \"$ac_try\"") >&5
1805 echo "$as_me:1805: \$? = $ac_status" >&5
1806 (exit $ac_status); }; }; then
1809 echo "$as_me: failed program was:" >&5
1810 cat conftest.$ac_ext >&5
1812 rm -f conftest.$ac_objext conftest.$ac_ext
1815 if test -n "$ac_declaration"; then
1816 echo '#ifdef __cplusplus' >>confdefs.h
1817 echo $ac_declaration >>confdefs.h
1818 echo '#endif' >>confdefs.h
1822 echo "$as_me: failed program was:" >&5
1823 cat conftest.$ac_ext >&5
1825 rm -f conftest.$ac_objext conftest.$ac_ext
1827 ac_cpp='$CPP $CPPFLAGS'
1828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1831 ac_main_return=return
1834 if test "$GCC" = yes ; then
1835 echo "$as_me:1835: checking version of $CC" >&5
1836 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1837 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.].*//'`"
1838 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1839 echo "$as_me:1839: result: $GCC_VERSION" >&5
1840 echo "${ECHO_T}$GCC_VERSION" >&6
1843 echo "$as_me:1843: checking for $CC option to accept ANSI C" >&5
1844 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1845 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1846 echo $ECHO_N "(cached) $ECHO_C" >&6
1848 ac_cv_prog_cc_stdc=no
1850 cat >conftest.$ac_ext <<_ACEOF
1851 #line 1851 "configure"
1852 #include "confdefs.h"
1855 #include <sys/types.h>
1856 #include <sys/stat.h>
1857 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1858 struct buf { int x; };
1859 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1860 static char *e (p, i)
1866 static char *f (char * (*g) (char **, int), char **p, ...)
1871 s = g (p, va_arg (v,int));
1875 int test (int i, double x);
1876 struct s1 {int (*f) (int a);};
1877 struct s2 {int (*f) (double a);};
1878 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1884 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1889 # Don't try gcc -ansi; that turns off useful extensions and
1890 # breaks some systems' header files.
1891 # AIX -qlanglvl=ansi
1892 # Ultrix and OSF/1 -std1
1893 # HP-UX 10.20 and later -Ae
1894 # HP-UX older versions -Aa -D_HPUX_SOURCE
1895 # SVR4 -Xc -D__EXTENSIONS__
1896 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1898 CC="$ac_save_CC $ac_arg"
1899 rm -f conftest.$ac_objext
1900 if { (eval echo "$as_me:1900: \"$ac_compile\"") >&5
1901 (eval $ac_compile) 2>&5
1903 echo "$as_me:1903: \$? = $ac_status" >&5
1904 (exit $ac_status); } &&
1905 { ac_try='test -s conftest.$ac_objext'
1906 { (eval echo "$as_me:1906: \"$ac_try\"") >&5
1909 echo "$as_me:1909: \$? = $ac_status" >&5
1910 (exit $ac_status); }; }; then
1911 ac_cv_prog_cc_stdc=$ac_arg
1914 echo "$as_me: failed program was:" >&5
1915 cat conftest.$ac_ext >&5
1917 rm -f conftest.$ac_objext
1919 rm -f conftest.$ac_ext conftest.$ac_objext
1924 case "x$ac_cv_prog_cc_stdc" in
1926 echo "$as_me:1926: result: none needed" >&5
1927 echo "${ECHO_T}none needed" >&6 ;;
1929 echo "$as_me:1929: result: $ac_cv_prog_cc_stdc" >&5
1930 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1931 CC="$CC $ac_cv_prog_cc_stdc" ;;
1934 # This should have been defined by AC_PROG_CC
1937 echo "$as_me:1937: checking \$CC variable" >&5
1938 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
1941 echo "$as_me:1941: result: broken" >&5
1942 echo "${ECHO_T}broken" >&6
1943 { echo "$as_me:1943: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
1944 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
1946 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
1947 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
1949 for cf_arg in $cf_flags
1957 cf_new_extra_cppflags=
1959 for cf_add_cflags in $cf_arg
1961 case $cf_fix_cppflags in
1963 case $cf_add_cflags in
1964 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
1965 case $cf_add_cflags in
1967 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
1969 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
1970 && test -z "${cf_tst_cflags}" \
1971 && cf_fix_cppflags=yes
1973 if test $cf_fix_cppflags = yes ; then
1975 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
1976 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
1979 elif test "${cf_tst_cflags}" = "\"'" ; then
1981 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
1982 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
1992 case $cf_add_cflags in
1994 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
1996 CPPFLAGS=`echo "$CPPFLAGS" | \
1997 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
1998 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2003 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2004 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2011 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2012 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2019 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2020 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2022 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2024 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2025 && test -z "${cf_tst_cflags}" \
2026 && cf_fix_cppflags=no
2031 if test -n "$cf_new_cflags" ; then
2033 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2034 CFLAGS="${CFLAGS}$cf_new_cflags"
2038 if test -n "$cf_new_cppflags" ; then
2040 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2041 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2045 if test -n "$cf_new_extra_cppflags" ; then
2047 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2048 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2058 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2060 echo "${as_me:-configure}:2060: testing resulting CC: '$CC' ..." 1>&5
2062 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2064 echo "${as_me:-configure}:2064: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2066 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2068 echo "${as_me:-configure}:2068: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2072 echo "$as_me:2072: result: ok" >&5
2073 echo "${ECHO_T}ok" >&6
2078 ac_cpp='$CPP $CPPFLAGS'
2079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2082 ac_main_return=return
2083 echo "$as_me:2083: checking how to run the C preprocessor" >&5
2084 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2085 # On Suns, sometimes $CPP names a directory.
2086 if test -n "$CPP" && test -d "$CPP"; then
2089 if test -z "$CPP"; then
2090 if test "${ac_cv_prog_CPP+set}" = set; then
2091 echo $ECHO_N "(cached) $ECHO_C" >&6
2093 # Double quotes because CPP needs to be expanded
2094 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2097 for ac_c_preproc_warn_flag in '' yes
2099 # Use a header file that comes with gcc, so configuring glibc
2100 # with a fresh cross-compiler works.
2101 # On the NeXT, cc -E runs the code through the compiler's parser,
2102 # not just through cpp. "Syntax error" is here to catch this case.
2103 cat >conftest.$ac_ext <<_ACEOF
2104 #line 2104 "configure"
2105 #include "confdefs.h"
2109 if { (eval echo "$as_me:2109: \"$ac_cpp conftest.$ac_ext\"") >&5
2110 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2112 egrep -v '^ *\+' conftest.er1 >conftest.err
2114 cat conftest.err >&5
2115 echo "$as_me:2115: \$? = $ac_status" >&5
2116 (exit $ac_status); } >/dev/null; then
2117 if test -s conftest.err; then
2118 ac_cpp_err=$ac_c_preproc_warn_flag
2125 if test -z "$ac_cpp_err"; then
2128 echo "$as_me: failed program was:" >&5
2129 cat conftest.$ac_ext >&5
2130 # Broken: fails on valid input.
2133 rm -f conftest.err conftest.$ac_ext
2135 # OK, works on sane cases. Now check whether non-existent headers
2136 # can be detected and how.
2137 cat >conftest.$ac_ext <<_ACEOF
2138 #line 2138 "configure"
2139 #include "confdefs.h"
2140 #include <ac_nonexistent.h>
2142 if { (eval echo "$as_me:2142: \"$ac_cpp conftest.$ac_ext\"") >&5
2143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2145 egrep -v '^ *\+' conftest.er1 >conftest.err
2147 cat conftest.err >&5
2148 echo "$as_me:2148: \$? = $ac_status" >&5
2149 (exit $ac_status); } >/dev/null; then
2150 if test -s conftest.err; then
2151 ac_cpp_err=$ac_c_preproc_warn_flag
2158 if test -z "$ac_cpp_err"; then
2159 # Broken: success on invalid input.
2162 echo "$as_me: failed program was:" >&5
2163 cat conftest.$ac_ext >&5
2164 # Passes both tests.
2168 rm -f conftest.err conftest.$ac_ext
2171 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2172 rm -f conftest.err conftest.$ac_ext
2173 if $ac_preproc_ok; then
2185 echo "$as_me:2185: result: $CPP" >&5
2186 echo "${ECHO_T}$CPP" >&6
2188 for ac_c_preproc_warn_flag in '' yes
2190 # Use a header file that comes with gcc, so configuring glibc
2191 # with a fresh cross-compiler works.
2192 # On the NeXT, cc -E runs the code through the compiler's parser,
2193 # not just through cpp. "Syntax error" is here to catch this case.
2194 cat >conftest.$ac_ext <<_ACEOF
2195 #line 2195 "configure"
2196 #include "confdefs.h"
2200 if { (eval echo "$as_me:2200: \"$ac_cpp conftest.$ac_ext\"") >&5
2201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2203 egrep -v '^ *\+' conftest.er1 >conftest.err
2205 cat conftest.err >&5
2206 echo "$as_me:2206: \$? = $ac_status" >&5
2207 (exit $ac_status); } >/dev/null; then
2208 if test -s conftest.err; then
2209 ac_cpp_err=$ac_c_preproc_warn_flag
2216 if test -z "$ac_cpp_err"; then
2219 echo "$as_me: failed program was:" >&5
2220 cat conftest.$ac_ext >&5
2221 # Broken: fails on valid input.
2224 rm -f conftest.err conftest.$ac_ext
2226 # OK, works on sane cases. Now check whether non-existent headers
2227 # can be detected and how.
2228 cat >conftest.$ac_ext <<_ACEOF
2229 #line 2229 "configure"
2230 #include "confdefs.h"
2231 #include <ac_nonexistent.h>
2233 if { (eval echo "$as_me:2233: \"$ac_cpp conftest.$ac_ext\"") >&5
2234 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2236 egrep -v '^ *\+' conftest.er1 >conftest.err
2238 cat conftest.err >&5
2239 echo "$as_me:2239: \$? = $ac_status" >&5
2240 (exit $ac_status); } >/dev/null; then
2241 if test -s conftest.err; then
2242 ac_cpp_err=$ac_c_preproc_warn_flag
2249 if test -z "$ac_cpp_err"; then
2250 # Broken: success on invalid input.
2253 echo "$as_me: failed program was:" >&5
2254 cat conftest.$ac_ext >&5
2255 # Passes both tests.
2259 rm -f conftest.err conftest.$ac_ext
2262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2263 rm -f conftest.err conftest.$ac_ext
2264 if $ac_preproc_ok; then
2267 { { echo "$as_me:2267: error: C preprocessor \"$CPP\" fails sanity check" >&5
2268 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2269 { (exit 1); exit 1; }; }
2273 ac_cpp='$CPP $CPPFLAGS'
2274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2277 ac_main_return=return
2279 for ac_prog in mawk gawk nawk awk
2281 # Extract the first word of "$ac_prog", so it can be a program name with args.
2282 set dummy $ac_prog; ac_word=$2
2283 echo "$as_me:2283: checking for $ac_word" >&5
2284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2285 if test "${ac_cv_prog_AWK+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 if test -n "$AWK"; then
2289 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2291 ac_save_IFS=$IFS; IFS=$ac_path_separator
2293 for ac_dir in $ac_dummy; do
2295 test -z "$ac_dir" && ac_dir=.
2296 $as_executable_p "$ac_dir/$ac_word" || continue
2297 ac_cv_prog_AWK="$ac_prog"
2298 echo "$as_me:2298: found $ac_dir/$ac_word" >&5
2305 if test -n "$AWK"; then
2306 echo "$as_me:2306: result: $AWK" >&5
2307 echo "${ECHO_T}$AWK" >&6
2309 echo "$as_me:2309: result: no" >&5
2310 echo "${ECHO_T}no" >&6
2313 test -n "$AWK" && break
2316 # Find a good install program. We prefer a C program (faster),
2317 # so one script is as good as another. But avoid the broken or
2318 # incompatible versions:
2319 # SysV /etc/install, /usr/sbin/install
2320 # SunOS /usr/etc/install
2321 # IRIX /sbin/install
2323 # AmigaOS /C/install, which installs bootblocks on floppy discs
2324 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2325 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2326 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2327 # ./install, which can be erroneously created by make from ./install.sh.
2328 echo "$as_me:2328: checking for a BSD compatible install" >&5
2329 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2330 if test -z "$INSTALL"; then
2331 if test "${ac_cv_path_install+set}" = set; then
2332 echo $ECHO_N "(cached) $ECHO_C" >&6
2334 ac_save_IFS=$IFS; IFS=$ac_path_separator
2335 for ac_dir in $PATH; do
2337 # Account for people who put trailing slashes in PATH elements.
2339 / | ./ | .// | /cC/* \
2340 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2343 # OSF1 and SCO ODT 3.0 have their own names for install.
2344 # Don't use installbsd from OSF since it installs stuff as root
2346 for ac_prog in ginstall scoinst install; do
2347 if $as_executable_p "$ac_dir/$ac_prog"; then
2348 if test $ac_prog = install &&
2349 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2350 # AIX install. It has an incompatible calling convention.
2352 elif test $ac_prog = install &&
2353 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2354 # program-specific install script used by HP pwplus--don't use.
2357 ac_cv_path_install="$ac_dir/$ac_prog -c"
2367 if test "${ac_cv_path_install+set}" = set; then
2368 INSTALL=$ac_cv_path_install
2370 # As a last resort, use the slow shell script. We don't cache a
2371 # path for INSTALL within a source directory, because that will
2372 # break other packages using the cache if that directory is
2373 # removed, or if the path is relative.
2374 INSTALL=$ac_install_sh
2377 echo "$as_me:2377: result: $INSTALL" >&5
2378 echo "${ECHO_T}$INSTALL" >&6
2380 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2381 # It thinks the first close brace ends the variable substitution.
2382 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2384 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2386 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2392 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
2393 test -z "$cf_dir" && cf_dir=.
2394 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
2398 for ac_prog in lint cppcheck splint
2400 # Extract the first word of "$ac_prog", so it can be a program name with args.
2401 set dummy $ac_prog; ac_word=$2
2402 echo "$as_me:2402: checking for $ac_word" >&5
2403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2404 if test "${ac_cv_prog_LINT+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2407 if test -n "$LINT"; then
2408 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2410 ac_save_IFS=$IFS; IFS=$ac_path_separator
2412 for ac_dir in $ac_dummy; do
2414 test -z "$ac_dir" && ac_dir=.
2415 $as_executable_p "$ac_dir/$ac_word" || continue
2416 ac_cv_prog_LINT="$ac_prog"
2417 echo "$as_me:2417: found $ac_dir/$ac_word" >&5
2423 LINT=$ac_cv_prog_LINT
2424 if test -n "$LINT"; then
2425 echo "$as_me:2425: result: $LINT" >&5
2426 echo "${ECHO_T}$LINT" >&6
2428 echo "$as_me:2428: result: no" >&5
2429 echo "${ECHO_T}no" >&6
2432 test -n "$LINT" && break
2435 echo "$as_me:2435: checking if filesystem supports mixed-case filenames" >&5
2436 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2437 if test "${cf_cv_mixedcase+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
2441 if test "$cross_compiling" = yes ; then
2442 case $target_alias in
2443 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
2451 rm -f conftest CONFTEST
2453 if test -f CONFTEST ; then
2458 rm -f conftest CONFTEST
2462 echo "$as_me:2462: result: $cf_cv_mixedcase" >&5
2463 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2464 test "$cf_cv_mixedcase" = yes &&
2465 cat >>confdefs.h <<\EOF
2466 #define MIXEDCASE_FILENAMES 1
2469 for ac_prog in exctags ctags
2471 # Extract the first word of "$ac_prog", so it can be a program name with args.
2472 set dummy $ac_prog; ac_word=$2
2473 echo "$as_me:2473: checking for $ac_word" >&5
2474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2475 if test "${ac_cv_prog_CTAGS+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 if test -n "$CTAGS"; then
2479 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2481 ac_save_IFS=$IFS; IFS=$ac_path_separator
2483 for ac_dir in $ac_dummy; do
2485 test -z "$ac_dir" && ac_dir=.
2486 $as_executable_p "$ac_dir/$ac_word" || continue
2487 ac_cv_prog_CTAGS="$ac_prog"
2488 echo "$as_me:2488: found $ac_dir/$ac_word" >&5
2494 CTAGS=$ac_cv_prog_CTAGS
2495 if test -n "$CTAGS"; then
2496 echo "$as_me:2496: result: $CTAGS" >&5
2497 echo "${ECHO_T}$CTAGS" >&6
2499 echo "$as_me:2499: result: no" >&5
2500 echo "${ECHO_T}no" >&6
2503 test -n "$CTAGS" && break
2506 for ac_prog in exetags etags
2508 # Extract the first word of "$ac_prog", so it can be a program name with args.
2509 set dummy $ac_prog; ac_word=$2
2510 echo "$as_me:2510: checking for $ac_word" >&5
2511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2512 if test "${ac_cv_prog_ETAGS+set}" = set; then
2513 echo $ECHO_N "(cached) $ECHO_C" >&6
2515 if test -n "$ETAGS"; then
2516 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2518 ac_save_IFS=$IFS; IFS=$ac_path_separator
2520 for ac_dir in $ac_dummy; do
2522 test -z "$ac_dir" && ac_dir=.
2523 $as_executable_p "$ac_dir/$ac_word" || continue
2524 ac_cv_prog_ETAGS="$ac_prog"
2525 echo "$as_me:2525: found $ac_dir/$ac_word" >&5
2531 ETAGS=$ac_cv_prog_ETAGS
2532 if test -n "$ETAGS"; then
2533 echo "$as_me:2533: result: $ETAGS" >&5
2534 echo "${ECHO_T}$ETAGS" >&6
2536 echo "$as_me:2536: result: no" >&5
2537 echo "${ECHO_T}no" >&6
2540 test -n "$ETAGS" && break
2543 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2544 set dummy ${CTAGS:-ctags}; ac_word=$2
2545 echo "$as_me:2545: checking for $ac_word" >&5
2546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2547 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2548 echo $ECHO_N "(cached) $ECHO_C" >&6
2550 if test -n "$MAKE_LOWER_TAGS"; then
2551 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2553 ac_save_IFS=$IFS; IFS=$ac_path_separator
2555 for ac_dir in $ac_dummy; do
2557 test -z "$ac_dir" && ac_dir=.
2558 $as_executable_p "$ac_dir/$ac_word" || continue
2559 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2560 echo "$as_me:2560: found $ac_dir/$ac_word" >&5
2564 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2567 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2568 if test -n "$MAKE_LOWER_TAGS"; then
2569 echo "$as_me:2569: result: $MAKE_LOWER_TAGS" >&5
2570 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2572 echo "$as_me:2572: result: no" >&5
2573 echo "${ECHO_T}no" >&6
2576 if test "$cf_cv_mixedcase" = yes ; then
2577 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2578 set dummy ${ETAGS:-etags}; ac_word=$2
2579 echo "$as_me:2579: checking for $ac_word" >&5
2580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2581 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2584 if test -n "$MAKE_UPPER_TAGS"; then
2585 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2587 ac_save_IFS=$IFS; IFS=$ac_path_separator
2589 for ac_dir in $ac_dummy; do
2591 test -z "$ac_dir" && ac_dir=.
2592 $as_executable_p "$ac_dir/$ac_word" || continue
2593 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2594 echo "$as_me:2594: found $ac_dir/$ac_word" >&5
2598 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2601 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2602 if test -n "$MAKE_UPPER_TAGS"; then
2603 echo "$as_me:2603: result: $MAKE_UPPER_TAGS" >&5
2604 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2606 echo "$as_me:2606: result: no" >&5
2607 echo "${ECHO_T}no" >&6
2614 if test "$MAKE_UPPER_TAGS" = yes ; then
2620 if test "$MAKE_LOWER_TAGS" = yes ; then
2626 echo "$as_me:2626: checking if -lm needed for math functions" >&5
2627 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
2628 if test "${cf_cv_need_libm+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2632 cat >conftest.$ac_ext <<_ACEOF
2633 #line 2633 "configure"
2634 #include "confdefs.h"
2643 double x = rand(); printf("result = %g\n", pow(sin(x),x))
2648 rm -f conftest.$ac_objext conftest$ac_exeext
2649 if { (eval echo "$as_me:2649: \"$ac_link\"") >&5
2650 (eval $ac_link) 2>&5
2652 echo "$as_me:2652: \$? = $ac_status" >&5
2653 (exit $ac_status); } &&
2654 { ac_try='test -s conftest$ac_exeext'
2655 { (eval echo "$as_me:2655: \"$ac_try\"") >&5
2658 echo "$as_me:2658: \$? = $ac_status" >&5
2659 (exit $ac_status); }; }; then
2662 echo "$as_me: failed program was:" >&5
2663 cat conftest.$ac_ext >&5
2666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2668 echo "$as_me:2668: result: $cf_cv_need_libm" >&5
2669 echo "${ECHO_T}$cf_cv_need_libm" >&6
2670 if test "$cf_cv_need_libm" = yes
2678 CC_SHARED_OPTS=unknown
2679 CPPFLAGS="$CPPFLAGS"
2681 DFT_OBJ_SUBDIR=`pwd|sed -e's:.*/::'`
2682 DFT_UPR_MODEL="NORMAL"
2695 PACKAGE="ncurses-examples"
2701 TINFO_LIBS='$(LIBS_CURSES)'
2702 cf_cv_abi_version=""
2703 cf_cv_rel_version=""
2709 if test "$GCC" = yes
2711 cat > conftest.i <<EOF
2713 #define GCC_PRINTF 0
2718 #ifndef GCC_NORETURN
2719 #define GCC_NORETURN /* nothing */
2722 #define GCC_UNUSED /* nothing */
2725 if test "$GCC" = yes
2727 { echo "$as_me:2727: checking for $CC __attribute__ directives..." >&5
2728 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
2729 cat > conftest.$ac_ext <<EOF
2730 #line 2730 "${as_me:-configure}"
2731 #include "confdefs.h"
2732 #include "conftest.h"
2733 #include "conftest.i"
2735 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2737 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
2740 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2742 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
2744 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
2745 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
2746 extern void foo(void) GCC_NORETURN;
2747 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
2749 cf_printf_attribute=no
2750 cf_scanf_attribute=no
2751 for cf_attribute in scanf printf unused noreturn
2754 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
2756 cf_directive="__attribute__(($cf_attribute))"
2757 echo "checking for $CC $cf_directive" 1>&5
2759 case $cf_attribute in
2761 cf_printf_attribute=yes
2762 cat >conftest.h <<EOF
2763 #define GCC_$cf_ATTRIBUTE 1
2767 cf_scanf_attribute=yes
2768 cat >conftest.h <<EOF
2769 #define GCC_$cf_ATTRIBUTE 1
2773 cat >conftest.h <<EOF
2774 #define GCC_$cf_ATTRIBUTE $cf_directive
2779 if { (eval echo "$as_me:2779: \"$ac_compile\"") >&5
2780 (eval $ac_compile) 2>&5
2782 echo "$as_me:2782: \$? = $ac_status" >&5
2783 (exit $ac_status); }; then
2784 test -n "$verbose" && echo "$as_me:2784: result: ... $cf_attribute" >&5
2785 echo "${ECHO_T}... $cf_attribute" >&6
2786 cat conftest.h >>confdefs.h
2787 case $cf_attribute in
2790 cat >>confdefs.h <<EOF
2791 #define GCC_NORETURN $cf_directive
2796 cf_value='/* nothing */'
2797 if test "$cf_printf_attribute" != no ; then
2798 cf_value='__attribute__((format(printf,fmt,var)))'
2800 cat >>confdefs.h <<\EOF
2801 #define GCC_PRINTF 1
2806 cat >>confdefs.h <<EOF
2807 #define GCC_PRINTFLIKE(fmt,var) $cf_value
2812 cf_value='/* nothing */'
2813 if test "$cf_scanf_attribute" != no ; then
2814 cf_value='__attribute__((format(scanf,fmt,var)))'
2816 cat >>confdefs.h <<\EOF
2822 cat >>confdefs.h <<EOF
2823 #define GCC_SCANFLIKE(fmt,var) $cf_value
2829 cat >>confdefs.h <<EOF
2830 #define GCC_UNUSED $cf_directive
2838 fgrep define conftest.i >>confdefs.h
2843 echo "$as_me:2843: checking if you want to work around bogus compiler/loader warnings" >&5
2844 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
2846 # Check whether --enable-string-hacks or --disable-string-hacks was given.
2847 if test "${enable_string_hacks+set}" = set; then
2848 enableval="$enable_string_hacks"
2849 with_string_hacks=$enableval
2851 with_string_hacks=no
2853 echo "$as_me:2853: result: $with_string_hacks" >&5
2854 echo "${ECHO_T}$with_string_hacks" >&6
2856 if test "x$with_string_hacks" = "xyes"; then
2858 cat >>confdefs.h <<\EOF
2859 #define USE_STRING_HACKS 1
2862 { echo "$as_me:2862: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
2863 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
2864 echo "$as_me:2864: checking for strlcat" >&5
2865 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
2866 if test "${ac_cv_func_strlcat+set}" = set; then
2867 echo $ECHO_N "(cached) $ECHO_C" >&6
2869 cat >conftest.$ac_ext <<_ACEOF
2870 #line 2870 "configure"
2871 #include "confdefs.h"
2872 /* System header to define __stub macros and hopefully few prototypes,
2873 which can conflict with char strlcat (); below. */
2875 /* Override any gcc2 internal prototype to avoid an error. */
2879 /* We use char because int might match the return type of a gcc2
2880 builtin and then its argument prototype would still apply. */
2887 /* The GNU C library defines this for functions which it implements
2888 to always fail with ENOSYS. Some functions are actually named
2889 something starting with __ and the normal name is an alias. */
2890 #if defined (__stub_strlcat) || defined (__stub___strlcat)
2893 f = strlcat; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
2900 rm -f conftest.$ac_objext conftest$ac_exeext
2901 if { (eval echo "$as_me:2901: \"$ac_link\"") >&5
2902 (eval $ac_link) 2>&5
2904 echo "$as_me:2904: \$? = $ac_status" >&5
2905 (exit $ac_status); } &&
2906 { ac_try='test -s conftest$ac_exeext'
2907 { (eval echo "$as_me:2907: \"$ac_try\"") >&5
2910 echo "$as_me:2910: \$? = $ac_status" >&5
2911 (exit $ac_status); }; }; then
2912 ac_cv_func_strlcat=yes
2914 echo "$as_me: failed program was:" >&5
2915 cat conftest.$ac_ext >&5
2916 ac_cv_func_strlcat=no
2918 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2920 echo "$as_me:2920: result: $ac_cv_func_strlcat" >&5
2921 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
2922 if test $ac_cv_func_strlcat = yes; then
2924 cat >>confdefs.h <<\EOF
2925 #define HAVE_STRLCAT 1
2930 echo "$as_me:2930: checking for strlcat in -lbsd" >&5
2931 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
2932 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
2933 echo $ECHO_N "(cached) $ECHO_C" >&6
2935 ac_check_lib_save_LIBS=$LIBS
2937 cat >conftest.$ac_ext <<_ACEOF
2938 #line 2938 "configure"
2939 #include "confdefs.h"
2941 /* Override any gcc2 internal prototype to avoid an error. */
2945 /* We use char because int might match the return type of a gcc2
2946 builtin and then its argument prototype would still apply. */
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_lib_bsd_strlcat=yes
2970 echo "$as_me: failed program was:" >&5
2971 cat conftest.$ac_ext >&5
2972 ac_cv_lib_bsd_strlcat=no
2974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2975 LIBS=$ac_check_lib_save_LIBS
2977 echo "$as_me:2977: result: $ac_cv_lib_bsd_strlcat" >&5
2978 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
2979 if test $ac_cv_lib_bsd_strlcat = yes; then
2982 # Filter out duplicates - this happens with badly-designed ".pc" files...
2983 for cf_add_1lib in $LIBS
2985 for cf_add_2lib in $cf_add_libs
2987 if test "x$cf_add_1lib" = "x$cf_add_2lib"
2993 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
2997 for ac_header in bsd/string.h
2999 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3000 echo "$as_me:3000: checking for $ac_header" >&5
3001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3003 echo $ECHO_N "(cached) $ECHO_C" >&6
3005 cat >conftest.$ac_ext <<_ACEOF
3006 #line 3006 "configure"
3007 #include "confdefs.h"
3008 #include <$ac_header>
3010 if { (eval echo "$as_me:3010: \"$ac_cpp conftest.$ac_ext\"") >&5
3011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3013 egrep -v '^ *\+' conftest.er1 >conftest.err
3015 cat conftest.err >&5
3016 echo "$as_me:3016: \$? = $ac_status" >&5
3017 (exit $ac_status); } >/dev/null; then
3018 if test -s conftest.err; then
3019 ac_cpp_err=$ac_c_preproc_warn_flag
3026 if test -z "$ac_cpp_err"; then
3027 eval "$as_ac_Header=yes"
3029 echo "$as_me: failed program was:" >&5
3030 cat conftest.$ac_ext >&5
3031 eval "$as_ac_Header=no"
3033 rm -f conftest.err conftest.$ac_ext
3035 echo "$as_me:3035: result: `eval echo '${'$as_ac_Header'}'`" >&5
3036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3038 cat >>confdefs.h <<EOF
3039 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3045 cat >>confdefs.h <<\EOF
3046 #define HAVE_STRLCAT 1
3053 for ac_func in strlcpy snprintf
3055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3056 echo "$as_me:3056: checking for $ac_func" >&5
3057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3058 if eval "test \"\${$as_ac_var+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 /* System header to define __stub macros and hopefully few prototypes,
3065 which can conflict with char $ac_func (); below. */
3067 /* Override any gcc2 internal prototype to avoid an error. */
3071 /* We use char because int might match the return type of a gcc2
3072 builtin and then its argument prototype would still apply. */
3079 /* The GNU C library defines this for functions which it implements
3080 to always fail with ENOSYS. Some functions are actually named
3081 something starting with __ and the normal name is an alias. */
3082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3085 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
3092 rm -f conftest.$ac_objext conftest$ac_exeext
3093 if { (eval echo "$as_me:3093: \"$ac_link\"") >&5
3094 (eval $ac_link) 2>&5
3096 echo "$as_me:3096: \$? = $ac_status" >&5
3097 (exit $ac_status); } &&
3098 { ac_try='test -s conftest$ac_exeext'
3099 { (eval echo "$as_me:3099: \"$ac_try\"") >&5
3102 echo "$as_me:3102: \$? = $ac_status" >&5
3103 (exit $ac_status); }; }; then
3104 eval "$as_ac_var=yes"
3106 echo "$as_me: failed program was:" >&5
3107 cat conftest.$ac_ext >&5
3108 eval "$as_ac_var=no"
3110 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3112 echo "$as_me:3112: result: `eval echo '${'$as_ac_var'}'`" >&5
3113 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3114 if test `eval echo '${'$as_ac_var'}'` = yes; then
3115 cat >>confdefs.h <<EOF
3116 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3125 cf_POSIX_C_SOURCE=199506L
3130 cf_xopen_source="-D_ALL_SOURCE"
3136 cf_xopen_source="-D_APPLE_C_SOURCE"
3139 cf_xopen_source="-D_DARWIN_C_SOURCE"
3142 (freebsd*|dragonfly*)
3143 # 5.x headers associate
3144 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
3145 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
3146 cf_POSIX_C_SOURCE=200112L
3148 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3151 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
3154 cf_xopen_source="-D_HPUX_SOURCE"
3157 cf_xopen_source="-D_SGI_SOURCE"
3160 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
3162 echo "$as_me:3162: checking if we must define _GNU_SOURCE" >&5
3163 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
3164 if test "${cf_cv_gnu_source+set}" = set; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
3168 cat >conftest.$ac_ext <<_ACEOF
3169 #line 3169 "configure"
3170 #include "confdefs.h"
3171 #include <sys/types.h>
3176 #ifndef _XOPEN_SOURCE
3183 rm -f conftest.$ac_objext
3184 if { (eval echo "$as_me:3184: \"$ac_compile\"") >&5
3185 (eval $ac_compile) 2>&5
3187 echo "$as_me:3187: \$? = $ac_status" >&5
3188 (exit $ac_status); } &&
3189 { ac_try='test -s conftest.$ac_objext'
3190 { (eval echo "$as_me:3190: \"$ac_try\"") >&5
3193 echo "$as_me:3193: \$? = $ac_status" >&5
3194 (exit $ac_status); }; }; then
3197 echo "$as_me: failed program was:" >&5
3198 cat conftest.$ac_ext >&5
3200 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
3201 cat >conftest.$ac_ext <<_ACEOF
3202 #line 3202 "configure"
3203 #include "confdefs.h"
3204 #include <sys/types.h>
3209 #ifdef _XOPEN_SOURCE
3216 rm -f conftest.$ac_objext
3217 if { (eval echo "$as_me:3217: \"$ac_compile\"") >&5
3218 (eval $ac_compile) 2>&5
3220 echo "$as_me:3220: \$? = $ac_status" >&5
3221 (exit $ac_status); } &&
3222 { ac_try='test -s conftest.$ac_objext'
3223 { (eval echo "$as_me:3223: \"$ac_try\"") >&5
3226 echo "$as_me:3226: \$? = $ac_status" >&5
3227 (exit $ac_status); }; }; then
3230 echo "$as_me: failed program was:" >&5
3231 cat conftest.$ac_ext >&5
3232 cf_cv_gnu_source=yes
3234 rm -f conftest.$ac_objext conftest.$ac_ext
3238 rm -f conftest.$ac_objext conftest.$ac_ext
3241 echo "$as_me:3241: result: $cf_cv_gnu_source" >&5
3242 echo "${ECHO_T}$cf_cv_gnu_source" >&6
3244 if test "$cf_cv_gnu_source" = yes
3246 echo "$as_me:3246: checking if we should also define _DEFAULT_SOURCE" >&5
3247 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
3248 if test "${cf_cv_default_source+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3252 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
3253 cat >conftest.$ac_ext <<_ACEOF
3254 #line 3254 "configure"
3255 #include "confdefs.h"
3256 #include <sys/types.h>
3261 #ifdef _DEFAULT_SOURCE
3268 rm -f conftest.$ac_objext
3269 if { (eval echo "$as_me:3269: \"$ac_compile\"") >&5
3270 (eval $ac_compile) 2>&5
3272 echo "$as_me:3272: \$? = $ac_status" >&5
3273 (exit $ac_status); } &&
3274 { ac_try='test -s conftest.$ac_objext'
3275 { (eval echo "$as_me:3275: \"$ac_try\"") >&5
3278 echo "$as_me:3278: \$? = $ac_status" >&5
3279 (exit $ac_status); }; }; then
3280 cf_cv_default_source=no
3282 echo "$as_me: failed program was:" >&5
3283 cat conftest.$ac_ext >&5
3284 cf_cv_default_source=yes
3286 rm -f conftest.$ac_objext conftest.$ac_ext
3289 echo "$as_me:3289: result: $cf_cv_default_source" >&5
3290 echo "${ECHO_T}$cf_cv_default_source" >&6
3291 test "$cf_cv_default_source" = yes && CPPFLAGS="$CPPFLAGS -D_DEFAULT_SOURCE"
3296 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
3299 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
3302 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3304 cf_save_CFLAGS="$CFLAGS"
3305 cf_save_CPPFLAGS="$CPPFLAGS"
3307 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3308 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3309 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3311 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3312 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3313 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3315 echo "$as_me:3315: checking if we should define _POSIX_C_SOURCE" >&5
3316 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3317 if test "${cf_cv_posix_c_source+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 echo "${as_me:-configure}:3321: testing if the symbol is already defined go no further ..." 1>&5
3323 cat >conftest.$ac_ext <<_ACEOF
3324 #line 3324 "configure"
3325 #include "confdefs.h"
3326 #include <sys/types.h>
3331 #ifndef _POSIX_C_SOURCE
3338 rm -f conftest.$ac_objext
3339 if { (eval echo "$as_me:3339: \"$ac_compile\"") >&5
3340 (eval $ac_compile) 2>&5
3342 echo "$as_me:3342: \$? = $ac_status" >&5
3343 (exit $ac_status); } &&
3344 { ac_try='test -s conftest.$ac_objext'
3345 { (eval echo "$as_me:3345: \"$ac_try\"") >&5
3348 echo "$as_me:3348: \$? = $ac_status" >&5
3349 (exit $ac_status); }; }; then
3350 cf_cv_posix_c_source=no
3352 echo "$as_me: failed program was:" >&5
3353 cat conftest.$ac_ext >&5
3354 cf_want_posix_source=no
3355 case .$cf_POSIX_C_SOURCE in
3357 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3360 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3361 cf_want_posix_source=yes
3364 cf_want_posix_source=yes
3367 if test "$cf_want_posix_source" = yes ; then
3368 cat >conftest.$ac_ext <<_ACEOF
3369 #line 3369 "configure"
3370 #include "confdefs.h"
3371 #include <sys/types.h>
3376 #ifdef _POSIX_SOURCE
3383 rm -f conftest.$ac_objext
3384 if { (eval echo "$as_me:3384: \"$ac_compile\"") >&5
3385 (eval $ac_compile) 2>&5
3387 echo "$as_me:3387: \$? = $ac_status" >&5
3388 (exit $ac_status); } &&
3389 { ac_try='test -s conftest.$ac_objext'
3390 { (eval echo "$as_me:3390: \"$ac_try\"") >&5
3393 echo "$as_me:3393: \$? = $ac_status" >&5
3394 (exit $ac_status); }; }; then
3397 echo "$as_me: failed program was:" >&5
3398 cat conftest.$ac_ext >&5
3399 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3401 rm -f conftest.$ac_objext conftest.$ac_ext
3404 echo "${as_me:-configure}:3404: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3406 CFLAGS="$cf_trim_CFLAGS"
3407 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3409 echo "${as_me:-configure}:3409: testing if the second compile does not leave our definition intact error ..." 1>&5
3411 cat >conftest.$ac_ext <<_ACEOF
3412 #line 3412 "configure"
3413 #include "confdefs.h"
3414 #include <sys/types.h>
3419 #ifndef _POSIX_C_SOURCE
3426 rm -f conftest.$ac_objext
3427 if { (eval echo "$as_me:3427: \"$ac_compile\"") >&5
3428 (eval $ac_compile) 2>&5
3430 echo "$as_me:3430: \$? = $ac_status" >&5
3431 (exit $ac_status); } &&
3432 { ac_try='test -s conftest.$ac_objext'
3433 { (eval echo "$as_me:3433: \"$ac_try\"") >&5
3436 echo "$as_me:3436: \$? = $ac_status" >&5
3437 (exit $ac_status); }; }; then
3440 echo "$as_me: failed program was:" >&5
3441 cat conftest.$ac_ext >&5
3442 cf_cv_posix_c_source=no
3444 rm -f conftest.$ac_objext conftest.$ac_ext
3445 CFLAGS="$cf_save_CFLAGS"
3446 CPPFLAGS="$cf_save_CPPFLAGS"
3449 rm -f conftest.$ac_objext conftest.$ac_ext
3452 echo "$as_me:3452: result: $cf_cv_posix_c_source" >&5
3453 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3455 if test "$cf_cv_posix_c_source" != no ; then
3456 CFLAGS="$cf_trim_CFLAGS"
3457 CPPFLAGS="$cf_trim_CPPFLAGS"
3462 cf_new_extra_cppflags=
3464 for cf_add_cflags in $cf_cv_posix_c_source
3466 case $cf_fix_cppflags in
3468 case $cf_add_cflags in
3469 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3470 case $cf_add_cflags in
3472 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3474 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3475 && test -z "${cf_tst_cflags}" \
3476 && cf_fix_cppflags=yes
3478 if test $cf_fix_cppflags = yes ; then
3480 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3481 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3484 elif test "${cf_tst_cflags}" = "\"'" ; then
3486 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3487 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3497 case $cf_add_cflags in
3499 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3501 CPPFLAGS=`echo "$CPPFLAGS" | \
3502 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3503 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3508 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3509 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3516 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3517 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3524 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3525 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3527 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3529 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3530 && test -z "${cf_tst_cflags}" \
3531 && cf_fix_cppflags=no
3536 if test -n "$cf_new_cflags" ; then
3538 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3539 CFLAGS="${CFLAGS}$cf_new_cflags"
3543 if test -n "$cf_new_cppflags" ; then
3545 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3546 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3550 if test -n "$cf_new_extra_cppflags" ; then
3552 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3553 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3561 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
3564 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
3565 cf_xopen_source="-D_BSD_SOURCE"
3569 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
3572 cf_xopen_source="-D_OSF_SOURCE"
3575 cf_xopen_source="-D_QNX_SOURCE"
3578 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
3581 cf_xopen_source="-D__EXTENSIONS__"
3582 cf_cv_xopen_source=broken
3584 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
3590 echo "$as_me:3590: checking if we should define _XOPEN_SOURCE" >&5
3591 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3592 if test "${cf_cv_xopen_source+set}" = set; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3596 cat >conftest.$ac_ext <<_ACEOF
3597 #line 3597 "configure"
3598 #include "confdefs.h"
3602 #include <sys/types.h>
3608 #ifndef _XOPEN_SOURCE
3615 rm -f conftest.$ac_objext
3616 if { (eval echo "$as_me:3616: \"$ac_compile\"") >&5
3617 (eval $ac_compile) 2>&5
3619 echo "$as_me:3619: \$? = $ac_status" >&5
3620 (exit $ac_status); } &&
3621 { ac_try='test -s conftest.$ac_objext'
3622 { (eval echo "$as_me:3622: \"$ac_try\"") >&5
3625 echo "$as_me:3625: \$? = $ac_status" >&5
3626 (exit $ac_status); }; }; then
3627 cf_cv_xopen_source=no
3629 echo "$as_me: failed program was:" >&5
3630 cat conftest.$ac_ext >&5
3632 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3633 cat >conftest.$ac_ext <<_ACEOF
3634 #line 3634 "configure"
3635 #include "confdefs.h"
3639 #include <sys/types.h>
3645 #ifdef _XOPEN_SOURCE
3652 rm -f conftest.$ac_objext
3653 if { (eval echo "$as_me:3653: \"$ac_compile\"") >&5
3654 (eval $ac_compile) 2>&5
3656 echo "$as_me:3656: \$? = $ac_status" >&5
3657 (exit $ac_status); } &&
3658 { ac_try='test -s conftest.$ac_objext'
3659 { (eval echo "$as_me:3659: \"$ac_try\"") >&5
3662 echo "$as_me:3662: \$? = $ac_status" >&5
3663 (exit $ac_status); }; }; then
3664 cf_cv_xopen_source=no
3666 echo "$as_me: failed program was:" >&5
3667 cat conftest.$ac_ext >&5
3668 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3670 rm -f conftest.$ac_objext conftest.$ac_ext
3674 rm -f conftest.$ac_objext conftest.$ac_ext
3677 echo "$as_me:3677: result: $cf_cv_xopen_source" >&5
3678 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3680 if test "$cf_cv_xopen_source" != no ; then
3682 CFLAGS=`echo "$CFLAGS" | \
3683 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3684 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3686 CPPFLAGS=`echo "$CPPFLAGS" | \
3687 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3688 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3690 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3695 cf_new_extra_cppflags=
3697 for cf_add_cflags in $cf_temp_xopen_source
3699 case $cf_fix_cppflags in
3701 case $cf_add_cflags in
3702 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3703 case $cf_add_cflags in
3705 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3707 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3708 && test -z "${cf_tst_cflags}" \
3709 && cf_fix_cppflags=yes
3711 if test $cf_fix_cppflags = yes ; then
3713 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3714 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3717 elif test "${cf_tst_cflags}" = "\"'" ; then
3719 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3720 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3730 case $cf_add_cflags in
3732 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3734 CPPFLAGS=`echo "$CPPFLAGS" | \
3735 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3736 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3741 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3742 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3749 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3750 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3757 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3758 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3760 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3762 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3763 && test -z "${cf_tst_cflags}" \
3764 && cf_fix_cppflags=no
3769 if test -n "$cf_new_cflags" ; then
3771 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3772 CFLAGS="${CFLAGS}$cf_new_cflags"
3776 if test -n "$cf_new_cppflags" ; then
3778 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3779 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3783 if test -n "$cf_new_extra_cppflags" ; then
3785 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3786 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3792 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3794 cf_save_CFLAGS="$CFLAGS"
3795 cf_save_CPPFLAGS="$CPPFLAGS"
3797 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3798 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3799 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3801 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3802 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3803 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3805 echo "$as_me:3805: checking if we should define _POSIX_C_SOURCE" >&5
3806 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3807 if test "${cf_cv_posix_c_source+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
3811 echo "${as_me:-configure}:3811: testing if the symbol is already defined go no further ..." 1>&5
3813 cat >conftest.$ac_ext <<_ACEOF
3814 #line 3814 "configure"
3815 #include "confdefs.h"
3816 #include <sys/types.h>
3821 #ifndef _POSIX_C_SOURCE
3828 rm -f conftest.$ac_objext
3829 if { (eval echo "$as_me:3829: \"$ac_compile\"") >&5
3830 (eval $ac_compile) 2>&5
3832 echo "$as_me:3832: \$? = $ac_status" >&5
3833 (exit $ac_status); } &&
3834 { ac_try='test -s conftest.$ac_objext'
3835 { (eval echo "$as_me:3835: \"$ac_try\"") >&5
3838 echo "$as_me:3838: \$? = $ac_status" >&5
3839 (exit $ac_status); }; }; then
3840 cf_cv_posix_c_source=no
3842 echo "$as_me: failed program was:" >&5
3843 cat conftest.$ac_ext >&5
3844 cf_want_posix_source=no
3845 case .$cf_POSIX_C_SOURCE in
3847 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3850 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3851 cf_want_posix_source=yes
3854 cf_want_posix_source=yes
3857 if test "$cf_want_posix_source" = yes ; then
3858 cat >conftest.$ac_ext <<_ACEOF
3859 #line 3859 "configure"
3860 #include "confdefs.h"
3861 #include <sys/types.h>
3866 #ifdef _POSIX_SOURCE
3873 rm -f conftest.$ac_objext
3874 if { (eval echo "$as_me:3874: \"$ac_compile\"") >&5
3875 (eval $ac_compile) 2>&5
3877 echo "$as_me:3877: \$? = $ac_status" >&5
3878 (exit $ac_status); } &&
3879 { ac_try='test -s conftest.$ac_objext'
3880 { (eval echo "$as_me:3880: \"$ac_try\"") >&5
3883 echo "$as_me:3883: \$? = $ac_status" >&5
3884 (exit $ac_status); }; }; then
3887 echo "$as_me: failed program was:" >&5
3888 cat conftest.$ac_ext >&5
3889 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3891 rm -f conftest.$ac_objext conftest.$ac_ext
3894 echo "${as_me:-configure}:3894: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3896 CFLAGS="$cf_trim_CFLAGS"
3897 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3899 echo "${as_me:-configure}:3899: testing if the second compile does not leave our definition intact error ..." 1>&5
3901 cat >conftest.$ac_ext <<_ACEOF
3902 #line 3902 "configure"
3903 #include "confdefs.h"
3904 #include <sys/types.h>
3909 #ifndef _POSIX_C_SOURCE
3916 rm -f conftest.$ac_objext
3917 if { (eval echo "$as_me:3917: \"$ac_compile\"") >&5
3918 (eval $ac_compile) 2>&5
3920 echo "$as_me:3920: \$? = $ac_status" >&5
3921 (exit $ac_status); } &&
3922 { ac_try='test -s conftest.$ac_objext'
3923 { (eval echo "$as_me:3923: \"$ac_try\"") >&5
3926 echo "$as_me:3926: \$? = $ac_status" >&5
3927 (exit $ac_status); }; }; then
3930 echo "$as_me: failed program was:" >&5
3931 cat conftest.$ac_ext >&5
3932 cf_cv_posix_c_source=no
3934 rm -f conftest.$ac_objext conftest.$ac_ext
3935 CFLAGS="$cf_save_CFLAGS"
3936 CPPFLAGS="$cf_save_CPPFLAGS"
3939 rm -f conftest.$ac_objext conftest.$ac_ext
3942 echo "$as_me:3942: result: $cf_cv_posix_c_source" >&5
3943 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3945 if test "$cf_cv_posix_c_source" != no ; then
3946 CFLAGS="$cf_trim_CFLAGS"
3947 CPPFLAGS="$cf_trim_CPPFLAGS"
3952 cf_new_extra_cppflags=
3954 for cf_add_cflags in $cf_cv_posix_c_source
3956 case $cf_fix_cppflags in
3958 case $cf_add_cflags in
3959 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3960 case $cf_add_cflags in
3962 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3964 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3965 && test -z "${cf_tst_cflags}" \
3966 && cf_fix_cppflags=yes
3968 if test $cf_fix_cppflags = yes ; then
3970 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3971 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3974 elif test "${cf_tst_cflags}" = "\"'" ; then
3976 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3977 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3987 case $cf_add_cflags in
3989 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3991 CPPFLAGS=`echo "$CPPFLAGS" | \
3992 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3993 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3998 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3999 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4006 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4007 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4014 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4015 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4017 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4019 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4020 && test -z "${cf_tst_cflags}" \
4021 && cf_fix_cppflags=no
4026 if test -n "$cf_new_cflags" ; then
4028 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4029 CFLAGS="${CFLAGS}$cf_new_cflags"
4033 if test -n "$cf_new_cppflags" ; then
4035 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4036 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4040 if test -n "$cf_new_extra_cppflags" ; then
4042 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4043 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4052 if test -n "$cf_xopen_source" ; then
4057 cf_new_extra_cppflags=
4059 for cf_add_cflags in $cf_xopen_source
4061 case $cf_fix_cppflags in
4063 case $cf_add_cflags in
4064 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4065 case $cf_add_cflags in
4067 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4069 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4070 && test -z "${cf_tst_cflags}" \
4071 && cf_fix_cppflags=yes
4073 if test $cf_fix_cppflags = yes ; then
4075 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4076 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4079 elif test "${cf_tst_cflags}" = "\"'" ; then
4081 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4082 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4092 case $cf_add_cflags in
4094 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4096 CPPFLAGS=`echo "$CPPFLAGS" | \
4097 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4098 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4103 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4104 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4111 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4112 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4119 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4120 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4122 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4124 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4125 && test -z "${cf_tst_cflags}" \
4126 && cf_fix_cppflags=no
4131 if test -n "$cf_new_cflags" ; then
4132 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
4134 echo "${as_me:-configure}:4134: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
4136 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4137 CFLAGS="${CFLAGS}$cf_new_cflags"
4141 if test -n "$cf_new_cppflags" ; then
4142 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
4144 echo "${as_me:-configure}:4144: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
4146 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4147 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4151 if test -n "$cf_new_extra_cppflags" ; then
4152 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
4154 echo "${as_me:-configure}:4154: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
4156 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4157 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4163 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
4164 echo "$as_me:4164: checking if _XOPEN_SOURCE really is set" >&5
4165 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
4166 cat >conftest.$ac_ext <<_ACEOF
4167 #line 4167 "configure"
4168 #include "confdefs.h"
4174 #ifndef _XOPEN_SOURCE
4181 rm -f conftest.$ac_objext
4182 if { (eval echo "$as_me:4182: \"$ac_compile\"") >&5
4183 (eval $ac_compile) 2>&5
4185 echo "$as_me:4185: \$? = $ac_status" >&5
4186 (exit $ac_status); } &&
4187 { ac_try='test -s conftest.$ac_objext'
4188 { (eval echo "$as_me:4188: \"$ac_try\"") >&5
4191 echo "$as_me:4191: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
4193 cf_XOPEN_SOURCE_set=yes
4195 echo "$as_me: failed program was:" >&5
4196 cat conftest.$ac_ext >&5
4197 cf_XOPEN_SOURCE_set=no
4199 rm -f conftest.$ac_objext conftest.$ac_ext
4200 echo "$as_me:4200: result: $cf_XOPEN_SOURCE_set" >&5
4201 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
4202 if test $cf_XOPEN_SOURCE_set = yes
4204 cat >conftest.$ac_ext <<_ACEOF
4205 #line 4205 "configure"
4206 #include "confdefs.h"
4212 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
4219 rm -f conftest.$ac_objext
4220 if { (eval echo "$as_me:4220: \"$ac_compile\"") >&5
4221 (eval $ac_compile) 2>&5
4223 echo "$as_me:4223: \$? = $ac_status" >&5
4224 (exit $ac_status); } &&
4225 { ac_try='test -s conftest.$ac_objext'
4226 { (eval echo "$as_me:4226: \"$ac_try\"") >&5
4229 echo "$as_me:4229: \$? = $ac_status" >&5
4230 (exit $ac_status); }; }; then
4231 cf_XOPEN_SOURCE_set_ok=yes
4233 echo "$as_me: failed program was:" >&5
4234 cat conftest.$ac_ext >&5
4235 cf_XOPEN_SOURCE_set_ok=no
4237 rm -f conftest.$ac_objext conftest.$ac_ext
4238 if test $cf_XOPEN_SOURCE_set_ok = no
4240 { echo "$as_me:4240: WARNING: _XOPEN_SOURCE is lower than requested" >&5
4241 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
4245 echo "$as_me:4245: checking if we should define _XOPEN_SOURCE" >&5
4246 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
4247 if test "${cf_cv_xopen_source+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4251 cat >conftest.$ac_ext <<_ACEOF
4252 #line 4252 "configure"
4253 #include "confdefs.h"
4257 #include <sys/types.h>
4263 #ifndef _XOPEN_SOURCE
4270 rm -f conftest.$ac_objext
4271 if { (eval echo "$as_me:4271: \"$ac_compile\"") >&5
4272 (eval $ac_compile) 2>&5
4274 echo "$as_me:4274: \$? = $ac_status" >&5
4275 (exit $ac_status); } &&
4276 { ac_try='test -s conftest.$ac_objext'
4277 { (eval echo "$as_me:4277: \"$ac_try\"") >&5
4280 echo "$as_me:4280: \$? = $ac_status" >&5
4281 (exit $ac_status); }; }; then
4282 cf_cv_xopen_source=no
4284 echo "$as_me: failed program was:" >&5
4285 cat conftest.$ac_ext >&5
4287 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
4288 cat >conftest.$ac_ext <<_ACEOF
4289 #line 4289 "configure"
4290 #include "confdefs.h"
4294 #include <sys/types.h>
4300 #ifdef _XOPEN_SOURCE
4307 rm -f conftest.$ac_objext
4308 if { (eval echo "$as_me:4308: \"$ac_compile\"") >&5
4309 (eval $ac_compile) 2>&5
4311 echo "$as_me:4311: \$? = $ac_status" >&5
4312 (exit $ac_status); } &&
4313 { ac_try='test -s conftest.$ac_objext'
4314 { (eval echo "$as_me:4314: \"$ac_try\"") >&5
4317 echo "$as_me:4317: \$? = $ac_status" >&5
4318 (exit $ac_status); }; }; then
4319 cf_cv_xopen_source=no
4321 echo "$as_me: failed program was:" >&5
4322 cat conftest.$ac_ext >&5
4323 cf_cv_xopen_source=$cf_XOPEN_SOURCE
4325 rm -f conftest.$ac_objext conftest.$ac_ext
4329 rm -f conftest.$ac_objext conftest.$ac_ext
4332 echo "$as_me:4332: result: $cf_cv_xopen_source" >&5
4333 echo "${ECHO_T}$cf_cv_xopen_source" >&6
4335 if test "$cf_cv_xopen_source" != no ; then
4337 CFLAGS=`echo "$CFLAGS" | \
4338 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4339 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4341 CPPFLAGS=`echo "$CPPFLAGS" | \
4342 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4343 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4345 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
4350 cf_new_extra_cppflags=
4352 for cf_add_cflags in $cf_temp_xopen_source
4354 case $cf_fix_cppflags in
4356 case $cf_add_cflags in
4357 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4358 case $cf_add_cflags in
4360 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4362 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4363 && test -z "${cf_tst_cflags}" \
4364 && cf_fix_cppflags=yes
4366 if test $cf_fix_cppflags = yes ; then
4368 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4369 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4372 elif test "${cf_tst_cflags}" = "\"'" ; then
4374 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4375 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4385 case $cf_add_cflags in
4387 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4389 CPPFLAGS=`echo "$CPPFLAGS" | \
4390 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4391 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4396 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4397 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4404 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4405 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4412 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4413 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4415 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4417 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4418 && test -z "${cf_tst_cflags}" \
4419 && cf_fix_cppflags=no
4424 if test -n "$cf_new_cflags" ; then
4426 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4427 CFLAGS="${CFLAGS}$cf_new_cflags"
4431 if test -n "$cf_new_cppflags" ; then
4433 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4434 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4438 if test -n "$cf_new_extra_cppflags" ; then
4440 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4441 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4450 echo "$as_me:4450: checking for signal global datatype" >&5
4451 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
4452 if test "${cf_cv_sig_atomic_t+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4457 "volatile sig_atomic_t" \
4461 cat >conftest.$ac_ext <<_ACEOF
4462 #line 4462 "configure"
4463 #include "confdefs.h"
4465 #include <sys/types.h>
4471 static void handler(int sig)
4478 signal(SIGINT, handler);
4484 rm -f conftest.$ac_objext
4485 if { (eval echo "$as_me:4485: \"$ac_compile\"") >&5
4486 (eval $ac_compile) 2>&5
4488 echo "$as_me:4488: \$? = $ac_status" >&5
4489 (exit $ac_status); } &&
4490 { ac_try='test -s conftest.$ac_objext'
4491 { (eval echo "$as_me:4491: \"$ac_try\"") >&5
4494 echo "$as_me:4494: \$? = $ac_status" >&5
4495 (exit $ac_status); }; }; then
4496 cf_cv_sig_atomic_t=$cf_type
4498 echo "$as_me: failed program was:" >&5
4499 cat conftest.$ac_ext >&5
4500 cf_cv_sig_atomic_t=no
4502 rm -f conftest.$ac_objext conftest.$ac_ext
4503 test "$cf_cv_sig_atomic_t" != no && break
4508 echo "$as_me:4508: result: $cf_cv_sig_atomic_t" >&5
4509 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
4510 test "$cf_cv_sig_atomic_t" != no &&
4511 cat >>confdefs.h <<EOF
4512 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
4515 # Work around breakage on OS X
4517 echo "$as_me:4517: checking if SIGWINCH is defined" >&5
4518 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
4519 if test "${cf_cv_define_sigwinch+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4523 cat >conftest.$ac_ext <<_ACEOF
4524 #line 4524 "configure"
4525 #include "confdefs.h"
4527 #include <sys/types.h>
4528 #include <sys/signal.h>
4538 rm -f conftest.$ac_objext
4539 if { (eval echo "$as_me:4539: \"$ac_compile\"") >&5
4540 (eval $ac_compile) 2>&5
4542 echo "$as_me:4542: \$? = $ac_status" >&5
4543 (exit $ac_status); } &&
4544 { ac_try='test -s conftest.$ac_objext'
4545 { (eval echo "$as_me:4545: \"$ac_try\"") >&5
4548 echo "$as_me:4548: \$? = $ac_status" >&5
4549 (exit $ac_status); }; }; then
4550 cf_cv_define_sigwinch=yes
4552 echo "$as_me: failed program was:" >&5
4553 cat conftest.$ac_ext >&5
4554 cat >conftest.$ac_ext <<_ACEOF
4555 #line 4555 "configure"
4556 #include "confdefs.h"
4558 #undef _XOPEN_SOURCE
4559 #undef _POSIX_SOURCE
4560 #undef _POSIX_C_SOURCE
4561 #include <sys/types.h>
4562 #include <sys/signal.h>
4572 rm -f conftest.$ac_objext
4573 if { (eval echo "$as_me:4573: \"$ac_compile\"") >&5
4574 (eval $ac_compile) 2>&5
4576 echo "$as_me:4576: \$? = $ac_status" >&5
4577 (exit $ac_status); } &&
4578 { ac_try='test -s conftest.$ac_objext'
4579 { (eval echo "$as_me:4579: \"$ac_try\"") >&5
4582 echo "$as_me:4582: \$? = $ac_status" >&5
4583 (exit $ac_status); }; }; then
4584 cf_cv_define_sigwinch=maybe
4586 echo "$as_me: failed program was:" >&5
4587 cat conftest.$ac_ext >&5
4588 cf_cv_define_sigwinch=no
4590 rm -f conftest.$ac_objext conftest.$ac_ext
4593 rm -f conftest.$ac_objext conftest.$ac_ext
4596 echo "$as_me:4596: result: $cf_cv_define_sigwinch" >&5
4597 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
4599 if test "$cf_cv_define_sigwinch" = maybe ; then
4600 echo "$as_me:4600: checking for actual SIGWINCH definition" >&5
4601 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
4602 if test "${cf_cv_fixup_sigwinch+set}" = set; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4606 cf_cv_fixup_sigwinch=unknown
4608 while test $cf_sigwinch != 1
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>
4624 #if SIGWINCH != $cf_sigwinch
4632 rm -f conftest.$ac_objext
4633 if { (eval echo "$as_me:4633: \"$ac_compile\"") >&5
4634 (eval $ac_compile) 2>&5
4636 echo "$as_me:4636: \$? = $ac_status" >&5
4637 (exit $ac_status); } &&
4638 { ac_try='test -s conftest.$ac_objext'
4639 { (eval echo "$as_me:4639: \"$ac_try\"") >&5
4642 echo "$as_me:4642: \$? = $ac_status" >&5
4643 (exit $ac_status); }; }; then
4644 cf_cv_fixup_sigwinch=$cf_sigwinch
4647 echo "$as_me: failed program was:" >&5
4648 cat conftest.$ac_ext >&5
4650 rm -f conftest.$ac_objext conftest.$ac_ext
4652 cf_sigwinch=`expr $cf_sigwinch - 1`
4656 echo "$as_me:4656: result: $cf_cv_fixup_sigwinch" >&5
4657 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
4659 if test "$cf_cv_fixup_sigwinch" != unknown ; then
4660 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
4664 # Checks for CODESET support.
4666 echo "$as_me:4666: checking for nl_langinfo and CODESET" >&5
4667 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
4668 if test "${am_cv_langinfo_codeset+set}" = set; then
4669 echo $ECHO_N "(cached) $ECHO_C" >&6
4671 cat >conftest.$ac_ext <<_ACEOF
4672 #line 4672 "configure"
4673 #include "confdefs.h"
4674 #include <langinfo.h>
4678 char* cs = nl_langinfo(CODESET);
4683 rm -f conftest.$ac_objext conftest$ac_exeext
4684 if { (eval echo "$as_me:4684: \"$ac_link\"") >&5
4685 (eval $ac_link) 2>&5
4687 echo "$as_me:4687: \$? = $ac_status" >&5
4688 (exit $ac_status); } &&
4689 { ac_try='test -s conftest$ac_exeext'
4690 { (eval echo "$as_me:4690: \"$ac_try\"") >&5
4693 echo "$as_me:4693: \$? = $ac_status" >&5
4694 (exit $ac_status); }; }; then
4695 am_cv_langinfo_codeset=yes
4697 echo "$as_me: failed program was:" >&5
4698 cat conftest.$ac_ext >&5
4699 am_cv_langinfo_codeset=no
4701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4704 echo "$as_me:4704: result: $am_cv_langinfo_codeset" >&5
4705 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
4706 if test $am_cv_langinfo_codeset = yes; then
4708 cat >>confdefs.h <<\EOF
4709 #define HAVE_LANGINFO_CODESET 1
4714 echo "$as_me:4714: checking if you want to use pkg-config" >&5
4715 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
4717 # Check whether --with-pkg-config or --without-pkg-config was given.
4718 if test "${with_pkg_config+set}" = set; then
4719 withval="$with_pkg_config"
4720 cf_pkg_config=$withval
4724 echo "$as_me:4724: result: $cf_pkg_config" >&5
4725 echo "${ECHO_T}$cf_pkg_config" >&6
4727 case $cf_pkg_config in
4733 if test -n "$ac_tool_prefix"; then
4734 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4735 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4736 echo "$as_me:4736: checking for $ac_word" >&5
4737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4738 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4743 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4746 ac_save_IFS=$IFS; IFS=$ac_path_separator
4748 for ac_dir in $ac_dummy; do
4750 test -z "$ac_dir" && ac_dir=.
4751 if $as_executable_p "$ac_dir/$ac_word"; then
4752 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4753 echo "$as_me:4753: found $ac_dir/$ac_word" >&5
4761 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4763 if test -n "$PKG_CONFIG"; then
4764 echo "$as_me:4764: result: $PKG_CONFIG" >&5
4765 echo "${ECHO_T}$PKG_CONFIG" >&6
4767 echo "$as_me:4767: result: no" >&5
4768 echo "${ECHO_T}no" >&6
4772 if test -z "$ac_cv_path_PKG_CONFIG"; then
4773 ac_pt_PKG_CONFIG=$PKG_CONFIG
4774 # Extract the first word of "pkg-config", so it can be a program name with args.
4775 set dummy pkg-config; ac_word=$2
4776 echo "$as_me:4776: checking for $ac_word" >&5
4777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4778 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4779 echo $ECHO_N "(cached) $ECHO_C" >&6
4781 case $ac_pt_PKG_CONFIG in
4783 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4786 ac_save_IFS=$IFS; IFS=$ac_path_separator
4788 for ac_dir in $ac_dummy; do
4790 test -z "$ac_dir" && ac_dir=.
4791 if $as_executable_p "$ac_dir/$ac_word"; then
4792 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
4793 echo "$as_me:4793: found $ac_dir/$ac_word" >&5
4798 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
4802 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4804 if test -n "$ac_pt_PKG_CONFIG"; then
4805 echo "$as_me:4805: result: $ac_pt_PKG_CONFIG" >&5
4806 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4808 echo "$as_me:4808: result: no" >&5
4809 echo "${ECHO_T}no" >&6
4812 PKG_CONFIG=$ac_pt_PKG_CONFIG
4814 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4823 test -z "$PKG_CONFIG" && PKG_CONFIG=none
4824 if test "$PKG_CONFIG" != none ; then
4826 if test "x$prefix" != xNONE; then
4827 cf_path_syntax="$prefix"
4829 cf_path_syntax="$ac_default_prefix"
4832 case ".$PKG_CONFIG" in
4837 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4839 (.\${*prefix}*|.\${*dir}*)
4840 eval PKG_CONFIG="$PKG_CONFIG"
4841 case ".$PKG_CONFIG" in
4843 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
4848 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
4851 { { echo "$as_me:4851: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
4852 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
4853 { (exit 1); exit 1; }; }
4857 elif test "x$cf_pkg_config" != xno ; then
4858 { echo "$as_me:4858: WARNING: pkg-config is not installed" >&5
4859 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
4862 echo "$as_me:4862: checking if you want to see long compiling messages" >&5
4863 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
4865 # Check whether --enable-echo or --disable-echo was given.
4866 if test "${enable_echo+set}" = set; then
4867 enableval="$enable_echo"
4868 test "$enableval" != no && enableval=yes
4869 if test "$enableval" != "yes" ; then
4872 ECHO_LD='@echo linking $@;'
4873 RULE_CC='@echo compiling $<'
4874 SHOW_CC='@echo compiling $@'
4896 echo "$as_me:4896: result: $enableval" >&5
4897 echo "${ECHO_T}$enableval" >&6
4899 echo "$as_me:4899: checking for ncurses wrap-prefix" >&5
4900 echo $ECHO_N "checking for ncurses wrap-prefix... $ECHO_C" >&6
4902 # Check whether --with-ncurses-wrap-prefix or --without-ncurses-wrap-prefix was given.
4903 if test "${with_ncurses_wrap_prefix+set}" = set; then
4904 withval="$with_ncurses_wrap_prefix"
4905 NCURSES_WRAP_PREFIX=$withval
4907 NCURSES_WRAP_PREFIX=_nc_
4909 echo "$as_me:4909: result: $NCURSES_WRAP_PREFIX" >&5
4910 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
4912 echo "$as_me:4912: checking if you want to check for wide-character functions" >&5
4913 echo $ECHO_N "checking if you want to check for wide-character functions... $ECHO_C" >&6
4915 # Check whether --enable-widec or --disable-widec was given.
4916 if test "${enable_widec+set}" = set; then
4917 enableval="$enable_widec"
4918 test "$enableval" != no && enableval=yes
4919 if test "$enableval" != "yes" ; then
4929 echo "$as_me:4929: result: $cf_enable_widec" >&5
4930 echo "${ECHO_T}$cf_enable_widec" >&6
4932 echo "$as_me:4932: checking for specific curses-directory" >&5
4933 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
4935 # Check whether --with-curses-dir or --without-curses-dir was given.
4936 if test "${with_curses_dir+set}" = set; then
4937 withval="$with_curses_dir"
4938 cf_cv_curses_dir=$withval
4942 echo "$as_me:4942: result: $cf_cv_curses_dir" >&5
4943 echo "${ECHO_T}$cf_cv_curses_dir" >&6
4945 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
4948 if test "x$prefix" != xNONE; then
4949 cf_path_syntax="$prefix"
4951 cf_path_syntax="$ac_default_prefix"
4959 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4961 (.\${*prefix}*|.\${*dir}*)
4962 eval withval="$withval"
4965 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4970 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4973 { { echo "$as_me:4973: error: expected a pathname, not \"$withval\"" >&5
4974 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
4975 { (exit 1); exit 1; }; }
4979 if test -d "$cf_cv_curses_dir"
4982 if test -n "$cf_cv_curses_dir/include" ; then
4983 for cf_add_incdir in $cf_cv_curses_dir/include
4985 while test $cf_add_incdir != /usr/include
4987 if test -d $cf_add_incdir
4990 if test -n "$CFLAGS$CPPFLAGS" ; then
4991 # a loop is needed to ensure we can add subdirs of existing dirs
4992 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4993 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4994 cf_have_incdir=yes; break
4999 if test "$cf_have_incdir" = no ; then
5000 if test "$cf_add_incdir" = /usr/local/include ; then
5001 if test "$GCC" = yes
5003 cf_save_CPPFLAGS=$CPPFLAGS
5004 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5005 cat >conftest.$ac_ext <<_ACEOF
5006 #line 5006 "configure"
5007 #include "confdefs.h"
5017 rm -f conftest.$ac_objext
5018 if { (eval echo "$as_me:5018: \"$ac_compile\"") >&5
5019 (eval $ac_compile) 2>&5
5021 echo "$as_me:5021: \$? = $ac_status" >&5
5022 (exit $ac_status); } &&
5023 { ac_try='test -s conftest.$ac_objext'
5024 { (eval echo "$as_me:5024: \"$ac_try\"") >&5
5027 echo "$as_me:5027: \$? = $ac_status" >&5
5028 (exit $ac_status); }; }; then
5031 echo "$as_me: failed program was:" >&5
5032 cat conftest.$ac_ext >&5
5035 rm -f conftest.$ac_objext conftest.$ac_ext
5036 CPPFLAGS=$cf_save_CPPFLAGS
5041 if test "$cf_have_incdir" = no ; then
5042 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
5044 echo "${as_me:-configure}:5044: testing adding $cf_add_incdir to include-path ..." 1>&5
5046 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5048 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
5049 test "$cf_top_incdir" = "$cf_add_incdir" && break
5050 cf_add_incdir="$cf_top_incdir"
5061 if test -n "$cf_cv_curses_dir/lib" ; then
5062 for cf_add_libdir in $cf_cv_curses_dir/lib
5064 if test $cf_add_libdir = /usr/lib ; then
5066 elif test -d $cf_add_libdir
5069 if test -n "$LDFLAGS$LIBS" ; then
5070 # a loop is needed to ensure we can add subdirs of existing dirs
5071 for cf_test_libdir in $LDFLAGS $LIBS ; do
5072 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5073 cf_have_libdir=yes; break
5077 if test "$cf_have_libdir" = no ; then
5078 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5080 echo "${as_me:-configure}:5080: testing adding $cf_add_libdir to library-path ..." 1>&5
5082 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5093 echo "$as_me:5093: checking for specified curses library type" >&5
5094 echo $ECHO_N "checking for specified curses library type... $ECHO_C" >&6
5096 # Check whether --with-screen or --without-screen was given.
5097 if test "${with_screen+set}" = set; then
5098 withval="$with_screen"
5099 cf_cv_screen=$withval
5102 # Check whether --with-ncursesw or --without-ncursesw was given.
5103 if test "${with_ncursesw+set}" = set; then
5104 withval="$with_ncursesw"
5105 cf_cv_screen=ncursesw
5108 # Check whether --with-ncurses or --without-ncurses was given.
5109 if test "${with_ncurses+set}" = set; then
5110 withval="$with_ncurses"
5111 cf_cv_screen=ncurses
5114 # Check whether --with-pdcurses or --without-pdcurses was given.
5115 if test "${with_pdcurses+set}" = set; then
5116 withval="$with_pdcurses"
5117 cf_cv_screen=pdcurses
5120 # Check whether --with-curses-colr or --without-curses-colr was given.
5121 if test "${with_curses_colr+set}" = set; then
5122 withval="$with_curses_colr"
5123 cf_cv_screen=curses_colr
5126 # Check whether --with-curses-5lib or --without-curses-5lib was given.
5127 if test "${with_curses_5lib+set}" = set; then
5128 withval="$with_curses_5lib"
5129 cf_cv_screen=curses_5lib
5137 echo "$as_me:5137: result: $cf_cv_screen" >&5
5138 echo "${ECHO_T}$cf_cv_screen" >&6
5140 case $cf_cv_screen in
5143 echo "$as_me:5143: checking for extra include directories" >&5
5144 echo $ECHO_N "checking for extra include directories... $ECHO_C" >&6
5145 if test "${cf_cv_curses_incdir+set}" = set; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5149 cf_cv_curses_incdir=no
5152 if test "x$cf_cv_screen" = "xcurses_colr"
5154 test -d /usr/include/curses_colr && \
5155 cf_cv_curses_incdir="-I/usr/include/curses_colr"
5159 if test "x$cf_cv_screen" = "xcurses_5lib"
5161 test -d /usr/5lib && \
5162 test -d /usr/5include && \
5163 cf_cv_curses_incdir="-I/usr/5include"
5169 echo "$as_me:5169: result: $cf_cv_curses_incdir" >&5
5170 echo "${ECHO_T}$cf_cv_curses_incdir" >&6
5171 test "$cf_cv_curses_incdir" != no && CPPFLAGS="$CPPFLAGS $cf_cv_curses_incdir"
5173 echo "$as_me:5173: checking if we have identified curses headers" >&5
5174 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
5175 if test "${cf_cv_ncurses_header+set}" = set; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5179 cf_cv_ncurses_header=none
5182 curses.h ncurses/ncurses.h ncurses/curses.h
5184 cat >conftest.$ac_ext <<_ACEOF
5185 #line 5185 "configure"
5186 #include "confdefs.h"
5187 #include <${cf_header}>
5191 initscr(); tgoto("?", 0,0)
5196 rm -f conftest.$ac_objext
5197 if { (eval echo "$as_me:5197: \"$ac_compile\"") >&5
5198 (eval $ac_compile) 2>&5
5200 echo "$as_me:5200: \$? = $ac_status" >&5
5201 (exit $ac_status); } &&
5202 { ac_try='test -s conftest.$ac_objext'
5203 { (eval echo "$as_me:5203: \"$ac_try\"") >&5
5206 echo "$as_me:5206: \$? = $ac_status" >&5
5207 (exit $ac_status); }; }; then
5208 cf_cv_ncurses_header=$cf_header; break
5210 echo "$as_me: failed program was:" >&5
5211 cat conftest.$ac_ext >&5
5213 rm -f conftest.$ac_objext conftest.$ac_ext
5217 echo "$as_me:5217: result: $cf_cv_ncurses_header" >&5
5218 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
5220 if test "$cf_cv_ncurses_header" = none ; then
5221 { { echo "$as_me:5221: error: No curses header-files found" >&5
5222 echo "$as_me: error: No curses header-files found" >&2;}
5223 { (exit 1); exit 1; }; }
5226 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
5228 for ac_header in $cf_cv_ncurses_header
5230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5231 echo "$as_me:5231: checking for $ac_header" >&5
5232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5233 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5236 cat >conftest.$ac_ext <<_ACEOF
5237 #line 5237 "configure"
5238 #include "confdefs.h"
5239 #include <$ac_header>
5241 if { (eval echo "$as_me:5241: \"$ac_cpp conftest.$ac_ext\"") >&5
5242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5244 egrep -v '^ *\+' conftest.er1 >conftest.err
5246 cat conftest.err >&5
5247 echo "$as_me:5247: \$? = $ac_status" >&5
5248 (exit $ac_status); } >/dev/null; then
5249 if test -s conftest.err; then
5250 ac_cpp_err=$ac_c_preproc_warn_flag
5257 if test -z "$ac_cpp_err"; then
5258 eval "$as_ac_Header=yes"
5260 echo "$as_me: failed program was:" >&5
5261 cat conftest.$ac_ext >&5
5262 eval "$as_ac_Header=no"
5264 rm -f conftest.err conftest.$ac_ext
5266 echo "$as_me:5266: result: `eval echo '${'$as_ac_Header'}'`" >&5
5267 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5269 cat >>confdefs.h <<EOF
5270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5276 echo "$as_me:5276: checking for terminfo header" >&5
5277 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
5278 if test "${cf_cv_term_header+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5282 case ${cf_cv_ncurses_header} in
5283 (*/ncurses.h|*/ncursesw.h)
5284 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
5287 cf_term_header=term.h
5291 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
5293 cat >conftest.$ac_ext <<_ACEOF
5294 #line 5294 "configure"
5295 #include "confdefs.h"
5297 #include <${cf_cv_ncurses_header:-curses.h}>
5303 int x = auto_left_margin
5308 rm -f conftest.$ac_objext
5309 if { (eval echo "$as_me:5309: \"$ac_compile\"") >&5
5310 (eval $ac_compile) 2>&5
5312 echo "$as_me:5312: \$? = $ac_status" >&5
5313 (exit $ac_status); } &&
5314 { ac_try='test -s conftest.$ac_objext'
5315 { (eval echo "$as_me:5315: \"$ac_try\"") >&5
5318 echo "$as_me:5318: \$? = $ac_status" >&5
5319 (exit $ac_status); }; }; then
5321 cf_cv_term_header="$cf_test"
5323 echo "$as_me: failed program was:" >&5
5324 cat conftest.$ac_ext >&5
5326 cf_cv_term_header=unknown
5329 rm -f conftest.$ac_objext conftest.$ac_ext
5330 test "$cf_cv_term_header" != unknown && break
5334 echo "$as_me:5334: result: $cf_cv_term_header" >&5
5335 echo "${ECHO_T}$cf_cv_term_header" >&6
5337 # Set definitions to allow ifdef'ing to accommodate subdirectories
5339 case $cf_cv_term_header in
5342 cat >>confdefs.h <<\EOF
5343 #define HAVE_TERM_H 1
5349 case $cf_cv_term_header in
5352 cat >>confdefs.h <<\EOF
5353 #define HAVE_NCURSES_TERM_H 1
5359 cat >>confdefs.h <<\EOF
5360 #define HAVE_NCURSESW_TERM_H 1
5366 echo "$as_me:5366: checking for ncurses version" >&5
5367 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
5368 if test "${cf_cv_ncurses_version+set}" = set; then
5369 echo $ECHO_N "(cached) $ECHO_C" >&6
5372 cf_cv_ncurses_version=no
5375 if test "$cross_compiling" = yes; then
5377 # This will not work if the preprocessor splits the line after the
5378 # Autoconf token. The 'unproto' program does that.
5379 cat > conftest.$ac_ext <<EOF
5380 #include <${cf_cv_ncurses_header:-curses.h}>
5382 #ifdef NCURSES_VERSION
5383 Autoconf NCURSES_VERSION
5391 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
5392 { (eval echo "$as_me:5392: \"$cf_try\"") >&5
5395 echo "$as_me:5395: \$? = $ac_status" >&5
5396 (exit $ac_status); }
5397 if test -f conftest.out ; then
5398 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
5399 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
5404 cat >conftest.$ac_ext <<_ACEOF
5405 #line 5405 "configure"
5406 #include "confdefs.h"
5408 #include <${cf_cv_ncurses_header:-curses.h}>
5412 FILE *fp = fopen("$cf_tempfile", "w");
5413 #ifdef NCURSES_VERSION
5414 # ifdef NCURSES_VERSION_PATCH
5415 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
5417 fprintf(fp, "%s\n", NCURSES_VERSION);
5421 fprintf(fp, "old\n");
5426 ${cf_cv_main_return:-return}(0);
5429 rm -f conftest$ac_exeext
5430 if { (eval echo "$as_me:5430: \"$ac_link\"") >&5
5431 (eval $ac_link) 2>&5
5433 echo "$as_me:5433: \$? = $ac_status" >&5
5434 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5435 { (eval echo "$as_me:5435: \"$ac_try\"") >&5
5438 echo "$as_me:5438: \$? = $ac_status" >&5
5439 (exit $ac_status); }; }; then
5441 cf_cv_ncurses_version=`cat $cf_tempfile`
5443 echo "$as_me: program exited with status $ac_status" >&5
5444 echo "$as_me: failed program was:" >&5
5445 cat conftest.$ac_ext >&5
5447 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5452 echo "$as_me:5452: result: $cf_cv_ncurses_version" >&5
5453 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
5454 test "$cf_cv_ncurses_version" = no ||
5455 cat >>confdefs.h <<\EOF
5459 echo "$as_me:5459: checking if we have identified curses libraries" >&5
5460 echo $ECHO_N "checking if we have identified curses libraries... $ECHO_C" >&6
5461 cat >conftest.$ac_ext <<_ACEOF
5462 #line 5462 "configure"
5463 #include "confdefs.h"
5464 #include <${cf_cv_ncurses_header:-curses.h}>
5468 initscr(); tgoto("?", 0,0)
5473 rm -f conftest.$ac_objext conftest$ac_exeext
5474 if { (eval echo "$as_me:5474: \"$ac_link\"") >&5
5475 (eval $ac_link) 2>&5
5477 echo "$as_me:5477: \$? = $ac_status" >&5
5478 (exit $ac_status); } &&
5479 { ac_try='test -s conftest$ac_exeext'
5480 { (eval echo "$as_me:5480: \"$ac_try\"") >&5
5483 echo "$as_me:5483: \$? = $ac_status" >&5
5484 (exit $ac_status); }; }; then
5487 echo "$as_me: failed program was:" >&5
5488 cat conftest.$ac_ext >&5
5491 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5492 echo "$as_me:5492: result: $cf_result" >&5
5493 echo "${ECHO_T}$cf_result" >&6
5495 if test "$cf_result" = no ; then
5498 echo "$as_me:5498: checking for tgoto in -lmytinfo" >&5
5499 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
5500 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
5501 echo $ECHO_N "(cached) $ECHO_C" >&6
5503 ac_check_lib_save_LIBS=$LIBS
5504 LIBS="-lmytinfo $LIBS"
5505 cat >conftest.$ac_ext <<_ACEOF
5506 #line 5506 "configure"
5507 #include "confdefs.h"
5509 /* Override any gcc2 internal prototype to avoid an error. */
5513 /* We use char because int might match the return type of a gcc2
5514 builtin and then its argument prototype would still apply. */
5524 rm -f conftest.$ac_objext conftest$ac_exeext
5525 if { (eval echo "$as_me:5525: \"$ac_link\"") >&5
5526 (eval $ac_link) 2>&5
5528 echo "$as_me:5528: \$? = $ac_status" >&5
5529 (exit $ac_status); } &&
5530 { ac_try='test -s conftest$ac_exeext'
5531 { (eval echo "$as_me:5531: \"$ac_try\"") >&5
5534 echo "$as_me:5534: \$? = $ac_status" >&5
5535 (exit $ac_status); }; }; then
5536 ac_cv_lib_mytinfo_tgoto=yes
5538 echo "$as_me: failed program was:" >&5
5539 cat conftest.$ac_ext >&5
5540 ac_cv_lib_mytinfo_tgoto=no
5542 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5543 LIBS=$ac_check_lib_save_LIBS
5545 echo "$as_me:5545: result: $ac_cv_lib_mytinfo_tgoto" >&5
5546 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
5547 if test $ac_cv_lib_mytinfo_tgoto = yes; then
5549 cf_add_libs="-lmytinfo"
5550 # Filter out duplicates - this happens with badly-designed ".pc" files...
5551 for cf_add_1lib in $LIBS
5553 for cf_add_2lib in $cf_add_libs
5555 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5561 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5569 # Looking at HPUX 10.20, the Hcurses library is the oldest (1997), cur_colr
5570 # next (1998), and xcurses "newer" (2000). There is no header file for
5571 # Hcurses; the subdirectory curses_colr has the headers (curses.h and
5572 # term.h) for cur_colr
5573 if test "x$cf_cv_screen" = "xcurses_colr"
5575 echo "$as_me:5575: checking for initscr in -lcur_colr" >&5
5576 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
5577 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5580 ac_check_lib_save_LIBS=$LIBS
5581 LIBS="-lcur_colr $LIBS"
5582 cat >conftest.$ac_ext <<_ACEOF
5583 #line 5583 "configure"
5584 #include "confdefs.h"
5586 /* Override any gcc2 internal prototype to avoid an error. */
5590 /* We use char because int might match the return type of a gcc2
5591 builtin and then its argument prototype would still apply. */
5601 rm -f conftest.$ac_objext conftest$ac_exeext
5602 if { (eval echo "$as_me:5602: \"$ac_link\"") >&5
5603 (eval $ac_link) 2>&5
5605 echo "$as_me:5605: \$? = $ac_status" >&5
5606 (exit $ac_status); } &&
5607 { ac_try='test -s conftest$ac_exeext'
5608 { (eval echo "$as_me:5608: \"$ac_try\"") >&5
5611 echo "$as_me:5611: \$? = $ac_status" >&5
5612 (exit $ac_status); }; }; then
5613 ac_cv_lib_cur_colr_initscr=yes
5615 echo "$as_me: failed program was:" >&5
5616 cat conftest.$ac_ext >&5
5617 ac_cv_lib_cur_colr_initscr=no
5619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5620 LIBS=$ac_check_lib_save_LIBS
5622 echo "$as_me:5622: result: $ac_cv_lib_cur_colr_initscr" >&5
5623 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
5624 if test $ac_cv_lib_cur_colr_initscr = yes; then
5626 cf_add_libs="-lcur_colr"
5627 # Filter out duplicates - this happens with badly-designed ".pc" files...
5628 for cf_add_1lib in $LIBS
5630 for cf_add_2lib in $cf_add_libs
5632 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5638 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5642 ac_cv_func_initscr=yes
5646 echo "$as_me:5646: checking for initscr in -lHcurses" >&5
5647 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
5648 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
5649 echo $ECHO_N "(cached) $ECHO_C" >&6
5651 ac_check_lib_save_LIBS=$LIBS
5652 LIBS="-lHcurses $LIBS"
5653 cat >conftest.$ac_ext <<_ACEOF
5654 #line 5654 "configure"
5655 #include "confdefs.h"
5657 /* Override any gcc2 internal prototype to avoid an error. */
5661 /* We use char because int might match the return type of a gcc2
5662 builtin and then its argument prototype would still apply. */
5672 rm -f conftest.$ac_objext conftest$ac_exeext
5673 if { (eval echo "$as_me:5673: \"$ac_link\"") >&5
5674 (eval $ac_link) 2>&5
5676 echo "$as_me:5676: \$? = $ac_status" >&5
5677 (exit $ac_status); } &&
5678 { ac_try='test -s conftest$ac_exeext'
5679 { (eval echo "$as_me:5679: \"$ac_try\"") >&5
5682 echo "$as_me:5682: \$? = $ac_status" >&5
5683 (exit $ac_status); }; }; then
5684 ac_cv_lib_Hcurses_initscr=yes
5686 echo "$as_me: failed program was:" >&5
5687 cat conftest.$ac_ext >&5
5688 ac_cv_lib_Hcurses_initscr=no
5690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5691 LIBS=$ac_check_lib_save_LIBS
5693 echo "$as_me:5693: result: $ac_cv_lib_Hcurses_initscr" >&5
5694 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
5695 if test $ac_cv_lib_Hcurses_initscr = yes; then
5697 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
5699 cf_add_libs="-lHcurses"
5700 # Filter out duplicates - this happens with badly-designed ".pc" files...
5701 for cf_add_1lib in $LIBS
5703 for cf_add_2lib in $cf_add_libs
5705 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5711 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5715 CPPFLAGS="$CPPFLAGS -D__HP_CURSES -D_HP_CURSES"
5716 ac_cv_func_initscr=yes
5725 case `arch 2>/dev/null` in
5730 if test -n "/lib64" ; then
5731 for cf_add_libdir in /lib64
5733 if test $cf_add_libdir = /usr/lib ; then
5735 elif test -d $cf_add_libdir
5738 if test -n "$LDFLAGS$LIBS" ; then
5739 # a loop is needed to ensure we can add subdirs of existing dirs
5740 for cf_test_libdir in $LDFLAGS $LIBS ; do
5741 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5742 cf_have_libdir=yes; break
5746 if test "$cf_have_libdir" = no ; then
5747 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5749 echo "${as_me:-configure}:5749: testing adding $cf_add_libdir to library-path ..." 1>&5
5751 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5759 if test -n "/lib" ; then
5760 for cf_add_libdir in /lib
5762 if test $cf_add_libdir = /usr/lib ; then
5764 elif test -d $cf_add_libdir
5767 if test -n "$LDFLAGS$LIBS" ; then
5768 # a loop is needed to ensure we can add subdirs of existing dirs
5769 for cf_test_libdir in $LDFLAGS $LIBS ; do
5770 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5771 cf_have_libdir=yes; break
5775 if test "$cf_have_libdir" = no ; then
5776 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5778 echo "${as_me:-configure}:5778: testing adding $cf_add_libdir to library-path ..." 1>&5
5780 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5790 if test -n "/lib" ; then
5791 for cf_add_libdir in /lib
5793 if test $cf_add_libdir = /usr/lib ; then
5795 elif test -d $cf_add_libdir
5798 if test -n "$LDFLAGS$LIBS" ; then
5799 # a loop is needed to ensure we can add subdirs of existing dirs
5800 for cf_test_libdir in $LDFLAGS $LIBS ; do
5801 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5802 cf_have_libdir=yes; break
5806 if test "$cf_have_libdir" = no ; then
5807 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5809 echo "${as_me:-configure}:5809: testing adding $cf_add_libdir to library-path ..." 1>&5
5811 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5821 if test "x$cf_cv_screen" = "xcurses_5lib"
5823 if test -d /usr/5lib ; then
5825 if test -n "/usr/5lib" ; then
5826 for cf_add_libdir in /usr/5lib
5828 if test $cf_add_libdir = /usr/lib ; then
5830 elif test -d $cf_add_libdir
5833 if test -n "$LDFLAGS$LIBS" ; then
5834 # a loop is needed to ensure we can add subdirs of existing dirs
5835 for cf_test_libdir in $LDFLAGS $LIBS ; do
5836 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5837 cf_have_libdir=yes; break
5841 if test "$cf_have_libdir" = no ; then
5842 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5844 echo "${as_me:-configure}:5844: testing adding $cf_add_libdir to library-path ..." 1>&5
5846 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5852 cf_add_libs="-lcurses -ltermcap"
5853 # Filter out duplicates - this happens with badly-designed ".pc" files...
5854 for cf_add_1lib in $LIBS
5856 for cf_add_2lib in $cf_add_libs
5858 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5864 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5870 ac_cv_func_initscr=yes
5874 if test ".$ac_cv_func_initscr" != .yes ; then
5875 cf_save_LIBS="$LIBS"
5877 if test ".${cf_cv_ncurses_version:-no}" != .no
5879 cf_check_list="ncurses curses cursesX"
5881 cf_check_list="cursesX curses ncurses"
5884 # Check for library containing tgoto. Do this before curses library
5885 # because it may be needed to link the test-case for initscr.
5886 if test "x$cf_term_lib" = x
5888 echo "$as_me:5888: checking for tgoto" >&5
5889 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
5890 if test "${ac_cv_func_tgoto+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 cat >conftest.$ac_ext <<_ACEOF
5894 #line 5894 "configure"
5895 #include "confdefs.h"
5896 /* System header to define __stub macros and hopefully few prototypes,
5897 which can conflict with char tgoto (); below. */
5899 /* Override any gcc2 internal prototype to avoid an error. */
5903 /* We use char because int might match the return type of a gcc2
5904 builtin and then its argument prototype would still apply. */
5911 /* The GNU C library defines this for functions which it implements
5912 to always fail with ENOSYS. Some functions are actually named
5913 something starting with __ and the normal name is an alias. */
5914 #if defined (__stub_tgoto) || defined (__stub___tgoto)
5917 f = tgoto; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
5924 rm -f conftest.$ac_objext conftest$ac_exeext
5925 if { (eval echo "$as_me:5925: \"$ac_link\"") >&5
5926 (eval $ac_link) 2>&5
5928 echo "$as_me:5928: \$? = $ac_status" >&5
5929 (exit $ac_status); } &&
5930 { ac_try='test -s conftest$ac_exeext'
5931 { (eval echo "$as_me:5931: \"$ac_try\"") >&5
5934 echo "$as_me:5934: \$? = $ac_status" >&5
5935 (exit $ac_status); }; }; then
5936 ac_cv_func_tgoto=yes
5938 echo "$as_me: failed program was:" >&5
5939 cat conftest.$ac_ext >&5
5942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5944 echo "$as_me:5944: result: $ac_cv_func_tgoto" >&5
5945 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
5946 if test $ac_cv_func_tgoto = yes; then
5947 cf_term_lib=predefined
5950 for cf_term_lib in $cf_check_list otermcap termcap tinfo termlib unknown
5952 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
5953 echo "$as_me:5953: checking for tgoto in -l$cf_term_lib" >&5
5954 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
5955 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5958 ac_check_lib_save_LIBS=$LIBS
5959 LIBS="-l$cf_term_lib $LIBS"
5960 cat >conftest.$ac_ext <<_ACEOF
5961 #line 5961 "configure"
5962 #include "confdefs.h"
5964 /* Override any gcc2 internal prototype to avoid an error. */
5968 /* We use char because int might match the return type of a gcc2
5969 builtin and then its argument prototype would still apply. */
5979 rm -f conftest.$ac_objext conftest$ac_exeext
5980 if { (eval echo "$as_me:5980: \"$ac_link\"") >&5
5981 (eval $ac_link) 2>&5
5983 echo "$as_me:5983: \$? = $ac_status" >&5
5984 (exit $ac_status); } &&
5985 { ac_try='test -s conftest$ac_exeext'
5986 { (eval echo "$as_me:5986: \"$ac_try\"") >&5
5989 echo "$as_me:5989: \$? = $ac_status" >&5
5990 (exit $ac_status); }; }; then
5991 eval "$as_ac_Lib=yes"
5993 echo "$as_me: failed program was:" >&5
5994 cat conftest.$ac_ext >&5
5995 eval "$as_ac_Lib=no"
5997 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5998 LIBS=$ac_check_lib_save_LIBS
6000 echo "$as_me:6000: result: `eval echo '${'$as_ac_Lib'}'`" >&5
6001 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
6002 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
6012 # Check for library containing initscr
6013 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
6014 if test "x$cf_curs_lib" = x
6016 for cf_curs_lib in $cf_check_list xcurses jcurses pdcurses unknown
6018 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
6019 echo "$as_me:6019: checking for initscr in -l$cf_curs_lib" >&5
6020 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
6021 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
6022 echo $ECHO_N "(cached) $ECHO_C" >&6
6024 ac_check_lib_save_LIBS=$LIBS
6025 LIBS="-l$cf_curs_lib $LIBS"
6026 cat >conftest.$ac_ext <<_ACEOF
6027 #line 6027 "configure"
6028 #include "confdefs.h"
6030 /* Override any gcc2 internal prototype to avoid an error. */
6034 /* We use char because int might match the return type of a gcc2
6035 builtin and then its argument prototype would still apply. */
6045 rm -f conftest.$ac_objext conftest$ac_exeext
6046 if { (eval echo "$as_me:6046: \"$ac_link\"") >&5
6047 (eval $ac_link) 2>&5
6049 echo "$as_me:6049: \$? = $ac_status" >&5
6050 (exit $ac_status); } &&
6051 { ac_try='test -s conftest$ac_exeext'
6052 { (eval echo "$as_me:6052: \"$ac_try\"") >&5
6055 echo "$as_me:6055: \$? = $ac_status" >&5
6056 (exit $ac_status); }; }; then
6057 eval "$as_ac_Lib=yes"
6059 echo "$as_me: failed program was:" >&5
6060 cat conftest.$ac_ext >&5
6061 eval "$as_ac_Lib=no"
6063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6064 LIBS=$ac_check_lib_save_LIBS
6066 echo "$as_me:6066: result: `eval echo '${'$as_ac_Lib'}'`" >&5
6067 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
6068 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
6074 test $cf_curs_lib = unknown && { { echo "$as_me:6074: error: no curses library found" >&5
6075 echo "$as_me: error: no curses library found" >&2;}
6076 { (exit 1); exit 1; }; }
6078 LIBS="-l$cf_curs_lib $cf_save_LIBS"
6079 if test "$cf_term_lib" = unknown ; then
6080 echo "$as_me:6080: checking if we can link with $cf_curs_lib library" >&5
6081 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
6082 cat >conftest.$ac_ext <<_ACEOF
6083 #line 6083 "configure"
6084 #include "confdefs.h"
6085 #include <${cf_cv_ncurses_header:-curses.h}>
6094 rm -f conftest.$ac_objext conftest$ac_exeext
6095 if { (eval echo "$as_me:6095: \"$ac_link\"") >&5
6096 (eval $ac_link) 2>&5
6098 echo "$as_me:6098: \$? = $ac_status" >&5
6099 (exit $ac_status); } &&
6100 { ac_try='test -s conftest$ac_exeext'
6101 { (eval echo "$as_me:6101: \"$ac_try\"") >&5
6104 echo "$as_me:6104: \$? = $ac_status" >&5
6105 (exit $ac_status); }; }; then
6108 echo "$as_me: failed program was:" >&5
6109 cat conftest.$ac_ext >&5
6112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6113 echo "$as_me:6113: result: $cf_result" >&5
6114 echo "${ECHO_T}$cf_result" >&6
6115 test $cf_result = no && { { echo "$as_me:6115: error: Cannot link curses library" >&5
6116 echo "$as_me: error: Cannot link curses library" >&2;}
6117 { (exit 1); exit 1; }; }
6118 elif test "$cf_curs_lib" = "$cf_term_lib" ; then
6120 elif test "$cf_term_lib" != predefined ; then
6121 echo "$as_me:6121: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
6122 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
6123 cat >conftest.$ac_ext <<_ACEOF
6124 #line 6124 "configure"
6125 #include "confdefs.h"
6126 #include <${cf_cv_ncurses_header:-curses.h}>
6130 initscr(); tgoto((char *)0, 0, 0);
6135 rm -f conftest.$ac_objext conftest$ac_exeext
6136 if { (eval echo "$as_me:6136: \"$ac_link\"") >&5
6137 (eval $ac_link) 2>&5
6139 echo "$as_me:6139: \$? = $ac_status" >&5
6140 (exit $ac_status); } &&
6141 { ac_try='test -s conftest$ac_exeext'
6142 { (eval echo "$as_me:6142: \"$ac_try\"") >&5
6145 echo "$as_me:6145: \$? = $ac_status" >&5
6146 (exit $ac_status); }; }; then
6149 echo "$as_me: failed program was:" >&5
6150 cat conftest.$ac_ext >&5
6152 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
6153 cat >conftest.$ac_ext <<_ACEOF
6154 #line 6154 "configure"
6155 #include "confdefs.h"
6156 #include <${cf_cv_ncurses_header:-curses.h}>
6165 rm -f conftest.$ac_objext conftest$ac_exeext
6166 if { (eval echo "$as_me:6166: \"$ac_link\"") >&5
6167 (eval $ac_link) 2>&5
6169 echo "$as_me:6169: \$? = $ac_status" >&5
6170 (exit $ac_status); } &&
6171 { ac_try='test -s conftest$ac_exeext'
6172 { (eval echo "$as_me:6172: \"$ac_try\"") >&5
6175 echo "$as_me:6175: \$? = $ac_status" >&5
6176 (exit $ac_status); }; }; then
6179 echo "$as_me: failed program was:" >&5
6180 cat conftest.$ac_ext >&5
6183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6186 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6187 echo "$as_me:6187: result: $cf_result" >&5
6188 echo "${ECHO_T}$cf_result" >&6
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
6858 echo "$as_me:6858: result: no" >&5
6859 echo "${ECHO_T}no" >&6
6860 NCURSES_CONFIG_PKG=none
6863 NCURSES_CONFIG_PKG=none
6866 if test "x$cf_have_ncuconfig" = "xno"; then
6867 echo "Looking for ${cf_ncuconfig_root}-config"
6869 if test -n "$ac_tool_prefix"; then
6870 for ac_prog in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
6872 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6873 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6874 echo "$as_me:6874: checking for $ac_word" >&5
6875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6876 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
6879 if test -n "$NCURSES_CONFIG"; then
6880 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
6882 ac_save_IFS=$IFS; IFS=$ac_path_separator
6884 for ac_dir in $ac_dummy; do
6886 test -z "$ac_dir" && ac_dir=.
6887 $as_executable_p "$ac_dir/$ac_word" || continue
6888 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
6889 echo "$as_me:6889: found $ac_dir/$ac_word" >&5
6895 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
6896 if test -n "$NCURSES_CONFIG"; then
6897 echo "$as_me:6897: result: $NCURSES_CONFIG" >&5
6898 echo "${ECHO_T}$NCURSES_CONFIG" >&6
6900 echo "$as_me:6900: result: no" >&5
6901 echo "${ECHO_T}no" >&6
6904 test -n "$NCURSES_CONFIG" && break
6907 if test -z "$NCURSES_CONFIG"; then
6908 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
6909 for ac_prog in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
6911 # Extract the first word of "$ac_prog", so it can be a program name with args.
6912 set dummy $ac_prog; ac_word=$2
6913 echo "$as_me:6913: checking for $ac_word" >&5
6914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6915 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
6916 echo $ECHO_N "(cached) $ECHO_C" >&6
6918 if test -n "$ac_ct_NCURSES_CONFIG"; then
6919 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
6921 ac_save_IFS=$IFS; IFS=$ac_path_separator
6923 for ac_dir in $ac_dummy; do
6925 test -z "$ac_dir" && ac_dir=.
6926 $as_executable_p "$ac_dir/$ac_word" || continue
6927 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
6928 echo "$as_me:6928: found $ac_dir/$ac_word" >&5
6934 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
6935 if test -n "$ac_ct_NCURSES_CONFIG"; then
6936 echo "$as_me:6936: result: $ac_ct_NCURSES_CONFIG" >&5
6937 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
6939 echo "$as_me:6939: result: no" >&5
6940 echo "${ECHO_T}no" >&6
6943 test -n "$ac_ct_NCURSES_CONFIG" && break
6945 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
6947 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
6950 if test "$NCURSES_CONFIG" != none ; then
6952 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
6954 cf_add_libs="`$NCURSES_CONFIG --libs`"
6955 # Filter out duplicates - this happens with badly-designed ".pc" files...
6956 for cf_add_1lib in $LIBS
6958 for cf_add_2lib in $cf_add_libs
6960 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6966 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6970 # even with config script, some packages use no-override for curses.h
6972 echo "$as_me:6972: checking if we have identified curses headers" >&5
6973 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
6974 if test "${cf_cv_ncurses_header+set}" = set; then
6975 echo $ECHO_N "(cached) $ECHO_C" >&6
6978 cf_cv_ncurses_header=none
6980 ncurses.h $cf_cv_screen/ncurses.h \
6981 curses.h $cf_cv_screen/curses.h
6983 cat >conftest.$ac_ext <<_ACEOF
6984 #line 6984 "configure"
6985 #include "confdefs.h"
6986 #include <${cf_header}>
6990 initscr(); tgoto("?", 0,0)
6995 rm -f conftest.$ac_objext
6996 if { (eval echo "$as_me:6996: \"$ac_compile\"") >&5
6997 (eval $ac_compile) 2>&5
6999 echo "$as_me:6999: \$? = $ac_status" >&5
7000 (exit $ac_status); } &&
7001 { ac_try='test -s conftest.$ac_objext'
7002 { (eval echo "$as_me:7002: \"$ac_try\"") >&5
7005 echo "$as_me:7005: \$? = $ac_status" >&5
7006 (exit $ac_status); }; }; then
7007 cf_cv_ncurses_header=$cf_header; break
7009 echo "$as_me: failed program was:" >&5
7010 cat conftest.$ac_ext >&5
7012 rm -f conftest.$ac_objext conftest.$ac_ext
7016 echo "$as_me:7016: result: $cf_cv_ncurses_header" >&5
7017 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
7019 if test "$cf_cv_ncurses_header" = none ; then
7020 { { echo "$as_me:7020: error: No curses header-files found" >&5
7021 echo "$as_me: error: No curses header-files found" >&2;}
7022 { (exit 1); exit 1; }; }
7025 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
7027 for ac_header in $cf_cv_ncurses_header
7029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7030 echo "$as_me:7030: checking for $ac_header" >&5
7031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7035 cat >conftest.$ac_ext <<_ACEOF
7036 #line 7036 "configure"
7037 #include "confdefs.h"
7038 #include <$ac_header>
7040 if { (eval echo "$as_me:7040: \"$ac_cpp conftest.$ac_ext\"") >&5
7041 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7043 egrep -v '^ *\+' conftest.er1 >conftest.err
7045 cat conftest.err >&5
7046 echo "$as_me:7046: \$? = $ac_status" >&5
7047 (exit $ac_status); } >/dev/null; then
7048 if test -s conftest.err; then
7049 ac_cpp_err=$ac_c_preproc_warn_flag
7056 if test -z "$ac_cpp_err"; then
7057 eval "$as_ac_Header=yes"
7059 echo "$as_me: failed program was:" >&5
7060 cat conftest.$ac_ext >&5
7061 eval "$as_ac_Header=no"
7063 rm -f conftest.err conftest.$ac_ext
7065 echo "$as_me:7065: result: `eval echo '${'$as_ac_Header'}'`" >&5
7066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7068 cat >>confdefs.h <<EOF
7069 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7075 cat >>confdefs.h <<\EOF
7079 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7081 cat >>confdefs.h <<EOF
7082 #define $cf_nculib_ROOT 1
7085 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
7089 cf_ncuhdr_root=$cf_cv_screen
7091 test -n "$cf_cv_curses_dir" && \
7092 test "$cf_cv_curses_dir" != "no" && { \
7094 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
7095 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
7097 while test $cf_add_incdir != /usr/include
7099 if test -d $cf_add_incdir
7102 if test -n "$CFLAGS$CPPFLAGS" ; then
7103 # a loop is needed to ensure we can add subdirs of existing dirs
7104 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7105 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7106 cf_have_incdir=yes; break
7111 if test "$cf_have_incdir" = no ; then
7112 if test "$cf_add_incdir" = /usr/local/include ; then
7113 if test "$GCC" = yes
7115 cf_save_CPPFLAGS=$CPPFLAGS
7116 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7117 cat >conftest.$ac_ext <<_ACEOF
7118 #line 7118 "configure"
7119 #include "confdefs.h"
7129 rm -f conftest.$ac_objext
7130 if { (eval echo "$as_me:7130: \"$ac_compile\"") >&5
7131 (eval $ac_compile) 2>&5
7133 echo "$as_me:7133: \$? = $ac_status" >&5
7134 (exit $ac_status); } &&
7135 { ac_try='test -s conftest.$ac_objext'
7136 { (eval echo "$as_me:7136: \"$ac_try\"") >&5
7139 echo "$as_me:7139: \$? = $ac_status" >&5
7140 (exit $ac_status); }; }; then
7143 echo "$as_me: failed program was:" >&5
7144 cat conftest.$ac_ext >&5
7147 rm -f conftest.$ac_objext conftest.$ac_ext
7148 CPPFLAGS=$cf_save_CPPFLAGS
7153 if test "$cf_have_incdir" = no ; then
7154 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7156 echo "${as_me:-configure}:7156: testing adding $cf_add_incdir to include-path ..." 1>&5
7158 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7160 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
7161 test "$cf_top_incdir" = "$cf_add_incdir" && break
7162 cf_add_incdir="$cf_top_incdir"
7175 echo "$as_me:7175: checking for $cf_ncuhdr_root header in include-path" >&5
7176 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
7177 if test "${cf_cv_ncurses_h+set}" = set; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7181 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
7182 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
7183 for cf_header in $cf_header_list
7186 cat >conftest.$ac_ext <<_ACEOF
7187 #line 7187 "configure"
7188 #include "confdefs.h"
7190 #include <$cf_header>
7195 #ifdef NCURSES_VERSION
7197 printf("%s\n", NCURSES_VERSION);
7210 rm -f conftest.$ac_objext
7211 if { (eval echo "$as_me:7211: \"$ac_compile\"") >&5
7212 (eval $ac_compile) 2>&5
7214 echo "$as_me:7214: \$? = $ac_status" >&5
7215 (exit $ac_status); } &&
7216 { ac_try='test -s conftest.$ac_objext'
7217 { (eval echo "$as_me:7217: \"$ac_try\"") >&5
7220 echo "$as_me:7220: \$? = $ac_status" >&5
7221 (exit $ac_status); }; }; then
7222 cf_cv_ncurses_h=$cf_header
7225 echo "$as_me: failed program was:" >&5
7226 cat conftest.$ac_ext >&5
7229 rm -f conftest.$ac_objext conftest.$ac_ext
7231 test "$cf_cv_ncurses_h" != no && break
7235 echo "$as_me:7235: result: $cf_cv_ncurses_h" >&5
7236 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
7238 if test "$cf_cv_ncurses_h" != no ; then
7239 cf_cv_ncurses_header=$cf_cv_ncurses_h
7242 echo "$as_me:7242: checking for $cf_ncuhdr_root include-path" >&5
7243 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
7244 if test "${cf_cv_ncurses_h2+set}" = set; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7248 test -n "$verbose" && echo
7252 # collect the current set of include-directories from compiler flags
7253 cf_header_path_list=""
7254 if test -n "${CFLAGS}${CPPFLAGS}" ; then
7255 for cf_header_path in $CPPFLAGS $CFLAGS
7257 case $cf_header_path in
7259 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
7261 test "x$cf_header_path" != "xNONE" && \
7262 test -d "$cf_header_path" && \
7264 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
7265 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
7266 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
7267 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
7268 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
7269 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"
7272 cf_header_path_list="$cf_header_path_list $cf_search"
7278 # add the variations for the package we are looking for
7282 test "x$prefix" != "xNONE" && \
7283 test -d "$prefix" && \
7285 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
7286 test -d $prefix/include && cf_search="$cf_search $prefix/include"
7287 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
7288 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
7289 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
7290 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
7293 for cf_subdir_prefix in \
7302 test "x$cf_subdir_prefix" != "x$prefix" && \
7303 test -d "$cf_subdir_prefix" && \
7304 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
7305 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
7306 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
7307 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root"
7308 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root/include"
7309 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include"
7310 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"
7315 test "$includedir" != NONE && \
7316 test "$includedir" != "/usr/include" && \
7317 test -d "$includedir" && {
7318 test -d $includedir && cf_search="$cf_search $includedir"
7319 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
7322 test "$oldincludedir" != NONE && \
7323 test "$oldincludedir" != "/usr/include" && \
7324 test -d "$oldincludedir" && {
7325 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
7326 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
7329 cf_search="$cf_search $cf_header_path_list"
7331 test -n "$verbose" && echo search path $cf_search
7332 cf_save2_CPPFLAGS="$CPPFLAGS"
7333 for cf_incdir in $cf_search
7336 if test -n "$cf_incdir" ; then
7337 for cf_add_incdir in $cf_incdir
7339 while test $cf_add_incdir != /usr/include
7341 if test -d $cf_add_incdir
7344 if test -n "$CFLAGS$CPPFLAGS" ; then
7345 # a loop is needed to ensure we can add subdirs of existing dirs
7346 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7347 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7348 cf_have_incdir=yes; break
7353 if test "$cf_have_incdir" = no ; then
7354 if test "$cf_add_incdir" = /usr/local/include ; then
7355 if test "$GCC" = yes
7357 cf_save_CPPFLAGS=$CPPFLAGS
7358 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7359 cat >conftest.$ac_ext <<_ACEOF
7360 #line 7360 "configure"
7361 #include "confdefs.h"
7371 rm -f conftest.$ac_objext
7372 if { (eval echo "$as_me:7372: \"$ac_compile\"") >&5
7373 (eval $ac_compile) 2>&5
7375 echo "$as_me:7375: \$? = $ac_status" >&5
7376 (exit $ac_status); } &&
7377 { ac_try='test -s conftest.$ac_objext'
7378 { (eval echo "$as_me:7378: \"$ac_try\"") >&5
7381 echo "$as_me:7381: \$? = $ac_status" >&5
7382 (exit $ac_status); }; }; then
7385 echo "$as_me: failed program was:" >&5
7386 cat conftest.$ac_ext >&5
7389 rm -f conftest.$ac_objext conftest.$ac_ext
7390 CPPFLAGS=$cf_save_CPPFLAGS
7395 if test "$cf_have_incdir" = no ; then
7396 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7398 echo "${as_me:-configure}:7398: testing adding $cf_add_incdir to include-path ..." 1>&5
7400 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7402 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
7403 test "$cf_top_incdir" = "$cf_add_incdir" && break
7404 cf_add_incdir="$cf_top_incdir"
7420 cat >conftest.$ac_ext <<_ACEOF
7421 #line 7421 "configure"
7422 #include "confdefs.h"
7424 #include <$cf_header>
7429 #ifdef NCURSES_VERSION
7431 printf("%s\n", NCURSES_VERSION);
7444 rm -f conftest.$ac_objext
7445 if { (eval echo "$as_me:7445: \"$ac_compile\"") >&5
7446 (eval $ac_compile) 2>&5
7448 echo "$as_me:7448: \$? = $ac_status" >&5
7449 (exit $ac_status); } &&
7450 { ac_try='test -s conftest.$ac_objext'
7451 { (eval echo "$as_me:7451: \"$ac_try\"") >&5
7454 echo "$as_me:7454: \$? = $ac_status" >&5
7455 (exit $ac_status); }; }; then
7456 cf_cv_ncurses_h2=$cf_header
7459 echo "$as_me: failed program was:" >&5
7460 cat conftest.$ac_ext >&5
7463 rm -f conftest.$ac_objext conftest.$ac_ext
7465 if test "$cf_cv_ncurses_h2" != no ; then
7466 cf_cv_ncurses_h2=$cf_incdir/$cf_header
7467 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
7470 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
7472 CPPFLAGS="$cf_save2_CPPFLAGS"
7473 test "$cf_cv_ncurses_h2" != no && break
7475 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:7475: error: not found" >&5
7476 echo "$as_me: error: not found" >&2;}
7477 { (exit 1); exit 1; }; }
7480 echo "$as_me:7480: result: $cf_cv_ncurses_h2" >&5
7481 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
7483 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
7484 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
7485 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
7486 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
7489 if test -n "$cf_1st_incdir" ; then
7490 for cf_add_incdir in $cf_1st_incdir
7492 while test $cf_add_incdir != /usr/include
7494 if test -d $cf_add_incdir
7497 if test -n "$CFLAGS$CPPFLAGS" ; then
7498 # a loop is needed to ensure we can add subdirs of existing dirs
7499 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7500 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7501 cf_have_incdir=yes; break
7506 if test "$cf_have_incdir" = no ; then
7507 if test "$cf_add_incdir" = /usr/local/include ; then
7508 if test "$GCC" = yes
7510 cf_save_CPPFLAGS=$CPPFLAGS
7511 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7512 cat >conftest.$ac_ext <<_ACEOF
7513 #line 7513 "configure"
7514 #include "confdefs.h"
7524 rm -f conftest.$ac_objext
7525 if { (eval echo "$as_me:7525: \"$ac_compile\"") >&5
7526 (eval $ac_compile) 2>&5
7528 echo "$as_me:7528: \$? = $ac_status" >&5
7529 (exit $ac_status); } &&
7530 { ac_try='test -s conftest.$ac_objext'
7531 { (eval echo "$as_me:7531: \"$ac_try\"") >&5
7534 echo "$as_me:7534: \$? = $ac_status" >&5
7535 (exit $ac_status); }; }; then
7538 echo "$as_me: failed program was:" >&5
7539 cat conftest.$ac_ext >&5
7542 rm -f conftest.$ac_objext conftest.$ac_ext
7543 CPPFLAGS=$cf_save_CPPFLAGS
7548 if test "$cf_have_incdir" = no ; then
7549 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7551 echo "${as_me:-configure}:7551: testing adding $cf_add_incdir to include-path ..." 1>&5
7553 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7555 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
7556 test "$cf_top_incdir" = "$cf_add_incdir" && break
7557 cf_add_incdir="$cf_top_incdir"
7570 # Set definitions to allow ifdef'ing for ncurses.h
7572 case $cf_cv_ncurses_header in
7575 cat >>confdefs.h <<\EOF
7576 #define HAVE_NCURSES_H 1
7582 case $cf_cv_ncurses_header in
7583 (ncurses/curses.h|ncurses/ncurses.h)
7585 cat >>confdefs.h <<\EOF
7586 #define HAVE_NCURSES_NCURSES_H 1
7590 (ncursesw/curses.h|ncursesw/ncurses.h)
7592 cat >>confdefs.h <<\EOF
7593 #define HAVE_NCURSESW_NCURSES_H 1
7599 echo "$as_me:7599: checking for terminfo header" >&5
7600 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
7601 if test "${cf_cv_term_header+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7605 case ${cf_cv_ncurses_header} in
7606 (*/ncurses.h|*/ncursesw.h)
7607 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
7610 cf_term_header=term.h
7614 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
7616 cat >conftest.$ac_ext <<_ACEOF
7617 #line 7617 "configure"
7618 #include "confdefs.h"
7620 #include <${cf_cv_ncurses_header:-curses.h}>
7626 int x = auto_left_margin
7631 rm -f conftest.$ac_objext
7632 if { (eval echo "$as_me:7632: \"$ac_compile\"") >&5
7633 (eval $ac_compile) 2>&5
7635 echo "$as_me:7635: \$? = $ac_status" >&5
7636 (exit $ac_status); } &&
7637 { ac_try='test -s conftest.$ac_objext'
7638 { (eval echo "$as_me:7638: \"$ac_try\"") >&5
7641 echo "$as_me:7641: \$? = $ac_status" >&5
7642 (exit $ac_status); }; }; then
7644 cf_cv_term_header="$cf_test"
7646 echo "$as_me: failed program was:" >&5
7647 cat conftest.$ac_ext >&5
7649 cf_cv_term_header=unknown
7652 rm -f conftest.$ac_objext conftest.$ac_ext
7653 test "$cf_cv_term_header" != unknown && break
7657 echo "$as_me:7657: result: $cf_cv_term_header" >&5
7658 echo "${ECHO_T}$cf_cv_term_header" >&6
7660 # Set definitions to allow ifdef'ing to accommodate subdirectories
7662 case $cf_cv_term_header in
7665 cat >>confdefs.h <<\EOF
7666 #define HAVE_TERM_H 1
7672 case $cf_cv_term_header in
7675 cat >>confdefs.h <<\EOF
7676 #define HAVE_NCURSES_TERM_H 1
7682 cat >>confdefs.h <<\EOF
7683 #define HAVE_NCURSESW_TERM_H 1
7689 # some applications need this, but should check for NCURSES_VERSION
7691 cat >>confdefs.h <<\EOF
7695 echo "$as_me:7695: checking for ncurses version" >&5
7696 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
7697 if test "${cf_cv_ncurses_version+set}" = set; then
7698 echo $ECHO_N "(cached) $ECHO_C" >&6
7701 cf_cv_ncurses_version=no
7704 if test "$cross_compiling" = yes; then
7706 # This will not work if the preprocessor splits the line after the
7707 # Autoconf token. The 'unproto' program does that.
7708 cat > conftest.$ac_ext <<EOF
7709 #include <${cf_cv_ncurses_header:-curses.h}>
7711 #ifdef NCURSES_VERSION
7712 Autoconf NCURSES_VERSION
7720 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
7721 { (eval echo "$as_me:7721: \"$cf_try\"") >&5
7724 echo "$as_me:7724: \$? = $ac_status" >&5
7725 (exit $ac_status); }
7726 if test -f conftest.out ; then
7727 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
7728 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
7733 cat >conftest.$ac_ext <<_ACEOF
7734 #line 7734 "configure"
7735 #include "confdefs.h"
7737 #include <${cf_cv_ncurses_header:-curses.h}>
7741 FILE *fp = fopen("$cf_tempfile", "w");
7742 #ifdef NCURSES_VERSION
7743 # ifdef NCURSES_VERSION_PATCH
7744 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
7746 fprintf(fp, "%s\n", NCURSES_VERSION);
7750 fprintf(fp, "old\n");
7755 ${cf_cv_main_return:-return}(0);
7758 rm -f conftest$ac_exeext
7759 if { (eval echo "$as_me:7759: \"$ac_link\"") >&5
7760 (eval $ac_link) 2>&5
7762 echo "$as_me:7762: \$? = $ac_status" >&5
7763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7764 { (eval echo "$as_me:7764: \"$ac_try\"") >&5
7767 echo "$as_me:7767: \$? = $ac_status" >&5
7768 (exit $ac_status); }; }; then
7770 cf_cv_ncurses_version=`cat $cf_tempfile`
7772 echo "$as_me: program exited with status $ac_status" >&5
7773 echo "$as_me: failed program was:" >&5
7774 cat conftest.$ac_ext >&5
7776 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7781 echo "$as_me:7781: result: $cf_cv_ncurses_version" >&5
7782 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
7783 test "$cf_cv_ncurses_version" = no ||
7784 cat >>confdefs.h <<\EOF
7788 cf_nculib_root=$cf_cv_screen
7789 # This works, except for the special case where we find gpm, but
7790 # ncurses is in a nonstandard location via $LIBS, and we really want
7793 cf_ncurses_SAVE="$LIBS"
7794 echo "$as_me:7794: checking for Gpm_Open in -lgpm" >&5
7795 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
7796 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
7797 echo $ECHO_N "(cached) $ECHO_C" >&6
7799 ac_check_lib_save_LIBS=$LIBS
7801 cat >conftest.$ac_ext <<_ACEOF
7802 #line 7802 "configure"
7803 #include "confdefs.h"
7805 /* Override any gcc2 internal prototype to avoid an error. */
7809 /* We use char because int might match the return type of a gcc2
7810 builtin and then its argument prototype would still apply. */
7820 rm -f conftest.$ac_objext conftest$ac_exeext
7821 if { (eval echo "$as_me:7821: \"$ac_link\"") >&5
7822 (eval $ac_link) 2>&5
7824 echo "$as_me:7824: \$? = $ac_status" >&5
7825 (exit $ac_status); } &&
7826 { ac_try='test -s conftest$ac_exeext'
7827 { (eval echo "$as_me:7827: \"$ac_try\"") >&5
7830 echo "$as_me:7830: \$? = $ac_status" >&5
7831 (exit $ac_status); }; }; then
7832 ac_cv_lib_gpm_Gpm_Open=yes
7834 echo "$as_me: failed program was:" >&5
7835 cat conftest.$ac_ext >&5
7836 ac_cv_lib_gpm_Gpm_Open=no
7838 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7839 LIBS=$ac_check_lib_save_LIBS
7841 echo "$as_me:7841: result: $ac_cv_lib_gpm_Gpm_Open" >&5
7842 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
7843 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
7844 echo "$as_me:7844: checking for initscr in -lgpm" >&5
7845 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
7846 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
7847 echo $ECHO_N "(cached) $ECHO_C" >&6
7849 ac_check_lib_save_LIBS=$LIBS
7851 cat >conftest.$ac_ext <<_ACEOF
7852 #line 7852 "configure"
7853 #include "confdefs.h"
7855 /* Override any gcc2 internal prototype to avoid an error. */
7859 /* We use char because int might match the return type of a gcc2
7860 builtin and then its argument prototype would still apply. */
7870 rm -f conftest.$ac_objext conftest$ac_exeext
7871 if { (eval echo "$as_me:7871: \"$ac_link\"") >&5
7872 (eval $ac_link) 2>&5
7874 echo "$as_me:7874: \$? = $ac_status" >&5
7875 (exit $ac_status); } &&
7876 { ac_try='test -s conftest$ac_exeext'
7877 { (eval echo "$as_me:7877: \"$ac_try\"") >&5
7880 echo "$as_me:7880: \$? = $ac_status" >&5
7881 (exit $ac_status); }; }; then
7882 ac_cv_lib_gpm_initscr=yes
7884 echo "$as_me: failed program was:" >&5
7885 cat conftest.$ac_ext >&5
7886 ac_cv_lib_gpm_initscr=no
7888 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7889 LIBS=$ac_check_lib_save_LIBS
7891 echo "$as_me:7891: result: $ac_cv_lib_gpm_initscr" >&5
7892 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
7893 if test $ac_cv_lib_gpm_initscr = yes; then
7894 LIBS="$cf_ncurses_SAVE"
7896 cf_ncurses_LIBS="-lgpm"
7903 # This is only necessary if you are linking against an obsolete
7904 # version of ncurses (but it should do no harm, since it's static).
7905 if test "$cf_nculib_root" = ncurses ; then
7906 echo "$as_me:7906: checking for tgoto in -lmytinfo" >&5
7907 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
7908 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7911 ac_check_lib_save_LIBS=$LIBS
7912 LIBS="-lmytinfo $LIBS"
7913 cat >conftest.$ac_ext <<_ACEOF
7914 #line 7914 "configure"
7915 #include "confdefs.h"
7917 /* Override any gcc2 internal prototype to avoid an error. */
7921 /* We use char because int might match the return type of a gcc2
7922 builtin and then its argument prototype would still apply. */
7932 rm -f conftest.$ac_objext conftest$ac_exeext
7933 if { (eval echo "$as_me:7933: \"$ac_link\"") >&5
7934 (eval $ac_link) 2>&5
7936 echo "$as_me:7936: \$? = $ac_status" >&5
7937 (exit $ac_status); } &&
7938 { ac_try='test -s conftest$ac_exeext'
7939 { (eval echo "$as_me:7939: \"$ac_try\"") >&5
7942 echo "$as_me:7942: \$? = $ac_status" >&5
7943 (exit $ac_status); }; }; then
7944 ac_cv_lib_mytinfo_tgoto=yes
7946 echo "$as_me: failed program was:" >&5
7947 cat conftest.$ac_ext >&5
7948 ac_cv_lib_mytinfo_tgoto=no
7950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7951 LIBS=$ac_check_lib_save_LIBS
7953 echo "$as_me:7953: result: $ac_cv_lib_mytinfo_tgoto" >&5
7954 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
7955 if test $ac_cv_lib_mytinfo_tgoto = yes; then
7956 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
7963 cf_add_libs="$cf_ncurses_LIBS"
7964 # Filter out duplicates - this happens with badly-designed ".pc" files...
7965 for cf_add_1lib in $LIBS
7967 for cf_add_2lib in $cf_add_libs
7969 if test "x$cf_add_1lib" = "x$cf_add_2lib"
7975 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
7979 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
7982 cf_add_libs="-l$cf_nculib_root"
7983 # Filter out duplicates - this happens with badly-designed ".pc" files...
7984 for cf_add_1lib in $LIBS
7986 for cf_add_2lib in $cf_add_libs
7988 if test "x$cf_add_1lib" = "x$cf_add_2lib"
7994 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
8000 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
8002 echo "$as_me:8002: checking for initscr" >&5
8003 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
8004 if test "${ac_cv_func_initscr+set}" = set; then
8005 echo $ECHO_N "(cached) $ECHO_C" >&6
8007 cat >conftest.$ac_ext <<_ACEOF
8008 #line 8008 "configure"
8009 #include "confdefs.h"
8010 /* System header to define __stub macros and hopefully few prototypes,
8011 which can conflict with char initscr (); below. */
8013 /* Override any gcc2 internal prototype to avoid an error. */
8017 /* We use char because int might match the return type of a gcc2
8018 builtin and then its argument prototype would still apply. */
8025 /* The GNU C library defines this for functions which it implements
8026 to always fail with ENOSYS. Some functions are actually named
8027 something starting with __ and the normal name is an alias. */
8028 #if defined (__stub_initscr) || defined (__stub___initscr)
8031 f = initscr; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
8038 rm -f conftest.$ac_objext conftest$ac_exeext
8039 if { (eval echo "$as_me:8039: \"$ac_link\"") >&5
8040 (eval $ac_link) 2>&5
8042 echo "$as_me:8042: \$? = $ac_status" >&5
8043 (exit $ac_status); } &&
8044 { ac_try='test -s conftest$ac_exeext'
8045 { (eval echo "$as_me:8045: \"$ac_try\"") >&5
8048 echo "$as_me:8048: \$? = $ac_status" >&5
8049 (exit $ac_status); }; }; then
8050 ac_cv_func_initscr=yes
8052 echo "$as_me: failed program was:" >&5
8053 cat conftest.$ac_ext >&5
8054 ac_cv_func_initscr=no
8056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8058 echo "$as_me:8058: result: $ac_cv_func_initscr" >&5
8059 echo "${ECHO_T}$ac_cv_func_initscr" >&6
8060 if test $ac_cv_func_initscr = yes; then
8061 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
8064 cf_save_LIBS="$LIBS"
8065 echo "$as_me:8065: checking for initscr in -l$cf_nculib_root" >&5
8066 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
8067 LIBS="-l$cf_nculib_root $LIBS"
8068 cat >conftest.$ac_ext <<_ACEOF
8069 #line 8069 "configure"
8070 #include "confdefs.h"
8071 #include <${cf_cv_ncurses_header:-curses.h}>
8080 rm -f conftest.$ac_objext conftest$ac_exeext
8081 if { (eval echo "$as_me:8081: \"$ac_link\"") >&5
8082 (eval $ac_link) 2>&5
8084 echo "$as_me:8084: \$? = $ac_status" >&5
8085 (exit $ac_status); } &&
8086 { ac_try='test -s conftest$ac_exeext'
8087 { (eval echo "$as_me:8087: \"$ac_try\"") >&5
8090 echo "$as_me:8090: \$? = $ac_status" >&5
8091 (exit $ac_status); }; }; then
8092 echo "$as_me:8092: result: yes" >&5
8093 echo "${ECHO_T}yes" >&6
8094 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
8097 echo "$as_me: failed program was:" >&5
8098 cat conftest.$ac_ext >&5
8099 echo "$as_me:8099: result: no" >&5
8100 echo "${ECHO_T}no" >&6
8103 cf_library_path_list=""
8104 if test -n "${LDFLAGS}${LIBS}" ; then
8105 for cf_library_path in $LDFLAGS $LIBS
8107 case $cf_library_path in
8109 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
8111 test "x$cf_library_path" != "xNONE" && \
8112 test -d "$cf_library_path" && \
8114 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
8115 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
8116 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
8117 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
8118 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
8119 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"
8122 cf_library_path_list="$cf_library_path_list $cf_search"
8130 test "x$prefix" != "xNONE" && \
8131 test -d "$prefix" && \
8133 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
8134 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
8135 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
8136 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
8137 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
8138 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
8141 for cf_subdir_prefix in \
8150 test "x$cf_subdir_prefix" != "x$prefix" && \
8151 test -d "$cf_subdir_prefix" && \
8152 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
8153 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
8154 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
8155 test -d $cf_subdir_prefix/lib/$cf_nculib_root && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root"
8156 test -d $cf_subdir_prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root/lib"
8157 test -d $cf_subdir_prefix/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib"
8158 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"
8163 cf_search="$cf_library_path_list $cf_search"
8165 for cf_libdir in $cf_search
8167 echo "$as_me:8167: checking for -l$cf_nculib_root in $cf_libdir" >&5
8168 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
8169 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
8170 cat >conftest.$ac_ext <<_ACEOF
8171 #line 8171 "configure"
8172 #include "confdefs.h"
8173 #include <${cf_cv_ncurses_header:-curses.h}>
8182 rm -f conftest.$ac_objext conftest$ac_exeext
8183 if { (eval echo "$as_me:8183: \"$ac_link\"") >&5
8184 (eval $ac_link) 2>&5
8186 echo "$as_me:8186: \$? = $ac_status" >&5
8187 (exit $ac_status); } &&
8188 { ac_try='test -s conftest$ac_exeext'
8189 { (eval echo "$as_me:8189: \"$ac_try\"") >&5
8192 echo "$as_me:8192: \$? = $ac_status" >&5
8193 (exit $ac_status); }; }; then
8194 echo "$as_me:8194: result: yes" >&5
8195 echo "${ECHO_T}yes" >&6
8196 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
8199 echo "$as_me: failed program was:" >&5
8200 cat conftest.$ac_ext >&5
8201 echo "$as_me:8201: result: no" >&5
8202 echo "${ECHO_T}no" >&6
8203 LIBS="$cf_save_LIBS"
8205 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8213 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
8215 if test $cf_found_library = no ; then
8216 { { echo "$as_me:8216: error: Cannot link $cf_nculib_root library" >&5
8217 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
8218 { (exit 1); exit 1; }; }
8223 if test -n "$cf_ncurses_LIBS" ; then
8224 echo "$as_me:8224: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
8225 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
8226 cf_ncurses_SAVE="$LIBS"
8227 for p in $cf_ncurses_LIBS ; do
8228 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
8229 if test "$q" != "$LIBS" ; then
8233 cat >conftest.$ac_ext <<_ACEOF
8234 #line 8234 "configure"
8235 #include "confdefs.h"
8236 #include <${cf_cv_ncurses_header:-curses.h}>
8240 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
8245 rm -f conftest.$ac_objext conftest$ac_exeext
8246 if { (eval echo "$as_me:8246: \"$ac_link\"") >&5
8247 (eval $ac_link) 2>&5
8249 echo "$as_me:8249: \$? = $ac_status" >&5
8250 (exit $ac_status); } &&
8251 { ac_try='test -s conftest$ac_exeext'
8252 { (eval echo "$as_me:8252: \"$ac_try\"") >&5
8255 echo "$as_me:8255: \$? = $ac_status" >&5
8256 (exit $ac_status); }; }; then
8257 echo "$as_me:8257: result: yes" >&5
8258 echo "${ECHO_T}yes" >&6
8260 echo "$as_me: failed program was:" >&5
8261 cat conftest.$ac_ext >&5
8262 echo "$as_me:8262: result: no" >&5
8263 echo "${ECHO_T}no" >&6
8264 LIBS="$cf_ncurses_SAVE"
8266 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8269 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
8271 cat >>confdefs.h <<EOF
8272 #define $cf_nculib_ROOT 1
8283 cf_ncuconfig_root=$cf_cv_screen
8284 cf_have_ncuconfig=no
8286 if test "x${PKG_CONFIG:=none}" != xnone; then
8287 echo "$as_me:8287: checking pkg-config for $cf_ncuconfig_root" >&5
8288 echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
8289 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
8290 echo "$as_me:8290: result: yes" >&5
8291 echo "${ECHO_T}yes" >&6
8293 echo "$as_me:8293: checking if the $cf_ncuconfig_root package files work" >&5
8294 echo $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
8295 cf_have_ncuconfig=unknown
8297 cf_save_CPPFLAGS="$CPPFLAGS"
8298 cf_save_LIBS="$LIBS"
8300 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG --cflags $cf_ncuconfig_root`"
8302 cf_add_libs="`$PKG_CONFIG --libs $cf_ncuconfig_root`"
8303 # Filter out duplicates - this happens with badly-designed ".pc" files...
8304 for cf_add_1lib in $LIBS
8306 for cf_add_2lib in $cf_add_libs
8308 if test "x$cf_add_1lib" = "x$cf_add_2lib"
8314 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
8318 cat >conftest.$ac_ext <<_ACEOF
8319 #line 8319 "configure"
8320 #include "confdefs.h"
8321 #include <${cf_cv_ncurses_header:-curses.h}>
8325 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
8330 rm -f conftest.$ac_objext conftest$ac_exeext
8331 if { (eval echo "$as_me:8331: \"$ac_link\"") >&5
8332 (eval $ac_link) 2>&5
8334 echo "$as_me:8334: \$? = $ac_status" >&5
8335 (exit $ac_status); } &&
8336 { ac_try='test -s conftest$ac_exeext'
8337 { (eval echo "$as_me:8337: \"$ac_try\"") >&5
8340 echo "$as_me:8340: \$? = $ac_status" >&5
8341 (exit $ac_status); }; }; then
8342 if test "$cross_compiling" = yes; then
8343 cf_have_ncuconfig=maybe
8345 cat >conftest.$ac_ext <<_ACEOF
8346 #line 8346 "configure"
8347 #include "confdefs.h"
8348 #include <${cf_cv_ncurses_header:-curses.h}>
8350 { char *xx = curses_version(); return (xx == 0); }
8352 rm -f conftest$ac_exeext
8353 if { (eval echo "$as_me:8353: \"$ac_link\"") >&5
8354 (eval $ac_link) 2>&5
8356 echo "$as_me:8356: \$? = $ac_status" >&5
8357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8358 { (eval echo "$as_me:8358: \"$ac_try\"") >&5
8361 echo "$as_me:8361: \$? = $ac_status" >&5
8362 (exit $ac_status); }; }; then
8363 cf_have_ncuconfig=yes
8365 echo "$as_me: program exited with status $ac_status" >&5
8366 echo "$as_me: failed program was:" >&5
8367 cat conftest.$ac_ext >&5
8368 cf_have_ncuconfig=no
8370 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8373 echo "$as_me: failed program was:" >&5
8374 cat conftest.$ac_ext >&5
8375 cf_have_ncuconfig=no
8377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8378 echo "$as_me:8378: result: $cf_have_ncuconfig" >&5
8379 echo "${ECHO_T}$cf_have_ncuconfig" >&6
8380 test "$cf_have_ncuconfig" = maybe && cf_have_ncuconfig=yes
8381 if test "$cf_have_ncuconfig" != "yes"
8383 CPPFLAGS="$cf_save_CPPFLAGS"
8384 LIBS="$cf_save_LIBS"
8385 NCURSES_CONFIG_PKG=none
8388 cat >>confdefs.h <<\EOF
8392 NCURSES_CONFIG_PKG=$cf_ncuconfig_root
8396 echo "$as_me:8396: result: no" >&5
8397 echo "${ECHO_T}no" >&6
8398 NCURSES_CONFIG_PKG=none
8401 NCURSES_CONFIG_PKG=none
8404 if test "x$cf_have_ncuconfig" = "xno"; then
8405 echo "Looking for ${cf_ncuconfig_root}-config"
8407 if test -n "$ac_tool_prefix"; then
8408 for ac_prog in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
8410 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8411 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8412 echo "$as_me:8412: checking for $ac_word" >&5
8413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8414 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
8415 echo $ECHO_N "(cached) $ECHO_C" >&6
8417 if test -n "$NCURSES_CONFIG"; then
8418 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
8420 ac_save_IFS=$IFS; IFS=$ac_path_separator
8422 for ac_dir in $ac_dummy; do
8424 test -z "$ac_dir" && ac_dir=.
8425 $as_executable_p "$ac_dir/$ac_word" || continue
8426 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
8427 echo "$as_me:8427: found $ac_dir/$ac_word" >&5
8433 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
8434 if test -n "$NCURSES_CONFIG"; then
8435 echo "$as_me:8435: result: $NCURSES_CONFIG" >&5
8436 echo "${ECHO_T}$NCURSES_CONFIG" >&6
8438 echo "$as_me:8438: result: no" >&5
8439 echo "${ECHO_T}no" >&6
8442 test -n "$NCURSES_CONFIG" && break
8445 if test -z "$NCURSES_CONFIG"; then
8446 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
8447 for ac_prog in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
8449 # Extract the first word of "$ac_prog", so it can be a program name with args.
8450 set dummy $ac_prog; ac_word=$2
8451 echo "$as_me:8451: checking for $ac_word" >&5
8452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8453 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
8454 echo $ECHO_N "(cached) $ECHO_C" >&6
8456 if test -n "$ac_ct_NCURSES_CONFIG"; then
8457 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
8459 ac_save_IFS=$IFS; IFS=$ac_path_separator
8461 for ac_dir in $ac_dummy; do
8463 test -z "$ac_dir" && ac_dir=.
8464 $as_executable_p "$ac_dir/$ac_word" || continue
8465 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
8466 echo "$as_me:8466: found $ac_dir/$ac_word" >&5
8472 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
8473 if test -n "$ac_ct_NCURSES_CONFIG"; then
8474 echo "$as_me:8474: result: $ac_ct_NCURSES_CONFIG" >&5
8475 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
8477 echo "$as_me:8477: result: no" >&5
8478 echo "${ECHO_T}no" >&6
8481 test -n "$ac_ct_NCURSES_CONFIG" && break
8483 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
8485 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
8488 if test "$NCURSES_CONFIG" != none ; then
8490 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
8492 cf_add_libs="`$NCURSES_CONFIG --libs`"
8493 # Filter out duplicates - this happens with badly-designed ".pc" files...
8494 for cf_add_1lib in $LIBS
8496 for cf_add_2lib in $cf_add_libs
8498 if test "x$cf_add_1lib" = "x$cf_add_2lib"
8504 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
8508 # even with config script, some packages use no-override for curses.h
8510 echo "$as_me:8510: checking if we have identified curses headers" >&5
8511 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
8512 if test "${cf_cv_ncurses_header+set}" = set; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
8516 cf_cv_ncurses_header=none
8518 ncurses.h $cf_cv_screen/ncurses.h \
8519 curses.h $cf_cv_screen/curses.h
8521 cat >conftest.$ac_ext <<_ACEOF
8522 #line 8522 "configure"
8523 #include "confdefs.h"
8524 #include <${cf_header}>
8528 initscr(); tgoto("?", 0,0)
8533 rm -f conftest.$ac_objext
8534 if { (eval echo "$as_me:8534: \"$ac_compile\"") >&5
8535 (eval $ac_compile) 2>&5
8537 echo "$as_me:8537: \$? = $ac_status" >&5
8538 (exit $ac_status); } &&
8539 { ac_try='test -s conftest.$ac_objext'
8540 { (eval echo "$as_me:8540: \"$ac_try\"") >&5
8543 echo "$as_me:8543: \$? = $ac_status" >&5
8544 (exit $ac_status); }; }; then
8545 cf_cv_ncurses_header=$cf_header; break
8547 echo "$as_me: failed program was:" >&5
8548 cat conftest.$ac_ext >&5
8550 rm -f conftest.$ac_objext conftest.$ac_ext
8554 echo "$as_me:8554: result: $cf_cv_ncurses_header" >&5
8555 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
8557 if test "$cf_cv_ncurses_header" = none ; then
8558 { { echo "$as_me:8558: error: No curses header-files found" >&5
8559 echo "$as_me: error: No curses header-files found" >&2;}
8560 { (exit 1); exit 1; }; }
8563 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
8565 for ac_header in $cf_cv_ncurses_header
8567 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8568 echo "$as_me:8568: checking for $ac_header" >&5
8569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8571 echo $ECHO_N "(cached) $ECHO_C" >&6
8573 cat >conftest.$ac_ext <<_ACEOF
8574 #line 8574 "configure"
8575 #include "confdefs.h"
8576 #include <$ac_header>
8578 if { (eval echo "$as_me:8578: \"$ac_cpp conftest.$ac_ext\"") >&5
8579 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8581 egrep -v '^ *\+' conftest.er1 >conftest.err
8583 cat conftest.err >&5
8584 echo "$as_me:8584: \$? = $ac_status" >&5
8585 (exit $ac_status); } >/dev/null; then
8586 if test -s conftest.err; then
8587 ac_cpp_err=$ac_c_preproc_warn_flag
8594 if test -z "$ac_cpp_err"; then
8595 eval "$as_ac_Header=yes"
8597 echo "$as_me: failed program was:" >&5
8598 cat conftest.$ac_ext >&5
8599 eval "$as_ac_Header=no"
8601 rm -f conftest.err conftest.$ac_ext
8603 echo "$as_me:8603: result: `eval echo '${'$as_ac_Header'}'`" >&5
8604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8606 cat >>confdefs.h <<EOF
8607 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8613 cat >>confdefs.h <<\EOF
8617 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
8619 cat >>confdefs.h <<EOF
8620 #define $cf_nculib_ROOT 1
8623 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
8627 cf_ncuhdr_root=$cf_cv_screen
8629 test -n "$cf_cv_curses_dir" && \
8630 test "$cf_cv_curses_dir" != "no" && { \
8632 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
8633 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
8635 while test $cf_add_incdir != /usr/include
8637 if test -d $cf_add_incdir
8640 if test -n "$CFLAGS$CPPFLAGS" ; then
8641 # a loop is needed to ensure we can add subdirs of existing dirs
8642 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8643 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8644 cf_have_incdir=yes; break
8649 if test "$cf_have_incdir" = no ; then
8650 if test "$cf_add_incdir" = /usr/local/include ; then
8651 if test "$GCC" = yes
8653 cf_save_CPPFLAGS=$CPPFLAGS
8654 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8655 cat >conftest.$ac_ext <<_ACEOF
8656 #line 8656 "configure"
8657 #include "confdefs.h"
8667 rm -f conftest.$ac_objext
8668 if { (eval echo "$as_me:8668: \"$ac_compile\"") >&5
8669 (eval $ac_compile) 2>&5
8671 echo "$as_me:8671: \$? = $ac_status" >&5
8672 (exit $ac_status); } &&
8673 { ac_try='test -s conftest.$ac_objext'
8674 { (eval echo "$as_me:8674: \"$ac_try\"") >&5
8677 echo "$as_me:8677: \$? = $ac_status" >&5
8678 (exit $ac_status); }; }; then
8681 echo "$as_me: failed program was:" >&5
8682 cat conftest.$ac_ext >&5
8685 rm -f conftest.$ac_objext conftest.$ac_ext
8686 CPPFLAGS=$cf_save_CPPFLAGS
8691 if test "$cf_have_incdir" = no ; then
8692 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8694 echo "${as_me:-configure}:8694: testing adding $cf_add_incdir to include-path ..." 1>&5
8696 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8698 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8699 test "$cf_top_incdir" = "$cf_add_incdir" && break
8700 cf_add_incdir="$cf_top_incdir"
8713 echo "$as_me:8713: checking for $cf_ncuhdr_root header in include-path" >&5
8714 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
8715 if test "${cf_cv_ncurses_h+set}" = set; then
8716 echo $ECHO_N "(cached) $ECHO_C" >&6
8719 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
8720 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
8721 for cf_header in $cf_header_list
8724 cat >conftest.$ac_ext <<_ACEOF
8725 #line 8725 "configure"
8726 #include "confdefs.h"
8728 #include <$cf_header>
8733 #ifdef NCURSES_VERSION
8735 printf("%s\n", NCURSES_VERSION);
8748 rm -f conftest.$ac_objext
8749 if { (eval echo "$as_me:8749: \"$ac_compile\"") >&5
8750 (eval $ac_compile) 2>&5
8752 echo "$as_me:8752: \$? = $ac_status" >&5
8753 (exit $ac_status); } &&
8754 { ac_try='test -s conftest.$ac_objext'
8755 { (eval echo "$as_me:8755: \"$ac_try\"") >&5
8758 echo "$as_me:8758: \$? = $ac_status" >&5
8759 (exit $ac_status); }; }; then
8760 cf_cv_ncurses_h=$cf_header
8763 echo "$as_me: failed program was:" >&5
8764 cat conftest.$ac_ext >&5
8767 rm -f conftest.$ac_objext conftest.$ac_ext
8769 test "$cf_cv_ncurses_h" != no && break
8773 echo "$as_me:8773: result: $cf_cv_ncurses_h" >&5
8774 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
8776 if test "$cf_cv_ncurses_h" != no ; then
8777 cf_cv_ncurses_header=$cf_cv_ncurses_h
8780 echo "$as_me:8780: checking for $cf_ncuhdr_root include-path" >&5
8781 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
8782 if test "${cf_cv_ncurses_h2+set}" = set; then
8783 echo $ECHO_N "(cached) $ECHO_C" >&6
8786 test -n "$verbose" && echo
8790 # collect the current set of include-directories from compiler flags
8791 cf_header_path_list=""
8792 if test -n "${CFLAGS}${CPPFLAGS}" ; then
8793 for cf_header_path in $CPPFLAGS $CFLAGS
8795 case $cf_header_path in
8797 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
8799 test "x$cf_header_path" != "xNONE" && \
8800 test -d "$cf_header_path" && \
8802 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
8803 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
8804 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
8805 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
8806 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
8807 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"
8810 cf_header_path_list="$cf_header_path_list $cf_search"
8816 # add the variations for the package we are looking for
8820 test "x$prefix" != "xNONE" && \
8821 test -d "$prefix" && \
8823 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
8824 test -d $prefix/include && cf_search="$cf_search $prefix/include"
8825 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
8826 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
8827 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
8828 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
8831 for cf_subdir_prefix in \
8840 test "x$cf_subdir_prefix" != "x$prefix" && \
8841 test -d "$cf_subdir_prefix" && \
8842 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
8843 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
8844 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
8845 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root"
8846 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root/include"
8847 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include"
8848 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"
8853 test "$includedir" != NONE && \
8854 test "$includedir" != "/usr/include" && \
8855 test -d "$includedir" && {
8856 test -d $includedir && cf_search="$cf_search $includedir"
8857 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
8860 test "$oldincludedir" != NONE && \
8861 test "$oldincludedir" != "/usr/include" && \
8862 test -d "$oldincludedir" && {
8863 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
8864 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
8867 cf_search="$cf_search $cf_header_path_list"
8869 test -n "$verbose" && echo search path $cf_search
8870 cf_save2_CPPFLAGS="$CPPFLAGS"
8871 for cf_incdir in $cf_search
8874 if test -n "$cf_incdir" ; then
8875 for cf_add_incdir in $cf_incdir
8877 while test $cf_add_incdir != /usr/include
8879 if test -d $cf_add_incdir
8882 if test -n "$CFLAGS$CPPFLAGS" ; then
8883 # a loop is needed to ensure we can add subdirs of existing dirs
8884 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8885 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8886 cf_have_incdir=yes; break
8891 if test "$cf_have_incdir" = no ; then
8892 if test "$cf_add_incdir" = /usr/local/include ; then
8893 if test "$GCC" = yes
8895 cf_save_CPPFLAGS=$CPPFLAGS
8896 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8897 cat >conftest.$ac_ext <<_ACEOF
8898 #line 8898 "configure"
8899 #include "confdefs.h"
8909 rm -f conftest.$ac_objext
8910 if { (eval echo "$as_me:8910: \"$ac_compile\"") >&5
8911 (eval $ac_compile) 2>&5
8913 echo "$as_me:8913: \$? = $ac_status" >&5
8914 (exit $ac_status); } &&
8915 { ac_try='test -s conftest.$ac_objext'
8916 { (eval echo "$as_me:8916: \"$ac_try\"") >&5
8919 echo "$as_me:8919: \$? = $ac_status" >&5
8920 (exit $ac_status); }; }; then
8923 echo "$as_me: failed program was:" >&5
8924 cat conftest.$ac_ext >&5
8927 rm -f conftest.$ac_objext conftest.$ac_ext
8928 CPPFLAGS=$cf_save_CPPFLAGS
8933 if test "$cf_have_incdir" = no ; then
8934 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8936 echo "${as_me:-configure}:8936: testing adding $cf_add_incdir to include-path ..." 1>&5
8938 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8940 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8941 test "$cf_top_incdir" = "$cf_add_incdir" && break
8942 cf_add_incdir="$cf_top_incdir"
8958 cat >conftest.$ac_ext <<_ACEOF
8959 #line 8959 "configure"
8960 #include "confdefs.h"
8962 #include <$cf_header>
8967 #ifdef NCURSES_VERSION
8969 printf("%s\n", NCURSES_VERSION);
8982 rm -f conftest.$ac_objext
8983 if { (eval echo "$as_me:8983: \"$ac_compile\"") >&5
8984 (eval $ac_compile) 2>&5
8986 echo "$as_me:8986: \$? = $ac_status" >&5
8987 (exit $ac_status); } &&
8988 { ac_try='test -s conftest.$ac_objext'
8989 { (eval echo "$as_me:8989: \"$ac_try\"") >&5
8992 echo "$as_me:8992: \$? = $ac_status" >&5
8993 (exit $ac_status); }; }; then
8994 cf_cv_ncurses_h2=$cf_header
8997 echo "$as_me: failed program was:" >&5
8998 cat conftest.$ac_ext >&5
9001 rm -f conftest.$ac_objext conftest.$ac_ext
9003 if test "$cf_cv_ncurses_h2" != no ; then
9004 cf_cv_ncurses_h2=$cf_incdir/$cf_header
9005 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
9008 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
9010 CPPFLAGS="$cf_save2_CPPFLAGS"
9011 test "$cf_cv_ncurses_h2" != no && break
9013 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:9013: error: not found" >&5
9014 echo "$as_me: error: not found" >&2;}
9015 { (exit 1); exit 1; }; }
9018 echo "$as_me:9018: result: $cf_cv_ncurses_h2" >&5
9019 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
9021 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
9022 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
9023 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
9024 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
9027 if test -n "$cf_1st_incdir" ; then
9028 for cf_add_incdir in $cf_1st_incdir
9030 while test $cf_add_incdir != /usr/include
9032 if test -d $cf_add_incdir
9035 if test -n "$CFLAGS$CPPFLAGS" ; then
9036 # a loop is needed to ensure we can add subdirs of existing dirs
9037 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
9038 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
9039 cf_have_incdir=yes; break
9044 if test "$cf_have_incdir" = no ; then
9045 if test "$cf_add_incdir" = /usr/local/include ; then
9046 if test "$GCC" = yes
9048 cf_save_CPPFLAGS=$CPPFLAGS
9049 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9050 cat >conftest.$ac_ext <<_ACEOF
9051 #line 9051 "configure"
9052 #include "confdefs.h"
9062 rm -f conftest.$ac_objext
9063 if { (eval echo "$as_me:9063: \"$ac_compile\"") >&5
9064 (eval $ac_compile) 2>&5
9066 echo "$as_me:9066: \$? = $ac_status" >&5
9067 (exit $ac_status); } &&
9068 { ac_try='test -s conftest.$ac_objext'
9069 { (eval echo "$as_me:9069: \"$ac_try\"") >&5
9072 echo "$as_me:9072: \$? = $ac_status" >&5
9073 (exit $ac_status); }; }; then
9076 echo "$as_me: failed program was:" >&5
9077 cat conftest.$ac_ext >&5
9080 rm -f conftest.$ac_objext conftest.$ac_ext
9081 CPPFLAGS=$cf_save_CPPFLAGS
9086 if test "$cf_have_incdir" = no ; then
9087 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
9089 echo "${as_me:-configure}:9089: testing adding $cf_add_incdir to include-path ..." 1>&5
9091 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
9093 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
9094 test "$cf_top_incdir" = "$cf_add_incdir" && break
9095 cf_add_incdir="$cf_top_incdir"
9108 # Set definitions to allow ifdef'ing for ncurses.h
9110 case $cf_cv_ncurses_header in
9113 cat >>confdefs.h <<\EOF
9114 #define HAVE_NCURSES_H 1
9120 case $cf_cv_ncurses_header in
9121 (ncurses/curses.h|ncurses/ncurses.h)
9123 cat >>confdefs.h <<\EOF
9124 #define HAVE_NCURSES_NCURSES_H 1
9128 (ncursesw/curses.h|ncursesw/ncurses.h)
9130 cat >>confdefs.h <<\EOF
9131 #define HAVE_NCURSESW_NCURSES_H 1
9137 echo "$as_me:9137: checking for terminfo header" >&5
9138 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
9139 if test "${cf_cv_term_header+set}" = set; then
9140 echo $ECHO_N "(cached) $ECHO_C" >&6
9143 case ${cf_cv_ncurses_header} in
9144 (*/ncurses.h|*/ncursesw.h)
9145 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
9148 cf_term_header=term.h
9152 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
9154 cat >conftest.$ac_ext <<_ACEOF
9155 #line 9155 "configure"
9156 #include "confdefs.h"
9158 #include <${cf_cv_ncurses_header:-curses.h}>
9164 int x = auto_left_margin
9169 rm -f conftest.$ac_objext
9170 if { (eval echo "$as_me:9170: \"$ac_compile\"") >&5
9171 (eval $ac_compile) 2>&5
9173 echo "$as_me:9173: \$? = $ac_status" >&5
9174 (exit $ac_status); } &&
9175 { ac_try='test -s conftest.$ac_objext'
9176 { (eval echo "$as_me:9176: \"$ac_try\"") >&5
9179 echo "$as_me:9179: \$? = $ac_status" >&5
9180 (exit $ac_status); }; }; then
9182 cf_cv_term_header="$cf_test"
9184 echo "$as_me: failed program was:" >&5
9185 cat conftest.$ac_ext >&5
9187 cf_cv_term_header=unknown
9190 rm -f conftest.$ac_objext conftest.$ac_ext
9191 test "$cf_cv_term_header" != unknown && break
9195 echo "$as_me:9195: result: $cf_cv_term_header" >&5
9196 echo "${ECHO_T}$cf_cv_term_header" >&6
9198 # Set definitions to allow ifdef'ing to accommodate subdirectories
9200 case $cf_cv_term_header in
9203 cat >>confdefs.h <<\EOF
9204 #define HAVE_TERM_H 1
9210 case $cf_cv_term_header in
9213 cat >>confdefs.h <<\EOF
9214 #define HAVE_NCURSES_TERM_H 1
9220 cat >>confdefs.h <<\EOF
9221 #define HAVE_NCURSESW_TERM_H 1
9227 # some applications need this, but should check for NCURSES_VERSION
9229 cat >>confdefs.h <<\EOF
9233 echo "$as_me:9233: checking for ncurses version" >&5
9234 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
9235 if test "${cf_cv_ncurses_version+set}" = set; then
9236 echo $ECHO_N "(cached) $ECHO_C" >&6
9239 cf_cv_ncurses_version=no
9242 if test "$cross_compiling" = yes; then
9244 # This will not work if the preprocessor splits the line after the
9245 # Autoconf token. The 'unproto' program does that.
9246 cat > conftest.$ac_ext <<EOF
9247 #include <${cf_cv_ncurses_header:-curses.h}>
9249 #ifdef NCURSES_VERSION
9250 Autoconf NCURSES_VERSION
9258 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
9259 { (eval echo "$as_me:9259: \"$cf_try\"") >&5
9262 echo "$as_me:9262: \$? = $ac_status" >&5
9263 (exit $ac_status); }
9264 if test -f conftest.out ; then
9265 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
9266 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
9271 cat >conftest.$ac_ext <<_ACEOF
9272 #line 9272 "configure"
9273 #include "confdefs.h"
9275 #include <${cf_cv_ncurses_header:-curses.h}>
9279 FILE *fp = fopen("$cf_tempfile", "w");
9280 #ifdef NCURSES_VERSION
9281 # ifdef NCURSES_VERSION_PATCH
9282 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
9284 fprintf(fp, "%s\n", NCURSES_VERSION);
9288 fprintf(fp, "old\n");
9293 ${cf_cv_main_return:-return}(0);
9296 rm -f conftest$ac_exeext
9297 if { (eval echo "$as_me:9297: \"$ac_link\"") >&5
9298 (eval $ac_link) 2>&5
9300 echo "$as_me:9300: \$? = $ac_status" >&5
9301 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9302 { (eval echo "$as_me:9302: \"$ac_try\"") >&5
9305 echo "$as_me:9305: \$? = $ac_status" >&5
9306 (exit $ac_status); }; }; then
9308 cf_cv_ncurses_version=`cat $cf_tempfile`
9310 echo "$as_me: program exited with status $ac_status" >&5
9311 echo "$as_me: failed program was:" >&5
9312 cat conftest.$ac_ext >&5
9314 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9319 echo "$as_me:9319: result: $cf_cv_ncurses_version" >&5
9320 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
9321 test "$cf_cv_ncurses_version" = no ||
9322 cat >>confdefs.h <<\EOF
9326 cf_nculib_root=$cf_cv_screen
9327 # This works, except for the special case where we find gpm, but
9328 # ncurses is in a nonstandard location via $LIBS, and we really want
9331 cf_ncurses_SAVE="$LIBS"
9332 echo "$as_me:9332: checking for Gpm_Open in -lgpm" >&5
9333 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
9334 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
9335 echo $ECHO_N "(cached) $ECHO_C" >&6
9337 ac_check_lib_save_LIBS=$LIBS
9339 cat >conftest.$ac_ext <<_ACEOF
9340 #line 9340 "configure"
9341 #include "confdefs.h"
9343 /* Override any gcc2 internal prototype to avoid an error. */
9347 /* We use char because int might match the return type of a gcc2
9348 builtin and then its argument prototype would still apply. */
9358 rm -f conftest.$ac_objext conftest$ac_exeext
9359 if { (eval echo "$as_me:9359: \"$ac_link\"") >&5
9360 (eval $ac_link) 2>&5
9362 echo "$as_me:9362: \$? = $ac_status" >&5
9363 (exit $ac_status); } &&
9364 { ac_try='test -s conftest$ac_exeext'
9365 { (eval echo "$as_me:9365: \"$ac_try\"") >&5
9368 echo "$as_me:9368: \$? = $ac_status" >&5
9369 (exit $ac_status); }; }; then
9370 ac_cv_lib_gpm_Gpm_Open=yes
9372 echo "$as_me: failed program was:" >&5
9373 cat conftest.$ac_ext >&5
9374 ac_cv_lib_gpm_Gpm_Open=no
9376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9377 LIBS=$ac_check_lib_save_LIBS
9379 echo "$as_me:9379: result: $ac_cv_lib_gpm_Gpm_Open" >&5
9380 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
9381 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
9382 echo "$as_me:9382: checking for initscr in -lgpm" >&5
9383 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
9384 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
9385 echo $ECHO_N "(cached) $ECHO_C" >&6
9387 ac_check_lib_save_LIBS=$LIBS
9389 cat >conftest.$ac_ext <<_ACEOF
9390 #line 9390 "configure"
9391 #include "confdefs.h"
9393 /* Override any gcc2 internal prototype to avoid an error. */
9397 /* We use char because int might match the return type of a gcc2
9398 builtin and then its argument prototype would still apply. */
9408 rm -f conftest.$ac_objext conftest$ac_exeext
9409 if { (eval echo "$as_me:9409: \"$ac_link\"") >&5
9410 (eval $ac_link) 2>&5
9412 echo "$as_me:9412: \$? = $ac_status" >&5
9413 (exit $ac_status); } &&
9414 { ac_try='test -s conftest$ac_exeext'
9415 { (eval echo "$as_me:9415: \"$ac_try\"") >&5
9418 echo "$as_me:9418: \$? = $ac_status" >&5
9419 (exit $ac_status); }; }; then
9420 ac_cv_lib_gpm_initscr=yes
9422 echo "$as_me: failed program was:" >&5
9423 cat conftest.$ac_ext >&5
9424 ac_cv_lib_gpm_initscr=no
9426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9427 LIBS=$ac_check_lib_save_LIBS
9429 echo "$as_me:9429: result: $ac_cv_lib_gpm_initscr" >&5
9430 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
9431 if test $ac_cv_lib_gpm_initscr = yes; then
9432 LIBS="$cf_ncurses_SAVE"
9434 cf_ncurses_LIBS="-lgpm"
9441 # This is only necessary if you are linking against an obsolete
9442 # version of ncurses (but it should do no harm, since it's static).
9443 if test "$cf_nculib_root" = ncurses ; then
9444 echo "$as_me:9444: checking for tgoto in -lmytinfo" >&5
9445 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
9446 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
9447 echo $ECHO_N "(cached) $ECHO_C" >&6
9449 ac_check_lib_save_LIBS=$LIBS
9450 LIBS="-lmytinfo $LIBS"
9451 cat >conftest.$ac_ext <<_ACEOF
9452 #line 9452 "configure"
9453 #include "confdefs.h"
9455 /* Override any gcc2 internal prototype to avoid an error. */
9459 /* We use char because int might match the return type of a gcc2
9460 builtin and then its argument prototype would still apply. */
9470 rm -f conftest.$ac_objext conftest$ac_exeext
9471 if { (eval echo "$as_me:9471: \"$ac_link\"") >&5
9472 (eval $ac_link) 2>&5
9474 echo "$as_me:9474: \$? = $ac_status" >&5
9475 (exit $ac_status); } &&
9476 { ac_try='test -s conftest$ac_exeext'
9477 { (eval echo "$as_me:9477: \"$ac_try\"") >&5
9480 echo "$as_me:9480: \$? = $ac_status" >&5
9481 (exit $ac_status); }; }; then
9482 ac_cv_lib_mytinfo_tgoto=yes
9484 echo "$as_me: failed program was:" >&5
9485 cat conftest.$ac_ext >&5
9486 ac_cv_lib_mytinfo_tgoto=no
9488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9489 LIBS=$ac_check_lib_save_LIBS
9491 echo "$as_me:9491: result: $ac_cv_lib_mytinfo_tgoto" >&5
9492 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
9493 if test $ac_cv_lib_mytinfo_tgoto = yes; then
9494 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
9501 cf_add_libs="$cf_ncurses_LIBS"
9502 # Filter out duplicates - this happens with badly-designed ".pc" files...
9503 for cf_add_1lib in $LIBS
9505 for cf_add_2lib in $cf_add_libs
9507 if test "x$cf_add_1lib" = "x$cf_add_2lib"
9513 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
9517 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
9520 cf_add_libs="-l$cf_nculib_root"
9521 # Filter out duplicates - this happens with badly-designed ".pc" files...
9522 for cf_add_1lib in $LIBS
9524 for cf_add_2lib in $cf_add_libs
9526 if test "x$cf_add_1lib" = "x$cf_add_2lib"
9532 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
9538 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
9540 echo "$as_me:9540: checking for initscr" >&5
9541 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
9542 if test "${ac_cv_func_initscr+set}" = set; then
9543 echo $ECHO_N "(cached) $ECHO_C" >&6
9545 cat >conftest.$ac_ext <<_ACEOF
9546 #line 9546 "configure"
9547 #include "confdefs.h"
9548 /* System header to define __stub macros and hopefully few prototypes,
9549 which can conflict with char initscr (); below. */
9551 /* Override any gcc2 internal prototype to avoid an error. */
9555 /* We use char because int might match the return type of a gcc2
9556 builtin and then its argument prototype would still apply. */
9563 /* The GNU C library defines this for functions which it implements
9564 to always fail with ENOSYS. Some functions are actually named
9565 something starting with __ and the normal name is an alias. */
9566 #if defined (__stub_initscr) || defined (__stub___initscr)
9569 f = initscr; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
9576 rm -f conftest.$ac_objext conftest$ac_exeext
9577 if { (eval echo "$as_me:9577: \"$ac_link\"") >&5
9578 (eval $ac_link) 2>&5
9580 echo "$as_me:9580: \$? = $ac_status" >&5
9581 (exit $ac_status); } &&
9582 { ac_try='test -s conftest$ac_exeext'
9583 { (eval echo "$as_me:9583: \"$ac_try\"") >&5
9586 echo "$as_me:9586: \$? = $ac_status" >&5
9587 (exit $ac_status); }; }; then
9588 ac_cv_func_initscr=yes
9590 echo "$as_me: failed program was:" >&5
9591 cat conftest.$ac_ext >&5
9592 ac_cv_func_initscr=no
9594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9596 echo "$as_me:9596: result: $ac_cv_func_initscr" >&5
9597 echo "${ECHO_T}$ac_cv_func_initscr" >&6
9598 if test $ac_cv_func_initscr = yes; then
9599 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
9602 cf_save_LIBS="$LIBS"
9603 echo "$as_me:9603: checking for initscr in -l$cf_nculib_root" >&5
9604 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
9605 LIBS="-l$cf_nculib_root $LIBS"
9606 cat >conftest.$ac_ext <<_ACEOF
9607 #line 9607 "configure"
9608 #include "confdefs.h"
9609 #include <${cf_cv_ncurses_header:-curses.h}>
9618 rm -f conftest.$ac_objext conftest$ac_exeext
9619 if { (eval echo "$as_me:9619: \"$ac_link\"") >&5
9620 (eval $ac_link) 2>&5
9622 echo "$as_me:9622: \$? = $ac_status" >&5
9623 (exit $ac_status); } &&
9624 { ac_try='test -s conftest$ac_exeext'
9625 { (eval echo "$as_me:9625: \"$ac_try\"") >&5
9628 echo "$as_me:9628: \$? = $ac_status" >&5
9629 (exit $ac_status); }; }; then
9630 echo "$as_me:9630: result: yes" >&5
9631 echo "${ECHO_T}yes" >&6
9632 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
9635 echo "$as_me: failed program was:" >&5
9636 cat conftest.$ac_ext >&5
9637 echo "$as_me:9637: result: no" >&5
9638 echo "${ECHO_T}no" >&6
9641 cf_library_path_list=""
9642 if test -n "${LDFLAGS}${LIBS}" ; then
9643 for cf_library_path in $LDFLAGS $LIBS
9645 case $cf_library_path in
9647 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
9649 test "x$cf_library_path" != "xNONE" && \
9650 test -d "$cf_library_path" && \
9652 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
9653 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
9654 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
9655 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
9656 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
9657 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"
9660 cf_library_path_list="$cf_library_path_list $cf_search"
9668 test "x$prefix" != "xNONE" && \
9669 test -d "$prefix" && \
9671 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
9672 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
9673 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
9674 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
9675 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
9676 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
9679 for cf_subdir_prefix in \
9688 test "x$cf_subdir_prefix" != "x$prefix" && \
9689 test -d "$cf_subdir_prefix" && \
9690 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
9691 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
9692 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
9693 test -d $cf_subdir_prefix/lib/$cf_nculib_root && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root"
9694 test -d $cf_subdir_prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root/lib"
9695 test -d $cf_subdir_prefix/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib"
9696 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"
9701 cf_search="$cf_library_path_list $cf_search"
9703 for cf_libdir in $cf_search
9705 echo "$as_me:9705: checking for -l$cf_nculib_root in $cf_libdir" >&5
9706 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
9707 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
9708 cat >conftest.$ac_ext <<_ACEOF
9709 #line 9709 "configure"
9710 #include "confdefs.h"
9711 #include <${cf_cv_ncurses_header:-curses.h}>
9720 rm -f conftest.$ac_objext conftest$ac_exeext
9721 if { (eval echo "$as_me:9721: \"$ac_link\"") >&5
9722 (eval $ac_link) 2>&5
9724 echo "$as_me:9724: \$? = $ac_status" >&5
9725 (exit $ac_status); } &&
9726 { ac_try='test -s conftest$ac_exeext'
9727 { (eval echo "$as_me:9727: \"$ac_try\"") >&5
9730 echo "$as_me:9730: \$? = $ac_status" >&5
9731 (exit $ac_status); }; }; then
9732 echo "$as_me:9732: result: yes" >&5
9733 echo "${ECHO_T}yes" >&6
9734 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
9737 echo "$as_me: failed program was:" >&5
9738 cat conftest.$ac_ext >&5
9739 echo "$as_me:9739: result: no" >&5
9740 echo "${ECHO_T}no" >&6
9741 LIBS="$cf_save_LIBS"
9743 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9751 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
9753 if test $cf_found_library = no ; then
9754 { { echo "$as_me:9754: error: Cannot link $cf_nculib_root library" >&5
9755 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
9756 { (exit 1); exit 1; }; }
9761 if test -n "$cf_ncurses_LIBS" ; then
9762 echo "$as_me:9762: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
9763 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
9764 cf_ncurses_SAVE="$LIBS"
9765 for p in $cf_ncurses_LIBS ; do
9766 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
9767 if test "$q" != "$LIBS" ; then
9771 cat >conftest.$ac_ext <<_ACEOF
9772 #line 9772 "configure"
9773 #include "confdefs.h"
9774 #include <${cf_cv_ncurses_header:-curses.h}>
9778 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
9783 rm -f conftest.$ac_objext conftest$ac_exeext
9784 if { (eval echo "$as_me:9784: \"$ac_link\"") >&5
9785 (eval $ac_link) 2>&5
9787 echo "$as_me:9787: \$? = $ac_status" >&5
9788 (exit $ac_status); } &&
9789 { ac_try='test -s conftest$ac_exeext'
9790 { (eval echo "$as_me:9790: \"$ac_try\"") >&5
9793 echo "$as_me:9793: \$? = $ac_status" >&5
9794 (exit $ac_status); }; }; then
9795 echo "$as_me:9795: result: yes" >&5
9796 echo "${ECHO_T}yes" >&6
9798 echo "$as_me: failed program was:" >&5
9799 cat conftest.$ac_ext >&5
9800 echo "$as_me:9800: result: no" >&5
9801 echo "${ECHO_T}no" >&6
9802 LIBS="$cf_ncurses_SAVE"
9804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9807 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
9809 cat >>confdefs.h <<EOF
9810 #define $cf_nculib_ROOT 1
9820 echo "$as_me:9820: checking for X" >&5
9821 echo $ECHO_N "checking for X... $ECHO_C" >&6
9823 # Check whether --with-x or --without-x was given.
9824 if test "${with_x+set}" = set; then
9828 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9829 if test "x$with_x" = xno; then
9830 # The user explicitly disabled X.
9833 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9834 # Both variables are already set.
9837 if test "${ac_cv_have_x+set}" = set; then
9838 echo $ECHO_N "(cached) $ECHO_C" >&6
9840 # One or both of the vars are not set, and there is no cached value.
9841 ac_x_includes=no ac_x_libraries=no
9843 if mkdir conftest.dir; then
9845 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9846 cat >Imakefile <<'EOF'
9848 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9850 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9851 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9852 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9853 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9854 for ac_extension in a so sl dylib dll; do
9855 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9856 test -f $ac_im_libdir/libX11.$ac_extension; then
9857 ac_im_usrlibdir=$ac_im_libdir; break
9860 # Screen out bogus values from the imake configuration. They are
9861 # bogus both because they are the default anyway, and because
9862 # using them would break gcc on systems where it needs fixed includes.
9863 case $ac_im_incroot in
9865 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9867 case $ac_im_usrlibdir in
9869 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9876 # Standard set of common directories for X headers.
9877 # Check X11 before X11Rn because it is often a symlink to the current release.
9889 /usr/local/X11/include
9890 /usr/local/X11R6/include
9891 /usr/local/X11R5/include
9892 /usr/local/X11R4/include
9894 /usr/local/include/X11
9895 /usr/local/include/X11R6
9896 /usr/local/include/X11R5
9897 /usr/local/include/X11R4
9901 /usr/XFree86/include/X11
9905 /usr/unsupported/include
9907 /usr/local/x11r5/include
9908 /usr/lpp/Xamples/include
9910 /usr/openwin/include
9911 /usr/openwin/share/include'
9913 if test "$ac_x_includes" = no; then
9914 # Guess where to find include files, by looking for Intrinsic.h.
9915 # First, try using that file with no special directory specified.
9916 cat >conftest.$ac_ext <<_ACEOF
9917 #line 9917 "configure"
9918 #include "confdefs.h"
9919 #include <X11/Intrinsic.h>
9921 if { (eval echo "$as_me:9921: \"$ac_cpp conftest.$ac_ext\"") >&5
9922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9924 egrep -v '^ *\+' conftest.er1 >conftest.err
9926 cat conftest.err >&5
9927 echo "$as_me:9927: \$? = $ac_status" >&5
9928 (exit $ac_status); } >/dev/null; then
9929 if test -s conftest.err; then
9930 ac_cpp_err=$ac_c_preproc_warn_flag
9937 if test -z "$ac_cpp_err"; then
9938 # We can compile using X headers with no special include directory.
9941 echo "$as_me: failed program was:" >&5
9942 cat conftest.$ac_ext >&5
9943 for ac_dir in $ac_x_header_dirs; do
9944 if test -r "$ac_dir/X11/Intrinsic.h"; then
9945 ac_x_includes=$ac_dir
9950 rm -f conftest.err conftest.$ac_ext
9951 fi # $ac_x_includes = no
9953 if test "$ac_x_libraries" = no; then
9954 # Check for the libraries.
9955 # See if we find them without any special options.
9956 # Don't add to $LIBS permanently.
9959 cat >conftest.$ac_ext <<_ACEOF
9960 #line 9960 "configure"
9961 #include "confdefs.h"
9962 #include <X11/Intrinsic.h>
9971 rm -f conftest.$ac_objext conftest$ac_exeext
9972 if { (eval echo "$as_me:9972: \"$ac_link\"") >&5
9973 (eval $ac_link) 2>&5
9975 echo "$as_me:9975: \$? = $ac_status" >&5
9976 (exit $ac_status); } &&
9977 { ac_try='test -s conftest$ac_exeext'
9978 { (eval echo "$as_me:9978: \"$ac_try\"") >&5
9981 echo "$as_me:9981: \$? = $ac_status" >&5
9982 (exit $ac_status); }; }; then
9984 # We can link X programs with no special library path.
9987 echo "$as_me: failed program was:" >&5
9988 cat conftest.$ac_ext >&5
9990 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9992 # Don't even attempt the hair of trying to link an X program!
9993 for ac_extension in a so sl dylib dll; do
9994 if test -r $ac_dir/libXt.$ac_extension; then
9995 ac_x_libraries=$ac_dir
10001 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10002 fi # $ac_x_libraries = no
10004 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
10005 # Didn't find X anywhere. Cache the known absence of X.
10006 ac_cv_have_x="have_x=no"
10008 # Record where we found X for the cache.
10009 ac_cv_have_x="have_x=yes \
10010 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10015 eval "$ac_cv_have_x"
10018 if test "$have_x" != yes; then
10019 echo "$as_me:10019: result: $have_x" >&5
10020 echo "${ECHO_T}$have_x" >&6
10023 # If each of the values was on the command line, it overrides each guess.
10024 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10025 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10026 # Update the cache value to reflect the command line values.
10027 ac_cv_have_x="have_x=yes \
10028 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
10029 echo "$as_me:10029: result: libraries $x_libraries, headers $x_includes" >&5
10030 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
10033 if test "$no_x" = yes; then
10034 # Not all programs may use this symbol, but it does not hurt to define it.
10036 cat >>confdefs.h <<\EOF
10037 #define X_DISPLAY_MISSING 1
10040 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
10042 if test -n "$x_includes"; then
10043 X_CFLAGS="$X_CFLAGS -I$x_includes"
10046 # It would also be nice to do this for all -L options, not just this one.
10047 if test -n "$x_libraries"; then
10048 X_LIBS="$X_LIBS -L$x_libraries"
10049 # For Solaris; some versions of Sun CC require a space after -R and
10050 # others require no space. Words are not sufficient . . . .
10051 case `(uname -sr) 2>/dev/null` in
10053 echo "$as_me:10053: checking whether -R must be followed by a space" >&5
10054 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
10055 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
10056 cat >conftest.$ac_ext <<_ACEOF
10057 #line 10057 "configure"
10058 #include "confdefs.h"
10068 rm -f conftest.$ac_objext conftest$ac_exeext
10069 if { (eval echo "$as_me:10069: \"$ac_link\"") >&5
10070 (eval $ac_link) 2>&5
10072 echo "$as_me:10072: \$? = $ac_status" >&5
10073 (exit $ac_status); } &&
10074 { ac_try='test -s conftest$ac_exeext'
10075 { (eval echo "$as_me:10075: \"$ac_try\"") >&5
10076 (eval $ac_try) 2>&5
10078 echo "$as_me:10078: \$? = $ac_status" >&5
10079 (exit $ac_status); }; }; then
10082 echo "$as_me: failed program was:" >&5
10083 cat conftest.$ac_ext >&5
10086 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10087 if test $ac_R_nospace = yes; then
10088 echo "$as_me:10088: result: no" >&5
10089 echo "${ECHO_T}no" >&6
10090 X_LIBS="$X_LIBS -R$x_libraries"
10092 LIBS="$ac_xsave_LIBS -R $x_libraries"
10093 cat >conftest.$ac_ext <<_ACEOF
10094 #line 10094 "configure"
10095 #include "confdefs.h"
10105 rm -f conftest.$ac_objext conftest$ac_exeext
10106 if { (eval echo "$as_me:10106: \"$ac_link\"") >&5
10107 (eval $ac_link) 2>&5
10109 echo "$as_me:10109: \$? = $ac_status" >&5
10110 (exit $ac_status); } &&
10111 { ac_try='test -s conftest$ac_exeext'
10112 { (eval echo "$as_me:10112: \"$ac_try\"") >&5
10113 (eval $ac_try) 2>&5
10115 echo "$as_me:10115: \$? = $ac_status" >&5
10116 (exit $ac_status); }; }; then
10119 echo "$as_me: failed program was:" >&5
10120 cat conftest.$ac_ext >&5
10123 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10124 if test $ac_R_space = yes; then
10125 echo "$as_me:10125: result: yes" >&5
10126 echo "${ECHO_T}yes" >&6
10127 X_LIBS="$X_LIBS -R $x_libraries"
10129 echo "$as_me:10129: result: neither works" >&5
10130 echo "${ECHO_T}neither works" >&6
10133 LIBS=$ac_xsave_LIBS
10137 # Check for system-dependent libraries X programs must link with.
10138 # Do this before checking for the system-independent R6 libraries
10139 # (-lICE), since we may need -lsocket or whatever for X linking.
10141 if test "$ISC" = yes; then
10142 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10144 # Martyn Johnson says this is needed for Ultrix, if the X
10145 # libraries were built with DECnet support. And Karl Berry says
10146 # the Alpha needs dnet_stub (dnet does not exist).
10147 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
10148 cat >conftest.$ac_ext <<_ACEOF
10149 #line 10149 "configure"
10150 #include "confdefs.h"
10152 /* Override any gcc2 internal prototype to avoid an error. */
10156 /* We use char because int might match the return type of a gcc2
10157 builtin and then its argument prototype would still apply. */
10158 char XOpenDisplay ();
10167 rm -f conftest.$ac_objext conftest$ac_exeext
10168 if { (eval echo "$as_me:10168: \"$ac_link\"") >&5
10169 (eval $ac_link) 2>&5
10171 echo "$as_me:10171: \$? = $ac_status" >&5
10172 (exit $ac_status); } &&
10173 { ac_try='test -s conftest$ac_exeext'
10174 { (eval echo "$as_me:10174: \"$ac_try\"") >&5
10175 (eval $ac_try) 2>&5
10177 echo "$as_me:10177: \$? = $ac_status" >&5
10178 (exit $ac_status); }; }; then
10181 echo "$as_me: failed program was:" >&5
10182 cat conftest.$ac_ext >&5
10183 echo "$as_me:10183: checking for dnet_ntoa in -ldnet" >&5
10184 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
10185 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10186 echo $ECHO_N "(cached) $ECHO_C" >&6
10188 ac_check_lib_save_LIBS=$LIBS
10189 LIBS="-ldnet $LIBS"
10190 cat >conftest.$ac_ext <<_ACEOF
10191 #line 10191 "configure"
10192 #include "confdefs.h"
10194 /* Override any gcc2 internal prototype to avoid an error. */
10198 /* We use char because int might match the return type of a gcc2
10199 builtin and then its argument prototype would still apply. */
10209 rm -f conftest.$ac_objext conftest$ac_exeext
10210 if { (eval echo "$as_me:10210: \"$ac_link\"") >&5
10211 (eval $ac_link) 2>&5
10213 echo "$as_me:10213: \$? = $ac_status" >&5
10214 (exit $ac_status); } &&
10215 { ac_try='test -s conftest$ac_exeext'
10216 { (eval echo "$as_me:10216: \"$ac_try\"") >&5
10217 (eval $ac_try) 2>&5
10219 echo "$as_me:10219: \$? = $ac_status" >&5
10220 (exit $ac_status); }; }; then
10221 ac_cv_lib_dnet_dnet_ntoa=yes
10223 echo "$as_me: failed program was:" >&5
10224 cat conftest.$ac_ext >&5
10225 ac_cv_lib_dnet_dnet_ntoa=no
10227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10228 LIBS=$ac_check_lib_save_LIBS
10230 echo "$as_me:10230: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10231 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
10232 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10233 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10236 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10237 echo "$as_me:10237: checking for dnet_ntoa in -ldnet_stub" >&5
10238 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
10239 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
10240 echo $ECHO_N "(cached) $ECHO_C" >&6
10242 ac_check_lib_save_LIBS=$LIBS
10243 LIBS="-ldnet_stub $LIBS"
10244 cat >conftest.$ac_ext <<_ACEOF
10245 #line 10245 "configure"
10246 #include "confdefs.h"
10248 /* Override any gcc2 internal prototype to avoid an error. */
10252 /* We use char because int might match the return type of a gcc2
10253 builtin and then its argument prototype would still apply. */
10263 rm -f conftest.$ac_objext conftest$ac_exeext
10264 if { (eval echo "$as_me:10264: \"$ac_link\"") >&5
10265 (eval $ac_link) 2>&5
10267 echo "$as_me:10267: \$? = $ac_status" >&5
10268 (exit $ac_status); } &&
10269 { ac_try='test -s conftest$ac_exeext'
10270 { (eval echo "$as_me:10270: \"$ac_try\"") >&5
10271 (eval $ac_try) 2>&5
10273 echo "$as_me:10273: \$? = $ac_status" >&5
10274 (exit $ac_status); }; }; then
10275 ac_cv_lib_dnet_stub_dnet_ntoa=yes
10277 echo "$as_me: failed program was:" >&5
10278 cat conftest.$ac_ext >&5
10279 ac_cv_lib_dnet_stub_dnet_ntoa=no
10281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10282 LIBS=$ac_check_lib_save_LIBS
10284 echo "$as_me:10284: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
10285 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
10286 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
10287 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10292 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10293 LIBS="$ac_xsave_LIBS"
10295 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10296 # to get the SysV transport functions.
10297 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
10299 # The nsl library prevents programs from opening the X display
10300 # on Irix 5.2, according to T.E. Dickey.
10301 # The functions gethostbyname, getservbyname, and inet_addr are
10302 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
10303 echo "$as_me:10303: checking for gethostbyname" >&5
10304 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
10305 if test "${ac_cv_func_gethostbyname+set}" = set; then
10306 echo $ECHO_N "(cached) $ECHO_C" >&6
10308 cat >conftest.$ac_ext <<_ACEOF
10309 #line 10309 "configure"
10310 #include "confdefs.h"
10311 /* System header to define __stub macros and hopefully few prototypes,
10312 which can conflict with char gethostbyname (); below. */
10313 #include <assert.h>
10314 /* Override any gcc2 internal prototype to avoid an error. */
10318 /* We use char because int might match the return type of a gcc2
10319 builtin and then its argument prototype would still apply. */
10320 char gethostbyname ();
10326 /* The GNU C library defines this for functions which it implements
10327 to always fail with ENOSYS. Some functions are actually named
10328 something starting with __ and the normal name is an alias. */
10329 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10332 f = gethostbyname; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
10339 rm -f conftest.$ac_objext conftest$ac_exeext
10340 if { (eval echo "$as_me:10340: \"$ac_link\"") >&5
10341 (eval $ac_link) 2>&5
10343 echo "$as_me:10343: \$? = $ac_status" >&5
10344 (exit $ac_status); } &&
10345 { ac_try='test -s conftest$ac_exeext'
10346 { (eval echo "$as_me:10346: \"$ac_try\"") >&5
10347 (eval $ac_try) 2>&5
10349 echo "$as_me:10349: \$? = $ac_status" >&5
10350 (exit $ac_status); }; }; then
10351 ac_cv_func_gethostbyname=yes
10353 echo "$as_me: failed program was:" >&5
10354 cat conftest.$ac_ext >&5
10355 ac_cv_func_gethostbyname=no
10357 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10359 echo "$as_me:10359: result: $ac_cv_func_gethostbyname" >&5
10360 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
10362 if test $ac_cv_func_gethostbyname = no; then
10363 echo "$as_me:10363: checking for gethostbyname in -lnsl" >&5
10364 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
10365 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
10366 echo $ECHO_N "(cached) $ECHO_C" >&6
10368 ac_check_lib_save_LIBS=$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. */
10380 char gethostbyname ();
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_nsl_gethostbyname=yes
10403 echo "$as_me: failed program was:" >&5
10404 cat conftest.$ac_ext >&5
10405 ac_cv_lib_nsl_gethostbyname=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_nsl_gethostbyname" >&5
10411 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
10412 if test $ac_cv_lib_nsl_gethostbyname = yes; then
10413 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10416 if test $ac_cv_lib_nsl_gethostbyname = no; then
10417 echo "$as_me:10417: checking for gethostbyname in -lbsd" >&5
10418 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
10419 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
10420 echo $ECHO_N "(cached) $ECHO_C" >&6
10422 ac_check_lib_save_LIBS=$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. */
10434 char gethostbyname ();
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_bsd_gethostbyname=yes
10457 echo "$as_me: failed program was:" >&5
10458 cat conftest.$ac_ext >&5
10459 ac_cv_lib_bsd_gethostbyname=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_bsd_gethostbyname" >&5
10465 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
10466 if test $ac_cv_lib_bsd_gethostbyname = yes; then
10467 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10473 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10474 # socket/setsockopt and other routines are undefined under SCO ODT
10475 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10476 # on later versions), says Simon Leinen: it contains gethostby*
10477 # variants that don't use the nameserver (or something). -lsocket
10478 # must be given before -lnsl if both are needed. We assume that
10479 # if connect needs -lnsl, so does gethostbyname.
10480 echo "$as_me:10480: checking for connect" >&5
10481 echo $ECHO_N "checking for connect... $ECHO_C" >&6
10482 if test "${ac_cv_func_connect+set}" = set; then
10483 echo $ECHO_N "(cached) $ECHO_C" >&6
10485 cat >conftest.$ac_ext <<_ACEOF
10486 #line 10486 "configure"
10487 #include "confdefs.h"
10488 /* System header to define __stub macros and hopefully few prototypes,
10489 which can conflict with char connect (); below. */
10490 #include <assert.h>
10491 /* Override any gcc2 internal prototype to avoid an error. */
10495 /* We use char because int might match the return type of a gcc2
10496 builtin and then its argument prototype would still apply. */
10503 /* The GNU C library defines this for functions which it implements
10504 to always fail with ENOSYS. Some functions are actually named
10505 something starting with __ and the normal name is an alias. */
10506 #if defined (__stub_connect) || defined (__stub___connect)
10509 f = connect; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
10516 rm -f conftest.$ac_objext conftest$ac_exeext
10517 if { (eval echo "$as_me:10517: \"$ac_link\"") >&5
10518 (eval $ac_link) 2>&5
10520 echo "$as_me:10520: \$? = $ac_status" >&5
10521 (exit $ac_status); } &&
10522 { ac_try='test -s conftest$ac_exeext'
10523 { (eval echo "$as_me:10523: \"$ac_try\"") >&5
10524 (eval $ac_try) 2>&5
10526 echo "$as_me:10526: \$? = $ac_status" >&5
10527 (exit $ac_status); }; }; then
10528 ac_cv_func_connect=yes
10530 echo "$as_me: failed program was:" >&5
10531 cat conftest.$ac_ext >&5
10532 ac_cv_func_connect=no
10534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10536 echo "$as_me:10536: result: $ac_cv_func_connect" >&5
10537 echo "${ECHO_T}$ac_cv_func_connect" >&6
10539 if test $ac_cv_func_connect = no; then
10540 echo "$as_me:10540: checking for connect in -lsocket" >&5
10541 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10542 if test "${ac_cv_lib_socket_connect+set}" = set; then
10543 echo $ECHO_N "(cached) $ECHO_C" >&6
10545 ac_check_lib_save_LIBS=$LIBS
10546 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10547 cat >conftest.$ac_ext <<_ACEOF
10548 #line 10548 "configure"
10549 #include "confdefs.h"
10551 /* Override any gcc2 internal prototype to avoid an error. */
10555 /* We use char because int might match the return type of a gcc2
10556 builtin and then its argument prototype would still apply. */
10566 rm -f conftest.$ac_objext conftest$ac_exeext
10567 if { (eval echo "$as_me:10567: \"$ac_link\"") >&5
10568 (eval $ac_link) 2>&5
10570 echo "$as_me:10570: \$? = $ac_status" >&5
10571 (exit $ac_status); } &&
10572 { ac_try='test -s conftest$ac_exeext'
10573 { (eval echo "$as_me:10573: \"$ac_try\"") >&5
10574 (eval $ac_try) 2>&5
10576 echo "$as_me:10576: \$? = $ac_status" >&5
10577 (exit $ac_status); }; }; then
10578 ac_cv_lib_socket_connect=yes
10580 echo "$as_me: failed program was:" >&5
10581 cat conftest.$ac_ext >&5
10582 ac_cv_lib_socket_connect=no
10584 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10585 LIBS=$ac_check_lib_save_LIBS
10587 echo "$as_me:10587: result: $ac_cv_lib_socket_connect" >&5
10588 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10589 if test $ac_cv_lib_socket_connect = yes; then
10590 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10595 # Guillermo Gomez says -lposix is necessary on A/UX.
10596 echo "$as_me:10596: checking for remove" >&5
10597 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10598 if test "${ac_cv_func_remove+set}" = set; then
10599 echo $ECHO_N "(cached) $ECHO_C" >&6
10601 cat >conftest.$ac_ext <<_ACEOF
10602 #line 10602 "configure"
10603 #include "confdefs.h"
10604 /* System header to define __stub macros and hopefully few prototypes,
10605 which can conflict with char remove (); below. */
10606 #include <assert.h>
10607 /* Override any gcc2 internal prototype to avoid an error. */
10611 /* We use char because int might match the return type of a gcc2
10612 builtin and then its argument prototype would still apply. */
10619 /* The GNU C library defines this for functions which it implements
10620 to always fail with ENOSYS. Some functions are actually named
10621 something starting with __ and the normal name is an alias. */
10622 #if defined (__stub_remove) || defined (__stub___remove)
10625 f = remove; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
10632 rm -f conftest.$ac_objext conftest$ac_exeext
10633 if { (eval echo "$as_me:10633: \"$ac_link\"") >&5
10634 (eval $ac_link) 2>&5
10636 echo "$as_me:10636: \$? = $ac_status" >&5
10637 (exit $ac_status); } &&
10638 { ac_try='test -s conftest$ac_exeext'
10639 { (eval echo "$as_me:10639: \"$ac_try\"") >&5
10640 (eval $ac_try) 2>&5
10642 echo "$as_me:10642: \$? = $ac_status" >&5
10643 (exit $ac_status); }; }; then
10644 ac_cv_func_remove=yes
10646 echo "$as_me: failed program was:" >&5
10647 cat conftest.$ac_ext >&5
10648 ac_cv_func_remove=no
10650 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10652 echo "$as_me:10652: result: $ac_cv_func_remove" >&5
10653 echo "${ECHO_T}$ac_cv_func_remove" >&6
10655 if test $ac_cv_func_remove = no; then
10656 echo "$as_me:10656: checking for remove in -lposix" >&5
10657 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10658 if test "${ac_cv_lib_posix_remove+set}" = set; then
10659 echo $ECHO_N "(cached) $ECHO_C" >&6
10661 ac_check_lib_save_LIBS=$LIBS
10662 LIBS="-lposix $LIBS"
10663 cat >conftest.$ac_ext <<_ACEOF
10664 #line 10664 "configure"
10665 #include "confdefs.h"
10667 /* Override any gcc2 internal prototype to avoid an error. */
10671 /* We use char because int might match the return type of a gcc2
10672 builtin and then its argument prototype would still apply. */
10682 rm -f conftest.$ac_objext conftest$ac_exeext
10683 if { (eval echo "$as_me:10683: \"$ac_link\"") >&5
10684 (eval $ac_link) 2>&5
10686 echo "$as_me:10686: \$? = $ac_status" >&5
10687 (exit $ac_status); } &&
10688 { ac_try='test -s conftest$ac_exeext'
10689 { (eval echo "$as_me:10689: \"$ac_try\"") >&5
10690 (eval $ac_try) 2>&5
10692 echo "$as_me:10692: \$? = $ac_status" >&5
10693 (exit $ac_status); }; }; then
10694 ac_cv_lib_posix_remove=yes
10696 echo "$as_me: failed program was:" >&5
10697 cat conftest.$ac_ext >&5
10698 ac_cv_lib_posix_remove=no
10700 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10701 LIBS=$ac_check_lib_save_LIBS
10703 echo "$as_me:10703: result: $ac_cv_lib_posix_remove" >&5
10704 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10705 if test $ac_cv_lib_posix_remove = yes; then
10706 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10711 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10712 echo "$as_me:10712: checking for shmat" >&5
10713 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10714 if test "${ac_cv_func_shmat+set}" = set; then
10715 echo $ECHO_N "(cached) $ECHO_C" >&6
10717 cat >conftest.$ac_ext <<_ACEOF
10718 #line 10718 "configure"
10719 #include "confdefs.h"
10720 /* System header to define __stub macros and hopefully few prototypes,
10721 which can conflict with char shmat (); below. */
10722 #include <assert.h>
10723 /* Override any gcc2 internal prototype to avoid an error. */
10727 /* We use char because int might match the return type of a gcc2
10728 builtin and then its argument prototype would still apply. */
10735 /* The GNU C library defines this for functions which it implements
10736 to always fail with ENOSYS. Some functions are actually named
10737 something starting with __ and the normal name is an alias. */
10738 #if defined (__stub_shmat) || defined (__stub___shmat)
10741 f = shmat; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
10748 rm -f conftest.$ac_objext conftest$ac_exeext
10749 if { (eval echo "$as_me:10749: \"$ac_link\"") >&5
10750 (eval $ac_link) 2>&5
10752 echo "$as_me:10752: \$? = $ac_status" >&5
10753 (exit $ac_status); } &&
10754 { ac_try='test -s conftest$ac_exeext'
10755 { (eval echo "$as_me:10755: \"$ac_try\"") >&5
10756 (eval $ac_try) 2>&5
10758 echo "$as_me:10758: \$? = $ac_status" >&5
10759 (exit $ac_status); }; }; then
10760 ac_cv_func_shmat=yes
10762 echo "$as_me: failed program was:" >&5
10763 cat conftest.$ac_ext >&5
10764 ac_cv_func_shmat=no
10766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10768 echo "$as_me:10768: result: $ac_cv_func_shmat" >&5
10769 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10771 if test $ac_cv_func_shmat = no; then
10772 echo "$as_me:10772: checking for shmat in -lipc" >&5
10773 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10774 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10775 echo $ECHO_N "(cached) $ECHO_C" >&6
10777 ac_check_lib_save_LIBS=$LIBS
10779 cat >conftest.$ac_ext <<_ACEOF
10780 #line 10780 "configure"
10781 #include "confdefs.h"
10783 /* Override any gcc2 internal prototype to avoid an error. */
10787 /* We use char because int might match the return type of a gcc2
10788 builtin and then its argument prototype would still apply. */
10798 rm -f conftest.$ac_objext conftest$ac_exeext
10799 if { (eval echo "$as_me:10799: \"$ac_link\"") >&5
10800 (eval $ac_link) 2>&5
10802 echo "$as_me:10802: \$? = $ac_status" >&5
10803 (exit $ac_status); } &&
10804 { ac_try='test -s conftest$ac_exeext'
10805 { (eval echo "$as_me:10805: \"$ac_try\"") >&5
10806 (eval $ac_try) 2>&5
10808 echo "$as_me:10808: \$? = $ac_status" >&5
10809 (exit $ac_status); }; }; then
10810 ac_cv_lib_ipc_shmat=yes
10812 echo "$as_me: failed program was:" >&5
10813 cat conftest.$ac_ext >&5
10814 ac_cv_lib_ipc_shmat=no
10816 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10817 LIBS=$ac_check_lib_save_LIBS
10819 echo "$as_me:10819: result: $ac_cv_lib_ipc_shmat" >&5
10820 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10821 if test $ac_cv_lib_ipc_shmat = yes; then
10822 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10828 # Check for libraries that X11R6 Xt/Xaw programs need.
10829 ac_save_LDFLAGS=$LDFLAGS
10830 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10831 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10832 # check for ICE first), but we must link in the order -lSM -lICE or
10833 # we get undefined symbols. So assume we have SM if we have ICE.
10834 # These have to be linked with before -lX11, unlike the other
10835 # libraries we check for below, so use a different variable.
10836 # John Interrante, Karl Berry
10837 echo "$as_me:10837: checking for IceConnectionNumber in -lICE" >&5
10838 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10839 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10840 echo $ECHO_N "(cached) $ECHO_C" >&6
10842 ac_check_lib_save_LIBS=$LIBS
10843 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10844 cat >conftest.$ac_ext <<_ACEOF
10845 #line 10845 "configure"
10846 #include "confdefs.h"
10848 /* Override any gcc2 internal prototype to avoid an error. */
10852 /* We use char because int might match the return type of a gcc2
10853 builtin and then its argument prototype would still apply. */
10854 char IceConnectionNumber ();
10858 IceConnectionNumber ();
10863 rm -f conftest.$ac_objext conftest$ac_exeext
10864 if { (eval echo "$as_me:10864: \"$ac_link\"") >&5
10865 (eval $ac_link) 2>&5
10867 echo "$as_me:10867: \$? = $ac_status" >&5
10868 (exit $ac_status); } &&
10869 { ac_try='test -s conftest$ac_exeext'
10870 { (eval echo "$as_me:10870: \"$ac_try\"") >&5
10871 (eval $ac_try) 2>&5
10873 echo "$as_me:10873: \$? = $ac_status" >&5
10874 (exit $ac_status); }; }; then
10875 ac_cv_lib_ICE_IceConnectionNumber=yes
10877 echo "$as_me: failed program was:" >&5
10878 cat conftest.$ac_ext >&5
10879 ac_cv_lib_ICE_IceConnectionNumber=no
10881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10882 LIBS=$ac_check_lib_save_LIBS
10884 echo "$as_me:10884: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10885 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10886 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10887 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10890 LDFLAGS=$ac_save_LDFLAGS
10894 cf_x_athena=${cf_x_athena:-Xaw}
10896 echo "$as_me:10896: checking if you want to link with Xaw 3d library" >&5
10897 echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6
10900 # Check whether --with-Xaw3d or --without-Xaw3d was given.
10901 if test "${with_Xaw3d+set}" = set; then
10902 withval="$with_Xaw3d"
10905 if test "$withval" = yes ; then
10907 echo "$as_me:10907: result: yes" >&5
10908 echo "${ECHO_T}yes" >&6
10910 echo "$as_me:10910: result: no" >&5
10911 echo "${ECHO_T}no" >&6
10914 echo "$as_me:10914: checking if you want to link with Xaw 3d xft library" >&5
10915 echo $ECHO_N "checking if you want to link with Xaw 3d xft library... $ECHO_C" >&6
10918 # Check whether --with-Xaw3dxft or --without-Xaw3dxft was given.
10919 if test "${with_Xaw3dxft+set}" = set; then
10920 withval="$with_Xaw3dxft"
10923 if test "$withval" = yes ; then
10924 cf_x_athena=Xaw3dxft
10925 echo "$as_me:10925: result: yes" >&5
10926 echo "${ECHO_T}yes" >&6
10928 echo "$as_me:10928: result: no" >&5
10929 echo "${ECHO_T}no" >&6
10932 echo "$as_me:10932: checking if you want to link with neXT Athena library" >&5
10933 echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6
10936 # Check whether --with-neXtaw or --without-neXtaw was given.
10937 if test "${with_neXtaw+set}" = set; then
10938 withval="$with_neXtaw"
10941 if test "$withval" = yes ; then
10943 echo "$as_me:10943: result: yes" >&5
10944 echo "${ECHO_T}yes" >&6
10946 echo "$as_me:10946: result: no" >&5
10947 echo "${ECHO_T}no" >&6
10950 echo "$as_me:10950: checking if you want to link with Athena-Plus library" >&5
10951 echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6
10954 # Check whether --with-XawPlus or --without-XawPlus was given.
10955 if test "${with_XawPlus+set}" = set; then
10956 withval="$with_XawPlus"
10959 if test "$withval" = yes ; then
10960 cf_x_athena=XawPlus
10961 echo "$as_me:10961: result: yes" >&5
10962 echo "${ECHO_T}yes" >&6
10964 echo "$as_me:10964: result: no" >&5
10965 echo "${ECHO_T}no" >&6
10970 if test "$PKG_CONFIG" != none ; then
10972 test "$cf_x_athena" = Xaw && cf_athena_list="xaw8 xaw7 xaw6"
10973 for cf_athena_pkg in \
10976 ${cf_x_athena}-devel \
10977 lib${cf_x_athena} \
10978 lib${cf_x_athena}-devel
10981 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists $cf_athena_pkg; then
10982 test -n "$verbose" && echo " found package $cf_athena_pkg" 1>&6
10984 echo "${as_me:-configure}:10984: testing found package $cf_athena_pkg ..." 1>&5
10986 cf_pkgconfig_incs="`$PKG_CONFIG --cflags $cf_athena_pkg 2>/dev/null`"
10987 cf_pkgconfig_libs="`$PKG_CONFIG --libs $cf_athena_pkg 2>/dev/null`"
10988 test -n "$verbose" && echo " package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs" 1>&6
10990 echo "${as_me:-configure}:10990: testing package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10992 test -n "$verbose" && echo " package $cf_athena_pkg LIBS: $cf_pkgconfig_libs" 1>&6
10994 echo "${as_me:-configure}:10994: testing package $cf_athena_pkg LIBS: $cf_pkgconfig_libs ..." 1>&5
10999 cf_new_extra_cppflags=
11001 for cf_add_cflags in $cf_pkgconfig_incs
11003 case $cf_fix_cppflags in
11005 case $cf_add_cflags in
11006 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11007 case $cf_add_cflags in
11009 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11011 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11012 && test -z "${cf_tst_cflags}" \
11013 && cf_fix_cppflags=yes
11015 if test $cf_fix_cppflags = yes ; then
11017 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11018 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11021 elif test "${cf_tst_cflags}" = "\"'" ; then
11023 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11024 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11030 case "$CPPFLAGS" in
11034 case $cf_add_cflags in
11036 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11038 CPPFLAGS=`echo "$CPPFLAGS" | \
11039 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11040 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11045 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11046 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11053 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11054 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11061 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11062 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11064 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11066 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11067 && test -z "${cf_tst_cflags}" \
11068 && cf_fix_cppflags=no
11073 if test -n "$cf_new_cflags" ; then
11075 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11076 CFLAGS="${CFLAGS}$cf_new_cflags"
11080 if test -n "$cf_new_cppflags" ; then
11082 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11083 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11087 if test -n "$cf_new_extra_cppflags" ; then
11089 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11090 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11094 cf_add_libs="$cf_pkgconfig_libs"
11095 # Filter out duplicates - this happens with badly-designed ".pc" files...
11096 for cf_add_1lib in $LIBS
11098 for cf_add_2lib in $cf_add_libs
11100 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11106 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11108 LIBS="$cf_add_libs"
11110 cf_x_athena_lib="$cf_pkgconfig_libs"
11112 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
11114 cat >>confdefs.h <<EOF
11115 #define $cf_x_athena_LIBS 1
11118 for cf_trim_lib in Xmu Xt X11
11121 (*-l$cf_trim_lib\ *-l$cf_trim_lib*)
11122 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
11123 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
11125 echo "${as_me:-configure}:11125: testing ..trimmed $LIBS ..." 1>&5
11131 echo "$as_me:11131: checking for usable $cf_x_athena/Xmu package" >&5
11132 echo $ECHO_N "checking for usable $cf_x_athena/Xmu package... $ECHO_C" >&6
11133 if test "${cf_cv_xaw_compat+set}" = set; then
11134 echo $ECHO_N "(cached) $ECHO_C" >&6
11137 cat >conftest.$ac_ext <<_ACEOF
11138 #line 11138 "configure"
11139 #include "confdefs.h"
11141 #include <X11/Xmu/CharSet.h>
11147 int check = XmuCompareISOLatin1("big", "small")
11153 rm -f conftest.$ac_objext conftest$ac_exeext
11154 if { (eval echo "$as_me:11154: \"$ac_link\"") >&5
11155 (eval $ac_link) 2>&5
11157 echo "$as_me:11157: \$? = $ac_status" >&5
11158 (exit $ac_status); } &&
11159 { ac_try='test -s conftest$ac_exeext'
11160 { (eval echo "$as_me:11160: \"$ac_try\"") >&5
11161 (eval $ac_try) 2>&5
11163 echo "$as_me:11163: \$? = $ac_status" >&5
11164 (exit $ac_status); }; }; then
11165 cf_cv_xaw_compat=yes
11167 echo "$as_me: failed program was:" >&5
11168 cat conftest.$ac_ext >&5
11169 cf_cv_xaw_compat=no
11171 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11173 echo "$as_me:11173: result: $cf_cv_xaw_compat" >&5
11174 echo "${ECHO_T}$cf_cv_xaw_compat" >&6
11176 if test "$cf_cv_xaw_compat" = no
11178 # workaround for broken ".pc" files...
11179 case "$cf_x_athena_lib" in
11183 test -n "$verbose" && echo " work around broken package" 1>&6
11185 echo "${as_me:-configure}:11185: testing work around broken package ..." 1>&5
11187 cf_save_xmu="$LIBS"
11188 cf_first_lib=`echo "$cf_save_xmu" | sed -e 's/^ *//' -e 's/ .*//'`
11190 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xmu; then
11191 test -n "$verbose" && echo " found package xmu" 1>&6
11193 echo "${as_me:-configure}:11193: testing found package xmu ..." 1>&5
11195 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xmu 2>/dev/null`"
11196 cf_pkgconfig_libs="`$PKG_CONFIG --libs xmu 2>/dev/null`"
11197 test -n "$verbose" && echo " package xmu CFLAGS: $cf_pkgconfig_incs" 1>&6
11199 echo "${as_me:-configure}:11199: testing package xmu CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11201 test -n "$verbose" && echo " package xmu LIBS: $cf_pkgconfig_libs" 1>&6
11203 echo "${as_me:-configure}:11203: testing package xmu LIBS: $cf_pkgconfig_libs ..." 1>&5
11208 cf_new_extra_cppflags=
11210 for cf_add_cflags in $cf_pkgconfig_incs
11212 case $cf_fix_cppflags in
11214 case $cf_add_cflags in
11215 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11216 case $cf_add_cflags in
11218 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11220 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11221 && test -z "${cf_tst_cflags}" \
11222 && cf_fix_cppflags=yes
11224 if test $cf_fix_cppflags = yes ; then
11226 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11227 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11230 elif test "${cf_tst_cflags}" = "\"'" ; then
11232 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11233 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11239 case "$CPPFLAGS" in
11243 case $cf_add_cflags in
11245 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11247 CPPFLAGS=`echo "$CPPFLAGS" | \
11248 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11249 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11254 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11255 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11262 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11263 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11270 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11271 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11273 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11275 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11276 && test -z "${cf_tst_cflags}" \
11277 && cf_fix_cppflags=no
11282 if test -n "$cf_new_cflags" ; then
11284 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11285 CFLAGS="${CFLAGS}$cf_new_cflags"
11289 if test -n "$cf_new_cppflags" ; then
11291 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11292 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11296 if test -n "$cf_new_extra_cppflags" ; then
11298 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11299 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11303 cf_add_libs="$cf_pkgconfig_libs"
11304 # Filter out duplicates - this happens with badly-designed ".pc" files...
11305 for cf_add_1lib in $LIBS
11307 for cf_add_2lib in $cf_add_libs
11309 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11315 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11317 LIBS="$cf_add_libs"
11319 LIBS="$cf_save_xmu"
11321 test -n "$verbose" && echo " ...before $LIBS" 1>&6
11323 echo "${as_me:-configure}:11323: testing ...before $LIBS ..." 1>&5
11325 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib $cf_pkgconfig_libs %" -e 's% % %g'`
11326 test -n "$verbose" && echo " ...after $LIBS" 1>&6
11328 echo "${as_me:-configure}:11328: testing ...after $LIBS ..." 1>&5
11334 test -n "$verbose" && echo " ...before $LIBS" 1>&6
11336 echo "${as_me:-configure}:11336: testing ...before $LIBS ..." 1>&5
11338 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib -lXmu %" -e 's% % %g'`
11339 test -n "$verbose" && echo " ...after $LIBS" 1>&6
11341 echo "${as_me:-configure}:11341: testing ...after $LIBS ..." 1>&5
11345 for cf_trim_lib in Xmu Xt X11
11348 (*-l$cf_trim_lib\ *-l$cf_trim_lib*)
11349 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
11350 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
11352 echo "${as_me:-configure}:11352: testing ..trimmed $LIBS ..." 1>&5
11372 if test -z "$cf_x_athena_lib" ; then
11374 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists Xext; then
11375 test -n "$verbose" && echo " found package Xext" 1>&6
11377 echo "${as_me:-configure}:11377: testing found package Xext ..." 1>&5
11379 cf_pkgconfig_incs="`$PKG_CONFIG --cflags Xext 2>/dev/null`"
11380 cf_pkgconfig_libs="`$PKG_CONFIG --libs Xext 2>/dev/null`"
11381 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6
11383 echo "${as_me:-configure}:11383: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11385 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6
11387 echo "${as_me:-configure}:11387: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5
11392 cf_new_extra_cppflags=
11394 for cf_add_cflags in $cf_pkgconfig_incs
11396 case $cf_fix_cppflags in
11398 case $cf_add_cflags in
11399 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11400 case $cf_add_cflags in
11402 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11404 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11405 && test -z "${cf_tst_cflags}" \
11406 && cf_fix_cppflags=yes
11408 if test $cf_fix_cppflags = yes ; then
11410 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11411 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11414 elif test "${cf_tst_cflags}" = "\"'" ; then
11416 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11417 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11423 case "$CPPFLAGS" in
11427 case $cf_add_cflags in
11429 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11431 CPPFLAGS=`echo "$CPPFLAGS" | \
11432 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11433 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11438 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11439 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11446 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11447 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11454 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11455 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11457 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11459 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11460 && test -z "${cf_tst_cflags}" \
11461 && cf_fix_cppflags=no
11466 if test -n "$cf_new_cflags" ; then
11468 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11469 CFLAGS="${CFLAGS}$cf_new_cflags"
11473 if test -n "$cf_new_cppflags" ; then
11475 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11476 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11480 if test -n "$cf_new_extra_cppflags" ; then
11482 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11483 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11487 cf_add_libs="$cf_pkgconfig_libs"
11488 # Filter out duplicates - this happens with badly-designed ".pc" files...
11489 for cf_add_1lib in $LIBS
11491 for cf_add_2lib in $cf_add_libs
11493 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11499 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11501 LIBS="$cf_add_libs"
11508 echo "$as_me:11508: checking for XextCreateExtension in -lXext" >&5
11509 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
11510 if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
11511 echo $ECHO_N "(cached) $ECHO_C" >&6
11513 ac_check_lib_save_LIBS=$LIBS
11514 LIBS="-lXext $LIBS"
11515 cat >conftest.$ac_ext <<_ACEOF
11516 #line 11516 "configure"
11517 #include "confdefs.h"
11519 /* Override any gcc2 internal prototype to avoid an error. */
11523 /* We use char because int might match the return type of a gcc2
11524 builtin and then its argument prototype would still apply. */
11525 char XextCreateExtension ();
11529 XextCreateExtension ();
11534 rm -f conftest.$ac_objext conftest$ac_exeext
11535 if { (eval echo "$as_me:11535: \"$ac_link\"") >&5
11536 (eval $ac_link) 2>&5
11538 echo "$as_me:11538: \$? = $ac_status" >&5
11539 (exit $ac_status); } &&
11540 { ac_try='test -s conftest$ac_exeext'
11541 { (eval echo "$as_me:11541: \"$ac_try\"") >&5
11542 (eval $ac_try) 2>&5
11544 echo "$as_me:11544: \$? = $ac_status" >&5
11545 (exit $ac_status); }; }; then
11546 ac_cv_lib_Xext_XextCreateExtension=yes
11548 echo "$as_me: failed program was:" >&5
11549 cat conftest.$ac_ext >&5
11550 ac_cv_lib_Xext_XextCreateExtension=no
11552 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11553 LIBS=$ac_check_lib_save_LIBS
11555 echo "$as_me:11555: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
11556 echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
11557 if test $ac_cv_lib_Xext_XextCreateExtension = yes; then
11559 cf_add_libs="-lXext"
11560 # Filter out duplicates - this happens with badly-designed ".pc" files...
11561 for cf_add_1lib in $LIBS
11563 for cf_add_2lib in $cf_add_libs
11565 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11571 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11573 LIBS="$cf_add_libs"
11579 # OSX is schizoid about who owns /usr/X11 (old) versus /opt/X11 (new), and (and
11580 # in some cases has installed dummy files in the former, other cases replaced
11581 # it with a link to the new location). This complicates the configure script.
11582 # Check for that pitfall, and recover using pkg-config
11584 # If none of these are set, the configuration is almost certainly broken.
11585 if test -z "${X_CFLAGS}${X_PRE_LIBS}${X_LIBS}${X_EXTRA_LIBS}"
11588 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then
11589 test -n "$verbose" && echo " found package x11" 1>&6
11591 echo "${as_me:-configure}:11591: testing found package x11 ..." 1>&5
11593 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`"
11594 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`"
11595 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
11597 echo "${as_me:-configure}:11597: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11599 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
11601 echo "${as_me:-configure}:11601: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
11606 cf_new_extra_cppflags=
11608 for cf_add_cflags in $cf_pkgconfig_incs
11610 case $cf_fix_cppflags in
11612 case $cf_add_cflags in
11613 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11614 case $cf_add_cflags in
11616 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11618 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11619 && test -z "${cf_tst_cflags}" \
11620 && cf_fix_cppflags=yes
11622 if test $cf_fix_cppflags = yes ; then
11624 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11625 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11628 elif test "${cf_tst_cflags}" = "\"'" ; then
11630 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11631 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11637 case "$CPPFLAGS" in
11641 case $cf_add_cflags in
11643 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11645 CPPFLAGS=`echo "$CPPFLAGS" | \
11646 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11647 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11652 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11653 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11660 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11661 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11668 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11669 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11671 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11673 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11674 && test -z "${cf_tst_cflags}" \
11675 && cf_fix_cppflags=no
11680 if test -n "$cf_new_cflags" ; then
11682 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11683 CFLAGS="${CFLAGS}$cf_new_cflags"
11687 if test -n "$cf_new_cppflags" ; then
11689 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11690 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11694 if test -n "$cf_new_extra_cppflags" ; then
11696 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11697 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11701 cf_add_libs="$cf_pkgconfig_libs"
11702 # Filter out duplicates - this happens with badly-designed ".pc" files...
11703 for cf_add_1lib in $LIBS
11705 for cf_add_2lib in $cf_add_libs
11707 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11713 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11715 LIBS="$cf_add_libs"
11721 { echo "$as_me:11721: WARNING: unable to find X11 library" >&5
11722 echo "$as_me: WARNING: unable to find X11 library" >&2;}
11725 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then
11726 test -n "$verbose" && echo " found package ice" 1>&6
11728 echo "${as_me:-configure}:11728: testing found package ice ..." 1>&5
11730 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`"
11731 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`"
11732 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
11734 echo "${as_me:-configure}:11734: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11736 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
11738 echo "${as_me:-configure}:11738: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
11743 cf_new_extra_cppflags=
11745 for cf_add_cflags in $cf_pkgconfig_incs
11747 case $cf_fix_cppflags in
11749 case $cf_add_cflags in
11750 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11751 case $cf_add_cflags in
11753 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11755 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11756 && test -z "${cf_tst_cflags}" \
11757 && cf_fix_cppflags=yes
11759 if test $cf_fix_cppflags = yes ; then
11761 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11762 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11765 elif test "${cf_tst_cflags}" = "\"'" ; then
11767 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11768 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11774 case "$CPPFLAGS" in
11778 case $cf_add_cflags in
11780 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11782 CPPFLAGS=`echo "$CPPFLAGS" | \
11783 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11784 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11789 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11790 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11797 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11798 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11805 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11806 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11808 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11810 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11811 && test -z "${cf_tst_cflags}" \
11812 && cf_fix_cppflags=no
11817 if test -n "$cf_new_cflags" ; then
11819 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11820 CFLAGS="${CFLAGS}$cf_new_cflags"
11824 if test -n "$cf_new_cppflags" ; then
11826 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11827 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11831 if test -n "$cf_new_extra_cppflags" ; then
11833 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11834 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11838 cf_add_libs="$cf_pkgconfig_libs"
11839 # Filter out duplicates - this happens with badly-designed ".pc" files...
11840 for cf_add_1lib in $LIBS
11842 for cf_add_2lib in $cf_add_libs
11844 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11850 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11852 LIBS="$cf_add_libs"
11858 { echo "$as_me:11858: WARNING: unable to find ICE library" >&5
11859 echo "$as_me: WARNING: unable to find ICE library" >&2;}
11862 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then
11863 test -n "$verbose" && echo " found package sm" 1>&6
11865 echo "${as_me:-configure}:11865: testing found package sm ..." 1>&5
11867 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`"
11868 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`"
11869 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
11871 echo "${as_me:-configure}:11871: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11873 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
11875 echo "${as_me:-configure}:11875: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
11880 cf_new_extra_cppflags=
11882 for cf_add_cflags in $cf_pkgconfig_incs
11884 case $cf_fix_cppflags in
11886 case $cf_add_cflags in
11887 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11888 case $cf_add_cflags in
11890 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11892 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11893 && test -z "${cf_tst_cflags}" \
11894 && cf_fix_cppflags=yes
11896 if test $cf_fix_cppflags = yes ; then
11898 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11899 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11902 elif test "${cf_tst_cflags}" = "\"'" ; then
11904 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11905 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11911 case "$CPPFLAGS" in
11915 case $cf_add_cflags in
11917 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11919 CPPFLAGS=`echo "$CPPFLAGS" | \
11920 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11921 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11926 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
11927 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
11934 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
11935 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
11942 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
11943 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
11945 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11947 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11948 && test -z "${cf_tst_cflags}" \
11949 && cf_fix_cppflags=no
11954 if test -n "$cf_new_cflags" ; then
11956 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
11957 CFLAGS="${CFLAGS}$cf_new_cflags"
11961 if test -n "$cf_new_cppflags" ; then
11963 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
11964 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
11968 if test -n "$cf_new_extra_cppflags" ; then
11970 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
11971 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
11975 cf_add_libs="$cf_pkgconfig_libs"
11976 # Filter out duplicates - this happens with badly-designed ".pc" files...
11977 for cf_add_1lib in $LIBS
11979 for cf_add_2lib in $cf_add_libs
11981 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11987 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11989 LIBS="$cf_add_libs"
11995 { echo "$as_me:11995: WARNING: unable to find SM library" >&5
11996 echo "$as_me: WARNING: unable to find SM library" >&2;}
11999 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
12000 test -n "$verbose" && echo " found package xt" 1>&6
12002 echo "${as_me:-configure}:12002: testing found package xt ..." 1>&5
12004 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
12005 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`"
12006 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
12008 echo "${as_me:-configure}:12008: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
12010 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
12012 echo "${as_me:-configure}:12012: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
12017 cf_new_extra_cppflags=
12019 for cf_add_cflags in $cf_pkgconfig_incs
12021 case $cf_fix_cppflags in
12023 case $cf_add_cflags in
12024 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12025 case $cf_add_cflags in
12027 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12029 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12030 && test -z "${cf_tst_cflags}" \
12031 && cf_fix_cppflags=yes
12033 if test $cf_fix_cppflags = yes ; then
12035 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12036 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12039 elif test "${cf_tst_cflags}" = "\"'" ; then
12041 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12042 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12048 case "$CPPFLAGS" in
12052 case $cf_add_cflags in
12054 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12056 CPPFLAGS=`echo "$CPPFLAGS" | \
12057 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12058 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12063 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
12064 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
12071 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
12072 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
12079 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12080 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12082 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12084 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12085 && test -z "${cf_tst_cflags}" \
12086 && cf_fix_cppflags=no
12091 if test -n "$cf_new_cflags" ; then
12093 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12094 CFLAGS="${CFLAGS}$cf_new_cflags"
12098 if test -n "$cf_new_cppflags" ; then
12100 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12101 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12105 if test -n "$cf_new_extra_cppflags" ; then
12107 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12108 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
12112 cf_add_libs="$cf_pkgconfig_libs"
12113 # Filter out duplicates - this happens with badly-designed ".pc" files...
12114 for cf_add_1lib in $LIBS
12116 for cf_add_2lib in $cf_add_libs
12118 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12124 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12126 LIBS="$cf_add_libs"
12132 { echo "$as_me:12132: WARNING: unable to find Xt library" >&5
12133 echo "$as_me: WARNING: unable to find Xt library" >&2;}
12140 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
12141 test -n "$verbose" && echo " found package xt" 1>&6
12143 echo "${as_me:-configure}:12143: testing found package xt ..." 1>&5
12145 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
12146 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`"
12147 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
12149 echo "${as_me:-configure}:12149: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
12151 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
12153 echo "${as_me:-configure}:12153: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
12158 cf_new_extra_cppflags=
12160 for cf_add_cflags in $cf_pkgconfig_incs
12162 case $cf_fix_cppflags in
12164 case $cf_add_cflags in
12165 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12166 case $cf_add_cflags in
12168 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12170 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12171 && test -z "${cf_tst_cflags}" \
12172 && cf_fix_cppflags=yes
12174 if test $cf_fix_cppflags = yes ; then
12176 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12177 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12180 elif test "${cf_tst_cflags}" = "\"'" ; then
12182 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12183 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12189 case "$CPPFLAGS" in
12193 case $cf_add_cflags in
12195 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12197 CPPFLAGS=`echo "$CPPFLAGS" | \
12198 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12199 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12204 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
12205 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
12212 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
12213 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
12220 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12221 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12223 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12225 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12226 && test -z "${cf_tst_cflags}" \
12227 && cf_fix_cppflags=no
12232 if test -n "$cf_new_cflags" ; then
12234 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12235 CFLAGS="${CFLAGS}$cf_new_cflags"
12239 if test -n "$cf_new_cppflags" ; then
12241 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12242 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12246 if test -n "$cf_new_extra_cppflags" ; then
12248 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12249 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
12253 cf_add_libs="$cf_pkgconfig_libs"
12254 # Filter out duplicates - this happens with badly-designed ".pc" files...
12255 for cf_add_1lib in $LIBS
12257 for cf_add_2lib in $cf_add_libs
12259 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12265 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12267 LIBS="$cf_add_libs"
12273 # we have an "xt" package, but it may omit Xt's dependency on X11
12274 echo "$as_me:12274: checking for usable X dependency" >&5
12275 echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6
12276 if test "${cf_cv_xt_x11_compat+set}" = set; then
12277 echo $ECHO_N "(cached) $ECHO_C" >&6
12280 cat >conftest.$ac_ext <<_ACEOF
12281 #line 12281 "configure"
12282 #include "confdefs.h"
12284 #include <X11/Xlib.h>
12290 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0);
12291 int rc2 = XClearWindow((Display*) 0, (Window) 0);
12292 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0);
12293 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0);
12299 rm -f conftest.$ac_objext conftest$ac_exeext
12300 if { (eval echo "$as_me:12300: \"$ac_link\"") >&5
12301 (eval $ac_link) 2>&5
12303 echo "$as_me:12303: \$? = $ac_status" >&5
12304 (exit $ac_status); } &&
12305 { ac_try='test -s conftest$ac_exeext'
12306 { (eval echo "$as_me:12306: \"$ac_try\"") >&5
12307 (eval $ac_try) 2>&5
12309 echo "$as_me:12309: \$? = $ac_status" >&5
12310 (exit $ac_status); }; }; then
12311 cf_cv_xt_x11_compat=yes
12313 echo "$as_me: failed program was:" >&5
12314 cat conftest.$ac_ext >&5
12315 cf_cv_xt_x11_compat=no
12317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12319 echo "$as_me:12319: result: $cf_cv_xt_x11_compat" >&5
12320 echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6
12321 if test "$cf_cv_xt_x11_compat" = no
12323 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6
12325 echo "${as_me:-configure}:12325: testing work around broken X11 dependency ..." 1>&5
12327 # 2010/11/19 - good enough until a working Xt on Xcb is delivered.
12329 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then
12330 test -n "$verbose" && echo " found package x11" 1>&6
12332 echo "${as_me:-configure}:12332: testing found package x11 ..." 1>&5
12334 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`"
12335 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`"
12336 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
12338 echo "${as_me:-configure}:12338: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
12340 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
12342 echo "${as_me:-configure}:12342: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
12347 cf_new_extra_cppflags=
12349 for cf_add_cflags in $cf_pkgconfig_incs
12351 case $cf_fix_cppflags in
12353 case $cf_add_cflags in
12354 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12355 case $cf_add_cflags in
12357 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12359 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12360 && test -z "${cf_tst_cflags}" \
12361 && cf_fix_cppflags=yes
12363 if test $cf_fix_cppflags = yes ; then
12365 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12366 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12369 elif test "${cf_tst_cflags}" = "\"'" ; then
12371 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12372 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12378 case "$CPPFLAGS" in
12382 case $cf_add_cflags in
12384 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12386 CPPFLAGS=`echo "$CPPFLAGS" | \
12387 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12388 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12393 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
12394 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
12401 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
12402 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
12409 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12410 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12412 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12414 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12415 && test -z "${cf_tst_cflags}" \
12416 && cf_fix_cppflags=no
12421 if test -n "$cf_new_cflags" ; then
12423 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12424 CFLAGS="${CFLAGS}$cf_new_cflags"
12428 if test -n "$cf_new_cppflags" ; then
12430 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12431 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12435 if test -n "$cf_new_extra_cppflags" ; then
12437 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12438 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
12442 cf_add_libs="$cf_pkgconfig_libs"
12443 # Filter out duplicates - this happens with badly-designed ".pc" files...
12444 for cf_add_1lib in $LIBS
12446 for cf_add_2lib in $cf_add_libs
12448 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12454 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12456 LIBS="$cf_add_libs"
12463 test -n "$verbose" && echo " ...before $LIBS" 1>&6
12465 echo "${as_me:-configure}:12465: testing ...before $LIBS ..." 1>&5
12467 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'`
12468 test -n "$verbose" && echo " ...after $LIBS" 1>&6
12470 echo "${as_me:-configure}:12470: testing ...after $LIBS ..." 1>&5
12478 echo "$as_me:12478: checking for usable X Toolkit package" >&5
12479 echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6
12480 if test "${cf_cv_xt_ice_compat+set}" = set; then
12481 echo $ECHO_N "(cached) $ECHO_C" >&6
12484 cat >conftest.$ac_ext <<_ACEOF
12485 #line 12485 "configure"
12486 #include "confdefs.h"
12488 #include <X11/Shell.h>
12493 int num = IceConnectionNumber(0)
12499 rm -f conftest.$ac_objext conftest$ac_exeext
12500 if { (eval echo "$as_me:12500: \"$ac_link\"") >&5
12501 (eval $ac_link) 2>&5
12503 echo "$as_me:12503: \$? = $ac_status" >&5
12504 (exit $ac_status); } &&
12505 { ac_try='test -s conftest$ac_exeext'
12506 { (eval echo "$as_me:12506: \"$ac_try\"") >&5
12507 (eval $ac_try) 2>&5
12509 echo "$as_me:12509: \$? = $ac_status" >&5
12510 (exit $ac_status); }; }; then
12511 cf_cv_xt_ice_compat=yes
12513 echo "$as_me: failed program was:" >&5
12514 cat conftest.$ac_ext >&5
12515 cf_cv_xt_ice_compat=no
12517 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12519 echo "$as_me:12519: result: $cf_cv_xt_ice_compat" >&5
12520 echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6
12522 if test "$cf_cv_xt_ice_compat" = no
12524 # workaround for broken ".pc" files used for X Toolkit.
12525 case "x$X_PRE_LIBS" in
12531 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6
12533 echo "${as_me:-configure}:12533: testing work around broken ICE dependency ..." 1>&5
12535 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then
12536 test -n "$verbose" && echo " found package ice" 1>&6
12538 echo "${as_me:-configure}:12538: testing found package ice ..." 1>&5
12540 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`"
12541 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`"
12542 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
12544 echo "${as_me:-configure}:12544: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
12546 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
12548 echo "${as_me:-configure}:12548: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
12553 cf_new_extra_cppflags=
12555 for cf_add_cflags in $cf_pkgconfig_incs
12557 case $cf_fix_cppflags in
12559 case $cf_add_cflags in
12560 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12561 case $cf_add_cflags in
12563 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12565 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12566 && test -z "${cf_tst_cflags}" \
12567 && cf_fix_cppflags=yes
12569 if test $cf_fix_cppflags = yes ; then
12571 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12572 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12575 elif test "${cf_tst_cflags}" = "\"'" ; then
12577 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12578 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12584 case "$CPPFLAGS" in
12588 case $cf_add_cflags in
12590 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12592 CPPFLAGS=`echo "$CPPFLAGS" | \
12593 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12594 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12599 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
12600 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
12607 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
12608 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
12615 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12616 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12618 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12620 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12621 && test -z "${cf_tst_cflags}" \
12622 && cf_fix_cppflags=no
12627 if test -n "$cf_new_cflags" ; then
12629 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12630 CFLAGS="${CFLAGS}$cf_new_cflags"
12634 if test -n "$cf_new_cppflags" ; then
12636 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12637 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12641 if test -n "$cf_new_extra_cppflags" ; then
12643 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12644 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
12648 cf_add_libs="$cf_pkgconfig_libs"
12649 # Filter out duplicates - this happens with badly-designed ".pc" files...
12650 for cf_add_1lib in $LIBS
12652 for cf_add_2lib in $cf_add_libs
12654 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12660 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12662 LIBS="$cf_add_libs"
12664 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then
12665 test -n "$verbose" && echo " found package sm" 1>&6
12667 echo "${as_me:-configure}:12667: testing found package sm ..." 1>&5
12669 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`"
12670 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`"
12671 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
12673 echo "${as_me:-configure}:12673: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
12675 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
12677 echo "${as_me:-configure}:12677: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
12682 cf_new_extra_cppflags=
12684 for cf_add_cflags in $cf_pkgconfig_incs
12686 case $cf_fix_cppflags in
12688 case $cf_add_cflags in
12689 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12690 case $cf_add_cflags in
12692 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12694 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12695 && test -z "${cf_tst_cflags}" \
12696 && cf_fix_cppflags=yes
12698 if test $cf_fix_cppflags = yes ; then
12700 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12701 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12704 elif test "${cf_tst_cflags}" = "\"'" ; then
12706 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12707 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12713 case "$CPPFLAGS" in
12717 case $cf_add_cflags in
12719 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12721 CPPFLAGS=`echo "$CPPFLAGS" | \
12722 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12723 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12728 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
12729 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
12736 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
12737 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
12744 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12745 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12747 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12749 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12750 && test -z "${cf_tst_cflags}" \
12751 && cf_fix_cppflags=no
12756 if test -n "$cf_new_cflags" ; then
12758 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12759 CFLAGS="${CFLAGS}$cf_new_cflags"
12763 if test -n "$cf_new_cppflags" ; then
12765 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12766 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12770 if test -n "$cf_new_extra_cppflags" ; then
12772 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12773 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
12777 cf_add_libs="$cf_pkgconfig_libs"
12778 # Filter out duplicates - this happens with badly-designed ".pc" files...
12779 for cf_add_1lib in $LIBS
12781 for cf_add_2lib in $cf_add_libs
12783 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12789 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12791 LIBS="$cf_add_libs"
12804 test -n "$verbose" && echo " ...before $LIBS" 1>&6
12806 echo "${as_me:-configure}:12806: testing ...before $LIBS ..." 1>&5
12808 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's% % %g'`
12809 test -n "$verbose" && echo " ...after $LIBS" 1>&6
12811 echo "${as_me:-configure}:12811: testing ...after $LIBS ..." 1>&5
12827 LDFLAGS="$X_LIBS $LDFLAGS"
12829 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
12831 echo "${as_me:-configure}:12831: testing checking additions to CFLAGS ..." 1>&5
12833 cf_check_cflags="$CFLAGS"
12834 cf_check_cppflags="$CPPFLAGS"
12839 cf_new_extra_cppflags=
12841 for cf_add_cflags in $X_CFLAGS
12843 case $cf_fix_cppflags in
12845 case $cf_add_cflags in
12846 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12847 case $cf_add_cflags in
12849 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12851 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12852 && test -z "${cf_tst_cflags}" \
12853 && cf_fix_cppflags=yes
12855 if test $cf_fix_cppflags = yes ; then
12857 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12858 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12861 elif test "${cf_tst_cflags}" = "\"'" ; then
12863 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12864 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12870 case "$CPPFLAGS" in
12874 case $cf_add_cflags in
12876 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12878 CPPFLAGS=`echo "$CPPFLAGS" | \
12879 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12880 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12885 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
12886 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
12893 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
12894 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
12901 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12902 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12904 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12906 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12907 && test -z "${cf_tst_cflags}" \
12908 && cf_fix_cppflags=no
12913 if test -n "$cf_new_cflags" ; then
12914 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
12916 echo "${as_me:-configure}:12916: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
12918 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12919 CFLAGS="${CFLAGS}$cf_new_cflags"
12923 if test -n "$cf_new_cppflags" ; then
12924 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
12926 echo "${as_me:-configure}:12926: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
12928 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12929 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12933 if test -n "$cf_new_extra_cppflags" ; then
12934 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
12936 echo "${as_me:-configure}:12936: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
12938 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12939 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
12943 if test "x$cf_check_cflags" != "x$CFLAGS" ; then
12944 cat >conftest.$ac_ext <<_ACEOF
12945 #line 12945 "configure"
12946 #include "confdefs.h"
12951 printf("Hello world");
12956 rm -f conftest.$ac_objext conftest$ac_exeext
12957 if { (eval echo "$as_me:12957: \"$ac_link\"") >&5
12958 (eval $ac_link) 2>&5
12960 echo "$as_me:12960: \$? = $ac_status" >&5
12961 (exit $ac_status); } &&
12962 { ac_try='test -s conftest$ac_exeext'
12963 { (eval echo "$as_me:12963: \"$ac_try\"") >&5
12964 (eval $ac_try) 2>&5
12966 echo "$as_me:12966: \$? = $ac_status" >&5
12967 (exit $ac_status); }; }; then
12970 echo "$as_me: failed program was:" >&5
12971 cat conftest.$ac_ext >&5
12972 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
12974 echo "${as_me:-configure}:12974: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
12976 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then
12977 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
12979 echo "${as_me:-configure}:12979: testing but keeping change to \$CPPFLAGS ..." 1>&5
12982 CFLAGS="$cf_check_flags"
12984 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12987 echo "$as_me:12987: checking for XOpenDisplay" >&5
12988 echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6
12989 if test "${ac_cv_func_XOpenDisplay+set}" = set; then
12990 echo $ECHO_N "(cached) $ECHO_C" >&6
12992 cat >conftest.$ac_ext <<_ACEOF
12993 #line 12993 "configure"
12994 #include "confdefs.h"
12995 /* System header to define __stub macros and hopefully few prototypes,
12996 which can conflict with char XOpenDisplay (); below. */
12997 #include <assert.h>
12998 /* Override any gcc2 internal prototype to avoid an error. */
13002 /* We use char because int might match the return type of a gcc2
13003 builtin and then its argument prototype would still apply. */
13004 char XOpenDisplay ();
13010 /* The GNU C library defines this for functions which it implements
13011 to always fail with ENOSYS. Some functions are actually named
13012 something starting with __ and the normal name is an alias. */
13013 #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay)
13016 f = XOpenDisplay; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
13023 rm -f conftest.$ac_objext conftest$ac_exeext
13024 if { (eval echo "$as_me:13024: \"$ac_link\"") >&5
13025 (eval $ac_link) 2>&5
13027 echo "$as_me:13027: \$? = $ac_status" >&5
13028 (exit $ac_status); } &&
13029 { ac_try='test -s conftest$ac_exeext'
13030 { (eval echo "$as_me:13030: \"$ac_try\"") >&5
13031 (eval $ac_try) 2>&5
13033 echo "$as_me:13033: \$? = $ac_status" >&5
13034 (exit $ac_status); }; }; then
13035 ac_cv_func_XOpenDisplay=yes
13037 echo "$as_me: failed program was:" >&5
13038 cat conftest.$ac_ext >&5
13039 ac_cv_func_XOpenDisplay=no
13041 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13043 echo "$as_me:13043: result: $ac_cv_func_XOpenDisplay" >&5
13044 echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6
13045 if test $ac_cv_func_XOpenDisplay = yes; then
13049 echo "$as_me:13049: checking for XOpenDisplay in -lX11" >&5
13050 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
13051 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
13052 echo $ECHO_N "(cached) $ECHO_C" >&6
13054 ac_check_lib_save_LIBS=$LIBS
13055 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
13056 cat >conftest.$ac_ext <<_ACEOF
13057 #line 13057 "configure"
13058 #include "confdefs.h"
13060 /* Override any gcc2 internal prototype to avoid an error. */
13064 /* We use char because int might match the return type of a gcc2
13065 builtin and then its argument prototype would still apply. */
13066 char XOpenDisplay ();
13075 rm -f conftest.$ac_objext conftest$ac_exeext
13076 if { (eval echo "$as_me:13076: \"$ac_link\"") >&5
13077 (eval $ac_link) 2>&5
13079 echo "$as_me:13079: \$? = $ac_status" >&5
13080 (exit $ac_status); } &&
13081 { ac_try='test -s conftest$ac_exeext'
13082 { (eval echo "$as_me:13082: \"$ac_try\"") >&5
13083 (eval $ac_try) 2>&5
13085 echo "$as_me:13085: \$? = $ac_status" >&5
13086 (exit $ac_status); }; }; then
13087 ac_cv_lib_X11_XOpenDisplay=yes
13089 echo "$as_me: failed program was:" >&5
13090 cat conftest.$ac_ext >&5
13091 ac_cv_lib_X11_XOpenDisplay=no
13093 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13094 LIBS=$ac_check_lib_save_LIBS
13096 echo "$as_me:13096: result: $ac_cv_lib_X11_XOpenDisplay" >&5
13097 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
13098 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
13100 cf_add_libs="-lX11"
13101 # Filter out duplicates - this happens with badly-designed ".pc" files...
13102 for cf_add_1lib in $LIBS
13104 for cf_add_2lib in $cf_add_libs
13106 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13112 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13114 LIBS="$cf_add_libs"
13120 echo "$as_me:13120: checking for XtAppInitialize" >&5
13121 echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6
13122 if test "${ac_cv_func_XtAppInitialize+set}" = set; then
13123 echo $ECHO_N "(cached) $ECHO_C" >&6
13125 cat >conftest.$ac_ext <<_ACEOF
13126 #line 13126 "configure"
13127 #include "confdefs.h"
13128 /* System header to define __stub macros and hopefully few prototypes,
13129 which can conflict with char XtAppInitialize (); below. */
13130 #include <assert.h>
13131 /* Override any gcc2 internal prototype to avoid an error. */
13135 /* We use char because int might match the return type of a gcc2
13136 builtin and then its argument prototype would still apply. */
13137 char XtAppInitialize ();
13143 /* The GNU C library defines this for functions which it implements
13144 to always fail with ENOSYS. Some functions are actually named
13145 something starting with __ and the normal name is an alias. */
13146 #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize)
13149 f = XtAppInitialize; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
13156 rm -f conftest.$ac_objext conftest$ac_exeext
13157 if { (eval echo "$as_me:13157: \"$ac_link\"") >&5
13158 (eval $ac_link) 2>&5
13160 echo "$as_me:13160: \$? = $ac_status" >&5
13161 (exit $ac_status); } &&
13162 { ac_try='test -s conftest$ac_exeext'
13163 { (eval echo "$as_me:13163: \"$ac_try\"") >&5
13164 (eval $ac_try) 2>&5
13166 echo "$as_me:13166: \$? = $ac_status" >&5
13167 (exit $ac_status); }; }; then
13168 ac_cv_func_XtAppInitialize=yes
13170 echo "$as_me: failed program was:" >&5
13171 cat conftest.$ac_ext >&5
13172 ac_cv_func_XtAppInitialize=no
13174 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13176 echo "$as_me:13176: result: $ac_cv_func_XtAppInitialize" >&5
13177 echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6
13178 if test $ac_cv_func_XtAppInitialize = yes; then
13182 echo "$as_me:13182: checking for XtAppInitialize in -lXt" >&5
13183 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
13184 if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
13185 echo $ECHO_N "(cached) $ECHO_C" >&6
13187 ac_check_lib_save_LIBS=$LIBS
13188 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
13189 cat >conftest.$ac_ext <<_ACEOF
13190 #line 13190 "configure"
13191 #include "confdefs.h"
13193 /* Override any gcc2 internal prototype to avoid an error. */
13197 /* We use char because int might match the return type of a gcc2
13198 builtin and then its argument prototype would still apply. */
13199 char XtAppInitialize ();
13203 XtAppInitialize ();
13208 rm -f conftest.$ac_objext conftest$ac_exeext
13209 if { (eval echo "$as_me:13209: \"$ac_link\"") >&5
13210 (eval $ac_link) 2>&5
13212 echo "$as_me:13212: \$? = $ac_status" >&5
13213 (exit $ac_status); } &&
13214 { ac_try='test -s conftest$ac_exeext'
13215 { (eval echo "$as_me:13215: \"$ac_try\"") >&5
13216 (eval $ac_try) 2>&5
13218 echo "$as_me:13218: \$? = $ac_status" >&5
13219 (exit $ac_status); }; }; then
13220 ac_cv_lib_Xt_XtAppInitialize=yes
13222 echo "$as_me: failed program was:" >&5
13223 cat conftest.$ac_ext >&5
13224 ac_cv_lib_Xt_XtAppInitialize=no
13226 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13227 LIBS=$ac_check_lib_save_LIBS
13229 echo "$as_me:13229: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
13230 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
13231 if test $ac_cv_lib_Xt_XtAppInitialize = yes; then
13233 cat >>confdefs.h <<\EOF
13234 #define HAVE_LIBXT 1
13238 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
13245 if test $cf_have_X_LIBS = no ; then
13246 { echo "$as_me:13246: WARNING: Unable to successfully link X Toolkit library (-lXt) with
13247 test program. You will have to check and add the proper libraries by hand
13249 echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with
13250 test program. You will have to check and add the proper libraries by hand
13251 to makefile." >&2;}
13254 cf_x_athena_root=$cf_x_athena
13257 for cf_path in default \
13258 /usr/contrib/X11R6 \
13259 /usr/contrib/X11R5 \
13263 if test -z "$cf_x_athena_inc" ; then
13264 cf_save="$CPPFLAGS"
13265 cf_test=X11/$cf_x_athena_root/SimpleMenu.h
13266 if test $cf_path != default ; then
13267 CPPFLAGS="$cf_save -I$cf_path/include"
13268 echo "$as_me:13268: checking for $cf_test in $cf_path" >&5
13269 echo $ECHO_N "checking for $cf_test in $cf_path... $ECHO_C" >&6
13271 echo "$as_me:13271: checking for $cf_test" >&5
13272 echo $ECHO_N "checking for $cf_test... $ECHO_C" >&6
13274 cat >conftest.$ac_ext <<_ACEOF
13275 #line 13275 "configure"
13276 #include "confdefs.h"
13278 #include <X11/Intrinsic.h>
13279 #include <$cf_test>
13288 rm -f conftest.$ac_objext
13289 if { (eval echo "$as_me:13289: \"$ac_compile\"") >&5
13290 (eval $ac_compile) 2>&5
13292 echo "$as_me:13292: \$? = $ac_status" >&5
13293 (exit $ac_status); } &&
13294 { ac_try='test -s conftest.$ac_objext'
13295 { (eval echo "$as_me:13295: \"$ac_try\"") >&5
13296 (eval $ac_try) 2>&5
13298 echo "$as_me:13298: \$? = $ac_status" >&5
13299 (exit $ac_status); }; }; then
13302 echo "$as_me: failed program was:" >&5
13303 cat conftest.$ac_ext >&5
13306 rm -f conftest.$ac_objext conftest.$ac_ext
13307 echo "$as_me:13307: result: $cf_result" >&5
13308 echo "${ECHO_T}$cf_result" >&6
13309 if test "$cf_result" = yes ; then
13310 cf_x_athena_inc=$cf_path
13313 CPPFLAGS="$cf_save"
13318 if test -z "$cf_x_athena_inc" ; then
13319 { echo "$as_me:13319: WARNING: Unable to successfully find Athena header files with test program" >&5
13320 echo "$as_me: WARNING: Unable to successfully find Athena header files with test program" >&2;}
13321 elif test "$cf_x_athena_inc" != default ; then
13322 CPPFLAGS="$CPPFLAGS -I$cf_x_athena_inc"
13325 cf_x_athena_root=$cf_x_athena
13328 for cf_path in default \
13329 /usr/contrib/X11R6 \
13330 /usr/contrib/X11R5 \
13335 ${cf_x_athena_root} \
13336 ${cf_x_athena_root}7 \
13337 ${cf_x_athena_root}6
13340 "-l$cf_lib -lXmu" \
13341 "-l$cf_lib -lXpm -lXmu" \
13342 "-l${cf_lib}_s -lXmu_s"
13344 if test -z "$cf_x_athena_lib" ; then
13346 cf_test=XawSimpleMenuAddGlobalActions
13347 if test $cf_path != default ; then
13349 cf_add_libs="-L$cf_path/lib $cf_libs"
13350 # Filter out duplicates - this happens with badly-designed ".pc" files...
13351 for cf_add_1lib in $LIBS
13353 for cf_add_2lib in $cf_add_libs
13355 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13361 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13363 LIBS="$cf_add_libs"
13365 echo "$as_me:13365: checking for $cf_libs in $cf_path" >&5
13366 echo $ECHO_N "checking for $cf_libs in $cf_path... $ECHO_C" >&6
13369 cf_add_libs="$cf_libs"
13370 # Filter out duplicates - this happens with badly-designed ".pc" files...
13371 for cf_add_1lib in $LIBS
13373 for cf_add_2lib in $cf_add_libs
13375 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13381 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13383 LIBS="$cf_add_libs"
13385 echo "$as_me:13385: checking for $cf_test in $cf_libs" >&5
13386 echo $ECHO_N "checking for $cf_test in $cf_libs... $ECHO_C" >&6
13388 cat >conftest.$ac_ext <<_ACEOF
13389 #line 13389 "configure"
13390 #include "confdefs.h"
13392 #include <X11/Intrinsic.h>
13393 #include <X11/$cf_x_athena_root/SimpleMenu.h>
13399 $cf_test((XtAppContext) 0)
13404 rm -f conftest.$ac_objext conftest$ac_exeext
13405 if { (eval echo "$as_me:13405: \"$ac_link\"") >&5
13406 (eval $ac_link) 2>&5
13408 echo "$as_me:13408: \$? = $ac_status" >&5
13409 (exit $ac_status); } &&
13410 { ac_try='test -s conftest$ac_exeext'
13411 { (eval echo "$as_me:13411: \"$ac_try\"") >&5
13412 (eval $ac_try) 2>&5
13414 echo "$as_me:13414: \$? = $ac_status" >&5
13415 (exit $ac_status); }; }; then
13418 echo "$as_me: failed program was:" >&5
13419 cat conftest.$ac_ext >&5
13422 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13423 echo "$as_me:13423: result: $cf_result" >&5
13424 echo "${ECHO_T}$cf_result" >&6
13425 if test "$cf_result" = yes ; then
13426 cf_x_athena_lib="$cf_libs"
13432 test -n "$cf_x_athena_lib" && break
13436 if test -z "$cf_x_athena_lib" ; then
13437 { { echo "$as_me:13437: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&5
13438 echo "$as_me: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&2;}
13439 { (exit 1); exit 1; }; }
13442 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13444 cat >>confdefs.h <<EOF
13445 #define $cf_x_athena_LIBS 1
13450 if test -n "$ac_tool_prefix"; then
13451 for ac_prog in xcurses-config
13453 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13454 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13455 echo "$as_me:13455: checking for $ac_word" >&5
13456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13457 if test "${ac_cv_prog_XCURSES_CONFIG+set}" = set; then
13458 echo $ECHO_N "(cached) $ECHO_C" >&6
13460 if test -n "$XCURSES_CONFIG"; then
13461 ac_cv_prog_XCURSES_CONFIG="$XCURSES_CONFIG" # Let the user override the test.
13463 ac_save_IFS=$IFS; IFS=$ac_path_separator
13465 for ac_dir in $ac_dummy; do
13467 test -z "$ac_dir" && ac_dir=.
13468 $as_executable_p "$ac_dir/$ac_word" || continue
13469 ac_cv_prog_XCURSES_CONFIG="$ac_tool_prefix$ac_prog"
13470 echo "$as_me:13470: found $ac_dir/$ac_word" >&5
13476 XCURSES_CONFIG=$ac_cv_prog_XCURSES_CONFIG
13477 if test -n "$XCURSES_CONFIG"; then
13478 echo "$as_me:13478: result: $XCURSES_CONFIG" >&5
13479 echo "${ECHO_T}$XCURSES_CONFIG" >&6
13481 echo "$as_me:13481: result: no" >&5
13482 echo "${ECHO_T}no" >&6
13485 test -n "$XCURSES_CONFIG" && break
13488 if test -z "$XCURSES_CONFIG"; then
13489 ac_ct_XCURSES_CONFIG=$XCURSES_CONFIG
13490 for ac_prog in xcurses-config
13492 # Extract the first word of "$ac_prog", so it can be a program name with args.
13493 set dummy $ac_prog; ac_word=$2
13494 echo "$as_me:13494: checking for $ac_word" >&5
13495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13496 if test "${ac_cv_prog_ac_ct_XCURSES_CONFIG+set}" = set; then
13497 echo $ECHO_N "(cached) $ECHO_C" >&6
13499 if test -n "$ac_ct_XCURSES_CONFIG"; then
13500 ac_cv_prog_ac_ct_XCURSES_CONFIG="$ac_ct_XCURSES_CONFIG" # Let the user override the test.
13502 ac_save_IFS=$IFS; IFS=$ac_path_separator
13504 for ac_dir in $ac_dummy; do
13506 test -z "$ac_dir" && ac_dir=.
13507 $as_executable_p "$ac_dir/$ac_word" || continue
13508 ac_cv_prog_ac_ct_XCURSES_CONFIG="$ac_prog"
13509 echo "$as_me:13509: found $ac_dir/$ac_word" >&5
13515 ac_ct_XCURSES_CONFIG=$ac_cv_prog_ac_ct_XCURSES_CONFIG
13516 if test -n "$ac_ct_XCURSES_CONFIG"; then
13517 echo "$as_me:13517: result: $ac_ct_XCURSES_CONFIG" >&5
13518 echo "${ECHO_T}$ac_ct_XCURSES_CONFIG" >&6
13520 echo "$as_me:13520: result: no" >&5
13521 echo "${ECHO_T}no" >&6
13524 test -n "$ac_ct_XCURSES_CONFIG" && break
13526 test -n "$ac_ct_XCURSES_CONFIG" || ac_ct_XCURSES_CONFIG="none"
13528 XCURSES_CONFIG=$ac_ct_XCURSES_CONFIG
13531 if test "$XCURSES_CONFIG" != none ; then
13533 CPPFLAGS="$CPPFLAGS `$XCURSES_CONFIG --cflags`"
13535 cf_add_libs="`$XCURSES_CONFIG --libs`"
13536 # Filter out duplicates - this happens with badly-designed ".pc" files...
13537 for cf_add_1lib in $LIBS
13539 for cf_add_2lib in $cf_add_libs
13541 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13547 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13549 LIBS="$cf_add_libs"
13551 cf_cv_lib_XCurses=yes
13555 LDFLAGS="$LDFLAGS $X_LIBS"
13557 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
13559 echo "${as_me:-configure}:13559: testing checking additions to CFLAGS ..." 1>&5
13561 cf_check_cflags="$CFLAGS"
13562 cf_check_cppflags="$CPPFLAGS"
13567 cf_new_extra_cppflags=
13569 for cf_add_cflags in $X_CFLAGS
13571 case $cf_fix_cppflags in
13573 case $cf_add_cflags in
13574 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13575 case $cf_add_cflags in
13577 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13579 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13580 && test -z "${cf_tst_cflags}" \
13581 && cf_fix_cppflags=yes
13583 if test $cf_fix_cppflags = yes ; then
13585 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13586 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13589 elif test "${cf_tst_cflags}" = "\"'" ; then
13591 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13592 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13598 case "$CPPFLAGS" in
13602 case $cf_add_cflags in
13604 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13606 CPPFLAGS=`echo "$CPPFLAGS" | \
13607 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13608 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13613 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13614 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
13621 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13622 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
13629 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13630 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13632 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13634 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13635 && test -z "${cf_tst_cflags}" \
13636 && cf_fix_cppflags=no
13641 if test -n "$cf_new_cflags" ; then
13642 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
13644 echo "${as_me:-configure}:13644: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
13646 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
13647 CFLAGS="${CFLAGS}$cf_new_cflags"
13651 if test -n "$cf_new_cppflags" ; then
13652 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
13654 echo "${as_me:-configure}:13654: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
13656 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13657 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
13661 if test -n "$cf_new_extra_cppflags" ; then
13662 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
13664 echo "${as_me:-configure}:13664: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
13666 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
13667 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
13671 if test "x$cf_check_cflags" != "x$CFLAGS" ; then
13672 cat >conftest.$ac_ext <<_ACEOF
13673 #line 13673 "configure"
13674 #include "confdefs.h"
13679 printf("Hello world");
13684 rm -f conftest.$ac_objext conftest$ac_exeext
13685 if { (eval echo "$as_me:13685: \"$ac_link\"") >&5
13686 (eval $ac_link) 2>&5
13688 echo "$as_me:13688: \$? = $ac_status" >&5
13689 (exit $ac_status); } &&
13690 { ac_try='test -s conftest$ac_exeext'
13691 { (eval echo "$as_me:13691: \"$ac_try\"") >&5
13692 (eval $ac_try) 2>&5
13694 echo "$as_me:13694: \$? = $ac_status" >&5
13695 (exit $ac_status); }; }; then
13698 echo "$as_me: failed program was:" >&5
13699 cat conftest.$ac_ext >&5
13700 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
13702 echo "${as_me:-configure}:13702: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
13704 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then
13705 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
13707 echo "${as_me:-configure}:13707: testing but keeping change to \$CPPFLAGS ..." 1>&5
13710 CFLAGS="$cf_check_flags"
13712 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13715 echo "$as_me:13715: checking for XOpenDisplay in -lX11" >&5
13716 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
13717 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
13718 echo $ECHO_N "(cached) $ECHO_C" >&6
13720 ac_check_lib_save_LIBS=$LIBS
13721 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
13722 cat >conftest.$ac_ext <<_ACEOF
13723 #line 13723 "configure"
13724 #include "confdefs.h"
13726 /* Override any gcc2 internal prototype to avoid an error. */
13730 /* We use char because int might match the return type of a gcc2
13731 builtin and then its argument prototype would still apply. */
13732 char XOpenDisplay ();
13741 rm -f conftest.$ac_objext conftest$ac_exeext
13742 if { (eval echo "$as_me:13742: \"$ac_link\"") >&5
13743 (eval $ac_link) 2>&5
13745 echo "$as_me:13745: \$? = $ac_status" >&5
13746 (exit $ac_status); } &&
13747 { ac_try='test -s conftest$ac_exeext'
13748 { (eval echo "$as_me:13748: \"$ac_try\"") >&5
13749 (eval $ac_try) 2>&5
13751 echo "$as_me:13751: \$? = $ac_status" >&5
13752 (exit $ac_status); }; }; then
13753 ac_cv_lib_X11_XOpenDisplay=yes
13755 echo "$as_me: failed program was:" >&5
13756 cat conftest.$ac_ext >&5
13757 ac_cv_lib_X11_XOpenDisplay=no
13759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13760 LIBS=$ac_check_lib_save_LIBS
13762 echo "$as_me:13762: result: $ac_cv_lib_X11_XOpenDisplay" >&5
13763 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
13764 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
13766 cf_add_libs="-lX11"
13767 # Filter out duplicates - this happens with badly-designed ".pc" files...
13768 for cf_add_1lib in $LIBS
13770 for cf_add_2lib in $cf_add_libs
13772 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13778 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13780 LIBS="$cf_add_libs"
13784 echo "$as_me:13784: checking for XCurses library" >&5
13785 echo $ECHO_N "checking for XCurses library... $ECHO_C" >&6
13786 if test "${cf_cv_lib_XCurses+set}" = set; then
13787 echo $ECHO_N "(cached) $ECHO_C" >&6
13790 cf_add_libs="-lXCurses"
13791 # Filter out duplicates - this happens with badly-designed ".pc" files...
13792 for cf_add_1lib in $LIBS
13794 for cf_add_2lib in $cf_add_libs
13796 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13802 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13804 LIBS="$cf_add_libs"
13806 cat >conftest.$ac_ext <<_ACEOF
13807 #line 13807 "configure"
13808 #include "confdefs.h"
13810 #include <xcurses.h>
13811 char *XCursesProgramName = "test";
13821 rm -f conftest.$ac_objext conftest$ac_exeext
13822 if { (eval echo "$as_me:13822: \"$ac_link\"") >&5
13823 (eval $ac_link) 2>&5
13825 echo "$as_me:13825: \$? = $ac_status" >&5
13826 (exit $ac_status); } &&
13827 { ac_try='test -s conftest$ac_exeext'
13828 { (eval echo "$as_me:13828: \"$ac_try\"") >&5
13829 (eval $ac_try) 2>&5
13831 echo "$as_me:13831: \$? = $ac_status" >&5
13832 (exit $ac_status); }; }; then
13833 cf_cv_lib_XCurses=yes
13835 echo "$as_me: failed program was:" >&5
13836 cat conftest.$ac_ext >&5
13837 cf_cv_lib_XCurses=no
13839 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13842 echo "$as_me:13842: result: $cf_cv_lib_XCurses" >&5
13843 echo "${ECHO_T}$cf_cv_lib_XCurses" >&6
13847 if test $cf_cv_lib_XCurses = yes ; then
13849 cat >>confdefs.h <<\EOF
13853 cat >>confdefs.h <<\EOF
13857 echo "$as_me:13857: checking for xcurses.h" >&5
13858 echo $ECHO_N "checking for xcurses.h... $ECHO_C" >&6
13859 if test "${ac_cv_header_xcurses_h+set}" = set; then
13860 echo $ECHO_N "(cached) $ECHO_C" >&6
13862 cat >conftest.$ac_ext <<_ACEOF
13863 #line 13863 "configure"
13864 #include "confdefs.h"
13865 #include <xcurses.h>
13867 if { (eval echo "$as_me:13867: \"$ac_cpp conftest.$ac_ext\"") >&5
13868 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13870 egrep -v '^ *\+' conftest.er1 >conftest.err
13872 cat conftest.err >&5
13873 echo "$as_me:13873: \$? = $ac_status" >&5
13874 (exit $ac_status); } >/dev/null; then
13875 if test -s conftest.err; then
13876 ac_cpp_err=$ac_c_preproc_warn_flag
13883 if test -z "$ac_cpp_err"; then
13884 ac_cv_header_xcurses_h=yes
13886 echo "$as_me: failed program was:" >&5
13887 cat conftest.$ac_ext >&5
13888 ac_cv_header_xcurses_h=no
13890 rm -f conftest.err conftest.$ac_ext
13892 echo "$as_me:13892: result: $ac_cv_header_xcurses_h" >&5
13893 echo "${ECHO_T}$ac_cv_header_xcurses_h" >&6
13894 if test $ac_cv_header_xcurses_h = yes; then
13896 cat >>confdefs.h <<\EOF
13897 #define HAVE_XCURSES 1
13903 { { echo "$as_me:13903: error: Cannot link with XCurses" >&5
13904 echo "$as_me: error: Cannot link with XCurses" >&2;}
13905 { (exit 1); exit 1; }; }
13910 { { echo "$as_me:13910: error: unexpected screen-value: $cf_cv_screen" >&5
13911 echo "$as_me: error: unexpected screen-value: $cf_cv_screen" >&2;}
13912 { (exit 1); exit 1; }; }
13916 : ${cf_nculib_root:=$cf_cv_screen}
13917 as_ac_Lib=`echo "ac_cv_lib_$cf_nculib_root''__nc_init_pthreads" | $as_tr_sh`
13918 echo "$as_me:13918: checking for _nc_init_pthreads in -l$cf_nculib_root" >&5
13919 echo $ECHO_N "checking for _nc_init_pthreads in -l$cf_nculib_root... $ECHO_C" >&6
13920 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13921 echo $ECHO_N "(cached) $ECHO_C" >&6
13923 ac_check_lib_save_LIBS=$LIBS
13924 LIBS="-l$cf_nculib_root $LIBS"
13925 cat >conftest.$ac_ext <<_ACEOF
13926 #line 13926 "configure"
13927 #include "confdefs.h"
13929 /* Override any gcc2 internal prototype to avoid an error. */
13933 /* We use char because int might match the return type of a gcc2
13934 builtin and then its argument prototype would still apply. */
13935 char _nc_init_pthreads ();
13939 _nc_init_pthreads ();
13944 rm -f conftest.$ac_objext conftest$ac_exeext
13945 if { (eval echo "$as_me:13945: \"$ac_link\"") >&5
13946 (eval $ac_link) 2>&5
13948 echo "$as_me:13948: \$? = $ac_status" >&5
13949 (exit $ac_status); } &&
13950 { ac_try='test -s conftest$ac_exeext'
13951 { (eval echo "$as_me:13951: \"$ac_try\"") >&5
13952 (eval $ac_try) 2>&5
13954 echo "$as_me:13954: \$? = $ac_status" >&5
13955 (exit $ac_status); }; }; then
13956 eval "$as_ac_Lib=yes"
13958 echo "$as_me: failed program was:" >&5
13959 cat conftest.$ac_ext >&5
13960 eval "$as_ac_Lib=no"
13962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13963 LIBS=$ac_check_lib_save_LIBS
13965 echo "$as_me:13965: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13966 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13967 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13968 cf_cv_ncurses_pthreads=yes
13970 cf_cv_ncurses_pthreads=no
13973 if test "$cf_cv_ncurses_pthreads" = yes
13976 cf_add_libs="-lpthread"
13977 # Filter out duplicates - this happens with badly-designed ".pc" files...
13978 for cf_add_1lib in $LIBS
13980 for cf_add_2lib in $cf_add_libs
13982 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13988 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13990 LIBS="$cf_add_libs"
13994 case $cf_cv_screen in
13996 cf_cv_libtype=`echo "$cf_cv_screen" | sed -e 's/^ncurses//'`
14000 echo "$as_me:14000: checking for NetBSD form.h" >&5
14001 echo $ECHO_N "checking for NetBSD form.h... $ECHO_C" >&6
14002 if test "${cf_cv_netbsd_form_h+set}" = set; then
14003 echo $ECHO_N "(cached) $ECHO_C" >&6
14006 cat >conftest.$ac_ext <<_ACEOF
14007 #line 14007 "configure"
14008 #include "confdefs.h"
14010 #include <${cf_cv_ncurses_header:-curses.h}>
14018 int y = current_field(form)->cursor_ypos;
14019 int x = current_field(form)->cursor_xpos;
14025 rm -f conftest.$ac_objext
14026 if { (eval echo "$as_me:14026: \"$ac_compile\"") >&5
14027 (eval $ac_compile) 2>&5
14029 echo "$as_me:14029: \$? = $ac_status" >&5
14030 (exit $ac_status); } &&
14031 { ac_try='test -s conftest.$ac_objext'
14032 { (eval echo "$as_me:14032: \"$ac_try\"") >&5
14033 (eval $ac_try) 2>&5
14035 echo "$as_me:14035: \$? = $ac_status" >&5
14036 (exit $ac_status); }; }; then
14037 cf_cv_netbsd_form_h=yes
14040 echo "$as_me: failed program was:" >&5
14041 cat conftest.$ac_ext >&5
14042 cf_cv_netbsd_form_h=no
14044 rm -f conftest.$ac_objext conftest.$ac_ext
14047 echo "$as_me:14047: result: $cf_cv_netbsd_form_h" >&5
14048 echo "${ECHO_T}$cf_cv_netbsd_form_h" >&6
14050 test "$cf_cv_netbsd_form_h" = yes &&
14051 cat >>confdefs.h <<\EOF
14052 #define HAVE_NETBSD_FORM_H 1
14055 echo "$as_me:14055: checking for NetBSD menu.h" >&5
14056 echo $ECHO_N "checking for NetBSD menu.h... $ECHO_C" >&6
14057 if test "${cf_cv_netbsd_menu_h+set}" = set; then
14058 echo $ECHO_N "(cached) $ECHO_C" >&6
14061 cat >conftest.$ac_ext <<_ACEOF
14062 #line 14062 "configure"
14063 #include "confdefs.h"
14065 #include <${cf_cv_ncurses_header:-curses.h}>
14073 int y = menu->max_item_width;
14079 rm -f conftest.$ac_objext
14080 if { (eval echo "$as_me:14080: \"$ac_compile\"") >&5
14081 (eval $ac_compile) 2>&5
14083 echo "$as_me:14083: \$? = $ac_status" >&5
14084 (exit $ac_status); } &&
14085 { ac_try='test -s conftest.$ac_objext'
14086 { (eval echo "$as_me:14086: \"$ac_try\"") >&5
14087 (eval $ac_try) 2>&5
14089 echo "$as_me:14089: \$? = $ac_status" >&5
14090 (exit $ac_status); }; }; then
14091 cf_cv_netbsd_menu_h=yes
14094 echo "$as_me: failed program was:" >&5
14095 cat conftest.$ac_ext >&5
14096 cf_cv_netbsd_menu_h=no
14098 rm -f conftest.$ac_objext conftest.$ac_ext
14101 echo "$as_me:14101: result: $cf_cv_netbsd_menu_h" >&5
14102 echo "${ECHO_T}$cf_cv_netbsd_menu_h" >&6
14104 test "$cf_cv_netbsd_menu_h" = yes &&
14105 cat >>confdefs.h <<\EOF
14106 #define HAVE_NETBSD_MENU_H 1
14112 case $cf_cv_screen in
14116 # look for curses-related libraries
14118 as_ac_Lib=`echo "ac_cv_lib_panel$cf_cv_libtype''_new_panel" | $as_tr_sh`
14119 echo "$as_me:14119: checking for new_panel in -lpanel$cf_cv_libtype" >&5
14120 echo $ECHO_N "checking for new_panel in -lpanel$cf_cv_libtype... $ECHO_C" >&6
14121 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
14122 echo $ECHO_N "(cached) $ECHO_C" >&6
14124 ac_check_lib_save_LIBS=$LIBS
14125 LIBS="-lpanel$cf_cv_libtype $LIBS"
14126 cat >conftest.$ac_ext <<_ACEOF
14127 #line 14127 "configure"
14128 #include "confdefs.h"
14130 /* Override any gcc2 internal prototype to avoid an error. */
14134 /* We use char because int might match the return type of a gcc2
14135 builtin and then its argument prototype would still apply. */
14145 rm -f conftest.$ac_objext conftest$ac_exeext
14146 if { (eval echo "$as_me:14146: \"$ac_link\"") >&5
14147 (eval $ac_link) 2>&5
14149 echo "$as_me:14149: \$? = $ac_status" >&5
14150 (exit $ac_status); } &&
14151 { ac_try='test -s conftest$ac_exeext'
14152 { (eval echo "$as_me:14152: \"$ac_try\"") >&5
14153 (eval $ac_try) 2>&5
14155 echo "$as_me:14155: \$? = $ac_status" >&5
14156 (exit $ac_status); }; }; then
14157 eval "$as_ac_Lib=yes"
14159 echo "$as_me: failed program was:" >&5
14160 cat conftest.$ac_ext >&5
14161 eval "$as_ac_Lib=no"
14163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14164 LIBS=$ac_check_lib_save_LIBS
14166 echo "$as_me:14166: result: `eval echo '${'$as_ac_Lib'}'`" >&5
14167 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
14168 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
14170 cf_upper=`echo "have_libpanel" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14172 cf_add_libs="-lpanel$cf_cv_libtype"
14173 # Filter out duplicates - this happens with badly-designed ".pc" files...
14174 for cf_add_1lib in $LIBS
14176 for cf_add_2lib in $cf_add_libs
14178 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14184 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14186 LIBS="$cf_add_libs"
14188 cat >>confdefs.h <<EOF
14189 #define $cf_upper 1
14194 as_ac_Lib=`echo "ac_cv_lib_menu$cf_cv_libtype''_menu_driver" | $as_tr_sh`
14195 echo "$as_me:14195: checking for menu_driver in -lmenu$cf_cv_libtype" >&5
14196 echo $ECHO_N "checking for menu_driver in -lmenu$cf_cv_libtype... $ECHO_C" >&6
14197 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
14198 echo $ECHO_N "(cached) $ECHO_C" >&6
14200 ac_check_lib_save_LIBS=$LIBS
14201 LIBS="-lmenu$cf_cv_libtype $LIBS"
14202 cat >conftest.$ac_ext <<_ACEOF
14203 #line 14203 "configure"
14204 #include "confdefs.h"
14206 /* Override any gcc2 internal prototype to avoid an error. */
14210 /* We use char because int might match the return type of a gcc2
14211 builtin and then its argument prototype would still apply. */
14212 char menu_driver ();
14221 rm -f conftest.$ac_objext conftest$ac_exeext
14222 if { (eval echo "$as_me:14222: \"$ac_link\"") >&5
14223 (eval $ac_link) 2>&5
14225 echo "$as_me:14225: \$? = $ac_status" >&5
14226 (exit $ac_status); } &&
14227 { ac_try='test -s conftest$ac_exeext'
14228 { (eval echo "$as_me:14228: \"$ac_try\"") >&5
14229 (eval $ac_try) 2>&5
14231 echo "$as_me:14231: \$? = $ac_status" >&5
14232 (exit $ac_status); }; }; then
14233 eval "$as_ac_Lib=yes"
14235 echo "$as_me: failed program was:" >&5
14236 cat conftest.$ac_ext >&5
14237 eval "$as_ac_Lib=no"
14239 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14240 LIBS=$ac_check_lib_save_LIBS
14242 echo "$as_me:14242: result: `eval echo '${'$as_ac_Lib'}'`" >&5
14243 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
14244 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
14246 cf_upper=`echo "have_libmenu" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14248 cf_add_libs="-lmenu$cf_cv_libtype"
14249 # Filter out duplicates - this happens with badly-designed ".pc" files...
14250 for cf_add_1lib in $LIBS
14252 for cf_add_2lib in $cf_add_libs
14254 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14260 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14262 LIBS="$cf_add_libs"
14264 cat >>confdefs.h <<EOF
14265 #define $cf_upper 1
14270 as_ac_Lib=`echo "ac_cv_lib_form$cf_cv_libtype''_form_driver" | $as_tr_sh`
14271 echo "$as_me:14271: checking for form_driver in -lform$cf_cv_libtype" >&5
14272 echo $ECHO_N "checking for form_driver in -lform$cf_cv_libtype... $ECHO_C" >&6
14273 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
14274 echo $ECHO_N "(cached) $ECHO_C" >&6
14276 ac_check_lib_save_LIBS=$LIBS
14277 LIBS="-lform$cf_cv_libtype $LIBS"
14278 cat >conftest.$ac_ext <<_ACEOF
14279 #line 14279 "configure"
14280 #include "confdefs.h"
14282 /* Override any gcc2 internal prototype to avoid an error. */
14286 /* We use char because int might match the return type of a gcc2
14287 builtin and then its argument prototype would still apply. */
14288 char form_driver ();
14297 rm -f conftest.$ac_objext conftest$ac_exeext
14298 if { (eval echo "$as_me:14298: \"$ac_link\"") >&5
14299 (eval $ac_link) 2>&5
14301 echo "$as_me:14301: \$? = $ac_status" >&5
14302 (exit $ac_status); } &&
14303 { ac_try='test -s conftest$ac_exeext'
14304 { (eval echo "$as_me:14304: \"$ac_try\"") >&5
14305 (eval $ac_try) 2>&5
14307 echo "$as_me:14307: \$? = $ac_status" >&5
14308 (exit $ac_status); }; }; then
14309 eval "$as_ac_Lib=yes"
14311 echo "$as_me: failed program was:" >&5
14312 cat conftest.$ac_ext >&5
14313 eval "$as_ac_Lib=no"
14315 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14316 LIBS=$ac_check_lib_save_LIBS
14318 echo "$as_me:14318: result: `eval echo '${'$as_ac_Lib'}'`" >&5
14319 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
14320 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
14322 cf_upper=`echo "have_libform" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14324 cf_add_libs="-lform$cf_cv_libtype"
14325 # Filter out duplicates - this happens with badly-designed ".pc" files...
14326 for cf_add_1lib in $LIBS
14328 for cf_add_2lib in $cf_add_libs
14330 if test "x$cf_add_1lib" = "x$cf_add_2lib"
14336 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
14338 LIBS="$cf_add_libs"
14340 cat >>confdefs.h <<EOF
14341 #define $cf_upper 1
14346 # look for curses-related headers
14357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14358 echo "$as_me:14358: checking for $ac_header" >&5
14359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14360 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14361 echo $ECHO_N "(cached) $ECHO_C" >&6
14363 cat >conftest.$ac_ext <<_ACEOF
14364 #line 14364 "configure"
14365 #include "confdefs.h"
14366 #include <$ac_header>
14368 if { (eval echo "$as_me:14368: \"$ac_cpp conftest.$ac_ext\"") >&5
14369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14371 egrep -v '^ *\+' conftest.er1 >conftest.err
14373 cat conftest.err >&5
14374 echo "$as_me:14374: \$? = $ac_status" >&5
14375 (exit $ac_status); } >/dev/null; then
14376 if test -s conftest.err; then
14377 ac_cpp_err=$ac_c_preproc_warn_flag
14384 if test -z "$ac_cpp_err"; then
14385 eval "$as_ac_Header=yes"
14387 echo "$as_me: failed program was:" >&5
14388 cat conftest.$ac_ext >&5
14389 eval "$as_ac_Header=no"
14391 rm -f conftest.err conftest.$ac_ext
14393 echo "$as_me:14393: result: `eval echo '${'$as_ac_Header'}'`" >&5
14394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14396 cat >>confdefs.h <<EOF
14397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14406 echo "$as_me:14406: checking for ANSI C header files" >&5
14407 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
14408 if test "${ac_cv_header_stdc+set}" = set; then
14409 echo $ECHO_N "(cached) $ECHO_C" >&6
14411 cat >conftest.$ac_ext <<_ACEOF
14412 #line 14412 "configure"
14413 #include "confdefs.h"
14414 #include <stdlib.h>
14415 #include <stdarg.h>
14416 #include <string.h>
14420 if { (eval echo "$as_me:14420: \"$ac_cpp conftest.$ac_ext\"") >&5
14421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14423 egrep -v '^ *\+' conftest.er1 >conftest.err
14425 cat conftest.err >&5
14426 echo "$as_me:14426: \$? = $ac_status" >&5
14427 (exit $ac_status); } >/dev/null; then
14428 if test -s conftest.err; then
14429 ac_cpp_err=$ac_c_preproc_warn_flag
14436 if test -z "$ac_cpp_err"; then
14437 ac_cv_header_stdc=yes
14439 echo "$as_me: failed program was:" >&5
14440 cat conftest.$ac_ext >&5
14441 ac_cv_header_stdc=no
14443 rm -f conftest.err conftest.$ac_ext
14445 if test $ac_cv_header_stdc = yes; then
14446 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14447 cat >conftest.$ac_ext <<_ACEOF
14448 #line 14448 "configure"
14449 #include "confdefs.h"
14450 #include <string.h>
14453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14454 egrep "memchr" >/dev/null 2>&1; then
14457 ac_cv_header_stdc=no
14463 if test $ac_cv_header_stdc = yes; then
14464 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14465 cat >conftest.$ac_ext <<_ACEOF
14466 #line 14466 "configure"
14467 #include "confdefs.h"
14468 #include <stdlib.h>
14471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14472 egrep "free" >/dev/null 2>&1; then
14475 ac_cv_header_stdc=no
14481 if test $ac_cv_header_stdc = yes; then
14482 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14483 if test "$cross_compiling" = yes; then
14486 cat >conftest.$ac_ext <<_ACEOF
14487 #line 14487 "configure"
14488 #include "confdefs.h"
14490 #if ((' ' & 0x0FF) == 0x020)
14491 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14492 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14494 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14495 || ('j' <= (c) && (c) <= 'r') \
14496 || ('s' <= (c) && (c) <= 'z'))
14497 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14500 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14505 for (i = 0; i < 256; i++)
14506 if (XOR (islower (i), ISLOWER (i))
14507 || toupper (i) != TOUPPER (i))
14508 $ac_main_return(2);
14509 $ac_main_return (0);
14512 rm -f conftest$ac_exeext
14513 if { (eval echo "$as_me:14513: \"$ac_link\"") >&5
14514 (eval $ac_link) 2>&5
14516 echo "$as_me:14516: \$? = $ac_status" >&5
14517 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14518 { (eval echo "$as_me:14518: \"$ac_try\"") >&5
14519 (eval $ac_try) 2>&5
14521 echo "$as_me:14521: \$? = $ac_status" >&5
14522 (exit $ac_status); }; }; then
14525 echo "$as_me: program exited with status $ac_status" >&5
14526 echo "$as_me: failed program was:" >&5
14527 cat conftest.$ac_ext >&5
14528 ac_cv_header_stdc=no
14530 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14534 echo "$as_me:14534: result: $ac_cv_header_stdc" >&5
14535 echo "${ECHO_T}$ac_cv_header_stdc" >&6
14536 if test $ac_cv_header_stdc = yes; then
14538 cat >>confdefs.h <<\EOF
14539 #define STDC_HEADERS 1
14544 echo "$as_me:14544: checking whether time.h and sys/time.h may both be included" >&5
14545 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
14546 if test "${ac_cv_header_time+set}" = set; then
14547 echo $ECHO_N "(cached) $ECHO_C" >&6
14549 cat >conftest.$ac_ext <<_ACEOF
14550 #line 14550 "configure"
14551 #include "confdefs.h"
14552 #include <sys/types.h>
14553 #include <sys/time.h>
14559 if ((struct tm *) 0)
14565 rm -f conftest.$ac_objext
14566 if { (eval echo "$as_me:14566: \"$ac_compile\"") >&5
14567 (eval $ac_compile) 2>&5
14569 echo "$as_me:14569: \$? = $ac_status" >&5
14570 (exit $ac_status); } &&
14571 { ac_try='test -s conftest.$ac_objext'
14572 { (eval echo "$as_me:14572: \"$ac_try\"") >&5
14573 (eval $ac_try) 2>&5
14575 echo "$as_me:14575: \$? = $ac_status" >&5
14576 (exit $ac_status); }; }; then
14577 ac_cv_header_time=yes
14579 echo "$as_me: failed program was:" >&5
14580 cat conftest.$ac_ext >&5
14581 ac_cv_header_time=no
14583 rm -f conftest.$ac_objext conftest.$ac_ext
14585 echo "$as_me:14585: result: $ac_cv_header_time" >&5
14586 echo "${ECHO_T}$ac_cv_header_time" >&6
14587 if test $ac_cv_header_time = yes; then
14589 cat >>confdefs.h <<\EOF
14590 #define TIME_WITH_SYS_TIME 1
14607 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14608 echo "$as_me:14608: checking for $ac_header" >&5
14609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14611 echo $ECHO_N "(cached) $ECHO_C" >&6
14613 cat >conftest.$ac_ext <<_ACEOF
14614 #line 14614 "configure"
14615 #include "confdefs.h"
14616 #include <$ac_header>
14618 if { (eval echo "$as_me:14618: \"$ac_cpp conftest.$ac_ext\"") >&5
14619 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14621 egrep -v '^ *\+' conftest.er1 >conftest.err
14623 cat conftest.err >&5
14624 echo "$as_me:14624: \$? = $ac_status" >&5
14625 (exit $ac_status); } >/dev/null; then
14626 if test -s conftest.err; then
14627 ac_cpp_err=$ac_c_preproc_warn_flag
14634 if test -z "$ac_cpp_err"; then
14635 eval "$as_ac_Header=yes"
14637 echo "$as_me: failed program was:" >&5
14638 cat conftest.$ac_ext >&5
14639 eval "$as_ac_Header=no"
14641 rm -f conftest.err conftest.$ac_ext
14643 echo "$as_me:14643: result: `eval echo '${'$as_ac_Header'}'`" >&5
14644 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14646 cat >>confdefs.h <<EOF
14647 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14653 for ac_header in unistd.h getopt.h
14655 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14656 echo "$as_me:14656: checking for $ac_header" >&5
14657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14659 echo $ECHO_N "(cached) $ECHO_C" >&6
14661 cat >conftest.$ac_ext <<_ACEOF
14662 #line 14662 "configure"
14663 #include "confdefs.h"
14664 #include <$ac_header>
14666 if { (eval echo "$as_me:14666: \"$ac_cpp conftest.$ac_ext\"") >&5
14667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14669 egrep -v '^ *\+' conftest.er1 >conftest.err
14671 cat conftest.err >&5
14672 echo "$as_me:14672: \$? = $ac_status" >&5
14673 (exit $ac_status); } >/dev/null; then
14674 if test -s conftest.err; then
14675 ac_cpp_err=$ac_c_preproc_warn_flag
14682 if test -z "$ac_cpp_err"; then
14683 eval "$as_ac_Header=yes"
14685 echo "$as_me: failed program was:" >&5
14686 cat conftest.$ac_ext >&5
14687 eval "$as_ac_Header=no"
14689 rm -f conftest.err conftest.$ac_ext
14691 echo "$as_me:14691: result: `eval echo '${'$as_ac_Header'}'`" >&5
14692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14694 cat >>confdefs.h <<EOF
14695 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14701 echo "$as_me:14701: checking for header declaring getopt variables" >&5
14702 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
14703 if test "${cf_cv_getopt_header+set}" = set; then
14704 echo $ECHO_N "(cached) $ECHO_C" >&6
14707 cf_cv_getopt_header=none
14708 for cf_header in stdio.h stdlib.h unistd.h getopt.h
14710 cat >conftest.$ac_ext <<_ACEOF
14711 #line 14711 "configure"
14712 #include "confdefs.h"
14714 #include <$cf_header>
14718 int x = optind; char *y = optarg
14723 rm -f conftest.$ac_objext
14724 if { (eval echo "$as_me:14724: \"$ac_compile\"") >&5
14725 (eval $ac_compile) 2>&5
14727 echo "$as_me:14727: \$? = $ac_status" >&5
14728 (exit $ac_status); } &&
14729 { ac_try='test -s conftest.$ac_objext'
14730 { (eval echo "$as_me:14730: \"$ac_try\"") >&5
14731 (eval $ac_try) 2>&5
14733 echo "$as_me:14733: \$? = $ac_status" >&5
14734 (exit $ac_status); }; }; then
14735 cf_cv_getopt_header=$cf_header
14738 echo "$as_me: failed program was:" >&5
14739 cat conftest.$ac_ext >&5
14741 rm -f conftest.$ac_objext conftest.$ac_ext
14745 echo "$as_me:14745: result: $cf_cv_getopt_header" >&5
14746 echo "${ECHO_T}$cf_cv_getopt_header" >&6
14747 if test $cf_cv_getopt_header != none ; then
14749 cat >>confdefs.h <<\EOF
14750 #define HAVE_GETOPT_HEADER 1
14754 if test $cf_cv_getopt_header = getopt.h ; then
14756 cat >>confdefs.h <<\EOF
14757 #define NEED_GETOPT_H 1
14767 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14768 echo "$as_me:14768: checking for $ac_func" >&5
14769 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14770 if eval "test \"\${$as_ac_var+set}\" = set"; then
14771 echo $ECHO_N "(cached) $ECHO_C" >&6
14773 cat >conftest.$ac_ext <<_ACEOF
14774 #line 14774 "configure"
14775 #include "confdefs.h"
14776 /* System header to define __stub macros and hopefully few prototypes,
14777 which can conflict with char $ac_func (); below. */
14778 #include <assert.h>
14779 /* Override any gcc2 internal prototype to avoid an error. */
14783 /* We use char because int might match the return type of a gcc2
14784 builtin and then its argument prototype would still apply. */
14791 /* The GNU C library defines this for functions which it implements
14792 to always fail with ENOSYS. Some functions are actually named
14793 something starting with __ and the normal name is an alias. */
14794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14797 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
14804 rm -f conftest.$ac_objext conftest$ac_exeext
14805 if { (eval echo "$as_me:14805: \"$ac_link\"") >&5
14806 (eval $ac_link) 2>&5
14808 echo "$as_me:14808: \$? = $ac_status" >&5
14809 (exit $ac_status); } &&
14810 { ac_try='test -s conftest$ac_exeext'
14811 { (eval echo "$as_me:14811: \"$ac_try\"") >&5
14812 (eval $ac_try) 2>&5
14814 echo "$as_me:14814: \$? = $ac_status" >&5
14815 (exit $ac_status); }; }; then
14816 eval "$as_ac_var=yes"
14818 echo "$as_me: failed program was:" >&5
14819 cat conftest.$ac_ext >&5
14820 eval "$as_ac_var=no"
14822 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14824 echo "$as_me:14824: result: `eval echo '${'$as_ac_var'}'`" >&5
14825 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14826 if test `eval echo '${'$as_ac_var'}'` = yes; then
14827 cat >>confdefs.h <<EOF
14828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14834 if test "x$ac_cv_func_getopt" = xno; then
14835 { { echo "$as_me:14835: error: getopt is required for building programs" >&5
14836 echo "$as_me: error: getopt is required for building programs" >&2;}
14837 { (exit 1); exit 1; }; }
14840 if test "$cf_enable_widec" = yes; then
14853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14854 echo "$as_me:14854: checking for $ac_func" >&5
14855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14856 if eval "test \"\${$as_ac_var+set}\" = set"; then
14857 echo $ECHO_N "(cached) $ECHO_C" >&6
14859 cat >conftest.$ac_ext <<_ACEOF
14860 #line 14860 "configure"
14861 #include "confdefs.h"
14862 /* System header to define __stub macros and hopefully few prototypes,
14863 which can conflict with char $ac_func (); below. */
14864 #include <assert.h>
14865 /* Override any gcc2 internal prototype to avoid an error. */
14869 /* We use char because int might match the return type of a gcc2
14870 builtin and then its argument prototype would still apply. */
14877 /* The GNU C library defines this for functions which it implements
14878 to always fail with ENOSYS. Some functions are actually named
14879 something starting with __ and the normal name is an alias. */
14880 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14883 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
14890 rm -f conftest.$ac_objext conftest$ac_exeext
14891 if { (eval echo "$as_me:14891: \"$ac_link\"") >&5
14892 (eval $ac_link) 2>&5
14894 echo "$as_me:14894: \$? = $ac_status" >&5
14895 (exit $ac_status); } &&
14896 { ac_try='test -s conftest$ac_exeext'
14897 { (eval echo "$as_me:14897: \"$ac_try\"") >&5
14898 (eval $ac_try) 2>&5
14900 echo "$as_me:14900: \$? = $ac_status" >&5
14901 (exit $ac_status); }; }; then
14902 eval "$as_ac_var=yes"
14904 echo "$as_me: failed program was:" >&5
14905 cat conftest.$ac_ext >&5
14906 eval "$as_ac_var=no"
14908 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14910 echo "$as_me:14910: result: `eval echo '${'$as_ac_var'}'`" >&5
14911 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14912 if test `eval echo '${'$as_ac_var'}'` = yes; then
14913 cat >>confdefs.h <<EOF
14914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14922 echo "$as_me:14922: checking definition to turn on extended curses functions" >&5
14923 echo $ECHO_N "checking definition to turn on extended curses functions... $ECHO_C" >&6
14924 if test "${cf_cv_need_xopen_extension+set}" = set; then
14925 echo $ECHO_N "(cached) $ECHO_C" >&6
14928 cf_cv_need_xopen_extension=unknown
14929 cat >conftest.$ac_ext <<_ACEOF
14930 #line 14930 "configure"
14931 #include "confdefs.h"
14933 #include <stdlib.h>
14934 #include <${cf_cv_ncurses_header:-curses.h}>
14939 #if defined(NCURSES_VERSION_PATCH)
14940 #if (NCURSES_VERSION_PATCH < 20100501) && (NCURSES_VERSION_PATCH >= 20100403)
14944 #ifdef NCURSES_VERSION
14946 int check2 = curs_set((int)sizeof(check));
14948 long x = winnstr(stdscr, "", 0);
14950 getbegyx(stdscr, y1, x1)
14955 rm -f conftest.$ac_objext conftest$ac_exeext
14956 if { (eval echo "$as_me:14956: \"$ac_link\"") >&5
14957 (eval $ac_link) 2>&5
14959 echo "$as_me:14959: \$? = $ac_status" >&5
14960 (exit $ac_status); } &&
14961 { ac_try='test -s conftest$ac_exeext'
14962 { (eval echo "$as_me:14962: \"$ac_try\"") >&5
14963 (eval $ac_try) 2>&5
14965 echo "$as_me:14965: \$? = $ac_status" >&5
14966 (exit $ac_status); }; }; then
14967 cf_cv_need_xopen_extension=none
14969 echo "$as_me: failed program was:" >&5
14970 cat conftest.$ac_ext >&5
14972 for cf_try_xopen_extension in _XOPEN_SOURCE_EXTENDED NCURSES_WIDECHAR
14974 cat >conftest.$ac_ext <<_ACEOF
14975 #line 14975 "configure"
14976 #include "confdefs.h"
14978 #define $cf_try_xopen_extension 1
14979 #include <stdlib.h>
14980 #include <${cf_cv_ncurses_header:-curses.h}>
14985 #ifdef NCURSES_VERSION
14987 int check2 = curs_set((int)sizeof(check));
14989 long x = winnstr(stdscr, "", 0);
14991 getbegyx(stdscr, y1, x1)
14996 rm -f conftest.$ac_objext conftest$ac_exeext
14997 if { (eval echo "$as_me:14997: \"$ac_link\"") >&5
14998 (eval $ac_link) 2>&5
15000 echo "$as_me:15000: \$? = $ac_status" >&5
15001 (exit $ac_status); } &&
15002 { ac_try='test -s conftest$ac_exeext'
15003 { (eval echo "$as_me:15003: \"$ac_try\"") >&5
15004 (eval $ac_try) 2>&5
15006 echo "$as_me:15006: \$? = $ac_status" >&5
15007 (exit $ac_status); }; }; then
15008 cf_cv_need_xopen_extension=$cf_try_xopen_extension; break
15010 echo "$as_me: failed program was:" >&5
15011 cat conftest.$ac_ext >&5
15013 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15017 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15020 echo "$as_me:15020: result: $cf_cv_need_xopen_extension" >&5
15021 echo "${ECHO_T}$cf_cv_need_xopen_extension" >&6
15023 case $cf_cv_need_xopen_extension in
15025 CPPFLAGS="$CPPFLAGS -D$cf_cv_need_xopen_extension"
15029 echo "$as_me:15029: checking for term.h" >&5
15030 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
15031 if test "${cf_cv_term_header+set}" = set; then
15032 echo $ECHO_N "(cached) $ECHO_C" >&6
15035 # If we found <ncurses/curses.h>, look for <ncurses/term.h>, but always look
15036 # for <term.h> if we do not find the variant.
15038 cf_header_list="term.h ncurses/term.h ncursesw/term.h"
15040 case ${cf_cv_ncurses_header:-curses.h} in
15042 cf_header_item=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`term.h
15043 cf_header_list="$cf_header_item $cf_header_list"
15047 for cf_header in $cf_header_list
15049 cat >conftest.$ac_ext <<_ACEOF
15050 #line 15050 "configure"
15051 #include "confdefs.h"
15053 #include <${cf_cv_ncurses_header:-curses.h}>
15054 #include <${cf_header}>
15063 rm -f conftest.$ac_objext
15064 if { (eval echo "$as_me:15064: \"$ac_compile\"") >&5
15065 (eval $ac_compile) 2>&5
15067 echo "$as_me:15067: \$? = $ac_status" >&5
15068 (exit $ac_status); } &&
15069 { ac_try='test -s conftest.$ac_objext'
15070 { (eval echo "$as_me:15070: \"$ac_try\"") >&5
15071 (eval $ac_try) 2>&5
15073 echo "$as_me:15073: \$? = $ac_status" >&5
15074 (exit $ac_status); }; }; then
15075 cf_cv_term_header=$cf_header
15078 echo "$as_me: failed program was:" >&5
15079 cat conftest.$ac_ext >&5
15080 cf_cv_term_header=no
15082 rm -f conftest.$ac_objext conftest.$ac_ext
15085 case $cf_cv_term_header in
15087 # If curses is ncurses, some packagers still mess it up by trying to make
15088 # us use GNU termcap. This handles the most common case.
15089 for cf_header in ncurses/term.h ncursesw/term.h
15091 cat >conftest.$ac_ext <<_ACEOF
15092 #line 15092 "configure"
15093 #include "confdefs.h"
15095 #include <${cf_cv_ncurses_header:-curses.h}>
15096 #ifdef NCURSES_VERSION
15097 #include <${cf_header}>
15109 rm -f conftest.$ac_objext
15110 if { (eval echo "$as_me:15110: \"$ac_compile\"") >&5
15111 (eval $ac_compile) 2>&5
15113 echo "$as_me:15113: \$? = $ac_status" >&5
15114 (exit $ac_status); } &&
15115 { ac_try='test -s conftest.$ac_objext'
15116 { (eval echo "$as_me:15116: \"$ac_try\"") >&5
15117 (eval $ac_try) 2>&5
15119 echo "$as_me:15119: \$? = $ac_status" >&5
15120 (exit $ac_status); }; }; then
15121 cf_cv_term_header=$cf_header
15124 echo "$as_me: failed program was:" >&5
15125 cat conftest.$ac_ext >&5
15126 cf_cv_term_header=no
15128 rm -f conftest.$ac_objext conftest.$ac_ext
15134 echo "$as_me:15134: result: $cf_cv_term_header" >&5
15135 echo "${ECHO_T}$cf_cv_term_header" >&6
15137 case $cf_cv_term_header in
15140 cat >>confdefs.h <<\EOF
15141 #define HAVE_TERM_H 1
15147 cat >>confdefs.h <<\EOF
15148 #define HAVE_NCURSES_TERM_H 1
15154 cat >>confdefs.h <<\EOF
15155 #define HAVE_NCURSESW_TERM_H 1
15161 echo "$as_me:15161: checking for unctrl.h" >&5
15162 echo $ECHO_N "checking for unctrl.h... $ECHO_C" >&6
15163 if test "${cf_cv_unctrl_header+set}" = set; then
15164 echo $ECHO_N "(cached) $ECHO_C" >&6
15167 # If we found <ncurses/curses.h>, look for <ncurses/unctrl.h>, but always look
15168 # for <unctrl.h> if we do not find the variant.
15170 cf_header_list="unctrl.h ncurses/unctrl.h ncursesw/unctrl.h"
15172 case ${cf_cv_ncurses_header:-curses.h} in
15174 cf_header_item=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`unctrl.h
15175 cf_header_list="$cf_header_item $cf_header_list"
15179 for cf_header in $cf_header_list
15181 cat >conftest.$ac_ext <<_ACEOF
15182 #line 15182 "configure"
15183 #include "confdefs.h"
15185 #include <${cf_cv_ncurses_header:-curses.h}>
15186 #include <${cf_header}>
15195 rm -f conftest.$ac_objext
15196 if { (eval echo "$as_me:15196: \"$ac_compile\"") >&5
15197 (eval $ac_compile) 2>&5
15199 echo "$as_me:15199: \$? = $ac_status" >&5
15200 (exit $ac_status); } &&
15201 { ac_try='test -s conftest.$ac_objext'
15202 { (eval echo "$as_me:15202: \"$ac_try\"") >&5
15203 (eval $ac_try) 2>&5
15205 echo "$as_me:15205: \$? = $ac_status" >&5
15206 (exit $ac_status); }; }; then
15207 cf_cv_unctrl_header=$cf_header
15210 echo "$as_me: failed program was:" >&5
15211 cat conftest.$ac_ext >&5
15212 cf_cv_unctrl_header=no
15214 rm -f conftest.$ac_objext conftest.$ac_ext
15218 echo "$as_me:15218: result: $cf_cv_unctrl_header" >&5
15219 echo "${ECHO_T}$cf_cv_unctrl_header" >&6
15221 case $cf_cv_unctrl_header in
15223 { echo "$as_me:15223: WARNING: unctrl.h header not found" >&5
15224 echo "$as_me: WARNING: unctrl.h header not found" >&2;}
15228 case $cf_cv_unctrl_header in
15231 cat >>confdefs.h <<\EOF
15232 #define HAVE_UNCTRL_H 1
15238 cat >>confdefs.h <<\EOF
15239 #define HAVE_NCURSES_UNCTRL_H 1
15243 (ncursesw/unctrl.h)
15245 cat >>confdefs.h <<\EOF
15246 #define HAVE_NCURSESW_UNCTRL_H 1
15254 assume_default_colors \
15264 init_extended_color \
15283 use_default_colors \
15285 use_extended_names \
15299 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15301 echo "$as_me:15301: checking for ${cf_func}" >&5
15302 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
15304 echo "${as_me:-configure}:15304: testing ${cf_func} ..." 1>&5
15306 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
15307 echo $ECHO_N "(cached) $ECHO_C" >&6
15310 eval cf_result='$ac_cv_func_'$cf_func
15311 if test ".$cf_result" != ".no"; then
15312 cat >conftest.$ac_ext <<_ACEOF
15313 #line 15313 "configure"
15314 #include "confdefs.h"
15316 #ifdef HAVE_XCURSES
15317 #include <xcurses.h>
15318 char * XCursesProgramName = "test";
15320 #include <${cf_cv_ncurses_header:-curses.h}>
15321 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
15322 #include <ncursesw/term.h>
15323 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
15324 #include <ncurses/term.h>
15325 #elif defined(HAVE_TERM_H)
15335 long foo = (long)(&${cf_func});
15336 fprintf(stderr, "testing linkage of $cf_func:%p\n", foo);
15337 if (foo + 1234 > 5678)
15338 ${cf_cv_main_return:-return}(foo);
15345 rm -f conftest.$ac_objext conftest$ac_exeext
15346 if { (eval echo "$as_me:15346: \"$ac_link\"") >&5
15347 (eval $ac_link) 2>&5
15349 echo "$as_me:15349: \$? = $ac_status" >&5
15350 (exit $ac_status); } &&
15351 { ac_try='test -s conftest$ac_exeext'
15352 { (eval echo "$as_me:15352: \"$ac_try\"") >&5
15353 (eval $ac_try) 2>&5
15355 echo "$as_me:15355: \$? = $ac_status" >&5
15356 (exit $ac_status); }; }; then
15359 echo "$as_me: failed program was:" >&5
15360 cat conftest.$ac_ext >&5
15363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15365 eval 'cf_cv_func_'$cf_func'=$cf_result'
15369 # use the computed/retrieved cache-value:
15370 eval 'cf_result=$cf_cv_func_'$cf_func
15371 echo "$as_me:15371: result: $cf_result" >&5
15372 echo "${ECHO_T}$cf_result" >&6
15373 if test $cf_result != no; then
15374 cat >>confdefs.h <<EOF
15375 #define HAVE_${cf_tr_func} 1
15381 for cf_func in tputs
15384 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15386 echo "$as_me:15386: checking for ${cf_func}" >&5
15387 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
15389 echo "${as_me:-configure}:15389: testing ${cf_func} ..." 1>&5
15391 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
15392 echo $ECHO_N "(cached) $ECHO_C" >&6
15395 eval cf_result='$ac_cv_func_'$cf_func
15396 if test ".$cf_result" != ".no"; then
15397 cat >conftest.$ac_ext <<_ACEOF
15398 #line 15398 "configure"
15399 #include "confdefs.h"
15401 #ifdef HAVE_XCURSES
15402 #include <xcurses.h>
15403 char * XCursesProgramName = "test";
15405 #include <${cf_cv_ncurses_header:-curses.h}>
15406 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
15407 #include <ncursesw/term.h>
15408 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
15409 #include <ncurses/term.h>
15410 #elif defined(HAVE_TERM_H)
15420 long foo = (long)(&${cf_func});
15421 fprintf(stderr, "testing linkage of $cf_func:%p\n", foo);
15422 if (foo + 1234 > 5678)
15423 ${cf_cv_main_return:-return}(foo);
15430 rm -f conftest.$ac_objext conftest$ac_exeext
15431 if { (eval echo "$as_me:15431: \"$ac_link\"") >&5
15432 (eval $ac_link) 2>&5
15434 echo "$as_me:15434: \$? = $ac_status" >&5
15435 (exit $ac_status); } &&
15436 { ac_try='test -s conftest$ac_exeext'
15437 { (eval echo "$as_me:15437: \"$ac_try\"") >&5
15438 (eval $ac_try) 2>&5
15440 echo "$as_me:15440: \$? = $ac_status" >&5
15441 (exit $ac_status); }; }; then
15444 echo "$as_me: failed program was:" >&5
15445 cat conftest.$ac_ext >&5
15448 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15450 eval 'cf_cv_func_'$cf_func'=$cf_result'
15454 # use the computed/retrieved cache-value:
15455 eval 'cf_result=$cf_cv_func_'$cf_func
15456 echo "$as_me:15456: result: $cf_result" >&5
15457 echo "${ECHO_T}$cf_result" >&6
15458 if test $cf_result != no; then
15459 cat >>confdefs.h <<EOF
15460 #define HAVE_${cf_tr_func} 1
15466 if test x$cf_cv_func_tputs = xyes
15469 for cf_arg in int char
15471 for cf_ret in int void
15473 if test $cf_ret = void
15475 cf_return="/* nothing */"
15477 cf_return="return value"
15479 cat >conftest.$ac_ext <<_ACEOF
15480 #line 15480 "configure"
15481 #include "confdefs.h"
15483 #include <${cf_cv_ncurses_header:-curses.h}>
15484 #include <$cf_cv_term_header>
15486 static $cf_ret outc($cf_arg value) { $cf_return; }
15492 tputs("hello", 0, outc);
15493 ${cf_cv_main_return:-return}(0);
15499 rm -f conftest.$ac_objext
15500 if { (eval echo "$as_me:15500: \"$ac_compile\"") >&5
15501 (eval $ac_compile) 2>&5
15503 echo "$as_me:15503: \$? = $ac_status" >&5
15504 (exit $ac_status); } &&
15505 { ac_try='test -s conftest.$ac_objext'
15506 { (eval echo "$as_me:15506: \"$ac_try\"") >&5
15507 (eval $ac_try) 2>&5
15509 echo "$as_me:15509: \$? = $ac_status" >&5
15510 (exit $ac_status); }; }; then
15512 test -n "$verbose" && echo " prototype $cf_ret func($cf_arg value)" 1>&6
15514 echo "${as_me:-configure}:15514: testing prototype $cf_ret func($cf_arg value) ..." 1>&5
15516 cat >>confdefs.h <<EOF
15517 #define TPUTS_ARG $cf_arg
15518 #define TPUTS_PROTO(func,value) $cf_ret func(TPUTS_ARG value)
15519 #define TPUTS_RETURN(value) $cf_return
15525 echo "$as_me: failed program was:" >&5
15526 cat conftest.$ac_ext >&5
15528 rm -f conftest.$ac_objext conftest.$ac_ext
15530 test $cf_done = yes && break
15534 echo "$as_me:15534: checking for ncurses extended functions" >&5
15535 echo $ECHO_N "checking for ncurses extended functions... $ECHO_C" >&6
15536 if test "${cf_cv_ncurses_ext_funcs+set}" = set; then
15537 echo $ECHO_N "(cached) $ECHO_C" >&6
15540 cat >conftest.$ac_ext <<_ACEOF
15541 #line 15541 "configure"
15542 #include "confdefs.h"
15544 #include <${cf_cv_ncurses_header:-curses.h}>
15549 int x = NCURSES_EXT_FUNCS
15555 rm -f conftest.$ac_objext
15556 if { (eval echo "$as_me:15556: \"$ac_compile\"") >&5
15557 (eval $ac_compile) 2>&5
15559 echo "$as_me:15559: \$? = $ac_status" >&5
15560 (exit $ac_status); } &&
15561 { ac_try='test -s conftest.$ac_objext'
15562 { (eval echo "$as_me:15562: \"$ac_try\"") >&5
15563 (eval $ac_try) 2>&5
15565 echo "$as_me:15565: \$? = $ac_status" >&5
15566 (exit $ac_status); }; }; then
15567 cf_cv_ncurses_ext_funcs=defined
15569 echo "$as_me: failed program was:" >&5
15570 cat conftest.$ac_ext >&5
15572 cat >conftest.$ac_ext <<_ACEOF
15573 #line 15573 "configure"
15574 #include "confdefs.h"
15576 #include <${cf_cv_ncurses_header:-curses.h}>
15581 (void) assume_default_colors (0, 0);
15582 (void) curses_version ();
15583 (void) define_key (0, 0);
15584 (void) is_term_resized (0, 0);
15585 (void) key_defined (0);
15586 (void) keybound (0, 0);
15587 (void) keyok (0, 0);
15588 (void) resize_term (0, 0);
15589 (void) resizeterm (0, 0);
15590 (void) use_default_colors ();
15591 (void) use_extended_names (0);
15592 (void) wresize (0, 0, 0);
15597 rm -f conftest.$ac_objext conftest$ac_exeext
15598 if { (eval echo "$as_me:15598: \"$ac_link\"") >&5
15599 (eval $ac_link) 2>&5
15601 echo "$as_me:15601: \$? = $ac_status" >&5
15602 (exit $ac_status); } &&
15603 { ac_try='test -s conftest$ac_exeext'
15604 { (eval echo "$as_me:15604: \"$ac_try\"") >&5
15605 (eval $ac_try) 2>&5
15607 echo "$as_me:15607: \$? = $ac_status" >&5
15608 (exit $ac_status); }; }; then
15609 cf_cv_ncurses_ext_funcs=yes
15611 echo "$as_me: failed program was:" >&5
15612 cat conftest.$ac_ext >&5
15613 cf_cv_ncurses_ext_funcs=no
15615 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15618 rm -f conftest.$ac_objext conftest.$ac_ext
15621 echo "$as_me:15621: result: $cf_cv_ncurses_ext_funcs" >&5
15622 echo "${ECHO_T}$cf_cv_ncurses_ext_funcs" >&6
15623 test "$cf_cv_ncurses_ext_funcs" = yes &&
15624 cat >>confdefs.h <<\EOF
15625 #define NCURSES_EXT_FUNCS 1
15628 if test "$cf_enable_widec" = yes
15630 # workaround for systems with ncurses before 20111029, due to change of
15631 # feature test macro from _XPG5 to _XOPEN_SOURCE
15632 if test -n "$cf_cv_ncurses_version" && test "x$cf_cv_ncurses_version" != xno
15635 echo "$as_me:15635: checking if _XPG5 should be defined to enable wide-characters" >&5
15636 echo $ECHO_N "checking if _XPG5 should be defined to enable wide-characters... $ECHO_C" >&6
15638 cat >conftest.$ac_ext <<_ACEOF
15639 #line 15639 "configure"
15640 #include "confdefs.h"
15642 #include <${cf_cv_ncurses_header:-curses.h}>
15651 rm -f conftest.$ac_objext
15652 if { (eval echo "$as_me:15652: \"$ac_compile\"") >&5
15653 (eval $ac_compile) 2>&5
15655 echo "$as_me:15655: \$? = $ac_status" >&5
15656 (exit $ac_status); } &&
15657 { ac_try='test -s conftest.$ac_objext'
15658 { (eval echo "$as_me:15658: \"$ac_try\"") >&5
15659 (eval $ac_try) 2>&5
15661 echo "$as_me:15661: \$? = $ac_status" >&5
15662 (exit $ac_status); }; }; then
15665 echo "$as_me: failed program was:" >&5
15666 cat conftest.$ac_ext >&5
15667 cf_save_cppflags="$CPPFLAGS"
15668 CPPFLAGS="$CPPFLAGS -D_XPG5"
15669 cat >conftest.$ac_ext <<_ACEOF
15670 #line 15670 "configure"
15671 #include "confdefs.h"
15673 #include <${cf_cv_ncurses_header:-curses.h}>
15682 rm -f conftest.$ac_objext
15683 if { (eval echo "$as_me:15683: \"$ac_compile\"") >&5
15684 (eval $ac_compile) 2>&5
15686 echo "$as_me:15686: \$? = $ac_status" >&5
15687 (exit $ac_status); } &&
15688 { ac_try='test -s conftest.$ac_objext'
15689 { (eval echo "$as_me:15689: \"$ac_try\"") >&5
15690 (eval $ac_try) 2>&5
15692 echo "$as_me:15692: \$? = $ac_status" >&5
15693 (exit $ac_status); }; }; then
15696 echo "$as_me: failed program was:" >&5
15697 cat conftest.$ac_ext >&5
15699 rm -f conftest.$ac_objext conftest.$ac_ext
15700 CPPFLAGS="$cf_save_cppflags"
15702 rm -f conftest.$ac_objext conftest.$ac_ext
15703 echo "$as_me:15703: result: $cf_define_xpg5" >&5
15704 echo "${ECHO_T}$cf_define_xpg5" >&6
15706 if test "$cf_define_xpg5" = yes
15708 CPPFLAGS="$CPPFLAGS -D_XPG5"
15712 echo "$as_me:15712: checking for wide-character functions" >&5
15713 echo $ECHO_N "checking for wide-character functions... $ECHO_C" >&6
15714 if test "${cf_cv_widechar_funcs+set}" = set; then
15715 echo $ECHO_N "(cached) $ECHO_C" >&6
15718 cat >conftest.$ac_ext <<_ACEOF
15719 #line 15719 "configure"
15720 #include "confdefs.h"
15722 #include <${cf_cv_ncurses_header:-curses.h}>
15727 static wchar_t src_wchar[2];
15728 static cchar_t dst_cchar;
15729 setcchar(&dst_cchar, src_wchar, A_NORMAL, 0, (void *) 0);
15735 rm -f conftest.$ac_objext conftest$ac_exeext
15736 if { (eval echo "$as_me:15736: \"$ac_link\"") >&5
15737 (eval $ac_link) 2>&5
15739 echo "$as_me:15739: \$? = $ac_status" >&5
15740 (exit $ac_status); } &&
15741 { ac_try='test -s conftest$ac_exeext'
15742 { (eval echo "$as_me:15742: \"$ac_try\"") >&5
15743 (eval $ac_try) 2>&5
15745 echo "$as_me:15745: \$? = $ac_status" >&5
15746 (exit $ac_status); }; }; then
15747 cf_cv_widechar_funcs=yes
15749 echo "$as_me: failed program was:" >&5
15750 cat conftest.$ac_ext >&5
15751 cf_cv_widechar_funcs=no
15753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15756 echo "$as_me:15756: result: $cf_cv_widechar_funcs" >&5
15757 echo "${ECHO_T}$cf_cv_widechar_funcs" >&6
15758 if test "$cf_cv_widechar_funcs" != no ; then
15760 cat >>confdefs.h <<\EOF
15761 #define USE_WIDEC_SUPPORT 1
15765 cat >>confdefs.h <<\EOF
15766 #define USE_WIDEC_SUPPORT 0
15771 cat >>confdefs.h <<\EOF
15772 #define USE_WIDEC_SUPPORT 0
15777 echo "$as_me:15777: checking if $cf_cv_screen library uses pthreads" >&5
15778 echo $ECHO_N "checking if $cf_cv_screen library uses pthreads... $ECHO_C" >&6
15779 if test "${cf_cv_use_pthreads+set}" = set; then
15780 echo $ECHO_N "(cached) $ECHO_C" >&6
15783 cat >conftest.$ac_ext <<_ACEOF
15784 #line 15784 "configure"
15785 #include "confdefs.h"
15787 #include <${cf_cv_ncurses_header:-curses.h}>
15788 extern void _nc_init_pthreads(void);
15795 _nc_init_pthreads();
15801 rm -f conftest.$ac_objext conftest$ac_exeext
15802 if { (eval echo "$as_me:15802: \"$ac_link\"") >&5
15803 (eval $ac_link) 2>&5
15805 echo "$as_me:15805: \$? = $ac_status" >&5
15806 (exit $ac_status); } &&
15807 { ac_try='test -s conftest$ac_exeext'
15808 { (eval echo "$as_me:15808: \"$ac_try\"") >&5
15809 (eval $ac_try) 2>&5
15811 echo "$as_me:15811: \$? = $ac_status" >&5
15812 (exit $ac_status); }; }; then
15813 cf_cv_use_pthreads=yes
15815 echo "$as_me: failed program was:" >&5
15816 cat conftest.$ac_ext >&5
15817 cf_cv_use_pthreads=no
15819 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15822 echo "$as_me:15822: result: $cf_cv_use_pthreads" >&5
15823 echo "${ECHO_T}$cf_cv_use_pthreads" >&6
15824 test $cf_cv_use_pthreads = yes && cat >>confdefs.h <<\EOF
15825 #define USE_PTHREADS 1
15828 echo "$as_me:15828: checking if sys/time.h works with sys/select.h" >&5
15829 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
15830 if test "${cf_cv_sys_time_select+set}" = set; then
15831 echo $ECHO_N "(cached) $ECHO_C" >&6
15834 cat >conftest.$ac_ext <<_ACEOF
15835 #line 15835 "configure"
15836 #include "confdefs.h"
15838 #include <sys/types.h>
15839 #ifdef HAVE_SYS_TIME_H
15840 #include <sys/time.h>
15842 #ifdef HAVE_SYS_SELECT_H
15843 #include <sys/select.h>
15854 rm -f conftest.$ac_objext
15855 if { (eval echo "$as_me:15855: \"$ac_compile\"") >&5
15856 (eval $ac_compile) 2>&5
15858 echo "$as_me:15858: \$? = $ac_status" >&5
15859 (exit $ac_status); } &&
15860 { ac_try='test -s conftest.$ac_objext'
15861 { (eval echo "$as_me:15861: \"$ac_try\"") >&5
15862 (eval $ac_try) 2>&5
15864 echo "$as_me:15864: \$? = $ac_status" >&5
15865 (exit $ac_status); }; }; then
15866 cf_cv_sys_time_select=yes
15868 echo "$as_me: failed program was:" >&5
15869 cat conftest.$ac_ext >&5
15870 cf_cv_sys_time_select=no
15872 rm -f conftest.$ac_objext conftest.$ac_ext
15876 echo "$as_me:15876: result: $cf_cv_sys_time_select" >&5
15877 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
15878 test "$cf_cv_sys_time_select" = yes &&
15879 cat >>confdefs.h <<\EOF
15880 #define HAVE_SYS_TIME_SELECT 1
15883 # special check for test/ditto.c
15885 echo "$as_me:15885: checking for openpty in -lutil" >&5
15886 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15887 if test "${ac_cv_lib_util_openpty+set}" = set; then
15888 echo $ECHO_N "(cached) $ECHO_C" >&6
15890 ac_check_lib_save_LIBS=$LIBS
15891 LIBS="-lutil $LIBS"
15892 cat >conftest.$ac_ext <<_ACEOF
15893 #line 15893 "configure"
15894 #include "confdefs.h"
15896 /* Override any gcc2 internal prototype to avoid an error. */
15900 /* We use char because int might match the return type of a gcc2
15901 builtin and then its argument prototype would still apply. */
15911 rm -f conftest.$ac_objext conftest$ac_exeext
15912 if { (eval echo "$as_me:15912: \"$ac_link\"") >&5
15913 (eval $ac_link) 2>&5
15915 echo "$as_me:15915: \$? = $ac_status" >&5
15916 (exit $ac_status); } &&
15917 { ac_try='test -s conftest$ac_exeext'
15918 { (eval echo "$as_me:15918: \"$ac_try\"") >&5
15919 (eval $ac_try) 2>&5
15921 echo "$as_me:15921: \$? = $ac_status" >&5
15922 (exit $ac_status); }; }; then
15923 ac_cv_lib_util_openpty=yes
15925 echo "$as_me: failed program was:" >&5
15926 cat conftest.$ac_ext >&5
15927 ac_cv_lib_util_openpty=no
15929 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15930 LIBS=$ac_check_lib_save_LIBS
15932 echo "$as_me:15932: result: $ac_cv_lib_util_openpty" >&5
15933 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15934 if test $ac_cv_lib_util_openpty = yes; then
15940 echo "$as_me:15940: checking for openpty header" >&5
15941 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
15942 if test "${cf_cv_func_openpty+set}" = set; then
15943 echo $ECHO_N "(cached) $ECHO_C" >&6
15946 cf_save_LIBS="$LIBS"
15947 test $cf_cv_lib_util = yes && {
15948 cf_add_libs="-lutil"
15949 # Filter out duplicates - this happens with badly-designed ".pc" files...
15950 for cf_add_1lib in $LIBS
15952 for cf_add_2lib in $cf_add_libs
15954 if test "x$cf_add_1lib" = "x$cf_add_2lib"
15960 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
15962 LIBS="$cf_add_libs"
15964 for cf_header in pty.h libutil.h util.h
15966 cat >conftest.$ac_ext <<_ACEOF
15967 #line 15967 "configure"
15968 #include "confdefs.h"
15970 #include <$cf_header>
15976 int x = openpty((int *)0, (int *)0, (char *)0,
15977 (struct termios *)0, (struct winsize *)0);
15983 rm -f conftest.$ac_objext conftest$ac_exeext
15984 if { (eval echo "$as_me:15984: \"$ac_link\"") >&5
15985 (eval $ac_link) 2>&5
15987 echo "$as_me:15987: \$? = $ac_status" >&5
15988 (exit $ac_status); } &&
15989 { ac_try='test -s conftest$ac_exeext'
15990 { (eval echo "$as_me:15990: \"$ac_try\"") >&5
15991 (eval $ac_try) 2>&5
15993 echo "$as_me:15993: \$? = $ac_status" >&5
15994 (exit $ac_status); }; }; then
15996 cf_cv_func_openpty=$cf_header
16000 echo "$as_me: failed program was:" >&5
16001 cat conftest.$ac_ext >&5
16003 cf_cv_func_openpty=no
16006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16008 LIBS="$cf_save_LIBS"
16011 echo "$as_me:16011: result: $cf_cv_func_openpty" >&5
16012 echo "${ECHO_T}$cf_cv_func_openpty" >&6
16014 if test "$cf_cv_func_openpty" != no ; then
16016 cat >>confdefs.h <<EOF
16017 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
16020 cat >>confdefs.h <<\EOF
16021 #define USE_XTERM_PTY 1
16024 if test "x$cf_cv_lib_util" = xyes ; then
16026 cf_add_libs="-lutil"
16027 # Filter out duplicates - this happens with badly-designed ".pc" files...
16028 for cf_add_1lib in $TEST_LIBS
16030 for cf_add_2lib in $cf_add_libs
16032 if test "x$cf_add_1lib" = "x$cf_add_2lib"
16038 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
16040 TEST_LIBS="$cf_add_libs"
16045 echo "$as_me:16045: checking for function curses_version" >&5
16046 echo $ECHO_N "checking for function curses_version... $ECHO_C" >&6
16047 if test "${cf_cv_func_curses_version+set}" = set; then
16048 echo $ECHO_N "(cached) $ECHO_C" >&6
16051 if test "$cross_compiling" = yes; then
16052 cf_cv_func_curses_version=unknown
16054 cat >conftest.$ac_ext <<_ACEOF
16055 #line 16055 "configure"
16056 #include "confdefs.h"
16058 #include <${cf_cv_ncurses_header:-curses.h}>
16062 sprintf(temp, "%s\n", curses_version());
16063 ${cf_cv_main_return:-return}(0);
16067 rm -f conftest$ac_exeext
16068 if { (eval echo "$as_me:16068: \"$ac_link\"") >&5
16069 (eval $ac_link) 2>&5
16071 echo "$as_me:16071: \$? = $ac_status" >&5
16072 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16073 { (eval echo "$as_me:16073: \"$ac_try\"") >&5
16074 (eval $ac_try) 2>&5
16076 echo "$as_me:16076: \$? = $ac_status" >&5
16077 (exit $ac_status); }; }; then
16078 cf_cv_func_curses_version=yes
16081 echo "$as_me: program exited with status $ac_status" >&5
16082 echo "$as_me: failed program was:" >&5
16083 cat conftest.$ac_ext >&5
16084 cf_cv_func_curses_version=no
16087 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16091 echo "$as_me:16091: result: $cf_cv_func_curses_version" >&5
16092 echo "${ECHO_T}$cf_cv_func_curses_version" >&6
16093 test "$cf_cv_func_curses_version" = yes &&
16094 cat >>confdefs.h <<\EOF
16095 #define HAVE_CURSES_VERSION 1
16098 echo "$as_me:16098: checking for alternate character set array" >&5
16099 echo $ECHO_N "checking for alternate character set array... $ECHO_C" >&6
16100 if test "${cf_cv_curses_acs_map+set}" = set; then
16101 echo $ECHO_N "(cached) $ECHO_C" >&6
16104 cf_cv_curses_acs_map=unknown
16105 for name in acs_map _acs_map __acs_map ${NCURSES_WRAP_PREFIX}acs_map
16107 cat >conftest.$ac_ext <<_ACEOF
16108 #line 16108 "configure"
16109 #include "confdefs.h"
16111 #include <${cf_cv_ncurses_header:-curses.h}>
16117 $name['k'] = ACS_PLUS
16123 rm -f conftest.$ac_objext conftest$ac_exeext
16124 if { (eval echo "$as_me:16124: \"$ac_link\"") >&5
16125 (eval $ac_link) 2>&5
16127 echo "$as_me:16127: \$? = $ac_status" >&5
16128 (exit $ac_status); } &&
16129 { ac_try='test -s conftest$ac_exeext'
16130 { (eval echo "$as_me:16130: \"$ac_try\"") >&5
16131 (eval $ac_try) 2>&5
16133 echo "$as_me:16133: \$? = $ac_status" >&5
16134 (exit $ac_status); }; }; then
16135 cf_cv_curses_acs_map=$name; break
16137 echo "$as_me: failed program was:" >&5
16138 cat conftest.$ac_ext >&5
16140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16144 echo "$as_me:16144: result: $cf_cv_curses_acs_map" >&5
16145 echo "${ECHO_T}$cf_cv_curses_acs_map" >&6
16147 test "$cf_cv_curses_acs_map" != unknown &&
16148 cat >>confdefs.h <<EOF
16149 #define CURSES_ACS_ARRAY $cf_cv_curses_acs_map
16152 if test "$cf_enable_widec" = yes; then
16154 echo "$as_me:16154: checking for wide alternate character set array" >&5
16155 echo $ECHO_N "checking for wide alternate character set array... $ECHO_C" >&6
16156 if test "${cf_cv_curses_wacs_map+set}" = set; then
16157 echo $ECHO_N "(cached) $ECHO_C" >&6
16160 cf_cv_curses_wacs_map=unknown
16161 for name in wacs_map _wacs_map __wacs_map _nc_wacs _wacs_char
16163 cat >conftest.$ac_ext <<_ACEOF
16164 #line 16164 "configure"
16165 #include "confdefs.h"
16167 #ifndef _XOPEN_SOURCE_EXTENDED
16168 #define _XOPEN_SOURCE_EXTENDED
16170 #include <${cf_cv_ncurses_header:-curses.h}>
16174 void *foo = &($name['k'])
16179 rm -f conftest.$ac_objext conftest$ac_exeext
16180 if { (eval echo "$as_me:16180: \"$ac_link\"") >&5
16181 (eval $ac_link) 2>&5
16183 echo "$as_me:16183: \$? = $ac_status" >&5
16184 (exit $ac_status); } &&
16185 { ac_try='test -s conftest$ac_exeext'
16186 { (eval echo "$as_me:16186: \"$ac_try\"") >&5
16187 (eval $ac_try) 2>&5
16189 echo "$as_me:16189: \$? = $ac_status" >&5
16190 (exit $ac_status); }; }; then
16191 cf_cv_curses_wacs_map=$name
16194 echo "$as_me: failed program was:" >&5
16195 cat conftest.$ac_ext >&5
16197 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16200 echo "$as_me:16200: result: $cf_cv_curses_wacs_map" >&5
16201 echo "${ECHO_T}$cf_cv_curses_wacs_map" >&6
16203 test "$cf_cv_curses_wacs_map" != unknown &&
16204 cat >>confdefs.h <<EOF
16205 #define CURSES_WACS_ARRAY $cf_cv_curses_wacs_map
16208 echo "$as_me:16208: checking for wide alternate character constants" >&5
16209 echo $ECHO_N "checking for wide alternate character constants... $ECHO_C" >&6
16210 if test "${cf_cv_curses_wacs_symbols+set}" = set; then
16211 echo $ECHO_N "(cached) $ECHO_C" >&6
16214 cf_cv_curses_wacs_symbols=no
16215 if test "$cf_cv_curses_wacs_map" != unknown
16217 cat >conftest.$ac_ext <<_ACEOF
16218 #line 16218 "configure"
16219 #include "confdefs.h"
16221 #ifndef _XOPEN_SOURCE_EXTENDED
16222 #define _XOPEN_SOURCE_EXTENDED
16224 #include <${cf_cv_ncurses_header:-curses.h}>
16228 cchar_t *foo = WACS_PLUS;
16229 $cf_cv_curses_wacs_map['k'] = *WACS_PLUS
16234 rm -f conftest.$ac_objext conftest$ac_exeext
16235 if { (eval echo "$as_me:16235: \"$ac_link\"") >&5
16236 (eval $ac_link) 2>&5
16238 echo "$as_me:16238: \$? = $ac_status" >&5
16239 (exit $ac_status); } &&
16240 { ac_try='test -s conftest$ac_exeext'
16241 { (eval echo "$as_me:16241: \"$ac_try\"") >&5
16242 (eval $ac_try) 2>&5
16244 echo "$as_me:16244: \$? = $ac_status" >&5
16245 (exit $ac_status); }; }; then
16246 cf_cv_curses_wacs_symbols=yes
16248 echo "$as_me: failed program was:" >&5
16249 cat conftest.$ac_ext >&5
16251 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16253 cat >conftest.$ac_ext <<_ACEOF
16254 #line 16254 "configure"
16255 #include "confdefs.h"
16257 #ifndef _XOPEN_SOURCE_EXTENDED
16258 #define _XOPEN_SOURCE_EXTENDED
16260 #include <${cf_cv_ncurses_header:-curses.h}>
16264 cchar_t *foo = WACS_PLUS
16269 rm -f conftest.$ac_objext conftest$ac_exeext
16270 if { (eval echo "$as_me:16270: \"$ac_link\"") >&5
16271 (eval $ac_link) 2>&5
16273 echo "$as_me:16273: \$? = $ac_status" >&5
16274 (exit $ac_status); } &&
16275 { ac_try='test -s conftest$ac_exeext'
16276 { (eval echo "$as_me:16276: \"$ac_try\"") >&5
16277 (eval $ac_try) 2>&5
16279 echo "$as_me:16279: \$? = $ac_status" >&5
16280 (exit $ac_status); }; }; then
16281 cf_cv_curses_wacs_symbols=yes
16283 echo "$as_me: failed program was:" >&5
16284 cat conftest.$ac_ext >&5
16286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16290 echo "$as_me:16290: result: $cf_cv_curses_wacs_symbols" >&5
16291 echo "${ECHO_T}$cf_cv_curses_wacs_symbols" >&6
16293 test "$cf_cv_curses_wacs_symbols" != no &&
16294 cat >>confdefs.h <<\EOF
16295 #define CURSES_WACS_SYMBOLS 1
16300 echo "$as_me:16300: checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}" >&5
16301 echo $ECHO_N "checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
16302 cat >conftest.$ac_ext <<_ACEOF
16303 #line 16303 "configure"
16304 #include "confdefs.h"
16306 #ifndef _XOPEN_SOURCE_EXTENDED
16307 #define _XOPEN_SOURCE_EXTENDED
16309 #include <${cf_cv_ncurses_header:-curses.h}>
16320 rm -f conftest.$ac_objext
16321 if { (eval echo "$as_me:16321: \"$ac_compile\"") >&5
16322 (eval $ac_compile) 2>&5
16324 echo "$as_me:16324: \$? = $ac_status" >&5
16325 (exit $ac_status); } &&
16326 { ac_try='test -s conftest.$ac_objext'
16327 { (eval echo "$as_me:16327: \"$ac_try\"") >&5
16328 (eval $ac_try) 2>&5
16330 echo "$as_me:16330: \$? = $ac_status" >&5
16331 (exit $ac_status); }; }; then
16334 echo "$as_me: failed program was:" >&5
16335 cat conftest.$ac_ext >&5
16338 rm -f conftest.$ac_objext conftest.$ac_ext
16339 echo "$as_me:16339: result: $cf_result" >&5
16340 echo "${ECHO_T}$cf_result" >&6
16341 if test $cf_result = yes ; then
16343 cf_result=`echo "have_type_attr_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16345 cat >>confdefs.h <<EOF
16346 #define $cf_result 1
16351 cat >>confdefs.h <<EOF
16352 #define attr_t long
16357 if test "$cf_enable_widec" = yes; then
16359 # This is needed on Tru64 5.0 to declare mbstate_t
16360 echo "$as_me:16360: checking if we must include wchar.h to declare mbstate_t" >&5
16361 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
16362 if test "${cf_cv_mbstate_t+set}" = set; then
16363 echo $ECHO_N "(cached) $ECHO_C" >&6
16366 cat >conftest.$ac_ext <<_ACEOF
16367 #line 16367 "configure"
16368 #include "confdefs.h"
16370 #include <stdlib.h>
16371 #include <stdarg.h>
16373 #ifdef HAVE_LIBUTF8_H
16374 #include <libutf8.h>
16384 rm -f conftest.$ac_objext
16385 if { (eval echo "$as_me:16385: \"$ac_compile\"") >&5
16386 (eval $ac_compile) 2>&5
16388 echo "$as_me:16388: \$? = $ac_status" >&5
16389 (exit $ac_status); } &&
16390 { ac_try='test -s conftest.$ac_objext'
16391 { (eval echo "$as_me:16391: \"$ac_try\"") >&5
16392 (eval $ac_try) 2>&5
16394 echo "$as_me:16394: \$? = $ac_status" >&5
16395 (exit $ac_status); }; }; then
16398 echo "$as_me: failed program was:" >&5
16399 cat conftest.$ac_ext >&5
16400 cat >conftest.$ac_ext <<_ACEOF
16401 #line 16401 "configure"
16402 #include "confdefs.h"
16404 #include <stdlib.h>
16405 #include <stdarg.h>
16408 #ifdef HAVE_LIBUTF8_H
16409 #include <libutf8.h>
16419 rm -f conftest.$ac_objext
16420 if { (eval echo "$as_me:16420: \"$ac_compile\"") >&5
16421 (eval $ac_compile) 2>&5
16423 echo "$as_me:16423: \$? = $ac_status" >&5
16424 (exit $ac_status); } &&
16425 { ac_try='test -s conftest.$ac_objext'
16426 { (eval echo "$as_me:16426: \"$ac_try\"") >&5
16427 (eval $ac_try) 2>&5
16429 echo "$as_me:16429: \$? = $ac_status" >&5
16430 (exit $ac_status); }; }; then
16431 cf_cv_mbstate_t=yes
16433 echo "$as_me: failed program was:" >&5
16434 cat conftest.$ac_ext >&5
16435 cf_cv_mbstate_t=unknown
16437 rm -f conftest.$ac_objext conftest.$ac_ext
16439 rm -f conftest.$ac_objext conftest.$ac_ext
16441 echo "$as_me:16441: result: $cf_cv_mbstate_t" >&5
16442 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
16444 if test "$cf_cv_mbstate_t" = yes ; then
16446 cat >>confdefs.h <<\EOF
16447 #define NEED_WCHAR_H 1
16453 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
16454 if test "$cf_cv_mbstate_t" = unknown ; then
16455 NCURSES_MBSTATE_T=1
16458 # if we find mbstate_t in either place, use substitution to provide a fallback.
16459 if test "$cf_cv_mbstate_t" != unknown ; then
16460 NCURSES_OK_MBSTATE_T=1
16463 # This is needed on Tru64 5.0 to declare wchar_t
16464 echo "$as_me:16464: checking if we must include wchar.h to declare wchar_t" >&5
16465 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
16466 if test "${cf_cv_wchar_t+set}" = set; then
16467 echo $ECHO_N "(cached) $ECHO_C" >&6
16470 cat >conftest.$ac_ext <<_ACEOF
16471 #line 16471 "configure"
16472 #include "confdefs.h"
16474 #include <stdlib.h>
16475 #include <stdarg.h>
16477 #ifdef HAVE_LIBUTF8_H
16478 #include <libutf8.h>
16488 rm -f conftest.$ac_objext
16489 if { (eval echo "$as_me:16489: \"$ac_compile\"") >&5
16490 (eval $ac_compile) 2>&5
16492 echo "$as_me:16492: \$? = $ac_status" >&5
16493 (exit $ac_status); } &&
16494 { ac_try='test -s conftest.$ac_objext'
16495 { (eval echo "$as_me:16495: \"$ac_try\"") >&5
16496 (eval $ac_try) 2>&5
16498 echo "$as_me:16498: \$? = $ac_status" >&5
16499 (exit $ac_status); }; }; then
16502 echo "$as_me: failed program was:" >&5
16503 cat conftest.$ac_ext >&5
16504 cat >conftest.$ac_ext <<_ACEOF
16505 #line 16505 "configure"
16506 #include "confdefs.h"
16508 #include <stdlib.h>
16509 #include <stdarg.h>
16512 #ifdef HAVE_LIBUTF8_H
16513 #include <libutf8.h>
16523 rm -f conftest.$ac_objext
16524 if { (eval echo "$as_me:16524: \"$ac_compile\"") >&5
16525 (eval $ac_compile) 2>&5
16527 echo "$as_me:16527: \$? = $ac_status" >&5
16528 (exit $ac_status); } &&
16529 { ac_try='test -s conftest.$ac_objext'
16530 { (eval echo "$as_me:16530: \"$ac_try\"") >&5
16531 (eval $ac_try) 2>&5
16533 echo "$as_me:16533: \$? = $ac_status" >&5
16534 (exit $ac_status); }; }; then
16537 echo "$as_me: failed program was:" >&5
16538 cat conftest.$ac_ext >&5
16539 cf_cv_wchar_t=unknown
16541 rm -f conftest.$ac_objext conftest.$ac_ext
16543 rm -f conftest.$ac_objext conftest.$ac_ext
16545 echo "$as_me:16545: result: $cf_cv_wchar_t" >&5
16546 echo "${ECHO_T}$cf_cv_wchar_t" >&6
16548 if test "$cf_cv_wchar_t" = yes ; then
16550 cat >>confdefs.h <<\EOF
16551 #define NEED_WCHAR_H 1
16557 # if we do not find wchar_t in either place, use substitution to provide a fallback.
16558 if test "$cf_cv_wchar_t" = unknown ; then
16562 # if we find wchar_t in either place, use substitution to provide a fallback.
16563 if test "$cf_cv_wchar_t" != unknown ; then
16564 NCURSES_OK_WCHAR_T=1
16567 # This is needed on Tru64 5.0 to declare wint_t
16568 echo "$as_me:16568: checking if we must include wchar.h to declare wint_t" >&5
16569 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
16570 if test "${cf_cv_wint_t+set}" = set; then
16571 echo $ECHO_N "(cached) $ECHO_C" >&6
16574 cat >conftest.$ac_ext <<_ACEOF
16575 #line 16575 "configure"
16576 #include "confdefs.h"
16578 #include <stdlib.h>
16579 #include <stdarg.h>
16581 #ifdef HAVE_LIBUTF8_H
16582 #include <libutf8.h>
16592 rm -f conftest.$ac_objext
16593 if { (eval echo "$as_me:16593: \"$ac_compile\"") >&5
16594 (eval $ac_compile) 2>&5
16596 echo "$as_me:16596: \$? = $ac_status" >&5
16597 (exit $ac_status); } &&
16598 { ac_try='test -s conftest.$ac_objext'
16599 { (eval echo "$as_me:16599: \"$ac_try\"") >&5
16600 (eval $ac_try) 2>&5
16602 echo "$as_me:16602: \$? = $ac_status" >&5
16603 (exit $ac_status); }; }; then
16606 echo "$as_me: failed program was:" >&5
16607 cat conftest.$ac_ext >&5
16608 cat >conftest.$ac_ext <<_ACEOF
16609 #line 16609 "configure"
16610 #include "confdefs.h"
16612 #include <stdlib.h>
16613 #include <stdarg.h>
16616 #ifdef HAVE_LIBUTF8_H
16617 #include <libutf8.h>
16627 rm -f conftest.$ac_objext
16628 if { (eval echo "$as_me:16628: \"$ac_compile\"") >&5
16629 (eval $ac_compile) 2>&5
16631 echo "$as_me:16631: \$? = $ac_status" >&5
16632 (exit $ac_status); } &&
16633 { ac_try='test -s conftest.$ac_objext'
16634 { (eval echo "$as_me:16634: \"$ac_try\"") >&5
16635 (eval $ac_try) 2>&5
16637 echo "$as_me:16637: \$? = $ac_status" >&5
16638 (exit $ac_status); }; }; then
16641 echo "$as_me: failed program was:" >&5
16642 cat conftest.$ac_ext >&5
16643 cf_cv_wint_t=unknown
16645 rm -f conftest.$ac_objext conftest.$ac_ext
16647 rm -f conftest.$ac_objext conftest.$ac_ext
16649 echo "$as_me:16649: result: $cf_cv_wint_t" >&5
16650 echo "${ECHO_T}$cf_cv_wint_t" >&6
16652 if test "$cf_cv_wint_t" = yes ; then
16654 cat >>confdefs.h <<\EOF
16655 #define NEED_WCHAR_H 1
16661 # if we do not find wint_t in either place, use substitution to provide a fallback.
16662 if test "$cf_cv_wint_t" = unknown ; then
16666 # if we find wint_t in either place, use substitution to provide a fallback.
16667 if test "$cf_cv_wint_t" != unknown ; then
16668 NCURSES_OK_WINT_T=1
16671 if test "$NCURSES_OK_MBSTATE_T" = 0 ; then
16673 echo "$as_me:16673: checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}" >&5
16674 echo $ECHO_N "checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
16675 cat >conftest.$ac_ext <<_ACEOF
16676 #line 16676 "configure"
16677 #include "confdefs.h"
16679 #ifndef _XOPEN_SOURCE_EXTENDED
16680 #define _XOPEN_SOURCE_EXTENDED
16682 #include <${cf_cv_ncurses_header:-curses.h}>
16693 rm -f conftest.$ac_objext
16694 if { (eval echo "$as_me:16694: \"$ac_compile\"") >&5
16695 (eval $ac_compile) 2>&5
16697 echo "$as_me:16697: \$? = $ac_status" >&5
16698 (exit $ac_status); } &&
16699 { ac_try='test -s conftest.$ac_objext'
16700 { (eval echo "$as_me:16700: \"$ac_try\"") >&5
16701 (eval $ac_try) 2>&5
16703 echo "$as_me:16703: \$? = $ac_status" >&5
16704 (exit $ac_status); }; }; then
16707 echo "$as_me: failed program was:" >&5
16708 cat conftest.$ac_ext >&5
16711 rm -f conftest.$ac_objext conftest.$ac_ext
16712 echo "$as_me:16712: result: $cf_result" >&5
16713 echo "${ECHO_T}$cf_result" >&6
16714 if test $cf_result = yes ; then
16716 cf_result=`echo "have_type_mbstate_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16718 cat >>confdefs.h <<EOF
16719 #define $cf_result 1
16724 cat >>confdefs.h <<EOF
16725 #define mbstate_t long
16732 if test "$NCURSES_OK_WCHAR_T" = 0 ; then
16734 echo "$as_me:16734: checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}" >&5
16735 echo $ECHO_N "checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
16736 cat >conftest.$ac_ext <<_ACEOF
16737 #line 16737 "configure"
16738 #include "confdefs.h"
16740 #ifndef _XOPEN_SOURCE_EXTENDED
16741 #define _XOPEN_SOURCE_EXTENDED
16743 #include <${cf_cv_ncurses_header:-curses.h}>
16754 rm -f conftest.$ac_objext
16755 if { (eval echo "$as_me:16755: \"$ac_compile\"") >&5
16756 (eval $ac_compile) 2>&5
16758 echo "$as_me:16758: \$? = $ac_status" >&5
16759 (exit $ac_status); } &&
16760 { ac_try='test -s conftest.$ac_objext'
16761 { (eval echo "$as_me:16761: \"$ac_try\"") >&5
16762 (eval $ac_try) 2>&5
16764 echo "$as_me:16764: \$? = $ac_status" >&5
16765 (exit $ac_status); }; }; then
16768 echo "$as_me: failed program was:" >&5
16769 cat conftest.$ac_ext >&5
16772 rm -f conftest.$ac_objext conftest.$ac_ext
16773 echo "$as_me:16773: result: $cf_result" >&5
16774 echo "${ECHO_T}$cf_result" >&6
16775 if test $cf_result = yes ; then
16777 cf_result=`echo "have_type_wchar_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16779 cat >>confdefs.h <<EOF
16780 #define $cf_result 1
16785 cat >>confdefs.h <<EOF
16786 #define wchar_t long
16793 if test "$NCURSES_OK_WINT_T" = 0 ; then
16795 echo "$as_me:16795: checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}" >&5
16796 echo $ECHO_N "checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
16797 cat >conftest.$ac_ext <<_ACEOF
16798 #line 16798 "configure"
16799 #include "confdefs.h"
16801 #ifndef _XOPEN_SOURCE_EXTENDED
16802 #define _XOPEN_SOURCE_EXTENDED
16804 #include <${cf_cv_ncurses_header:-curses.h}>
16815 rm -f conftest.$ac_objext
16816 if { (eval echo "$as_me:16816: \"$ac_compile\"") >&5
16817 (eval $ac_compile) 2>&5
16819 echo "$as_me:16819: \$? = $ac_status" >&5
16820 (exit $ac_status); } &&
16821 { ac_try='test -s conftest.$ac_objext'
16822 { (eval echo "$as_me:16822: \"$ac_try\"") >&5
16823 (eval $ac_try) 2>&5
16825 echo "$as_me:16825: \$? = $ac_status" >&5
16826 (exit $ac_status); }; }; then
16829 echo "$as_me: failed program was:" >&5
16830 cat conftest.$ac_ext >&5
16833 rm -f conftest.$ac_objext conftest.$ac_ext
16834 echo "$as_me:16834: result: $cf_result" >&5
16835 echo "${ECHO_T}$cf_result" >&6
16836 if test $cf_result = yes ; then
16838 cf_result=`echo "have_type_wint_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16840 cat >>confdefs.h <<EOF
16841 #define $cf_result 1
16846 cat >>confdefs.h <<EOF
16847 #define wint_t long
16855 echo "$as_me:16855: checking for data ospeed declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
16856 echo $ECHO_N "checking for data ospeed declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
16858 cat >conftest.$ac_ext <<_ACEOF
16859 #line 16859 "configure"
16860 #include "confdefs.h"
16862 #ifdef HAVE_XCURSES
16863 #include <xcurses.h>
16864 char * XCursesProgramName = "test";
16866 #include <${cf_cv_ncurses_header:-curses.h}>
16867 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
16868 #include <ncursesw/term.h>
16869 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
16870 #include <ncurses/term.h>
16871 #elif defined(HAVE_TERM_H)
16880 void *foo = &(ospeed)
16886 rm -f conftest.$ac_objext
16887 if { (eval echo "$as_me:16887: \"$ac_compile\"") >&5
16888 (eval $ac_compile) 2>&5
16890 echo "$as_me:16890: \$? = $ac_status" >&5
16891 (exit $ac_status); } &&
16892 { ac_try='test -s conftest.$ac_objext'
16893 { (eval echo "$as_me:16893: \"$ac_try\"") >&5
16894 (eval $ac_try) 2>&5
16896 echo "$as_me:16896: \$? = $ac_status" >&5
16897 (exit $ac_status); }; }; then
16900 echo "$as_me: failed program was:" >&5
16901 cat conftest.$ac_ext >&5
16904 rm -f conftest.$ac_objext conftest.$ac_ext
16905 echo "$as_me:16905: result: $cf_result" >&5
16906 echo "${ECHO_T}$cf_result" >&6
16908 if test $cf_result = yes ; then
16910 cf_result=`echo "have_curses_data_ospeed" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16912 cat >>confdefs.h <<EOF
16913 #define $cf_result 1
16917 echo "$as_me:16917: checking for data ospeed in library" >&5
16918 echo $ECHO_N "checking for data ospeed in library... $ECHO_C" >&6
16919 # BSD linkers insist on making weak linkage, but resolve at runtime.
16920 if test "$cross_compiling" = yes; then
16923 cat >conftest.$ac_ext <<_ACEOF
16924 #line 16924 "configure"
16925 #include "confdefs.h"
16927 #ifdef HAVE_XCURSES
16928 #include <xcurses.h>
16929 char * XCursesProgramName = "test";
16931 #include <${cf_cv_ncurses_header:-curses.h}>
16932 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
16933 #include <ncursesw/term.h>
16934 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
16935 #include <ncurses/term.h>
16936 #elif defined(HAVE_TERM_H)
16941 extern char ospeed;
16947 void *foo = &(ospeed);
16948 fprintf(stderr, "testing linkage of ospeed:%p\n", foo);
16949 ${cf_cv_main_return:-return}(foo == 0);
16956 rm -f conftest.$ac_objext conftest$ac_exeext
16957 if { (eval echo "$as_me:16957: \"$ac_link\"") >&5
16958 (eval $ac_link) 2>&5
16960 echo "$as_me:16960: \$? = $ac_status" >&5
16961 (exit $ac_status); } &&
16962 { ac_try='test -s conftest$ac_exeext'
16963 { (eval echo "$as_me:16963: \"$ac_try\"") >&5
16964 (eval $ac_try) 2>&5
16966 echo "$as_me:16966: \$? = $ac_status" >&5
16967 (exit $ac_status); }; }; then
16970 echo "$as_me: failed program was:" >&5
16971 cat conftest.$ac_ext >&5
16974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16977 cat >conftest.$ac_ext <<_ACEOF
16978 #line 16978 "configure"
16979 #include "confdefs.h"
16981 #ifdef HAVE_XCURSES
16982 #include <xcurses.h>
16983 char * XCursesProgramName = "test";
16985 #include <${cf_cv_ncurses_header:-curses.h}>
16986 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
16987 #include <ncursesw/term.h>
16988 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
16989 #include <ncurses/term.h>
16990 #elif defined(HAVE_TERM_H)
16995 extern char ospeed;
16998 void *foo = &(ospeed);
16999 fprintf(stderr, "testing linkage of ospeed:%p\n", foo);
17000 ${cf_cv_main_return:-return}(foo == 0);
17003 rm -f conftest$ac_exeext
17004 if { (eval echo "$as_me:17004: \"$ac_link\"") >&5
17005 (eval $ac_link) 2>&5
17007 echo "$as_me:17007: \$? = $ac_status" >&5
17008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17009 { (eval echo "$as_me:17009: \"$ac_try\"") >&5
17010 (eval $ac_try) 2>&5
17012 echo "$as_me:17012: \$? = $ac_status" >&5
17013 (exit $ac_status); }; }; then
17016 echo "$as_me: program exited with status $ac_status" >&5
17017 echo "$as_me: failed program was:" >&5
17018 cat conftest.$ac_ext >&5
17021 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17023 echo "$as_me:17023: result: $cf_result" >&5
17024 echo "${ECHO_T}$cf_result" >&6
17025 if test $cf_result = yes ; then
17027 cf_result=`echo "decl_curses_data_ospeed" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17029 cat >>confdefs.h <<EOF
17030 #define $cf_result 1
17036 echo "$as_me:17036: checking for data boolnames declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
17037 echo $ECHO_N "checking for data boolnames declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
17039 cat >conftest.$ac_ext <<_ACEOF
17040 #line 17040 "configure"
17041 #include "confdefs.h"
17043 #ifdef HAVE_XCURSES
17044 #include <xcurses.h>
17045 char * XCursesProgramName = "test";
17047 #include <${cf_cv_ncurses_header:-curses.h}>
17048 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17049 #include <ncursesw/term.h>
17050 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17051 #include <ncurses/term.h>
17052 #elif defined(HAVE_TERM_H)
17061 void *foo = &(boolnames)
17067 rm -f conftest.$ac_objext
17068 if { (eval echo "$as_me:17068: \"$ac_compile\"") >&5
17069 (eval $ac_compile) 2>&5
17071 echo "$as_me:17071: \$? = $ac_status" >&5
17072 (exit $ac_status); } &&
17073 { ac_try='test -s conftest.$ac_objext'
17074 { (eval echo "$as_me:17074: \"$ac_try\"") >&5
17075 (eval $ac_try) 2>&5
17077 echo "$as_me:17077: \$? = $ac_status" >&5
17078 (exit $ac_status); }; }; then
17081 echo "$as_me: failed program was:" >&5
17082 cat conftest.$ac_ext >&5
17085 rm -f conftest.$ac_objext conftest.$ac_ext
17086 echo "$as_me:17086: result: $cf_result" >&5
17087 echo "${ECHO_T}$cf_result" >&6
17089 if test $cf_result = yes ; then
17091 cf_result=`echo "have_curses_data_boolnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17093 cat >>confdefs.h <<EOF
17094 #define $cf_result 1
17098 echo "$as_me:17098: checking for data boolnames in library" >&5
17099 echo $ECHO_N "checking for data boolnames in library... $ECHO_C" >&6
17100 # BSD linkers insist on making weak linkage, but resolve at runtime.
17101 if test "$cross_compiling" = yes; then
17104 cat >conftest.$ac_ext <<_ACEOF
17105 #line 17105 "configure"
17106 #include "confdefs.h"
17108 #ifdef HAVE_XCURSES
17109 #include <xcurses.h>
17110 char * XCursesProgramName = "test";
17112 #include <${cf_cv_ncurses_header:-curses.h}>
17113 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17114 #include <ncursesw/term.h>
17115 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17116 #include <ncurses/term.h>
17117 #elif defined(HAVE_TERM_H)
17122 extern char boolnames;
17128 void *foo = &(boolnames);
17129 fprintf(stderr, "testing linkage of boolnames:%p\n", foo);
17130 ${cf_cv_main_return:-return}(foo == 0);
17137 rm -f conftest.$ac_objext conftest$ac_exeext
17138 if { (eval echo "$as_me:17138: \"$ac_link\"") >&5
17139 (eval $ac_link) 2>&5
17141 echo "$as_me:17141: \$? = $ac_status" >&5
17142 (exit $ac_status); } &&
17143 { ac_try='test -s conftest$ac_exeext'
17144 { (eval echo "$as_me:17144: \"$ac_try\"") >&5
17145 (eval $ac_try) 2>&5
17147 echo "$as_me:17147: \$? = $ac_status" >&5
17148 (exit $ac_status); }; }; then
17151 echo "$as_me: failed program was:" >&5
17152 cat conftest.$ac_ext >&5
17155 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17158 cat >conftest.$ac_ext <<_ACEOF
17159 #line 17159 "configure"
17160 #include "confdefs.h"
17162 #ifdef HAVE_XCURSES
17163 #include <xcurses.h>
17164 char * XCursesProgramName = "test";
17166 #include <${cf_cv_ncurses_header:-curses.h}>
17167 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17168 #include <ncursesw/term.h>
17169 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17170 #include <ncurses/term.h>
17171 #elif defined(HAVE_TERM_H)
17176 extern char boolnames;
17179 void *foo = &(boolnames);
17180 fprintf(stderr, "testing linkage of boolnames:%p\n", foo);
17181 ${cf_cv_main_return:-return}(foo == 0);
17184 rm -f conftest$ac_exeext
17185 if { (eval echo "$as_me:17185: \"$ac_link\"") >&5
17186 (eval $ac_link) 2>&5
17188 echo "$as_me:17188: \$? = $ac_status" >&5
17189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17190 { (eval echo "$as_me:17190: \"$ac_try\"") >&5
17191 (eval $ac_try) 2>&5
17193 echo "$as_me:17193: \$? = $ac_status" >&5
17194 (exit $ac_status); }; }; then
17197 echo "$as_me: program exited with status $ac_status" >&5
17198 echo "$as_me: failed program was:" >&5
17199 cat conftest.$ac_ext >&5
17202 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17204 echo "$as_me:17204: result: $cf_result" >&5
17205 echo "${ECHO_T}$cf_result" >&6
17206 if test $cf_result = yes ; then
17208 cf_result=`echo "decl_curses_data_boolnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17210 cat >>confdefs.h <<EOF
17211 #define $cf_result 1
17217 echo "$as_me:17217: checking for data boolfnames declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
17218 echo $ECHO_N "checking for data boolfnames declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
17220 cat >conftest.$ac_ext <<_ACEOF
17221 #line 17221 "configure"
17222 #include "confdefs.h"
17224 #ifdef HAVE_XCURSES
17225 #include <xcurses.h>
17226 char * XCursesProgramName = "test";
17228 #include <${cf_cv_ncurses_header:-curses.h}>
17229 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17230 #include <ncursesw/term.h>
17231 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17232 #include <ncurses/term.h>
17233 #elif defined(HAVE_TERM_H)
17242 void *foo = &(boolfnames)
17248 rm -f conftest.$ac_objext
17249 if { (eval echo "$as_me:17249: \"$ac_compile\"") >&5
17250 (eval $ac_compile) 2>&5
17252 echo "$as_me:17252: \$? = $ac_status" >&5
17253 (exit $ac_status); } &&
17254 { ac_try='test -s conftest.$ac_objext'
17255 { (eval echo "$as_me:17255: \"$ac_try\"") >&5
17256 (eval $ac_try) 2>&5
17258 echo "$as_me:17258: \$? = $ac_status" >&5
17259 (exit $ac_status); }; }; then
17262 echo "$as_me: failed program was:" >&5
17263 cat conftest.$ac_ext >&5
17266 rm -f conftest.$ac_objext conftest.$ac_ext
17267 echo "$as_me:17267: result: $cf_result" >&5
17268 echo "${ECHO_T}$cf_result" >&6
17270 if test $cf_result = yes ; then
17272 cf_result=`echo "have_curses_data_boolfnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17274 cat >>confdefs.h <<EOF
17275 #define $cf_result 1
17279 echo "$as_me:17279: checking for data boolfnames in library" >&5
17280 echo $ECHO_N "checking for data boolfnames in library... $ECHO_C" >&6
17281 # BSD linkers insist on making weak linkage, but resolve at runtime.
17282 if test "$cross_compiling" = yes; then
17285 cat >conftest.$ac_ext <<_ACEOF
17286 #line 17286 "configure"
17287 #include "confdefs.h"
17289 #ifdef HAVE_XCURSES
17290 #include <xcurses.h>
17291 char * XCursesProgramName = "test";
17293 #include <${cf_cv_ncurses_header:-curses.h}>
17294 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17295 #include <ncursesw/term.h>
17296 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17297 #include <ncurses/term.h>
17298 #elif defined(HAVE_TERM_H)
17303 extern char boolfnames;
17309 void *foo = &(boolfnames);
17310 fprintf(stderr, "testing linkage of boolfnames:%p\n", foo);
17311 ${cf_cv_main_return:-return}(foo == 0);
17318 rm -f conftest.$ac_objext conftest$ac_exeext
17319 if { (eval echo "$as_me:17319: \"$ac_link\"") >&5
17320 (eval $ac_link) 2>&5
17322 echo "$as_me:17322: \$? = $ac_status" >&5
17323 (exit $ac_status); } &&
17324 { ac_try='test -s conftest$ac_exeext'
17325 { (eval echo "$as_me:17325: \"$ac_try\"") >&5
17326 (eval $ac_try) 2>&5
17328 echo "$as_me:17328: \$? = $ac_status" >&5
17329 (exit $ac_status); }; }; then
17332 echo "$as_me: failed program was:" >&5
17333 cat conftest.$ac_ext >&5
17336 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17339 cat >conftest.$ac_ext <<_ACEOF
17340 #line 17340 "configure"
17341 #include "confdefs.h"
17343 #ifdef HAVE_XCURSES
17344 #include <xcurses.h>
17345 char * XCursesProgramName = "test";
17347 #include <${cf_cv_ncurses_header:-curses.h}>
17348 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17349 #include <ncursesw/term.h>
17350 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17351 #include <ncurses/term.h>
17352 #elif defined(HAVE_TERM_H)
17357 extern char boolfnames;
17360 void *foo = &(boolfnames);
17361 fprintf(stderr, "testing linkage of boolfnames:%p\n", foo);
17362 ${cf_cv_main_return:-return}(foo == 0);
17365 rm -f conftest$ac_exeext
17366 if { (eval echo "$as_me:17366: \"$ac_link\"") >&5
17367 (eval $ac_link) 2>&5
17369 echo "$as_me:17369: \$? = $ac_status" >&5
17370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17371 { (eval echo "$as_me:17371: \"$ac_try\"") >&5
17372 (eval $ac_try) 2>&5
17374 echo "$as_me:17374: \$? = $ac_status" >&5
17375 (exit $ac_status); }; }; then
17378 echo "$as_me: program exited with status $ac_status" >&5
17379 echo "$as_me: failed program was:" >&5
17380 cat conftest.$ac_ext >&5
17383 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17385 echo "$as_me:17385: result: $cf_result" >&5
17386 echo "${ECHO_T}$cf_result" >&6
17387 if test $cf_result = yes ; then
17389 cf_result=`echo "decl_curses_data_boolfnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17391 cat >>confdefs.h <<EOF
17392 #define $cf_result 1
17398 echo "$as_me:17398: checking for data ttytype declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
17399 echo $ECHO_N "checking for data ttytype declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
17401 cat >conftest.$ac_ext <<_ACEOF
17402 #line 17402 "configure"
17403 #include "confdefs.h"
17405 #ifdef HAVE_XCURSES
17406 #include <xcurses.h>
17407 char * XCursesProgramName = "test";
17409 #include <${cf_cv_ncurses_header:-curses.h}>
17410 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17411 #include <ncursesw/term.h>
17412 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17413 #include <ncurses/term.h>
17414 #elif defined(HAVE_TERM_H)
17423 void *foo = &(ttytype)
17429 rm -f conftest.$ac_objext
17430 if { (eval echo "$as_me:17430: \"$ac_compile\"") >&5
17431 (eval $ac_compile) 2>&5
17433 echo "$as_me:17433: \$? = $ac_status" >&5
17434 (exit $ac_status); } &&
17435 { ac_try='test -s conftest.$ac_objext'
17436 { (eval echo "$as_me:17436: \"$ac_try\"") >&5
17437 (eval $ac_try) 2>&5
17439 echo "$as_me:17439: \$? = $ac_status" >&5
17440 (exit $ac_status); }; }; then
17443 echo "$as_me: failed program was:" >&5
17444 cat conftest.$ac_ext >&5
17447 rm -f conftest.$ac_objext conftest.$ac_ext
17448 echo "$as_me:17448: result: $cf_result" >&5
17449 echo "${ECHO_T}$cf_result" >&6
17451 if test $cf_result = yes ; then
17453 cf_result=`echo "have_curses_data_ttytype" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17455 cat >>confdefs.h <<EOF
17456 #define $cf_result 1
17460 echo "$as_me:17460: checking for data ttytype in library" >&5
17461 echo $ECHO_N "checking for data ttytype in library... $ECHO_C" >&6
17462 # BSD linkers insist on making weak linkage, but resolve at runtime.
17463 if test "$cross_compiling" = yes; then
17466 cat >conftest.$ac_ext <<_ACEOF
17467 #line 17467 "configure"
17468 #include "confdefs.h"
17470 #ifdef HAVE_XCURSES
17471 #include <xcurses.h>
17472 char * XCursesProgramName = "test";
17474 #include <${cf_cv_ncurses_header:-curses.h}>
17475 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17476 #include <ncursesw/term.h>
17477 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17478 #include <ncurses/term.h>
17479 #elif defined(HAVE_TERM_H)
17484 extern char ttytype;
17490 void *foo = &(ttytype);
17491 fprintf(stderr, "testing linkage of ttytype:%p\n", foo);
17492 ${cf_cv_main_return:-return}(foo == 0);
17499 rm -f conftest.$ac_objext conftest$ac_exeext
17500 if { (eval echo "$as_me:17500: \"$ac_link\"") >&5
17501 (eval $ac_link) 2>&5
17503 echo "$as_me:17503: \$? = $ac_status" >&5
17504 (exit $ac_status); } &&
17505 { ac_try='test -s conftest$ac_exeext'
17506 { (eval echo "$as_me:17506: \"$ac_try\"") >&5
17507 (eval $ac_try) 2>&5
17509 echo "$as_me:17509: \$? = $ac_status" >&5
17510 (exit $ac_status); }; }; then
17513 echo "$as_me: failed program was:" >&5
17514 cat conftest.$ac_ext >&5
17517 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17520 cat >conftest.$ac_ext <<_ACEOF
17521 #line 17521 "configure"
17522 #include "confdefs.h"
17524 #ifdef HAVE_XCURSES
17525 #include <xcurses.h>
17526 char * XCursesProgramName = "test";
17528 #include <${cf_cv_ncurses_header:-curses.h}>
17529 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17530 #include <ncursesw/term.h>
17531 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17532 #include <ncurses/term.h>
17533 #elif defined(HAVE_TERM_H)
17538 extern char ttytype;
17541 void *foo = &(ttytype);
17542 fprintf(stderr, "testing linkage of ttytype:%p\n", foo);
17543 ${cf_cv_main_return:-return}(foo == 0);
17546 rm -f conftest$ac_exeext
17547 if { (eval echo "$as_me:17547: \"$ac_link\"") >&5
17548 (eval $ac_link) 2>&5
17550 echo "$as_me:17550: \$? = $ac_status" >&5
17551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17552 { (eval echo "$as_me:17552: \"$ac_try\"") >&5
17553 (eval $ac_try) 2>&5
17555 echo "$as_me:17555: \$? = $ac_status" >&5
17556 (exit $ac_status); }; }; then
17559 echo "$as_me: program exited with status $ac_status" >&5
17560 echo "$as_me: failed program was:" >&5
17561 cat conftest.$ac_ext >&5
17564 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17566 echo "$as_me:17566: result: $cf_result" >&5
17567 echo "${ECHO_T}$cf_result" >&6
17568 if test $cf_result = yes ; then
17570 cf_result=`echo "decl_curses_data_ttytype" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17572 cat >>confdefs.h <<EOF
17573 #define $cf_result 1
17579 if ( test "$GCC" = yes || test "$GXX" = yes )
17581 echo "$as_me:17581: checking if you want to turn on gcc warnings" >&5
17582 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
17584 # Check whether --enable-warnings or --disable-warnings was given.
17585 if test "${enable_warnings+set}" = set; then
17586 enableval="$enable_warnings"
17587 test "$enableval" != yes && enableval=no
17588 if test "$enableval" != "no" ; then
17598 echo "$as_me:17598: result: $with_warnings" >&5
17599 echo "${ECHO_T}$with_warnings" >&6
17600 if test "$with_warnings" = "yes"
17603 if test "$GCC" = yes
17605 cat > conftest.i <<EOF
17607 #define GCC_PRINTF 0
17610 #define GCC_SCANF 0
17612 #ifndef GCC_NORETURN
17613 #define GCC_NORETURN /* nothing */
17616 #define GCC_UNUSED /* nothing */
17619 if test "$GCC" = yes
17621 { echo "$as_me:17621: checking for $CC __attribute__ directives..." >&5
17622 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
17623 cat > conftest.$ac_ext <<EOF
17624 #line 17624 "${as_me:-configure}"
17625 #include "confdefs.h"
17626 #include "conftest.h"
17627 #include "conftest.i"
17629 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
17631 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
17634 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
17636 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
17638 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
17639 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
17640 extern void foo(void) GCC_NORETURN;
17641 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
17643 cf_printf_attribute=no
17644 cf_scanf_attribute=no
17645 for cf_attribute in scanf printf unused noreturn
17648 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17650 cf_directive="__attribute__(($cf_attribute))"
17651 echo "checking for $CC $cf_directive" 1>&5
17653 case $cf_attribute in
17655 cf_printf_attribute=yes
17656 cat >conftest.h <<EOF
17657 #define GCC_$cf_ATTRIBUTE 1
17661 cf_scanf_attribute=yes
17662 cat >conftest.h <<EOF
17663 #define GCC_$cf_ATTRIBUTE 1
17667 cat >conftest.h <<EOF
17668 #define GCC_$cf_ATTRIBUTE $cf_directive
17673 if { (eval echo "$as_me:17673: \"$ac_compile\"") >&5
17674 (eval $ac_compile) 2>&5
17676 echo "$as_me:17676: \$? = $ac_status" >&5
17677 (exit $ac_status); }; then
17678 test -n "$verbose" && echo "$as_me:17678: result: ... $cf_attribute" >&5
17679 echo "${ECHO_T}... $cf_attribute" >&6
17680 cat conftest.h >>confdefs.h
17681 case $cf_attribute in
17684 cat >>confdefs.h <<EOF
17685 #define GCC_NORETURN $cf_directive
17690 cf_value='/* nothing */'
17691 if test "$cf_printf_attribute" != no ; then
17692 cf_value='__attribute__((format(printf,fmt,var)))'
17694 cat >>confdefs.h <<\EOF
17695 #define GCC_PRINTF 1
17700 cat >>confdefs.h <<EOF
17701 #define GCC_PRINTFLIKE(fmt,var) $cf_value
17706 cf_value='/* nothing */'
17707 if test "$cf_scanf_attribute" != no ; then
17708 cf_value='__attribute__((format(scanf,fmt,var)))'
17710 cat >>confdefs.h <<\EOF
17711 #define GCC_SCANF 1
17716 cat >>confdefs.h <<EOF
17717 #define GCC_SCANFLIKE(fmt,var) $cf_value
17723 cat >>confdefs.h <<EOF
17724 #define GCC_UNUSED $cf_directive
17732 fgrep define conftest.i >>confdefs.h
17739 if test "$GCC" = yes ; then
17742 echo "$as_me:17742: checking if this is really Intel C compiler" >&5
17743 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
17744 cf_save_CFLAGS="$CFLAGS"
17745 CFLAGS="$CFLAGS -no-gcc"
17746 cat >conftest.$ac_ext <<_ACEOF
17747 #line 17747 "configure"
17748 #include "confdefs.h"
17754 #ifdef __INTEL_COMPILER
17763 rm -f conftest.$ac_objext
17764 if { (eval echo "$as_me:17764: \"$ac_compile\"") >&5
17765 (eval $ac_compile) 2>&5
17767 echo "$as_me:17767: \$? = $ac_status" >&5
17768 (exit $ac_status); } &&
17769 { ac_try='test -s conftest.$ac_objext'
17770 { (eval echo "$as_me:17770: \"$ac_try\"") >&5
17771 (eval $ac_try) 2>&5
17773 echo "$as_me:17773: \$? = $ac_status" >&5
17774 (exit $ac_status); }; }; then
17776 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
17779 echo "$as_me: failed program was:" >&5
17780 cat conftest.$ac_ext >&5
17782 rm -f conftest.$ac_objext conftest.$ac_ext
17783 CFLAGS="$cf_save_CFLAGS"
17784 echo "$as_me:17784: result: $INTEL_COMPILER" >&5
17785 echo "${ECHO_T}$INTEL_COMPILER" >&6
17792 if test "$GCC" = yes ; then
17793 echo "$as_me:17793: checking if this is really Clang C compiler" >&5
17794 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
17795 cf_save_CFLAGS="$CFLAGS"
17796 CFLAGS="$CFLAGS -Qunused-arguments"
17797 cat >conftest.$ac_ext <<_ACEOF
17798 #line 17798 "configure"
17799 #include "confdefs.h"
17814 rm -f conftest.$ac_objext
17815 if { (eval echo "$as_me:17815: \"$ac_compile\"") >&5
17816 (eval $ac_compile) 2>&5
17818 echo "$as_me:17818: \$? = $ac_status" >&5
17819 (exit $ac_status); } &&
17820 { ac_try='test -s conftest.$ac_objext'
17821 { (eval echo "$as_me:17821: \"$ac_try\"") >&5
17822 (eval $ac_try) 2>&5
17824 echo "$as_me:17824: \$? = $ac_status" >&5
17825 (exit $ac_status); }; }; then
17827 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
17830 echo "$as_me: failed program was:" >&5
17831 cat conftest.$ac_ext >&5
17833 rm -f conftest.$ac_objext conftest.$ac_ext
17834 CFLAGS="$cf_save_CFLAGS"
17835 echo "$as_me:17835: result: $CLANG_COMPILER" >&5
17836 echo "${ECHO_T}$CLANG_COMPILER" >&6
17839 cat > conftest.$ac_ext <<EOF
17840 #line 17840 "${as_me:-configure}"
17841 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
17844 if test "$INTEL_COMPILER" = yes
17846 # The "-wdXXX" options suppress warnings:
17847 # remark #1419: external declaration in primary source file
17848 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
17849 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
17850 # remark #193: zero used for undefined preprocessing identifier
17851 # remark #593: variable "curs_sb_left_arrow" was set but never used
17852 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
17853 # remark #869: parameter "tw" was never referenced
17854 # remark #981: operands are evaluated in unspecified order
17855 # warning #279: controlling expression is constant
17857 { echo "$as_me:17857: checking for $CC warning options..." >&5
17858 echo "$as_me: checking for $CC warning options..." >&6;}
17859 cf_save_CFLAGS="$CFLAGS"
17860 EXTRA_CFLAGS="-Wall"
17872 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
17873 if { (eval echo "$as_me:17873: \"$ac_compile\"") >&5
17874 (eval $ac_compile) 2>&5
17876 echo "$as_me:17876: \$? = $ac_status" >&5
17877 (exit $ac_status); }; then
17878 test -n "$verbose" && echo "$as_me:17878: result: ... -$cf_opt" >&5
17879 echo "${ECHO_T}... -$cf_opt" >&6
17880 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
17883 CFLAGS="$cf_save_CFLAGS"
17885 elif test "$GCC" = yes
17887 { echo "$as_me:17887: checking for $CC warning options..." >&5
17888 echo "$as_me: checking for $CC warning options..." >&6;}
17889 cf_save_CFLAGS="$CFLAGS"
17892 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
17893 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
17894 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
17895 for cf_opt in W Wall \
17896 Wbad-function-cast \
17899 Wdeclaration-after-statement \
17902 Wmissing-declarations \
17903 Wmissing-prototypes \
17907 Wstrict-prototypes \
17908 Wundef $cf_gcc_warnings $cf_warn_CONST
17910 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
17911 if { (eval echo "$as_me:17911: \"$ac_compile\"") >&5
17912 (eval $ac_compile) 2>&5
17914 echo "$as_me:17914: \$? = $ac_status" >&5
17915 (exit $ac_status); }; then
17916 test -n "$verbose" && echo "$as_me:17916: result: ... -$cf_opt" >&5
17917 echo "${ECHO_T}... -$cf_opt" >&6
17920 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
17923 case $GCC_VERSION in
17925 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
17927 echo "${as_me:-configure}:17927: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
17933 case $GCC_VERSION in
17935 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
17937 echo "${as_me:-configure}:17937: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
17943 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
17946 CFLAGS="$cf_save_CFLAGS"
17953 echo "$as_me:17953: checking if you want to use dmalloc for testing" >&5
17954 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
17956 # Check whether --with-dmalloc or --without-dmalloc was given.
17957 if test "${with_dmalloc+set}" = set; then
17958 withval="$with_dmalloc"
17960 cat >>confdefs.h <<EOF
17961 #define USE_DMALLOC 1
17964 : ${with_cflags:=-g}
17965 : ${with_no_leaks:=yes}
17970 echo "$as_me:17970: result: ${with_dmalloc:-no}" >&5
17971 echo "${ECHO_T}${with_dmalloc:-no}" >&6
17973 case .$with_cflags in
17983 cf_new_extra_cppflags=
17985 for cf_add_cflags in -g
17987 case $cf_fix_cppflags in
17989 case $cf_add_cflags in
17990 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17991 case $cf_add_cflags in
17993 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17995 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17996 && test -z "${cf_tst_cflags}" \
17997 && cf_fix_cppflags=yes
17999 if test $cf_fix_cppflags = yes ; then
18001 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18002 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18005 elif test "${cf_tst_cflags}" = "\"'" ; then
18007 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18008 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18014 case "$CPPFLAGS" in
18018 case $cf_add_cflags in
18020 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18022 CPPFLAGS=`echo "$CPPFLAGS" | \
18023 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18024 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18029 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18030 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18037 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18038 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18045 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18046 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18048 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
18050 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18051 && test -z "${cf_tst_cflags}" \
18052 && cf_fix_cppflags=no
18057 if test -n "$cf_new_cflags" ; then
18059 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18060 CFLAGS="${CFLAGS}$cf_new_cflags"
18064 if test -n "$cf_new_cppflags" ; then
18066 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18067 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18071 if test -n "$cf_new_extra_cppflags" ; then
18073 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18074 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18083 if test "$with_dmalloc" = yes ; then
18084 echo "$as_me:18084: checking for dmalloc.h" >&5
18085 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
18086 if test "${ac_cv_header_dmalloc_h+set}" = set; then
18087 echo $ECHO_N "(cached) $ECHO_C" >&6
18089 cat >conftest.$ac_ext <<_ACEOF
18090 #line 18090 "configure"
18091 #include "confdefs.h"
18092 #include <dmalloc.h>
18094 if { (eval echo "$as_me:18094: \"$ac_cpp conftest.$ac_ext\"") >&5
18095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18097 egrep -v '^ *\+' conftest.er1 >conftest.err
18099 cat conftest.err >&5
18100 echo "$as_me:18100: \$? = $ac_status" >&5
18101 (exit $ac_status); } >/dev/null; then
18102 if test -s conftest.err; then
18103 ac_cpp_err=$ac_c_preproc_warn_flag
18110 if test -z "$ac_cpp_err"; then
18111 ac_cv_header_dmalloc_h=yes
18113 echo "$as_me: failed program was:" >&5
18114 cat conftest.$ac_ext >&5
18115 ac_cv_header_dmalloc_h=no
18117 rm -f conftest.err conftest.$ac_ext
18119 echo "$as_me:18119: result: $ac_cv_header_dmalloc_h" >&5
18120 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
18121 if test $ac_cv_header_dmalloc_h = yes; then
18123 echo "$as_me:18123: checking for dmalloc_debug in -ldmalloc" >&5
18124 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
18125 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
18126 echo $ECHO_N "(cached) $ECHO_C" >&6
18128 ac_check_lib_save_LIBS=$LIBS
18129 LIBS="-ldmalloc $LIBS"
18130 cat >conftest.$ac_ext <<_ACEOF
18131 #line 18131 "configure"
18132 #include "confdefs.h"
18134 /* Override any gcc2 internal prototype to avoid an error. */
18138 /* We use char because int might match the return type of a gcc2
18139 builtin and then its argument prototype would still apply. */
18140 char dmalloc_debug ();
18149 rm -f conftest.$ac_objext conftest$ac_exeext
18150 if { (eval echo "$as_me:18150: \"$ac_link\"") >&5
18151 (eval $ac_link) 2>&5
18153 echo "$as_me:18153: \$? = $ac_status" >&5
18154 (exit $ac_status); } &&
18155 { ac_try='test -s conftest$ac_exeext'
18156 { (eval echo "$as_me:18156: \"$ac_try\"") >&5
18157 (eval $ac_try) 2>&5
18159 echo "$as_me:18159: \$? = $ac_status" >&5
18160 (exit $ac_status); }; }; then
18161 ac_cv_lib_dmalloc_dmalloc_debug=yes
18163 echo "$as_me: failed program was:" >&5
18164 cat conftest.$ac_ext >&5
18165 ac_cv_lib_dmalloc_dmalloc_debug=no
18167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18168 LIBS=$ac_check_lib_save_LIBS
18170 echo "$as_me:18170: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
18171 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
18172 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
18173 cat >>confdefs.h <<EOF
18174 #define HAVE_LIBDMALLOC 1
18177 LIBS="-ldmalloc $LIBS"
18185 echo "$as_me:18185: checking if you want to use dbmalloc for testing" >&5
18186 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
18188 # Check whether --with-dbmalloc or --without-dbmalloc was given.
18189 if test "${with_dbmalloc+set}" = set; then
18190 withval="$with_dbmalloc"
18192 cat >>confdefs.h <<EOF
18193 #define USE_DBMALLOC 1
18196 : ${with_cflags:=-g}
18197 : ${with_no_leaks:=yes}
18202 echo "$as_me:18202: result: ${with_dbmalloc:-no}" >&5
18203 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
18205 case .$with_cflags in
18215 cf_new_extra_cppflags=
18217 for cf_add_cflags in -g
18219 case $cf_fix_cppflags in
18221 case $cf_add_cflags in
18222 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18223 case $cf_add_cflags in
18225 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18227 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18228 && test -z "${cf_tst_cflags}" \
18229 && cf_fix_cppflags=yes
18231 if test $cf_fix_cppflags = yes ; then
18233 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18234 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18237 elif test "${cf_tst_cflags}" = "\"'" ; then
18239 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18240 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18246 case "$CPPFLAGS" in
18250 case $cf_add_cflags in
18252 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18254 CPPFLAGS=`echo "$CPPFLAGS" | \
18255 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18256 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18261 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18262 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18269 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18270 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18277 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18278 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18280 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
18282 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18283 && test -z "${cf_tst_cflags}" \
18284 && cf_fix_cppflags=no
18289 if test -n "$cf_new_cflags" ; then
18291 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18292 CFLAGS="${CFLAGS}$cf_new_cflags"
18296 if test -n "$cf_new_cppflags" ; then
18298 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18299 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18303 if test -n "$cf_new_extra_cppflags" ; then
18305 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18306 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18315 if test "$with_dbmalloc" = yes ; then
18316 echo "$as_me:18316: checking for dbmalloc.h" >&5
18317 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
18318 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
18319 echo $ECHO_N "(cached) $ECHO_C" >&6
18321 cat >conftest.$ac_ext <<_ACEOF
18322 #line 18322 "configure"
18323 #include "confdefs.h"
18324 #include <dbmalloc.h>
18326 if { (eval echo "$as_me:18326: \"$ac_cpp conftest.$ac_ext\"") >&5
18327 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18329 egrep -v '^ *\+' conftest.er1 >conftest.err
18331 cat conftest.err >&5
18332 echo "$as_me:18332: \$? = $ac_status" >&5
18333 (exit $ac_status); } >/dev/null; then
18334 if test -s conftest.err; then
18335 ac_cpp_err=$ac_c_preproc_warn_flag
18342 if test -z "$ac_cpp_err"; then
18343 ac_cv_header_dbmalloc_h=yes
18345 echo "$as_me: failed program was:" >&5
18346 cat conftest.$ac_ext >&5
18347 ac_cv_header_dbmalloc_h=no
18349 rm -f conftest.err conftest.$ac_ext
18351 echo "$as_me:18351: result: $ac_cv_header_dbmalloc_h" >&5
18352 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
18353 if test $ac_cv_header_dbmalloc_h = yes; then
18355 echo "$as_me:18355: checking for debug_malloc in -ldbmalloc" >&5
18356 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
18357 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
18358 echo $ECHO_N "(cached) $ECHO_C" >&6
18360 ac_check_lib_save_LIBS=$LIBS
18361 LIBS="-ldbmalloc $LIBS"
18362 cat >conftest.$ac_ext <<_ACEOF
18363 #line 18363 "configure"
18364 #include "confdefs.h"
18366 /* Override any gcc2 internal prototype to avoid an error. */
18370 /* We use char because int might match the return type of a gcc2
18371 builtin and then its argument prototype would still apply. */
18372 char debug_malloc ();
18381 rm -f conftest.$ac_objext conftest$ac_exeext
18382 if { (eval echo "$as_me:18382: \"$ac_link\"") >&5
18383 (eval $ac_link) 2>&5
18385 echo "$as_me:18385: \$? = $ac_status" >&5
18386 (exit $ac_status); } &&
18387 { ac_try='test -s conftest$ac_exeext'
18388 { (eval echo "$as_me:18388: \"$ac_try\"") >&5
18389 (eval $ac_try) 2>&5
18391 echo "$as_me:18391: \$? = $ac_status" >&5
18392 (exit $ac_status); }; }; then
18393 ac_cv_lib_dbmalloc_debug_malloc=yes
18395 echo "$as_me: failed program was:" >&5
18396 cat conftest.$ac_ext >&5
18397 ac_cv_lib_dbmalloc_debug_malloc=no
18399 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18400 LIBS=$ac_check_lib_save_LIBS
18402 echo "$as_me:18402: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
18403 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
18404 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
18405 cat >>confdefs.h <<EOF
18406 #define HAVE_LIBDBMALLOC 1
18409 LIBS="-ldbmalloc $LIBS"
18417 echo "$as_me:18417: checking if you want to use valgrind for testing" >&5
18418 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
18420 # Check whether --with-valgrind or --without-valgrind was given.
18421 if test "${with_valgrind+set}" = set; then
18422 withval="$with_valgrind"
18424 cat >>confdefs.h <<EOF
18425 #define USE_VALGRIND 1
18428 : ${with_cflags:=-g}
18429 : ${with_no_leaks:=yes}
18434 echo "$as_me:18434: result: ${with_valgrind:-no}" >&5
18435 echo "${ECHO_T}${with_valgrind:-no}" >&6
18437 case .$with_cflags in
18447 cf_new_extra_cppflags=
18449 for cf_add_cflags in -g
18451 case $cf_fix_cppflags in
18453 case $cf_add_cflags in
18454 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18455 case $cf_add_cflags in
18457 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18459 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18460 && test -z "${cf_tst_cflags}" \
18461 && cf_fix_cppflags=yes
18463 if test $cf_fix_cppflags = yes ; then
18465 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18466 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18469 elif test "${cf_tst_cflags}" = "\"'" ; then
18471 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18472 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18478 case "$CPPFLAGS" in
18482 case $cf_add_cflags in
18484 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18486 CPPFLAGS=`echo "$CPPFLAGS" | \
18487 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18488 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18493 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
18494 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
18501 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
18502 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
18509 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
18510 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
18512 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
18514 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18515 && test -z "${cf_tst_cflags}" \
18516 && cf_fix_cppflags=no
18521 if test -n "$cf_new_cflags" ; then
18523 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
18524 CFLAGS="${CFLAGS}$cf_new_cflags"
18528 if test -n "$cf_new_cppflags" ; then
18530 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
18531 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
18535 if test -n "$cf_new_extra_cppflags" ; then
18537 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
18538 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
18547 echo "$as_me:18547: checking if you want to perform memory-leak testing" >&5
18548 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
18550 # Check whether --enable-leaks or --disable-leaks was given.
18551 if test "${enable_leaks+set}" = set; then
18552 enableval="$enable_leaks"
18553 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
18555 : ${with_no_leaks:=no}
18557 echo "$as_me:18557: result: $with_no_leaks" >&5
18558 echo "${ECHO_T}$with_no_leaks" >&6
18560 if test "$with_no_leaks" = yes ; then
18562 cat >>confdefs.h <<\EOF
18566 cat >>confdefs.h <<\EOF
18567 #define YY_NO_LEAKS 1
18573 echo "$as_me:18573: checking for an rpath option" >&5
18574 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
18575 case $cf_cv_system_name in
18577 if test "$GCC" = yes; then
18578 LD_RPATH_OPT="-Wl,-rpath,"
18580 LD_RPATH_OPT="-rpath "
18583 (linux*|gnu*|k*bsd*-gnu|freebsd*)
18584 LD_RPATH_OPT="-Wl,-rpath,"
18586 (openbsd[2-9].*|mirbsd*)
18587 LD_RPATH_OPT="-Wl,-rpath,"
18590 LD_RPATH_OPT="-rpath "
18593 LD_RPATH_OPT="-Wl,-rpath,"
18596 LD_RPATH_OPT="-rpath "
18604 echo "$as_me:18604: result: $LD_RPATH_OPT" >&5
18605 echo "${ECHO_T}$LD_RPATH_OPT" >&6
18607 case "x$LD_RPATH_OPT" in
18609 echo "$as_me:18609: checking if we need a space after rpath option" >&5
18610 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
18611 cf_save_LIBS="$LIBS"
18613 cf_add_libs="${LD_RPATH_OPT}$libdir"
18614 # Filter out duplicates - this happens with badly-designed ".pc" files...
18615 for cf_add_1lib in $LIBS
18617 for cf_add_2lib in $cf_add_libs
18619 if test "x$cf_add_1lib" = "x$cf_add_2lib"
18625 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
18627 LIBS="$cf_add_libs"
18629 cat >conftest.$ac_ext <<_ACEOF
18630 #line 18630 "configure"
18631 #include "confdefs.h"
18641 rm -f conftest.$ac_objext conftest$ac_exeext
18642 if { (eval echo "$as_me:18642: \"$ac_link\"") >&5
18643 (eval $ac_link) 2>&5
18645 echo "$as_me:18645: \$? = $ac_status" >&5
18646 (exit $ac_status); } &&
18647 { ac_try='test -s conftest$ac_exeext'
18648 { (eval echo "$as_me:18648: \"$ac_try\"") >&5
18649 (eval $ac_try) 2>&5
18651 echo "$as_me:18651: \$? = $ac_status" >&5
18652 (exit $ac_status); }; }; then
18655 echo "$as_me: failed program was:" >&5
18656 cat conftest.$ac_ext >&5
18659 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18660 LIBS="$cf_save_LIBS"
18661 echo "$as_me:18661: result: $cf_rpath_space" >&5
18662 echo "${ECHO_T}$cf_rpath_space" >&6
18663 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
18667 echo "$as_me:18667: checking if rpath-hack should be disabled" >&5
18668 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
18670 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
18671 if test "${enable_rpath_hack+set}" = set; then
18672 enableval="$enable_rpath_hack"
18673 test "$enableval" != no && enableval=yes
18674 if test "$enableval" != "yes" ; then
18675 cf_disable_rpath_hack=yes
18677 cf_disable_rpath_hack=no
18681 cf_disable_rpath_hack=no
18684 echo "$as_me:18684: result: $cf_disable_rpath_hack" >&5
18685 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
18686 if test "$cf_disable_rpath_hack" = no ; then
18688 echo "$as_me:18688: checking for updated LDFLAGS" >&5
18689 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
18690 if test -n "$LD_RPATH_OPT" ; then
18691 echo "$as_me:18691: result: maybe" >&5
18692 echo "${ECHO_T}maybe" >&6
18696 # Extract the first word of "$ac_prog", so it can be a program name with args.
18697 set dummy $ac_prog; ac_word=$2
18698 echo "$as_me:18698: checking for $ac_word" >&5
18699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18700 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
18701 echo $ECHO_N "(cached) $ECHO_C" >&6
18703 if test -n "$cf_ldd_prog"; then
18704 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
18706 ac_save_IFS=$IFS; IFS=$ac_path_separator
18708 for ac_dir in $ac_dummy; do
18710 test -z "$ac_dir" && ac_dir=.
18711 $as_executable_p "$ac_dir/$ac_word" || continue
18712 ac_cv_prog_cf_ldd_prog="$ac_prog"
18713 echo "$as_me:18713: found $ac_dir/$ac_word" >&5
18719 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
18720 if test -n "$cf_ldd_prog"; then
18721 echo "$as_me:18721: result: $cf_ldd_prog" >&5
18722 echo "${ECHO_T}$cf_ldd_prog" >&6
18724 echo "$as_me:18724: result: no" >&5
18725 echo "${ECHO_T}no" >&6
18728 test -n "$cf_ldd_prog" && break
18730 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
18732 cf_rpath_list="/usr/lib /lib"
18733 if test "$cf_ldd_prog" != no
18737 cat >conftest.$ac_ext <<_ACEOF
18738 #line 18738 "configure"
18739 #include "confdefs.h"
18749 rm -f conftest.$ac_objext conftest$ac_exeext
18750 if { (eval echo "$as_me:18750: \"$ac_link\"") >&5
18751 (eval $ac_link) 2>&5
18753 echo "$as_me:18753: \$? = $ac_status" >&5
18754 (exit $ac_status); } &&
18755 { ac_try='test -s conftest$ac_exeext'
18756 { (eval echo "$as_me:18756: \"$ac_try\"") >&5
18757 (eval $ac_try) 2>&5
18759 echo "$as_me:18759: \$? = $ac_status" >&5
18760 (exit $ac_status); }; }; then
18761 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
18762 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
18764 echo "$as_me: failed program was:" >&5
18765 cat conftest.$ac_ext >&5
18767 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18769 # If we passed the link-test, but get a "not found" on a given library,
18770 # this could be due to inept reconfiguration of gcc to make it only
18771 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
18772 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
18773 # /usr/local libraries.
18774 if test -n "$cf_rpath_oops"
18776 for cf_rpath_src in $cf_rpath_oops
18778 for cf_rpath_dir in \
18783 if test -f $cf_rpath_dir/lib/$cf_rpath_src
18785 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
18787 echo "${as_me:-configure}:18787: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
18789 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
18797 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
18799 echo "${as_me:-configure}:18799: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
18801 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
18803 echo "${as_me:-configure}:18803: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
18806 for cf_rpath_src in $LDFLAGS
18808 case $cf_rpath_src in
18811 # check if this refers to a directory which we will ignore
18813 if test -n "$cf_rpath_list"
18815 for cf_rpath_item in $cf_rpath_list
18817 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
18825 if test "$cf_rpath_skip" = no
18827 # transform the option
18828 if test "$LD_RPATH_OPT" = "-R " ; then
18829 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
18831 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
18834 # if we have not already added this, add it now
18835 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
18836 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
18838 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
18840 echo "${as_me:-configure}:18840: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
18842 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
18847 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
18849 LDFLAGS=$cf_rpath_dst
18851 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
18853 echo "${as_me:-configure}:18853: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
18855 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
18857 echo "${as_me:-configure}:18857: testing ...checking LIBS $LIBS ..." 1>&5
18860 for cf_rpath_src in $LIBS
18862 case $cf_rpath_src in
18865 # check if this refers to a directory which we will ignore
18867 if test -n "$cf_rpath_list"
18869 for cf_rpath_item in $cf_rpath_list
18871 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
18879 if test "$cf_rpath_skip" = no
18881 # transform the option
18882 if test "$LD_RPATH_OPT" = "-R " ; then
18883 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
18885 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
18888 # if we have not already added this, add it now
18889 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
18890 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
18892 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
18894 echo "${as_me:-configure}:18894: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
18896 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
18901 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
18905 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
18907 echo "${as_me:-configure}:18907: testing ...checked LIBS $LIBS ..." 1>&5
18909 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
18911 echo "${as_me:-configure}:18911: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
18914 echo "$as_me:18914: result: no" >&5
18915 echo "${ECHO_T}no" >&6
18923 ac_config_files="$ac_config_files Makefile"
18924 ac_config_commands="$ac_config_commands default"
18925 cat >confcache <<\_ACEOF
18926 # This file is a shell script that caches the results of configure
18927 # tests run on this system so they can be shared between configure
18928 # scripts and configure runs, see configure's option --config-cache.
18929 # It is not useful on other systems. If it contains results you don't
18930 # want to keep, you may remove or edit it.
18932 # config.status only pays attention to the cache file if you give it
18933 # the --recheck option to rerun configure.
18935 # `ac_cv_env_foo' variables (set or unset) will be overriden when
18936 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18937 # following values.
18941 # The following way of writing the cache mishandles newlines in values,
18942 # but we know of no workaround that is simple, portable, and efficient.
18943 # So, don't put newlines in cache variables' values.
18944 # Ultrix sh set writes to stderr and can't be redirected directly,
18945 # and sets the high bit in the cache file unless we assign to the vars.
18948 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18950 # `set' does not quote correctly, so add quotes (double-quote
18951 # substitution turns \\\\ into \\, and sed turns \\ into \).
18954 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18957 # `set' quotes correctly as required by POSIX, so do not add quotes.
18959 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18966 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18968 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18970 if cmp -s $cache_file confcache; then :; else
18971 if test -w $cache_file; then
18972 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18973 cat confcache >$cache_file
18975 echo "not updating unwritable cache $cache_file"
18980 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18981 # Let make expand exec_prefix.
18982 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18984 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18985 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18986 # trailing colons and then remove the whole line if VPATH becomes empty
18987 # (actually we leave an empty line to preserve line numbers).
18988 if test "x$srcdir" = x.; then
18989 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18990 s/:*\$(srcdir):*/:/;
18991 s/:*\${srcdir}:*/:/;
18993 s/^\([^=]*=[ ]*\):*/\1/;
18999 DEFS=-DHAVE_CONFIG_H
19001 : ${CONFIG_STATUS=./config.status}
19002 ac_clean_files_save=$ac_clean_files
19003 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19004 { echo "$as_me:19004: creating $CONFIG_STATUS" >&5
19005 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19006 cat >$CONFIG_STATUS <<_ACEOF
19008 # Generated automatically by configure.
19009 # Run this file to recreate the current configuration.
19010 # Compiler output produced by configure, useful for debugging
19011 # configure, is in config.log if it exists.
19014 SHELL=\${CONFIG_SHELL-$SHELL}
19015 ac_cs_invocation="\$0 \$@"
19019 cat >>$CONFIG_STATUS <<\_ACEOF
19020 # Be Bourne compatible
19021 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19024 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19028 # Name of the executable.
19029 as_me=`echo "$0" |sed 's,.*[\\/],,'`
19031 if expr a : '\(a\)' >/dev/null 2>&1; then
19037 rm -f conf$$ conf$$.exe conf$$.file
19039 if ln -s conf$$.file conf$$ 2>/dev/null; then
19040 # We could just check for DJGPP; but this test a) works b) is more generic
19041 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19042 if test -f conf$$.exe; then
19043 # Don't use ln at all; we don't have any links
19048 elif ln conf$$.file conf$$ 2>/dev/null; then
19053 rm -f conf$$ conf$$.exe conf$$.file
19055 as_executable_p="test -f"
19057 # Support unset when possible.
19058 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19065 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
19066 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
19067 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
19068 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
19069 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
19070 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
19071 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
19072 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
19075 # We need space, tab and new line, in precisely that order.
19081 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
19087 # Files that config.status was made for.
19088 if test -n "$ac_config_files"; then
19089 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19092 if test -n "$ac_config_headers"; then
19093 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19096 if test -n "$ac_config_links"; then
19097 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19100 if test -n "$ac_config_commands"; then
19101 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19104 cat >>$CONFIG_STATUS <<\EOF
19107 \`$as_me' instantiates files from templates according to the
19108 current configuration.
19110 Usage: $0 [OPTIONS] [FILE]...
19112 -h, --help print this help, then exit
19113 -V, --version print version number, then exit
19114 -d, --debug don't remove temporary files
19115 --recheck update $as_me by reconfiguring in the same conditions
19116 --file=FILE[:TEMPLATE]
19117 instantiate the configuration file FILE
19118 --header=FILE[:TEMPLATE]
19119 instantiate the configuration header FILE
19121 Configuration files:
19124 Configuration headers:
19127 Configuration commands:
19130 Report bugs to <dickey@invisible-island.net>."
19133 cat >>$CONFIG_STATUS <<EOF
19136 configured by $0, generated by GNU Autoconf 2.52.20150926,
19137 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19139 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19140 Free Software Foundation, Inc.
19141 This config.status script is free software; the Free Software Foundation
19142 gives unlimited permission to copy, distribute and modify it."
19147 cat >>$CONFIG_STATUS <<\EOF
19148 # If no file are specified by the user, then we need to provide default
19149 # value. By we need to know if files were specified by the user.
19155 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19156 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19158 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
19162 *) # This is not an option, so the user has probably given explicit
19164 ac_need_defaults=false;;
19168 # Handling of the options.
19170 cat >>$CONFIG_STATUS <<EOF
19171 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19172 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
19173 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
19175 cat >>$CONFIG_STATUS <<\EOF
19176 --version | --vers* | -V )
19177 echo "$ac_cs_version"; exit 0 ;;
19179 # Conflict between --help and --header
19180 { { echo "$as_me:19180: error: ambiguous option: $1
19181 Try \`$0 --help' for more information." >&5
19182 echo "$as_me: error: ambiguous option: $1
19183 Try \`$0 --help' for more information." >&2;}
19184 { (exit 1); exit 1; }; };;
19185 --help | --hel | -h )
19186 echo "$ac_cs_usage"; exit 0 ;;
19187 --debug | --d* | -d )
19189 --file | --fil | --fi | --f )
19191 CONFIG_FILES="$CONFIG_FILES $1"
19192 ac_need_defaults=false;;
19193 --header | --heade | --head | --hea )
19195 CONFIG_HEADERS="$CONFIG_HEADERS $1"
19196 ac_need_defaults=false;;
19198 # This is an error.
19199 -*) { { echo "$as_me:19199: error: unrecognized option: $1
19200 Try \`$0 --help' for more information." >&5
19201 echo "$as_me: error: unrecognized option: $1
19202 Try \`$0 --help' for more information." >&2;}
19203 { (exit 1); exit 1; }; } ;;
19205 *) ac_config_targets="$ac_config_targets $1" ;;
19214 ## ----------------------- ##
19215 ## Running config.status. ##
19216 ## ----------------------- ##
19218 This file was extended by $as_me 2.52.20150926, executed with
19219 CONFIG_FILES = $CONFIG_FILES
19220 CONFIG_HEADERS = $CONFIG_HEADERS
19221 CONFIG_LINKS = $CONFIG_LINKS
19222 CONFIG_COMMANDS = $CONFIG_COMMANDS
19223 > $ac_cs_invocation
19224 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19229 cat >>$CONFIG_STATUS <<EOF
19231 # INIT-COMMANDS section.
19241 cat >>$CONFIG_STATUS <<\EOF
19242 for ac_config_target in $ac_config_targets
19244 case "$ac_config_target" in
19245 # Handling of arguments.
19246 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19247 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19248 "ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ncurses_cfg.h:ncurses_tst.hin" ;;
19249 *) { { echo "$as_me:19249: error: invalid argument: $ac_config_target" >&5
19250 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19251 { (exit 1); exit 1; }; };;
19255 # If the user did not use the arguments to specify the items to instantiate,
19256 # then the envvar interface is used. Set only those that are not.
19257 # We use the long form for the default assignment because of an extremely
19258 # bizarre bug on SunOS 4.1.3.
19259 if $ac_need_defaults; then
19260 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19261 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19262 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19265 # Create a temporary directory, and hook for its removal unless debugging.
19268 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19269 trap '{ (exit 1); exit 1; }' 1 2 13 15
19272 # Create a (secure) tmp directory for tmp files.
19275 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
19276 test -n "$tmp" && test -d "$tmp"
19279 tmp=$TMPDIR/cs$$-$RANDOM
19280 (umask 077 && mkdir $tmp)
19283 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
19284 { (exit 1); exit 1; }
19289 cat >>$CONFIG_STATUS <<EOF
19292 # CONFIG_FILES section.
19295 # No need to generate the scripts if there are no CONFIG_FILES.
19296 # This happens for instance when ./config.status config.h
19297 if test -n "\$CONFIG_FILES"; then
19298 # Protect against being on the right side of a sed subst in config.status.
19299 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19300 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19301 s,@SHELL@,$SHELL,;t t
19302 s,@exec_prefix@,$exec_prefix,;t t
19303 s,@prefix@,$prefix,;t t
19304 s,@program_transform_name@,$program_transform_name,;t t
19305 s,@bindir@,$bindir,;t t
19306 s,@sbindir@,$sbindir,;t t
19307 s,@libexecdir@,$libexecdir,;t t
19308 s,@datarootdir@,$datarootdir,;t t
19309 s,@datadir@,$datadir,;t t
19310 s,@sysconfdir@,$sysconfdir,;t t
19311 s,@sharedstatedir@,$sharedstatedir,;t t
19312 s,@localstatedir@,$localstatedir,;t t
19313 s,@libdir@,$libdir,;t t
19314 s,@includedir@,$includedir,;t t
19315 s,@oldincludedir@,$oldincludedir,;t t
19316 s,@infodir@,$infodir,;t t
19317 s,@mandir@,$mandir,;t t
19318 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19319 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19320 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19321 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19322 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19323 s,@build_alias@,$build_alias,;t t
19324 s,@host_alias@,$host_alias,;t t
19325 s,@target_alias@,$target_alias,;t t
19326 s,@ECHO_C@,$ECHO_C,;t t
19327 s,@ECHO_N@,$ECHO_N,;t t
19328 s,@ECHO_T@,$ECHO_T,;t t
19329 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19330 s,@DEFS@,$DEFS,;t t
19331 s,@LIBS@,$LIBS,;t t
19332 s,@build@,$build,;t t
19333 s,@build_cpu@,$build_cpu,;t t
19334 s,@build_vendor@,$build_vendor,;t t
19335 s,@build_os@,$build_os,;t t
19336 s,@host@,$host,;t t
19337 s,@host_cpu@,$host_cpu,;t t
19338 s,@host_vendor@,$host_vendor,;t t
19339 s,@host_os@,$host_os,;t t
19340 s,@SET_MAKE@,$SET_MAKE,;t t
19342 s,@CFLAGS@,$CFLAGS,;t t
19343 s,@LDFLAGS@,$LDFLAGS,;t t
19344 s,@CPPFLAGS@,$CPPFLAGS,;t t
19345 s,@ac_ct_CC@,$ac_ct_CC,;t t
19346 s,@EXEEXT@,$EXEEXT,;t t
19347 s,@OBJEXT@,$OBJEXT,;t t
19348 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
19351 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19352 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19353 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19354 s,@LINT@,$LINT,;t t
19355 s,@LINT_OPTS@,$LINT_OPTS,;t t
19356 s,@CTAGS@,$CTAGS,;t t
19357 s,@ETAGS@,$ETAGS,;t t
19358 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
19359 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
19360 s,@MATH_LIB@,$MATH_LIB,;t t
19361 s,@top_builddir@,$top_builddir,;t t
19362 s,@CC_G_OPT@,$CC_G_OPT,;t t
19363 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
19364 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
19365 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
19366 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
19368 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
19369 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
19370 s,@LD_MODEL@,$LD_MODEL,;t t
19371 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
19372 s,@LIBTOOL@,$LIBTOOL,;t t
19373 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
19374 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
19375 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
19376 s,@LIB_LINK@,$LIB_LINK,;t t
19377 s,@LINK_TESTS@,$LINK_TESTS,;t t
19378 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19379 s,@PACKAGE@,$PACKAGE,;t t
19380 s,@PTHREAD@,$PTHREAD,;t t
19381 s,@TEST_ARGS@,$TEST_ARGS,;t t
19382 s,@TEST_DEPS@,$TEST_DEPS,;t t
19383 s,@TEST_LIBS@,$TEST_LIBS,;t t
19384 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
19385 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
19386 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
19387 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
19388 s,@includesubdir@,$includesubdir,;t t
19389 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
19390 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
19391 s,@ECHO_LT@,$ECHO_LT,;t t
19392 s,@ECHO_LD@,$ECHO_LD,;t t
19393 s,@RULE_CC@,$RULE_CC,;t t
19394 s,@SHOW_CC@,$SHOW_CC,;t t
19395 s,@ECHO_CC@,$ECHO_CC,;t t
19396 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
19397 s,@NCURSES_CONFIG@,$NCURSES_CONFIG,;t t
19398 s,@ac_ct_NCURSES_CONFIG@,$ac_ct_NCURSES_CONFIG,;t t
19399 s,@X_CFLAGS@,$X_CFLAGS,;t t
19400 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19401 s,@X_LIBS@,$X_LIBS,;t t
19402 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19403 s,@XCURSES_CONFIG@,$XCURSES_CONFIG,;t t
19404 s,@ac_ct_XCURSES_CONFIG@,$ac_ct_XCURSES_CONFIG,;t t
19405 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
19406 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
19407 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
19412 cat >>$CONFIG_STATUS <<\EOF
19413 # Split the substitutions into bite-sized pieces for seds with
19414 # small command number limits, like on Digital OSF/1 and HP-UX.
19415 ac_max_sed_lines=48
19416 ac_sed_frag=1 # Number of current file.
19417 ac_beg=1 # First line for current file.
19418 ac_end=$ac_max_sed_lines # Line after last line for current file.
19421 while $ac_more_lines; do
19422 if test $ac_beg -gt 1; then
19423 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19425 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19427 if test ! -s $tmp/subs.frag; then
19428 ac_more_lines=false
19430 # The purpose of the label and of the branching condition is to
19431 # speed up the sed processing (if there are no `@' at all, there
19432 # is no need to browse any of the substitutions).
19433 # These are the two extra sed commands mentioned above.
19435 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19436 # It is possible to make a multiline substitution using escaped newlines.
19437 # Ensure that we do not split the substitution between script fragments.
19439 ac_END=`expr $ac_end + $ac_max_sed_lines`
19440 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
19441 if test -s $tmp/subs.next; then
19442 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
19443 if test ! -s $tmp/subs.edit; then
19444 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
19445 if test ! -s $tmp/subs.edit; then
19446 if test $ac_beg -gt 1; then
19447 ac_end=`expr $ac_end - 1`
19454 if test -z "$ac_sed_cmds"; then
19455 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19457 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19459 ac_sed_frag=`expr $ac_sed_frag + 1`
19461 ac_end=`expr $ac_end + $ac_max_sed_lines`
19464 if test -z "$ac_sed_cmds"; then
19467 fi # test -n "$CONFIG_FILES"
19470 cat >>$CONFIG_STATUS <<\EOF
19471 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19472 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19474 - | *:- | *:-:* ) # input from stdin
19476 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19477 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19478 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19479 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19480 * ) ac_file_in=$ac_file.in ;;
19483 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19484 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19485 X"$ac_file" : 'X\(//\)[^/]' \| \
19486 X"$ac_file" : 'X\(//\)$' \| \
19487 X"$ac_file" : 'X\(/\)' \| \
19488 . : '\(.\)' 2>/dev/null ||
19490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19491 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19492 /^X\(\/\/\)$/{ s//\1/; q; }
19493 /^X\(\/\).*/{ s//\1/; q; }
19495 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19496 { case "$ac_dir" in
19497 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19501 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19502 case $as_mkdir_dir in
19503 # Skip DOS drivespec
19504 ?:) as_incr_dir=$as_mkdir_dir ;;
19506 as_incr_dir=$as_incr_dir/$as_mkdir_dir
19507 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
19512 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
19513 # A "../" for each directory in $ac_dir_suffix.
19514 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
19516 ac_dir_suffix= ac_dots=
19521 if test -z "$ac_dots"; then
19524 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
19526 [\\/]* | ?:[\\/]* )
19527 ac_srcdir=$srcdir$ac_dir_suffix;
19528 ac_top_srcdir=$srcdir ;;
19529 *) # Relative path.
19530 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
19531 ac_top_srcdir=$ac_dots$srcdir ;;
19535 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19536 *) ac_INSTALL=$ac_dots$INSTALL ;;
19539 if test x"$ac_file" != x-; then
19540 { echo "$as_me:19540: creating $ac_file" >&5
19541 echo "$as_me: creating $ac_file" >&6;}
19544 # Let's still pretend it is `configure' which instantiates (i.e., don't
19545 # use $as_me), people would be surprised to read:
19546 # /* config.h. Generated automatically by config.status. */
19547 configure_input="Generated automatically from `echo $ac_file_in |
19548 sed 's,.*/,,'` by configure."
19550 # First look for the input files in the build tree, otherwise in the
19552 ac_file_inputs=`IFS=:
19553 for f in $ac_file_in; do
19555 -) echo $tmp/stdin ;;
19557 # Absolute (can't be DOS-style, as IFS=:)
19558 test -f "$f" || { { echo "$as_me:19558: error: cannot find input file: $f" >&5
19559 echo "$as_me: error: cannot find input file: $f" >&2;}
19560 { (exit 1); exit 1; }; }
19563 if test -f "$f"; then
19566 elif test -f "$srcdir/$f"; then
19571 { { echo "$as_me:19571: error: cannot find input file: $f" >&5
19572 echo "$as_me: error: cannot find input file: $f" >&2;}
19573 { (exit 1); exit 1; }; }
19576 done` || { (exit 1); exit 1; }
19578 cat >>$CONFIG_STATUS <<\EOF
19579 ac_warn_datarootdir=no
19580 if test x"$ac_file" != x-; then
19581 for ac_item in $ac_file_inputs
19583 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
19584 if test -n "$ac_seen"; then
19585 ac_used=`grep '@datarootdir@' $ac_item`
19586 if test -z "$ac_used"; then
19587 { echo "$as_me:19587: WARNING: datarootdir was used implicitly but not set:
19589 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
19591 ac_warn_datarootdir=yes
19594 ac_seen=`grep '${datarootdir}' $ac_item`
19595 if test -n "$ac_seen"; then
19596 { echo "$as_me:19596: WARNING: datarootdir was used explicitly but not set:
19598 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
19600 ac_warn_datarootdir=yes
19605 if test "x$ac_warn_datarootdir" = xyes; then
19606 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
19610 cat >>$CONFIG_STATUS <<EOF
19614 cat >>$CONFIG_STATUS <<\EOF
19616 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19617 s,@configure_input@,$configure_input,;t t
19618 s,@srcdir@,$ac_srcdir,;t t
19619 s,@top_srcdir@,$ac_top_srcdir,;t t
19620 s,@INSTALL@,$ac_INSTALL,;t t
19621 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19623 if test x"$ac_file" != x-; then
19624 cp $tmp/out $ac_file
19626 for ac_name in prefix exec_prefix datarootdir
19628 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
19629 if test -n "$ac_seen"; then
19630 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
19631 if test -z "$ac_init"; then
19632 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
19633 { echo "$as_me:19633: WARNING: Variable $ac_name is used but was not set:
19635 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
19640 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
19641 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
19642 if test -s $tmp/out; then
19643 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
19644 { echo "$as_me:19644: WARNING: Some variables may not be substituted:
19646 echo "$as_me: WARNING: Some variables may not be substituted:
19656 cat >>$CONFIG_STATUS <<\EOF
19659 # CONFIG_HEADER section.
19662 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19663 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19665 # ac_d sets the value in "#define NAME VALUE" lines.
19666 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19667 ac_dB='[ ].*$,\1#\2'
19670 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
19671 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19672 ac_iB='\([ ]\),\1#\2define\3'
19675 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19676 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19677 ac_uB='$,\1#\2define\3'
19681 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19682 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19684 - | *:- | *:-:* ) # input from stdin
19686 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19687 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19688 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19689 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19690 * ) ac_file_in=$ac_file.in ;;
19693 test x"$ac_file" != x- && { echo "$as_me:19693: creating $ac_file" >&5
19694 echo "$as_me: creating $ac_file" >&6;}
19696 # First look for the input files in the build tree, otherwise in the
19698 ac_file_inputs=`IFS=:
19699 for f in $ac_file_in; do
19701 -) echo $tmp/stdin ;;
19703 # Absolute (can't be DOS-style, as IFS=:)
19704 test -f "$f" || { { echo "$as_me:19704: error: cannot find input file: $f" >&5
19705 echo "$as_me: error: cannot find input file: $f" >&2;}
19706 { (exit 1); exit 1; }; }
19709 if test -f "$f"; then
19712 elif test -f "$srcdir/$f"; then
19717 { { echo "$as_me:19717: error: cannot find input file: $f" >&5
19718 echo "$as_me: error: cannot find input file: $f" >&2;}
19719 { (exit 1); exit 1; }; }
19722 done` || { (exit 1); exit 1; }
19723 # Remove the trailing spaces.
19724 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19728 # Transform confdefs.h into a list of #define's. We won't use it as a sed
19729 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
19730 # be either 'cat' or 'sort'.
19731 cat confdefs.h | uniq >conftest.vals
19733 # Break up conftest.vals because some shells have a limit on
19734 # the size of here documents, and old seds have small limits too.
19736 rm -f conftest.tail
19737 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
19738 while grep . conftest.vals >/dev/null
19740 # Write chunks of a limited-size here document to conftest.frag.
19741 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
19742 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
19743 echo 'CEOF' >> $CONFIG_STATUS
19744 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
19745 rm -f conftest.vals
19746 mv conftest.tail conftest.vals
19748 rm -f conftest.vals
19750 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
19752 echo ' cat >> conftest.edit <<CEOF
19753 /@DEFS@/r conftest.frag
19756 sed -f conftest.edit $tmp/in > $tmp/out
19758 mv $tmp/out $tmp/in
19759 rm -f conftest.edit conftest.frag
19760 ' >> $CONFIG_STATUS
19762 cat >>$CONFIG_STATUS <<\EOF
19763 # Let's still pretend it is `configure' which instantiates (i.e., don't
19764 # use $as_me), people would be surprised to read:
19765 # /* config.h. Generated automatically by config.status. */
19766 if test x"$ac_file" = x-; then
19767 echo "/* Generated automatically by configure. */" >$tmp/config.h
19769 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
19771 cat $tmp/in >>$tmp/config.h
19773 if test x"$ac_file" != x-; then
19774 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
19775 { echo "$as_me:19775: $ac_file is unchanged" >&5
19776 echo "$as_me: $ac_file is unchanged" >&6;}
19778 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19779 X"$ac_file" : 'X\(//\)[^/]' \| \
19780 X"$ac_file" : 'X\(//\)$' \| \
19781 X"$ac_file" : 'X\(/\)' \| \
19782 . : '\(.\)' 2>/dev/null ||
19784 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19785 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19786 /^X\(\/\/\)$/{ s//\1/; q; }
19787 /^X\(\/\).*/{ s//\1/; q; }
19789 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19790 { case "$ac_dir" in
19791 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19795 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19796 case $as_mkdir_dir in
19797 # Skip DOS drivespec
19798 ?:) as_incr_dir=$as_mkdir_dir ;;
19800 as_incr_dir=$as_incr_dir/$as_mkdir_dir
19801 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
19808 mv $tmp/config.h $ac_file
19812 rm -f $tmp/config.h
19816 cat >>$CONFIG_STATUS <<\EOF
19818 # CONFIG_COMMANDS section.
19820 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19821 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19822 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19829 if test ! -d $srcdir/$cf_dir; then
19831 elif test -f $srcdir/$cf_dir/programs; then
19832 $AWK -f $srcdir/mk-test.awk INSTALL=yes ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
19836 cat >>Makefile <<TEST_EOF
19838 # These rules are generated so we do not rely on suffix rules, which do not
19839 # work consistently for different make-programs (the '\$(MODEL)/' confuses
19840 # some, and the '\$x' confuses others).
19843 LIST=`sed -e 's/[ ].*//' -e '/^[#@]/d' $srcdir/modules`
19846 cat >>Makefile <<TEST_EOF
19848 \$(MODEL)/$N.o : \$(srcdir)/$N.c \\
19849 \$(srcdir)/test.priv.h \\
19852 $ECHO_CC\$(CC) -c \$(CFLAGS_DEFAULT) \$(srcdir)/$N.c
19856 if test -f ../config.guess && test -f ../config.sub
19858 cat >>Makefile <<TEST_EOF
19860 # if we used CF_INHERIT for getting these files, we can remove them
19862 rm -f config.guess config.sub
19870 cat >>$CONFIG_STATUS <<\EOF
19872 { (exit 0); exit 0; }
19874 chmod +x $CONFIG_STATUS
19875 ac_clean_files=$ac_clean_files_save
19877 # configure is writing to config.log, and then calls config.status.
19878 # config.status does its own redirection, appending to config.log.
19879 # Unfortunately, on DOS this fails, as config.log is still kept open
19880 # by configure, so config.status won't be able to write to it; its
19881 # output is simply discarded. So we exec the FD to /dev/null,
19882 # effectively closing config.log, so it can be properly (re)opened and
19883 # appended to by config.status. When coming back to configure, we
19884 # need to make the FD available again.
19885 if test "$no_create" != yes; then
19888 $SHELL $CONFIG_STATUS || ac_cs_success=false
19890 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19891 # would make configure fail if this is the last instruction.
19892 $ac_cs_success || { (exit 1); exit 1; }