missing ncurses sources
[tomato.git] / release / src / router / libncurses / test / configure
blob2937235eab6218b81a1eb771b0c023394c4a8079
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.20101002.
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
25 emulate sh
26 NULLCMD=:
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28 set -o posix
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34 if expr a : '\(a\)' >/dev/null 2>&1; then
35 as_expr=expr
36 else
37 as_expr=false
40 rm -f conf$$ conf$$.exe conf$$.file
41 echo >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
47 as_ln_s='cp -p'
48 else
49 as_ln_s='ln -s'
51 elif ln conf$$.file conf$$ 2>/dev/null; then
52 as_ln_s=ln
53 else
54 as_ln_s='cp -p'
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
62 as_unset=unset
63 else
64 as_unset=false
67 # NLS nuisances.
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; }
77 # IFS
78 # We need space, tab and new line, in precisely that order.
79 as_nl='
81 IFS=" $as_nl"
83 # CDPATH.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
86 # Name of the host.
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`
91 exec 6>&1
94 # Initializations.
96 ac_default_prefix=/usr/local
97 cross_compiling=no
98 subdirs=
99 MFLAGS= MAKEFLAGS=
100 SHELL=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete. It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
107 ac_unique_file="ncurses.c"
108 # Factoring default headers for most tests.
109 ac_includes_default="\
110 #include <stdio.h>
111 #if HAVE_SYS_TYPES_H
112 # include <sys/types.h>
113 #endif
114 #if HAVE_SYS_STAT_H
115 # include <sys/stat.h>
116 #endif
117 #if STDC_HEADERS
118 # include <stdlib.h>
119 # include <stddef.h>
120 #else
121 # if HAVE_STDLIB_H
122 # include <stdlib.h>
123 # endif
124 #endif
125 #if HAVE_STRING_H
126 # if !STDC_HEADERS && HAVE_MEMORY_H
127 # include <memory.h>
128 # endif
129 # include <string.h>
130 #endif
131 #if HAVE_STRINGS_H
132 # include <strings.h>
133 #endif
134 #if HAVE_INTTYPES_H
135 # include <inttypes.h>
136 #else
137 # if HAVE_STDINT_H
138 # include <stdint.h>
139 # endif
140 #endif
141 #if HAVE_UNISTD_H
142 # include <unistd.h>
143 #endif"
145 # Initialize some variables set by options.
146 ac_init_help=
147 ac_init_version=false
148 # The variables have the same names as the options, with
149 # dashes changed to underlines.
150 cache_file=/dev/null
151 exec_prefix=NONE
152 no_create=
153 no_recursion=
154 prefix=NONE
155 program_prefix=NONE
156 program_suffix=NONE
157 program_transform_name=s,x,x,
158 silent=
159 site=
160 srcdir=
161 verbose=
162 x_includes=NONE
163 x_libraries=NONE
165 # Installation directory options.
166 # These are left unexpanded so users can "make install exec_prefix=/foo"
167 # and all the variables that are supposed to be based on exec_prefix
168 # by default will actually change.
169 # Use braces instead of parens because sh, perl, etc. also accept them.
170 bindir='${exec_prefix}/bin'
171 sbindir='${exec_prefix}/sbin'
172 libexecdir='${exec_prefix}/libexec'
173 datadir='${prefix}/share'
174 sysconfdir='${prefix}/etc'
175 sharedstatedir='${prefix}/com'
176 localstatedir='${prefix}/var'
177 libdir='${exec_prefix}/lib'
178 includedir='${prefix}/include'
179 oldincludedir='/usr/include'
180 infodir='${prefix}/info'
181 mandir='${prefix}/man'
183 # Identity of this package.
184 PACKAGE_NAME=
185 PACKAGE_TARNAME=
186 PACKAGE_VERSION=
187 PACKAGE_STRING=
188 PACKAGE_BUGREPORT=
190 ac_prev=
191 for ac_option
193 # If the previous option needs an argument, assign it.
194 if test -n "$ac_prev"; then
195 eval "$ac_prev=\$ac_option"
196 ac_prev=
197 continue
200 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
202 # Accept the important Cygnus configure options, so we can diagnose typos.
204 case $ac_option in
206 -bindir | --bindir | --bindi | --bind | --bin | --bi)
207 ac_prev=bindir ;;
208 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
209 bindir=$ac_optarg ;;
211 -build | --build | --buil | --bui | --bu)
212 ac_prev=build_alias ;;
213 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
214 build_alias=$ac_optarg ;;
216 -cache-file | --cache-file | --cache-fil | --cache-fi \
217 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
218 ac_prev=cache_file ;;
219 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
220 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
221 cache_file=$ac_optarg ;;
223 --config-cache | -C)
224 cache_file=config.cache ;;
226 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
227 ac_prev=datadir ;;
228 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
229 | --da=*)
230 datadir=$ac_optarg ;;
232 -disable-* | --disable-*)
233 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
234 # Reject names that are not valid shell variable names.
235 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
236 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
237 { (exit 1); exit 1; }; }
238 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
239 eval "enable_$ac_feature=no" ;;
241 -enable-* | --enable-*)
242 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
243 # Reject names that are not valid shell variable names.
244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
246 { (exit 1); exit 1; }; }
247 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
248 case $ac_option in
249 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
250 *) ac_optarg=yes ;;
251 esac
252 eval "enable_$ac_feature='$ac_optarg'" ;;
254 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
255 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
256 | --exec | --exe | --ex)
257 ac_prev=exec_prefix ;;
258 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
259 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
260 | --exec=* | --exe=* | --ex=*)
261 exec_prefix=$ac_optarg ;;
263 -gas | --gas | --ga | --g)
264 # Obsolete; use --with-gas.
265 with_gas=yes ;;
267 -help | --help | --hel | --he | -h)
268 ac_init_help=long ;;
269 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
270 ac_init_help=recursive ;;
271 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
272 ac_init_help=short ;;
274 -host | --host | --hos | --ho)
275 ac_prev=host_alias ;;
276 -host=* | --host=* | --hos=* | --ho=*)
277 host_alias=$ac_optarg ;;
279 -includedir | --includedir | --includedi | --included | --include \
280 | --includ | --inclu | --incl | --inc)
281 ac_prev=includedir ;;
282 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
283 | --includ=* | --inclu=* | --incl=* | --inc=*)
284 includedir=$ac_optarg ;;
286 -infodir | --infodir | --infodi | --infod | --info | --inf)
287 ac_prev=infodir ;;
288 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
289 infodir=$ac_optarg ;;
291 -libdir | --libdir | --libdi | --libd)
292 ac_prev=libdir ;;
293 -libdir=* | --libdir=* | --libdi=* | --libd=*)
294 libdir=$ac_optarg ;;
296 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
297 | --libexe | --libex | --libe)
298 ac_prev=libexecdir ;;
299 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
300 | --libexe=* | --libex=* | --libe=*)
301 libexecdir=$ac_optarg ;;
303 -localstatedir | --localstatedir | --localstatedi | --localstated \
304 | --localstate | --localstat | --localsta | --localst \
305 | --locals | --local | --loca | --loc | --lo)
306 ac_prev=localstatedir ;;
307 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
308 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
309 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
310 localstatedir=$ac_optarg ;;
312 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
313 ac_prev=mandir ;;
314 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
315 mandir=$ac_optarg ;;
317 -nfp | --nfp | --nf)
318 # Obsolete; use --without-fp.
319 with_fp=no ;;
321 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
322 | --no-cr | --no-c)
323 no_create=yes ;;
325 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
326 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
327 no_recursion=yes ;;
329 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
330 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
331 | --oldin | --oldi | --old | --ol | --o)
332 ac_prev=oldincludedir ;;
333 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
334 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
335 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
336 oldincludedir=$ac_optarg ;;
338 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
339 ac_prev=prefix ;;
340 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
341 prefix=$ac_optarg ;;
343 -program-prefix | --program-prefix | --program-prefi | --program-pref \
344 | --program-pre | --program-pr | --program-p)
345 ac_prev=program_prefix ;;
346 -program-prefix=* | --program-prefix=* | --program-prefi=* \
347 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
348 program_prefix=$ac_optarg ;;
350 -program-suffix | --program-suffix | --program-suffi | --program-suff \
351 | --program-suf | --program-su | --program-s)
352 ac_prev=program_suffix ;;
353 -program-suffix=* | --program-suffix=* | --program-suffi=* \
354 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
355 program_suffix=$ac_optarg ;;
357 -program-transform-name | --program-transform-name \
358 | --program-transform-nam | --program-transform-na \
359 | --program-transform-n | --program-transform- \
360 | --program-transform | --program-transfor \
361 | --program-transfo | --program-transf \
362 | --program-trans | --program-tran \
363 | --progr-tra | --program-tr | --program-t)
364 ac_prev=program_transform_name ;;
365 -program-transform-name=* | --program-transform-name=* \
366 | --program-transform-nam=* | --program-transform-na=* \
367 | --program-transform-n=* | --program-transform-=* \
368 | --program-transform=* | --program-transfor=* \
369 | --program-transfo=* | --program-transf=* \
370 | --program-trans=* | --program-tran=* \
371 | --progr-tra=* | --program-tr=* | --program-t=*)
372 program_transform_name=$ac_optarg ;;
374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
375 | -silent | --silent | --silen | --sile | --sil)
376 silent=yes ;;
378 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
379 ac_prev=sbindir ;;
380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
381 | --sbi=* | --sb=*)
382 sbindir=$ac_optarg ;;
384 -sharedstatedir | --sharedstatedir | --sharedstatedi \
385 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
386 | --sharedst | --shareds | --shared | --share | --shar \
387 | --sha | --sh)
388 ac_prev=sharedstatedir ;;
389 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
390 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
392 | --sha=* | --sh=*)
393 sharedstatedir=$ac_optarg ;;
395 -site | --site | --sit)
396 ac_prev=site ;;
397 -site=* | --site=* | --sit=*)
398 site=$ac_optarg ;;
400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
401 ac_prev=srcdir ;;
402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
403 srcdir=$ac_optarg ;;
405 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
406 | --syscon | --sysco | --sysc | --sys | --sy)
407 ac_prev=sysconfdir ;;
408 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
409 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
410 sysconfdir=$ac_optarg ;;
412 -target | --target | --targe | --targ | --tar | --ta | --t)
413 ac_prev=target_alias ;;
414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
415 target_alias=$ac_optarg ;;
417 -v | -verbose | --verbose | --verbos | --verbo | --verb)
418 verbose=yes ;;
420 -version | --version | --versio | --versi | --vers | -V)
421 ac_init_version=: ;;
423 -with-* | --with-*)
424 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
425 # Reject names that are not valid shell variable names.
426 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
427 { echo "$as_me: error: invalid package name: $ac_package" >&2
428 { (exit 1); exit 1; }; }
429 ac_package=`echo $ac_package| sed 's/-/_/g'`
430 case $ac_option in
431 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
432 *) ac_optarg=yes ;;
433 esac
434 eval "with_$ac_package='$ac_optarg'" ;;
436 -without-* | --without-*)
437 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
438 # Reject names that are not valid shell variable names.
439 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
440 { echo "$as_me: error: invalid package name: $ac_package" >&2
441 { (exit 1); exit 1; }; }
442 ac_package=`echo $ac_package | sed 's/-/_/g'`
443 eval "with_$ac_package=no" ;;
445 --x)
446 # Obsolete; use --with-x.
447 with_x=yes ;;
449 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
450 | --x-incl | --x-inc | --x-in | --x-i)
451 ac_prev=x_includes ;;
452 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
453 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
454 x_includes=$ac_optarg ;;
456 -x-libraries | --x-libraries | --x-librarie | --x-librari \
457 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
458 ac_prev=x_libraries ;;
459 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
460 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
461 x_libraries=$ac_optarg ;;
463 -*) { echo "$as_me: error: unrecognized option: $ac_option
464 Try \`$0 --help' for more information." >&2
465 { (exit 1); exit 1; }; }
468 *=*)
469 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
470 # Reject names that are not valid shell variable names.
471 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
472 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
473 { (exit 1); exit 1; }; }
474 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
475 eval "$ac_envvar='$ac_optarg'"
476 export $ac_envvar ;;
479 # FIXME: should be removed in autoconf 3.0.
480 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
481 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
482 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
483 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
486 esac
487 done
489 if test -n "$ac_prev"; then
490 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
491 { echo "$as_me: error: missing argument to $ac_option" >&2
492 { (exit 1); exit 1; }; }
495 # Be sure to have absolute paths.
496 for ac_var in exec_prefix prefix
498 eval ac_val=$`echo $ac_var`
499 case $ac_val in
500 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
501 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
502 { (exit 1); exit 1; }; };;
503 esac
504 done
506 # Be sure to have absolute paths.
507 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
508 localstatedir libdir includedir oldincludedir infodir mandir
510 eval ac_val=$`echo $ac_var`
511 case $ac_val in
512 [\\/$]* | ?:[\\/]* ) ;;
513 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
514 { (exit 1); exit 1; }; };;
515 esac
516 done
518 # There might be people who depend on the old broken behavior: `$host'
519 # used to hold the argument of --host etc.
520 build=$build_alias
521 host=$host_alias
522 target=$target_alias
524 # FIXME: should be removed in autoconf 3.0.
525 if test "x$host_alias" != x; then
526 if test "x$build_alias" = x; then
527 cross_compiling=maybe
528 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
529 If a cross compiler is detected then cross compile mode will be used." >&2
530 elif test "x$build_alias" != "x$host_alias"; then
531 cross_compiling=yes
535 ac_tool_prefix=
536 test -n "$host_alias" && ac_tool_prefix=$host_alias-
538 test "$silent" = yes && exec 6>/dev/null
540 # Find the source files, if location was not specified.
541 if test -z "$srcdir"; then
542 ac_srcdir_defaulted=yes
543 # Try the directory containing this script, then its parent.
544 ac_prog=$0
545 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
547 srcdir=$ac_confdir
548 if test ! -r $srcdir/$ac_unique_file; then
549 srcdir=..
551 else
552 ac_srcdir_defaulted=no
554 if test ! -r $srcdir/$ac_unique_file; then
555 if test "$ac_srcdir_defaulted" = yes; then
556 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
557 { (exit 1); exit 1; }; }
558 else
559 { echo "$as_me: error: cannot find sources in $srcdir" >&2
560 { (exit 1); exit 1; }; }
563 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
564 ac_env_build_alias_set=${build_alias+set}
565 ac_env_build_alias_value=$build_alias
566 ac_cv_env_build_alias_set=${build_alias+set}
567 ac_cv_env_build_alias_value=$build_alias
568 ac_env_host_alias_set=${host_alias+set}
569 ac_env_host_alias_value=$host_alias
570 ac_cv_env_host_alias_set=${host_alias+set}
571 ac_cv_env_host_alias_value=$host_alias
572 ac_env_target_alias_set=${target_alias+set}
573 ac_env_target_alias_value=$target_alias
574 ac_cv_env_target_alias_set=${target_alias+set}
575 ac_cv_env_target_alias_value=$target_alias
576 ac_env_CC_set=${CC+set}
577 ac_env_CC_value=$CC
578 ac_cv_env_CC_set=${CC+set}
579 ac_cv_env_CC_value=$CC
580 ac_env_CFLAGS_set=${CFLAGS+set}
581 ac_env_CFLAGS_value=$CFLAGS
582 ac_cv_env_CFLAGS_set=${CFLAGS+set}
583 ac_cv_env_CFLAGS_value=$CFLAGS
584 ac_env_LDFLAGS_set=${LDFLAGS+set}
585 ac_env_LDFLAGS_value=$LDFLAGS
586 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
587 ac_cv_env_LDFLAGS_value=$LDFLAGS
588 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
589 ac_env_CPPFLAGS_value=$CPPFLAGS
590 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
591 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
592 ac_env_CPP_set=${CPP+set}
593 ac_env_CPP_value=$CPP
594 ac_cv_env_CPP_set=${CPP+set}
595 ac_cv_env_CPP_value=$CPP
598 # Report the --help message.
600 if test "$ac_init_help" = "long"; then
601 # Omit some internal or obsolete options to make the list less imposing.
602 # This message is too long to be a string in the A/UX 3.1 sh.
603 cat <<EOF
604 \`configure' configures this package to adapt to many kinds of systems.
606 Usage: $0 [OPTION]... [VAR=VALUE]...
608 To assign environment variables (e.g., CC, CFLAGS...), specify them as
609 VAR=VALUE. See below for descriptions of some of the useful variables.
611 Defaults for the options are specified in brackets.
613 Configuration:
614 -h, --help display this help and exit
615 --help=short display options specific to this package
616 --help=recursive display the short help of all the included packages
617 -V, --version display version information and exit
618 -q, --quiet, --silent do not print \`checking...' messages
619 --cache-file=FILE cache test results in FILE [disabled]
620 -C, --config-cache alias for \`--cache-file=config.cache'
621 -n, --no-create do not create output files
622 --srcdir=DIR find the sources in DIR [configure dir or \`..']
626 cat <<EOF
627 Installation directories:
628 --prefix=PREFIX install architecture-independent files in PREFIX
629 [$ac_default_prefix]
630 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
631 [PREFIX]
633 By default, \`make install' will install all the files in
634 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
635 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
636 for instance \`--prefix=\$HOME'.
638 For better control, use the options below.
640 Fine tuning of the installation directories:
641 --bindir=DIR user executables [EPREFIX/bin]
642 --sbindir=DIR system admin executables [EPREFIX/sbin]
643 --libexecdir=DIR program executables [EPREFIX/libexec]
644 --datadir=DIR read-only architecture-independent data [PREFIX/share]
645 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
646 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
647 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
648 --libdir=DIR object code libraries [EPREFIX/lib]
649 --includedir=DIR C header files [PREFIX/include]
650 --oldincludedir=DIR C header files for non-gcc [/usr/include]
651 --infodir=DIR info documentation [PREFIX/info]
652 --mandir=DIR man documentation [PREFIX/man]
655 cat <<\EOF
657 Program names:
658 --program-prefix=PREFIX prepend PREFIX to installed program names
659 --program-suffix=SUFFIX append SUFFIX to installed program names
660 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
662 X features:
663 --x-includes=DIR X include files are in DIR
664 --x-libraries=DIR X library files are in DIR
666 System types:
667 --build=BUILD configure for building on BUILD [guessed]
668 --host=HOST build programs to run on HOST [BUILD]
672 if test -n "$ac_init_help"; then
674 cat <<\EOF
676 Optional Features:
677 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
678 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
680 Optional Packages:
681 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
682 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
684 --disable-echo display "compiling" commands
685 --enable-warnings test: turn on gcc compiler warnings
686 --with-dmalloc test: use Gray Watson's dmalloc library
687 --with-dbmalloc test: use Conor Cahill's dbmalloc library
688 --with-valgrind test: use valgrind
689 --disable-leaks test: free permanent memory, analyze leaks
690 --with-curses-dir=DIR directory in which (n)curses is installed
691 --with-5lib use SunOS sysv-libraries
692 --with-ncursesw use wide ncurses-libraries (installed)
693 --with-ncurses use ncurses-libraries (installed)
694 --with-pdcurses compile/link with pdcurses X11 library
695 --with-Xaw3d link with Xaw 3d library
696 --with-neXtaw link with neXT Athena library
697 --with-XawPlus link with Athena-Plus library
698 --with-pkg-config{=path} enable/disable use of pkg-config
699 --with-x use the X Window System
700 --with-ncurses-wrap-prefix naming-prefix for ncurses wrapped-variables
702 Some influential environment variables:
703 CC C compiler command
704 CFLAGS C compiler flags
705 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
706 nonstandard directory <lib dir>
707 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
708 headers in a nonstandard directory <include dir>
709 CPP C preprocessor
711 Use these variables to override the choices made by `configure' or to help
712 it to find libraries and programs with nonstandard names/locations.
717 if test "$ac_init_help" = "recursive"; then
718 # If there are subdirs, report their specific --help.
719 ac_popdir=`pwd`
720 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
721 cd $ac_subdir
722 # A "../" for each directory in /$ac_subdir.
723 ac_dots=`echo $ac_subdir |
724 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
726 case $srcdir in
727 .) # No --srcdir option. We are building in place.
728 ac_sub_srcdir=$srcdir ;;
729 [\\/]* | ?:[\\/]* ) # Absolute path.
730 ac_sub_srcdir=$srcdir/$ac_subdir ;;
731 *) # Relative path.
732 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
733 esac
735 # Check for guested configure; otherwise get Cygnus style configure.
736 if test -f $ac_sub_srcdir/configure.gnu; then
737 echo
738 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
739 elif test -f $ac_sub_srcdir/configure; then
740 echo
741 $SHELL $ac_sub_srcdir/configure --help=recursive
742 elif test -f $ac_sub_srcdir/configure.ac ||
743 test -f $ac_sub_srcdir/configure.in; then
744 echo
745 $ac_configure --help
746 else
747 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
749 cd $ac_popdir
750 done
753 test -n "$ac_init_help" && exit 0
754 if $ac_init_version; then
755 cat <<\EOF
757 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
758 Free Software Foundation, Inc.
759 This configure script is free software; the Free Software Foundation
760 gives unlimited permission to copy, distribute and modify it.
762 exit 0
764 exec 5>config.log
765 cat >&5 <<EOF
766 This file contains any messages produced by compilers while
767 running configure, to aid debugging if configure makes a mistake.
769 It was created by $as_me, which was
770 generated by GNU Autoconf 2.52.20101002. Invocation command line was
772 $ $0 $@
776 cat <<_ASUNAME
777 ## ---------- ##
778 ## Platform. ##
779 ## ---------- ##
781 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
782 uname -m = `(uname -m) 2>/dev/null || echo unknown`
783 uname -r = `(uname -r) 2>/dev/null || echo unknown`
784 uname -s = `(uname -s) 2>/dev/null || echo unknown`
785 uname -v = `(uname -v) 2>/dev/null || echo unknown`
787 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
788 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
790 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
791 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
792 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
793 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
794 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
795 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
796 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
798 PATH = $PATH
800 _ASUNAME
801 } >&5
803 cat >&5 <<EOF
804 ## ------------ ##
805 ## Core tests. ##
806 ## ------------ ##
810 # Keep a trace of the command line.
811 # Strip out --no-create and --no-recursion so they do not pile up.
812 # Also quote any args containing shell meta-characters.
813 ac_configure_args=
814 ac_sep=
815 for ac_arg
817 case $ac_arg in
818 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
819 | --no-cr | --no-c) ;;
820 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
821 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
822 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
823 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
824 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
825 ac_sep=" " ;;
826 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
827 ac_sep=" " ;;
828 esac
829 # Get rid of the leading space.
830 done
832 # When interrupted or exit'd, cleanup temporary files, and complete
833 # config.log. We remove comments because anyway the quotes in there
834 # would cause problems or look ugly.
835 trap 'exit_status=$?
836 # Save into config.log some information that might help in debugging.
837 echo >&5
838 echo "## ----------------- ##" >&5
839 echo "## Cache variables. ##" >&5
840 echo "## ----------------- ##" >&5
841 echo >&5
842 # The following way of writing the cache mishandles newlines in values,
844 (set) 2>&1 |
845 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
846 *ac_space=\ *)
847 sed -n \
848 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
849 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
852 sed -n \
853 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
855 esac;
856 } >&5
857 sed "/^$/d" confdefs.h >conftest.log
858 if test -s conftest.log; then
859 echo >&5
860 echo "## ------------ ##" >&5
861 echo "## confdefs.h. ##" >&5
862 echo "## ------------ ##" >&5
863 echo >&5
864 cat conftest.log >&5
866 (echo; echo) >&5
867 test "$ac_signal" != 0 &&
868 echo "$as_me: caught signal $ac_signal" >&5
869 echo "$as_me: exit $exit_status" >&5
870 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
871 exit $exit_status
873 for ac_signal in 1 2 13 15; do
874 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
875 done
876 ac_signal=0
878 # confdefs.h avoids OS command line length limits that DEFS can exceed.
879 rm -rf conftest* confdefs.h
880 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
881 echo >confdefs.h
883 # Let the site file select an alternate cache file if it wants to.
884 # Prefer explicitly selected file to automatically selected ones.
885 if test -z "$CONFIG_SITE"; then
886 if test "x$prefix" != xNONE; then
887 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
888 else
889 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
892 for ac_site_file in $CONFIG_SITE; do
893 if test -r "$ac_site_file"; then
894 { echo "$as_me:894: loading site script $ac_site_file" >&5
895 echo "$as_me: loading site script $ac_site_file" >&6;}
896 cat "$ac_site_file" >&5
897 . "$ac_site_file"
899 done
901 if test -r "$cache_file"; then
902 # Some versions of bash will fail to source /dev/null (special
903 # files actually), so we avoid doing that.
904 if test -f "$cache_file"; then
905 { echo "$as_me:905: loading cache $cache_file" >&5
906 echo "$as_me: loading cache $cache_file" >&6;}
907 case $cache_file in
908 [\\/]* | ?:[\\/]* ) . $cache_file;;
909 *) . ./$cache_file;;
910 esac
912 else
913 { echo "$as_me:913: creating cache $cache_file" >&5
914 echo "$as_me: creating cache $cache_file" >&6;}
915 >$cache_file
918 # Check that the precious variables saved in the cache have kept the same
919 # value.
920 ac_cache_corrupted=false
921 for ac_var in `(set) 2>&1 |
922 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
923 eval ac_old_set=\$ac_cv_env_${ac_var}_set
924 eval ac_new_set=\$ac_env_${ac_var}_set
925 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
926 eval ac_new_val="\$ac_env_${ac_var}_value"
927 case $ac_old_set,$ac_new_set in
928 set,)
929 { echo "$as_me:929: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
930 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
931 ac_cache_corrupted=: ;;
932 ,set)
933 { echo "$as_me:933: error: \`$ac_var' was not set in the previous run" >&5
934 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
935 ac_cache_corrupted=: ;;
936 ,);;
938 if test "x$ac_old_val" != "x$ac_new_val"; then
939 { echo "$as_me:939: error: \`$ac_var' has changed since the previous run:" >&5
940 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
941 { echo "$as_me:941: former value: $ac_old_val" >&5
942 echo "$as_me: former value: $ac_old_val" >&2;}
943 { echo "$as_me:943: current value: $ac_new_val" >&5
944 echo "$as_me: current value: $ac_new_val" >&2;}
945 ac_cache_corrupted=:
946 fi;;
947 esac
948 # Pass precious variables to config.status. It doesn't matter if
949 # we pass some twice (in addition to the command line arguments).
950 if test "$ac_new_set" = set; then
951 case $ac_new_val in
952 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
953 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
954 ac_configure_args="$ac_configure_args '$ac_arg'"
956 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
958 esac
960 done
961 if $ac_cache_corrupted; then
962 { echo "$as_me:962: error: changes in the environment can compromise the build" >&5
963 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
964 { { echo "$as_me:964: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
965 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
966 { (exit 1); exit 1; }; }
969 ac_ext=c
970 ac_cpp='$CPP $CPPFLAGS'
971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
974 ac_main_return=return
976 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
977 *c*,-n*) ECHO_N= ECHO_C='
978 ' ECHO_T=' ' ;;
979 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
980 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
981 esac
982 echo "#! $SHELL" >conftest.sh
983 echo "exit 0" >>conftest.sh
984 chmod +x conftest.sh
985 if { (echo "$as_me:985: PATH=\".;.\"; conftest.sh") >&5
986 (PATH=".;."; conftest.sh) 2>&5
987 ac_status=$?
988 echo "$as_me:988: \$? = $ac_status" >&5
989 (exit $ac_status); }; then
990 ac_path_separator=';'
991 else
992 ac_path_separator=:
994 PATH_SEPARATOR="$ac_path_separator"
995 rm -f conftest.sh
997 ac_config_headers="$ac_config_headers ncurses_cfg.h:ncurses_tst.hin"
999 test -f config.guess || ( test -f ../config.guess && cp ../config.guess ./ )
1001 test -f config.sub || ( test -f ../config.sub && cp ../config.sub ./ )
1003 ac_aux_dir=
1004 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1005 if test -f $ac_dir/install-sh; then
1006 ac_aux_dir=$ac_dir
1007 ac_install_sh="$ac_aux_dir/install-sh -c"
1008 break
1009 elif test -f $ac_dir/install.sh; then
1010 ac_aux_dir=$ac_dir
1011 ac_install_sh="$ac_aux_dir/install.sh -c"
1012 break
1013 elif test -f $ac_dir/shtool; then
1014 ac_aux_dir=$ac_dir
1015 ac_install_sh="$ac_aux_dir/shtool install -c"
1016 break
1018 done
1019 if test -z "$ac_aux_dir"; then
1020 { { echo "$as_me:1020: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1021 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1022 { (exit 1); exit 1; }; }
1024 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1025 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1026 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1028 # Make sure we can run config.sub.
1029 $ac_config_sub sun4 >/dev/null 2>&1 ||
1030 { { echo "$as_me:1030: error: cannot run $ac_config_sub" >&5
1031 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1032 { (exit 1); exit 1; }; }
1034 echo "$as_me:1034: checking build system type" >&5
1035 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1036 if test "${ac_cv_build+set}" = set; then
1037 echo $ECHO_N "(cached) $ECHO_C" >&6
1038 else
1039 ac_cv_build_alias=$build_alias
1040 test -z "$ac_cv_build_alias" &&
1041 ac_cv_build_alias=`$ac_config_guess`
1042 test -z "$ac_cv_build_alias" &&
1043 { { echo "$as_me:1043: error: cannot guess build type; you must specify one" >&5
1044 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1045 { (exit 1); exit 1; }; }
1046 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1047 { { echo "$as_me:1047: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1048 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1049 { (exit 1); exit 1; }; }
1052 echo "$as_me:1052: result: $ac_cv_build" >&5
1053 echo "${ECHO_T}$ac_cv_build" >&6
1054 build=$ac_cv_build
1055 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1056 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1057 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1059 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1060 echo "$as_me:1060: checking host system type" >&5
1061 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1062 if test "${ac_cv_host+set}" = set; then
1063 echo $ECHO_N "(cached) $ECHO_C" >&6
1064 else
1065 ac_cv_host_alias=$host_alias
1066 test -z "$ac_cv_host_alias" &&
1067 ac_cv_host_alias=$ac_cv_build_alias
1068 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1069 { { echo "$as_me:1069: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1070 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1071 { (exit 1); exit 1; }; }
1074 echo "$as_me:1074: result: $ac_cv_host" >&5
1075 echo "${ECHO_T}$ac_cv_host" >&6
1076 host=$ac_cv_host
1077 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1078 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1079 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1081 system_name="$host_os"
1082 else
1083 system_name="`(uname -s -r) 2>/dev/null`"
1084 if test -z "$system_name" ; then
1085 system_name="`(hostname) 2>/dev/null`"
1088 test -n "$system_name" && cat >>confdefs.h <<EOF
1089 #define SYSTEM_NAME "$system_name"
1092 if test "${cf_cv_system_name+set}" = set; then
1093 echo $ECHO_N "(cached) $ECHO_C" >&6
1094 else
1095 cf_cv_system_name="$system_name"
1098 test -z "$system_name" && system_name="$cf_cv_system_name"
1099 test -n "$cf_cv_system_name" && echo "$as_me:1099: result: Configuring for $cf_cv_system_name" >&5
1100 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1102 if test ".$system_name" != ".$cf_cv_system_name" ; then
1103 echo "$as_me:1103: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1104 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1105 { { echo "$as_me:1105: error: \"Please remove config.cache and try again.\"" >&5
1106 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1107 { (exit 1); exit 1; }; }
1110 test "$program_prefix" != NONE &&
1111 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1112 # Use a double $ so make ignores it.
1113 test "$program_suffix" != NONE &&
1114 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1115 # Double any \ or $. echo might interpret backslashes.
1116 # By default was `s,x,x', remove it if useless.
1117 cat <<\_ACEOF >conftest.sed
1118 s/[\\$]/&&/g;s/;s,x,x,$//
1119 _ACEOF
1120 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1121 rm conftest.sed
1123 echo "$as_me:1123: checking whether ${MAKE-make} sets \${MAKE}" >&5
1124 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1125 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1126 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1127 echo $ECHO_N "(cached) $ECHO_C" >&6
1128 else
1129 cat >conftest.make <<\EOF
1130 all:
1131 @echo 'ac_maketemp="${MAKE}"'
1133 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1134 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1135 if test -n "$ac_maketemp"; then
1136 eval ac_cv_prog_make_${ac_make}_set=yes
1137 else
1138 eval ac_cv_prog_make_${ac_make}_set=no
1140 rm -f conftest.make
1142 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1143 echo "$as_me:1143: result: yes" >&5
1144 echo "${ECHO_T}yes" >&6
1145 SET_MAKE=
1146 else
1147 echo "$as_me:1147: result: no" >&5
1148 echo "${ECHO_T}no" >&6
1149 SET_MAKE="MAKE=${MAKE-make}"
1152 ac_ext=c
1153 ac_cpp='$CPP $CPPFLAGS'
1154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1157 ac_main_return=return
1158 if test -n "$ac_tool_prefix"; then
1159 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1160 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1161 echo "$as_me:1161: checking for $ac_word" >&5
1162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1163 if test "${ac_cv_prog_CC+set}" = set; then
1164 echo $ECHO_N "(cached) $ECHO_C" >&6
1165 else
1166 if test -n "$CC"; then
1167 ac_cv_prog_CC="$CC" # Let the user override the test.
1168 else
1169 ac_save_IFS=$IFS; IFS=$ac_path_separator
1170 ac_dummy="$PATH"
1171 for ac_dir in $ac_dummy; do
1172 IFS=$ac_save_IFS
1173 test -z "$ac_dir" && ac_dir=.
1174 $as_executable_p "$ac_dir/$ac_word" || continue
1175 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1176 echo "$as_me:1176: found $ac_dir/$ac_word" >&5
1177 break
1178 done
1182 CC=$ac_cv_prog_CC
1183 if test -n "$CC"; then
1184 echo "$as_me:1184: result: $CC" >&5
1185 echo "${ECHO_T}$CC" >&6
1186 else
1187 echo "$as_me:1187: result: no" >&5
1188 echo "${ECHO_T}no" >&6
1192 if test -z "$ac_cv_prog_CC"; then
1193 ac_ct_CC=$CC
1194 # Extract the first word of "gcc", so it can be a program name with args.
1195 set dummy gcc; ac_word=$2
1196 echo "$as_me:1196: checking for $ac_word" >&5
1197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1198 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1199 echo $ECHO_N "(cached) $ECHO_C" >&6
1200 else
1201 if test -n "$ac_ct_CC"; then
1202 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1203 else
1204 ac_save_IFS=$IFS; IFS=$ac_path_separator
1205 ac_dummy="$PATH"
1206 for ac_dir in $ac_dummy; do
1207 IFS=$ac_save_IFS
1208 test -z "$ac_dir" && ac_dir=.
1209 $as_executable_p "$ac_dir/$ac_word" || continue
1210 ac_cv_prog_ac_ct_CC="gcc"
1211 echo "$as_me:1211: found $ac_dir/$ac_word" >&5
1212 break
1213 done
1217 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1218 if test -n "$ac_ct_CC"; then
1219 echo "$as_me:1219: result: $ac_ct_CC" >&5
1220 echo "${ECHO_T}$ac_ct_CC" >&6
1221 else
1222 echo "$as_me:1222: result: no" >&5
1223 echo "${ECHO_T}no" >&6
1226 CC=$ac_ct_CC
1227 else
1228 CC="$ac_cv_prog_CC"
1231 if test -z "$CC"; then
1232 if test -n "$ac_tool_prefix"; then
1233 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1234 set dummy ${ac_tool_prefix}cc; ac_word=$2
1235 echo "$as_me:1235: checking for $ac_word" >&5
1236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1237 if test "${ac_cv_prog_CC+set}" = set; then
1238 echo $ECHO_N "(cached) $ECHO_C" >&6
1239 else
1240 if test -n "$CC"; then
1241 ac_cv_prog_CC="$CC" # Let the user override the test.
1242 else
1243 ac_save_IFS=$IFS; IFS=$ac_path_separator
1244 ac_dummy="$PATH"
1245 for ac_dir in $ac_dummy; do
1246 IFS=$ac_save_IFS
1247 test -z "$ac_dir" && ac_dir=.
1248 $as_executable_p "$ac_dir/$ac_word" || continue
1249 ac_cv_prog_CC="${ac_tool_prefix}cc"
1250 echo "$as_me:1250: found $ac_dir/$ac_word" >&5
1251 break
1252 done
1256 CC=$ac_cv_prog_CC
1257 if test -n "$CC"; then
1258 echo "$as_me:1258: result: $CC" >&5
1259 echo "${ECHO_T}$CC" >&6
1260 else
1261 echo "$as_me:1261: result: no" >&5
1262 echo "${ECHO_T}no" >&6
1266 if test -z "$ac_cv_prog_CC"; then
1267 ac_ct_CC=$CC
1268 # Extract the first word of "cc", so it can be a program name with args.
1269 set dummy cc; ac_word=$2
1270 echo "$as_me:1270: checking for $ac_word" >&5
1271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1272 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1273 echo $ECHO_N "(cached) $ECHO_C" >&6
1274 else
1275 if test -n "$ac_ct_CC"; then
1276 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1277 else
1278 ac_save_IFS=$IFS; IFS=$ac_path_separator
1279 ac_dummy="$PATH"
1280 for ac_dir in $ac_dummy; do
1281 IFS=$ac_save_IFS
1282 test -z "$ac_dir" && ac_dir=.
1283 $as_executable_p "$ac_dir/$ac_word" || continue
1284 ac_cv_prog_ac_ct_CC="cc"
1285 echo "$as_me:1285: found $ac_dir/$ac_word" >&5
1286 break
1287 done
1291 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1292 if test -n "$ac_ct_CC"; then
1293 echo "$as_me:1293: result: $ac_ct_CC" >&5
1294 echo "${ECHO_T}$ac_ct_CC" >&6
1295 else
1296 echo "$as_me:1296: result: no" >&5
1297 echo "${ECHO_T}no" >&6
1300 CC=$ac_ct_CC
1301 else
1302 CC="$ac_cv_prog_CC"
1306 if test -z "$CC"; then
1307 # Extract the first word of "cc", so it can be a program name with args.
1308 set dummy cc; ac_word=$2
1309 echo "$as_me:1309: checking for $ac_word" >&5
1310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1311 if test "${ac_cv_prog_CC+set}" = set; then
1312 echo $ECHO_N "(cached) $ECHO_C" >&6
1313 else
1314 if test -n "$CC"; then
1315 ac_cv_prog_CC="$CC" # Let the user override the test.
1316 else
1317 ac_prog_rejected=no
1318 ac_save_IFS=$IFS; IFS=$ac_path_separator
1319 ac_dummy="$PATH"
1320 for ac_dir in $ac_dummy; do
1321 IFS=$ac_save_IFS
1322 test -z "$ac_dir" && ac_dir=.
1323 $as_executable_p "$ac_dir/$ac_word" || continue
1324 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1325 ac_prog_rejected=yes
1326 continue
1328 ac_cv_prog_CC="cc"
1329 echo "$as_me:1329: found $ac_dir/$ac_word" >&5
1330 break
1331 done
1333 if test $ac_prog_rejected = yes; then
1334 # We found a bogon in the path, so make sure we never use it.
1335 set dummy $ac_cv_prog_CC
1336 shift
1337 if test $# != 0; then
1338 # We chose a different compiler from the bogus one.
1339 # However, it has the same basename, so the bogon will be chosen
1340 # first if we set CC to just the basename; use the full file name.
1341 shift
1342 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1343 shift
1344 ac_cv_prog_CC="$@"
1349 CC=$ac_cv_prog_CC
1350 if test -n "$CC"; then
1351 echo "$as_me:1351: result: $CC" >&5
1352 echo "${ECHO_T}$CC" >&6
1353 else
1354 echo "$as_me:1354: result: no" >&5
1355 echo "${ECHO_T}no" >&6
1359 if test -z "$CC"; then
1360 if test -n "$ac_tool_prefix"; then
1361 for ac_prog in cl
1363 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1364 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1365 echo "$as_me:1365: checking for $ac_word" >&5
1366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1367 if test "${ac_cv_prog_CC+set}" = set; then
1368 echo $ECHO_N "(cached) $ECHO_C" >&6
1369 else
1370 if test -n "$CC"; then
1371 ac_cv_prog_CC="$CC" # Let the user override the test.
1372 else
1373 ac_save_IFS=$IFS; IFS=$ac_path_separator
1374 ac_dummy="$PATH"
1375 for ac_dir in $ac_dummy; do
1376 IFS=$ac_save_IFS
1377 test -z "$ac_dir" && ac_dir=.
1378 $as_executable_p "$ac_dir/$ac_word" || continue
1379 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1380 echo "$as_me:1380: found $ac_dir/$ac_word" >&5
1381 break
1382 done
1386 CC=$ac_cv_prog_CC
1387 if test -n "$CC"; then
1388 echo "$as_me:1388: result: $CC" >&5
1389 echo "${ECHO_T}$CC" >&6
1390 else
1391 echo "$as_me:1391: result: no" >&5
1392 echo "${ECHO_T}no" >&6
1395 test -n "$CC" && break
1396 done
1398 if test -z "$CC"; then
1399 ac_ct_CC=$CC
1400 for ac_prog in cl
1402 # Extract the first word of "$ac_prog", so it can be a program name with args.
1403 set dummy $ac_prog; ac_word=$2
1404 echo "$as_me:1404: checking for $ac_word" >&5
1405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1406 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
1408 else
1409 if test -n "$ac_ct_CC"; then
1410 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1411 else
1412 ac_save_IFS=$IFS; IFS=$ac_path_separator
1413 ac_dummy="$PATH"
1414 for ac_dir in $ac_dummy; do
1415 IFS=$ac_save_IFS
1416 test -z "$ac_dir" && ac_dir=.
1417 $as_executable_p "$ac_dir/$ac_word" || continue
1418 ac_cv_prog_ac_ct_CC="$ac_prog"
1419 echo "$as_me:1419: found $ac_dir/$ac_word" >&5
1420 break
1421 done
1425 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1426 if test -n "$ac_ct_CC"; then
1427 echo "$as_me:1427: result: $ac_ct_CC" >&5
1428 echo "${ECHO_T}$ac_ct_CC" >&6
1429 else
1430 echo "$as_me:1430: result: no" >&5
1431 echo "${ECHO_T}no" >&6
1434 test -n "$ac_ct_CC" && break
1435 done
1437 CC=$ac_ct_CC
1442 test -z "$CC" && { { echo "$as_me:1442: error: no acceptable cc found in \$PATH" >&5
1443 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1444 { (exit 1); exit 1; }; }
1446 # Provide some information about the compiler.
1447 echo "$as_me:1447:" \
1448 "checking for C compiler version" >&5
1449 ac_compiler=`set X $ac_compile; echo $2`
1450 { (eval echo "$as_me:1450: \"$ac_compiler --version </dev/null >&5\"") >&5
1451 (eval $ac_compiler --version </dev/null >&5) 2>&5
1452 ac_status=$?
1453 echo "$as_me:1453: \$? = $ac_status" >&5
1454 (exit $ac_status); }
1455 { (eval echo "$as_me:1455: \"$ac_compiler -v </dev/null >&5\"") >&5
1456 (eval $ac_compiler -v </dev/null >&5) 2>&5
1457 ac_status=$?
1458 echo "$as_me:1458: \$? = $ac_status" >&5
1459 (exit $ac_status); }
1460 { (eval echo "$as_me:1460: \"$ac_compiler -V </dev/null >&5\"") >&5
1461 (eval $ac_compiler -V </dev/null >&5) 2>&5
1462 ac_status=$?
1463 echo "$as_me:1463: \$? = $ac_status" >&5
1464 (exit $ac_status); }
1466 cat >conftest.$ac_ext <<_ACEOF
1467 #line 1467 "configure"
1468 #include "confdefs.h"
1471 main ()
1475 return 0;
1477 _ACEOF
1478 ac_clean_files_save=$ac_clean_files
1479 ac_clean_files="$ac_clean_files a.out a.exe"
1480 # Try to create an executable without -o first, disregard a.out.
1481 # It will help us diagnose broken compilers, and finding out an intuition
1482 # of exeext.
1483 echo "$as_me:1483: checking for C compiler default output" >&5
1484 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1485 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1486 if { (eval echo "$as_me:1486: \"$ac_link_default\"") >&5
1487 (eval $ac_link_default) 2>&5
1488 ac_status=$?
1489 echo "$as_me:1489: \$? = $ac_status" >&5
1490 (exit $ac_status); }; then
1491 # Find the output, starting from the most likely. This scheme is
1492 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1493 # resort.
1494 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1495 ls a.out conftest 2>/dev/null;
1496 ls a.* conftest.* 2>/dev/null`; do
1497 case $ac_file in
1498 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1499 a.out ) # We found the default executable, but exeext='' is most
1500 # certainly right.
1501 break;;
1502 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1503 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1504 export ac_cv_exeext
1505 break;;
1506 * ) break;;
1507 esac
1508 done
1509 else
1510 echo "$as_me: failed program was:" >&5
1511 cat conftest.$ac_ext >&5
1512 { { echo "$as_me:1512: error: C compiler cannot create executables" >&5
1513 echo "$as_me: error: C compiler cannot create executables" >&2;}
1514 { (exit 77); exit 77; }; }
1517 ac_exeext=$ac_cv_exeext
1518 echo "$as_me:1518: result: $ac_file" >&5
1519 echo "${ECHO_T}$ac_file" >&6
1521 # Check the compiler produces executables we can run. If not, either
1522 # the compiler is broken, or we cross compile.
1523 echo "$as_me:1523: checking whether the C compiler works" >&5
1524 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1525 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1526 # If not cross compiling, check that we can run a simple program.
1527 if test "$cross_compiling" != yes; then
1528 if { ac_try='./$ac_file'
1529 { (eval echo "$as_me:1529: \"$ac_try\"") >&5
1530 (eval $ac_try) 2>&5
1531 ac_status=$?
1532 echo "$as_me:1532: \$? = $ac_status" >&5
1533 (exit $ac_status); }; }; then
1534 cross_compiling=no
1535 else
1536 if test "$cross_compiling" = maybe; then
1537 cross_compiling=yes
1538 else
1539 { { echo "$as_me:1539: error: cannot run C compiled programs.
1540 If you meant to cross compile, use \`--host'." >&5
1541 echo "$as_me: error: cannot run C compiled programs.
1542 If you meant to cross compile, use \`--host'." >&2;}
1543 { (exit 1); exit 1; }; }
1547 echo "$as_me:1547: result: yes" >&5
1548 echo "${ECHO_T}yes" >&6
1550 rm -f a.out a.exe conftest$ac_cv_exeext
1551 ac_clean_files=$ac_clean_files_save
1552 # Check the compiler produces executables we can run. If not, either
1553 # the compiler is broken, or we cross compile.
1554 echo "$as_me:1554: checking whether we are cross compiling" >&5
1555 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1556 echo "$as_me:1556: result: $cross_compiling" >&5
1557 echo "${ECHO_T}$cross_compiling" >&6
1559 echo "$as_me:1559: checking for executable suffix" >&5
1560 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1561 if { (eval echo "$as_me:1561: \"$ac_link\"") >&5
1562 (eval $ac_link) 2>&5
1563 ac_status=$?
1564 echo "$as_me:1564: \$? = $ac_status" >&5
1565 (exit $ac_status); }; then
1566 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1567 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1568 # work properly (i.e., refer to `conftest.exe'), while it won't with
1569 # `rm'.
1570 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1571 case $ac_file in
1572 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1573 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1574 export ac_cv_exeext
1575 break;;
1576 * ) break;;
1577 esac
1578 done
1579 else
1580 { { echo "$as_me:1580: error: cannot compute EXEEXT: cannot compile and link" >&5
1581 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1582 { (exit 1); exit 1; }; }
1585 rm -f conftest$ac_cv_exeext
1586 echo "$as_me:1586: result: $ac_cv_exeext" >&5
1587 echo "${ECHO_T}$ac_cv_exeext" >&6
1589 rm -f conftest.$ac_ext
1590 EXEEXT=$ac_cv_exeext
1591 ac_exeext=$EXEEXT
1592 echo "$as_me:1592: checking for object suffix" >&5
1593 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1594 if test "${ac_cv_objext+set}" = set; then
1595 echo $ECHO_N "(cached) $ECHO_C" >&6
1596 else
1597 cat >conftest.$ac_ext <<_ACEOF
1598 #line 1598 "configure"
1599 #include "confdefs.h"
1602 main ()
1606 return 0;
1608 _ACEOF
1609 rm -f conftest.o conftest.obj
1610 if { (eval echo "$as_me:1610: \"$ac_compile\"") >&5
1611 (eval $ac_compile) 2>&5
1612 ac_status=$?
1613 echo "$as_me:1613: \$? = $ac_status" >&5
1614 (exit $ac_status); }; then
1615 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1616 case $ac_file in
1617 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1618 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1619 break;;
1620 esac
1621 done
1622 else
1623 echo "$as_me: failed program was:" >&5
1624 cat conftest.$ac_ext >&5
1625 { { echo "$as_me:1625: error: cannot compute OBJEXT: cannot compile" >&5
1626 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1627 { (exit 1); exit 1; }; }
1630 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1632 echo "$as_me:1632: result: $ac_cv_objext" >&5
1633 echo "${ECHO_T}$ac_cv_objext" >&6
1634 OBJEXT=$ac_cv_objext
1635 ac_objext=$OBJEXT
1636 echo "$as_me:1636: checking whether we are using the GNU C compiler" >&5
1637 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1638 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641 cat >conftest.$ac_ext <<_ACEOF
1642 #line 1642 "configure"
1643 #include "confdefs.h"
1646 main ()
1648 #ifndef __GNUC__
1649 choke me
1650 #endif
1653 return 0;
1655 _ACEOF
1656 rm -f conftest.$ac_objext
1657 if { (eval echo "$as_me:1657: \"$ac_compile\"") >&5
1658 (eval $ac_compile) 2>&5
1659 ac_status=$?
1660 echo "$as_me:1660: \$? = $ac_status" >&5
1661 (exit $ac_status); } &&
1662 { ac_try='test -s conftest.$ac_objext'
1663 { (eval echo "$as_me:1663: \"$ac_try\"") >&5
1664 (eval $ac_try) 2>&5
1665 ac_status=$?
1666 echo "$as_me:1666: \$? = $ac_status" >&5
1667 (exit $ac_status); }; }; then
1668 ac_compiler_gnu=yes
1669 else
1670 echo "$as_me: failed program was:" >&5
1671 cat conftest.$ac_ext >&5
1672 ac_compiler_gnu=no
1674 rm -f conftest.$ac_objext conftest.$ac_ext
1675 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1678 echo "$as_me:1678: result: $ac_cv_c_compiler_gnu" >&5
1679 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1680 GCC=`test $ac_compiler_gnu = yes && echo yes`
1681 ac_test_CFLAGS=${CFLAGS+set}
1682 ac_save_CFLAGS=$CFLAGS
1683 CFLAGS="-g"
1684 echo "$as_me:1684: checking whether $CC accepts -g" >&5
1685 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1686 if test "${ac_cv_prog_cc_g+set}" = set; then
1687 echo $ECHO_N "(cached) $ECHO_C" >&6
1688 else
1689 cat >conftest.$ac_ext <<_ACEOF
1690 #line 1690 "configure"
1691 #include "confdefs.h"
1694 main ()
1698 return 0;
1700 _ACEOF
1701 rm -f conftest.$ac_objext
1702 if { (eval echo "$as_me:1702: \"$ac_compile\"") >&5
1703 (eval $ac_compile) 2>&5
1704 ac_status=$?
1705 echo "$as_me:1705: \$? = $ac_status" >&5
1706 (exit $ac_status); } &&
1707 { ac_try='test -s conftest.$ac_objext'
1708 { (eval echo "$as_me:1708: \"$ac_try\"") >&5
1709 (eval $ac_try) 2>&5
1710 ac_status=$?
1711 echo "$as_me:1711: \$? = $ac_status" >&5
1712 (exit $ac_status); }; }; then
1713 ac_cv_prog_cc_g=yes
1714 else
1715 echo "$as_me: failed program was:" >&5
1716 cat conftest.$ac_ext >&5
1717 ac_cv_prog_cc_g=no
1719 rm -f conftest.$ac_objext conftest.$ac_ext
1721 echo "$as_me:1721: result: $ac_cv_prog_cc_g" >&5
1722 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1723 if test "$ac_test_CFLAGS" = set; then
1724 CFLAGS=$ac_save_CFLAGS
1725 elif test $ac_cv_prog_cc_g = yes; then
1726 if test "$GCC" = yes; then
1727 CFLAGS="-g -O2"
1728 else
1729 CFLAGS="-g"
1731 else
1732 if test "$GCC" = yes; then
1733 CFLAGS="-O2"
1734 else
1735 CFLAGS=
1738 # Some people use a C++ compiler to compile C. Since we use `exit',
1739 # in C++ we need to declare it. In case someone uses the same compiler
1740 # for both compiling C and C++ we need to have the C++ compiler decide
1741 # the declaration of exit, since it's the most demanding environment.
1742 cat >conftest.$ac_ext <<_ACEOF
1743 #ifndef __cplusplus
1744 choke me
1745 #endif
1746 _ACEOF
1747 rm -f conftest.$ac_objext
1748 if { (eval echo "$as_me:1748: \"$ac_compile\"") >&5
1749 (eval $ac_compile) 2>&5
1750 ac_status=$?
1751 echo "$as_me:1751: \$? = $ac_status" >&5
1752 (exit $ac_status); } &&
1753 { ac_try='test -s conftest.$ac_objext'
1754 { (eval echo "$as_me:1754: \"$ac_try\"") >&5
1755 (eval $ac_try) 2>&5
1756 ac_status=$?
1757 echo "$as_me:1757: \$? = $ac_status" >&5
1758 (exit $ac_status); }; }; then
1759 for ac_declaration in \
1761 '#include <stdlib.h>' \
1762 'extern "C" void std::exit (int) throw (); using std::exit;' \
1763 'extern "C" void std::exit (int); using std::exit;' \
1764 'extern "C" void exit (int) throw ();' \
1765 'extern "C" void exit (int);' \
1766 'void exit (int);'
1768 cat >conftest.$ac_ext <<_ACEOF
1769 #line 1769 "configure"
1770 #include "confdefs.h"
1771 #include <stdlib.h>
1772 $ac_declaration
1774 main ()
1776 exit (42);
1778 return 0;
1780 _ACEOF
1781 rm -f conftest.$ac_objext
1782 if { (eval echo "$as_me:1782: \"$ac_compile\"") >&5
1783 (eval $ac_compile) 2>&5
1784 ac_status=$?
1785 echo "$as_me:1785: \$? = $ac_status" >&5
1786 (exit $ac_status); } &&
1787 { ac_try='test -s conftest.$ac_objext'
1788 { (eval echo "$as_me:1788: \"$ac_try\"") >&5
1789 (eval $ac_try) 2>&5
1790 ac_status=$?
1791 echo "$as_me:1791: \$? = $ac_status" >&5
1792 (exit $ac_status); }; }; then
1794 else
1795 echo "$as_me: failed program was:" >&5
1796 cat conftest.$ac_ext >&5
1797 continue
1799 rm -f conftest.$ac_objext conftest.$ac_ext
1800 cat >conftest.$ac_ext <<_ACEOF
1801 #line 1801 "configure"
1802 #include "confdefs.h"
1803 $ac_declaration
1805 main ()
1807 exit (42);
1809 return 0;
1811 _ACEOF
1812 rm -f conftest.$ac_objext
1813 if { (eval echo "$as_me:1813: \"$ac_compile\"") >&5
1814 (eval $ac_compile) 2>&5
1815 ac_status=$?
1816 echo "$as_me:1816: \$? = $ac_status" >&5
1817 (exit $ac_status); } &&
1818 { ac_try='test -s conftest.$ac_objext'
1819 { (eval echo "$as_me:1819: \"$ac_try\"") >&5
1820 (eval $ac_try) 2>&5
1821 ac_status=$?
1822 echo "$as_me:1822: \$? = $ac_status" >&5
1823 (exit $ac_status); }; }; then
1824 break
1825 else
1826 echo "$as_me: failed program was:" >&5
1827 cat conftest.$ac_ext >&5
1829 rm -f conftest.$ac_objext conftest.$ac_ext
1830 done
1831 rm -rf conftest*
1832 if test -n "$ac_declaration"; then
1833 echo '#ifdef __cplusplus' >>confdefs.h
1834 echo $ac_declaration >>confdefs.h
1835 echo '#endif' >>confdefs.h
1838 else
1839 echo "$as_me: failed program was:" >&5
1840 cat conftest.$ac_ext >&5
1842 rm -f conftest.$ac_objext conftest.$ac_ext
1843 ac_ext=c
1844 ac_cpp='$CPP $CPPFLAGS'
1845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1848 ac_main_return=return
1850 ac_ext=c
1851 ac_cpp='$CPP $CPPFLAGS'
1852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1855 ac_main_return=return
1856 echo "$as_me:1856: checking how to run the C preprocessor" >&5
1857 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1858 # On Suns, sometimes $CPP names a directory.
1859 if test -n "$CPP" && test -d "$CPP"; then
1860 CPP=
1862 if test -z "$CPP"; then
1863 if test "${ac_cv_prog_CPP+set}" = set; then
1864 echo $ECHO_N "(cached) $ECHO_C" >&6
1865 else
1866 # Double quotes because CPP needs to be expanded
1867 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1869 ac_preproc_ok=false
1870 for ac_c_preproc_warn_flag in '' yes
1872 # Use a header file that comes with gcc, so configuring glibc
1873 # with a fresh cross-compiler works.
1874 # On the NeXT, cc -E runs the code through the compiler's parser,
1875 # not just through cpp. "Syntax error" is here to catch this case.
1876 cat >conftest.$ac_ext <<_ACEOF
1877 #line 1877 "configure"
1878 #include "confdefs.h"
1879 #include <assert.h>
1880 Syntax error
1881 _ACEOF
1882 if { (eval echo "$as_me:1882: \"$ac_cpp conftest.$ac_ext\"") >&5
1883 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1884 ac_status=$?
1885 egrep -v '^ *\+' conftest.er1 >conftest.err
1886 rm -f conftest.er1
1887 cat conftest.err >&5
1888 echo "$as_me:1888: \$? = $ac_status" >&5
1889 (exit $ac_status); } >/dev/null; then
1890 if test -s conftest.err; then
1891 ac_cpp_err=$ac_c_preproc_warn_flag
1892 else
1893 ac_cpp_err=
1895 else
1896 ac_cpp_err=yes
1898 if test -z "$ac_cpp_err"; then
1900 else
1901 echo "$as_me: failed program was:" >&5
1902 cat conftest.$ac_ext >&5
1903 # Broken: fails on valid input.
1904 continue
1906 rm -f conftest.err conftest.$ac_ext
1908 # OK, works on sane cases. Now check whether non-existent headers
1909 # can be detected and how.
1910 cat >conftest.$ac_ext <<_ACEOF
1911 #line 1911 "configure"
1912 #include "confdefs.h"
1913 #include <ac_nonexistent.h>
1914 _ACEOF
1915 if { (eval echo "$as_me:1915: \"$ac_cpp conftest.$ac_ext\"") >&5
1916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1917 ac_status=$?
1918 egrep -v '^ *\+' conftest.er1 >conftest.err
1919 rm -f conftest.er1
1920 cat conftest.err >&5
1921 echo "$as_me:1921: \$? = $ac_status" >&5
1922 (exit $ac_status); } >/dev/null; then
1923 if test -s conftest.err; then
1924 ac_cpp_err=$ac_c_preproc_warn_flag
1925 else
1926 ac_cpp_err=
1928 else
1929 ac_cpp_err=yes
1931 if test -z "$ac_cpp_err"; then
1932 # Broken: success on invalid input.
1933 continue
1934 else
1935 echo "$as_me: failed program was:" >&5
1936 cat conftest.$ac_ext >&5
1937 # Passes both tests.
1938 ac_preproc_ok=:
1939 break
1941 rm -f conftest.err conftest.$ac_ext
1943 done
1944 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1945 rm -f conftest.err conftest.$ac_ext
1946 if $ac_preproc_ok; then
1947 break
1950 done
1951 ac_cv_prog_CPP=$CPP
1954 CPP=$ac_cv_prog_CPP
1955 else
1956 ac_cv_prog_CPP=$CPP
1958 echo "$as_me:1958: result: $CPP" >&5
1959 echo "${ECHO_T}$CPP" >&6
1960 ac_preproc_ok=false
1961 for ac_c_preproc_warn_flag in '' yes
1963 # Use a header file that comes with gcc, so configuring glibc
1964 # with a fresh cross-compiler works.
1965 # On the NeXT, cc -E runs the code through the compiler's parser,
1966 # not just through cpp. "Syntax error" is here to catch this case.
1967 cat >conftest.$ac_ext <<_ACEOF
1968 #line 1968 "configure"
1969 #include "confdefs.h"
1970 #include <assert.h>
1971 Syntax error
1972 _ACEOF
1973 if { (eval echo "$as_me:1973: \"$ac_cpp conftest.$ac_ext\"") >&5
1974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1975 ac_status=$?
1976 egrep -v '^ *\+' conftest.er1 >conftest.err
1977 rm -f conftest.er1
1978 cat conftest.err >&5
1979 echo "$as_me:1979: \$? = $ac_status" >&5
1980 (exit $ac_status); } >/dev/null; then
1981 if test -s conftest.err; then
1982 ac_cpp_err=$ac_c_preproc_warn_flag
1983 else
1984 ac_cpp_err=
1986 else
1987 ac_cpp_err=yes
1989 if test -z "$ac_cpp_err"; then
1991 else
1992 echo "$as_me: failed program was:" >&5
1993 cat conftest.$ac_ext >&5
1994 # Broken: fails on valid input.
1995 continue
1997 rm -f conftest.err conftest.$ac_ext
1999 # OK, works on sane cases. Now check whether non-existent headers
2000 # can be detected and how.
2001 cat >conftest.$ac_ext <<_ACEOF
2002 #line 2002 "configure"
2003 #include "confdefs.h"
2004 #include <ac_nonexistent.h>
2005 _ACEOF
2006 if { (eval echo "$as_me:2006: \"$ac_cpp conftest.$ac_ext\"") >&5
2007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2008 ac_status=$?
2009 egrep -v '^ *\+' conftest.er1 >conftest.err
2010 rm -f conftest.er1
2011 cat conftest.err >&5
2012 echo "$as_me:2012: \$? = $ac_status" >&5
2013 (exit $ac_status); } >/dev/null; then
2014 if test -s conftest.err; then
2015 ac_cpp_err=$ac_c_preproc_warn_flag
2016 else
2017 ac_cpp_err=
2019 else
2020 ac_cpp_err=yes
2022 if test -z "$ac_cpp_err"; then
2023 # Broken: success on invalid input.
2024 continue
2025 else
2026 echo "$as_me: failed program was:" >&5
2027 cat conftest.$ac_ext >&5
2028 # Passes both tests.
2029 ac_preproc_ok=:
2030 break
2032 rm -f conftest.err conftest.$ac_ext
2034 done
2035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2036 rm -f conftest.err conftest.$ac_ext
2037 if $ac_preproc_ok; then
2039 else
2040 { { echo "$as_me:2040: error: C preprocessor \"$CPP\" fails sanity check" >&5
2041 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2042 { (exit 1); exit 1; }; }
2045 ac_ext=c
2046 ac_cpp='$CPP $CPPFLAGS'
2047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2050 ac_main_return=return
2052 for ac_prog in mawk gawk nawk awk
2054 # Extract the first word of "$ac_prog", so it can be a program name with args.
2055 set dummy $ac_prog; ac_word=$2
2056 echo "$as_me:2056: checking for $ac_word" >&5
2057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2058 if test "${ac_cv_prog_AWK+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2060 else
2061 if test -n "$AWK"; then
2062 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2063 else
2064 ac_save_IFS=$IFS; IFS=$ac_path_separator
2065 ac_dummy="$PATH"
2066 for ac_dir in $ac_dummy; do
2067 IFS=$ac_save_IFS
2068 test -z "$ac_dir" && ac_dir=.
2069 $as_executable_p "$ac_dir/$ac_word" || continue
2070 ac_cv_prog_AWK="$ac_prog"
2071 echo "$as_me:2071: found $ac_dir/$ac_word" >&5
2072 break
2073 done
2077 AWK=$ac_cv_prog_AWK
2078 if test -n "$AWK"; then
2079 echo "$as_me:2079: result: $AWK" >&5
2080 echo "${ECHO_T}$AWK" >&6
2081 else
2082 echo "$as_me:2082: result: no" >&5
2083 echo "${ECHO_T}no" >&6
2086 test -n "$AWK" && break
2087 done
2089 # Find a good install program. We prefer a C program (faster),
2090 # so one script is as good as another. But avoid the broken or
2091 # incompatible versions:
2092 # SysV /etc/install, /usr/sbin/install
2093 # SunOS /usr/etc/install
2094 # IRIX /sbin/install
2095 # AIX /bin/install
2096 # AmigaOS /C/install, which installs bootblocks on floppy discs
2097 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2098 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2099 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2100 # ./install, which can be erroneously created by make from ./install.sh.
2101 echo "$as_me:2101: checking for a BSD compatible install" >&5
2102 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2103 if test -z "$INSTALL"; then
2104 if test "${ac_cv_path_install+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2106 else
2107 ac_save_IFS=$IFS; IFS=$ac_path_separator
2108 for ac_dir in $PATH; do
2109 IFS=$ac_save_IFS
2110 # Account for people who put trailing slashes in PATH elements.
2111 case $ac_dir/ in
2112 / | ./ | .// | /cC/* \
2113 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2114 | /usr/ucb/* ) ;;
2116 # OSF1 and SCO ODT 3.0 have their own names for install.
2117 # Don't use installbsd from OSF since it installs stuff as root
2118 # by default.
2119 for ac_prog in ginstall scoinst install; do
2120 if $as_executable_p "$ac_dir/$ac_prog"; then
2121 if test $ac_prog = install &&
2122 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2123 # AIX install. It has an incompatible calling convention.
2125 elif test $ac_prog = install &&
2126 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2127 # program-specific install script used by HP pwplus--don't use.
2129 else
2130 ac_cv_path_install="$ac_dir/$ac_prog -c"
2131 break 2
2134 done
2136 esac
2137 done
2140 if test "${ac_cv_path_install+set}" = set; then
2141 INSTALL=$ac_cv_path_install
2142 else
2143 # As a last resort, use the slow shell script. We don't cache a
2144 # path for INSTALL within a source directory, because that will
2145 # break other packages using the cache if that directory is
2146 # removed, or if the path is relative.
2147 INSTALL=$ac_install_sh
2150 echo "$as_me:2150: result: $INSTALL" >&5
2151 echo "${ECHO_T}$INSTALL" >&6
2153 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2154 # It thinks the first close brace ends the variable substitution.
2155 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2157 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2159 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2161 case $INSTALL in
2165 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
2166 test -z "$cf_dir" && cf_dir=.
2167 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
2169 esac
2171 for ac_prog in tdlint lint alint splint lclint
2173 # Extract the first word of "$ac_prog", so it can be a program name with args.
2174 set dummy $ac_prog; ac_word=$2
2175 echo "$as_me:2175: checking for $ac_word" >&5
2176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2177 if test "${ac_cv_prog_LINT+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2179 else
2180 if test -n "$LINT"; then
2181 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2182 else
2183 ac_save_IFS=$IFS; IFS=$ac_path_separator
2184 ac_dummy="$PATH"
2185 for ac_dir in $ac_dummy; do
2186 IFS=$ac_save_IFS
2187 test -z "$ac_dir" && ac_dir=.
2188 $as_executable_p "$ac_dir/$ac_word" || continue
2189 ac_cv_prog_LINT="$ac_prog"
2190 echo "$as_me:2190: found $ac_dir/$ac_word" >&5
2191 break
2192 done
2196 LINT=$ac_cv_prog_LINT
2197 if test -n "$LINT"; then
2198 echo "$as_me:2198: result: $LINT" >&5
2199 echo "${ECHO_T}$LINT" >&6
2200 else
2201 echo "$as_me:2201: result: no" >&5
2202 echo "${ECHO_T}no" >&6
2205 test -n "$LINT" && break
2206 done
2208 echo "$as_me:2208: checking if filesystem supports mixed-case filenames" >&5
2209 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2210 if test "${cf_cv_mixedcase+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 else
2214 if test "$cross_compiling" = yes ; then
2215 case $target_alias in #(vi
2216 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
2217 cf_cv_mixedcase=no
2220 cf_cv_mixedcase=yes
2222 esac
2223 else
2224 rm -f conftest CONFTEST
2225 echo test >conftest
2226 if test -f CONFTEST ; then
2227 cf_cv_mixedcase=no
2228 else
2229 cf_cv_mixedcase=yes
2231 rm -f conftest CONFTEST
2235 echo "$as_me:2235: result: $cf_cv_mixedcase" >&5
2236 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2237 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
2238 #define MIXEDCASE_FILENAMES 1
2241 for ac_prog in exctags ctags
2243 # Extract the first word of "$ac_prog", so it can be a program name with args.
2244 set dummy $ac_prog; ac_word=$2
2245 echo "$as_me:2245: checking for $ac_word" >&5
2246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2247 if test "${ac_cv_prog_CTAGS+set}" = set; then
2248 echo $ECHO_N "(cached) $ECHO_C" >&6
2249 else
2250 if test -n "$CTAGS"; then
2251 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2252 else
2253 ac_save_IFS=$IFS; IFS=$ac_path_separator
2254 ac_dummy="$PATH"
2255 for ac_dir in $ac_dummy; do
2256 IFS=$ac_save_IFS
2257 test -z "$ac_dir" && ac_dir=.
2258 $as_executable_p "$ac_dir/$ac_word" || continue
2259 ac_cv_prog_CTAGS="$ac_prog"
2260 echo "$as_me:2260: found $ac_dir/$ac_word" >&5
2261 break
2262 done
2266 CTAGS=$ac_cv_prog_CTAGS
2267 if test -n "$CTAGS"; then
2268 echo "$as_me:2268: result: $CTAGS" >&5
2269 echo "${ECHO_T}$CTAGS" >&6
2270 else
2271 echo "$as_me:2271: result: no" >&5
2272 echo "${ECHO_T}no" >&6
2275 test -n "$CTAGS" && break
2276 done
2278 for ac_prog in exetags etags
2280 # Extract the first word of "$ac_prog", so it can be a program name with args.
2281 set dummy $ac_prog; ac_word=$2
2282 echo "$as_me:2282: checking for $ac_word" >&5
2283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2284 if test "${ac_cv_prog_ETAGS+set}" = set; then
2285 echo $ECHO_N "(cached) $ECHO_C" >&6
2286 else
2287 if test -n "$ETAGS"; then
2288 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2289 else
2290 ac_save_IFS=$IFS; IFS=$ac_path_separator
2291 ac_dummy="$PATH"
2292 for ac_dir in $ac_dummy; do
2293 IFS=$ac_save_IFS
2294 test -z "$ac_dir" && ac_dir=.
2295 $as_executable_p "$ac_dir/$ac_word" || continue
2296 ac_cv_prog_ETAGS="$ac_prog"
2297 echo "$as_me:2297: found $ac_dir/$ac_word" >&5
2298 break
2299 done
2303 ETAGS=$ac_cv_prog_ETAGS
2304 if test -n "$ETAGS"; then
2305 echo "$as_me:2305: result: $ETAGS" >&5
2306 echo "${ECHO_T}$ETAGS" >&6
2307 else
2308 echo "$as_me:2308: result: no" >&5
2309 echo "${ECHO_T}no" >&6
2312 test -n "$ETAGS" && break
2313 done
2315 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2316 set dummy ${CTAGS:-ctags}; ac_word=$2
2317 echo "$as_me:2317: checking for $ac_word" >&5
2318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2319 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 else
2322 if test -n "$MAKE_LOWER_TAGS"; then
2323 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2324 else
2325 ac_save_IFS=$IFS; IFS=$ac_path_separator
2326 ac_dummy="$PATH"
2327 for ac_dir in $ac_dummy; do
2328 IFS=$ac_save_IFS
2329 test -z "$ac_dir" && ac_dir=.
2330 $as_executable_p "$ac_dir/$ac_word" || continue
2331 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2332 echo "$as_me:2332: found $ac_dir/$ac_word" >&5
2333 break
2334 done
2336 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2339 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2340 if test -n "$MAKE_LOWER_TAGS"; then
2341 echo "$as_me:2341: result: $MAKE_LOWER_TAGS" >&5
2342 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2343 else
2344 echo "$as_me:2344: result: no" >&5
2345 echo "${ECHO_T}no" >&6
2348 if test "$cf_cv_mixedcase" = yes ; then
2349 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2350 set dummy ${ETAGS:-etags}; ac_word=$2
2351 echo "$as_me:2351: checking for $ac_word" >&5
2352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2353 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 else
2356 if test -n "$MAKE_UPPER_TAGS"; then
2357 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2358 else
2359 ac_save_IFS=$IFS; IFS=$ac_path_separator
2360 ac_dummy="$PATH"
2361 for ac_dir in $ac_dummy; do
2362 IFS=$ac_save_IFS
2363 test -z "$ac_dir" && ac_dir=.
2364 $as_executable_p "$ac_dir/$ac_word" || continue
2365 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2366 echo "$as_me:2366: found $ac_dir/$ac_word" >&5
2367 break
2368 done
2370 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2373 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2374 if test -n "$MAKE_UPPER_TAGS"; then
2375 echo "$as_me:2375: result: $MAKE_UPPER_TAGS" >&5
2376 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2377 else
2378 echo "$as_me:2378: result: no" >&5
2379 echo "${ECHO_T}no" >&6
2382 else
2383 MAKE_UPPER_TAGS=no
2386 if test "$MAKE_UPPER_TAGS" = yes ; then
2387 MAKE_UPPER_TAGS=
2388 else
2389 MAKE_UPPER_TAGS="#"
2392 if test "$MAKE_LOWER_TAGS" = yes ; then
2393 MAKE_LOWER_TAGS=
2394 else
2395 MAKE_LOWER_TAGS="#"
2398 echo "$as_me:2398: checking if -lm needed for math functions" >&5
2399 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
2400 if test "${cf_cv_need_libm+set}" = set; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
2402 else
2404 cat >conftest.$ac_ext <<_ACEOF
2405 #line 2405 "configure"
2406 #include "confdefs.h"
2408 #include <stdio.h>
2409 #include <math.h>
2412 main ()
2414 double x = rand(); printf("result = %g\n", sin(x))
2416 return 0;
2418 _ACEOF
2419 rm -f conftest.$ac_objext conftest$ac_exeext
2420 if { (eval echo "$as_me:2420: \"$ac_link\"") >&5
2421 (eval $ac_link) 2>&5
2422 ac_status=$?
2423 echo "$as_me:2423: \$? = $ac_status" >&5
2424 (exit $ac_status); } &&
2425 { ac_try='test -s conftest$ac_exeext'
2426 { (eval echo "$as_me:2426: \"$ac_try\"") >&5
2427 (eval $ac_try) 2>&5
2428 ac_status=$?
2429 echo "$as_me:2429: \$? = $ac_status" >&5
2430 (exit $ac_status); }; }; then
2431 cf_cv_need_libm=no
2432 else
2433 echo "$as_me: failed program was:" >&5
2434 cat conftest.$ac_ext >&5
2435 cf_cv_need_libm=yes
2437 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2439 echo "$as_me:2439: result: $cf_cv_need_libm" >&5
2440 echo "${ECHO_T}$cf_cv_need_libm" >&6
2441 if test "$cf_cv_need_libm" = yes
2442 then
2443 MATH_LIB=-lm
2446 CC_G_OPT="-g"
2447 CC_SHARED_OPTS=unknown
2448 CPPFLAGS="$CPPFLAGS"
2449 DFT_DEP_SUFFIX=""
2450 DFT_OBJ_SUBDIR=`pwd|sed -e's:.*/::'`
2451 DFT_UPR_MODEL="NORMAL"
2452 LD="ld"
2453 LDFLAGS_SHARED=""
2454 LDFLAGS_STATIC=""
2455 LD_MODEL=""
2456 LD_SHARED_OPTS=""
2457 LIBTOOL=""
2458 LIB_CLEAN=""
2459 LIB_COMPILE=""
2460 LIB_LINK='${CC}'
2461 LINK_TESTS=""
2462 LOCAL_LDFLAGS=""
2463 PTHREAD="-lm"
2464 TEST_ARGS=""
2465 TEST_DEPS=""
2466 TEST_LIBS=""
2467 TINFO_ARGS='$(LIBS_CURSES)'
2468 cf_cv_abi_version=""
2469 cf_cv_rel_version=""
2471 cf_cv_screen=curses
2472 cf_cv_libtype=
2474 echo "$as_me:2474: checking for ${CC:-cc} option to accept ANSI C" >&5
2475 echo $ECHO_N "checking for ${CC:-cc} option to accept ANSI C... $ECHO_C" >&6
2476 if test "${cf_cv_ansi_cc+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 else
2480 cf_cv_ansi_cc=no
2481 cf_save_CFLAGS="$CFLAGS"
2482 cf_save_CPPFLAGS="$CPPFLAGS"
2483 # Don't try gcc -ansi; that turns off useful extensions and
2484 # breaks some systems' header files.
2485 # AIX -qlanglvl=ansi
2486 # Ultrix and OSF/1 -std1
2487 # HP-UX -Aa -D_HPUX_SOURCE
2488 # SVR4 -Xc
2489 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2490 for cf_arg in "-DCC_HAS_PROTOS" \
2491 "" \
2492 -qlanglvl=ansi \
2493 -std1 \
2494 -Ae \
2495 "-Aa -D_HPUX_SOURCE" \
2499 cf_fix_cppflags=no
2500 cf_new_cflags=
2501 cf_new_cppflags=
2502 cf_new_extra_cppflags=
2504 for cf_add_cflags in $cf_arg
2506 case $cf_fix_cppflags in
2508 case $cf_add_cflags in #(vi
2509 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2510 case $cf_add_cflags in
2511 -D*)
2512 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2514 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2515 && test -z "${cf_tst_cflags}" \
2516 && cf_fix_cppflags=yes
2518 if test $cf_fix_cppflags = yes ; then
2519 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2520 continue
2521 elif test "${cf_tst_cflags}" = "\"'" ; then
2522 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2523 continue
2526 esac
2527 case "$CPPFLAGS" in
2528 *$cf_add_cflags) #(vi
2530 *) #(vi
2531 case $cf_add_cflags in #(vi
2532 -D*)
2533 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2535 CPPFLAGS=`echo "$CPPFLAGS" | \
2536 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2537 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2540 esac
2541 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2543 esac
2546 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2548 esac
2550 yes)
2551 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2553 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2555 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2556 && test -z "${cf_tst_cflags}" \
2557 && cf_fix_cppflags=no
2559 esac
2560 done
2562 if test -n "$cf_new_cflags" ; then
2564 CFLAGS="$CFLAGS $cf_new_cflags"
2567 if test -n "$cf_new_cppflags" ; then
2569 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2572 if test -n "$cf_new_extra_cppflags" ; then
2574 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2577 cat >conftest.$ac_ext <<_ACEOF
2578 #line 2578 "configure"
2579 #include "confdefs.h"
2581 #ifndef CC_HAS_PROTOS
2582 #if !defined(__STDC__) || (__STDC__ != 1)
2583 choke me
2584 #endif
2585 #endif
2588 main ()
2591 int test (int i, double x);
2592 struct s1 {int (*f) (int a);};
2593 struct s2 {int (*f) (double a);};
2595 return 0;
2597 _ACEOF
2598 rm -f conftest.$ac_objext
2599 if { (eval echo "$as_me:2599: \"$ac_compile\"") >&5
2600 (eval $ac_compile) 2>&5
2601 ac_status=$?
2602 echo "$as_me:2602: \$? = $ac_status" >&5
2603 (exit $ac_status); } &&
2604 { ac_try='test -s conftest.$ac_objext'
2605 { (eval echo "$as_me:2605: \"$ac_try\"") >&5
2606 (eval $ac_try) 2>&5
2607 ac_status=$?
2608 echo "$as_me:2608: \$? = $ac_status" >&5
2609 (exit $ac_status); }; }; then
2610 cf_cv_ansi_cc="$cf_arg"; break
2611 else
2612 echo "$as_me: failed program was:" >&5
2613 cat conftest.$ac_ext >&5
2615 rm -f conftest.$ac_objext conftest.$ac_ext
2616 done
2617 CFLAGS="$cf_save_CFLAGS"
2618 CPPFLAGS="$cf_save_CPPFLAGS"
2621 echo "$as_me:2621: result: $cf_cv_ansi_cc" >&5
2622 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2624 if test "$cf_cv_ansi_cc" != "no"; then
2625 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2627 cf_fix_cppflags=no
2628 cf_new_cflags=
2629 cf_new_cppflags=
2630 cf_new_extra_cppflags=
2632 for cf_add_cflags in $cf_cv_ansi_cc
2634 case $cf_fix_cppflags in
2636 case $cf_add_cflags in #(vi
2637 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2638 case $cf_add_cflags in
2639 -D*)
2640 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2642 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2643 && test -z "${cf_tst_cflags}" \
2644 && cf_fix_cppflags=yes
2646 if test $cf_fix_cppflags = yes ; then
2647 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2648 continue
2649 elif test "${cf_tst_cflags}" = "\"'" ; then
2650 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2651 continue
2654 esac
2655 case "$CPPFLAGS" in
2656 *$cf_add_cflags) #(vi
2658 *) #(vi
2659 case $cf_add_cflags in #(vi
2660 -D*)
2661 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2663 CPPFLAGS=`echo "$CPPFLAGS" | \
2664 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2665 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2668 esac
2669 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2671 esac
2674 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2676 esac
2678 yes)
2679 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2681 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2683 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2684 && test -z "${cf_tst_cflags}" \
2685 && cf_fix_cppflags=no
2687 esac
2688 done
2690 if test -n "$cf_new_cflags" ; then
2692 CFLAGS="$CFLAGS $cf_new_cflags"
2695 if test -n "$cf_new_cppflags" ; then
2697 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2700 if test -n "$cf_new_extra_cppflags" ; then
2702 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2705 else
2706 cat >>confdefs.h <<\EOF
2707 #define CC_HAS_PROTOS 1
2713 if test "$cf_cv_ansi_cc" = "no"; then
2714 { { echo "$as_me:2714: error: Your compiler does not appear to recognize prototypes.
2715 You have the following choices:
2716 a. adjust your compiler options
2717 b. get an up-to-date compiler
2718 c. use a wrapper such as unproto" >&5
2719 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2720 You have the following choices:
2721 a. adjust your compiler options
2722 b. get an up-to-date compiler
2723 c. use a wrapper such as unproto" >&2;}
2724 { (exit 1); exit 1; }; }
2727 if test "$GCC" = yes
2728 then
2729 cat > conftest.i <<EOF
2730 #ifndef GCC_PRINTF
2731 #define GCC_PRINTF 0
2732 #endif
2733 #ifndef GCC_SCANF
2734 #define GCC_SCANF 0
2735 #endif
2736 #ifndef GCC_NORETURN
2737 #define GCC_NORETURN /* nothing */
2738 #endif
2739 #ifndef GCC_UNUSED
2740 #define GCC_UNUSED /* nothing */
2741 #endif
2743 if test "$GCC" = yes
2744 then
2745 { echo "$as_me:2745: checking for $CC __attribute__ directives..." >&5
2746 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
2747 cat > conftest.$ac_ext <<EOF
2748 #line 2748 "${as_me:-configure}"
2749 #include "confdefs.h"
2750 #include "conftest.h"
2751 #include "conftest.i"
2752 #if GCC_PRINTF
2753 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2754 #else
2755 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
2756 #endif
2757 #if GCC_SCANF
2758 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2759 #else
2760 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
2761 #endif
2762 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
2763 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
2764 extern void foo(void) GCC_NORETURN;
2765 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
2767 cf_printf_attribute=no
2768 cf_scanf_attribute=no
2769 for cf_attribute in scanf printf unused noreturn
2772 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
2774 cf_directive="__attribute__(($cf_attribute))"
2775 echo "checking for $CC $cf_directive" 1>&5
2777 case $cf_attribute in #(vi
2778 printf) #(vi
2779 cf_printf_attribute=yes
2780 cat >conftest.h <<EOF
2781 #define GCC_$cf_ATTRIBUTE 1
2784 scanf) #(vi
2785 cf_scanf_attribute=yes
2786 cat >conftest.h <<EOF
2787 #define GCC_$cf_ATTRIBUTE 1
2790 *) #(vi
2791 cat >conftest.h <<EOF
2792 #define GCC_$cf_ATTRIBUTE $cf_directive
2795 esac
2797 if { (eval echo "$as_me:2797: \"$ac_compile\"") >&5
2798 (eval $ac_compile) 2>&5
2799 ac_status=$?
2800 echo "$as_me:2800: \$? = $ac_status" >&5
2801 (exit $ac_status); }; then
2802 test -n "$verbose" && echo "$as_me:2802: result: ... $cf_attribute" >&5
2803 echo "${ECHO_T}... $cf_attribute" >&6
2804 cat conftest.h >>confdefs.h
2805 case $cf_attribute in #(vi
2806 printf) #(vi
2807 if test "$cf_printf_attribute" = no ; then
2808 cat >>confdefs.h <<EOF
2809 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
2811 else
2812 cat >>confdefs.h <<EOF
2813 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2817 scanf) #(vi
2818 if test "$cf_scanf_attribute" = no ; then
2819 cat >>confdefs.h <<EOF
2820 #define GCC_SCANFLIKE(fmt,var) /* nothing */
2822 else
2823 cat >>confdefs.h <<EOF
2824 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2828 esac
2830 done
2831 else
2832 fgrep define conftest.i >>confdefs.h
2834 rm -rf conftest*
2837 cf_XOPEN_SOURCE=500
2838 cf_POSIX_C_SOURCE=199506L
2839 cf_xopen_source=
2841 case $host_os in #(vi
2842 aix[456]*) #(vi
2843 cf_xopen_source="-D_ALL_SOURCE"
2845 cygwin) #(vi
2846 cf_XOPEN_SOURCE=600
2848 darwin[0-8].*) #(vi
2849 cf_xopen_source="-D_APPLE_C_SOURCE"
2851 darwin*) #(vi
2852 cf_xopen_source="-D_DARWIN_C_SOURCE"
2854 freebsd*|dragonfly*) #(vi
2855 # 5.x headers associate
2856 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
2857 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
2858 cf_POSIX_C_SOURCE=200112L
2859 cf_XOPEN_SOURCE=600
2860 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2862 hpux11*) #(vi
2863 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
2865 hpux*) #(vi
2866 cf_xopen_source="-D_HPUX_SOURCE"
2868 irix[56].*) #(vi
2869 cf_xopen_source="-D_SGI_SOURCE"
2871 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
2873 echo "$as_me:2873: checking if we must define _GNU_SOURCE" >&5
2874 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
2875 if test "${cf_cv_gnu_source+set}" = set; then
2876 echo $ECHO_N "(cached) $ECHO_C" >&6
2877 else
2879 cat >conftest.$ac_ext <<_ACEOF
2880 #line 2880 "configure"
2881 #include "confdefs.h"
2882 #include <sys/types.h>
2884 main ()
2887 #ifndef _XOPEN_SOURCE
2888 make an error
2889 #endif
2891 return 0;
2893 _ACEOF
2894 rm -f conftest.$ac_objext
2895 if { (eval echo "$as_me:2895: \"$ac_compile\"") >&5
2896 (eval $ac_compile) 2>&5
2897 ac_status=$?
2898 echo "$as_me:2898: \$? = $ac_status" >&5
2899 (exit $ac_status); } &&
2900 { ac_try='test -s conftest.$ac_objext'
2901 { (eval echo "$as_me:2901: \"$ac_try\"") >&5
2902 (eval $ac_try) 2>&5
2903 ac_status=$?
2904 echo "$as_me:2904: \$? = $ac_status" >&5
2905 (exit $ac_status); }; }; then
2906 cf_cv_gnu_source=no
2907 else
2908 echo "$as_me: failed program was:" >&5
2909 cat conftest.$ac_ext >&5
2910 cf_save="$CPPFLAGS"
2911 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2912 cat >conftest.$ac_ext <<_ACEOF
2913 #line 2913 "configure"
2914 #include "confdefs.h"
2915 #include <sys/types.h>
2917 main ()
2920 #ifdef _XOPEN_SOURCE
2921 make an error
2922 #endif
2924 return 0;
2926 _ACEOF
2927 rm -f conftest.$ac_objext
2928 if { (eval echo "$as_me:2928: \"$ac_compile\"") >&5
2929 (eval $ac_compile) 2>&5
2930 ac_status=$?
2931 echo "$as_me:2931: \$? = $ac_status" >&5
2932 (exit $ac_status); } &&
2933 { ac_try='test -s conftest.$ac_objext'
2934 { (eval echo "$as_me:2934: \"$ac_try\"") >&5
2935 (eval $ac_try) 2>&5
2936 ac_status=$?
2937 echo "$as_me:2937: \$? = $ac_status" >&5
2938 (exit $ac_status); }; }; then
2939 cf_cv_gnu_source=no
2940 else
2941 echo "$as_me: failed program was:" >&5
2942 cat conftest.$ac_ext >&5
2943 cf_cv_gnu_source=yes
2945 rm -f conftest.$ac_objext conftest.$ac_ext
2946 CPPFLAGS="$cf_save"
2949 rm -f conftest.$ac_objext conftest.$ac_ext
2952 echo "$as_me:2952: result: $cf_cv_gnu_source" >&5
2953 echo "${ECHO_T}$cf_cv_gnu_source" >&6
2954 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
2957 mirbsd*) #(vi
2958 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <arpa/inet.h>
2960 netbsd*) #(vi
2961 # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
2963 openbsd*) #(vi
2964 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
2966 osf[45]*) #(vi
2967 cf_xopen_source="-D_OSF_SOURCE"
2969 nto-qnx*) #(vi
2970 cf_xopen_source="-D_QNX_SOURCE"
2972 sco*) #(vi
2973 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
2975 solaris2.1[0-9]) #(vi
2976 cf_xopen_source="-D__EXTENSIONS__ -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
2978 solaris2.[1-9]) #(vi
2979 cf_xopen_source="-D__EXTENSIONS__"
2982 echo "$as_me:2982: checking if we should define _XOPEN_SOURCE" >&5
2983 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
2984 if test "${cf_cv_xopen_source+set}" = set; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 else
2988 cat >conftest.$ac_ext <<_ACEOF
2989 #line 2989 "configure"
2990 #include "confdefs.h"
2991 #include <sys/types.h>
2993 main ()
2996 #ifndef _XOPEN_SOURCE
2997 make an error
2998 #endif
3000 return 0;
3002 _ACEOF
3003 rm -f conftest.$ac_objext
3004 if { (eval echo "$as_me:3004: \"$ac_compile\"") >&5
3005 (eval $ac_compile) 2>&5
3006 ac_status=$?
3007 echo "$as_me:3007: \$? = $ac_status" >&5
3008 (exit $ac_status); } &&
3009 { ac_try='test -s conftest.$ac_objext'
3010 { (eval echo "$as_me:3010: \"$ac_try\"") >&5
3011 (eval $ac_try) 2>&5
3012 ac_status=$?
3013 echo "$as_me:3013: \$? = $ac_status" >&5
3014 (exit $ac_status); }; }; then
3015 cf_cv_xopen_source=no
3016 else
3017 echo "$as_me: failed program was:" >&5
3018 cat conftest.$ac_ext >&5
3019 cf_save="$CPPFLAGS"
3020 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3021 cat >conftest.$ac_ext <<_ACEOF
3022 #line 3022 "configure"
3023 #include "confdefs.h"
3024 #include <sys/types.h>
3026 main ()
3029 #ifdef _XOPEN_SOURCE
3030 make an error
3031 #endif
3033 return 0;
3035 _ACEOF
3036 rm -f conftest.$ac_objext
3037 if { (eval echo "$as_me:3037: \"$ac_compile\"") >&5
3038 (eval $ac_compile) 2>&5
3039 ac_status=$?
3040 echo "$as_me:3040: \$? = $ac_status" >&5
3041 (exit $ac_status); } &&
3042 { ac_try='test -s conftest.$ac_objext'
3043 { (eval echo "$as_me:3043: \"$ac_try\"") >&5
3044 (eval $ac_try) 2>&5
3045 ac_status=$?
3046 echo "$as_me:3046: \$? = $ac_status" >&5
3047 (exit $ac_status); }; }; then
3048 cf_cv_xopen_source=no
3049 else
3050 echo "$as_me: failed program was:" >&5
3051 cat conftest.$ac_ext >&5
3052 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3054 rm -f conftest.$ac_objext conftest.$ac_ext
3055 CPPFLAGS="$cf_save"
3058 rm -f conftest.$ac_objext conftest.$ac_ext
3061 echo "$as_me:3061: result: $cf_cv_xopen_source" >&5
3062 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3063 if test "$cf_cv_xopen_source" != no ; then
3065 CFLAGS=`echo "$CFLAGS" | \
3066 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3067 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3069 CPPFLAGS=`echo "$CPPFLAGS" | \
3070 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3071 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3073 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3075 cf_fix_cppflags=no
3076 cf_new_cflags=
3077 cf_new_cppflags=
3078 cf_new_extra_cppflags=
3080 for cf_add_cflags in $cf_temp_xopen_source
3082 case $cf_fix_cppflags in
3084 case $cf_add_cflags in #(vi
3085 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3086 case $cf_add_cflags in
3087 -D*)
3088 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3090 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3091 && test -z "${cf_tst_cflags}" \
3092 && cf_fix_cppflags=yes
3094 if test $cf_fix_cppflags = yes ; then
3095 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3096 continue
3097 elif test "${cf_tst_cflags}" = "\"'" ; then
3098 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3099 continue
3102 esac
3103 case "$CPPFLAGS" in
3104 *$cf_add_cflags) #(vi
3106 *) #(vi
3107 case $cf_add_cflags in #(vi
3108 -D*)
3109 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3111 CPPFLAGS=`echo "$CPPFLAGS" | \
3112 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3113 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3116 esac
3117 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3119 esac
3122 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3124 esac
3126 yes)
3127 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3129 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3131 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3132 && test -z "${cf_tst_cflags}" \
3133 && cf_fix_cppflags=no
3135 esac
3136 done
3138 if test -n "$cf_new_cflags" ; then
3140 CFLAGS="$CFLAGS $cf_new_cflags"
3143 if test -n "$cf_new_cppflags" ; then
3145 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3148 if test -n "$cf_new_extra_cppflags" ; then
3150 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3155 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3157 cf_save_CFLAGS="$CFLAGS"
3158 cf_save_CPPFLAGS="$CPPFLAGS"
3160 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3161 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3162 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3164 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3165 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3166 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3168 echo "$as_me:3168: checking if we should define _POSIX_C_SOURCE" >&5
3169 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3170 if test "${cf_cv_posix_c_source+set}" = set; then
3171 echo $ECHO_N "(cached) $ECHO_C" >&6
3172 else
3174 echo "${as_me:-configure}:3174: testing if the symbol is already defined go no further ..." 1>&5
3176 cat >conftest.$ac_ext <<_ACEOF
3177 #line 3177 "configure"
3178 #include "confdefs.h"
3179 #include <sys/types.h>
3181 main ()
3184 #ifndef _POSIX_C_SOURCE
3185 make an error
3186 #endif
3188 return 0;
3190 _ACEOF
3191 rm -f conftest.$ac_objext
3192 if { (eval echo "$as_me:3192: \"$ac_compile\"") >&5
3193 (eval $ac_compile) 2>&5
3194 ac_status=$?
3195 echo "$as_me:3195: \$? = $ac_status" >&5
3196 (exit $ac_status); } &&
3197 { ac_try='test -s conftest.$ac_objext'
3198 { (eval echo "$as_me:3198: \"$ac_try\"") >&5
3199 (eval $ac_try) 2>&5
3200 ac_status=$?
3201 echo "$as_me:3201: \$? = $ac_status" >&5
3202 (exit $ac_status); }; }; then
3203 cf_cv_posix_c_source=no
3204 else
3205 echo "$as_me: failed program was:" >&5
3206 cat conftest.$ac_ext >&5
3207 cf_want_posix_source=no
3208 case .$cf_POSIX_C_SOURCE in #(vi
3209 .[12]??*) #(vi
3210 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3212 .2) #(vi
3213 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3214 cf_want_posix_source=yes
3217 cf_want_posix_source=yes
3219 esac
3220 if test "$cf_want_posix_source" = yes ; then
3221 cat >conftest.$ac_ext <<_ACEOF
3222 #line 3222 "configure"
3223 #include "confdefs.h"
3224 #include <sys/types.h>
3226 main ()
3229 #ifdef _POSIX_SOURCE
3230 make an error
3231 #endif
3233 return 0;
3235 _ACEOF
3236 rm -f conftest.$ac_objext
3237 if { (eval echo "$as_me:3237: \"$ac_compile\"") >&5
3238 (eval $ac_compile) 2>&5
3239 ac_status=$?
3240 echo "$as_me:3240: \$? = $ac_status" >&5
3241 (exit $ac_status); } &&
3242 { ac_try='test -s conftest.$ac_objext'
3243 { (eval echo "$as_me:3243: \"$ac_try\"") >&5
3244 (eval $ac_try) 2>&5
3245 ac_status=$?
3246 echo "$as_me:3246: \$? = $ac_status" >&5
3247 (exit $ac_status); }; }; then
3249 else
3250 echo "$as_me: failed program was:" >&5
3251 cat conftest.$ac_ext >&5
3252 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3254 rm -f conftest.$ac_objext conftest.$ac_ext
3257 echo "${as_me:-configure}:3257: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3259 CFLAGS="$cf_trim_CFLAGS"
3260 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3262 echo "${as_me:-configure}:3262: testing if the second compile does not leave our definition intact error ..." 1>&5
3264 cat >conftest.$ac_ext <<_ACEOF
3265 #line 3265 "configure"
3266 #include "confdefs.h"
3267 #include <sys/types.h>
3269 main ()
3272 #ifndef _POSIX_C_SOURCE
3273 make an error
3274 #endif
3276 return 0;
3278 _ACEOF
3279 rm -f conftest.$ac_objext
3280 if { (eval echo "$as_me:3280: \"$ac_compile\"") >&5
3281 (eval $ac_compile) 2>&5
3282 ac_status=$?
3283 echo "$as_me:3283: \$? = $ac_status" >&5
3284 (exit $ac_status); } &&
3285 { ac_try='test -s conftest.$ac_objext'
3286 { (eval echo "$as_me:3286: \"$ac_try\"") >&5
3287 (eval $ac_try) 2>&5
3288 ac_status=$?
3289 echo "$as_me:3289: \$? = $ac_status" >&5
3290 (exit $ac_status); }; }; then
3292 else
3293 echo "$as_me: failed program was:" >&5
3294 cat conftest.$ac_ext >&5
3295 cf_cv_posix_c_source=no
3297 rm -f conftest.$ac_objext conftest.$ac_ext
3298 CFLAGS="$cf_save_CFLAGS"
3299 CPPFLAGS="$cf_save_CPPFLAGS"
3302 rm -f conftest.$ac_objext conftest.$ac_ext
3305 echo "$as_me:3305: result: $cf_cv_posix_c_source" >&5
3306 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3308 if test "$cf_cv_posix_c_source" != no ; then
3309 CFLAGS="$cf_trim_CFLAGS"
3310 CPPFLAGS="$cf_trim_CPPFLAGS"
3312 cf_fix_cppflags=no
3313 cf_new_cflags=
3314 cf_new_cppflags=
3315 cf_new_extra_cppflags=
3317 for cf_add_cflags in $cf_cv_posix_c_source
3319 case $cf_fix_cppflags in
3321 case $cf_add_cflags in #(vi
3322 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3323 case $cf_add_cflags in
3324 -D*)
3325 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3327 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3328 && test -z "${cf_tst_cflags}" \
3329 && cf_fix_cppflags=yes
3331 if test $cf_fix_cppflags = yes ; then
3332 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3333 continue
3334 elif test "${cf_tst_cflags}" = "\"'" ; then
3335 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3336 continue
3339 esac
3340 case "$CPPFLAGS" in
3341 *$cf_add_cflags) #(vi
3343 *) #(vi
3344 case $cf_add_cflags in #(vi
3345 -D*)
3346 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3348 CPPFLAGS=`echo "$CPPFLAGS" | \
3349 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3350 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3353 esac
3354 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3356 esac
3359 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3361 esac
3363 yes)
3364 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3366 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3368 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3369 && test -z "${cf_tst_cflags}" \
3370 && cf_fix_cppflags=no
3372 esac
3373 done
3375 if test -n "$cf_new_cflags" ; then
3377 CFLAGS="$CFLAGS $cf_new_cflags"
3380 if test -n "$cf_new_cppflags" ; then
3382 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3385 if test -n "$cf_new_extra_cppflags" ; then
3387 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3393 esac
3395 if test -n "$cf_xopen_source" ; then
3397 cf_fix_cppflags=no
3398 cf_new_cflags=
3399 cf_new_cppflags=
3400 cf_new_extra_cppflags=
3402 for cf_add_cflags in $cf_xopen_source
3404 case $cf_fix_cppflags in
3406 case $cf_add_cflags in #(vi
3407 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3408 case $cf_add_cflags in
3409 -D*)
3410 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3412 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3413 && test -z "${cf_tst_cflags}" \
3414 && cf_fix_cppflags=yes
3416 if test $cf_fix_cppflags = yes ; then
3417 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3418 continue
3419 elif test "${cf_tst_cflags}" = "\"'" ; then
3420 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3421 continue
3424 esac
3425 case "$CPPFLAGS" in
3426 *$cf_add_cflags) #(vi
3428 *) #(vi
3429 case $cf_add_cflags in #(vi
3430 -D*)
3431 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3433 CPPFLAGS=`echo "$CPPFLAGS" | \
3434 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3435 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3438 esac
3439 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3441 esac
3444 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3446 esac
3448 yes)
3449 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3451 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3453 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3454 && test -z "${cf_tst_cflags}" \
3455 && cf_fix_cppflags=no
3457 esac
3458 done
3460 if test -n "$cf_new_cflags" ; then
3462 CFLAGS="$CFLAGS $cf_new_cflags"
3465 if test -n "$cf_new_cppflags" ; then
3467 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3470 if test -n "$cf_new_extra_cppflags" ; then
3472 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3477 echo "$as_me:3477: checking for $CC option to accept ANSI C" >&5
3478 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3479 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3481 else
3482 ac_cv_prog_cc_stdc=no
3483 ac_save_CC=$CC
3484 cat >conftest.$ac_ext <<_ACEOF
3485 #line 3485 "configure"
3486 #include "confdefs.h"
3487 #include <stdarg.h>
3488 #include <stdio.h>
3489 #include <sys/types.h>
3490 #include <sys/stat.h>
3491 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3492 struct buf { int x; };
3493 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3494 static char *e (p, i)
3495 char **p;
3496 int i;
3498 return p[i];
3500 static char *f (char * (*g) (char **, int), char **p, ...)
3502 char *s;
3503 va_list v;
3504 va_start (v,p);
3505 s = g (p, va_arg (v,int));
3506 va_end (v);
3507 return s;
3509 int test (int i, double x);
3510 struct s1 {int (*f) (int a);};
3511 struct s2 {int (*f) (double a);};
3512 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3513 int argc;
3514 char **argv;
3516 main ()
3518 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3520 return 0;
3522 _ACEOF
3523 # Don't try gcc -ansi; that turns off useful extensions and
3524 # breaks some systems' header files.
3525 # AIX -qlanglvl=ansi
3526 # Ultrix and OSF/1 -std1
3527 # HP-UX 10.20 and later -Ae
3528 # HP-UX older versions -Aa -D_HPUX_SOURCE
3529 # SVR4 -Xc -D__EXTENSIONS__
3530 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3532 CC="$ac_save_CC $ac_arg"
3533 rm -f conftest.$ac_objext
3534 if { (eval echo "$as_me:3534: \"$ac_compile\"") >&5
3535 (eval $ac_compile) 2>&5
3536 ac_status=$?
3537 echo "$as_me:3537: \$? = $ac_status" >&5
3538 (exit $ac_status); } &&
3539 { ac_try='test -s conftest.$ac_objext'
3540 { (eval echo "$as_me:3540: \"$ac_try\"") >&5
3541 (eval $ac_try) 2>&5
3542 ac_status=$?
3543 echo "$as_me:3543: \$? = $ac_status" >&5
3544 (exit $ac_status); }; }; then
3545 ac_cv_prog_cc_stdc=$ac_arg
3546 break
3547 else
3548 echo "$as_me: failed program was:" >&5
3549 cat conftest.$ac_ext >&5
3551 rm -f conftest.$ac_objext
3552 done
3553 rm -f conftest.$ac_ext conftest.$ac_objext
3554 CC=$ac_save_CC
3558 case "x$ac_cv_prog_cc_stdc" in
3559 x|xno)
3560 echo "$as_me:3560: result: none needed" >&5
3561 echo "${ECHO_T}none needed" >&6 ;;
3563 echo "$as_me:3563: result: $ac_cv_prog_cc_stdc" >&5
3564 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3565 CC="$CC $ac_cv_prog_cc_stdc" ;;
3566 esac
3568 echo "$as_me:3568: checking for an ANSI C-conforming const" >&5
3569 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3570 if test "${ac_cv_c_const+set}" = set; then
3571 echo $ECHO_N "(cached) $ECHO_C" >&6
3572 else
3573 cat >conftest.$ac_ext <<_ACEOF
3574 #line 3574 "configure"
3575 #include "confdefs.h"
3578 main ()
3580 /* FIXME: Include the comments suggested by Paul. */
3581 #ifndef __cplusplus
3582 /* Ultrix mips cc rejects this. */
3583 typedef int charset[2];
3584 const charset x;
3585 /* SunOS 4.1.1 cc rejects this. */
3586 char const *const *ccp;
3587 char **p;
3588 /* NEC SVR4.0.2 mips cc rejects this. */
3589 struct point {int x, y;};
3590 static struct point const zero = {0,0};
3591 /* AIX XL C 1.02.0.0 rejects this.
3592 It does not let you subtract one const X* pointer from another in
3593 an arm of an if-expression whose if-part is not a constant
3594 expression */
3595 const char *g = "string";
3596 ccp = &g + (g ? g-g : 0);
3597 /* HPUX 7.0 cc rejects these. */
3598 ++ccp;
3599 p = (char**) ccp;
3600 ccp = (char const *const *) p;
3601 { /* SCO 3.2v4 cc rejects this. */
3602 char *t;
3603 char const *s = 0 ? (char *) 0 : (char const *) 0;
3605 *t++ = 0;
3607 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3608 int x[] = {25, 17};
3609 const int *foo = &x[0];
3610 ++foo;
3612 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3613 typedef const int *iptr;
3614 iptr p = 0;
3615 ++p;
3617 { /* AIX XL C 1.02.0.0 rejects this saying
3618 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3619 struct s { int j; const int *ap[3]; };
3620 struct s *b; b->j = 5;
3622 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3623 const int foo = 10;
3625 #endif
3628 return 0;
3630 _ACEOF
3631 rm -f conftest.$ac_objext
3632 if { (eval echo "$as_me:3632: \"$ac_compile\"") >&5
3633 (eval $ac_compile) 2>&5
3634 ac_status=$?
3635 echo "$as_me:3635: \$? = $ac_status" >&5
3636 (exit $ac_status); } &&
3637 { ac_try='test -s conftest.$ac_objext'
3638 { (eval echo "$as_me:3638: \"$ac_try\"") >&5
3639 (eval $ac_try) 2>&5
3640 ac_status=$?
3641 echo "$as_me:3641: \$? = $ac_status" >&5
3642 (exit $ac_status); }; }; then
3643 ac_cv_c_const=yes
3644 else
3645 echo "$as_me: failed program was:" >&5
3646 cat conftest.$ac_ext >&5
3647 ac_cv_c_const=no
3649 rm -f conftest.$ac_objext conftest.$ac_ext
3651 echo "$as_me:3651: result: $ac_cv_c_const" >&5
3652 echo "${ECHO_T}$ac_cv_c_const" >&6
3653 if test $ac_cv_c_const = no; then
3655 cat >>confdefs.h <<\EOF
3656 #define const
3661 echo "$as_me:3661: checking for signal global datatype" >&5
3662 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
3663 if test "${cf_cv_sig_atomic_t+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3665 else
3667 for cf_type in \
3668 "volatile sig_atomic_t" \
3669 "sig_atomic_t" \
3670 "int"
3672 cat >conftest.$ac_ext <<_ACEOF
3673 #line 3673 "configure"
3674 #include "confdefs.h"
3676 #include <sys/types.h>
3677 #include <signal.h>
3678 #include <stdio.h>
3680 extern $cf_type x;
3681 $cf_type x;
3682 static void handler(int sig)
3684 x = 5;
3687 main ()
3689 signal(SIGINT, handler);
3690 x = 1
3692 return 0;
3694 _ACEOF
3695 rm -f conftest.$ac_objext
3696 if { (eval echo "$as_me:3696: \"$ac_compile\"") >&5
3697 (eval $ac_compile) 2>&5
3698 ac_status=$?
3699 echo "$as_me:3699: \$? = $ac_status" >&5
3700 (exit $ac_status); } &&
3701 { ac_try='test -s conftest.$ac_objext'
3702 { (eval echo "$as_me:3702: \"$ac_try\"") >&5
3703 (eval $ac_try) 2>&5
3704 ac_status=$?
3705 echo "$as_me:3705: \$? = $ac_status" >&5
3706 (exit $ac_status); }; }; then
3707 cf_cv_sig_atomic_t=$cf_type
3708 else
3709 echo "$as_me: failed program was:" >&5
3710 cat conftest.$ac_ext >&5
3711 cf_cv_sig_atomic_t=no
3713 rm -f conftest.$ac_objext conftest.$ac_ext
3714 test "$cf_cv_sig_atomic_t" != no && break
3715 done
3719 echo "$as_me:3719: result: $cf_cv_sig_atomic_t" >&5
3720 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
3721 test "$cf_cv_sig_atomic_t" != no && cat >>confdefs.h <<EOF
3722 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
3725 echo "$as_me:3725: checking if you want to see long compiling messages" >&5
3726 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
3728 # Check whether --enable-echo or --disable-echo was given.
3729 if test "${enable_echo+set}" = set; then
3730 enableval="$enable_echo"
3731 test "$enableval" != no && enableval=yes
3732 if test "$enableval" != "yes" ; then
3734 ECHO_LT='--silent'
3735 ECHO_LD='@echo linking $@;'
3736 RULE_CC='@echo compiling $<'
3737 SHOW_CC='@echo compiling $@'
3738 ECHO_CC='@'
3740 else
3742 ECHO_LT=''
3743 ECHO_LD=''
3744 RULE_CC=''
3745 SHOW_CC=''
3746 ECHO_CC=''
3749 else
3750 enableval=yes
3752 ECHO_LT=''
3753 ECHO_LD=''
3754 RULE_CC=''
3755 SHOW_CC=''
3756 ECHO_CC=''
3759 echo "$as_me:3759: result: $enableval" >&5
3760 echo "${ECHO_T}$enableval" >&6
3762 GCC_VERSION=none
3763 if test "$GCC" = yes ; then
3764 echo "$as_me:3764: checking version of $CC" >&5
3765 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
3766 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
3767 test -z "$GCC_VERSION" && GCC_VERSION=unknown
3768 echo "$as_me:3768: result: $GCC_VERSION" >&5
3769 echo "${ECHO_T}$GCC_VERSION" >&6
3772 if ( test "$GCC" = yes || test "$GXX" = yes )
3773 then
3774 echo "$as_me:3774: checking if you want to turn on gcc warnings" >&5
3775 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
3777 # Check whether --enable-warnings or --disable-warnings was given.
3778 if test "${enable_warnings+set}" = set; then
3779 enableval="$enable_warnings"
3780 test "$enableval" != yes && enableval=no
3781 if test "$enableval" != "no" ; then
3782 with_warnings=yes
3783 else
3784 with_warnings=no
3786 else
3787 enableval=no
3788 with_warnings=no
3791 echo "$as_me:3791: result: $with_warnings" >&5
3792 echo "${ECHO_T}$with_warnings" >&6
3793 if test "$with_warnings" = "yes"
3794 then
3796 if test "$GCC" = yes
3797 then
3798 cat > conftest.i <<EOF
3799 #ifndef GCC_PRINTF
3800 #define GCC_PRINTF 0
3801 #endif
3802 #ifndef GCC_SCANF
3803 #define GCC_SCANF 0
3804 #endif
3805 #ifndef GCC_NORETURN
3806 #define GCC_NORETURN /* nothing */
3807 #endif
3808 #ifndef GCC_UNUSED
3809 #define GCC_UNUSED /* nothing */
3810 #endif
3812 if test "$GCC" = yes
3813 then
3814 { echo "$as_me:3814: checking for $CC __attribute__ directives..." >&5
3815 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
3816 cat > conftest.$ac_ext <<EOF
3817 #line 3817 "${as_me:-configure}"
3818 #include "confdefs.h"
3819 #include "conftest.h"
3820 #include "conftest.i"
3821 #if GCC_PRINTF
3822 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
3823 #else
3824 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
3825 #endif
3826 #if GCC_SCANF
3827 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
3828 #else
3829 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
3830 #endif
3831 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
3832 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
3833 extern void foo(void) GCC_NORETURN;
3834 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
3836 cf_printf_attribute=no
3837 cf_scanf_attribute=no
3838 for cf_attribute in scanf printf unused noreturn
3841 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3843 cf_directive="__attribute__(($cf_attribute))"
3844 echo "checking for $CC $cf_directive" 1>&5
3846 case $cf_attribute in #(vi
3847 printf) #(vi
3848 cf_printf_attribute=yes
3849 cat >conftest.h <<EOF
3850 #define GCC_$cf_ATTRIBUTE 1
3853 scanf) #(vi
3854 cf_scanf_attribute=yes
3855 cat >conftest.h <<EOF
3856 #define GCC_$cf_ATTRIBUTE 1
3859 *) #(vi
3860 cat >conftest.h <<EOF
3861 #define GCC_$cf_ATTRIBUTE $cf_directive
3864 esac
3866 if { (eval echo "$as_me:3866: \"$ac_compile\"") >&5
3867 (eval $ac_compile) 2>&5
3868 ac_status=$?
3869 echo "$as_me:3869: \$? = $ac_status" >&5
3870 (exit $ac_status); }; then
3871 test -n "$verbose" && echo "$as_me:3871: result: ... $cf_attribute" >&5
3872 echo "${ECHO_T}... $cf_attribute" >&6
3873 cat conftest.h >>confdefs.h
3874 case $cf_attribute in #(vi
3875 printf) #(vi
3876 if test "$cf_printf_attribute" = no ; then
3877 cat >>confdefs.h <<EOF
3878 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
3880 else
3881 cat >>confdefs.h <<EOF
3882 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
3886 scanf) #(vi
3887 if test "$cf_scanf_attribute" = no ; then
3888 cat >>confdefs.h <<EOF
3889 #define GCC_SCANFLIKE(fmt,var) /* nothing */
3891 else
3892 cat >>confdefs.h <<EOF
3893 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
3897 esac
3899 done
3900 else
3901 fgrep define conftest.i >>confdefs.h
3903 rm -rf conftest*
3906 INTEL_COMPILER=no
3908 if test "$GCC" = yes ; then
3909 case $host_os in
3910 linux*|gnu*)
3911 echo "$as_me:3911: checking if this is really Intel C compiler" >&5
3912 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
3913 cf_save_CFLAGS="$CFLAGS"
3914 CFLAGS="$CFLAGS -no-gcc"
3915 cat >conftest.$ac_ext <<_ACEOF
3916 #line 3916 "configure"
3917 #include "confdefs.h"
3920 main ()
3923 #ifdef __INTEL_COMPILER
3924 #else
3925 make an error
3926 #endif
3929 return 0;
3931 _ACEOF
3932 rm -f conftest.$ac_objext
3933 if { (eval echo "$as_me:3933: \"$ac_compile\"") >&5
3934 (eval $ac_compile) 2>&5
3935 ac_status=$?
3936 echo "$as_me:3936: \$? = $ac_status" >&5
3937 (exit $ac_status); } &&
3938 { ac_try='test -s conftest.$ac_objext'
3939 { (eval echo "$as_me:3939: \"$ac_try\"") >&5
3940 (eval $ac_try) 2>&5
3941 ac_status=$?
3942 echo "$as_me:3942: \$? = $ac_status" >&5
3943 (exit $ac_status); }; }; then
3944 INTEL_COMPILER=yes
3945 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
3947 else
3948 echo "$as_me: failed program was:" >&5
3949 cat conftest.$ac_ext >&5
3951 rm -f conftest.$ac_objext conftest.$ac_ext
3952 CFLAGS="$cf_save_CFLAGS"
3953 echo "$as_me:3953: result: $INTEL_COMPILER" >&5
3954 echo "${ECHO_T}$INTEL_COMPILER" >&6
3956 esac
3959 cat > conftest.$ac_ext <<EOF
3960 #line 3960 "${as_me:-configure}"
3961 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
3964 if test "$INTEL_COMPILER" = yes
3965 then
3966 # The "-wdXXX" options suppress warnings:
3967 # remark #1419: external declaration in primary source file
3968 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
3969 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
3970 # remark #193: zero used for undefined preprocessing identifier
3971 # remark #593: variable "curs_sb_left_arrow" was set but never used
3972 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
3973 # remark #869: parameter "tw" was never referenced
3974 # remark #981: operands are evaluated in unspecified order
3975 # warning #279: controlling expression is constant
3977 { echo "$as_me:3977: checking for $CC warning options..." >&5
3978 echo "$as_me: checking for $CC warning options..." >&6;}
3979 cf_save_CFLAGS="$CFLAGS"
3980 EXTRA_CFLAGS="-Wall"
3981 for cf_opt in \
3982 wd1419 \
3983 wd1683 \
3984 wd1684 \
3985 wd193 \
3986 wd593 \
3987 wd279 \
3988 wd810 \
3989 wd869 \
3990 wd981
3992 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
3993 if { (eval echo "$as_me:3993: \"$ac_compile\"") >&5
3994 (eval $ac_compile) 2>&5
3995 ac_status=$?
3996 echo "$as_me:3996: \$? = $ac_status" >&5
3997 (exit $ac_status); }; then
3998 test -n "$verbose" && echo "$as_me:3998: result: ... -$cf_opt" >&5
3999 echo "${ECHO_T}... -$cf_opt" >&6
4000 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
4002 done
4003 CFLAGS="$cf_save_CFLAGS"
4005 elif test "$GCC" = yes
4006 then
4007 { echo "$as_me:4007: checking for $CC warning options..." >&5
4008 echo "$as_me: checking for $CC warning options..." >&6;}
4009 cf_save_CFLAGS="$CFLAGS"
4010 EXTRA_CFLAGS=
4011 cf_warn_CONST=""
4012 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
4013 for cf_opt in W Wall \
4014 Wbad-function-cast \
4015 Wcast-align \
4016 Wcast-qual \
4017 Winline \
4018 Wmissing-declarations \
4019 Wmissing-prototypes \
4020 Wnested-externs \
4021 Wpointer-arith \
4022 Wshadow \
4023 Wstrict-prototypes \
4024 Wundef $cf_warn_CONST
4026 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
4027 if { (eval echo "$as_me:4027: \"$ac_compile\"") >&5
4028 (eval $ac_compile) 2>&5
4029 ac_status=$?
4030 echo "$as_me:4030: \$? = $ac_status" >&5
4031 (exit $ac_status); }; then
4032 test -n "$verbose" && echo "$as_me:4032: result: ... -$cf_opt" >&5
4033 echo "${ECHO_T}... -$cf_opt" >&6
4034 case $cf_opt in #(vi
4035 Wcast-qual) #(vi
4036 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
4038 Winline) #(vi
4039 case $GCC_VERSION in
4040 [34].*)
4041 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
4043 echo "${as_me:-configure}:4043: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
4045 continue;;
4046 esac
4048 esac
4049 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
4051 done
4052 CFLAGS="$cf_save_CFLAGS"
4054 rm -rf conftest*
4059 echo "$as_me:4059: checking if you want to use dmalloc for testing" >&5
4060 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
4062 # Check whether --with-dmalloc or --without-dmalloc was given.
4063 if test "${with_dmalloc+set}" = set; then
4064 withval="$with_dmalloc"
4065 cat >>confdefs.h <<\EOF
4066 #define USE_DMALLOC 1
4069 : ${with_cflags:=-g}
4070 : ${with_no_leaks:=yes}
4071 with_dmalloc=yes
4072 else
4073 with_dmalloc=
4075 echo "$as_me:4075: result: ${with_dmalloc:-no}" >&5
4076 echo "${ECHO_T}${with_dmalloc:-no}" >&6
4078 case .$with_cflags in #(vi
4079 .*-g*)
4080 case .$CFLAGS in #(vi
4081 .*-g*) #(vi
4085 cf_fix_cppflags=no
4086 cf_new_cflags=
4087 cf_new_cppflags=
4088 cf_new_extra_cppflags=
4090 for cf_add_cflags in -g
4092 case $cf_fix_cppflags in
4094 case $cf_add_cflags in #(vi
4095 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4096 case $cf_add_cflags in
4097 -D*)
4098 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4100 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4101 && test -z "${cf_tst_cflags}" \
4102 && cf_fix_cppflags=yes
4104 if test $cf_fix_cppflags = yes ; then
4105 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4106 continue
4107 elif test "${cf_tst_cflags}" = "\"'" ; then
4108 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4109 continue
4112 esac
4113 case "$CPPFLAGS" in
4114 *$cf_add_cflags) #(vi
4116 *) #(vi
4117 case $cf_add_cflags in #(vi
4118 -D*)
4119 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4121 CPPFLAGS=`echo "$CPPFLAGS" | \
4122 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4123 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4126 esac
4127 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4129 esac
4132 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4134 esac
4136 yes)
4137 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4139 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4141 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4142 && test -z "${cf_tst_cflags}" \
4143 && cf_fix_cppflags=no
4145 esac
4146 done
4148 if test -n "$cf_new_cflags" ; then
4150 CFLAGS="$CFLAGS $cf_new_cflags"
4153 if test -n "$cf_new_cppflags" ; then
4155 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4158 if test -n "$cf_new_extra_cppflags" ; then
4160 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4164 esac
4166 esac
4168 if test "$with_dmalloc" = yes ; then
4169 echo "$as_me:4169: checking for dmalloc.h" >&5
4170 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
4171 if test "${ac_cv_header_dmalloc_h+set}" = set; then
4172 echo $ECHO_N "(cached) $ECHO_C" >&6
4173 else
4174 cat >conftest.$ac_ext <<_ACEOF
4175 #line 4175 "configure"
4176 #include "confdefs.h"
4177 #include <dmalloc.h>
4178 _ACEOF
4179 if { (eval echo "$as_me:4179: \"$ac_cpp conftest.$ac_ext\"") >&5
4180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4181 ac_status=$?
4182 egrep -v '^ *\+' conftest.er1 >conftest.err
4183 rm -f conftest.er1
4184 cat conftest.err >&5
4185 echo "$as_me:4185: \$? = $ac_status" >&5
4186 (exit $ac_status); } >/dev/null; then
4187 if test -s conftest.err; then
4188 ac_cpp_err=$ac_c_preproc_warn_flag
4189 else
4190 ac_cpp_err=
4192 else
4193 ac_cpp_err=yes
4195 if test -z "$ac_cpp_err"; then
4196 ac_cv_header_dmalloc_h=yes
4197 else
4198 echo "$as_me: failed program was:" >&5
4199 cat conftest.$ac_ext >&5
4200 ac_cv_header_dmalloc_h=no
4202 rm -f conftest.err conftest.$ac_ext
4204 echo "$as_me:4204: result: $ac_cv_header_dmalloc_h" >&5
4205 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
4206 if test $ac_cv_header_dmalloc_h = yes; then
4208 echo "$as_me:4208: checking for dmalloc_debug in -ldmalloc" >&5
4209 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
4210 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
4211 echo $ECHO_N "(cached) $ECHO_C" >&6
4212 else
4213 ac_check_lib_save_LIBS=$LIBS
4214 LIBS="-ldmalloc $LIBS"
4215 cat >conftest.$ac_ext <<_ACEOF
4216 #line 4216 "configure"
4217 #include "confdefs.h"
4219 /* Override any gcc2 internal prototype to avoid an error. */
4220 #ifdef __cplusplus
4221 extern "C"
4222 #endif
4223 /* We use char because int might match the return type of a gcc2
4224 builtin and then its argument prototype would still apply. */
4225 char dmalloc_debug ();
4227 main ()
4229 dmalloc_debug ();
4231 return 0;
4233 _ACEOF
4234 rm -f conftest.$ac_objext conftest$ac_exeext
4235 if { (eval echo "$as_me:4235: \"$ac_link\"") >&5
4236 (eval $ac_link) 2>&5
4237 ac_status=$?
4238 echo "$as_me:4238: \$? = $ac_status" >&5
4239 (exit $ac_status); } &&
4240 { ac_try='test -s conftest$ac_exeext'
4241 { (eval echo "$as_me:4241: \"$ac_try\"") >&5
4242 (eval $ac_try) 2>&5
4243 ac_status=$?
4244 echo "$as_me:4244: \$? = $ac_status" >&5
4245 (exit $ac_status); }; }; then
4246 ac_cv_lib_dmalloc_dmalloc_debug=yes
4247 else
4248 echo "$as_me: failed program was:" >&5
4249 cat conftest.$ac_ext >&5
4250 ac_cv_lib_dmalloc_dmalloc_debug=no
4252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4253 LIBS=$ac_check_lib_save_LIBS
4255 echo "$as_me:4255: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
4256 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
4257 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
4258 cat >>confdefs.h <<EOF
4259 #define HAVE_LIBDMALLOC 1
4262 LIBS="-ldmalloc $LIBS"
4270 echo "$as_me:4270: checking if you want to use dbmalloc for testing" >&5
4271 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
4273 # Check whether --with-dbmalloc or --without-dbmalloc was given.
4274 if test "${with_dbmalloc+set}" = set; then
4275 withval="$with_dbmalloc"
4276 cat >>confdefs.h <<\EOF
4277 #define USE_DBMALLOC 1
4280 : ${with_cflags:=-g}
4281 : ${with_no_leaks:=yes}
4282 with_dbmalloc=yes
4283 else
4284 with_dbmalloc=
4286 echo "$as_me:4286: result: ${with_dbmalloc:-no}" >&5
4287 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
4289 case .$with_cflags in #(vi
4290 .*-g*)
4291 case .$CFLAGS in #(vi
4292 .*-g*) #(vi
4296 cf_fix_cppflags=no
4297 cf_new_cflags=
4298 cf_new_cppflags=
4299 cf_new_extra_cppflags=
4301 for cf_add_cflags in -g
4303 case $cf_fix_cppflags in
4305 case $cf_add_cflags in #(vi
4306 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4307 case $cf_add_cflags in
4308 -D*)
4309 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4311 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4312 && test -z "${cf_tst_cflags}" \
4313 && cf_fix_cppflags=yes
4315 if test $cf_fix_cppflags = yes ; then
4316 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4317 continue
4318 elif test "${cf_tst_cflags}" = "\"'" ; then
4319 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4320 continue
4323 esac
4324 case "$CPPFLAGS" in
4325 *$cf_add_cflags) #(vi
4327 *) #(vi
4328 case $cf_add_cflags in #(vi
4329 -D*)
4330 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4332 CPPFLAGS=`echo "$CPPFLAGS" | \
4333 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4334 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4337 esac
4338 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4340 esac
4343 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4345 esac
4347 yes)
4348 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4350 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4352 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4353 && test -z "${cf_tst_cflags}" \
4354 && cf_fix_cppflags=no
4356 esac
4357 done
4359 if test -n "$cf_new_cflags" ; then
4361 CFLAGS="$CFLAGS $cf_new_cflags"
4364 if test -n "$cf_new_cppflags" ; then
4366 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4369 if test -n "$cf_new_extra_cppflags" ; then
4371 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4375 esac
4377 esac
4379 if test "$with_dbmalloc" = yes ; then
4380 echo "$as_me:4380: checking for dbmalloc.h" >&5
4381 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
4382 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4384 else
4385 cat >conftest.$ac_ext <<_ACEOF
4386 #line 4386 "configure"
4387 #include "confdefs.h"
4388 #include <dbmalloc.h>
4389 _ACEOF
4390 if { (eval echo "$as_me:4390: \"$ac_cpp conftest.$ac_ext\"") >&5
4391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4392 ac_status=$?
4393 egrep -v '^ *\+' conftest.er1 >conftest.err
4394 rm -f conftest.er1
4395 cat conftest.err >&5
4396 echo "$as_me:4396: \$? = $ac_status" >&5
4397 (exit $ac_status); } >/dev/null; then
4398 if test -s conftest.err; then
4399 ac_cpp_err=$ac_c_preproc_warn_flag
4400 else
4401 ac_cpp_err=
4403 else
4404 ac_cpp_err=yes
4406 if test -z "$ac_cpp_err"; then
4407 ac_cv_header_dbmalloc_h=yes
4408 else
4409 echo "$as_me: failed program was:" >&5
4410 cat conftest.$ac_ext >&5
4411 ac_cv_header_dbmalloc_h=no
4413 rm -f conftest.err conftest.$ac_ext
4415 echo "$as_me:4415: result: $ac_cv_header_dbmalloc_h" >&5
4416 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
4417 if test $ac_cv_header_dbmalloc_h = yes; then
4419 echo "$as_me:4419: checking for debug_malloc in -ldbmalloc" >&5
4420 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
4421 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4423 else
4424 ac_check_lib_save_LIBS=$LIBS
4425 LIBS="-ldbmalloc $LIBS"
4426 cat >conftest.$ac_ext <<_ACEOF
4427 #line 4427 "configure"
4428 #include "confdefs.h"
4430 /* Override any gcc2 internal prototype to avoid an error. */
4431 #ifdef __cplusplus
4432 extern "C"
4433 #endif
4434 /* We use char because int might match the return type of a gcc2
4435 builtin and then its argument prototype would still apply. */
4436 char debug_malloc ();
4438 main ()
4440 debug_malloc ();
4442 return 0;
4444 _ACEOF
4445 rm -f conftest.$ac_objext conftest$ac_exeext
4446 if { (eval echo "$as_me:4446: \"$ac_link\"") >&5
4447 (eval $ac_link) 2>&5
4448 ac_status=$?
4449 echo "$as_me:4449: \$? = $ac_status" >&5
4450 (exit $ac_status); } &&
4451 { ac_try='test -s conftest$ac_exeext'
4452 { (eval echo "$as_me:4452: \"$ac_try\"") >&5
4453 (eval $ac_try) 2>&5
4454 ac_status=$?
4455 echo "$as_me:4455: \$? = $ac_status" >&5
4456 (exit $ac_status); }; }; then
4457 ac_cv_lib_dbmalloc_debug_malloc=yes
4458 else
4459 echo "$as_me: failed program was:" >&5
4460 cat conftest.$ac_ext >&5
4461 ac_cv_lib_dbmalloc_debug_malloc=no
4463 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4464 LIBS=$ac_check_lib_save_LIBS
4466 echo "$as_me:4466: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
4467 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
4468 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
4469 cat >>confdefs.h <<EOF
4470 #define HAVE_LIBDBMALLOC 1
4473 LIBS="-ldbmalloc $LIBS"
4481 echo "$as_me:4481: checking if you want to use valgrind for testing" >&5
4482 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
4484 # Check whether --with-valgrind or --without-valgrind was given.
4485 if test "${with_valgrind+set}" = set; then
4486 withval="$with_valgrind"
4487 cat >>confdefs.h <<\EOF
4488 #define USE_VALGRIND 1
4491 : ${with_cflags:=-g}
4492 : ${with_no_leaks:=yes}
4493 with_valgrind=yes
4494 else
4495 with_valgrind=
4497 echo "$as_me:4497: result: ${with_valgrind:-no}" >&5
4498 echo "${ECHO_T}${with_valgrind:-no}" >&6
4500 case .$with_cflags in #(vi
4501 .*-g*)
4502 case .$CFLAGS in #(vi
4503 .*-g*) #(vi
4507 cf_fix_cppflags=no
4508 cf_new_cflags=
4509 cf_new_cppflags=
4510 cf_new_extra_cppflags=
4512 for cf_add_cflags in -g
4514 case $cf_fix_cppflags in
4516 case $cf_add_cflags in #(vi
4517 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4518 case $cf_add_cflags in
4519 -D*)
4520 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4522 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4523 && test -z "${cf_tst_cflags}" \
4524 && cf_fix_cppflags=yes
4526 if test $cf_fix_cppflags = yes ; then
4527 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4528 continue
4529 elif test "${cf_tst_cflags}" = "\"'" ; then
4530 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4531 continue
4534 esac
4535 case "$CPPFLAGS" in
4536 *$cf_add_cflags) #(vi
4538 *) #(vi
4539 case $cf_add_cflags in #(vi
4540 -D*)
4541 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4543 CPPFLAGS=`echo "$CPPFLAGS" | \
4544 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4545 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4548 esac
4549 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4551 esac
4554 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4556 esac
4558 yes)
4559 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4561 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4563 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4564 && test -z "${cf_tst_cflags}" \
4565 && cf_fix_cppflags=no
4567 esac
4568 done
4570 if test -n "$cf_new_cflags" ; then
4572 CFLAGS="$CFLAGS $cf_new_cflags"
4575 if test -n "$cf_new_cppflags" ; then
4577 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4580 if test -n "$cf_new_extra_cppflags" ; then
4582 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4586 esac
4588 esac
4590 echo "$as_me:4590: checking if you want to perform memory-leak testing" >&5
4591 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
4593 # Check whether --enable-leaks or --disable-leaks was given.
4594 if test "${enable_leaks+set}" = set; then
4595 enableval="$enable_leaks"
4596 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
4597 else
4598 : ${with_no_leaks:=no}
4600 echo "$as_me:4600: result: $with_no_leaks" >&5
4601 echo "${ECHO_T}$with_no_leaks" >&6
4603 if test "$with_no_leaks" = yes ; then
4604 cat >>confdefs.h <<\EOF
4605 #define NO_LEAKS 1
4608 cat >>confdefs.h <<\EOF
4609 #define YY_NO_LEAKS 1
4614 echo "$as_me:4614: checking for specific curses-directory" >&5
4615 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
4617 # Check whether --with-curses-dir or --without-curses-dir was given.
4618 if test "${with_curses_dir+set}" = set; then
4619 withval="$with_curses_dir"
4620 cf_cv_curses_dir=$withval
4621 else
4622 cf_cv_curses_dir=no
4624 echo "$as_me:4624: result: $cf_cv_curses_dir" >&5
4625 echo "${ECHO_T}$cf_cv_curses_dir" >&6
4627 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
4628 then
4630 if test "x$prefix" != xNONE; then
4631 cf_path_syntax="$prefix"
4632 else
4633 cf_path_syntax="$ac_default_prefix"
4636 case ".$withval" in #(vi
4637 .\$\(*\)*|.\'*\'*) #(vi
4639 ..|./*|.\\*) #(vi
4641 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
4643 .\${*prefix}*) #(vi
4644 eval withval="$withval"
4645 case ".$withval" in #(vi
4646 .NONE/*)
4647 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4649 esac
4650 ;; #(vi
4651 .no|.NONE/*)
4652 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4655 { { echo "$as_me:4655: error: expected a pathname, not \"$withval\"" >&5
4656 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
4657 { (exit 1); exit 1; }; }
4659 esac
4661 if test -d "$cf_cv_curses_dir"
4662 then
4664 if test -n "$cf_cv_curses_dir/include" ; then
4665 for cf_add_incdir in $cf_cv_curses_dir/include
4667 while test $cf_add_incdir != /usr/include
4669 if test -d $cf_add_incdir
4670 then
4671 cf_have_incdir=no
4672 if test -n "$CFLAGS$CPPFLAGS" ; then
4673 # a loop is needed to ensure we can add subdirs of existing dirs
4674 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4675 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4676 cf_have_incdir=yes; break
4678 done
4681 if test "$cf_have_incdir" = no ; then
4682 if test "$cf_add_incdir" = /usr/local/include ; then
4683 if test "$GCC" = yes
4684 then
4685 cf_save_CPPFLAGS=$CPPFLAGS
4686 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4687 cat >conftest.$ac_ext <<_ACEOF
4688 #line 4688 "configure"
4689 #include "confdefs.h"
4690 #include <stdio.h>
4692 main ()
4694 printf("Hello")
4696 return 0;
4698 _ACEOF
4699 rm -f conftest.$ac_objext
4700 if { (eval echo "$as_me:4700: \"$ac_compile\"") >&5
4701 (eval $ac_compile) 2>&5
4702 ac_status=$?
4703 echo "$as_me:4703: \$? = $ac_status" >&5
4704 (exit $ac_status); } &&
4705 { ac_try='test -s conftest.$ac_objext'
4706 { (eval echo "$as_me:4706: \"$ac_try\"") >&5
4707 (eval $ac_try) 2>&5
4708 ac_status=$?
4709 echo "$as_me:4709: \$? = $ac_status" >&5
4710 (exit $ac_status); }; }; then
4712 else
4713 echo "$as_me: failed program was:" >&5
4714 cat conftest.$ac_ext >&5
4715 cf_have_incdir=yes
4717 rm -f conftest.$ac_objext conftest.$ac_ext
4718 CPPFLAGS=$cf_save_CPPFLAGS
4723 if test "$cf_have_incdir" = no ; then
4724 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4726 echo "${as_me:-configure}:4726: testing adding $cf_add_incdir to include-path ..." 1>&5
4728 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4730 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4731 test "$cf_top_incdir" = "$cf_add_incdir" && break
4732 cf_add_incdir="$cf_top_incdir"
4733 else
4734 break
4737 done
4738 done
4741 if test -n "$cf_cv_curses_dir/lib" ; then
4742 for cf_add_libdir in $cf_cv_curses_dir/lib
4744 if test $cf_add_libdir = /usr/lib ; then
4746 elif test -d $cf_add_libdir
4747 then
4748 cf_have_libdir=no
4749 if test -n "$LDFLAGS$LIBS" ; then
4750 # a loop is needed to ensure we can add subdirs of existing dirs
4751 for cf_test_libdir in $LDFLAGS $LIBS ; do
4752 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
4753 cf_have_libdir=yes; break
4755 done
4757 if test "$cf_have_libdir" = no ; then
4758 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
4760 echo "${as_me:-configure}:4760: testing adding $cf_add_libdir to library-path ..." 1>&5
4762 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
4765 done
4771 # Check whether --with-5lib or --without-5lib was given.
4772 if test "${with_5lib+set}" = set; then
4773 withval="$with_5lib"
4774 LIBS="-L/usr/5lib $LIBS"
4775 CPPFLAGS="$CPPFLAGS -I/usr/5include"
4778 # Check whether --with-ncursesw or --without-ncursesw was given.
4779 if test "${with_ncursesw+set}" = set; then
4780 withval="$with_ncursesw"
4781 cf_cv_screen=ncursesw
4782 else
4784 # Check whether --with-ncurses or --without-ncurses was given.
4785 if test "${with_ncurses+set}" = set; then
4786 withval="$with_ncurses"
4787 cf_cv_screen=ncurses
4788 else
4790 # Check whether --with-pdcurses or --without-pdcurses was given.
4791 if test "${with_pdcurses+set}" = set; then
4792 withval="$with_pdcurses"
4793 cf_cv_screen=pdcurses
4798 case $cf_cv_screen in
4799 curses)
4801 echo "$as_me:4801: checking for extra include directories" >&5
4802 echo $ECHO_N "checking for extra include directories... $ECHO_C" >&6
4803 if test "${cf_cv_curses_incdir+set}" = set; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
4805 else
4807 cf_cv_curses_incdir=no
4808 case $host_os in #(vi
4809 hpux10.*) #(vi
4810 test -d /usr/include/curses_colr && \
4811 cf_cv_curses_incdir="-I/usr/include/curses_colr"
4813 sunos3*|sunos4*)
4814 test -d /usr/5lib && \
4815 test -d /usr/5include && \
4816 cf_cv_curses_incdir="-I/usr/5include"
4818 esac
4821 echo "$as_me:4821: result: $cf_cv_curses_incdir" >&5
4822 echo "${ECHO_T}$cf_cv_curses_incdir" >&6
4823 test "$cf_cv_curses_incdir" != no && CPPFLAGS="$CPPFLAGS $cf_cv_curses_incdir"
4825 echo "$as_me:4825: checking if we have identified curses headers" >&5
4826 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
4827 if test "${cf_cv_ncurses_header+set}" = set; then
4828 echo $ECHO_N "(cached) $ECHO_C" >&6
4829 else
4831 cf_cv_ncurses_header=none
4832 for cf_header in \
4833 curses.h \
4834 ncurses.h ncurses/curses.h ncurses/ncurses.h
4836 cat >conftest.$ac_ext <<_ACEOF
4837 #line 4837 "configure"
4838 #include "confdefs.h"
4839 #include <${cf_header}>
4841 main ()
4843 initscr(); tgoto("?", 0,0)
4845 return 0;
4847 _ACEOF
4848 rm -f conftest.$ac_objext
4849 if { (eval echo "$as_me:4849: \"$ac_compile\"") >&5
4850 (eval $ac_compile) 2>&5
4851 ac_status=$?
4852 echo "$as_me:4852: \$? = $ac_status" >&5
4853 (exit $ac_status); } &&
4854 { ac_try='test -s conftest.$ac_objext'
4855 { (eval echo "$as_me:4855: \"$ac_try\"") >&5
4856 (eval $ac_try) 2>&5
4857 ac_status=$?
4858 echo "$as_me:4858: \$? = $ac_status" >&5
4859 (exit $ac_status); }; }; then
4860 cf_cv_ncurses_header=$cf_header; break
4861 else
4862 echo "$as_me: failed program was:" >&5
4863 cat conftest.$ac_ext >&5
4865 rm -f conftest.$ac_objext conftest.$ac_ext
4866 done
4869 echo "$as_me:4869: result: $cf_cv_ncurses_header" >&5
4870 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
4872 if test "$cf_cv_ncurses_header" = none ; then
4873 { { echo "$as_me:4873: error: No curses header-files found" >&5
4874 echo "$as_me: error: No curses header-files found" >&2;}
4875 { (exit 1); exit 1; }; }
4878 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
4880 for ac_header in $cf_cv_ncurses_header
4882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4883 echo "$as_me:4883: checking for $ac_header" >&5
4884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4886 echo $ECHO_N "(cached) $ECHO_C" >&6
4887 else
4888 cat >conftest.$ac_ext <<_ACEOF
4889 #line 4889 "configure"
4890 #include "confdefs.h"
4891 #include <$ac_header>
4892 _ACEOF
4893 if { (eval echo "$as_me:4893: \"$ac_cpp conftest.$ac_ext\"") >&5
4894 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4895 ac_status=$?
4896 egrep -v '^ *\+' conftest.er1 >conftest.err
4897 rm -f conftest.er1
4898 cat conftest.err >&5
4899 echo "$as_me:4899: \$? = $ac_status" >&5
4900 (exit $ac_status); } >/dev/null; then
4901 if test -s conftest.err; then
4902 ac_cpp_err=$ac_c_preproc_warn_flag
4903 else
4904 ac_cpp_err=
4906 else
4907 ac_cpp_err=yes
4909 if test -z "$ac_cpp_err"; then
4910 eval "$as_ac_Header=yes"
4911 else
4912 echo "$as_me: failed program was:" >&5
4913 cat conftest.$ac_ext >&5
4914 eval "$as_ac_Header=no"
4916 rm -f conftest.err conftest.$ac_ext
4918 echo "$as_me:4918: result: `eval echo '${'$as_ac_Header'}'`" >&5
4919 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4921 cat >>confdefs.h <<EOF
4922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4926 done
4928 echo "$as_me:4928: checking for terminfo header" >&5
4929 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
4930 if test "${cf_cv_term_header+set}" = set; then
4931 echo $ECHO_N "(cached) $ECHO_C" >&6
4932 else
4934 case ${cf_cv_ncurses_header} in #(vi
4935 */ncurses.h|*/ncursesw.h) #(vi
4936 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
4939 cf_term_header=term.h
4941 esac
4943 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
4945 cat >conftest.$ac_ext <<_ACEOF
4946 #line 4946 "configure"
4947 #include "confdefs.h"
4948 #include <stdio.h>
4949 #include <${cf_cv_ncurses_header:-curses.h}>
4950 #include <$cf_test>
4953 main ()
4955 int x = auto_left_margin
4957 return 0;
4959 _ACEOF
4960 rm -f conftest.$ac_objext
4961 if { (eval echo "$as_me:4961: \"$ac_compile\"") >&5
4962 (eval $ac_compile) 2>&5
4963 ac_status=$?
4964 echo "$as_me:4964: \$? = $ac_status" >&5
4965 (exit $ac_status); } &&
4966 { ac_try='test -s conftest.$ac_objext'
4967 { (eval echo "$as_me:4967: \"$ac_try\"") >&5
4968 (eval $ac_try) 2>&5
4969 ac_status=$?
4970 echo "$as_me:4970: \$? = $ac_status" >&5
4971 (exit $ac_status); }; }; then
4973 cf_cv_term_header="$cf_test"
4974 else
4975 echo "$as_me: failed program was:" >&5
4976 cat conftest.$ac_ext >&5
4978 cf_cv_term_header=unknown
4981 rm -f conftest.$ac_objext conftest.$ac_ext
4982 test "$cf_cv_term_header" != unknown && break
4983 done
4986 echo "$as_me:4986: result: $cf_cv_term_header" >&5
4987 echo "${ECHO_T}$cf_cv_term_header" >&6
4989 # Set definitions to allow ifdef'ing to accommodate subdirectories
4991 case $cf_cv_term_header in # (vi
4992 *term.h)
4993 cat >>confdefs.h <<\EOF
4994 #define HAVE_TERM_H 1
4998 esac
5000 case $cf_cv_term_header in # (vi
5001 ncurses/term.h) #(vi
5002 cat >>confdefs.h <<\EOF
5003 #define HAVE_NCURSES_TERM_H 1
5007 ncursesw/term.h)
5008 cat >>confdefs.h <<\EOF
5009 #define HAVE_NCURSESW_TERM_H 1
5013 esac
5015 echo "$as_me:5015: checking for ncurses version" >&5
5016 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
5017 if test "${cf_cv_ncurses_version+set}" = set; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
5019 else
5021 cf_cv_ncurses_version=no
5022 cf_tempfile=out$$
5023 rm -f $cf_tempfile
5024 if test "$cross_compiling" = yes; then
5026 # This will not work if the preprocessor splits the line after the
5027 # Autoconf token. The 'unproto' program does that.
5028 cat > conftest.$ac_ext <<EOF
5029 #include <${cf_cv_ncurses_header:-curses.h}>
5030 #undef Autoconf
5031 #ifdef NCURSES_VERSION
5032 Autoconf NCURSES_VERSION
5033 #else
5034 #ifdef __NCURSES_H
5035 Autoconf "old"
5036 #endif
5038 #endif
5040 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
5041 { (eval echo "$as_me:5041: \"$cf_try\"") >&5
5042 (eval $cf_try) 2>&5
5043 ac_status=$?
5044 echo "$as_me:5044: \$? = $ac_status" >&5
5045 (exit $ac_status); }
5046 if test -f conftest.out ; then
5047 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
5048 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
5049 rm -f conftest.out
5052 else
5053 cat >conftest.$ac_ext <<_ACEOF
5054 #line 5054 "configure"
5055 #include "confdefs.h"
5057 #include <${cf_cv_ncurses_header:-curses.h}>
5058 #include <stdio.h>
5059 int main()
5061 FILE *fp = fopen("$cf_tempfile", "w");
5062 #ifdef NCURSES_VERSION
5063 # ifdef NCURSES_VERSION_PATCH
5064 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
5065 # else
5066 fprintf(fp, "%s\n", NCURSES_VERSION);
5067 # endif
5068 #else
5069 # ifdef __NCURSES_H
5070 fprintf(fp, "old\n");
5071 # else
5072 make an error
5073 # endif
5074 #endif
5075 ${cf_cv_main_return:-return}(0);
5077 _ACEOF
5078 rm -f conftest$ac_exeext
5079 if { (eval echo "$as_me:5079: \"$ac_link\"") >&5
5080 (eval $ac_link) 2>&5
5081 ac_status=$?
5082 echo "$as_me:5082: \$? = $ac_status" >&5
5083 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5084 { (eval echo "$as_me:5084: \"$ac_try\"") >&5
5085 (eval $ac_try) 2>&5
5086 ac_status=$?
5087 echo "$as_me:5087: \$? = $ac_status" >&5
5088 (exit $ac_status); }; }; then
5090 cf_cv_ncurses_version=`cat $cf_tempfile`
5091 else
5092 echo "$as_me: program exited with status $ac_status" >&5
5093 echo "$as_me: failed program was:" >&5
5094 cat conftest.$ac_ext >&5
5096 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5098 rm -f $cf_tempfile
5101 echo "$as_me:5101: result: $cf_cv_ncurses_version" >&5
5102 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
5103 test "$cf_cv_ncurses_version" = no || cat >>confdefs.h <<\EOF
5104 #define NCURSES 1
5107 echo "$as_me:5107: checking if we have identified curses libraries" >&5
5108 echo $ECHO_N "checking if we have identified curses libraries... $ECHO_C" >&6
5109 cat >conftest.$ac_ext <<_ACEOF
5110 #line 5110 "configure"
5111 #include "confdefs.h"
5112 #include <${cf_cv_ncurses_header:-curses.h}>
5114 main ()
5116 initscr(); tgoto("?", 0,0)
5118 return 0;
5120 _ACEOF
5121 rm -f conftest.$ac_objext conftest$ac_exeext
5122 if { (eval echo "$as_me:5122: \"$ac_link\"") >&5
5123 (eval $ac_link) 2>&5
5124 ac_status=$?
5125 echo "$as_me:5125: \$? = $ac_status" >&5
5126 (exit $ac_status); } &&
5127 { ac_try='test -s conftest$ac_exeext'
5128 { (eval echo "$as_me:5128: \"$ac_try\"") >&5
5129 (eval $ac_try) 2>&5
5130 ac_status=$?
5131 echo "$as_me:5131: \$? = $ac_status" >&5
5132 (exit $ac_status); }; }; then
5133 cf_result=yes
5134 else
5135 echo "$as_me: failed program was:" >&5
5136 cat conftest.$ac_ext >&5
5137 cf_result=no
5139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5140 echo "$as_me:5140: result: $cf_result" >&5
5141 echo "${ECHO_T}$cf_result" >&6
5143 if test "$cf_result" = no ; then
5144 case $host_os in #(vi
5145 freebsd*) #(vi
5146 echo "$as_me:5146: checking for tgoto in -lmytinfo" >&5
5147 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
5148 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
5149 echo $ECHO_N "(cached) $ECHO_C" >&6
5150 else
5151 ac_check_lib_save_LIBS=$LIBS
5152 LIBS="-lmytinfo $LIBS"
5153 cat >conftest.$ac_ext <<_ACEOF
5154 #line 5154 "configure"
5155 #include "confdefs.h"
5157 /* Override any gcc2 internal prototype to avoid an error. */
5158 #ifdef __cplusplus
5159 extern "C"
5160 #endif
5161 /* We use char because int might match the return type of a gcc2
5162 builtin and then its argument prototype would still apply. */
5163 char tgoto ();
5165 main ()
5167 tgoto ();
5169 return 0;
5171 _ACEOF
5172 rm -f conftest.$ac_objext conftest$ac_exeext
5173 if { (eval echo "$as_me:5173: \"$ac_link\"") >&5
5174 (eval $ac_link) 2>&5
5175 ac_status=$?
5176 echo "$as_me:5176: \$? = $ac_status" >&5
5177 (exit $ac_status); } &&
5178 { ac_try='test -s conftest$ac_exeext'
5179 { (eval echo "$as_me:5179: \"$ac_try\"") >&5
5180 (eval $ac_try) 2>&5
5181 ac_status=$?
5182 echo "$as_me:5182: \$? = $ac_status" >&5
5183 (exit $ac_status); }; }; then
5184 ac_cv_lib_mytinfo_tgoto=yes
5185 else
5186 echo "$as_me: failed program was:" >&5
5187 cat conftest.$ac_ext >&5
5188 ac_cv_lib_mytinfo_tgoto=no
5190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5191 LIBS=$ac_check_lib_save_LIBS
5193 echo "$as_me:5193: result: $ac_cv_lib_mytinfo_tgoto" >&5
5194 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
5195 if test $ac_cv_lib_mytinfo_tgoto = yes; then
5196 LIBS="-lmytinfo $LIBS"
5200 hpux10.*) #(vi
5201 echo "$as_me:5201: checking for initscr in -lcur_colr" >&5
5202 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
5203 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5205 else
5206 ac_check_lib_save_LIBS=$LIBS
5207 LIBS="-lcur_colr $LIBS"
5208 cat >conftest.$ac_ext <<_ACEOF
5209 #line 5209 "configure"
5210 #include "confdefs.h"
5212 /* Override any gcc2 internal prototype to avoid an error. */
5213 #ifdef __cplusplus
5214 extern "C"
5215 #endif
5216 /* We use char because int might match the return type of a gcc2
5217 builtin and then its argument prototype would still apply. */
5218 char initscr ();
5220 main ()
5222 initscr ();
5224 return 0;
5226 _ACEOF
5227 rm -f conftest.$ac_objext conftest$ac_exeext
5228 if { (eval echo "$as_me:5228: \"$ac_link\"") >&5
5229 (eval $ac_link) 2>&5
5230 ac_status=$?
5231 echo "$as_me:5231: \$? = $ac_status" >&5
5232 (exit $ac_status); } &&
5233 { ac_try='test -s conftest$ac_exeext'
5234 { (eval echo "$as_me:5234: \"$ac_try\"") >&5
5235 (eval $ac_try) 2>&5
5236 ac_status=$?
5237 echo "$as_me:5237: \$? = $ac_status" >&5
5238 (exit $ac_status); }; }; then
5239 ac_cv_lib_cur_colr_initscr=yes
5240 else
5241 echo "$as_me: failed program was:" >&5
5242 cat conftest.$ac_ext >&5
5243 ac_cv_lib_cur_colr_initscr=no
5245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5246 LIBS=$ac_check_lib_save_LIBS
5248 echo "$as_me:5248: result: $ac_cv_lib_cur_colr_initscr" >&5
5249 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
5250 if test $ac_cv_lib_cur_colr_initscr = yes; then
5252 LIBS="-lcur_colr $LIBS"
5253 ac_cv_func_initscr=yes
5255 else
5257 echo "$as_me:5257: checking for initscr in -lHcurses" >&5
5258 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
5259 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5261 else
5262 ac_check_lib_save_LIBS=$LIBS
5263 LIBS="-lHcurses $LIBS"
5264 cat >conftest.$ac_ext <<_ACEOF
5265 #line 5265 "configure"
5266 #include "confdefs.h"
5268 /* Override any gcc2 internal prototype to avoid an error. */
5269 #ifdef __cplusplus
5270 extern "C"
5271 #endif
5272 /* We use char because int might match the return type of a gcc2
5273 builtin and then its argument prototype would still apply. */
5274 char initscr ();
5276 main ()
5278 initscr ();
5280 return 0;
5282 _ACEOF
5283 rm -f conftest.$ac_objext conftest$ac_exeext
5284 if { (eval echo "$as_me:5284: \"$ac_link\"") >&5
5285 (eval $ac_link) 2>&5
5286 ac_status=$?
5287 echo "$as_me:5287: \$? = $ac_status" >&5
5288 (exit $ac_status); } &&
5289 { ac_try='test -s conftest$ac_exeext'
5290 { (eval echo "$as_me:5290: \"$ac_try\"") >&5
5291 (eval $ac_try) 2>&5
5292 ac_status=$?
5293 echo "$as_me:5293: \$? = $ac_status" >&5
5294 (exit $ac_status); }; }; then
5295 ac_cv_lib_Hcurses_initscr=yes
5296 else
5297 echo "$as_me: failed program was:" >&5
5298 cat conftest.$ac_ext >&5
5299 ac_cv_lib_Hcurses_initscr=no
5301 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5302 LIBS=$ac_check_lib_save_LIBS
5304 echo "$as_me:5304: result: $ac_cv_lib_Hcurses_initscr" >&5
5305 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
5306 if test $ac_cv_lib_Hcurses_initscr = yes; then
5308 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
5309 LIBS="-lHcurses $LIBS"
5310 CPPFLAGS="$CPPFLAGS -D__HP_CURSES -D_HP_CURSES"
5311 ac_cv_func_initscr=yes
5318 linux*)
5319 case `arch 2>/dev/null` in
5320 x86_64)
5321 if test -d /lib64
5322 then
5324 if test -n "/lib64" ; then
5325 for cf_add_libdir in /lib64
5327 if test $cf_add_libdir = /usr/lib ; then
5329 elif test -d $cf_add_libdir
5330 then
5331 cf_have_libdir=no
5332 if test -n "$LDFLAGS$LIBS" ; then
5333 # a loop is needed to ensure we can add subdirs of existing dirs
5334 for cf_test_libdir in $LDFLAGS $LIBS ; do
5335 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5336 cf_have_libdir=yes; break
5338 done
5340 if test "$cf_have_libdir" = no ; then
5341 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5343 echo "${as_me:-configure}:5343: testing adding $cf_add_libdir to library-path ..." 1>&5
5345 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5348 done
5351 else
5353 if test -n "/lib" ; then
5354 for cf_add_libdir in /lib
5356 if test $cf_add_libdir = /usr/lib ; then
5358 elif test -d $cf_add_libdir
5359 then
5360 cf_have_libdir=no
5361 if test -n "$LDFLAGS$LIBS" ; then
5362 # a loop is needed to ensure we can add subdirs of existing dirs
5363 for cf_test_libdir in $LDFLAGS $LIBS ; do
5364 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5365 cf_have_libdir=yes; break
5367 done
5369 if test "$cf_have_libdir" = no ; then
5370 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5372 echo "${as_me:-configure}:5372: testing adding $cf_add_libdir to library-path ..." 1>&5
5374 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5377 done
5384 if test -n "/lib" ; then
5385 for cf_add_libdir in /lib
5387 if test $cf_add_libdir = /usr/lib ; then
5389 elif test -d $cf_add_libdir
5390 then
5391 cf_have_libdir=no
5392 if test -n "$LDFLAGS$LIBS" ; then
5393 # a loop is needed to ensure we can add subdirs of existing dirs
5394 for cf_test_libdir in $LDFLAGS $LIBS ; do
5395 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5396 cf_have_libdir=yes; break
5398 done
5400 if test "$cf_have_libdir" = no ; then
5401 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5403 echo "${as_me:-configure}:5403: testing adding $cf_add_libdir to library-path ..." 1>&5
5405 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5408 done
5412 esac
5414 sunos3*|sunos4*)
5415 if test -d /usr/5lib ; then
5417 if test -n "/usr/5lib" ; then
5418 for cf_add_libdir in /usr/5lib
5420 if test $cf_add_libdir = /usr/lib ; then
5422 elif test -d $cf_add_libdir
5423 then
5424 cf_have_libdir=no
5425 if test -n "$LDFLAGS$LIBS" ; then
5426 # a loop is needed to ensure we can add subdirs of existing dirs
5427 for cf_test_libdir in $LDFLAGS $LIBS ; do
5428 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5429 cf_have_libdir=yes; break
5431 done
5433 if test "$cf_have_libdir" = no ; then
5434 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5436 echo "${as_me:-configure}:5436: testing adding $cf_add_libdir to library-path ..." 1>&5
5438 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5441 done
5444 LIBS="-lcurses -ltermcap $LIBS"
5446 ac_cv_func_initscr=yes
5448 esac
5450 if test ".$ac_cv_func_initscr" != .yes ; then
5451 cf_save_LIBS="$LIBS"
5452 cf_term_lib=""
5453 cf_curs_lib=""
5455 if test ".${cf_cv_ncurses_version:-no}" != .no
5456 then
5457 cf_check_list="ncurses curses cursesX"
5458 else
5459 cf_check_list="cursesX curses ncurses"
5462 # Check for library containing tgoto. Do this before curses library
5463 # because it may be needed to link the test-case for initscr.
5464 echo "$as_me:5464: checking for tgoto" >&5
5465 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
5466 if test "${ac_cv_func_tgoto+set}" = set; then
5467 echo $ECHO_N "(cached) $ECHO_C" >&6
5468 else
5469 cat >conftest.$ac_ext <<_ACEOF
5470 #line 5470 "configure"
5471 #include "confdefs.h"
5472 /* System header to define __stub macros and hopefully few prototypes,
5473 which can conflict with char tgoto (); below. */
5474 #include <assert.h>
5475 /* Override any gcc2 internal prototype to avoid an error. */
5476 #ifdef __cplusplus
5477 extern "C"
5478 #endif
5479 /* We use char because int might match the return type of a gcc2
5480 builtin and then its argument prototype would still apply. */
5481 char tgoto ();
5482 char (*f) ();
5485 main ()
5487 /* The GNU C library defines this for functions which it implements
5488 to always fail with ENOSYS. Some functions are actually named
5489 something starting with __ and the normal name is an alias. */
5490 #if defined (__stub_tgoto) || defined (__stub___tgoto)
5491 choke me
5492 #else
5493 f = tgoto;
5494 #endif
5497 return 0;
5499 _ACEOF
5500 rm -f conftest.$ac_objext conftest$ac_exeext
5501 if { (eval echo "$as_me:5501: \"$ac_link\"") >&5
5502 (eval $ac_link) 2>&5
5503 ac_status=$?
5504 echo "$as_me:5504: \$? = $ac_status" >&5
5505 (exit $ac_status); } &&
5506 { ac_try='test -s conftest$ac_exeext'
5507 { (eval echo "$as_me:5507: \"$ac_try\"") >&5
5508 (eval $ac_try) 2>&5
5509 ac_status=$?
5510 echo "$as_me:5510: \$? = $ac_status" >&5
5511 (exit $ac_status); }; }; then
5512 ac_cv_func_tgoto=yes
5513 else
5514 echo "$as_me: failed program was:" >&5
5515 cat conftest.$ac_ext >&5
5516 ac_cv_func_tgoto=no
5518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5520 echo "$as_me:5520: result: $ac_cv_func_tgoto" >&5
5521 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
5522 if test $ac_cv_func_tgoto = yes; then
5523 cf_term_lib=predefined
5524 else
5526 for cf_term_lib in $cf_check_list termcap termlib unknown
5528 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
5529 echo "$as_me:5529: checking for tgoto in -l$cf_term_lib" >&5
5530 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
5531 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5532 echo $ECHO_N "(cached) $ECHO_C" >&6
5533 else
5534 ac_check_lib_save_LIBS=$LIBS
5535 LIBS="-l$cf_term_lib $LIBS"
5536 cat >conftest.$ac_ext <<_ACEOF
5537 #line 5537 "configure"
5538 #include "confdefs.h"
5540 /* Override any gcc2 internal prototype to avoid an error. */
5541 #ifdef __cplusplus
5542 extern "C"
5543 #endif
5544 /* We use char because int might match the return type of a gcc2
5545 builtin and then its argument prototype would still apply. */
5546 char tgoto ();
5548 main ()
5550 tgoto ();
5552 return 0;
5554 _ACEOF
5555 rm -f conftest.$ac_objext conftest$ac_exeext
5556 if { (eval echo "$as_me:5556: \"$ac_link\"") >&5
5557 (eval $ac_link) 2>&5
5558 ac_status=$?
5559 echo "$as_me:5559: \$? = $ac_status" >&5
5560 (exit $ac_status); } &&
5561 { ac_try='test -s conftest$ac_exeext'
5562 { (eval echo "$as_me:5562: \"$ac_try\"") >&5
5563 (eval $ac_try) 2>&5
5564 ac_status=$?
5565 echo "$as_me:5565: \$? = $ac_status" >&5
5566 (exit $ac_status); }; }; then
5567 eval "$as_ac_Lib=yes"
5568 else
5569 echo "$as_me: failed program was:" >&5
5570 cat conftest.$ac_ext >&5
5571 eval "$as_ac_Lib=no"
5573 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5574 LIBS=$ac_check_lib_save_LIBS
5576 echo "$as_me:5576: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5577 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5578 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5579 break
5582 done
5586 # Check for library containing initscr
5587 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
5588 for cf_curs_lib in $cf_check_list xcurses jcurses pdcurses unknown
5590 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
5591 echo "$as_me:5591: checking for initscr in -l$cf_curs_lib" >&5
5592 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
5593 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5594 echo $ECHO_N "(cached) $ECHO_C" >&6
5595 else
5596 ac_check_lib_save_LIBS=$LIBS
5597 LIBS="-l$cf_curs_lib $LIBS"
5598 cat >conftest.$ac_ext <<_ACEOF
5599 #line 5599 "configure"
5600 #include "confdefs.h"
5602 /* Override any gcc2 internal prototype to avoid an error. */
5603 #ifdef __cplusplus
5604 extern "C"
5605 #endif
5606 /* We use char because int might match the return type of a gcc2
5607 builtin and then its argument prototype would still apply. */
5608 char initscr ();
5610 main ()
5612 initscr ();
5614 return 0;
5616 _ACEOF
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
5620 ac_status=$?
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
5625 (eval $ac_try) 2>&5
5626 ac_status=$?
5627 echo "$as_me:5627: \$? = $ac_status" >&5
5628 (exit $ac_status); }; }; then
5629 eval "$as_ac_Lib=yes"
5630 else
5631 echo "$as_me: failed program was:" >&5
5632 cat conftest.$ac_ext >&5
5633 eval "$as_ac_Lib=no"
5635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5636 LIBS=$ac_check_lib_save_LIBS
5638 echo "$as_me:5638: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5639 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5640 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5641 break
5644 done
5645 test $cf_curs_lib = unknown && { { echo "$as_me:5645: error: no curses library found" >&5
5646 echo "$as_me: error: no curses library found" >&2;}
5647 { (exit 1); exit 1; }; }
5649 LIBS="-l$cf_curs_lib $cf_save_LIBS"
5650 if test "$cf_term_lib" = unknown ; then
5651 echo "$as_me:5651: checking if we can link with $cf_curs_lib library" >&5
5652 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
5653 cat >conftest.$ac_ext <<_ACEOF
5654 #line 5654 "configure"
5655 #include "confdefs.h"
5656 #include <${cf_cv_ncurses_header:-curses.h}>
5658 main ()
5660 initscr()
5662 return 0;
5664 _ACEOF
5665 rm -f conftest.$ac_objext conftest$ac_exeext
5666 if { (eval echo "$as_me:5666: \"$ac_link\"") >&5
5667 (eval $ac_link) 2>&5
5668 ac_status=$?
5669 echo "$as_me:5669: \$? = $ac_status" >&5
5670 (exit $ac_status); } &&
5671 { ac_try='test -s conftest$ac_exeext'
5672 { (eval echo "$as_me:5672: \"$ac_try\"") >&5
5673 (eval $ac_try) 2>&5
5674 ac_status=$?
5675 echo "$as_me:5675: \$? = $ac_status" >&5
5676 (exit $ac_status); }; }; then
5677 cf_result=yes
5678 else
5679 echo "$as_me: failed program was:" >&5
5680 cat conftest.$ac_ext >&5
5681 cf_result=no
5683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5684 echo "$as_me:5684: result: $cf_result" >&5
5685 echo "${ECHO_T}$cf_result" >&6
5686 test $cf_result = no && { { echo "$as_me:5686: error: Cannot link curses library" >&5
5687 echo "$as_me: error: Cannot link curses library" >&2;}
5688 { (exit 1); exit 1; }; }
5689 elif test "$cf_curs_lib" = "$cf_term_lib" ; then
5691 elif test "$cf_term_lib" != predefined ; then
5692 echo "$as_me:5692: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
5693 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
5694 cat >conftest.$ac_ext <<_ACEOF
5695 #line 5695 "configure"
5696 #include "confdefs.h"
5697 #include <${cf_cv_ncurses_header:-curses.h}>
5699 main ()
5701 initscr(); tgoto((char *)0, 0, 0);
5703 return 0;
5705 _ACEOF
5706 rm -f conftest.$ac_objext conftest$ac_exeext
5707 if { (eval echo "$as_me:5707: \"$ac_link\"") >&5
5708 (eval $ac_link) 2>&5
5709 ac_status=$?
5710 echo "$as_me:5710: \$? = $ac_status" >&5
5711 (exit $ac_status); } &&
5712 { ac_try='test -s conftest$ac_exeext'
5713 { (eval echo "$as_me:5713: \"$ac_try\"") >&5
5714 (eval $ac_try) 2>&5
5715 ac_status=$?
5716 echo "$as_me:5716: \$? = $ac_status" >&5
5717 (exit $ac_status); }; }; then
5718 cf_result=no
5719 else
5720 echo "$as_me: failed program was:" >&5
5721 cat conftest.$ac_ext >&5
5723 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
5724 cat >conftest.$ac_ext <<_ACEOF
5725 #line 5725 "configure"
5726 #include "confdefs.h"
5727 #include <${cf_cv_ncurses_header:-curses.h}>
5729 main ()
5731 initscr()
5733 return 0;
5735 _ACEOF
5736 rm -f conftest.$ac_objext conftest$ac_exeext
5737 if { (eval echo "$as_me:5737: \"$ac_link\"") >&5
5738 (eval $ac_link) 2>&5
5739 ac_status=$?
5740 echo "$as_me:5740: \$? = $ac_status" >&5
5741 (exit $ac_status); } &&
5742 { ac_try='test -s conftest$ac_exeext'
5743 { (eval echo "$as_me:5743: \"$ac_try\"") >&5
5744 (eval $ac_try) 2>&5
5745 ac_status=$?
5746 echo "$as_me:5746: \$? = $ac_status" >&5
5747 (exit $ac_status); }; }; then
5748 cf_result=yes
5749 else
5750 echo "$as_me: failed program was:" >&5
5751 cat conftest.$ac_ext >&5
5752 cf_result=error
5754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5758 echo "$as_me:5758: result: $cf_result" >&5
5759 echo "${ECHO_T}$cf_result" >&6
5764 echo "$as_me:5764: checking for NetBSD form.h" >&5
5765 echo $ECHO_N "checking for NetBSD form.h... $ECHO_C" >&6
5766 if test "${cf_cv_netbsd_form_h+set}" = set; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5768 else
5770 cat >conftest.$ac_ext <<_ACEOF
5771 #line 5771 "configure"
5772 #include "confdefs.h"
5774 #include <${cf_cv_ncurses_header:-curses.h}>
5775 #include <form.h>
5778 main ()
5781 FORM *form;
5782 int y = current_field(form)->cursor_ypos;
5783 int x = current_field(form)->cursor_xpos;
5786 return 0;
5788 _ACEOF
5789 rm -f conftest.$ac_objext
5790 if { (eval echo "$as_me:5790: \"$ac_compile\"") >&5
5791 (eval $ac_compile) 2>&5
5792 ac_status=$?
5793 echo "$as_me:5793: \$? = $ac_status" >&5
5794 (exit $ac_status); } &&
5795 { ac_try='test -s conftest.$ac_objext'
5796 { (eval echo "$as_me:5796: \"$ac_try\"") >&5
5797 (eval $ac_try) 2>&5
5798 ac_status=$?
5799 echo "$as_me:5799: \$? = $ac_status" >&5
5800 (exit $ac_status); }; }; then
5801 cf_cv_netbsd_form_h=yes
5803 else
5804 echo "$as_me: failed program was:" >&5
5805 cat conftest.$ac_ext >&5
5806 cf_cv_netbsd_form_h=no
5808 rm -f conftest.$ac_objext conftest.$ac_ext
5811 echo "$as_me:5811: result: $cf_cv_netbsd_form_h" >&5
5812 echo "${ECHO_T}$cf_cv_netbsd_form_h" >&6
5814 test "$cf_cv_netbsd_form_h" = yes && cat >>confdefs.h <<\EOF
5815 #define HAVE_NETBSD_FORM_H 1
5818 echo "$as_me:5818: checking for NetBSD menu.h" >&5
5819 echo $ECHO_N "checking for NetBSD menu.h... $ECHO_C" >&6
5820 if test "${cf_cv_netbsd_menu_h+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5824 cat >conftest.$ac_ext <<_ACEOF
5825 #line 5825 "configure"
5826 #include "confdefs.h"
5828 #include <${cf_cv_ncurses_header:-curses.h}>
5829 #include <menu.h>
5832 main ()
5835 MENU *menu;
5836 int y = menu->max_item_width;
5839 return 0;
5841 _ACEOF
5842 rm -f conftest.$ac_objext
5843 if { (eval echo "$as_me:5843: \"$ac_compile\"") >&5
5844 (eval $ac_compile) 2>&5
5845 ac_status=$?
5846 echo "$as_me:5846: \$? = $ac_status" >&5
5847 (exit $ac_status); } &&
5848 { ac_try='test -s conftest.$ac_objext'
5849 { (eval echo "$as_me:5849: \"$ac_try\"") >&5
5850 (eval $ac_try) 2>&5
5851 ac_status=$?
5852 echo "$as_me:5852: \$? = $ac_status" >&5
5853 (exit $ac_status); }; }; then
5854 cf_cv_netbsd_menu_h=yes
5856 else
5857 echo "$as_me: failed program was:" >&5
5858 cat conftest.$ac_ext >&5
5859 cf_cv_netbsd_menu_h=no
5861 rm -f conftest.$ac_objext conftest.$ac_ext
5864 echo "$as_me:5864: result: $cf_cv_netbsd_menu_h" >&5
5865 echo "${ECHO_T}$cf_cv_netbsd_menu_h" >&6
5867 test "$cf_cv_netbsd_menu_h" = yes && cat >>confdefs.h <<\EOF
5868 #define HAVE_NETBSD_MENU_H 1
5872 ncurses)
5874 cf_ncuconfig_root=ncurses
5876 echo "Looking for ${cf_ncuconfig_root}-config"
5877 for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
5879 # Extract the first word of "$ac_prog", so it can be a program name with args.
5880 set dummy $ac_prog; ac_word=$2
5881 echo "$as_me:5881: checking for $ac_word" >&5
5882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5883 if test "${ac_cv_path_NCURSES_CONFIG+set}" = set; then
5884 echo $ECHO_N "(cached) $ECHO_C" >&6
5885 else
5886 case $NCURSES_CONFIG in
5887 [\\/]* | ?:[\\/]*)
5888 ac_cv_path_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test with a path.
5891 ac_save_IFS=$IFS; IFS=$ac_path_separator
5892 ac_dummy="$PATH"
5893 for ac_dir in $ac_dummy; do
5894 IFS=$ac_save_IFS
5895 test -z "$ac_dir" && ac_dir=.
5896 if $as_executable_p "$ac_dir/$ac_word"; then
5897 ac_cv_path_NCURSES_CONFIG="$ac_dir/$ac_word"
5898 echo "$as_me:5898: found $ac_dir/$ac_word" >&5
5899 break
5901 done
5904 esac
5906 NCURSES_CONFIG=$ac_cv_path_NCURSES_CONFIG
5908 if test -n "$NCURSES_CONFIG"; then
5909 echo "$as_me:5909: result: $NCURSES_CONFIG" >&5
5910 echo "${ECHO_T}$NCURSES_CONFIG" >&6
5911 else
5912 echo "$as_me:5912: result: no" >&5
5913 echo "${ECHO_T}no" >&6
5916 test -n "$NCURSES_CONFIG" && break
5917 done
5918 test -n "$NCURSES_CONFIG" || NCURSES_CONFIG="none"
5920 if test "$NCURSES_CONFIG" != none ; then
5922 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
5923 LIBS="`$NCURSES_CONFIG --libs` $LIBS"
5925 # even with config script, some packages use no-override for curses.h
5927 echo "$as_me:5927: checking if we have identified curses headers" >&5
5928 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
5929 if test "${cf_cv_ncurses_header+set}" = set; then
5930 echo $ECHO_N "(cached) $ECHO_C" >&6
5931 else
5933 cf_cv_ncurses_header=none
5934 for cf_header in \
5935 ncurses/curses.h \
5936 ncurses/ncurses.h \
5937 curses.h \
5938 ncurses.h
5940 cat >conftest.$ac_ext <<_ACEOF
5941 #line 5941 "configure"
5942 #include "confdefs.h"
5943 #include <${cf_header}>
5945 main ()
5947 initscr(); tgoto("?", 0,0)
5949 return 0;
5951 _ACEOF
5952 rm -f conftest.$ac_objext
5953 if { (eval echo "$as_me:5953: \"$ac_compile\"") >&5
5954 (eval $ac_compile) 2>&5
5955 ac_status=$?
5956 echo "$as_me:5956: \$? = $ac_status" >&5
5957 (exit $ac_status); } &&
5958 { ac_try='test -s conftest.$ac_objext'
5959 { (eval echo "$as_me:5959: \"$ac_try\"") >&5
5960 (eval $ac_try) 2>&5
5961 ac_status=$?
5962 echo "$as_me:5962: \$? = $ac_status" >&5
5963 (exit $ac_status); }; }; then
5964 cf_cv_ncurses_header=$cf_header; break
5965 else
5966 echo "$as_me: failed program was:" >&5
5967 cat conftest.$ac_ext >&5
5969 rm -f conftest.$ac_objext conftest.$ac_ext
5970 done
5973 echo "$as_me:5973: result: $cf_cv_ncurses_header" >&5
5974 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
5976 if test "$cf_cv_ncurses_header" = none ; then
5977 { { echo "$as_me:5977: error: No curses header-files found" >&5
5978 echo "$as_me: error: No curses header-files found" >&2;}
5979 { (exit 1); exit 1; }; }
5982 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
5984 for ac_header in $cf_cv_ncurses_header
5986 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5987 echo "$as_me:5987: checking for $ac_header" >&5
5988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5991 else
5992 cat >conftest.$ac_ext <<_ACEOF
5993 #line 5993 "configure"
5994 #include "confdefs.h"
5995 #include <$ac_header>
5996 _ACEOF
5997 if { (eval echo "$as_me:5997: \"$ac_cpp conftest.$ac_ext\"") >&5
5998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5999 ac_status=$?
6000 egrep -v '^ *\+' conftest.er1 >conftest.err
6001 rm -f conftest.er1
6002 cat conftest.err >&5
6003 echo "$as_me:6003: \$? = $ac_status" >&5
6004 (exit $ac_status); } >/dev/null; then
6005 if test -s conftest.err; then
6006 ac_cpp_err=$ac_c_preproc_warn_flag
6007 else
6008 ac_cpp_err=
6010 else
6011 ac_cpp_err=yes
6013 if test -z "$ac_cpp_err"; then
6014 eval "$as_ac_Header=yes"
6015 else
6016 echo "$as_me: failed program was:" >&5
6017 cat conftest.$ac_ext >&5
6018 eval "$as_ac_Header=no"
6020 rm -f conftest.err conftest.$ac_ext
6022 echo "$as_me:6022: result: `eval echo '${'$as_ac_Header'}'`" >&5
6023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6025 cat >>confdefs.h <<EOF
6026 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6030 done
6032 cat >>confdefs.h <<\EOF
6033 #define NCURSES 1
6036 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
6038 cat >>confdefs.h <<EOF
6039 #define $cf_nculib_ROOT 1
6042 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
6044 else
6046 cf_ncuhdr_root=ncurses
6048 test -n "$cf_cv_curses_dir" && \
6049 test "$cf_cv_curses_dir" != "no" && { \
6051 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
6052 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
6054 while test $cf_add_incdir != /usr/include
6056 if test -d $cf_add_incdir
6057 then
6058 cf_have_incdir=no
6059 if test -n "$CFLAGS$CPPFLAGS" ; then
6060 # a loop is needed to ensure we can add subdirs of existing dirs
6061 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6062 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6063 cf_have_incdir=yes; break
6065 done
6068 if test "$cf_have_incdir" = no ; then
6069 if test "$cf_add_incdir" = /usr/local/include ; then
6070 if test "$GCC" = yes
6071 then
6072 cf_save_CPPFLAGS=$CPPFLAGS
6073 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6074 cat >conftest.$ac_ext <<_ACEOF
6075 #line 6075 "configure"
6076 #include "confdefs.h"
6077 #include <stdio.h>
6079 main ()
6081 printf("Hello")
6083 return 0;
6085 _ACEOF
6086 rm -f conftest.$ac_objext
6087 if { (eval echo "$as_me:6087: \"$ac_compile\"") >&5
6088 (eval $ac_compile) 2>&5
6089 ac_status=$?
6090 echo "$as_me:6090: \$? = $ac_status" >&5
6091 (exit $ac_status); } &&
6092 { ac_try='test -s conftest.$ac_objext'
6093 { (eval echo "$as_me:6093: \"$ac_try\"") >&5
6094 (eval $ac_try) 2>&5
6095 ac_status=$?
6096 echo "$as_me:6096: \$? = $ac_status" >&5
6097 (exit $ac_status); }; }; then
6099 else
6100 echo "$as_me: failed program was:" >&5
6101 cat conftest.$ac_ext >&5
6102 cf_have_incdir=yes
6104 rm -f conftest.$ac_objext conftest.$ac_ext
6105 CPPFLAGS=$cf_save_CPPFLAGS
6110 if test "$cf_have_incdir" = no ; then
6111 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6113 echo "${as_me:-configure}:6113: testing adding $cf_add_incdir to include-path ..." 1>&5
6115 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6117 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6118 test "$cf_top_incdir" = "$cf_add_incdir" && break
6119 cf_add_incdir="$cf_top_incdir"
6120 else
6121 break
6124 done
6125 done
6130 echo "$as_me:6130: checking for $cf_ncuhdr_root header in include-path" >&5
6131 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
6132 if test "${cf_cv_ncurses_h+set}" = set; then
6133 echo $ECHO_N "(cached) $ECHO_C" >&6
6134 else
6136 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
6137 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
6138 for cf_header in $cf_header_list
6141 cat >conftest.$ac_ext <<_ACEOF
6142 #line 6142 "configure"
6143 #include "confdefs.h"
6145 #include <$cf_header>
6147 main ()
6150 #ifdef NCURSES_VERSION
6152 printf("%s\n", NCURSES_VERSION);
6153 #else
6154 #ifdef __NCURSES_H
6155 printf("old\n");
6156 #else
6157 make an error
6158 #endif
6159 #endif
6162 return 0;
6164 _ACEOF
6165 rm -f conftest.$ac_objext
6166 if { (eval echo "$as_me:6166: \"$ac_compile\"") >&5
6167 (eval $ac_compile) 2>&5
6168 ac_status=$?
6169 echo "$as_me:6169: \$? = $ac_status" >&5
6170 (exit $ac_status); } &&
6171 { ac_try='test -s conftest.$ac_objext'
6172 { (eval echo "$as_me:6172: \"$ac_try\"") >&5
6173 (eval $ac_try) 2>&5
6174 ac_status=$?
6175 echo "$as_me:6175: \$? = $ac_status" >&5
6176 (exit $ac_status); }; }; then
6177 cf_cv_ncurses_h=$cf_header
6179 else
6180 echo "$as_me: failed program was:" >&5
6181 cat conftest.$ac_ext >&5
6182 cf_cv_ncurses_h=no
6184 rm -f conftest.$ac_objext conftest.$ac_ext
6186 test "$cf_cv_ncurses_h" != no && break
6187 done
6190 echo "$as_me:6190: result: $cf_cv_ncurses_h" >&5
6191 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
6193 if test "$cf_cv_ncurses_h" != no ; then
6194 cf_cv_ncurses_header=$cf_cv_ncurses_h
6195 else
6197 echo "$as_me:6197: checking for $cf_ncuhdr_root include-path" >&5
6198 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
6199 if test "${cf_cv_ncurses_h2+set}" = set; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 else
6203 test -n "$verbose" && echo
6205 cf_search=
6207 # collect the current set of include-directories from compiler flags
6208 cf_header_path_list=""
6209 if test -n "${CFLAGS}${CPPFLAGS}" ; then
6210 for cf_header_path in $CPPFLAGS $CFLAGS
6212 case $cf_header_path in #(vi
6213 -I*)
6214 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
6216 test "$cf_header_path" != "NONE" && \
6217 test -d "$cf_header_path" && \
6219 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
6220 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
6221 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
6222 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
6223 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
6224 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"
6227 cf_header_path_list="$cf_header_path_list $cf_search"
6229 esac
6230 done
6233 # add the variations for the package we are looking for
6235 cf_search=
6237 test "/usr" != "$prefix" && \
6238 test -d "/usr" && \
6239 (test $prefix = NONE || test "/usr" != "$prefix") && {
6240 test -n "$verbose" && echo " ... testing for include-directories under /usr"
6241 test -d /usr/include && cf_search="$cf_search /usr/include"
6242 test -d /usr/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/include/$cf_ncuhdr_root"
6243 test -d /usr/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/include/$cf_ncuhdr_root/include"
6244 test -d /usr/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/$cf_ncuhdr_root/include"
6245 test -d /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6248 test "$prefix" != "NONE" && \
6249 test -d "$prefix" && \
6251 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
6252 test -d $prefix/include && cf_search="$cf_search $prefix/include"
6253 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
6254 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
6255 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
6256 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6259 test "/usr/local" != "$prefix" && \
6260 test -d "/usr/local" && \
6261 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
6262 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
6263 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
6264 test -d /usr/local/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root"
6265 test -d /usr/local/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root/include"
6266 test -d /usr/local/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include"
6267 test -d /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6270 test "/opt" != "$prefix" && \
6271 test -d "/opt" && \
6272 (test $prefix = NONE || test "/opt" != "$prefix") && {
6273 test -n "$verbose" && echo " ... testing for include-directories under /opt"
6274 test -d /opt/include && cf_search="$cf_search /opt/include"
6275 test -d /opt/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/include/$cf_ncuhdr_root"
6276 test -d /opt/include/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/include/$cf_ncuhdr_root/include"
6277 test -d /opt/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/$cf_ncuhdr_root/include"
6278 test -d /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6281 test "$HOME" != "$prefix" && \
6282 test -d "$HOME" && \
6283 (test $prefix = NONE || test "$HOME" != "$prefix") && {
6284 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
6285 test -d $HOME/include && cf_search="$cf_search $HOME/include"
6286 test -d $HOME/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root"
6287 test -d $HOME/include/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root/include"
6288 test -d $HOME/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include"
6289 test -d $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
6292 test "$includedir" != NONE && \
6293 test "$includedir" != "/usr/include" && \
6294 test -d "$includedir" && {
6295 test -d $includedir && cf_search="$cf_search $includedir"
6296 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
6299 test "$oldincludedir" != NONE && \
6300 test "$oldincludedir" != "/usr/include" && \
6301 test -d "$oldincludedir" && {
6302 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
6303 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
6306 cf_search="$cf_search $cf_header_path_list"
6308 test -n "$verbose" && echo search path $cf_search
6309 cf_save2_CPPFLAGS="$CPPFLAGS"
6310 for cf_incdir in $cf_search
6313 if test -n "$cf_incdir" ; then
6314 for cf_add_incdir in $cf_incdir
6316 while test $cf_add_incdir != /usr/include
6318 if test -d $cf_add_incdir
6319 then
6320 cf_have_incdir=no
6321 if test -n "$CFLAGS$CPPFLAGS" ; then
6322 # a loop is needed to ensure we can add subdirs of existing dirs
6323 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6324 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6325 cf_have_incdir=yes; break
6327 done
6330 if test "$cf_have_incdir" = no ; then
6331 if test "$cf_add_incdir" = /usr/local/include ; then
6332 if test "$GCC" = yes
6333 then
6334 cf_save_CPPFLAGS=$CPPFLAGS
6335 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6336 cat >conftest.$ac_ext <<_ACEOF
6337 #line 6337 "configure"
6338 #include "confdefs.h"
6339 #include <stdio.h>
6341 main ()
6343 printf("Hello")
6345 return 0;
6347 _ACEOF
6348 rm -f conftest.$ac_objext
6349 if { (eval echo "$as_me:6349: \"$ac_compile\"") >&5
6350 (eval $ac_compile) 2>&5
6351 ac_status=$?
6352 echo "$as_me:6352: \$? = $ac_status" >&5
6353 (exit $ac_status); } &&
6354 { ac_try='test -s conftest.$ac_objext'
6355 { (eval echo "$as_me:6355: \"$ac_try\"") >&5
6356 (eval $ac_try) 2>&5
6357 ac_status=$?
6358 echo "$as_me:6358: \$? = $ac_status" >&5
6359 (exit $ac_status); }; }; then
6361 else
6362 echo "$as_me: failed program was:" >&5
6363 cat conftest.$ac_ext >&5
6364 cf_have_incdir=yes
6366 rm -f conftest.$ac_objext conftest.$ac_ext
6367 CPPFLAGS=$cf_save_CPPFLAGS
6372 if test "$cf_have_incdir" = no ; then
6373 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6375 echo "${as_me:-configure}:6375: testing adding $cf_add_incdir to include-path ..." 1>&5
6377 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6379 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6380 test "$cf_top_incdir" = "$cf_add_incdir" && break
6381 cf_add_incdir="$cf_top_incdir"
6382 else
6383 break
6386 done
6387 done
6390 for cf_header in \
6391 ncurses.h \
6392 curses.h
6395 cat >conftest.$ac_ext <<_ACEOF
6396 #line 6396 "configure"
6397 #include "confdefs.h"
6399 #include <$cf_header>
6401 main ()
6404 #ifdef NCURSES_VERSION
6406 printf("%s\n", NCURSES_VERSION);
6407 #else
6408 #ifdef __NCURSES_H
6409 printf("old\n");
6410 #else
6411 make an error
6412 #endif
6413 #endif
6416 return 0;
6418 _ACEOF
6419 rm -f conftest.$ac_objext
6420 if { (eval echo "$as_me:6420: \"$ac_compile\"") >&5
6421 (eval $ac_compile) 2>&5
6422 ac_status=$?
6423 echo "$as_me:6423: \$? = $ac_status" >&5
6424 (exit $ac_status); } &&
6425 { ac_try='test -s conftest.$ac_objext'
6426 { (eval echo "$as_me:6426: \"$ac_try\"") >&5
6427 (eval $ac_try) 2>&5
6428 ac_status=$?
6429 echo "$as_me:6429: \$? = $ac_status" >&5
6430 (exit $ac_status); }; }; then
6431 cf_cv_ncurses_h2=$cf_header
6433 else
6434 echo "$as_me: failed program was:" >&5
6435 cat conftest.$ac_ext >&5
6436 cf_cv_ncurses_h2=no
6438 rm -f conftest.$ac_objext conftest.$ac_ext
6440 if test "$cf_cv_ncurses_h2" != no ; then
6441 cf_cv_ncurses_h2=$cf_incdir/$cf_header
6442 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
6443 break
6445 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
6446 done
6447 CPPFLAGS="$cf_save2_CPPFLAGS"
6448 test "$cf_cv_ncurses_h2" != no && break
6449 done
6450 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:6450: error: not found" >&5
6451 echo "$as_me: error: not found" >&2;}
6452 { (exit 1); exit 1; }; }
6455 echo "$as_me:6455: result: $cf_cv_ncurses_h2" >&5
6456 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
6458 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
6459 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
6460 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
6461 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
6464 if test -n "$cf_1st_incdir" ; then
6465 for cf_add_incdir in $cf_1st_incdir
6467 while test $cf_add_incdir != /usr/include
6469 if test -d $cf_add_incdir
6470 then
6471 cf_have_incdir=no
6472 if test -n "$CFLAGS$CPPFLAGS" ; then
6473 # a loop is needed to ensure we can add subdirs of existing dirs
6474 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6475 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6476 cf_have_incdir=yes; break
6478 done
6481 if test "$cf_have_incdir" = no ; then
6482 if test "$cf_add_incdir" = /usr/local/include ; then
6483 if test "$GCC" = yes
6484 then
6485 cf_save_CPPFLAGS=$CPPFLAGS
6486 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6487 cat >conftest.$ac_ext <<_ACEOF
6488 #line 6488 "configure"
6489 #include "confdefs.h"
6490 #include <stdio.h>
6492 main ()
6494 printf("Hello")
6496 return 0;
6498 _ACEOF
6499 rm -f conftest.$ac_objext
6500 if { (eval echo "$as_me:6500: \"$ac_compile\"") >&5
6501 (eval $ac_compile) 2>&5
6502 ac_status=$?
6503 echo "$as_me:6503: \$? = $ac_status" >&5
6504 (exit $ac_status); } &&
6505 { ac_try='test -s conftest.$ac_objext'
6506 { (eval echo "$as_me:6506: \"$ac_try\"") >&5
6507 (eval $ac_try) 2>&5
6508 ac_status=$?
6509 echo "$as_me:6509: \$? = $ac_status" >&5
6510 (exit $ac_status); }; }; then
6512 else
6513 echo "$as_me: failed program was:" >&5
6514 cat conftest.$ac_ext >&5
6515 cf_have_incdir=yes
6517 rm -f conftest.$ac_objext conftest.$ac_ext
6518 CPPFLAGS=$cf_save_CPPFLAGS
6523 if test "$cf_have_incdir" = no ; then
6524 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6526 echo "${as_me:-configure}:6526: testing adding $cf_add_incdir to include-path ..." 1>&5
6528 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6530 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6531 test "$cf_top_incdir" = "$cf_add_incdir" && break
6532 cf_add_incdir="$cf_top_incdir"
6533 else
6534 break
6537 done
6538 done
6543 # Set definitions to allow ifdef'ing for ncurses.h
6545 case $cf_cv_ncurses_header in # (vi
6546 *ncurses.h)
6547 cat >>confdefs.h <<\EOF
6548 #define HAVE_NCURSES_H 1
6552 esac
6554 case $cf_cv_ncurses_header in # (vi
6555 ncurses/curses.h|ncurses/ncurses.h)
6556 cat >>confdefs.h <<\EOF
6557 #define HAVE_NCURSES_NCURSES_H 1
6561 ncursesw/curses.h|ncursesw/ncurses.h)
6562 cat >>confdefs.h <<\EOF
6563 #define HAVE_NCURSESW_NCURSES_H 1
6567 esac
6569 echo "$as_me:6569: checking for terminfo header" >&5
6570 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
6571 if test "${cf_cv_term_header+set}" = set; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6573 else
6575 case ${cf_cv_ncurses_header} in #(vi
6576 */ncurses.h|*/ncursesw.h) #(vi
6577 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
6580 cf_term_header=term.h
6582 esac
6584 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
6586 cat >conftest.$ac_ext <<_ACEOF
6587 #line 6587 "configure"
6588 #include "confdefs.h"
6589 #include <stdio.h>
6590 #include <${cf_cv_ncurses_header:-curses.h}>
6591 #include <$cf_test>
6594 main ()
6596 int x = auto_left_margin
6598 return 0;
6600 _ACEOF
6601 rm -f conftest.$ac_objext
6602 if { (eval echo "$as_me:6602: \"$ac_compile\"") >&5
6603 (eval $ac_compile) 2>&5
6604 ac_status=$?
6605 echo "$as_me:6605: \$? = $ac_status" >&5
6606 (exit $ac_status); } &&
6607 { ac_try='test -s conftest.$ac_objext'
6608 { (eval echo "$as_me:6608: \"$ac_try\"") >&5
6609 (eval $ac_try) 2>&5
6610 ac_status=$?
6611 echo "$as_me:6611: \$? = $ac_status" >&5
6612 (exit $ac_status); }; }; then
6614 cf_cv_term_header="$cf_test"
6615 else
6616 echo "$as_me: failed program was:" >&5
6617 cat conftest.$ac_ext >&5
6619 cf_cv_term_header=unknown
6622 rm -f conftest.$ac_objext conftest.$ac_ext
6623 test "$cf_cv_term_header" != unknown && break
6624 done
6627 echo "$as_me:6627: result: $cf_cv_term_header" >&5
6628 echo "${ECHO_T}$cf_cv_term_header" >&6
6630 # Set definitions to allow ifdef'ing to accommodate subdirectories
6632 case $cf_cv_term_header in # (vi
6633 *term.h)
6634 cat >>confdefs.h <<\EOF
6635 #define HAVE_TERM_H 1
6639 esac
6641 case $cf_cv_term_header in # (vi
6642 ncurses/term.h) #(vi
6643 cat >>confdefs.h <<\EOF
6644 #define HAVE_NCURSES_TERM_H 1
6648 ncursesw/term.h)
6649 cat >>confdefs.h <<\EOF
6650 #define HAVE_NCURSESW_TERM_H 1
6654 esac
6656 # some applications need this, but should check for NCURSES_VERSION
6657 cat >>confdefs.h <<\EOF
6658 #define NCURSES 1
6661 echo "$as_me:6661: checking for ncurses version" >&5
6662 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
6663 if test "${cf_cv_ncurses_version+set}" = set; then
6664 echo $ECHO_N "(cached) $ECHO_C" >&6
6665 else
6667 cf_cv_ncurses_version=no
6668 cf_tempfile=out$$
6669 rm -f $cf_tempfile
6670 if test "$cross_compiling" = yes; then
6672 # This will not work if the preprocessor splits the line after the
6673 # Autoconf token. The 'unproto' program does that.
6674 cat > conftest.$ac_ext <<EOF
6675 #include <${cf_cv_ncurses_header:-curses.h}>
6676 #undef Autoconf
6677 #ifdef NCURSES_VERSION
6678 Autoconf NCURSES_VERSION
6679 #else
6680 #ifdef __NCURSES_H
6681 Autoconf "old"
6682 #endif
6684 #endif
6686 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
6687 { (eval echo "$as_me:6687: \"$cf_try\"") >&5
6688 (eval $cf_try) 2>&5
6689 ac_status=$?
6690 echo "$as_me:6690: \$? = $ac_status" >&5
6691 (exit $ac_status); }
6692 if test -f conftest.out ; then
6693 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
6694 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
6695 rm -f conftest.out
6698 else
6699 cat >conftest.$ac_ext <<_ACEOF
6700 #line 6700 "configure"
6701 #include "confdefs.h"
6703 #include <${cf_cv_ncurses_header:-curses.h}>
6704 #include <stdio.h>
6705 int main()
6707 FILE *fp = fopen("$cf_tempfile", "w");
6708 #ifdef NCURSES_VERSION
6709 # ifdef NCURSES_VERSION_PATCH
6710 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
6711 # else
6712 fprintf(fp, "%s\n", NCURSES_VERSION);
6713 # endif
6714 #else
6715 # ifdef __NCURSES_H
6716 fprintf(fp, "old\n");
6717 # else
6718 make an error
6719 # endif
6720 #endif
6721 ${cf_cv_main_return:-return}(0);
6723 _ACEOF
6724 rm -f conftest$ac_exeext
6725 if { (eval echo "$as_me:6725: \"$ac_link\"") >&5
6726 (eval $ac_link) 2>&5
6727 ac_status=$?
6728 echo "$as_me:6728: \$? = $ac_status" >&5
6729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6730 { (eval echo "$as_me:6730: \"$ac_try\"") >&5
6731 (eval $ac_try) 2>&5
6732 ac_status=$?
6733 echo "$as_me:6733: \$? = $ac_status" >&5
6734 (exit $ac_status); }; }; then
6736 cf_cv_ncurses_version=`cat $cf_tempfile`
6737 else
6738 echo "$as_me: program exited with status $ac_status" >&5
6739 echo "$as_me: failed program was:" >&5
6740 cat conftest.$ac_ext >&5
6742 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6744 rm -f $cf_tempfile
6747 echo "$as_me:6747: result: $cf_cv_ncurses_version" >&5
6748 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
6749 test "$cf_cv_ncurses_version" = no || cat >>confdefs.h <<\EOF
6750 #define NCURSES 1
6753 cf_nculib_root=ncurses
6754 # This works, except for the special case where we find gpm, but
6755 # ncurses is in a nonstandard location via $LIBS, and we really want
6756 # to link gpm.
6757 cf_ncurses_LIBS=""
6758 cf_ncurses_SAVE="$LIBS"
6759 echo "$as_me:6759: checking for Gpm_Open in -lgpm" >&5
6760 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
6761 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6763 else
6764 ac_check_lib_save_LIBS=$LIBS
6765 LIBS="-lgpm $LIBS"
6766 cat >conftest.$ac_ext <<_ACEOF
6767 #line 6767 "configure"
6768 #include "confdefs.h"
6770 /* Override any gcc2 internal prototype to avoid an error. */
6771 #ifdef __cplusplus
6772 extern "C"
6773 #endif
6774 /* We use char because int might match the return type of a gcc2
6775 builtin and then its argument prototype would still apply. */
6776 char Gpm_Open ();
6778 main ()
6780 Gpm_Open ();
6782 return 0;
6784 _ACEOF
6785 rm -f conftest.$ac_objext conftest$ac_exeext
6786 if { (eval echo "$as_me:6786: \"$ac_link\"") >&5
6787 (eval $ac_link) 2>&5
6788 ac_status=$?
6789 echo "$as_me:6789: \$? = $ac_status" >&5
6790 (exit $ac_status); } &&
6791 { ac_try='test -s conftest$ac_exeext'
6792 { (eval echo "$as_me:6792: \"$ac_try\"") >&5
6793 (eval $ac_try) 2>&5
6794 ac_status=$?
6795 echo "$as_me:6795: \$? = $ac_status" >&5
6796 (exit $ac_status); }; }; then
6797 ac_cv_lib_gpm_Gpm_Open=yes
6798 else
6799 echo "$as_me: failed program was:" >&5
6800 cat conftest.$ac_ext >&5
6801 ac_cv_lib_gpm_Gpm_Open=no
6803 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6804 LIBS=$ac_check_lib_save_LIBS
6806 echo "$as_me:6806: result: $ac_cv_lib_gpm_Gpm_Open" >&5
6807 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
6808 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
6809 echo "$as_me:6809: checking for initscr in -lgpm" >&5
6810 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
6811 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
6812 echo $ECHO_N "(cached) $ECHO_C" >&6
6813 else
6814 ac_check_lib_save_LIBS=$LIBS
6815 LIBS="-lgpm $LIBS"
6816 cat >conftest.$ac_ext <<_ACEOF
6817 #line 6817 "configure"
6818 #include "confdefs.h"
6820 /* Override any gcc2 internal prototype to avoid an error. */
6821 #ifdef __cplusplus
6822 extern "C"
6823 #endif
6824 /* We use char because int might match the return type of a gcc2
6825 builtin and then its argument prototype would still apply. */
6826 char initscr ();
6828 main ()
6830 initscr ();
6832 return 0;
6834 _ACEOF
6835 rm -f conftest.$ac_objext conftest$ac_exeext
6836 if { (eval echo "$as_me:6836: \"$ac_link\"") >&5
6837 (eval $ac_link) 2>&5
6838 ac_status=$?
6839 echo "$as_me:6839: \$? = $ac_status" >&5
6840 (exit $ac_status); } &&
6841 { ac_try='test -s conftest$ac_exeext'
6842 { (eval echo "$as_me:6842: \"$ac_try\"") >&5
6843 (eval $ac_try) 2>&5
6844 ac_status=$?
6845 echo "$as_me:6845: \$? = $ac_status" >&5
6846 (exit $ac_status); }; }; then
6847 ac_cv_lib_gpm_initscr=yes
6848 else
6849 echo "$as_me: failed program was:" >&5
6850 cat conftest.$ac_ext >&5
6851 ac_cv_lib_gpm_initscr=no
6853 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6854 LIBS=$ac_check_lib_save_LIBS
6856 echo "$as_me:6856: result: $ac_cv_lib_gpm_initscr" >&5
6857 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
6858 if test $ac_cv_lib_gpm_initscr = yes; then
6859 LIBS="$cf_ncurses_SAVE"
6860 else
6861 cf_ncurses_LIBS="-lgpm"
6866 case $host_os in #(vi
6867 freebsd*)
6868 # This is only necessary if you are linking against an obsolete
6869 # version of ncurses (but it should do no harm, since it's static).
6870 if test "$cf_nculib_root" = ncurses ; then
6871 echo "$as_me:6871: checking for tgoto in -lmytinfo" >&5
6872 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
6873 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
6874 echo $ECHO_N "(cached) $ECHO_C" >&6
6875 else
6876 ac_check_lib_save_LIBS=$LIBS
6877 LIBS="-lmytinfo $LIBS"
6878 cat >conftest.$ac_ext <<_ACEOF
6879 #line 6879 "configure"
6880 #include "confdefs.h"
6882 /* Override any gcc2 internal prototype to avoid an error. */
6883 #ifdef __cplusplus
6884 extern "C"
6885 #endif
6886 /* We use char because int might match the return type of a gcc2
6887 builtin and then its argument prototype would still apply. */
6888 char tgoto ();
6890 main ()
6892 tgoto ();
6894 return 0;
6896 _ACEOF
6897 rm -f conftest.$ac_objext conftest$ac_exeext
6898 if { (eval echo "$as_me:6898: \"$ac_link\"") >&5
6899 (eval $ac_link) 2>&5
6900 ac_status=$?
6901 echo "$as_me:6901: \$? = $ac_status" >&5
6902 (exit $ac_status); } &&
6903 { ac_try='test -s conftest$ac_exeext'
6904 { (eval echo "$as_me:6904: \"$ac_try\"") >&5
6905 (eval $ac_try) 2>&5
6906 ac_status=$?
6907 echo "$as_me:6907: \$? = $ac_status" >&5
6908 (exit $ac_status); }; }; then
6909 ac_cv_lib_mytinfo_tgoto=yes
6910 else
6911 echo "$as_me: failed program was:" >&5
6912 cat conftest.$ac_ext >&5
6913 ac_cv_lib_mytinfo_tgoto=no
6915 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6916 LIBS=$ac_check_lib_save_LIBS
6918 echo "$as_me:6918: result: $ac_cv_lib_mytinfo_tgoto" >&5
6919 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
6920 if test $ac_cv_lib_mytinfo_tgoto = yes; then
6921 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
6926 esac
6928 LIBS="$cf_ncurses_LIBS $LIBS"
6930 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
6931 then
6932 LIBS="-l$cf_nculib_root $LIBS"
6933 else
6935 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
6936 cf_libdir=""
6937 echo "$as_me:6937: checking for initscr" >&5
6938 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
6939 if test "${ac_cv_func_initscr+set}" = set; then
6940 echo $ECHO_N "(cached) $ECHO_C" >&6
6941 else
6942 cat >conftest.$ac_ext <<_ACEOF
6943 #line 6943 "configure"
6944 #include "confdefs.h"
6945 /* System header to define __stub macros and hopefully few prototypes,
6946 which can conflict with char initscr (); below. */
6947 #include <assert.h>
6948 /* Override any gcc2 internal prototype to avoid an error. */
6949 #ifdef __cplusplus
6950 extern "C"
6951 #endif
6952 /* We use char because int might match the return type of a gcc2
6953 builtin and then its argument prototype would still apply. */
6954 char initscr ();
6955 char (*f) ();
6958 main ()
6960 /* The GNU C library defines this for functions which it implements
6961 to always fail with ENOSYS. Some functions are actually named
6962 something starting with __ and the normal name is an alias. */
6963 #if defined (__stub_initscr) || defined (__stub___initscr)
6964 choke me
6965 #else
6966 f = initscr;
6967 #endif
6970 return 0;
6972 _ACEOF
6973 rm -f conftest.$ac_objext conftest$ac_exeext
6974 if { (eval echo "$as_me:6974: \"$ac_link\"") >&5
6975 (eval $ac_link) 2>&5
6976 ac_status=$?
6977 echo "$as_me:6977: \$? = $ac_status" >&5
6978 (exit $ac_status); } &&
6979 { ac_try='test -s conftest$ac_exeext'
6980 { (eval echo "$as_me:6980: \"$ac_try\"") >&5
6981 (eval $ac_try) 2>&5
6982 ac_status=$?
6983 echo "$as_me:6983: \$? = $ac_status" >&5
6984 (exit $ac_status); }; }; then
6985 ac_cv_func_initscr=yes
6986 else
6987 echo "$as_me: failed program was:" >&5
6988 cat conftest.$ac_ext >&5
6989 ac_cv_func_initscr=no
6991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6993 echo "$as_me:6993: result: $ac_cv_func_initscr" >&5
6994 echo "${ECHO_T}$ac_cv_func_initscr" >&6
6995 if test $ac_cv_func_initscr = yes; then
6996 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
6997 else
6999 cf_save_LIBS="$LIBS"
7000 echo "$as_me:7000: checking for initscr in -l$cf_nculib_root" >&5
7001 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
7002 LIBS="-l$cf_nculib_root $LIBS"
7003 cat >conftest.$ac_ext <<_ACEOF
7004 #line 7004 "configure"
7005 #include "confdefs.h"
7006 #include <${cf_cv_ncurses_header:-curses.h}>
7008 main ()
7010 initscr()
7012 return 0;
7014 _ACEOF
7015 rm -f conftest.$ac_objext conftest$ac_exeext
7016 if { (eval echo "$as_me:7016: \"$ac_link\"") >&5
7017 (eval $ac_link) 2>&5
7018 ac_status=$?
7019 echo "$as_me:7019: \$? = $ac_status" >&5
7020 (exit $ac_status); } &&
7021 { ac_try='test -s conftest$ac_exeext'
7022 { (eval echo "$as_me:7022: \"$ac_try\"") >&5
7023 (eval $ac_try) 2>&5
7024 ac_status=$?
7025 echo "$as_me:7025: \$? = $ac_status" >&5
7026 (exit $ac_status); }; }; then
7027 echo "$as_me:7027: result: yes" >&5
7028 echo "${ECHO_T}yes" >&6
7029 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
7031 else
7032 echo "$as_me: failed program was:" >&5
7033 cat conftest.$ac_ext >&5
7034 echo "$as_me:7034: result: no" >&5
7035 echo "${ECHO_T}no" >&6
7037 cf_search=
7038 cf_library_path_list=""
7039 if test -n "${LDFLAGS}${LIBS}" ; then
7040 for cf_library_path in $LDFLAGS $LIBS
7042 case $cf_library_path in #(vi
7043 -L*)
7044 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
7046 test "$cf_library_path" != "NONE" && \
7047 test -d "$cf_library_path" && \
7049 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
7050 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
7051 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
7052 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
7053 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
7054 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"
7057 cf_library_path_list="$cf_library_path_list $cf_search"
7059 esac
7060 done
7063 cf_search=
7065 test "/usr" != "$prefix" && \
7066 test -d "/usr" && \
7067 (test $prefix = NONE || test "/usr" != "$prefix") && {
7068 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
7069 test -d /usr/lib && cf_search="$cf_search /usr/lib"
7070 test -d /usr/lib/$cf_nculib_root && cf_search="$cf_search /usr/lib/$cf_nculib_root"
7071 test -d /usr/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/lib/$cf_nculib_root/lib"
7072 test -d /usr/$cf_nculib_root/lib && cf_search="$cf_search /usr/$cf_nculib_root/lib"
7073 test -d /usr/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/$cf_nculib_root/lib/$cf_nculib_root"
7076 test "$prefix" != "NONE" && \
7077 test -d "$prefix" && \
7079 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
7080 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
7081 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
7082 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
7083 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
7084 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
7087 test "/usr/local" != "$prefix" && \
7088 test -d "/usr/local" && \
7089 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
7090 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
7091 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
7092 test -d /usr/local/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/lib/$cf_nculib_root"
7093 test -d /usr/local/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/lib/$cf_nculib_root/lib"
7094 test -d /usr/local/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/$cf_nculib_root/lib"
7095 test -d /usr/local/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/$cf_nculib_root/lib/$cf_nculib_root"
7098 test "/opt" != "$prefix" && \
7099 test -d "/opt" && \
7100 (test $prefix = NONE || test "/opt" != "$prefix") && {
7101 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
7102 test -d /opt/lib && cf_search="$cf_search /opt/lib"
7103 test -d /opt/lib/$cf_nculib_root && cf_search="$cf_search /opt/lib/$cf_nculib_root"
7104 test -d /opt/lib/$cf_nculib_root/lib && cf_search="$cf_search /opt/lib/$cf_nculib_root/lib"
7105 test -d /opt/$cf_nculib_root/lib && cf_search="$cf_search /opt/$cf_nculib_root/lib"
7106 test -d /opt/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /opt/$cf_nculib_root/lib/$cf_nculib_root"
7109 test "$HOME" != "$prefix" && \
7110 test -d "$HOME" && \
7111 (test $prefix = NONE || test "$HOME" != "$prefix") && {
7112 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
7113 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
7114 test -d $HOME/lib/$cf_nculib_root && cf_search="$cf_search $HOME/lib/$cf_nculib_root"
7115 test -d $HOME/lib/$cf_nculib_root/lib && cf_search="$cf_search $HOME/lib/$cf_nculib_root/lib"
7116 test -d $HOME/$cf_nculib_root/lib && cf_search="$cf_search $HOME/$cf_nculib_root/lib"
7117 test -d $HOME/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $HOME/$cf_nculib_root/lib/$cf_nculib_root"
7120 cf_search="$cf_library_path_list $cf_search"
7122 for cf_libdir in $cf_search
7124 echo "$as_me:7124: checking for -l$cf_nculib_root in $cf_libdir" >&5
7125 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
7126 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
7127 cat >conftest.$ac_ext <<_ACEOF
7128 #line 7128 "configure"
7129 #include "confdefs.h"
7130 #include <${cf_cv_ncurses_header:-curses.h}>
7132 main ()
7134 initscr()
7136 return 0;
7138 _ACEOF
7139 rm -f conftest.$ac_objext conftest$ac_exeext
7140 if { (eval echo "$as_me:7140: \"$ac_link\"") >&5
7141 (eval $ac_link) 2>&5
7142 ac_status=$?
7143 echo "$as_me:7143: \$? = $ac_status" >&5
7144 (exit $ac_status); } &&
7145 { ac_try='test -s conftest$ac_exeext'
7146 { (eval echo "$as_me:7146: \"$ac_try\"") >&5
7147 (eval $ac_try) 2>&5
7148 ac_status=$?
7149 echo "$as_me:7149: \$? = $ac_status" >&5
7150 (exit $ac_status); }; }; then
7151 echo "$as_me:7151: result: yes" >&5
7152 echo "${ECHO_T}yes" >&6
7153 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
7154 break
7155 else
7156 echo "$as_me: failed program was:" >&5
7157 cat conftest.$ac_ext >&5
7158 echo "$as_me:7158: result: no" >&5
7159 echo "${ECHO_T}no" >&6
7160 LIBS="$cf_save_LIBS"
7162 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7163 done
7166 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7170 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
7172 if test $cf_found_library = no ; then
7173 { { echo "$as_me:7173: error: Cannot link $cf_nculib_root library" >&5
7174 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
7175 { (exit 1); exit 1; }; }
7180 if test -n "$cf_ncurses_LIBS" ; then
7181 echo "$as_me:7181: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
7182 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
7183 cf_ncurses_SAVE="$LIBS"
7184 for p in $cf_ncurses_LIBS ; do
7185 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
7186 if test "$q" != "$LIBS" ; then
7187 LIBS="$q"
7189 done
7190 cat >conftest.$ac_ext <<_ACEOF
7191 #line 7191 "configure"
7192 #include "confdefs.h"
7193 #include <${cf_cv_ncurses_header:-curses.h}>
7195 main ()
7197 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
7199 return 0;
7201 _ACEOF
7202 rm -f conftest.$ac_objext conftest$ac_exeext
7203 if { (eval echo "$as_me:7203: \"$ac_link\"") >&5
7204 (eval $ac_link) 2>&5
7205 ac_status=$?
7206 echo "$as_me:7206: \$? = $ac_status" >&5
7207 (exit $ac_status); } &&
7208 { ac_try='test -s conftest$ac_exeext'
7209 { (eval echo "$as_me:7209: \"$ac_try\"") >&5
7210 (eval $ac_try) 2>&5
7211 ac_status=$?
7212 echo "$as_me:7212: \$? = $ac_status" >&5
7213 (exit $ac_status); }; }; then
7214 echo "$as_me:7214: result: yes" >&5
7215 echo "${ECHO_T}yes" >&6
7216 else
7217 echo "$as_me: failed program was:" >&5
7218 cat conftest.$ac_ext >&5
7219 echo "$as_me:7219: result: no" >&5
7220 echo "${ECHO_T}no" >&6
7221 LIBS="$cf_ncurses_SAVE"
7223 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7226 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7228 cat >>confdefs.h <<EOF
7229 #define $cf_nculib_ROOT 1
7235 ncursesw)
7236 cf_cv_libtype=w
7238 echo "$as_me:7238: checking for multibyte character support" >&5
7239 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
7240 if test "${cf_cv_utf8_lib+set}" = set; then
7241 echo $ECHO_N "(cached) $ECHO_C" >&6
7242 else
7244 cf_save_LIBS="$LIBS"
7245 cat >conftest.$ac_ext <<_ACEOF
7246 #line 7246 "configure"
7247 #include "confdefs.h"
7249 #include <stdlib.h>
7251 main ()
7253 putwc(0,0);
7255 return 0;
7257 _ACEOF
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
7261 ac_status=$?
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
7266 (eval $ac_try) 2>&5
7267 ac_status=$?
7268 echo "$as_me:7268: \$? = $ac_status" >&5
7269 (exit $ac_status); }; }; then
7270 cf_cv_utf8_lib=yes
7271 else
7272 echo "$as_me: failed program was:" >&5
7273 cat conftest.$ac_ext >&5
7275 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
7276 # will be set on completion of the AC_TRY_LINK below.
7277 cf_cv_header_path_utf8=
7278 cf_cv_library_path_utf8=
7280 echo "${as_me:-configure}:7280: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
7282 cf_save_LIBS="$LIBS"
7284 cat >conftest.$ac_ext <<_ACEOF
7285 #line 7285 "configure"
7286 #include "confdefs.h"
7288 #include <libutf8.h>
7290 main ()
7292 putwc(0,0);
7294 return 0;
7296 _ACEOF
7297 rm -f conftest.$ac_objext conftest$ac_exeext
7298 if { (eval echo "$as_me:7298: \"$ac_link\"") >&5
7299 (eval $ac_link) 2>&5
7300 ac_status=$?
7301 echo "$as_me:7301: \$? = $ac_status" >&5
7302 (exit $ac_status); } &&
7303 { ac_try='test -s conftest$ac_exeext'
7304 { (eval echo "$as_me:7304: \"$ac_try\"") >&5
7305 (eval $ac_try) 2>&5
7306 ac_status=$?
7307 echo "$as_me:7307: \$? = $ac_status" >&5
7308 (exit $ac_status); }; }; then
7310 cf_cv_find_linkage_utf8=yes
7311 cf_cv_header_path_utf8=/usr/include
7312 cf_cv_library_path_utf8=/usr/lib
7314 else
7315 echo "$as_me: failed program was:" >&5
7316 cat conftest.$ac_ext >&5
7318 LIBS="-lutf8 $cf_save_LIBS"
7320 cat >conftest.$ac_ext <<_ACEOF
7321 #line 7321 "configure"
7322 #include "confdefs.h"
7324 #include <libutf8.h>
7326 main ()
7328 putwc(0,0);
7330 return 0;
7332 _ACEOF
7333 rm -f conftest.$ac_objext conftest$ac_exeext
7334 if { (eval echo "$as_me:7334: \"$ac_link\"") >&5
7335 (eval $ac_link) 2>&5
7336 ac_status=$?
7337 echo "$as_me:7337: \$? = $ac_status" >&5
7338 (exit $ac_status); } &&
7339 { ac_try='test -s conftest$ac_exeext'
7340 { (eval echo "$as_me:7340: \"$ac_try\"") >&5
7341 (eval $ac_try) 2>&5
7342 ac_status=$?
7343 echo "$as_me:7343: \$? = $ac_status" >&5
7344 (exit $ac_status); }; }; then
7346 cf_cv_find_linkage_utf8=yes
7347 cf_cv_header_path_utf8=/usr/include
7348 cf_cv_library_path_utf8=/usr/lib
7349 cf_cv_library_file_utf8="-lutf8"
7351 else
7352 echo "$as_me: failed program was:" >&5
7353 cat conftest.$ac_ext >&5
7355 cf_cv_find_linkage_utf8=no
7356 LIBS="$cf_save_LIBS"
7358 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
7360 echo "${as_me:-configure}:7360: testing find linkage for utf8 library ..." 1>&5
7362 echo "${as_me:-configure}:7362: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
7364 cf_save_CPPFLAGS="$CPPFLAGS"
7365 cf_test_CPPFLAGS="$CPPFLAGS"
7367 cf_search=
7369 # collect the current set of include-directories from compiler flags
7370 cf_header_path_list=""
7371 if test -n "${CFLAGS}${CPPFLAGS}" ; then
7372 for cf_header_path in $CPPFLAGS $CFLAGS
7374 case $cf_header_path in #(vi
7375 -I*)
7376 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
7378 test "$cf_header_path" != "NONE" && \
7379 test -d "$cf_header_path" && \
7381 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
7382 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
7383 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
7384 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
7385 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
7386 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
7389 cf_header_path_list="$cf_header_path_list $cf_search"
7391 esac
7392 done
7395 # add the variations for the package we are looking for
7397 cf_search=
7399 test "/usr" != "$prefix" && \
7400 test -d "/usr" && \
7401 (test $prefix = NONE || test "/usr" != "$prefix") && {
7402 test -n "$verbose" && echo " ... testing for include-directories under /usr"
7403 test -d /usr/include && cf_search="$cf_search /usr/include"
7404 test -d /usr/include/utf8 && cf_search="$cf_search /usr/include/utf8"
7405 test -d /usr/include/utf8/include && cf_search="$cf_search /usr/include/utf8/include"
7406 test -d /usr/utf8/include && cf_search="$cf_search /usr/utf8/include"
7407 test -d /usr/utf8/include/utf8 && cf_search="$cf_search /usr/utf8/include/utf8"
7410 test "$prefix" != "NONE" && \
7411 test -d "$prefix" && \
7413 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
7414 test -d $prefix/include && cf_search="$cf_search $prefix/include"
7415 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
7416 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
7417 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
7418 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
7421 test "/usr/local" != "$prefix" && \
7422 test -d "/usr/local" && \
7423 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
7424 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
7425 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
7426 test -d /usr/local/include/utf8 && cf_search="$cf_search /usr/local/include/utf8"
7427 test -d /usr/local/include/utf8/include && cf_search="$cf_search /usr/local/include/utf8/include"
7428 test -d /usr/local/utf8/include && cf_search="$cf_search /usr/local/utf8/include"
7429 test -d /usr/local/utf8/include/utf8 && cf_search="$cf_search /usr/local/utf8/include/utf8"
7432 test "/opt" != "$prefix" && \
7433 test -d "/opt" && \
7434 (test $prefix = NONE || test "/opt" != "$prefix") && {
7435 test -n "$verbose" && echo " ... testing for include-directories under /opt"
7436 test -d /opt/include && cf_search="$cf_search /opt/include"
7437 test -d /opt/include/utf8 && cf_search="$cf_search /opt/include/utf8"
7438 test -d /opt/include/utf8/include && cf_search="$cf_search /opt/include/utf8/include"
7439 test -d /opt/utf8/include && cf_search="$cf_search /opt/utf8/include"
7440 test -d /opt/utf8/include/utf8 && cf_search="$cf_search /opt/utf8/include/utf8"
7443 test "$HOME" != "$prefix" && \
7444 test -d "$HOME" && \
7445 (test $prefix = NONE || test "$HOME" != "$prefix") && {
7446 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
7447 test -d $HOME/include && cf_search="$cf_search $HOME/include"
7448 test -d $HOME/include/utf8 && cf_search="$cf_search $HOME/include/utf8"
7449 test -d $HOME/include/utf8/include && cf_search="$cf_search $HOME/include/utf8/include"
7450 test -d $HOME/utf8/include && cf_search="$cf_search $HOME/utf8/include"
7451 test -d $HOME/utf8/include/utf8 && cf_search="$cf_search $HOME/utf8/include/utf8"
7454 test "$includedir" != NONE && \
7455 test "$includedir" != "/usr/include" && \
7456 test -d "$includedir" && {
7457 test -d $includedir && cf_search="$cf_search $includedir"
7458 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
7461 test "$oldincludedir" != NONE && \
7462 test "$oldincludedir" != "/usr/include" && \
7463 test -d "$oldincludedir" && {
7464 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
7465 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
7468 cf_search="$cf_search $cf_header_path_list"
7470 for cf_cv_header_path_utf8 in $cf_search
7472 if test -d $cf_cv_header_path_utf8 ; then
7473 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
7475 echo "${as_me:-configure}:7475: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
7477 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
7478 cat >conftest.$ac_ext <<_ACEOF
7479 #line 7479 "configure"
7480 #include "confdefs.h"
7482 #include <libutf8.h>
7484 main ()
7486 putwc(0,0);
7488 return 0;
7490 _ACEOF
7491 rm -f conftest.$ac_objext
7492 if { (eval echo "$as_me:7492: \"$ac_compile\"") >&5
7493 (eval $ac_compile) 2>&5
7494 ac_status=$?
7495 echo "$as_me:7495: \$? = $ac_status" >&5
7496 (exit $ac_status); } &&
7497 { ac_try='test -s conftest.$ac_objext'
7498 { (eval echo "$as_me:7498: \"$ac_try\"") >&5
7499 (eval $ac_try) 2>&5
7500 ac_status=$?
7501 echo "$as_me:7501: \$? = $ac_status" >&5
7502 (exit $ac_status); }; }; then
7504 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
7506 echo "${as_me:-configure}:7506: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
7508 cf_cv_find_linkage_utf8=maybe
7509 cf_test_CPPFLAGS="$CPPFLAGS"
7510 break
7511 else
7512 echo "$as_me: failed program was:" >&5
7513 cat conftest.$ac_ext >&5
7515 CPPFLAGS="$cf_save_CPPFLAGS"
7518 rm -f conftest.$ac_objext conftest.$ac_ext
7520 done
7522 if test "$cf_cv_find_linkage_utf8" = maybe ; then
7524 echo "${as_me:-configure}:7524: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
7526 cf_save_LIBS="$LIBS"
7527 cf_save_LDFLAGS="$LDFLAGS"
7529 if test "$cf_cv_find_linkage_utf8" != yes ; then
7531 cf_search=
7532 cf_library_path_list=""
7533 if test -n "${LDFLAGS}${LIBS}" ; then
7534 for cf_library_path in $LDFLAGS $LIBS
7536 case $cf_library_path in #(vi
7537 -L*)
7538 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
7540 test "$cf_library_path" != "NONE" && \
7541 test -d "$cf_library_path" && \
7543 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
7544 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
7545 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
7546 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
7547 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
7548 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
7551 cf_library_path_list="$cf_library_path_list $cf_search"
7553 esac
7554 done
7557 cf_search=
7559 test "/usr" != "$prefix" && \
7560 test -d "/usr" && \
7561 (test $prefix = NONE || test "/usr" != "$prefix") && {
7562 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
7563 test -d /usr/lib && cf_search="$cf_search /usr/lib"
7564 test -d /usr/lib/utf8 && cf_search="$cf_search /usr/lib/utf8"
7565 test -d /usr/lib/utf8/lib && cf_search="$cf_search /usr/lib/utf8/lib"
7566 test -d /usr/utf8/lib && cf_search="$cf_search /usr/utf8/lib"
7567 test -d /usr/utf8/lib/utf8 && cf_search="$cf_search /usr/utf8/lib/utf8"
7570 test "$prefix" != "NONE" && \
7571 test -d "$prefix" && \
7573 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
7574 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
7575 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
7576 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
7577 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
7578 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
7581 test "/usr/local" != "$prefix" && \
7582 test -d "/usr/local" && \
7583 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
7584 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
7585 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
7586 test -d /usr/local/lib/utf8 && cf_search="$cf_search /usr/local/lib/utf8"
7587 test -d /usr/local/lib/utf8/lib && cf_search="$cf_search /usr/local/lib/utf8/lib"
7588 test -d /usr/local/utf8/lib && cf_search="$cf_search /usr/local/utf8/lib"
7589 test -d /usr/local/utf8/lib/utf8 && cf_search="$cf_search /usr/local/utf8/lib/utf8"
7592 test "/opt" != "$prefix" && \
7593 test -d "/opt" && \
7594 (test $prefix = NONE || test "/opt" != "$prefix") && {
7595 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
7596 test -d /opt/lib && cf_search="$cf_search /opt/lib"
7597 test -d /opt/lib/utf8 && cf_search="$cf_search /opt/lib/utf8"
7598 test -d /opt/lib/utf8/lib && cf_search="$cf_search /opt/lib/utf8/lib"
7599 test -d /opt/utf8/lib && cf_search="$cf_search /opt/utf8/lib"
7600 test -d /opt/utf8/lib/utf8 && cf_search="$cf_search /opt/utf8/lib/utf8"
7603 test "$HOME" != "$prefix" && \
7604 test -d "$HOME" && \
7605 (test $prefix = NONE || test "$HOME" != "$prefix") && {
7606 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
7607 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
7608 test -d $HOME/lib/utf8 && cf_search="$cf_search $HOME/lib/utf8"
7609 test -d $HOME/lib/utf8/lib && cf_search="$cf_search $HOME/lib/utf8/lib"
7610 test -d $HOME/utf8/lib && cf_search="$cf_search $HOME/utf8/lib"
7611 test -d $HOME/utf8/lib/utf8 && cf_search="$cf_search $HOME/utf8/lib/utf8"
7614 cf_search="$cf_library_path_list $cf_search"
7616 for cf_cv_library_path_utf8 in $cf_search
7618 if test -d $cf_cv_library_path_utf8 ; then
7619 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
7621 echo "${as_me:-configure}:7621: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
7623 CPPFLAGS="$cf_test_CPPFLAGS"
7624 LIBS="-lutf8 $cf_save_LIBS"
7625 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
7626 cat >conftest.$ac_ext <<_ACEOF
7627 #line 7627 "configure"
7628 #include "confdefs.h"
7630 #include <libutf8.h>
7632 main ()
7634 putwc(0,0);
7636 return 0;
7638 _ACEOF
7639 rm -f conftest.$ac_objext conftest$ac_exeext
7640 if { (eval echo "$as_me:7640: \"$ac_link\"") >&5
7641 (eval $ac_link) 2>&5
7642 ac_status=$?
7643 echo "$as_me:7643: \$? = $ac_status" >&5
7644 (exit $ac_status); } &&
7645 { ac_try='test -s conftest$ac_exeext'
7646 { (eval echo "$as_me:7646: \"$ac_try\"") >&5
7647 (eval $ac_try) 2>&5
7648 ac_status=$?
7649 echo "$as_me:7649: \$? = $ac_status" >&5
7650 (exit $ac_status); }; }; then
7652 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
7654 echo "${as_me:-configure}:7654: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
7656 cf_cv_find_linkage_utf8=yes
7657 cf_cv_library_file_utf8="-lutf8"
7658 break
7659 else
7660 echo "$as_me: failed program was:" >&5
7661 cat conftest.$ac_ext >&5
7663 CPPFLAGS="$cf_save_CPPFLAGS"
7664 LIBS="$cf_save_LIBS"
7665 LDFLAGS="$cf_save_LDFLAGS"
7668 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7670 done
7671 CPPFLAGS="$cf_save_CPPFLAGS"
7672 LDFLAGS="$cf_save_LDFLAGS"
7675 else
7676 cf_cv_find_linkage_utf8=no
7680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7685 LIBS="$cf_save_LIBS"
7687 if test "$cf_cv_find_linkage_utf8" = yes ; then
7688 cf_cv_utf8_lib=add-on
7689 else
7690 cf_cv_utf8_lib=no
7694 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7696 echo "$as_me:7696: result: $cf_cv_utf8_lib" >&5
7697 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
7699 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
7700 # ncurses/ncursesw:
7701 if test "$cf_cv_utf8_lib" = "add-on" ; then
7702 cat >>confdefs.h <<\EOF
7703 #define HAVE_LIBUTF8_H 1
7706 if test -n "$cf_cv_header_path_utf8" ; then
7707 for cf_add_incdir in $cf_cv_header_path_utf8
7709 while test $cf_add_incdir != /usr/include
7711 if test -d $cf_add_incdir
7712 then
7713 cf_have_incdir=no
7714 if test -n "$CFLAGS$CPPFLAGS" ; then
7715 # a loop is needed to ensure we can add subdirs of existing dirs
7716 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7717 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7718 cf_have_incdir=yes; break
7720 done
7723 if test "$cf_have_incdir" = no ; then
7724 if test "$cf_add_incdir" = /usr/local/include ; then
7725 if test "$GCC" = yes
7726 then
7727 cf_save_CPPFLAGS=$CPPFLAGS
7728 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7729 cat >conftest.$ac_ext <<_ACEOF
7730 #line 7730 "configure"
7731 #include "confdefs.h"
7732 #include <stdio.h>
7734 main ()
7736 printf("Hello")
7738 return 0;
7740 _ACEOF
7741 rm -f conftest.$ac_objext
7742 if { (eval echo "$as_me:7742: \"$ac_compile\"") >&5
7743 (eval $ac_compile) 2>&5
7744 ac_status=$?
7745 echo "$as_me:7745: \$? = $ac_status" >&5
7746 (exit $ac_status); } &&
7747 { ac_try='test -s conftest.$ac_objext'
7748 { (eval echo "$as_me:7748: \"$ac_try\"") >&5
7749 (eval $ac_try) 2>&5
7750 ac_status=$?
7751 echo "$as_me:7751: \$? = $ac_status" >&5
7752 (exit $ac_status); }; }; then
7754 else
7755 echo "$as_me: failed program was:" >&5
7756 cat conftest.$ac_ext >&5
7757 cf_have_incdir=yes
7759 rm -f conftest.$ac_objext conftest.$ac_ext
7760 CPPFLAGS=$cf_save_CPPFLAGS
7765 if test "$cf_have_incdir" = no ; then
7766 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7768 echo "${as_me:-configure}:7768: testing adding $cf_add_incdir to include-path ..." 1>&5
7770 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7772 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
7773 test "$cf_top_incdir" = "$cf_add_incdir" && break
7774 cf_add_incdir="$cf_top_incdir"
7775 else
7776 break
7779 done
7780 done
7783 if test -n "$cf_cv_library_path_utf8" ; then
7784 for cf_add_libdir in $cf_cv_library_path_utf8
7786 if test $cf_add_libdir = /usr/lib ; then
7788 elif test -d $cf_add_libdir
7789 then
7790 cf_have_libdir=no
7791 if test -n "$LDFLAGS$LIBS" ; then
7792 # a loop is needed to ensure we can add subdirs of existing dirs
7793 for cf_test_libdir in $LDFLAGS $LIBS ; do
7794 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
7795 cf_have_libdir=yes; break
7797 done
7799 if test "$cf_have_libdir" = no ; then
7800 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
7802 echo "${as_me:-configure}:7802: testing adding $cf_add_libdir to library-path ..." 1>&5
7804 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
7807 done
7810 LIBS="$cf_cv_library_file_utf8 $LIBS"
7813 cf_ncuconfig_root=ncursesw
7815 echo "Looking for ${cf_ncuconfig_root}-config"
7816 for ac_prog in ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
7818 # Extract the first word of "$ac_prog", so it can be a program name with args.
7819 set dummy $ac_prog; ac_word=$2
7820 echo "$as_me:7820: checking for $ac_word" >&5
7821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7822 if test "${ac_cv_path_NCURSES_CONFIG+set}" = set; then
7823 echo $ECHO_N "(cached) $ECHO_C" >&6
7824 else
7825 case $NCURSES_CONFIG in
7826 [\\/]* | ?:[\\/]*)
7827 ac_cv_path_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test with a path.
7830 ac_save_IFS=$IFS; IFS=$ac_path_separator
7831 ac_dummy="$PATH"
7832 for ac_dir in $ac_dummy; do
7833 IFS=$ac_save_IFS
7834 test -z "$ac_dir" && ac_dir=.
7835 if $as_executable_p "$ac_dir/$ac_word"; then
7836 ac_cv_path_NCURSES_CONFIG="$ac_dir/$ac_word"
7837 echo "$as_me:7837: found $ac_dir/$ac_word" >&5
7838 break
7840 done
7843 esac
7845 NCURSES_CONFIG=$ac_cv_path_NCURSES_CONFIG
7847 if test -n "$NCURSES_CONFIG"; then
7848 echo "$as_me:7848: result: $NCURSES_CONFIG" >&5
7849 echo "${ECHO_T}$NCURSES_CONFIG" >&6
7850 else
7851 echo "$as_me:7851: result: no" >&5
7852 echo "${ECHO_T}no" >&6
7855 test -n "$NCURSES_CONFIG" && break
7856 done
7857 test -n "$NCURSES_CONFIG" || NCURSES_CONFIG="none"
7859 if test "$NCURSES_CONFIG" != none ; then
7861 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
7862 LIBS="`$NCURSES_CONFIG --libs` $LIBS"
7864 # even with config script, some packages use no-override for curses.h
7866 echo "$as_me:7866: checking if we have identified curses headers" >&5
7867 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
7868 if test "${cf_cv_ncurses_header+set}" = set; then
7869 echo $ECHO_N "(cached) $ECHO_C" >&6
7870 else
7872 cf_cv_ncurses_header=none
7873 for cf_header in \
7874 ncursesw/curses.h \
7875 ncursesw/ncurses.h \
7876 curses.h \
7877 ncurses.h
7879 cat >conftest.$ac_ext <<_ACEOF
7880 #line 7880 "configure"
7881 #include "confdefs.h"
7882 #include <${cf_header}>
7884 main ()
7886 initscr(); tgoto("?", 0,0)
7888 return 0;
7890 _ACEOF
7891 rm -f conftest.$ac_objext
7892 if { (eval echo "$as_me:7892: \"$ac_compile\"") >&5
7893 (eval $ac_compile) 2>&5
7894 ac_status=$?
7895 echo "$as_me:7895: \$? = $ac_status" >&5
7896 (exit $ac_status); } &&
7897 { ac_try='test -s conftest.$ac_objext'
7898 { (eval echo "$as_me:7898: \"$ac_try\"") >&5
7899 (eval $ac_try) 2>&5
7900 ac_status=$?
7901 echo "$as_me:7901: \$? = $ac_status" >&5
7902 (exit $ac_status); }; }; then
7903 cf_cv_ncurses_header=$cf_header; break
7904 else
7905 echo "$as_me: failed program was:" >&5
7906 cat conftest.$ac_ext >&5
7908 rm -f conftest.$ac_objext conftest.$ac_ext
7909 done
7912 echo "$as_me:7912: result: $cf_cv_ncurses_header" >&5
7913 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
7915 if test "$cf_cv_ncurses_header" = none ; then
7916 { { echo "$as_me:7916: error: No curses header-files found" >&5
7917 echo "$as_me: error: No curses header-files found" >&2;}
7918 { (exit 1); exit 1; }; }
7921 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
7923 for ac_header in $cf_cv_ncurses_header
7925 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7926 echo "$as_me:7926: checking for $ac_header" >&5
7927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
7930 else
7931 cat >conftest.$ac_ext <<_ACEOF
7932 #line 7932 "configure"
7933 #include "confdefs.h"
7934 #include <$ac_header>
7935 _ACEOF
7936 if { (eval echo "$as_me:7936: \"$ac_cpp conftest.$ac_ext\"") >&5
7937 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7938 ac_status=$?
7939 egrep -v '^ *\+' conftest.er1 >conftest.err
7940 rm -f conftest.er1
7941 cat conftest.err >&5
7942 echo "$as_me:7942: \$? = $ac_status" >&5
7943 (exit $ac_status); } >/dev/null; then
7944 if test -s conftest.err; then
7945 ac_cpp_err=$ac_c_preproc_warn_flag
7946 else
7947 ac_cpp_err=
7949 else
7950 ac_cpp_err=yes
7952 if test -z "$ac_cpp_err"; then
7953 eval "$as_ac_Header=yes"
7954 else
7955 echo "$as_me: failed program was:" >&5
7956 cat conftest.$ac_ext >&5
7957 eval "$as_ac_Header=no"
7959 rm -f conftest.err conftest.$ac_ext
7961 echo "$as_me:7961: result: `eval echo '${'$as_ac_Header'}'`" >&5
7962 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7963 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7964 cat >>confdefs.h <<EOF
7965 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7969 done
7971 cat >>confdefs.h <<\EOF
7972 #define NCURSES 1
7975 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
7977 cat >>confdefs.h <<EOF
7978 #define $cf_nculib_ROOT 1
7981 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
7983 else
7985 cf_ncuhdr_root=ncursesw
7987 test -n "$cf_cv_curses_dir" && \
7988 test "$cf_cv_curses_dir" != "no" && { \
7990 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
7991 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
7993 while test $cf_add_incdir != /usr/include
7995 if test -d $cf_add_incdir
7996 then
7997 cf_have_incdir=no
7998 if test -n "$CFLAGS$CPPFLAGS" ; then
7999 # a loop is needed to ensure we can add subdirs of existing dirs
8000 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8001 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8002 cf_have_incdir=yes; break
8004 done
8007 if test "$cf_have_incdir" = no ; then
8008 if test "$cf_add_incdir" = /usr/local/include ; then
8009 if test "$GCC" = yes
8010 then
8011 cf_save_CPPFLAGS=$CPPFLAGS
8012 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8013 cat >conftest.$ac_ext <<_ACEOF
8014 #line 8014 "configure"
8015 #include "confdefs.h"
8016 #include <stdio.h>
8018 main ()
8020 printf("Hello")
8022 return 0;
8024 _ACEOF
8025 rm -f conftest.$ac_objext
8026 if { (eval echo "$as_me:8026: \"$ac_compile\"") >&5
8027 (eval $ac_compile) 2>&5
8028 ac_status=$?
8029 echo "$as_me:8029: \$? = $ac_status" >&5
8030 (exit $ac_status); } &&
8031 { ac_try='test -s conftest.$ac_objext'
8032 { (eval echo "$as_me:8032: \"$ac_try\"") >&5
8033 (eval $ac_try) 2>&5
8034 ac_status=$?
8035 echo "$as_me:8035: \$? = $ac_status" >&5
8036 (exit $ac_status); }; }; then
8038 else
8039 echo "$as_me: failed program was:" >&5
8040 cat conftest.$ac_ext >&5
8041 cf_have_incdir=yes
8043 rm -f conftest.$ac_objext conftest.$ac_ext
8044 CPPFLAGS=$cf_save_CPPFLAGS
8049 if test "$cf_have_incdir" = no ; then
8050 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8052 echo "${as_me:-configure}:8052: testing adding $cf_add_incdir to include-path ..." 1>&5
8054 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8056 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8057 test "$cf_top_incdir" = "$cf_add_incdir" && break
8058 cf_add_incdir="$cf_top_incdir"
8059 else
8060 break
8063 done
8064 done
8069 echo "$as_me:8069: checking for $cf_ncuhdr_root header in include-path" >&5
8070 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
8071 if test "${cf_cv_ncurses_h+set}" = set; then
8072 echo $ECHO_N "(cached) $ECHO_C" >&6
8073 else
8075 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
8076 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
8077 for cf_header in $cf_header_list
8080 cat >conftest.$ac_ext <<_ACEOF
8081 #line 8081 "configure"
8082 #include "confdefs.h"
8084 #define _XOPEN_SOURCE_EXTENDED
8085 #undef HAVE_LIBUTF8_H /* in case we used CF_UTF8_LIB */
8086 #define HAVE_LIBUTF8_H /* to force ncurses' header file to use cchar_t */
8088 #include <$cf_header>
8090 main ()
8093 #ifdef NCURSES_VERSION
8095 #ifndef WACS_BSSB
8096 make an error
8097 #endif
8099 printf("%s\n", NCURSES_VERSION);
8100 #else
8101 #ifdef __NCURSES_H
8102 printf("old\n");
8103 #else
8104 make an error
8105 #endif
8106 #endif
8109 return 0;
8111 _ACEOF
8112 rm -f conftest.$ac_objext
8113 if { (eval echo "$as_me:8113: \"$ac_compile\"") >&5
8114 (eval $ac_compile) 2>&5
8115 ac_status=$?
8116 echo "$as_me:8116: \$? = $ac_status" >&5
8117 (exit $ac_status); } &&
8118 { ac_try='test -s conftest.$ac_objext'
8119 { (eval echo "$as_me:8119: \"$ac_try\"") >&5
8120 (eval $ac_try) 2>&5
8121 ac_status=$?
8122 echo "$as_me:8122: \$? = $ac_status" >&5
8123 (exit $ac_status); }; }; then
8124 cf_cv_ncurses_h=$cf_header
8126 else
8127 echo "$as_me: failed program was:" >&5
8128 cat conftest.$ac_ext >&5
8129 cf_cv_ncurses_h=no
8131 rm -f conftest.$ac_objext conftest.$ac_ext
8133 test "$cf_cv_ncurses_h" != no && break
8134 done
8137 echo "$as_me:8137: result: $cf_cv_ncurses_h" >&5
8138 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
8140 if test "$cf_cv_ncurses_h" != no ; then
8141 cf_cv_ncurses_header=$cf_cv_ncurses_h
8142 else
8144 echo "$as_me:8144: checking for $cf_ncuhdr_root include-path" >&5
8145 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
8146 if test "${cf_cv_ncurses_h2+set}" = set; then
8147 echo $ECHO_N "(cached) $ECHO_C" >&6
8148 else
8150 test -n "$verbose" && echo
8152 cf_search=
8154 # collect the current set of include-directories from compiler flags
8155 cf_header_path_list=""
8156 if test -n "${CFLAGS}${CPPFLAGS}" ; then
8157 for cf_header_path in $CPPFLAGS $CFLAGS
8159 case $cf_header_path in #(vi
8160 -I*)
8161 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
8163 test "$cf_header_path" != "NONE" && \
8164 test -d "$cf_header_path" && \
8166 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
8167 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
8168 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
8169 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
8170 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
8171 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"
8174 cf_header_path_list="$cf_header_path_list $cf_search"
8176 esac
8177 done
8180 # add the variations for the package we are looking for
8182 cf_search=
8184 test "/usr" != "$prefix" && \
8185 test -d "/usr" && \
8186 (test $prefix = NONE || test "/usr" != "$prefix") && {
8187 test -n "$verbose" && echo " ... testing for include-directories under /usr"
8188 test -d /usr/include && cf_search="$cf_search /usr/include"
8189 test -d /usr/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/include/$cf_ncuhdr_root"
8190 test -d /usr/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/include/$cf_ncuhdr_root/include"
8191 test -d /usr/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/$cf_ncuhdr_root/include"
8192 test -d /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
8195 test "$prefix" != "NONE" && \
8196 test -d "$prefix" && \
8198 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
8199 test -d $prefix/include && cf_search="$cf_search $prefix/include"
8200 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
8201 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
8202 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
8203 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
8206 test "/usr/local" != "$prefix" && \
8207 test -d "/usr/local" && \
8208 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
8209 test -n "$verbose" && echo " ... testing for include-directories under /usr/local"
8210 test -d /usr/local/include && cf_search="$cf_search /usr/local/include"
8211 test -d /usr/local/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root"
8212 test -d /usr/local/include/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/include/$cf_ncuhdr_root/include"
8213 test -d /usr/local/$cf_ncuhdr_root/include && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include"
8214 test -d /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /usr/local/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
8217 test "/opt" != "$prefix" && \
8218 test -d "/opt" && \
8219 (test $prefix = NONE || test "/opt" != "$prefix") && {
8220 test -n "$verbose" && echo " ... testing for include-directories under /opt"
8221 test -d /opt/include && cf_search="$cf_search /opt/include"
8222 test -d /opt/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/include/$cf_ncuhdr_root"
8223 test -d /opt/include/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/include/$cf_ncuhdr_root/include"
8224 test -d /opt/$cf_ncuhdr_root/include && cf_search="$cf_search /opt/$cf_ncuhdr_root/include"
8225 test -d /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search /opt/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
8228 test "$HOME" != "$prefix" && \
8229 test -d "$HOME" && \
8230 (test $prefix = NONE || test "$HOME" != "$prefix") && {
8231 test -n "$verbose" && echo " ... testing for include-directories under $HOME"
8232 test -d $HOME/include && cf_search="$cf_search $HOME/include"
8233 test -d $HOME/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root"
8234 test -d $HOME/include/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/include/$cf_ncuhdr_root/include"
8235 test -d $HOME/$cf_ncuhdr_root/include && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include"
8236 test -d $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $HOME/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
8239 test "$includedir" != NONE && \
8240 test "$includedir" != "/usr/include" && \
8241 test -d "$includedir" && {
8242 test -d $includedir && cf_search="$cf_search $includedir"
8243 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
8246 test "$oldincludedir" != NONE && \
8247 test "$oldincludedir" != "/usr/include" && \
8248 test -d "$oldincludedir" && {
8249 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
8250 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
8253 cf_search="$cf_search $cf_header_path_list"
8255 test -n "$verbose" && echo search path $cf_search
8256 cf_save2_CPPFLAGS="$CPPFLAGS"
8257 for cf_incdir in $cf_search
8260 if test -n "$cf_incdir" ; then
8261 for cf_add_incdir in $cf_incdir
8263 while test $cf_add_incdir != /usr/include
8265 if test -d $cf_add_incdir
8266 then
8267 cf_have_incdir=no
8268 if test -n "$CFLAGS$CPPFLAGS" ; then
8269 # a loop is needed to ensure we can add subdirs of existing dirs
8270 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8271 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8272 cf_have_incdir=yes; break
8274 done
8277 if test "$cf_have_incdir" = no ; then
8278 if test "$cf_add_incdir" = /usr/local/include ; then
8279 if test "$GCC" = yes
8280 then
8281 cf_save_CPPFLAGS=$CPPFLAGS
8282 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8283 cat >conftest.$ac_ext <<_ACEOF
8284 #line 8284 "configure"
8285 #include "confdefs.h"
8286 #include <stdio.h>
8288 main ()
8290 printf("Hello")
8292 return 0;
8294 _ACEOF
8295 rm -f conftest.$ac_objext
8296 if { (eval echo "$as_me:8296: \"$ac_compile\"") >&5
8297 (eval $ac_compile) 2>&5
8298 ac_status=$?
8299 echo "$as_me:8299: \$? = $ac_status" >&5
8300 (exit $ac_status); } &&
8301 { ac_try='test -s conftest.$ac_objext'
8302 { (eval echo "$as_me:8302: \"$ac_try\"") >&5
8303 (eval $ac_try) 2>&5
8304 ac_status=$?
8305 echo "$as_me:8305: \$? = $ac_status" >&5
8306 (exit $ac_status); }; }; then
8308 else
8309 echo "$as_me: failed program was:" >&5
8310 cat conftest.$ac_ext >&5
8311 cf_have_incdir=yes
8313 rm -f conftest.$ac_objext conftest.$ac_ext
8314 CPPFLAGS=$cf_save_CPPFLAGS
8319 if test "$cf_have_incdir" = no ; then
8320 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8322 echo "${as_me:-configure}:8322: testing adding $cf_add_incdir to include-path ..." 1>&5
8324 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8326 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8327 test "$cf_top_incdir" = "$cf_add_incdir" && break
8328 cf_add_incdir="$cf_top_incdir"
8329 else
8330 break
8333 done
8334 done
8337 for cf_header in \
8338 ncurses.h \
8339 curses.h
8342 cat >conftest.$ac_ext <<_ACEOF
8343 #line 8343 "configure"
8344 #include "confdefs.h"
8346 #include <$cf_header>
8348 main ()
8351 #ifdef NCURSES_VERSION
8353 printf("%s\n", NCURSES_VERSION);
8354 #else
8355 #ifdef __NCURSES_H
8356 printf("old\n");
8357 #else
8358 make an error
8359 #endif
8360 #endif
8363 return 0;
8365 _ACEOF
8366 rm -f conftest.$ac_objext
8367 if { (eval echo "$as_me:8367: \"$ac_compile\"") >&5
8368 (eval $ac_compile) 2>&5
8369 ac_status=$?
8370 echo "$as_me:8370: \$? = $ac_status" >&5
8371 (exit $ac_status); } &&
8372 { ac_try='test -s conftest.$ac_objext'
8373 { (eval echo "$as_me:8373: \"$ac_try\"") >&5
8374 (eval $ac_try) 2>&5
8375 ac_status=$?
8376 echo "$as_me:8376: \$? = $ac_status" >&5
8377 (exit $ac_status); }; }; then
8378 cf_cv_ncurses_h2=$cf_header
8380 else
8381 echo "$as_me: failed program was:" >&5
8382 cat conftest.$ac_ext >&5
8383 cf_cv_ncurses_h2=no
8385 rm -f conftest.$ac_objext conftest.$ac_ext
8387 if test "$cf_cv_ncurses_h2" != no ; then
8388 cf_cv_ncurses_h2=$cf_incdir/$cf_header
8389 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
8390 break
8392 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
8393 done
8394 CPPFLAGS="$cf_save2_CPPFLAGS"
8395 test "$cf_cv_ncurses_h2" != no && break
8396 done
8397 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:8397: error: not found" >&5
8398 echo "$as_me: error: not found" >&2;}
8399 { (exit 1); exit 1; }; }
8402 echo "$as_me:8402: result: $cf_cv_ncurses_h2" >&5
8403 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
8405 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
8406 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
8407 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
8408 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
8411 if test -n "$cf_1st_incdir" ; then
8412 for cf_add_incdir in $cf_1st_incdir
8414 while test $cf_add_incdir != /usr/include
8416 if test -d $cf_add_incdir
8417 then
8418 cf_have_incdir=no
8419 if test -n "$CFLAGS$CPPFLAGS" ; then
8420 # a loop is needed to ensure we can add subdirs of existing dirs
8421 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8422 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8423 cf_have_incdir=yes; break
8425 done
8428 if test "$cf_have_incdir" = no ; then
8429 if test "$cf_add_incdir" = /usr/local/include ; then
8430 if test "$GCC" = yes
8431 then
8432 cf_save_CPPFLAGS=$CPPFLAGS
8433 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8434 cat >conftest.$ac_ext <<_ACEOF
8435 #line 8435 "configure"
8436 #include "confdefs.h"
8437 #include <stdio.h>
8439 main ()
8441 printf("Hello")
8443 return 0;
8445 _ACEOF
8446 rm -f conftest.$ac_objext
8447 if { (eval echo "$as_me:8447: \"$ac_compile\"") >&5
8448 (eval $ac_compile) 2>&5
8449 ac_status=$?
8450 echo "$as_me:8450: \$? = $ac_status" >&5
8451 (exit $ac_status); } &&
8452 { ac_try='test -s conftest.$ac_objext'
8453 { (eval echo "$as_me:8453: \"$ac_try\"") >&5
8454 (eval $ac_try) 2>&5
8455 ac_status=$?
8456 echo "$as_me:8456: \$? = $ac_status" >&5
8457 (exit $ac_status); }; }; then
8459 else
8460 echo "$as_me: failed program was:" >&5
8461 cat conftest.$ac_ext >&5
8462 cf_have_incdir=yes
8464 rm -f conftest.$ac_objext conftest.$ac_ext
8465 CPPFLAGS=$cf_save_CPPFLAGS
8470 if test "$cf_have_incdir" = no ; then
8471 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8473 echo "${as_me:-configure}:8473: testing adding $cf_add_incdir to include-path ..." 1>&5
8475 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8477 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8478 test "$cf_top_incdir" = "$cf_add_incdir" && break
8479 cf_add_incdir="$cf_top_incdir"
8480 else
8481 break
8484 done
8485 done
8490 # Set definitions to allow ifdef'ing for ncurses.h
8492 case $cf_cv_ncurses_header in # (vi
8493 *ncurses.h)
8494 cat >>confdefs.h <<\EOF
8495 #define HAVE_NCURSES_H 1
8499 esac
8501 case $cf_cv_ncurses_header in # (vi
8502 ncurses/curses.h|ncurses/ncurses.h)
8503 cat >>confdefs.h <<\EOF
8504 #define HAVE_NCURSES_NCURSES_H 1
8508 ncursesw/curses.h|ncursesw/ncurses.h)
8509 cat >>confdefs.h <<\EOF
8510 #define HAVE_NCURSESW_NCURSES_H 1
8514 esac
8516 echo "$as_me:8516: checking for terminfo header" >&5
8517 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
8518 if test "${cf_cv_term_header+set}" = set; then
8519 echo $ECHO_N "(cached) $ECHO_C" >&6
8520 else
8522 case ${cf_cv_ncurses_header} in #(vi
8523 */ncurses.h|*/ncursesw.h) #(vi
8524 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
8527 cf_term_header=term.h
8529 esac
8531 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
8533 cat >conftest.$ac_ext <<_ACEOF
8534 #line 8534 "configure"
8535 #include "confdefs.h"
8536 #include <stdio.h>
8537 #include <${cf_cv_ncurses_header:-curses.h}>
8538 #include <$cf_test>
8541 main ()
8543 int x = auto_left_margin
8545 return 0;
8547 _ACEOF
8548 rm -f conftest.$ac_objext
8549 if { (eval echo "$as_me:8549: \"$ac_compile\"") >&5
8550 (eval $ac_compile) 2>&5
8551 ac_status=$?
8552 echo "$as_me:8552: \$? = $ac_status" >&5
8553 (exit $ac_status); } &&
8554 { ac_try='test -s conftest.$ac_objext'
8555 { (eval echo "$as_me:8555: \"$ac_try\"") >&5
8556 (eval $ac_try) 2>&5
8557 ac_status=$?
8558 echo "$as_me:8558: \$? = $ac_status" >&5
8559 (exit $ac_status); }; }; then
8561 cf_cv_term_header="$cf_test"
8562 else
8563 echo "$as_me: failed program was:" >&5
8564 cat conftest.$ac_ext >&5
8566 cf_cv_term_header=unknown
8569 rm -f conftest.$ac_objext conftest.$ac_ext
8570 test "$cf_cv_term_header" != unknown && break
8571 done
8574 echo "$as_me:8574: result: $cf_cv_term_header" >&5
8575 echo "${ECHO_T}$cf_cv_term_header" >&6
8577 # Set definitions to allow ifdef'ing to accommodate subdirectories
8579 case $cf_cv_term_header in # (vi
8580 *term.h)
8581 cat >>confdefs.h <<\EOF
8582 #define HAVE_TERM_H 1
8586 esac
8588 case $cf_cv_term_header in # (vi
8589 ncurses/term.h) #(vi
8590 cat >>confdefs.h <<\EOF
8591 #define HAVE_NCURSES_TERM_H 1
8595 ncursesw/term.h)
8596 cat >>confdefs.h <<\EOF
8597 #define HAVE_NCURSESW_TERM_H 1
8601 esac
8603 # some applications need this, but should check for NCURSES_VERSION
8604 cat >>confdefs.h <<\EOF
8605 #define NCURSES 1
8608 echo "$as_me:8608: checking for ncurses version" >&5
8609 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
8610 if test "${cf_cv_ncurses_version+set}" = set; then
8611 echo $ECHO_N "(cached) $ECHO_C" >&6
8612 else
8614 cf_cv_ncurses_version=no
8615 cf_tempfile=out$$
8616 rm -f $cf_tempfile
8617 if test "$cross_compiling" = yes; then
8619 # This will not work if the preprocessor splits the line after the
8620 # Autoconf token. The 'unproto' program does that.
8621 cat > conftest.$ac_ext <<EOF
8622 #include <${cf_cv_ncurses_header:-curses.h}>
8623 #undef Autoconf
8624 #ifdef NCURSES_VERSION
8625 Autoconf NCURSES_VERSION
8626 #else
8627 #ifdef __NCURSES_H
8628 Autoconf "old"
8629 #endif
8631 #endif
8633 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
8634 { (eval echo "$as_me:8634: \"$cf_try\"") >&5
8635 (eval $cf_try) 2>&5
8636 ac_status=$?
8637 echo "$as_me:8637: \$? = $ac_status" >&5
8638 (exit $ac_status); }
8639 if test -f conftest.out ; then
8640 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
8641 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
8642 rm -f conftest.out
8645 else
8646 cat >conftest.$ac_ext <<_ACEOF
8647 #line 8647 "configure"
8648 #include "confdefs.h"
8650 #include <${cf_cv_ncurses_header:-curses.h}>
8651 #include <stdio.h>
8652 int main()
8654 FILE *fp = fopen("$cf_tempfile", "w");
8655 #ifdef NCURSES_VERSION
8656 # ifdef NCURSES_VERSION_PATCH
8657 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
8658 # else
8659 fprintf(fp, "%s\n", NCURSES_VERSION);
8660 # endif
8661 #else
8662 # ifdef __NCURSES_H
8663 fprintf(fp, "old\n");
8664 # else
8665 make an error
8666 # endif
8667 #endif
8668 ${cf_cv_main_return:-return}(0);
8670 _ACEOF
8671 rm -f conftest$ac_exeext
8672 if { (eval echo "$as_me:8672: \"$ac_link\"") >&5
8673 (eval $ac_link) 2>&5
8674 ac_status=$?
8675 echo "$as_me:8675: \$? = $ac_status" >&5
8676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8677 { (eval echo "$as_me:8677: \"$ac_try\"") >&5
8678 (eval $ac_try) 2>&5
8679 ac_status=$?
8680 echo "$as_me:8680: \$? = $ac_status" >&5
8681 (exit $ac_status); }; }; then
8683 cf_cv_ncurses_version=`cat $cf_tempfile`
8684 else
8685 echo "$as_me: program exited with status $ac_status" >&5
8686 echo "$as_me: failed program was:" >&5
8687 cat conftest.$ac_ext >&5
8689 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8691 rm -f $cf_tempfile
8694 echo "$as_me:8694: result: $cf_cv_ncurses_version" >&5
8695 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
8696 test "$cf_cv_ncurses_version" = no || cat >>confdefs.h <<\EOF
8697 #define NCURSES 1
8700 cf_nculib_root=ncursesw
8701 # This works, except for the special case where we find gpm, but
8702 # ncurses is in a nonstandard location via $LIBS, and we really want
8703 # to link gpm.
8704 cf_ncurses_LIBS=""
8705 cf_ncurses_SAVE="$LIBS"
8706 echo "$as_me:8706: checking for Gpm_Open in -lgpm" >&5
8707 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
8708 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
8709 echo $ECHO_N "(cached) $ECHO_C" >&6
8710 else
8711 ac_check_lib_save_LIBS=$LIBS
8712 LIBS="-lgpm $LIBS"
8713 cat >conftest.$ac_ext <<_ACEOF
8714 #line 8714 "configure"
8715 #include "confdefs.h"
8717 /* Override any gcc2 internal prototype to avoid an error. */
8718 #ifdef __cplusplus
8719 extern "C"
8720 #endif
8721 /* We use char because int might match the return type of a gcc2
8722 builtin and then its argument prototype would still apply. */
8723 char Gpm_Open ();
8725 main ()
8727 Gpm_Open ();
8729 return 0;
8731 _ACEOF
8732 rm -f conftest.$ac_objext conftest$ac_exeext
8733 if { (eval echo "$as_me:8733: \"$ac_link\"") >&5
8734 (eval $ac_link) 2>&5
8735 ac_status=$?
8736 echo "$as_me:8736: \$? = $ac_status" >&5
8737 (exit $ac_status); } &&
8738 { ac_try='test -s conftest$ac_exeext'
8739 { (eval echo "$as_me:8739: \"$ac_try\"") >&5
8740 (eval $ac_try) 2>&5
8741 ac_status=$?
8742 echo "$as_me:8742: \$? = $ac_status" >&5
8743 (exit $ac_status); }; }; then
8744 ac_cv_lib_gpm_Gpm_Open=yes
8745 else
8746 echo "$as_me: failed program was:" >&5
8747 cat conftest.$ac_ext >&5
8748 ac_cv_lib_gpm_Gpm_Open=no
8750 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8751 LIBS=$ac_check_lib_save_LIBS
8753 echo "$as_me:8753: result: $ac_cv_lib_gpm_Gpm_Open" >&5
8754 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
8755 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
8756 echo "$as_me:8756: checking for initscr in -lgpm" >&5
8757 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
8758 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
8759 echo $ECHO_N "(cached) $ECHO_C" >&6
8760 else
8761 ac_check_lib_save_LIBS=$LIBS
8762 LIBS="-lgpm $LIBS"
8763 cat >conftest.$ac_ext <<_ACEOF
8764 #line 8764 "configure"
8765 #include "confdefs.h"
8767 /* Override any gcc2 internal prototype to avoid an error. */
8768 #ifdef __cplusplus
8769 extern "C"
8770 #endif
8771 /* We use char because int might match the return type of a gcc2
8772 builtin and then its argument prototype would still apply. */
8773 char initscr ();
8775 main ()
8777 initscr ();
8779 return 0;
8781 _ACEOF
8782 rm -f conftest.$ac_objext conftest$ac_exeext
8783 if { (eval echo "$as_me:8783: \"$ac_link\"") >&5
8784 (eval $ac_link) 2>&5
8785 ac_status=$?
8786 echo "$as_me:8786: \$? = $ac_status" >&5
8787 (exit $ac_status); } &&
8788 { ac_try='test -s conftest$ac_exeext'
8789 { (eval echo "$as_me:8789: \"$ac_try\"") >&5
8790 (eval $ac_try) 2>&5
8791 ac_status=$?
8792 echo "$as_me:8792: \$? = $ac_status" >&5
8793 (exit $ac_status); }; }; then
8794 ac_cv_lib_gpm_initscr=yes
8795 else
8796 echo "$as_me: failed program was:" >&5
8797 cat conftest.$ac_ext >&5
8798 ac_cv_lib_gpm_initscr=no
8800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8801 LIBS=$ac_check_lib_save_LIBS
8803 echo "$as_me:8803: result: $ac_cv_lib_gpm_initscr" >&5
8804 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
8805 if test $ac_cv_lib_gpm_initscr = yes; then
8806 LIBS="$cf_ncurses_SAVE"
8807 else
8808 cf_ncurses_LIBS="-lgpm"
8813 case $host_os in #(vi
8814 freebsd*)
8815 # This is only necessary if you are linking against an obsolete
8816 # version of ncurses (but it should do no harm, since it's static).
8817 if test "$cf_nculib_root" = ncurses ; then
8818 echo "$as_me:8818: checking for tgoto in -lmytinfo" >&5
8819 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
8820 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
8821 echo $ECHO_N "(cached) $ECHO_C" >&6
8822 else
8823 ac_check_lib_save_LIBS=$LIBS
8824 LIBS="-lmytinfo $LIBS"
8825 cat >conftest.$ac_ext <<_ACEOF
8826 #line 8826 "configure"
8827 #include "confdefs.h"
8829 /* Override any gcc2 internal prototype to avoid an error. */
8830 #ifdef __cplusplus
8831 extern "C"
8832 #endif
8833 /* We use char because int might match the return type of a gcc2
8834 builtin and then its argument prototype would still apply. */
8835 char tgoto ();
8837 main ()
8839 tgoto ();
8841 return 0;
8843 _ACEOF
8844 rm -f conftest.$ac_objext conftest$ac_exeext
8845 if { (eval echo "$as_me:8845: \"$ac_link\"") >&5
8846 (eval $ac_link) 2>&5
8847 ac_status=$?
8848 echo "$as_me:8848: \$? = $ac_status" >&5
8849 (exit $ac_status); } &&
8850 { ac_try='test -s conftest$ac_exeext'
8851 { (eval echo "$as_me:8851: \"$ac_try\"") >&5
8852 (eval $ac_try) 2>&5
8853 ac_status=$?
8854 echo "$as_me:8854: \$? = $ac_status" >&5
8855 (exit $ac_status); }; }; then
8856 ac_cv_lib_mytinfo_tgoto=yes
8857 else
8858 echo "$as_me: failed program was:" >&5
8859 cat conftest.$ac_ext >&5
8860 ac_cv_lib_mytinfo_tgoto=no
8862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8863 LIBS=$ac_check_lib_save_LIBS
8865 echo "$as_me:8865: result: $ac_cv_lib_mytinfo_tgoto" >&5
8866 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
8867 if test $ac_cv_lib_mytinfo_tgoto = yes; then
8868 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
8873 esac
8875 LIBS="$cf_ncurses_LIBS $LIBS"
8877 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
8878 then
8879 LIBS="-l$cf_nculib_root $LIBS"
8880 else
8882 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
8883 cf_libdir=""
8884 echo "$as_me:8884: checking for initscr" >&5
8885 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
8886 if test "${ac_cv_func_initscr+set}" = set; then
8887 echo $ECHO_N "(cached) $ECHO_C" >&6
8888 else
8889 cat >conftest.$ac_ext <<_ACEOF
8890 #line 8890 "configure"
8891 #include "confdefs.h"
8892 /* System header to define __stub macros and hopefully few prototypes,
8893 which can conflict with char initscr (); below. */
8894 #include <assert.h>
8895 /* Override any gcc2 internal prototype to avoid an error. */
8896 #ifdef __cplusplus
8897 extern "C"
8898 #endif
8899 /* We use char because int might match the return type of a gcc2
8900 builtin and then its argument prototype would still apply. */
8901 char initscr ();
8902 char (*f) ();
8905 main ()
8907 /* The GNU C library defines this for functions which it implements
8908 to always fail with ENOSYS. Some functions are actually named
8909 something starting with __ and the normal name is an alias. */
8910 #if defined (__stub_initscr) || defined (__stub___initscr)
8911 choke me
8912 #else
8913 f = initscr;
8914 #endif
8917 return 0;
8919 _ACEOF
8920 rm -f conftest.$ac_objext conftest$ac_exeext
8921 if { (eval echo "$as_me:8921: \"$ac_link\"") >&5
8922 (eval $ac_link) 2>&5
8923 ac_status=$?
8924 echo "$as_me:8924: \$? = $ac_status" >&5
8925 (exit $ac_status); } &&
8926 { ac_try='test -s conftest$ac_exeext'
8927 { (eval echo "$as_me:8927: \"$ac_try\"") >&5
8928 (eval $ac_try) 2>&5
8929 ac_status=$?
8930 echo "$as_me:8930: \$? = $ac_status" >&5
8931 (exit $ac_status); }; }; then
8932 ac_cv_func_initscr=yes
8933 else
8934 echo "$as_me: failed program was:" >&5
8935 cat conftest.$ac_ext >&5
8936 ac_cv_func_initscr=no
8938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8940 echo "$as_me:8940: result: $ac_cv_func_initscr" >&5
8941 echo "${ECHO_T}$ac_cv_func_initscr" >&6
8942 if test $ac_cv_func_initscr = yes; then
8943 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
8944 else
8946 cf_save_LIBS="$LIBS"
8947 echo "$as_me:8947: checking for initscr in -l$cf_nculib_root" >&5
8948 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
8949 LIBS="-l$cf_nculib_root $LIBS"
8950 cat >conftest.$ac_ext <<_ACEOF
8951 #line 8951 "configure"
8952 #include "confdefs.h"
8953 #include <${cf_cv_ncurses_header:-curses.h}>
8955 main ()
8957 initscr()
8959 return 0;
8961 _ACEOF
8962 rm -f conftest.$ac_objext conftest$ac_exeext
8963 if { (eval echo "$as_me:8963: \"$ac_link\"") >&5
8964 (eval $ac_link) 2>&5
8965 ac_status=$?
8966 echo "$as_me:8966: \$? = $ac_status" >&5
8967 (exit $ac_status); } &&
8968 { ac_try='test -s conftest$ac_exeext'
8969 { (eval echo "$as_me:8969: \"$ac_try\"") >&5
8970 (eval $ac_try) 2>&5
8971 ac_status=$?
8972 echo "$as_me:8972: \$? = $ac_status" >&5
8973 (exit $ac_status); }; }; then
8974 echo "$as_me:8974: result: yes" >&5
8975 echo "${ECHO_T}yes" >&6
8976 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
8978 else
8979 echo "$as_me: failed program was:" >&5
8980 cat conftest.$ac_ext >&5
8981 echo "$as_me:8981: result: no" >&5
8982 echo "${ECHO_T}no" >&6
8984 cf_search=
8985 cf_library_path_list=""
8986 if test -n "${LDFLAGS}${LIBS}" ; then
8987 for cf_library_path in $LDFLAGS $LIBS
8989 case $cf_library_path in #(vi
8990 -L*)
8991 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
8993 test "$cf_library_path" != "NONE" && \
8994 test -d "$cf_library_path" && \
8996 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
8997 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
8998 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
8999 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
9000 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
9001 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"
9004 cf_library_path_list="$cf_library_path_list $cf_search"
9006 esac
9007 done
9010 cf_search=
9012 test "/usr" != "$prefix" && \
9013 test -d "/usr" && \
9014 (test $prefix = NONE || test "/usr" != "$prefix") && {
9015 test -n "$verbose" && echo " ... testing for lib-directories under /usr"
9016 test -d /usr/lib && cf_search="$cf_search /usr/lib"
9017 test -d /usr/lib/$cf_nculib_root && cf_search="$cf_search /usr/lib/$cf_nculib_root"
9018 test -d /usr/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/lib/$cf_nculib_root/lib"
9019 test -d /usr/$cf_nculib_root/lib && cf_search="$cf_search /usr/$cf_nculib_root/lib"
9020 test -d /usr/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/$cf_nculib_root/lib/$cf_nculib_root"
9023 test "$prefix" != "NONE" && \
9024 test -d "$prefix" && \
9026 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
9027 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
9028 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
9029 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
9030 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
9031 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
9034 test "/usr/local" != "$prefix" && \
9035 test -d "/usr/local" && \
9036 (test $prefix = NONE || test "/usr/local" != "$prefix") && {
9037 test -n "$verbose" && echo " ... testing for lib-directories under /usr/local"
9038 test -d /usr/local/lib && cf_search="$cf_search /usr/local/lib"
9039 test -d /usr/local/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/lib/$cf_nculib_root"
9040 test -d /usr/local/lib/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/lib/$cf_nculib_root/lib"
9041 test -d /usr/local/$cf_nculib_root/lib && cf_search="$cf_search /usr/local/$cf_nculib_root/lib"
9042 test -d /usr/local/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /usr/local/$cf_nculib_root/lib/$cf_nculib_root"
9045 test "/opt" != "$prefix" && \
9046 test -d "/opt" && \
9047 (test $prefix = NONE || test "/opt" != "$prefix") && {
9048 test -n "$verbose" && echo " ... testing for lib-directories under /opt"
9049 test -d /opt/lib && cf_search="$cf_search /opt/lib"
9050 test -d /opt/lib/$cf_nculib_root && cf_search="$cf_search /opt/lib/$cf_nculib_root"
9051 test -d /opt/lib/$cf_nculib_root/lib && cf_search="$cf_search /opt/lib/$cf_nculib_root/lib"
9052 test -d /opt/$cf_nculib_root/lib && cf_search="$cf_search /opt/$cf_nculib_root/lib"
9053 test -d /opt/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search /opt/$cf_nculib_root/lib/$cf_nculib_root"
9056 test "$HOME" != "$prefix" && \
9057 test -d "$HOME" && \
9058 (test $prefix = NONE || test "$HOME" != "$prefix") && {
9059 test -n "$verbose" && echo " ... testing for lib-directories under $HOME"
9060 test -d $HOME/lib && cf_search="$cf_search $HOME/lib"
9061 test -d $HOME/lib/$cf_nculib_root && cf_search="$cf_search $HOME/lib/$cf_nculib_root"
9062 test -d $HOME/lib/$cf_nculib_root/lib && cf_search="$cf_search $HOME/lib/$cf_nculib_root/lib"
9063 test -d $HOME/$cf_nculib_root/lib && cf_search="$cf_search $HOME/$cf_nculib_root/lib"
9064 test -d $HOME/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $HOME/$cf_nculib_root/lib/$cf_nculib_root"
9067 cf_search="$cf_library_path_list $cf_search"
9069 for cf_libdir in $cf_search
9071 echo "$as_me:9071: checking for -l$cf_nculib_root in $cf_libdir" >&5
9072 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
9073 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
9074 cat >conftest.$ac_ext <<_ACEOF
9075 #line 9075 "configure"
9076 #include "confdefs.h"
9077 #include <${cf_cv_ncurses_header:-curses.h}>
9079 main ()
9081 initscr()
9083 return 0;
9085 _ACEOF
9086 rm -f conftest.$ac_objext conftest$ac_exeext
9087 if { (eval echo "$as_me:9087: \"$ac_link\"") >&5
9088 (eval $ac_link) 2>&5
9089 ac_status=$?
9090 echo "$as_me:9090: \$? = $ac_status" >&5
9091 (exit $ac_status); } &&
9092 { ac_try='test -s conftest$ac_exeext'
9093 { (eval echo "$as_me:9093: \"$ac_try\"") >&5
9094 (eval $ac_try) 2>&5
9095 ac_status=$?
9096 echo "$as_me:9096: \$? = $ac_status" >&5
9097 (exit $ac_status); }; }; then
9098 echo "$as_me:9098: result: yes" >&5
9099 echo "${ECHO_T}yes" >&6
9100 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
9101 break
9102 else
9103 echo "$as_me: failed program was:" >&5
9104 cat conftest.$ac_ext >&5
9105 echo "$as_me:9105: result: no" >&5
9106 echo "${ECHO_T}no" >&6
9107 LIBS="$cf_save_LIBS"
9109 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9110 done
9113 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9117 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
9119 if test $cf_found_library = no ; then
9120 { { echo "$as_me:9120: error: Cannot link $cf_nculib_root library" >&5
9121 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
9122 { (exit 1); exit 1; }; }
9127 if test -n "$cf_ncurses_LIBS" ; then
9128 echo "$as_me:9128: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
9129 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
9130 cf_ncurses_SAVE="$LIBS"
9131 for p in $cf_ncurses_LIBS ; do
9132 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
9133 if test "$q" != "$LIBS" ; then
9134 LIBS="$q"
9136 done
9137 cat >conftest.$ac_ext <<_ACEOF
9138 #line 9138 "configure"
9139 #include "confdefs.h"
9140 #include <${cf_cv_ncurses_header:-curses.h}>
9142 main ()
9144 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
9146 return 0;
9148 _ACEOF
9149 rm -f conftest.$ac_objext conftest$ac_exeext
9150 if { (eval echo "$as_me:9150: \"$ac_link\"") >&5
9151 (eval $ac_link) 2>&5
9152 ac_status=$?
9153 echo "$as_me:9153: \$? = $ac_status" >&5
9154 (exit $ac_status); } &&
9155 { ac_try='test -s conftest$ac_exeext'
9156 { (eval echo "$as_me:9156: \"$ac_try\"") >&5
9157 (eval $ac_try) 2>&5
9158 ac_status=$?
9159 echo "$as_me:9159: \$? = $ac_status" >&5
9160 (exit $ac_status); }; }; then
9161 echo "$as_me:9161: result: yes" >&5
9162 echo "${ECHO_T}yes" >&6
9163 else
9164 echo "$as_me: failed program was:" >&5
9165 cat conftest.$ac_ext >&5
9166 echo "$as_me:9166: result: no" >&5
9167 echo "${ECHO_T}no" >&6
9168 LIBS="$cf_ncurses_SAVE"
9170 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9173 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
9175 cat >>confdefs.h <<EOF
9176 #define $cf_nculib_ROOT 1
9182 pdcurses) #(vi
9184 echo "$as_me:9184: checking if you want to use pkg-config" >&5
9185 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
9187 # Check whether --with-pkg-config or --without-pkg-config was given.
9188 if test "${with_pkg_config+set}" = set; then
9189 withval="$with_pkg_config"
9190 cf_pkg_config=$withval
9191 else
9192 cf_pkg_config=yes
9194 echo "$as_me:9194: result: $cf_pkg_config" >&5
9195 echo "${ECHO_T}$cf_pkg_config" >&6
9197 case $cf_pkg_config in #(vi
9198 no) #(vi
9199 PKG_CONFIG=none
9201 yes) #(vi
9202 if test -n "$ac_tool_prefix"; then
9203 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9204 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9205 echo "$as_me:9205: checking for $ac_word" >&5
9206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9207 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6
9209 else
9210 case $PKG_CONFIG in
9211 [\\/]* | ?:[\\/]*)
9212 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9215 ac_save_IFS=$IFS; IFS=$ac_path_separator
9216 ac_dummy="$PATH"
9217 for ac_dir in $ac_dummy; do
9218 IFS=$ac_save_IFS
9219 test -z "$ac_dir" && ac_dir=.
9220 if $as_executable_p "$ac_dir/$ac_word"; then
9221 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
9222 echo "$as_me:9222: found $ac_dir/$ac_word" >&5
9223 break
9225 done
9228 esac
9230 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9232 if test -n "$PKG_CONFIG"; then
9233 echo "$as_me:9233: result: $PKG_CONFIG" >&5
9234 echo "${ECHO_T}$PKG_CONFIG" >&6
9235 else
9236 echo "$as_me:9236: result: no" >&5
9237 echo "${ECHO_T}no" >&6
9241 if test -z "$ac_cv_path_PKG_CONFIG"; then
9242 ac_pt_PKG_CONFIG=$PKG_CONFIG
9243 # Extract the first word of "pkg-config", so it can be a program name with args.
9244 set dummy pkg-config; ac_word=$2
9245 echo "$as_me:9245: checking for $ac_word" >&5
9246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9247 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
9248 echo $ECHO_N "(cached) $ECHO_C" >&6
9249 else
9250 case $ac_pt_PKG_CONFIG in
9251 [\\/]* | ?:[\\/]*)
9252 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9255 ac_save_IFS=$IFS; IFS=$ac_path_separator
9256 ac_dummy="$PATH"
9257 for ac_dir in $ac_dummy; do
9258 IFS=$ac_save_IFS
9259 test -z "$ac_dir" && ac_dir=.
9260 if $as_executable_p "$ac_dir/$ac_word"; then
9261 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
9262 echo "$as_me:9262: found $ac_dir/$ac_word" >&5
9263 break
9265 done
9267 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
9269 esac
9271 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9273 if test -n "$ac_pt_PKG_CONFIG"; then
9274 echo "$as_me:9274: result: $ac_pt_PKG_CONFIG" >&5
9275 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
9276 else
9277 echo "$as_me:9277: result: no" >&5
9278 echo "${ECHO_T}no" >&6
9281 PKG_CONFIG=$ac_pt_PKG_CONFIG
9282 else
9283 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9288 PKG_CONFIG=$withval
9290 esac
9292 test -z "$PKG_CONFIG" && PKG_CONFIG=none
9293 if test "$PKG_CONFIG" != none ; then
9295 if test "x$prefix" != xNONE; then
9296 cf_path_syntax="$prefix"
9297 else
9298 cf_path_syntax="$ac_default_prefix"
9301 case ".$PKG_CONFIG" in #(vi
9302 .\$\(*\)*|.\'*\'*) #(vi
9304 ..|./*|.\\*) #(vi
9306 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
9308 .\${*prefix}*) #(vi
9309 eval PKG_CONFIG="$PKG_CONFIG"
9310 case ".$PKG_CONFIG" in #(vi
9311 .NONE/*)
9312 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
9314 esac
9315 ;; #(vi
9316 .no|.NONE/*)
9317 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
9320 { { echo "$as_me:9320: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
9321 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
9322 { (exit 1); exit 1; }; }
9324 esac
9328 echo "$as_me:9328: checking for X" >&5
9329 echo $ECHO_N "checking for X... $ECHO_C" >&6
9331 # Check whether --with-x or --without-x was given.
9332 if test "${with_x+set}" = set; then
9333 withval="$with_x"
9336 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9337 if test "x$with_x" = xno; then
9338 # The user explicitly disabled X.
9339 have_x=disabled
9340 else
9341 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9342 # Both variables are already set.
9343 have_x=yes
9344 else
9345 if test "${ac_cv_have_x+set}" = set; then
9346 echo $ECHO_N "(cached) $ECHO_C" >&6
9347 else
9348 # One or both of the vars are not set, and there is no cached value.
9349 ac_x_includes=no ac_x_libraries=no
9350 rm -fr conftest.dir
9351 if mkdir conftest.dir; then
9352 cd conftest.dir
9353 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9354 cat >Imakefile <<'EOF'
9355 acfindx:
9356 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9358 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9359 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9360 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9361 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9362 for ac_extension in a so sl dylib dll; do
9363 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9364 test -f $ac_im_libdir/libX11.$ac_extension; then
9365 ac_im_usrlibdir=$ac_im_libdir; break
9367 done
9368 # Screen out bogus values from the imake configuration. They are
9369 # bogus both because they are the default anyway, and because
9370 # using them would break gcc on systems where it needs fixed includes.
9371 case $ac_im_incroot in
9372 /usr/include) ;;
9373 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9374 esac
9375 case $ac_im_usrlibdir in
9376 /usr/lib | /lib) ;;
9377 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9378 esac
9380 cd ..
9381 rm -fr conftest.dir
9384 # Standard set of common directories for X headers.
9385 # Check X11 before X11Rn because it is often a symlink to the current release.
9386 ac_x_header_dirs='
9387 /usr/X11/include
9388 /usr/X11R6/include
9389 /usr/X11R5/include
9390 /usr/X11R4/include
9392 /usr/include/X11
9393 /usr/include/X11R6
9394 /usr/include/X11R5
9395 /usr/include/X11R4
9397 /usr/local/X11/include
9398 /usr/local/X11R6/include
9399 /usr/local/X11R5/include
9400 /usr/local/X11R4/include
9402 /usr/local/include/X11
9403 /usr/local/include/X11R6
9404 /usr/local/include/X11R5
9405 /usr/local/include/X11R4
9407 /usr/X386/include
9408 /usr/x386/include
9409 /usr/XFree86/include/X11
9411 /usr/include
9412 /usr/local/include
9413 /usr/unsupported/include
9414 /usr/athena/include
9415 /usr/local/x11r5/include
9416 /usr/lpp/Xamples/include
9418 /usr/openwin/include
9419 /usr/openwin/share/include'
9421 if test "$ac_x_includes" = no; then
9422 # Guess where to find include files, by looking for Intrinsic.h.
9423 # First, try using that file with no special directory specified.
9424 cat >conftest.$ac_ext <<_ACEOF
9425 #line 9425 "configure"
9426 #include "confdefs.h"
9427 #include <X11/Intrinsic.h>
9428 _ACEOF
9429 if { (eval echo "$as_me:9429: \"$ac_cpp conftest.$ac_ext\"") >&5
9430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9431 ac_status=$?
9432 egrep -v '^ *\+' conftest.er1 >conftest.err
9433 rm -f conftest.er1
9434 cat conftest.err >&5
9435 echo "$as_me:9435: \$? = $ac_status" >&5
9436 (exit $ac_status); } >/dev/null; then
9437 if test -s conftest.err; then
9438 ac_cpp_err=$ac_c_preproc_warn_flag
9439 else
9440 ac_cpp_err=
9442 else
9443 ac_cpp_err=yes
9445 if test -z "$ac_cpp_err"; then
9446 # We can compile using X headers with no special include directory.
9447 ac_x_includes=
9448 else
9449 echo "$as_me: failed program was:" >&5
9450 cat conftest.$ac_ext >&5
9451 for ac_dir in $ac_x_header_dirs; do
9452 if test -r "$ac_dir/X11/Intrinsic.h"; then
9453 ac_x_includes=$ac_dir
9454 break
9456 done
9458 rm -f conftest.err conftest.$ac_ext
9459 fi # $ac_x_includes = no
9461 if test "$ac_x_libraries" = no; then
9462 # Check for the libraries.
9463 # See if we find them without any special options.
9464 # Don't add to $LIBS permanently.
9465 ac_save_LIBS=$LIBS
9466 LIBS="-lXt $LIBS"
9467 cat >conftest.$ac_ext <<_ACEOF
9468 #line 9468 "configure"
9469 #include "confdefs.h"
9470 #include <X11/Intrinsic.h>
9472 main ()
9474 XtMalloc (0)
9476 return 0;
9478 _ACEOF
9479 rm -f conftest.$ac_objext conftest$ac_exeext
9480 if { (eval echo "$as_me:9480: \"$ac_link\"") >&5
9481 (eval $ac_link) 2>&5
9482 ac_status=$?
9483 echo "$as_me:9483: \$? = $ac_status" >&5
9484 (exit $ac_status); } &&
9485 { ac_try='test -s conftest$ac_exeext'
9486 { (eval echo "$as_me:9486: \"$ac_try\"") >&5
9487 (eval $ac_try) 2>&5
9488 ac_status=$?
9489 echo "$as_me:9489: \$? = $ac_status" >&5
9490 (exit $ac_status); }; }; then
9491 LIBS=$ac_save_LIBS
9492 # We can link X programs with no special library path.
9493 ac_x_libraries=
9494 else
9495 echo "$as_me: failed program was:" >&5
9496 cat conftest.$ac_ext >&5
9497 LIBS=$ac_save_LIBS
9498 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9500 # Don't even attempt the hair of trying to link an X program!
9501 for ac_extension in a so sl dylib dll; do
9502 if test -r $ac_dir/libXt.$ac_extension; then
9503 ac_x_libraries=$ac_dir
9504 break 2
9506 done
9507 done
9509 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9510 fi # $ac_x_libraries = no
9512 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9513 # Didn't find X anywhere. Cache the known absence of X.
9514 ac_cv_have_x="have_x=no"
9515 else
9516 # Record where we found X for the cache.
9517 ac_cv_have_x="have_x=yes \
9518 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9523 eval "$ac_cv_have_x"
9524 fi # $with_x != no
9526 if test "$have_x" != yes; then
9527 echo "$as_me:9527: result: $have_x" >&5
9528 echo "${ECHO_T}$have_x" >&6
9529 no_x=yes
9530 else
9531 # If each of the values was on the command line, it overrides each guess.
9532 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9533 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9534 # Update the cache value to reflect the command line values.
9535 ac_cv_have_x="have_x=yes \
9536 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9537 echo "$as_me:9537: result: libraries $x_libraries, headers $x_includes" >&5
9538 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9541 if test "$no_x" = yes; then
9542 # Not all programs may use this symbol, but it does not hurt to define it.
9544 cat >>confdefs.h <<\EOF
9545 #define X_DISPLAY_MISSING 1
9548 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9549 else
9550 if test -n "$x_includes"; then
9551 X_CFLAGS="$X_CFLAGS -I$x_includes"
9554 # It would also be nice to do this for all -L options, not just this one.
9555 if test -n "$x_libraries"; then
9556 X_LIBS="$X_LIBS -L$x_libraries"
9557 # For Solaris; some versions of Sun CC require a space after -R and
9558 # others require no space. Words are not sufficient . . . .
9559 case `(uname -sr) 2>/dev/null` in
9560 "SunOS 5"*)
9561 echo "$as_me:9561: checking whether -R must be followed by a space" >&5
9562 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9563 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9564 cat >conftest.$ac_ext <<_ACEOF
9565 #line 9565 "configure"
9566 #include "confdefs.h"
9569 main ()
9573 return 0;
9575 _ACEOF
9576 rm -f conftest.$ac_objext conftest$ac_exeext
9577 if { (eval echo "$as_me:9577: \"$ac_link\"") >&5
9578 (eval $ac_link) 2>&5
9579 ac_status=$?
9580 echo "$as_me:9580: \$? = $ac_status" >&5
9581 (exit $ac_status); } &&
9582 { ac_try='test -s conftest$ac_exeext'
9583 { (eval echo "$as_me:9583: \"$ac_try\"") >&5
9584 (eval $ac_try) 2>&5
9585 ac_status=$?
9586 echo "$as_me:9586: \$? = $ac_status" >&5
9587 (exit $ac_status); }; }; then
9588 ac_R_nospace=yes
9589 else
9590 echo "$as_me: failed program was:" >&5
9591 cat conftest.$ac_ext >&5
9592 ac_R_nospace=no
9594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9595 if test $ac_R_nospace = yes; then
9596 echo "$as_me:9596: result: no" >&5
9597 echo "${ECHO_T}no" >&6
9598 X_LIBS="$X_LIBS -R$x_libraries"
9599 else
9600 LIBS="$ac_xsave_LIBS -R $x_libraries"
9601 cat >conftest.$ac_ext <<_ACEOF
9602 #line 9602 "configure"
9603 #include "confdefs.h"
9606 main ()
9610 return 0;
9612 _ACEOF
9613 rm -f conftest.$ac_objext conftest$ac_exeext
9614 if { (eval echo "$as_me:9614: \"$ac_link\"") >&5
9615 (eval $ac_link) 2>&5
9616 ac_status=$?
9617 echo "$as_me:9617: \$? = $ac_status" >&5
9618 (exit $ac_status); } &&
9619 { ac_try='test -s conftest$ac_exeext'
9620 { (eval echo "$as_me:9620: \"$ac_try\"") >&5
9621 (eval $ac_try) 2>&5
9622 ac_status=$?
9623 echo "$as_me:9623: \$? = $ac_status" >&5
9624 (exit $ac_status); }; }; then
9625 ac_R_space=yes
9626 else
9627 echo "$as_me: failed program was:" >&5
9628 cat conftest.$ac_ext >&5
9629 ac_R_space=no
9631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9632 if test $ac_R_space = yes; then
9633 echo "$as_me:9633: result: yes" >&5
9634 echo "${ECHO_T}yes" >&6
9635 X_LIBS="$X_LIBS -R $x_libraries"
9636 else
9637 echo "$as_me:9637: result: neither works" >&5
9638 echo "${ECHO_T}neither works" >&6
9641 LIBS=$ac_xsave_LIBS
9642 esac
9645 # Check for system-dependent libraries X programs must link with.
9646 # Do this before checking for the system-independent R6 libraries
9647 # (-lICE), since we may need -lsocket or whatever for X linking.
9649 if test "$ISC" = yes; then
9650 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9651 else
9652 # Martyn Johnson says this is needed for Ultrix, if the X
9653 # libraries were built with DECnet support. And Karl Berry says
9654 # the Alpha needs dnet_stub (dnet does not exist).
9655 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9656 cat >conftest.$ac_ext <<_ACEOF
9657 #line 9657 "configure"
9658 #include "confdefs.h"
9660 /* Override any gcc2 internal prototype to avoid an error. */
9661 #ifdef __cplusplus
9662 extern "C"
9663 #endif
9664 /* We use char because int might match the return type of a gcc2
9665 builtin and then its argument prototype would still apply. */
9666 char XOpenDisplay ();
9668 main ()
9670 XOpenDisplay ();
9672 return 0;
9674 _ACEOF
9675 rm -f conftest.$ac_objext conftest$ac_exeext
9676 if { (eval echo "$as_me:9676: \"$ac_link\"") >&5
9677 (eval $ac_link) 2>&5
9678 ac_status=$?
9679 echo "$as_me:9679: \$? = $ac_status" >&5
9680 (exit $ac_status); } &&
9681 { ac_try='test -s conftest$ac_exeext'
9682 { (eval echo "$as_me:9682: \"$ac_try\"") >&5
9683 (eval $ac_try) 2>&5
9684 ac_status=$?
9685 echo "$as_me:9685: \$? = $ac_status" >&5
9686 (exit $ac_status); }; }; then
9688 else
9689 echo "$as_me: failed program was:" >&5
9690 cat conftest.$ac_ext >&5
9691 echo "$as_me:9691: checking for dnet_ntoa in -ldnet" >&5
9692 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9693 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9694 echo $ECHO_N "(cached) $ECHO_C" >&6
9695 else
9696 ac_check_lib_save_LIBS=$LIBS
9697 LIBS="-ldnet $LIBS"
9698 cat >conftest.$ac_ext <<_ACEOF
9699 #line 9699 "configure"
9700 #include "confdefs.h"
9702 /* Override any gcc2 internal prototype to avoid an error. */
9703 #ifdef __cplusplus
9704 extern "C"
9705 #endif
9706 /* We use char because int might match the return type of a gcc2
9707 builtin and then its argument prototype would still apply. */
9708 char dnet_ntoa ();
9710 main ()
9712 dnet_ntoa ();
9714 return 0;
9716 _ACEOF
9717 rm -f conftest.$ac_objext conftest$ac_exeext
9718 if { (eval echo "$as_me:9718: \"$ac_link\"") >&5
9719 (eval $ac_link) 2>&5
9720 ac_status=$?
9721 echo "$as_me:9721: \$? = $ac_status" >&5
9722 (exit $ac_status); } &&
9723 { ac_try='test -s conftest$ac_exeext'
9724 { (eval echo "$as_me:9724: \"$ac_try\"") >&5
9725 (eval $ac_try) 2>&5
9726 ac_status=$?
9727 echo "$as_me:9727: \$? = $ac_status" >&5
9728 (exit $ac_status); }; }; then
9729 ac_cv_lib_dnet_dnet_ntoa=yes
9730 else
9731 echo "$as_me: failed program was:" >&5
9732 cat conftest.$ac_ext >&5
9733 ac_cv_lib_dnet_dnet_ntoa=no
9735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9736 LIBS=$ac_check_lib_save_LIBS
9738 echo "$as_me:9738: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9739 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9740 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9741 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9744 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9745 echo "$as_me:9745: checking for dnet_ntoa in -ldnet_stub" >&5
9746 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9747 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9748 echo $ECHO_N "(cached) $ECHO_C" >&6
9749 else
9750 ac_check_lib_save_LIBS=$LIBS
9751 LIBS="-ldnet_stub $LIBS"
9752 cat >conftest.$ac_ext <<_ACEOF
9753 #line 9753 "configure"
9754 #include "confdefs.h"
9756 /* Override any gcc2 internal prototype to avoid an error. */
9757 #ifdef __cplusplus
9758 extern "C"
9759 #endif
9760 /* We use char because int might match the return type of a gcc2
9761 builtin and then its argument prototype would still apply. */
9762 char dnet_ntoa ();
9764 main ()
9766 dnet_ntoa ();
9768 return 0;
9770 _ACEOF
9771 rm -f conftest.$ac_objext conftest$ac_exeext
9772 if { (eval echo "$as_me:9772: \"$ac_link\"") >&5
9773 (eval $ac_link) 2>&5
9774 ac_status=$?
9775 echo "$as_me:9775: \$? = $ac_status" >&5
9776 (exit $ac_status); } &&
9777 { ac_try='test -s conftest$ac_exeext'
9778 { (eval echo "$as_me:9778: \"$ac_try\"") >&5
9779 (eval $ac_try) 2>&5
9780 ac_status=$?
9781 echo "$as_me:9781: \$? = $ac_status" >&5
9782 (exit $ac_status); }; }; then
9783 ac_cv_lib_dnet_stub_dnet_ntoa=yes
9784 else
9785 echo "$as_me: failed program was:" >&5
9786 cat conftest.$ac_ext >&5
9787 ac_cv_lib_dnet_stub_dnet_ntoa=no
9789 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9790 LIBS=$ac_check_lib_save_LIBS
9792 echo "$as_me:9792: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9793 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9794 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9795 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9801 LIBS="$ac_xsave_LIBS"
9803 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9804 # to get the SysV transport functions.
9805 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9806 # needs -lnsl.
9807 # The nsl library prevents programs from opening the X display
9808 # on Irix 5.2, according to T.E. Dickey.
9809 # The functions gethostbyname, getservbyname, and inet_addr are
9810 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9811 echo "$as_me:9811: checking for gethostbyname" >&5
9812 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9813 if test "${ac_cv_func_gethostbyname+set}" = set; then
9814 echo $ECHO_N "(cached) $ECHO_C" >&6
9815 else
9816 cat >conftest.$ac_ext <<_ACEOF
9817 #line 9817 "configure"
9818 #include "confdefs.h"
9819 /* System header to define __stub macros and hopefully few prototypes,
9820 which can conflict with char gethostbyname (); below. */
9821 #include <assert.h>
9822 /* Override any gcc2 internal prototype to avoid an error. */
9823 #ifdef __cplusplus
9824 extern "C"
9825 #endif
9826 /* We use char because int might match the return type of a gcc2
9827 builtin and then its argument prototype would still apply. */
9828 char gethostbyname ();
9829 char (*f) ();
9832 main ()
9834 /* The GNU C library defines this for functions which it implements
9835 to always fail with ENOSYS. Some functions are actually named
9836 something starting with __ and the normal name is an alias. */
9837 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9838 choke me
9839 #else
9840 f = gethostbyname;
9841 #endif
9844 return 0;
9846 _ACEOF
9847 rm -f conftest.$ac_objext conftest$ac_exeext
9848 if { (eval echo "$as_me:9848: \"$ac_link\"") >&5
9849 (eval $ac_link) 2>&5
9850 ac_status=$?
9851 echo "$as_me:9851: \$? = $ac_status" >&5
9852 (exit $ac_status); } &&
9853 { ac_try='test -s conftest$ac_exeext'
9854 { (eval echo "$as_me:9854: \"$ac_try\"") >&5
9855 (eval $ac_try) 2>&5
9856 ac_status=$?
9857 echo "$as_me:9857: \$? = $ac_status" >&5
9858 (exit $ac_status); }; }; then
9859 ac_cv_func_gethostbyname=yes
9860 else
9861 echo "$as_me: failed program was:" >&5
9862 cat conftest.$ac_ext >&5
9863 ac_cv_func_gethostbyname=no
9865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9867 echo "$as_me:9867: result: $ac_cv_func_gethostbyname" >&5
9868 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9870 if test $ac_cv_func_gethostbyname = no; then
9871 echo "$as_me:9871: checking for gethostbyname in -lnsl" >&5
9872 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9873 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9874 echo $ECHO_N "(cached) $ECHO_C" >&6
9875 else
9876 ac_check_lib_save_LIBS=$LIBS
9877 LIBS="-lnsl $LIBS"
9878 cat >conftest.$ac_ext <<_ACEOF
9879 #line 9879 "configure"
9880 #include "confdefs.h"
9882 /* Override any gcc2 internal prototype to avoid an error. */
9883 #ifdef __cplusplus
9884 extern "C"
9885 #endif
9886 /* We use char because int might match the return type of a gcc2
9887 builtin and then its argument prototype would still apply. */
9888 char gethostbyname ();
9890 main ()
9892 gethostbyname ();
9894 return 0;
9896 _ACEOF
9897 rm -f conftest.$ac_objext conftest$ac_exeext
9898 if { (eval echo "$as_me:9898: \"$ac_link\"") >&5
9899 (eval $ac_link) 2>&5
9900 ac_status=$?
9901 echo "$as_me:9901: \$? = $ac_status" >&5
9902 (exit $ac_status); } &&
9903 { ac_try='test -s conftest$ac_exeext'
9904 { (eval echo "$as_me:9904: \"$ac_try\"") >&5
9905 (eval $ac_try) 2>&5
9906 ac_status=$?
9907 echo "$as_me:9907: \$? = $ac_status" >&5
9908 (exit $ac_status); }; }; then
9909 ac_cv_lib_nsl_gethostbyname=yes
9910 else
9911 echo "$as_me: failed program was:" >&5
9912 cat conftest.$ac_ext >&5
9913 ac_cv_lib_nsl_gethostbyname=no
9915 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9916 LIBS=$ac_check_lib_save_LIBS
9918 echo "$as_me:9918: result: $ac_cv_lib_nsl_gethostbyname" >&5
9919 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9920 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9921 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9924 if test $ac_cv_lib_nsl_gethostbyname = no; then
9925 echo "$as_me:9925: checking for gethostbyname in -lbsd" >&5
9926 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9927 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9928 echo $ECHO_N "(cached) $ECHO_C" >&6
9929 else
9930 ac_check_lib_save_LIBS=$LIBS
9931 LIBS="-lbsd $LIBS"
9932 cat >conftest.$ac_ext <<_ACEOF
9933 #line 9933 "configure"
9934 #include "confdefs.h"
9936 /* Override any gcc2 internal prototype to avoid an error. */
9937 #ifdef __cplusplus
9938 extern "C"
9939 #endif
9940 /* We use char because int might match the return type of a gcc2
9941 builtin and then its argument prototype would still apply. */
9942 char gethostbyname ();
9944 main ()
9946 gethostbyname ();
9948 return 0;
9950 _ACEOF
9951 rm -f conftest.$ac_objext conftest$ac_exeext
9952 if { (eval echo "$as_me:9952: \"$ac_link\"") >&5
9953 (eval $ac_link) 2>&5
9954 ac_status=$?
9955 echo "$as_me:9955: \$? = $ac_status" >&5
9956 (exit $ac_status); } &&
9957 { ac_try='test -s conftest$ac_exeext'
9958 { (eval echo "$as_me:9958: \"$ac_try\"") >&5
9959 (eval $ac_try) 2>&5
9960 ac_status=$?
9961 echo "$as_me:9961: \$? = $ac_status" >&5
9962 (exit $ac_status); }; }; then
9963 ac_cv_lib_bsd_gethostbyname=yes
9964 else
9965 echo "$as_me: failed program was:" >&5
9966 cat conftest.$ac_ext >&5
9967 ac_cv_lib_bsd_gethostbyname=no
9969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9970 LIBS=$ac_check_lib_save_LIBS
9972 echo "$as_me:9972: result: $ac_cv_lib_bsd_gethostbyname" >&5
9973 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9974 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9975 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9981 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9982 # socket/setsockopt and other routines are undefined under SCO ODT
9983 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9984 # on later versions), says Simon Leinen: it contains gethostby*
9985 # variants that don't use the nameserver (or something). -lsocket
9986 # must be given before -lnsl if both are needed. We assume that
9987 # if connect needs -lnsl, so does gethostbyname.
9988 echo "$as_me:9988: checking for connect" >&5
9989 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9990 if test "${ac_cv_func_connect+set}" = set; then
9991 echo $ECHO_N "(cached) $ECHO_C" >&6
9992 else
9993 cat >conftest.$ac_ext <<_ACEOF
9994 #line 9994 "configure"
9995 #include "confdefs.h"
9996 /* System header to define __stub macros and hopefully few prototypes,
9997 which can conflict with char connect (); below. */
9998 #include <assert.h>
9999 /* Override any gcc2 internal prototype to avoid an error. */
10000 #ifdef __cplusplus
10001 extern "C"
10002 #endif
10003 /* We use char because int might match the return type of a gcc2
10004 builtin and then its argument prototype would still apply. */
10005 char connect ();
10006 char (*f) ();
10009 main ()
10011 /* The GNU C library defines this for functions which it implements
10012 to always fail with ENOSYS. Some functions are actually named
10013 something starting with __ and the normal name is an alias. */
10014 #if defined (__stub_connect) || defined (__stub___connect)
10015 choke me
10016 #else
10017 f = connect;
10018 #endif
10021 return 0;
10023 _ACEOF
10024 rm -f conftest.$ac_objext conftest$ac_exeext
10025 if { (eval echo "$as_me:10025: \"$ac_link\"") >&5
10026 (eval $ac_link) 2>&5
10027 ac_status=$?
10028 echo "$as_me:10028: \$? = $ac_status" >&5
10029 (exit $ac_status); } &&
10030 { ac_try='test -s conftest$ac_exeext'
10031 { (eval echo "$as_me:10031: \"$ac_try\"") >&5
10032 (eval $ac_try) 2>&5
10033 ac_status=$?
10034 echo "$as_me:10034: \$? = $ac_status" >&5
10035 (exit $ac_status); }; }; then
10036 ac_cv_func_connect=yes
10037 else
10038 echo "$as_me: failed program was:" >&5
10039 cat conftest.$ac_ext >&5
10040 ac_cv_func_connect=no
10042 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10044 echo "$as_me:10044: result: $ac_cv_func_connect" >&5
10045 echo "${ECHO_T}$ac_cv_func_connect" >&6
10047 if test $ac_cv_func_connect = no; then
10048 echo "$as_me:10048: checking for connect in -lsocket" >&5
10049 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10050 if test "${ac_cv_lib_socket_connect+set}" = set; then
10051 echo $ECHO_N "(cached) $ECHO_C" >&6
10052 else
10053 ac_check_lib_save_LIBS=$LIBS
10054 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10055 cat >conftest.$ac_ext <<_ACEOF
10056 #line 10056 "configure"
10057 #include "confdefs.h"
10059 /* Override any gcc2 internal prototype to avoid an error. */
10060 #ifdef __cplusplus
10061 extern "C"
10062 #endif
10063 /* We use char because int might match the return type of a gcc2
10064 builtin and then its argument prototype would still apply. */
10065 char connect ();
10067 main ()
10069 connect ();
10071 return 0;
10073 _ACEOF
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
10077 ac_status=$?
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
10083 ac_status=$?
10084 echo "$as_me:10084: \$? = $ac_status" >&5
10085 (exit $ac_status); }; }; then
10086 ac_cv_lib_socket_connect=yes
10087 else
10088 echo "$as_me: failed program was:" >&5
10089 cat conftest.$ac_ext >&5
10090 ac_cv_lib_socket_connect=no
10092 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10093 LIBS=$ac_check_lib_save_LIBS
10095 echo "$as_me:10095: result: $ac_cv_lib_socket_connect" >&5
10096 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10097 if test $ac_cv_lib_socket_connect = yes; then
10098 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10103 # Guillermo Gomez says -lposix is necessary on A/UX.
10104 echo "$as_me:10104: checking for remove" >&5
10105 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10106 if test "${ac_cv_func_remove+set}" = set; then
10107 echo $ECHO_N "(cached) $ECHO_C" >&6
10108 else
10109 cat >conftest.$ac_ext <<_ACEOF
10110 #line 10110 "configure"
10111 #include "confdefs.h"
10112 /* System header to define __stub macros and hopefully few prototypes,
10113 which can conflict with char remove (); below. */
10114 #include <assert.h>
10115 /* Override any gcc2 internal prototype to avoid an error. */
10116 #ifdef __cplusplus
10117 extern "C"
10118 #endif
10119 /* We use char because int might match the return type of a gcc2
10120 builtin and then its argument prototype would still apply. */
10121 char remove ();
10122 char (*f) ();
10125 main ()
10127 /* The GNU C library defines this for functions which it implements
10128 to always fail with ENOSYS. Some functions are actually named
10129 something starting with __ and the normal name is an alias. */
10130 #if defined (__stub_remove) || defined (__stub___remove)
10131 choke me
10132 #else
10133 f = remove;
10134 #endif
10137 return 0;
10139 _ACEOF
10140 rm -f conftest.$ac_objext conftest$ac_exeext
10141 if { (eval echo "$as_me:10141: \"$ac_link\"") >&5
10142 (eval $ac_link) 2>&5
10143 ac_status=$?
10144 echo "$as_me:10144: \$? = $ac_status" >&5
10145 (exit $ac_status); } &&
10146 { ac_try='test -s conftest$ac_exeext'
10147 { (eval echo "$as_me:10147: \"$ac_try\"") >&5
10148 (eval $ac_try) 2>&5
10149 ac_status=$?
10150 echo "$as_me:10150: \$? = $ac_status" >&5
10151 (exit $ac_status); }; }; then
10152 ac_cv_func_remove=yes
10153 else
10154 echo "$as_me: failed program was:" >&5
10155 cat conftest.$ac_ext >&5
10156 ac_cv_func_remove=no
10158 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10160 echo "$as_me:10160: result: $ac_cv_func_remove" >&5
10161 echo "${ECHO_T}$ac_cv_func_remove" >&6
10163 if test $ac_cv_func_remove = no; then
10164 echo "$as_me:10164: checking for remove in -lposix" >&5
10165 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10166 if test "${ac_cv_lib_posix_remove+set}" = set; then
10167 echo $ECHO_N "(cached) $ECHO_C" >&6
10168 else
10169 ac_check_lib_save_LIBS=$LIBS
10170 LIBS="-lposix $LIBS"
10171 cat >conftest.$ac_ext <<_ACEOF
10172 #line 10172 "configure"
10173 #include "confdefs.h"
10175 /* Override any gcc2 internal prototype to avoid an error. */
10176 #ifdef __cplusplus
10177 extern "C"
10178 #endif
10179 /* We use char because int might match the return type of a gcc2
10180 builtin and then its argument prototype would still apply. */
10181 char remove ();
10183 main ()
10185 remove ();
10187 return 0;
10189 _ACEOF
10190 rm -f conftest.$ac_objext conftest$ac_exeext
10191 if { (eval echo "$as_me:10191: \"$ac_link\"") >&5
10192 (eval $ac_link) 2>&5
10193 ac_status=$?
10194 echo "$as_me:10194: \$? = $ac_status" >&5
10195 (exit $ac_status); } &&
10196 { ac_try='test -s conftest$ac_exeext'
10197 { (eval echo "$as_me:10197: \"$ac_try\"") >&5
10198 (eval $ac_try) 2>&5
10199 ac_status=$?
10200 echo "$as_me:10200: \$? = $ac_status" >&5
10201 (exit $ac_status); }; }; then
10202 ac_cv_lib_posix_remove=yes
10203 else
10204 echo "$as_me: failed program was:" >&5
10205 cat conftest.$ac_ext >&5
10206 ac_cv_lib_posix_remove=no
10208 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10209 LIBS=$ac_check_lib_save_LIBS
10211 echo "$as_me:10211: result: $ac_cv_lib_posix_remove" >&5
10212 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10213 if test $ac_cv_lib_posix_remove = yes; then
10214 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10219 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10220 echo "$as_me:10220: checking for shmat" >&5
10221 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10222 if test "${ac_cv_func_shmat+set}" = set; then
10223 echo $ECHO_N "(cached) $ECHO_C" >&6
10224 else
10225 cat >conftest.$ac_ext <<_ACEOF
10226 #line 10226 "configure"
10227 #include "confdefs.h"
10228 /* System header to define __stub macros and hopefully few prototypes,
10229 which can conflict with char shmat (); below. */
10230 #include <assert.h>
10231 /* Override any gcc2 internal prototype to avoid an error. */
10232 #ifdef __cplusplus
10233 extern "C"
10234 #endif
10235 /* We use char because int might match the return type of a gcc2
10236 builtin and then its argument prototype would still apply. */
10237 char shmat ();
10238 char (*f) ();
10241 main ()
10243 /* The GNU C library defines this for functions which it implements
10244 to always fail with ENOSYS. Some functions are actually named
10245 something starting with __ and the normal name is an alias. */
10246 #if defined (__stub_shmat) || defined (__stub___shmat)
10247 choke me
10248 #else
10249 f = shmat;
10250 #endif
10253 return 0;
10255 _ACEOF
10256 rm -f conftest.$ac_objext conftest$ac_exeext
10257 if { (eval echo "$as_me:10257: \"$ac_link\"") >&5
10258 (eval $ac_link) 2>&5
10259 ac_status=$?
10260 echo "$as_me:10260: \$? = $ac_status" >&5
10261 (exit $ac_status); } &&
10262 { ac_try='test -s conftest$ac_exeext'
10263 { (eval echo "$as_me:10263: \"$ac_try\"") >&5
10264 (eval $ac_try) 2>&5
10265 ac_status=$?
10266 echo "$as_me:10266: \$? = $ac_status" >&5
10267 (exit $ac_status); }; }; then
10268 ac_cv_func_shmat=yes
10269 else
10270 echo "$as_me: failed program was:" >&5
10271 cat conftest.$ac_ext >&5
10272 ac_cv_func_shmat=no
10274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10276 echo "$as_me:10276: result: $ac_cv_func_shmat" >&5
10277 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10279 if test $ac_cv_func_shmat = no; then
10280 echo "$as_me:10280: checking for shmat in -lipc" >&5
10281 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10282 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10283 echo $ECHO_N "(cached) $ECHO_C" >&6
10284 else
10285 ac_check_lib_save_LIBS=$LIBS
10286 LIBS="-lipc $LIBS"
10287 cat >conftest.$ac_ext <<_ACEOF
10288 #line 10288 "configure"
10289 #include "confdefs.h"
10291 /* Override any gcc2 internal prototype to avoid an error. */
10292 #ifdef __cplusplus
10293 extern "C"
10294 #endif
10295 /* We use char because int might match the return type of a gcc2
10296 builtin and then its argument prototype would still apply. */
10297 char shmat ();
10299 main ()
10301 shmat ();
10303 return 0;
10305 _ACEOF
10306 rm -f conftest.$ac_objext conftest$ac_exeext
10307 if { (eval echo "$as_me:10307: \"$ac_link\"") >&5
10308 (eval $ac_link) 2>&5
10309 ac_status=$?
10310 echo "$as_me:10310: \$? = $ac_status" >&5
10311 (exit $ac_status); } &&
10312 { ac_try='test -s conftest$ac_exeext'
10313 { (eval echo "$as_me:10313: \"$ac_try\"") >&5
10314 (eval $ac_try) 2>&5
10315 ac_status=$?
10316 echo "$as_me:10316: \$? = $ac_status" >&5
10317 (exit $ac_status); }; }; then
10318 ac_cv_lib_ipc_shmat=yes
10319 else
10320 echo "$as_me: failed program was:" >&5
10321 cat conftest.$ac_ext >&5
10322 ac_cv_lib_ipc_shmat=no
10324 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10325 LIBS=$ac_check_lib_save_LIBS
10327 echo "$as_me:10327: result: $ac_cv_lib_ipc_shmat" >&5
10328 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10329 if test $ac_cv_lib_ipc_shmat = yes; then
10330 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10336 # Check for libraries that X11R6 Xt/Xaw programs need.
10337 ac_save_LDFLAGS=$LDFLAGS
10338 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10339 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10340 # check for ICE first), but we must link in the order -lSM -lICE or
10341 # we get undefined symbols. So assume we have SM if we have ICE.
10342 # These have to be linked with before -lX11, unlike the other
10343 # libraries we check for below, so use a different variable.
10344 # John Interrante, Karl Berry
10345 echo "$as_me:10345: checking for IceConnectionNumber in -lICE" >&5
10346 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10347 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10348 echo $ECHO_N "(cached) $ECHO_C" >&6
10349 else
10350 ac_check_lib_save_LIBS=$LIBS
10351 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10352 cat >conftest.$ac_ext <<_ACEOF
10353 #line 10353 "configure"
10354 #include "confdefs.h"
10356 /* Override any gcc2 internal prototype to avoid an error. */
10357 #ifdef __cplusplus
10358 extern "C"
10359 #endif
10360 /* We use char because int might match the return type of a gcc2
10361 builtin and then its argument prototype would still apply. */
10362 char IceConnectionNumber ();
10364 main ()
10366 IceConnectionNumber ();
10368 return 0;
10370 _ACEOF
10371 rm -f conftest.$ac_objext conftest$ac_exeext
10372 if { (eval echo "$as_me:10372: \"$ac_link\"") >&5
10373 (eval $ac_link) 2>&5
10374 ac_status=$?
10375 echo "$as_me:10375: \$? = $ac_status" >&5
10376 (exit $ac_status); } &&
10377 { ac_try='test -s conftest$ac_exeext'
10378 { (eval echo "$as_me:10378: \"$ac_try\"") >&5
10379 (eval $ac_try) 2>&5
10380 ac_status=$?
10381 echo "$as_me:10381: \$? = $ac_status" >&5
10382 (exit $ac_status); }; }; then
10383 ac_cv_lib_ICE_IceConnectionNumber=yes
10384 else
10385 echo "$as_me: failed program was:" >&5
10386 cat conftest.$ac_ext >&5
10387 ac_cv_lib_ICE_IceConnectionNumber=no
10389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10390 LIBS=$ac_check_lib_save_LIBS
10392 echo "$as_me:10392: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10393 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10394 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10395 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10398 LDFLAGS=$ac_save_LDFLAGS
10402 cf_x_athena=${cf_x_athena:-Xaw}
10404 echo "$as_me:10404: checking if you want to link with Xaw 3d library" >&5
10405 echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6
10406 withval=
10408 # Check whether --with-Xaw3d or --without-Xaw3d was given.
10409 if test "${with_Xaw3d+set}" = set; then
10410 withval="$with_Xaw3d"
10413 if test "$withval" = yes ; then
10414 cf_x_athena=Xaw3d
10415 echo "$as_me:10415: result: yes" >&5
10416 echo "${ECHO_T}yes" >&6
10417 else
10418 echo "$as_me:10418: result: no" >&5
10419 echo "${ECHO_T}no" >&6
10422 echo "$as_me:10422: checking if you want to link with neXT Athena library" >&5
10423 echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6
10424 withval=
10426 # Check whether --with-neXtaw or --without-neXtaw was given.
10427 if test "${with_neXtaw+set}" = set; then
10428 withval="$with_neXtaw"
10431 if test "$withval" = yes ; then
10432 cf_x_athena=neXtaw
10433 echo "$as_me:10433: result: yes" >&5
10434 echo "${ECHO_T}yes" >&6
10435 else
10436 echo "$as_me:10436: result: no" >&5
10437 echo "${ECHO_T}no" >&6
10440 echo "$as_me:10440: checking if you want to link with Athena-Plus library" >&5
10441 echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6
10442 withval=
10444 # Check whether --with-XawPlus or --without-XawPlus was given.
10445 if test "${with_XawPlus+set}" = set; then
10446 withval="$with_XawPlus"
10449 if test "$withval" = yes ; then
10450 cf_x_athena=XawPlus
10451 echo "$as_me:10451: result: yes" >&5
10452 echo "${ECHO_T}yes" >&6
10453 else
10454 echo "$as_me:10454: result: no" >&5
10455 echo "${ECHO_T}no" >&6
10458 cf_x_athena_lib=""
10460 if test "$PKG_CONFIG" != none ; then
10461 cf_athena_list=
10462 test "$cf_x_athena" = Xaw && cf_athena_list="xaw8 xaw7 xaw6"
10463 for cf_athena_pkg in \
10464 $cf_athena_list \
10465 ${cf_x_athena} \
10466 ${cf_x_athena}-devel \
10467 lib${cf_x_athena} \
10468 lib${cf_x_athena}-devel
10471 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists $cf_athena_pkg; then
10472 test -n "$verbose" && echo " found package $cf_athena_pkg" 1>&6
10474 echo "${as_me:-configure}:10474: testing found package $cf_athena_pkg ..." 1>&5
10476 cf_pkgconfig_incs="`$PKG_CONFIG --cflags $cf_athena_pkg 2>/dev/null`"
10477 cf_pkgconfig_libs="`$PKG_CONFIG --libs $cf_athena_pkg 2>/dev/null`"
10478 test -n "$verbose" && echo " package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs" 1>&6
10480 echo "${as_me:-configure}:10480: testing package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10482 test -n "$verbose" && echo " package $cf_athena_pkg LIBS: $cf_pkgconfig_libs" 1>&6
10484 echo "${as_me:-configure}:10484: testing package $cf_athena_pkg LIBS: $cf_pkgconfig_libs ..." 1>&5
10486 cf_fix_cppflags=no
10487 cf_new_cflags=
10488 cf_new_cppflags=
10489 cf_new_extra_cppflags=
10491 for cf_add_cflags in $cf_pkgconfig_incs
10493 case $cf_fix_cppflags in
10495 case $cf_add_cflags in #(vi
10496 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10497 case $cf_add_cflags in
10498 -D*)
10499 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10501 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10502 && test -z "${cf_tst_cflags}" \
10503 && cf_fix_cppflags=yes
10505 if test $cf_fix_cppflags = yes ; then
10506 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10507 continue
10508 elif test "${cf_tst_cflags}" = "\"'" ; then
10509 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10510 continue
10513 esac
10514 case "$CPPFLAGS" in
10515 *$cf_add_cflags) #(vi
10517 *) #(vi
10518 case $cf_add_cflags in #(vi
10519 -D*)
10520 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10522 CPPFLAGS=`echo "$CPPFLAGS" | \
10523 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10524 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10527 esac
10528 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10530 esac
10533 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10535 esac
10537 yes)
10538 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10540 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10542 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10543 && test -z "${cf_tst_cflags}" \
10544 && cf_fix_cppflags=no
10546 esac
10547 done
10549 if test -n "$cf_new_cflags" ; then
10551 CFLAGS="$CFLAGS $cf_new_cflags"
10554 if test -n "$cf_new_cppflags" ; then
10556 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10559 if test -n "$cf_new_extra_cppflags" ; then
10561 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10564 LIBS="$cf_pkgconfig_libs $LIBS"
10566 cf_x_athena_lib="$cf_pkgconfig_libs"
10568 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
10570 cat >>confdefs.h <<EOF
10571 #define $cf_x_athena_LIBS 1
10574 echo "$as_me:10574: checking for usable $cf_x_athena/Xmu package" >&5
10575 echo $ECHO_N "checking for usable $cf_x_athena/Xmu package... $ECHO_C" >&6
10576 if test "${cf_cv_xaw_compat+set}" = set; then
10577 echo $ECHO_N "(cached) $ECHO_C" >&6
10578 else
10580 cat >conftest.$ac_ext <<_ACEOF
10581 #line 10581 "configure"
10582 #include "confdefs.h"
10584 #include <X11/Xmu/CharSet.h>
10587 main ()
10590 int check = XmuCompareISOLatin1("big", "small")
10593 return 0;
10595 _ACEOF
10596 rm -f conftest.$ac_objext conftest$ac_exeext
10597 if { (eval echo "$as_me:10597: \"$ac_link\"") >&5
10598 (eval $ac_link) 2>&5
10599 ac_status=$?
10600 echo "$as_me:10600: \$? = $ac_status" >&5
10601 (exit $ac_status); } &&
10602 { ac_try='test -s conftest$ac_exeext'
10603 { (eval echo "$as_me:10603: \"$ac_try\"") >&5
10604 (eval $ac_try) 2>&5
10605 ac_status=$?
10606 echo "$as_me:10606: \$? = $ac_status" >&5
10607 (exit $ac_status); }; }; then
10608 cf_cv_xaw_compat=yes
10609 else
10610 echo "$as_me: failed program was:" >&5
10611 cat conftest.$ac_ext >&5
10612 cf_cv_xaw_compat=no
10614 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10616 echo "$as_me:10616: result: $cf_cv_xaw_compat" >&5
10617 echo "${ECHO_T}$cf_cv_xaw_compat" >&6
10619 if test "$cf_cv_xaw_compat" = no
10620 then
10621 # workaround for broken ".pc" files...
10622 case "$cf_x_athena_lib" in #(vi
10623 *-lXmu*) #(vi
10626 test -n "$verbose" && echo " work around broken package" 1>&6
10628 echo "${as_me:-configure}:10628: testing work around broken package ..." 1>&5
10630 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xmu; then
10631 test -n "$verbose" && echo " found package xmu" 1>&6
10633 echo "${as_me:-configure}:10633: testing found package xmu ..." 1>&5
10635 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xmu 2>/dev/null`"
10636 cf_pkgconfig_libs="`$PKG_CONFIG --libs xmu 2>/dev/null`"
10637 test -n "$verbose" && echo " package xmu CFLAGS: $cf_pkgconfig_incs" 1>&6
10639 echo "${as_me:-configure}:10639: testing package xmu CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10641 test -n "$verbose" && echo " package xmu LIBS: $cf_pkgconfig_libs" 1>&6
10643 echo "${as_me:-configure}:10643: testing package xmu LIBS: $cf_pkgconfig_libs ..." 1>&5
10645 cf_fix_cppflags=no
10646 cf_new_cflags=
10647 cf_new_cppflags=
10648 cf_new_extra_cppflags=
10650 for cf_add_cflags in $cf_pkgconfig_incs
10652 case $cf_fix_cppflags in
10654 case $cf_add_cflags in #(vi
10655 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10656 case $cf_add_cflags in
10657 -D*)
10658 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10660 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10661 && test -z "${cf_tst_cflags}" \
10662 && cf_fix_cppflags=yes
10664 if test $cf_fix_cppflags = yes ; then
10665 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10666 continue
10667 elif test "${cf_tst_cflags}" = "\"'" ; then
10668 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10669 continue
10672 esac
10673 case "$CPPFLAGS" in
10674 *$cf_add_cflags) #(vi
10676 *) #(vi
10677 case $cf_add_cflags in #(vi
10678 -D*)
10679 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10681 CPPFLAGS=`echo "$CPPFLAGS" | \
10682 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10683 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10686 esac
10687 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10689 esac
10692 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10694 esac
10696 yes)
10697 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10699 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10701 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10702 && test -z "${cf_tst_cflags}" \
10703 && cf_fix_cppflags=no
10705 esac
10706 done
10708 if test -n "$cf_new_cflags" ; then
10710 CFLAGS="$CFLAGS $cf_new_cflags"
10713 if test -n "$cf_new_cppflags" ; then
10715 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10718 if test -n "$cf_new_extra_cppflags" ; then
10720 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10723 LIBS="$cf_pkgconfig_libs $LIBS"
10725 else
10727 test -n "$verbose" && echo " ...before $LIBS" 1>&6
10729 echo "${as_me:-configure}:10729: testing ...before $LIBS ..." 1>&5
10731 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s,-lXt ,-lXt -lXmu ," -e 's/ / /g'`
10732 test -n "$verbose" && echo " ...after $LIBS" 1>&6
10734 echo "${as_me:-configure}:10734: testing ...after $LIBS ..." 1>&5
10739 esac
10742 break
10743 else
10747 done
10750 if test -z "$cf_x_athena_lib" ; then
10752 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists Xext; then
10753 test -n "$verbose" && echo " found package Xext" 1>&6
10755 echo "${as_me:-configure}:10755: testing found package Xext ..." 1>&5
10757 cf_pkgconfig_incs="`$PKG_CONFIG --cflags Xext 2>/dev/null`"
10758 cf_pkgconfig_libs="`$PKG_CONFIG --libs Xext 2>/dev/null`"
10759 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6
10761 echo "${as_me:-configure}:10761: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10763 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6
10765 echo "${as_me:-configure}:10765: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5
10767 cf_fix_cppflags=no
10768 cf_new_cflags=
10769 cf_new_cppflags=
10770 cf_new_extra_cppflags=
10772 for cf_add_cflags in $cf_pkgconfig_incs
10774 case $cf_fix_cppflags in
10776 case $cf_add_cflags in #(vi
10777 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10778 case $cf_add_cflags in
10779 -D*)
10780 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10782 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10783 && test -z "${cf_tst_cflags}" \
10784 && cf_fix_cppflags=yes
10786 if test $cf_fix_cppflags = yes ; then
10787 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10788 continue
10789 elif test "${cf_tst_cflags}" = "\"'" ; then
10790 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10791 continue
10794 esac
10795 case "$CPPFLAGS" in
10796 *$cf_add_cflags) #(vi
10798 *) #(vi
10799 case $cf_add_cflags in #(vi
10800 -D*)
10801 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10803 CPPFLAGS=`echo "$CPPFLAGS" | \
10804 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10805 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10808 esac
10809 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10811 esac
10814 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10816 esac
10818 yes)
10819 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10821 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10823 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10824 && test -z "${cf_tst_cflags}" \
10825 && cf_fix_cppflags=no
10827 esac
10828 done
10830 if test -n "$cf_new_cflags" ; then
10832 CFLAGS="$CFLAGS $cf_new_cflags"
10835 if test -n "$cf_new_cppflags" ; then
10837 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10840 if test -n "$cf_new_extra_cppflags" ; then
10842 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10845 LIBS="$cf_pkgconfig_libs $LIBS"
10847 else
10849 echo "$as_me:10849: checking for XextCreateExtension in -lXext" >&5
10850 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
10851 if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
10852 echo $ECHO_N "(cached) $ECHO_C" >&6
10853 else
10854 ac_check_lib_save_LIBS=$LIBS
10855 LIBS="-lXext $LIBS"
10856 cat >conftest.$ac_ext <<_ACEOF
10857 #line 10857 "configure"
10858 #include "confdefs.h"
10860 /* Override any gcc2 internal prototype to avoid an error. */
10861 #ifdef __cplusplus
10862 extern "C"
10863 #endif
10864 /* We use char because int might match the return type of a gcc2
10865 builtin and then its argument prototype would still apply. */
10866 char XextCreateExtension ();
10868 main ()
10870 XextCreateExtension ();
10872 return 0;
10874 _ACEOF
10875 rm -f conftest.$ac_objext conftest$ac_exeext
10876 if { (eval echo "$as_me:10876: \"$ac_link\"") >&5
10877 (eval $ac_link) 2>&5
10878 ac_status=$?
10879 echo "$as_me:10879: \$? = $ac_status" >&5
10880 (exit $ac_status); } &&
10881 { ac_try='test -s conftest$ac_exeext'
10882 { (eval echo "$as_me:10882: \"$ac_try\"") >&5
10883 (eval $ac_try) 2>&5
10884 ac_status=$?
10885 echo "$as_me:10885: \$? = $ac_status" >&5
10886 (exit $ac_status); }; }; then
10887 ac_cv_lib_Xext_XextCreateExtension=yes
10888 else
10889 echo "$as_me: failed program was:" >&5
10890 cat conftest.$ac_ext >&5
10891 ac_cv_lib_Xext_XextCreateExtension=no
10893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10894 LIBS=$ac_check_lib_save_LIBS
10896 echo "$as_me:10896: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
10897 echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
10898 if test $ac_cv_lib_Xext_XextCreateExtension = yes; then
10899 LIBS="-lXext $LIBS"
10904 cf_have_X_LIBS=no
10906 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
10907 test -n "$verbose" && echo " found package xt" 1>&6
10909 echo "${as_me:-configure}:10909: testing found package xt ..." 1>&5
10911 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
10912 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`"
10913 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
10915 echo "${as_me:-configure}:10915: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10917 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
10919 echo "${as_me:-configure}:10919: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
10921 cf_fix_cppflags=no
10922 cf_new_cflags=
10923 cf_new_cppflags=
10924 cf_new_extra_cppflags=
10926 for cf_add_cflags in $cf_pkgconfig_incs
10928 case $cf_fix_cppflags in
10930 case $cf_add_cflags in #(vi
10931 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
10932 case $cf_add_cflags in
10933 -D*)
10934 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10936 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10937 && test -z "${cf_tst_cflags}" \
10938 && cf_fix_cppflags=yes
10940 if test $cf_fix_cppflags = yes ; then
10941 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10942 continue
10943 elif test "${cf_tst_cflags}" = "\"'" ; then
10944 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10945 continue
10948 esac
10949 case "$CPPFLAGS" in
10950 *$cf_add_cflags) #(vi
10952 *) #(vi
10953 case $cf_add_cflags in #(vi
10954 -D*)
10955 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10957 CPPFLAGS=`echo "$CPPFLAGS" | \
10958 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10959 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10962 esac
10963 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10965 esac
10968 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10970 esac
10972 yes)
10973 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10975 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10977 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
10978 && test -z "${cf_tst_cflags}" \
10979 && cf_fix_cppflags=no
10981 esac
10982 done
10984 if test -n "$cf_new_cflags" ; then
10986 CFLAGS="$CFLAGS $cf_new_cflags"
10989 if test -n "$cf_new_cppflags" ; then
10991 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10994 if test -n "$cf_new_extra_cppflags" ; then
10996 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10999 LIBS="$cf_pkgconfig_libs $LIBS"
11001 case "x$LIBS" in #(vi
11002 *-lX11*) #(vi
11005 # we have an "xt" package, but it may omit Xt's dependency on X11
11006 echo "$as_me:11006: checking for usable X dependency" >&5
11007 echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6
11008 if test "${cf_cv_xt_x11_compat+set}" = set; then
11009 echo $ECHO_N "(cached) $ECHO_C" >&6
11010 else
11012 cat >conftest.$ac_ext <<_ACEOF
11013 #line 11013 "configure"
11014 #include "confdefs.h"
11016 #include <X11/Xlib.h>
11019 main ()
11022 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0);
11023 int rc2 = XClearWindow((Display*) 0, (Window) 0);
11024 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0);
11025 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0);
11028 return 0;
11030 _ACEOF
11031 rm -f conftest.$ac_objext conftest$ac_exeext
11032 if { (eval echo "$as_me:11032: \"$ac_link\"") >&5
11033 (eval $ac_link) 2>&5
11034 ac_status=$?
11035 echo "$as_me:11035: \$? = $ac_status" >&5
11036 (exit $ac_status); } &&
11037 { ac_try='test -s conftest$ac_exeext'
11038 { (eval echo "$as_me:11038: \"$ac_try\"") >&5
11039 (eval $ac_try) 2>&5
11040 ac_status=$?
11041 echo "$as_me:11041: \$? = $ac_status" >&5
11042 (exit $ac_status); }; }; then
11043 cf_cv_xt_x11_compat=yes
11044 else
11045 echo "$as_me: failed program was:" >&5
11046 cat conftest.$ac_ext >&5
11047 cf_cv_xt_x11_compat=no
11049 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11051 echo "$as_me:11051: result: $cf_cv_xt_x11_compat" >&5
11052 echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6
11053 if test "$cf_cv_xt_x11_compat" = no
11054 then
11055 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6
11057 echo "${as_me:-configure}:11057: testing work around broken X11 dependency ..." 1>&5
11059 # 2010/11/19 - good enough until a working Xt on Xcb is delivered.
11061 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then
11062 test -n "$verbose" && echo " found package x11" 1>&6
11064 echo "${as_me:-configure}:11064: testing found package x11 ..." 1>&5
11066 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`"
11067 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`"
11068 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
11070 echo "${as_me:-configure}:11070: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11072 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
11074 echo "${as_me:-configure}:11074: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
11076 cf_fix_cppflags=no
11077 cf_new_cflags=
11078 cf_new_cppflags=
11079 cf_new_extra_cppflags=
11081 for cf_add_cflags in $cf_pkgconfig_incs
11083 case $cf_fix_cppflags in
11085 case $cf_add_cflags in #(vi
11086 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11087 case $cf_add_cflags in
11088 -D*)
11089 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11091 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11092 && test -z "${cf_tst_cflags}" \
11093 && cf_fix_cppflags=yes
11095 if test $cf_fix_cppflags = yes ; then
11096 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11097 continue
11098 elif test "${cf_tst_cflags}" = "\"'" ; then
11099 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11100 continue
11103 esac
11104 case "$CPPFLAGS" in
11105 *$cf_add_cflags) #(vi
11107 *) #(vi
11108 case $cf_add_cflags in #(vi
11109 -D*)
11110 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11112 CPPFLAGS=`echo "$CPPFLAGS" | \
11113 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11114 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11117 esac
11118 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11120 esac
11123 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11125 esac
11127 yes)
11128 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11130 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11132 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11133 && test -z "${cf_tst_cflags}" \
11134 && cf_fix_cppflags=no
11136 esac
11137 done
11139 if test -n "$cf_new_cflags" ; then
11141 CFLAGS="$CFLAGS $cf_new_cflags"
11144 if test -n "$cf_new_cppflags" ; then
11146 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11149 if test -n "$cf_new_extra_cppflags" ; then
11151 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11154 LIBS="$cf_pkgconfig_libs $LIBS"
11156 else
11158 test -n "$verbose" && echo " ...before $LIBS" 1>&6
11160 echo "${as_me:-configure}:11160: testing ...before $LIBS ..." 1>&5
11162 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s,-lXt ,-lXt -lX11 ," -e 's/ / /g'`
11163 test -n "$verbose" && echo " ...after $LIBS" 1>&6
11165 echo "${as_me:-configure}:11165: testing ...after $LIBS ..." 1>&5
11171 esac
11173 echo "$as_me:11173: checking for usable X Toolkit package" >&5
11174 echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6
11175 if test "${cf_cv_xt_ice_compat+set}" = set; then
11176 echo $ECHO_N "(cached) $ECHO_C" >&6
11177 else
11179 cat >conftest.$ac_ext <<_ACEOF
11180 #line 11180 "configure"
11181 #include "confdefs.h"
11183 #include <X11/Shell.h>
11186 main ()
11188 int num = IceConnectionNumber(0)
11191 return 0;
11193 _ACEOF
11194 rm -f conftest.$ac_objext conftest$ac_exeext
11195 if { (eval echo "$as_me:11195: \"$ac_link\"") >&5
11196 (eval $ac_link) 2>&5
11197 ac_status=$?
11198 echo "$as_me:11198: \$? = $ac_status" >&5
11199 (exit $ac_status); } &&
11200 { ac_try='test -s conftest$ac_exeext'
11201 { (eval echo "$as_me:11201: \"$ac_try\"") >&5
11202 (eval $ac_try) 2>&5
11203 ac_status=$?
11204 echo "$as_me:11204: \$? = $ac_status" >&5
11205 (exit $ac_status); }; }; then
11206 cf_cv_xt_ice_compat=yes
11207 else
11208 echo "$as_me: failed program was:" >&5
11209 cat conftest.$ac_ext >&5
11210 cf_cv_xt_ice_compat=no
11212 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11214 echo "$as_me:11214: result: $cf_cv_xt_ice_compat" >&5
11215 echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6
11217 if test "$cf_cv_xt_ice_compat" = no
11218 then
11219 # workaround for broken ".pc" files used for X Toolkit.
11220 case "x$X_PRE_LIBS" in #(vi
11221 *-lICE*)
11222 case "x$LIBS" in #(vi
11223 *-lICE*) #(vi
11226 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6
11228 echo "${as_me:-configure}:11228: testing work around broken ICE dependency ..." 1>&5
11230 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then
11231 test -n "$verbose" && echo " found package ice" 1>&6
11233 echo "${as_me:-configure}:11233: testing found package ice ..." 1>&5
11235 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`"
11236 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`"
11237 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
11239 echo "${as_me:-configure}:11239: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11241 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
11243 echo "${as_me:-configure}:11243: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
11245 cf_fix_cppflags=no
11246 cf_new_cflags=
11247 cf_new_cppflags=
11248 cf_new_extra_cppflags=
11250 for cf_add_cflags in $cf_pkgconfig_incs
11252 case $cf_fix_cppflags in
11254 case $cf_add_cflags in #(vi
11255 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11256 case $cf_add_cflags in
11257 -D*)
11258 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11260 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11261 && test -z "${cf_tst_cflags}" \
11262 && cf_fix_cppflags=yes
11264 if test $cf_fix_cppflags = yes ; then
11265 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11266 continue
11267 elif test "${cf_tst_cflags}" = "\"'" ; then
11268 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11269 continue
11272 esac
11273 case "$CPPFLAGS" in
11274 *$cf_add_cflags) #(vi
11276 *) #(vi
11277 case $cf_add_cflags in #(vi
11278 -D*)
11279 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11281 CPPFLAGS=`echo "$CPPFLAGS" | \
11282 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11283 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11286 esac
11287 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11289 esac
11292 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11294 esac
11296 yes)
11297 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11299 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11301 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11302 && test -z "${cf_tst_cflags}" \
11303 && cf_fix_cppflags=no
11305 esac
11306 done
11308 if test -n "$cf_new_cflags" ; then
11310 CFLAGS="$CFLAGS $cf_new_cflags"
11313 if test -n "$cf_new_cppflags" ; then
11315 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11318 if test -n "$cf_new_extra_cppflags" ; then
11320 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11323 LIBS="$cf_pkgconfig_libs $LIBS"
11325 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then
11326 test -n "$verbose" && echo " found package sm" 1>&6
11328 echo "${as_me:-configure}:11328: testing found package sm ..." 1>&5
11330 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`"
11331 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`"
11332 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
11334 echo "${as_me:-configure}:11334: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11336 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
11338 echo "${as_me:-configure}:11338: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
11340 cf_fix_cppflags=no
11341 cf_new_cflags=
11342 cf_new_cppflags=
11343 cf_new_extra_cppflags=
11345 for cf_add_cflags in $cf_pkgconfig_incs
11347 case $cf_fix_cppflags in
11349 case $cf_add_cflags in #(vi
11350 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11351 case $cf_add_cflags in
11352 -D*)
11353 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11355 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11356 && test -z "${cf_tst_cflags}" \
11357 && cf_fix_cppflags=yes
11359 if test $cf_fix_cppflags = yes ; then
11360 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11361 continue
11362 elif test "${cf_tst_cflags}" = "\"'" ; then
11363 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11364 continue
11367 esac
11368 case "$CPPFLAGS" in
11369 *$cf_add_cflags) #(vi
11371 *) #(vi
11372 case $cf_add_cflags in #(vi
11373 -D*)
11374 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11376 CPPFLAGS=`echo "$CPPFLAGS" | \
11377 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11378 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11381 esac
11382 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11384 esac
11387 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11389 esac
11391 yes)
11392 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11394 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11396 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11397 && test -z "${cf_tst_cflags}" \
11398 && cf_fix_cppflags=no
11400 esac
11401 done
11403 if test -n "$cf_new_cflags" ; then
11405 CFLAGS="$CFLAGS $cf_new_cflags"
11408 if test -n "$cf_new_cppflags" ; then
11410 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11413 if test -n "$cf_new_extra_cppflags" ; then
11415 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11418 LIBS="$cf_pkgconfig_libs $LIBS"
11420 else
11424 else
11426 test -n "$verbose" && echo " ...before $LIBS" 1>&6
11428 echo "${as_me:-configure}:11428: testing ...before $LIBS ..." 1>&5
11430 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s,-lXt ,-lXt $X_PRE_LIBS ," -e 's/ / /g'`
11431 test -n "$verbose" && echo " ...after $LIBS" 1>&6
11433 echo "${as_me:-configure}:11433: testing ...after $LIBS ..." 1>&5
11438 esac
11440 esac
11443 cf_have_X_LIBS=yes
11445 else
11447 LDFLAGS="$X_LIBS $LDFLAGS"
11449 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
11451 echo "${as_me:-configure}:11451: testing checking additions to CFLAGS ..." 1>&5
11453 cf_check_cflags="$CFLAGS"
11454 cf_check_cppflags="$CPPFLAGS"
11456 cf_fix_cppflags=no
11457 cf_new_cflags=
11458 cf_new_cppflags=
11459 cf_new_extra_cppflags=
11461 for cf_add_cflags in $X_CFLAGS
11463 case $cf_fix_cppflags in
11465 case $cf_add_cflags in #(vi
11466 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
11467 case $cf_add_cflags in
11468 -D*)
11469 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11471 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11472 && test -z "${cf_tst_cflags}" \
11473 && cf_fix_cppflags=yes
11475 if test $cf_fix_cppflags = yes ; then
11476 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11477 continue
11478 elif test "${cf_tst_cflags}" = "\"'" ; then
11479 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11480 continue
11483 esac
11484 case "$CPPFLAGS" in
11485 *$cf_add_cflags) #(vi
11487 *) #(vi
11488 case $cf_add_cflags in #(vi
11489 -D*)
11490 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11492 CPPFLAGS=`echo "$CPPFLAGS" | \
11493 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11494 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11497 esac
11498 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11500 esac
11503 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11505 esac
11507 yes)
11508 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11510 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11512 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
11513 && test -z "${cf_tst_cflags}" \
11514 && cf_fix_cppflags=no
11516 esac
11517 done
11519 if test -n "$cf_new_cflags" ; then
11520 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
11522 echo "${as_me:-configure}:11522: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
11524 CFLAGS="$CFLAGS $cf_new_cflags"
11527 if test -n "$cf_new_cppflags" ; then
11528 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
11530 echo "${as_me:-configure}:11530: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
11532 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11535 if test -n "$cf_new_extra_cppflags" ; then
11536 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
11538 echo "${as_me:-configure}:11538: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
11540 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11543 if test "$cf_check_cflags" != "$CFLAGS" ; then
11544 cat >conftest.$ac_ext <<_ACEOF
11545 #line 11545 "configure"
11546 #include "confdefs.h"
11547 #include <stdio.h>
11549 main ()
11551 printf("Hello world");
11553 return 0;
11555 _ACEOF
11556 rm -f conftest.$ac_objext conftest$ac_exeext
11557 if { (eval echo "$as_me:11557: \"$ac_link\"") >&5
11558 (eval $ac_link) 2>&5
11559 ac_status=$?
11560 echo "$as_me:11560: \$? = $ac_status" >&5
11561 (exit $ac_status); } &&
11562 { ac_try='test -s conftest$ac_exeext'
11563 { (eval echo "$as_me:11563: \"$ac_try\"") >&5
11564 (eval $ac_try) 2>&5
11565 ac_status=$?
11566 echo "$as_me:11566: \$? = $ac_status" >&5
11567 (exit $ac_status); }; }; then
11569 else
11570 echo "$as_me: failed program was:" >&5
11571 cat conftest.$ac_ext >&5
11572 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
11574 echo "${as_me:-configure}:11574: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
11576 if test "$cf_check_cppflags" != "$CPPFLAGS" ; then
11577 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
11579 echo "${as_me:-configure}:11579: testing but keeping change to \$CPPFLAGS ..." 1>&5
11582 CFLAGS="$cf_check_flags"
11584 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11587 echo "$as_me:11587: checking for XOpenDisplay" >&5
11588 echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6
11589 if test "${ac_cv_func_XOpenDisplay+set}" = set; then
11590 echo $ECHO_N "(cached) $ECHO_C" >&6
11591 else
11592 cat >conftest.$ac_ext <<_ACEOF
11593 #line 11593 "configure"
11594 #include "confdefs.h"
11595 /* System header to define __stub macros and hopefully few prototypes,
11596 which can conflict with char XOpenDisplay (); below. */
11597 #include <assert.h>
11598 /* Override any gcc2 internal prototype to avoid an error. */
11599 #ifdef __cplusplus
11600 extern "C"
11601 #endif
11602 /* We use char because int might match the return type of a gcc2
11603 builtin and then its argument prototype would still apply. */
11604 char XOpenDisplay ();
11605 char (*f) ();
11608 main ()
11610 /* The GNU C library defines this for functions which it implements
11611 to always fail with ENOSYS. Some functions are actually named
11612 something starting with __ and the normal name is an alias. */
11613 #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay)
11614 choke me
11615 #else
11616 f = XOpenDisplay;
11617 #endif
11620 return 0;
11622 _ACEOF
11623 rm -f conftest.$ac_objext conftest$ac_exeext
11624 if { (eval echo "$as_me:11624: \"$ac_link\"") >&5
11625 (eval $ac_link) 2>&5
11626 ac_status=$?
11627 echo "$as_me:11627: \$? = $ac_status" >&5
11628 (exit $ac_status); } &&
11629 { ac_try='test -s conftest$ac_exeext'
11630 { (eval echo "$as_me:11630: \"$ac_try\"") >&5
11631 (eval $ac_try) 2>&5
11632 ac_status=$?
11633 echo "$as_me:11633: \$? = $ac_status" >&5
11634 (exit $ac_status); }; }; then
11635 ac_cv_func_XOpenDisplay=yes
11636 else
11637 echo "$as_me: failed program was:" >&5
11638 cat conftest.$ac_ext >&5
11639 ac_cv_func_XOpenDisplay=no
11641 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11643 echo "$as_me:11643: result: $ac_cv_func_XOpenDisplay" >&5
11644 echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6
11645 if test $ac_cv_func_XOpenDisplay = yes; then
11647 else
11649 echo "$as_me:11649: checking for XOpenDisplay in -lX11" >&5
11650 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
11651 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
11652 echo $ECHO_N "(cached) $ECHO_C" >&6
11653 else
11654 ac_check_lib_save_LIBS=$LIBS
11655 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
11656 cat >conftest.$ac_ext <<_ACEOF
11657 #line 11657 "configure"
11658 #include "confdefs.h"
11660 /* Override any gcc2 internal prototype to avoid an error. */
11661 #ifdef __cplusplus
11662 extern "C"
11663 #endif
11664 /* We use char because int might match the return type of a gcc2
11665 builtin and then its argument prototype would still apply. */
11666 char XOpenDisplay ();
11668 main ()
11670 XOpenDisplay ();
11672 return 0;
11674 _ACEOF
11675 rm -f conftest.$ac_objext conftest$ac_exeext
11676 if { (eval echo "$as_me:11676: \"$ac_link\"") >&5
11677 (eval $ac_link) 2>&5
11678 ac_status=$?
11679 echo "$as_me:11679: \$? = $ac_status" >&5
11680 (exit $ac_status); } &&
11681 { ac_try='test -s conftest$ac_exeext'
11682 { (eval echo "$as_me:11682: \"$ac_try\"") >&5
11683 (eval $ac_try) 2>&5
11684 ac_status=$?
11685 echo "$as_me:11685: \$? = $ac_status" >&5
11686 (exit $ac_status); }; }; then
11687 ac_cv_lib_X11_XOpenDisplay=yes
11688 else
11689 echo "$as_me: failed program was:" >&5
11690 cat conftest.$ac_ext >&5
11691 ac_cv_lib_X11_XOpenDisplay=no
11693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11694 LIBS=$ac_check_lib_save_LIBS
11696 echo "$as_me:11696: result: $ac_cv_lib_X11_XOpenDisplay" >&5
11697 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
11698 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
11699 LIBS="-lX11 $LIBS"
11704 echo "$as_me:11704: checking for XtAppInitialize" >&5
11705 echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6
11706 if test "${ac_cv_func_XtAppInitialize+set}" = set; then
11707 echo $ECHO_N "(cached) $ECHO_C" >&6
11708 else
11709 cat >conftest.$ac_ext <<_ACEOF
11710 #line 11710 "configure"
11711 #include "confdefs.h"
11712 /* System header to define __stub macros and hopefully few prototypes,
11713 which can conflict with char XtAppInitialize (); below. */
11714 #include <assert.h>
11715 /* Override any gcc2 internal prototype to avoid an error. */
11716 #ifdef __cplusplus
11717 extern "C"
11718 #endif
11719 /* We use char because int might match the return type of a gcc2
11720 builtin and then its argument prototype would still apply. */
11721 char XtAppInitialize ();
11722 char (*f) ();
11725 main ()
11727 /* The GNU C library defines this for functions which it implements
11728 to always fail with ENOSYS. Some functions are actually named
11729 something starting with __ and the normal name is an alias. */
11730 #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize)
11731 choke me
11732 #else
11733 f = XtAppInitialize;
11734 #endif
11737 return 0;
11739 _ACEOF
11740 rm -f conftest.$ac_objext conftest$ac_exeext
11741 if { (eval echo "$as_me:11741: \"$ac_link\"") >&5
11742 (eval $ac_link) 2>&5
11743 ac_status=$?
11744 echo "$as_me:11744: \$? = $ac_status" >&5
11745 (exit $ac_status); } &&
11746 { ac_try='test -s conftest$ac_exeext'
11747 { (eval echo "$as_me:11747: \"$ac_try\"") >&5
11748 (eval $ac_try) 2>&5
11749 ac_status=$?
11750 echo "$as_me:11750: \$? = $ac_status" >&5
11751 (exit $ac_status); }; }; then
11752 ac_cv_func_XtAppInitialize=yes
11753 else
11754 echo "$as_me: failed program was:" >&5
11755 cat conftest.$ac_ext >&5
11756 ac_cv_func_XtAppInitialize=no
11758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11760 echo "$as_me:11760: result: $ac_cv_func_XtAppInitialize" >&5
11761 echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6
11762 if test $ac_cv_func_XtAppInitialize = yes; then
11764 else
11766 echo "$as_me:11766: checking for XtAppInitialize in -lXt" >&5
11767 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
11768 if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
11769 echo $ECHO_N "(cached) $ECHO_C" >&6
11770 else
11771 ac_check_lib_save_LIBS=$LIBS
11772 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
11773 cat >conftest.$ac_ext <<_ACEOF
11774 #line 11774 "configure"
11775 #include "confdefs.h"
11777 /* Override any gcc2 internal prototype to avoid an error. */
11778 #ifdef __cplusplus
11779 extern "C"
11780 #endif
11781 /* We use char because int might match the return type of a gcc2
11782 builtin and then its argument prototype would still apply. */
11783 char XtAppInitialize ();
11785 main ()
11787 XtAppInitialize ();
11789 return 0;
11791 _ACEOF
11792 rm -f conftest.$ac_objext conftest$ac_exeext
11793 if { (eval echo "$as_me:11793: \"$ac_link\"") >&5
11794 (eval $ac_link) 2>&5
11795 ac_status=$?
11796 echo "$as_me:11796: \$? = $ac_status" >&5
11797 (exit $ac_status); } &&
11798 { ac_try='test -s conftest$ac_exeext'
11799 { (eval echo "$as_me:11799: \"$ac_try\"") >&5
11800 (eval $ac_try) 2>&5
11801 ac_status=$?
11802 echo "$as_me:11802: \$? = $ac_status" >&5
11803 (exit $ac_status); }; }; then
11804 ac_cv_lib_Xt_XtAppInitialize=yes
11805 else
11806 echo "$as_me: failed program was:" >&5
11807 cat conftest.$ac_ext >&5
11808 ac_cv_lib_Xt_XtAppInitialize=no
11810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11811 LIBS=$ac_check_lib_save_LIBS
11813 echo "$as_me:11813: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
11814 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
11815 if test $ac_cv_lib_Xt_XtAppInitialize = yes; then
11816 cat >>confdefs.h <<\EOF
11817 #define HAVE_LIBXT 1
11820 cf_have_X_LIBS=Xt
11821 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
11828 if test $cf_have_X_LIBS = no ; then
11829 { echo "$as_me:11829: WARNING: Unable to successfully link X Toolkit library (-lXt) with
11830 test program. You will have to check and add the proper libraries by hand
11831 to makefile." >&5
11832 echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with
11833 test program. You will have to check and add the proper libraries by hand
11834 to makefile." >&2;}
11837 cf_x_athena_root=$cf_x_athena
11838 cf_x_athena_inc=""
11840 for cf_path in default \
11841 /usr/contrib/X11R6 \
11842 /usr/contrib/X11R5 \
11843 /usr/lib/X11R5 \
11844 /usr/local
11846 if test -z "$cf_x_athena_inc" ; then
11847 cf_save="$CPPFLAGS"
11848 cf_test=X11/$cf_x_athena_root/SimpleMenu.h
11849 if test $cf_path != default ; then
11850 CPPFLAGS="$cf_save -I$cf_path/include"
11851 echo "$as_me:11851: checking for $cf_test in $cf_path" >&5
11852 echo $ECHO_N "checking for $cf_test in $cf_path... $ECHO_C" >&6
11853 else
11854 echo "$as_me:11854: checking for $cf_test" >&5
11855 echo $ECHO_N "checking for $cf_test... $ECHO_C" >&6
11857 cat >conftest.$ac_ext <<_ACEOF
11858 #line 11858 "configure"
11859 #include "confdefs.h"
11861 #include <X11/Intrinsic.h>
11862 #include <$cf_test>
11864 main ()
11868 return 0;
11870 _ACEOF
11871 rm -f conftest.$ac_objext
11872 if { (eval echo "$as_me:11872: \"$ac_compile\"") >&5
11873 (eval $ac_compile) 2>&5
11874 ac_status=$?
11875 echo "$as_me:11875: \$? = $ac_status" >&5
11876 (exit $ac_status); } &&
11877 { ac_try='test -s conftest.$ac_objext'
11878 { (eval echo "$as_me:11878: \"$ac_try\"") >&5
11879 (eval $ac_try) 2>&5
11880 ac_status=$?
11881 echo "$as_me:11881: \$? = $ac_status" >&5
11882 (exit $ac_status); }; }; then
11883 cf_result=yes
11884 else
11885 echo "$as_me: failed program was:" >&5
11886 cat conftest.$ac_ext >&5
11887 cf_result=no
11889 rm -f conftest.$ac_objext conftest.$ac_ext
11890 echo "$as_me:11890: result: $cf_result" >&5
11891 echo "${ECHO_T}$cf_result" >&6
11892 if test "$cf_result" = yes ; then
11893 cf_x_athena_inc=$cf_path
11894 break
11895 else
11896 CPPFLAGS="$cf_save"
11899 done
11901 if test -z "$cf_x_athena_inc" ; then
11902 { echo "$as_me:11902: WARNING: Unable to successfully find Athena header files with test program" >&5
11903 echo "$as_me: WARNING: Unable to successfully find Athena header files with test program" >&2;}
11904 elif test "$cf_x_athena_inc" != default ; then
11905 CPPFLAGS="$CPPFLAGS -I$cf_x_athena_inc"
11908 cf_x_athena_root=$cf_x_athena
11909 cf_x_athena_lib=""
11911 for cf_path in default \
11912 /usr/contrib/X11R6 \
11913 /usr/contrib/X11R5 \
11914 /usr/lib/X11R5 \
11915 /usr/local
11917 for cf_lib in \
11918 "-l$cf_x_athena_root -lXmu" \
11919 "-l$cf_x_athena_root -lXpm -lXmu" \
11920 "-l${cf_x_athena_root}_s -lXmu_s"
11922 if test -z "$cf_x_athena_lib" ; then
11923 cf_save="$LIBS"
11924 cf_test=XawSimpleMenuAddGlobalActions
11925 if test $cf_path != default ; then
11926 LIBS="-L$cf_path/lib $cf_lib $LIBS"
11927 echo "$as_me:11927: checking for $cf_lib in $cf_path" >&5
11928 echo $ECHO_N "checking for $cf_lib in $cf_path... $ECHO_C" >&6
11929 else
11930 LIBS="$cf_lib $LIBS"
11931 echo "$as_me:11931: checking for $cf_test in $cf_lib" >&5
11932 echo $ECHO_N "checking for $cf_test in $cf_lib... $ECHO_C" >&6
11934 cat >conftest.$ac_ext <<_ACEOF
11935 #line 11935 "configure"
11936 #include "confdefs.h"
11938 #include <X11/Intrinsic.h>
11939 #include <X11/$cf_x_athena_root/SimpleMenu.h>
11942 main ()
11945 $cf_test((XtAppContext) 0)
11947 return 0;
11949 _ACEOF
11950 rm -f conftest.$ac_objext conftest$ac_exeext
11951 if { (eval echo "$as_me:11951: \"$ac_link\"") >&5
11952 (eval $ac_link) 2>&5
11953 ac_status=$?
11954 echo "$as_me:11954: \$? = $ac_status" >&5
11955 (exit $ac_status); } &&
11956 { ac_try='test -s conftest$ac_exeext'
11957 { (eval echo "$as_me:11957: \"$ac_try\"") >&5
11958 (eval $ac_try) 2>&5
11959 ac_status=$?
11960 echo "$as_me:11960: \$? = $ac_status" >&5
11961 (exit $ac_status); }; }; then
11962 cf_result=yes
11963 else
11964 echo "$as_me: failed program was:" >&5
11965 cat conftest.$ac_ext >&5
11966 cf_result=no
11968 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11969 echo "$as_me:11969: result: $cf_result" >&5
11970 echo "${ECHO_T}$cf_result" >&6
11971 if test "$cf_result" = yes ; then
11972 cf_x_athena_lib="$cf_lib"
11973 break
11975 LIBS="$cf_save"
11977 done
11978 done
11980 if test -z "$cf_x_athena_lib" ; then
11981 { { echo "$as_me:11981: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&5
11982 echo "$as_me: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&2;}
11983 { (exit 1); exit 1; }; }
11986 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
11988 cat >>confdefs.h <<EOF
11989 #define $cf_x_athena_LIBS 1
11994 for ac_prog in xcurses-config
11996 # Extract the first word of "$ac_prog", so it can be a program name with args.
11997 set dummy $ac_prog; ac_word=$2
11998 echo "$as_me:11998: checking for $ac_word" >&5
11999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12000 if test "${ac_cv_path_XCURSES_CONFIG+set}" = set; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
12002 else
12003 case $XCURSES_CONFIG in
12004 [\\/]* | ?:[\\/]*)
12005 ac_cv_path_XCURSES_CONFIG="$XCURSES_CONFIG" # Let the user override the test with a path.
12008 ac_save_IFS=$IFS; IFS=$ac_path_separator
12009 ac_dummy="$PATH"
12010 for ac_dir in $ac_dummy; do
12011 IFS=$ac_save_IFS
12012 test -z "$ac_dir" && ac_dir=.
12013 if $as_executable_p "$ac_dir/$ac_word"; then
12014 ac_cv_path_XCURSES_CONFIG="$ac_dir/$ac_word"
12015 echo "$as_me:12015: found $ac_dir/$ac_word" >&5
12016 break
12018 done
12021 esac
12023 XCURSES_CONFIG=$ac_cv_path_XCURSES_CONFIG
12025 if test -n "$XCURSES_CONFIG"; then
12026 echo "$as_me:12026: result: $XCURSES_CONFIG" >&5
12027 echo "${ECHO_T}$XCURSES_CONFIG" >&6
12028 else
12029 echo "$as_me:12029: result: no" >&5
12030 echo "${ECHO_T}no" >&6
12033 test -n "$XCURSES_CONFIG" && break
12034 done
12035 test -n "$XCURSES_CONFIG" || XCURSES_CONFIG="none"
12037 if test "$XCURSES_CONFIG" != none ; then
12039 CPPFLAGS="$CPPFLAGS `$XCURSES_CONFIG --cflags`"
12040 LIBS="`$XCURSES_CONFIG --libs` $LIBS"
12042 cf_cv_lib_XCurses=yes
12044 else
12046 LDFLAGS="$LDFLAGS $X_LIBS"
12048 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
12050 echo "${as_me:-configure}:12050: testing checking additions to CFLAGS ..." 1>&5
12052 cf_check_cflags="$CFLAGS"
12053 cf_check_cppflags="$CPPFLAGS"
12055 cf_fix_cppflags=no
12056 cf_new_cflags=
12057 cf_new_cppflags=
12058 cf_new_extra_cppflags=
12060 for cf_add_cflags in $X_CFLAGS
12062 case $cf_fix_cppflags in
12064 case $cf_add_cflags in #(vi
12065 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
12066 case $cf_add_cflags in
12067 -D*)
12068 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12070 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12071 && test -z "${cf_tst_cflags}" \
12072 && cf_fix_cppflags=yes
12074 if test $cf_fix_cppflags = yes ; then
12075 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12076 continue
12077 elif test "${cf_tst_cflags}" = "\"'" ; then
12078 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12079 continue
12082 esac
12083 case "$CPPFLAGS" in
12084 *$cf_add_cflags) #(vi
12086 *) #(vi
12087 case $cf_add_cflags in #(vi
12088 -D*)
12089 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12091 CPPFLAGS=`echo "$CPPFLAGS" | \
12092 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12093 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12096 esac
12097 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12099 esac
12102 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12104 esac
12106 yes)
12107 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12109 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12111 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
12112 && test -z "${cf_tst_cflags}" \
12113 && cf_fix_cppflags=no
12115 esac
12116 done
12118 if test -n "$cf_new_cflags" ; then
12119 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
12121 echo "${as_me:-configure}:12121: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
12123 CFLAGS="$CFLAGS $cf_new_cflags"
12126 if test -n "$cf_new_cppflags" ; then
12127 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
12129 echo "${as_me:-configure}:12129: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
12131 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12134 if test -n "$cf_new_extra_cppflags" ; then
12135 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
12137 echo "${as_me:-configure}:12137: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
12139 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12142 if test "$cf_check_cflags" != "$CFLAGS" ; then
12143 cat >conftest.$ac_ext <<_ACEOF
12144 #line 12144 "configure"
12145 #include "confdefs.h"
12146 #include <stdio.h>
12148 main ()
12150 printf("Hello world");
12152 return 0;
12154 _ACEOF
12155 rm -f conftest.$ac_objext conftest$ac_exeext
12156 if { (eval echo "$as_me:12156: \"$ac_link\"") >&5
12157 (eval $ac_link) 2>&5
12158 ac_status=$?
12159 echo "$as_me:12159: \$? = $ac_status" >&5
12160 (exit $ac_status); } &&
12161 { ac_try='test -s conftest$ac_exeext'
12162 { (eval echo "$as_me:12162: \"$ac_try\"") >&5
12163 (eval $ac_try) 2>&5
12164 ac_status=$?
12165 echo "$as_me:12165: \$? = $ac_status" >&5
12166 (exit $ac_status); }; }; then
12168 else
12169 echo "$as_me: failed program was:" >&5
12170 cat conftest.$ac_ext >&5
12171 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
12173 echo "${as_me:-configure}:12173: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
12175 if test "$cf_check_cppflags" != "$CPPFLAGS" ; then
12176 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
12178 echo "${as_me:-configure}:12178: testing but keeping change to \$CPPFLAGS ..." 1>&5
12181 CFLAGS="$cf_check_flags"
12183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12186 echo "$as_me:12186: checking for XOpenDisplay in -lX11" >&5
12187 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
12188 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
12189 echo $ECHO_N "(cached) $ECHO_C" >&6
12190 else
12191 ac_check_lib_save_LIBS=$LIBS
12192 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
12193 cat >conftest.$ac_ext <<_ACEOF
12194 #line 12194 "configure"
12195 #include "confdefs.h"
12197 /* Override any gcc2 internal prototype to avoid an error. */
12198 #ifdef __cplusplus
12199 extern "C"
12200 #endif
12201 /* We use char because int might match the return type of a gcc2
12202 builtin and then its argument prototype would still apply. */
12203 char XOpenDisplay ();
12205 main ()
12207 XOpenDisplay ();
12209 return 0;
12211 _ACEOF
12212 rm -f conftest.$ac_objext conftest$ac_exeext
12213 if { (eval echo "$as_me:12213: \"$ac_link\"") >&5
12214 (eval $ac_link) 2>&5
12215 ac_status=$?
12216 echo "$as_me:12216: \$? = $ac_status" >&5
12217 (exit $ac_status); } &&
12218 { ac_try='test -s conftest$ac_exeext'
12219 { (eval echo "$as_me:12219: \"$ac_try\"") >&5
12220 (eval $ac_try) 2>&5
12221 ac_status=$?
12222 echo "$as_me:12222: \$? = $ac_status" >&5
12223 (exit $ac_status); }; }; then
12224 ac_cv_lib_X11_XOpenDisplay=yes
12225 else
12226 echo "$as_me: failed program was:" >&5
12227 cat conftest.$ac_ext >&5
12228 ac_cv_lib_X11_XOpenDisplay=no
12230 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12231 LIBS=$ac_check_lib_save_LIBS
12233 echo "$as_me:12233: result: $ac_cv_lib_X11_XOpenDisplay" >&5
12234 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
12235 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
12236 LIBS="-lX11 $LIBS"
12239 echo "$as_me:12239: checking for XCurses library" >&5
12240 echo $ECHO_N "checking for XCurses library... $ECHO_C" >&6
12241 if test "${cf_cv_lib_XCurses+set}" = set; then
12242 echo $ECHO_N "(cached) $ECHO_C" >&6
12243 else
12245 LIBS="-lXCurses $LIBS"
12246 cat >conftest.$ac_ext <<_ACEOF
12247 #line 12247 "configure"
12248 #include "confdefs.h"
12250 #include <xcurses.h>
12251 char *XCursesProgramName = "test";
12254 main ()
12256 XCursesExit();
12258 return 0;
12260 _ACEOF
12261 rm -f conftest.$ac_objext conftest$ac_exeext
12262 if { (eval echo "$as_me:12262: \"$ac_link\"") >&5
12263 (eval $ac_link) 2>&5
12264 ac_status=$?
12265 echo "$as_me:12265: \$? = $ac_status" >&5
12266 (exit $ac_status); } &&
12267 { ac_try='test -s conftest$ac_exeext'
12268 { (eval echo "$as_me:12268: \"$ac_try\"") >&5
12269 (eval $ac_try) 2>&5
12270 ac_status=$?
12271 echo "$as_me:12271: \$? = $ac_status" >&5
12272 (exit $ac_status); }; }; then
12273 cf_cv_lib_XCurses=yes
12274 else
12275 echo "$as_me: failed program was:" >&5
12276 cat conftest.$ac_ext >&5
12277 cf_cv_lib_XCurses=no
12279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12282 echo "$as_me:12282: result: $cf_cv_lib_XCurses" >&5
12283 echo "${ECHO_T}$cf_cv_lib_XCurses" >&6
12287 if test $cf_cv_lib_XCurses = yes ; then
12288 cat >>confdefs.h <<\EOF
12289 #define UNIX 1
12292 cat >>confdefs.h <<\EOF
12293 #define XCURSES 1
12296 echo "$as_me:12296: checking for xcurses.h" >&5
12297 echo $ECHO_N "checking for xcurses.h... $ECHO_C" >&6
12298 if test "${ac_cv_header_xcurses_h+set}" = set; then
12299 echo $ECHO_N "(cached) $ECHO_C" >&6
12300 else
12301 cat >conftest.$ac_ext <<_ACEOF
12302 #line 12302 "configure"
12303 #include "confdefs.h"
12304 #include <xcurses.h>
12305 _ACEOF
12306 if { (eval echo "$as_me:12306: \"$ac_cpp conftest.$ac_ext\"") >&5
12307 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12308 ac_status=$?
12309 egrep -v '^ *\+' conftest.er1 >conftest.err
12310 rm -f conftest.er1
12311 cat conftest.err >&5
12312 echo "$as_me:12312: \$? = $ac_status" >&5
12313 (exit $ac_status); } >/dev/null; then
12314 if test -s conftest.err; then
12315 ac_cpp_err=$ac_c_preproc_warn_flag
12316 else
12317 ac_cpp_err=
12319 else
12320 ac_cpp_err=yes
12322 if test -z "$ac_cpp_err"; then
12323 ac_cv_header_xcurses_h=yes
12324 else
12325 echo "$as_me: failed program was:" >&5
12326 cat conftest.$ac_ext >&5
12327 ac_cv_header_xcurses_h=no
12329 rm -f conftest.err conftest.$ac_ext
12331 echo "$as_me:12331: result: $ac_cv_header_xcurses_h" >&5
12332 echo "${ECHO_T}$ac_cv_header_xcurses_h" >&6
12333 if test $ac_cv_header_xcurses_h = yes; then
12334 cat >>confdefs.h <<\EOF
12335 #define HAVE_XCURSES 1
12340 else
12341 { { echo "$as_me:12341: error: Cannot link with XCurses" >&5
12342 echo "$as_me: error: Cannot link with XCurses" >&2;}
12343 { (exit 1); exit 1; }; }
12347 esac
12349 case $cf_cv_screen in #(vi
12350 pdcurses) #(vi
12353 # look for curses-related libraries
12355 as_ac_Lib=`echo "ac_cv_lib_panel$cf_cv_libtype''_new_panel" | $as_tr_sh`
12356 echo "$as_me:12356: checking for new_panel in -lpanel$cf_cv_libtype" >&5
12357 echo $ECHO_N "checking for new_panel in -lpanel$cf_cv_libtype... $ECHO_C" >&6
12358 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
12359 echo $ECHO_N "(cached) $ECHO_C" >&6
12360 else
12361 ac_check_lib_save_LIBS=$LIBS
12362 LIBS="-lpanel$cf_cv_libtype $LIBS"
12363 cat >conftest.$ac_ext <<_ACEOF
12364 #line 12364 "configure"
12365 #include "confdefs.h"
12367 /* Override any gcc2 internal prototype to avoid an error. */
12368 #ifdef __cplusplus
12369 extern "C"
12370 #endif
12371 /* We use char because int might match the return type of a gcc2
12372 builtin and then its argument prototype would still apply. */
12373 char new_panel ();
12375 main ()
12377 new_panel ();
12379 return 0;
12381 _ACEOF
12382 rm -f conftest.$ac_objext conftest$ac_exeext
12383 if { (eval echo "$as_me:12383: \"$ac_link\"") >&5
12384 (eval $ac_link) 2>&5
12385 ac_status=$?
12386 echo "$as_me:12386: \$? = $ac_status" >&5
12387 (exit $ac_status); } &&
12388 { ac_try='test -s conftest$ac_exeext'
12389 { (eval echo "$as_me:12389: \"$ac_try\"") >&5
12390 (eval $ac_try) 2>&5
12391 ac_status=$?
12392 echo "$as_me:12392: \$? = $ac_status" >&5
12393 (exit $ac_status); }; }; then
12394 eval "$as_ac_Lib=yes"
12395 else
12396 echo "$as_me: failed program was:" >&5
12397 cat conftest.$ac_ext >&5
12398 eval "$as_ac_Lib=no"
12400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12401 LIBS=$ac_check_lib_save_LIBS
12403 echo "$as_me:12403: result: `eval echo '${'$as_ac_Lib'}'`" >&5
12404 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
12405 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12406 cat >>confdefs.h <<EOF
12407 #define `echo "HAVE_LIBpanel$cf_cv_libtype" | $as_tr_cpp` 1
12410 LIBS="-lpanel$cf_cv_libtype $LIBS"
12414 as_ac_Lib=`echo "ac_cv_lib_menu$cf_cv_libtype''_menu_driver" | $as_tr_sh`
12415 echo "$as_me:12415: checking for menu_driver in -lmenu$cf_cv_libtype" >&5
12416 echo $ECHO_N "checking for menu_driver in -lmenu$cf_cv_libtype... $ECHO_C" >&6
12417 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
12418 echo $ECHO_N "(cached) $ECHO_C" >&6
12419 else
12420 ac_check_lib_save_LIBS=$LIBS
12421 LIBS="-lmenu$cf_cv_libtype $LIBS"
12422 cat >conftest.$ac_ext <<_ACEOF
12423 #line 12423 "configure"
12424 #include "confdefs.h"
12426 /* Override any gcc2 internal prototype to avoid an error. */
12427 #ifdef __cplusplus
12428 extern "C"
12429 #endif
12430 /* We use char because int might match the return type of a gcc2
12431 builtin and then its argument prototype would still apply. */
12432 char menu_driver ();
12434 main ()
12436 menu_driver ();
12438 return 0;
12440 _ACEOF
12441 rm -f conftest.$ac_objext conftest$ac_exeext
12442 if { (eval echo "$as_me:12442: \"$ac_link\"") >&5
12443 (eval $ac_link) 2>&5
12444 ac_status=$?
12445 echo "$as_me:12445: \$? = $ac_status" >&5
12446 (exit $ac_status); } &&
12447 { ac_try='test -s conftest$ac_exeext'
12448 { (eval echo "$as_me:12448: \"$ac_try\"") >&5
12449 (eval $ac_try) 2>&5
12450 ac_status=$?
12451 echo "$as_me:12451: \$? = $ac_status" >&5
12452 (exit $ac_status); }; }; then
12453 eval "$as_ac_Lib=yes"
12454 else
12455 echo "$as_me: failed program was:" >&5
12456 cat conftest.$ac_ext >&5
12457 eval "$as_ac_Lib=no"
12459 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12460 LIBS=$ac_check_lib_save_LIBS
12462 echo "$as_me:12462: result: `eval echo '${'$as_ac_Lib'}'`" >&5
12463 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
12464 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12465 cat >>confdefs.h <<EOF
12466 #define `echo "HAVE_LIBmenu$cf_cv_libtype" | $as_tr_cpp` 1
12469 LIBS="-lmenu$cf_cv_libtype $LIBS"
12473 as_ac_Lib=`echo "ac_cv_lib_form$cf_cv_libtype''_form_driver" | $as_tr_sh`
12474 echo "$as_me:12474: checking for form_driver in -lform$cf_cv_libtype" >&5
12475 echo $ECHO_N "checking for form_driver in -lform$cf_cv_libtype... $ECHO_C" >&6
12476 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
12477 echo $ECHO_N "(cached) $ECHO_C" >&6
12478 else
12479 ac_check_lib_save_LIBS=$LIBS
12480 LIBS="-lform$cf_cv_libtype $LIBS"
12481 cat >conftest.$ac_ext <<_ACEOF
12482 #line 12482 "configure"
12483 #include "confdefs.h"
12485 /* Override any gcc2 internal prototype to avoid an error. */
12486 #ifdef __cplusplus
12487 extern "C"
12488 #endif
12489 /* We use char because int might match the return type of a gcc2
12490 builtin and then its argument prototype would still apply. */
12491 char form_driver ();
12493 main ()
12495 form_driver ();
12497 return 0;
12499 _ACEOF
12500 rm -f conftest.$ac_objext conftest$ac_exeext
12501 if { (eval echo "$as_me:12501: \"$ac_link\"") >&5
12502 (eval $ac_link) 2>&5
12503 ac_status=$?
12504 echo "$as_me:12504: \$? = $ac_status" >&5
12505 (exit $ac_status); } &&
12506 { ac_try='test -s conftest$ac_exeext'
12507 { (eval echo "$as_me:12507: \"$ac_try\"") >&5
12508 (eval $ac_try) 2>&5
12509 ac_status=$?
12510 echo "$as_me:12510: \$? = $ac_status" >&5
12511 (exit $ac_status); }; }; then
12512 eval "$as_ac_Lib=yes"
12513 else
12514 echo "$as_me: failed program was:" >&5
12515 cat conftest.$ac_ext >&5
12516 eval "$as_ac_Lib=no"
12518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12519 LIBS=$ac_check_lib_save_LIBS
12521 echo "$as_me:12521: result: `eval echo '${'$as_ac_Lib'}'`" >&5
12522 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
12523 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
12524 cat >>confdefs.h <<EOF
12525 #define `echo "HAVE_LIBform$cf_cv_libtype" | $as_tr_cpp` 1
12528 LIBS="-lform$cf_cv_libtype $LIBS"
12532 # look for curses-related headers
12534 for ac_header in \
12535 nc_alloc.h \
12536 nomacros.h \
12537 form.h \
12538 menu.h \
12539 panel.h \
12540 term_entry.h \
12543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12544 echo "$as_me:12544: checking for $ac_header" >&5
12545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12547 echo $ECHO_N "(cached) $ECHO_C" >&6
12548 else
12549 cat >conftest.$ac_ext <<_ACEOF
12550 #line 12550 "configure"
12551 #include "confdefs.h"
12552 #include <$ac_header>
12553 _ACEOF
12554 if { (eval echo "$as_me:12554: \"$ac_cpp conftest.$ac_ext\"") >&5
12555 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12556 ac_status=$?
12557 egrep -v '^ *\+' conftest.er1 >conftest.err
12558 rm -f conftest.er1
12559 cat conftest.err >&5
12560 echo "$as_me:12560: \$? = $ac_status" >&5
12561 (exit $ac_status); } >/dev/null; then
12562 if test -s conftest.err; then
12563 ac_cpp_err=$ac_c_preproc_warn_flag
12564 else
12565 ac_cpp_err=
12567 else
12568 ac_cpp_err=yes
12570 if test -z "$ac_cpp_err"; then
12571 eval "$as_ac_Header=yes"
12572 else
12573 echo "$as_me: failed program was:" >&5
12574 cat conftest.$ac_ext >&5
12575 eval "$as_ac_Header=no"
12577 rm -f conftest.err conftest.$ac_ext
12579 echo "$as_me:12579: result: `eval echo '${'$as_ac_Header'}'`" >&5
12580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12582 cat >>confdefs.h <<EOF
12583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12587 done
12590 esac
12592 echo "$as_me:12592: checking return type of signal handlers" >&5
12593 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12594 if test "${ac_cv_type_signal+set}" = set; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12596 else
12597 cat >conftest.$ac_ext <<_ACEOF
12598 #line 12598 "configure"
12599 #include "confdefs.h"
12600 #include <sys/types.h>
12601 #include <signal.h>
12602 #ifdef signal
12603 # undef signal
12604 #endif
12605 #ifdef __cplusplus
12606 extern "C" void (*signal (int, void (*)(int)))(int);
12607 #else
12608 void (*signal ()) ();
12609 #endif
12612 main ()
12614 int i;
12616 return 0;
12618 _ACEOF
12619 rm -f conftest.$ac_objext
12620 if { (eval echo "$as_me:12620: \"$ac_compile\"") >&5
12621 (eval $ac_compile) 2>&5
12622 ac_status=$?
12623 echo "$as_me:12623: \$? = $ac_status" >&5
12624 (exit $ac_status); } &&
12625 { ac_try='test -s conftest.$ac_objext'
12626 { (eval echo "$as_me:12626: \"$ac_try\"") >&5
12627 (eval $ac_try) 2>&5
12628 ac_status=$?
12629 echo "$as_me:12629: \$? = $ac_status" >&5
12630 (exit $ac_status); }; }; then
12631 ac_cv_type_signal=void
12632 else
12633 echo "$as_me: failed program was:" >&5
12634 cat conftest.$ac_ext >&5
12635 ac_cv_type_signal=int
12637 rm -f conftest.$ac_objext conftest.$ac_ext
12639 echo "$as_me:12639: result: $ac_cv_type_signal" >&5
12640 echo "${ECHO_T}$ac_cv_type_signal" >&6
12642 cat >>confdefs.h <<EOF
12643 #define RETSIGTYPE $ac_cv_type_signal
12646 echo "$as_me:12646: checking for ANSI C header files" >&5
12647 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12648 if test "${ac_cv_header_stdc+set}" = set; then
12649 echo $ECHO_N "(cached) $ECHO_C" >&6
12650 else
12651 cat >conftest.$ac_ext <<_ACEOF
12652 #line 12652 "configure"
12653 #include "confdefs.h"
12654 #include <stdlib.h>
12655 #include <stdarg.h>
12656 #include <string.h>
12657 #include <float.h>
12659 _ACEOF
12660 if { (eval echo "$as_me:12660: \"$ac_cpp conftest.$ac_ext\"") >&5
12661 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12662 ac_status=$?
12663 egrep -v '^ *\+' conftest.er1 >conftest.err
12664 rm -f conftest.er1
12665 cat conftest.err >&5
12666 echo "$as_me:12666: \$? = $ac_status" >&5
12667 (exit $ac_status); } >/dev/null; then
12668 if test -s conftest.err; then
12669 ac_cpp_err=$ac_c_preproc_warn_flag
12670 else
12671 ac_cpp_err=
12673 else
12674 ac_cpp_err=yes
12676 if test -z "$ac_cpp_err"; then
12677 ac_cv_header_stdc=yes
12678 else
12679 echo "$as_me: failed program was:" >&5
12680 cat conftest.$ac_ext >&5
12681 ac_cv_header_stdc=no
12683 rm -f conftest.err conftest.$ac_ext
12685 if test $ac_cv_header_stdc = yes; then
12686 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12687 cat >conftest.$ac_ext <<_ACEOF
12688 #line 12688 "configure"
12689 #include "confdefs.h"
12690 #include <string.h>
12692 _ACEOF
12693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12694 egrep "memchr" >/dev/null 2>&1; then
12696 else
12697 ac_cv_header_stdc=no
12699 rm -rf conftest*
12703 if test $ac_cv_header_stdc = yes; then
12704 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12705 cat >conftest.$ac_ext <<_ACEOF
12706 #line 12706 "configure"
12707 #include "confdefs.h"
12708 #include <stdlib.h>
12710 _ACEOF
12711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12712 egrep "free" >/dev/null 2>&1; then
12714 else
12715 ac_cv_header_stdc=no
12717 rm -rf conftest*
12721 if test $ac_cv_header_stdc = yes; then
12722 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12723 if test "$cross_compiling" = yes; then
12725 else
12726 cat >conftest.$ac_ext <<_ACEOF
12727 #line 12727 "configure"
12728 #include "confdefs.h"
12729 #include <ctype.h>
12730 #if ((' ' & 0x0FF) == 0x020)
12731 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12732 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12733 #else
12734 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
12735 || ('j' <= (c) && (c) <= 'r') \
12736 || ('s' <= (c) && (c) <= 'z'))
12737 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12738 #endif
12740 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12742 main ()
12744 int i;
12745 for (i = 0; i < 256; i++)
12746 if (XOR (islower (i), ISLOWER (i))
12747 || toupper (i) != TOUPPER (i))
12748 $ac_main_return(2);
12749 $ac_main_return (0);
12751 _ACEOF
12752 rm -f conftest$ac_exeext
12753 if { (eval echo "$as_me:12753: \"$ac_link\"") >&5
12754 (eval $ac_link) 2>&5
12755 ac_status=$?
12756 echo "$as_me:12756: \$? = $ac_status" >&5
12757 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12758 { (eval echo "$as_me:12758: \"$ac_try\"") >&5
12759 (eval $ac_try) 2>&5
12760 ac_status=$?
12761 echo "$as_me:12761: \$? = $ac_status" >&5
12762 (exit $ac_status); }; }; then
12764 else
12765 echo "$as_me: program exited with status $ac_status" >&5
12766 echo "$as_me: failed program was:" >&5
12767 cat conftest.$ac_ext >&5
12768 ac_cv_header_stdc=no
12770 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12774 echo "$as_me:12774: result: $ac_cv_header_stdc" >&5
12775 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12776 if test $ac_cv_header_stdc = yes; then
12778 cat >>confdefs.h <<\EOF
12779 #define STDC_HEADERS 1
12784 echo "$as_me:12784: checking whether time.h and sys/time.h may both be included" >&5
12785 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
12786 if test "${ac_cv_header_time+set}" = set; then
12787 echo $ECHO_N "(cached) $ECHO_C" >&6
12788 else
12789 cat >conftest.$ac_ext <<_ACEOF
12790 #line 12790 "configure"
12791 #include "confdefs.h"
12792 #include <sys/types.h>
12793 #include <sys/time.h>
12794 #include <time.h>
12797 main ()
12799 if ((struct tm *) 0)
12800 return 0;
12802 return 0;
12804 _ACEOF
12805 rm -f conftest.$ac_objext
12806 if { (eval echo "$as_me:12806: \"$ac_compile\"") >&5
12807 (eval $ac_compile) 2>&5
12808 ac_status=$?
12809 echo "$as_me:12809: \$? = $ac_status" >&5
12810 (exit $ac_status); } &&
12811 { ac_try='test -s conftest.$ac_objext'
12812 { (eval echo "$as_me:12812: \"$ac_try\"") >&5
12813 (eval $ac_try) 2>&5
12814 ac_status=$?
12815 echo "$as_me:12815: \$? = $ac_status" >&5
12816 (exit $ac_status); }; }; then
12817 ac_cv_header_time=yes
12818 else
12819 echo "$as_me: failed program was:" >&5
12820 cat conftest.$ac_ext >&5
12821 ac_cv_header_time=no
12823 rm -f conftest.$ac_objext conftest.$ac_ext
12825 echo "$as_me:12825: result: $ac_cv_header_time" >&5
12826 echo "${ECHO_T}$ac_cv_header_time" >&6
12827 if test $ac_cv_header_time = yes; then
12829 cat >>confdefs.h <<\EOF
12830 #define TIME_WITH_SYS_TIME 1
12835 for ac_header in \
12836 getopt.h \
12837 locale.h \
12838 math.h \
12839 stdarg.h \
12840 sys/ioctl.h \
12841 sys/select.h \
12842 sys/time.h \
12843 termios.h \
12844 unistd.h \
12847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12848 echo "$as_me:12848: checking for $ac_header" >&5
12849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12851 echo $ECHO_N "(cached) $ECHO_C" >&6
12852 else
12853 cat >conftest.$ac_ext <<_ACEOF
12854 #line 12854 "configure"
12855 #include "confdefs.h"
12856 #include <$ac_header>
12857 _ACEOF
12858 if { (eval echo "$as_me:12858: \"$ac_cpp conftest.$ac_ext\"") >&5
12859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12860 ac_status=$?
12861 egrep -v '^ *\+' conftest.er1 >conftest.err
12862 rm -f conftest.er1
12863 cat conftest.err >&5
12864 echo "$as_me:12864: \$? = $ac_status" >&5
12865 (exit $ac_status); } >/dev/null; then
12866 if test -s conftest.err; then
12867 ac_cpp_err=$ac_c_preproc_warn_flag
12868 else
12869 ac_cpp_err=
12871 else
12872 ac_cpp_err=yes
12874 if test -z "$ac_cpp_err"; then
12875 eval "$as_ac_Header=yes"
12876 else
12877 echo "$as_me: failed program was:" >&5
12878 cat conftest.$ac_ext >&5
12879 eval "$as_ac_Header=no"
12881 rm -f conftest.err conftest.$ac_ext
12883 echo "$as_me:12883: result: `eval echo '${'$as_ac_Header'}'`" >&5
12884 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12886 cat >>confdefs.h <<EOF
12887 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12891 done
12893 for ac_func in \
12894 gettimeofday \
12895 mblen \
12896 mbrlen \
12897 mbrtowc \
12898 mbsrtowcs \
12899 mbstowcs \
12900 mbtowc \
12901 strdup \
12902 wcsrtombs \
12903 wcstombs \
12906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12907 echo "$as_me:12907: checking for $ac_func" >&5
12908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12909 if eval "test \"\${$as_ac_var+set}\" = set"; then
12910 echo $ECHO_N "(cached) $ECHO_C" >&6
12911 else
12912 cat >conftest.$ac_ext <<_ACEOF
12913 #line 12913 "configure"
12914 #include "confdefs.h"
12915 /* System header to define __stub macros and hopefully few prototypes,
12916 which can conflict with char $ac_func (); below. */
12917 #include <assert.h>
12918 /* Override any gcc2 internal prototype to avoid an error. */
12919 #ifdef __cplusplus
12920 extern "C"
12921 #endif
12922 /* We use char because int might match the return type of a gcc2
12923 builtin and then its argument prototype would still apply. */
12924 char $ac_func ();
12925 char (*f) ();
12928 main ()
12930 /* The GNU C library defines this for functions which it implements
12931 to always fail with ENOSYS. Some functions are actually named
12932 something starting with __ and the normal name is an alias. */
12933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12934 choke me
12935 #else
12936 f = $ac_func;
12937 #endif
12940 return 0;
12942 _ACEOF
12943 rm -f conftest.$ac_objext conftest$ac_exeext
12944 if { (eval echo "$as_me:12944: \"$ac_link\"") >&5
12945 (eval $ac_link) 2>&5
12946 ac_status=$?
12947 echo "$as_me:12947: \$? = $ac_status" >&5
12948 (exit $ac_status); } &&
12949 { ac_try='test -s conftest$ac_exeext'
12950 { (eval echo "$as_me:12950: \"$ac_try\"") >&5
12951 (eval $ac_try) 2>&5
12952 ac_status=$?
12953 echo "$as_me:12953: \$? = $ac_status" >&5
12954 (exit $ac_status); }; }; then
12955 eval "$as_ac_var=yes"
12956 else
12957 echo "$as_me: failed program was:" >&5
12958 cat conftest.$ac_ext >&5
12959 eval "$as_ac_var=no"
12961 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12963 echo "$as_me:12963: result: `eval echo '${'$as_ac_var'}'`" >&5
12964 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12965 if test `eval echo '${'$as_ac_var'}'` = yes; then
12966 cat >>confdefs.h <<EOF
12967 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12971 done
12973 echo "$as_me:12973: checking if we must define _XOPEN_SOURCE_EXTENDED" >&5
12974 echo $ECHO_N "checking if we must define _XOPEN_SOURCE_EXTENDED... $ECHO_C" >&6
12975 if test "${cf_cv_need_xopen_extension+set}" = set; then
12976 echo $ECHO_N "(cached) $ECHO_C" >&6
12977 else
12979 cat >conftest.$ac_ext <<_ACEOF
12980 #line 12980 "configure"
12981 #include "confdefs.h"
12983 #include <stdlib.h>
12984 #include <${cf_cv_ncurses_header:-curses.h}>
12986 main ()
12989 #if defined(NCURSES_VERSION_PATCH)
12990 #if (NCURSES_VERSION_PATCH < 20100501) && (NCURSES_VERSION_PATCH >= 20100403)
12991 make an error
12992 #endif
12993 #endif
12994 long x = winnstr(stdscr, "", 0);
12995 int x1, y1;
12996 getbegyx(stdscr, y1, x1)
12998 return 0;
13000 _ACEOF
13001 rm -f conftest.$ac_objext conftest$ac_exeext
13002 if { (eval echo "$as_me:13002: \"$ac_link\"") >&5
13003 (eval $ac_link) 2>&5
13004 ac_status=$?
13005 echo "$as_me:13005: \$? = $ac_status" >&5
13006 (exit $ac_status); } &&
13007 { ac_try='test -s conftest$ac_exeext'
13008 { (eval echo "$as_me:13008: \"$ac_try\"") >&5
13009 (eval $ac_try) 2>&5
13010 ac_status=$?
13011 echo "$as_me:13011: \$? = $ac_status" >&5
13012 (exit $ac_status); }; }; then
13013 cf_cv_need_xopen_extension=no
13014 else
13015 echo "$as_me: failed program was:" >&5
13016 cat conftest.$ac_ext >&5
13017 cat >conftest.$ac_ext <<_ACEOF
13018 #line 13018 "configure"
13019 #include "confdefs.h"
13021 #define _XOPEN_SOURCE_EXTENDED
13022 #include <stdlib.h>
13023 #include <${cf_cv_ncurses_header:-curses.h}>
13025 main ()
13028 #ifdef NCURSES_VERSION
13029 cchar_t check;
13030 int check2 = curs_set((int)sizeof(check));
13031 #endif
13032 long x = winnstr(stdscr, "", 0);
13033 int x1, y1;
13034 getbegyx(stdscr, y1, x1)
13036 return 0;
13038 _ACEOF
13039 rm -f conftest.$ac_objext conftest$ac_exeext
13040 if { (eval echo "$as_me:13040: \"$ac_link\"") >&5
13041 (eval $ac_link) 2>&5
13042 ac_status=$?
13043 echo "$as_me:13043: \$? = $ac_status" >&5
13044 (exit $ac_status); } &&
13045 { ac_try='test -s conftest$ac_exeext'
13046 { (eval echo "$as_me:13046: \"$ac_try\"") >&5
13047 (eval $ac_try) 2>&5
13048 ac_status=$?
13049 echo "$as_me:13049: \$? = $ac_status" >&5
13050 (exit $ac_status); }; }; then
13051 cf_cv_need_xopen_extension=yes
13052 else
13053 echo "$as_me: failed program was:" >&5
13054 cat conftest.$ac_ext >&5
13055 cf_cv_need_xopen_extension=unknown
13057 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13059 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13061 echo "$as_me:13061: result: $cf_cv_need_xopen_extension" >&5
13062 echo "${ECHO_T}$cf_cv_need_xopen_extension" >&6
13063 test $cf_cv_need_xopen_extension = yes && CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE_EXTENDED"
13065 echo "$as_me:13065: checking for term.h" >&5
13066 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
13067 if test "${cf_cv_term_header+set}" = set; then
13068 echo $ECHO_N "(cached) $ECHO_C" >&6
13069 else
13071 # If we found <ncurses/curses.h>, look for <ncurses/term.h>, but always look
13072 # for <term.h> if we do not find the variant.
13073 for cf_header in \
13074 `echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%/.*%/%'`term.h \
13075 term.h
13077 cat >conftest.$ac_ext <<_ACEOF
13078 #line 13078 "configure"
13079 #include "confdefs.h"
13081 #include <${cf_cv_ncurses_header:-curses.h}>
13082 #include <${cf_header}>
13084 main ()
13086 WINDOW *x
13088 return 0;
13090 _ACEOF
13091 rm -f conftest.$ac_objext
13092 if { (eval echo "$as_me:13092: \"$ac_compile\"") >&5
13093 (eval $ac_compile) 2>&5
13094 ac_status=$?
13095 echo "$as_me:13095: \$? = $ac_status" >&5
13096 (exit $ac_status); } &&
13097 { ac_try='test -s conftest.$ac_objext'
13098 { (eval echo "$as_me:13098: \"$ac_try\"") >&5
13099 (eval $ac_try) 2>&5
13100 ac_status=$?
13101 echo "$as_me:13101: \$? = $ac_status" >&5
13102 (exit $ac_status); }; }; then
13103 cf_cv_term_header=$cf_header
13104 break
13105 else
13106 echo "$as_me: failed program was:" >&5
13107 cat conftest.$ac_ext >&5
13108 cf_cv_term_header=no
13110 rm -f conftest.$ac_objext conftest.$ac_ext
13111 done
13113 case $cf_cv_term_header in #(vi
13115 # If curses is ncurses, some packagers still mess it up by trying to make
13116 # us use GNU termcap. This handles the most common case.
13117 for cf_header in ncurses/term.h ncursesw/term.h
13119 cat >conftest.$ac_ext <<_ACEOF
13120 #line 13120 "configure"
13121 #include "confdefs.h"
13123 #include <${cf_cv_ncurses_header:-curses.h}>
13124 #ifdef NCURSES_VERSION
13125 #include <${cf_header}>
13126 #else
13127 make an error
13128 #endif
13130 main ()
13132 WINDOW *x
13134 return 0;
13136 _ACEOF
13137 rm -f conftest.$ac_objext
13138 if { (eval echo "$as_me:13138: \"$ac_compile\"") >&5
13139 (eval $ac_compile) 2>&5
13140 ac_status=$?
13141 echo "$as_me:13141: \$? = $ac_status" >&5
13142 (exit $ac_status); } &&
13143 { ac_try='test -s conftest.$ac_objext'
13144 { (eval echo "$as_me:13144: \"$ac_try\"") >&5
13145 (eval $ac_try) 2>&5
13146 ac_status=$?
13147 echo "$as_me:13147: \$? = $ac_status" >&5
13148 (exit $ac_status); }; }; then
13149 cf_cv_term_header=$cf_header
13150 break
13151 else
13152 echo "$as_me: failed program was:" >&5
13153 cat conftest.$ac_ext >&5
13154 cf_cv_term_header=no
13156 rm -f conftest.$ac_objext conftest.$ac_ext
13157 done
13159 esac
13162 echo "$as_me:13162: result: $cf_cv_term_header" >&5
13163 echo "${ECHO_T}$cf_cv_term_header" >&6
13165 case $cf_cv_term_header in #(vi
13166 term.h) #(vi
13167 cat >>confdefs.h <<\EOF
13168 #define HAVE_TERM_H 1
13172 ncurses/term.h) #(vi
13173 cat >>confdefs.h <<\EOF
13174 #define HAVE_NCURSES_TERM_H 1
13178 ncursesw/term.h)
13179 cat >>confdefs.h <<\EOF
13180 #define HAVE_NCURSESW_TERM_H 1
13184 esac
13186 for cf_func in \
13187 chgat \
13188 color_set \
13189 filter \
13190 getbegx \
13191 getcurx \
13192 getmaxx \
13193 getnstr \
13194 getparx \
13195 getwin \
13196 mvvline \
13197 mvwvline \
13198 napms \
13199 putwin \
13200 resize_term \
13201 resizeterm \
13202 ripoffline \
13203 scr_dump \
13204 setupterm \
13205 slk_color \
13206 slk_init \
13207 termattrs \
13208 tgetent \
13209 tigetnum \
13210 tigetstr \
13211 typeahead \
13212 use_default_colors \
13213 vw_printw \
13214 vsscanf \
13215 wchgat \
13216 winsstr \
13217 wresize \
13218 wsyncdown \
13222 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13224 echo "$as_me:13224: checking for ${cf_func}" >&5
13225 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
13227 echo "${as_me:-configure}:13227: testing ${cf_func} ..." 1>&5
13229 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
13230 echo $ECHO_N "(cached) $ECHO_C" >&6
13231 else
13233 eval cf_result='$ac_cv_func_'$cf_func
13234 if test ".$cf_result" != ".no"; then
13235 cat >conftest.$ac_ext <<_ACEOF
13236 #line 13236 "configure"
13237 #include "confdefs.h"
13239 #ifdef HAVE_XCURSES
13240 #include <xcurses.h>
13241 char * XCursesProgramName = "test";
13242 #else
13243 #include <${cf_cv_ncurses_header:-curses.h}>
13244 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
13245 #include <ncursesw/term.h>
13246 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
13247 #include <ncurses/term.h>
13248 #elif defined(HAVE_TERM_H)
13249 #include <term.h>
13250 #endif
13251 #endif
13254 main ()
13257 #ifndef ${cf_func}
13258 long foo = (long)(&${cf_func});
13259 ${cf_cv_main_return:-return}(foo == 0);
13260 #endif
13263 return 0;
13265 _ACEOF
13266 rm -f conftest.$ac_objext conftest$ac_exeext
13267 if { (eval echo "$as_me:13267: \"$ac_link\"") >&5
13268 (eval $ac_link) 2>&5
13269 ac_status=$?
13270 echo "$as_me:13270: \$? = $ac_status" >&5
13271 (exit $ac_status); } &&
13272 { ac_try='test -s conftest$ac_exeext'
13273 { (eval echo "$as_me:13273: \"$ac_try\"") >&5
13274 (eval $ac_try) 2>&5
13275 ac_status=$?
13276 echo "$as_me:13276: \$? = $ac_status" >&5
13277 (exit $ac_status); }; }; then
13278 cf_result=yes
13279 else
13280 echo "$as_me: failed program was:" >&5
13281 cat conftest.$ac_ext >&5
13282 cf_result=no
13284 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13286 eval 'cf_cv_func_'$cf_func'=$cf_result'
13290 # use the computed/retrieved cache-value:
13291 eval 'cf_result=$cf_cv_func_'$cf_func
13292 echo "$as_me:13292: result: $cf_result" >&5
13293 echo "${ECHO_T}$cf_result" >&6
13294 if test $cf_result != no; then
13295 cat >>confdefs.h <<EOF
13296 #define HAVE_${cf_tr_func} 1
13300 done
13302 echo "$as_me:13302: checking for ncurses extended functions" >&5
13303 echo $ECHO_N "checking for ncurses extended functions... $ECHO_C" >&6
13304 if test "${cf_cv_ncurses_ext_funcs+set}" = set; then
13305 echo $ECHO_N "(cached) $ECHO_C" >&6
13306 else
13308 cat >conftest.$ac_ext <<_ACEOF
13309 #line 13309 "configure"
13310 #include "confdefs.h"
13312 #include <${cf_cv_ncurses_header:-curses.h}>
13314 main ()
13317 int x = NCURSES_EXT_FUNCS
13320 return 0;
13322 _ACEOF
13323 rm -f conftest.$ac_objext
13324 if { (eval echo "$as_me:13324: \"$ac_compile\"") >&5
13325 (eval $ac_compile) 2>&5
13326 ac_status=$?
13327 echo "$as_me:13327: \$? = $ac_status" >&5
13328 (exit $ac_status); } &&
13329 { ac_try='test -s conftest.$ac_objext'
13330 { (eval echo "$as_me:13330: \"$ac_try\"") >&5
13331 (eval $ac_try) 2>&5
13332 ac_status=$?
13333 echo "$as_me:13333: \$? = $ac_status" >&5
13334 (exit $ac_status); }; }; then
13335 cf_cv_ncurses_ext_funcs=defined
13336 else
13337 echo "$as_me: failed program was:" >&5
13338 cat conftest.$ac_ext >&5
13340 cat >conftest.$ac_ext <<_ACEOF
13341 #line 13341 "configure"
13342 #include "confdefs.h"
13344 #include <${cf_cv_ncurses_header:-curses.h}>
13346 main ()
13349 (void) assume_default_colors (0, 0);
13350 (void) curses_version ();
13351 (void) define_key (0, 0);
13352 (void) is_term_resized (0, 0);
13353 (void) key_defined (0);
13354 (void) keybound (0, 0);
13355 (void) keyok (0, 0);
13356 (void) resize_term (0, 0);
13357 (void) resizeterm (0, 0);
13358 (void) use_default_colors ();
13359 (void) use_extended_names (0);
13360 (void) wresize (0, 0, 0);
13362 return 0;
13364 _ACEOF
13365 rm -f conftest.$ac_objext conftest$ac_exeext
13366 if { (eval echo "$as_me:13366: \"$ac_link\"") >&5
13367 (eval $ac_link) 2>&5
13368 ac_status=$?
13369 echo "$as_me:13369: \$? = $ac_status" >&5
13370 (exit $ac_status); } &&
13371 { ac_try='test -s conftest$ac_exeext'
13372 { (eval echo "$as_me:13372: \"$ac_try\"") >&5
13373 (eval $ac_try) 2>&5
13374 ac_status=$?
13375 echo "$as_me:13375: \$? = $ac_status" >&5
13376 (exit $ac_status); }; }; then
13377 cf_cv_ncurses_ext_funcs=yes
13378 else
13379 echo "$as_me: failed program was:" >&5
13380 cat conftest.$ac_ext >&5
13381 cf_cv_ncurses_ext_funcs=no
13383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13386 rm -f conftest.$ac_objext conftest.$ac_ext
13389 echo "$as_me:13389: result: $cf_cv_ncurses_ext_funcs" >&5
13390 echo "${ECHO_T}$cf_cv_ncurses_ext_funcs" >&6
13391 test "$cf_cv_ncurses_ext_funcs" = yes && cat >>confdefs.h <<\EOF
13392 #define NCURSES_EXT_FUNCS 1
13395 echo "$as_me:13395: checking for wide-character functions" >&5
13396 echo $ECHO_N "checking for wide-character functions... $ECHO_C" >&6
13397 if test "${cf_cv_widechar_funcs+set}" = set; then
13398 echo $ECHO_N "(cached) $ECHO_C" >&6
13399 else
13401 cat >conftest.$ac_ext <<_ACEOF
13402 #line 13402 "configure"
13403 #include "confdefs.h"
13405 #include <${cf_cv_ncurses_header:-curses.h}>
13407 main ()
13410 static wchar_t src_wchar[2];
13411 static cchar_t dst_cchar;
13412 setcchar(&dst_cchar, src_wchar, A_NORMAL, 0, (void *) 0);
13415 return 0;
13417 _ACEOF
13418 rm -f conftest.$ac_objext conftest$ac_exeext
13419 if { (eval echo "$as_me:13419: \"$ac_link\"") >&5
13420 (eval $ac_link) 2>&5
13421 ac_status=$?
13422 echo "$as_me:13422: \$? = $ac_status" >&5
13423 (exit $ac_status); } &&
13424 { ac_try='test -s conftest$ac_exeext'
13425 { (eval echo "$as_me:13425: \"$ac_try\"") >&5
13426 (eval $ac_try) 2>&5
13427 ac_status=$?
13428 echo "$as_me:13428: \$? = $ac_status" >&5
13429 (exit $ac_status); }; }; then
13430 cf_cv_widechar_funcs=yes
13431 else
13432 echo "$as_me: failed program was:" >&5
13433 cat conftest.$ac_ext >&5
13434 cf_cv_widechar_funcs=no
13436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13439 echo "$as_me:13439: result: $cf_cv_widechar_funcs" >&5
13440 echo "${ECHO_T}$cf_cv_widechar_funcs" >&6
13441 if test "$cf_cv_widechar_funcs" != no ; then
13442 cat >>confdefs.h <<\EOF
13443 #define USE_WIDEC_SUPPORT 1
13446 else
13447 cat >>confdefs.h <<\EOF
13448 #define USE_WIDEC_SUPPORT 0
13453 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
13455 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
13456 inttypes.h stdint.h unistd.h
13458 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13459 echo "$as_me:13459: checking for $ac_header" >&5
13460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13462 echo $ECHO_N "(cached) $ECHO_C" >&6
13463 else
13464 cat >conftest.$ac_ext <<_ACEOF
13465 #line 13465 "configure"
13466 #include "confdefs.h"
13467 $ac_includes_default
13468 #include <$ac_header>
13469 _ACEOF
13470 rm -f conftest.$ac_objext
13471 if { (eval echo "$as_me:13471: \"$ac_compile\"") >&5
13472 (eval $ac_compile) 2>&5
13473 ac_status=$?
13474 echo "$as_me:13474: \$? = $ac_status" >&5
13475 (exit $ac_status); } &&
13476 { ac_try='test -s conftest.$ac_objext'
13477 { (eval echo "$as_me:13477: \"$ac_try\"") >&5
13478 (eval $ac_try) 2>&5
13479 ac_status=$?
13480 echo "$as_me:13480: \$? = $ac_status" >&5
13481 (exit $ac_status); }; }; then
13482 eval "$as_ac_Header=yes"
13483 else
13484 echo "$as_me: failed program was:" >&5
13485 cat conftest.$ac_ext >&5
13486 eval "$as_ac_Header=no"
13488 rm -f conftest.$ac_objext conftest.$ac_ext
13490 echo "$as_me:13490: result: `eval echo '${'$as_ac_Header'}'`" >&5
13491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13493 cat >>confdefs.h <<EOF
13494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13498 done
13500 echo "$as_me:13500: checking for pid_t" >&5
13501 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
13502 if test "${ac_cv_type_pid_t+set}" = set; then
13503 echo $ECHO_N "(cached) $ECHO_C" >&6
13504 else
13505 cat >conftest.$ac_ext <<_ACEOF
13506 #line 13506 "configure"
13507 #include "confdefs.h"
13508 $ac_includes_default
13510 main ()
13512 if ((pid_t *) 0)
13513 return 0;
13514 if (sizeof (pid_t))
13515 return 0;
13517 return 0;
13519 _ACEOF
13520 rm -f conftest.$ac_objext
13521 if { (eval echo "$as_me:13521: \"$ac_compile\"") >&5
13522 (eval $ac_compile) 2>&5
13523 ac_status=$?
13524 echo "$as_me:13524: \$? = $ac_status" >&5
13525 (exit $ac_status); } &&
13526 { ac_try='test -s conftest.$ac_objext'
13527 { (eval echo "$as_me:13527: \"$ac_try\"") >&5
13528 (eval $ac_try) 2>&5
13529 ac_status=$?
13530 echo "$as_me:13530: \$? = $ac_status" >&5
13531 (exit $ac_status); }; }; then
13532 ac_cv_type_pid_t=yes
13533 else
13534 echo "$as_me: failed program was:" >&5
13535 cat conftest.$ac_ext >&5
13536 ac_cv_type_pid_t=no
13538 rm -f conftest.$ac_objext conftest.$ac_ext
13540 echo "$as_me:13540: result: $ac_cv_type_pid_t" >&5
13541 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
13542 if test $ac_cv_type_pid_t = yes; then
13544 else
13546 cat >>confdefs.h <<EOF
13547 #define pid_t int
13552 for ac_header in unistd.h vfork.h
13554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13555 echo "$as_me:13555: checking for $ac_header" >&5
13556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13558 echo $ECHO_N "(cached) $ECHO_C" >&6
13559 else
13560 cat >conftest.$ac_ext <<_ACEOF
13561 #line 13561 "configure"
13562 #include "confdefs.h"
13563 #include <$ac_header>
13564 _ACEOF
13565 if { (eval echo "$as_me:13565: \"$ac_cpp conftest.$ac_ext\"") >&5
13566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13567 ac_status=$?
13568 egrep -v '^ *\+' conftest.er1 >conftest.err
13569 rm -f conftest.er1
13570 cat conftest.err >&5
13571 echo "$as_me:13571: \$? = $ac_status" >&5
13572 (exit $ac_status); } >/dev/null; then
13573 if test -s conftest.err; then
13574 ac_cpp_err=$ac_c_preproc_warn_flag
13575 else
13576 ac_cpp_err=
13578 else
13579 ac_cpp_err=yes
13581 if test -z "$ac_cpp_err"; then
13582 eval "$as_ac_Header=yes"
13583 else
13584 echo "$as_me: failed program was:" >&5
13585 cat conftest.$ac_ext >&5
13586 eval "$as_ac_Header=no"
13588 rm -f conftest.err conftest.$ac_ext
13590 echo "$as_me:13590: result: `eval echo '${'$as_ac_Header'}'`" >&5
13591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13593 cat >>confdefs.h <<EOF
13594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13598 done
13600 for ac_func in fork vfork
13602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13603 echo "$as_me:13603: checking for $ac_func" >&5
13604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13605 if eval "test \"\${$as_ac_var+set}\" = set"; then
13606 echo $ECHO_N "(cached) $ECHO_C" >&6
13607 else
13608 cat >conftest.$ac_ext <<_ACEOF
13609 #line 13609 "configure"
13610 #include "confdefs.h"
13611 /* System header to define __stub macros and hopefully few prototypes,
13612 which can conflict with char $ac_func (); below. */
13613 #include <assert.h>
13614 /* Override any gcc2 internal prototype to avoid an error. */
13615 #ifdef __cplusplus
13616 extern "C"
13617 #endif
13618 /* We use char because int might match the return type of a gcc2
13619 builtin and then its argument prototype would still apply. */
13620 char $ac_func ();
13621 char (*f) ();
13624 main ()
13626 /* The GNU C library defines this for functions which it implements
13627 to always fail with ENOSYS. Some functions are actually named
13628 something starting with __ and the normal name is an alias. */
13629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13630 choke me
13631 #else
13632 f = $ac_func;
13633 #endif
13636 return 0;
13638 _ACEOF
13639 rm -f conftest.$ac_objext conftest$ac_exeext
13640 if { (eval echo "$as_me:13640: \"$ac_link\"") >&5
13641 (eval $ac_link) 2>&5
13642 ac_status=$?
13643 echo "$as_me:13643: \$? = $ac_status" >&5
13644 (exit $ac_status); } &&
13645 { ac_try='test -s conftest$ac_exeext'
13646 { (eval echo "$as_me:13646: \"$ac_try\"") >&5
13647 (eval $ac_try) 2>&5
13648 ac_status=$?
13649 echo "$as_me:13649: \$? = $ac_status" >&5
13650 (exit $ac_status); }; }; then
13651 eval "$as_ac_var=yes"
13652 else
13653 echo "$as_me: failed program was:" >&5
13654 cat conftest.$ac_ext >&5
13655 eval "$as_ac_var=no"
13657 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13659 echo "$as_me:13659: result: `eval echo '${'$as_ac_var'}'`" >&5
13660 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13661 if test `eval echo '${'$as_ac_var'}'` = yes; then
13662 cat >>confdefs.h <<EOF
13663 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13667 done
13669 ac_cv_func_fork_works=$ac_cv_func_fork
13670 if test "x$ac_cv_func_fork" = xyes; then
13671 echo "$as_me:13671: checking for working fork" >&5
13672 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
13673 if test "${ac_cv_func_fork_works+set}" = set; then
13674 echo $ECHO_N "(cached) $ECHO_C" >&6
13675 else
13676 if test "$cross_compiling" = yes; then
13677 ac_cv_func_fork_works=cross
13678 else
13679 cat >conftest.$ac_ext <<_ACEOF
13680 /* By Rüdiger Kuhlmann. */
13681 #include <sys/types.h>
13682 #if HAVE_UNISTD_H
13683 # include <unistd.h>
13684 #endif
13685 /* Some systems only have a dummy stub for fork() */
13686 int main ()
13688 if (fork() < 0)
13689 $ac_main_return (1);
13690 $ac_main_return (0);
13692 _ACEOF
13693 rm -f conftest$ac_exeext
13694 if { (eval echo "$as_me:13694: \"$ac_link\"") >&5
13695 (eval $ac_link) 2>&5
13696 ac_status=$?
13697 echo "$as_me:13697: \$? = $ac_status" >&5
13698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13699 { (eval echo "$as_me:13699: \"$ac_try\"") >&5
13700 (eval $ac_try) 2>&5
13701 ac_status=$?
13702 echo "$as_me:13702: \$? = $ac_status" >&5
13703 (exit $ac_status); }; }; then
13704 ac_cv_func_fork_works=yes
13705 else
13706 echo "$as_me: program exited with status $ac_status" >&5
13707 echo "$as_me: failed program was:" >&5
13708 cat conftest.$ac_ext >&5
13709 ac_cv_func_fork_works=no
13711 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13714 echo "$as_me:13714: result: $ac_cv_func_fork_works" >&5
13715 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
13718 if test "x$ac_cv_func_fork_works" = xcross; then
13719 case $host in
13720 *-*-amigaos* | *-*-msdosdjgpp*)
13721 # Override, as these systems have only a dummy fork() stub
13722 ac_cv_func_fork_works=no
13725 ac_cv_func_fork_works=yes
13727 esac
13728 { echo "$as_me:13728: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5
13729 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;}
13731 ac_cv_func_vfork_works=$ac_cv_func_vfork
13732 if test "x$ac_cv_func_vfork" = xyes; then
13733 echo "$as_me:13733: checking for working vfork" >&5
13734 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
13735 if test "${ac_cv_func_vfork_works+set}" = set; then
13736 echo $ECHO_N "(cached) $ECHO_C" >&6
13737 else
13738 if test "$cross_compiling" = yes; then
13739 ac_cv_func_vfork_works=cross
13740 else
13741 cat >conftest.$ac_ext <<_ACEOF
13742 #line 13742 "configure"
13743 #include "confdefs.h"
13744 /* Thanks to Paul Eggert for this test. */
13745 #include <stdio.h>
13746 #include <sys/types.h>
13747 #include <sys/stat.h>
13748 #if HAVE_UNISTD_H
13749 # include <unistd.h>
13750 #endif
13751 #if HAVE_VFORK_H
13752 # include <vfork.h>
13753 #endif
13754 /* On some sparc systems, changes by the child to local and incoming
13755 argument registers are propagated back to the parent. The compiler
13756 is told about this with #include <vfork.h>, but some compilers
13757 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13758 static variable whose address is put into a register that is
13759 clobbered by the vfork. */
13760 static
13761 #ifdef __cplusplus
13762 sparc_address_test (int arg)
13763 # else
13764 sparc_address_test (arg) int arg;
13765 #endif
13767 static pid_t child;
13768 if (!child) {
13769 child = vfork ();
13770 if (child < 0) {
13771 perror ("vfork");
13772 _exit(2);
13774 if (!child) {
13775 arg = getpid();
13776 write(-1, "", 0);
13777 _exit (arg);
13783 main ()
13785 pid_t parent = getpid ();
13786 pid_t child;
13788 sparc_address_test ();
13790 child = vfork ();
13792 if (child == 0) {
13793 /* Here is another test for sparc vfork register problems. This
13794 test uses lots of local variables, at least as many local
13795 variables as main has allocated so far including compiler
13796 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13797 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13798 reuse the register of parent for one of the local variables,
13799 since it will think that parent can't possibly be used any more
13800 in this routine. Assigning to the local variable will thus
13801 munge parent in the parent process. */
13802 pid_t
13803 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13804 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13805 /* Convince the compiler that p..p7 are live; otherwise, it might
13806 use the same hardware register for all 8 local variables. */
13807 if (p != p1 || p != p2 || p != p3 || p != p4
13808 || p != p5 || p != p6 || p != p7)
13809 _exit(1);
13811 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13812 from child file descriptors. If the child closes a descriptor
13813 before it execs or exits, this munges the parent's descriptor
13814 as well. Test for this by closing stdout in the child. */
13815 _exit(close(fileno(stdout)) != 0);
13816 } else {
13817 int status;
13818 struct stat st;
13820 while (wait(&status) != child)
13822 $ac_main_return(
13823 /* Was there some problem with vforking? */
13824 child < 0
13826 /* Did the child fail? (This shouldn't happen.) */
13827 || status
13829 /* Did the vfork/compiler bug occur? */
13830 || parent != getpid()
13832 /* Did the file descriptor bug occur? */
13833 || fstat(fileno(stdout), &st) != 0
13837 _ACEOF
13838 rm -f conftest$ac_exeext
13839 if { (eval echo "$as_me:13839: \"$ac_link\"") >&5
13840 (eval $ac_link) 2>&5
13841 ac_status=$?
13842 echo "$as_me:13842: \$? = $ac_status" >&5
13843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13844 { (eval echo "$as_me:13844: \"$ac_try\"") >&5
13845 (eval $ac_try) 2>&5
13846 ac_status=$?
13847 echo "$as_me:13847: \$? = $ac_status" >&5
13848 (exit $ac_status); }; }; then
13849 ac_cv_func_vfork_works=yes
13850 else
13851 echo "$as_me: program exited with status $ac_status" >&5
13852 echo "$as_me: failed program was:" >&5
13853 cat conftest.$ac_ext >&5
13854 ac_cv_func_vfork_works=no
13856 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13859 echo "$as_me:13859: result: $ac_cv_func_vfork_works" >&5
13860 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
13863 if test "x$ac_cv_func_fork_works" = xcross; then
13864 ac_cv_func_vfork_works=ac_cv_func_vfork
13865 { echo "$as_me:13865: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5
13866 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;}
13869 if test "x$ac_cv_func_vfork_works" = xyes; then
13871 cat >>confdefs.h <<\EOF
13872 #define HAVE_WORKING_VFORK 1
13875 else
13877 cat >>confdefs.h <<\EOF
13878 #define vfork fork
13882 if test "x$ac_cv_func_fork_works" = xyes; then
13884 cat >>confdefs.h <<\EOF
13885 #define HAVE_WORKING_FORK 1
13890 echo "$as_me:13890: checking if sys/time.h works with sys/select.h" >&5
13891 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
13892 if test "${cf_cv_sys_time_select+set}" = set; then
13893 echo $ECHO_N "(cached) $ECHO_C" >&6
13894 else
13896 cat >conftest.$ac_ext <<_ACEOF
13897 #line 13897 "configure"
13898 #include "confdefs.h"
13900 #include <sys/types.h>
13901 #ifdef HAVE_SYS_TIME_H
13902 #include <sys/time.h>
13903 #endif
13904 #ifdef HAVE_SYS_SELECT_H
13905 #include <sys/select.h>
13906 #endif
13909 main ()
13913 return 0;
13915 _ACEOF
13916 rm -f conftest.$ac_objext
13917 if { (eval echo "$as_me:13917: \"$ac_compile\"") >&5
13918 (eval $ac_compile) 2>&5
13919 ac_status=$?
13920 echo "$as_me:13920: \$? = $ac_status" >&5
13921 (exit $ac_status); } &&
13922 { ac_try='test -s conftest.$ac_objext'
13923 { (eval echo "$as_me:13923: \"$ac_try\"") >&5
13924 (eval $ac_try) 2>&5
13925 ac_status=$?
13926 echo "$as_me:13926: \$? = $ac_status" >&5
13927 (exit $ac_status); }; }; then
13928 cf_cv_sys_time_select=yes
13929 else
13930 echo "$as_me: failed program was:" >&5
13931 cat conftest.$ac_ext >&5
13932 cf_cv_sys_time_select=no
13934 rm -f conftest.$ac_objext conftest.$ac_ext
13938 echo "$as_me:13938: result: $cf_cv_sys_time_select" >&5
13939 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
13940 test "$cf_cv_sys_time_select" = yes && cat >>confdefs.h <<\EOF
13941 #define HAVE_SYS_TIME_SELECT 1
13944 echo "$as_me:13944: checking for function curses_version" >&5
13945 echo $ECHO_N "checking for function curses_version... $ECHO_C" >&6
13946 if test "${cf_cv_func_curses_version+set}" = set; then
13947 echo $ECHO_N "(cached) $ECHO_C" >&6
13948 else
13950 if test "$cross_compiling" = yes; then
13951 cf_cv_func_curses_version=unknown
13952 else
13953 cat >conftest.$ac_ext <<_ACEOF
13954 #line 13954 "configure"
13955 #include "confdefs.h"
13957 #include <${cf_cv_ncurses_header:-curses.h}>
13958 int main()
13960 char temp[1024];
13961 sprintf(temp, "%s\n", curses_version());
13962 ${cf_cv_main_return:-return}(0);
13965 _ACEOF
13966 rm -f conftest$ac_exeext
13967 if { (eval echo "$as_me:13967: \"$ac_link\"") >&5
13968 (eval $ac_link) 2>&5
13969 ac_status=$?
13970 echo "$as_me:13970: \$? = $ac_status" >&5
13971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13972 { (eval echo "$as_me:13972: \"$ac_try\"") >&5
13973 (eval $ac_try) 2>&5
13974 ac_status=$?
13975 echo "$as_me:13975: \$? = $ac_status" >&5
13976 (exit $ac_status); }; }; then
13977 cf_cv_func_curses_version=yes
13979 else
13980 echo "$as_me: program exited with status $ac_status" >&5
13981 echo "$as_me: failed program was:" >&5
13982 cat conftest.$ac_ext >&5
13983 cf_cv_func_curses_version=no
13986 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13988 rm -f core
13990 echo "$as_me:13990: result: $cf_cv_func_curses_version" >&5
13991 echo "${ECHO_T}$cf_cv_func_curses_version" >&6
13992 test "$cf_cv_func_curses_version" = yes && cat >>confdefs.h <<\EOF
13993 #define HAVE_CURSES_VERSION 1
13996 echo "$as_me:13996: checking for ncurses wrap-prefix" >&5
13997 echo $ECHO_N "checking for ncurses wrap-prefix... $ECHO_C" >&6
13999 # Check whether --with-ncurses-wrap-prefix or --without-ncurses-wrap-prefix was given.
14000 if test "${with_ncurses_wrap_prefix+set}" = set; then
14001 withval="$with_ncurses_wrap_prefix"
14002 NCURSES_WRAP_PREFIX=$withval
14003 else
14004 NCURSES_WRAP_PREFIX=_nc_
14006 echo "$as_me:14006: result: $NCURSES_WRAP_PREFIX" >&5
14007 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
14009 echo "$as_me:14009: checking for alternate character set array" >&5
14010 echo $ECHO_N "checking for alternate character set array... $ECHO_C" >&6
14011 if test "${cf_cv_curses_acs_map+set}" = set; then
14012 echo $ECHO_N "(cached) $ECHO_C" >&6
14013 else
14015 cf_cv_curses_acs_map=unknown
14016 for name in acs_map _acs_map __acs_map ${NCURSES_WRAP_PREFIX}acs_map
14018 cat >conftest.$ac_ext <<_ACEOF
14019 #line 14019 "configure"
14020 #include "confdefs.h"
14022 #include <${cf_cv_ncurses_header:-curses.h}>
14025 main ()
14028 $name['k'] = ACS_PLUS
14031 return 0;
14033 _ACEOF
14034 rm -f conftest.$ac_objext conftest$ac_exeext
14035 if { (eval echo "$as_me:14035: \"$ac_link\"") >&5
14036 (eval $ac_link) 2>&5
14037 ac_status=$?
14038 echo "$as_me:14038: \$? = $ac_status" >&5
14039 (exit $ac_status); } &&
14040 { ac_try='test -s conftest$ac_exeext'
14041 { (eval echo "$as_me:14041: \"$ac_try\"") >&5
14042 (eval $ac_try) 2>&5
14043 ac_status=$?
14044 echo "$as_me:14044: \$? = $ac_status" >&5
14045 (exit $ac_status); }; }; then
14046 cf_cv_curses_acs_map=$name; break
14047 else
14048 echo "$as_me: failed program was:" >&5
14049 cat conftest.$ac_ext >&5
14051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14052 done
14055 echo "$as_me:14055: result: $cf_cv_curses_acs_map" >&5
14056 echo "${ECHO_T}$cf_cv_curses_acs_map" >&6
14058 test "$cf_cv_curses_acs_map" != unknown && cat >>confdefs.h <<EOF
14059 #define CURSES_ACS_ARRAY $cf_cv_curses_acs_map
14062 echo "$as_me:14062: checking for wide alternate character set array" >&5
14063 echo $ECHO_N "checking for wide alternate character set array... $ECHO_C" >&6
14064 if test "${cf_cv_curses_wacs_map+set}" = set; then
14065 echo $ECHO_N "(cached) $ECHO_C" >&6
14066 else
14068 cf_cv_curses_wacs_map=unknown
14069 for name in wacs_map _wacs_map __wacs_map _nc_wacs _wacs_char
14071 cat >conftest.$ac_ext <<_ACEOF
14072 #line 14072 "configure"
14073 #include "confdefs.h"
14075 #ifndef _XOPEN_SOURCE_EXTENDED
14076 #define _XOPEN_SOURCE_EXTENDED
14077 #endif
14078 #include <${cf_cv_ncurses_header:-curses.h}>
14080 main ()
14082 void *foo = &($name['k'])
14084 return 0;
14086 _ACEOF
14087 rm -f conftest.$ac_objext conftest$ac_exeext
14088 if { (eval echo "$as_me:14088: \"$ac_link\"") >&5
14089 (eval $ac_link) 2>&5
14090 ac_status=$?
14091 echo "$as_me:14091: \$? = $ac_status" >&5
14092 (exit $ac_status); } &&
14093 { ac_try='test -s conftest$ac_exeext'
14094 { (eval echo "$as_me:14094: \"$ac_try\"") >&5
14095 (eval $ac_try) 2>&5
14096 ac_status=$?
14097 echo "$as_me:14097: \$? = $ac_status" >&5
14098 (exit $ac_status); }; }; then
14099 cf_cv_curses_wacs_map=$name
14100 break
14101 else
14102 echo "$as_me: failed program was:" >&5
14103 cat conftest.$ac_ext >&5
14105 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14106 done
14108 echo "$as_me:14108: result: $cf_cv_curses_wacs_map" >&5
14109 echo "${ECHO_T}$cf_cv_curses_wacs_map" >&6
14111 test "$cf_cv_curses_wacs_map" != unknown && cat >>confdefs.h <<EOF
14112 #define CURSES_WACS_ARRAY $cf_cv_curses_wacs_map
14115 echo "$as_me:14115: checking for wide alternate character constants" >&5
14116 echo $ECHO_N "checking for wide alternate character constants... $ECHO_C" >&6
14117 if test "${cf_cv_curses_wacs_symbols+set}" = set; then
14118 echo $ECHO_N "(cached) $ECHO_C" >&6
14119 else
14121 cf_cv_curses_wacs_symbols=no
14122 if test "$cf_cv_curses_wacs_map" != unknown
14123 then
14124 cat >conftest.$ac_ext <<_ACEOF
14125 #line 14125 "configure"
14126 #include "confdefs.h"
14128 #ifndef _XOPEN_SOURCE_EXTENDED
14129 #define _XOPEN_SOURCE_EXTENDED
14130 #endif
14131 #include <${cf_cv_ncurses_header:-curses.h}>
14133 main ()
14135 cchar_t *foo = WACS_PLUS;
14136 $cf_cv_curses_wacs_map['k'] = *WACS_PLUS
14138 return 0;
14140 _ACEOF
14141 rm -f conftest.$ac_objext conftest$ac_exeext
14142 if { (eval echo "$as_me:14142: \"$ac_link\"") >&5
14143 (eval $ac_link) 2>&5
14144 ac_status=$?
14145 echo "$as_me:14145: \$? = $ac_status" >&5
14146 (exit $ac_status); } &&
14147 { ac_try='test -s conftest$ac_exeext'
14148 { (eval echo "$as_me:14148: \"$ac_try\"") >&5
14149 (eval $ac_try) 2>&5
14150 ac_status=$?
14151 echo "$as_me:14151: \$? = $ac_status" >&5
14152 (exit $ac_status); }; }; then
14153 cf_cv_curses_wacs_symbols=yes
14154 else
14155 echo "$as_me: failed program was:" >&5
14156 cat conftest.$ac_ext >&5
14158 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14159 else
14160 cat >conftest.$ac_ext <<_ACEOF
14161 #line 14161 "configure"
14162 #include "confdefs.h"
14164 #ifndef _XOPEN_SOURCE_EXTENDED
14165 #define _XOPEN_SOURCE_EXTENDED
14166 #endif
14167 #include <${cf_cv_ncurses_header:-curses.h}>
14169 main ()
14171 cchar_t *foo = WACS_PLUS
14173 return 0;
14175 _ACEOF
14176 rm -f conftest.$ac_objext conftest$ac_exeext
14177 if { (eval echo "$as_me:14177: \"$ac_link\"") >&5
14178 (eval $ac_link) 2>&5
14179 ac_status=$?
14180 echo "$as_me:14180: \$? = $ac_status" >&5
14181 (exit $ac_status); } &&
14182 { ac_try='test -s conftest$ac_exeext'
14183 { (eval echo "$as_me:14183: \"$ac_try\"") >&5
14184 (eval $ac_try) 2>&5
14185 ac_status=$?
14186 echo "$as_me:14186: \$? = $ac_status" >&5
14187 (exit $ac_status); }; }; then
14188 cf_cv_curses_wacs_symbols=yes
14189 else
14190 echo "$as_me: failed program was:" >&5
14191 cat conftest.$ac_ext >&5
14193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14197 echo "$as_me:14197: result: $cf_cv_curses_wacs_symbols" >&5
14198 echo "${ECHO_T}$cf_cv_curses_wacs_symbols" >&6
14200 test "$cf_cv_curses_wacs_symbols" != no && cat >>confdefs.h <<\EOF
14201 #define CURSES_WACS_SYMBOLS 1
14204 echo "$as_me:14204: checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}" >&5
14205 echo $ECHO_N "checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
14206 cat >conftest.$ac_ext <<_ACEOF
14207 #line 14207 "configure"
14208 #include "confdefs.h"
14210 #ifndef _XOPEN_SOURCE_EXTENDED
14211 #define _XOPEN_SOURCE_EXTENDED
14212 #endif
14213 #include <${cf_cv_ncurses_header:-curses.h}>
14215 main ()
14218 attr_t foo
14221 return 0;
14223 _ACEOF
14224 rm -f conftest.$ac_objext
14225 if { (eval echo "$as_me:14225: \"$ac_compile\"") >&5
14226 (eval $ac_compile) 2>&5
14227 ac_status=$?
14228 echo "$as_me:14228: \$? = $ac_status" >&5
14229 (exit $ac_status); } &&
14230 { ac_try='test -s conftest.$ac_objext'
14231 { (eval echo "$as_me:14231: \"$ac_try\"") >&5
14232 (eval $ac_try) 2>&5
14233 ac_status=$?
14234 echo "$as_me:14234: \$? = $ac_status" >&5
14235 (exit $ac_status); }; }; then
14236 cf_result=yes
14237 else
14238 echo "$as_me: failed program was:" >&5
14239 cat conftest.$ac_ext >&5
14240 cf_result=no
14242 rm -f conftest.$ac_objext conftest.$ac_ext
14243 echo "$as_me:14243: result: $cf_result" >&5
14244 echo "${ECHO_T}$cf_result" >&6
14245 if test $cf_result = yes ; then
14247 cf_result=`echo "have_type_attr_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14249 cat >>confdefs.h <<EOF
14250 #define $cf_result 1
14253 else
14254 cat >>confdefs.h <<EOF
14255 #define attr_t long
14260 # This is needed on Tru64 5.0 to declare mbstate_t
14261 echo "$as_me:14261: checking if we must include wchar.h to declare mbstate_t" >&5
14262 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
14263 if test "${cf_cv_mbstate_t+set}" = set; then
14264 echo $ECHO_N "(cached) $ECHO_C" >&6
14265 else
14267 cat >conftest.$ac_ext <<_ACEOF
14268 #line 14268 "configure"
14269 #include "confdefs.h"
14271 #include <stdlib.h>
14272 #include <stdarg.h>
14273 #include <stdio.h>
14274 #ifdef HAVE_LIBUTF8_H
14275 #include <libutf8.h>
14276 #endif
14278 main ()
14280 mbstate_t state
14282 return 0;
14284 _ACEOF
14285 rm -f conftest.$ac_objext
14286 if { (eval echo "$as_me:14286: \"$ac_compile\"") >&5
14287 (eval $ac_compile) 2>&5
14288 ac_status=$?
14289 echo "$as_me:14289: \$? = $ac_status" >&5
14290 (exit $ac_status); } &&
14291 { ac_try='test -s conftest.$ac_objext'
14292 { (eval echo "$as_me:14292: \"$ac_try\"") >&5
14293 (eval $ac_try) 2>&5
14294 ac_status=$?
14295 echo "$as_me:14295: \$? = $ac_status" >&5
14296 (exit $ac_status); }; }; then
14297 cf_cv_mbstate_t=no
14298 else
14299 echo "$as_me: failed program was:" >&5
14300 cat conftest.$ac_ext >&5
14301 cat >conftest.$ac_ext <<_ACEOF
14302 #line 14302 "configure"
14303 #include "confdefs.h"
14305 #include <stdlib.h>
14306 #include <stdarg.h>
14307 #include <stdio.h>
14308 #include <wchar.h>
14309 #ifdef HAVE_LIBUTF8_H
14310 #include <libutf8.h>
14311 #endif
14313 main ()
14315 mbstate_t value
14317 return 0;
14319 _ACEOF
14320 rm -f conftest.$ac_objext
14321 if { (eval echo "$as_me:14321: \"$ac_compile\"") >&5
14322 (eval $ac_compile) 2>&5
14323 ac_status=$?
14324 echo "$as_me:14324: \$? = $ac_status" >&5
14325 (exit $ac_status); } &&
14326 { ac_try='test -s conftest.$ac_objext'
14327 { (eval echo "$as_me:14327: \"$ac_try\"") >&5
14328 (eval $ac_try) 2>&5
14329 ac_status=$?
14330 echo "$as_me:14330: \$? = $ac_status" >&5
14331 (exit $ac_status); }; }; then
14332 cf_cv_mbstate_t=yes
14333 else
14334 echo "$as_me: failed program was:" >&5
14335 cat conftest.$ac_ext >&5
14336 cf_cv_mbstate_t=unknown
14338 rm -f conftest.$ac_objext conftest.$ac_ext
14340 rm -f conftest.$ac_objext conftest.$ac_ext
14342 echo "$as_me:14342: result: $cf_cv_mbstate_t" >&5
14343 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
14345 if test "$cf_cv_mbstate_t" = yes ; then
14346 cat >>confdefs.h <<\EOF
14347 #define NEED_WCHAR_H 1
14350 NEED_WCHAR_H=1
14353 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
14354 if test "$cf_cv_mbstate_t" = unknown ; then
14355 NCURSES_MBSTATE_T=1
14358 # if we find mbstate_t in either place, use substitution to provide a fallback.
14359 if test "$cf_cv_mbstate_t" != unknown ; then
14360 NCURSES_OK_MBSTATE_T=1
14363 # This is needed on Tru64 5.0 to declare wchar_t
14364 echo "$as_me:14364: checking if we must include wchar.h to declare wchar_t" >&5
14365 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
14366 if test "${cf_cv_wchar_t+set}" = set; then
14367 echo $ECHO_N "(cached) $ECHO_C" >&6
14368 else
14370 cat >conftest.$ac_ext <<_ACEOF
14371 #line 14371 "configure"
14372 #include "confdefs.h"
14374 #include <stdlib.h>
14375 #include <stdarg.h>
14376 #include <stdio.h>
14377 #ifdef HAVE_LIBUTF8_H
14378 #include <libutf8.h>
14379 #endif
14381 main ()
14383 wchar_t state
14385 return 0;
14387 _ACEOF
14388 rm -f conftest.$ac_objext
14389 if { (eval echo "$as_me:14389: \"$ac_compile\"") >&5
14390 (eval $ac_compile) 2>&5
14391 ac_status=$?
14392 echo "$as_me:14392: \$? = $ac_status" >&5
14393 (exit $ac_status); } &&
14394 { ac_try='test -s conftest.$ac_objext'
14395 { (eval echo "$as_me:14395: \"$ac_try\"") >&5
14396 (eval $ac_try) 2>&5
14397 ac_status=$?
14398 echo "$as_me:14398: \$? = $ac_status" >&5
14399 (exit $ac_status); }; }; then
14400 cf_cv_wchar_t=no
14401 else
14402 echo "$as_me: failed program was:" >&5
14403 cat conftest.$ac_ext >&5
14404 cat >conftest.$ac_ext <<_ACEOF
14405 #line 14405 "configure"
14406 #include "confdefs.h"
14408 #include <stdlib.h>
14409 #include <stdarg.h>
14410 #include <stdio.h>
14411 #include <wchar.h>
14412 #ifdef HAVE_LIBUTF8_H
14413 #include <libutf8.h>
14414 #endif
14416 main ()
14418 wchar_t value
14420 return 0;
14422 _ACEOF
14423 rm -f conftest.$ac_objext
14424 if { (eval echo "$as_me:14424: \"$ac_compile\"") >&5
14425 (eval $ac_compile) 2>&5
14426 ac_status=$?
14427 echo "$as_me:14427: \$? = $ac_status" >&5
14428 (exit $ac_status); } &&
14429 { ac_try='test -s conftest.$ac_objext'
14430 { (eval echo "$as_me:14430: \"$ac_try\"") >&5
14431 (eval $ac_try) 2>&5
14432 ac_status=$?
14433 echo "$as_me:14433: \$? = $ac_status" >&5
14434 (exit $ac_status); }; }; then
14435 cf_cv_wchar_t=yes
14436 else
14437 echo "$as_me: failed program was:" >&5
14438 cat conftest.$ac_ext >&5
14439 cf_cv_wchar_t=unknown
14441 rm -f conftest.$ac_objext conftest.$ac_ext
14443 rm -f conftest.$ac_objext conftest.$ac_ext
14445 echo "$as_me:14445: result: $cf_cv_wchar_t" >&5
14446 echo "${ECHO_T}$cf_cv_wchar_t" >&6
14448 if test "$cf_cv_wchar_t" = yes ; then
14449 cat >>confdefs.h <<\EOF
14450 #define NEED_WCHAR_H 1
14453 NEED_WCHAR_H=1
14456 # if we do not find wchar_t in either place, use substitution to provide a fallback.
14457 if test "$cf_cv_wchar_t" = unknown ; then
14458 NCURSES_WCHAR_T=1
14461 # if we find wchar_t in either place, use substitution to provide a fallback.
14462 if test "$cf_cv_wchar_t" != unknown ; then
14463 NCURSES_OK_WCHAR_T=1
14466 # This is needed on Tru64 5.0 to declare wint_t
14467 echo "$as_me:14467: checking if we must include wchar.h to declare wint_t" >&5
14468 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
14469 if test "${cf_cv_wint_t+set}" = set; then
14470 echo $ECHO_N "(cached) $ECHO_C" >&6
14471 else
14473 cat >conftest.$ac_ext <<_ACEOF
14474 #line 14474 "configure"
14475 #include "confdefs.h"
14477 #include <stdlib.h>
14478 #include <stdarg.h>
14479 #include <stdio.h>
14480 #ifdef HAVE_LIBUTF8_H
14481 #include <libutf8.h>
14482 #endif
14484 main ()
14486 wint_t state
14488 return 0;
14490 _ACEOF
14491 rm -f conftest.$ac_objext
14492 if { (eval echo "$as_me:14492: \"$ac_compile\"") >&5
14493 (eval $ac_compile) 2>&5
14494 ac_status=$?
14495 echo "$as_me:14495: \$? = $ac_status" >&5
14496 (exit $ac_status); } &&
14497 { ac_try='test -s conftest.$ac_objext'
14498 { (eval echo "$as_me:14498: \"$ac_try\"") >&5
14499 (eval $ac_try) 2>&5
14500 ac_status=$?
14501 echo "$as_me:14501: \$? = $ac_status" >&5
14502 (exit $ac_status); }; }; then
14503 cf_cv_wint_t=no
14504 else
14505 echo "$as_me: failed program was:" >&5
14506 cat conftest.$ac_ext >&5
14507 cat >conftest.$ac_ext <<_ACEOF
14508 #line 14508 "configure"
14509 #include "confdefs.h"
14511 #include <stdlib.h>
14512 #include <stdarg.h>
14513 #include <stdio.h>
14514 #include <wchar.h>
14515 #ifdef HAVE_LIBUTF8_H
14516 #include <libutf8.h>
14517 #endif
14519 main ()
14521 wint_t value
14523 return 0;
14525 _ACEOF
14526 rm -f conftest.$ac_objext
14527 if { (eval echo "$as_me:14527: \"$ac_compile\"") >&5
14528 (eval $ac_compile) 2>&5
14529 ac_status=$?
14530 echo "$as_me:14530: \$? = $ac_status" >&5
14531 (exit $ac_status); } &&
14532 { ac_try='test -s conftest.$ac_objext'
14533 { (eval echo "$as_me:14533: \"$ac_try\"") >&5
14534 (eval $ac_try) 2>&5
14535 ac_status=$?
14536 echo "$as_me:14536: \$? = $ac_status" >&5
14537 (exit $ac_status); }; }; then
14538 cf_cv_wint_t=yes
14539 else
14540 echo "$as_me: failed program was:" >&5
14541 cat conftest.$ac_ext >&5
14542 cf_cv_wint_t=unknown
14544 rm -f conftest.$ac_objext conftest.$ac_ext
14546 rm -f conftest.$ac_objext conftest.$ac_ext
14548 echo "$as_me:14548: result: $cf_cv_wint_t" >&5
14549 echo "${ECHO_T}$cf_cv_wint_t" >&6
14551 if test "$cf_cv_wint_t" = yes ; then
14552 cat >>confdefs.h <<\EOF
14553 #define NEED_WCHAR_H 1
14556 NEED_WCHAR_H=1
14559 # if we do not find wint_t in either place, use substitution to provide a fallback.
14560 if test "$cf_cv_wint_t" = unknown ; then
14561 NCURSES_WINT_T=1
14564 # if we find wint_t in either place, use substitution to provide a fallback.
14565 if test "$cf_cv_wint_t" != unknown ; then
14566 NCURSES_OK_WINT_T=1
14569 if test "$NCURSES_OK_MBSTATE_T" = 0 ; then
14571 echo "$as_me:14571: checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}" >&5
14572 echo $ECHO_N "checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
14573 cat >conftest.$ac_ext <<_ACEOF
14574 #line 14574 "configure"
14575 #include "confdefs.h"
14577 #ifndef _XOPEN_SOURCE_EXTENDED
14578 #define _XOPEN_SOURCE_EXTENDED
14579 #endif
14580 #include <${cf_cv_ncurses_header:-curses.h}>
14582 main ()
14585 mbstate_t foo
14588 return 0;
14590 _ACEOF
14591 rm -f conftest.$ac_objext
14592 if { (eval echo "$as_me:14592: \"$ac_compile\"") >&5
14593 (eval $ac_compile) 2>&5
14594 ac_status=$?
14595 echo "$as_me:14595: \$? = $ac_status" >&5
14596 (exit $ac_status); } &&
14597 { ac_try='test -s conftest.$ac_objext'
14598 { (eval echo "$as_me:14598: \"$ac_try\"") >&5
14599 (eval $ac_try) 2>&5
14600 ac_status=$?
14601 echo "$as_me:14601: \$? = $ac_status" >&5
14602 (exit $ac_status); }; }; then
14603 cf_result=yes
14604 else
14605 echo "$as_me: failed program was:" >&5
14606 cat conftest.$ac_ext >&5
14607 cf_result=no
14609 rm -f conftest.$ac_objext conftest.$ac_ext
14610 echo "$as_me:14610: result: $cf_result" >&5
14611 echo "${ECHO_T}$cf_result" >&6
14612 if test $cf_result = yes ; then
14614 cf_result=`echo "have_type_mbstate_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14616 cat >>confdefs.h <<EOF
14617 #define $cf_result 1
14620 else
14621 cat >>confdefs.h <<EOF
14622 #define mbstate_t long
14629 if test "$NCURSES_OK_WCHAR_T" = 0 ; then
14631 echo "$as_me:14631: checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}" >&5
14632 echo $ECHO_N "checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
14633 cat >conftest.$ac_ext <<_ACEOF
14634 #line 14634 "configure"
14635 #include "confdefs.h"
14637 #ifndef _XOPEN_SOURCE_EXTENDED
14638 #define _XOPEN_SOURCE_EXTENDED
14639 #endif
14640 #include <${cf_cv_ncurses_header:-curses.h}>
14642 main ()
14645 wchar_t foo
14648 return 0;
14650 _ACEOF
14651 rm -f conftest.$ac_objext
14652 if { (eval echo "$as_me:14652: \"$ac_compile\"") >&5
14653 (eval $ac_compile) 2>&5
14654 ac_status=$?
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
14660 ac_status=$?
14661 echo "$as_me:14661: \$? = $ac_status" >&5
14662 (exit $ac_status); }; }; then
14663 cf_result=yes
14664 else
14665 echo "$as_me: failed program was:" >&5
14666 cat conftest.$ac_ext >&5
14667 cf_result=no
14669 rm -f conftest.$ac_objext conftest.$ac_ext
14670 echo "$as_me:14670: result: $cf_result" >&5
14671 echo "${ECHO_T}$cf_result" >&6
14672 if test $cf_result = yes ; then
14674 cf_result=`echo "have_type_wchar_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14676 cat >>confdefs.h <<EOF
14677 #define $cf_result 1
14680 else
14681 cat >>confdefs.h <<EOF
14682 #define wchar_t long
14689 if test "$NCURSES_OK_WINT_T" = 0 ; then
14691 echo "$as_me:14691: checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}" >&5
14692 echo $ECHO_N "checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
14693 cat >conftest.$ac_ext <<_ACEOF
14694 #line 14694 "configure"
14695 #include "confdefs.h"
14697 #ifndef _XOPEN_SOURCE_EXTENDED
14698 #define _XOPEN_SOURCE_EXTENDED
14699 #endif
14700 #include <${cf_cv_ncurses_header:-curses.h}>
14702 main ()
14705 wint_t foo
14708 return 0;
14710 _ACEOF
14711 rm -f conftest.$ac_objext
14712 if { (eval echo "$as_me:14712: \"$ac_compile\"") >&5
14713 (eval $ac_compile) 2>&5
14714 ac_status=$?
14715 echo "$as_me:14715: \$? = $ac_status" >&5
14716 (exit $ac_status); } &&
14717 { ac_try='test -s conftest.$ac_objext'
14718 { (eval echo "$as_me:14718: \"$ac_try\"") >&5
14719 (eval $ac_try) 2>&5
14720 ac_status=$?
14721 echo "$as_me:14721: \$? = $ac_status" >&5
14722 (exit $ac_status); }; }; then
14723 cf_result=yes
14724 else
14725 echo "$as_me: failed program was:" >&5
14726 cat conftest.$ac_ext >&5
14727 cf_result=no
14729 rm -f conftest.$ac_objext conftest.$ac_ext
14730 echo "$as_me:14730: result: $cf_result" >&5
14731 echo "${ECHO_T}$cf_result" >&6
14732 if test $cf_result = yes ; then
14734 cf_result=`echo "have_type_wint_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14736 cat >>confdefs.h <<EOF
14737 #define $cf_result 1
14740 else
14741 cat >>confdefs.h <<EOF
14742 #define wint_t long
14749 echo "$as_me:14749: checking for data boolnames declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
14750 echo $ECHO_N "checking for data boolnames declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
14752 cat >conftest.$ac_ext <<_ACEOF
14753 #line 14753 "configure"
14754 #include "confdefs.h"
14756 #ifdef HAVE_XCURSES
14757 #include <xcurses.h>
14758 char * XCursesProgramName = "test";
14759 #else
14760 #include <${cf_cv_ncurses_header:-curses.h}>
14761 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
14762 #include <ncursesw/term.h>
14763 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
14764 #include <ncurses/term.h>
14765 #elif defined(HAVE_TERM_H)
14766 #include <term.h>
14767 #endif
14768 #endif
14771 main ()
14774 void *foo = &(boolnames)
14777 return 0;
14779 _ACEOF
14780 rm -f conftest.$ac_objext
14781 if { (eval echo "$as_me:14781: \"$ac_compile\"") >&5
14782 (eval $ac_compile) 2>&5
14783 ac_status=$?
14784 echo "$as_me:14784: \$? = $ac_status" >&5
14785 (exit $ac_status); } &&
14786 { ac_try='test -s conftest.$ac_objext'
14787 { (eval echo "$as_me:14787: \"$ac_try\"") >&5
14788 (eval $ac_try) 2>&5
14789 ac_status=$?
14790 echo "$as_me:14790: \$? = $ac_status" >&5
14791 (exit $ac_status); }; }; then
14792 cf_result=yes
14793 else
14794 echo "$as_me: failed program was:" >&5
14795 cat conftest.$ac_ext >&5
14796 cf_result=no
14798 rm -f conftest.$ac_objext conftest.$ac_ext
14799 echo "$as_me:14799: result: $cf_result" >&5
14800 echo "${ECHO_T}$cf_result" >&6
14802 if test $cf_result = yes ; then
14804 cf_result=`echo "have_curses_data_boolnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14806 cat >>confdefs.h <<EOF
14807 #define $cf_result 1
14810 else
14811 echo "$as_me:14811: checking for data boolnames in library" >&5
14812 echo $ECHO_N "checking for data boolnames in library... $ECHO_C" >&6
14813 # BSD linkers insist on making weak linkage, but resolve at runtime.
14814 if test "$cross_compiling" = yes; then
14816 # cross-compiling
14817 cat >conftest.$ac_ext <<_ACEOF
14818 #line 14818 "configure"
14819 #include "confdefs.h"
14821 #ifdef HAVE_XCURSES
14822 #include <xcurses.h>
14823 char * XCursesProgramName = "test";
14824 #else
14825 #include <${cf_cv_ncurses_header:-curses.h}>
14826 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
14827 #include <ncursesw/term.h>
14828 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
14829 #include <ncurses/term.h>
14830 #elif defined(HAVE_TERM_H)
14831 #include <term.h>
14832 #endif
14833 #endif
14835 extern char boolnames;
14837 main ()
14840 do {
14841 void *foo = &(boolnames);
14842 ${cf_cv_main_return:-return}(foo == 0);
14843 } while (0)
14846 return 0;
14848 _ACEOF
14849 rm -f conftest.$ac_objext conftest$ac_exeext
14850 if { (eval echo "$as_me:14850: \"$ac_link\"") >&5
14851 (eval $ac_link) 2>&5
14852 ac_status=$?
14853 echo "$as_me:14853: \$? = $ac_status" >&5
14854 (exit $ac_status); } &&
14855 { ac_try='test -s conftest$ac_exeext'
14856 { (eval echo "$as_me:14856: \"$ac_try\"") >&5
14857 (eval $ac_try) 2>&5
14858 ac_status=$?
14859 echo "$as_me:14859: \$? = $ac_status" >&5
14860 (exit $ac_status); }; }; then
14861 cf_result=yes
14862 else
14863 echo "$as_me: failed program was:" >&5
14864 cat conftest.$ac_ext >&5
14865 cf_result=no
14867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14869 else
14870 cat >conftest.$ac_ext <<_ACEOF
14871 #line 14871 "configure"
14872 #include "confdefs.h"
14874 #ifdef HAVE_XCURSES
14875 #include <xcurses.h>
14876 char * XCursesProgramName = "test";
14877 #else
14878 #include <${cf_cv_ncurses_header:-curses.h}>
14879 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
14880 #include <ncursesw/term.h>
14881 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
14882 #include <ncurses/term.h>
14883 #elif defined(HAVE_TERM_H)
14884 #include <term.h>
14885 #endif
14886 #endif
14888 extern char boolnames;
14889 int main(void)
14891 void *foo = &(boolnames);
14892 ${cf_cv_main_return:-return}(foo == 0);
14894 _ACEOF
14895 rm -f conftest$ac_exeext
14896 if { (eval echo "$as_me:14896: \"$ac_link\"") >&5
14897 (eval $ac_link) 2>&5
14898 ac_status=$?
14899 echo "$as_me:14899: \$? = $ac_status" >&5
14900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14901 { (eval echo "$as_me:14901: \"$ac_try\"") >&5
14902 (eval $ac_try) 2>&5
14903 ac_status=$?
14904 echo "$as_me:14904: \$? = $ac_status" >&5
14905 (exit $ac_status); }; }; then
14906 cf_result=yes
14907 else
14908 echo "$as_me: program exited with status $ac_status" >&5
14909 echo "$as_me: failed program was:" >&5
14910 cat conftest.$ac_ext >&5
14911 cf_result=no
14913 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14915 echo "$as_me:14915: result: $cf_result" >&5
14916 echo "${ECHO_T}$cf_result" >&6
14917 if test $cf_result = yes ; then
14919 cf_result=`echo "decl_curses_data_boolnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14921 cat >>confdefs.h <<EOF
14922 #define $cf_result 1
14928 echo "$as_me:14928: checking for data boolfnames declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
14929 echo $ECHO_N "checking for data boolfnames declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
14931 cat >conftest.$ac_ext <<_ACEOF
14932 #line 14932 "configure"
14933 #include "confdefs.h"
14935 #ifdef HAVE_XCURSES
14936 #include <xcurses.h>
14937 char * XCursesProgramName = "test";
14938 #else
14939 #include <${cf_cv_ncurses_header:-curses.h}>
14940 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
14941 #include <ncursesw/term.h>
14942 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
14943 #include <ncurses/term.h>
14944 #elif defined(HAVE_TERM_H)
14945 #include <term.h>
14946 #endif
14947 #endif
14950 main ()
14953 void *foo = &(boolfnames)
14956 return 0;
14958 _ACEOF
14959 rm -f conftest.$ac_objext
14960 if { (eval echo "$as_me:14960: \"$ac_compile\"") >&5
14961 (eval $ac_compile) 2>&5
14962 ac_status=$?
14963 echo "$as_me:14963: \$? = $ac_status" >&5
14964 (exit $ac_status); } &&
14965 { ac_try='test -s conftest.$ac_objext'
14966 { (eval echo "$as_me:14966: \"$ac_try\"") >&5
14967 (eval $ac_try) 2>&5
14968 ac_status=$?
14969 echo "$as_me:14969: \$? = $ac_status" >&5
14970 (exit $ac_status); }; }; then
14971 cf_result=yes
14972 else
14973 echo "$as_me: failed program was:" >&5
14974 cat conftest.$ac_ext >&5
14975 cf_result=no
14977 rm -f conftest.$ac_objext conftest.$ac_ext
14978 echo "$as_me:14978: result: $cf_result" >&5
14979 echo "${ECHO_T}$cf_result" >&6
14981 if test $cf_result = yes ; then
14983 cf_result=`echo "have_curses_data_boolfnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14985 cat >>confdefs.h <<EOF
14986 #define $cf_result 1
14989 else
14990 echo "$as_me:14990: checking for data boolfnames in library" >&5
14991 echo $ECHO_N "checking for data boolfnames in library... $ECHO_C" >&6
14992 # BSD linkers insist on making weak linkage, but resolve at runtime.
14993 if test "$cross_compiling" = yes; then
14995 # cross-compiling
14996 cat >conftest.$ac_ext <<_ACEOF
14997 #line 14997 "configure"
14998 #include "confdefs.h"
15000 #ifdef HAVE_XCURSES
15001 #include <xcurses.h>
15002 char * XCursesProgramName = "test";
15003 #else
15004 #include <${cf_cv_ncurses_header:-curses.h}>
15005 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
15006 #include <ncursesw/term.h>
15007 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
15008 #include <ncurses/term.h>
15009 #elif defined(HAVE_TERM_H)
15010 #include <term.h>
15011 #endif
15012 #endif
15014 extern char boolfnames;
15016 main ()
15019 do {
15020 void *foo = &(boolfnames);
15021 ${cf_cv_main_return:-return}(foo == 0);
15022 } while (0)
15025 return 0;
15027 _ACEOF
15028 rm -f conftest.$ac_objext conftest$ac_exeext
15029 if { (eval echo "$as_me:15029: \"$ac_link\"") >&5
15030 (eval $ac_link) 2>&5
15031 ac_status=$?
15032 echo "$as_me:15032: \$? = $ac_status" >&5
15033 (exit $ac_status); } &&
15034 { ac_try='test -s conftest$ac_exeext'
15035 { (eval echo "$as_me:15035: \"$ac_try\"") >&5
15036 (eval $ac_try) 2>&5
15037 ac_status=$?
15038 echo "$as_me:15038: \$? = $ac_status" >&5
15039 (exit $ac_status); }; }; then
15040 cf_result=yes
15041 else
15042 echo "$as_me: failed program was:" >&5
15043 cat conftest.$ac_ext >&5
15044 cf_result=no
15046 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15048 else
15049 cat >conftest.$ac_ext <<_ACEOF
15050 #line 15050 "configure"
15051 #include "confdefs.h"
15053 #ifdef HAVE_XCURSES
15054 #include <xcurses.h>
15055 char * XCursesProgramName = "test";
15056 #else
15057 #include <${cf_cv_ncurses_header:-curses.h}>
15058 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
15059 #include <ncursesw/term.h>
15060 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
15061 #include <ncurses/term.h>
15062 #elif defined(HAVE_TERM_H)
15063 #include <term.h>
15064 #endif
15065 #endif
15067 extern char boolfnames;
15068 int main(void)
15070 void *foo = &(boolfnames);
15071 ${cf_cv_main_return:-return}(foo == 0);
15073 _ACEOF
15074 rm -f conftest$ac_exeext
15075 if { (eval echo "$as_me:15075: \"$ac_link\"") >&5
15076 (eval $ac_link) 2>&5
15077 ac_status=$?
15078 echo "$as_me:15078: \$? = $ac_status" >&5
15079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15080 { (eval echo "$as_me:15080: \"$ac_try\"") >&5
15081 (eval $ac_try) 2>&5
15082 ac_status=$?
15083 echo "$as_me:15083: \$? = $ac_status" >&5
15084 (exit $ac_status); }; }; then
15085 cf_result=yes
15086 else
15087 echo "$as_me: program exited with status $ac_status" >&5
15088 echo "$as_me: failed program was:" >&5
15089 cat conftest.$ac_ext >&5
15090 cf_result=no
15092 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15094 echo "$as_me:15094: result: $cf_result" >&5
15095 echo "${ECHO_T}$cf_result" >&6
15096 if test $cf_result = yes ; then
15098 cf_result=`echo "decl_curses_data_boolfnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15100 cat >>confdefs.h <<EOF
15101 #define $cf_result 1
15107 TEST_ARGS="$LIBS"
15108 LIBS=
15110 ac_config_files="$ac_config_files Makefile"
15111 ac_config_commands="$ac_config_commands default"
15112 cat >confcache <<\_ACEOF
15113 # This file is a shell script that caches the results of configure
15114 # tests run on this system so they can be shared between configure
15115 # scripts and configure runs, see configure's option --config-cache.
15116 # It is not useful on other systems. If it contains results you don't
15117 # want to keep, you may remove or edit it.
15119 # config.status only pays attention to the cache file if you give it
15120 # the --recheck option to rerun configure.
15122 # `ac_cv_env_foo' variables (set or unset) will be overriden when
15123 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15124 # following values.
15126 _ACEOF
15128 # The following way of writing the cache mishandles newlines in values,
15129 # but we know of no workaround that is simple, portable, and efficient.
15130 # So, don't put newlines in cache variables' values.
15131 # Ultrix sh set writes to stderr and can't be redirected directly,
15132 # and sets the high bit in the cache file unless we assign to the vars.
15134 (set) 2>&1 |
15135 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15136 *ac_space=\ *)
15137 # `set' does not quote correctly, so add quotes (double-quote
15138 # substitution turns \\\\ into \\, and sed turns \\ into \).
15139 sed -n \
15140 "s/'/'\\\\''/g;
15141 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15144 # `set' quotes correctly as required by POSIX, so do not add quotes.
15145 sed -n \
15146 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15148 esac;
15150 sed '
15151 t clear
15152 : clear
15153 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15154 t end
15155 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15156 : end' >>confcache
15157 if cmp -s $cache_file confcache; then :; else
15158 if test -w $cache_file; then
15159 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15160 cat confcache >$cache_file
15161 else
15162 echo "not updating unwritable cache $cache_file"
15165 rm -f confcache
15167 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15168 # Let make expand exec_prefix.
15169 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15171 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15172 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15173 # trailing colons and then remove the whole line if VPATH becomes empty
15174 # (actually we leave an empty line to preserve line numbers).
15175 if test "x$srcdir" = x.; then
15176 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15177 s/:*\$(srcdir):*/:/;
15178 s/:*\${srcdir}:*/:/;
15179 s/:*@srcdir@:*/:/;
15180 s/^\([^=]*=[ ]*\):*/\1/;
15181 s/:*$//;
15182 s/^[^=]*=[ ]*$//;
15186 DEFS=-DHAVE_CONFIG_H
15188 : ${CONFIG_STATUS=./config.status}
15189 ac_clean_files_save=$ac_clean_files
15190 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15191 { echo "$as_me:15191: creating $CONFIG_STATUS" >&5
15192 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15193 cat >$CONFIG_STATUS <<_ACEOF
15194 #! $SHELL
15195 # Generated automatically by configure.
15196 # Run this file to recreate the current configuration.
15197 # Compiler output produced by configure, useful for debugging
15198 # configure, is in config.log if it exists.
15200 debug=false
15201 SHELL=\${CONFIG_SHELL-$SHELL}
15202 ac_cs_invocation="\$0 \$@"
15204 _ACEOF
15206 cat >>$CONFIG_STATUS <<\_ACEOF
15207 # Be Bourne compatible
15208 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15209 emulate sh
15210 NULLCMD=:
15211 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15212 set -o posix
15215 # Name of the executable.
15216 as_me=`echo "$0" |sed 's,.*[\\/],,'`
15218 if expr a : '\(a\)' >/dev/null 2>&1; then
15219 as_expr=expr
15220 else
15221 as_expr=false
15224 rm -f conf$$ conf$$.exe conf$$.file
15225 echo >conf$$.file
15226 if ln -s conf$$.file conf$$ 2>/dev/null; then
15227 # We could just check for DJGPP; but this test a) works b) is more generic
15228 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15229 if test -f conf$$.exe; then
15230 # Don't use ln at all; we don't have any links
15231 as_ln_s='cp -p'
15232 else
15233 as_ln_s='ln -s'
15235 elif ln conf$$.file conf$$ 2>/dev/null; then
15236 as_ln_s=ln
15237 else
15238 as_ln_s='cp -p'
15240 rm -f conf$$ conf$$.exe conf$$.file
15242 as_executable_p="test -f"
15244 # Support unset when possible.
15245 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15246 as_unset=unset
15247 else
15248 as_unset=false
15251 # NLS nuisances.
15252 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
15253 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
15254 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
15255 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
15256 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
15257 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
15258 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
15259 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
15261 # IFS
15262 # We need space, tab and new line, in precisely that order.
15263 as_nl='
15265 IFS=" $as_nl"
15267 # CDPATH.
15268 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
15270 exec 6>&1
15272 _ACEOF
15274 # Files that config.status was made for.
15275 if test -n "$ac_config_files"; then
15276 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15279 if test -n "$ac_config_headers"; then
15280 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15283 if test -n "$ac_config_links"; then
15284 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15287 if test -n "$ac_config_commands"; then
15288 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15291 cat >>$CONFIG_STATUS <<\EOF
15293 ac_cs_usage="\
15294 \`$as_me' instantiates files from templates according to the
15295 current configuration.
15297 Usage: $0 [OPTIONS] [FILE]...
15299 -h, --help print this help, then exit
15300 -V, --version print version number, then exit
15301 -d, --debug don't remove temporary files
15302 --recheck update $as_me by reconfiguring in the same conditions
15303 --file=FILE[:TEMPLATE]
15304 instantiate the configuration file FILE
15305 --header=FILE[:TEMPLATE]
15306 instantiate the configuration header FILE
15308 Configuration files:
15309 $config_files
15311 Configuration headers:
15312 $config_headers
15314 Configuration commands:
15315 $config_commands
15317 Report bugs to <dickey@invisible-island.net>."
15320 cat >>$CONFIG_STATUS <<EOF
15321 ac_cs_version="\\
15322 config.status
15323 configured by $0, generated by GNU Autoconf 2.52.20101002,
15324 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15326 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
15327 Free Software Foundation, Inc.
15328 This config.status script is free software; the Free Software Foundation
15329 gives unlimited permission to copy, distribute and modify it."
15330 srcdir=$srcdir
15331 INSTALL="$INSTALL"
15334 cat >>$CONFIG_STATUS <<\EOF
15335 # If no file are specified by the user, then we need to provide default
15336 # value. By we need to know if files were specified by the user.
15337 ac_need_defaults=:
15338 while test $# != 0
15340 case $1 in
15341 --*=*)
15342 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15343 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15344 shift
15345 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
15346 shift
15348 -*);;
15349 *) # This is not an option, so the user has probably given explicit
15350 # arguments.
15351 ac_need_defaults=false;;
15352 esac
15354 case $1 in
15355 # Handling of the options.
15357 cat >>$CONFIG_STATUS <<EOF
15358 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15359 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
15360 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
15362 cat >>$CONFIG_STATUS <<\EOF
15363 --version | --vers* | -V )
15364 echo "$ac_cs_version"; exit 0 ;;
15365 --he | --h)
15366 # Conflict between --help and --header
15367 { { echo "$as_me:15367: error: ambiguous option: $1
15368 Try \`$0 --help' for more information." >&5
15369 echo "$as_me: error: ambiguous option: $1
15370 Try \`$0 --help' for more information." >&2;}
15371 { (exit 1); exit 1; }; };;
15372 --help | --hel | -h )
15373 echo "$ac_cs_usage"; exit 0 ;;
15374 --debug | --d* | -d )
15375 debug=: ;;
15376 --file | --fil | --fi | --f )
15377 shift
15378 CONFIG_FILES="$CONFIG_FILES $1"
15379 ac_need_defaults=false;;
15380 --header | --heade | --head | --hea )
15381 shift
15382 CONFIG_HEADERS="$CONFIG_HEADERS $1"
15383 ac_need_defaults=false;;
15385 # This is an error.
15386 -*) { { echo "$as_me:15386: error: unrecognized option: $1
15387 Try \`$0 --help' for more information." >&5
15388 echo "$as_me: error: unrecognized option: $1
15389 Try \`$0 --help' for more information." >&2;}
15390 { (exit 1); exit 1; }; } ;;
15392 *) ac_config_targets="$ac_config_targets $1" ;;
15394 esac
15395 shift
15396 done
15398 exec 5>>config.log
15399 cat >&5 << _ACEOF
15401 ## ----------------------- ##
15402 ## Running config.status. ##
15403 ## ----------------------- ##
15405 This file was extended by $as_me 2.52.20101002, executed with
15406 CONFIG_FILES = $CONFIG_FILES
15407 CONFIG_HEADERS = $CONFIG_HEADERS
15408 CONFIG_LINKS = $CONFIG_LINKS
15409 CONFIG_COMMANDS = $CONFIG_COMMANDS
15410 > $ac_cs_invocation
15411 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15413 _ACEOF
15416 cat >>$CONFIG_STATUS <<EOF
15418 # INIT-COMMANDS section.
15421 AWK="$AWK"
15422 ECHO_LD="$ECHO_LD"
15426 cat >>$CONFIG_STATUS <<\EOF
15427 for ac_config_target in $ac_config_targets
15429 case "$ac_config_target" in
15430 # Handling of arguments.
15431 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15432 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15433 "ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ncurses_cfg.h:ncurses_tst.hin" ;;
15434 *) { { echo "$as_me:15434: error: invalid argument: $ac_config_target" >&5
15435 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15436 { (exit 1); exit 1; }; };;
15437 esac
15438 done
15440 # If the user did not use the arguments to specify the items to instantiate,
15441 # then the envvar interface is used. Set only those that are not.
15442 # We use the long form for the default assignment because of an extremely
15443 # bizarre bug on SunOS 4.1.3.
15444 if $ac_need_defaults; then
15445 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15446 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15447 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15450 # Create a temporary directory, and hook for its removal unless debugging.
15451 $debug ||
15453 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15454 trap '{ (exit 1); exit 1; }' 1 2 13 15
15457 # Create a (secure) tmp directory for tmp files.
15458 : ${TMPDIR=/tmp}
15460 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
15461 test -n "$tmp" && test -d "$tmp"
15462 } ||
15464 tmp=$TMPDIR/cs$$-$RANDOM
15465 (umask 077 && mkdir $tmp)
15466 } ||
15468 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
15469 { (exit 1); exit 1; }
15474 cat >>$CONFIG_STATUS <<EOF
15477 # CONFIG_FILES section.
15480 # No need to generate the scripts if there are no CONFIG_FILES.
15481 # This happens for instance when ./config.status config.h
15482 if test -n "\$CONFIG_FILES"; then
15483 # Protect against being on the right side of a sed subst in config.status.
15484 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15485 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15486 s,@SHELL@,$SHELL,;t t
15487 s,@exec_prefix@,$exec_prefix,;t t
15488 s,@prefix@,$prefix,;t t
15489 s,@program_transform_name@,$program_transform_name,;t t
15490 s,@bindir@,$bindir,;t t
15491 s,@sbindir@,$sbindir,;t t
15492 s,@libexecdir@,$libexecdir,;t t
15493 s,@datadir@,$datadir,;t t
15494 s,@sysconfdir@,$sysconfdir,;t t
15495 s,@sharedstatedir@,$sharedstatedir,;t t
15496 s,@localstatedir@,$localstatedir,;t t
15497 s,@libdir@,$libdir,;t t
15498 s,@includedir@,$includedir,;t t
15499 s,@oldincludedir@,$oldincludedir,;t t
15500 s,@infodir@,$infodir,;t t
15501 s,@mandir@,$mandir,;t t
15502 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15503 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15504 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15505 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15506 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15507 s,@build_alias@,$build_alias,;t t
15508 s,@host_alias@,$host_alias,;t t
15509 s,@target_alias@,$target_alias,;t t
15510 s,@ECHO_C@,$ECHO_C,;t t
15511 s,@ECHO_N@,$ECHO_N,;t t
15512 s,@ECHO_T@,$ECHO_T,;t t
15513 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15514 s,@DEFS@,$DEFS,;t t
15515 s,@LIBS@,$LIBS,;t t
15516 s,@build@,$build,;t t
15517 s,@build_cpu@,$build_cpu,;t t
15518 s,@build_vendor@,$build_vendor,;t t
15519 s,@build_os@,$build_os,;t t
15520 s,@host@,$host,;t t
15521 s,@host_cpu@,$host_cpu,;t t
15522 s,@host_vendor@,$host_vendor,;t t
15523 s,@host_os@,$host_os,;t t
15524 s,@SET_MAKE@,$SET_MAKE,;t t
15525 s,@CC@,$CC,;t t
15526 s,@CFLAGS@,$CFLAGS,;t t
15527 s,@LDFLAGS@,$LDFLAGS,;t t
15528 s,@CPPFLAGS@,$CPPFLAGS,;t t
15529 s,@ac_ct_CC@,$ac_ct_CC,;t t
15530 s,@EXEEXT@,$EXEEXT,;t t
15531 s,@OBJEXT@,$OBJEXT,;t t
15532 s,@CPP@,$CPP,;t t
15533 s,@AWK@,$AWK,;t t
15534 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15535 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15536 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15537 s,@LINT@,$LINT,;t t
15538 s,@LINT_OPTS@,$LINT_OPTS,;t t
15539 s,@CTAGS@,$CTAGS,;t t
15540 s,@ETAGS@,$ETAGS,;t t
15541 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
15542 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
15543 s,@MATH_LIB@,$MATH_LIB,;t t
15544 s,@CC_G_OPT@,$CC_G_OPT,;t t
15545 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
15546 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
15547 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
15548 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
15549 s,@LD@,$LD,;t t
15550 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
15551 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
15552 s,@LD_MODEL@,$LD_MODEL,;t t
15553 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
15554 s,@LIBTOOL@,$LIBTOOL,;t t
15555 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
15556 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
15557 s,@LIB_LINK@,$LIB_LINK,;t t
15558 s,@LINK_TESTS@,$LINK_TESTS,;t t
15559 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
15560 s,@PTHREAD@,$PTHREAD,;t t
15561 s,@TEST_ARGS@,$TEST_ARGS,;t t
15562 s,@TEST_DEPS@,$TEST_DEPS,;t t
15563 s,@TEST_LIBS@,$TEST_LIBS,;t t
15564 s,@TINFO_ARGS@,$TINFO_ARGS,;t t
15565 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
15566 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
15567 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
15568 s,@ECHO_LT@,$ECHO_LT,;t t
15569 s,@ECHO_LD@,$ECHO_LD,;t t
15570 s,@RULE_CC@,$RULE_CC,;t t
15571 s,@SHOW_CC@,$SHOW_CC,;t t
15572 s,@ECHO_CC@,$ECHO_CC,;t t
15573 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
15574 s,@NCURSES_CONFIG@,$NCURSES_CONFIG,;t t
15575 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
15576 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
15577 s,@X_CFLAGS@,$X_CFLAGS,;t t
15578 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
15579 s,@X_LIBS@,$X_LIBS,;t t
15580 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
15581 s,@XCURSES_CONFIG@,$XCURSES_CONFIG,;t t
15582 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
15583 CEOF
15587 cat >>$CONFIG_STATUS <<\EOF
15588 # Split the substitutions into bite-sized pieces for seds with
15589 # small command number limits, like on Digital OSF/1 and HP-UX.
15590 ac_max_sed_lines=48
15591 ac_sed_frag=1 # Number of current file.
15592 ac_beg=1 # First line for current file.
15593 ac_end=$ac_max_sed_lines # Line after last line for current file.
15594 ac_more_lines=:
15595 ac_sed_cmds=
15596 while $ac_more_lines; do
15597 if test $ac_beg -gt 1; then
15598 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15599 else
15600 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15602 if test ! -s $tmp/subs.frag; then
15603 ac_more_lines=false
15604 else
15605 # The purpose of the label and of the branching condition is to
15606 # speed up the sed processing (if there are no `@' at all, there
15607 # is no need to browse any of the substitutions).
15608 # These are the two extra sed commands mentioned above.
15609 (echo ':t
15610 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15611 if test -z "$ac_sed_cmds"; then
15612 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15613 else
15614 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15616 ac_sed_frag=`expr $ac_sed_frag + 1`
15617 ac_beg=$ac_end
15618 ac_end=`expr $ac_end + $ac_max_sed_lines`
15620 done
15621 if test -z "$ac_sed_cmds"; then
15622 ac_sed_cmds=cat
15624 fi # test -n "$CONFIG_FILES"
15627 cat >>$CONFIG_STATUS <<\EOF
15628 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15629 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15630 case $ac_file in
15631 - | *:- | *:-:* ) # input from stdin
15632 cat >$tmp/stdin
15633 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15634 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15635 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15636 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15637 * ) ac_file_in=$ac_file.in ;;
15638 esac
15640 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15641 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15642 X"$ac_file" : 'X\(//\)[^/]' \| \
15643 X"$ac_file" : 'X\(//\)$' \| \
15644 X"$ac_file" : 'X\(/\)' \| \
15645 . : '\(.\)' 2>/dev/null ||
15646 echo X"$ac_file" |
15647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15648 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15649 /^X\(\/\/\)$/{ s//\1/; q; }
15650 /^X\(\/\).*/{ s//\1/; q; }
15651 s/.*/./; q'`
15652 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15653 { case "$ac_dir" in
15654 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
15655 *) as_incr_dir=.;;
15656 esac
15657 as_dummy="$ac_dir"
15658 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
15659 case $as_mkdir_dir in
15660 # Skip DOS drivespec
15661 ?:) as_incr_dir=$as_mkdir_dir ;;
15663 as_incr_dir=$as_incr_dir/$as_mkdir_dir
15664 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
15666 esac
15667 done; }
15669 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
15670 # A "../" for each directory in $ac_dir_suffix.
15671 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
15672 else
15673 ac_dir_suffix= ac_dots=
15676 case $srcdir in
15677 .) ac_srcdir=.
15678 if test -z "$ac_dots"; then
15679 ac_top_srcdir=.
15680 else
15681 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
15682 fi ;;
15683 [\\/]* | ?:[\\/]* )
15684 ac_srcdir=$srcdir$ac_dir_suffix;
15685 ac_top_srcdir=$srcdir ;;
15686 *) # Relative path.
15687 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
15688 ac_top_srcdir=$ac_dots$srcdir ;;
15689 esac
15691 case $INSTALL in
15692 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15693 *) ac_INSTALL=$ac_dots$INSTALL ;;
15694 esac
15696 if test x"$ac_file" != x-; then
15697 { echo "$as_me:15697: creating $ac_file" >&5
15698 echo "$as_me: creating $ac_file" >&6;}
15699 rm -f "$ac_file"
15701 # Let's still pretend it is `configure' which instantiates (i.e., don't
15702 # use $as_me), people would be surprised to read:
15703 # /* config.h. Generated automatically by config.status. */
15704 configure_input="Generated automatically from `echo $ac_file_in |
15705 sed 's,.*/,,'` by configure."
15707 # First look for the input files in the build tree, otherwise in the
15708 # src tree.
15709 ac_file_inputs=`IFS=:
15710 for f in $ac_file_in; do
15711 case $f in
15712 -) echo $tmp/stdin ;;
15713 [\\/$]*)
15714 # Absolute (can't be DOS-style, as IFS=:)
15715 test -f "$f" || { { echo "$as_me:15715: error: cannot find input file: $f" >&5
15716 echo "$as_me: error: cannot find input file: $f" >&2;}
15717 { (exit 1); exit 1; }; }
15718 echo $f;;
15719 *) # Relative
15720 if test -f "$f"; then
15721 # Build tree
15722 echo $f
15723 elif test -f "$srcdir/$f"; then
15724 # Source tree
15725 echo $srcdir/$f
15726 else
15727 # /dev/null tree
15728 { { echo "$as_me:15728: error: cannot find input file: $f" >&5
15729 echo "$as_me: error: cannot find input file: $f" >&2;}
15730 { (exit 1); exit 1; }; }
15731 fi;;
15732 esac
15733 done` || { (exit 1); exit 1; }
15735 cat >>$CONFIG_STATUS <<EOF
15736 sed "$ac_vpsub
15737 $extrasub
15739 cat >>$CONFIG_STATUS <<\EOF
15741 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15742 s,@configure_input@,$configure_input,;t t
15743 s,@srcdir@,$ac_srcdir,;t t
15744 s,@top_srcdir@,$ac_top_srcdir,;t t
15745 s,@INSTALL@,$ac_INSTALL,;t t
15746 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15747 rm -f $tmp/stdin
15748 if test x"$ac_file" != x-; then
15749 mv $tmp/out $ac_file
15750 else
15751 cat $tmp/out
15752 rm -f $tmp/out
15755 done
15757 cat >>$CONFIG_STATUS <<\EOF
15760 # CONFIG_HEADER section.
15763 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15764 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15766 # ac_d sets the value in "#define NAME VALUE" lines.
15767 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15768 ac_dB='[ ].*$,\1#\2'
15769 ac_dC=' '
15770 ac_dD=',;t'
15771 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
15772 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15773 ac_iB='\([ ]\),\1#\2define\3'
15774 ac_iC=' '
15775 ac_iD='\4,;t'
15776 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15777 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15778 ac_uB='$,\1#\2define\3'
15779 ac_uC=' '
15780 ac_uD=',;t'
15782 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15783 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15784 case $ac_file in
15785 - | *:- | *:-:* ) # input from stdin
15786 cat >$tmp/stdin
15787 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15788 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15789 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15790 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15791 * ) ac_file_in=$ac_file.in ;;
15792 esac
15794 test x"$ac_file" != x- && { echo "$as_me:15794: creating $ac_file" >&5
15795 echo "$as_me: creating $ac_file" >&6;}
15797 # First look for the input files in the build tree, otherwise in the
15798 # src tree.
15799 ac_file_inputs=`IFS=:
15800 for f in $ac_file_in; do
15801 case $f in
15802 -) echo $tmp/stdin ;;
15803 [\\/$]*)
15804 # Absolute (can't be DOS-style, as IFS=:)
15805 test -f "$f" || { { echo "$as_me:15805: error: cannot find input file: $f" >&5
15806 echo "$as_me: error: cannot find input file: $f" >&2;}
15807 { (exit 1); exit 1; }; }
15808 echo $f;;
15809 *) # Relative
15810 if test -f "$f"; then
15811 # Build tree
15812 echo $f
15813 elif test -f "$srcdir/$f"; then
15814 # Source tree
15815 echo $srcdir/$f
15816 else
15817 # /dev/null tree
15818 { { echo "$as_me:15818: error: cannot find input file: $f" >&5
15819 echo "$as_me: error: cannot find input file: $f" >&2;}
15820 { (exit 1); exit 1; }; }
15821 fi;;
15822 esac
15823 done` || { (exit 1); exit 1; }
15824 # Remove the trailing spaces.
15825 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
15829 # Transform confdefs.h into a list of #define's. We won't use it as a sed
15830 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
15831 # be either 'cat' or 'sort'.
15832 cat confdefs.h | uniq >conftest.vals
15834 # Break up conftest.vals because some shells have a limit on
15835 # the size of here documents, and old seds have small limits too.
15837 rm -f conftest.tail
15838 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
15839 while grep . conftest.vals >/dev/null
15841 # Write chunks of a limited-size here document to conftest.frag.
15842 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
15843 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
15844 echo 'CEOF' >> $CONFIG_STATUS
15845 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
15846 rm -f conftest.vals
15847 mv conftest.tail conftest.vals
15848 done
15849 rm -f conftest.vals
15851 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
15852 # marker @DEFS@.
15853 echo ' cat >> conftest.edit <<CEOF
15854 /@DEFS@/r conftest.frag
15855 /@DEFS@/d
15856 CEOF
15857 sed -f conftest.edit $tmp/in > $tmp/out
15858 rm -f $tmp/in
15859 mv $tmp/out $tmp/in
15860 rm -f conftest.edit conftest.frag
15861 ' >> $CONFIG_STATUS
15863 cat >>$CONFIG_STATUS <<\EOF
15864 # Let's still pretend it is `configure' which instantiates (i.e., don't
15865 # use $as_me), people would be surprised to read:
15866 # /* config.h. Generated automatically by config.status. */
15867 if test x"$ac_file" = x-; then
15868 echo "/* Generated automatically by configure. */" >$tmp/config.h
15869 else
15870 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
15872 cat $tmp/in >>$tmp/config.h
15873 rm -f $tmp/in
15874 if test x"$ac_file" != x-; then
15875 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
15876 { echo "$as_me:15876: $ac_file is unchanged" >&5
15877 echo "$as_me: $ac_file is unchanged" >&6;}
15878 else
15879 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15880 X"$ac_file" : 'X\(//\)[^/]' \| \
15881 X"$ac_file" : 'X\(//\)$' \| \
15882 X"$ac_file" : 'X\(/\)' \| \
15883 . : '\(.\)' 2>/dev/null ||
15884 echo X"$ac_file" |
15885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15886 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15887 /^X\(\/\/\)$/{ s//\1/; q; }
15888 /^X\(\/\).*/{ s//\1/; q; }
15889 s/.*/./; q'`
15890 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15891 { case "$ac_dir" in
15892 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
15893 *) as_incr_dir=.;;
15894 esac
15895 as_dummy="$ac_dir"
15896 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
15897 case $as_mkdir_dir in
15898 # Skip DOS drivespec
15899 ?:) as_incr_dir=$as_mkdir_dir ;;
15901 as_incr_dir=$as_incr_dir/$as_mkdir_dir
15902 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
15904 esac
15905 done; }
15908 rm -f $ac_file
15909 mv $tmp/config.h $ac_file
15911 else
15912 cat $tmp/config.h
15913 rm -f $tmp/config.h
15915 done
15917 cat >>$CONFIG_STATUS <<\EOF
15919 # CONFIG_COMMANDS section.
15921 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15922 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15923 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15925 case $ac_dest in
15926 default )
15928 for cf_dir in .
15930 if test ! -d $srcdir/$cf_dir; then
15931 continue
15932 elif test -f $srcdir/$cf_dir/programs; then
15933 $AWK -f $srcdir/mk-test.awk INSTALL=yes ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
15935 done
15937 cat >>Makefile <<TEST_EOF
15939 # These rules are generated so we do not rely on suffix rules, which do not
15940 # work consistently for different make-programs (the '\$(MODEL)/' confuses
15941 # some, and the '\$x' confuses others).
15942 TEST_EOF
15944 LIST=`sed -e 's/[ ].*//' -e '/^[#@]/d' $srcdir/modules`
15945 for N in $LIST
15947 cat >>Makefile <<TEST_EOF
15949 \$(MODEL)/$N.o : \$(srcdir)/$N.c \\
15950 \$(srcdir)/test.priv.h \\
15951 ncurses_cfg.h
15952 @echo compiling $N; \$(CC) -c \$(CFLAGS_DEFAULT) \$(srcdir)/$N.c
15953 TEST_EOF
15954 done
15956 if test -f ../config.guess && test -f ../config.sub
15957 then
15958 cat >>Makefile <<TEST_EOF
15960 # if we used CF_INHERIT for getting these files, we can remove them
15961 distclean::
15962 rm -f config.guess config.sub
15963 TEST_EOF
15966 esac
15967 done
15970 cat >>$CONFIG_STATUS <<\EOF
15972 { (exit 0); exit 0; }
15974 chmod +x $CONFIG_STATUS
15975 ac_clean_files=$ac_clean_files_save
15977 # configure is writing to config.log, and then calls config.status.
15978 # config.status does its own redirection, appending to config.log.
15979 # Unfortunately, on DOS this fails, as config.log is still kept open
15980 # by configure, so config.status won't be able to write to it; its
15981 # output is simply discarded. So we exec the FD to /dev/null,
15982 # effectively closing config.log, so it can be properly (re)opened and
15983 # appended to by config.status. When coming back to configure, we
15984 # need to make the FD available again.
15985 if test "$no_create" != yes; then
15986 ac_cs_success=:
15987 exec 5>/dev/null
15988 $SHELL $CONFIG_STATUS || ac_cs_success=false
15989 exec 5>>config.log
15990 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15991 # would make configure fail if this is the last instruction.
15992 $ac_cs_success || { (exit 1); exit 1; }