2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.20141204.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Avoid depending upon Character Ranges.
11 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits
='0123456789'
15 as_cr_alnum
=$as_cr_Letters$as_cr_digits
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
27 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
31 # Name of the executable.
32 as_me
=`echo "$0" |sed 's,.*[\\/],,'`
34 if expr a
: '\(a\)' >/dev
/null
2>&1; then
40 rm -f conf$$ conf$$.exe conf$$.
file
42 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe
; then
46 # Don't use ln at all; we don't have any links
51 elif ln conf$$.
file conf$$
2>/dev
/null
; then
56 rm -f conf$$ conf$$.exe conf$$.
file
58 as_executable_p
="test -f"
60 # Support unset when possible.
61 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
68 $as_unset LANG ||
test "${LANG+set}" != set ||
{ LANG
=C
; export LANG
; }
69 $as_unset LC_ALL ||
test "${LC_ALL+set}" != set ||
{ LC_ALL
=C
; export LC_ALL
; }
70 $as_unset LC_TIME ||
test "${LC_TIME+set}" != set ||
{ LC_TIME
=C
; export LC_TIME
; }
71 $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set ||
{ LC_CTYPE
=C
; export LC_CTYPE
; }
72 $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set ||
{ LANGUAGE
=C
; export LANGUAGE
; }
73 $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set ||
{ LC_COLLATE
=C
; export LC_COLLATE
; }
74 $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set ||
{ LC_NUMERIC
=C
; export LC_NUMERIC
; }
75 $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set ||
{ LC_MESSAGES
=C
; export LC_MESSAGES
; }
78 # We need space, tab and new line, in precisely that order.
84 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=:; export CDPATH
; }
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
96 ac_default_prefix
=/usr
/local
100 SHELL
=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete. It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
107 ac_unique_file
="ncurses.c"
109 # Initialize some variables set by options.
111 ac_init_version
=false
112 # The variables have the same names as the options, with
113 # dashes changed to underlines.
121 program_transform_name
=s
,x
,x
,
129 # Installation directory options.
130 # These are left unexpanded so users can "make install exec_prefix=/foo"
131 # and all the variables that are supposed to be based on exec_prefix
132 # by default will actually change.
133 # Use braces instead of parens because sh, perl, etc. also accept them.
134 bindir
='${exec_prefix}/bin'
135 sbindir
='${exec_prefix}/sbin'
136 libexecdir
='${exec_prefix}/libexec'
137 datarootdir
='${prefix}/share'
138 datadir
='${datarootdir}'
139 sysconfdir
='${prefix}/etc'
140 sharedstatedir
='${prefix}/com'
141 localstatedir
='${prefix}/var'
142 libdir
='${exec_prefix}/lib'
143 includedir
='${prefix}/include'
144 oldincludedir
='/usr/include'
145 infodir
='${datarootdir}/info'
146 mandir
='${datarootdir}/man'
148 # Identity of this package.
158 # If the previous option needs an argument, assign it.
159 if test -n "$ac_prev"; then
160 eval "$ac_prev=\$ac_option"
165 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
167 # Accept the important Cygnus configure options, so we can diagnose typos.
171 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
173 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
176 -build |
--build |
--buil |
--bui |
--bu)
177 ac_prev
=build_alias
;;
178 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
179 build_alias
=$ac_optarg ;;
181 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
182 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
183 ac_prev
=cache_file
;;
184 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
185 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
186 cache_file
=$ac_optarg ;;
189 cache_file
=config.cache
;;
191 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
193 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
195 datadir
=$ac_optarg ;;
197 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
198 |
--dataroo |
--dataro |
--datar)
199 ac_prev
=datarootdir
;;
200 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
201 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
202 datarootdir
=$ac_optarg ;;
204 -disable-* |
--disable-*)
205 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
206 # Reject names that are not valid shell variable names.
207 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
208 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
209 { (exit 1); exit 1; }; }
210 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
211 eval "enable_$ac_feature=no" ;;
213 -enable-* |
--enable-*)
214 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
215 # Reject names that are not valid shell variable names.
216 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
217 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
218 { (exit 1); exit 1; }; }
219 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
221 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
224 eval "enable_$ac_feature='$ac_optarg'" ;;
226 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
227 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
228 |
--exec |
--exe |
--ex)
229 ac_prev
=exec_prefix
;;
230 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
231 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
232 |
--exec=* |
--exe=* |
--ex=*)
233 exec_prefix
=$ac_optarg ;;
235 -gas |
--gas |
--ga |
--g)
236 # Obsolete; use --with-gas.
239 -help |
--help |
--hel |
--he |
-h)
241 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
242 ac_init_help
=recursive
;;
243 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
244 ac_init_help
=short
;;
246 -host |
--host |
--hos |
--ho)
247 ac_prev
=host_alias
;;
248 -host=* |
--host=* |
--hos=* |
--ho=*)
249 host_alias
=$ac_optarg ;;
251 -includedir |
--includedir |
--includedi |
--included |
--include \
252 |
--includ |
--inclu |
--incl |
--inc)
253 ac_prev
=includedir
;;
254 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
255 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
256 includedir
=$ac_optarg ;;
258 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
260 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
261 infodir
=$ac_optarg ;;
263 -libdir |
--libdir |
--libdi |
--libd)
265 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
268 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
269 |
--libexe |
--libex |
--libe)
270 ac_prev
=libexecdir
;;
271 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
272 |
--libexe=* |
--libex=* |
--libe=*)
273 libexecdir
=$ac_optarg ;;
275 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
276 |
--localstate |
--localstat |
--localsta |
--localst \
277 |
--locals |
--local |
--loca |
--loc |
--lo)
278 ac_prev
=localstatedir
;;
279 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
280 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
281 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
282 localstatedir
=$ac_optarg ;;
284 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
286 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
290 # Obsolete; use --without-fp.
293 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
297 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
298 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
301 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
302 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
303 |
--oldin |
--oldi |
--old |
--ol |
--o)
304 ac_prev
=oldincludedir
;;
305 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
306 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
307 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
308 oldincludedir
=$ac_optarg ;;
310 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
312 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
315 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
316 |
--program-pre |
--program-pr |
--program-p)
317 ac_prev
=program_prefix
;;
318 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
319 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
320 program_prefix
=$ac_optarg ;;
322 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
323 |
--program-suf |
--program-su |
--program-s)
324 ac_prev
=program_suffix
;;
325 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
326 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
327 program_suffix
=$ac_optarg ;;
329 -program-transform-name |
--program-transform-name \
330 |
--program-transform-nam |
--program-transform-na \
331 |
--program-transform-n |
--program-transform- \
332 |
--program-transform |
--program-transfor \
333 |
--program-transfo |
--program-transf \
334 |
--program-trans |
--program-tran \
335 |
--progr-tra |
--program-tr |
--program-t)
336 ac_prev
=program_transform_name
;;
337 -program-transform-name=* |
--program-transform-name=* \
338 |
--program-transform-nam=* |
--program-transform-na=* \
339 |
--program-transform-n=* |
--program-transform-=* \
340 |
--program-transform=* |
--program-transfor=* \
341 |
--program-transfo=* |
--program-transf=* \
342 |
--program-trans=* |
--program-tran=* \
343 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
344 program_transform_name
=$ac_optarg ;;
346 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
347 |
-silent |
--silent |
--silen |
--sile |
--sil)
350 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
352 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
354 sbindir
=$ac_optarg ;;
356 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
357 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
358 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
360 ac_prev
=sharedstatedir
;;
361 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
362 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
363 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
365 sharedstatedir
=$ac_optarg ;;
367 -site |
--site |
--sit)
369 -site=* |
--site=* |
--sit=*)
372 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
374 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
377 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
378 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
379 ac_prev
=sysconfdir
;;
380 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
381 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
382 sysconfdir
=$ac_optarg ;;
384 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
385 ac_prev
=target_alias
;;
386 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
387 target_alias
=$ac_optarg ;;
389 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
392 -version |
--version |
--versio |
--versi |
--vers |
-V)
396 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
399 { echo "$as_me: error: invalid package name: $ac_package" >&2
400 { (exit 1); exit 1; }; }
401 ac_package
=`echo $ac_package| sed 's/-/_/g'`
403 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
406 eval "with_$ac_package='$ac_optarg'" ;;
408 -without-* |
--without-*)
409 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
412 { echo "$as_me: error: invalid package name: $ac_package" >&2
413 { (exit 1); exit 1; }; }
414 ac_package
=`echo $ac_package | sed 's/-/_/g'`
415 eval "with_$ac_package=no" ;;
418 # Obsolete; use --with-x.
421 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
422 |
--x-incl |
--x-inc |
--x-in |
--x-i)
423 ac_prev
=x_includes
;;
424 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
425 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
426 x_includes
=$ac_optarg ;;
428 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
429 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
430 ac_prev
=x_libraries
;;
431 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
432 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
433 x_libraries
=$ac_optarg ;;
435 -*) { echo "$as_me: error: unrecognized option: $ac_option
436 Try \`$0 --help' for more information." >&2
437 { (exit 1); exit 1; }; }
441 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
442 # Reject names that are not valid shell variable names.
443 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
444 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
445 { (exit 1); exit 1; }; }
446 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
447 eval "$ac_envvar='$ac_optarg'"
451 # FIXME: should be removed in autoconf 3.0.
452 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
453 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
454 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
455 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
461 if test -n "$ac_prev"; then
462 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
463 { echo "$as_me: error: missing argument to $ac_option" >&2
464 { (exit 1); exit 1; }; }
467 # Be sure to have absolute paths.
468 for ac_var
in exec_prefix prefix
470 eval ac_val
=$
`echo $ac_var`
472 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
473 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
474 { (exit 1); exit 1; }; };;
478 # Be sure to have absolute paths.
479 for ac_var
in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
480 localstatedir libdir includedir oldincludedir infodir mandir
482 eval ac_val
=$
`echo $ac_var`
484 [\\/$
]* | ?
:[\\/]* ) ;;
485 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
486 { (exit 1); exit 1; }; };;
490 # There might be people who depend on the old broken behavior: `$host'
491 # used to hold the argument of --host etc.
496 # FIXME: should be removed in autoconf 3.0.
497 if test "x$host_alias" != x
; then
498 if test "x$build_alias" = x
; then
499 cross_compiling
=maybe
500 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
501 If a cross compiler is detected then cross compile mode will be used." >&2
502 elif test "x$build_alias" != "x$host_alias"; then
508 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
510 test "$silent" = yes && exec 6>/dev
/null
512 # Find the source files, if location was not specified.
513 if test -z "$srcdir"; then
514 ac_srcdir_defaulted
=yes
515 # Try the directory containing this script, then its parent.
517 ac_confdir
=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
518 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
520 if test ! -r $srcdir/$ac_unique_file; then
524 ac_srcdir_defaulted
=no
526 if test ! -r $srcdir/$ac_unique_file; then
527 if test "$ac_srcdir_defaulted" = yes; then
528 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
529 { (exit 1); exit 1; }; }
531 { echo "$as_me: error: cannot find sources in $srcdir" >&2
532 { (exit 1); exit 1; }; }
535 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
536 ac_env_build_alias_set
=${build_alias+set}
537 ac_env_build_alias_value
=$build_alias
538 ac_cv_env_build_alias_set
=${build_alias+set}
539 ac_cv_env_build_alias_value
=$build_alias
540 ac_env_host_alias_set
=${host_alias+set}
541 ac_env_host_alias_value
=$host_alias
542 ac_cv_env_host_alias_set
=${host_alias+set}
543 ac_cv_env_host_alias_value
=$host_alias
544 ac_env_target_alias_set
=${target_alias+set}
545 ac_env_target_alias_value
=$target_alias
546 ac_cv_env_target_alias_set
=${target_alias+set}
547 ac_cv_env_target_alias_value
=$target_alias
548 ac_env_CC_set
=${CC+set}
550 ac_cv_env_CC_set
=${CC+set}
551 ac_cv_env_CC_value
=$CC
552 ac_env_CFLAGS_set
=${CFLAGS+set}
553 ac_env_CFLAGS_value
=$CFLAGS
554 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
555 ac_cv_env_CFLAGS_value
=$CFLAGS
556 ac_env_LDFLAGS_set
=${LDFLAGS+set}
557 ac_env_LDFLAGS_value
=$LDFLAGS
558 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
559 ac_cv_env_LDFLAGS_value
=$LDFLAGS
560 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
561 ac_env_CPPFLAGS_value
=$CPPFLAGS
562 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
563 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
564 ac_env_CPP_set
=${CPP+set}
565 ac_env_CPP_value
=$CPP
566 ac_cv_env_CPP_set
=${CPP+set}
567 ac_cv_env_CPP_value
=$CPP
570 # Report the --help message.
572 if test "$ac_init_help" = "long"; then
573 # Omit some internal or obsolete options to make the list less imposing.
574 # This message is too long to be a string in the A/UX 3.1 sh.
576 \`configure' configures this package to adapt to many kinds of systems.
578 Usage: $0 [OPTION]... [VAR=VALUE]...
580 To assign environment variables (e.g., CC, CFLAGS...), specify them as
581 VAR=VALUE. See below for descriptions of some of the useful variables.
583 Defaults for the options are specified in brackets.
586 -h, --help display this help and exit
587 --help=short display options specific to this package
588 --help=recursive display the short help of all the included packages
589 -V, --version display version information and exit
590 -q, --quiet, --silent do not print \`checking...' messages
591 --cache-file=FILE cache test results in FILE [disabled]
592 -C, --config-cache alias for \`--cache-file=config.cache'
593 -n, --no-create do not create output files
594 --srcdir=DIR find the sources in DIR [configure dir or \`..']
599 Installation directories:
600 --prefix=PREFIX install architecture-independent files in PREFIX
602 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
605 By default, \`make install' will install all the files in
606 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
607 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
608 for instance \`--prefix=\$HOME'.
610 For better control, use the options below.
612 Fine tuning of the installation directories:
613 --bindir=DIR user executables [EPREFIX/bin]
614 --sbindir=DIR system admin executables [EPREFIX/sbin]
615 --libexecdir=DIR program executables [EPREFIX/libexec]
616 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
617 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
618 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
619 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
620 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
621 --libdir=DIR object code libraries [EPREFIX/lib]
622 --includedir=DIR C header files [PREFIX/include]
623 --oldincludedir=DIR C header files for non-gcc [/usr/include]
624 --infodir=DIR info documentation [DATAROOTDIR/info]
625 --mandir=DIR man documentation [DATAROOTDIR/man]
631 --program-prefix=PREFIX prepend PREFIX to installed program names
632 --program-suffix=SUFFIX append SUFFIX to installed program names
633 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
636 --x-includes=DIR X include files are
in DIR
637 --x-libraries=DIR X library files are
in DIR
640 --build=BUILD configure
for building on BUILD
[guessed
]
641 --host=HOST build programs to run on HOST
[BUILD
]
645 if test -n "$ac_init_help"; then
650 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
651 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
654 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
655 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
658 --with-pkg-config{=path
} enable
/disable use of pkg-config
659 --disable-echo do not display
"compiling" commands
660 Curses Version-dependent Options
:
661 --with-ncurses-wrap-prefix naming-prefix
for ncurses wrapped-variables
662 --disable-widec disable checks
for wide-character functions
663 --with-curses-dir=DIR directory
in which (n
)curses is installed
664 --with-screen=XXX use specified curses-libraries
665 --with-ncursesw use wide ncurses-libraries
666 --with-ncurses use ncurses-libraries
667 --with-pdcurses compile
/link with pdcurses X11 library
668 --with-curses-colr compile
/link with HPUX
10.x color-curses
669 --with-curses-5lib compile
/link with SunOS
5lib curses
670 --with-Xaw3d link with Xaw
3d library
671 --with-Xaw3dxft link with Xaw
3d xft library
672 --with-neXtaw link with neXT Athena library
673 --with-XawPlus link with Athena-Plus library
674 --with-x use the X Window System
675 Testing
/development Options
:
676 --enable-warnings test: turn on gcc compiler warnings
677 --with-dmalloc test: use Gray Watson
's dmalloc library
678 --with-dbmalloc test: use Conor Cahill's dbmalloc library
679 --with-valgrind test: use valgrind
680 --disable-leaks test: free permanent memory
, analyze leaks
681 --disable-rpath-hack don
't add rpath options for additional libraries
683 Some influential environment variables:
684 CC C compiler command
685 CFLAGS C compiler flags
686 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
687 nonstandard directory <lib dir>
688 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
689 headers in a nonstandard directory <include dir>
692 Use these variables to override the choices made by `configure' or to
help
693 it to
find libraries and programs with nonstandard names
/locations.
698 if test "$ac_init_help" = "recursive"; then
699 # If there are subdirs, report their specific --help.
701 for ac_subdir
in : $ac_subdirs_all; do test "x$ac_subdir" = x
: && continue
703 # A "../" for each directory in /$ac_subdir.
704 ac_dots
=`echo $ac_subdir |
705 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
708 .
) # No --srcdir option. We are building in place.
709 ac_sub_srcdir
=$srcdir ;;
710 [\\/]* | ?
:[\\/]* ) # Absolute path.
711 ac_sub_srcdir
=$srcdir/$ac_subdir ;;
713 ac_sub_srcdir
=$ac_dots$srcdir/$ac_subdir ;;
716 # Check for guested configure; otherwise get Cygnus style configure.
717 if test -f $ac_sub_srcdir/configure.gnu
; then
719 $SHELL $ac_sub_srcdir/configure.gnu
--help=recursive
720 elif test -f $ac_sub_srcdir/configure
; then
722 $SHELL $ac_sub_srcdir/configure
--help=recursive
723 elif test -f $ac_sub_srcdir/configure.ac ||
724 test -f $ac_sub_srcdir/configure.
in; then
728 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
734 test -n "$ac_init_help" && exit 0
735 if $ac_init_version; then
738 Copyright
1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
739 Free Software Foundation
, Inc.
740 This configure
script is free software
; the Free Software Foundation
741 gives unlimited permission to copy
, distribute and modify it.
747 This file contains any messages produced by compilers while
748 running configure, to aid debugging if configure makes a mistake.
750 It was created by $as_me, which was
751 generated by GNU Autoconf 2.52.20141204. Invocation command line was
762 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
763 uname -m = `(uname -m) 2>/dev/null || echo unknown`
764 uname -r = `(uname -r) 2>/dev/null || echo unknown`
765 uname -s = `(uname -s) 2>/dev/null || echo unknown`
766 uname -v = `(uname -v) 2>/dev/null || echo unknown`
768 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
769 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
771 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
772 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
773 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
774 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
775 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
776 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
777 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
791 # Keep a trace of the command line.
792 # Strip out --no-create and --no-recursion so they do not pile up.
793 # Also quote any args containing shell meta-characters.
799 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
800 |
--no-cr |
--no-c) ;;
801 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
802 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
803 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
804 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
805 ac_configure_args
="$ac_configure_args$ac_sep'$ac_arg'"
807 *) ac_configure_args
="$ac_configure_args$ac_sep$ac_arg"
810 # Get rid of the leading space.
813 # When interrupted or exit'd, cleanup temporary files, and complete
814 # config.log. We remove comments because anyway the quotes in there
815 # would cause problems or look ugly.
817 # Save into config.log some information that might help in debugging.
819 echo "## ----------------- ##" >&5
820 echo "## Cache variables. ##" >&5
821 echo "## ----------------- ##" >&5
823 # The following way of writing the cache mishandles newlines in values,
826 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
829 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
830 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
834 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
838 sed "/^$/d" confdefs.h >conftest.log
839 if test -s conftest.log; then
841 echo "## ------------ ##" >&5
842 echo "## confdefs.h. ##" >&5
843 echo "## ------------ ##" >&5
848 test "$ac_signal" != 0 &&
849 echo "$as_me: caught signal $ac_signal" >&5
850 echo "$as_me: exit $exit_status" >&5
851 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
854 for ac_signal
in 1 2 13 15; do
855 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
859 # confdefs.h avoids OS command line length limits that DEFS can exceed.
860 rm -rf conftest
* confdefs.h
861 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
864 # Let the site file select an alternate cache file if it wants to.
865 # Prefer explicitly selected file to automatically selected ones.
866 if test -z "$CONFIG_SITE"; then
867 if test "x$prefix" != xNONE
; then
868 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
870 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
873 for ac_site_file
in $CONFIG_SITE; do
874 if test -r "$ac_site_file"; then
875 { echo "$as_me:875: loading site script $ac_site_file" >&5
876 echo "$as_me: loading site script $ac_site_file" >&6;}
877 cat "$ac_site_file" >&5
882 if test -r "$cache_file"; then
883 # Some versions of bash will fail to source /dev/null (special
884 # files actually), so we avoid doing that.
885 if test -f "$cache_file"; then
886 { echo "$as_me:886: loading cache $cache_file" >&5
887 echo "$as_me: loading cache $cache_file" >&6;}
889 [\\/]* | ?
:[\\/]* ) .
$cache_file;;
894 { echo "$as_me:894: creating cache $cache_file" >&5
895 echo "$as_me: creating cache $cache_file" >&6;}
899 # Check that the precious variables saved in the cache have kept the same
901 ac_cache_corrupted
=false
902 for ac_var
in `(set) 2>&1 |
903 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
904 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
905 eval ac_new_set
=\
$ac_env_${ac_var}_set
906 eval ac_old_val
="\$ac_cv_env_${ac_var}_value"
907 eval ac_new_val
="\$ac_env_${ac_var}_value"
908 case $ac_old_set,$ac_new_set in
910 { echo "$as_me:910: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
911 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
912 ac_cache_corrupted
=: ;;
914 { echo "$as_me:914: error: \`$ac_var' was not set in the previous run" >&5
915 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
916 ac_cache_corrupted
=: ;;
919 if test "x$ac_old_val" != "x$ac_new_val"; then
920 { echo "$as_me:920: error: \`$ac_var' has changed since the previous run:" >&5
921 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
922 { echo "$as_me:922: former value: $ac_old_val" >&5
923 echo "$as_me: former value: $ac_old_val" >&2;}
924 { echo "$as_me:924: current value: $ac_new_val" >&5
925 echo "$as_me: current value: $ac_new_val" >&2;}
929 # Pass precious variables to config.status. It doesn't matter if
930 # we pass some twice (in addition to the command line arguments).
931 if test "$ac_new_set" = set; then
933 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
934 ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
935 ac_configure_args
="$ac_configure_args '$ac_arg'"
937 *) ac_configure_args
="$ac_configure_args $ac_var=$ac_new_val"
942 if $ac_cache_corrupted; then
943 { echo "$as_me:943: error: changes in the environment can compromise the build" >&5
944 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
945 { { echo "$as_me:945: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
946 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
947 { (exit 1); exit 1; }; }
951 ac_cpp
='$CPP $CPPFLAGS'
952 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
953 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
954 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
955 ac_main_return
=return
957 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
958 *c
*,-n*) ECHO_N
= ECHO_C
= # newlines do not sed ;-) only broken shells would use this case anyway
960 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
961 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
963 echo "#! $SHELL" >conftest.sh
964 echo "exit 0" >>conftest.sh
966 if { (echo "$as_me:966: PATH=\".;.\"; conftest.sh") >&5
967 (PATH
=".;."; conftest.sh
) 2>&5
969 echo "$as_me:969: \$? = $ac_status" >&5
970 (exit $ac_status); }; then
971 ac_path_separator
=';'
975 PATH_SEPARATOR
="$ac_path_separator"
978 ac_config_headers
="$ac_config_headers ncurses_cfg.h:ncurses_tst.hin"
980 test -f config.guess ||
( test -f ..
/config.guess
&& cp ..
/config.guess .
/ )
982 test -f config.sub ||
( test -f ..
/config.sub
&& cp ..
/config.sub .
/ )
985 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
986 if test -f $ac_dir/install-sh
; then
988 ac_install_sh
="$ac_aux_dir/install-sh -c"
990 elif test -f $ac_dir/install.sh
; then
992 ac_install_sh
="$ac_aux_dir/install.sh -c"
994 elif test -f $ac_dir/shtool
; then
996 ac_install_sh
="$ac_aux_dir/shtool install -c"
1000 if test -z "$ac_aux_dir"; then
1001 { { echo "$as_me:1001: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1002 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1003 { (exit 1); exit 1; }; }
1005 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1006 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1007 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1009 # Make sure we can run config.sub.
1010 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1011 { { echo "$as_me:1011: error: cannot run $ac_config_sub" >&5
1012 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1013 { (exit 1); exit 1; }; }
1015 echo "$as_me:1015: checking build system type" >&5
1016 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1017 if test "${ac_cv_build+set}" = set; then
1018 echo $ECHO_N "(cached) $ECHO_C" >&6
1020 ac_cv_build_alias
=$build_alias
1021 test -z "$ac_cv_build_alias" &&
1022 ac_cv_build_alias
=`$ac_config_guess`
1023 test -z "$ac_cv_build_alias" &&
1024 { { echo "$as_me:1024: error: cannot guess build type; you must specify one" >&5
1025 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1026 { (exit 1); exit 1; }; }
1027 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1028 { { echo "$as_me:1028: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1029 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1030 { (exit 1); exit 1; }; }
1033 echo "$as_me:1033: result: $ac_cv_build" >&5
1034 echo "${ECHO_T}$ac_cv_build" >&6
1036 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1037 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1038 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1040 if test -f $srcdir/config.guess ||
test -f $ac_aux_dir/config.guess
; then
1041 echo "$as_me:1041: checking host system type" >&5
1042 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1043 if test "${ac_cv_host+set}" = set; then
1044 echo $ECHO_N "(cached) $ECHO_C" >&6
1046 ac_cv_host_alias
=$host_alias
1047 test -z "$ac_cv_host_alias" &&
1048 ac_cv_host_alias
=$ac_cv_build_alias
1049 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1050 { { echo "$as_me:1050: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1051 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1052 { (exit 1); exit 1; }; }
1055 echo "$as_me:1055: result: $ac_cv_host" >&5
1056 echo "${ECHO_T}$ac_cv_host" >&6
1058 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1059 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1060 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1062 system_name
="$host_os"
1064 system_name
="`(uname -s -r) 2>/dev/null`"
1065 if test -z "$system_name" ; then
1066 system_name
="`(hostname) 2>/dev/null`"
1069 test -n "$system_name" &&
1070 cat >>confdefs.h
<<EOF
1071 #define SYSTEM_NAME "$system_name"
1074 if test "${cf_cv_system_name+set}" = set; then
1075 echo $ECHO_N "(cached) $ECHO_C" >&6
1077 cf_cv_system_name
="$system_name"
1080 test -z "$system_name" && system_name
="$cf_cv_system_name"
1081 test -n "$cf_cv_system_name" && echo "$as_me:1081: result: Configuring for $cf_cv_system_name" >&5
1082 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1084 if test ".$system_name" != ".$cf_cv_system_name" ; then
1085 echo "$as_me:1085: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1086 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1087 { { echo "$as_me:1087: error: \"Please remove config.cache and try again.\"" >&5
1088 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1089 { (exit 1); exit 1; }; }
1092 test "$program_prefix" != NONE
&&
1093 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1094 # Use a double $ so make ignores it.
1095 test "$program_suffix" != NONE
&&
1096 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1097 # Double any \ or $. echo might interpret backslashes.
1098 # By default was `s,x,x', remove it if useless.
1099 cat <<\_ACEOF
>conftest.
sed
1100 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1102 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1105 echo "$as_me:1105: checking whether ${MAKE-make} sets \${MAKE}" >&5
1106 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1107 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
1108 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1109 echo $ECHO_N "(cached) $ECHO_C" >&6
1111 cat >conftest.
make <<\EOF
1113 @
echo 'ac_maketemp="${MAKE}"'
1115 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1116 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1117 if test -n "$ac_maketemp"; then
1118 eval ac_cv_prog_make_
${ac_make}_set
=yes
1120 eval ac_cv_prog_make_
${ac_make}_set
=no
1124 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1125 echo "$as_me:1125: result: yes" >&5
1126 echo "${ECHO_T}yes" >&6
1129 echo "$as_me:1129: result: no" >&5
1130 echo "${ECHO_T}no" >&6
1131 SET_MAKE
="MAKE=${MAKE-make}"
1135 ac_cpp
='$CPP $CPPFLAGS'
1136 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1137 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1138 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1139 ac_main_return
=return
1140 if test -n "$ac_tool_prefix"; then
1141 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1142 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1143 echo "$as_me:1143: checking for $ac_word" >&5
1144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1145 if test "${ac_cv_prog_CC+set}" = set; then
1146 echo $ECHO_N "(cached) $ECHO_C" >&6
1148 if test -n "$CC"; then
1149 ac_cv_prog_CC
="$CC" # Let the user override the test.
1151 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1153 for ac_dir
in $ac_dummy; do
1155 test -z "$ac_dir" && ac_dir
=.
1156 $as_executable_p "$ac_dir/$ac_word" ||
continue
1157 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1158 echo "$as_me:1158: found $ac_dir/$ac_word" >&5
1165 if test -n "$CC"; then
1166 echo "$as_me:1166: result: $CC" >&5
1167 echo "${ECHO_T}$CC" >&6
1169 echo "$as_me:1169: result: no" >&5
1170 echo "${ECHO_T}no" >&6
1174 if test -z "$ac_cv_prog_CC"; then
1176 # Extract the first word of "gcc", so it can be a program name with args.
1177 set dummy gcc
; ac_word
=$2
1178 echo "$as_me:1178: checking for $ac_word" >&5
1179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1180 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1181 echo $ECHO_N "(cached) $ECHO_C" >&6
1183 if test -n "$ac_ct_CC"; then
1184 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1186 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1188 for ac_dir
in $ac_dummy; do
1190 test -z "$ac_dir" && ac_dir
=.
1191 $as_executable_p "$ac_dir/$ac_word" ||
continue
1192 ac_cv_prog_ac_ct_CC
="gcc"
1193 echo "$as_me:1193: found $ac_dir/$ac_word" >&5
1199 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1200 if test -n "$ac_ct_CC"; then
1201 echo "$as_me:1201: result: $ac_ct_CC" >&5
1202 echo "${ECHO_T}$ac_ct_CC" >&6
1204 echo "$as_me:1204: result: no" >&5
1205 echo "${ECHO_T}no" >&6
1213 if test -z "$CC"; then
1214 if test -n "$ac_tool_prefix"; then
1215 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1216 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1217 echo "$as_me:1217: checking for $ac_word" >&5
1218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1219 if test "${ac_cv_prog_CC+set}" = set; then
1220 echo $ECHO_N "(cached) $ECHO_C" >&6
1222 if test -n "$CC"; then
1223 ac_cv_prog_CC
="$CC" # Let the user override the test.
1225 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1227 for ac_dir
in $ac_dummy; do
1229 test -z "$ac_dir" && ac_dir
=.
1230 $as_executable_p "$ac_dir/$ac_word" ||
continue
1231 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1232 echo "$as_me:1232: found $ac_dir/$ac_word" >&5
1239 if test -n "$CC"; then
1240 echo "$as_me:1240: result: $CC" >&5
1241 echo "${ECHO_T}$CC" >&6
1243 echo "$as_me:1243: result: no" >&5
1244 echo "${ECHO_T}no" >&6
1248 if test -z "$ac_cv_prog_CC"; then
1250 # Extract the first word of "cc", so it can be a program name with args.
1251 set dummy cc
; ac_word
=$2
1252 echo "$as_me:1252: checking for $ac_word" >&5
1253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1254 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1255 echo $ECHO_N "(cached) $ECHO_C" >&6
1257 if test -n "$ac_ct_CC"; then
1258 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1260 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1262 for ac_dir
in $ac_dummy; do
1264 test -z "$ac_dir" && ac_dir
=.
1265 $as_executable_p "$ac_dir/$ac_word" ||
continue
1266 ac_cv_prog_ac_ct_CC
="cc"
1267 echo "$as_me:1267: found $ac_dir/$ac_word" >&5
1273 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1274 if test -n "$ac_ct_CC"; then
1275 echo "$as_me:1275: result: $ac_ct_CC" >&5
1276 echo "${ECHO_T}$ac_ct_CC" >&6
1278 echo "$as_me:1278: result: no" >&5
1279 echo "${ECHO_T}no" >&6
1288 if test -z "$CC"; then
1289 # Extract the first word of "cc", so it can be a program name with args.
1290 set dummy cc
; ac_word
=$2
1291 echo "$as_me:1291: checking for $ac_word" >&5
1292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1293 if test "${ac_cv_prog_CC+set}" = set; then
1294 echo $ECHO_N "(cached) $ECHO_C" >&6
1296 if test -n "$CC"; then
1297 ac_cv_prog_CC
="$CC" # Let the user override the test.
1300 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1302 for ac_dir
in $ac_dummy; do
1304 test -z "$ac_dir" && ac_dir
=.
1305 $as_executable_p "$ac_dir/$ac_word" ||
continue
1306 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1307 ac_prog_rejected
=yes
1311 echo "$as_me:1311: found $ac_dir/$ac_word" >&5
1315 if test $ac_prog_rejected = yes; then
1316 # We found a bogon in the path, so make sure we never use it.
1317 set dummy
$ac_cv_prog_CC
1319 if test $# != 0; then
1320 # We chose a different compiler from the bogus one.
1321 # However, it has the same basename, so the bogon will be chosen
1322 # first if we set CC to just the basename; use the full file name.
1324 set dummy
"$ac_dir/$ac_word" ${1+"$@"}
1332 if test -n "$CC"; then
1333 echo "$as_me:1333: result: $CC" >&5
1334 echo "${ECHO_T}$CC" >&6
1336 echo "$as_me:1336: result: no" >&5
1337 echo "${ECHO_T}no" >&6
1341 if test -z "$CC"; then
1342 if test -n "$ac_tool_prefix"; then
1345 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1346 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1347 echo "$as_me:1347: checking for $ac_word" >&5
1348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1349 if test "${ac_cv_prog_CC+set}" = set; then
1350 echo $ECHO_N "(cached) $ECHO_C" >&6
1352 if test -n "$CC"; then
1353 ac_cv_prog_CC
="$CC" # Let the user override the test.
1355 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1357 for ac_dir
in $ac_dummy; do
1359 test -z "$ac_dir" && ac_dir
=.
1360 $as_executable_p "$ac_dir/$ac_word" ||
continue
1361 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
1362 echo "$as_me:1362: found $ac_dir/$ac_word" >&5
1369 if test -n "$CC"; then
1370 echo "$as_me:1370: result: $CC" >&5
1371 echo "${ECHO_T}$CC" >&6
1373 echo "$as_me:1373: result: no" >&5
1374 echo "${ECHO_T}no" >&6
1377 test -n "$CC" && break
1380 if test -z "$CC"; then
1384 # Extract the first word of "$ac_prog", so it can be a program name with args.
1385 set dummy
$ac_prog; ac_word
=$2
1386 echo "$as_me:1386: checking for $ac_word" >&5
1387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1388 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1389 echo $ECHO_N "(cached) $ECHO_C" >&6
1391 if test -n "$ac_ct_CC"; then
1392 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1394 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
1396 for ac_dir
in $ac_dummy; do
1398 test -z "$ac_dir" && ac_dir
=.
1399 $as_executable_p "$ac_dir/$ac_word" ||
continue
1400 ac_cv_prog_ac_ct_CC
="$ac_prog"
1401 echo "$as_me:1401: found $ac_dir/$ac_word" >&5
1407 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1408 if test -n "$ac_ct_CC"; then
1409 echo "$as_me:1409: result: $ac_ct_CC" >&5
1410 echo "${ECHO_T}$ac_ct_CC" >&6
1412 echo "$as_me:1412: result: no" >&5
1413 echo "${ECHO_T}no" >&6
1416 test -n "$ac_ct_CC" && break
1424 test -z "$CC" && { { echo "$as_me:1424: error: no acceptable cc found in \$PATH" >&5
1425 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1426 { (exit 1); exit 1; }; }
1428 # Provide some information about the compiler.
1429 echo "$as_me:1429:" \
1430 "checking for C compiler version" >&5
1431 ac_compiler
=`set X $ac_compile; echo $2`
1432 { (eval echo "$as_me:1432: \"$ac_compiler --version </dev/null >&5\"") >&5
1433 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
1435 echo "$as_me:1435: \$? = $ac_status" >&5
1436 (exit $ac_status); }
1437 { (eval echo "$as_me:1437: \"$ac_compiler -v </dev/null >&5\"") >&5
1438 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
1440 echo "$as_me:1440: \$? = $ac_status" >&5
1441 (exit $ac_status); }
1442 { (eval echo "$as_me:1442: \"$ac_compiler -V </dev/null >&5\"") >&5
1443 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
1445 echo "$as_me:1445: \$? = $ac_status" >&5
1446 (exit $ac_status); }
1448 cat >conftest.
$ac_ext <<_ACEOF
1449 #line 1449 "configure"
1450 #include "confdefs.h"
1460 ac_clean_files_save
=$ac_clean_files
1461 ac_clean_files
="$ac_clean_files a.out a.exe"
1462 # Try to create an executable without -o first, disregard a.out.
1463 # It will help us diagnose broken compilers, and finding out an intuition
1465 echo "$as_me:1465: checking for C compiler default output" >&5
1466 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1467 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1468 if { (eval echo "$as_me:1468: \"$ac_link_default\"") >&5
1469 (eval $ac_link_default) 2>&5
1471 echo "$as_me:1471: \$? = $ac_status" >&5
1472 (exit $ac_status); }; then
1473 # Find the output, starting from the most likely. This scheme is
1474 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1476 for ac_file
in `ls a.exe conftest.exe 2>/dev/null;
1477 ls a.out conftest 2>/dev/null;
1478 ls a.* conftest.* 2>/dev/null`; do
1480 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.dbg |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
1481 a.out
) # We found the default executable, but exeext='' is most
1484 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1485 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1492 echo "$as_me: failed program was:" >&5
1493 cat conftest.
$ac_ext >&5
1494 { { echo "$as_me:1494: error: C compiler cannot create executables" >&5
1495 echo "$as_me: error: C compiler cannot create executables" >&2;}
1496 { (exit 77); exit 77; }; }
1499 ac_exeext
=$ac_cv_exeext
1500 echo "$as_me:1500: result: $ac_file" >&5
1501 echo "${ECHO_T}$ac_file" >&6
1503 # Check the compiler produces executables we can run. If not, either
1504 # the compiler is broken, or we cross compile.
1505 echo "$as_me:1505: checking whether the C compiler works" >&5
1506 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1507 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1508 # If not cross compiling, check that we can run a simple program.
1509 if test "$cross_compiling" != yes; then
1510 if { ac_try
='./$ac_file'
1511 { (eval echo "$as_me:1511: \"$ac_try\"") >&5
1514 echo "$as_me:1514: \$? = $ac_status" >&5
1515 (exit $ac_status); }; }; then
1518 if test "$cross_compiling" = maybe
; then
1521 { { echo "$as_me:1521: error: cannot run C compiled programs.
1522 If you meant to cross compile, use \`--host'." >&5
1523 echo "$as_me: error: cannot run C compiled programs.
1524 If you meant to cross compile, use \`--host'." >&2;}
1525 { (exit 1); exit 1; }; }
1529 echo "$as_me:1529: result: yes" >&5
1530 echo "${ECHO_T}yes" >&6
1532 rm -f a.out a.exe conftest
$ac_cv_exeext
1533 ac_clean_files
=$ac_clean_files_save
1534 # Check the compiler produces executables we can run. If not, either
1535 # the compiler is broken, or we cross compile.
1536 echo "$as_me:1536: checking whether we are cross compiling" >&5
1537 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1538 echo "$as_me:1538: result: $cross_compiling" >&5
1539 echo "${ECHO_T}$cross_compiling" >&6
1541 echo "$as_me:1541: checking for executable suffix" >&5
1542 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1543 if { (eval echo "$as_me:1543: \"$ac_link\"") >&5
1544 (eval $ac_link) 2>&5
1546 echo "$as_me:1546: \$? = $ac_status" >&5
1547 (exit $ac_status); }; then
1548 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1549 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1550 # work properly (i.e., refer to `conftest.exe'), while it won't with
1552 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1554 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.dbg |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
1555 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
1562 { { echo "$as_me:1562: error: cannot compute EXEEXT: cannot compile and link" >&5
1563 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1564 { (exit 1); exit 1; }; }
1567 rm -f conftest
$ac_cv_exeext
1568 echo "$as_me:1568: result: $ac_cv_exeext" >&5
1569 echo "${ECHO_T}$ac_cv_exeext" >&6
1571 rm -f conftest.
$ac_ext
1572 EXEEXT
=$ac_cv_exeext
1574 echo "$as_me:1574: checking for object suffix" >&5
1575 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1576 if test "${ac_cv_objext+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1579 cat >conftest.
$ac_ext <<_ACEOF
1580 #line 1580 "configure"
1581 #include "confdefs.h"
1591 rm -f conftest.o conftest.obj
1592 if { (eval echo "$as_me:1592: \"$ac_compile\"") >&5
1593 (eval $ac_compile) 2>&5
1595 echo "$as_me:1595: \$? = $ac_status" >&5
1596 (exit $ac_status); }; then
1597 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1599 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.dbg |
*.pdb |
*.xSYM |
*.map |
*.inf
) ;;
1600 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
1605 echo "$as_me: failed program was:" >&5
1606 cat conftest.
$ac_ext >&5
1607 { { echo "$as_me:1607: error: cannot compute OBJEXT: cannot compile" >&5
1608 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1609 { (exit 1); exit 1; }; }
1612 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
1614 echo "$as_me:1614: result: $ac_cv_objext" >&5
1615 echo "${ECHO_T}$ac_cv_objext" >&6
1616 OBJEXT
=$ac_cv_objext
1618 echo "$as_me:1618: checking whether we are using the GNU C compiler" >&5
1619 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1620 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1621 echo $ECHO_N "(cached) $ECHO_C" >&6
1623 cat >conftest.
$ac_ext <<_ACEOF
1624 #line 1624 "configure"
1625 #include "confdefs.h"
1638 rm -f conftest.
$ac_objext
1639 if { (eval echo "$as_me:1639: \"$ac_compile\"") >&5
1640 (eval $ac_compile) 2>&5
1642 echo "$as_me:1642: \$? = $ac_status" >&5
1643 (exit $ac_status); } &&
1644 { ac_try
='test -s conftest.$ac_objext'
1645 { (eval echo "$as_me:1645: \"$ac_try\"") >&5
1648 echo "$as_me:1648: \$? = $ac_status" >&5
1649 (exit $ac_status); }; }; then
1652 echo "$as_me: failed program was:" >&5
1653 cat conftest.
$ac_ext >&5
1656 rm -f conftest.
$ac_objext conftest.
$ac_ext
1657 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
1660 echo "$as_me:1660: result: $ac_cv_c_compiler_gnu" >&5
1661 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1662 GCC
=`test $ac_compiler_gnu = yes && echo yes`
1663 ac_test_CFLAGS
=${CFLAGS+set}
1664 ac_save_CFLAGS
=$CFLAGS
1666 echo "$as_me:1666: checking whether $CC accepts -g" >&5
1667 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1668 if test "${ac_cv_prog_cc_g+set}" = set; then
1669 echo $ECHO_N "(cached) $ECHO_C" >&6
1671 cat >conftest.
$ac_ext <<_ACEOF
1672 #line 1672 "configure"
1673 #include "confdefs.h"
1683 rm -f conftest.
$ac_objext
1684 if { (eval echo "$as_me:1684: \"$ac_compile\"") >&5
1685 (eval $ac_compile) 2>&5
1687 echo "$as_me:1687: \$? = $ac_status" >&5
1688 (exit $ac_status); } &&
1689 { ac_try
='test -s conftest.$ac_objext'
1690 { (eval echo "$as_me:1690: \"$ac_try\"") >&5
1693 echo "$as_me:1693: \$? = $ac_status" >&5
1694 (exit $ac_status); }; }; then
1697 echo "$as_me: failed program was:" >&5
1698 cat conftest.
$ac_ext >&5
1701 rm -f conftest.
$ac_objext conftest.
$ac_ext
1703 echo "$as_me:1703: result: $ac_cv_prog_cc_g" >&5
1704 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1705 if test "$ac_test_CFLAGS" = set; then
1706 CFLAGS
=$ac_save_CFLAGS
1707 elif test $ac_cv_prog_cc_g = yes; then
1708 if test "$GCC" = yes; then
1714 if test "$GCC" = yes; then
1720 # Some people use a C++ compiler to compile C. Since we use `exit',
1721 # in C++ we need to declare it. In case someone uses the same compiler
1722 # for both compiling C and C++ we need to have the C++ compiler decide
1723 # the declaration of exit, since it's the most demanding environment.
1724 cat >conftest.
$ac_ext <<_ACEOF
1729 rm -f conftest.
$ac_objext
1730 if { (eval echo "$as_me:1730: \"$ac_compile\"") >&5
1731 (eval $ac_compile) 2>&5
1733 echo "$as_me:1733: \$? = $ac_status" >&5
1734 (exit $ac_status); } &&
1735 { ac_try
='test -s conftest.$ac_objext'
1736 { (eval echo "$as_me:1736: \"$ac_try\"") >&5
1739 echo "$as_me:1739: \$? = $ac_status" >&5
1740 (exit $ac_status); }; }; then
1741 for ac_declaration
in \
1743 '#include <stdlib.h>' \
1744 'extern "C" void std::exit (int) throw (); using std::exit;' \
1745 'extern "C" void std::exit (int); using std::exit;' \
1746 'extern "C" void exit (int) throw ();' \
1747 'extern "C" void exit (int);' \
1750 cat >conftest.
$ac_ext <<_ACEOF
1751 #line 1751 "configure"
1752 #include "confdefs.h"
1763 rm -f conftest.
$ac_objext
1764 if { (eval echo "$as_me:1764: \"$ac_compile\"") >&5
1765 (eval $ac_compile) 2>&5
1767 echo "$as_me:1767: \$? = $ac_status" >&5
1768 (exit $ac_status); } &&
1769 { ac_try
='test -s conftest.$ac_objext'
1770 { (eval echo "$as_me:1770: \"$ac_try\"") >&5
1773 echo "$as_me:1773: \$? = $ac_status" >&5
1774 (exit $ac_status); }; }; then
1777 echo "$as_me: failed program was:" >&5
1778 cat conftest.
$ac_ext >&5
1781 rm -f conftest.
$ac_objext conftest.
$ac_ext
1782 cat >conftest.
$ac_ext <<_ACEOF
1783 #line 1783 "configure"
1784 #include "confdefs.h"
1794 rm -f conftest.
$ac_objext
1795 if { (eval echo "$as_me:1795: \"$ac_compile\"") >&5
1796 (eval $ac_compile) 2>&5
1798 echo "$as_me:1798: \$? = $ac_status" >&5
1799 (exit $ac_status); } &&
1800 { ac_try
='test -s conftest.$ac_objext'
1801 { (eval echo "$as_me:1801: \"$ac_try\"") >&5
1804 echo "$as_me:1804: \$? = $ac_status" >&5
1805 (exit $ac_status); }; }; then
1808 echo "$as_me: failed program was:" >&5
1809 cat conftest.
$ac_ext >&5
1811 rm -f conftest.
$ac_objext conftest.
$ac_ext
1814 if test -n "$ac_declaration"; then
1815 echo '#ifdef __cplusplus' >>confdefs.h
1816 echo $ac_declaration >>confdefs.h
1817 echo '#endif' >>confdefs.h
1821 echo "$as_me: failed program was:" >&5
1822 cat conftest.
$ac_ext >&5
1824 rm -f conftest.
$ac_objext conftest.
$ac_ext
1826 ac_cpp
='$CPP $CPPFLAGS'
1827 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1828 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1829 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1830 ac_main_return
=return
1833 if test "$GCC" = yes ; then
1834 echo "$as_me:1834: checking version of $CC" >&5
1835 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1836 GCC_VERSION
="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
1837 test -z "$GCC_VERSION" && GCC_VERSION
=unknown
1838 echo "$as_me:1838: result: $GCC_VERSION" >&5
1839 echo "${ECHO_T}$GCC_VERSION" >&6
1842 echo "$as_me:1842: checking for $CC option to accept ANSI C" >&5
1843 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1844 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1845 echo $ECHO_N "(cached) $ECHO_C" >&6
1847 ac_cv_prog_cc_stdc
=no
1849 cat >conftest.
$ac_ext <<_ACEOF
1850 #line 1850 "configure"
1851 #include "confdefs.h"
1854 #include <sys/types.h>
1855 #include <sys/stat.h>
1856 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1857 struct buf { int x; };
1858 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1859 static char *e (p, i)
1865 static char *f (char * (*g) (char **, int), char **p, ...)
1870 s = g (p, va_arg (v,int));
1874 int test (int i, double x);
1875 struct s1 {int (*f) (int a);};
1876 struct s2 {int (*f) (double a);};
1877 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1883 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1888 # Don't try gcc -ansi; that turns off useful extensions and
1889 # breaks some systems' header files.
1890 # AIX -qlanglvl=ansi
1891 # Ultrix and OSF/1 -std1
1892 # HP-UX 10.20 and later -Ae
1893 # HP-UX older versions -Aa -D_HPUX_SOURCE
1894 # SVR4 -Xc -D__EXTENSIONS__
1895 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1897 CC
="$ac_save_CC $ac_arg"
1898 rm -f conftest.
$ac_objext
1899 if { (eval echo "$as_me:1899: \"$ac_compile\"") >&5
1900 (eval $ac_compile) 2>&5
1902 echo "$as_me:1902: \$? = $ac_status" >&5
1903 (exit $ac_status); } &&
1904 { ac_try
='test -s conftest.$ac_objext'
1905 { (eval echo "$as_me:1905: \"$ac_try\"") >&5
1908 echo "$as_me:1908: \$? = $ac_status" >&5
1909 (exit $ac_status); }; }; then
1910 ac_cv_prog_cc_stdc
=$ac_arg
1913 echo "$as_me: failed program was:" >&5
1914 cat conftest.
$ac_ext >&5
1916 rm -f conftest.
$ac_objext
1918 rm -f conftest.
$ac_ext conftest.
$ac_objext
1923 case "x$ac_cv_prog_cc_stdc" in
1925 echo "$as_me:1925: result: none needed" >&5
1926 echo "${ECHO_T}none needed" >&6 ;;
1928 echo "$as_me:1928: result: $ac_cv_prog_cc_stdc" >&5
1929 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1930 CC
="$CC $ac_cv_prog_cc_stdc" ;;
1933 # This should have been defined by AC_PROG_CC
1936 echo "$as_me:1936: checking \$CC variable" >&5
1937 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
1940 echo "$as_me:1940: result: broken" >&5
1941 echo "${ECHO_T}broken" >&6
1942 { echo "$as_me:1942: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
1943 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
1945 cf_flags
=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
1946 CC
=`echo "$CC" | sed -e 's/[ ].*//'`
1951 cf_new_extra_cppflags
=
1953 for cf_add_cflags
in $cf_flags
1955 case $cf_fix_cppflags in
1957 case $cf_add_cflags in
1958 (-undef|
-nostdinc*|
-I*|
-D*|
-U*|
-E|
-P|
-C)
1959 case $cf_add_cflags in
1961 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
1963 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
1964 && test -z "${cf_tst_cflags}" \
1965 && cf_fix_cppflags
=yes
1967 if test $cf_fix_cppflags = yes ; then
1968 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
1970 elif test "${cf_tst_cflags}" = "\"'" ; then
1971 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
1980 case $cf_add_cflags in
1982 cf_tst_cppflags
=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
1984 CPPFLAGS
=`echo "$CPPFLAGS" | \
1985 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
1986 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
1990 cf_new_cppflags
="$cf_new_cppflags $cf_add_cflags"
1995 cf_new_cflags
="$cf_new_cflags $cf_add_cflags"
2000 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
2002 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2004 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2005 && test -z "${cf_tst_cflags}" \
2006 && cf_fix_cppflags
=no
2011 if test -n "$cf_new_cflags" ; then
2013 CFLAGS
="$CFLAGS $cf_new_cflags"
2016 if test -n "$cf_new_cppflags" ; then
2018 CPPFLAGS
="$CPPFLAGS $cf_new_cppflags"
2021 if test -n "$cf_new_extra_cppflags" ; then
2023 EXTRA_CPPFLAGS
="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2028 echo "$as_me:2028: result: ok" >&5
2029 echo "${ECHO_T}ok" >&6
2034 ac_cpp
='$CPP $CPPFLAGS'
2035 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2036 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2037 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2038 ac_main_return
=return
2039 echo "$as_me:2039: checking how to run the C preprocessor" >&5
2040 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2041 # On Suns, sometimes $CPP names a directory.
2042 if test -n "$CPP" && test -d "$CPP"; then
2045 if test -z "$CPP"; then
2046 if test "${ac_cv_prog_CPP+set}" = set; then
2047 echo $ECHO_N "(cached) $ECHO_C" >&6
2049 # Double quotes because CPP needs to be expanded
2050 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2053 for ac_c_preproc_warn_flag
in '' yes
2055 # Use a header file that comes with gcc, so configuring glibc
2056 # with a fresh cross-compiler works.
2057 # On the NeXT, cc -E runs the code through the compiler's parser,
2058 # not just through cpp. "Syntax error" is here to catch this case.
2059 cat >conftest.
$ac_ext <<_ACEOF
2060 #line 2060 "configure"
2061 #include "confdefs.h"
2065 if { (eval echo "$as_me:2065: \"$ac_cpp conftest.$ac_ext\"") >&5
2066 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2068 egrep -v '^ *\+' conftest.er1
>conftest.err
2070 cat conftest.err
>&5
2071 echo "$as_me:2071: \$? = $ac_status" >&5
2072 (exit $ac_status); } >/dev
/null
; then
2073 if test -s conftest.err
; then
2074 ac_cpp_err
=$ac_c_preproc_warn_flag
2081 if test -z "$ac_cpp_err"; then
2084 echo "$as_me: failed program was:" >&5
2085 cat conftest.
$ac_ext >&5
2086 # Broken: fails on valid input.
2089 rm -f conftest.err conftest.
$ac_ext
2091 # OK, works on sane cases. Now check whether non-existent headers
2092 # can be detected and how.
2093 cat >conftest.
$ac_ext <<_ACEOF
2094 #line 2094 "configure"
2095 #include "confdefs.h"
2096 #include <ac_nonexistent.h>
2098 if { (eval echo "$as_me:2098: \"$ac_cpp conftest.$ac_ext\"") >&5
2099 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2101 egrep -v '^ *\+' conftest.er1
>conftest.err
2103 cat conftest.err
>&5
2104 echo "$as_me:2104: \$? = $ac_status" >&5
2105 (exit $ac_status); } >/dev
/null
; then
2106 if test -s conftest.err
; then
2107 ac_cpp_err
=$ac_c_preproc_warn_flag
2114 if test -z "$ac_cpp_err"; then
2115 # Broken: success on invalid input.
2118 echo "$as_me: failed program was:" >&5
2119 cat conftest.
$ac_ext >&5
2120 # Passes both tests.
2124 rm -f conftest.err conftest.
$ac_ext
2127 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2128 rm -f conftest.err conftest.
$ac_ext
2129 if $ac_preproc_ok; then
2141 echo "$as_me:2141: result: $CPP" >&5
2142 echo "${ECHO_T}$CPP" >&6
2144 for ac_c_preproc_warn_flag
in '' yes
2146 # Use a header file that comes with gcc, so configuring glibc
2147 # with a fresh cross-compiler works.
2148 # On the NeXT, cc -E runs the code through the compiler's parser,
2149 # not just through cpp. "Syntax error" is here to catch this case.
2150 cat >conftest.
$ac_ext <<_ACEOF
2151 #line 2151 "configure"
2152 #include "confdefs.h"
2156 if { (eval echo "$as_me:2156: \"$ac_cpp conftest.$ac_ext\"") >&5
2157 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2159 egrep -v '^ *\+' conftest.er1
>conftest.err
2161 cat conftest.err
>&5
2162 echo "$as_me:2162: \$? = $ac_status" >&5
2163 (exit $ac_status); } >/dev
/null
; then
2164 if test -s conftest.err
; then
2165 ac_cpp_err
=$ac_c_preproc_warn_flag
2172 if test -z "$ac_cpp_err"; then
2175 echo "$as_me: failed program was:" >&5
2176 cat conftest.
$ac_ext >&5
2177 # Broken: fails on valid input.
2180 rm -f conftest.err conftest.
$ac_ext
2182 # OK, works on sane cases. Now check whether non-existent headers
2183 # can be detected and how.
2184 cat >conftest.
$ac_ext <<_ACEOF
2185 #line 2185 "configure"
2186 #include "confdefs.h"
2187 #include <ac_nonexistent.h>
2189 if { (eval echo "$as_me:2189: \"$ac_cpp conftest.$ac_ext\"") >&5
2190 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
2192 egrep -v '^ *\+' conftest.er1
>conftest.err
2194 cat conftest.err
>&5
2195 echo "$as_me:2195: \$? = $ac_status" >&5
2196 (exit $ac_status); } >/dev
/null
; then
2197 if test -s conftest.err
; then
2198 ac_cpp_err
=$ac_c_preproc_warn_flag
2205 if test -z "$ac_cpp_err"; then
2206 # Broken: success on invalid input.
2209 echo "$as_me: failed program was:" >&5
2210 cat conftest.
$ac_ext >&5
2211 # Passes both tests.
2215 rm -f conftest.err conftest.
$ac_ext
2218 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2219 rm -f conftest.err conftest.
$ac_ext
2220 if $ac_preproc_ok; then
2223 { { echo "$as_me:2223: error: C preprocessor \"$CPP\" fails sanity check" >&5
2224 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2225 { (exit 1); exit 1; }; }
2229 ac_cpp
='$CPP $CPPFLAGS'
2230 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2231 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2232 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2233 ac_main_return
=return
2235 for ac_prog
in mawk gawk nawk
awk
2237 # Extract the first word of "$ac_prog", so it can be a program name with args.
2238 set dummy
$ac_prog; ac_word
=$2
2239 echo "$as_me:2239: checking for $ac_word" >&5
2240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2241 if test "${ac_cv_prog_AWK+set}" = set; then
2242 echo $ECHO_N "(cached) $ECHO_C" >&6
2244 if test -n "$AWK"; then
2245 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2247 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2249 for ac_dir
in $ac_dummy; do
2251 test -z "$ac_dir" && ac_dir
=.
2252 $as_executable_p "$ac_dir/$ac_word" ||
continue
2253 ac_cv_prog_AWK
="$ac_prog"
2254 echo "$as_me:2254: found $ac_dir/$ac_word" >&5
2261 if test -n "$AWK"; then
2262 echo "$as_me:2262: result: $AWK" >&5
2263 echo "${ECHO_T}$AWK" >&6
2265 echo "$as_me:2265: result: no" >&5
2266 echo "${ECHO_T}no" >&6
2269 test -n "$AWK" && break
2272 # Find a good install program. We prefer a C program (faster),
2273 # so one script is as good as another. But avoid the broken or
2274 # incompatible versions:
2275 # SysV /etc/install, /usr/sbin/install
2276 # SunOS /usr/etc/install
2277 # IRIX /sbin/install
2279 # AmigaOS /C/install, which installs bootblocks on floppy discs
2280 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2281 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2282 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2283 # ./install, which can be erroneously created by make from ./install.sh.
2284 echo "$as_me:2284: checking for a BSD compatible install" >&5
2285 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2286 if test -z "$INSTALL"; then
2287 if test "${ac_cv_path_install+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2290 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2291 for ac_dir
in $PATH; do
2293 # Account for people who put trailing slashes in PATH elements.
2295 / | .
/ | .
// |
/cC
/* \
2296 |
/etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* \
2299 # OSF1 and SCO ODT 3.0 have their own names for install.
2300 # Don't use installbsd from OSF since it installs stuff as root
2302 for ac_prog
in ginstall scoinst
install; do
2303 if $as_executable_p "$ac_dir/$ac_prog"; then
2304 if test $ac_prog = install &&
2305 grep dspmsg
"$ac_dir/$ac_prog" >/dev
/null
2>&1; then
2306 # AIX install. It has an incompatible calling convention.
2308 elif test $ac_prog = install &&
2309 grep pwplus
"$ac_dir/$ac_prog" >/dev
/null
2>&1; then
2310 # program-specific install script used by HP pwplus--don't use.
2313 ac_cv_path_install
="$ac_dir/$ac_prog -c"
2323 if test "${ac_cv_path_install+set}" = set; then
2324 INSTALL
=$ac_cv_path_install
2326 # As a last resort, use the slow shell script. We don't cache a
2327 # path for INSTALL within a source directory, because that will
2328 # break other packages using the cache if that directory is
2329 # removed, or if the path is relative.
2330 INSTALL
=$ac_install_sh
2333 echo "$as_me:2333: result: $INSTALL" >&5
2334 echo "${ECHO_T}$INSTALL" >&6
2336 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2337 # It thinks the first close brace ends the variable substitution.
2338 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2340 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2342 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2348 cf_dir
=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
2349 test -z "$cf_dir" && cf_dir
=.
2350 INSTALL
=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
2354 for ac_prog
in tdlint lint alint splint lclint
2356 # Extract the first word of "$ac_prog", so it can be a program name with args.
2357 set dummy
$ac_prog; ac_word
=$2
2358 echo "$as_me:2358: checking for $ac_word" >&5
2359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2360 if test "${ac_cv_prog_LINT+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 if test -n "$LINT"; then
2364 ac_cv_prog_LINT
="$LINT" # Let the user override the test.
2366 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2368 for ac_dir
in $ac_dummy; do
2370 test -z "$ac_dir" && ac_dir
=.
2371 $as_executable_p "$ac_dir/$ac_word" ||
continue
2372 ac_cv_prog_LINT
="$ac_prog"
2373 echo "$as_me:2373: found $ac_dir/$ac_word" >&5
2379 LINT
=$ac_cv_prog_LINT
2380 if test -n "$LINT"; then
2381 echo "$as_me:2381: result: $LINT" >&5
2382 echo "${ECHO_T}$LINT" >&6
2384 echo "$as_me:2384: result: no" >&5
2385 echo "${ECHO_T}no" >&6
2388 test -n "$LINT" && break
2391 echo "$as_me:2391: checking if filesystem supports mixed-case filenames" >&5
2392 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2393 if test "${cf_cv_mixedcase+set}" = set; then
2394 echo $ECHO_N "(cached) $ECHO_C" >&6
2397 if test "$cross_compiling" = yes ; then
2398 case $target_alias in
2399 (*-os2-emx*|
*-msdosdjgpp*|
*-cygwin*|
*-msys*|
*-mingw*|
*-uwin*)
2407 rm -f conftest CONFTEST
2409 if test -f CONFTEST
; then
2414 rm -f conftest CONFTEST
2418 echo "$as_me:2418: result: $cf_cv_mixedcase" >&5
2419 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2420 test "$cf_cv_mixedcase" = yes &&
2421 cat >>confdefs.h
<<\EOF
2422 #define MIXEDCASE_FILENAMES 1
2425 for ac_prog
in exctags ctags
2427 # Extract the first word of "$ac_prog", so it can be a program name with args.
2428 set dummy
$ac_prog; ac_word
=$2
2429 echo "$as_me:2429: checking for $ac_word" >&5
2430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2431 if test "${ac_cv_prog_CTAGS+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2434 if test -n "$CTAGS"; then
2435 ac_cv_prog_CTAGS
="$CTAGS" # Let the user override the test.
2437 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2439 for ac_dir
in $ac_dummy; do
2441 test -z "$ac_dir" && ac_dir
=.
2442 $as_executable_p "$ac_dir/$ac_word" ||
continue
2443 ac_cv_prog_CTAGS
="$ac_prog"
2444 echo "$as_me:2444: found $ac_dir/$ac_word" >&5
2450 CTAGS
=$ac_cv_prog_CTAGS
2451 if test -n "$CTAGS"; then
2452 echo "$as_me:2452: result: $CTAGS" >&5
2453 echo "${ECHO_T}$CTAGS" >&6
2455 echo "$as_me:2455: result: no" >&5
2456 echo "${ECHO_T}no" >&6
2459 test -n "$CTAGS" && break
2462 for ac_prog
in exetags etags
2464 # Extract the first word of "$ac_prog", so it can be a program name with args.
2465 set dummy
$ac_prog; ac_word
=$2
2466 echo "$as_me:2466: checking for $ac_word" >&5
2467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2468 if test "${ac_cv_prog_ETAGS+set}" = set; then
2469 echo $ECHO_N "(cached) $ECHO_C" >&6
2471 if test -n "$ETAGS"; then
2472 ac_cv_prog_ETAGS
="$ETAGS" # Let the user override the test.
2474 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2476 for ac_dir
in $ac_dummy; do
2478 test -z "$ac_dir" && ac_dir
=.
2479 $as_executable_p "$ac_dir/$ac_word" ||
continue
2480 ac_cv_prog_ETAGS
="$ac_prog"
2481 echo "$as_me:2481: found $ac_dir/$ac_word" >&5
2487 ETAGS
=$ac_cv_prog_ETAGS
2488 if test -n "$ETAGS"; then
2489 echo "$as_me:2489: result: $ETAGS" >&5
2490 echo "${ECHO_T}$ETAGS" >&6
2492 echo "$as_me:2492: result: no" >&5
2493 echo "${ECHO_T}no" >&6
2496 test -n "$ETAGS" && break
2499 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2500 set dummy
${CTAGS:-ctags}; ac_word
=$2
2501 echo "$as_me:2501: checking for $ac_word" >&5
2502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2503 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 if test -n "$MAKE_LOWER_TAGS"; then
2507 ac_cv_prog_MAKE_LOWER_TAGS
="$MAKE_LOWER_TAGS" # Let the user override the test.
2509 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2511 for ac_dir
in $ac_dummy; do
2513 test -z "$ac_dir" && ac_dir
=.
2514 $as_executable_p "$ac_dir/$ac_word" ||
continue
2515 ac_cv_prog_MAKE_LOWER_TAGS
="yes"
2516 echo "$as_me:2516: found $ac_dir/$ac_word" >&5
2520 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS
="no"
2523 MAKE_LOWER_TAGS
=$ac_cv_prog_MAKE_LOWER_TAGS
2524 if test -n "$MAKE_LOWER_TAGS"; then
2525 echo "$as_me:2525: result: $MAKE_LOWER_TAGS" >&5
2526 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2528 echo "$as_me:2528: result: no" >&5
2529 echo "${ECHO_T}no" >&6
2532 if test "$cf_cv_mixedcase" = yes ; then
2533 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2534 set dummy
${ETAGS:-etags}; ac_word
=$2
2535 echo "$as_me:2535: checking for $ac_word" >&5
2536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2537 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2540 if test -n "$MAKE_UPPER_TAGS"; then
2541 ac_cv_prog_MAKE_UPPER_TAGS
="$MAKE_UPPER_TAGS" # Let the user override the test.
2543 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
2545 for ac_dir
in $ac_dummy; do
2547 test -z "$ac_dir" && ac_dir
=.
2548 $as_executable_p "$ac_dir/$ac_word" ||
continue
2549 ac_cv_prog_MAKE_UPPER_TAGS
="yes"
2550 echo "$as_me:2550: found $ac_dir/$ac_word" >&5
2554 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS
="no"
2557 MAKE_UPPER_TAGS
=$ac_cv_prog_MAKE_UPPER_TAGS
2558 if test -n "$MAKE_UPPER_TAGS"; then
2559 echo "$as_me:2559: result: $MAKE_UPPER_TAGS" >&5
2560 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2562 echo "$as_me:2562: result: no" >&5
2563 echo "${ECHO_T}no" >&6
2570 if test "$MAKE_UPPER_TAGS" = yes ; then
2576 if test "$MAKE_LOWER_TAGS" = yes ; then
2582 echo "$as_me:2582: checking if -lm needed for math functions" >&5
2583 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
2584 if test "${cf_cv_need_libm+set}" = set; then
2585 echo $ECHO_N "(cached) $ECHO_C" >&6
2588 cat >conftest.
$ac_ext <<_ACEOF
2589 #line 2589 "configure"
2590 #include "confdefs.h"
2598 double x = rand(); printf("result = %g\n", pow(sin(x),x))
2603 rm -f conftest.
$ac_objext conftest
$ac_exeext
2604 if { (eval echo "$as_me:2604: \"$ac_link\"") >&5
2605 (eval $ac_link) 2>&5
2607 echo "$as_me:2607: \$? = $ac_status" >&5
2608 (exit $ac_status); } &&
2609 { ac_try
='test -s conftest$ac_exeext'
2610 { (eval echo "$as_me:2610: \"$ac_try\"") >&5
2613 echo "$as_me:2613: \$? = $ac_status" >&5
2614 (exit $ac_status); }; }; then
2617 echo "$as_me: failed program was:" >&5
2618 cat conftest.
$ac_ext >&5
2621 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
2623 echo "$as_me:2623: result: $cf_cv_need_libm" >&5
2624 echo "${ECHO_T}$cf_cv_need_libm" >&6
2625 if test "$cf_cv_need_libm" = yes
2633 CC_SHARED_OPTS
=unknown
2634 CPPFLAGS
="$CPPFLAGS"
2636 DFT_OBJ_SUBDIR
=`pwd|sed -e's:.*/::'`
2637 DFT_UPR_MODEL
="NORMAL"
2650 PACKAGE
="ncurses-examples"
2656 TINFO_LIBS
='$(LIBS_CURSES)'
2657 cf_cv_abi_version
=""
2658 cf_cv_rel_version
=""
2664 if test "$GCC" = yes
2666 cat > conftest.i
<<EOF
2668 #define GCC_PRINTF 0
2673 #ifndef GCC_NORETURN
2674 #define GCC_NORETURN /* nothing */
2677 #define GCC_UNUSED /* nothing */
2680 if test "$GCC" = yes
2682 { echo "$as_me:2682: checking for $CC __attribute__ directives..." >&5
2683 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
2684 cat > conftest.
$ac_ext <<EOF
2685 #line 2685 "${as_me:-configure}"
2686 #include "confdefs.h"
2687 #include "conftest.h"
2688 #include "conftest.i"
2690 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2692 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
2695 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2697 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
2699 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
2700 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
2701 extern void foo(void) GCC_NORETURN;
2702 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
2704 cf_printf_attribute
=no
2705 cf_scanf_attribute
=no
2706 for cf_attribute
in scanf
printf unused noreturn
2709 cf_ATTRIBUTE
=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
2711 cf_directive
="__attribute__(($cf_attribute))"
2712 echo "checking for $CC $cf_directive" 1>&5
2714 case $cf_attribute in
2716 cf_printf_attribute
=yes
2717 cat >conftest.h
<<EOF
2718 #define GCC_$cf_ATTRIBUTE 1
2722 cf_scanf_attribute
=yes
2723 cat >conftest.h
<<EOF
2724 #define GCC_$cf_ATTRIBUTE 1
2728 cat >conftest.h
<<EOF
2729 #define GCC_$cf_ATTRIBUTE $cf_directive
2734 if { (eval echo "$as_me:2734: \"$ac_compile\"") >&5
2735 (eval $ac_compile) 2>&5
2737 echo "$as_me:2737: \$? = $ac_status" >&5
2738 (exit $ac_status); }; then
2739 test -n "$verbose" && echo "$as_me:2739: result: ... $cf_attribute" >&5
2740 echo "${ECHO_T}... $cf_attribute" >&6
2741 cat conftest.h
>>confdefs.h
2742 case $cf_attribute in
2745 cat >>confdefs.h
<<EOF
2746 #define GCC_NORETURN $cf_directive
2751 cf_value
='/* nothing */'
2752 if test "$cf_printf_attribute" != no
; then
2753 cf_value
='__attribute__((format(printf,fmt,var)))'
2755 cat >>confdefs.h
<<\EOF
2756 #define GCC_PRINTF 1
2761 cat >>confdefs.h
<<EOF
2762 #define GCC_PRINTFLIKE(fmt,var) $cf_value
2767 cf_value
='/* nothing */'
2768 if test "$cf_scanf_attribute" != no
; then
2769 cf_value
='__attribute__((format(scanf,fmt,var)))'
2771 cat >>confdefs.h
<<\EOF
2777 cat >>confdefs.h
<<EOF
2778 #define GCC_SCANFLIKE(fmt,var) $cf_value
2784 cat >>confdefs.h
<<EOF
2785 #define GCC_UNUSED $cf_directive
2793 fgrep define conftest.i
>>confdefs.h
2799 cf_POSIX_C_SOURCE
=199506L
2804 cf_xopen_source
="-D_ALL_SOURCE"
2810 cf_xopen_source
="-D_APPLE_C_SOURCE"
2813 cf_xopen_source
="-D_DARWIN_C_SOURCE"
2816 (freebsd
*|dragonfly
*)
2817 # 5.x headers associate
2818 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
2819 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
2820 cf_POSIX_C_SOURCE
=200112L
2822 cf_xopen_source
="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2825 cf_xopen_source
="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
2828 cf_xopen_source
="-D_HPUX_SOURCE"
2831 cf_xopen_source
="-D_SGI_SOURCE"
2834 (linux
*|gnu
*|mint
*|k
*bsd
*-gnu)
2836 echo "$as_me:2836: checking if we must define _GNU_SOURCE" >&5
2837 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
2838 if test "${cf_cv_gnu_source+set}" = set; then
2839 echo $ECHO_N "(cached) $ECHO_C" >&6
2842 cat >conftest.
$ac_ext <<_ACEOF
2843 #line 2843 "configure"
2844 #include "confdefs.h"
2845 #include <sys/types.h>
2850 #ifndef _XOPEN_SOURCE
2857 rm -f conftest.
$ac_objext
2858 if { (eval echo "$as_me:2858: \"$ac_compile\"") >&5
2859 (eval $ac_compile) 2>&5
2861 echo "$as_me:2861: \$? = $ac_status" >&5
2862 (exit $ac_status); } &&
2863 { ac_try
='test -s conftest.$ac_objext'
2864 { (eval echo "$as_me:2864: \"$ac_try\"") >&5
2867 echo "$as_me:2867: \$? = $ac_status" >&5
2868 (exit $ac_status); }; }; then
2871 echo "$as_me: failed program was:" >&5
2872 cat conftest.
$ac_ext >&5
2874 CPPFLAGS
="$CPPFLAGS -D_GNU_SOURCE"
2875 cat >conftest.
$ac_ext <<_ACEOF
2876 #line 2876 "configure"
2877 #include "confdefs.h"
2878 #include <sys/types.h>
2883 #ifdef _XOPEN_SOURCE
2890 rm -f conftest.
$ac_objext
2891 if { (eval echo "$as_me:2891: \"$ac_compile\"") >&5
2892 (eval $ac_compile) 2>&5
2894 echo "$as_me:2894: \$? = $ac_status" >&5
2895 (exit $ac_status); } &&
2896 { ac_try
='test -s conftest.$ac_objext'
2897 { (eval echo "$as_me:2897: \"$ac_try\"") >&5
2900 echo "$as_me:2900: \$? = $ac_status" >&5
2901 (exit $ac_status); }; }; then
2904 echo "$as_me: failed program was:" >&5
2905 cat conftest.
$ac_ext >&5
2906 cf_cv_gnu_source
=yes
2908 rm -f conftest.
$ac_objext conftest.
$ac_ext
2912 rm -f conftest.
$ac_objext conftest.
$ac_ext
2915 echo "$as_me:2915: result: $cf_cv_gnu_source" >&5
2916 echo "${ECHO_T}$cf_cv_gnu_source" >&6
2917 test "$cf_cv_gnu_source" = yes && CPPFLAGS
="$CPPFLAGS -D_GNU_SOURCE"
2921 cf_xopen_source
="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
2924 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
2927 cf_POSIX_C_SOURCE
=$cf_POSIX_C_SOURCE
2929 cf_save_CFLAGS
="$CFLAGS"
2930 cf_save_CPPFLAGS
="$CPPFLAGS"
2932 cf_trim_CFLAGS
=`echo "$cf_save_CFLAGS" | \
2933 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2934 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2936 cf_trim_CPPFLAGS
=`echo "$cf_save_CPPFLAGS" | \
2937 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
2938 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
2940 echo "$as_me:2940: checking if we should define _POSIX_C_SOURCE" >&5
2941 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
2942 if test "${cf_cv_posix_c_source+set}" = set; then
2943 echo $ECHO_N "(cached) $ECHO_C" >&6
2946 echo "${as_me:-configure}:2946: testing if the symbol is already defined go no further ..." 1>&5
2948 cat >conftest.
$ac_ext <<_ACEOF
2949 #line 2949 "configure"
2950 #include "confdefs.h"
2951 #include <sys/types.h>
2956 #ifndef _POSIX_C_SOURCE
2963 rm -f conftest.
$ac_objext
2964 if { (eval echo "$as_me:2964: \"$ac_compile\"") >&5
2965 (eval $ac_compile) 2>&5
2967 echo "$as_me:2967: \$? = $ac_status" >&5
2968 (exit $ac_status); } &&
2969 { ac_try
='test -s conftest.$ac_objext'
2970 { (eval echo "$as_me:2970: \"$ac_try\"") >&5
2973 echo "$as_me:2973: \$? = $ac_status" >&5
2974 (exit $ac_status); }; }; then
2975 cf_cv_posix_c_source
=no
2977 echo "$as_me: failed program was:" >&5
2978 cat conftest.
$ac_ext >&5
2979 cf_want_posix_source
=no
2980 case .
$cf_POSIX_C_SOURCE in
2982 cf_cv_posix_c_source
="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2985 cf_cv_posix_c_source
="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
2986 cf_want_posix_source
=yes
2989 cf_want_posix_source
=yes
2992 if test "$cf_want_posix_source" = yes ; then
2993 cat >conftest.
$ac_ext <<_ACEOF
2994 #line 2994 "configure"
2995 #include "confdefs.h"
2996 #include <sys/types.h>
3001 #ifdef _POSIX_SOURCE
3008 rm -f conftest.
$ac_objext
3009 if { (eval echo "$as_me:3009: \"$ac_compile\"") >&5
3010 (eval $ac_compile) 2>&5
3012 echo "$as_me:3012: \$? = $ac_status" >&5
3013 (exit $ac_status); } &&
3014 { ac_try
='test -s conftest.$ac_objext'
3015 { (eval echo "$as_me:3015: \"$ac_try\"") >&5
3018 echo "$as_me:3018: \$? = $ac_status" >&5
3019 (exit $ac_status); }; }; then
3022 echo "$as_me: failed program was:" >&5
3023 cat conftest.
$ac_ext >&5
3024 cf_cv_posix_c_source
="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3026 rm -f conftest.
$ac_objext conftest.
$ac_ext
3029 echo "${as_me:-configure}:3029: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3031 CFLAGS
="$cf_trim_CFLAGS"
3032 CPPFLAGS
="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3034 echo "${as_me:-configure}:3034: testing if the second compile does not leave our definition intact error ..." 1>&5
3036 cat >conftest.
$ac_ext <<_ACEOF
3037 #line 3037 "configure"
3038 #include "confdefs.h"
3039 #include <sys/types.h>
3044 #ifndef _POSIX_C_SOURCE
3051 rm -f conftest.
$ac_objext
3052 if { (eval echo "$as_me:3052: \"$ac_compile\"") >&5
3053 (eval $ac_compile) 2>&5
3055 echo "$as_me:3055: \$? = $ac_status" >&5
3056 (exit $ac_status); } &&
3057 { ac_try
='test -s conftest.$ac_objext'
3058 { (eval echo "$as_me:3058: \"$ac_try\"") >&5
3061 echo "$as_me:3061: \$? = $ac_status" >&5
3062 (exit $ac_status); }; }; then
3065 echo "$as_me: failed program was:" >&5
3066 cat conftest.
$ac_ext >&5
3067 cf_cv_posix_c_source
=no
3069 rm -f conftest.
$ac_objext conftest.
$ac_ext
3070 CFLAGS
="$cf_save_CFLAGS"
3071 CPPFLAGS
="$cf_save_CPPFLAGS"
3074 rm -f conftest.
$ac_objext conftest.
$ac_ext
3077 echo "$as_me:3077: result: $cf_cv_posix_c_source" >&5
3078 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3080 if test "$cf_cv_posix_c_source" != no
; then
3081 CFLAGS
="$cf_trim_CFLAGS"
3082 CPPFLAGS
="$cf_trim_CPPFLAGS"
3087 cf_new_extra_cppflags
=
3089 for cf_add_cflags
in $cf_cv_posix_c_source
3091 case $cf_fix_cppflags in
3093 case $cf_add_cflags in
3094 (-undef|
-nostdinc*|
-I*|
-D*|
-U*|
-E|
-P|
-C)
3095 case $cf_add_cflags in
3097 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3099 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3100 && test -z "${cf_tst_cflags}" \
3101 && cf_fix_cppflags
=yes
3103 if test $cf_fix_cppflags = yes ; then
3104 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
3106 elif test "${cf_tst_cflags}" = "\"'" ; then
3107 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
3116 case $cf_add_cflags in
3118 cf_tst_cppflags
=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3120 CPPFLAGS
=`echo "$CPPFLAGS" | \
3121 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3122 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3126 cf_new_cppflags
="$cf_new_cppflags $cf_add_cflags"
3131 cf_new_cflags
="$cf_new_cflags $cf_add_cflags"
3136 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
3138 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3140 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3141 && test -z "${cf_tst_cflags}" \
3142 && cf_fix_cppflags
=no
3147 if test -n "$cf_new_cflags" ; then
3149 CFLAGS
="$CFLAGS $cf_new_cflags"
3152 if test -n "$cf_new_cppflags" ; then
3154 CPPFLAGS
="$CPPFLAGS $cf_new_cppflags"
3157 if test -n "$cf_new_extra_cppflags" ; then
3159 EXTRA_CPPFLAGS
="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3166 cf_xopen_source
="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
3169 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
3170 cf_xopen_source
="-D_BSD_SOURCE"
3174 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
3177 cf_xopen_source
="-D_OSF_SOURCE"
3180 cf_xopen_source
="-D_QNX_SOURCE"
3183 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
3186 cf_xopen_source
="-D__EXTENSIONS__"
3187 cf_cv_xopen_source
=broken
3189 (sysv4.2uw2.
*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
3195 echo "$as_me:3195: checking if we should define _XOPEN_SOURCE" >&5
3196 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3197 if test "${cf_cv_xopen_source+set}" = set; then
3198 echo $ECHO_N "(cached) $ECHO_C" >&6
3201 cat >conftest.
$ac_ext <<_ACEOF
3202 #line 3202 "configure"
3203 #include "confdefs.h"
3207 #include <sys/types.h>
3213 #ifndef _XOPEN_SOURCE
3220 rm -f conftest.
$ac_objext
3221 if { (eval echo "$as_me:3221: \"$ac_compile\"") >&5
3222 (eval $ac_compile) 2>&5
3224 echo "$as_me:3224: \$? = $ac_status" >&5
3225 (exit $ac_status); } &&
3226 { ac_try
='test -s conftest.$ac_objext'
3227 { (eval echo "$as_me:3227: \"$ac_try\"") >&5
3230 echo "$as_me:3230: \$? = $ac_status" >&5
3231 (exit $ac_status); }; }; then
3232 cf_cv_xopen_source
=no
3234 echo "$as_me: failed program was:" >&5
3235 cat conftest.
$ac_ext >&5
3237 CPPFLAGS
="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3238 cat >conftest.
$ac_ext <<_ACEOF
3239 #line 3239 "configure"
3240 #include "confdefs.h"
3244 #include <sys/types.h>
3250 #ifdef _XOPEN_SOURCE
3257 rm -f conftest.
$ac_objext
3258 if { (eval echo "$as_me:3258: \"$ac_compile\"") >&5
3259 (eval $ac_compile) 2>&5
3261 echo "$as_me:3261: \$? = $ac_status" >&5
3262 (exit $ac_status); } &&
3263 { ac_try
='test -s conftest.$ac_objext'
3264 { (eval echo "$as_me:3264: \"$ac_try\"") >&5
3267 echo "$as_me:3267: \$? = $ac_status" >&5
3268 (exit $ac_status); }; }; then
3269 cf_cv_xopen_source
=no
3271 echo "$as_me: failed program was:" >&5
3272 cat conftest.
$ac_ext >&5
3273 cf_cv_xopen_source
=$cf_XOPEN_SOURCE
3275 rm -f conftest.
$ac_objext conftest.
$ac_ext
3279 rm -f conftest.
$ac_objext conftest.
$ac_ext
3282 echo "$as_me:3282: result: $cf_cv_xopen_source" >&5
3283 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3285 if test "$cf_cv_xopen_source" != no
; then
3287 CFLAGS
=`echo "$CFLAGS" | \
3288 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3289 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3291 CPPFLAGS
=`echo "$CPPFLAGS" | \
3292 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3293 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3295 cf_temp_xopen_source
="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3300 cf_new_extra_cppflags
=
3302 for cf_add_cflags
in $cf_temp_xopen_source
3304 case $cf_fix_cppflags in
3306 case $cf_add_cflags in
3307 (-undef|
-nostdinc*|
-I*|
-D*|
-U*|
-E|
-P|
-C)
3308 case $cf_add_cflags in
3310 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3312 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3313 && test -z "${cf_tst_cflags}" \
3314 && cf_fix_cppflags
=yes
3316 if test $cf_fix_cppflags = yes ; then
3317 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
3319 elif test "${cf_tst_cflags}" = "\"'" ; then
3320 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
3329 case $cf_add_cflags in
3331 cf_tst_cppflags
=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3333 CPPFLAGS
=`echo "$CPPFLAGS" | \
3334 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3335 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3339 cf_new_cppflags
="$cf_new_cppflags $cf_add_cflags"
3344 cf_new_cflags
="$cf_new_cflags $cf_add_cflags"
3349 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
3351 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3353 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3354 && test -z "${cf_tst_cflags}" \
3355 && cf_fix_cppflags
=no
3360 if test -n "$cf_new_cflags" ; then
3362 CFLAGS
="$CFLAGS $cf_new_cflags"
3365 if test -n "$cf_new_cppflags" ; then
3367 CPPFLAGS
="$CPPFLAGS $cf_new_cppflags"
3370 if test -n "$cf_new_extra_cppflags" ; then
3372 EXTRA_CPPFLAGS
="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3377 cf_POSIX_C_SOURCE
=$cf_POSIX_C_SOURCE
3379 cf_save_CFLAGS
="$CFLAGS"
3380 cf_save_CPPFLAGS
="$CPPFLAGS"
3382 cf_trim_CFLAGS
=`echo "$cf_save_CFLAGS" | \
3383 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3384 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3386 cf_trim_CPPFLAGS
=`echo "$cf_save_CPPFLAGS" | \
3387 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3388 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3390 echo "$as_me:3390: checking if we should define _POSIX_C_SOURCE" >&5
3391 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3392 if test "${cf_cv_posix_c_source+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3396 echo "${as_me:-configure}:3396: testing if the symbol is already defined go no further ..." 1>&5
3398 cat >conftest.
$ac_ext <<_ACEOF
3399 #line 3399 "configure"
3400 #include "confdefs.h"
3401 #include <sys/types.h>
3406 #ifndef _POSIX_C_SOURCE
3413 rm -f conftest.
$ac_objext
3414 if { (eval echo "$as_me:3414: \"$ac_compile\"") >&5
3415 (eval $ac_compile) 2>&5
3417 echo "$as_me:3417: \$? = $ac_status" >&5
3418 (exit $ac_status); } &&
3419 { ac_try
='test -s conftest.$ac_objext'
3420 { (eval echo "$as_me:3420: \"$ac_try\"") >&5
3423 echo "$as_me:3423: \$? = $ac_status" >&5
3424 (exit $ac_status); }; }; then
3425 cf_cv_posix_c_source
=no
3427 echo "$as_me: failed program was:" >&5
3428 cat conftest.
$ac_ext >&5
3429 cf_want_posix_source
=no
3430 case .
$cf_POSIX_C_SOURCE in
3432 cf_cv_posix_c_source
="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3435 cf_cv_posix_c_source
="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3436 cf_want_posix_source
=yes
3439 cf_want_posix_source
=yes
3442 if test "$cf_want_posix_source" = yes ; then
3443 cat >conftest.
$ac_ext <<_ACEOF
3444 #line 3444 "configure"
3445 #include "confdefs.h"
3446 #include <sys/types.h>
3451 #ifdef _POSIX_SOURCE
3458 rm -f conftest.
$ac_objext
3459 if { (eval echo "$as_me:3459: \"$ac_compile\"") >&5
3460 (eval $ac_compile) 2>&5
3462 echo "$as_me:3462: \$? = $ac_status" >&5
3463 (exit $ac_status); } &&
3464 { ac_try
='test -s conftest.$ac_objext'
3465 { (eval echo "$as_me:3465: \"$ac_try\"") >&5
3468 echo "$as_me:3468: \$? = $ac_status" >&5
3469 (exit $ac_status); }; }; then
3472 echo "$as_me: failed program was:" >&5
3473 cat conftest.
$ac_ext >&5
3474 cf_cv_posix_c_source
="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3476 rm -f conftest.
$ac_objext conftest.
$ac_ext
3479 echo "${as_me:-configure}:3479: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3481 CFLAGS
="$cf_trim_CFLAGS"
3482 CPPFLAGS
="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3484 echo "${as_me:-configure}:3484: testing if the second compile does not leave our definition intact error ..." 1>&5
3486 cat >conftest.
$ac_ext <<_ACEOF
3487 #line 3487 "configure"
3488 #include "confdefs.h"
3489 #include <sys/types.h>
3494 #ifndef _POSIX_C_SOURCE
3501 rm -f conftest.
$ac_objext
3502 if { (eval echo "$as_me:3502: \"$ac_compile\"") >&5
3503 (eval $ac_compile) 2>&5
3505 echo "$as_me:3505: \$? = $ac_status" >&5
3506 (exit $ac_status); } &&
3507 { ac_try
='test -s conftest.$ac_objext'
3508 { (eval echo "$as_me:3508: \"$ac_try\"") >&5
3511 echo "$as_me:3511: \$? = $ac_status" >&5
3512 (exit $ac_status); }; }; then
3515 echo "$as_me: failed program was:" >&5
3516 cat conftest.
$ac_ext >&5
3517 cf_cv_posix_c_source
=no
3519 rm -f conftest.
$ac_objext conftest.
$ac_ext
3520 CFLAGS
="$cf_save_CFLAGS"
3521 CPPFLAGS
="$cf_save_CPPFLAGS"
3524 rm -f conftest.
$ac_objext conftest.
$ac_ext
3527 echo "$as_me:3527: result: $cf_cv_posix_c_source" >&5
3528 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3530 if test "$cf_cv_posix_c_source" != no
; then
3531 CFLAGS
="$cf_trim_CFLAGS"
3532 CPPFLAGS
="$cf_trim_CPPFLAGS"
3537 cf_new_extra_cppflags
=
3539 for cf_add_cflags
in $cf_cv_posix_c_source
3541 case $cf_fix_cppflags in
3543 case $cf_add_cflags in
3544 (-undef|
-nostdinc*|
-I*|
-D*|
-U*|
-E|
-P|
-C)
3545 case $cf_add_cflags in
3547 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3549 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3550 && test -z "${cf_tst_cflags}" \
3551 && cf_fix_cppflags
=yes
3553 if test $cf_fix_cppflags = yes ; then
3554 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
3556 elif test "${cf_tst_cflags}" = "\"'" ; then
3557 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
3566 case $cf_add_cflags in
3568 cf_tst_cppflags
=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3570 CPPFLAGS
=`echo "$CPPFLAGS" | \
3571 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3572 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3576 cf_new_cppflags
="$cf_new_cppflags $cf_add_cflags"
3581 cf_new_cflags
="$cf_new_cflags $cf_add_cflags"
3586 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
3588 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3590 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3591 && test -z "${cf_tst_cflags}" \
3592 && cf_fix_cppflags
=no
3597 if test -n "$cf_new_cflags" ; then
3599 CFLAGS
="$CFLAGS $cf_new_cflags"
3602 if test -n "$cf_new_cppflags" ; then
3604 CPPFLAGS
="$CPPFLAGS $cf_new_cppflags"
3607 if test -n "$cf_new_extra_cppflags" ; then
3609 EXTRA_CPPFLAGS
="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3617 if test -n "$cf_xopen_source" ; then
3622 cf_new_extra_cppflags
=
3624 for cf_add_cflags
in $cf_xopen_source
3626 case $cf_fix_cppflags in
3628 case $cf_add_cflags in
3629 (-undef|
-nostdinc*|
-I*|
-D*|
-U*|
-E|
-P|
-C)
3630 case $cf_add_cflags in
3632 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3634 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3635 && test -z "${cf_tst_cflags}" \
3636 && cf_fix_cppflags
=yes
3638 if test $cf_fix_cppflags = yes ; then
3639 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
3641 elif test "${cf_tst_cflags}" = "\"'" ; then
3642 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
3651 case $cf_add_cflags in
3653 cf_tst_cppflags
=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3655 CPPFLAGS
=`echo "$CPPFLAGS" | \
3656 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3657 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3661 cf_new_cppflags
="$cf_new_cppflags $cf_add_cflags"
3666 cf_new_cflags
="$cf_new_cflags $cf_add_cflags"
3671 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
3673 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3675 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3676 && test -z "${cf_tst_cflags}" \
3677 && cf_fix_cppflags
=no
3682 if test -n "$cf_new_cflags" ; then
3683 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
3685 echo "${as_me:-configure}:3685: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
3687 CFLAGS
="$CFLAGS $cf_new_cflags"
3690 if test -n "$cf_new_cppflags" ; then
3691 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
3693 echo "${as_me:-configure}:3693: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
3695 CPPFLAGS
="$CPPFLAGS $cf_new_cppflags"
3698 if test -n "$cf_new_extra_cppflags" ; then
3699 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
3701 echo "${as_me:-configure}:3701: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
3703 EXTRA_CPPFLAGS
="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3708 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
3709 echo "$as_me:3709: checking if _XOPEN_SOURCE really is set" >&5
3710 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
3711 cat >conftest.
$ac_ext <<_ACEOF
3712 #line 3712 "configure"
3713 #include "confdefs.h"
3719 #ifndef _XOPEN_SOURCE
3726 rm -f conftest.
$ac_objext
3727 if { (eval echo "$as_me:3727: \"$ac_compile\"") >&5
3728 (eval $ac_compile) 2>&5
3730 echo "$as_me:3730: \$? = $ac_status" >&5
3731 (exit $ac_status); } &&
3732 { ac_try
='test -s conftest.$ac_objext'
3733 { (eval echo "$as_me:3733: \"$ac_try\"") >&5
3736 echo "$as_me:3736: \$? = $ac_status" >&5
3737 (exit $ac_status); }; }; then
3738 cf_XOPEN_SOURCE_set
=yes
3740 echo "$as_me: failed program was:" >&5
3741 cat conftest.
$ac_ext >&5
3742 cf_XOPEN_SOURCE_set
=no
3744 rm -f conftest.
$ac_objext conftest.
$ac_ext
3745 echo "$as_me:3745: result: $cf_XOPEN_SOURCE_set" >&5
3746 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
3747 if test $cf_XOPEN_SOURCE_set = yes
3749 cat >conftest.
$ac_ext <<_ACEOF
3750 #line 3750 "configure"
3751 #include "confdefs.h"
3757 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
3764 rm -f conftest.
$ac_objext
3765 if { (eval echo "$as_me:3765: \"$ac_compile\"") >&5
3766 (eval $ac_compile) 2>&5
3768 echo "$as_me:3768: \$? = $ac_status" >&5
3769 (exit $ac_status); } &&
3770 { ac_try
='test -s conftest.$ac_objext'
3771 { (eval echo "$as_me:3771: \"$ac_try\"") >&5
3774 echo "$as_me:3774: \$? = $ac_status" >&5
3775 (exit $ac_status); }; }; then
3776 cf_XOPEN_SOURCE_set_ok
=yes
3778 echo "$as_me: failed program was:" >&5
3779 cat conftest.
$ac_ext >&5
3780 cf_XOPEN_SOURCE_set_ok
=no
3782 rm -f conftest.
$ac_objext conftest.
$ac_ext
3783 if test $cf_XOPEN_SOURCE_set_ok = no
3785 { echo "$as_me:3785: WARNING: _XOPEN_SOURCE is lower than requested" >&5
3786 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
3790 echo "$as_me:3790: checking if we should define _XOPEN_SOURCE" >&5
3791 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3792 if test "${cf_cv_xopen_source+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3796 cat >conftest.
$ac_ext <<_ACEOF
3797 #line 3797 "configure"
3798 #include "confdefs.h"
3802 #include <sys/types.h>
3808 #ifndef _XOPEN_SOURCE
3815 rm -f conftest.
$ac_objext
3816 if { (eval echo "$as_me:3816: \"$ac_compile\"") >&5
3817 (eval $ac_compile) 2>&5
3819 echo "$as_me:3819: \$? = $ac_status" >&5
3820 (exit $ac_status); } &&
3821 { ac_try
='test -s conftest.$ac_objext'
3822 { (eval echo "$as_me:3822: \"$ac_try\"") >&5
3825 echo "$as_me:3825: \$? = $ac_status" >&5
3826 (exit $ac_status); }; }; then
3827 cf_cv_xopen_source
=no
3829 echo "$as_me: failed program was:" >&5
3830 cat conftest.
$ac_ext >&5
3832 CPPFLAGS
="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3833 cat >conftest.
$ac_ext <<_ACEOF
3834 #line 3834 "configure"
3835 #include "confdefs.h"
3839 #include <sys/types.h>
3845 #ifdef _XOPEN_SOURCE
3852 rm -f conftest.
$ac_objext
3853 if { (eval echo "$as_me:3853: \"$ac_compile\"") >&5
3854 (eval $ac_compile) 2>&5
3856 echo "$as_me:3856: \$? = $ac_status" >&5
3857 (exit $ac_status); } &&
3858 { ac_try
='test -s conftest.$ac_objext'
3859 { (eval echo "$as_me:3859: \"$ac_try\"") >&5
3862 echo "$as_me:3862: \$? = $ac_status" >&5
3863 (exit $ac_status); }; }; then
3864 cf_cv_xopen_source
=no
3866 echo "$as_me: failed program was:" >&5
3867 cat conftest.
$ac_ext >&5
3868 cf_cv_xopen_source
=$cf_XOPEN_SOURCE
3870 rm -f conftest.
$ac_objext conftest.
$ac_ext
3874 rm -f conftest.
$ac_objext conftest.
$ac_ext
3877 echo "$as_me:3877: result: $cf_cv_xopen_source" >&5
3878 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3880 if test "$cf_cv_xopen_source" != no
; then
3882 CFLAGS
=`echo "$CFLAGS" | \
3883 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3884 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3886 CPPFLAGS
=`echo "$CPPFLAGS" | \
3887 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3888 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3890 cf_temp_xopen_source
="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3895 cf_new_extra_cppflags
=
3897 for cf_add_cflags
in $cf_temp_xopen_source
3899 case $cf_fix_cppflags in
3901 case $cf_add_cflags in
3902 (-undef|
-nostdinc*|
-I*|
-D*|
-U*|
-E|
-P|
-C)
3903 case $cf_add_cflags in
3905 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3907 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3908 && test -z "${cf_tst_cflags}" \
3909 && cf_fix_cppflags
=yes
3911 if test $cf_fix_cppflags = yes ; then
3912 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
3914 elif test "${cf_tst_cflags}" = "\"'" ; then
3915 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
3924 case $cf_add_cflags in
3926 cf_tst_cppflags
=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3928 CPPFLAGS
=`echo "$CPPFLAGS" | \
3929 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3930 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3934 cf_new_cppflags
="$cf_new_cppflags $cf_add_cflags"
3939 cf_new_cflags
="$cf_new_cflags $cf_add_cflags"
3944 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
3946 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3948 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3949 && test -z "${cf_tst_cflags}" \
3950 && cf_fix_cppflags
=no
3955 if test -n "$cf_new_cflags" ; then
3957 CFLAGS
="$CFLAGS $cf_new_cflags"
3960 if test -n "$cf_new_cppflags" ; then
3962 CPPFLAGS
="$CPPFLAGS $cf_new_cppflags"
3965 if test -n "$cf_new_extra_cppflags" ; then
3967 EXTRA_CPPFLAGS
="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3975 echo "$as_me:3975: checking for signal global datatype" >&5
3976 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
3977 if test "${cf_cv_sig_atomic_t+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3982 "volatile sig_atomic_t" \
3986 cat >conftest.
$ac_ext <<_ACEOF
3987 #line 3987 "configure"
3988 #include "confdefs.h"
3990 #include <sys/types.h>
3996 static void handler(int sig)
4003 signal(SIGINT, handler);
4009 rm -f conftest.
$ac_objext
4010 if { (eval echo "$as_me:4010: \"$ac_compile\"") >&5
4011 (eval $ac_compile) 2>&5
4013 echo "$as_me:4013: \$? = $ac_status" >&5
4014 (exit $ac_status); } &&
4015 { ac_try
='test -s conftest.$ac_objext'
4016 { (eval echo "$as_me:4016: \"$ac_try\"") >&5
4019 echo "$as_me:4019: \$? = $ac_status" >&5
4020 (exit $ac_status); }; }; then
4021 cf_cv_sig_atomic_t
=$cf_type
4023 echo "$as_me: failed program was:" >&5
4024 cat conftest.
$ac_ext >&5
4025 cf_cv_sig_atomic_t
=no
4027 rm -f conftest.
$ac_objext conftest.
$ac_ext
4028 test "$cf_cv_sig_atomic_t" != no
&& break
4033 echo "$as_me:4033: result: $cf_cv_sig_atomic_t" >&5
4034 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
4035 test "$cf_cv_sig_atomic_t" != no
&&
4036 cat >>confdefs.h
<<EOF
4037 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
4040 echo "$as_me:4040: checking if you want to use pkg-config" >&5
4041 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
4043 # Check whether --with-pkg-config or --without-pkg-config was given.
4044 if test "${with_pkg_config+set}" = set; then
4045 withval
="$with_pkg_config"
4046 cf_pkg_config
=$withval
4050 echo "$as_me:4050: result: $cf_pkg_config" >&5
4051 echo "${ECHO_T}$cf_pkg_config" >&6
4053 case $cf_pkg_config in
4059 if test -n "$ac_tool_prefix"; then
4060 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4061 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
4062 echo "$as_me:4062: checking for $ac_word" >&5
4063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4064 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4069 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
4072 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
4074 for ac_dir
in $ac_dummy; do
4076 test -z "$ac_dir" && ac_dir
=.
4077 if $as_executable_p "$ac_dir/$ac_word"; then
4078 ac_cv_path_PKG_CONFIG
="$ac_dir/$ac_word"
4079 echo "$as_me:4079: found $ac_dir/$ac_word" >&5
4087 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
4089 if test -n "$PKG_CONFIG"; then
4090 echo "$as_me:4090: result: $PKG_CONFIG" >&5
4091 echo "${ECHO_T}$PKG_CONFIG" >&6
4093 echo "$as_me:4093: result: no" >&5
4094 echo "${ECHO_T}no" >&6
4098 if test -z "$ac_cv_path_PKG_CONFIG"; then
4099 ac_pt_PKG_CONFIG
=$PKG_CONFIG
4100 # Extract the first word of "pkg-config", so it can be a program name with args.
4101 set dummy pkg-config
; ac_word
=$2
4102 echo "$as_me:4102: checking for $ac_word" >&5
4103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4104 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4107 case $ac_pt_PKG_CONFIG in
4109 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4112 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
4114 for ac_dir
in $ac_dummy; do
4116 test -z "$ac_dir" && ac_dir
=.
4117 if $as_executable_p "$ac_dir/$ac_word"; then
4118 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_dir/$ac_word"
4119 echo "$as_me:4119: found $ac_dir/$ac_word" >&5
4124 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG
="none"
4128 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
4130 if test -n "$ac_pt_PKG_CONFIG"; then
4131 echo "$as_me:4131: result: $ac_pt_PKG_CONFIG" >&5
4132 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4134 echo "$as_me:4134: result: no" >&5
4135 echo "${ECHO_T}no" >&6
4138 PKG_CONFIG
=$ac_pt_PKG_CONFIG
4140 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
4149 test -z "$PKG_CONFIG" && PKG_CONFIG
=none
4150 if test "$PKG_CONFIG" != none
; then
4152 if test "x$prefix" != xNONE
; then
4153 cf_path_syntax
="$prefix"
4155 cf_path_syntax
="$ac_default_prefix"
4158 case ".$PKG_CONFIG" in
4163 (.
[a-zA-Z
]:[\\/]*) # OS/2 EMX
4165 (.\
${*prefix}*|.\
${*dir}*)
4166 eval PKG_CONFIG
="$PKG_CONFIG"
4167 case ".$PKG_CONFIG" in
4169 PKG_CONFIG
=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
4174 PKG_CONFIG
=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
4177 { { echo "$as_me:4177: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
4178 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
4179 { (exit 1); exit 1; }; }
4183 elif test "x$cf_pkg_config" != xno
; then
4184 { echo "$as_me:4184: WARNING: pkg-config is not installed" >&5
4185 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
4188 echo "$as_me:4188: checking if you want to see long compiling messages" >&5
4189 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
4191 # Check whether --enable-echo or --disable-echo was given.
4192 if test "${enable_echo+set}" = set; then
4193 enableval
="$enable_echo"
4194 test "$enableval" != no
&& enableval
=yes
4195 if test "$enableval" != "yes" ; then
4198 ECHO_LD
='@echo linking $@;'
4199 RULE_CC
='@echo compiling $<'
4200 SHOW_CC
='@echo compiling $@'
4222 echo "$as_me:4222: result: $enableval" >&5
4223 echo "${ECHO_T}$enableval" >&6
4225 echo "$as_me:4225: checking for ncurses wrap-prefix" >&5
4226 echo $ECHO_N "checking for ncurses wrap-prefix... $ECHO_C" >&6
4228 # Check whether --with-ncurses-wrap-prefix or --without-ncurses-wrap-prefix was given.
4229 if test "${with_ncurses_wrap_prefix+set}" = set; then
4230 withval
="$with_ncurses_wrap_prefix"
4231 NCURSES_WRAP_PREFIX
=$withval
4233 NCURSES_WRAP_PREFIX
=_nc_
4235 echo "$as_me:4235: result: $NCURSES_WRAP_PREFIX" >&5
4236 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
4238 echo "$as_me:4238: checking if you want to check for wide-character functions" >&5
4239 echo $ECHO_N "checking if you want to check for wide-character functions... $ECHO_C" >&6
4241 # Check whether --enable-widec or --disable-widec was given.
4242 if test "${enable_widec+set}" = set; then
4243 enableval
="$enable_widec"
4244 test "$enableval" != no
&& enableval
=yes
4245 if test "$enableval" != "yes" ; then
4255 echo "$as_me:4255: result: $cf_enable_widec" >&5
4256 echo "${ECHO_T}$cf_enable_widec" >&6
4258 echo "$as_me:4258: checking for specific curses-directory" >&5
4259 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
4261 # Check whether --with-curses-dir or --without-curses-dir was given.
4262 if test "${with_curses_dir+set}" = set; then
4263 withval
="$with_curses_dir"
4264 cf_cv_curses_dir
=$withval
4268 echo "$as_me:4268: result: $cf_cv_curses_dir" >&5
4269 echo "${ECHO_T}$cf_cv_curses_dir" >&6
4271 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
4274 if test "x$prefix" != xNONE
; then
4275 cf_path_syntax
="$prefix"
4277 cf_path_syntax
="$ac_default_prefix"
4285 (.
[a-zA-Z
]:[\\/]*) # OS/2 EMX
4287 (.\
${*prefix}*|.\
${*dir}*)
4288 eval withval
="$withval"
4291 withval
=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4296 withval
=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4299 { { echo "$as_me:4299: error: expected a pathname, not \"$withval\"" >&5
4300 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
4301 { (exit 1); exit 1; }; }
4305 if test -d "$cf_cv_curses_dir"
4308 if test -n "$cf_cv_curses_dir/include" ; then
4309 for cf_add_incdir
in $cf_cv_curses_dir/include
4311 while test $cf_add_incdir != /usr
/include
4313 if test -d $cf_add_incdir
4316 if test -n "$CFLAGS$CPPFLAGS" ; then
4317 # a loop is needed to ensure we can add subdirs of existing dirs
4318 for cf_test_incdir
in $CFLAGS $CPPFLAGS ; do
4319 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4320 cf_have_incdir
=yes; break
4325 if test "$cf_have_incdir" = no
; then
4326 if test "$cf_add_incdir" = /usr
/local
/include
; then
4327 if test "$GCC" = yes
4329 cf_save_CPPFLAGS
=$CPPFLAGS
4330 CPPFLAGS
="$CPPFLAGS -I$cf_add_incdir"
4331 cat >conftest.
$ac_ext <<_ACEOF
4332 #line 4332 "configure"
4333 #include "confdefs.h"
4343 rm -f conftest.
$ac_objext
4344 if { (eval echo "$as_me:4344: \"$ac_compile\"") >&5
4345 (eval $ac_compile) 2>&5
4347 echo "$as_me:4347: \$? = $ac_status" >&5
4348 (exit $ac_status); } &&
4349 { ac_try
='test -s conftest.$ac_objext'
4350 { (eval echo "$as_me:4350: \"$ac_try\"") >&5
4353 echo "$as_me:4353: \$? = $ac_status" >&5
4354 (exit $ac_status); }; }; then
4357 echo "$as_me: failed program was:" >&5
4358 cat conftest.
$ac_ext >&5
4361 rm -f conftest.
$ac_objext conftest.
$ac_ext
4362 CPPFLAGS
=$cf_save_CPPFLAGS
4367 if test "$cf_have_incdir" = no
; then
4368 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4370 echo "${as_me:-configure}:4370: testing adding $cf_add_incdir to include-path ..." 1>&5
4372 CPPFLAGS
="$CPPFLAGS -I$cf_add_incdir"
4374 cf_top_incdir
=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4375 test "$cf_top_incdir" = "$cf_add_incdir" && break
4376 cf_add_incdir
="$cf_top_incdir"
4387 if test -n "$cf_cv_curses_dir/lib" ; then
4388 for cf_add_libdir
in $cf_cv_curses_dir/lib
4390 if test $cf_add_libdir = /usr
/lib
; then
4392 elif test -d $cf_add_libdir
4395 if test -n "$LDFLAGS$LIBS" ; then
4396 # a loop is needed to ensure we can add subdirs of existing dirs
4397 for cf_test_libdir
in $LDFLAGS $LIBS ; do
4398 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
4399 cf_have_libdir
=yes; break
4403 if test "$cf_have_libdir" = no
; then
4404 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
4406 echo "${as_me:-configure}:4406: testing adding $cf_add_libdir to library-path ..." 1>&5
4408 LDFLAGS
="-L$cf_add_libdir $LDFLAGS"
4419 echo "$as_me:4419: checking for specified curses library type" >&5
4420 echo $ECHO_N "checking for specified curses library type... $ECHO_C" >&6
4422 # Check whether --with-screen or --without-screen was given.
4423 if test "${with_screen+set}" = set; then
4424 withval
="$with_screen"
4425 cf_cv_screen
=$withval
4428 # Check whether --with-ncursesw or --without-ncursesw was given.
4429 if test "${with_ncursesw+set}" = set; then
4430 withval
="$with_ncursesw"
4431 cf_cv_screen
=ncursesw
4434 # Check whether --with-ncurses or --without-ncurses was given.
4435 if test "${with_ncurses+set}" = set; then
4436 withval
="$with_ncurses"
4437 cf_cv_screen
=ncurses
4440 # Check whether --with-pdcurses or --without-pdcurses was given.
4441 if test "${with_pdcurses+set}" = set; then
4442 withval
="$with_pdcurses"
4443 cf_cv_screen
=pdcurses
4446 # Check whether --with-curses-colr or --without-curses-colr was given.
4447 if test "${with_curses_colr+set}" = set; then
4448 withval
="$with_curses_colr"
4449 cf_cv_screen
=curses_colr
4452 # Check whether --with-curses-5lib or --without-curses-5lib was given.
4453 if test "${with_curses_5lib+set}" = set; then
4454 withval
="$with_curses_5lib"
4455 cf_cv_screen
=curses_5lib
4463 echo "$as_me:4463: result: $cf_cv_screen" >&5
4464 echo "${ECHO_T}$cf_cv_screen" >&6
4466 case $cf_cv_screen in
4469 echo "$as_me:4469: checking for extra include directories" >&5
4470 echo $ECHO_N "checking for extra include directories... $ECHO_C" >&6
4471 if test "${cf_cv_curses_incdir+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 cf_cv_curses_incdir
=no
4478 if test "x$cf_cv_screen" = "xcurses_colr"
4480 test -d /usr
/include
/curses_colr
&& \
4481 cf_cv_curses_incdir
="-I/usr/include/curses_colr"
4485 if test "x$cf_cv_screen" = "xcurses_5lib"
4487 test -d /usr
/5lib
&& \
4488 test -d /usr
/5include
&& \
4489 cf_cv_curses_incdir
="-I/usr/5include"
4495 echo "$as_me:4495: result: $cf_cv_curses_incdir" >&5
4496 echo "${ECHO_T}$cf_cv_curses_incdir" >&6
4497 test "$cf_cv_curses_incdir" != no
&& CPPFLAGS
="$CPPFLAGS $cf_cv_curses_incdir"
4499 echo "$as_me:4499: checking if we have identified curses headers" >&5
4500 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
4501 if test "${cf_cv_ncurses_header+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4505 cf_cv_ncurses_header
=none
4508 curses.h ncurses
/ncurses.h ncurses
/curses.h
4510 cat >conftest.
$ac_ext <<_ACEOF
4511 #line 4511 "configure"
4512 #include "confdefs.h"
4513 #include <${cf_header}>
4517 initscr(); tgoto("?", 0,0)
4522 rm -f conftest.
$ac_objext
4523 if { (eval echo "$as_me:4523: \"$ac_compile\"") >&5
4524 (eval $ac_compile) 2>&5
4526 echo "$as_me:4526: \$? = $ac_status" >&5
4527 (exit $ac_status); } &&
4528 { ac_try
='test -s conftest.$ac_objext'
4529 { (eval echo "$as_me:4529: \"$ac_try\"") >&5
4532 echo "$as_me:4532: \$? = $ac_status" >&5
4533 (exit $ac_status); }; }; then
4534 cf_cv_ncurses_header
=$cf_header; break
4536 echo "$as_me: failed program was:" >&5
4537 cat conftest.
$ac_ext >&5
4539 rm -f conftest.
$ac_objext conftest.
$ac_ext
4543 echo "$as_me:4543: result: $cf_cv_ncurses_header" >&5
4544 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
4546 if test "$cf_cv_ncurses_header" = none
; then
4547 { { echo "$as_me:4547: error: No curses header-files found" >&5
4548 echo "$as_me: error: No curses header-files found" >&2;}
4549 { (exit 1); exit 1; }; }
4552 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
4554 for ac_header
in $cf_cv_ncurses_header
4556 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4557 echo "$as_me:4557: checking for $ac_header" >&5
4558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 cat >conftest.
$ac_ext <<_ACEOF
4563 #line 4563 "configure"
4564 #include "confdefs.h"
4565 #include <$ac_header>
4567 if { (eval echo "$as_me:4567: \"$ac_cpp conftest.$ac_ext\"") >&5
4568 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4570 egrep -v '^ *\+' conftest.er1
>conftest.err
4572 cat conftest.err
>&5
4573 echo "$as_me:4573: \$? = $ac_status" >&5
4574 (exit $ac_status); } >/dev
/null
; then
4575 if test -s conftest.err
; then
4576 ac_cpp_err
=$ac_c_preproc_warn_flag
4583 if test -z "$ac_cpp_err"; then
4584 eval "$as_ac_Header=yes"
4586 echo "$as_me: failed program was:" >&5
4587 cat conftest.
$ac_ext >&5
4588 eval "$as_ac_Header=no"
4590 rm -f conftest.err conftest.
$ac_ext
4592 echo "$as_me:4592: result: `eval echo '${'$as_ac_Header'}'`" >&5
4593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4595 cat >>confdefs.h
<<EOF
4596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4602 echo "$as_me:4602: checking for terminfo header" >&5
4603 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
4604 if test "${cf_cv_term_header+set}" = set; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4608 case ${cf_cv_ncurses_header} in
4609 (*/ncurses.h|
*/ncursesw.h
)
4610 cf_term_header
=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
4613 cf_term_header
=term.h
4617 for cf_test
in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
4619 cat >conftest.
$ac_ext <<_ACEOF
4620 #line 4620 "configure"
4621 #include "confdefs.h"
4623 #include <${cf_cv_ncurses_header:-curses.h}>
4629 int x = auto_left_margin
4634 rm -f conftest.
$ac_objext
4635 if { (eval echo "$as_me:4635: \"$ac_compile\"") >&5
4636 (eval $ac_compile) 2>&5
4638 echo "$as_me:4638: \$? = $ac_status" >&5
4639 (exit $ac_status); } &&
4640 { ac_try
='test -s conftest.$ac_objext'
4641 { (eval echo "$as_me:4641: \"$ac_try\"") >&5
4644 echo "$as_me:4644: \$? = $ac_status" >&5
4645 (exit $ac_status); }; }; then
4647 cf_cv_term_header
="$cf_test"
4649 echo "$as_me: failed program was:" >&5
4650 cat conftest.
$ac_ext >&5
4652 cf_cv_term_header
=unknown
4655 rm -f conftest.
$ac_objext conftest.
$ac_ext
4656 test "$cf_cv_term_header" != unknown
&& break
4660 echo "$as_me:4660: result: $cf_cv_term_header" >&5
4661 echo "${ECHO_T}$cf_cv_term_header" >&6
4663 # Set definitions to allow ifdef'ing to accommodate subdirectories
4665 case $cf_cv_term_header in
4668 cat >>confdefs.h
<<\EOF
4669 #define HAVE_TERM_H 1
4675 case $cf_cv_term_header in
4678 cat >>confdefs.h
<<\EOF
4679 #define HAVE_NCURSES_TERM_H 1
4685 cat >>confdefs.h
<<\EOF
4686 #define HAVE_NCURSESW_TERM_H 1
4692 echo "$as_me:4692: checking for ncurses version" >&5
4693 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
4694 if test "${cf_cv_ncurses_version+set}" = set; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4698 cf_cv_ncurses_version
=no
4701 if test "$cross_compiling" = yes; then
4703 # This will not work if the preprocessor splits the line after the
4704 # Autoconf token. The 'unproto' program does that.
4705 cat > conftest.
$ac_ext <<EOF
4706 #include <${cf_cv_ncurses_header:-curses.h}>
4708 #ifdef NCURSES_VERSION
4709 Autoconf NCURSES_VERSION
4717 cf_try
="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
4718 { (eval echo "$as_me:4718: \"$cf_try\"") >&5
4721 echo "$as_me:4721: \$? = $ac_status" >&5
4722 (exit $ac_status); }
4723 if test -f conftest.out
; then
4724 cf_out
=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
4725 test -n "$cf_out" && cf_cv_ncurses_version
="$cf_out"
4730 cat >conftest.
$ac_ext <<_ACEOF
4731 #line 4731 "configure"
4732 #include "confdefs.h"
4734 #include <${cf_cv_ncurses_header:-curses.h}>
4738 FILE *fp = fopen("$cf_tempfile", "w");
4739 #ifdef NCURSES_VERSION
4740 # ifdef NCURSES_VERSION_PATCH
4741 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
4743 fprintf(fp, "%s\n", NCURSES_VERSION);
4747 fprintf(fp, "old\n");
4752 ${cf_cv_main_return:-return}(0);
4755 rm -f conftest
$ac_exeext
4756 if { (eval echo "$as_me:4756: \"$ac_link\"") >&5
4757 (eval $ac_link) 2>&5
4759 echo "$as_me:4759: \$? = $ac_status" >&5
4760 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4761 { (eval echo "$as_me:4761: \"$ac_try\"") >&5
4764 echo "$as_me:4764: \$? = $ac_status" >&5
4765 (exit $ac_status); }; }; then
4767 cf_cv_ncurses_version
=`cat $cf_tempfile`
4769 echo "$as_me: program exited with status $ac_status" >&5
4770 echo "$as_me: failed program was:" >&5
4771 cat conftest.
$ac_ext >&5
4773 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4778 echo "$as_me:4778: result: $cf_cv_ncurses_version" >&5
4779 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
4780 test "$cf_cv_ncurses_version" = no ||
4781 cat >>confdefs.h
<<\EOF
4785 echo "$as_me:4785: checking if we have identified curses libraries" >&5
4786 echo $ECHO_N "checking if we have identified curses libraries... $ECHO_C" >&6
4787 cat >conftest.
$ac_ext <<_ACEOF
4788 #line 4788 "configure"
4789 #include "confdefs.h"
4790 #include <${cf_cv_ncurses_header:-curses.h}>
4794 initscr(); tgoto("?", 0,0)
4799 rm -f conftest.
$ac_objext conftest
$ac_exeext
4800 if { (eval echo "$as_me:4800: \"$ac_link\"") >&5
4801 (eval $ac_link) 2>&5
4803 echo "$as_me:4803: \$? = $ac_status" >&5
4804 (exit $ac_status); } &&
4805 { ac_try
='test -s conftest$ac_exeext'
4806 { (eval echo "$as_me:4806: \"$ac_try\"") >&5
4809 echo "$as_me:4809: \$? = $ac_status" >&5
4810 (exit $ac_status); }; }; then
4813 echo "$as_me: failed program was:" >&5
4814 cat conftest.
$ac_ext >&5
4817 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4818 echo "$as_me:4818: result: $cf_result" >&5
4819 echo "${ECHO_T}$cf_result" >&6
4821 if test "$cf_result" = no
; then
4824 echo "$as_me:4824: checking for tgoto in -lmytinfo" >&5
4825 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
4826 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
4827 echo $ECHO_N "(cached) $ECHO_C" >&6
4829 ac_check_lib_save_LIBS
=$LIBS
4830 LIBS
="-lmytinfo $LIBS"
4831 cat >conftest.
$ac_ext <<_ACEOF
4832 #line 4832 "configure"
4833 #include "confdefs.h"
4835 /* Override any gcc2 internal prototype to avoid an error. */
4839 /* We use char because int might match the return type of a gcc2
4840 builtin and then its argument prototype would still apply. */
4850 rm -f conftest.
$ac_objext conftest
$ac_exeext
4851 if { (eval echo "$as_me:4851: \"$ac_link\"") >&5
4852 (eval $ac_link) 2>&5
4854 echo "$as_me:4854: \$? = $ac_status" >&5
4855 (exit $ac_status); } &&
4856 { ac_try
='test -s conftest$ac_exeext'
4857 { (eval echo "$as_me:4857: \"$ac_try\"") >&5
4860 echo "$as_me:4860: \$? = $ac_status" >&5
4861 (exit $ac_status); }; }; then
4862 ac_cv_lib_mytinfo_tgoto
=yes
4864 echo "$as_me: failed program was:" >&5
4865 cat conftest.
$ac_ext >&5
4866 ac_cv_lib_mytinfo_tgoto
=no
4868 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4869 LIBS
=$ac_check_lib_save_LIBS
4871 echo "$as_me:4871: result: $ac_cv_lib_mytinfo_tgoto" >&5
4872 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
4873 if test $ac_cv_lib_mytinfo_tgoto = yes; then
4875 cf_add_libs
="-lmytinfo"
4876 # Filter out duplicates - this happens with badly-designed ".pc" files...
4877 for cf_add_1lib
in $LIBS
4879 for cf_add_2lib
in $cf_add_libs
4881 if test "x$cf_add_1lib" = "x$cf_add_2lib"
4887 test -n "$cf_add_1lib" && cf_add_libs
="$cf_add_libs $cf_add_1lib"
4895 # Looking at HPUX 10.20, the Hcurses library is the oldest (1997), cur_colr
4896 # next (1998), and xcurses "newer" (2000). There is no header file for
4897 # Hcurses; the subdirectory curses_colr has the headers (curses.h and
4898 # term.h) for cur_colr
4899 if test "x$cf_cv_screen" = "xcurses_colr"
4901 echo "$as_me:4901: checking for initscr in -lcur_colr" >&5
4902 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
4903 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4906 ac_check_lib_save_LIBS
=$LIBS
4907 LIBS
="-lcur_colr $LIBS"
4908 cat >conftest.
$ac_ext <<_ACEOF
4909 #line 4909 "configure"
4910 #include "confdefs.h"
4912 /* Override any gcc2 internal prototype to avoid an error. */
4916 /* We use char because int might match the return type of a gcc2
4917 builtin and then its argument prototype would still apply. */
4927 rm -f conftest.
$ac_objext conftest
$ac_exeext
4928 if { (eval echo "$as_me:4928: \"$ac_link\"") >&5
4929 (eval $ac_link) 2>&5
4931 echo "$as_me:4931: \$? = $ac_status" >&5
4932 (exit $ac_status); } &&
4933 { ac_try
='test -s conftest$ac_exeext'
4934 { (eval echo "$as_me:4934: \"$ac_try\"") >&5
4937 echo "$as_me:4937: \$? = $ac_status" >&5
4938 (exit $ac_status); }; }; then
4939 ac_cv_lib_cur_colr_initscr
=yes
4941 echo "$as_me: failed program was:" >&5
4942 cat conftest.
$ac_ext >&5
4943 ac_cv_lib_cur_colr_initscr
=no
4945 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4946 LIBS
=$ac_check_lib_save_LIBS
4948 echo "$as_me:4948: result: $ac_cv_lib_cur_colr_initscr" >&5
4949 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
4950 if test $ac_cv_lib_cur_colr_initscr = yes; then
4952 cf_add_libs
="-lcur_colr"
4953 # Filter out duplicates - this happens with badly-designed ".pc" files...
4954 for cf_add_1lib
in $LIBS
4956 for cf_add_2lib
in $cf_add_libs
4958 if test "x$cf_add_1lib" = "x$cf_add_2lib"
4964 test -n "$cf_add_1lib" && cf_add_libs
="$cf_add_libs $cf_add_1lib"
4968 ac_cv_func_initscr
=yes
4972 echo "$as_me:4972: checking for initscr in -lHcurses" >&5
4973 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
4974 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
4975 echo $ECHO_N "(cached) $ECHO_C" >&6
4977 ac_check_lib_save_LIBS
=$LIBS
4978 LIBS
="-lHcurses $LIBS"
4979 cat >conftest.
$ac_ext <<_ACEOF
4980 #line 4980 "configure"
4981 #include "confdefs.h"
4983 /* Override any gcc2 internal prototype to avoid an error. */
4987 /* We use char because int might match the return type of a gcc2
4988 builtin and then its argument prototype would still apply. */
4998 rm -f conftest.
$ac_objext conftest
$ac_exeext
4999 if { (eval echo "$as_me:4999: \"$ac_link\"") >&5
5000 (eval $ac_link) 2>&5
5002 echo "$as_me:5002: \$? = $ac_status" >&5
5003 (exit $ac_status); } &&
5004 { ac_try
='test -s conftest$ac_exeext'
5005 { (eval echo "$as_me:5005: \"$ac_try\"") >&5
5008 echo "$as_me:5008: \$? = $ac_status" >&5
5009 (exit $ac_status); }; }; then
5010 ac_cv_lib_Hcurses_initscr
=yes
5012 echo "$as_me: failed program was:" >&5
5013 cat conftest.
$ac_ext >&5
5014 ac_cv_lib_Hcurses_initscr
=no
5016 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5017 LIBS
=$ac_check_lib_save_LIBS
5019 echo "$as_me:5019: result: $ac_cv_lib_Hcurses_initscr" >&5
5020 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
5021 if test $ac_cv_lib_Hcurses_initscr = yes; then
5023 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
5025 cf_add_libs
="-lHcurses"
5026 # Filter out duplicates - this happens with badly-designed ".pc" files...
5027 for cf_add_1lib
in $LIBS
5029 for cf_add_2lib
in $cf_add_libs
5031 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5037 test -n "$cf_add_1lib" && cf_add_libs
="$cf_add_libs $cf_add_1lib"
5041 CPPFLAGS
="$CPPFLAGS -D__HP_CURSES -D_HP_CURSES"
5042 ac_cv_func_initscr
=yes
5051 case `arch 2>/dev/null` in
5056 if test -n "/lib64" ; then
5057 for cf_add_libdir
in /lib64
5059 if test $cf_add_libdir = /usr
/lib
; then
5061 elif test -d $cf_add_libdir
5064 if test -n "$LDFLAGS$LIBS" ; then
5065 # a loop is needed to ensure we can add subdirs of existing dirs
5066 for cf_test_libdir
in $LDFLAGS $LIBS ; do
5067 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5068 cf_have_libdir
=yes; break
5072 if test "$cf_have_libdir" = no
; then
5073 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5075 echo "${as_me:-configure}:5075: testing adding $cf_add_libdir to library-path ..." 1>&5
5077 LDFLAGS
="-L$cf_add_libdir $LDFLAGS"
5085 if test -n "/lib" ; then
5086 for cf_add_libdir
in /lib
5088 if test $cf_add_libdir = /usr
/lib
; then
5090 elif test -d $cf_add_libdir
5093 if test -n "$LDFLAGS$LIBS" ; then
5094 # a loop is needed to ensure we can add subdirs of existing dirs
5095 for cf_test_libdir
in $LDFLAGS $LIBS ; do
5096 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5097 cf_have_libdir
=yes; break
5101 if test "$cf_have_libdir" = no
; then
5102 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5104 echo "${as_me:-configure}:5104: testing adding $cf_add_libdir to library-path ..." 1>&5
5106 LDFLAGS
="-L$cf_add_libdir $LDFLAGS"
5116 if test -n "/lib" ; then
5117 for cf_add_libdir
in /lib
5119 if test $cf_add_libdir = /usr
/lib
; then
5121 elif test -d $cf_add_libdir
5124 if test -n "$LDFLAGS$LIBS" ; then
5125 # a loop is needed to ensure we can add subdirs of existing dirs
5126 for cf_test_libdir
in $LDFLAGS $LIBS ; do
5127 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5128 cf_have_libdir
=yes; break
5132 if test "$cf_have_libdir" = no
; then
5133 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5135 echo "${as_me:-configure}:5135: testing adding $cf_add_libdir to library-path ..." 1>&5
5137 LDFLAGS
="-L$cf_add_libdir $LDFLAGS"
5147 if test "x$cf_cv_screen" = "xcurses_5lib"
5149 if test -d /usr
/5lib
; then
5151 if test -n "/usr/5lib" ; then
5152 for cf_add_libdir
in /usr
/5lib
5154 if test $cf_add_libdir = /usr
/lib
; then
5156 elif test -d $cf_add_libdir
5159 if test -n "$LDFLAGS$LIBS" ; then
5160 # a loop is needed to ensure we can add subdirs of existing dirs
5161 for cf_test_libdir
in $LDFLAGS $LIBS ; do
5162 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5163 cf_have_libdir
=yes; break
5167 if test "$cf_have_libdir" = no
; then
5168 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5170 echo "${as_me:-configure}:5170: testing adding $cf_add_libdir to library-path ..." 1>&5
5172 LDFLAGS
="-L$cf_add_libdir $LDFLAGS"
5178 cf_add_libs
="-lcurses -ltermcap"
5179 # Filter out duplicates - this happens with badly-designed ".pc" files...
5180 for cf_add_1lib
in $LIBS
5182 for cf_add_2lib
in $cf_add_libs
5184 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5190 test -n "$cf_add_1lib" && cf_add_libs
="$cf_add_libs $cf_add_1lib"
5196 ac_cv_func_initscr
=yes
5200 if test ".$ac_cv_func_initscr" != .
yes ; then
5201 cf_save_LIBS
="$LIBS"
5203 if test ".${cf_cv_ncurses_version:-no}" != .no
5205 cf_check_list
="ncurses curses cursesX"
5207 cf_check_list
="cursesX curses ncurses"
5210 # Check for library containing tgoto. Do this before curses library
5211 # because it may be needed to link the test-case for initscr.
5212 if test "x$cf_term_lib" = x
5214 echo "$as_me:5214: checking for tgoto" >&5
5215 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
5216 if test "${ac_cv_func_tgoto+set}" = set; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
5219 cat >conftest.
$ac_ext <<_ACEOF
5220 #line 5220 "configure"
5221 #include "confdefs.h"
5222 /* System header to define __stub macros and hopefully few prototypes,
5223 which can conflict with char tgoto (); below. */
5225 /* Override any gcc2 internal prototype to avoid an error. */
5229 /* We use char because int might match the return type of a gcc2
5230 builtin and then its argument prototype would still apply. */
5237 /* The GNU C library defines this for functions which it implements
5238 to always fail with ENOSYS. Some functions are actually named
5239 something starting with __ and the normal name is an alias. */
5240 #if defined (__stub_tgoto) || defined (__stub___tgoto)
5243 f = tgoto; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
5250 rm -f conftest.
$ac_objext conftest
$ac_exeext
5251 if { (eval echo "$as_me:5251: \"$ac_link\"") >&5
5252 (eval $ac_link) 2>&5
5254 echo "$as_me:5254: \$? = $ac_status" >&5
5255 (exit $ac_status); } &&
5256 { ac_try
='test -s conftest$ac_exeext'
5257 { (eval echo "$as_me:5257: \"$ac_try\"") >&5
5260 echo "$as_me:5260: \$? = $ac_status" >&5
5261 (exit $ac_status); }; }; then
5262 ac_cv_func_tgoto
=yes
5264 echo "$as_me: failed program was:" >&5
5265 cat conftest.
$ac_ext >&5
5268 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5270 echo "$as_me:5270: result: $ac_cv_func_tgoto" >&5
5271 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
5272 if test $ac_cv_func_tgoto = yes; then
5273 cf_term_lib
=predefined
5276 for cf_term_lib
in $cf_check_list otermcap termcap tinfo termlib unknown
5278 as_ac_Lib
=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
5279 echo "$as_me:5279: checking for tgoto in -l$cf_term_lib" >&5
5280 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
5281 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5284 ac_check_lib_save_LIBS
=$LIBS
5285 LIBS
="-l$cf_term_lib $LIBS"
5286 cat >conftest.
$ac_ext <<_ACEOF
5287 #line 5287 "configure"
5288 #include "confdefs.h"
5290 /* Override any gcc2 internal prototype to avoid an error. */
5294 /* We use char because int might match the return type of a gcc2
5295 builtin and then its argument prototype would still apply. */
5305 rm -f conftest.
$ac_objext conftest
$ac_exeext
5306 if { (eval echo "$as_me:5306: \"$ac_link\"") >&5
5307 (eval $ac_link) 2>&5
5309 echo "$as_me:5309: \$? = $ac_status" >&5
5310 (exit $ac_status); } &&
5311 { ac_try
='test -s conftest$ac_exeext'
5312 { (eval echo "$as_me:5312: \"$ac_try\"") >&5
5315 echo "$as_me:5315: \$? = $ac_status" >&5
5316 (exit $ac_status); }; }; then
5317 eval "$as_ac_Lib=yes"
5319 echo "$as_me: failed program was:" >&5
5320 cat conftest.
$ac_ext >&5
5321 eval "$as_ac_Lib=no"
5323 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5324 LIBS
=$ac_check_lib_save_LIBS
5326 echo "$as_me:5326: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5327 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5328 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5338 # Check for library containing initscr
5339 test "$cf_term_lib" != predefined
&& test "$cf_term_lib" != unknown
&& LIBS
="-l$cf_term_lib $cf_save_LIBS"
5340 if test "x$cf_curs_lib" = x
5342 for cf_curs_lib
in $cf_check_list xcurses jcurses pdcurses unknown
5344 as_ac_Lib
=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
5345 echo "$as_me:5345: checking for initscr in -l$cf_curs_lib" >&5
5346 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
5347 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5348 echo $ECHO_N "(cached) $ECHO_C" >&6
5350 ac_check_lib_save_LIBS
=$LIBS
5351 LIBS
="-l$cf_curs_lib $LIBS"
5352 cat >conftest.
$ac_ext <<_ACEOF
5353 #line 5353 "configure"
5354 #include "confdefs.h"
5356 /* Override any gcc2 internal prototype to avoid an error. */
5360 /* We use char because int might match the return type of a gcc2
5361 builtin and then its argument prototype would still apply. */
5371 rm -f conftest.
$ac_objext conftest
$ac_exeext
5372 if { (eval echo "$as_me:5372: \"$ac_link\"") >&5
5373 (eval $ac_link) 2>&5
5375 echo "$as_me:5375: \$? = $ac_status" >&5
5376 (exit $ac_status); } &&
5377 { ac_try
='test -s conftest$ac_exeext'
5378 { (eval echo "$as_me:5378: \"$ac_try\"") >&5
5381 echo "$as_me:5381: \$? = $ac_status" >&5
5382 (exit $ac_status); }; }; then
5383 eval "$as_ac_Lib=yes"
5385 echo "$as_me: failed program was:" >&5
5386 cat conftest.
$ac_ext >&5
5387 eval "$as_ac_Lib=no"
5389 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5390 LIBS
=$ac_check_lib_save_LIBS
5392 echo "$as_me:5392: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5393 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5394 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5400 test $cf_curs_lib = unknown
&& { { echo "$as_me:5400: error: no curses library found" >&5
5401 echo "$as_me: error: no curses library found" >&2;}
5402 { (exit 1); exit 1; }; }
5404 LIBS
="-l$cf_curs_lib $cf_save_LIBS"
5405 if test "$cf_term_lib" = unknown
; then
5406 echo "$as_me:5406: checking if we can link with $cf_curs_lib library" >&5
5407 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
5408 cat >conftest.
$ac_ext <<_ACEOF
5409 #line 5409 "configure"
5410 #include "confdefs.h"
5411 #include <${cf_cv_ncurses_header:-curses.h}>
5420 rm -f conftest.
$ac_objext conftest
$ac_exeext
5421 if { (eval echo "$as_me:5421: \"$ac_link\"") >&5
5422 (eval $ac_link) 2>&5
5424 echo "$as_me:5424: \$? = $ac_status" >&5
5425 (exit $ac_status); } &&
5426 { ac_try
='test -s conftest$ac_exeext'
5427 { (eval echo "$as_me:5427: \"$ac_try\"") >&5
5430 echo "$as_me:5430: \$? = $ac_status" >&5
5431 (exit $ac_status); }; }; then
5434 echo "$as_me: failed program was:" >&5
5435 cat conftest.
$ac_ext >&5
5438 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5439 echo "$as_me:5439: result: $cf_result" >&5
5440 echo "${ECHO_T}$cf_result" >&6
5441 test $cf_result = no
&& { { echo "$as_me:5441: error: Cannot link curses library" >&5
5442 echo "$as_me: error: Cannot link curses library" >&2;}
5443 { (exit 1); exit 1; }; }
5444 elif test "$cf_curs_lib" = "$cf_term_lib" ; then
5446 elif test "$cf_term_lib" != predefined
; then
5447 echo "$as_me:5447: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
5448 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
5449 cat >conftest.
$ac_ext <<_ACEOF
5450 #line 5450 "configure"
5451 #include "confdefs.h"
5452 #include <${cf_cv_ncurses_header:-curses.h}>
5456 initscr(); tgoto((char *)0, 0, 0);
5461 rm -f conftest.
$ac_objext conftest
$ac_exeext
5462 if { (eval echo "$as_me:5462: \"$ac_link\"") >&5
5463 (eval $ac_link) 2>&5
5465 echo "$as_me:5465: \$? = $ac_status" >&5
5466 (exit $ac_status); } &&
5467 { ac_try
='test -s conftest$ac_exeext'
5468 { (eval echo "$as_me:5468: \"$ac_try\"") >&5
5471 echo "$as_me:5471: \$? = $ac_status" >&5
5472 (exit $ac_status); }; }; then
5475 echo "$as_me: failed program was:" >&5
5476 cat conftest.
$ac_ext >&5
5478 LIBS
="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
5479 cat >conftest.
$ac_ext <<_ACEOF
5480 #line 5480 "configure"
5481 #include "confdefs.h"
5482 #include <${cf_cv_ncurses_header:-curses.h}>
5491 rm -f conftest.
$ac_objext conftest
$ac_exeext
5492 if { (eval echo "$as_me:5492: \"$ac_link\"") >&5
5493 (eval $ac_link) 2>&5
5495 echo "$as_me:5495: \$? = $ac_status" >&5
5496 (exit $ac_status); } &&
5497 { ac_try
='test -s conftest$ac_exeext'
5498 { (eval echo "$as_me:5498: \"$ac_try\"") >&5
5501 echo "$as_me:5501: \$? = $ac_status" >&5
5502 (exit $ac_status); }; }; then
5505 echo "$as_me: failed program was:" >&5
5506 cat conftest.
$ac_ext >&5
5509 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5512 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5513 echo "$as_me:5513: result: $cf_result" >&5
5514 echo "${ECHO_T}$cf_result" >&6
5522 echo "$as_me:5522: checking for multibyte character support" >&5
5523 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
5524 if test "${cf_cv_utf8_lib+set}" = set; then
5525 echo $ECHO_N "(cached) $ECHO_C" >&6
5528 cf_save_LIBS
="$LIBS"
5529 cat >conftest.
$ac_ext <<_ACEOF
5530 #line 5530 "configure"
5531 #include "confdefs.h"
5542 rm -f conftest.
$ac_objext conftest
$ac_exeext
5543 if { (eval echo "$as_me:5543: \"$ac_link\"") >&5
5544 (eval $ac_link) 2>&5
5546 echo "$as_me:5546: \$? = $ac_status" >&5
5547 (exit $ac_status); } &&
5548 { ac_try
='test -s conftest$ac_exeext'
5549 { (eval echo "$as_me:5549: \"$ac_try\"") >&5
5552 echo "$as_me:5552: \$? = $ac_status" >&5
5553 (exit $ac_status); }; }; then
5556 echo "$as_me: failed program was:" >&5
5557 cat conftest.
$ac_ext >&5
5559 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
5560 # will be set on completion of the AC_TRY_LINK below.
5561 cf_cv_header_path_utf8
=
5562 cf_cv_library_path_utf8
=
5564 echo "${as_me:-configure}:5564: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
5566 cf_save_LIBS
="$LIBS"
5568 cat >conftest.
$ac_ext <<_ACEOF
5569 #line 5569 "configure"
5570 #include "confdefs.h"
5572 #include <libutf8.h>
5581 rm -f conftest.
$ac_objext conftest
$ac_exeext
5582 if { (eval echo "$as_me:5582: \"$ac_link\"") >&5
5583 (eval $ac_link) 2>&5
5585 echo "$as_me:5585: \$? = $ac_status" >&5
5586 (exit $ac_status); } &&
5587 { ac_try
='test -s conftest$ac_exeext'
5588 { (eval echo "$as_me:5588: \"$ac_try\"") >&5
5591 echo "$as_me:5591: \$? = $ac_status" >&5
5592 (exit $ac_status); }; }; then
5594 cf_cv_find_linkage_utf8
=yes
5595 cf_cv_header_path_utf8
=/usr
/include
5596 cf_cv_library_path_utf8
=/usr
/lib
5599 echo "$as_me: failed program was:" >&5
5600 cat conftest.
$ac_ext >&5
5602 LIBS
="-lutf8 $cf_save_LIBS"
5604 cat >conftest.
$ac_ext <<_ACEOF
5605 #line 5605 "configure"
5606 #include "confdefs.h"
5608 #include <libutf8.h>
5617 rm -f conftest.
$ac_objext conftest
$ac_exeext
5618 if { (eval echo "$as_me:5618: \"$ac_link\"") >&5
5619 (eval $ac_link) 2>&5
5621 echo "$as_me:5621: \$? = $ac_status" >&5
5622 (exit $ac_status); } &&
5623 { ac_try
='test -s conftest$ac_exeext'
5624 { (eval echo "$as_me:5624: \"$ac_try\"") >&5
5627 echo "$as_me:5627: \$? = $ac_status" >&5
5628 (exit $ac_status); }; }; then
5630 cf_cv_find_linkage_utf8
=yes
5631 cf_cv_header_path_utf8
=/usr
/include
5632 cf_cv_library_path_utf8
=/usr
/lib
5633 cf_cv_library_file_utf8
="-lutf8"
5636 echo "$as_me: failed program was:" >&5
5637 cat conftest.
$ac_ext >&5
5639 cf_cv_find_linkage_utf8
=no
5640 LIBS
="$cf_save_LIBS"
5642 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
5644 echo "${as_me:-configure}:5644: testing find linkage for utf8 library ..." 1>&5
5646 echo "${as_me:-configure}:5646: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
5648 cf_save_CPPFLAGS
="$CPPFLAGS"
5649 cf_test_CPPFLAGS
="$CPPFLAGS"
5653 # collect the current set of include-directories from compiler flags
5654 cf_header_path_list
=""
5655 if test -n "${CFLAGS}${CPPFLAGS}" ; then
5656 for cf_header_path
in $CPPFLAGS $CFLAGS
5658 case $cf_header_path in
5660 cf_header_path
=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
5662 test "x$cf_header_path" != "xNONE" && \
5663 test -d "$cf_header_path" && \
5665 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
5666 test -d $cf_header_path/include
&& cf_search
="$cf_search $cf_header_path/include"
5667 test -d $cf_header_path/include
/utf8
&& cf_search
="$cf_search $cf_header_path/include/utf8"
5668 test -d $cf_header_path/include
/utf
8/include
&& cf_search
="$cf_search $cf_header_path/include/utf8/include"
5669 test -d $cf_header_path/utf
8/include
&& cf_search
="$cf_search $cf_header_path/utf8/include"
5670 test -d $cf_header_path/utf
8/include
/utf8
&& cf_search
="$cf_search $cf_header_path/utf8/include/utf8"
5673 cf_header_path_list
="$cf_header_path_list $cf_search"
5679 # add the variations for the package we are looking for
5683 test "x$prefix" != "xNONE" && \
5684 test -d "$prefix" && \
5686 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
5687 test -d $prefix/include
&& cf_search
="$cf_search $prefix/include"
5688 test -d $prefix/include
/utf8
&& cf_search
="$cf_search $prefix/include/utf8"
5689 test -d $prefix/include
/utf
8/include
&& cf_search
="$cf_search $prefix/include/utf8/include"
5690 test -d $prefix/utf
8/include
&& cf_search
="$cf_search $prefix/utf8/include"
5691 test -d $prefix/utf
8/include
/utf8
&& cf_search
="$cf_search $prefix/utf8/include/utf8"
5694 for cf_subdir_prefix
in \
5703 test "x$cf_subdir_prefix" != "x$prefix" && \
5704 test -d "$cf_subdir_prefix" && \
5705 (test -z "$prefix" ||
test x
$prefix = xNONE ||
test "x$cf_subdir_prefix" != "x$prefix") && {
5706 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
5707 test -d $cf_subdir_prefix/include
&& cf_search
="$cf_search $cf_subdir_prefix/include"
5708 test -d $cf_subdir_prefix/include
/utf8
&& cf_search
="$cf_search $cf_subdir_prefix/include/utf8"
5709 test -d $cf_subdir_prefix/include
/utf
8/include
&& cf_search
="$cf_search $cf_subdir_prefix/include/utf8/include"
5710 test -d $cf_subdir_prefix/utf
8/include
&& cf_search
="$cf_search $cf_subdir_prefix/utf8/include"
5711 test -d $cf_subdir_prefix/utf
8/include
/utf8
&& cf_search
="$cf_search $cf_subdir_prefix/utf8/include/utf8"
5716 test "$includedir" != NONE
&& \
5717 test "$includedir" != "/usr/include" && \
5718 test -d "$includedir" && {
5719 test -d $includedir && cf_search
="$cf_search $includedir"
5720 test -d $includedir/utf8
&& cf_search
="$cf_search $includedir/utf8"
5723 test "$oldincludedir" != NONE
&& \
5724 test "$oldincludedir" != "/usr/include" && \
5725 test -d "$oldincludedir" && {
5726 test -d $oldincludedir && cf_search
="$cf_search $oldincludedir"
5727 test -d $oldincludedir/utf8
&& cf_search
="$cf_search $oldincludedir/utf8"
5730 cf_search
="$cf_search $cf_header_path_list"
5732 for cf_cv_header_path_utf8
in $cf_search
5734 if test -d $cf_cv_header_path_utf8 ; then
5735 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
5737 echo "${as_me:-configure}:5737: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
5739 CPPFLAGS
="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
5740 cat >conftest.
$ac_ext <<_ACEOF
5741 #line 5741 "configure"
5742 #include "confdefs.h"
5744 #include <libutf8.h>
5753 rm -f conftest.
$ac_objext
5754 if { (eval echo "$as_me:5754: \"$ac_compile\"") >&5
5755 (eval $ac_compile) 2>&5
5757 echo "$as_me:5757: \$? = $ac_status" >&5
5758 (exit $ac_status); } &&
5759 { ac_try
='test -s conftest.$ac_objext'
5760 { (eval echo "$as_me:5760: \"$ac_try\"") >&5
5763 echo "$as_me:5763: \$? = $ac_status" >&5
5764 (exit $ac_status); }; }; then
5766 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
5768 echo "${as_me:-configure}:5768: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
5770 cf_cv_find_linkage_utf8
=maybe
5771 cf_test_CPPFLAGS
="$CPPFLAGS"
5774 echo "$as_me: failed program was:" >&5
5775 cat conftest.
$ac_ext >&5
5777 CPPFLAGS
="$cf_save_CPPFLAGS"
5780 rm -f conftest.
$ac_objext conftest.
$ac_ext
5784 if test "$cf_cv_find_linkage_utf8" = maybe
; then
5786 echo "${as_me:-configure}:5786: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
5788 cf_save_LIBS
="$LIBS"
5789 cf_save_LDFLAGS
="$LDFLAGS"
5791 if test "$cf_cv_find_linkage_utf8" != yes ; then
5794 cf_library_path_list
=""
5795 if test -n "${LDFLAGS}${LIBS}" ; then
5796 for cf_library_path
in $LDFLAGS $LIBS
5798 case $cf_library_path in
5800 cf_library_path
=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
5802 test "x$cf_library_path" != "xNONE" && \
5803 test -d "$cf_library_path" && \
5805 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
5806 test -d $cf_library_path/lib
&& cf_search
="$cf_search $cf_library_path/lib"
5807 test -d $cf_library_path/lib
/utf8
&& cf_search
="$cf_search $cf_library_path/lib/utf8"
5808 test -d $cf_library_path/lib
/utf
8/lib
&& cf_search
="$cf_search $cf_library_path/lib/utf8/lib"
5809 test -d $cf_library_path/utf
8/lib
&& cf_search
="$cf_search $cf_library_path/utf8/lib"
5810 test -d $cf_library_path/utf
8/lib
/utf8
&& cf_search
="$cf_search $cf_library_path/utf8/lib/utf8"
5813 cf_library_path_list
="$cf_library_path_list $cf_search"
5821 test "x$prefix" != "xNONE" && \
5822 test -d "$prefix" && \
5824 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
5825 test -d $prefix/lib
&& cf_search
="$cf_search $prefix/lib"
5826 test -d $prefix/lib
/utf8
&& cf_search
="$cf_search $prefix/lib/utf8"
5827 test -d $prefix/lib
/utf
8/lib
&& cf_search
="$cf_search $prefix/lib/utf8/lib"
5828 test -d $prefix/utf
8/lib
&& cf_search
="$cf_search $prefix/utf8/lib"
5829 test -d $prefix/utf
8/lib
/utf8
&& cf_search
="$cf_search $prefix/utf8/lib/utf8"
5832 for cf_subdir_prefix
in \
5841 test "x$cf_subdir_prefix" != "x$prefix" && \
5842 test -d "$cf_subdir_prefix" && \
5843 (test -z "$prefix" ||
test x
$prefix = xNONE ||
test "x$cf_subdir_prefix" != "x$prefix") && {
5844 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
5845 test -d $cf_subdir_prefix/lib
&& cf_search
="$cf_search $cf_subdir_prefix/lib"
5846 test -d $cf_subdir_prefix/lib
/utf8
&& cf_search
="$cf_search $cf_subdir_prefix/lib/utf8"
5847 test -d $cf_subdir_prefix/lib
/utf
8/lib
&& cf_search
="$cf_search $cf_subdir_prefix/lib/utf8/lib"
5848 test -d $cf_subdir_prefix/utf
8/lib
&& cf_search
="$cf_search $cf_subdir_prefix/utf8/lib"
5849 test -d $cf_subdir_prefix/utf
8/lib
/utf8
&& cf_search
="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
5854 cf_search
="$cf_library_path_list $cf_search"
5856 for cf_cv_library_path_utf8
in $cf_search
5858 if test -d $cf_cv_library_path_utf8 ; then
5859 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
5861 echo "${as_me:-configure}:5861: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
5863 CPPFLAGS
="$cf_test_CPPFLAGS"
5864 LIBS
="-lutf8 $cf_save_LIBS"
5865 LDFLAGS
="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
5866 cat >conftest.
$ac_ext <<_ACEOF
5867 #line 5867 "configure"
5868 #include "confdefs.h"
5870 #include <libutf8.h>
5879 rm -f conftest.
$ac_objext conftest
$ac_exeext
5880 if { (eval echo "$as_me:5880: \"$ac_link\"") >&5
5881 (eval $ac_link) 2>&5
5883 echo "$as_me:5883: \$? = $ac_status" >&5
5884 (exit $ac_status); } &&
5885 { ac_try
='test -s conftest$ac_exeext'
5886 { (eval echo "$as_me:5886: \"$ac_try\"") >&5
5889 echo "$as_me:5889: \$? = $ac_status" >&5
5890 (exit $ac_status); }; }; then
5892 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
5894 echo "${as_me:-configure}:5894: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
5896 cf_cv_find_linkage_utf8
=yes
5897 cf_cv_library_file_utf8
="-lutf8"
5900 echo "$as_me: failed program was:" >&5
5901 cat conftest.
$ac_ext >&5
5903 CPPFLAGS
="$cf_save_CPPFLAGS"
5904 LIBS
="$cf_save_LIBS"
5905 LDFLAGS
="$cf_save_LDFLAGS"
5908 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5911 CPPFLAGS
="$cf_save_CPPFLAGS"
5912 LDFLAGS
="$cf_save_LDFLAGS"
5916 cf_cv_find_linkage_utf8
=no
5920 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5923 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5925 LIBS
="$cf_save_LIBS"
5927 if test "$cf_cv_find_linkage_utf8" = yes ; then
5928 cf_cv_utf8_lib
=add-on
5934 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5936 echo "$as_me:5936: result: $cf_cv_utf8_lib" >&5
5937 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
5939 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
5941 if test "$cf_cv_utf8_lib" = "add-on" ; then
5943 cat >>confdefs.h
<<\EOF
5944 #define HAVE_LIBUTF8_H 1
5947 if test -n "$cf_cv_header_path_utf8" ; then
5948 for cf_add_incdir
in $cf_cv_header_path_utf8
5950 while test $cf_add_incdir != /usr
/include
5952 if test -d $cf_add_incdir
5955 if test -n "$CFLAGS$CPPFLAGS" ; then
5956 # a loop is needed to ensure we can add subdirs of existing dirs
5957 for cf_test_incdir
in $CFLAGS $CPPFLAGS ; do
5958 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
5959 cf_have_incdir
=yes; break
5964 if test "$cf_have_incdir" = no
; then
5965 if test "$cf_add_incdir" = /usr
/local
/include
; then
5966 if test "$GCC" = yes
5968 cf_save_CPPFLAGS
=$CPPFLAGS
5969 CPPFLAGS
="$CPPFLAGS -I$cf_add_incdir"
5970 cat >conftest.
$ac_ext <<_ACEOF
5971 #line 5971 "configure"
5972 #include "confdefs.h"
5982 rm -f conftest.
$ac_objext
5983 if { (eval echo "$as_me:5983: \"$ac_compile\"") >&5
5984 (eval $ac_compile) 2>&5
5986 echo "$as_me:5986: \$? = $ac_status" >&5
5987 (exit $ac_status); } &&
5988 { ac_try
='test -s conftest.$ac_objext'
5989 { (eval echo "$as_me:5989: \"$ac_try\"") >&5
5992 echo "$as_me:5992: \$? = $ac_status" >&5
5993 (exit $ac_status); }; }; then
5996 echo "$as_me: failed program was:" >&5
5997 cat conftest.
$ac_ext >&5
6000 rm -f conftest.
$ac_objext conftest.
$ac_ext
6001 CPPFLAGS
=$cf_save_CPPFLAGS
6006 if test "$cf_have_incdir" = no
; then
6007 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6009 echo "${as_me:-configure}:6009: testing adding $cf_add_incdir to include-path ..." 1>&5
6011 CPPFLAGS
="$CPPFLAGS -I$cf_add_incdir"
6013 cf_top_incdir
=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6014 test "$cf_top_incdir" = "$cf_add_incdir" && break
6015 cf_add_incdir
="$cf_top_incdir"
6026 if test -n "$cf_cv_library_path_utf8" ; then
6027 for cf_add_libdir
in $cf_cv_library_path_utf8
6029 if test $cf_add_libdir = /usr
/lib
; then
6031 elif test -d $cf_add_libdir
6034 if test -n "$LDFLAGS$LIBS" ; then
6035 # a loop is needed to ensure we can add subdirs of existing dirs
6036 for cf_test_libdir
in $LDFLAGS $LIBS ; do
6037 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
6038 cf_have_libdir
=yes; break
6042 if test "$cf_have_libdir" = no
; then
6043 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
6045 echo "${as_me:-configure}:6045: testing adding $cf_add_libdir to library-path ..." 1>&5
6047 LDFLAGS
="-L$cf_add_libdir $LDFLAGS"
6053 cf_add_libs
="$cf_cv_library_file_utf8"
6054 # Filter out duplicates - this happens with badly-designed ".pc" files...
6055 for cf_add_1lib
in $LIBS
6057 for cf_add_2lib
in $cf_add_libs
6059 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6065 test -n "$cf_add_1lib" && cf_add_libs
="$cf_add_libs $cf_add_1lib"
6071 cf_ncuconfig_root
=$cf_cv_screen
6072 cf_have_ncuconfig
=no
6074 if test "x${PKG_CONFIG:=none}" != xnone
; then
6075 echo "$as_me:6075: checking pkg-config for $cf_ncuconfig_root" >&5
6076 echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
6077 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
6078 echo "$as_me:6078: result: yes" >&5
6079 echo "${ECHO_T}yes" >&6
6081 echo "$as_me:6081: checking if the $cf_ncuconfig_root package files work" >&5
6082 echo $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
6083 cf_have_ncuconfig
=unknown
6085 cf_save_CPPFLAGS
="$CPPFLAGS"
6086 cf_save_LIBS
="$LIBS"
6088 CPPFLAGS
="$CPPFLAGS `$PKG_CONFIG --cflags $cf_ncuconfig_root`"
6090 cf_add_libs
="`$PKG_CONFIG --libs $cf_ncuconfig_root`"
6091 # Filter out duplicates - this happens with badly-designed ".pc" files...
6092 for cf_add_1lib
in $LIBS
6094 for cf_add_2lib
in $cf_add_libs
6096 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6102 test -n "$cf_add_1lib" && cf_add_libs
="$cf_add_libs $cf_add_1lib"
6106 cat >conftest.
$ac_ext <<_ACEOF
6107 #line 6107 "configure"
6108 #include "confdefs.h"
6109 #include <${cf_cv_ncurses_header:-curses.h}>
6113 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
6118 rm -f conftest.
$ac_objext conftest
$ac_exeext
6119 if { (eval echo "$as_me:6119: \"$ac_link\"") >&5
6120 (eval $ac_link) 2>&5
6122 echo "$as_me:6122: \$? = $ac_status" >&5
6123 (exit $ac_status); } &&
6124 { ac_try
='test -s conftest$ac_exeext'
6125 { (eval echo "$as_me:6125: \"$ac_try\"") >&5
6128 echo "$as_me:6128: \$? = $ac_status" >&5
6129 (exit $ac_status); }; }; then
6130 if test "$cross_compiling" = yes; then
6131 cf_have_ncuconfig
=maybe
6133 cat >conftest.
$ac_ext <<_ACEOF
6134 #line 6134 "configure"
6135 #include "confdefs.h"
6136 #include <${cf_cv_ncurses_header:-curses.h}>
6138 { char *xx = curses_version(); return (xx == 0); }
6140 rm -f conftest
$ac_exeext
6141 if { (eval echo "$as_me:6141: \"$ac_link\"") >&5
6142 (eval $ac_link) 2>&5
6144 echo "$as_me:6144: \$? = $ac_status" >&5
6145 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6146 { (eval echo "$as_me:6146: \"$ac_try\"") >&5
6149 echo "$as_me:6149: \$? = $ac_status" >&5
6150 (exit $ac_status); }; }; then
6151 cf_have_ncuconfig
=yes
6153 echo "$as_me: program exited with status $ac_status" >&5
6154 echo "$as_me: failed program was:" >&5
6155 cat conftest.
$ac_ext >&5
6156 cf_have_ncuconfig
=no
6158 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6161 echo "$as_me: failed program was:" >&5
6162 cat conftest.
$ac_ext >&5
6163 cf_have_ncuconfig
=no
6165 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6166 echo "$as_me:6166: result: $cf_have_ncuconfig" >&5
6167 echo "${ECHO_T}$cf_have_ncuconfig" >&6
6168 test "$cf_have_ncuconfig" = maybe
&& cf_have_ncuconfig
=yes
6169 if test "$cf_have_ncuconfig" != "yes"
6171 CPPFLAGS
="$cf_save_CPPFLAGS"
6172 LIBS
="$cf_save_LIBS"
6173 NCURSES_CONFIG_PKG
=none
6176 cat >>confdefs.h
<<\EOF
6180 NCURSES_CONFIG_PKG
=$cf_ncuconfig_root
6184 echo "$as_me:6184: result: no" >&5
6185 echo "${ECHO_T}no" >&6
6186 NCURSES_CONFIG_PKG
=none
6189 NCURSES_CONFIG_PKG
=none
6192 if test "x$cf_have_ncuconfig" = "xno"; then
6193 echo "Looking for ${cf_ncuconfig_root}-config"
6195 if test -n "$ac_tool_prefix"; then
6196 for ac_prog
in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
6198 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6199 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6200 echo "$as_me:6200: checking for $ac_word" >&5
6201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6202 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
6203 echo $ECHO_N "(cached) $ECHO_C" >&6
6205 if test -n "$NCURSES_CONFIG"; then
6206 ac_cv_prog_NCURSES_CONFIG
="$NCURSES_CONFIG" # Let the user override the test.
6208 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
6210 for ac_dir
in $ac_dummy; do
6212 test -z "$ac_dir" && ac_dir
=.
6213 $as_executable_p "$ac_dir/$ac_word" ||
continue
6214 ac_cv_prog_NCURSES_CONFIG
="$ac_tool_prefix$ac_prog"
6215 echo "$as_me:6215: found $ac_dir/$ac_word" >&5
6221 NCURSES_CONFIG
=$ac_cv_prog_NCURSES_CONFIG
6222 if test -n "$NCURSES_CONFIG"; then
6223 echo "$as_me:6223: result: $NCURSES_CONFIG" >&5
6224 echo "${ECHO_T}$NCURSES_CONFIG" >&6
6226 echo "$as_me:6226: result: no" >&5
6227 echo "${ECHO_T}no" >&6
6230 test -n "$NCURSES_CONFIG" && break
6233 if test -z "$NCURSES_CONFIG"; then
6234 ac_ct_NCURSES_CONFIG
=$NCURSES_CONFIG
6235 for ac_prog
in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
6237 # Extract the first word of "$ac_prog", so it can be a program name with args.
6238 set dummy
$ac_prog; ac_word
=$2
6239 echo "$as_me:6239: checking for $ac_word" >&5
6240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6241 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
6242 echo $ECHO_N "(cached) $ECHO_C" >&6
6244 if test -n "$ac_ct_NCURSES_CONFIG"; then
6245 ac_cv_prog_ac_ct_NCURSES_CONFIG
="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
6247 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
6249 for ac_dir
in $ac_dummy; do
6251 test -z "$ac_dir" && ac_dir
=.
6252 $as_executable_p "$ac_dir/$ac_word" ||
continue
6253 ac_cv_prog_ac_ct_NCURSES_CONFIG
="$ac_prog"
6254 echo "$as_me:6254: found $ac_dir/$ac_word" >&5
6260 ac_ct_NCURSES_CONFIG
=$ac_cv_prog_ac_ct_NCURSES_CONFIG
6261 if test -n "$ac_ct_NCURSES_CONFIG"; then
6262 echo "$as_me:6262: result: $ac_ct_NCURSES_CONFIG" >&5
6263 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
6265 echo "$as_me:6265: result: no" >&5
6266 echo "${ECHO_T}no" >&6
6269 test -n "$ac_ct_NCURSES_CONFIG" && break
6271 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG
="none"
6273 NCURSES_CONFIG
=$ac_ct_NCURSES_CONFIG
6276 if test "$NCURSES_CONFIG" != none
; then
6278 CPPFLAGS
="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
6280 cf_add_libs
="`$NCURSES_CONFIG --libs`"
6281 # Filter out duplicates - this happens with badly-designed ".pc" files...
6282 for cf_add_1lib
in $LIBS
6284 for cf_add_2lib
in $cf_add_libs
6286 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6292 test -n "$cf_add_1lib" && cf_add_libs
="$cf_add_libs $cf_add_1lib"
6296 # even with config script, some packages use no-override for curses.h
6298 echo "$as_me:6298: checking if we have identified curses headers" >&5
6299 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
6300 if test "${cf_cv_ncurses_header+set}" = set; then
6301 echo $ECHO_N "(cached) $ECHO_C" >&6
6304 cf_cv_ncurses_header
=none
6306 ncurses.h
$cf_cv_screen/ncurses.h \
6307 curses.h
$cf_cv_screen/curses.h
6309 cat >conftest.
$ac_ext <<_ACEOF
6310 #line 6310 "configure"
6311 #include "confdefs.h"
6312 #include <${cf_header}>
6316 initscr(); tgoto("?", 0,0)
6321 rm -f conftest.
$ac_objext
6322 if { (eval echo "$as_me:6322: \"$ac_compile\"") >&5
6323 (eval $ac_compile) 2>&5
6325 echo "$as_me:6325: \$? = $ac_status" >&5
6326 (exit $ac_status); } &&
6327 { ac_try
='test -s conftest.$ac_objext'
6328 { (eval echo "$as_me:6328: \"$ac_try\"") >&5
6331 echo "$as_me:6331: \$? = $ac_status" >&5
6332 (exit $ac_status); }; }; then
6333 cf_cv_ncurses_header
=$cf_header; break
6335 echo "$as_me: failed program was:" >&5
6336 cat conftest.
$ac_ext >&5
6338 rm -f conftest.
$ac_objext conftest.
$ac_ext
6342 echo "$as_me:6342: result: $cf_cv_ncurses_header" >&5
6343 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
6345 if test "$cf_cv_ncurses_header" = none
; then
6346 { { echo "$as_me:6346: error: No curses header-files found" >&5
6347 echo "$as_me: error: No curses header-files found" >&2;}
6348 { (exit 1); exit 1; }; }
6351 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
6353 for ac_header
in $cf_cv_ncurses_header
6355 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6356 echo "$as_me:6356: checking for $ac_header" >&5
6357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6361 cat >conftest.
$ac_ext <<_ACEOF
6362 #line 6362 "configure"
6363 #include "confdefs.h"
6364 #include <$ac_header>
6366 if { (eval echo "$as_me:6366: \"$ac_cpp conftest.$ac_ext\"") >&5
6367 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6369 egrep -v '^ *\+' conftest.er1
>conftest.err
6371 cat conftest.err
>&5
6372 echo "$as_me:6372: \$? = $ac_status" >&5
6373 (exit $ac_status); } >/dev
/null
; then
6374 if test -s conftest.err
; then
6375 ac_cpp_err
=$ac_c_preproc_warn_flag
6382 if test -z "$ac_cpp_err"; then
6383 eval "$as_ac_Header=yes"
6385 echo "$as_me: failed program was:" >&5
6386 cat conftest.
$ac_ext >&5
6387 eval "$as_ac_Header=no"
6389 rm -f conftest.err conftest.
$ac_ext
6391 echo "$as_me:6391: result: `eval echo '${'$as_ac_Header'}'`" >&5
6392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6394 cat >>confdefs.h
<<EOF
6395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6401 cat >>confdefs.h
<<\EOF
6405 cf_nculib_ROOT
=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
6407 cat >>confdefs.h
<<EOF
6408 #define $cf_nculib_ROOT 1
6411 cf_cv_ncurses_version
=`$NCURSES_CONFIG --version`
6415 cf_ncuhdr_root
=$cf_cv_screen
6417 test -n "$cf_cv_curses_dir" && \
6418 test "$cf_cv_curses_dir" != "no" && { \
6420 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
6421 for cf_add_incdir
in $cf_cv_curses_dir/include
/$cf_ncuhdr_root
6423 while test $cf_add_incdir != /usr
/include
6425 if test -d $cf_add_incdir
6428 if test -n "$CFLAGS$CPPFLAGS" ; then
6429 # a loop is needed to ensure we can add subdirs of existing dirs
6430 for cf_test_incdir
in $CFLAGS $CPPFLAGS ; do
6431 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6432 cf_have_incdir
=yes; break
6437 if test "$cf_have_incdir" = no
; then
6438 if test "$cf_add_incdir" = /usr
/local
/include
; then
6439 if test "$GCC" = yes
6441 cf_save_CPPFLAGS
=$CPPFLAGS
6442 CPPFLAGS
="$CPPFLAGS -I$cf_add_incdir"
6443 cat >conftest.
$ac_ext <<_ACEOF
6444 #line 6444 "configure"
6445 #include "confdefs.h"
6455 rm -f conftest.
$ac_objext
6456 if { (eval echo "$as_me:6456: \"$ac_compile\"") >&5
6457 (eval $ac_compile) 2>&5
6459 echo "$as_me:6459: \$? = $ac_status" >&5
6460 (exit $ac_status); } &&
6461 { ac_try
='test -s conftest.$ac_objext'
6462 { (eval echo "$as_me:6462: \"$ac_try\"") >&5
6465 echo "$as_me:6465: \$? = $ac_status" >&5
6466 (exit $ac_status); }; }; then
6469 echo "$as_me: failed program was:" >&5
6470 cat conftest.
$ac_ext >&5
6473 rm -f conftest.
$ac_objext conftest.
$ac_ext
6474 CPPFLAGS
=$cf_save_CPPFLAGS
6479 if test "$cf_have_incdir" = no
; then
6480 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6482 echo "${as_me:-configure}:6482: testing adding $cf_add_incdir to include-path ..." 1>&5
6484 CPPFLAGS
="$CPPFLAGS -I$cf_add_incdir"
6486 cf_top_incdir
=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6487 test "$cf_top_incdir" = "$cf_add_incdir" && break
6488 cf_add_incdir
="$cf_top_incdir"
6501 echo "$as_me:6501: checking for $cf_ncuhdr_root header in include-path" >&5
6502 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
6503 if test "${cf_cv_ncurses_h+set}" = set; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6507 cf_header_list
="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
6508 ( test "$cf_ncuhdr_root" = ncurses ||
test "$cf_ncuhdr_root" = ncursesw
) && cf_header_list
="$cf_header_list curses.h ncurses.h"
6509 for cf_header
in $cf_header_list
6512 cat >conftest.
$ac_ext <<_ACEOF
6513 #line 6513 "configure"
6514 #include "confdefs.h"
6516 #include <$cf_header>
6521 #ifdef NCURSES_VERSION
6523 printf("%s\n", NCURSES_VERSION);
6536 rm -f conftest.
$ac_objext
6537 if { (eval echo "$as_me:6537: \"$ac_compile\"") >&5
6538 (eval $ac_compile) 2>&5
6540 echo "$as_me:6540: \$? = $ac_status" >&5
6541 (exit $ac_status); } &&
6542 { ac_try
='test -s conftest.$ac_objext'
6543 { (eval echo "$as_me:6543: \"$ac_try\"") >&5
6546 echo "$as_me:6546: \$? = $ac_status" >&5
6547 (exit $ac_status); }; }; then
6548 cf_cv_ncurses_h
=$cf_header
6551 echo "$as_me: failed program was:" >&5
6552 cat conftest.
$ac_ext >&5
6555 rm -f conftest.
$ac_objext conftest.
$ac_ext
6557 test "$cf_cv_ncurses_h" != no
&& break
6561 echo "$as_me:6561: result: $cf_cv_ncurses_h" >&5
6562 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
6564 if test "$cf_cv_ncurses_h" != no
; then
6565 cf_cv_ncurses_header
=$cf_cv_ncurses_h
6568 echo "$as_me:6568: checking for $cf_ncuhdr_root include-path" >&5
6569 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
6570 if test "${cf_cv_ncurses_h2+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6574 test -n "$verbose" && echo
6578 # collect the current set of include-directories from compiler flags
6579 cf_header_path_list
=""
6580 if test -n "${CFLAGS}${CPPFLAGS}" ; then
6581 for cf_header_path
in $CPPFLAGS $CFLAGS
6583 case $cf_header_path in
6585 cf_header_path
=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
6587 test "x$cf_header_path" != "xNONE" && \
6588 test -d "$cf_header_path" && \
6590 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
6591 test -d $cf_header_path/include
&& cf_search
="$cf_search $cf_header_path/include"
6592 test -d $cf_header_path/include
/$cf_ncuhdr_root && cf_search
="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
6593 test -d $cf_header_path/include
/$cf_ncuhdr_root/include
&& cf_search
="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
6594 test -d $cf_header_path/$cf_ncuhdr_root/include
&& cf_search
="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
6595 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"
6598 cf_header_path_list
="$cf_header_path_list $cf_search"
6604 # add the variations for the package we are looking for
6608 test "x$prefix" != "xNONE" && \
6609 test -d "$prefix" && \
6611 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
6612 test -d $prefix/include
&& cf_search
="$cf_search $prefix/include"
6613 test -d $prefix/include
/$cf_ncuhdr_root && cf_search
="$cf_search $prefix/include/$cf_ncuhdr_root"
6614 test -d $prefix/include
/$cf_ncuhdr_root/include
&& cf_search
="$cf_search $prefix/include/$cf_ncuhdr_root/include"
6615 test -d $prefix/$cf_ncuhdr_root/include
&& cf_search
="$cf_search $prefix/$cf_ncuhdr_root/include"
6616 test -d $prefix/$cf_ncuhdr_root/include
/$cf_ncuhdr_root && cf_search
="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6619 for cf_subdir_prefix
in \
6628 test "x$cf_subdir_prefix" != "x$prefix" && \
6629 test -d "$cf_subdir_prefix" && \
6630 (test -z "$prefix" ||
test x
$prefix = xNONE ||
test "x$cf_subdir_prefix" != "x$prefix") && {
6631 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
6632 test -d $cf_subdir_prefix/include
&& cf_search
="$cf_search $cf_subdir_prefix/include"
6633 test -d $cf_subdir_prefix/include
/$cf_ncuhdr_root && cf_search
="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root"
6634 test -d $cf_subdir_prefix/include
/$cf_ncuhdr_root/include
&& cf_search
="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root/include"
6635 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include
&& cf_search
="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include"
6636 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"
6641 test "$includedir" != NONE
&& \
6642 test "$includedir" != "/usr/include" && \
6643 test -d "$includedir" && {
6644 test -d $includedir && cf_search
="$cf_search $includedir"
6645 test -d $includedir/$cf_ncuhdr_root && cf_search
="$cf_search $includedir/$cf_ncuhdr_root"
6648 test "$oldincludedir" != NONE
&& \
6649 test "$oldincludedir" != "/usr/include" && \
6650 test -d "$oldincludedir" && {
6651 test -d $oldincludedir && cf_search
="$cf_search $oldincludedir"
6652 test -d $oldincludedir/$cf_ncuhdr_root && cf_search
="$cf_search $oldincludedir/$cf_ncuhdr_root"
6655 cf_search
="$cf_search $cf_header_path_list"
6657 test -n "$verbose" && echo search path
$cf_search
6658 cf_save2_CPPFLAGS
="$CPPFLAGS"
6659 for cf_incdir
in $cf_search
6662 if test -n "$cf_incdir" ; then
6663 for cf_add_incdir
in $cf_incdir
6665 while test $cf_add_incdir != /usr
/include
6667 if test -d $cf_add_incdir
6670 if test -n "$CFLAGS$CPPFLAGS" ; then
6671 # a loop is needed to ensure we can add subdirs of existing dirs
6672 for cf_test_incdir
in $CFLAGS $CPPFLAGS ; do
6673 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6674 cf_have_incdir
=yes; break
6679 if test "$cf_have_incdir" = no
; then
6680 if test "$cf_add_incdir" = /usr
/local
/include
; then
6681 if test "$GCC" = yes
6683 cf_save_CPPFLAGS
=$CPPFLAGS
6684 CPPFLAGS
="$CPPFLAGS -I$cf_add_incdir"
6685 cat >conftest.
$ac_ext <<_ACEOF
6686 #line 6686 "configure"
6687 #include "confdefs.h"
6697 rm -f conftest.
$ac_objext
6698 if { (eval echo "$as_me:6698: \"$ac_compile\"") >&5
6699 (eval $ac_compile) 2>&5
6701 echo "$as_me:6701: \$? = $ac_status" >&5
6702 (exit $ac_status); } &&
6703 { ac_try
='test -s conftest.$ac_objext'
6704 { (eval echo "$as_me:6704: \"$ac_try\"") >&5
6707 echo "$as_me:6707: \$? = $ac_status" >&5
6708 (exit $ac_status); }; }; then
6711 echo "$as_me: failed program was:" >&5
6712 cat conftest.
$ac_ext >&5
6715 rm -f conftest.
$ac_objext conftest.
$ac_ext
6716 CPPFLAGS
=$cf_save_CPPFLAGS
6721 if test "$cf_have_incdir" = no
; then
6722 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6724 echo "${as_me:-configure}:6724: testing adding $cf_add_incdir to include-path ..." 1>&5
6726 CPPFLAGS
="$CPPFLAGS -I$cf_add_incdir"
6728 cf_top_incdir
=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6729 test "$cf_top_incdir" = "$cf_add_incdir" && break
6730 cf_add_incdir
="$cf_top_incdir"
6746 cat >conftest.
$ac_ext <<_ACEOF
6747 #line 6747 "configure"
6748 #include "confdefs.h"
6750 #include <$cf_header>
6755 #ifdef NCURSES_VERSION
6757 printf("%s\n", NCURSES_VERSION);
6770 rm -f conftest.
$ac_objext
6771 if { (eval echo "$as_me:6771: \"$ac_compile\"") >&5
6772 (eval $ac_compile) 2>&5
6774 echo "$as_me:6774: \$? = $ac_status" >&5
6775 (exit $ac_status); } &&
6776 { ac_try
='test -s conftest.$ac_objext'
6777 { (eval echo "$as_me:6777: \"$ac_try\"") >&5
6780 echo "$as_me:6780: \$? = $ac_status" >&5
6781 (exit $ac_status); }; }; then
6782 cf_cv_ncurses_h2
=$cf_header
6785 echo "$as_me: failed program was:" >&5
6786 cat conftest.
$ac_ext >&5
6789 rm -f conftest.
$ac_objext conftest.
$ac_ext
6791 if test "$cf_cv_ncurses_h2" != no
; then
6792 cf_cv_ncurses_h2
=$cf_incdir/$cf_header
6793 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
6796 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
6798 CPPFLAGS
="$cf_save2_CPPFLAGS"
6799 test "$cf_cv_ncurses_h2" != no
&& break
6801 test "$cf_cv_ncurses_h2" = no
&& { { echo "$as_me:6801: error: not found" >&5
6802 echo "$as_me: error: not found" >&2;}
6803 { (exit 1); exit 1; }; }
6806 echo "$as_me:6806: result: $cf_cv_ncurses_h2" >&5
6807 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
6809 cf_1st_incdir
=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
6810 cf_cv_ncurses_header
=`basename $cf_cv_ncurses_h2`
6811 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
6812 cf_cv_ncurses_header
=$cf_ncuhdr_root/$cf_cv_ncurses_header
6815 if test -n "$cf_1st_incdir" ; then
6816 for cf_add_incdir
in $cf_1st_incdir
6818 while test $cf_add_incdir != /usr
/include
6820 if test -d $cf_add_incdir
6823 if test -n "$CFLAGS$CPPFLAGS" ; then
6824 # a loop is needed to ensure we can add subdirs of existing dirs
6825 for cf_test_incdir
in $CFLAGS $CPPFLAGS ; do
6826 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6827 cf_have_incdir
=yes; break
6832 if test "$cf_have_incdir" = no
; then
6833 if test "$cf_add_incdir" = /usr
/local
/include
; then
6834 if test "$GCC" = yes
6836 cf_save_CPPFLAGS
=$CPPFLAGS
6837 CPPFLAGS
="$CPPFLAGS -I$cf_add_incdir"
6838 cat >conftest.
$ac_ext <<_ACEOF
6839 #line 6839 "configure"
6840 #include "confdefs.h"
6850 rm -f conftest.
$ac_objext
6851 if { (eval echo "$as_me:6851: \"$ac_compile\"") >&5
6852 (eval $ac_compile) 2>&5
6854 echo "$as_me:6854: \$? = $ac_status" >&5
6855 (exit $ac_status); } &&
6856 { ac_try
='test -s conftest.$ac_objext'
6857 { (eval echo "$as_me:6857: \"$ac_try\"") >&5
6860 echo "$as_me:6860: \$? = $ac_status" >&5
6861 (exit $ac_status); }; }; then
6864 echo "$as_me: failed program was:" >&5
6865 cat conftest.
$ac_ext >&5
6868 rm -f conftest.
$ac_objext conftest.
$ac_ext
6869 CPPFLAGS
=$cf_save_CPPFLAGS
6874 if test "$cf_have_incdir" = no
; then
6875 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6877 echo "${as_me:-configure}:6877: testing adding $cf_add_incdir to include-path ..." 1>&5
6879 CPPFLAGS
="$CPPFLAGS -I$cf_add_incdir"
6881 cf_top_incdir
=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6882 test "$cf_top_incdir" = "$cf_add_incdir" && break
6883 cf_add_incdir
="$cf_top_incdir"
6896 # Set definitions to allow ifdef'ing for ncurses.h
6898 case $cf_cv_ncurses_header in
6901 cat >>confdefs.h
<<\EOF
6902 #define HAVE_NCURSES_H 1
6908 case $cf_cv_ncurses_header in
6909 (ncurses
/curses.h|ncurses
/ncurses.h
)
6911 cat >>confdefs.h
<<\EOF
6912 #define HAVE_NCURSES_NCURSES_H 1
6916 (ncursesw
/curses.h|ncursesw
/ncurses.h
)
6918 cat >>confdefs.h
<<\EOF
6919 #define HAVE_NCURSESW_NCURSES_H 1
6925 echo "$as_me:6925: checking for terminfo header" >&5
6926 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
6927 if test "${cf_cv_term_header+set}" = set; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
6931 case ${cf_cv_ncurses_header} in
6932 (*/ncurses.h|
*/ncursesw.h
)
6933 cf_term_header
=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
6936 cf_term_header
=term.h
6940 for cf_test
in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
6942 cat >conftest.
$ac_ext <<_ACEOF
6943 #line 6943 "configure"
6944 #include "confdefs.h"
6946 #include <${cf_cv_ncurses_header:-curses.h}>
6952 int x = auto_left_margin
6957 rm -f conftest.
$ac_objext
6958 if { (eval echo "$as_me:6958: \"$ac_compile\"") >&5
6959 (eval $ac_compile) 2>&5
6961 echo "$as_me:6961: \$? = $ac_status" >&5
6962 (exit $ac_status); } &&
6963 { ac_try
='test -s conftest.$ac_objext'
6964 { (eval echo "$as_me:6964: \"$ac_try\"") >&5
6967 echo "$as_me:6967: \$? = $ac_status" >&5
6968 (exit $ac_status); }; }; then
6970 cf_cv_term_header
="$cf_test"
6972 echo "$as_me: failed program was:" >&5
6973 cat conftest.
$ac_ext >&5
6975 cf_cv_term_header
=unknown
6978 rm -f conftest.
$ac_objext conftest.
$ac_ext
6979 test "$cf_cv_term_header" != unknown
&& break
6983 echo "$as_me:6983: result: $cf_cv_term_header" >&5
6984 echo "${ECHO_T}$cf_cv_term_header" >&6
6986 # Set definitions to allow ifdef'ing to accommodate subdirectories
6988 case $cf_cv_term_header in
6991 cat >>confdefs.h
<<\EOF
6992 #define HAVE_TERM_H 1
6998 case $cf_cv_term_header in
7001 cat >>confdefs.h
<<\EOF
7002 #define HAVE_NCURSES_TERM_H 1
7008 cat >>confdefs.h
<<\EOF
7009 #define HAVE_NCURSESW_TERM_H 1
7015 # some applications need this, but should check for NCURSES_VERSION
7017 cat >>confdefs.h
<<\EOF
7021 echo "$as_me:7021: checking for ncurses version" >&5
7022 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
7023 if test "${cf_cv_ncurses_version+set}" = set; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7027 cf_cv_ncurses_version
=no
7030 if test "$cross_compiling" = yes; then
7032 # This will not work if the preprocessor splits the line after the
7033 # Autoconf token. The 'unproto' program does that.
7034 cat > conftest.
$ac_ext <<EOF
7035 #include <${cf_cv_ncurses_header:-curses.h}>
7037 #ifdef NCURSES_VERSION
7038 Autoconf NCURSES_VERSION
7046 cf_try
="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
7047 { (eval echo "$as_me:7047: \"$cf_try\"") >&5
7050 echo "$as_me:7050: \$? = $ac_status" >&5
7051 (exit $ac_status); }
7052 if test -f conftest.out
; then
7053 cf_out
=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
7054 test -n "$cf_out" && cf_cv_ncurses_version
="$cf_out"
7059 cat >conftest.
$ac_ext <<_ACEOF
7060 #line 7060 "configure"
7061 #include "confdefs.h"
7063 #include <${cf_cv_ncurses_header:-curses.h}>
7067 FILE *fp = fopen("$cf_tempfile", "w");
7068 #ifdef NCURSES_VERSION
7069 # ifdef NCURSES_VERSION_PATCH
7070 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
7072 fprintf(fp, "%s\n", NCURSES_VERSION);
7076 fprintf(fp, "old\n");
7081 ${cf_cv_main_return:-return}(0);
7084 rm -f conftest
$ac_exeext
7085 if { (eval echo "$as_me:7085: \"$ac_link\"") >&5
7086 (eval $ac_link) 2>&5
7088 echo "$as_me:7088: \$? = $ac_status" >&5
7089 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7090 { (eval echo "$as_me:7090: \"$ac_try\"") >&5
7093 echo "$as_me:7093: \$? = $ac_status" >&5
7094 (exit $ac_status); }; }; then
7096 cf_cv_ncurses_version
=`cat $cf_tempfile`
7098 echo "$as_me: program exited with status $ac_status" >&5
7099 echo "$as_me: failed program was:" >&5
7100 cat conftest.
$ac_ext >&5
7102 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7107 echo "$as_me:7107: result: $cf_cv_ncurses_version" >&5
7108 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
7109 test "$cf_cv_ncurses_version" = no ||
7110 cat >>confdefs.h
<<\EOF
7114 cf_nculib_root
=$cf_cv_screen
7115 # This works, except for the special case where we find gpm, but
7116 # ncurses is in a nonstandard location via $LIBS, and we really want
7119 cf_ncurses_SAVE
="$LIBS"
7120 echo "$as_me:7120: checking for Gpm_Open in -lgpm" >&5
7121 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
7122 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7125 ac_check_lib_save_LIBS
=$LIBS
7127 cat >conftest.
$ac_ext <<_ACEOF
7128 #line 7128 "configure"
7129 #include "confdefs.h"
7131 /* Override any gcc2 internal prototype to avoid an error. */
7135 /* We use char because int might match the return type of a gcc2
7136 builtin and then its argument prototype would still apply. */
7146 rm -f conftest.
$ac_objext conftest
$ac_exeext
7147 if { (eval echo "$as_me:7147: \"$ac_link\"") >&5
7148 (eval $ac_link) 2>&5
7150 echo "$as_me:7150: \$? = $ac_status" >&5
7151 (exit $ac_status); } &&
7152 { ac_try
='test -s conftest$ac_exeext'
7153 { (eval echo "$as_me:7153: \"$ac_try\"") >&5
7156 echo "$as_me:7156: \$? = $ac_status" >&5
7157 (exit $ac_status); }; }; then
7158 ac_cv_lib_gpm_Gpm_Open
=yes
7160 echo "$as_me: failed program was:" >&5
7161 cat conftest.
$ac_ext >&5
7162 ac_cv_lib_gpm_Gpm_Open
=no
7164 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7165 LIBS
=$ac_check_lib_save_LIBS
7167 echo "$as_me:7167: result: $ac_cv_lib_gpm_Gpm_Open" >&5
7168 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
7169 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
7170 echo "$as_me:7170: checking for initscr in -lgpm" >&5
7171 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
7172 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
7173 echo $ECHO_N "(cached) $ECHO_C" >&6
7175 ac_check_lib_save_LIBS
=$LIBS
7177 cat >conftest.
$ac_ext <<_ACEOF
7178 #line 7178 "configure"
7179 #include "confdefs.h"
7181 /* Override any gcc2 internal prototype to avoid an error. */
7185 /* We use char because int might match the return type of a gcc2
7186 builtin and then its argument prototype would still apply. */
7196 rm -f conftest.
$ac_objext conftest
$ac_exeext
7197 if { (eval echo "$as_me:7197: \"$ac_link\"") >&5
7198 (eval $ac_link) 2>&5
7200 echo "$as_me:7200: \$? = $ac_status" >&5
7201 (exit $ac_status); } &&
7202 { ac_try
='test -s conftest$ac_exeext'
7203 { (eval echo "$as_me:7203: \"$ac_try\"") >&5
7206 echo "$as_me:7206: \$? = $ac_status" >&5
7207 (exit $ac_status); }; }; then
7208 ac_cv_lib_gpm_initscr
=yes
7210 echo "$as_me: failed program was:" >&5
7211 cat conftest.
$ac_ext >&5
7212 ac_cv_lib_gpm_initscr
=no
7214 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7215 LIBS
=$ac_check_lib_save_LIBS
7217 echo "$as_me:7217: result: $ac_cv_lib_gpm_initscr" >&5
7218 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
7219 if test $ac_cv_lib_gpm_initscr = yes; then
7220 LIBS
="$cf_ncurses_SAVE"
7222 cf_ncurses_LIBS
="-lgpm"
7229 # This is only necessary if you are linking against an obsolete
7230 # version of ncurses (but it should do no harm, since it's static).
7231 if test "$cf_nculib_root" = ncurses
; then
7232 echo "$as_me:7232: checking for tgoto in -lmytinfo" >&5
7233 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
7234 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7237 ac_check_lib_save_LIBS
=$LIBS
7238 LIBS
="-lmytinfo $LIBS"
7239 cat >conftest.
$ac_ext <<_ACEOF
7240 #line 7240 "configure"
7241 #include "confdefs.h"
7243 /* Override any gcc2 internal prototype to avoid an error. */
7247 /* We use char because int might match the return type of a gcc2
7248 builtin and then its argument prototype would still apply. */
7258 rm -f conftest.
$ac_objext conftest
$ac_exeext
7259 if { (eval echo "$as_me:7259: \"$ac_link\"") >&5
7260 (eval $ac_link) 2>&5
7262 echo "$as_me:7262: \$? = $ac_status" >&5
7263 (exit $ac_status); } &&
7264 { ac_try
='test -s conftest$ac_exeext'
7265 { (eval echo "$as_me:7265: \"$ac_try\"") >&5
7268 echo "$as_me:7268: \$? = $ac_status" >&5
7269 (exit $ac_status); }; }; then
7270 ac_cv_lib_mytinfo_tgoto
=yes
7272 echo "$as_me: failed program was:" >&5
7273 cat conftest.
$ac_ext >&5
7274 ac_cv_lib_mytinfo_tgoto
=no
7276 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7277 LIBS
=$ac_check_lib_save_LIBS
7279 echo "$as_me:7279: result: $ac_cv_lib_mytinfo_tgoto" >&5
7280 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
7281 if test $ac_cv_lib_mytinfo_tgoto = yes; then
7282 cf_ncurses_LIBS
="-lmytinfo $cf_ncurses_LIBS"
7289 cf_add_libs
="$cf_ncurses_LIBS"
7290 # Filter out duplicates - this happens with badly-designed ".pc" files...
7291 for cf_add_1lib
in $LIBS
7293 for cf_add_2lib
in $cf_add_libs
7295 if test "x$cf_add_1lib" = "x$cf_add_2lib"
7301 test -n "$cf_add_1lib" && cf_add_libs
="$cf_add_libs $cf_add_1lib"
7305 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
7308 cf_add_libs
="-l$cf_nculib_root"
7309 # Filter out duplicates - this happens with badly-designed ".pc" files...
7310 for cf_add_1lib
in $LIBS
7312 for cf_add_2lib
in $cf_add_libs
7314 if test "x$cf_add_1lib" = "x$cf_add_2lib"
7320 test -n "$cf_add_1lib" && cf_add_libs
="$cf_add_libs $cf_add_1lib"
7326 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
7328 echo "$as_me:7328: checking for initscr" >&5
7329 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
7330 if test "${ac_cv_func_initscr+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7333 cat >conftest.
$ac_ext <<_ACEOF
7334 #line 7334 "configure"
7335 #include "confdefs.h"
7336 /* System header to define __stub macros and hopefully few prototypes,
7337 which can conflict with char initscr (); below. */
7339 /* Override any gcc2 internal prototype to avoid an error. */
7343 /* We use char because int might match the return type of a gcc2
7344 builtin and then its argument prototype would still apply. */
7351 /* The GNU C library defines this for functions which it implements
7352 to always fail with ENOSYS. Some functions are actually named
7353 something starting with __ and the normal name is an alias. */
7354 #if defined (__stub_initscr) || defined (__stub___initscr)
7357 f = initscr; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
7364 rm -f conftest.
$ac_objext conftest
$ac_exeext
7365 if { (eval echo "$as_me:7365: \"$ac_link\"") >&5
7366 (eval $ac_link) 2>&5
7368 echo "$as_me:7368: \$? = $ac_status" >&5
7369 (exit $ac_status); } &&
7370 { ac_try
='test -s conftest$ac_exeext'
7371 { (eval echo "$as_me:7371: \"$ac_try\"") >&5
7374 echo "$as_me:7374: \$? = $ac_status" >&5
7375 (exit $ac_status); }; }; then
7376 ac_cv_func_initscr
=yes
7378 echo "$as_me: failed program was:" >&5
7379 cat conftest.
$ac_ext >&5
7380 ac_cv_func_initscr
=no
7382 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7384 echo "$as_me:7384: result: $ac_cv_func_initscr" >&5
7385 echo "${ECHO_T}$ac_cv_func_initscr" >&6
7386 if test $ac_cv_func_initscr = yes; then
7387 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
7390 cf_save_LIBS
="$LIBS"
7391 echo "$as_me:7391: checking for initscr in -l$cf_nculib_root" >&5
7392 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
7393 LIBS
="-l$cf_nculib_root $LIBS"
7394 cat >conftest.
$ac_ext <<_ACEOF
7395 #line 7395 "configure"
7396 #include "confdefs.h"
7397 #include <${cf_cv_ncurses_header:-curses.h}>
7406 rm -f conftest.
$ac_objext conftest
$ac_exeext
7407 if { (eval echo "$as_me:7407: \"$ac_link\"") >&5
7408 (eval $ac_link) 2>&5
7410 echo "$as_me:7410: \$? = $ac_status" >&5
7411 (exit $ac_status); } &&
7412 { ac_try
='test -s conftest$ac_exeext'
7413 { (eval echo "$as_me:7413: \"$ac_try\"") >&5
7416 echo "$as_me:7416: \$? = $ac_status" >&5
7417 (exit $ac_status); }; }; then
7418 echo "$as_me:7418: result: yes" >&5
7419 echo "${ECHO_T}yes" >&6
7420 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
7423 echo "$as_me: failed program was:" >&5
7424 cat conftest.
$ac_ext >&5
7425 echo "$as_me:7425: result: no" >&5
7426 echo "${ECHO_T}no" >&6
7429 cf_library_path_list
=""
7430 if test -n "${LDFLAGS}${LIBS}" ; then
7431 for cf_library_path
in $LDFLAGS $LIBS
7433 case $cf_library_path in
7435 cf_library_path
=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
7437 test "x$cf_library_path" != "xNONE" && \
7438 test -d "$cf_library_path" && \
7440 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
7441 test -d $cf_library_path/lib
&& cf_search
="$cf_search $cf_library_path/lib"
7442 test -d $cf_library_path/lib
/$cf_nculib_root && cf_search
="$cf_search $cf_library_path/lib/$cf_nculib_root"
7443 test -d $cf_library_path/lib
/$cf_nculib_root/lib
&& cf_search
="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
7444 test -d $cf_library_path/$cf_nculib_root/lib
&& cf_search
="$cf_search $cf_library_path/$cf_nculib_root/lib"
7445 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"
7448 cf_library_path_list
="$cf_library_path_list $cf_search"
7456 test "x$prefix" != "xNONE" && \
7457 test -d "$prefix" && \
7459 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
7460 test -d $prefix/lib
&& cf_search
="$cf_search $prefix/lib"
7461 test -d $prefix/lib
/$cf_nculib_root && cf_search
="$cf_search $prefix/lib/$cf_nculib_root"
7462 test -d $prefix/lib
/$cf_nculib_root/lib
&& cf_search
="$cf_search $prefix/lib/$cf_nculib_root/lib"
7463 test -d $prefix/$cf_nculib_root/lib
&& cf_search
="$cf_search $prefix/$cf_nculib_root/lib"
7464 test -d $prefix/$cf_nculib_root/lib
/$cf_nculib_root && cf_search
="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
7467 for cf_subdir_prefix
in \
7476 test "x$cf_subdir_prefix" != "x$prefix" && \
7477 test -d "$cf_subdir_prefix" && \
7478 (test -z "$prefix" ||
test x
$prefix = xNONE ||
test "x$cf_subdir_prefix" != "x$prefix") && {
7479 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
7480 test -d $cf_subdir_prefix/lib
&& cf_search
="$cf_search $cf_subdir_prefix/lib"
7481 test -d $cf_subdir_prefix/lib
/$cf_nculib_root && cf_search
="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root"
7482 test -d $cf_subdir_prefix/lib
/$cf_nculib_root/lib
&& cf_search
="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root/lib"
7483 test -d $cf_subdir_prefix/$cf_nculib_root/lib
&& cf_search
="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib"
7484 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"
7489 cf_search
="$cf_library_path_list $cf_search"
7491 for cf_libdir
in $cf_search
7493 echo "$as_me:7493: checking for -l$cf_nculib_root in $cf_libdir" >&5
7494 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
7495 LIBS
="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
7496 cat >conftest.
$ac_ext <<_ACEOF
7497 #line 7497 "configure"
7498 #include "confdefs.h"
7499 #include <${cf_cv_ncurses_header:-curses.h}>
7508 rm -f conftest.
$ac_objext conftest
$ac_exeext
7509 if { (eval echo "$as_me:7509: \"$ac_link\"") >&5
7510 (eval $ac_link) 2>&5
7512 echo "$as_me:7512: \$? = $ac_status" >&5
7513 (exit $ac_status); } &&
7514 { ac_try
='test -s conftest$ac_exeext'
7515 { (eval echo "$as_me:7515: \"$ac_try\"") >&5
7518 echo "$as_me:7518: \$? = $ac_status" >&5
7519 (exit $ac_status); }; }; then
7520 echo "$as_me:7520: result: yes" >&5
7521 echo "${ECHO_T}yes" >&6
7522 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
7525 echo "$as_me: failed program was:" >&5
7526 cat conftest.
$ac_ext >&5
7527 echo "$as_me:7527: result: no" >&5
7528 echo "${ECHO_T}no" >&6
7529 LIBS
="$cf_save_LIBS"
7531 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7535 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7539 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
7541 if test $cf_found_library = no
; then
7542 { { echo "$as_me:7542: error: Cannot link $cf_nculib_root library" >&5
7543 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
7544 { (exit 1); exit 1; }; }
7549 if test -n "$cf_ncurses_LIBS" ; then
7550 echo "$as_me:7550: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
7551 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
7552 cf_ncurses_SAVE
="$LIBS"
7553 for p
in $cf_ncurses_LIBS ; do
7554 q
=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
7555 if test "$q" != "$LIBS" ; then
7559 cat >conftest.
$ac_ext <<_ACEOF
7560 #line 7560 "configure"
7561 #include "confdefs.h"
7562 #include <${cf_cv_ncurses_header:-curses.h}>
7566 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
7571 rm -f conftest.
$ac_objext conftest
$ac_exeext
7572 if { (eval echo "$as_me:7572: \"$ac_link\"") >&5
7573 (eval $ac_link) 2>&5
7575 echo "$as_me:7575: \$? = $ac_status" >&5
7576 (exit $ac_status); } &&
7577 { ac_try
='test -s conftest$ac_exeext'
7578 { (eval echo "$as_me:7578: \"$ac_try\"") >&5
7581 echo "$as_me:7581: \$? = $ac_status" >&5
7582 (exit $ac_status); }; }; then
7583 echo "$as_me:7583: result: yes" >&5
7584 echo "${ECHO_T}yes" >&6
7586 echo "$as_me: failed program was:" >&5
7587 cat conftest.
$ac_ext >&5
7588 echo "$as_me:7588: result: no" >&5
7589 echo "${ECHO_T}no" >&6
7590 LIBS
="$cf_ncurses_SAVE"
7592 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7595 cf_nculib_ROOT
=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7597 cat >>confdefs.h
<<EOF
7598 #define $cf_nculib_ROOT 1
7609 cf_ncuconfig_root
=$cf_cv_screen
7610 cf_have_ncuconfig
=no
7612 if test "x${PKG_CONFIG:=none}" != xnone
; then
7613 echo "$as_me:7613: checking pkg-config for $cf_ncuconfig_root" >&5
7614 echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
7615 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
7616 echo "$as_me:7616: result: yes" >&5
7617 echo "${ECHO_T}yes" >&6
7619 echo "$as_me:7619: checking if the $cf_ncuconfig_root package files work" >&5
7620 echo $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
7621 cf_have_ncuconfig
=unknown
7623 cf_save_CPPFLAGS
="$CPPFLAGS"
7624 cf_save_LIBS
="$LIBS"
7626 CPPFLAGS
="$CPPFLAGS `$PKG_CONFIG --cflags $cf_ncuconfig_root`"
7628 cf_add_libs
="`$PKG_CONFIG --libs $cf_ncuconfig_root`"
7629 # Filter out duplicates - this happens with badly-designed ".pc" files...
7630 for cf_add_1lib
in $LIBS
7632 for cf_add_2lib
in $cf_add_libs
7634 if test "x$cf_add_1lib" = "x$cf_add_2lib"
7640 test -n "$cf_add_1lib" && cf_add_libs
="$cf_add_libs $cf_add_1lib"
7644 cat >conftest.
$ac_ext <<_ACEOF
7645 #line 7645 "configure"
7646 #include "confdefs.h"
7647 #include <${cf_cv_ncurses_header:-curses.h}>
7651 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
7656 rm -f conftest.
$ac_objext conftest
$ac_exeext
7657 if { (eval echo "$as_me:7657: \"$ac_link\"") >&5
7658 (eval $ac_link) 2>&5
7660 echo "$as_me:7660: \$? = $ac_status" >&5
7661 (exit $ac_status); } &&
7662 { ac_try
='test -s conftest$ac_exeext'
7663 { (eval echo "$as_me:7663: \"$ac_try\"") >&5
7666 echo "$as_me:7666: \$? = $ac_status" >&5
7667 (exit $ac_status); }; }; then
7668 if test "$cross_compiling" = yes; then
7669 cf_have_ncuconfig
=maybe
7671 cat >conftest.
$ac_ext <<_ACEOF
7672 #line 7672 "configure"
7673 #include "confdefs.h"
7674 #include <${cf_cv_ncurses_header:-curses.h}>
7676 { char *xx = curses_version(); return (xx == 0); }
7678 rm -f conftest
$ac_exeext
7679 if { (eval echo "$as_me:7679: \"$ac_link\"") >&5
7680 (eval $ac_link) 2>&5
7682 echo "$as_me:7682: \$? = $ac_status" >&5
7683 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7684 { (eval echo "$as_me:7684: \"$ac_try\"") >&5
7687 echo "$as_me:7687: \$? = $ac_status" >&5
7688 (exit $ac_status); }; }; then
7689 cf_have_ncuconfig
=yes
7691 echo "$as_me: program exited with status $ac_status" >&5
7692 echo "$as_me: failed program was:" >&5
7693 cat conftest.
$ac_ext >&5
7694 cf_have_ncuconfig
=no
7696 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7699 echo "$as_me: failed program was:" >&5
7700 cat conftest.
$ac_ext >&5
7701 cf_have_ncuconfig
=no
7703 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7704 echo "$as_me:7704: result: $cf_have_ncuconfig" >&5
7705 echo "${ECHO_T}$cf_have_ncuconfig" >&6
7706 test "$cf_have_ncuconfig" = maybe
&& cf_have_ncuconfig
=yes
7707 if test "$cf_have_ncuconfig" != "yes"
7709 CPPFLAGS
="$cf_save_CPPFLAGS"
7710 LIBS
="$cf_save_LIBS"
7711 NCURSES_CONFIG_PKG
=none
7714 cat >>confdefs.h
<<\EOF
7718 NCURSES_CONFIG_PKG
=$cf_ncuconfig_root
7722 echo "$as_me:7722: result: no" >&5
7723 echo "${ECHO_T}no" >&6
7724 NCURSES_CONFIG_PKG
=none
7727 NCURSES_CONFIG_PKG
=none
7730 if test "x$cf_have_ncuconfig" = "xno"; then
7731 echo "Looking for ${cf_ncuconfig_root}-config"
7733 if test -n "$ac_tool_prefix"; then
7734 for ac_prog
in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
7736 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7737 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
7738 echo "$as_me:7738: checking for $ac_word" >&5
7739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7740 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
7741 echo $ECHO_N "(cached) $ECHO_C" >&6
7743 if test -n "$NCURSES_CONFIG"; then
7744 ac_cv_prog_NCURSES_CONFIG
="$NCURSES_CONFIG" # Let the user override the test.
7746 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
7748 for ac_dir
in $ac_dummy; do
7750 test -z "$ac_dir" && ac_dir
=.
7751 $as_executable_p "$ac_dir/$ac_word" ||
continue
7752 ac_cv_prog_NCURSES_CONFIG
="$ac_tool_prefix$ac_prog"
7753 echo "$as_me:7753: found $ac_dir/$ac_word" >&5
7759 NCURSES_CONFIG
=$ac_cv_prog_NCURSES_CONFIG
7760 if test -n "$NCURSES_CONFIG"; then
7761 echo "$as_me:7761: result: $NCURSES_CONFIG" >&5
7762 echo "${ECHO_T}$NCURSES_CONFIG" >&6
7764 echo "$as_me:7764: result: no" >&5
7765 echo "${ECHO_T}no" >&6
7768 test -n "$NCURSES_CONFIG" && break
7771 if test -z "$NCURSES_CONFIG"; then
7772 ac_ct_NCURSES_CONFIG
=$NCURSES_CONFIG
7773 for ac_prog
in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
7775 # Extract the first word of "$ac_prog", so it can be a program name with args.
7776 set dummy
$ac_prog; ac_word
=$2
7777 echo "$as_me:7777: checking for $ac_word" >&5
7778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7779 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
7782 if test -n "$ac_ct_NCURSES_CONFIG"; then
7783 ac_cv_prog_ac_ct_NCURSES_CONFIG
="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
7785 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
7787 for ac_dir
in $ac_dummy; do
7789 test -z "$ac_dir" && ac_dir
=.
7790 $as_executable_p "$ac_dir/$ac_word" ||
continue
7791 ac_cv_prog_ac_ct_NCURSES_CONFIG
="$ac_prog"
7792 echo "$as_me:7792: found $ac_dir/$ac_word" >&5
7798 ac_ct_NCURSES_CONFIG
=$ac_cv_prog_ac_ct_NCURSES_CONFIG
7799 if test -n "$ac_ct_NCURSES_CONFIG"; then
7800 echo "$as_me:7800: result: $ac_ct_NCURSES_CONFIG" >&5
7801 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
7803 echo "$as_me:7803: result: no" >&5
7804 echo "${ECHO_T}no" >&6
7807 test -n "$ac_ct_NCURSES_CONFIG" && break
7809 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG
="none"
7811 NCURSES_CONFIG
=$ac_ct_NCURSES_CONFIG
7814 if test "$NCURSES_CONFIG" != none
; then
7816 CPPFLAGS
="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
7818 cf_add_libs
="`$NCURSES_CONFIG --libs`"
7819 # Filter out duplicates - this happens with badly-designed ".pc" files...
7820 for cf_add_1lib
in $LIBS
7822 for cf_add_2lib
in $cf_add_libs
7824 if test "x$cf_add_1lib" = "x$cf_add_2lib"
7830 test -n "$cf_add_1lib" && cf_add_libs
="$cf_add_libs $cf_add_1lib"
7834 # even with config script, some packages use no-override for curses.h
7836 echo "$as_me:7836: checking if we have identified curses headers" >&5
7837 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
7838 if test "${cf_cv_ncurses_header+set}" = set; then
7839 echo $ECHO_N "(cached) $ECHO_C" >&6
7842 cf_cv_ncurses_header
=none
7844 ncurses.h
$cf_cv_screen/ncurses.h \
7845 curses.h
$cf_cv_screen/curses.h
7847 cat >conftest.
$ac_ext <<_ACEOF
7848 #line 7848 "configure"
7849 #include "confdefs.h"
7850 #include <${cf_header}>
7854 initscr(); tgoto("?", 0,0)
7859 rm -f conftest.
$ac_objext
7860 if { (eval echo "$as_me:7860: \"$ac_compile\"") >&5
7861 (eval $ac_compile) 2>&5
7863 echo "$as_me:7863: \$? = $ac_status" >&5
7864 (exit $ac_status); } &&
7865 { ac_try
='test -s conftest.$ac_objext'
7866 { (eval echo "$as_me:7866: \"$ac_try\"") >&5
7869 echo "$as_me:7869: \$? = $ac_status" >&5
7870 (exit $ac_status); }; }; then
7871 cf_cv_ncurses_header
=$cf_header; break
7873 echo "$as_me: failed program was:" >&5
7874 cat conftest.
$ac_ext >&5
7876 rm -f conftest.
$ac_objext conftest.
$ac_ext
7880 echo "$as_me:7880: result: $cf_cv_ncurses_header" >&5
7881 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
7883 if test "$cf_cv_ncurses_header" = none
; then
7884 { { echo "$as_me:7884: error: No curses header-files found" >&5
7885 echo "$as_me: error: No curses header-files found" >&2;}
7886 { (exit 1); exit 1; }; }
7889 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
7891 for ac_header
in $cf_cv_ncurses_header
7893 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7894 echo "$as_me:7894: checking for $ac_header" >&5
7895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7897 echo $ECHO_N "(cached) $ECHO_C" >&6
7899 cat >conftest.
$ac_ext <<_ACEOF
7900 #line 7900 "configure"
7901 #include "confdefs.h"
7902 #include <$ac_header>
7904 if { (eval echo "$as_me:7904: \"$ac_cpp conftest.$ac_ext\"") >&5
7905 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7907 egrep -v '^ *\+' conftest.er1
>conftest.err
7909 cat conftest.err
>&5
7910 echo "$as_me:7910: \$? = $ac_status" >&5
7911 (exit $ac_status); } >/dev
/null
; then
7912 if test -s conftest.err
; then
7913 ac_cpp_err
=$ac_c_preproc_warn_flag
7920 if test -z "$ac_cpp_err"; then
7921 eval "$as_ac_Header=yes"
7923 echo "$as_me: failed program was:" >&5
7924 cat conftest.
$ac_ext >&5
7925 eval "$as_ac_Header=no"
7927 rm -f conftest.err conftest.
$ac_ext
7929 echo "$as_me:7929: result: `eval echo '${'$as_ac_Header'}'`" >&5
7930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7931 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7932 cat >>confdefs.h
<<EOF
7933 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7939 cat >>confdefs.h
<<\EOF
7943 cf_nculib_ROOT
=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7945 cat >>confdefs.h
<<EOF
7946 #define $cf_nculib_ROOT 1
7949 cf_cv_ncurses_version
=`$NCURSES_CONFIG --version`
7953 cf_ncuhdr_root
=$cf_cv_screen
7955 test -n "$cf_cv_curses_dir" && \
7956 test "$cf_cv_curses_dir" != "no" && { \
7958 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
7959 for cf_add_incdir
in $cf_cv_curses_dir/include
/$cf_ncuhdr_root
7961 while test $cf_add_incdir != /usr
/include
7963 if test -d $cf_add_incdir
7966 if test -n "$CFLAGS$CPPFLAGS" ; then
7967 # a loop is needed to ensure we can add subdirs of existing dirs
7968 for cf_test_incdir
in $CFLAGS $CPPFLAGS ; do
7969 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7970 cf_have_incdir
=yes; break
7975 if test "$cf_have_incdir" = no
; then
7976 if test "$cf_add_incdir" = /usr
/local
/include
; then
7977 if test "$GCC" = yes
7979 cf_save_CPPFLAGS
=$CPPFLAGS
7980 CPPFLAGS
="$CPPFLAGS -I$cf_add_incdir"
7981 cat >conftest.
$ac_ext <<_ACEOF
7982 #line 7982 "configure"
7983 #include "confdefs.h"
7993 rm -f conftest.
$ac_objext
7994 if { (eval echo "$as_me:7994: \"$ac_compile\"") >&5
7995 (eval $ac_compile) 2>&5
7997 echo "$as_me:7997: \$? = $ac_status" >&5
7998 (exit $ac_status); } &&
7999 { ac_try
='test -s conftest.$ac_objext'
8000 { (eval echo "$as_me:8000: \"$ac_try\"") >&5
8003 echo "$as_me:8003: \$? = $ac_status" >&5
8004 (exit $ac_status); }; }; then
8007 echo "$as_me: failed program was:" >&5
8008 cat conftest.
$ac_ext >&5
8011 rm -f conftest.
$ac_objext conftest.
$ac_ext
8012 CPPFLAGS
=$cf_save_CPPFLAGS
8017 if test "$cf_have_incdir" = no
; then
8018 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8020 echo "${as_me:-configure}:8020: testing adding $cf_add_incdir to include-path ..." 1>&5
8022 CPPFLAGS
="$CPPFLAGS -I$cf_add_incdir"
8024 cf_top_incdir
=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8025 test "$cf_top_incdir" = "$cf_add_incdir" && break
8026 cf_add_incdir
="$cf_top_incdir"
8039 echo "$as_me:8039: checking for $cf_ncuhdr_root header in include-path" >&5
8040 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
8041 if test "${cf_cv_ncurses_h+set}" = set; then
8042 echo $ECHO_N "(cached) $ECHO_C" >&6
8045 cf_header_list
="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
8046 ( test "$cf_ncuhdr_root" = ncurses ||
test "$cf_ncuhdr_root" = ncursesw
) && cf_header_list
="$cf_header_list curses.h ncurses.h"
8047 for cf_header
in $cf_header_list
8050 cat >conftest.
$ac_ext <<_ACEOF
8051 #line 8051 "configure"
8052 #include "confdefs.h"
8054 #include <$cf_header>
8059 #ifdef NCURSES_VERSION
8061 printf("%s\n", NCURSES_VERSION);
8074 rm -f conftest.
$ac_objext
8075 if { (eval echo "$as_me:8075: \"$ac_compile\"") >&5
8076 (eval $ac_compile) 2>&5
8078 echo "$as_me:8078: \$? = $ac_status" >&5
8079 (exit $ac_status); } &&
8080 { ac_try
='test -s conftest.$ac_objext'
8081 { (eval echo "$as_me:8081: \"$ac_try\"") >&5
8084 echo "$as_me:8084: \$? = $ac_status" >&5
8085 (exit $ac_status); }; }; then
8086 cf_cv_ncurses_h
=$cf_header
8089 echo "$as_me: failed program was:" >&5
8090 cat conftest.
$ac_ext >&5
8093 rm -f conftest.
$ac_objext conftest.
$ac_ext
8095 test "$cf_cv_ncurses_h" != no
&& break
8099 echo "$as_me:8099: result: $cf_cv_ncurses_h" >&5
8100 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
8102 if test "$cf_cv_ncurses_h" != no
; then
8103 cf_cv_ncurses_header
=$cf_cv_ncurses_h
8106 echo "$as_me:8106: checking for $cf_ncuhdr_root include-path" >&5
8107 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
8108 if test "${cf_cv_ncurses_h2+set}" = set; then
8109 echo $ECHO_N "(cached) $ECHO_C" >&6
8112 test -n "$verbose" && echo
8116 # collect the current set of include-directories from compiler flags
8117 cf_header_path_list
=""
8118 if test -n "${CFLAGS}${CPPFLAGS}" ; then
8119 for cf_header_path
in $CPPFLAGS $CFLAGS
8121 case $cf_header_path in
8123 cf_header_path
=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
8125 test "x$cf_header_path" != "xNONE" && \
8126 test -d "$cf_header_path" && \
8128 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
8129 test -d $cf_header_path/include
&& cf_search
="$cf_search $cf_header_path/include"
8130 test -d $cf_header_path/include
/$cf_ncuhdr_root && cf_search
="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
8131 test -d $cf_header_path/include
/$cf_ncuhdr_root/include
&& cf_search
="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
8132 test -d $cf_header_path/$cf_ncuhdr_root/include
&& cf_search
="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
8133 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"
8136 cf_header_path_list
="$cf_header_path_list $cf_search"
8142 # add the variations for the package we are looking for
8146 test "x$prefix" != "xNONE" && \
8147 test -d "$prefix" && \
8149 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
8150 test -d $prefix/include
&& cf_search
="$cf_search $prefix/include"
8151 test -d $prefix/include
/$cf_ncuhdr_root && cf_search
="$cf_search $prefix/include/$cf_ncuhdr_root"
8152 test -d $prefix/include
/$cf_ncuhdr_root/include
&& cf_search
="$cf_search $prefix/include/$cf_ncuhdr_root/include"
8153 test -d $prefix/$cf_ncuhdr_root/include
&& cf_search
="$cf_search $prefix/$cf_ncuhdr_root/include"
8154 test -d $prefix/$cf_ncuhdr_root/include
/$cf_ncuhdr_root && cf_search
="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
8157 for cf_subdir_prefix
in \
8166 test "x$cf_subdir_prefix" != "x$prefix" && \
8167 test -d "$cf_subdir_prefix" && \
8168 (test -z "$prefix" ||
test x
$prefix = xNONE ||
test "x$cf_subdir_prefix" != "x$prefix") && {
8169 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
8170 test -d $cf_subdir_prefix/include
&& cf_search
="$cf_search $cf_subdir_prefix/include"
8171 test -d $cf_subdir_prefix/include
/$cf_ncuhdr_root && cf_search
="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root"
8172 test -d $cf_subdir_prefix/include
/$cf_ncuhdr_root/include
&& cf_search
="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root/include"
8173 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include
&& cf_search
="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include"
8174 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"
8179 test "$includedir" != NONE
&& \
8180 test "$includedir" != "/usr/include" && \
8181 test -d "$includedir" && {
8182 test -d $includedir && cf_search
="$cf_search $includedir"
8183 test -d $includedir/$cf_ncuhdr_root && cf_search
="$cf_search $includedir/$cf_ncuhdr_root"
8186 test "$oldincludedir" != NONE
&& \
8187 test "$oldincludedir" != "/usr/include" && \
8188 test -d "$oldincludedir" && {
8189 test -d $oldincludedir && cf_search
="$cf_search $oldincludedir"
8190 test -d $oldincludedir/$cf_ncuhdr_root && cf_search
="$cf_search $oldincludedir/$cf_ncuhdr_root"
8193 cf_search
="$cf_search $cf_header_path_list"
8195 test -n "$verbose" && echo search path
$cf_search
8196 cf_save2_CPPFLAGS
="$CPPFLAGS"
8197 for cf_incdir
in $cf_search
8200 if test -n "$cf_incdir" ; then
8201 for cf_add_incdir
in $cf_incdir
8203 while test $cf_add_incdir != /usr
/include
8205 if test -d $cf_add_incdir
8208 if test -n "$CFLAGS$CPPFLAGS" ; then
8209 # a loop is needed to ensure we can add subdirs of existing dirs
8210 for cf_test_incdir
in $CFLAGS $CPPFLAGS ; do
8211 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8212 cf_have_incdir
=yes; break
8217 if test "$cf_have_incdir" = no
; then
8218 if test "$cf_add_incdir" = /usr
/local
/include
; then
8219 if test "$GCC" = yes
8221 cf_save_CPPFLAGS
=$CPPFLAGS
8222 CPPFLAGS
="$CPPFLAGS -I$cf_add_incdir"
8223 cat >conftest.
$ac_ext <<_ACEOF
8224 #line 8224 "configure"
8225 #include "confdefs.h"
8235 rm -f conftest.
$ac_objext
8236 if { (eval echo "$as_me:8236: \"$ac_compile\"") >&5
8237 (eval $ac_compile) 2>&5
8239 echo "$as_me:8239: \$? = $ac_status" >&5
8240 (exit $ac_status); } &&
8241 { ac_try
='test -s conftest.$ac_objext'
8242 { (eval echo "$as_me:8242: \"$ac_try\"") >&5
8245 echo "$as_me:8245: \$? = $ac_status" >&5
8246 (exit $ac_status); }; }; then
8249 echo "$as_me: failed program was:" >&5
8250 cat conftest.
$ac_ext >&5
8253 rm -f conftest.
$ac_objext conftest.
$ac_ext
8254 CPPFLAGS
=$cf_save_CPPFLAGS
8259 if test "$cf_have_incdir" = no
; then
8260 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8262 echo "${as_me:-configure}:8262: testing adding $cf_add_incdir to include-path ..." 1>&5
8264 CPPFLAGS
="$CPPFLAGS -I$cf_add_incdir"
8266 cf_top_incdir
=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8267 test "$cf_top_incdir" = "$cf_add_incdir" && break
8268 cf_add_incdir
="$cf_top_incdir"
8284 cat >conftest.
$ac_ext <<_ACEOF
8285 #line 8285 "configure"
8286 #include "confdefs.h"
8288 #include <$cf_header>
8293 #ifdef NCURSES_VERSION
8295 printf("%s\n", NCURSES_VERSION);
8308 rm -f conftest.
$ac_objext
8309 if { (eval echo "$as_me:8309: \"$ac_compile\"") >&5
8310 (eval $ac_compile) 2>&5
8312 echo "$as_me:8312: \$? = $ac_status" >&5
8313 (exit $ac_status); } &&
8314 { ac_try
='test -s conftest.$ac_objext'
8315 { (eval echo "$as_me:8315: \"$ac_try\"") >&5
8318 echo "$as_me:8318: \$? = $ac_status" >&5
8319 (exit $ac_status); }; }; then
8320 cf_cv_ncurses_h2
=$cf_header
8323 echo "$as_me: failed program was:" >&5
8324 cat conftest.
$ac_ext >&5
8327 rm -f conftest.
$ac_objext conftest.
$ac_ext
8329 if test "$cf_cv_ncurses_h2" != no
; then
8330 cf_cv_ncurses_h2
=$cf_incdir/$cf_header
8331 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
8334 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
8336 CPPFLAGS
="$cf_save2_CPPFLAGS"
8337 test "$cf_cv_ncurses_h2" != no
&& break
8339 test "$cf_cv_ncurses_h2" = no
&& { { echo "$as_me:8339: error: not found" >&5
8340 echo "$as_me: error: not found" >&2;}
8341 { (exit 1); exit 1; }; }
8344 echo "$as_me:8344: result: $cf_cv_ncurses_h2" >&5
8345 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
8347 cf_1st_incdir
=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
8348 cf_cv_ncurses_header
=`basename $cf_cv_ncurses_h2`
8349 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
8350 cf_cv_ncurses_header
=$cf_ncuhdr_root/$cf_cv_ncurses_header
8353 if test -n "$cf_1st_incdir" ; then
8354 for cf_add_incdir
in $cf_1st_incdir
8356 while test $cf_add_incdir != /usr
/include
8358 if test -d $cf_add_incdir
8361 if test -n "$CFLAGS$CPPFLAGS" ; then
8362 # a loop is needed to ensure we can add subdirs of existing dirs
8363 for cf_test_incdir
in $CFLAGS $CPPFLAGS ; do
8364 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8365 cf_have_incdir
=yes; break
8370 if test "$cf_have_incdir" = no
; then
8371 if test "$cf_add_incdir" = /usr
/local
/include
; then
8372 if test "$GCC" = yes
8374 cf_save_CPPFLAGS
=$CPPFLAGS
8375 CPPFLAGS
="$CPPFLAGS -I$cf_add_incdir"
8376 cat >conftest.
$ac_ext <<_ACEOF
8377 #line 8377 "configure"
8378 #include "confdefs.h"
8388 rm -f conftest.
$ac_objext
8389 if { (eval echo "$as_me:8389: \"$ac_compile\"") >&5
8390 (eval $ac_compile) 2>&5
8392 echo "$as_me:8392: \$? = $ac_status" >&5
8393 (exit $ac_status); } &&
8394 { ac_try
='test -s conftest.$ac_objext'
8395 { (eval echo "$as_me:8395: \"$ac_try\"") >&5
8398 echo "$as_me:8398: \$? = $ac_status" >&5
8399 (exit $ac_status); }; }; then
8402 echo "$as_me: failed program was:" >&5
8403 cat conftest.
$ac_ext >&5
8406 rm -f conftest.
$ac_objext conftest.
$ac_ext
8407 CPPFLAGS
=$cf_save_CPPFLAGS
8412 if test "$cf_have_incdir" = no
; then
8413 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8415 echo "${as_me:-configure}:8415: testing adding $cf_add_incdir to include-path ..." 1>&5
8417 CPPFLAGS
="$CPPFLAGS -I$cf_add_incdir"
8419 cf_top_incdir
=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8420 test "$cf_top_incdir" = "$cf_add_incdir" && break
8421 cf_add_incdir
="$cf_top_incdir"
8434 # Set definitions to allow ifdef'ing for ncurses.h
8436 case $cf_cv_ncurses_header in
8439 cat >>confdefs.h
<<\EOF
8440 #define HAVE_NCURSES_H 1
8446 case $cf_cv_ncurses_header in
8447 (ncurses
/curses.h|ncurses
/ncurses.h
)
8449 cat >>confdefs.h
<<\EOF
8450 #define HAVE_NCURSES_NCURSES_H 1
8454 (ncursesw
/curses.h|ncursesw
/ncurses.h
)
8456 cat >>confdefs.h
<<\EOF
8457 #define HAVE_NCURSESW_NCURSES_H 1
8463 echo "$as_me:8463: checking for terminfo header" >&5
8464 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
8465 if test "${cf_cv_term_header+set}" = set; then
8466 echo $ECHO_N "(cached) $ECHO_C" >&6
8469 case ${cf_cv_ncurses_header} in
8470 (*/ncurses.h|
*/ncursesw.h
)
8471 cf_term_header
=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
8474 cf_term_header
=term.h
8478 for cf_test
in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
8480 cat >conftest.
$ac_ext <<_ACEOF
8481 #line 8481 "configure"
8482 #include "confdefs.h"
8484 #include <${cf_cv_ncurses_header:-curses.h}>
8490 int x = auto_left_margin
8495 rm -f conftest.
$ac_objext
8496 if { (eval echo "$as_me:8496: \"$ac_compile\"") >&5
8497 (eval $ac_compile) 2>&5
8499 echo "$as_me:8499: \$? = $ac_status" >&5
8500 (exit $ac_status); } &&
8501 { ac_try
='test -s conftest.$ac_objext'
8502 { (eval echo "$as_me:8502: \"$ac_try\"") >&5
8505 echo "$as_me:8505: \$? = $ac_status" >&5
8506 (exit $ac_status); }; }; then
8508 cf_cv_term_header
="$cf_test"
8510 echo "$as_me: failed program was:" >&5
8511 cat conftest.
$ac_ext >&5
8513 cf_cv_term_header
=unknown
8516 rm -f conftest.
$ac_objext conftest.
$ac_ext
8517 test "$cf_cv_term_header" != unknown
&& break
8521 echo "$as_me:8521: result: $cf_cv_term_header" >&5
8522 echo "${ECHO_T}$cf_cv_term_header" >&6
8524 # Set definitions to allow ifdef'ing to accommodate subdirectories
8526 case $cf_cv_term_header in
8529 cat >>confdefs.h
<<\EOF
8530 #define HAVE_TERM_H 1
8536 case $cf_cv_term_header in
8539 cat >>confdefs.h
<<\EOF
8540 #define HAVE_NCURSES_TERM_H 1
8546 cat >>confdefs.h
<<\EOF
8547 #define HAVE_NCURSESW_TERM_H 1
8553 # some applications need this, but should check for NCURSES_VERSION
8555 cat >>confdefs.h
<<\EOF
8559 echo "$as_me:8559: checking for ncurses version" >&5
8560 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
8561 if test "${cf_cv_ncurses_version+set}" = set; then
8562 echo $ECHO_N "(cached) $ECHO_C" >&6
8565 cf_cv_ncurses_version
=no
8568 if test "$cross_compiling" = yes; then
8570 # This will not work if the preprocessor splits the line after the
8571 # Autoconf token. The 'unproto' program does that.
8572 cat > conftest.
$ac_ext <<EOF
8573 #include <${cf_cv_ncurses_header:-curses.h}>
8575 #ifdef NCURSES_VERSION
8576 Autoconf NCURSES_VERSION
8584 cf_try
="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
8585 { (eval echo "$as_me:8585: \"$cf_try\"") >&5
8588 echo "$as_me:8588: \$? = $ac_status" >&5
8589 (exit $ac_status); }
8590 if test -f conftest.out
; then
8591 cf_out
=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
8592 test -n "$cf_out" && cf_cv_ncurses_version
="$cf_out"
8597 cat >conftest.
$ac_ext <<_ACEOF
8598 #line 8598 "configure"
8599 #include "confdefs.h"
8601 #include <${cf_cv_ncurses_header:-curses.h}>
8605 FILE *fp = fopen("$cf_tempfile", "w");
8606 #ifdef NCURSES_VERSION
8607 # ifdef NCURSES_VERSION_PATCH
8608 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
8610 fprintf(fp, "%s\n", NCURSES_VERSION);
8614 fprintf(fp, "old\n");
8619 ${cf_cv_main_return:-return}(0);
8622 rm -f conftest
$ac_exeext
8623 if { (eval echo "$as_me:8623: \"$ac_link\"") >&5
8624 (eval $ac_link) 2>&5
8626 echo "$as_me:8626: \$? = $ac_status" >&5
8627 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8628 { (eval echo "$as_me:8628: \"$ac_try\"") >&5
8631 echo "$as_me:8631: \$? = $ac_status" >&5
8632 (exit $ac_status); }; }; then
8634 cf_cv_ncurses_version
=`cat $cf_tempfile`
8636 echo "$as_me: program exited with status $ac_status" >&5
8637 echo "$as_me: failed program was:" >&5
8638 cat conftest.
$ac_ext >&5
8640 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8645 echo "$as_me:8645: result: $cf_cv_ncurses_version" >&5
8646 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
8647 test "$cf_cv_ncurses_version" = no ||
8648 cat >>confdefs.h
<<\EOF
8652 cf_nculib_root
=$cf_cv_screen
8653 # This works, except for the special case where we find gpm, but
8654 # ncurses is in a nonstandard location via $LIBS, and we really want
8657 cf_ncurses_SAVE
="$LIBS"
8658 echo "$as_me:8658: checking for Gpm_Open in -lgpm" >&5
8659 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
8660 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
8661 echo $ECHO_N "(cached) $ECHO_C" >&6
8663 ac_check_lib_save_LIBS
=$LIBS
8665 cat >conftest.
$ac_ext <<_ACEOF
8666 #line 8666 "configure"
8667 #include "confdefs.h"
8669 /* Override any gcc2 internal prototype to avoid an error. */
8673 /* We use char because int might match the return type of a gcc2
8674 builtin and then its argument prototype would still apply. */
8684 rm -f conftest.
$ac_objext conftest
$ac_exeext
8685 if { (eval echo "$as_me:8685: \"$ac_link\"") >&5
8686 (eval $ac_link) 2>&5
8688 echo "$as_me:8688: \$? = $ac_status" >&5
8689 (exit $ac_status); } &&
8690 { ac_try
='test -s conftest$ac_exeext'
8691 { (eval echo "$as_me:8691: \"$ac_try\"") >&5
8694 echo "$as_me:8694: \$? = $ac_status" >&5
8695 (exit $ac_status); }; }; then
8696 ac_cv_lib_gpm_Gpm_Open
=yes
8698 echo "$as_me: failed program was:" >&5
8699 cat conftest.
$ac_ext >&5
8700 ac_cv_lib_gpm_Gpm_Open
=no
8702 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8703 LIBS
=$ac_check_lib_save_LIBS
8705 echo "$as_me:8705: result: $ac_cv_lib_gpm_Gpm_Open" >&5
8706 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
8707 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
8708 echo "$as_me:8708: checking for initscr in -lgpm" >&5
8709 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
8710 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
8711 echo $ECHO_N "(cached) $ECHO_C" >&6
8713 ac_check_lib_save_LIBS
=$LIBS
8715 cat >conftest.
$ac_ext <<_ACEOF
8716 #line 8716 "configure"
8717 #include "confdefs.h"
8719 /* Override any gcc2 internal prototype to avoid an error. */
8723 /* We use char because int might match the return type of a gcc2
8724 builtin and then its argument prototype would still apply. */
8734 rm -f conftest.
$ac_objext conftest
$ac_exeext
8735 if { (eval echo "$as_me:8735: \"$ac_link\"") >&5
8736 (eval $ac_link) 2>&5
8738 echo "$as_me:8738: \$? = $ac_status" >&5
8739 (exit $ac_status); } &&
8740 { ac_try
='test -s conftest$ac_exeext'
8741 { (eval echo "$as_me:8741: \"$ac_try\"") >&5
8744 echo "$as_me:8744: \$? = $ac_status" >&5
8745 (exit $ac_status); }; }; then
8746 ac_cv_lib_gpm_initscr
=yes
8748 echo "$as_me: failed program was:" >&5
8749 cat conftest.
$ac_ext >&5
8750 ac_cv_lib_gpm_initscr
=no
8752 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8753 LIBS
=$ac_check_lib_save_LIBS
8755 echo "$as_me:8755: result: $ac_cv_lib_gpm_initscr" >&5
8756 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
8757 if test $ac_cv_lib_gpm_initscr = yes; then
8758 LIBS
="$cf_ncurses_SAVE"
8760 cf_ncurses_LIBS
="-lgpm"
8767 # This is only necessary if you are linking against an obsolete
8768 # version of ncurses (but it should do no harm, since it's static).
8769 if test "$cf_nculib_root" = ncurses
; then
8770 echo "$as_me:8770: checking for tgoto in -lmytinfo" >&5
8771 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
8772 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
8773 echo $ECHO_N "(cached) $ECHO_C" >&6
8775 ac_check_lib_save_LIBS
=$LIBS
8776 LIBS
="-lmytinfo $LIBS"
8777 cat >conftest.
$ac_ext <<_ACEOF
8778 #line 8778 "configure"
8779 #include "confdefs.h"
8781 /* Override any gcc2 internal prototype to avoid an error. */
8785 /* We use char because int might match the return type of a gcc2
8786 builtin and then its argument prototype would still apply. */
8796 rm -f conftest.
$ac_objext conftest
$ac_exeext
8797 if { (eval echo "$as_me:8797: \"$ac_link\"") >&5
8798 (eval $ac_link) 2>&5
8800 echo "$as_me:8800: \$? = $ac_status" >&5
8801 (exit $ac_status); } &&
8802 { ac_try
='test -s conftest$ac_exeext'
8803 { (eval echo "$as_me:8803: \"$ac_try\"") >&5
8806 echo "$as_me:8806: \$? = $ac_status" >&5
8807 (exit $ac_status); }; }; then
8808 ac_cv_lib_mytinfo_tgoto
=yes
8810 echo "$as_me: failed program was:" >&5
8811 cat conftest.
$ac_ext >&5
8812 ac_cv_lib_mytinfo_tgoto
=no
8814 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8815 LIBS
=$ac_check_lib_save_LIBS
8817 echo "$as_me:8817: result: $ac_cv_lib_mytinfo_tgoto" >&5
8818 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
8819 if test $ac_cv_lib_mytinfo_tgoto = yes; then
8820 cf_ncurses_LIBS
="-lmytinfo $cf_ncurses_LIBS"
8827 cf_add_libs
="$cf_ncurses_LIBS"
8828 # Filter out duplicates - this happens with badly-designed ".pc" files...
8829 for cf_add_1lib
in $LIBS
8831 for cf_add_2lib
in $cf_add_libs
8833 if test "x$cf_add_1lib" = "x$cf_add_2lib"
8839 test -n "$cf_add_1lib" && cf_add_libs
="$cf_add_libs $cf_add_1lib"
8843 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
8846 cf_add_libs
="-l$cf_nculib_root"
8847 # Filter out duplicates - this happens with badly-designed ".pc" files...
8848 for cf_add_1lib
in $LIBS
8850 for cf_add_2lib
in $cf_add_libs
8852 if test "x$cf_add_1lib" = "x$cf_add_2lib"
8858 test -n "$cf_add_1lib" && cf_add_libs
="$cf_add_libs $cf_add_1lib"
8864 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
8866 echo "$as_me:8866: checking for initscr" >&5
8867 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
8868 if test "${ac_cv_func_initscr+set}" = set; then
8869 echo $ECHO_N "(cached) $ECHO_C" >&6
8871 cat >conftest.
$ac_ext <<_ACEOF
8872 #line 8872 "configure"
8873 #include "confdefs.h"
8874 /* System header to define __stub macros and hopefully few prototypes,
8875 which can conflict with char initscr (); below. */
8877 /* Override any gcc2 internal prototype to avoid an error. */
8881 /* We use char because int might match the return type of a gcc2
8882 builtin and then its argument prototype would still apply. */
8889 /* The GNU C library defines this for functions which it implements
8890 to always fail with ENOSYS. Some functions are actually named
8891 something starting with __ and the normal name is an alias. */
8892 #if defined (__stub_initscr) || defined (__stub___initscr)
8895 f = initscr; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
8902 rm -f conftest.
$ac_objext conftest
$ac_exeext
8903 if { (eval echo "$as_me:8903: \"$ac_link\"") >&5
8904 (eval $ac_link) 2>&5
8906 echo "$as_me:8906: \$? = $ac_status" >&5
8907 (exit $ac_status); } &&
8908 { ac_try
='test -s conftest$ac_exeext'
8909 { (eval echo "$as_me:8909: \"$ac_try\"") >&5
8912 echo "$as_me:8912: \$? = $ac_status" >&5
8913 (exit $ac_status); }; }; then
8914 ac_cv_func_initscr
=yes
8916 echo "$as_me: failed program was:" >&5
8917 cat conftest.
$ac_ext >&5
8918 ac_cv_func_initscr
=no
8920 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8922 echo "$as_me:8922: result: $ac_cv_func_initscr" >&5
8923 echo "${ECHO_T}$ac_cv_func_initscr" >&6
8924 if test $ac_cv_func_initscr = yes; then
8925 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
8928 cf_save_LIBS
="$LIBS"
8929 echo "$as_me:8929: checking for initscr in -l$cf_nculib_root" >&5
8930 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
8931 LIBS
="-l$cf_nculib_root $LIBS"
8932 cat >conftest.
$ac_ext <<_ACEOF
8933 #line 8933 "configure"
8934 #include "confdefs.h"
8935 #include <${cf_cv_ncurses_header:-curses.h}>
8944 rm -f conftest.
$ac_objext conftest
$ac_exeext
8945 if { (eval echo "$as_me:8945: \"$ac_link\"") >&5
8946 (eval $ac_link) 2>&5
8948 echo "$as_me:8948: \$? = $ac_status" >&5
8949 (exit $ac_status); } &&
8950 { ac_try
='test -s conftest$ac_exeext'
8951 { (eval echo "$as_me:8951: \"$ac_try\"") >&5
8954 echo "$as_me:8954: \$? = $ac_status" >&5
8955 (exit $ac_status); }; }; then
8956 echo "$as_me:8956: result: yes" >&5
8957 echo "${ECHO_T}yes" >&6
8958 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
8961 echo "$as_me: failed program was:" >&5
8962 cat conftest.
$ac_ext >&5
8963 echo "$as_me:8963: result: no" >&5
8964 echo "${ECHO_T}no" >&6
8967 cf_library_path_list
=""
8968 if test -n "${LDFLAGS}${LIBS}" ; then
8969 for cf_library_path
in $LDFLAGS $LIBS
8971 case $cf_library_path in
8973 cf_library_path
=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
8975 test "x$cf_library_path" != "xNONE" && \
8976 test -d "$cf_library_path" && \
8978 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
8979 test -d $cf_library_path/lib
&& cf_search
="$cf_search $cf_library_path/lib"
8980 test -d $cf_library_path/lib
/$cf_nculib_root && cf_search
="$cf_search $cf_library_path/lib/$cf_nculib_root"
8981 test -d $cf_library_path/lib
/$cf_nculib_root/lib
&& cf_search
="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
8982 test -d $cf_library_path/$cf_nculib_root/lib
&& cf_search
="$cf_search $cf_library_path/$cf_nculib_root/lib"
8983 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"
8986 cf_library_path_list
="$cf_library_path_list $cf_search"
8994 test "x$prefix" != "xNONE" && \
8995 test -d "$prefix" && \
8997 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
8998 test -d $prefix/lib
&& cf_search
="$cf_search $prefix/lib"
8999 test -d $prefix/lib
/$cf_nculib_root && cf_search
="$cf_search $prefix/lib/$cf_nculib_root"
9000 test -d $prefix/lib
/$cf_nculib_root/lib
&& cf_search
="$cf_search $prefix/lib/$cf_nculib_root/lib"
9001 test -d $prefix/$cf_nculib_root/lib
&& cf_search
="$cf_search $prefix/$cf_nculib_root/lib"
9002 test -d $prefix/$cf_nculib_root/lib
/$cf_nculib_root && cf_search
="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
9005 for cf_subdir_prefix
in \
9014 test "x$cf_subdir_prefix" != "x$prefix" && \
9015 test -d "$cf_subdir_prefix" && \
9016 (test -z "$prefix" ||
test x
$prefix = xNONE ||
test "x$cf_subdir_prefix" != "x$prefix") && {
9017 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
9018 test -d $cf_subdir_prefix/lib
&& cf_search
="$cf_search $cf_subdir_prefix/lib"
9019 test -d $cf_subdir_prefix/lib
/$cf_nculib_root && cf_search
="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root"
9020 test -d $cf_subdir_prefix/lib
/$cf_nculib_root/lib
&& cf_search
="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root/lib"
9021 test -d $cf_subdir_prefix/$cf_nculib_root/lib
&& cf_search
="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib"
9022 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"
9027 cf_search
="$cf_library_path_list $cf_search"
9029 for cf_libdir
in $cf_search
9031 echo "$as_me:9031: checking for -l$cf_nculib_root in $cf_libdir" >&5
9032 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
9033 LIBS
="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
9034 cat >conftest.
$ac_ext <<_ACEOF
9035 #line 9035 "configure"
9036 #include "confdefs.h"
9037 #include <${cf_cv_ncurses_header:-curses.h}>
9046 rm -f conftest.
$ac_objext conftest
$ac_exeext
9047 if { (eval echo "$as_me:9047: \"$ac_link\"") >&5
9048 (eval $ac_link) 2>&5
9050 echo "$as_me:9050: \$? = $ac_status" >&5
9051 (exit $ac_status); } &&
9052 { ac_try
='test -s conftest$ac_exeext'
9053 { (eval echo "$as_me:9053: \"$ac_try\"") >&5
9056 echo "$as_me:9056: \$? = $ac_status" >&5
9057 (exit $ac_status); }; }; then
9058 echo "$as_me:9058: result: yes" >&5
9059 echo "${ECHO_T}yes" >&6
9060 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
9063 echo "$as_me: failed program was:" >&5
9064 cat conftest.
$ac_ext >&5
9065 echo "$as_me:9065: result: no" >&5
9066 echo "${ECHO_T}no" >&6
9067 LIBS
="$cf_save_LIBS"
9069 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9073 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9077 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
9079 if test $cf_found_library = no
; then
9080 { { echo "$as_me:9080: error: Cannot link $cf_nculib_root library" >&5
9081 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
9082 { (exit 1); exit 1; }; }
9087 if test -n "$cf_ncurses_LIBS" ; then
9088 echo "$as_me:9088: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
9089 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
9090 cf_ncurses_SAVE
="$LIBS"
9091 for p
in $cf_ncurses_LIBS ; do
9092 q
=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
9093 if test "$q" != "$LIBS" ; then
9097 cat >conftest.
$ac_ext <<_ACEOF
9098 #line 9098 "configure"
9099 #include "confdefs.h"
9100 #include <${cf_cv_ncurses_header:-curses.h}>
9104 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
9109 rm -f conftest.
$ac_objext conftest
$ac_exeext
9110 if { (eval echo "$as_me:9110: \"$ac_link\"") >&5
9111 (eval $ac_link) 2>&5
9113 echo "$as_me:9113: \$? = $ac_status" >&5
9114 (exit $ac_status); } &&
9115 { ac_try
='test -s conftest$ac_exeext'
9116 { (eval echo "$as_me:9116: \"$ac_try\"") >&5
9119 echo "$as_me:9119: \$? = $ac_status" >&5
9120 (exit $ac_status); }; }; then
9121 echo "$as_me:9121: result: yes" >&5
9122 echo "${ECHO_T}yes" >&6
9124 echo "$as_me: failed program was:" >&5
9125 cat conftest.
$ac_ext >&5
9126 echo "$as_me:9126: result: no" >&5
9127 echo "${ECHO_T}no" >&6
9128 LIBS
="$cf_ncurses_SAVE"
9130 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9133 cf_nculib_ROOT
=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
9135 cat >>confdefs.h
<<EOF
9136 #define $cf_nculib_ROOT 1
9146 echo "$as_me:9146: checking for X" >&5
9147 echo $ECHO_N "checking for X... $ECHO_C" >&6
9149 # Check whether --with-x or --without-x was given.
9150 if test "${with_x+set}" = set; then
9154 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9155 if test "x$with_x" = xno
; then
9156 # The user explicitly disabled X.
9159 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
9160 # Both variables are already set.
9163 if test "${ac_cv_have_x+set}" = set; then
9164 echo $ECHO_N "(cached) $ECHO_C" >&6
9166 # One or both of the vars are not set, and there is no cached value.
9167 ac_x_includes
=no ac_x_libraries
=no
9169 if mkdir conftest.dir
; then
9171 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9172 cat >Imakefile
<<'EOF'
9174 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9176 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
9177 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9178 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9179 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9180 for ac_extension
in a so sl dylib dll
; do
9181 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
9182 test -f $ac_im_libdir/libX11.
$ac_extension; then
9183 ac_im_usrlibdir
=$ac_im_libdir; break
9186 # Screen out bogus values from the imake configuration. They are
9187 # bogus both because they are the default anyway, and because
9188 # using them would break gcc on systems where it needs fixed includes.
9189 case $ac_im_incroot in
9191 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
9193 case $ac_im_usrlibdir in
9195 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
9202 # Standard set of common directories for X headers.
9203 # Check X11 before X11Rn because it is often a symlink to the current release.
9215 /usr/local/X11/include
9216 /usr/local/X11R6/include
9217 /usr/local/X11R5/include
9218 /usr/local/X11R4/include
9220 /usr/local/include/X11
9221 /usr/local/include/X11R6
9222 /usr/local/include/X11R5
9223 /usr/local/include/X11R4
9227 /usr/XFree86/include/X11
9231 /usr/unsupported/include
9233 /usr/local/x11r5/include
9234 /usr/lpp/Xamples/include
9236 /usr/openwin/include
9237 /usr/openwin/share/include'
9239 if test "$ac_x_includes" = no
; then
9240 # Guess where to find include files, by looking for Intrinsic.h.
9241 # First, try using that file with no special directory specified.
9242 cat >conftest.
$ac_ext <<_ACEOF
9243 #line 9243 "configure"
9244 #include "confdefs.h"
9245 #include <X11/Intrinsic.h>
9247 if { (eval echo "$as_me:9247: \"$ac_cpp conftest.$ac_ext\"") >&5
9248 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9250 egrep -v '^ *\+' conftest.er1
>conftest.err
9252 cat conftest.err
>&5
9253 echo "$as_me:9253: \$? = $ac_status" >&5
9254 (exit $ac_status); } >/dev
/null
; then
9255 if test -s conftest.err
; then
9256 ac_cpp_err
=$ac_c_preproc_warn_flag
9263 if test -z "$ac_cpp_err"; then
9264 # We can compile using X headers with no special include directory.
9267 echo "$as_me: failed program was:" >&5
9268 cat conftest.
$ac_ext >&5
9269 for ac_dir
in $ac_x_header_dirs; do
9270 if test -r "$ac_dir/X11/Intrinsic.h"; then
9271 ac_x_includes
=$ac_dir
9276 rm -f conftest.err conftest.
$ac_ext
9277 fi # $ac_x_includes = no
9279 if test "$ac_x_libraries" = no
; then
9280 # Check for the libraries.
9281 # See if we find them without any special options.
9282 # Don't add to $LIBS permanently.
9285 cat >conftest.
$ac_ext <<_ACEOF
9286 #line 9286 "configure"
9287 #include "confdefs.h"
9288 #include <X11/Intrinsic.h>
9297 rm -f conftest.
$ac_objext conftest
$ac_exeext
9298 if { (eval echo "$as_me:9298: \"$ac_link\"") >&5
9299 (eval $ac_link) 2>&5
9301 echo "$as_me:9301: \$? = $ac_status" >&5
9302 (exit $ac_status); } &&
9303 { ac_try
='test -s conftest$ac_exeext'
9304 { (eval echo "$as_me:9304: \"$ac_try\"") >&5
9307 echo "$as_me:9307: \$? = $ac_status" >&5
9308 (exit $ac_status); }; }; then
9310 # We can link X programs with no special library path.
9313 echo "$as_me: failed program was:" >&5
9314 cat conftest.
$ac_ext >&5
9316 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9318 # Don't even attempt the hair of trying to link an X program!
9319 for ac_extension
in a so sl dylib dll
; do
9320 if test -r $ac_dir/libXt.
$ac_extension; then
9321 ac_x_libraries
=$ac_dir
9327 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9328 fi # $ac_x_libraries = no
9330 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
9331 # Didn't find X anywhere. Cache the known absence of X.
9332 ac_cv_have_x
="have_x=no"
9334 # Record where we found X for the cache.
9335 ac_cv_have_x
="have_x=yes \
9336 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9341 eval "$ac_cv_have_x"
9344 if test "$have_x" != yes; then
9345 echo "$as_me:9345: result: $have_x" >&5
9346 echo "${ECHO_T}$have_x" >&6
9349 # If each of the values was on the command line, it overrides each guess.
9350 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
9351 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
9352 # Update the cache value to reflect the command line values.
9353 ac_cv_have_x
="have_x=yes \
9354 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9355 echo "$as_me:9355: result: libraries $x_libraries, headers $x_includes" >&5
9356 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9359 if test "$no_x" = yes; then
9360 # Not all programs may use this symbol, but it does not hurt to define it.
9362 cat >>confdefs.h
<<\EOF
9363 #define X_DISPLAY_MISSING 1
9366 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
9368 if test -n "$x_includes"; then
9369 X_CFLAGS
="$X_CFLAGS -I$x_includes"
9372 # It would also be nice to do this for all -L options, not just this one.
9373 if test -n "$x_libraries"; then
9374 X_LIBS
="$X_LIBS -L$x_libraries"
9375 # For Solaris; some versions of Sun CC require a space after -R and
9376 # others require no space. Words are not sufficient . . . .
9377 case `(uname -sr) 2>/dev/null` in
9379 echo "$as_me:9379: checking whether -R must be followed by a space" >&5
9380 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9381 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
9382 cat >conftest.
$ac_ext <<_ACEOF
9383 #line 9383 "configure"
9384 #include "confdefs.h"
9394 rm -f conftest.
$ac_objext conftest
$ac_exeext
9395 if { (eval echo "$as_me:9395: \"$ac_link\"") >&5
9396 (eval $ac_link) 2>&5
9398 echo "$as_me:9398: \$? = $ac_status" >&5
9399 (exit $ac_status); } &&
9400 { ac_try
='test -s conftest$ac_exeext'
9401 { (eval echo "$as_me:9401: \"$ac_try\"") >&5
9404 echo "$as_me:9404: \$? = $ac_status" >&5
9405 (exit $ac_status); }; }; then
9408 echo "$as_me: failed program was:" >&5
9409 cat conftest.
$ac_ext >&5
9412 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9413 if test $ac_R_nospace = yes; then
9414 echo "$as_me:9414: result: no" >&5
9415 echo "${ECHO_T}no" >&6
9416 X_LIBS
="$X_LIBS -R$x_libraries"
9418 LIBS
="$ac_xsave_LIBS -R $x_libraries"
9419 cat >conftest.
$ac_ext <<_ACEOF
9420 #line 9420 "configure"
9421 #include "confdefs.h"
9431 rm -f conftest.
$ac_objext conftest
$ac_exeext
9432 if { (eval echo "$as_me:9432: \"$ac_link\"") >&5
9433 (eval $ac_link) 2>&5
9435 echo "$as_me:9435: \$? = $ac_status" >&5
9436 (exit $ac_status); } &&
9437 { ac_try
='test -s conftest$ac_exeext'
9438 { (eval echo "$as_me:9438: \"$ac_try\"") >&5
9441 echo "$as_me:9441: \$? = $ac_status" >&5
9442 (exit $ac_status); }; }; then
9445 echo "$as_me: failed program was:" >&5
9446 cat conftest.
$ac_ext >&5
9449 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9450 if test $ac_R_space = yes; then
9451 echo "$as_me:9451: result: yes" >&5
9452 echo "${ECHO_T}yes" >&6
9453 X_LIBS
="$X_LIBS -R $x_libraries"
9455 echo "$as_me:9455: result: neither works" >&5
9456 echo "${ECHO_T}neither works" >&6
9463 # Check for system-dependent libraries X programs must link with.
9464 # Do this before checking for the system-independent R6 libraries
9465 # (-lICE), since we may need -lsocket or whatever for X linking.
9467 if test "$ISC" = yes; then
9468 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
9470 # Martyn Johnson says this is needed for Ultrix, if the X
9471 # libraries were built with DECnet support. And Karl Berry says
9472 # the Alpha needs dnet_stub (dnet does not exist).
9473 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
9474 cat >conftest.
$ac_ext <<_ACEOF
9475 #line 9475 "configure"
9476 #include "confdefs.h"
9478 /* Override any gcc2 internal prototype to avoid an error. */
9482 /* We use char because int might match the return type of a gcc2
9483 builtin and then its argument prototype would still apply. */
9484 char XOpenDisplay ();
9493 rm -f conftest.
$ac_objext conftest
$ac_exeext
9494 if { (eval echo "$as_me:9494: \"$ac_link\"") >&5
9495 (eval $ac_link) 2>&5
9497 echo "$as_me:9497: \$? = $ac_status" >&5
9498 (exit $ac_status); } &&
9499 { ac_try
='test -s conftest$ac_exeext'
9500 { (eval echo "$as_me:9500: \"$ac_try\"") >&5
9503 echo "$as_me:9503: \$? = $ac_status" >&5
9504 (exit $ac_status); }; }; then
9507 echo "$as_me: failed program was:" >&5
9508 cat conftest.
$ac_ext >&5
9509 echo "$as_me:9509: checking for dnet_ntoa in -ldnet" >&5
9510 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9511 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9512 echo $ECHO_N "(cached) $ECHO_C" >&6
9514 ac_check_lib_save_LIBS
=$LIBS
9516 cat >conftest.
$ac_ext <<_ACEOF
9517 #line 9517 "configure"
9518 #include "confdefs.h"
9520 /* Override any gcc2 internal prototype to avoid an error. */
9524 /* We use char because int might match the return type of a gcc2
9525 builtin and then its argument prototype would still apply. */
9535 rm -f conftest.
$ac_objext conftest
$ac_exeext
9536 if { (eval echo "$as_me:9536: \"$ac_link\"") >&5
9537 (eval $ac_link) 2>&5
9539 echo "$as_me:9539: \$? = $ac_status" >&5
9540 (exit $ac_status); } &&
9541 { ac_try
='test -s conftest$ac_exeext'
9542 { (eval echo "$as_me:9542: \"$ac_try\"") >&5
9545 echo "$as_me:9545: \$? = $ac_status" >&5
9546 (exit $ac_status); }; }; then
9547 ac_cv_lib_dnet_dnet_ntoa
=yes
9549 echo "$as_me: failed program was:" >&5
9550 cat conftest.
$ac_ext >&5
9551 ac_cv_lib_dnet_dnet_ntoa
=no
9553 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9554 LIBS
=$ac_check_lib_save_LIBS
9556 echo "$as_me:9556: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9557 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9558 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9559 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
9562 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
9563 echo "$as_me:9563: checking for dnet_ntoa in -ldnet_stub" >&5
9564 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9565 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9566 echo $ECHO_N "(cached) $ECHO_C" >&6
9568 ac_check_lib_save_LIBS
=$LIBS
9569 LIBS
="-ldnet_stub $LIBS"
9570 cat >conftest.
$ac_ext <<_ACEOF
9571 #line 9571 "configure"
9572 #include "confdefs.h"
9574 /* Override any gcc2 internal prototype to avoid an error. */
9578 /* We use char because int might match the return type of a gcc2
9579 builtin and then its argument prototype would still apply. */
9589 rm -f conftest.
$ac_objext conftest
$ac_exeext
9590 if { (eval echo "$as_me:9590: \"$ac_link\"") >&5
9591 (eval $ac_link) 2>&5
9593 echo "$as_me:9593: \$? = $ac_status" >&5
9594 (exit $ac_status); } &&
9595 { ac_try
='test -s conftest$ac_exeext'
9596 { (eval echo "$as_me:9596: \"$ac_try\"") >&5
9599 echo "$as_me:9599: \$? = $ac_status" >&5
9600 (exit $ac_status); }; }; then
9601 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
9603 echo "$as_me: failed program was:" >&5
9604 cat conftest.
$ac_ext >&5
9605 ac_cv_lib_dnet_stub_dnet_ntoa
=no
9607 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9608 LIBS
=$ac_check_lib_save_LIBS
9610 echo "$as_me:9610: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9611 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9612 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9613 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
9618 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9619 LIBS
="$ac_xsave_LIBS"
9621 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9622 # to get the SysV transport functions.
9623 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9625 # The nsl library prevents programs from opening the X display
9626 # on Irix 5.2, according to T.E. Dickey.
9627 # The functions gethostbyname, getservbyname, and inet_addr are
9628 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9629 echo "$as_me:9629: checking for gethostbyname" >&5
9630 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9631 if test "${ac_cv_func_gethostbyname+set}" = set; then
9632 echo $ECHO_N "(cached) $ECHO_C" >&6
9634 cat >conftest.
$ac_ext <<_ACEOF
9635 #line 9635 "configure"
9636 #include "confdefs.h"
9637 /* System header to define __stub macros and hopefully few prototypes,
9638 which can conflict with char gethostbyname (); below. */
9640 /* Override any gcc2 internal prototype to avoid an error. */
9644 /* We use char because int might match the return type of a gcc2
9645 builtin and then its argument prototype would still apply. */
9646 char gethostbyname ();
9652 /* The GNU C library defines this for functions which it implements
9653 to always fail with ENOSYS. Some functions are actually named
9654 something starting with __ and the normal name is an alias. */
9655 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9658 f = gethostbyname; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
9665 rm -f conftest.
$ac_objext conftest
$ac_exeext
9666 if { (eval echo "$as_me:9666: \"$ac_link\"") >&5
9667 (eval $ac_link) 2>&5
9669 echo "$as_me:9669: \$? = $ac_status" >&5
9670 (exit $ac_status); } &&
9671 { ac_try
='test -s conftest$ac_exeext'
9672 { (eval echo "$as_me:9672: \"$ac_try\"") >&5
9675 echo "$as_me:9675: \$? = $ac_status" >&5
9676 (exit $ac_status); }; }; then
9677 ac_cv_func_gethostbyname
=yes
9679 echo "$as_me: failed program was:" >&5
9680 cat conftest.
$ac_ext >&5
9681 ac_cv_func_gethostbyname
=no
9683 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9685 echo "$as_me:9685: result: $ac_cv_func_gethostbyname" >&5
9686 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9688 if test $ac_cv_func_gethostbyname = no
; then
9689 echo "$as_me:9689: checking for gethostbyname in -lnsl" >&5
9690 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9691 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
9694 ac_check_lib_save_LIBS
=$LIBS
9696 cat >conftest.
$ac_ext <<_ACEOF
9697 #line 9697 "configure"
9698 #include "confdefs.h"
9700 /* Override any gcc2 internal prototype to avoid an error. */
9704 /* We use char because int might match the return type of a gcc2
9705 builtin and then its argument prototype would still apply. */
9706 char gethostbyname ();
9715 rm -f conftest.
$ac_objext conftest
$ac_exeext
9716 if { (eval echo "$as_me:9716: \"$ac_link\"") >&5
9717 (eval $ac_link) 2>&5
9719 echo "$as_me:9719: \$? = $ac_status" >&5
9720 (exit $ac_status); } &&
9721 { ac_try
='test -s conftest$ac_exeext'
9722 { (eval echo "$as_me:9722: \"$ac_try\"") >&5
9725 echo "$as_me:9725: \$? = $ac_status" >&5
9726 (exit $ac_status); }; }; then
9727 ac_cv_lib_nsl_gethostbyname
=yes
9729 echo "$as_me: failed program was:" >&5
9730 cat conftest.
$ac_ext >&5
9731 ac_cv_lib_nsl_gethostbyname
=no
9733 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9734 LIBS
=$ac_check_lib_save_LIBS
9736 echo "$as_me:9736: result: $ac_cv_lib_nsl_gethostbyname" >&5
9737 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9738 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9739 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
9742 if test $ac_cv_lib_nsl_gethostbyname = no
; then
9743 echo "$as_me:9743: checking for gethostbyname in -lbsd" >&5
9744 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9745 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9746 echo $ECHO_N "(cached) $ECHO_C" >&6
9748 ac_check_lib_save_LIBS
=$LIBS
9750 cat >conftest.
$ac_ext <<_ACEOF
9751 #line 9751 "configure"
9752 #include "confdefs.h"
9754 /* Override any gcc2 internal prototype to avoid an error. */
9758 /* We use char because int might match the return type of a gcc2
9759 builtin and then its argument prototype would still apply. */
9760 char gethostbyname ();
9769 rm -f conftest.
$ac_objext conftest
$ac_exeext
9770 if { (eval echo "$as_me:9770: \"$ac_link\"") >&5
9771 (eval $ac_link) 2>&5
9773 echo "$as_me:9773: \$? = $ac_status" >&5
9774 (exit $ac_status); } &&
9775 { ac_try
='test -s conftest$ac_exeext'
9776 { (eval echo "$as_me:9776: \"$ac_try\"") >&5
9779 echo "$as_me:9779: \$? = $ac_status" >&5
9780 (exit $ac_status); }; }; then
9781 ac_cv_lib_bsd_gethostbyname
=yes
9783 echo "$as_me: failed program was:" >&5
9784 cat conftest.
$ac_ext >&5
9785 ac_cv_lib_bsd_gethostbyname
=no
9787 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9788 LIBS
=$ac_check_lib_save_LIBS
9790 echo "$as_me:9790: result: $ac_cv_lib_bsd_gethostbyname" >&5
9791 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9792 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9793 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
9799 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9800 # socket/setsockopt and other routines are undefined under SCO ODT
9801 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9802 # on later versions), says Simon Leinen: it contains gethostby*
9803 # variants that don't use the nameserver (or something). -lsocket
9804 # must be given before -lnsl if both are needed. We assume that
9805 # if connect needs -lnsl, so does gethostbyname.
9806 echo "$as_me:9806: checking for connect" >&5
9807 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9808 if test "${ac_cv_func_connect+set}" = set; then
9809 echo $ECHO_N "(cached) $ECHO_C" >&6
9811 cat >conftest.
$ac_ext <<_ACEOF
9812 #line 9812 "configure"
9813 #include "confdefs.h"
9814 /* System header to define __stub macros and hopefully few prototypes,
9815 which can conflict with char connect (); below. */
9817 /* Override any gcc2 internal prototype to avoid an error. */
9821 /* We use char because int might match the return type of a gcc2
9822 builtin and then its argument prototype would still apply. */
9829 /* The GNU C library defines this for functions which it implements
9830 to always fail with ENOSYS. Some functions are actually named
9831 something starting with __ and the normal name is an alias. */
9832 #if defined (__stub_connect) || defined (__stub___connect)
9835 f = connect; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
9842 rm -f conftest.
$ac_objext conftest
$ac_exeext
9843 if { (eval echo "$as_me:9843: \"$ac_link\"") >&5
9844 (eval $ac_link) 2>&5
9846 echo "$as_me:9846: \$? = $ac_status" >&5
9847 (exit $ac_status); } &&
9848 { ac_try
='test -s conftest$ac_exeext'
9849 { (eval echo "$as_me:9849: \"$ac_try\"") >&5
9852 echo "$as_me:9852: \$? = $ac_status" >&5
9853 (exit $ac_status); }; }; then
9854 ac_cv_func_connect
=yes
9856 echo "$as_me: failed program was:" >&5
9857 cat conftest.
$ac_ext >&5
9858 ac_cv_func_connect
=no
9860 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9862 echo "$as_me:9862: result: $ac_cv_func_connect" >&5
9863 echo "${ECHO_T}$ac_cv_func_connect" >&6
9865 if test $ac_cv_func_connect = no
; then
9866 echo "$as_me:9866: checking for connect in -lsocket" >&5
9867 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9868 if test "${ac_cv_lib_socket_connect+set}" = set; then
9869 echo $ECHO_N "(cached) $ECHO_C" >&6
9871 ac_check_lib_save_LIBS
=$LIBS
9872 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
9873 cat >conftest.
$ac_ext <<_ACEOF
9874 #line 9874 "configure"
9875 #include "confdefs.h"
9877 /* Override any gcc2 internal prototype to avoid an error. */
9881 /* We use char because int might match the return type of a gcc2
9882 builtin and then its argument prototype would still apply. */
9892 rm -f conftest.
$ac_objext conftest
$ac_exeext
9893 if { (eval echo "$as_me:9893: \"$ac_link\"") >&5
9894 (eval $ac_link) 2>&5
9896 echo "$as_me:9896: \$? = $ac_status" >&5
9897 (exit $ac_status); } &&
9898 { ac_try
='test -s conftest$ac_exeext'
9899 { (eval echo "$as_me:9899: \"$ac_try\"") >&5
9902 echo "$as_me:9902: \$? = $ac_status" >&5
9903 (exit $ac_status); }; }; then
9904 ac_cv_lib_socket_connect
=yes
9906 echo "$as_me: failed program was:" >&5
9907 cat conftest.
$ac_ext >&5
9908 ac_cv_lib_socket_connect
=no
9910 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9911 LIBS
=$ac_check_lib_save_LIBS
9913 echo "$as_me:9913: result: $ac_cv_lib_socket_connect" >&5
9914 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9915 if test $ac_cv_lib_socket_connect = yes; then
9916 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
9921 # Guillermo Gomez says -lposix is necessary on A/UX.
9922 echo "$as_me:9922: checking for remove" >&5
9923 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9924 if test "${ac_cv_func_remove+set}" = set; then
9925 echo $ECHO_N "(cached) $ECHO_C" >&6
9927 cat >conftest.
$ac_ext <<_ACEOF
9928 #line 9928 "configure"
9929 #include "confdefs.h"
9930 /* System header to define __stub macros and hopefully few prototypes,
9931 which can conflict with char remove (); below. */
9933 /* Override any gcc2 internal prototype to avoid an error. */
9937 /* We use char because int might match the return type of a gcc2
9938 builtin and then its argument prototype would still apply. */
9945 /* The GNU C library defines this for functions which it implements
9946 to always fail with ENOSYS. Some functions are actually named
9947 something starting with __ and the normal name is an alias. */
9948 #if defined (__stub_remove) || defined (__stub___remove)
9951 f = remove; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
9958 rm -f conftest.
$ac_objext conftest
$ac_exeext
9959 if { (eval echo "$as_me:9959: \"$ac_link\"") >&5
9960 (eval $ac_link) 2>&5
9962 echo "$as_me:9962: \$? = $ac_status" >&5
9963 (exit $ac_status); } &&
9964 { ac_try
='test -s conftest$ac_exeext'
9965 { (eval echo "$as_me:9965: \"$ac_try\"") >&5
9968 echo "$as_me:9968: \$? = $ac_status" >&5
9969 (exit $ac_status); }; }; then
9970 ac_cv_func_remove
=yes
9972 echo "$as_me: failed program was:" >&5
9973 cat conftest.
$ac_ext >&5
9974 ac_cv_func_remove
=no
9976 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9978 echo "$as_me:9978: result: $ac_cv_func_remove" >&5
9979 echo "${ECHO_T}$ac_cv_func_remove" >&6
9981 if test $ac_cv_func_remove = no
; then
9982 echo "$as_me:9982: checking for remove in -lposix" >&5
9983 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9984 if test "${ac_cv_lib_posix_remove+set}" = set; then
9985 echo $ECHO_N "(cached) $ECHO_C" >&6
9987 ac_check_lib_save_LIBS
=$LIBS
9988 LIBS
="-lposix $LIBS"
9989 cat >conftest.
$ac_ext <<_ACEOF
9990 #line 9990 "configure"
9991 #include "confdefs.h"
9993 /* Override any gcc2 internal prototype to avoid an error. */
9997 /* We use char because int might match the return type of a gcc2
9998 builtin and then its argument prototype would still apply. */
10008 rm -f conftest.
$ac_objext conftest
$ac_exeext
10009 if { (eval echo "$as_me:10009: \"$ac_link\"") >&5
10010 (eval $ac_link) 2>&5
10012 echo "$as_me:10012: \$? = $ac_status" >&5
10013 (exit $ac_status); } &&
10014 { ac_try
='test -s conftest$ac_exeext'
10015 { (eval echo "$as_me:10015: \"$ac_try\"") >&5
10016 (eval $ac_try) 2>&5
10018 echo "$as_me:10018: \$? = $ac_status" >&5
10019 (exit $ac_status); }; }; then
10020 ac_cv_lib_posix_remove
=yes
10022 echo "$as_me: failed program was:" >&5
10023 cat conftest.
$ac_ext >&5
10024 ac_cv_lib_posix_remove
=no
10026 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10027 LIBS
=$ac_check_lib_save_LIBS
10029 echo "$as_me:10029: result: $ac_cv_lib_posix_remove" >&5
10030 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10031 if test $ac_cv_lib_posix_remove = yes; then
10032 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
10037 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10038 echo "$as_me:10038: checking for shmat" >&5
10039 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10040 if test "${ac_cv_func_shmat+set}" = set; then
10041 echo $ECHO_N "(cached) $ECHO_C" >&6
10043 cat >conftest.
$ac_ext <<_ACEOF
10044 #line 10044 "configure"
10045 #include "confdefs.h"
10046 /* System header to define __stub macros and hopefully few prototypes,
10047 which can conflict with char shmat (); below. */
10048 #include <assert.h>
10049 /* Override any gcc2 internal prototype to avoid an error. */
10053 /* We use char because int might match the return type of a gcc2
10054 builtin and then its argument prototype would still apply. */
10061 /* The GNU C library defines this for functions which it implements
10062 to always fail with ENOSYS. Some functions are actually named
10063 something starting with __ and the normal name is an alias. */
10064 #if defined (__stub_shmat) || defined (__stub___shmat)
10067 f = shmat; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
10074 rm -f conftest.
$ac_objext conftest
$ac_exeext
10075 if { (eval echo "$as_me:10075: \"$ac_link\"") >&5
10076 (eval $ac_link) 2>&5
10078 echo "$as_me:10078: \$? = $ac_status" >&5
10079 (exit $ac_status); } &&
10080 { ac_try
='test -s conftest$ac_exeext'
10081 { (eval echo "$as_me:10081: \"$ac_try\"") >&5
10082 (eval $ac_try) 2>&5
10084 echo "$as_me:10084: \$? = $ac_status" >&5
10085 (exit $ac_status); }; }; then
10086 ac_cv_func_shmat
=yes
10088 echo "$as_me: failed program was:" >&5
10089 cat conftest.
$ac_ext >&5
10090 ac_cv_func_shmat
=no
10092 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10094 echo "$as_me:10094: result: $ac_cv_func_shmat" >&5
10095 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10097 if test $ac_cv_func_shmat = no
; then
10098 echo "$as_me:10098: checking for shmat in -lipc" >&5
10099 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10100 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10101 echo $ECHO_N "(cached) $ECHO_C" >&6
10103 ac_check_lib_save_LIBS
=$LIBS
10105 cat >conftest.
$ac_ext <<_ACEOF
10106 #line 10106 "configure"
10107 #include "confdefs.h"
10109 /* Override any gcc2 internal prototype to avoid an error. */
10113 /* We use char because int might match the return type of a gcc2
10114 builtin and then its argument prototype would still apply. */
10124 rm -f conftest.
$ac_objext conftest
$ac_exeext
10125 if { (eval echo "$as_me:10125: \"$ac_link\"") >&5
10126 (eval $ac_link) 2>&5
10128 echo "$as_me:10128: \$? = $ac_status" >&5
10129 (exit $ac_status); } &&
10130 { ac_try
='test -s conftest$ac_exeext'
10131 { (eval echo "$as_me:10131: \"$ac_try\"") >&5
10132 (eval $ac_try) 2>&5
10134 echo "$as_me:10134: \$? = $ac_status" >&5
10135 (exit $ac_status); }; }; then
10136 ac_cv_lib_ipc_shmat
=yes
10138 echo "$as_me: failed program was:" >&5
10139 cat conftest.
$ac_ext >&5
10140 ac_cv_lib_ipc_shmat
=no
10142 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10143 LIBS
=$ac_check_lib_save_LIBS
10145 echo "$as_me:10145: result: $ac_cv_lib_ipc_shmat" >&5
10146 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10147 if test $ac_cv_lib_ipc_shmat = yes; then
10148 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
10154 # Check for libraries that X11R6 Xt/Xaw programs need.
10155 ac_save_LDFLAGS
=$LDFLAGS
10156 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
10157 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10158 # check for ICE first), but we must link in the order -lSM -lICE or
10159 # we get undefined symbols. So assume we have SM if we have ICE.
10160 # These have to be linked with before -lX11, unlike the other
10161 # libraries we check for below, so use a different variable.
10162 # John Interrante, Karl Berry
10163 echo "$as_me:10163: checking for IceConnectionNumber in -lICE" >&5
10164 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10165 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10166 echo $ECHO_N "(cached) $ECHO_C" >&6
10168 ac_check_lib_save_LIBS
=$LIBS
10169 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
10170 cat >conftest.
$ac_ext <<_ACEOF
10171 #line 10171 "configure"
10172 #include "confdefs.h"
10174 /* Override any gcc2 internal prototype to avoid an error. */
10178 /* We use char because int might match the return type of a gcc2
10179 builtin and then its argument prototype would still apply. */
10180 char IceConnectionNumber ();
10184 IceConnectionNumber ();
10189 rm -f conftest.
$ac_objext conftest
$ac_exeext
10190 if { (eval echo "$as_me:10190: \"$ac_link\"") >&5
10191 (eval $ac_link) 2>&5
10193 echo "$as_me:10193: \$? = $ac_status" >&5
10194 (exit $ac_status); } &&
10195 { ac_try
='test -s conftest$ac_exeext'
10196 { (eval echo "$as_me:10196: \"$ac_try\"") >&5
10197 (eval $ac_try) 2>&5
10199 echo "$as_me:10199: \$? = $ac_status" >&5
10200 (exit $ac_status); }; }; then
10201 ac_cv_lib_ICE_IceConnectionNumber
=yes
10203 echo "$as_me: failed program was:" >&5
10204 cat conftest.
$ac_ext >&5
10205 ac_cv_lib_ICE_IceConnectionNumber
=no
10207 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10208 LIBS
=$ac_check_lib_save_LIBS
10210 echo "$as_me:10210: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10211 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10212 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10213 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
10216 LDFLAGS
=$ac_save_LDFLAGS
10220 cf_x_athena
=${cf_x_athena:-Xaw}
10222 echo "$as_me:10222: checking if you want to link with Xaw 3d library" >&5
10223 echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6
10226 # Check whether --with-Xaw3d or --without-Xaw3d was given.
10227 if test "${with_Xaw3d+set}" = set; then
10228 withval
="$with_Xaw3d"
10231 if test "$withval" = yes ; then
10233 echo "$as_me:10233: result: yes" >&5
10234 echo "${ECHO_T}yes" >&6
10236 echo "$as_me:10236: result: no" >&5
10237 echo "${ECHO_T}no" >&6
10240 echo "$as_me:10240: checking if you want to link with Xaw 3d xft library" >&5
10241 echo $ECHO_N "checking if you want to link with Xaw 3d xft library... $ECHO_C" >&6
10244 # Check whether --with-Xaw3dxft or --without-Xaw3dxft was given.
10245 if test "${with_Xaw3dxft+set}" = set; then
10246 withval
="$with_Xaw3dxft"
10249 if test "$withval" = yes ; then
10250 cf_x_athena
=Xaw3dxft
10251 echo "$as_me:10251: result: yes" >&5
10252 echo "${ECHO_T}yes" >&6
10254 echo "$as_me:10254: result: no" >&5
10255 echo "${ECHO_T}no" >&6
10258 echo "$as_me:10258: checking if you want to link with neXT Athena library" >&5
10259 echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6
10262 # Check whether --with-neXtaw or --without-neXtaw was given.
10263 if test "${with_neXtaw+set}" = set; then
10264 withval
="$with_neXtaw"
10267 if test "$withval" = yes ; then
10269 echo "$as_me:10269: result: yes" >&5
10270 echo "${ECHO_T}yes" >&6
10272 echo "$as_me:10272: result: no" >&5
10273 echo "${ECHO_T}no" >&6
10276 echo "$as_me:10276: checking if you want to link with Athena-Plus library" >&5
10277 echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6
10280 # Check whether --with-XawPlus or --without-XawPlus was given.
10281 if test "${with_XawPlus+set}" = set; then
10282 withval
="$with_XawPlus"
10285 if test "$withval" = yes ; then
10286 cf_x_athena
=XawPlus
10287 echo "$as_me:10287: result: yes" >&5
10288 echo "${ECHO_T}yes" >&6
10290 echo "$as_me:10290: result: no" >&5
10291 echo "${ECHO_T}no" >&6
10296 if test "$PKG_CONFIG" != none
; then
10298 test "$cf_x_athena" = Xaw
&& cf_athena_list
="xaw8 xaw7 xaw6"
10299 for cf_athena_pkg
in \
10302 ${cf_x_athena}-devel \
10303 lib
${cf_x_athena} \
10304 lib
${cf_x_athena}-devel
10307 if test "$PKG_CONFIG" != none
&& "$PKG_CONFIG" --exists $cf_athena_pkg; then
10308 test -n "$verbose" && echo " found package $cf_athena_pkg" 1>&6
10310 echo "${as_me:-configure}:10310: testing found package $cf_athena_pkg ..." 1>&5
10312 cf_pkgconfig_incs
="`$PKG_CONFIG --cflags $cf_athena_pkg 2>/dev/null`"
10313 cf_pkgconfig_libs
="`$PKG_CONFIG --libs $cf_athena_pkg 2>/dev/null`"
10314 test -n "$verbose" && echo " package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs" 1>&6
10316 echo "${as_me:-configure}:10316: testing package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10318 test -n "$verbose" && echo " package $cf_athena_pkg LIBS: $cf_pkgconfig_libs" 1>&6
10320 echo "${as_me:-configure}:10320: testing package $cf_athena_pkg LIBS: $cf_pkgconfig_libs ..." 1>&5
10325 cf_new_extra_cppflags
=
10327 for cf_add_cflags
in $cf_pkgconfig_incs
10329 case $cf_fix_cppflags in
10331 case $cf_add_cflags in
10332 (-undef|
-nostdinc*|
-I*|
-D*|
-U*|
-E|
-P|
-C)
10333 case $cf_add_cflags in
10335 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10337 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10338 && test -z "${cf_tst_cflags}" \
10339 && cf_fix_cppflags
=yes
10341 if test $cf_fix_cppflags = yes ; then
10342 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
10344 elif test "${cf_tst_cflags}" = "\"'" ; then
10345 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
10350 case "$CPPFLAGS" in
10354 case $cf_add_cflags in
10356 cf_tst_cppflags
=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10358 CPPFLAGS
=`echo "$CPPFLAGS" | \
10359 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10360 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10364 cf_new_cppflags
="$cf_new_cppflags $cf_add_cflags"
10369 cf_new_cflags
="$cf_new_cflags $cf_add_cflags"
10374 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
10376 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10378 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10379 && test -z "${cf_tst_cflags}" \
10380 && cf_fix_cppflags
=no
10385 if test -n "$cf_new_cflags" ; then
10387 CFLAGS
="$CFLAGS $cf_new_cflags"
10390 if test -n "$cf_new_cppflags" ; then
10392 CPPFLAGS
="$CPPFLAGS $cf_new_cppflags"
10395 if test -n "$cf_new_extra_cppflags" ; then
10397 EXTRA_CPPFLAGS
="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10400 cf_add_libs
="$cf_pkgconfig_libs"
10401 # Filter out duplicates - this happens with badly-designed ".pc" files...
10402 for cf_add_1lib
in $LIBS
10404 for cf_add_2lib
in $cf_add_libs
10406 if test "x$cf_add_1lib" = "x$cf_add_2lib"
10412 test -n "$cf_add_1lib" && cf_add_libs
="$cf_add_libs $cf_add_1lib"
10414 LIBS
="$cf_add_libs"
10416 cf_x_athena_lib
="$cf_pkgconfig_libs"
10418 cf_x_athena_LIBS
=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
10420 cat >>confdefs.h
<<EOF
10421 #define $cf_x_athena_LIBS 1
10424 for cf_trim_lib
in Xmu Xt X11
10427 (*-l$cf_trim_lib\
*-l$cf_trim_lib*)
10428 LIBS
=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
10429 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
10431 echo "${as_me:-configure}:10431: testing ..trimmed $LIBS ..." 1>&5
10437 echo "$as_me:10437: checking for usable $cf_x_athena/Xmu package" >&5
10438 echo $ECHO_N "checking for usable $cf_x_athena/Xmu package... $ECHO_C" >&6
10439 if test "${cf_cv_xaw_compat+set}" = set; then
10440 echo $ECHO_N "(cached) $ECHO_C" >&6
10443 cat >conftest.
$ac_ext <<_ACEOF
10444 #line 10444 "configure"
10445 #include "confdefs.h"
10447 #include <X11/Xmu/CharSet.h>
10453 int check = XmuCompareISOLatin1("big", "small")
10459 rm -f conftest.
$ac_objext conftest
$ac_exeext
10460 if { (eval echo "$as_me:10460: \"$ac_link\"") >&5
10461 (eval $ac_link) 2>&5
10463 echo "$as_me:10463: \$? = $ac_status" >&5
10464 (exit $ac_status); } &&
10465 { ac_try
='test -s conftest$ac_exeext'
10466 { (eval echo "$as_me:10466: \"$ac_try\"") >&5
10467 (eval $ac_try) 2>&5
10469 echo "$as_me:10469: \$? = $ac_status" >&5
10470 (exit $ac_status); }; }; then
10471 cf_cv_xaw_compat
=yes
10473 echo "$as_me: failed program was:" >&5
10474 cat conftest.
$ac_ext >&5
10475 cf_cv_xaw_compat
=no
10477 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10479 echo "$as_me:10479: result: $cf_cv_xaw_compat" >&5
10480 echo "${ECHO_T}$cf_cv_xaw_compat" >&6
10482 if test "$cf_cv_xaw_compat" = no
10484 # workaround for broken ".pc" files...
10485 case "$cf_x_athena_lib" in
10489 test -n "$verbose" && echo " work around broken package" 1>&6
10491 echo "${as_me:-configure}:10491: testing work around broken package ..." 1>&5
10493 cf_save_xmu
="$LIBS"
10494 cf_first_lib
=`echo "$cf_save_xmu" | sed -e 's/^ *//' -e 's/ .*//'`
10496 if test "$PKG_CONFIG" != none
&& "$PKG_CONFIG" --exists xmu
; then
10497 test -n "$verbose" && echo " found package xmu" 1>&6
10499 echo "${as_me:-configure}:10499: testing found package xmu ..." 1>&5
10501 cf_pkgconfig_incs
="`$PKG_CONFIG --cflags xmu 2>/dev/null`"
10502 cf_pkgconfig_libs
="`$PKG_CONFIG --libs xmu 2>/dev/null`"
10503 test -n "$verbose" && echo " package xmu CFLAGS: $cf_pkgconfig_incs" 1>&6
10505 echo "${as_me:-configure}:10505: testing package xmu CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10507 test -n "$verbose" && echo " package xmu LIBS: $cf_pkgconfig_libs" 1>&6
10509 echo "${as_me:-configure}:10509: testing package xmu LIBS: $cf_pkgconfig_libs ..." 1>&5
10514 cf_new_extra_cppflags
=
10516 for cf_add_cflags
in $cf_pkgconfig_incs
10518 case $cf_fix_cppflags in
10520 case $cf_add_cflags in
10521 (-undef|
-nostdinc*|
-I*|
-D*|
-U*|
-E|
-P|
-C)
10522 case $cf_add_cflags in
10524 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10526 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10527 && test -z "${cf_tst_cflags}" \
10528 && cf_fix_cppflags
=yes
10530 if test $cf_fix_cppflags = yes ; then
10531 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
10533 elif test "${cf_tst_cflags}" = "\"'" ; then
10534 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
10539 case "$CPPFLAGS" in
10543 case $cf_add_cflags in
10545 cf_tst_cppflags
=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10547 CPPFLAGS
=`echo "$CPPFLAGS" | \
10548 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10549 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10553 cf_new_cppflags
="$cf_new_cppflags $cf_add_cflags"
10558 cf_new_cflags
="$cf_new_cflags $cf_add_cflags"
10563 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
10565 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10567 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10568 && test -z "${cf_tst_cflags}" \
10569 && cf_fix_cppflags
=no
10574 if test -n "$cf_new_cflags" ; then
10576 CFLAGS
="$CFLAGS $cf_new_cflags"
10579 if test -n "$cf_new_cppflags" ; then
10581 CPPFLAGS
="$CPPFLAGS $cf_new_cppflags"
10584 if test -n "$cf_new_extra_cppflags" ; then
10586 EXTRA_CPPFLAGS
="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10589 cf_add_libs
="$cf_pkgconfig_libs"
10590 # Filter out duplicates - this happens with badly-designed ".pc" files...
10591 for cf_add_1lib
in $LIBS
10593 for cf_add_2lib
in $cf_add_libs
10595 if test "x$cf_add_1lib" = "x$cf_add_2lib"
10601 test -n "$cf_add_1lib" && cf_add_libs
="$cf_add_libs $cf_add_1lib"
10603 LIBS
="$cf_add_libs"
10605 LIBS
="$cf_save_xmu"
10607 test -n "$verbose" && echo " ...before $LIBS" 1>&6
10609 echo "${as_me:-configure}:10609: testing ...before $LIBS ..." 1>&5
10611 LIBS
=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib $cf_pkgconfig_libs %" -e 's% % %g'`
10612 test -n "$verbose" && echo " ...after $LIBS" 1>&6
10614 echo "${as_me:-configure}:10614: testing ...after $LIBS ..." 1>&5
10620 test -n "$verbose" && echo " ...before $LIBS" 1>&6
10622 echo "${as_me:-configure}:10622: testing ...before $LIBS ..." 1>&5
10624 LIBS
=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib -lXmu %" -e 's% % %g'`
10625 test -n "$verbose" && echo " ...after $LIBS" 1>&6
10627 echo "${as_me:-configure}:10627: testing ...after $LIBS ..." 1>&5
10631 for cf_trim_lib
in Xmu Xt X11
10634 (*-l$cf_trim_lib\
*-l$cf_trim_lib*)
10635 LIBS
=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
10636 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
10638 echo "${as_me:-configure}:10638: testing ..trimmed $LIBS ..." 1>&5
10658 if test -z "$cf_x_athena_lib" ; then
10660 if test "$PKG_CONFIG" != none
&& "$PKG_CONFIG" --exists Xext
; then
10661 test -n "$verbose" && echo " found package Xext" 1>&6
10663 echo "${as_me:-configure}:10663: testing found package Xext ..." 1>&5
10665 cf_pkgconfig_incs
="`$PKG_CONFIG --cflags Xext 2>/dev/null`"
10666 cf_pkgconfig_libs
="`$PKG_CONFIG --libs Xext 2>/dev/null`"
10667 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6
10669 echo "${as_me:-configure}:10669: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10671 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6
10673 echo "${as_me:-configure}:10673: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5
10678 cf_new_extra_cppflags
=
10680 for cf_add_cflags
in $cf_pkgconfig_incs
10682 case $cf_fix_cppflags in
10684 case $cf_add_cflags in
10685 (-undef|
-nostdinc*|
-I*|
-D*|
-U*|
-E|
-P|
-C)
10686 case $cf_add_cflags in
10688 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10690 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10691 && test -z "${cf_tst_cflags}" \
10692 && cf_fix_cppflags
=yes
10694 if test $cf_fix_cppflags = yes ; then
10695 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
10697 elif test "${cf_tst_cflags}" = "\"'" ; then
10698 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
10703 case "$CPPFLAGS" in
10707 case $cf_add_cflags in
10709 cf_tst_cppflags
=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10711 CPPFLAGS
=`echo "$CPPFLAGS" | \
10712 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10713 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10717 cf_new_cppflags
="$cf_new_cppflags $cf_add_cflags"
10722 cf_new_cflags
="$cf_new_cflags $cf_add_cflags"
10727 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
10729 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10731 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10732 && test -z "${cf_tst_cflags}" \
10733 && cf_fix_cppflags
=no
10738 if test -n "$cf_new_cflags" ; then
10740 CFLAGS
="$CFLAGS $cf_new_cflags"
10743 if test -n "$cf_new_cppflags" ; then
10745 CPPFLAGS
="$CPPFLAGS $cf_new_cppflags"
10748 if test -n "$cf_new_extra_cppflags" ; then
10750 EXTRA_CPPFLAGS
="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10753 cf_add_libs
="$cf_pkgconfig_libs"
10754 # Filter out duplicates - this happens with badly-designed ".pc" files...
10755 for cf_add_1lib
in $LIBS
10757 for cf_add_2lib
in $cf_add_libs
10759 if test "x$cf_add_1lib" = "x$cf_add_2lib"
10765 test -n "$cf_add_1lib" && cf_add_libs
="$cf_add_libs $cf_add_1lib"
10767 LIBS
="$cf_add_libs"
10774 echo "$as_me:10774: checking for XextCreateExtension in -lXext" >&5
10775 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
10776 if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
10777 echo $ECHO_N "(cached) $ECHO_C" >&6
10779 ac_check_lib_save_LIBS
=$LIBS
10780 LIBS
="-lXext $LIBS"
10781 cat >conftest.
$ac_ext <<_ACEOF
10782 #line 10782 "configure"
10783 #include "confdefs.h"
10785 /* Override any gcc2 internal prototype to avoid an error. */
10789 /* We use char because int might match the return type of a gcc2
10790 builtin and then its argument prototype would still apply. */
10791 char XextCreateExtension ();
10795 XextCreateExtension ();
10800 rm -f conftest.
$ac_objext conftest
$ac_exeext
10801 if { (eval echo "$as_me:10801: \"$ac_link\"") >&5
10802 (eval $ac_link) 2>&5
10804 echo "$as_me:10804: \$? = $ac_status" >&5
10805 (exit $ac_status); } &&
10806 { ac_try
='test -s conftest$ac_exeext'
10807 { (eval echo "$as_me:10807: \"$ac_try\"") >&5
10808 (eval $ac_try) 2>&5
10810 echo "$as_me:10810: \$? = $ac_status" >&5
10811 (exit $ac_status); }; }; then
10812 ac_cv_lib_Xext_XextCreateExtension
=yes
10814 echo "$as_me: failed program was:" >&5
10815 cat conftest.
$ac_ext >&5
10816 ac_cv_lib_Xext_XextCreateExtension
=no
10818 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10819 LIBS
=$ac_check_lib_save_LIBS
10821 echo "$as_me:10821: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
10822 echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
10823 if test $ac_cv_lib_Xext_XextCreateExtension = yes; then
10825 cf_add_libs
="-lXext"
10826 # Filter out duplicates - this happens with badly-designed ".pc" files...
10827 for cf_add_1lib
in $LIBS
10829 for cf_add_2lib
in $cf_add_libs
10831 if test "x$cf_add_1lib" = "x$cf_add_2lib"
10837 test -n "$cf_add_1lib" && cf_add_libs
="$cf_add_libs $cf_add_1lib"
10839 LIBS
="$cf_add_libs"
10845 # OSX is schizoid about who owns /usr/X11 (old) versus /opt/X11 (new), and (and
10846 # in some cases has installed dummy files in the former, other cases replaced
10847 # it with a link to the new location). This complicates the configure script.
10848 # Check for that pitfall, and recover using pkg-config
10850 # If none of these are set, the configuration is almost certainly broken.
10851 if test -z "${X_CFLAGS}${X_PRE_LIBS}${X_LIBS}${X_EXTRA_LIBS}"
10854 if test "$PKG_CONFIG" != none
&& "$PKG_CONFIG" --exists x11
; then
10855 test -n "$verbose" && echo " found package x11" 1>&6
10857 echo "${as_me:-configure}:10857: testing found package x11 ..." 1>&5
10859 cf_pkgconfig_incs
="`$PKG_CONFIG --cflags x11 2>/dev/null`"
10860 cf_pkgconfig_libs
="`$PKG_CONFIG --libs x11 2>/dev/null`"
10861 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
10863 echo "${as_me:-configure}:10863: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10865 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
10867 echo "${as_me:-configure}:10867: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
10872 cf_new_extra_cppflags
=
10874 for cf_add_cflags
in $cf_pkgconfig_incs
10876 case $cf_fix_cppflags in
10878 case $cf_add_cflags in
10879 (-undef|
-nostdinc*|
-I*|
-D*|
-U*|
-E|
-P|
-C)
10880 case $cf_add_cflags in
10882 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10884 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10885 && test -z "${cf_tst_cflags}" \
10886 && cf_fix_cppflags
=yes
10888 if test $cf_fix_cppflags = yes ; then
10889 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
10891 elif test "${cf_tst_cflags}" = "\"'" ; then
10892 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
10897 case "$CPPFLAGS" in
10901 case $cf_add_cflags in
10903 cf_tst_cppflags
=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10905 CPPFLAGS
=`echo "$CPPFLAGS" | \
10906 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10907 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10911 cf_new_cppflags
="$cf_new_cppflags $cf_add_cflags"
10916 cf_new_cflags
="$cf_new_cflags $cf_add_cflags"
10921 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
10923 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10925 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10926 && test -z "${cf_tst_cflags}" \
10927 && cf_fix_cppflags
=no
10932 if test -n "$cf_new_cflags" ; then
10934 CFLAGS
="$CFLAGS $cf_new_cflags"
10937 if test -n "$cf_new_cppflags" ; then
10939 CPPFLAGS
="$CPPFLAGS $cf_new_cppflags"
10942 if test -n "$cf_new_extra_cppflags" ; then
10944 EXTRA_CPPFLAGS
="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10947 cf_add_libs
="$cf_pkgconfig_libs"
10948 # Filter out duplicates - this happens with badly-designed ".pc" files...
10949 for cf_add_1lib
in $LIBS
10951 for cf_add_2lib
in $cf_add_libs
10953 if test "x$cf_add_1lib" = "x$cf_add_2lib"
10959 test -n "$cf_add_1lib" && cf_add_libs
="$cf_add_libs $cf_add_1lib"
10961 LIBS
="$cf_add_libs"
10967 { echo "$as_me:10967: WARNING: unable to find X11 library" >&5
10968 echo "$as_me: WARNING: unable to find X11 library" >&2;}
10971 if test "$PKG_CONFIG" != none
&& "$PKG_CONFIG" --exists ice
; then
10972 test -n "$verbose" && echo " found package ice" 1>&6
10974 echo "${as_me:-configure}:10974: testing found package ice ..." 1>&5
10976 cf_pkgconfig_incs
="`$PKG_CONFIG --cflags ice 2>/dev/null`"
10977 cf_pkgconfig_libs
="`$PKG_CONFIG --libs ice 2>/dev/null`"
10978 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
10980 echo "${as_me:-configure}:10980: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10982 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
10984 echo "${as_me:-configure}:10984: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
10989 cf_new_extra_cppflags
=
10991 for cf_add_cflags
in $cf_pkgconfig_incs
10993 case $cf_fix_cppflags in
10995 case $cf_add_cflags in
10996 (-undef|
-nostdinc*|
-I*|
-D*|
-U*|
-E|
-P|
-C)
10997 case $cf_add_cflags in
10999 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11001 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11002 && test -z "${cf_tst_cflags}" \
11003 && cf_fix_cppflags
=yes
11005 if test $cf_fix_cppflags = yes ; then
11006 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
11008 elif test "${cf_tst_cflags}" = "\"'" ; then
11009 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
11014 case "$CPPFLAGS" in
11018 case $cf_add_cflags in
11020 cf_tst_cppflags
=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11022 CPPFLAGS
=`echo "$CPPFLAGS" | \
11023 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11024 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11028 cf_new_cppflags
="$cf_new_cppflags $cf_add_cflags"
11033 cf_new_cflags
="$cf_new_cflags $cf_add_cflags"
11038 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
11040 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11042 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11043 && test -z "${cf_tst_cflags}" \
11044 && cf_fix_cppflags
=no
11049 if test -n "$cf_new_cflags" ; then
11051 CFLAGS
="$CFLAGS $cf_new_cflags"
11054 if test -n "$cf_new_cppflags" ; then
11056 CPPFLAGS
="$CPPFLAGS $cf_new_cppflags"
11059 if test -n "$cf_new_extra_cppflags" ; then
11061 EXTRA_CPPFLAGS
="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11064 cf_add_libs
="$cf_pkgconfig_libs"
11065 # Filter out duplicates - this happens with badly-designed ".pc" files...
11066 for cf_add_1lib
in $LIBS
11068 for cf_add_2lib
in $cf_add_libs
11070 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11076 test -n "$cf_add_1lib" && cf_add_libs
="$cf_add_libs $cf_add_1lib"
11078 LIBS
="$cf_add_libs"
11084 { echo "$as_me:11084: WARNING: unable to find ICE library" >&5
11085 echo "$as_me: WARNING: unable to find ICE library" >&2;}
11088 if test "$PKG_CONFIG" != none
&& "$PKG_CONFIG" --exists sm
; then
11089 test -n "$verbose" && echo " found package sm" 1>&6
11091 echo "${as_me:-configure}:11091: testing found package sm ..." 1>&5
11093 cf_pkgconfig_incs
="`$PKG_CONFIG --cflags sm 2>/dev/null`"
11094 cf_pkgconfig_libs
="`$PKG_CONFIG --libs sm 2>/dev/null`"
11095 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
11097 echo "${as_me:-configure}:11097: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11099 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
11101 echo "${as_me:-configure}:11101: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
11106 cf_new_extra_cppflags
=
11108 for cf_add_cflags
in $cf_pkgconfig_incs
11110 case $cf_fix_cppflags in
11112 case $cf_add_cflags in
11113 (-undef|
-nostdinc*|
-I*|
-D*|
-U*|
-E|
-P|
-C)
11114 case $cf_add_cflags in
11116 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11118 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11119 && test -z "${cf_tst_cflags}" \
11120 && cf_fix_cppflags
=yes
11122 if test $cf_fix_cppflags = yes ; then
11123 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
11125 elif test "${cf_tst_cflags}" = "\"'" ; then
11126 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
11131 case "$CPPFLAGS" in
11135 case $cf_add_cflags in
11137 cf_tst_cppflags
=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11139 CPPFLAGS
=`echo "$CPPFLAGS" | \
11140 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11141 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11145 cf_new_cppflags
="$cf_new_cppflags $cf_add_cflags"
11150 cf_new_cflags
="$cf_new_cflags $cf_add_cflags"
11155 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
11157 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11159 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11160 && test -z "${cf_tst_cflags}" \
11161 && cf_fix_cppflags
=no
11166 if test -n "$cf_new_cflags" ; then
11168 CFLAGS
="$CFLAGS $cf_new_cflags"
11171 if test -n "$cf_new_cppflags" ; then
11173 CPPFLAGS
="$CPPFLAGS $cf_new_cppflags"
11176 if test -n "$cf_new_extra_cppflags" ; then
11178 EXTRA_CPPFLAGS
="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11181 cf_add_libs
="$cf_pkgconfig_libs"
11182 # Filter out duplicates - this happens with badly-designed ".pc" files...
11183 for cf_add_1lib
in $LIBS
11185 for cf_add_2lib
in $cf_add_libs
11187 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11193 test -n "$cf_add_1lib" && cf_add_libs
="$cf_add_libs $cf_add_1lib"
11195 LIBS
="$cf_add_libs"
11201 { echo "$as_me:11201: WARNING: unable to find SM library" >&5
11202 echo "$as_me: WARNING: unable to find SM library" >&2;}
11205 if test "$PKG_CONFIG" != none
&& "$PKG_CONFIG" --exists xt
; then
11206 test -n "$verbose" && echo " found package xt" 1>&6
11208 echo "${as_me:-configure}:11208: testing found package xt ..." 1>&5
11210 cf_pkgconfig_incs
="`$PKG_CONFIG --cflags xt 2>/dev/null`"
11211 cf_pkgconfig_libs
="`$PKG_CONFIG --libs xt 2>/dev/null`"
11212 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
11214 echo "${as_me:-configure}:11214: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11216 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
11218 echo "${as_me:-configure}:11218: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
11223 cf_new_extra_cppflags
=
11225 for cf_add_cflags
in $cf_pkgconfig_incs
11227 case $cf_fix_cppflags in
11229 case $cf_add_cflags in
11230 (-undef|
-nostdinc*|
-I*|
-D*|
-U*|
-E|
-P|
-C)
11231 case $cf_add_cflags in
11233 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11235 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11236 && test -z "${cf_tst_cflags}" \
11237 && cf_fix_cppflags
=yes
11239 if test $cf_fix_cppflags = yes ; then
11240 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
11242 elif test "${cf_tst_cflags}" = "\"'" ; then
11243 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
11248 case "$CPPFLAGS" in
11252 case $cf_add_cflags in
11254 cf_tst_cppflags
=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11256 CPPFLAGS
=`echo "$CPPFLAGS" | \
11257 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11258 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11262 cf_new_cppflags
="$cf_new_cppflags $cf_add_cflags"
11267 cf_new_cflags
="$cf_new_cflags $cf_add_cflags"
11272 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
11274 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11276 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11277 && test -z "${cf_tst_cflags}" \
11278 && cf_fix_cppflags
=no
11283 if test -n "$cf_new_cflags" ; then
11285 CFLAGS
="$CFLAGS $cf_new_cflags"
11288 if test -n "$cf_new_cppflags" ; then
11290 CPPFLAGS
="$CPPFLAGS $cf_new_cppflags"
11293 if test -n "$cf_new_extra_cppflags" ; then
11295 EXTRA_CPPFLAGS
="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11298 cf_add_libs
="$cf_pkgconfig_libs"
11299 # Filter out duplicates - this happens with badly-designed ".pc" files...
11300 for cf_add_1lib
in $LIBS
11302 for cf_add_2lib
in $cf_add_libs
11304 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11310 test -n "$cf_add_1lib" && cf_add_libs
="$cf_add_libs $cf_add_1lib"
11312 LIBS
="$cf_add_libs"
11318 { echo "$as_me:11318: WARNING: unable to find Xt library" >&5
11319 echo "$as_me: WARNING: unable to find Xt library" >&2;}
11326 if test "$PKG_CONFIG" != none
&& "$PKG_CONFIG" --exists xt
; then
11327 test -n "$verbose" && echo " found package xt" 1>&6
11329 echo "${as_me:-configure}:11329: testing found package xt ..." 1>&5
11331 cf_pkgconfig_incs
="`$PKG_CONFIG --cflags xt 2>/dev/null`"
11332 cf_pkgconfig_libs
="`$PKG_CONFIG --libs xt 2>/dev/null`"
11333 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
11335 echo "${as_me:-configure}:11335: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11337 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
11339 echo "${as_me:-configure}:11339: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
11344 cf_new_extra_cppflags
=
11346 for cf_add_cflags
in $cf_pkgconfig_incs
11348 case $cf_fix_cppflags in
11350 case $cf_add_cflags in
11351 (-undef|
-nostdinc*|
-I*|
-D*|
-U*|
-E|
-P|
-C)
11352 case $cf_add_cflags in
11354 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11356 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11357 && test -z "${cf_tst_cflags}" \
11358 && cf_fix_cppflags
=yes
11360 if test $cf_fix_cppflags = yes ; then
11361 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
11363 elif test "${cf_tst_cflags}" = "\"'" ; then
11364 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
11369 case "$CPPFLAGS" in
11373 case $cf_add_cflags in
11375 cf_tst_cppflags
=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11377 CPPFLAGS
=`echo "$CPPFLAGS" | \
11378 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11379 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11383 cf_new_cppflags
="$cf_new_cppflags $cf_add_cflags"
11388 cf_new_cflags
="$cf_new_cflags $cf_add_cflags"
11393 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
11395 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11397 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11398 && test -z "${cf_tst_cflags}" \
11399 && cf_fix_cppflags
=no
11404 if test -n "$cf_new_cflags" ; then
11406 CFLAGS
="$CFLAGS $cf_new_cflags"
11409 if test -n "$cf_new_cppflags" ; then
11411 CPPFLAGS
="$CPPFLAGS $cf_new_cppflags"
11414 if test -n "$cf_new_extra_cppflags" ; then
11416 EXTRA_CPPFLAGS
="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11419 cf_add_libs
="$cf_pkgconfig_libs"
11420 # Filter out duplicates - this happens with badly-designed ".pc" files...
11421 for cf_add_1lib
in $LIBS
11423 for cf_add_2lib
in $cf_add_libs
11425 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11431 test -n "$cf_add_1lib" && cf_add_libs
="$cf_add_libs $cf_add_1lib"
11433 LIBS
="$cf_add_libs"
11439 # we have an "xt" package, but it may omit Xt's dependency on X11
11440 echo "$as_me:11440: checking for usable X dependency" >&5
11441 echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6
11442 if test "${cf_cv_xt_x11_compat+set}" = set; then
11443 echo $ECHO_N "(cached) $ECHO_C" >&6
11446 cat >conftest.
$ac_ext <<_ACEOF
11447 #line 11447 "configure"
11448 #include "confdefs.h"
11450 #include <X11/Xlib.h>
11456 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0);
11457 int rc2 = XClearWindow((Display*) 0, (Window) 0);
11458 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0);
11459 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0);
11465 rm -f conftest.
$ac_objext conftest
$ac_exeext
11466 if { (eval echo "$as_me:11466: \"$ac_link\"") >&5
11467 (eval $ac_link) 2>&5
11469 echo "$as_me:11469: \$? = $ac_status" >&5
11470 (exit $ac_status); } &&
11471 { ac_try
='test -s conftest$ac_exeext'
11472 { (eval echo "$as_me:11472: \"$ac_try\"") >&5
11473 (eval $ac_try) 2>&5
11475 echo "$as_me:11475: \$? = $ac_status" >&5
11476 (exit $ac_status); }; }; then
11477 cf_cv_xt_x11_compat
=yes
11479 echo "$as_me: failed program was:" >&5
11480 cat conftest.
$ac_ext >&5
11481 cf_cv_xt_x11_compat
=no
11483 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11485 echo "$as_me:11485: result: $cf_cv_xt_x11_compat" >&5
11486 echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6
11487 if test "$cf_cv_xt_x11_compat" = no
11489 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6
11491 echo "${as_me:-configure}:11491: testing work around broken X11 dependency ..." 1>&5
11493 # 2010/11/19 - good enough until a working Xt on Xcb is delivered.
11495 if test "$PKG_CONFIG" != none
&& "$PKG_CONFIG" --exists x11
; then
11496 test -n "$verbose" && echo " found package x11" 1>&6
11498 echo "${as_me:-configure}:11498: testing found package x11 ..." 1>&5
11500 cf_pkgconfig_incs
="`$PKG_CONFIG --cflags x11 2>/dev/null`"
11501 cf_pkgconfig_libs
="`$PKG_CONFIG --libs x11 2>/dev/null`"
11502 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
11504 echo "${as_me:-configure}:11504: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11506 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
11508 echo "${as_me:-configure}:11508: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
11513 cf_new_extra_cppflags
=
11515 for cf_add_cflags
in $cf_pkgconfig_incs
11517 case $cf_fix_cppflags in
11519 case $cf_add_cflags in
11520 (-undef|
-nostdinc*|
-I*|
-D*|
-U*|
-E|
-P|
-C)
11521 case $cf_add_cflags in
11523 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11525 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11526 && test -z "${cf_tst_cflags}" \
11527 && cf_fix_cppflags
=yes
11529 if test $cf_fix_cppflags = yes ; then
11530 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
11532 elif test "${cf_tst_cflags}" = "\"'" ; then
11533 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
11538 case "$CPPFLAGS" in
11542 case $cf_add_cflags in
11544 cf_tst_cppflags
=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11546 CPPFLAGS
=`echo "$CPPFLAGS" | \
11547 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11548 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11552 cf_new_cppflags
="$cf_new_cppflags $cf_add_cflags"
11557 cf_new_cflags
="$cf_new_cflags $cf_add_cflags"
11562 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
11564 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11566 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11567 && test -z "${cf_tst_cflags}" \
11568 && cf_fix_cppflags
=no
11573 if test -n "$cf_new_cflags" ; then
11575 CFLAGS
="$CFLAGS $cf_new_cflags"
11578 if test -n "$cf_new_cppflags" ; then
11580 CPPFLAGS
="$CPPFLAGS $cf_new_cppflags"
11583 if test -n "$cf_new_extra_cppflags" ; then
11585 EXTRA_CPPFLAGS
="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11588 cf_add_libs
="$cf_pkgconfig_libs"
11589 # Filter out duplicates - this happens with badly-designed ".pc" files...
11590 for cf_add_1lib
in $LIBS
11592 for cf_add_2lib
in $cf_add_libs
11594 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11600 test -n "$cf_add_1lib" && cf_add_libs
="$cf_add_libs $cf_add_1lib"
11602 LIBS
="$cf_add_libs"
11609 test -n "$verbose" && echo " ...before $LIBS" 1>&6
11611 echo "${as_me:-configure}:11611: testing ...before $LIBS ..." 1>&5
11613 LIBS
=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'`
11614 test -n "$verbose" && echo " ...after $LIBS" 1>&6
11616 echo "${as_me:-configure}:11616: testing ...after $LIBS ..." 1>&5
11624 echo "$as_me:11624: checking for usable X Toolkit package" >&5
11625 echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6
11626 if test "${cf_cv_xt_ice_compat+set}" = set; then
11627 echo $ECHO_N "(cached) $ECHO_C" >&6
11630 cat >conftest.
$ac_ext <<_ACEOF
11631 #line 11631 "configure"
11632 #include "confdefs.h"
11634 #include <X11/Shell.h>
11639 int num = IceConnectionNumber(0)
11645 rm -f conftest.
$ac_objext conftest
$ac_exeext
11646 if { (eval echo "$as_me:11646: \"$ac_link\"") >&5
11647 (eval $ac_link) 2>&5
11649 echo "$as_me:11649: \$? = $ac_status" >&5
11650 (exit $ac_status); } &&
11651 { ac_try
='test -s conftest$ac_exeext'
11652 { (eval echo "$as_me:11652: \"$ac_try\"") >&5
11653 (eval $ac_try) 2>&5
11655 echo "$as_me:11655: \$? = $ac_status" >&5
11656 (exit $ac_status); }; }; then
11657 cf_cv_xt_ice_compat
=yes
11659 echo "$as_me: failed program was:" >&5
11660 cat conftest.
$ac_ext >&5
11661 cf_cv_xt_ice_compat
=no
11663 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11665 echo "$as_me:11665: result: $cf_cv_xt_ice_compat" >&5
11666 echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6
11668 if test "$cf_cv_xt_ice_compat" = no
11670 # workaround for broken ".pc" files used for X Toolkit.
11671 case "x$X_PRE_LIBS" in
11677 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6
11679 echo "${as_me:-configure}:11679: testing work around broken ICE dependency ..." 1>&5
11681 if test "$PKG_CONFIG" != none
&& "$PKG_CONFIG" --exists ice
; then
11682 test -n "$verbose" && echo " found package ice" 1>&6
11684 echo "${as_me:-configure}:11684: testing found package ice ..." 1>&5
11686 cf_pkgconfig_incs
="`$PKG_CONFIG --cflags ice 2>/dev/null`"
11687 cf_pkgconfig_libs
="`$PKG_CONFIG --libs ice 2>/dev/null`"
11688 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
11690 echo "${as_me:-configure}:11690: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11692 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
11694 echo "${as_me:-configure}:11694: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
11699 cf_new_extra_cppflags
=
11701 for cf_add_cflags
in $cf_pkgconfig_incs
11703 case $cf_fix_cppflags in
11705 case $cf_add_cflags in
11706 (-undef|
-nostdinc*|
-I*|
-D*|
-U*|
-E|
-P|
-C)
11707 case $cf_add_cflags in
11709 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11711 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11712 && test -z "${cf_tst_cflags}" \
11713 && cf_fix_cppflags
=yes
11715 if test $cf_fix_cppflags = yes ; then
11716 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
11718 elif test "${cf_tst_cflags}" = "\"'" ; then
11719 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
11724 case "$CPPFLAGS" in
11728 case $cf_add_cflags in
11730 cf_tst_cppflags
=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11732 CPPFLAGS
=`echo "$CPPFLAGS" | \
11733 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11734 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11738 cf_new_cppflags
="$cf_new_cppflags $cf_add_cflags"
11743 cf_new_cflags
="$cf_new_cflags $cf_add_cflags"
11748 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
11750 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11752 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11753 && test -z "${cf_tst_cflags}" \
11754 && cf_fix_cppflags
=no
11759 if test -n "$cf_new_cflags" ; then
11761 CFLAGS
="$CFLAGS $cf_new_cflags"
11764 if test -n "$cf_new_cppflags" ; then
11766 CPPFLAGS
="$CPPFLAGS $cf_new_cppflags"
11769 if test -n "$cf_new_extra_cppflags" ; then
11771 EXTRA_CPPFLAGS
="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11774 cf_add_libs
="$cf_pkgconfig_libs"
11775 # Filter out duplicates - this happens with badly-designed ".pc" files...
11776 for cf_add_1lib
in $LIBS
11778 for cf_add_2lib
in $cf_add_libs
11780 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11786 test -n "$cf_add_1lib" && cf_add_libs
="$cf_add_libs $cf_add_1lib"
11788 LIBS
="$cf_add_libs"
11790 if test "$PKG_CONFIG" != none
&& "$PKG_CONFIG" --exists sm
; then
11791 test -n "$verbose" && echo " found package sm" 1>&6
11793 echo "${as_me:-configure}:11793: testing found package sm ..." 1>&5
11795 cf_pkgconfig_incs
="`$PKG_CONFIG --cflags sm 2>/dev/null`"
11796 cf_pkgconfig_libs
="`$PKG_CONFIG --libs sm 2>/dev/null`"
11797 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
11799 echo "${as_me:-configure}:11799: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11801 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
11803 echo "${as_me:-configure}:11803: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
11808 cf_new_extra_cppflags
=
11810 for cf_add_cflags
in $cf_pkgconfig_incs
11812 case $cf_fix_cppflags in
11814 case $cf_add_cflags in
11815 (-undef|
-nostdinc*|
-I*|
-D*|
-U*|
-E|
-P|
-C)
11816 case $cf_add_cflags in
11818 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11820 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11821 && test -z "${cf_tst_cflags}" \
11822 && cf_fix_cppflags
=yes
11824 if test $cf_fix_cppflags = yes ; then
11825 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
11827 elif test "${cf_tst_cflags}" = "\"'" ; then
11828 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
11833 case "$CPPFLAGS" in
11837 case $cf_add_cflags in
11839 cf_tst_cppflags
=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11841 CPPFLAGS
=`echo "$CPPFLAGS" | \
11842 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11843 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11847 cf_new_cppflags
="$cf_new_cppflags $cf_add_cflags"
11852 cf_new_cflags
="$cf_new_cflags $cf_add_cflags"
11857 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
11859 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11861 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11862 && test -z "${cf_tst_cflags}" \
11863 && cf_fix_cppflags
=no
11868 if test -n "$cf_new_cflags" ; then
11870 CFLAGS
="$CFLAGS $cf_new_cflags"
11873 if test -n "$cf_new_cppflags" ; then
11875 CPPFLAGS
="$CPPFLAGS $cf_new_cppflags"
11878 if test -n "$cf_new_extra_cppflags" ; then
11880 EXTRA_CPPFLAGS
="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11883 cf_add_libs
="$cf_pkgconfig_libs"
11884 # Filter out duplicates - this happens with badly-designed ".pc" files...
11885 for cf_add_1lib
in $LIBS
11887 for cf_add_2lib
in $cf_add_libs
11889 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11895 test -n "$cf_add_1lib" && cf_add_libs
="$cf_add_libs $cf_add_1lib"
11897 LIBS
="$cf_add_libs"
11910 test -n "$verbose" && echo " ...before $LIBS" 1>&6
11912 echo "${as_me:-configure}:11912: testing ...before $LIBS ..." 1>&5
11914 LIBS
=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's% % %g'`
11915 test -n "$verbose" && echo " ...after $LIBS" 1>&6
11917 echo "${as_me:-configure}:11917: testing ...after $LIBS ..." 1>&5
11933 LDFLAGS
="$X_LIBS $LDFLAGS"
11935 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
11937 echo "${as_me:-configure}:11937: testing checking additions to CFLAGS ..." 1>&5
11939 cf_check_cflags
="$CFLAGS"
11940 cf_check_cppflags
="$CPPFLAGS"
11945 cf_new_extra_cppflags
=
11947 for cf_add_cflags
in $X_CFLAGS
11949 case $cf_fix_cppflags in
11951 case $cf_add_cflags in
11952 (-undef|
-nostdinc*|
-I*|
-D*|
-U*|
-E|
-P|
-C)
11953 case $cf_add_cflags in
11955 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11957 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11958 && test -z "${cf_tst_cflags}" \
11959 && cf_fix_cppflags
=yes
11961 if test $cf_fix_cppflags = yes ; then
11962 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
11964 elif test "${cf_tst_cflags}" = "\"'" ; then
11965 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
11970 case "$CPPFLAGS" in
11974 case $cf_add_cflags in
11976 cf_tst_cppflags
=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11978 CPPFLAGS
=`echo "$CPPFLAGS" | \
11979 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11980 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11984 cf_new_cppflags
="$cf_new_cppflags $cf_add_cflags"
11989 cf_new_cflags
="$cf_new_cflags $cf_add_cflags"
11994 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
11996 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11998 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11999 && test -z "${cf_tst_cflags}" \
12000 && cf_fix_cppflags
=no
12005 if test -n "$cf_new_cflags" ; then
12006 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
12008 echo "${as_me:-configure}:12008: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
12010 CFLAGS
="$CFLAGS $cf_new_cflags"
12013 if test -n "$cf_new_cppflags" ; then
12014 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
12016 echo "${as_me:-configure}:12016: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
12018 CPPFLAGS
="$CPPFLAGS $cf_new_cppflags"
12021 if test -n "$cf_new_extra_cppflags" ; then
12022 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
12024 echo "${as_me:-configure}:12024: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
12026 EXTRA_CPPFLAGS
="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12029 if test "x$cf_check_cflags" != "x$CFLAGS" ; then
12030 cat >conftest.
$ac_ext <<_ACEOF
12031 #line 12031 "configure"
12032 #include "confdefs.h"
12037 printf("Hello world");
12042 rm -f conftest.
$ac_objext conftest
$ac_exeext
12043 if { (eval echo "$as_me:12043: \"$ac_link\"") >&5
12044 (eval $ac_link) 2>&5
12046 echo "$as_me:12046: \$? = $ac_status" >&5
12047 (exit $ac_status); } &&
12048 { ac_try
='test -s conftest$ac_exeext'
12049 { (eval echo "$as_me:12049: \"$ac_try\"") >&5
12050 (eval $ac_try) 2>&5
12052 echo "$as_me:12052: \$? = $ac_status" >&5
12053 (exit $ac_status); }; }; then
12056 echo "$as_me: failed program was:" >&5
12057 cat conftest.
$ac_ext >&5
12058 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
12060 echo "${as_me:-configure}:12060: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
12062 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then
12063 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
12065 echo "${as_me:-configure}:12065: testing but keeping change to \$CPPFLAGS ..." 1>&5
12068 CFLAGS
="$cf_check_flags"
12070 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12073 echo "$as_me:12073: checking for XOpenDisplay" >&5
12074 echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6
12075 if test "${ac_cv_func_XOpenDisplay+set}" = set; then
12076 echo $ECHO_N "(cached) $ECHO_C" >&6
12078 cat >conftest.
$ac_ext <<_ACEOF
12079 #line 12079 "configure"
12080 #include "confdefs.h"
12081 /* System header to define __stub macros and hopefully few prototypes,
12082 which can conflict with char XOpenDisplay (); below. */
12083 #include <assert.h>
12084 /* Override any gcc2 internal prototype to avoid an error. */
12088 /* We use char because int might match the return type of a gcc2
12089 builtin and then its argument prototype would still apply. */
12090 char XOpenDisplay ();
12096 /* The GNU C library defines this for functions which it implements
12097 to always fail with ENOSYS. Some functions are actually named
12098 something starting with __ and the normal name is an alias. */
12099 #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay)
12102 f = XOpenDisplay; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
12109 rm -f conftest.
$ac_objext conftest
$ac_exeext
12110 if { (eval echo "$as_me:12110: \"$ac_link\"") >&5
12111 (eval $ac_link) 2>&5
12113 echo "$as_me:12113: \$? = $ac_status" >&5
12114 (exit $ac_status); } &&
12115 { ac_try
='test -s conftest$ac_exeext'
12116 { (eval echo "$as_me:12116: \"$ac_try\"") >&5
12117 (eval $ac_try) 2>&5
12119 echo "$as_me:12119: \$? = $ac_status" >&5
12120 (exit $ac_status); }; }; then
12121 ac_cv_func_XOpenDisplay
=yes
12123 echo "$as_me: failed program was:" >&5
12124 cat conftest.
$ac_ext >&5
12125 ac_cv_func_XOpenDisplay
=no
12127 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12129 echo "$as_me:12129: result: $ac_cv_func_XOpenDisplay" >&5
12130 echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6
12131 if test $ac_cv_func_XOpenDisplay = yes; then
12135 echo "$as_me:12135: checking for XOpenDisplay in -lX11" >&5
12136 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
12137 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12140 ac_check_lib_save_LIBS
=$LIBS
12141 LIBS
="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
12142 cat >conftest.
$ac_ext <<_ACEOF
12143 #line 12143 "configure"
12144 #include "confdefs.h"
12146 /* Override any gcc2 internal prototype to avoid an error. */
12150 /* We use char because int might match the return type of a gcc2
12151 builtin and then its argument prototype would still apply. */
12152 char XOpenDisplay ();
12161 rm -f conftest.
$ac_objext conftest
$ac_exeext
12162 if { (eval echo "$as_me:12162: \"$ac_link\"") >&5
12163 (eval $ac_link) 2>&5
12165 echo "$as_me:12165: \$? = $ac_status" >&5
12166 (exit $ac_status); } &&
12167 { ac_try
='test -s conftest$ac_exeext'
12168 { (eval echo "$as_me:12168: \"$ac_try\"") >&5
12169 (eval $ac_try) 2>&5
12171 echo "$as_me:12171: \$? = $ac_status" >&5
12172 (exit $ac_status); }; }; then
12173 ac_cv_lib_X11_XOpenDisplay
=yes
12175 echo "$as_me: failed program was:" >&5
12176 cat conftest.
$ac_ext >&5
12177 ac_cv_lib_X11_XOpenDisplay
=no
12179 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12180 LIBS
=$ac_check_lib_save_LIBS
12182 echo "$as_me:12182: result: $ac_cv_lib_X11_XOpenDisplay" >&5
12183 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
12184 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
12186 cf_add_libs
="-lX11"
12187 # Filter out duplicates - this happens with badly-designed ".pc" files...
12188 for cf_add_1lib
in $LIBS
12190 for cf_add_2lib
in $cf_add_libs
12192 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12198 test -n "$cf_add_1lib" && cf_add_libs
="$cf_add_libs $cf_add_1lib"
12200 LIBS
="$cf_add_libs"
12206 echo "$as_me:12206: checking for XtAppInitialize" >&5
12207 echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6
12208 if test "${ac_cv_func_XtAppInitialize+set}" = set; then
12209 echo $ECHO_N "(cached) $ECHO_C" >&6
12211 cat >conftest.
$ac_ext <<_ACEOF
12212 #line 12212 "configure"
12213 #include "confdefs.h"
12214 /* System header to define __stub macros and hopefully few prototypes,
12215 which can conflict with char XtAppInitialize (); below. */
12216 #include <assert.h>
12217 /* Override any gcc2 internal prototype to avoid an error. */
12221 /* We use char because int might match the return type of a gcc2
12222 builtin and then its argument prototype would still apply. */
12223 char XtAppInitialize ();
12229 /* The GNU C library defines this for functions which it implements
12230 to always fail with ENOSYS. Some functions are actually named
12231 something starting with __ and the normal name is an alias. */
12232 #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize)
12235 f = XtAppInitialize; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
12242 rm -f conftest.
$ac_objext conftest
$ac_exeext
12243 if { (eval echo "$as_me:12243: \"$ac_link\"") >&5
12244 (eval $ac_link) 2>&5
12246 echo "$as_me:12246: \$? = $ac_status" >&5
12247 (exit $ac_status); } &&
12248 { ac_try
='test -s conftest$ac_exeext'
12249 { (eval echo "$as_me:12249: \"$ac_try\"") >&5
12250 (eval $ac_try) 2>&5
12252 echo "$as_me:12252: \$? = $ac_status" >&5
12253 (exit $ac_status); }; }; then
12254 ac_cv_func_XtAppInitialize
=yes
12256 echo "$as_me: failed program was:" >&5
12257 cat conftest.
$ac_ext >&5
12258 ac_cv_func_XtAppInitialize
=no
12260 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12262 echo "$as_me:12262: result: $ac_cv_func_XtAppInitialize" >&5
12263 echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6
12264 if test $ac_cv_func_XtAppInitialize = yes; then
12268 echo "$as_me:12268: checking for XtAppInitialize in -lXt" >&5
12269 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
12270 if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
12271 echo $ECHO_N "(cached) $ECHO_C" >&6
12273 ac_check_lib_save_LIBS
=$LIBS
12274 LIBS
="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
12275 cat >conftest.
$ac_ext <<_ACEOF
12276 #line 12276 "configure"
12277 #include "confdefs.h"
12279 /* Override any gcc2 internal prototype to avoid an error. */
12283 /* We use char because int might match the return type of a gcc2
12284 builtin and then its argument prototype would still apply. */
12285 char XtAppInitialize ();
12289 XtAppInitialize ();
12294 rm -f conftest.
$ac_objext conftest
$ac_exeext
12295 if { (eval echo "$as_me:12295: \"$ac_link\"") >&5
12296 (eval $ac_link) 2>&5
12298 echo "$as_me:12298: \$? = $ac_status" >&5
12299 (exit $ac_status); } &&
12300 { ac_try
='test -s conftest$ac_exeext'
12301 { (eval echo "$as_me:12301: \"$ac_try\"") >&5
12302 (eval $ac_try) 2>&5
12304 echo "$as_me:12304: \$? = $ac_status" >&5
12305 (exit $ac_status); }; }; then
12306 ac_cv_lib_Xt_XtAppInitialize
=yes
12308 echo "$as_me: failed program was:" >&5
12309 cat conftest.
$ac_ext >&5
12310 ac_cv_lib_Xt_XtAppInitialize
=no
12312 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12313 LIBS
=$ac_check_lib_save_LIBS
12315 echo "$as_me:12315: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
12316 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
12317 if test $ac_cv_lib_Xt_XtAppInitialize = yes; then
12319 cat >>confdefs.h
<<\EOF
12320 #define HAVE_LIBXT 1
12324 LIBS
="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
12331 if test $cf_have_X_LIBS = no
; then
12332 { echo "$as_me:12332: WARNING: Unable to successfully link X Toolkit library (-lXt) with
12333 test program. You will have to check and add the proper libraries by hand
12335 echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with
12336 test program. You will have to check and add the proper libraries by hand
12337 to makefile." >&2;}
12340 cf_x_athena_root
=$cf_x_athena
12343 for cf_path
in default \
12344 /usr
/contrib
/X11R6 \
12345 /usr
/contrib
/X11R5 \
12349 if test -z "$cf_x_athena_inc" ; then
12350 cf_save
="$CPPFLAGS"
12351 cf_test
=X11
/$cf_x_athena_root/SimpleMenu.h
12352 if test $cf_path != default
; then
12353 CPPFLAGS
="$cf_save -I$cf_path/include"
12354 echo "$as_me:12354: checking for $cf_test in $cf_path" >&5
12355 echo $ECHO_N "checking for $cf_test in $cf_path... $ECHO_C" >&6
12357 echo "$as_me:12357: checking for $cf_test" >&5
12358 echo $ECHO_N "checking for $cf_test... $ECHO_C" >&6
12360 cat >conftest.
$ac_ext <<_ACEOF
12361 #line 12361 "configure"
12362 #include "confdefs.h"
12364 #include <X11/Intrinsic.h>
12365 #include <$cf_test>
12374 rm -f conftest.
$ac_objext
12375 if { (eval echo "$as_me:12375: \"$ac_compile\"") >&5
12376 (eval $ac_compile) 2>&5
12378 echo "$as_me:12378: \$? = $ac_status" >&5
12379 (exit $ac_status); } &&
12380 { ac_try
='test -s conftest.$ac_objext'
12381 { (eval echo "$as_me:12381: \"$ac_try\"") >&5
12382 (eval $ac_try) 2>&5
12384 echo "$as_me:12384: \$? = $ac_status" >&5
12385 (exit $ac_status); }; }; then
12388 echo "$as_me: failed program was:" >&5
12389 cat conftest.
$ac_ext >&5
12392 rm -f conftest.
$ac_objext conftest.
$ac_ext
12393 echo "$as_me:12393: result: $cf_result" >&5
12394 echo "${ECHO_T}$cf_result" >&6
12395 if test "$cf_result" = yes ; then
12396 cf_x_athena_inc
=$cf_path
12399 CPPFLAGS
="$cf_save"
12404 if test -z "$cf_x_athena_inc" ; then
12405 { echo "$as_me:12405: WARNING: Unable to successfully find Athena header files with test program" >&5
12406 echo "$as_me: WARNING: Unable to successfully find Athena header files with test program" >&2;}
12407 elif test "$cf_x_athena_inc" != default
; then
12408 CPPFLAGS
="$CPPFLAGS -I$cf_x_athena_inc"
12411 cf_x_athena_root
=$cf_x_athena
12414 for cf_path
in default \
12415 /usr
/contrib
/X11R6 \
12416 /usr
/contrib
/X11R5 \
12421 ${cf_x_athena_root} \
12422 ${cf_x_athena_root}7 \
12423 ${cf_x_athena_root}6
12426 "-l$cf_lib -lXmu" \
12427 "-l$cf_lib -lXpm -lXmu" \
12428 "-l${cf_lib}_s -lXmu_s"
12430 if test -z "$cf_x_athena_lib" ; then
12432 cf_test
=XawSimpleMenuAddGlobalActions
12433 if test $cf_path != default
; then
12435 cf_add_libs
="-L$cf_path/lib $cf_libs"
12436 # Filter out duplicates - this happens with badly-designed ".pc" files...
12437 for cf_add_1lib
in $LIBS
12439 for cf_add_2lib
in $cf_add_libs
12441 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12447 test -n "$cf_add_1lib" && cf_add_libs
="$cf_add_libs $cf_add_1lib"
12449 LIBS
="$cf_add_libs"
12451 echo "$as_me:12451: checking for $cf_libs in $cf_path" >&5
12452 echo $ECHO_N "checking for $cf_libs in $cf_path... $ECHO_C" >&6
12455 cf_add_libs
="$cf_libs"
12456 # Filter out duplicates - this happens with badly-designed ".pc" files...
12457 for cf_add_1lib
in $LIBS
12459 for cf_add_2lib
in $cf_add_libs
12461 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12467 test -n "$cf_add_1lib" && cf_add_libs
="$cf_add_libs $cf_add_1lib"
12469 LIBS
="$cf_add_libs"
12471 echo "$as_me:12471: checking for $cf_test in $cf_libs" >&5
12472 echo $ECHO_N "checking for $cf_test in $cf_libs... $ECHO_C" >&6
12474 cat >conftest.
$ac_ext <<_ACEOF
12475 #line 12475 "configure"
12476 #include "confdefs.h"
12478 #include <X11/Intrinsic.h>
12479 #include <X11/$cf_x_athena_root/SimpleMenu.h>
12485 $cf_test((XtAppContext) 0)
12490 rm -f conftest.
$ac_objext conftest
$ac_exeext
12491 if { (eval echo "$as_me:12491: \"$ac_link\"") >&5
12492 (eval $ac_link) 2>&5
12494 echo "$as_me:12494: \$? = $ac_status" >&5
12495 (exit $ac_status); } &&
12496 { ac_try
='test -s conftest$ac_exeext'
12497 { (eval echo "$as_me:12497: \"$ac_try\"") >&5
12498 (eval $ac_try) 2>&5
12500 echo "$as_me:12500: \$? = $ac_status" >&5
12501 (exit $ac_status); }; }; then
12504 echo "$as_me: failed program was:" >&5
12505 cat conftest.
$ac_ext >&5
12508 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12509 echo "$as_me:12509: result: $cf_result" >&5
12510 echo "${ECHO_T}$cf_result" >&6
12511 if test "$cf_result" = yes ; then
12512 cf_x_athena_lib
="$cf_libs"
12518 test -n "$cf_x_athena_lib" && break
12522 if test -z "$cf_x_athena_lib" ; then
12523 { { echo "$as_me:12523: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&5
12524 echo "$as_me: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&2;}
12525 { (exit 1); exit 1; }; }
12528 cf_x_athena_LIBS
=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
12530 cat >>confdefs.h
<<EOF
12531 #define $cf_x_athena_LIBS 1
12536 if test -n "$ac_tool_prefix"; then
12537 for ac_prog
in xcurses-config
12539 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12540 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
12541 echo "$as_me:12541: checking for $ac_word" >&5
12542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12543 if test "${ac_cv_prog_XCURSES_CONFIG+set}" = set; then
12544 echo $ECHO_N "(cached) $ECHO_C" >&6
12546 if test -n "$XCURSES_CONFIG"; then
12547 ac_cv_prog_XCURSES_CONFIG
="$XCURSES_CONFIG" # Let the user override the test.
12549 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
12551 for ac_dir
in $ac_dummy; do
12553 test -z "$ac_dir" && ac_dir
=.
12554 $as_executable_p "$ac_dir/$ac_word" ||
continue
12555 ac_cv_prog_XCURSES_CONFIG
="$ac_tool_prefix$ac_prog"
12556 echo "$as_me:12556: found $ac_dir/$ac_word" >&5
12562 XCURSES_CONFIG
=$ac_cv_prog_XCURSES_CONFIG
12563 if test -n "$XCURSES_CONFIG"; then
12564 echo "$as_me:12564: result: $XCURSES_CONFIG" >&5
12565 echo "${ECHO_T}$XCURSES_CONFIG" >&6
12567 echo "$as_me:12567: result: no" >&5
12568 echo "${ECHO_T}no" >&6
12571 test -n "$XCURSES_CONFIG" && break
12574 if test -z "$XCURSES_CONFIG"; then
12575 ac_ct_XCURSES_CONFIG
=$XCURSES_CONFIG
12576 for ac_prog
in xcurses-config
12578 # Extract the first word of "$ac_prog", so it can be a program name with args.
12579 set dummy
$ac_prog; ac_word
=$2
12580 echo "$as_me:12580: checking for $ac_word" >&5
12581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12582 if test "${ac_cv_prog_ac_ct_XCURSES_CONFIG+set}" = set; then
12583 echo $ECHO_N "(cached) $ECHO_C" >&6
12585 if test -n "$ac_ct_XCURSES_CONFIG"; then
12586 ac_cv_prog_ac_ct_XCURSES_CONFIG
="$ac_ct_XCURSES_CONFIG" # Let the user override the test.
12588 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
12590 for ac_dir
in $ac_dummy; do
12592 test -z "$ac_dir" && ac_dir
=.
12593 $as_executable_p "$ac_dir/$ac_word" ||
continue
12594 ac_cv_prog_ac_ct_XCURSES_CONFIG
="$ac_prog"
12595 echo "$as_me:12595: found $ac_dir/$ac_word" >&5
12601 ac_ct_XCURSES_CONFIG
=$ac_cv_prog_ac_ct_XCURSES_CONFIG
12602 if test -n "$ac_ct_XCURSES_CONFIG"; then
12603 echo "$as_me:12603: result: $ac_ct_XCURSES_CONFIG" >&5
12604 echo "${ECHO_T}$ac_ct_XCURSES_CONFIG" >&6
12606 echo "$as_me:12606: result: no" >&5
12607 echo "${ECHO_T}no" >&6
12610 test -n "$ac_ct_XCURSES_CONFIG" && break
12612 test -n "$ac_ct_XCURSES_CONFIG" || ac_ct_XCURSES_CONFIG
="none"
12614 XCURSES_CONFIG
=$ac_ct_XCURSES_CONFIG
12617 if test "$XCURSES_CONFIG" != none
; then
12619 CPPFLAGS
="$CPPFLAGS `$XCURSES_CONFIG --cflags`"
12621 cf_add_libs
="`$XCURSES_CONFIG --libs`"
12622 # Filter out duplicates - this happens with badly-designed ".pc" files...
12623 for cf_add_1lib
in $LIBS
12625 for cf_add_2lib
in $cf_add_libs
12627 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12633 test -n "$cf_add_1lib" && cf_add_libs
="$cf_add_libs $cf_add_1lib"
12635 LIBS
="$cf_add_libs"
12637 cf_cv_lib_XCurses
=yes
12641 LDFLAGS
="$LDFLAGS $X_LIBS"
12643 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
12645 echo "${as_me:-configure}:12645: testing checking additions to CFLAGS ..." 1>&5
12647 cf_check_cflags
="$CFLAGS"
12648 cf_check_cppflags
="$CPPFLAGS"
12653 cf_new_extra_cppflags
=
12655 for cf_add_cflags
in $X_CFLAGS
12657 case $cf_fix_cppflags in
12659 case $cf_add_cflags in
12660 (-undef|
-nostdinc*|
-I*|
-D*|
-U*|
-E|
-P|
-C)
12661 case $cf_add_cflags in
12663 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12665 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12666 && test -z "${cf_tst_cflags}" \
12667 && cf_fix_cppflags
=yes
12669 if test $cf_fix_cppflags = yes ; then
12670 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
12672 elif test "${cf_tst_cflags}" = "\"'" ; then
12673 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
12678 case "$CPPFLAGS" in
12682 case $cf_add_cflags in
12684 cf_tst_cppflags
=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12686 CPPFLAGS
=`echo "$CPPFLAGS" | \
12687 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12688 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12692 cf_new_cppflags
="$cf_new_cppflags $cf_add_cflags"
12697 cf_new_cflags
="$cf_new_cflags $cf_add_cflags"
12702 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
12704 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12706 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12707 && test -z "${cf_tst_cflags}" \
12708 && cf_fix_cppflags
=no
12713 if test -n "$cf_new_cflags" ; then
12714 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
12716 echo "${as_me:-configure}:12716: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
12718 CFLAGS
="$CFLAGS $cf_new_cflags"
12721 if test -n "$cf_new_cppflags" ; then
12722 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
12724 echo "${as_me:-configure}:12724: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
12726 CPPFLAGS
="$CPPFLAGS $cf_new_cppflags"
12729 if test -n "$cf_new_extra_cppflags" ; then
12730 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
12732 echo "${as_me:-configure}:12732: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
12734 EXTRA_CPPFLAGS
="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12737 if test "x$cf_check_cflags" != "x$CFLAGS" ; then
12738 cat >conftest.
$ac_ext <<_ACEOF
12739 #line 12739 "configure"
12740 #include "confdefs.h"
12745 printf("Hello world");
12750 rm -f conftest.
$ac_objext conftest
$ac_exeext
12751 if { (eval echo "$as_me:12751: \"$ac_link\"") >&5
12752 (eval $ac_link) 2>&5
12754 echo "$as_me:12754: \$? = $ac_status" >&5
12755 (exit $ac_status); } &&
12756 { ac_try
='test -s conftest$ac_exeext'
12757 { (eval echo "$as_me:12757: \"$ac_try\"") >&5
12758 (eval $ac_try) 2>&5
12760 echo "$as_me:12760: \$? = $ac_status" >&5
12761 (exit $ac_status); }; }; then
12764 echo "$as_me: failed program was:" >&5
12765 cat conftest.
$ac_ext >&5
12766 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
12768 echo "${as_me:-configure}:12768: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
12770 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then
12771 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
12773 echo "${as_me:-configure}:12773: testing but keeping change to \$CPPFLAGS ..." 1>&5
12776 CFLAGS
="$cf_check_flags"
12778 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12781 echo "$as_me:12781: checking for XOpenDisplay in -lX11" >&5
12782 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
12783 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
12784 echo $ECHO_N "(cached) $ECHO_C" >&6
12786 ac_check_lib_save_LIBS
=$LIBS
12787 LIBS
="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
12788 cat >conftest.
$ac_ext <<_ACEOF
12789 #line 12789 "configure"
12790 #include "confdefs.h"
12792 /* Override any gcc2 internal prototype to avoid an error. */
12796 /* We use char because int might match the return type of a gcc2
12797 builtin and then its argument prototype would still apply. */
12798 char XOpenDisplay ();
12807 rm -f conftest.
$ac_objext conftest
$ac_exeext
12808 if { (eval echo "$as_me:12808: \"$ac_link\"") >&5
12809 (eval $ac_link) 2>&5
12811 echo "$as_me:12811: \$? = $ac_status" >&5
12812 (exit $ac_status); } &&
12813 { ac_try
='test -s conftest$ac_exeext'
12814 { (eval echo "$as_me:12814: \"$ac_try\"") >&5
12815 (eval $ac_try) 2>&5
12817 echo "$as_me:12817: \$? = $ac_status" >&5
12818 (exit $ac_status); }; }; then
12819 ac_cv_lib_X11_XOpenDisplay
=yes
12821 echo "$as_me: failed program was:" >&5
12822 cat conftest.
$ac_ext >&5
12823 ac_cv_lib_X11_XOpenDisplay
=no
12825 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12826 LIBS
=$ac_check_lib_save_LIBS
12828 echo "$as_me:12828: result: $ac_cv_lib_X11_XOpenDisplay" >&5
12829 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
12830 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
12832 cf_add_libs
="-lX11"
12833 # Filter out duplicates - this happens with badly-designed ".pc" files...
12834 for cf_add_1lib
in $LIBS
12836 for cf_add_2lib
in $cf_add_libs
12838 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12844 test -n "$cf_add_1lib" && cf_add_libs
="$cf_add_libs $cf_add_1lib"
12846 LIBS
="$cf_add_libs"
12850 echo "$as_me:12850: checking for XCurses library" >&5
12851 echo $ECHO_N "checking for XCurses library... $ECHO_C" >&6
12852 if test "${cf_cv_lib_XCurses+set}" = set; then
12853 echo $ECHO_N "(cached) $ECHO_C" >&6
12856 cf_add_libs
="-lXCurses"
12857 # Filter out duplicates - this happens with badly-designed ".pc" files...
12858 for cf_add_1lib
in $LIBS
12860 for cf_add_2lib
in $cf_add_libs
12862 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12868 test -n "$cf_add_1lib" && cf_add_libs
="$cf_add_libs $cf_add_1lib"
12870 LIBS
="$cf_add_libs"
12872 cat >conftest.
$ac_ext <<_ACEOF
12873 #line 12873 "configure"
12874 #include "confdefs.h"
12876 #include <xcurses.h>
12877 char *XCursesProgramName = "test";
12887 rm -f conftest.
$ac_objext conftest
$ac_exeext
12888 if { (eval echo "$as_me:12888: \"$ac_link\"") >&5
12889 (eval $ac_link) 2>&5
12891 echo "$as_me:12891: \$? = $ac_status" >&5
12892 (exit $ac_status); } &&
12893 { ac_try
='test -s conftest$ac_exeext'
12894 { (eval echo "$as_me:12894: \"$ac_try\"") >&5
12895 (eval $ac_try) 2>&5
12897 echo "$as_me:12897: \$? = $ac_status" >&5
12898 (exit $ac_status); }; }; then
12899 cf_cv_lib_XCurses
=yes
12901 echo "$as_me: failed program was:" >&5
12902 cat conftest.
$ac_ext >&5
12903 cf_cv_lib_XCurses
=no
12905 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12908 echo "$as_me:12908: result: $cf_cv_lib_XCurses" >&5
12909 echo "${ECHO_T}$cf_cv_lib_XCurses" >&6
12913 if test $cf_cv_lib_XCurses = yes ; then
12915 cat >>confdefs.h
<<\EOF
12919 cat >>confdefs.h
<<\EOF
12923 echo "$as_me:12923: checking for xcurses.h" >&5
12924 echo $ECHO_N "checking for xcurses.h... $ECHO_C" >&6
12925 if test "${ac_cv_header_xcurses_h+set}" = set; then
12926 echo $ECHO_N "(cached) $ECHO_C" >&6
12928 cat >conftest.
$ac_ext <<_ACEOF
12929 #line 12929 "configure"
12930 #include "confdefs.h"
12931 #include <xcurses.h>
12933 if { (eval echo "$as_me:12933: \"$ac_cpp conftest.$ac_ext\"") >&5
12934 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12936 egrep -v '^ *\+' conftest.er1
>conftest.err
12938 cat conftest.err
>&5
12939 echo "$as_me:12939: \$? = $ac_status" >&5
12940 (exit $ac_status); } >/dev
/null
; then
12941 if test -s conftest.err
; then
12942 ac_cpp_err
=$ac_c_preproc_warn_flag
12949 if test -z "$ac_cpp_err"; then
12950 ac_cv_header_xcurses_h
=yes
12952 echo "$as_me: failed program was:" >&5
12953 cat conftest.
$ac_ext >&5
12954 ac_cv_header_xcurses_h
=no
12956 rm -f conftest.err conftest.
$ac_ext
12958 echo "$as_me:12958: result: $ac_cv_header_xcurses_h" >&5
12959 echo "${ECHO_T}$ac_cv_header_xcurses_h" >&6
12960 if test $ac_cv_header_xcurses_h = yes; then
12962 cat >>confdefs.h
<<\EOF
12963 #define HAVE_XCURSES 1
12969 { { echo "$as_me:12969: error: Cannot link with XCurses" >&5
12970 echo "$as_me: error: Cannot link with XCurses" >&2;}
12971 { (exit 1); exit 1; }; }
12976 { { echo "$as_me:12976: error: unexpected screen-value: $cf_cv_screen" >&5
12977 echo "$as_me: error: unexpected screen-value: $cf_cv_screen" >&2;}
12978 { (exit 1); exit 1; }; }
12982 case $cf_cv_screen in
12984 cf_cv_libtype
=`echo "$cf_cv_screen" | sed -e 's/^ncurses//'`
12988 echo "$as_me:12988: checking for NetBSD form.h" >&5
12989 echo $ECHO_N "checking for NetBSD form.h... $ECHO_C" >&6
12990 if test "${cf_cv_netbsd_form_h+set}" = set; then
12991 echo $ECHO_N "(cached) $ECHO_C" >&6
12994 cat >conftest.
$ac_ext <<_ACEOF
12995 #line 12995 "configure"
12996 #include "confdefs.h"
12998 #include <${cf_cv_ncurses_header:-curses.h}>
13006 int y = current_field(form)->cursor_ypos;
13007 int x = current_field(form)->cursor_xpos;
13013 rm -f conftest.
$ac_objext
13014 if { (eval echo "$as_me:13014: \"$ac_compile\"") >&5
13015 (eval $ac_compile) 2>&5
13017 echo "$as_me:13017: \$? = $ac_status" >&5
13018 (exit $ac_status); } &&
13019 { ac_try
='test -s conftest.$ac_objext'
13020 { (eval echo "$as_me:13020: \"$ac_try\"") >&5
13021 (eval $ac_try) 2>&5
13023 echo "$as_me:13023: \$? = $ac_status" >&5
13024 (exit $ac_status); }; }; then
13025 cf_cv_netbsd_form_h
=yes
13028 echo "$as_me: failed program was:" >&5
13029 cat conftest.
$ac_ext >&5
13030 cf_cv_netbsd_form_h
=no
13032 rm -f conftest.
$ac_objext conftest.
$ac_ext
13035 echo "$as_me:13035: result: $cf_cv_netbsd_form_h" >&5
13036 echo "${ECHO_T}$cf_cv_netbsd_form_h" >&6
13038 test "$cf_cv_netbsd_form_h" = yes &&
13039 cat >>confdefs.h
<<\EOF
13040 #define HAVE_NETBSD_FORM_H 1
13043 echo "$as_me:13043: checking for NetBSD menu.h" >&5
13044 echo $ECHO_N "checking for NetBSD menu.h... $ECHO_C" >&6
13045 if test "${cf_cv_netbsd_menu_h+set}" = set; then
13046 echo $ECHO_N "(cached) $ECHO_C" >&6
13049 cat >conftest.
$ac_ext <<_ACEOF
13050 #line 13050 "configure"
13051 #include "confdefs.h"
13053 #include <${cf_cv_ncurses_header:-curses.h}>
13061 int y = menu->max_item_width;
13067 rm -f conftest.
$ac_objext
13068 if { (eval echo "$as_me:13068: \"$ac_compile\"") >&5
13069 (eval $ac_compile) 2>&5
13071 echo "$as_me:13071: \$? = $ac_status" >&5
13072 (exit $ac_status); } &&
13073 { ac_try
='test -s conftest.$ac_objext'
13074 { (eval echo "$as_me:13074: \"$ac_try\"") >&5
13075 (eval $ac_try) 2>&5
13077 echo "$as_me:13077: \$? = $ac_status" >&5
13078 (exit $ac_status); }; }; then
13079 cf_cv_netbsd_menu_h
=yes
13082 echo "$as_me: failed program was:" >&5
13083 cat conftest.
$ac_ext >&5
13084 cf_cv_netbsd_menu_h
=no
13086 rm -f conftest.
$ac_objext conftest.
$ac_ext
13089 echo "$as_me:13089: result: $cf_cv_netbsd_menu_h" >&5
13090 echo "${ECHO_T}$cf_cv_netbsd_menu_h" >&6
13092 test "$cf_cv_netbsd_menu_h" = yes &&
13093 cat >>confdefs.h
<<\EOF
13094 #define HAVE_NETBSD_MENU_H 1
13100 case $cf_cv_screen in
13104 # look for curses-related libraries
13106 as_ac_Lib
=`echo "ac_cv_lib_panel$cf_cv_libtype''_new_panel" | $as_tr_sh`
13107 echo "$as_me:13107: checking for new_panel in -lpanel$cf_cv_libtype" >&5
13108 echo $ECHO_N "checking for new_panel in -lpanel$cf_cv_libtype... $ECHO_C" >&6
13109 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13110 echo $ECHO_N "(cached) $ECHO_C" >&6
13112 ac_check_lib_save_LIBS
=$LIBS
13113 LIBS
="-lpanel$cf_cv_libtype $LIBS"
13114 cat >conftest.
$ac_ext <<_ACEOF
13115 #line 13115 "configure"
13116 #include "confdefs.h"
13118 /* Override any gcc2 internal prototype to avoid an error. */
13122 /* We use char because int might match the return type of a gcc2
13123 builtin and then its argument prototype would still apply. */
13133 rm -f conftest.
$ac_objext conftest
$ac_exeext
13134 if { (eval echo "$as_me:13134: \"$ac_link\"") >&5
13135 (eval $ac_link) 2>&5
13137 echo "$as_me:13137: \$? = $ac_status" >&5
13138 (exit $ac_status); } &&
13139 { ac_try
='test -s conftest$ac_exeext'
13140 { (eval echo "$as_me:13140: \"$ac_try\"") >&5
13141 (eval $ac_try) 2>&5
13143 echo "$as_me:13143: \$? = $ac_status" >&5
13144 (exit $ac_status); }; }; then
13145 eval "$as_ac_Lib=yes"
13147 echo "$as_me: failed program was:" >&5
13148 cat conftest.
$ac_ext >&5
13149 eval "$as_ac_Lib=no"
13151 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13152 LIBS
=$ac_check_lib_save_LIBS
13154 echo "$as_me:13154: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13155 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13156 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13158 cf_upper
=`echo "have_libpanel" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13160 cf_add_libs
="-lpanel$cf_cv_libtype"
13161 # Filter out duplicates - this happens with badly-designed ".pc" files...
13162 for cf_add_1lib
in $LIBS
13164 for cf_add_2lib
in $cf_add_libs
13166 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13172 test -n "$cf_add_1lib" && cf_add_libs
="$cf_add_libs $cf_add_1lib"
13174 LIBS
="$cf_add_libs"
13176 cat >>confdefs.h
<<EOF
13177 #define $cf_upper 1
13182 as_ac_Lib
=`echo "ac_cv_lib_menu$cf_cv_libtype''_menu_driver" | $as_tr_sh`
13183 echo "$as_me:13183: checking for menu_driver in -lmenu$cf_cv_libtype" >&5
13184 echo $ECHO_N "checking for menu_driver in -lmenu$cf_cv_libtype... $ECHO_C" >&6
13185 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13186 echo $ECHO_N "(cached) $ECHO_C" >&6
13188 ac_check_lib_save_LIBS
=$LIBS
13189 LIBS
="-lmenu$cf_cv_libtype $LIBS"
13190 cat >conftest.
$ac_ext <<_ACEOF
13191 #line 13191 "configure"
13192 #include "confdefs.h"
13194 /* Override any gcc2 internal prototype to avoid an error. */
13198 /* We use char because int might match the return type of a gcc2
13199 builtin and then its argument prototype would still apply. */
13200 char menu_driver ();
13209 rm -f conftest.
$ac_objext conftest
$ac_exeext
13210 if { (eval echo "$as_me:13210: \"$ac_link\"") >&5
13211 (eval $ac_link) 2>&5
13213 echo "$as_me:13213: \$? = $ac_status" >&5
13214 (exit $ac_status); } &&
13215 { ac_try
='test -s conftest$ac_exeext'
13216 { (eval echo "$as_me:13216: \"$ac_try\"") >&5
13217 (eval $ac_try) 2>&5
13219 echo "$as_me:13219: \$? = $ac_status" >&5
13220 (exit $ac_status); }; }; then
13221 eval "$as_ac_Lib=yes"
13223 echo "$as_me: failed program was:" >&5
13224 cat conftest.
$ac_ext >&5
13225 eval "$as_ac_Lib=no"
13227 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13228 LIBS
=$ac_check_lib_save_LIBS
13230 echo "$as_me:13230: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13231 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13232 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13234 cf_upper
=`echo "have_libmenu" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13236 cf_add_libs
="-lmenu$cf_cv_libtype"
13237 # Filter out duplicates - this happens with badly-designed ".pc" files...
13238 for cf_add_1lib
in $LIBS
13240 for cf_add_2lib
in $cf_add_libs
13242 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13248 test -n "$cf_add_1lib" && cf_add_libs
="$cf_add_libs $cf_add_1lib"
13250 LIBS
="$cf_add_libs"
13252 cat >>confdefs.h
<<EOF
13253 #define $cf_upper 1
13258 as_ac_Lib
=`echo "ac_cv_lib_form$cf_cv_libtype''_form_driver" | $as_tr_sh`
13259 echo "$as_me:13259: checking for form_driver in -lform$cf_cv_libtype" >&5
13260 echo $ECHO_N "checking for form_driver in -lform$cf_cv_libtype... $ECHO_C" >&6
13261 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13262 echo $ECHO_N "(cached) $ECHO_C" >&6
13264 ac_check_lib_save_LIBS
=$LIBS
13265 LIBS
="-lform$cf_cv_libtype $LIBS"
13266 cat >conftest.
$ac_ext <<_ACEOF
13267 #line 13267 "configure"
13268 #include "confdefs.h"
13270 /* Override any gcc2 internal prototype to avoid an error. */
13274 /* We use char because int might match the return type of a gcc2
13275 builtin and then its argument prototype would still apply. */
13276 char form_driver ();
13285 rm -f conftest.
$ac_objext conftest
$ac_exeext
13286 if { (eval echo "$as_me:13286: \"$ac_link\"") >&5
13287 (eval $ac_link) 2>&5
13289 echo "$as_me:13289: \$? = $ac_status" >&5
13290 (exit $ac_status); } &&
13291 { ac_try
='test -s conftest$ac_exeext'
13292 { (eval echo "$as_me:13292: \"$ac_try\"") >&5
13293 (eval $ac_try) 2>&5
13295 echo "$as_me:13295: \$? = $ac_status" >&5
13296 (exit $ac_status); }; }; then
13297 eval "$as_ac_Lib=yes"
13299 echo "$as_me: failed program was:" >&5
13300 cat conftest.
$ac_ext >&5
13301 eval "$as_ac_Lib=no"
13303 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13304 LIBS
=$ac_check_lib_save_LIBS
13306 echo "$as_me:13306: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13307 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13308 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13310 cf_upper
=`echo "have_libform" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13312 cf_add_libs
="-lform$cf_cv_libtype"
13313 # Filter out duplicates - this happens with badly-designed ".pc" files...
13314 for cf_add_1lib
in $LIBS
13316 for cf_add_2lib
in $cf_add_libs
13318 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13324 test -n "$cf_add_1lib" && cf_add_libs
="$cf_add_libs $cf_add_1lib"
13326 LIBS
="$cf_add_libs"
13328 cat >>confdefs.h
<<EOF
13329 #define $cf_upper 1
13334 # look for curses-related headers
13345 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13346 echo "$as_me:13346: checking for $ac_header" >&5
13347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13349 echo $ECHO_N "(cached) $ECHO_C" >&6
13351 cat >conftest.
$ac_ext <<_ACEOF
13352 #line 13352 "configure"
13353 #include "confdefs.h"
13354 #include <$ac_header>
13356 if { (eval echo "$as_me:13356: \"$ac_cpp conftest.$ac_ext\"") >&5
13357 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13359 egrep -v '^ *\+' conftest.er1
>conftest.err
13361 cat conftest.err
>&5
13362 echo "$as_me:13362: \$? = $ac_status" >&5
13363 (exit $ac_status); } >/dev
/null
; then
13364 if test -s conftest.err
; then
13365 ac_cpp_err
=$ac_c_preproc_warn_flag
13372 if test -z "$ac_cpp_err"; then
13373 eval "$as_ac_Header=yes"
13375 echo "$as_me: failed program was:" >&5
13376 cat conftest.
$ac_ext >&5
13377 eval "$as_ac_Header=no"
13379 rm -f conftest.err conftest.
$ac_ext
13381 echo "$as_me:13381: result: `eval echo '${'$as_ac_Header'}'`" >&5
13382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13384 cat >>confdefs.h
<<EOF
13385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13394 echo "$as_me:13394: checking for ANSI C header files" >&5
13395 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13396 if test "${ac_cv_header_stdc+set}" = set; then
13397 echo $ECHO_N "(cached) $ECHO_C" >&6
13399 cat >conftest.
$ac_ext <<_ACEOF
13400 #line 13400 "configure"
13401 #include "confdefs.h"
13402 #include <stdlib.h>
13403 #include <stdarg.h>
13404 #include <string.h>
13408 if { (eval echo "$as_me:13408: \"$ac_cpp conftest.$ac_ext\"") >&5
13409 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13411 egrep -v '^ *\+' conftest.er1
>conftest.err
13413 cat conftest.err
>&5
13414 echo "$as_me:13414: \$? = $ac_status" >&5
13415 (exit $ac_status); } >/dev
/null
; then
13416 if test -s conftest.err
; then
13417 ac_cpp_err
=$ac_c_preproc_warn_flag
13424 if test -z "$ac_cpp_err"; then
13425 ac_cv_header_stdc
=yes
13427 echo "$as_me: failed program was:" >&5
13428 cat conftest.
$ac_ext >&5
13429 ac_cv_header_stdc
=no
13431 rm -f conftest.err conftest.
$ac_ext
13433 if test $ac_cv_header_stdc = yes; then
13434 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13435 cat >conftest.
$ac_ext <<_ACEOF
13436 #line 13436 "configure"
13437 #include "confdefs.h"
13438 #include <string.h>
13441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13442 egrep "memchr" >/dev
/null
2>&1; then
13445 ac_cv_header_stdc
=no
13451 if test $ac_cv_header_stdc = yes; then
13452 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13453 cat >conftest.
$ac_ext <<_ACEOF
13454 #line 13454 "configure"
13455 #include "confdefs.h"
13456 #include <stdlib.h>
13459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13460 egrep "free" >/dev
/null
2>&1; then
13463 ac_cv_header_stdc
=no
13469 if test $ac_cv_header_stdc = yes; then
13470 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13471 if test "$cross_compiling" = yes; then
13474 cat >conftest.
$ac_ext <<_ACEOF
13475 #line 13475 "configure"
13476 #include "confdefs.h"
13478 #if ((' ' & 0x0FF) == 0x020)
13479 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13480 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13482 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13483 || ('j' <= (c) && (c) <= 'r') \
13484 || ('s' <= (c) && (c) <= 'z'))
13485 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13488 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13493 for (i = 0; i < 256; i++)
13494 if (XOR (islower (i), ISLOWER (i))
13495 || toupper (i) != TOUPPER (i))
13496 $ac_main_return(2);
13497 $ac_main_return (0);
13500 rm -f conftest
$ac_exeext
13501 if { (eval echo "$as_me:13501: \"$ac_link\"") >&5
13502 (eval $ac_link) 2>&5
13504 echo "$as_me:13504: \$? = $ac_status" >&5
13505 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13506 { (eval echo "$as_me:13506: \"$ac_try\"") >&5
13507 (eval $ac_try) 2>&5
13509 echo "$as_me:13509: \$? = $ac_status" >&5
13510 (exit $ac_status); }; }; then
13513 echo "$as_me: program exited with status $ac_status" >&5
13514 echo "$as_me: failed program was:" >&5
13515 cat conftest.
$ac_ext >&5
13516 ac_cv_header_stdc
=no
13518 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13522 echo "$as_me:13522: result: $ac_cv_header_stdc" >&5
13523 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13524 if test $ac_cv_header_stdc = yes; then
13526 cat >>confdefs.h
<<\EOF
13527 #define STDC_HEADERS 1
13532 echo "$as_me:13532: checking whether time.h and sys/time.h may both be included" >&5
13533 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
13534 if test "${ac_cv_header_time+set}" = set; then
13535 echo $ECHO_N "(cached) $ECHO_C" >&6
13537 cat >conftest.
$ac_ext <<_ACEOF
13538 #line 13538 "configure"
13539 #include "confdefs.h"
13540 #include <sys/types.h>
13541 #include <sys/time.h>
13547 if ((struct tm *) 0)
13553 rm -f conftest.
$ac_objext
13554 if { (eval echo "$as_me:13554: \"$ac_compile\"") >&5
13555 (eval $ac_compile) 2>&5
13557 echo "$as_me:13557: \$? = $ac_status" >&5
13558 (exit $ac_status); } &&
13559 { ac_try
='test -s conftest.$ac_objext'
13560 { (eval echo "$as_me:13560: \"$ac_try\"") >&5
13561 (eval $ac_try) 2>&5
13563 echo "$as_me:13563: \$? = $ac_status" >&5
13564 (exit $ac_status); }; }; then
13565 ac_cv_header_time
=yes
13567 echo "$as_me: failed program was:" >&5
13568 cat conftest.
$ac_ext >&5
13569 ac_cv_header_time
=no
13571 rm -f conftest.
$ac_objext conftest.
$ac_ext
13573 echo "$as_me:13573: result: $ac_cv_header_time" >&5
13574 echo "${ECHO_T}$ac_cv_header_time" >&6
13575 if test $ac_cv_header_time = yes; then
13577 cat >>confdefs.h
<<\EOF
13578 #define TIME_WITH_SYS_TIME 1
13595 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13596 echo "$as_me:13596: checking for $ac_header" >&5
13597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13599 echo $ECHO_N "(cached) $ECHO_C" >&6
13601 cat >conftest.
$ac_ext <<_ACEOF
13602 #line 13602 "configure"
13603 #include "confdefs.h"
13604 #include <$ac_header>
13606 if { (eval echo "$as_me:13606: \"$ac_cpp conftest.$ac_ext\"") >&5
13607 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13609 egrep -v '^ *\+' conftest.er1
>conftest.err
13611 cat conftest.err
>&5
13612 echo "$as_me:13612: \$? = $ac_status" >&5
13613 (exit $ac_status); } >/dev
/null
; then
13614 if test -s conftest.err
; then
13615 ac_cpp_err
=$ac_c_preproc_warn_flag
13622 if test -z "$ac_cpp_err"; then
13623 eval "$as_ac_Header=yes"
13625 echo "$as_me: failed program was:" >&5
13626 cat conftest.
$ac_ext >&5
13627 eval "$as_ac_Header=no"
13629 rm -f conftest.err conftest.
$ac_ext
13631 echo "$as_me:13631: result: `eval echo '${'$as_ac_Header'}'`" >&5
13632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13634 cat >>confdefs.h
<<EOF
13635 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13641 for ac_header
in unistd.h getopt.h
13643 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13644 echo "$as_me:13644: checking for $ac_header" >&5
13645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13647 echo $ECHO_N "(cached) $ECHO_C" >&6
13649 cat >conftest.
$ac_ext <<_ACEOF
13650 #line 13650 "configure"
13651 #include "confdefs.h"
13652 #include <$ac_header>
13654 if { (eval echo "$as_me:13654: \"$ac_cpp conftest.$ac_ext\"") >&5
13655 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13657 egrep -v '^ *\+' conftest.er1
>conftest.err
13659 cat conftest.err
>&5
13660 echo "$as_me:13660: \$? = $ac_status" >&5
13661 (exit $ac_status); } >/dev
/null
; then
13662 if test -s conftest.err
; then
13663 ac_cpp_err
=$ac_c_preproc_warn_flag
13670 if test -z "$ac_cpp_err"; then
13671 eval "$as_ac_Header=yes"
13673 echo "$as_me: failed program was:" >&5
13674 cat conftest.
$ac_ext >&5
13675 eval "$as_ac_Header=no"
13677 rm -f conftest.err conftest.
$ac_ext
13679 echo "$as_me:13679: result: `eval echo '${'$as_ac_Header'}'`" >&5
13680 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13681 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13682 cat >>confdefs.h
<<EOF
13683 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13689 echo "$as_me:13689: checking for header declaring getopt variables" >&5
13690 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
13691 if test "${cf_cv_getopt_header+set}" = set; then
13692 echo $ECHO_N "(cached) $ECHO_C" >&6
13695 cf_cv_getopt_header
=none
13696 for cf_header
in stdio.h stdlib.h unistd.h getopt.h
13698 cat >conftest.
$ac_ext <<_ACEOF
13699 #line 13699 "configure"
13700 #include "confdefs.h"
13702 #include <$cf_header>
13706 int x = optind; char *y = optarg
13711 rm -f conftest.
$ac_objext
13712 if { (eval echo "$as_me:13712: \"$ac_compile\"") >&5
13713 (eval $ac_compile) 2>&5
13715 echo "$as_me:13715: \$? = $ac_status" >&5
13716 (exit $ac_status); } &&
13717 { ac_try
='test -s conftest.$ac_objext'
13718 { (eval echo "$as_me:13718: \"$ac_try\"") >&5
13719 (eval $ac_try) 2>&5
13721 echo "$as_me:13721: \$? = $ac_status" >&5
13722 (exit $ac_status); }; }; then
13723 cf_cv_getopt_header
=$cf_header
13726 echo "$as_me: failed program was:" >&5
13727 cat conftest.
$ac_ext >&5
13729 rm -f conftest.
$ac_objext conftest.
$ac_ext
13733 echo "$as_me:13733: result: $cf_cv_getopt_header" >&5
13734 echo "${ECHO_T}$cf_cv_getopt_header" >&6
13735 if test $cf_cv_getopt_header != none
; then
13737 cat >>confdefs.h
<<\EOF
13738 #define HAVE_GETOPT_HEADER 1
13742 if test $cf_cv_getopt_header = getopt.h
; then
13744 cat >>confdefs.h
<<\EOF
13745 #define NEED_GETOPT_H 1
13755 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13756 echo "$as_me:13756: checking for $ac_func" >&5
13757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13758 if eval "test \"\${$as_ac_var+set}\" = set"; then
13759 echo $ECHO_N "(cached) $ECHO_C" >&6
13761 cat >conftest.
$ac_ext <<_ACEOF
13762 #line 13762 "configure"
13763 #include "confdefs.h"
13764 /* System header to define __stub macros and hopefully few prototypes,
13765 which can conflict with char $ac_func (); below. */
13766 #include <assert.h>
13767 /* Override any gcc2 internal prototype to avoid an error. */
13771 /* We use char because int might match the return type of a gcc2
13772 builtin and then its argument prototype would still apply. */
13779 /* The GNU C library defines this for functions which it implements
13780 to always fail with ENOSYS. Some functions are actually named
13781 something starting with __ and the normal name is an alias. */
13782 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13785 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
13792 rm -f conftest.
$ac_objext conftest
$ac_exeext
13793 if { (eval echo "$as_me:13793: \"$ac_link\"") >&5
13794 (eval $ac_link) 2>&5
13796 echo "$as_me:13796: \$? = $ac_status" >&5
13797 (exit $ac_status); } &&
13798 { ac_try
='test -s conftest$ac_exeext'
13799 { (eval echo "$as_me:13799: \"$ac_try\"") >&5
13800 (eval $ac_try) 2>&5
13802 echo "$as_me:13802: \$? = $ac_status" >&5
13803 (exit $ac_status); }; }; then
13804 eval "$as_ac_var=yes"
13806 echo "$as_me: failed program was:" >&5
13807 cat conftest.
$ac_ext >&5
13808 eval "$as_ac_var=no"
13810 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13812 echo "$as_me:13812: result: `eval echo '${'$as_ac_var'}'`" >&5
13813 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13814 if test `eval echo '${'$as_ac_var'}'` = yes; then
13815 cat >>confdefs.h
<<EOF
13816 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13822 if test "x$ac_cv_func_getopt" = xno
; then
13823 { { echo "$as_me:13823: error: getopt is required for building programs" >&5
13824 echo "$as_me: error: getopt is required for building programs" >&2;}
13825 { (exit 1); exit 1; }; }
13828 if test "$cf_enable_widec" = yes; then
13841 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13842 echo "$as_me:13842: checking for $ac_func" >&5
13843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13844 if eval "test \"\${$as_ac_var+set}\" = set"; then
13845 echo $ECHO_N "(cached) $ECHO_C" >&6
13847 cat >conftest.
$ac_ext <<_ACEOF
13848 #line 13848 "configure"
13849 #include "confdefs.h"
13850 /* System header to define __stub macros and hopefully few prototypes,
13851 which can conflict with char $ac_func (); below. */
13852 #include <assert.h>
13853 /* Override any gcc2 internal prototype to avoid an error. */
13857 /* We use char because int might match the return type of a gcc2
13858 builtin and then its argument prototype would still apply. */
13865 /* The GNU C library defines this for functions which it implements
13866 to always fail with ENOSYS. Some functions are actually named
13867 something starting with __ and the normal name is an alias. */
13868 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13871 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
13878 rm -f conftest.
$ac_objext conftest
$ac_exeext
13879 if { (eval echo "$as_me:13879: \"$ac_link\"") >&5
13880 (eval $ac_link) 2>&5
13882 echo "$as_me:13882: \$? = $ac_status" >&5
13883 (exit $ac_status); } &&
13884 { ac_try
='test -s conftest$ac_exeext'
13885 { (eval echo "$as_me:13885: \"$ac_try\"") >&5
13886 (eval $ac_try) 2>&5
13888 echo "$as_me:13888: \$? = $ac_status" >&5
13889 (exit $ac_status); }; }; then
13890 eval "$as_ac_var=yes"
13892 echo "$as_me: failed program was:" >&5
13893 cat conftest.
$ac_ext >&5
13894 eval "$as_ac_var=no"
13896 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13898 echo "$as_me:13898: result: `eval echo '${'$as_ac_var'}'`" >&5
13899 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13900 if test `eval echo '${'$as_ac_var'}'` = yes; then
13901 cat >>confdefs.h
<<EOF
13902 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13910 echo "$as_me:13910: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
13911 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
13912 if test "${cf_cv_need_xopen_extension+set}" = set; then
13913 echo $ECHO_N "(cached) $ECHO_C" >&6
13916 cat >conftest.
$ac_ext <<_ACEOF
13917 #line 13917 "configure"
13918 #include "confdefs.h"
13920 #include <stdlib.h>
13921 #include <${cf_cv_ncurses_header:-curses.h}>
13926 #if defined(NCURSES_VERSION_PATCH)
13927 #if (NCURSES_VERSION_PATCH < 20100501) && (NCURSES_VERSION_PATCH >= 20100403)
13931 long x = winnstr(stdscr, "", 0);
13933 getbegyx(stdscr, y1, x1)
13938 rm -f conftest.
$ac_objext conftest
$ac_exeext
13939 if { (eval echo "$as_me:13939: \"$ac_link\"") >&5
13940 (eval $ac_link) 2>&5
13942 echo "$as_me:13942: \$? = $ac_status" >&5
13943 (exit $ac_status); } &&
13944 { ac_try
='test -s conftest$ac_exeext'
13945 { (eval echo "$as_me:13945: \"$ac_try\"") >&5
13946 (eval $ac_try) 2>&5
13948 echo "$as_me:13948: \$? = $ac_status" >&5
13949 (exit $ac_status); }; }; then
13950 cf_cv_need_xopen_extension
=no
13952 echo "$as_me: failed program was:" >&5
13953 cat conftest.
$ac_ext >&5
13954 cat >conftest.
$ac_ext <<_ACEOF
13955 #line 13955 "configure"
13956 #include "confdefs.h"
13958 #define _XOPEN_SOURCE_EXTENDED
13959 #include <stdlib.h>
13960 #include <${cf_cv_ncurses_header:-curses.h}>
13965 #ifdef NCURSES_VERSION
13967 int check2 = curs_set((int)sizeof(check));
13969 long x = winnstr(stdscr, "", 0);
13971 getbegyx(stdscr, y1, x1)
13976 rm -f conftest.
$ac_objext conftest
$ac_exeext
13977 if { (eval echo "$as_me:13977: \"$ac_link\"") >&5
13978 (eval $ac_link) 2>&5
13980 echo "$as_me:13980: \$? = $ac_status" >&5
13981 (exit $ac_status); } &&
13982 { ac_try
='test -s conftest$ac_exeext'
13983 { (eval echo "$as_me:13983: \"$ac_try\"") >&5
13984 (eval $ac_try) 2>&5
13986 echo "$as_me:13986: \$? = $ac_status" >&5
13987 (exit $ac_status); }; }; then
13988 cf_cv_need_xopen_extension
=yes
13990 echo "$as_me: failed program was:" >&5
13991 cat conftest.
$ac_ext >&5
13992 cf_cv_need_xopen_extension
=unknown
13994 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13996 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13998 echo "$as_me:13998: result: $cf_cv_need_xopen_extension" >&5
13999 echo "${ECHO_T}$cf_cv_need_xopen_extension" >&6
14000 test $cf_cv_need_xopen_extension = yes && CPPFLAGS
="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
14002 echo "$as_me:14002: checking for term.h" >&5
14003 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
14004 if test "${cf_cv_term_header+set}" = set; then
14005 echo $ECHO_N "(cached) $ECHO_C" >&6
14008 # If we found <ncurses/curses.h>, look for <ncurses/term.h>, but always look
14009 # for <term.h> if we do not find the variant.
14011 cf_header_list
="term.h ncurses/term.h ncursesw/term.h"
14013 case ${cf_cv_ncurses_header:-curses.h} in
14015 cf_header_item
=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`term.h
14016 cf_header_list
="$cf_header_item $cf_header_list"
14020 for cf_header
in $cf_header_list
14022 cat >conftest.
$ac_ext <<_ACEOF
14023 #line 14023 "configure"
14024 #include "confdefs.h"
14026 #include <${cf_cv_ncurses_header:-curses.h}>
14027 #include <${cf_header}>
14036 rm -f conftest.
$ac_objext
14037 if { (eval echo "$as_me:14037: \"$ac_compile\"") >&5
14038 (eval $ac_compile) 2>&5
14040 echo "$as_me:14040: \$? = $ac_status" >&5
14041 (exit $ac_status); } &&
14042 { ac_try
='test -s conftest.$ac_objext'
14043 { (eval echo "$as_me:14043: \"$ac_try\"") >&5
14044 (eval $ac_try) 2>&5
14046 echo "$as_me:14046: \$? = $ac_status" >&5
14047 (exit $ac_status); }; }; then
14048 cf_cv_term_header
=$cf_header
14051 echo "$as_me: failed program was:" >&5
14052 cat conftest.
$ac_ext >&5
14053 cf_cv_term_header
=no
14055 rm -f conftest.
$ac_objext conftest.
$ac_ext
14058 case $cf_cv_term_header in
14060 # If curses is ncurses, some packagers still mess it up by trying to make
14061 # us use GNU termcap. This handles the most common case.
14062 for cf_header
in ncurses
/term.h ncursesw
/term.h
14064 cat >conftest.
$ac_ext <<_ACEOF
14065 #line 14065 "configure"
14066 #include "confdefs.h"
14068 #include <${cf_cv_ncurses_header:-curses.h}>
14069 #ifdef NCURSES_VERSION
14070 #include <${cf_header}>
14082 rm -f conftest.
$ac_objext
14083 if { (eval echo "$as_me:14083: \"$ac_compile\"") >&5
14084 (eval $ac_compile) 2>&5
14086 echo "$as_me:14086: \$? = $ac_status" >&5
14087 (exit $ac_status); } &&
14088 { ac_try
='test -s conftest.$ac_objext'
14089 { (eval echo "$as_me:14089: \"$ac_try\"") >&5
14090 (eval $ac_try) 2>&5
14092 echo "$as_me:14092: \$? = $ac_status" >&5
14093 (exit $ac_status); }; }; then
14094 cf_cv_term_header
=$cf_header
14097 echo "$as_me: failed program was:" >&5
14098 cat conftest.
$ac_ext >&5
14099 cf_cv_term_header
=no
14101 rm -f conftest.
$ac_objext conftest.
$ac_ext
14107 echo "$as_me:14107: result: $cf_cv_term_header" >&5
14108 echo "${ECHO_T}$cf_cv_term_header" >&6
14110 case $cf_cv_term_header in
14113 cat >>confdefs.h
<<\EOF
14114 #define HAVE_TERM_H 1
14120 cat >>confdefs.h
<<\EOF
14121 #define HAVE_NCURSES_TERM_H 1
14127 cat >>confdefs.h
<<\EOF
14128 #define HAVE_NCURSESW_TERM_H 1
14134 echo "$as_me:14134: checking for unctrl.h" >&5
14135 echo $ECHO_N "checking for unctrl.h... $ECHO_C" >&6
14136 if test "${cf_cv_unctrl_header+set}" = set; then
14137 echo $ECHO_N "(cached) $ECHO_C" >&6
14140 # If we found <ncurses/curses.h>, look for <ncurses/unctrl.h>, but always look
14141 # for <unctrl.h> if we do not find the variant.
14143 cf_header_list
="unctrl.h ncurses/unctrl.h ncursesw/unctrl.h"
14145 case ${cf_cv_ncurses_header:-curses.h} in
14147 cf_header_item
=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`unctrl.h
14148 cf_header_list
="$cf_header_item $cf_header_list"
14152 for cf_header
in $cf_header_list
14154 cat >conftest.
$ac_ext <<_ACEOF
14155 #line 14155 "configure"
14156 #include "confdefs.h"
14158 #include <${cf_cv_ncurses_header:-curses.h}>
14159 #include <${cf_header}>
14168 rm -f conftest.
$ac_objext
14169 if { (eval echo "$as_me:14169: \"$ac_compile\"") >&5
14170 (eval $ac_compile) 2>&5
14172 echo "$as_me:14172: \$? = $ac_status" >&5
14173 (exit $ac_status); } &&
14174 { ac_try
='test -s conftest.$ac_objext'
14175 { (eval echo "$as_me:14175: \"$ac_try\"") >&5
14176 (eval $ac_try) 2>&5
14178 echo "$as_me:14178: \$? = $ac_status" >&5
14179 (exit $ac_status); }; }; then
14180 cf_cv_unctrl_header
=$cf_header
14183 echo "$as_me: failed program was:" >&5
14184 cat conftest.
$ac_ext >&5
14185 cf_cv_unctrl_header
=no
14187 rm -f conftest.
$ac_objext conftest.
$ac_ext
14191 echo "$as_me:14191: result: $cf_cv_unctrl_header" >&5
14192 echo "${ECHO_T}$cf_cv_unctrl_header" >&6
14194 case $cf_cv_unctrl_header in
14196 { echo "$as_me:14196: WARNING: unctrl.h header not found" >&5
14197 echo "$as_me: WARNING: unctrl.h header not found" >&2;}
14201 case $cf_cv_unctrl_header in
14204 cat >>confdefs.h
<<\EOF
14205 #define HAVE_UNCTRL_H 1
14211 cat >>confdefs.h
<<\EOF
14212 #define HAVE_NCURSES_UNCTRL_H 1
14216 (ncursesw
/unctrl.h
)
14218 cat >>confdefs.h
<<\EOF
14219 #define HAVE_NCURSESW_UNCTRL_H 1
14226 assume_default_colors \
14252 use_default_colors \
14254 use_extended_names \
14268 cf_tr_func
=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14270 echo "$as_me:14270: checking for ${cf_func}" >&5
14271 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
14273 echo "${as_me:-configure}:14273: testing ${cf_func} ..." 1>&5
14275 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
14276 echo $ECHO_N "(cached) $ECHO_C" >&6
14279 eval cf_result
='$ac_cv_func_'$cf_func
14280 if test ".$cf_result" != ".no"; then
14281 cat >conftest.
$ac_ext <<_ACEOF
14282 #line 14282 "configure"
14283 #include "confdefs.h"
14285 #ifdef HAVE_XCURSES
14286 #include <xcurses.h>
14287 char * XCursesProgramName = "test";
14289 #include <${cf_cv_ncurses_header:-curses.h}>
14290 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
14291 #include <ncursesw/term.h>
14292 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
14293 #include <ncurses/term.h>
14294 #elif defined(HAVE_TERM_H)
14304 long foo = (long)(&${cf_func});
14305 fprintf(stderr, "testing linkage of $cf_func:%p\n", foo);
14306 if (foo + 1234 > 5678)
14307 ${cf_cv_main_return:-return}(foo);
14314 rm -f conftest.
$ac_objext conftest
$ac_exeext
14315 if { (eval echo "$as_me:14315: \"$ac_link\"") >&5
14316 (eval $ac_link) 2>&5
14318 echo "$as_me:14318: \$? = $ac_status" >&5
14319 (exit $ac_status); } &&
14320 { ac_try
='test -s conftest$ac_exeext'
14321 { (eval echo "$as_me:14321: \"$ac_try\"") >&5
14322 (eval $ac_try) 2>&5
14324 echo "$as_me:14324: \$? = $ac_status" >&5
14325 (exit $ac_status); }; }; then
14328 echo "$as_me: failed program was:" >&5
14329 cat conftest.
$ac_ext >&5
14332 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14334 eval 'cf_cv_func_'$cf_func'=$cf_result'
14338 # use the computed/retrieved cache-value:
14339 eval 'cf_result=$cf_cv_func_'$cf_func
14340 echo "$as_me:14340: result: $cf_result" >&5
14341 echo "${ECHO_T}$cf_result" >&6
14342 if test $cf_result != no
; then
14343 cat >>confdefs.h
<<EOF
14344 #define HAVE_${cf_tr_func} 1
14350 for cf_func
in tputs
14353 cf_tr_func
=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14355 echo "$as_me:14355: checking for ${cf_func}" >&5
14356 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
14358 echo "${as_me:-configure}:14358: testing ${cf_func} ..." 1>&5
14360 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
14361 echo $ECHO_N "(cached) $ECHO_C" >&6
14364 eval cf_result
='$ac_cv_func_'$cf_func
14365 if test ".$cf_result" != ".no"; then
14366 cat >conftest.
$ac_ext <<_ACEOF
14367 #line 14367 "configure"
14368 #include "confdefs.h"
14370 #ifdef HAVE_XCURSES
14371 #include <xcurses.h>
14372 char * XCursesProgramName = "test";
14374 #include <${cf_cv_ncurses_header:-curses.h}>
14375 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
14376 #include <ncursesw/term.h>
14377 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
14378 #include <ncurses/term.h>
14379 #elif defined(HAVE_TERM_H)
14389 long foo = (long)(&${cf_func});
14390 fprintf(stderr, "testing linkage of $cf_func:%p\n", foo);
14391 if (foo + 1234 > 5678)
14392 ${cf_cv_main_return:-return}(foo);
14399 rm -f conftest.
$ac_objext conftest
$ac_exeext
14400 if { (eval echo "$as_me:14400: \"$ac_link\"") >&5
14401 (eval $ac_link) 2>&5
14403 echo "$as_me:14403: \$? = $ac_status" >&5
14404 (exit $ac_status); } &&
14405 { ac_try
='test -s conftest$ac_exeext'
14406 { (eval echo "$as_me:14406: \"$ac_try\"") >&5
14407 (eval $ac_try) 2>&5
14409 echo "$as_me:14409: \$? = $ac_status" >&5
14410 (exit $ac_status); }; }; then
14413 echo "$as_me: failed program was:" >&5
14414 cat conftest.
$ac_ext >&5
14417 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14419 eval 'cf_cv_func_'$cf_func'=$cf_result'
14423 # use the computed/retrieved cache-value:
14424 eval 'cf_result=$cf_cv_func_'$cf_func
14425 echo "$as_me:14425: result: $cf_result" >&5
14426 echo "${ECHO_T}$cf_result" >&6
14427 if test $cf_result != no
; then
14428 cat >>confdefs.h
<<EOF
14429 #define HAVE_${cf_tr_func} 1
14435 if test x
$cf_cv_func_tputs = xyes
14438 for cf_arg
in int char
14440 for cf_ret
in int void
14442 if test $cf_ret = void
14444 cf_return
="/* nothing */"
14446 cf_return
="return value"
14448 cat >conftest.
$ac_ext <<_ACEOF
14449 #line 14449 "configure"
14450 #include "confdefs.h"
14452 #include <${cf_cv_ncurses_header:-curses.h}>
14453 #include <$cf_cv_term_header>
14455 static $cf_ret outc($cf_arg value) { $cf_return; }
14461 tputs("hello", 0, outc);
14462 ${cf_cv_main_return:-return}(0);
14468 rm -f conftest.
$ac_objext
14469 if { (eval echo "$as_me:14469: \"$ac_compile\"") >&5
14470 (eval $ac_compile) 2>&5
14472 echo "$as_me:14472: \$? = $ac_status" >&5
14473 (exit $ac_status); } &&
14474 { ac_try
='test -s conftest.$ac_objext'
14475 { (eval echo "$as_me:14475: \"$ac_try\"") >&5
14476 (eval $ac_try) 2>&5
14478 echo "$as_me:14478: \$? = $ac_status" >&5
14479 (exit $ac_status); }; }; then
14481 test -n "$verbose" && echo " prototype $cf_ret func($cf_arg value)" 1>&6
14483 echo "${as_me:-configure}:14483: testing prototype $cf_ret func($cf_arg value) ..." 1>&5
14485 cat >>confdefs.h
<<EOF
14486 #define TPUTS_ARG $cf_arg
14487 #define TPUTS_PROTO(func,value) $cf_ret func(TPUTS_ARG value)
14488 #define TPUTS_RETURN(value) $cf_return
14494 echo "$as_me: failed program was:" >&5
14495 cat conftest.
$ac_ext >&5
14497 rm -f conftest.
$ac_objext conftest.
$ac_ext
14499 test $cf_done = yes && break
14503 echo "$as_me:14503: checking for ncurses extended functions" >&5
14504 echo $ECHO_N "checking for ncurses extended functions... $ECHO_C" >&6
14505 if test "${cf_cv_ncurses_ext_funcs+set}" = set; then
14506 echo $ECHO_N "(cached) $ECHO_C" >&6
14509 cat >conftest.
$ac_ext <<_ACEOF
14510 #line 14510 "configure"
14511 #include "confdefs.h"
14513 #include <${cf_cv_ncurses_header:-curses.h}>
14518 int x = NCURSES_EXT_FUNCS
14524 rm -f conftest.
$ac_objext
14525 if { (eval echo "$as_me:14525: \"$ac_compile\"") >&5
14526 (eval $ac_compile) 2>&5
14528 echo "$as_me:14528: \$? = $ac_status" >&5
14529 (exit $ac_status); } &&
14530 { ac_try
='test -s conftest.$ac_objext'
14531 { (eval echo "$as_me:14531: \"$ac_try\"") >&5
14532 (eval $ac_try) 2>&5
14534 echo "$as_me:14534: \$? = $ac_status" >&5
14535 (exit $ac_status); }; }; then
14536 cf_cv_ncurses_ext_funcs
=defined
14538 echo "$as_me: failed program was:" >&5
14539 cat conftest.
$ac_ext >&5
14541 cat >conftest.
$ac_ext <<_ACEOF
14542 #line 14542 "configure"
14543 #include "confdefs.h"
14545 #include <${cf_cv_ncurses_header:-curses.h}>
14550 (void) assume_default_colors (0, 0);
14551 (void) curses_version ();
14552 (void) define_key (0, 0);
14553 (void) is_term_resized (0, 0);
14554 (void) key_defined (0);
14555 (void) keybound (0, 0);
14556 (void) keyok (0, 0);
14557 (void) resize_term (0, 0);
14558 (void) resizeterm (0, 0);
14559 (void) use_default_colors ();
14560 (void) use_extended_names (0);
14561 (void) wresize (0, 0, 0);
14566 rm -f conftest.
$ac_objext conftest
$ac_exeext
14567 if { (eval echo "$as_me:14567: \"$ac_link\"") >&5
14568 (eval $ac_link) 2>&5
14570 echo "$as_me:14570: \$? = $ac_status" >&5
14571 (exit $ac_status); } &&
14572 { ac_try
='test -s conftest$ac_exeext'
14573 { (eval echo "$as_me:14573: \"$ac_try\"") >&5
14574 (eval $ac_try) 2>&5
14576 echo "$as_me:14576: \$? = $ac_status" >&5
14577 (exit $ac_status); }; }; then
14578 cf_cv_ncurses_ext_funcs
=yes
14580 echo "$as_me: failed program was:" >&5
14581 cat conftest.
$ac_ext >&5
14582 cf_cv_ncurses_ext_funcs
=no
14584 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14587 rm -f conftest.
$ac_objext conftest.
$ac_ext
14590 echo "$as_me:14590: result: $cf_cv_ncurses_ext_funcs" >&5
14591 echo "${ECHO_T}$cf_cv_ncurses_ext_funcs" >&6
14592 test "$cf_cv_ncurses_ext_funcs" = yes &&
14593 cat >>confdefs.h
<<\EOF
14594 #define NCURSES_EXT_FUNCS 1
14597 if test "$cf_enable_widec" = yes
14599 # workaround for systems with ncurses before 20111029, due to change of
14600 # feature test macro from _XPG5 to _XOPEN_SOURCE
14601 if test -n "$cf_cv_ncurses_version" && test "x$cf_cv_ncurses_version" != xno
14604 echo "$as_me:14604: checking if _XPG5 should be defined to enable wide-characters" >&5
14605 echo $ECHO_N "checking if _XPG5 should be defined to enable wide-characters... $ECHO_C" >&6
14607 cat >conftest.
$ac_ext <<_ACEOF
14608 #line 14608 "configure"
14609 #include "confdefs.h"
14611 #include <${cf_cv_ncurses_header:-curses.h}>
14620 rm -f conftest.
$ac_objext
14621 if { (eval echo "$as_me:14621: \"$ac_compile\"") >&5
14622 (eval $ac_compile) 2>&5
14624 echo "$as_me:14624: \$? = $ac_status" >&5
14625 (exit $ac_status); } &&
14626 { ac_try
='test -s conftest.$ac_objext'
14627 { (eval echo "$as_me:14627: \"$ac_try\"") >&5
14628 (eval $ac_try) 2>&5
14630 echo "$as_me:14630: \$? = $ac_status" >&5
14631 (exit $ac_status); }; }; then
14634 echo "$as_me: failed program was:" >&5
14635 cat conftest.
$ac_ext >&5
14636 cf_save_cppflags
="$CPPFLAGS"
14637 CPPFLAGS
="$CPPFLAGS -D_XPG5"
14638 cat >conftest.
$ac_ext <<_ACEOF
14639 #line 14639 "configure"
14640 #include "confdefs.h"
14642 #include <${cf_cv_ncurses_header:-curses.h}>
14651 rm -f conftest.
$ac_objext
14652 if { (eval echo "$as_me:14652: \"$ac_compile\"") >&5
14653 (eval $ac_compile) 2>&5
14655 echo "$as_me:14655: \$? = $ac_status" >&5
14656 (exit $ac_status); } &&
14657 { ac_try
='test -s conftest.$ac_objext'
14658 { (eval echo "$as_me:14658: \"$ac_try\"") >&5
14659 (eval $ac_try) 2>&5
14661 echo "$as_me:14661: \$? = $ac_status" >&5
14662 (exit $ac_status); }; }; then
14665 echo "$as_me: failed program was:" >&5
14666 cat conftest.
$ac_ext >&5
14668 rm -f conftest.
$ac_objext conftest.
$ac_ext
14669 CPPFLAGS
="$cf_save_cppflags"
14671 rm -f conftest.
$ac_objext conftest.
$ac_ext
14672 echo "$as_me:14672: result: $cf_define_xpg5" >&5
14673 echo "${ECHO_T}$cf_define_xpg5" >&6
14675 if test "$cf_define_xpg5" = yes
14677 CPPFLAGS
="$CPPFLAGS -D_XPG5"
14681 echo "$as_me:14681: checking for wide-character functions" >&5
14682 echo $ECHO_N "checking for wide-character functions... $ECHO_C" >&6
14683 if test "${cf_cv_widechar_funcs+set}" = set; then
14684 echo $ECHO_N "(cached) $ECHO_C" >&6
14687 cat >conftest.
$ac_ext <<_ACEOF
14688 #line 14688 "configure"
14689 #include "confdefs.h"
14691 #include <${cf_cv_ncurses_header:-curses.h}>
14696 static wchar_t src_wchar[2];
14697 static cchar_t dst_cchar;
14698 setcchar(&dst_cchar, src_wchar, A_NORMAL, 0, (void *) 0);
14704 rm -f conftest.
$ac_objext conftest
$ac_exeext
14705 if { (eval echo "$as_me:14705: \"$ac_link\"") >&5
14706 (eval $ac_link) 2>&5
14708 echo "$as_me:14708: \$? = $ac_status" >&5
14709 (exit $ac_status); } &&
14710 { ac_try
='test -s conftest$ac_exeext'
14711 { (eval echo "$as_me:14711: \"$ac_try\"") >&5
14712 (eval $ac_try) 2>&5
14714 echo "$as_me:14714: \$? = $ac_status" >&5
14715 (exit $ac_status); }; }; then
14716 cf_cv_widechar_funcs
=yes
14718 echo "$as_me: failed program was:" >&5
14719 cat conftest.
$ac_ext >&5
14720 cf_cv_widechar_funcs
=no
14722 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14725 echo "$as_me:14725: result: $cf_cv_widechar_funcs" >&5
14726 echo "${ECHO_T}$cf_cv_widechar_funcs" >&6
14727 if test "$cf_cv_widechar_funcs" != no
; then
14729 cat >>confdefs.h
<<\EOF
14730 #define USE_WIDEC_SUPPORT 1
14734 cat >>confdefs.h
<<\EOF
14735 #define USE_WIDEC_SUPPORT 0
14740 cat >>confdefs.h
<<\EOF
14741 #define USE_WIDEC_SUPPORT 0
14746 echo "$as_me:14746: checking if $cf_cv_screen library uses pthreads" >&5
14747 echo $ECHO_N "checking if $cf_cv_screen library uses pthreads... $ECHO_C" >&6
14748 if test "${cf_cv_use_pthreads+set}" = set; then
14749 echo $ECHO_N "(cached) $ECHO_C" >&6
14752 cat >conftest.
$ac_ext <<_ACEOF
14753 #line 14753 "configure"
14754 #include "confdefs.h"
14756 #include <${cf_cv_ncurses_header:-curses.h}>
14757 extern void _nc_init_pthreads(void);
14764 _nc_init_pthreads();
14770 rm -f conftest.
$ac_objext conftest
$ac_exeext
14771 if { (eval echo "$as_me:14771: \"$ac_link\"") >&5
14772 (eval $ac_link) 2>&5
14774 echo "$as_me:14774: \$? = $ac_status" >&5
14775 (exit $ac_status); } &&
14776 { ac_try
='test -s conftest$ac_exeext'
14777 { (eval echo "$as_me:14777: \"$ac_try\"") >&5
14778 (eval $ac_try) 2>&5
14780 echo "$as_me:14780: \$? = $ac_status" >&5
14781 (exit $ac_status); }; }; then
14782 cf_cv_use_pthreads
=yes
14784 echo "$as_me: failed program was:" >&5
14785 cat conftest.
$ac_ext >&5
14786 cf_cv_use_pthreads
=no
14788 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14791 echo "$as_me:14791: result: $cf_cv_use_pthreads" >&5
14792 echo "${ECHO_T}$cf_cv_use_pthreads" >&6
14793 test $cf_cv_use_pthreads = yes && cat >>confdefs.h
<<\EOF
14794 #define USE_PTHREADS 1
14797 echo "$as_me:14797: checking if sys/time.h works with sys/select.h" >&5
14798 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
14799 if test "${cf_cv_sys_time_select+set}" = set; then
14800 echo $ECHO_N "(cached) $ECHO_C" >&6
14803 cat >conftest.
$ac_ext <<_ACEOF
14804 #line 14804 "configure"
14805 #include "confdefs.h"
14807 #include <sys/types.h>
14808 #ifdef HAVE_SYS_TIME_H
14809 #include <sys/time.h>
14811 #ifdef HAVE_SYS_SELECT_H
14812 #include <sys/select.h>
14823 rm -f conftest.
$ac_objext
14824 if { (eval echo "$as_me:14824: \"$ac_compile\"") >&5
14825 (eval $ac_compile) 2>&5
14827 echo "$as_me:14827: \$? = $ac_status" >&5
14828 (exit $ac_status); } &&
14829 { ac_try
='test -s conftest.$ac_objext'
14830 { (eval echo "$as_me:14830: \"$ac_try\"") >&5
14831 (eval $ac_try) 2>&5
14833 echo "$as_me:14833: \$? = $ac_status" >&5
14834 (exit $ac_status); }; }; then
14835 cf_cv_sys_time_select
=yes
14837 echo "$as_me: failed program was:" >&5
14838 cat conftest.
$ac_ext >&5
14839 cf_cv_sys_time_select
=no
14841 rm -f conftest.
$ac_objext conftest.
$ac_ext
14845 echo "$as_me:14845: result: $cf_cv_sys_time_select" >&5
14846 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
14847 test "$cf_cv_sys_time_select" = yes &&
14848 cat >>confdefs.h
<<\EOF
14849 #define HAVE_SYS_TIME_SELECT 1
14852 echo "$as_me:14852: checking for function curses_version" >&5
14853 echo $ECHO_N "checking for function curses_version... $ECHO_C" >&6
14854 if test "${cf_cv_func_curses_version+set}" = set; then
14855 echo $ECHO_N "(cached) $ECHO_C" >&6
14858 if test "$cross_compiling" = yes; then
14859 cf_cv_func_curses_version
=unknown
14861 cat >conftest.
$ac_ext <<_ACEOF
14862 #line 14862 "configure"
14863 #include "confdefs.h"
14865 #include <${cf_cv_ncurses_header:-curses.h}>
14869 sprintf(temp, "%s\n", curses_version());
14870 ${cf_cv_main_return:-return}(0);
14874 rm -f conftest
$ac_exeext
14875 if { (eval echo "$as_me:14875: \"$ac_link\"") >&5
14876 (eval $ac_link) 2>&5
14878 echo "$as_me:14878: \$? = $ac_status" >&5
14879 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14880 { (eval echo "$as_me:14880: \"$ac_try\"") >&5
14881 (eval $ac_try) 2>&5
14883 echo "$as_me:14883: \$? = $ac_status" >&5
14884 (exit $ac_status); }; }; then
14885 cf_cv_func_curses_version
=yes
14888 echo "$as_me: program exited with status $ac_status" >&5
14889 echo "$as_me: failed program was:" >&5
14890 cat conftest.
$ac_ext >&5
14891 cf_cv_func_curses_version
=no
14894 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14898 echo "$as_me:14898: result: $cf_cv_func_curses_version" >&5
14899 echo "${ECHO_T}$cf_cv_func_curses_version" >&6
14900 test "$cf_cv_func_curses_version" = yes &&
14901 cat >>confdefs.h
<<\EOF
14902 #define HAVE_CURSES_VERSION 1
14905 echo "$as_me:14905: checking for alternate character set array" >&5
14906 echo $ECHO_N "checking for alternate character set array... $ECHO_C" >&6
14907 if test "${cf_cv_curses_acs_map+set}" = set; then
14908 echo $ECHO_N "(cached) $ECHO_C" >&6
14911 cf_cv_curses_acs_map
=unknown
14912 for name
in acs_map _acs_map __acs_map
${NCURSES_WRAP_PREFIX}acs_map
14914 cat >conftest.
$ac_ext <<_ACEOF
14915 #line 14915 "configure"
14916 #include "confdefs.h"
14918 #include <${cf_cv_ncurses_header:-curses.h}>
14924 $name['k'] = ACS_PLUS
14930 rm -f conftest.
$ac_objext conftest
$ac_exeext
14931 if { (eval echo "$as_me:14931: \"$ac_link\"") >&5
14932 (eval $ac_link) 2>&5
14934 echo "$as_me:14934: \$? = $ac_status" >&5
14935 (exit $ac_status); } &&
14936 { ac_try
='test -s conftest$ac_exeext'
14937 { (eval echo "$as_me:14937: \"$ac_try\"") >&5
14938 (eval $ac_try) 2>&5
14940 echo "$as_me:14940: \$? = $ac_status" >&5
14941 (exit $ac_status); }; }; then
14942 cf_cv_curses_acs_map
=$name; break
14944 echo "$as_me: failed program was:" >&5
14945 cat conftest.
$ac_ext >&5
14947 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14951 echo "$as_me:14951: result: $cf_cv_curses_acs_map" >&5
14952 echo "${ECHO_T}$cf_cv_curses_acs_map" >&6
14954 test "$cf_cv_curses_acs_map" != unknown
&&
14955 cat >>confdefs.h
<<EOF
14956 #define CURSES_ACS_ARRAY $cf_cv_curses_acs_map
14959 if test "$cf_enable_widec" = yes; then
14961 echo "$as_me:14961: checking for wide alternate character set array" >&5
14962 echo $ECHO_N "checking for wide alternate character set array... $ECHO_C" >&6
14963 if test "${cf_cv_curses_wacs_map+set}" = set; then
14964 echo $ECHO_N "(cached) $ECHO_C" >&6
14967 cf_cv_curses_wacs_map
=unknown
14968 for name
in wacs_map _wacs_map __wacs_map _nc_wacs _wacs_char
14970 cat >conftest.
$ac_ext <<_ACEOF
14971 #line 14971 "configure"
14972 #include "confdefs.h"
14974 #ifndef _XOPEN_SOURCE_EXTENDED
14975 #define _XOPEN_SOURCE_EXTENDED
14977 #include <${cf_cv_ncurses_header:-curses.h}>
14981 void *foo = &($name['k'])
14986 rm -f conftest.
$ac_objext conftest
$ac_exeext
14987 if { (eval echo "$as_me:14987: \"$ac_link\"") >&5
14988 (eval $ac_link) 2>&5
14990 echo "$as_me:14990: \$? = $ac_status" >&5
14991 (exit $ac_status); } &&
14992 { ac_try
='test -s conftest$ac_exeext'
14993 { (eval echo "$as_me:14993: \"$ac_try\"") >&5
14994 (eval $ac_try) 2>&5
14996 echo "$as_me:14996: \$? = $ac_status" >&5
14997 (exit $ac_status); }; }; then
14998 cf_cv_curses_wacs_map
=$name
15001 echo "$as_me: failed program was:" >&5
15002 cat conftest.
$ac_ext >&5
15004 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15007 echo "$as_me:15007: result: $cf_cv_curses_wacs_map" >&5
15008 echo "${ECHO_T}$cf_cv_curses_wacs_map" >&6
15010 test "$cf_cv_curses_wacs_map" != unknown
&&
15011 cat >>confdefs.h
<<EOF
15012 #define CURSES_WACS_ARRAY $cf_cv_curses_wacs_map
15015 echo "$as_me:15015: checking for wide alternate character constants" >&5
15016 echo $ECHO_N "checking for wide alternate character constants... $ECHO_C" >&6
15017 if test "${cf_cv_curses_wacs_symbols+set}" = set; then
15018 echo $ECHO_N "(cached) $ECHO_C" >&6
15021 cf_cv_curses_wacs_symbols
=no
15022 if test "$cf_cv_curses_wacs_map" != unknown
15024 cat >conftest.
$ac_ext <<_ACEOF
15025 #line 15025 "configure"
15026 #include "confdefs.h"
15028 #ifndef _XOPEN_SOURCE_EXTENDED
15029 #define _XOPEN_SOURCE_EXTENDED
15031 #include <${cf_cv_ncurses_header:-curses.h}>
15035 cchar_t *foo = WACS_PLUS;
15036 $cf_cv_curses_wacs_map['k'] = *WACS_PLUS
15041 rm -f conftest.
$ac_objext conftest
$ac_exeext
15042 if { (eval echo "$as_me:15042: \"$ac_link\"") >&5
15043 (eval $ac_link) 2>&5
15045 echo "$as_me:15045: \$? = $ac_status" >&5
15046 (exit $ac_status); } &&
15047 { ac_try
='test -s conftest$ac_exeext'
15048 { (eval echo "$as_me:15048: \"$ac_try\"") >&5
15049 (eval $ac_try) 2>&5
15051 echo "$as_me:15051: \$? = $ac_status" >&5
15052 (exit $ac_status); }; }; then
15053 cf_cv_curses_wacs_symbols
=yes
15055 echo "$as_me: failed program was:" >&5
15056 cat conftest.
$ac_ext >&5
15058 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15060 cat >conftest.
$ac_ext <<_ACEOF
15061 #line 15061 "configure"
15062 #include "confdefs.h"
15064 #ifndef _XOPEN_SOURCE_EXTENDED
15065 #define _XOPEN_SOURCE_EXTENDED
15067 #include <${cf_cv_ncurses_header:-curses.h}>
15071 cchar_t *foo = WACS_PLUS
15076 rm -f conftest.
$ac_objext conftest
$ac_exeext
15077 if { (eval echo "$as_me:15077: \"$ac_link\"") >&5
15078 (eval $ac_link) 2>&5
15080 echo "$as_me:15080: \$? = $ac_status" >&5
15081 (exit $ac_status); } &&
15082 { ac_try
='test -s conftest$ac_exeext'
15083 { (eval echo "$as_me:15083: \"$ac_try\"") >&5
15084 (eval $ac_try) 2>&5
15086 echo "$as_me:15086: \$? = $ac_status" >&5
15087 (exit $ac_status); }; }; then
15088 cf_cv_curses_wacs_symbols
=yes
15090 echo "$as_me: failed program was:" >&5
15091 cat conftest.
$ac_ext >&5
15093 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15097 echo "$as_me:15097: result: $cf_cv_curses_wacs_symbols" >&5
15098 echo "${ECHO_T}$cf_cv_curses_wacs_symbols" >&6
15100 test "$cf_cv_curses_wacs_symbols" != no
&&
15101 cat >>confdefs.h
<<\EOF
15102 #define CURSES_WACS_SYMBOLS 1
15107 echo "$as_me:15107: checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}" >&5
15108 echo $ECHO_N "checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
15109 cat >conftest.
$ac_ext <<_ACEOF
15110 #line 15110 "configure"
15111 #include "confdefs.h"
15113 #ifndef _XOPEN_SOURCE_EXTENDED
15114 #define _XOPEN_SOURCE_EXTENDED
15116 #include <${cf_cv_ncurses_header:-curses.h}>
15127 rm -f conftest.
$ac_objext
15128 if { (eval echo "$as_me:15128: \"$ac_compile\"") >&5
15129 (eval $ac_compile) 2>&5
15131 echo "$as_me:15131: \$? = $ac_status" >&5
15132 (exit $ac_status); } &&
15133 { ac_try
='test -s conftest.$ac_objext'
15134 { (eval echo "$as_me:15134: \"$ac_try\"") >&5
15135 (eval $ac_try) 2>&5
15137 echo "$as_me:15137: \$? = $ac_status" >&5
15138 (exit $ac_status); }; }; then
15141 echo "$as_me: failed program was:" >&5
15142 cat conftest.
$ac_ext >&5
15145 rm -f conftest.
$ac_objext conftest.
$ac_ext
15146 echo "$as_me:15146: result: $cf_result" >&5
15147 echo "${ECHO_T}$cf_result" >&6
15148 if test $cf_result = yes ; then
15150 cf_result
=`echo "have_type_attr_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15152 cat >>confdefs.h
<<EOF
15153 #define $cf_result 1
15158 cat >>confdefs.h
<<EOF
15159 #define attr_t long
15164 if test "$cf_enable_widec" = yes; then
15166 # This is needed on Tru64 5.0 to declare mbstate_t
15167 echo "$as_me:15167: checking if we must include wchar.h to declare mbstate_t" >&5
15168 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
15169 if test "${cf_cv_mbstate_t+set}" = set; then
15170 echo $ECHO_N "(cached) $ECHO_C" >&6
15173 cat >conftest.
$ac_ext <<_ACEOF
15174 #line 15174 "configure"
15175 #include "confdefs.h"
15177 #include <stdlib.h>
15178 #include <stdarg.h>
15180 #ifdef HAVE_LIBUTF8_H
15181 #include <libutf8.h>
15191 rm -f conftest.
$ac_objext
15192 if { (eval echo "$as_me:15192: \"$ac_compile\"") >&5
15193 (eval $ac_compile) 2>&5
15195 echo "$as_me:15195: \$? = $ac_status" >&5
15196 (exit $ac_status); } &&
15197 { ac_try
='test -s conftest.$ac_objext'
15198 { (eval echo "$as_me:15198: \"$ac_try\"") >&5
15199 (eval $ac_try) 2>&5
15201 echo "$as_me:15201: \$? = $ac_status" >&5
15202 (exit $ac_status); }; }; then
15205 echo "$as_me: failed program was:" >&5
15206 cat conftest.
$ac_ext >&5
15207 cat >conftest.
$ac_ext <<_ACEOF
15208 #line 15208 "configure"
15209 #include "confdefs.h"
15211 #include <stdlib.h>
15212 #include <stdarg.h>
15215 #ifdef HAVE_LIBUTF8_H
15216 #include <libutf8.h>
15226 rm -f conftest.
$ac_objext
15227 if { (eval echo "$as_me:15227: \"$ac_compile\"") >&5
15228 (eval $ac_compile) 2>&5
15230 echo "$as_me:15230: \$? = $ac_status" >&5
15231 (exit $ac_status); } &&
15232 { ac_try
='test -s conftest.$ac_objext'
15233 { (eval echo "$as_me:15233: \"$ac_try\"") >&5
15234 (eval $ac_try) 2>&5
15236 echo "$as_me:15236: \$? = $ac_status" >&5
15237 (exit $ac_status); }; }; then
15238 cf_cv_mbstate_t
=yes
15240 echo "$as_me: failed program was:" >&5
15241 cat conftest.
$ac_ext >&5
15242 cf_cv_mbstate_t
=unknown
15244 rm -f conftest.
$ac_objext conftest.
$ac_ext
15246 rm -f conftest.
$ac_objext conftest.
$ac_ext
15248 echo "$as_me:15248: result: $cf_cv_mbstate_t" >&5
15249 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
15251 if test "$cf_cv_mbstate_t" = yes ; then
15253 cat >>confdefs.h
<<\EOF
15254 #define NEED_WCHAR_H 1
15260 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
15261 if test "$cf_cv_mbstate_t" = unknown
; then
15262 NCURSES_MBSTATE_T
=1
15265 # if we find mbstate_t in either place, use substitution to provide a fallback.
15266 if test "$cf_cv_mbstate_t" != unknown
; then
15267 NCURSES_OK_MBSTATE_T
=1
15270 # This is needed on Tru64 5.0 to declare wchar_t
15271 echo "$as_me:15271: checking if we must include wchar.h to declare wchar_t" >&5
15272 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
15273 if test "${cf_cv_wchar_t+set}" = set; then
15274 echo $ECHO_N "(cached) $ECHO_C" >&6
15277 cat >conftest.
$ac_ext <<_ACEOF
15278 #line 15278 "configure"
15279 #include "confdefs.h"
15281 #include <stdlib.h>
15282 #include <stdarg.h>
15284 #ifdef HAVE_LIBUTF8_H
15285 #include <libutf8.h>
15295 rm -f conftest.
$ac_objext
15296 if { (eval echo "$as_me:15296: \"$ac_compile\"") >&5
15297 (eval $ac_compile) 2>&5
15299 echo "$as_me:15299: \$? = $ac_status" >&5
15300 (exit $ac_status); } &&
15301 { ac_try
='test -s conftest.$ac_objext'
15302 { (eval echo "$as_me:15302: \"$ac_try\"") >&5
15303 (eval $ac_try) 2>&5
15305 echo "$as_me:15305: \$? = $ac_status" >&5
15306 (exit $ac_status); }; }; then
15309 echo "$as_me: failed program was:" >&5
15310 cat conftest.
$ac_ext >&5
15311 cat >conftest.
$ac_ext <<_ACEOF
15312 #line 15312 "configure"
15313 #include "confdefs.h"
15315 #include <stdlib.h>
15316 #include <stdarg.h>
15319 #ifdef HAVE_LIBUTF8_H
15320 #include <libutf8.h>
15330 rm -f conftest.
$ac_objext
15331 if { (eval echo "$as_me:15331: \"$ac_compile\"") >&5
15332 (eval $ac_compile) 2>&5
15334 echo "$as_me:15334: \$? = $ac_status" >&5
15335 (exit $ac_status); } &&
15336 { ac_try
='test -s conftest.$ac_objext'
15337 { (eval echo "$as_me:15337: \"$ac_try\"") >&5
15338 (eval $ac_try) 2>&5
15340 echo "$as_me:15340: \$? = $ac_status" >&5
15341 (exit $ac_status); }; }; then
15344 echo "$as_me: failed program was:" >&5
15345 cat conftest.
$ac_ext >&5
15346 cf_cv_wchar_t
=unknown
15348 rm -f conftest.
$ac_objext conftest.
$ac_ext
15350 rm -f conftest.
$ac_objext conftest.
$ac_ext
15352 echo "$as_me:15352: result: $cf_cv_wchar_t" >&5
15353 echo "${ECHO_T}$cf_cv_wchar_t" >&6
15355 if test "$cf_cv_wchar_t" = yes ; then
15357 cat >>confdefs.h
<<\EOF
15358 #define NEED_WCHAR_H 1
15364 # if we do not find wchar_t in either place, use substitution to provide a fallback.
15365 if test "$cf_cv_wchar_t" = unknown
; then
15369 # if we find wchar_t in either place, use substitution to provide a fallback.
15370 if test "$cf_cv_wchar_t" != unknown
; then
15371 NCURSES_OK_WCHAR_T
=1
15374 # This is needed on Tru64 5.0 to declare wint_t
15375 echo "$as_me:15375: checking if we must include wchar.h to declare wint_t" >&5
15376 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
15377 if test "${cf_cv_wint_t+set}" = set; then
15378 echo $ECHO_N "(cached) $ECHO_C" >&6
15381 cat >conftest.
$ac_ext <<_ACEOF
15382 #line 15382 "configure"
15383 #include "confdefs.h"
15385 #include <stdlib.h>
15386 #include <stdarg.h>
15388 #ifdef HAVE_LIBUTF8_H
15389 #include <libutf8.h>
15399 rm -f conftest.
$ac_objext
15400 if { (eval echo "$as_me:15400: \"$ac_compile\"") >&5
15401 (eval $ac_compile) 2>&5
15403 echo "$as_me:15403: \$? = $ac_status" >&5
15404 (exit $ac_status); } &&
15405 { ac_try
='test -s conftest.$ac_objext'
15406 { (eval echo "$as_me:15406: \"$ac_try\"") >&5
15407 (eval $ac_try) 2>&5
15409 echo "$as_me:15409: \$? = $ac_status" >&5
15410 (exit $ac_status); }; }; then
15413 echo "$as_me: failed program was:" >&5
15414 cat conftest.
$ac_ext >&5
15415 cat >conftest.
$ac_ext <<_ACEOF
15416 #line 15416 "configure"
15417 #include "confdefs.h"
15419 #include <stdlib.h>
15420 #include <stdarg.h>
15423 #ifdef HAVE_LIBUTF8_H
15424 #include <libutf8.h>
15434 rm -f conftest.
$ac_objext
15435 if { (eval echo "$as_me:15435: \"$ac_compile\"") >&5
15436 (eval $ac_compile) 2>&5
15438 echo "$as_me:15438: \$? = $ac_status" >&5
15439 (exit $ac_status); } &&
15440 { ac_try
='test -s conftest.$ac_objext'
15441 { (eval echo "$as_me:15441: \"$ac_try\"") >&5
15442 (eval $ac_try) 2>&5
15444 echo "$as_me:15444: \$? = $ac_status" >&5
15445 (exit $ac_status); }; }; then
15448 echo "$as_me: failed program was:" >&5
15449 cat conftest.
$ac_ext >&5
15450 cf_cv_wint_t
=unknown
15452 rm -f conftest.
$ac_objext conftest.
$ac_ext
15454 rm -f conftest.
$ac_objext conftest.
$ac_ext
15456 echo "$as_me:15456: result: $cf_cv_wint_t" >&5
15457 echo "${ECHO_T}$cf_cv_wint_t" >&6
15459 if test "$cf_cv_wint_t" = yes ; then
15461 cat >>confdefs.h
<<\EOF
15462 #define NEED_WCHAR_H 1
15468 # if we do not find wint_t in either place, use substitution to provide a fallback.
15469 if test "$cf_cv_wint_t" = unknown
; then
15473 # if we find wint_t in either place, use substitution to provide a fallback.
15474 if test "$cf_cv_wint_t" != unknown
; then
15475 NCURSES_OK_WINT_T
=1
15478 if test "$NCURSES_OK_MBSTATE_T" = 0 ; then
15480 echo "$as_me:15480: checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}" >&5
15481 echo $ECHO_N "checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
15482 cat >conftest.
$ac_ext <<_ACEOF
15483 #line 15483 "configure"
15484 #include "confdefs.h"
15486 #ifndef _XOPEN_SOURCE_EXTENDED
15487 #define _XOPEN_SOURCE_EXTENDED
15489 #include <${cf_cv_ncurses_header:-curses.h}>
15500 rm -f conftest.
$ac_objext
15501 if { (eval echo "$as_me:15501: \"$ac_compile\"") >&5
15502 (eval $ac_compile) 2>&5
15504 echo "$as_me:15504: \$? = $ac_status" >&5
15505 (exit $ac_status); } &&
15506 { ac_try
='test -s conftest.$ac_objext'
15507 { (eval echo "$as_me:15507: \"$ac_try\"") >&5
15508 (eval $ac_try) 2>&5
15510 echo "$as_me:15510: \$? = $ac_status" >&5
15511 (exit $ac_status); }; }; then
15514 echo "$as_me: failed program was:" >&5
15515 cat conftest.
$ac_ext >&5
15518 rm -f conftest.
$ac_objext conftest.
$ac_ext
15519 echo "$as_me:15519: result: $cf_result" >&5
15520 echo "${ECHO_T}$cf_result" >&6
15521 if test $cf_result = yes ; then
15523 cf_result
=`echo "have_type_mbstate_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15525 cat >>confdefs.h
<<EOF
15526 #define $cf_result 1
15531 cat >>confdefs.h
<<EOF
15532 #define mbstate_t long
15539 if test "$NCURSES_OK_WCHAR_T" = 0 ; then
15541 echo "$as_me:15541: checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}" >&5
15542 echo $ECHO_N "checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
15543 cat >conftest.
$ac_ext <<_ACEOF
15544 #line 15544 "configure"
15545 #include "confdefs.h"
15547 #ifndef _XOPEN_SOURCE_EXTENDED
15548 #define _XOPEN_SOURCE_EXTENDED
15550 #include <${cf_cv_ncurses_header:-curses.h}>
15561 rm -f conftest.
$ac_objext
15562 if { (eval echo "$as_me:15562: \"$ac_compile\"") >&5
15563 (eval $ac_compile) 2>&5
15565 echo "$as_me:15565: \$? = $ac_status" >&5
15566 (exit $ac_status); } &&
15567 { ac_try
='test -s conftest.$ac_objext'
15568 { (eval echo "$as_me:15568: \"$ac_try\"") >&5
15569 (eval $ac_try) 2>&5
15571 echo "$as_me:15571: \$? = $ac_status" >&5
15572 (exit $ac_status); }; }; then
15575 echo "$as_me: failed program was:" >&5
15576 cat conftest.
$ac_ext >&5
15579 rm -f conftest.
$ac_objext conftest.
$ac_ext
15580 echo "$as_me:15580: result: $cf_result" >&5
15581 echo "${ECHO_T}$cf_result" >&6
15582 if test $cf_result = yes ; then
15584 cf_result
=`echo "have_type_wchar_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15586 cat >>confdefs.h
<<EOF
15587 #define $cf_result 1
15592 cat >>confdefs.h
<<EOF
15593 #define wchar_t long
15600 if test "$NCURSES_OK_WINT_T" = 0 ; then
15602 echo "$as_me:15602: checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}" >&5
15603 echo $ECHO_N "checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
15604 cat >conftest.
$ac_ext <<_ACEOF
15605 #line 15605 "configure"
15606 #include "confdefs.h"
15608 #ifndef _XOPEN_SOURCE_EXTENDED
15609 #define _XOPEN_SOURCE_EXTENDED
15611 #include <${cf_cv_ncurses_header:-curses.h}>
15622 rm -f conftest.
$ac_objext
15623 if { (eval echo "$as_me:15623: \"$ac_compile\"") >&5
15624 (eval $ac_compile) 2>&5
15626 echo "$as_me:15626: \$? = $ac_status" >&5
15627 (exit $ac_status); } &&
15628 { ac_try
='test -s conftest.$ac_objext'
15629 { (eval echo "$as_me:15629: \"$ac_try\"") >&5
15630 (eval $ac_try) 2>&5
15632 echo "$as_me:15632: \$? = $ac_status" >&5
15633 (exit $ac_status); }; }; then
15636 echo "$as_me: failed program was:" >&5
15637 cat conftest.
$ac_ext >&5
15640 rm -f conftest.
$ac_objext conftest.
$ac_ext
15641 echo "$as_me:15641: result: $cf_result" >&5
15642 echo "${ECHO_T}$cf_result" >&6
15643 if test $cf_result = yes ; then
15645 cf_result
=`echo "have_type_wint_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15647 cat >>confdefs.h
<<EOF
15648 #define $cf_result 1
15653 cat >>confdefs.h
<<EOF
15654 #define wint_t long
15662 echo "$as_me:15662: checking for data ospeed declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
15663 echo $ECHO_N "checking for data ospeed declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
15665 cat >conftest.
$ac_ext <<_ACEOF
15666 #line 15666 "configure"
15667 #include "confdefs.h"
15669 #ifdef HAVE_XCURSES
15670 #include <xcurses.h>
15671 char * XCursesProgramName = "test";
15673 #include <${cf_cv_ncurses_header:-curses.h}>
15674 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
15675 #include <ncursesw/term.h>
15676 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
15677 #include <ncurses/term.h>
15678 #elif defined(HAVE_TERM_H)
15687 void *foo = &(ospeed)
15693 rm -f conftest.
$ac_objext
15694 if { (eval echo "$as_me:15694: \"$ac_compile\"") >&5
15695 (eval $ac_compile) 2>&5
15697 echo "$as_me:15697: \$? = $ac_status" >&5
15698 (exit $ac_status); } &&
15699 { ac_try
='test -s conftest.$ac_objext'
15700 { (eval echo "$as_me:15700: \"$ac_try\"") >&5
15701 (eval $ac_try) 2>&5
15703 echo "$as_me:15703: \$? = $ac_status" >&5
15704 (exit $ac_status); }; }; then
15707 echo "$as_me: failed program was:" >&5
15708 cat conftest.
$ac_ext >&5
15711 rm -f conftest.
$ac_objext conftest.
$ac_ext
15712 echo "$as_me:15712: result: $cf_result" >&5
15713 echo "${ECHO_T}$cf_result" >&6
15715 if test $cf_result = yes ; then
15717 cf_result
=`echo "have_curses_data_ospeed" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15719 cat >>confdefs.h
<<EOF
15720 #define $cf_result 1
15724 echo "$as_me:15724: checking for data ospeed in library" >&5
15725 echo $ECHO_N "checking for data ospeed in library... $ECHO_C" >&6
15726 # BSD linkers insist on making weak linkage, but resolve at runtime.
15727 if test "$cross_compiling" = yes; then
15730 cat >conftest.
$ac_ext <<_ACEOF
15731 #line 15731 "configure"
15732 #include "confdefs.h"
15734 #ifdef HAVE_XCURSES
15735 #include <xcurses.h>
15736 char * XCursesProgramName = "test";
15738 #include <${cf_cv_ncurses_header:-curses.h}>
15739 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
15740 #include <ncursesw/term.h>
15741 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
15742 #include <ncurses/term.h>
15743 #elif defined(HAVE_TERM_H)
15748 extern char ospeed;
15754 void *foo = &(ospeed);
15755 fprintf(stderr, "testing linkage of ospeed:%p\n", foo);
15756 ${cf_cv_main_return:-return}(foo == 0);
15763 rm -f conftest.
$ac_objext conftest
$ac_exeext
15764 if { (eval echo "$as_me:15764: \"$ac_link\"") >&5
15765 (eval $ac_link) 2>&5
15767 echo "$as_me:15767: \$? = $ac_status" >&5
15768 (exit $ac_status); } &&
15769 { ac_try
='test -s conftest$ac_exeext'
15770 { (eval echo "$as_me:15770: \"$ac_try\"") >&5
15771 (eval $ac_try) 2>&5
15773 echo "$as_me:15773: \$? = $ac_status" >&5
15774 (exit $ac_status); }; }; then
15777 echo "$as_me: failed program was:" >&5
15778 cat conftest.
$ac_ext >&5
15781 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15784 cat >conftest.
$ac_ext <<_ACEOF
15785 #line 15785 "configure"
15786 #include "confdefs.h"
15788 #ifdef HAVE_XCURSES
15789 #include <xcurses.h>
15790 char * XCursesProgramName = "test";
15792 #include <${cf_cv_ncurses_header:-curses.h}>
15793 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
15794 #include <ncursesw/term.h>
15795 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
15796 #include <ncurses/term.h>
15797 #elif defined(HAVE_TERM_H)
15802 extern char ospeed;
15805 void *foo = &(ospeed);
15806 fprintf(stderr, "testing linkage of ospeed:%p\n", foo);
15807 ${cf_cv_main_return:-return}(foo == 0);
15810 rm -f conftest
$ac_exeext
15811 if { (eval echo "$as_me:15811: \"$ac_link\"") >&5
15812 (eval $ac_link) 2>&5
15814 echo "$as_me:15814: \$? = $ac_status" >&5
15815 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15816 { (eval echo "$as_me:15816: \"$ac_try\"") >&5
15817 (eval $ac_try) 2>&5
15819 echo "$as_me:15819: \$? = $ac_status" >&5
15820 (exit $ac_status); }; }; then
15823 echo "$as_me: program exited with status $ac_status" >&5
15824 echo "$as_me: failed program was:" >&5
15825 cat conftest.
$ac_ext >&5
15828 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15830 echo "$as_me:15830: result: $cf_result" >&5
15831 echo "${ECHO_T}$cf_result" >&6
15832 if test $cf_result = yes ; then
15834 cf_result
=`echo "decl_curses_data_ospeed" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15836 cat >>confdefs.h
<<EOF
15837 #define $cf_result 1
15843 echo "$as_me:15843: checking for data boolnames declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
15844 echo $ECHO_N "checking for data boolnames declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
15846 cat >conftest.
$ac_ext <<_ACEOF
15847 #line 15847 "configure"
15848 #include "confdefs.h"
15850 #ifdef HAVE_XCURSES
15851 #include <xcurses.h>
15852 char * XCursesProgramName = "test";
15854 #include <${cf_cv_ncurses_header:-curses.h}>
15855 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
15856 #include <ncursesw/term.h>
15857 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
15858 #include <ncurses/term.h>
15859 #elif defined(HAVE_TERM_H)
15868 void *foo = &(boolnames)
15874 rm -f conftest.
$ac_objext
15875 if { (eval echo "$as_me:15875: \"$ac_compile\"") >&5
15876 (eval $ac_compile) 2>&5
15878 echo "$as_me:15878: \$? = $ac_status" >&5
15879 (exit $ac_status); } &&
15880 { ac_try
='test -s conftest.$ac_objext'
15881 { (eval echo "$as_me:15881: \"$ac_try\"") >&5
15882 (eval $ac_try) 2>&5
15884 echo "$as_me:15884: \$? = $ac_status" >&5
15885 (exit $ac_status); }; }; then
15888 echo "$as_me: failed program was:" >&5
15889 cat conftest.
$ac_ext >&5
15892 rm -f conftest.
$ac_objext conftest.
$ac_ext
15893 echo "$as_me:15893: result: $cf_result" >&5
15894 echo "${ECHO_T}$cf_result" >&6
15896 if test $cf_result = yes ; then
15898 cf_result
=`echo "have_curses_data_boolnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15900 cat >>confdefs.h
<<EOF
15901 #define $cf_result 1
15905 echo "$as_me:15905: checking for data boolnames in library" >&5
15906 echo $ECHO_N "checking for data boolnames in library... $ECHO_C" >&6
15907 # BSD linkers insist on making weak linkage, but resolve at runtime.
15908 if test "$cross_compiling" = yes; then
15911 cat >conftest.
$ac_ext <<_ACEOF
15912 #line 15912 "configure"
15913 #include "confdefs.h"
15915 #ifdef HAVE_XCURSES
15916 #include <xcurses.h>
15917 char * XCursesProgramName = "test";
15919 #include <${cf_cv_ncurses_header:-curses.h}>
15920 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
15921 #include <ncursesw/term.h>
15922 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
15923 #include <ncurses/term.h>
15924 #elif defined(HAVE_TERM_H)
15929 extern char boolnames;
15935 void *foo = &(boolnames);
15936 fprintf(stderr, "testing linkage of boolnames:%p\n", foo);
15937 ${cf_cv_main_return:-return}(foo == 0);
15944 rm -f conftest.
$ac_objext conftest
$ac_exeext
15945 if { (eval echo "$as_me:15945: \"$ac_link\"") >&5
15946 (eval $ac_link) 2>&5
15948 echo "$as_me:15948: \$? = $ac_status" >&5
15949 (exit $ac_status); } &&
15950 { ac_try
='test -s conftest$ac_exeext'
15951 { (eval echo "$as_me:15951: \"$ac_try\"") >&5
15952 (eval $ac_try) 2>&5
15954 echo "$as_me:15954: \$? = $ac_status" >&5
15955 (exit $ac_status); }; }; then
15958 echo "$as_me: failed program was:" >&5
15959 cat conftest.
$ac_ext >&5
15962 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15965 cat >conftest.
$ac_ext <<_ACEOF
15966 #line 15966 "configure"
15967 #include "confdefs.h"
15969 #ifdef HAVE_XCURSES
15970 #include <xcurses.h>
15971 char * XCursesProgramName = "test";
15973 #include <${cf_cv_ncurses_header:-curses.h}>
15974 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
15975 #include <ncursesw/term.h>
15976 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
15977 #include <ncurses/term.h>
15978 #elif defined(HAVE_TERM_H)
15983 extern char boolnames;
15986 void *foo = &(boolnames);
15987 fprintf(stderr, "testing linkage of boolnames:%p\n", foo);
15988 ${cf_cv_main_return:-return}(foo == 0);
15991 rm -f conftest
$ac_exeext
15992 if { (eval echo "$as_me:15992: \"$ac_link\"") >&5
15993 (eval $ac_link) 2>&5
15995 echo "$as_me:15995: \$? = $ac_status" >&5
15996 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15997 { (eval echo "$as_me:15997: \"$ac_try\"") >&5
15998 (eval $ac_try) 2>&5
16000 echo "$as_me:16000: \$? = $ac_status" >&5
16001 (exit $ac_status); }; }; then
16004 echo "$as_me: program exited with status $ac_status" >&5
16005 echo "$as_me: failed program was:" >&5
16006 cat conftest.
$ac_ext >&5
16009 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16011 echo "$as_me:16011: result: $cf_result" >&5
16012 echo "${ECHO_T}$cf_result" >&6
16013 if test $cf_result = yes ; then
16015 cf_result
=`echo "decl_curses_data_boolnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16017 cat >>confdefs.h
<<EOF
16018 #define $cf_result 1
16024 echo "$as_me:16024: checking for data boolfnames declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
16025 echo $ECHO_N "checking for data boolfnames declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
16027 cat >conftest.
$ac_ext <<_ACEOF
16028 #line 16028 "configure"
16029 #include "confdefs.h"
16031 #ifdef HAVE_XCURSES
16032 #include <xcurses.h>
16033 char * XCursesProgramName = "test";
16035 #include <${cf_cv_ncurses_header:-curses.h}>
16036 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
16037 #include <ncursesw/term.h>
16038 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
16039 #include <ncurses/term.h>
16040 #elif defined(HAVE_TERM_H)
16049 void *foo = &(boolfnames)
16055 rm -f conftest.
$ac_objext
16056 if { (eval echo "$as_me:16056: \"$ac_compile\"") >&5
16057 (eval $ac_compile) 2>&5
16059 echo "$as_me:16059: \$? = $ac_status" >&5
16060 (exit $ac_status); } &&
16061 { ac_try
='test -s conftest.$ac_objext'
16062 { (eval echo "$as_me:16062: \"$ac_try\"") >&5
16063 (eval $ac_try) 2>&5
16065 echo "$as_me:16065: \$? = $ac_status" >&5
16066 (exit $ac_status); }; }; then
16069 echo "$as_me: failed program was:" >&5
16070 cat conftest.
$ac_ext >&5
16073 rm -f conftest.
$ac_objext conftest.
$ac_ext
16074 echo "$as_me:16074: result: $cf_result" >&5
16075 echo "${ECHO_T}$cf_result" >&6
16077 if test $cf_result = yes ; then
16079 cf_result
=`echo "have_curses_data_boolfnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16081 cat >>confdefs.h
<<EOF
16082 #define $cf_result 1
16086 echo "$as_me:16086: checking for data boolfnames in library" >&5
16087 echo $ECHO_N "checking for data boolfnames in library... $ECHO_C" >&6
16088 # BSD linkers insist on making weak linkage, but resolve at runtime.
16089 if test "$cross_compiling" = yes; then
16092 cat >conftest.
$ac_ext <<_ACEOF
16093 #line 16093 "configure"
16094 #include "confdefs.h"
16096 #ifdef HAVE_XCURSES
16097 #include <xcurses.h>
16098 char * XCursesProgramName = "test";
16100 #include <${cf_cv_ncurses_header:-curses.h}>
16101 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
16102 #include <ncursesw/term.h>
16103 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
16104 #include <ncurses/term.h>
16105 #elif defined(HAVE_TERM_H)
16110 extern char boolfnames;
16116 void *foo = &(boolfnames);
16117 fprintf(stderr, "testing linkage of boolfnames:%p\n", foo);
16118 ${cf_cv_main_return:-return}(foo == 0);
16125 rm -f conftest.
$ac_objext conftest
$ac_exeext
16126 if { (eval echo "$as_me:16126: \"$ac_link\"") >&5
16127 (eval $ac_link) 2>&5
16129 echo "$as_me:16129: \$? = $ac_status" >&5
16130 (exit $ac_status); } &&
16131 { ac_try
='test -s conftest$ac_exeext'
16132 { (eval echo "$as_me:16132: \"$ac_try\"") >&5
16133 (eval $ac_try) 2>&5
16135 echo "$as_me:16135: \$? = $ac_status" >&5
16136 (exit $ac_status); }; }; then
16139 echo "$as_me: failed program was:" >&5
16140 cat conftest.
$ac_ext >&5
16143 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16146 cat >conftest.
$ac_ext <<_ACEOF
16147 #line 16147 "configure"
16148 #include "confdefs.h"
16150 #ifdef HAVE_XCURSES
16151 #include <xcurses.h>
16152 char * XCursesProgramName = "test";
16154 #include <${cf_cv_ncurses_header:-curses.h}>
16155 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
16156 #include <ncursesw/term.h>
16157 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
16158 #include <ncurses/term.h>
16159 #elif defined(HAVE_TERM_H)
16164 extern char boolfnames;
16167 void *foo = &(boolfnames);
16168 fprintf(stderr, "testing linkage of boolfnames:%p\n", foo);
16169 ${cf_cv_main_return:-return}(foo == 0);
16172 rm -f conftest
$ac_exeext
16173 if { (eval echo "$as_me:16173: \"$ac_link\"") >&5
16174 (eval $ac_link) 2>&5
16176 echo "$as_me:16176: \$? = $ac_status" >&5
16177 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
16178 { (eval echo "$as_me:16178: \"$ac_try\"") >&5
16179 (eval $ac_try) 2>&5
16181 echo "$as_me:16181: \$? = $ac_status" >&5
16182 (exit $ac_status); }; }; then
16185 echo "$as_me: program exited with status $ac_status" >&5
16186 echo "$as_me: failed program was:" >&5
16187 cat conftest.
$ac_ext >&5
16190 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
16192 echo "$as_me:16192: result: $cf_result" >&5
16193 echo "${ECHO_T}$cf_result" >&6
16194 if test $cf_result = yes ; then
16196 cf_result
=`echo "decl_curses_data_boolfnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16198 cat >>confdefs.h
<<EOF
16199 #define $cf_result 1
16205 if ( test "$GCC" = yes ||
test "$GXX" = yes )
16207 echo "$as_me:16207: checking if you want to turn on gcc warnings" >&5
16208 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
16210 # Check whether --enable-warnings or --disable-warnings was given.
16211 if test "${enable_warnings+set}" = set; then
16212 enableval
="$enable_warnings"
16213 test "$enableval" != yes && enableval
=no
16214 if test "$enableval" != "no" ; then
16224 echo "$as_me:16224: result: $with_warnings" >&5
16225 echo "${ECHO_T}$with_warnings" >&6
16226 if test "$with_warnings" = "yes"
16229 if test "$GCC" = yes
16231 cat > conftest.i
<<EOF
16233 #define GCC_PRINTF 0
16236 #define GCC_SCANF 0
16238 #ifndef GCC_NORETURN
16239 #define GCC_NORETURN /* nothing */
16242 #define GCC_UNUSED /* nothing */
16245 if test "$GCC" = yes
16247 { echo "$as_me:16247: checking for $CC __attribute__ directives..." >&5
16248 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
16249 cat > conftest.
$ac_ext <<EOF
16250 #line 16250 "${as_me:-configure}"
16251 #include "confdefs.h"
16252 #include "conftest.h"
16253 #include "conftest.i"
16255 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
16257 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
16260 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
16262 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
16264 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
16265 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
16266 extern void foo(void) GCC_NORETURN;
16267 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
16269 cf_printf_attribute
=no
16270 cf_scanf_attribute
=no
16271 for cf_attribute
in scanf
printf unused noreturn
16274 cf_ATTRIBUTE
=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16276 cf_directive
="__attribute__(($cf_attribute))"
16277 echo "checking for $CC $cf_directive" 1>&5
16279 case $cf_attribute in
16281 cf_printf_attribute
=yes
16282 cat >conftest.h
<<EOF
16283 #define GCC_$cf_ATTRIBUTE 1
16287 cf_scanf_attribute
=yes
16288 cat >conftest.h
<<EOF
16289 #define GCC_$cf_ATTRIBUTE 1
16293 cat >conftest.h
<<EOF
16294 #define GCC_$cf_ATTRIBUTE $cf_directive
16299 if { (eval echo "$as_me:16299: \"$ac_compile\"") >&5
16300 (eval $ac_compile) 2>&5
16302 echo "$as_me:16302: \$? = $ac_status" >&5
16303 (exit $ac_status); }; then
16304 test -n "$verbose" && echo "$as_me:16304: result: ... $cf_attribute" >&5
16305 echo "${ECHO_T}... $cf_attribute" >&6
16306 cat conftest.h
>>confdefs.h
16307 case $cf_attribute in
16310 cat >>confdefs.h
<<EOF
16311 #define GCC_NORETURN $cf_directive
16316 cf_value
='/* nothing */'
16317 if test "$cf_printf_attribute" != no
; then
16318 cf_value
='__attribute__((format(printf,fmt,var)))'
16320 cat >>confdefs.h
<<\EOF
16321 #define GCC_PRINTF 1
16326 cat >>confdefs.h
<<EOF
16327 #define GCC_PRINTFLIKE(fmt,var) $cf_value
16332 cf_value
='/* nothing */'
16333 if test "$cf_scanf_attribute" != no
; then
16334 cf_value
='__attribute__((format(scanf,fmt,var)))'
16336 cat >>confdefs.h
<<\EOF
16337 #define GCC_SCANF 1
16342 cat >>confdefs.h
<<EOF
16343 #define GCC_SCANFLIKE(fmt,var) $cf_value
16349 cat >>confdefs.h
<<EOF
16350 #define GCC_UNUSED $cf_directive
16358 fgrep define conftest.i
>>confdefs.h
16365 if test "$GCC" = yes ; then
16368 echo "$as_me:16368: checking if this is really Intel C compiler" >&5
16369 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
16370 cf_save_CFLAGS
="$CFLAGS"
16371 CFLAGS
="$CFLAGS -no-gcc"
16372 cat >conftest.
$ac_ext <<_ACEOF
16373 #line 16373 "configure"
16374 #include "confdefs.h"
16380 #ifdef __INTEL_COMPILER
16389 rm -f conftest.
$ac_objext
16390 if { (eval echo "$as_me:16390: \"$ac_compile\"") >&5
16391 (eval $ac_compile) 2>&5
16393 echo "$as_me:16393: \$? = $ac_status" >&5
16394 (exit $ac_status); } &&
16395 { ac_try
='test -s conftest.$ac_objext'
16396 { (eval echo "$as_me:16396: \"$ac_try\"") >&5
16397 (eval $ac_try) 2>&5
16399 echo "$as_me:16399: \$? = $ac_status" >&5
16400 (exit $ac_status); }; }; then
16402 cf_save_CFLAGS
="$cf_save_CFLAGS -we147"
16405 echo "$as_me: failed program was:" >&5
16406 cat conftest.
$ac_ext >&5
16408 rm -f conftest.
$ac_objext conftest.
$ac_ext
16409 CFLAGS
="$cf_save_CFLAGS"
16410 echo "$as_me:16410: result: $INTEL_COMPILER" >&5
16411 echo "${ECHO_T}$INTEL_COMPILER" >&6
16418 if test "$GCC" = yes ; then
16419 echo "$as_me:16419: checking if this is really Clang C compiler" >&5
16420 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
16421 cf_save_CFLAGS
="$CFLAGS"
16422 CFLAGS
="$CFLAGS -Qunused-arguments"
16423 cat >conftest.
$ac_ext <<_ACEOF
16424 #line 16424 "configure"
16425 #include "confdefs.h"
16440 rm -f conftest.
$ac_objext
16441 if { (eval echo "$as_me:16441: \"$ac_compile\"") >&5
16442 (eval $ac_compile) 2>&5
16444 echo "$as_me:16444: \$? = $ac_status" >&5
16445 (exit $ac_status); } &&
16446 { ac_try
='test -s conftest.$ac_objext'
16447 { (eval echo "$as_me:16447: \"$ac_try\"") >&5
16448 (eval $ac_try) 2>&5
16450 echo "$as_me:16450: \$? = $ac_status" >&5
16451 (exit $ac_status); }; }; then
16453 cf_save_CFLAGS
="$cf_save_CFLAGS -Qunused-arguments"
16456 echo "$as_me: failed program was:" >&5
16457 cat conftest.
$ac_ext >&5
16459 rm -f conftest.
$ac_objext conftest.
$ac_ext
16460 CFLAGS
="$cf_save_CFLAGS"
16461 echo "$as_me:16461: result: $CLANG_COMPILER" >&5
16462 echo "${ECHO_T}$CLANG_COMPILER" >&6
16465 cat > conftest.
$ac_ext <<EOF
16466 #line 16466 "${as_me:-configure}"
16467 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
16470 if test "$INTEL_COMPILER" = yes
16472 # The "-wdXXX" options suppress warnings:
16473 # remark #1419: external declaration in primary source file
16474 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
16475 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
16476 # remark #193: zero used for undefined preprocessing identifier
16477 # remark #593: variable "curs_sb_left_arrow" was set but never used
16478 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
16479 # remark #869: parameter "tw" was never referenced
16480 # remark #981: operands are evaluated in unspecified order
16481 # warning #279: controlling expression is constant
16483 { echo "$as_me:16483: checking for $CC warning options..." >&5
16484 echo "$as_me: checking for $CC warning options..." >&6;}
16485 cf_save_CFLAGS
="$CFLAGS"
16486 EXTRA_CFLAGS
="-Wall"
16498 CFLAGS
="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
16499 if { (eval echo "$as_me:16499: \"$ac_compile\"") >&5
16500 (eval $ac_compile) 2>&5
16502 echo "$as_me:16502: \$? = $ac_status" >&5
16503 (exit $ac_status); }; then
16504 test -n "$verbose" && echo "$as_me:16504: result: ... -$cf_opt" >&5
16505 echo "${ECHO_T}... -$cf_opt" >&6
16506 EXTRA_CFLAGS
="$EXTRA_CFLAGS -$cf_opt"
16509 CFLAGS
="$cf_save_CFLAGS"
16511 elif test "$GCC" = yes
16513 { echo "$as_me:16513: checking for $CC warning options..." >&5
16514 echo "$as_me: checking for $CC warning options..." >&6;}
16515 cf_save_CFLAGS
="$CFLAGS"
16518 test "$with_ext_const" = yes && cf_warn_CONST
="Wwrite-strings"
16519 cf_gcc_warnings
="Wignored-qualifiers Wlogical-op Wvarargs"
16520 test "x$CLANG_COMPILER" = xyes
&& cf_gcc_warnings
=
16521 for cf_opt
in W Wall \
16522 Wbad-function-cast \
16525 Wdeclaration-after-statement \
16528 Wmissing-declarations \
16529 Wmissing-prototypes \
16533 Wstrict-prototypes \
16534 Wundef
$cf_gcc_warnings $cf_warn_CONST
16536 CFLAGS
="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
16537 if { (eval echo "$as_me:16537: \"$ac_compile\"") >&5
16538 (eval $ac_compile) 2>&5
16540 echo "$as_me:16540: \$? = $ac_status" >&5
16541 (exit $ac_status); }; then
16542 test -n "$verbose" && echo "$as_me:16542: result: ... -$cf_opt" >&5
16543 echo "${ECHO_T}... -$cf_opt" >&6
16546 CPPFLAGS
="$CPPFLAGS -DXTSTRINGDEFINES"
16549 case $GCC_VERSION in
16551 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
16553 echo "${as_me:-configure}:16553: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
16559 case $GCC_VERSION in
16561 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
16563 echo "${as_me:-configure}:16563: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
16569 EXTRA_CFLAGS
="$EXTRA_CFLAGS -$cf_opt"
16572 CFLAGS
="$cf_save_CFLAGS"
16579 echo "$as_me:16579: checking if you want to use dmalloc for testing" >&5
16580 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
16582 # Check whether --with-dmalloc or --without-dmalloc was given.
16583 if test "${with_dmalloc+set}" = set; then
16584 withval
="$with_dmalloc"
16586 cat >>confdefs.h
<<EOF
16587 #define USE_DMALLOC 1
16590 : ${with_cflags:=-g}
16591 : ${with_no_leaks:=yes}
16596 echo "$as_me:16596: result: ${with_dmalloc:-no}" >&5
16597 echo "${ECHO_T}${with_dmalloc:-no}" >&6
16599 case .
$with_cflags in
16609 cf_new_extra_cppflags
=
16611 for cf_add_cflags
in -g
16613 case $cf_fix_cppflags in
16615 case $cf_add_cflags in
16616 (-undef|
-nostdinc*|
-I*|
-D*|
-U*|
-E|
-P|
-C)
16617 case $cf_add_cflags in
16619 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16621 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16622 && test -z "${cf_tst_cflags}" \
16623 && cf_fix_cppflags
=yes
16625 if test $cf_fix_cppflags = yes ; then
16626 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
16628 elif test "${cf_tst_cflags}" = "\"'" ; then
16629 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
16634 case "$CPPFLAGS" in
16638 case $cf_add_cflags in
16640 cf_tst_cppflags
=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16642 CPPFLAGS
=`echo "$CPPFLAGS" | \
16643 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16644 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16648 cf_new_cppflags
="$cf_new_cppflags $cf_add_cflags"
16653 cf_new_cflags
="$cf_new_cflags $cf_add_cflags"
16658 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
16660 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16662 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16663 && test -z "${cf_tst_cflags}" \
16664 && cf_fix_cppflags
=no
16669 if test -n "$cf_new_cflags" ; then
16671 CFLAGS
="$CFLAGS $cf_new_cflags"
16674 if test -n "$cf_new_cppflags" ; then
16676 CPPFLAGS
="$CPPFLAGS $cf_new_cppflags"
16679 if test -n "$cf_new_extra_cppflags" ; then
16681 EXTRA_CPPFLAGS
="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
16689 if test "$with_dmalloc" = yes ; then
16690 echo "$as_me:16690: checking for dmalloc.h" >&5
16691 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
16692 if test "${ac_cv_header_dmalloc_h+set}" = set; then
16693 echo $ECHO_N "(cached) $ECHO_C" >&6
16695 cat >conftest.
$ac_ext <<_ACEOF
16696 #line 16696 "configure"
16697 #include "confdefs.h"
16698 #include <dmalloc.h>
16700 if { (eval echo "$as_me:16700: \"$ac_cpp conftest.$ac_ext\"") >&5
16701 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16703 egrep -v '^ *\+' conftest.er1
>conftest.err
16705 cat conftest.err
>&5
16706 echo "$as_me:16706: \$? = $ac_status" >&5
16707 (exit $ac_status); } >/dev
/null
; then
16708 if test -s conftest.err
; then
16709 ac_cpp_err
=$ac_c_preproc_warn_flag
16716 if test -z "$ac_cpp_err"; then
16717 ac_cv_header_dmalloc_h
=yes
16719 echo "$as_me: failed program was:" >&5
16720 cat conftest.
$ac_ext >&5
16721 ac_cv_header_dmalloc_h
=no
16723 rm -f conftest.err conftest.
$ac_ext
16725 echo "$as_me:16725: result: $ac_cv_header_dmalloc_h" >&5
16726 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
16727 if test $ac_cv_header_dmalloc_h = yes; then
16729 echo "$as_me:16729: checking for dmalloc_debug in -ldmalloc" >&5
16730 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
16731 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
16732 echo $ECHO_N "(cached) $ECHO_C" >&6
16734 ac_check_lib_save_LIBS
=$LIBS
16735 LIBS
="-ldmalloc $LIBS"
16736 cat >conftest.
$ac_ext <<_ACEOF
16737 #line 16737 "configure"
16738 #include "confdefs.h"
16740 /* Override any gcc2 internal prototype to avoid an error. */
16744 /* We use char because int might match the return type of a gcc2
16745 builtin and then its argument prototype would still apply. */
16746 char dmalloc_debug ();
16755 rm -f conftest.
$ac_objext conftest
$ac_exeext
16756 if { (eval echo "$as_me:16756: \"$ac_link\"") >&5
16757 (eval $ac_link) 2>&5
16759 echo "$as_me:16759: \$? = $ac_status" >&5
16760 (exit $ac_status); } &&
16761 { ac_try
='test -s conftest$ac_exeext'
16762 { (eval echo "$as_me:16762: \"$ac_try\"") >&5
16763 (eval $ac_try) 2>&5
16765 echo "$as_me:16765: \$? = $ac_status" >&5
16766 (exit $ac_status); }; }; then
16767 ac_cv_lib_dmalloc_dmalloc_debug
=yes
16769 echo "$as_me: failed program was:" >&5
16770 cat conftest.
$ac_ext >&5
16771 ac_cv_lib_dmalloc_dmalloc_debug
=no
16773 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16774 LIBS
=$ac_check_lib_save_LIBS
16776 echo "$as_me:16776: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
16777 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
16778 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
16779 cat >>confdefs.h
<<EOF
16780 #define HAVE_LIBDMALLOC 1
16783 LIBS
="-ldmalloc $LIBS"
16791 echo "$as_me:16791: checking if you want to use dbmalloc for testing" >&5
16792 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
16794 # Check whether --with-dbmalloc or --without-dbmalloc was given.
16795 if test "${with_dbmalloc+set}" = set; then
16796 withval
="$with_dbmalloc"
16798 cat >>confdefs.h
<<EOF
16799 #define USE_DBMALLOC 1
16802 : ${with_cflags:=-g}
16803 : ${with_no_leaks:=yes}
16808 echo "$as_me:16808: result: ${with_dbmalloc:-no}" >&5
16809 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
16811 case .
$with_cflags in
16821 cf_new_extra_cppflags
=
16823 for cf_add_cflags
in -g
16825 case $cf_fix_cppflags in
16827 case $cf_add_cflags in
16828 (-undef|
-nostdinc*|
-I*|
-D*|
-U*|
-E|
-P|
-C)
16829 case $cf_add_cflags in
16831 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16833 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16834 && test -z "${cf_tst_cflags}" \
16835 && cf_fix_cppflags
=yes
16837 if test $cf_fix_cppflags = yes ; then
16838 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
16840 elif test "${cf_tst_cflags}" = "\"'" ; then
16841 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
16846 case "$CPPFLAGS" in
16850 case $cf_add_cflags in
16852 cf_tst_cppflags
=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16854 CPPFLAGS
=`echo "$CPPFLAGS" | \
16855 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16856 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16860 cf_new_cppflags
="$cf_new_cppflags $cf_add_cflags"
16865 cf_new_cflags
="$cf_new_cflags $cf_add_cflags"
16870 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
16872 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16874 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16875 && test -z "${cf_tst_cflags}" \
16876 && cf_fix_cppflags
=no
16881 if test -n "$cf_new_cflags" ; then
16883 CFLAGS
="$CFLAGS $cf_new_cflags"
16886 if test -n "$cf_new_cppflags" ; then
16888 CPPFLAGS
="$CPPFLAGS $cf_new_cppflags"
16891 if test -n "$cf_new_extra_cppflags" ; then
16893 EXTRA_CPPFLAGS
="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
16901 if test "$with_dbmalloc" = yes ; then
16902 echo "$as_me:16902: checking for dbmalloc.h" >&5
16903 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
16904 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
16905 echo $ECHO_N "(cached) $ECHO_C" >&6
16907 cat >conftest.
$ac_ext <<_ACEOF
16908 #line 16908 "configure"
16909 #include "confdefs.h"
16910 #include <dbmalloc.h>
16912 if { (eval echo "$as_me:16912: \"$ac_cpp conftest.$ac_ext\"") >&5
16913 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16915 egrep -v '^ *\+' conftest.er1
>conftest.err
16917 cat conftest.err
>&5
16918 echo "$as_me:16918: \$? = $ac_status" >&5
16919 (exit $ac_status); } >/dev
/null
; then
16920 if test -s conftest.err
; then
16921 ac_cpp_err
=$ac_c_preproc_warn_flag
16928 if test -z "$ac_cpp_err"; then
16929 ac_cv_header_dbmalloc_h
=yes
16931 echo "$as_me: failed program was:" >&5
16932 cat conftest.
$ac_ext >&5
16933 ac_cv_header_dbmalloc_h
=no
16935 rm -f conftest.err conftest.
$ac_ext
16937 echo "$as_me:16937: result: $ac_cv_header_dbmalloc_h" >&5
16938 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
16939 if test $ac_cv_header_dbmalloc_h = yes; then
16941 echo "$as_me:16941: checking for debug_malloc in -ldbmalloc" >&5
16942 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
16943 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
16944 echo $ECHO_N "(cached) $ECHO_C" >&6
16946 ac_check_lib_save_LIBS
=$LIBS
16947 LIBS
="-ldbmalloc $LIBS"
16948 cat >conftest.
$ac_ext <<_ACEOF
16949 #line 16949 "configure"
16950 #include "confdefs.h"
16952 /* Override any gcc2 internal prototype to avoid an error. */
16956 /* We use char because int might match the return type of a gcc2
16957 builtin and then its argument prototype would still apply. */
16958 char debug_malloc ();
16967 rm -f conftest.
$ac_objext conftest
$ac_exeext
16968 if { (eval echo "$as_me:16968: \"$ac_link\"") >&5
16969 (eval $ac_link) 2>&5
16971 echo "$as_me:16971: \$? = $ac_status" >&5
16972 (exit $ac_status); } &&
16973 { ac_try
='test -s conftest$ac_exeext'
16974 { (eval echo "$as_me:16974: \"$ac_try\"") >&5
16975 (eval $ac_try) 2>&5
16977 echo "$as_me:16977: \$? = $ac_status" >&5
16978 (exit $ac_status); }; }; then
16979 ac_cv_lib_dbmalloc_debug_malloc
=yes
16981 echo "$as_me: failed program was:" >&5
16982 cat conftest.
$ac_ext >&5
16983 ac_cv_lib_dbmalloc_debug_malloc
=no
16985 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
16986 LIBS
=$ac_check_lib_save_LIBS
16988 echo "$as_me:16988: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
16989 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
16990 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
16991 cat >>confdefs.h
<<EOF
16992 #define HAVE_LIBDBMALLOC 1
16995 LIBS
="-ldbmalloc $LIBS"
17003 echo "$as_me:17003: checking if you want to use valgrind for testing" >&5
17004 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
17006 # Check whether --with-valgrind or --without-valgrind was given.
17007 if test "${with_valgrind+set}" = set; then
17008 withval
="$with_valgrind"
17010 cat >>confdefs.h
<<EOF
17011 #define USE_VALGRIND 1
17014 : ${with_cflags:=-g}
17015 : ${with_no_leaks:=yes}
17020 echo "$as_me:17020: result: ${with_valgrind:-no}" >&5
17021 echo "${ECHO_T}${with_valgrind:-no}" >&6
17023 case .
$with_cflags in
17033 cf_new_extra_cppflags
=
17035 for cf_add_cflags
in -g
17037 case $cf_fix_cppflags in
17039 case $cf_add_cflags in
17040 (-undef|
-nostdinc*|
-I*|
-D*|
-U*|
-E|
-P|
-C)
17041 case $cf_add_cflags in
17043 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17045 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17046 && test -z "${cf_tst_cflags}" \
17047 && cf_fix_cppflags
=yes
17049 if test $cf_fix_cppflags = yes ; then
17050 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
17052 elif test "${cf_tst_cflags}" = "\"'" ; then
17053 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
17058 case "$CPPFLAGS" in
17062 case $cf_add_cflags in
17064 cf_tst_cppflags
=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17066 CPPFLAGS
=`echo "$CPPFLAGS" | \
17067 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17068 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17072 cf_new_cppflags
="$cf_new_cppflags $cf_add_cflags"
17077 cf_new_cflags
="$cf_new_cflags $cf_add_cflags"
17082 cf_new_extra_cppflags
="$cf_new_extra_cppflags $cf_add_cflags"
17084 cf_tst_cflags
=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
17086 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17087 && test -z "${cf_tst_cflags}" \
17088 && cf_fix_cppflags
=no
17093 if test -n "$cf_new_cflags" ; then
17095 CFLAGS
="$CFLAGS $cf_new_cflags"
17098 if test -n "$cf_new_cppflags" ; then
17100 CPPFLAGS
="$CPPFLAGS $cf_new_cppflags"
17103 if test -n "$cf_new_extra_cppflags" ; then
17105 EXTRA_CPPFLAGS
="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
17113 echo "$as_me:17113: checking if you want to perform memory-leak testing" >&5
17114 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
17116 # Check whether --enable-leaks or --disable-leaks was given.
17117 if test "${enable_leaks+set}" = set; then
17118 enableval
="$enable_leaks"
17119 if test "x$enableval" = xno
; then with_no_leaks
=yes; else with_no_leaks
=no
; fi
17121 : ${with_no_leaks:=no}
17123 echo "$as_me:17123: result: $with_no_leaks" >&5
17124 echo "${ECHO_T}$with_no_leaks" >&6
17126 if test "$with_no_leaks" = yes ; then
17128 cat >>confdefs.h
<<\EOF
17132 cat >>confdefs.h
<<\EOF
17133 #define YY_NO_LEAKS 1
17139 echo "$as_me:17139: checking for an rpath option" >&5
17140 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
17141 case $cf_cv_system_name in
17143 if test "$GCC" = yes; then
17144 LD_RPATH_OPT
="-Wl,-rpath,"
17146 LD_RPATH_OPT
="-rpath "
17149 (linux
*|gnu
*|k
*bsd
*-gnu)
17150 LD_RPATH_OPT
="-Wl,-rpath,"
17152 (openbsd
[2-9].
*|mirbsd
*)
17153 LD_RPATH_OPT
="-Wl,-rpath,"
17155 (dragonfly
*|freebsd
*)
17156 LD_RPATH_OPT
="-rpath "
17159 LD_RPATH_OPT
="-Wl,-rpath,"
17162 LD_RPATH_OPT
="-rpath "
17170 echo "$as_me:17170: result: $LD_RPATH_OPT" >&5
17171 echo "${ECHO_T}$LD_RPATH_OPT" >&6
17173 case "x$LD_RPATH_OPT" in
17175 echo "$as_me:17175: checking if we need a space after rpath option" >&5
17176 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
17177 cf_save_LIBS
="$LIBS"
17179 cf_add_libs
="${LD_RPATH_OPT}$libdir"
17180 # Filter out duplicates - this happens with badly-designed ".pc" files...
17181 for cf_add_1lib
in $LIBS
17183 for cf_add_2lib
in $cf_add_libs
17185 if test "x$cf_add_1lib" = "x$cf_add_2lib"
17191 test -n "$cf_add_1lib" && cf_add_libs
="$cf_add_libs $cf_add_1lib"
17193 LIBS
="$cf_add_libs"
17195 cat >conftest.
$ac_ext <<_ACEOF
17196 #line 17196 "configure"
17197 #include "confdefs.h"
17207 rm -f conftest.
$ac_objext conftest
$ac_exeext
17208 if { (eval echo "$as_me:17208: \"$ac_link\"") >&5
17209 (eval $ac_link) 2>&5
17211 echo "$as_me:17211: \$? = $ac_status" >&5
17212 (exit $ac_status); } &&
17213 { ac_try
='test -s conftest$ac_exeext'
17214 { (eval echo "$as_me:17214: \"$ac_try\"") >&5
17215 (eval $ac_try) 2>&5
17217 echo "$as_me:17217: \$? = $ac_status" >&5
17218 (exit $ac_status); }; }; then
17221 echo "$as_me: failed program was:" >&5
17222 cat conftest.
$ac_ext >&5
17225 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17226 LIBS
="$cf_save_LIBS"
17227 echo "$as_me:17227: result: $cf_rpath_space" >&5
17228 echo "${ECHO_T}$cf_rpath_space" >&6
17229 test "$cf_rpath_space" = yes && LD_RPATH_OPT
="$LD_RPATH_OPT "
17233 echo "$as_me:17233: checking if rpath-hack should be disabled" >&5
17234 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
17236 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
17237 if test "${enable_rpath_hack+set}" = set; then
17238 enableval
="$enable_rpath_hack"
17239 test "$enableval" != no
&& enableval
=yes
17240 if test "$enableval" != "yes" ; then
17241 cf_disable_rpath_hack
=yes
17243 cf_disable_rpath_hack
=no
17247 cf_disable_rpath_hack
=no
17250 echo "$as_me:17250: result: $cf_disable_rpath_hack" >&5
17251 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
17252 if test "$cf_disable_rpath_hack" = no
; then
17254 echo "$as_me:17254: checking for updated LDFLAGS" >&5
17255 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
17256 if test -n "$LD_RPATH_OPT" ; then
17257 echo "$as_me:17257: result: maybe" >&5
17258 echo "${ECHO_T}maybe" >&6
17262 # Extract the first word of "$ac_prog", so it can be a program name with args.
17263 set dummy
$ac_prog; ac_word
=$2
17264 echo "$as_me:17264: checking for $ac_word" >&5
17265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17266 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
17267 echo $ECHO_N "(cached) $ECHO_C" >&6
17269 if test -n "$cf_ldd_prog"; then
17270 ac_cv_prog_cf_ldd_prog
="$cf_ldd_prog" # Let the user override the test.
17272 ac_save_IFS
=$IFS; IFS
=$ac_path_separator
17274 for ac_dir
in $ac_dummy; do
17276 test -z "$ac_dir" && ac_dir
=.
17277 $as_executable_p "$ac_dir/$ac_word" ||
continue
17278 ac_cv_prog_cf_ldd_prog
="$ac_prog"
17279 echo "$as_me:17279: found $ac_dir/$ac_word" >&5
17285 cf_ldd_prog
=$ac_cv_prog_cf_ldd_prog
17286 if test -n "$cf_ldd_prog"; then
17287 echo "$as_me:17287: result: $cf_ldd_prog" >&5
17288 echo "${ECHO_T}$cf_ldd_prog" >&6
17290 echo "$as_me:17290: result: no" >&5
17291 echo "${ECHO_T}no" >&6
17294 test -n "$cf_ldd_prog" && break
17296 test -n "$cf_ldd_prog" || cf_ldd_prog
="no"
17298 cf_rpath_list
="/usr/lib /lib"
17299 if test "$cf_ldd_prog" != no
17303 cat >conftest.
$ac_ext <<_ACEOF
17304 #line 17304 "configure"
17305 #include "confdefs.h"
17315 rm -f conftest.
$ac_objext conftest
$ac_exeext
17316 if { (eval echo "$as_me:17316: \"$ac_link\"") >&5
17317 (eval $ac_link) 2>&5
17319 echo "$as_me:17319: \$? = $ac_status" >&5
17320 (exit $ac_status); } &&
17321 { ac_try
='test -s conftest$ac_exeext'
17322 { (eval echo "$as_me:17322: \"$ac_try\"") >&5
17323 (eval $ac_try) 2>&5
17325 echo "$as_me:17325: \$? = $ac_status" >&5
17326 (exit $ac_status); }; }; then
17327 cf_rpath_oops
=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
17328 cf_rpath_list
=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
17330 echo "$as_me: failed program was:" >&5
17331 cat conftest.
$ac_ext >&5
17333 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
17335 # If we passed the link-test, but get a "not found" on a given library,
17336 # this could be due to inept reconfiguration of gcc to make it only
17337 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
17338 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
17339 # /usr/local libraries.
17340 if test -n "$cf_rpath_oops"
17342 for cf_rpath_src
in $cf_rpath_oops
17344 for cf_rpath_dir
in \
17349 if test -f $cf_rpath_dir/lib
/$cf_rpath_src
17351 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
17353 echo "${as_me:-configure}:17353: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
17355 LDFLAGS
="$LDFLAGS -L$cf_rpath_dir/lib"
17363 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
17365 echo "${as_me:-configure}:17365: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
17367 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
17369 echo "${as_me:-configure}:17369: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
17372 for cf_rpath_src
in $LDFLAGS
17374 case $cf_rpath_src in
17377 # check if this refers to a directory which we will ignore
17379 if test -n "$cf_rpath_list"
17381 for cf_rpath_item
in $cf_rpath_list
17383 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
17391 if test "$cf_rpath_skip" = no
17393 # transform the option
17394 if test "$LD_RPATH_OPT" = "-R " ; then
17395 cf_rpath_tmp
=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
17397 cf_rpath_tmp
=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
17400 # if we have not already added this, add it now
17401 cf_rpath_tst
=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
17402 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
17404 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
17406 echo "${as_me:-configure}:17406: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
17408 EXTRA_LDFLAGS
="$cf_rpath_tmp $EXTRA_LDFLAGS"
17413 cf_rpath_dst
="$cf_rpath_dst $cf_rpath_src"
17415 LDFLAGS
=$cf_rpath_dst
17417 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
17419 echo "${as_me:-configure}:17419: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
17421 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
17423 echo "${as_me:-configure}:17423: testing ...checking LIBS $LIBS ..." 1>&5
17426 for cf_rpath_src
in $LIBS
17428 case $cf_rpath_src in
17431 # check if this refers to a directory which we will ignore
17433 if test -n "$cf_rpath_list"
17435 for cf_rpath_item
in $cf_rpath_list
17437 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
17445 if test "$cf_rpath_skip" = no
17447 # transform the option
17448 if test "$LD_RPATH_OPT" = "-R " ; then
17449 cf_rpath_tmp
=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
17451 cf_rpath_tmp
=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
17454 # if we have not already added this, add it now
17455 cf_rpath_tst
=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
17456 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
17458 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
17460 echo "${as_me:-configure}:17460: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
17462 EXTRA_LDFLAGS
="$cf_rpath_tmp $EXTRA_LDFLAGS"
17467 cf_rpath_dst
="$cf_rpath_dst $cf_rpath_src"
17471 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
17473 echo "${as_me:-configure}:17473: testing ...checked LIBS $LIBS ..." 1>&5
17475 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
17477 echo "${as_me:-configure}:17477: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
17480 echo "$as_me:17480: result: no" >&5
17481 echo "${ECHO_T}no" >&6
17489 ac_config_files
="$ac_config_files Makefile"
17490 ac_config_commands
="$ac_config_commands default"
17491 cat >confcache
<<\_ACEOF
17492 # This file is a shell script that caches the results of configure
17493 # tests run on this system so they can be shared between configure
17494 # scripts and configure runs, see configure's option --config-cache.
17495 # It is not useful on other systems. If it contains results you don't
17496 # want to keep, you may remove or edit it.
17498 # config.status only pays attention to the cache file if you give it
17499 # the --recheck option to rerun configure.
17501 # `ac_cv_env_foo' variables (set or unset) will be overriden when
17502 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17503 # following values.
17507 # The following way of writing the cache mishandles newlines in values,
17508 # but we know of no workaround that is simple, portable, and efficient.
17509 # So, don't put newlines in cache variables' values.
17510 # Ultrix sh set writes to stderr and can't be redirected directly,
17511 # and sets the high bit in the cache file unless we assign to the vars.
17514 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17516 # `set' does not quote correctly, so add quotes (double-quote
17517 # substitution turns \\\\ into \\, and sed turns \\ into \).
17520 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17523 # `set' quotes correctly as required by POSIX, so do not add quotes.
17525 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17532 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17534 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17536 if cmp -s $cache_file confcache
; then :; else
17537 if test -w $cache_file; then
17538 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17539 cat confcache
>$cache_file
17541 echo "not updating unwritable cache $cache_file"
17546 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17547 # Let make expand exec_prefix.
17548 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17550 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17551 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17552 # trailing colons and then remove the whole line if VPATH becomes empty
17553 # (actually we leave an empty line to preserve line numbers).
17554 if test "x$srcdir" = x.
; then
17555 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
17556 s/:*\$(srcdir):*/:/;
17557 s/:*\${srcdir}:*/:/;
17559 s/^\([^=]*=[ ]*\):*/\1/;
17565 DEFS
=-DHAVE_CONFIG_H
17567 : ${CONFIG_STATUS=./config.status}
17568 ac_clean_files_save
=$ac_clean_files
17569 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17570 { echo "$as_me:17570: creating $CONFIG_STATUS" >&5
17571 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17572 cat >$CONFIG_STATUS <<_ACEOF
17574 # Generated automatically by configure.
17575 # Run this file to recreate the current configuration.
17576 # Compiler output produced by configure, useful for debugging
17577 # configure, is in config.log if it exists.
17580 SHELL=\${CONFIG_SHELL-$SHELL}
17581 ac_cs_invocation="\$0 \$@"
17585 cat >>$CONFIG_STATUS <<\_ACEOF
17586 # Be Bourne compatible
17587 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
17590 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
17594 # Name of the executable.
17595 as_me
=`echo "$0" |sed 's,.*[\\/],,'`
17597 if expr a
: '\(a\)' >/dev
/null
2>&1; then
17603 rm -f conf$$ conf$$.exe conf$$.
file
17605 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
17606 # We could just check for DJGPP; but this test a) works b) is more generic
17607 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17608 if test -f conf$$.exe
; then
17609 # Don't use ln at all; we don't have any links
17614 elif ln conf$$.
file conf$$
2>/dev
/null
; then
17619 rm -f conf$$ conf$$.exe conf$$.
file
17621 as_executable_p
="test -f"
17623 # Support unset when possible.
17624 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
17631 $as_unset LANG ||
test "${LANG+set}" != set ||
{ LANG
=C
; export LANG
; }
17632 $as_unset LC_ALL ||
test "${LC_ALL+set}" != set ||
{ LC_ALL
=C
; export LC_ALL
; }
17633 $as_unset LC_TIME ||
test "${LC_TIME+set}" != set ||
{ LC_TIME
=C
; export LC_TIME
; }
17634 $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set ||
{ LC_CTYPE
=C
; export LC_CTYPE
; }
17635 $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set ||
{ LANGUAGE
=C
; export LANGUAGE
; }
17636 $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set ||
{ LC_COLLATE
=C
; export LC_COLLATE
; }
17637 $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set ||
{ LC_NUMERIC
=C
; export LC_NUMERIC
; }
17638 $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set ||
{ LC_MESSAGES
=C
; export LC_MESSAGES
; }
17641 # We need space, tab and new line, in precisely that order.
17647 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=:; export CDPATH
; }
17653 # Files that config.status was made for.
17654 if test -n "$ac_config_files"; then
17655 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17658 if test -n "$ac_config_headers"; then
17659 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17662 if test -n "$ac_config_links"; then
17663 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17666 if test -n "$ac_config_commands"; then
17667 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17670 cat >>$CONFIG_STATUS <<\EOF
17673 \`$as_me' instantiates files from templates according to the
17674 current configuration.
17676 Usage: $0 [OPTIONS] [FILE]...
17678 -h, --help print this help, then exit
17679 -V, --version print version number, then exit
17680 -d, --debug don't remove temporary files
17681 --recheck update $as_me by reconfiguring in the same conditions
17682 --file=FILE[:TEMPLATE]
17683 instantiate the configuration file FILE
17684 --header=FILE[:TEMPLATE]
17685 instantiate the configuration header FILE
17687 Configuration files:
17690 Configuration headers:
17693 Configuration commands:
17696 Report bugs to <dickey@invisible-island.net>."
17699 cat >>$CONFIG_STATUS <<EOF
17702 configured by $0, generated by GNU Autoconf 2.52.20141204,
17703 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17705 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17706 Free Software Foundation, Inc.
17707 This config.status script is free software; the Free Software Foundation
17708 gives unlimited permission to copy, distribute and modify it."
17713 cat >>$CONFIG_STATUS <<\EOF
17714 # If no file are specified by the user, then we need to provide default
17715 # value. By we need to know if files were specified by the user.
17721 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
17722 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
17724 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
17728 *) # This is not an option, so the user has probably given explicit
17730 ac_need_defaults
=false
;;
17734 # Handling of the options.
17736 cat >>$CONFIG_STATUS <<EOF
17737 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17738 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
17739 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
17741 cat >>$CONFIG_STATUS <<\EOF
17742 --version |
--vers* |
-V )
17743 echo "$ac_cs_version"; exit 0 ;;
17745 # Conflict between --help and --header
17746 { { echo "$as_me:17746: error: ambiguous option: $1
17747 Try \`$0 --help' for more information." >&5
17748 echo "$as_me: error: ambiguous option: $1
17749 Try \`$0 --help' for more information." >&2;}
17750 { (exit 1); exit 1; }; };;
17751 --help |
--hel |
-h )
17752 echo "$ac_cs_usage"; exit 0 ;;
17753 --debug |
--d* |
-d )
17755 --file |
--fil |
--fi |
--f )
17757 CONFIG_FILES
="$CONFIG_FILES $1"
17758 ac_need_defaults
=false
;;
17759 --header |
--heade |
--head |
--hea )
17761 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
17762 ac_need_defaults
=false
;;
17764 # This is an error.
17765 -*) { { echo "$as_me:17765: error: unrecognized option: $1
17766 Try \`$0 --help' for more information." >&5
17767 echo "$as_me: error: unrecognized option: $1
17768 Try \`$0 --help' for more information." >&2;}
17769 { (exit 1); exit 1; }; } ;;
17771 *) ac_config_targets
="$ac_config_targets $1" ;;
17780 ## ----------------------- ##
17781 ## Running config.status. ##
17782 ## ----------------------- ##
17784 This file was extended by $as_me 2.52.20141204, executed with
17785 CONFIG_FILES = $CONFIG_FILES
17786 CONFIG_HEADERS = $CONFIG_HEADERS
17787 CONFIG_LINKS = $CONFIG_LINKS
17788 CONFIG_COMMANDS = $CONFIG_COMMANDS
17789 > $ac_cs_invocation
17790 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17795 cat >>$CONFIG_STATUS <<EOF
17797 # INIT-COMMANDS section.
17807 cat >>$CONFIG_STATUS <<\EOF
17808 for ac_config_target
in $ac_config_targets
17810 case "$ac_config_target" in
17811 # Handling of arguments.
17812 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
17813 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
17814 "ncurses_cfg.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS ncurses_cfg.h:ncurses_tst.hin" ;;
17815 *) { { echo "$as_me:17815: error: invalid argument: $ac_config_target" >&5
17816 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17817 { (exit 1); exit 1; }; };;
17821 # If the user did not use the arguments to specify the items to instantiate,
17822 # then the envvar interface is used. Set only those that are not.
17823 # We use the long form for the default assignment because of an extremely
17824 # bizarre bug on SunOS 4.1.3.
17825 if $ac_need_defaults; then
17826 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
17827 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
17828 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
17831 # Create a temporary directory, and hook for its removal unless debugging.
17834 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17835 trap '{ (exit 1); exit 1; }' 1 2 13 15
17838 # Create a (secure) tmp directory for tmp files.
17841 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
17842 test -n "$tmp" && test -d "$tmp"
17845 tmp
=$TMPDIR/cs$$
-$RANDOM
17846 (umask 077 && mkdir
$tmp)
17849 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
17850 { (exit 1); exit 1; }
17855 cat >>$CONFIG_STATUS <<EOF
17858 # CONFIG_FILES section.
17861 # No need to generate the scripts if there are no CONFIG_FILES.
17862 # This happens for instance when ./config.status config.h
17863 if test -n "\$CONFIG_FILES"; then
17864 # Protect against being on the right side of a sed subst in config.status.
17865 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17866 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17867 s,@SHELL@,$SHELL,;t t
17868 s,@exec_prefix@,$exec_prefix,;t t
17869 s,@prefix@,$prefix,;t t
17870 s,@program_transform_name@,$program_transform_name,;t t
17871 s,@bindir@,$bindir,;t t
17872 s,@sbindir@,$sbindir,;t t
17873 s,@libexecdir@,$libexecdir,;t t
17874 s,@datarootdir@,$datarootdir,;t t
17875 s,@datadir@,$datadir,;t t
17876 s,@sysconfdir@,$sysconfdir,;t t
17877 s,@sharedstatedir@,$sharedstatedir,;t t
17878 s,@localstatedir@,$localstatedir,;t t
17879 s,@libdir@,$libdir,;t t
17880 s,@includedir@,$includedir,;t t
17881 s,@oldincludedir@,$oldincludedir,;t t
17882 s,@infodir@,$infodir,;t t
17883 s,@mandir@,$mandir,;t t
17884 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17885 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17886 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17887 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17888 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17889 s,@build_alias@,$build_alias,;t t
17890 s,@host_alias@,$host_alias,;t t
17891 s,@target_alias@,$target_alias,;t t
17892 s,@ECHO_C@,$ECHO_C,;t t
17893 s,@ECHO_N@,$ECHO_N,;t t
17894 s,@ECHO_T@,$ECHO_T,;t t
17895 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17896 s,@DEFS@,$DEFS,;t t
17897 s,@LIBS@,$LIBS,;t t
17898 s,@build@,$build,;t t
17899 s,@build_cpu@,$build_cpu,;t t
17900 s,@build_vendor@,$build_vendor,;t t
17901 s,@build_os@,$build_os,;t t
17902 s,@host@,$host,;t t
17903 s,@host_cpu@,$host_cpu,;t t
17904 s,@host_vendor@,$host_vendor,;t t
17905 s,@host_os@,$host_os,;t t
17906 s,@SET_MAKE@,$SET_MAKE,;t t
17908 s,@CFLAGS@,$CFLAGS,;t t
17909 s,@LDFLAGS@,$LDFLAGS,;t t
17910 s,@CPPFLAGS@,$CPPFLAGS,;t t
17911 s,@ac_ct_CC@,$ac_ct_CC,;t t
17912 s,@EXEEXT@,$EXEEXT,;t t
17913 s,@OBJEXT@,$OBJEXT,;t t
17914 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
17917 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17918 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17919 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17920 s,@LINT@,$LINT,;t t
17921 s,@LINT_OPTS@,$LINT_OPTS,;t t
17922 s,@CTAGS@,$CTAGS,;t t
17923 s,@ETAGS@,$ETAGS,;t t
17924 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
17925 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
17926 s,@MATH_LIB@,$MATH_LIB,;t t
17927 s,@top_builddir@,$top_builddir,;t t
17928 s,@CC_G_OPT@,$CC_G_OPT,;t t
17929 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
17930 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
17931 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
17932 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
17934 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
17935 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
17936 s,@LD_MODEL@,$LD_MODEL,;t t
17937 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
17938 s,@LIBTOOL@,$LIBTOOL,;t t
17939 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
17940 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
17941 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
17942 s,@LIB_LINK@,$LIB_LINK,;t t
17943 s,@LINK_TESTS@,$LINK_TESTS,;t t
17944 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
17945 s,@PACKAGE@,$PACKAGE,;t t
17946 s,@PTHREAD@,$PTHREAD,;t t
17947 s,@TEST_ARGS@,$TEST_ARGS,;t t
17948 s,@TEST_DEPS@,$TEST_DEPS,;t t
17949 s,@TEST_LIBS@,$TEST_LIBS,;t t
17950 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
17951 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
17952 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
17953 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
17954 s,@includesubdir@,$includesubdir,;t t
17955 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17956 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
17957 s,@ECHO_LT@,$ECHO_LT,;t t
17958 s,@ECHO_LD@,$ECHO_LD,;t t
17959 s,@RULE_CC@,$RULE_CC,;t t
17960 s,@SHOW_CC@,$SHOW_CC,;t t
17961 s,@ECHO_CC@,$ECHO_CC,;t t
17962 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
17963 s,@NCURSES_CONFIG@,$NCURSES_CONFIG,;t t
17964 s,@ac_ct_NCURSES_CONFIG@,$ac_ct_NCURSES_CONFIG,;t t
17965 s,@X_CFLAGS@,$X_CFLAGS,;t t
17966 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17967 s,@X_LIBS@,$X_LIBS,;t t
17968 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17969 s,@XCURSES_CONFIG@,$XCURSES_CONFIG,;t t
17970 s,@ac_ct_XCURSES_CONFIG@,$ac_ct_XCURSES_CONFIG,;t t
17971 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
17972 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
17973 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
17978 cat >>$CONFIG_STATUS <<\EOF
17979 # Split the substitutions into bite-sized pieces for seds with
17980 # small command number limits, like on Digital OSF/1 and HP-UX.
17981 ac_max_sed_lines
=48
17982 ac_sed_frag
=1 # Number of current file.
17983 ac_beg
=1 # First line for current file.
17984 ac_end
=$ac_max_sed_lines # Line after last line for current file.
17987 while $ac_more_lines; do
17988 if test $ac_beg -gt 1; then
17989 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
17991 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
17993 if test ! -s $tmp/subs.frag
; then
17994 ac_more_lines
=false
17996 # The purpose of the label and of the branching condition is to
17997 # speed up the sed processing (if there are no `@' at all, there
17998 # is no need to browse any of the substitutions).
17999 # These are the two extra sed commands mentioned above.
18001 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
18002 if test -z "$ac_sed_cmds"; then
18003 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
18005 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18007 ac_sed_frag
=`expr $ac_sed_frag + 1`
18009 ac_end
=`expr $ac_end + $ac_max_sed_lines`
18012 if test -z "$ac_sed_cmds"; then
18015 fi # test -n "$CONFIG_FILES"
18018 cat >>$CONFIG_STATUS <<\EOF
18019 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
18020 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18022 - |
*:- |
*:-:* ) # input from stdin
18024 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18025 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18026 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18027 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18028 * ) ac_file_in
=$ac_file.
in ;;
18031 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18032 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18033 X"$ac_file" : 'X\(//\)[^/]' \| \
18034 X"$ac_file" : 'X\(//\)$' \| \
18035 X"$ac_file" : 'X\(/\)' \| \
18036 . : '\(.\)' 2>/dev/null ||
18038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18039 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18040 /^X\(\/\/\)$/{ s//\1/; q; }
18041 /^X\(\/\).*/{ s//\1/; q; }
18043 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
18044 { case "$ac_dir" in
18045 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
18049 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18050 case $as_mkdir_dir in
18051 # Skip DOS drivespec
18052 ?
:) as_incr_dir
=$as_mkdir_dir ;;
18054 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
18055 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
18060 ac_dir_suffix
="/`echo $ac_dir|sed 's,^\./,,'`"
18061 # A "../" for each directory in $ac_dir_suffix.
18062 ac_dots
=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
18064 ac_dir_suffix
= ac_dots
=
18069 if test -z "$ac_dots"; then
18072 ac_top_srcdir
=`echo $ac_dots | sed 's,/$,,'`
18074 [\\/]* | ?
:[\\/]* )
18075 ac_srcdir
=$srcdir$ac_dir_suffix;
18076 ac_top_srcdir
=$srcdir ;;
18077 *) # Relative path.
18078 ac_srcdir
=$ac_dots$srcdir$ac_dir_suffix
18079 ac_top_srcdir
=$ac_dots$srcdir ;;
18083 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
18084 *) ac_INSTALL
=$ac_dots$INSTALL ;;
18087 if test x
"$ac_file" != x-
; then
18088 { echo "$as_me:18088: creating $ac_file" >&5
18089 echo "$as_me: creating $ac_file" >&6;}
18092 # Let's still pretend it is `configure' which instantiates (i.e., don't
18093 # use $as_me), people would be surprised to read:
18094 # /* config.h. Generated automatically by config.status. */
18095 configure_input
="Generated automatically from `echo $ac_file_in |
18096 sed 's,.*/,,'` by configure."
18098 # First look for the input files in the build tree, otherwise in the
18100 ac_file_inputs
=`IFS=:
18101 for f in $ac_file_in; do
18103 -) echo $tmp/stdin ;;
18105 # Absolute (can't be DOS-style, as IFS=:)
18106 test -f "$f" || { { echo "$as_me:18106: error: cannot find input file: $f" >&5
18107 echo "$as_me: error: cannot find input file: $f" >&2;}
18108 { (exit 1); exit 1; }; }
18111 if test -f "$f"; then
18114 elif test -f "$srcdir/$f"; then
18119 { { echo "$as_me:18119: error: cannot find input file: $f" >&5
18120 echo "$as_me: error: cannot find input file: $f" >&2;}
18121 { (exit 1); exit 1; }; }
18124 done` ||
{ (exit 1); exit 1; }
18126 cat >>$CONFIG_STATUS <<\EOF
18127 ac_warn_datarootdir
=no
18128 if test x
"$ac_file" != x-
; then
18129 for ac_item
in $ac_file_inputs
18131 ac_seen
=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
18132 if test -n "$ac_seen"; then
18133 ac_used
=`grep '@datarootdir@' $ac_item`
18134 if test -z "$ac_used"; then
18135 { echo "$as_me:18135: WARNING: datarootdir was used implicitly but not set:
18137 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
18139 ac_warn_datarootdir
=yes
18142 ac_seen
=`grep '${datarootdir}' $ac_item`
18143 if test -n "$ac_seen"; then
18144 { echo "$as_me:18144: WARNING: datarootdir was used explicitly but not set:
18146 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
18148 ac_warn_datarootdir
=yes
18153 if test "x$ac_warn_datarootdir" = xyes
; then
18154 ac_sed_cmds
="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
18158 cat >>$CONFIG_STATUS <<EOF
18162 cat >>$CONFIG_STATUS <<\EOF
18164 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18165 s
,@configure_input@
,$configure_input,;t t
18166 s
,@srcdir@
,$ac_srcdir,;t t
18167 s
,@top_srcdir@
,$ac_top_srcdir,;t t
18168 s
,@INSTALL@
,$ac_INSTALL,;t t
18169 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18171 if test x"$ac_file" != x-; then
18172 cp $tmp/out $ac_file
18174 for ac_name in prefix exec_prefix datarootdir
18176 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
18177 if test -n "$ac_seen"; then
18178 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
18179 if test -z "$ac_init"; then
18180 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
18181 { echo "$as_me:18181: WARNING
: Variable
$ac_name is used but was not
set:
18183 echo "$as_me: WARNING
: Variable
$ac_name is used but was not
set:
18188 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
18189 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
18190 if test -s $tmp/out; then
18191 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
18192 { echo "$as_me:18192: WARNING
: Some variables may not be substituted
:
18194 echo "$as_me: WARNING
: Some variables may not be substituted
:
18204 cat >>$CONFIG_STATUS <<\EOF
18207 # CONFIG_HEADER section.
18210 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
18211 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18213 # ac_d sets the value in "#define NAME VALUE" lines.
18214 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18215 ac_dB
='[ ].*$,\1#\2'
18218 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18219 ac_iA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18220 ac_iB
='\([ ]\),\1#\2define\3'
18223 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18224 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18225 ac_uB
='$,\1#\2define\3'
18229 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
18230 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18232 - |
*:- |
*:-:* ) # input from stdin
18234 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18235 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18236 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18237 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
18238 * ) ac_file_in
=$ac_file.
in ;;
18241 test x
"$ac_file" != x-
&& { echo "$as_me:18241: creating $ac_file" >&5
18242 echo "$as_me: creating $ac_file" >&6;}
18244 # First look for the input files in the build tree, otherwise in the
18246 ac_file_inputs
=`IFS=:
18247 for f in $ac_file_in; do
18249 -) echo $tmp/stdin ;;
18251 # Absolute (can't be DOS-style, as IFS=:)
18252 test -f "$f" || { { echo "$as_me:18252: error: cannot find input file: $f" >&5
18253 echo "$as_me: error: cannot find input file: $f" >&2;}
18254 { (exit 1); exit 1; }; }
18257 if test -f "$f"; then
18260 elif test -f "$srcdir/$f"; then
18265 { { echo "$as_me:18265: error: cannot find input file: $f" >&5
18266 echo "$as_me: error: cannot find input file: $f" >&2;}
18267 { (exit 1); exit 1; }; }
18270 done` ||
{ (exit 1); exit 1; }
18271 # Remove the trailing spaces.
18272 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18276 # Transform confdefs.h into a list of #define's. We won't use it as a sed
18277 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
18278 # be either 'cat' or 'sort'.
18279 cat confdefs.h |
uniq >conftest.vals
18281 # Break up conftest.vals because some shells have a limit on
18282 # the size of here documents, and old seds have small limits too.
18284 rm -f conftest.
tail
18285 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
18286 while grep . conftest.vals
>/dev
/null
18288 # Write chunks of a limited-size here document to conftest.frag.
18289 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
18290 sed ${ac_max_here_lines}q conftest.vals | sed -e 's
/#ifdef.*/#if 0/' >> $CONFIG_STATUS
18291 echo 'CEOF' >> $CONFIG_STATUS
18292 sed 1,${ac_max_here_lines}d conftest.vals
> conftest.
tail
18293 rm -f conftest.vals
18294 mv conftest.
tail conftest.vals
18296 rm -f conftest.vals
18298 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
18300 echo ' cat >> conftest.edit <<CEOF
18301 /@DEFS@/r conftest.frag
18304 sed -f conftest.edit $tmp/in > $tmp/out
18306 mv $tmp/out $tmp/in
18307 rm -f conftest.edit conftest.frag
18308 ' >> $CONFIG_STATUS
18310 cat >>$CONFIG_STATUS <<\EOF
18311 # Let's still pretend it is `configure' which instantiates (i.e., don't
18312 # use $as_me), people would be surprised to read:
18313 # /* config.h. Generated automatically by config.status. */
18314 if test x
"$ac_file" = x-
; then
18315 echo "/* Generated automatically by configure. */" >$tmp/config.h
18317 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
18319 cat $tmp/in >>$tmp/config.h
18321 if test x
"$ac_file" != x-
; then
18322 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
18323 { echo "$as_me:18323: $ac_file is unchanged" >&5
18324 echo "$as_me: $ac_file is unchanged" >&6;}
18326 ac_dir
=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18327 X"$ac_file" : 'X\(//\)[^/]' \| \
18328 X"$ac_file" : 'X\(//\)$' \| \
18329 X"$ac_file" : 'X\(/\)' \| \
18330 . : '\(.\)' 2>/dev/null ||
18332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18333 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18334 /^X\(\/\/\)$/{ s//\1/; q; }
18335 /^X\(\/\).*/{ s//\1/; q; }
18337 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
18338 { case "$ac_dir" in
18339 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
18343 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18344 case $as_mkdir_dir in
18345 # Skip DOS drivespec
18346 ?
:) as_incr_dir
=$as_mkdir_dir ;;
18348 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
18349 test -d "$as_incr_dir" || mkdir
"$as_incr_dir"
18356 mv $tmp/config.h
$ac_file
18360 rm -f $tmp/config.h
18364 cat >>$CONFIG_STATUS <<\EOF
18366 # CONFIG_COMMANDS section.
18368 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
18369 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
18370 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
18377 if test ! -d $srcdir/$cf_dir; then
18379 elif test -f $srcdir/$cf_dir/programs
; then
18380 $AWK -f $srcdir/mk-test.
awk INSTALL
=yes ECHO_LINK
="$ECHO_LD" $srcdir/$cf_dir/programs
>>$cf_dir/Makefile
18384 cat >>Makefile
<<TEST_EOF
18386 # These rules are generated so we do not rely on suffix rules, which do not
18387 # work consistently for different make-programs (the '\$(MODEL)/' confuses
18388 # some, and the '\$x' confuses others).
18391 LIST
=`sed -e 's/[ ].*//' -e '/^[#@]/d' $srcdir/modules`
18394 cat >>Makefile
<<TEST_EOF
18396 \$(MODEL)/$N.o : \$(srcdir)/$N.c \\
18397 \$(srcdir)/test.priv.h \\
18400 $ECHO_CC\$(CC) -c \$(CFLAGS_DEFAULT) \$(srcdir)/$N.c
18404 if test -f ..
/config.guess
&& test -f ..
/config.sub
18406 cat >>Makefile
<<TEST_EOF
18408 # if we used CF_INHERIT for getting these files, we can remove them
18410 rm -f config.guess config.sub
18418 cat >>$CONFIG_STATUS <<\EOF
18420 { (exit 0); exit 0; }
18422 chmod +x
$CONFIG_STATUS
18423 ac_clean_files
=$ac_clean_files_save
18425 # configure is writing to config.log, and then calls config.status.
18426 # config.status does its own redirection, appending to config.log.
18427 # Unfortunately, on DOS this fails, as config.log is still kept open
18428 # by configure, so config.status won't be able to write to it; its
18429 # output is simply discarded. So we exec the FD to /dev/null,
18430 # effectively closing config.log, so it can be properly (re)opened and
18431 # appended to by config.status. When coming back to configure, we
18432 # need to make the FD available again.
18433 if test "$no_create" != yes; then
18436 $SHELL $CONFIG_STATUS || ac_cs_success
=false
18438 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18439 # would make configure fail if this is the last instruction.
18440 $ac_cs_success ||
{ (exit 1); exit 1; }