2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.20150926.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Avoid depending upon Character Ranges.
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits='0123456789'
15 as_cr_alnum=$as_cr_Letters$as_cr_digits
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34 if expr a : '\(a\)' >/dev/null 2>&1; then
40 rm -f conf$$ conf$$.exe conf$$.file
42 if ln -s conf$$.file conf$$ 2>/dev/null; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe; then
46 # Don't use ln at all; we don't have any links
51 elif ln conf$$.file conf$$ 2>/dev/null; then
56 rm -f conf$$ conf$$.exe conf$$.file
58 as_executable_p="test -f"
60 # Support unset when possible.
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
78 # We need space, tab and new line, in precisely that order.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
96 ac_default_prefix=/usr/local
100 SHELL=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete. It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
107 ac_unique_file="ncurses.c"
109 # Initialize some variables set by options.
111 ac_init_version=false
112 # The variables have the same names as the options, with
113 # dashes changed to underlines.
121 program_transform_name=s,x,x,
129 # Installation directory options.
130 # These are left unexpanded so users can "make install exec_prefix=/foo"
131 # and all the variables that are supposed to be based on exec_prefix
132 # by default will actually change.
133 # Use braces instead of parens because sh, perl, etc. also accept them.
134 bindir='${exec_prefix}/bin'
135 sbindir='${exec_prefix}/sbin'
136 libexecdir='${exec_prefix}/libexec'
137 datarootdir='${prefix}/share'
138 datadir='${datarootdir}'
139 sysconfdir='${prefix}/etc'
140 sharedstatedir='${prefix}/com'
141 localstatedir='${prefix}/var'
142 libdir='${exec_prefix}/lib'
143 includedir='${prefix}/include'
144 oldincludedir='/usr/include'
145 infodir='${datarootdir}/info'
146 mandir='${datarootdir}/man'
148 # Identity of this package.
158 # If the previous option needs an argument, assign it.
159 if test -n "$ac_prev"; then
160 eval "$ac_prev=\$ac_option"
165 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
167 # Accept the important Cygnus configure options, so we can diagnose typos.
171 -bindir | --bindir | --bindi | --bind | --bin | --bi)
173 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
176 -build | --build | --buil | --bui | --bu)
177 ac_prev=build_alias ;;
178 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
179 build_alias=$ac_optarg ;;
181 -cache-file | --cache-file | --cache-fil | --cache-fi \
182 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
183 ac_prev=cache_file ;;
184 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
185 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
186 cache_file=$ac_optarg ;;
189 cache_file=config.cache ;;
191 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
193 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
195 datadir=$ac_optarg ;;
197 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
198 | --dataroo | --dataro | --datar)
199 ac_prev=datarootdir ;;
200 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
201 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
202 datarootdir=$ac_optarg ;;
204 -disable-* | --disable-*)
205 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
206 # Reject names that are not valid shell variable names.
207 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
208 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
209 { (exit 1); exit 1; }; }
210 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
211 eval "enable_$ac_feature=no" ;;
213 -enable-* | --enable-*)
214 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
215 # Reject names that are not valid shell variable names.
216 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
217 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
218 { (exit 1); exit 1; }; }
219 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
221 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
224 eval "enable_$ac_feature='$ac_optarg'" ;;
226 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
227 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
228 | --exec | --exe | --ex)
229 ac_prev=exec_prefix ;;
230 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
231 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
232 | --exec=* | --exe=* | --ex=*)
233 exec_prefix=$ac_optarg ;;
235 -gas | --gas | --ga | --g)
236 # Obsolete; use --with-gas.
239 -help | --help | --hel | --he | -h)
241 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
242 ac_init_help=recursive ;;
243 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
244 ac_init_help=short ;;
246 -host | --host | --hos | --ho)
247 ac_prev=host_alias ;;
248 -host=* | --host=* | --hos=* | --ho=*)
249 host_alias=$ac_optarg ;;
251 -includedir | --includedir | --includedi | --included | --include \
252 | --includ | --inclu | --incl | --inc)
253 ac_prev=includedir ;;
254 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
255 | --includ=* | --inclu=* | --incl=* | --inc=*)
256 includedir=$ac_optarg ;;
258 -infodir | --infodir | --infodi | --infod | --info | --inf)
260 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
261 infodir=$ac_optarg ;;
263 -libdir | --libdir | --libdi | --libd)
265 -libdir=* | --libdir=* | --libdi=* | --libd=*)
268 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
269 | --libexe | --libex | --libe)
270 ac_prev=libexecdir ;;
271 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
272 | --libexe=* | --libex=* | --libe=*)
273 libexecdir=$ac_optarg ;;
275 -localstatedir | --localstatedir | --localstatedi | --localstated \
276 | --localstate | --localstat | --localsta | --localst \
277 | --locals | --local | --loca | --loc | --lo)
278 ac_prev=localstatedir ;;
279 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
280 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
281 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
282 localstatedir=$ac_optarg ;;
284 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
286 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
290 # Obsolete; use --without-fp.
293 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
297 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
298 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
301 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
302 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
303 | --oldin | --oldi | --old | --ol | --o)
304 ac_prev=oldincludedir ;;
305 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
306 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
307 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
308 oldincludedir=$ac_optarg ;;
310 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
312 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
315 -program-prefix | --program-prefix | --program-prefi | --program-pref \
316 | --program-pre | --program-pr | --program-p)
317 ac_prev=program_prefix ;;
318 -program-prefix=* | --program-prefix=* | --program-prefi=* \
319 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
320 program_prefix=$ac_optarg ;;
322 -program-suffix | --program-suffix | --program-suffi | --program-suff \
323 | --program-suf | --program-su | --program-s)
324 ac_prev=program_suffix ;;
325 -program-suffix=* | --program-suffix=* | --program-suffi=* \
326 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
327 program_suffix=$ac_optarg ;;
329 -program-transform-name | --program-transform-name \
330 | --program-transform-nam | --program-transform-na \
331 | --program-transform-n | --program-transform- \
332 | --program-transform | --program-transfor \
333 | --program-transfo | --program-transf \
334 | --program-trans | --program-tran \
335 | --progr-tra | --program-tr | --program-t)
336 ac_prev=program_transform_name ;;
337 -program-transform-name=* | --program-transform-name=* \
338 | --program-transform-nam=* | --program-transform-na=* \
339 | --program-transform-n=* | --program-transform-=* \
340 | --program-transform=* | --program-transfor=* \
341 | --program-transfo=* | --program-transf=* \
342 | --program-trans=* | --program-tran=* \
343 | --progr-tra=* | --program-tr=* | --program-t=*)
344 program_transform_name=$ac_optarg ;;
346 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
347 | -silent | --silent | --silen | --sile | --sil)
350 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
352 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
354 sbindir=$ac_optarg ;;
356 -sharedstatedir | --sharedstatedir | --sharedstatedi \
357 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
358 | --sharedst | --shareds | --shared | --share | --shar \
360 ac_prev=sharedstatedir ;;
361 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
362 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
363 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
365 sharedstatedir=$ac_optarg ;;
367 -site | --site | --sit)
369 -site=* | --site=* | --sit=*)
372 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
374 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
377 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
378 | --syscon | --sysco | --sysc | --sys | --sy)
379 ac_prev=sysconfdir ;;
380 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
381 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
382 sysconfdir=$ac_optarg ;;
384 -target | --target | --targe | --targ | --tar | --ta | --t)
385 ac_prev=target_alias ;;
386 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
387 target_alias=$ac_optarg ;;
389 -v | -verbose | --verbose | --verbos | --verbo | --verb)
392 -version | --version | --versio | --versi | --vers | -V)
396 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid package name: $ac_package" >&2
400 { (exit 1); exit 1; }; }
401 ac_package=`echo $ac_package| sed 's/-/_/g'`
403 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
406 eval "with_$ac_package='$ac_optarg'" ;;
408 -without-* | --without-*)
409 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid package name: $ac_package" >&2
413 { (exit 1); exit 1; }; }
414 ac_package=`echo $ac_package | sed 's/-/_/g'`
415 eval "with_$ac_package=no" ;;
418 # Obsolete; use --with-x.
421 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
422 | --x-incl | --x-inc | --x-in | --x-i)
423 ac_prev=x_includes ;;
424 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
425 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
426 x_includes=$ac_optarg ;;
428 -x-libraries | --x-libraries | --x-librarie | --x-librari \
429 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
430 ac_prev=x_libraries ;;
431 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
432 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
433 x_libraries=$ac_optarg ;;
435 -*) { echo "$as_me: error: unrecognized option: $ac_option
436 Try \`$0 --help' for more information." >&2
437 { (exit 1); exit 1; }; }
441 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
442 # Reject names that are not valid shell variable names.
443 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
444 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
445 { (exit 1); exit 1; }; }
446 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
447 eval "$ac_envvar='$ac_optarg'"
451 # FIXME: should be removed in autoconf 3.0.
452 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
453 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
454 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
455 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
461 if test -n "$ac_prev"; then
462 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
463 { echo "$as_me: error: missing argument to $ac_option" >&2
464 { (exit 1); exit 1; }; }
467 # Be sure to have absolute paths.
468 for ac_var in exec_prefix prefix
470 eval ac_val=$`echo $ac_var`
472 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
473 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
474 { (exit 1); exit 1; }; };;
478 # Be sure to have absolute paths.
479 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
480 localstatedir libdir includedir oldincludedir infodir mandir
482 eval ac_val=$`echo $ac_var`
484 [\\/$]* | ?:[\\/]* ) ;;
485 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
486 { (exit 1); exit 1; }; };;
490 # There might be people who depend on the old broken behavior: `$host'
491 # used to hold the argument of --host etc.
496 # FIXME: should be removed in autoconf 3.0.
497 if test "x$host_alias" != x; then
498 if test "x$build_alias" = x; then
499 cross_compiling=maybe
500 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
501 If a cross compiler is detected then cross compile mode will be used." >&2
502 elif test "x$build_alias" != "x$host_alias"; then
508 test -n "$host_alias" && ac_tool_prefix=$host_alias-
510 test "$silent" = yes && exec 6>/dev/null
512 # Find the source files, if location was not specified.
513 if test -z "$srcdir"; then
514 ac_srcdir_defaulted=yes
515 # Try the directory containing this script, then its parent.
517 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
518 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
520 if test ! -r $srcdir/$ac_unique_file; then
524 ac_srcdir_defaulted=no
526 if test ! -r $srcdir/$ac_unique_file; then
527 if test "$ac_srcdir_defaulted" = yes; then
528 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
529 { (exit 1); exit 1; }; }
531 { echo "$as_me: error: cannot find sources in $srcdir" >&2
532 { (exit 1); exit 1; }; }
535 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
536 ac_env_build_alias_set=${build_alias+set}
537 ac_env_build_alias_value=$build_alias
538 ac_cv_env_build_alias_set=${build_alias+set}
539 ac_cv_env_build_alias_value=$build_alias
540 ac_env_host_alias_set=${host_alias+set}
541 ac_env_host_alias_value=$host_alias
542 ac_cv_env_host_alias_set=${host_alias+set}
543 ac_cv_env_host_alias_value=$host_alias
544 ac_env_target_alias_set=${target_alias+set}
545 ac_env_target_alias_value=$target_alias
546 ac_cv_env_target_alias_set=${target_alias+set}
547 ac_cv_env_target_alias_value=$target_alias
548 ac_env_CC_set=${CC+set}
550 ac_cv_env_CC_set=${CC+set}
551 ac_cv_env_CC_value=$CC
552 ac_env_CFLAGS_set=${CFLAGS+set}
553 ac_env_CFLAGS_value=$CFLAGS
554 ac_cv_env_CFLAGS_set=${CFLAGS+set}
555 ac_cv_env_CFLAGS_value=$CFLAGS
556 ac_env_LDFLAGS_set=${LDFLAGS+set}
557 ac_env_LDFLAGS_value=$LDFLAGS
558 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
559 ac_cv_env_LDFLAGS_value=$LDFLAGS
560 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
561 ac_env_CPPFLAGS_value=$CPPFLAGS
562 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
563 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
564 ac_env_CPP_set=${CPP+set}
565 ac_env_CPP_value=$CPP
566 ac_cv_env_CPP_set=${CPP+set}
567 ac_cv_env_CPP_value=$CPP
570 # Report the --help message.
572 if test "$ac_init_help" = "long"; then
573 # Omit some internal or obsolete options to make the list less imposing.
574 # This message is too long to be a string in the A/UX 3.1 sh.
576 \`configure' configures this package to adapt to many kinds of systems.
578 Usage: $0 [OPTION]... [VAR=VALUE]...
580 To assign environment variables (e.g., CC, CFLAGS...), specify them as
581 VAR=VALUE. See below for descriptions of some of the useful variables.
583 Defaults for the options are specified in brackets.
586 -h, --help display this help and exit
587 --help=short display options specific to this package
588 --help=recursive display the short help of all the included packages
589 -V, --version display version information and exit
590 -q, --quiet, --silent do not print \`checking...' messages
591 --cache-file=FILE cache test results in FILE [disabled]
592 -C, --config-cache alias for \`--cache-file=config.cache'
593 -n, --no-create do not create output files
594 --srcdir=DIR find the sources in DIR [configure dir or \`..']
599 Installation directories:
600 --prefix=PREFIX install architecture-independent files in PREFIX
602 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
605 By default, \`make install' will install all the files in
606 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
607 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
608 for instance \`--prefix=\$HOME'.
610 For better control, use the options below.
612 Fine tuning of the installation directories:
613 --bindir=DIR user executables [EPREFIX/bin]
614 --sbindir=DIR system admin executables [EPREFIX/sbin]
615 --libexecdir=DIR program executables [EPREFIX/libexec]
616 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
617 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
618 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
619 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
620 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
621 --libdir=DIR object code libraries [EPREFIX/lib]
622 --includedir=DIR C header files [PREFIX/include]
623 --oldincludedir=DIR C header files for non-gcc [/usr/include]
624 --infodir=DIR info documentation [DATAROOTDIR/info]
625 --mandir=DIR man documentation [DATAROOTDIR/man]
631 --program-prefix=PREFIX prepend PREFIX to installed program names
632 --program-suffix=SUFFIX append SUFFIX to installed program names
633 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
636 --x-includes=DIR X include files are in DIR
637 --x-libraries=DIR X library files are in DIR
640 --build=BUILD configure for building on BUILD [guessed]
641 --host=HOST build programs to run on HOST [BUILD]
645 if test -n "$ac_init_help"; then
650 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
651 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
654 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
655 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
657 --enable-string-hacks work around bogus compiler/loader warnings
659 --with-pkg-config{=path} enable/disable use of pkg-config
660 --disable-echo do not display "compiling" commands
661 Curses Version-dependent Options:
662 --with-ncurses-wrap-prefix naming-prefix for ncurses wrapped-variables
663 --disable-widec disable checks for wide-character functions
664 --with-curses-dir=DIR directory in which (n)curses is installed
665 --with-screen=XXX use specified curses-libraries
666 --with-ncursesw use wide ncurses-libraries
667 --with-ncurses use ncurses-libraries
668 --with-pdcurses compile/link with pdcurses X11 library
669 --with-curses-colr compile/link with HPUX 10.x color-curses
670 --with-curses-5lib compile/link with SunOS 5lib curses
671 --with-Xaw3d link with Xaw 3d library
672 --with-Xaw3dxft link with Xaw 3d xft library
673 --with-neXtaw link with neXT Athena library
674 --with-XawPlus link with Athena-Plus library
675 --with-x use the X Window System
676 Testing/development Options:
677 --enable-warnings test: turn on gcc compiler warnings
678 --with-dmalloc test: use Gray Watson's dmalloc library
679 --with-dbmalloc test: use Conor Cahill's dbmalloc library
680 --with-valgrind test: use valgrind
681 --disable-leaks test: free permanent memory, analyze leaks
682 --disable-rpath-hack don't add rpath options for additional libraries
684 Some influential environment variables:
685 CC C compiler command
686 CFLAGS C compiler flags
687 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
688 nonstandard directory <lib dir>
689 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
690 headers in a nonstandard directory <include dir>
693 Use these variables to override the choices made by `configure' or to help
694 it to find libraries and programs with nonstandard names/locations.
699 if test "$ac_init_help" = "recursive"; then
700 # If there are subdirs, report their specific --help.
702 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
704 # A "../" for each directory in /$ac_subdir.
705 ac_dots=`echo $ac_subdir |
706 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
709 .) # No --srcdir option. We are building in place.
710 ac_sub_srcdir=$srcdir ;;
711 [\\/]* | ?:[\\/]* ) # Absolute path.
712 ac_sub_srcdir=$srcdir/$ac_subdir ;;
714 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
717 # Check for guested configure; otherwise get Cygnus style configure.
718 if test -f $ac_sub_srcdir/configure.gnu; then
720 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
721 elif test -f $ac_sub_srcdir/configure; then
723 $SHELL $ac_sub_srcdir/configure --help=recursive
724 elif test -f $ac_sub_srcdir/configure.ac ||
725 test -f $ac_sub_srcdir/configure.in; then
729 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
735 test -n "$ac_init_help" && exit 0
736 if $ac_init_version; then
739 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
740 Free Software Foundation, Inc.
741 This configure script is free software; the Free Software Foundation
742 gives unlimited permission to copy, distribute and modify it.
748 This file contains any messages produced by compilers while
749 running configure, to aid debugging if configure makes a mistake.
751 It was created by $as_me, which was
752 generated by GNU Autoconf 2.52.20150926. Invocation command line was
763 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
764 uname -m = `(uname -m) 2>/dev/null || echo unknown`
765 uname -r = `(uname -r) 2>/dev/null || echo unknown`
766 uname -s = `(uname -s) 2>/dev/null || echo unknown`
767 uname -v = `(uname -v) 2>/dev/null || echo unknown`
769 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
770 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
772 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
773 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
774 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
775 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
776 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
777 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
778 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
792 # Keep a trace of the command line.
793 # Strip out --no-create and --no-recursion so they do not pile up.
794 # Also quote any args containing shell meta-characters.
800 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
801 | --no-cr | --no-c) ;;
802 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
803 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
804 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
805 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
806 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
808 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
811 # Get rid of the leading space.
814 # When interrupted or exit'd, cleanup temporary files, and complete
815 # config.log. We remove comments because anyway the quotes in there
816 # would cause problems or look ugly.
818 # Save into config.log some information that might help in debugging.
820 echo "## ----------------- ##" >&5
821 echo "## Cache variables. ##" >&5
822 echo "## ----------------- ##" >&5
824 # The following way of writing the cache mishandles newlines in values,
827 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
830 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
831 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
835 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
839 sed "/^$/d" confdefs.h >conftest.log
840 if test -s conftest.log; then
842 echo "## ------------ ##" >&5
843 echo "## confdefs.h. ##" >&5
844 echo "## ------------ ##" >&5
849 test "$ac_signal" != 0 &&
850 echo "$as_me: caught signal $ac_signal" >&5
851 echo "$as_me: exit $exit_status" >&5
852 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
855 for ac_signal in 1 2 13 15; do
856 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
860 # confdefs.h avoids OS command line length limits that DEFS can exceed.
861 rm -rf conftest* confdefs.h
862 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
865 # Let the site file select an alternate cache file if it wants to.
866 # Prefer explicitly selected file to automatically selected ones.
867 if test -z "$CONFIG_SITE"; then
868 if test "x$prefix" != xNONE; then
869 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
871 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
874 for ac_site_file in $CONFIG_SITE; do
875 if test -r "$ac_site_file"; then
876 { echo "$as_me:876: loading site script $ac_site_file" >&5
877 echo "$as_me: loading site script $ac_site_file" >&6;}
878 cat "$ac_site_file" >&5
883 if test -r "$cache_file"; then
884 # Some versions of bash will fail to source /dev/null (special
885 # files actually), so we avoid doing that.
886 if test -f "$cache_file"; then
887 { echo "$as_me:887: loading cache $cache_file" >&5
888 echo "$as_me: loading cache $cache_file" >&6;}
890 [\\/]* | ?:[\\/]* ) . $cache_file;;
895 { echo "$as_me:895: creating cache $cache_file" >&5
896 echo "$as_me: creating cache $cache_file" >&6;}
900 # Check that the precious variables saved in the cache have kept the same
902 ac_cache_corrupted=false
903 for ac_var in `(set) 2>&1 |
904 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
905 eval ac_old_set=\$ac_cv_env_${ac_var}_set
906 eval ac_new_set=\$ac_env_${ac_var}_set
907 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
908 eval ac_new_val="\$ac_env_${ac_var}_value"
909 case $ac_old_set,$ac_new_set in
911 { echo "$as_me:911: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
912 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
913 ac_cache_corrupted=: ;;
915 { echo "$as_me:915: error: \`$ac_var' was not set in the previous run" >&5
916 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
917 ac_cache_corrupted=: ;;
920 if test "x$ac_old_val" != "x$ac_new_val"; then
921 { echo "$as_me:921: error: \`$ac_var' has changed since the previous run:" >&5
922 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
923 { echo "$as_me:923: former value: $ac_old_val" >&5
924 echo "$as_me: former value: $ac_old_val" >&2;}
925 { echo "$as_me:925: current value: $ac_new_val" >&5
926 echo "$as_me: current value: $ac_new_val" >&2;}
930 # Pass precious variables to config.status. It doesn't matter if
931 # we pass some twice (in addition to the command line arguments).
932 if test "$ac_new_set" = set; then
934 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
935 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
936 ac_configure_args="$ac_configure_args '$ac_arg'"
938 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
943 if $ac_cache_corrupted; then
944 { echo "$as_me:944: error: changes in the environment can compromise the build" >&5
945 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
946 { { echo "$as_me:946: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
947 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
948 { (exit 1); exit 1; }; }
952 ac_cpp='$CPP $CPPFLAGS'
953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
956 ac_main_return=return
958 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
959 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
961 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
962 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
964 echo "#! $SHELL" >conftest.sh
965 echo "exit 0" >>conftest.sh
967 if { (echo "$as_me:967: PATH=\".;.\"; conftest.sh") >&5
968 (PATH=".;."; conftest.sh) 2>&5
970 echo "$as_me:970: \$? = $ac_status" >&5
971 (exit $ac_status); }; then
972 ac_path_separator=';'
976 PATH_SEPARATOR="$ac_path_separator"
979 ac_config_headers="$ac_config_headers ncurses_cfg.h:ncurses_tst.hin"
981 test -f config.guess || ( test -f ../config.guess && cp ../config.guess ./ )
983 test -f config.sub || ( test -f ../config.sub && cp ../config.sub ./ )
986 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
987 if test -f $ac_dir/install-sh; then
989 ac_install_sh="$ac_aux_dir/install-sh -c"
991 elif test -f $ac_dir/install.sh; then
993 ac_install_sh="$ac_aux_dir/install.sh -c"
995 elif test -f $ac_dir/shtool; then
997 ac_install_sh="$ac_aux_dir/shtool install -c"
1001 if test -z "$ac_aux_dir"; then
1002 { { echo "$as_me:1002: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1003 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1004 { (exit 1); exit 1; }; }
1006 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1007 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1008 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1010 # Make sure we can run config.sub.
1011 $ac_config_sub sun4 >/dev/null 2>&1 ||
1012 { { echo "$as_me:1012: error: cannot run $ac_config_sub" >&5
1013 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1014 { (exit 1); exit 1; }; }
1016 echo "$as_me:1016: checking build system type" >&5
1017 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1018 if test "${ac_cv_build+set}" = set; then
1019 echo $ECHO_N "(cached) $ECHO_C" >&6
1021 ac_cv_build_alias=$build_alias
1022 test -z "$ac_cv_build_alias" &&
1023 ac_cv_build_alias=`$ac_config_guess`
1024 test -z "$ac_cv_build_alias" &&
1025 { { echo "$as_me:1025: error: cannot guess build type; you must specify one" >&5
1026 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1027 { (exit 1); exit 1; }; }
1028 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1029 { { echo "$as_me:1029: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1030 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1031 { (exit 1); exit 1; }; }
1034 echo "$as_me:1034: result: $ac_cv_build" >&5
1035 echo "${ECHO_T}$ac_cv_build" >&6
1037 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1038 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1039 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1041 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1042 echo "$as_me:1042: checking host system type" >&5
1043 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1044 if test "${ac_cv_host+set}" = set; then
1045 echo $ECHO_N "(cached) $ECHO_C" >&6
1047 ac_cv_host_alias=$host_alias
1048 test -z "$ac_cv_host_alias" &&
1049 ac_cv_host_alias=$ac_cv_build_alias
1050 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1051 { { echo "$as_me:1051: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1052 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1053 { (exit 1); exit 1; }; }
1056 echo "$as_me:1056: result: $ac_cv_host" >&5
1057 echo "${ECHO_T}$ac_cv_host" >&6
1059 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1060 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1061 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1063 system_name="$host_os"
1065 system_name="`(uname -s -r) 2>/dev/null`"
1066 if test -z "$system_name" ; then
1067 system_name="`(hostname) 2>/dev/null`"
1070 test -n "$system_name" &&
1071 cat >>confdefs.h <<EOF
1072 #define SYSTEM_NAME "$system_name"
1075 if test "${cf_cv_system_name+set}" = set; then
1076 echo $ECHO_N "(cached) $ECHO_C" >&6
1078 cf_cv_system_name="$system_name"
1081 test -z "$system_name" && system_name="$cf_cv_system_name"
1082 test -n "$cf_cv_system_name" && echo "$as_me:1082: result: Configuring for $cf_cv_system_name" >&5
1083 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1085 if test ".$system_name" != ".$cf_cv_system_name" ; then
1086 echo "$as_me:1086: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1087 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1088 { { echo "$as_me:1088: error: \"Please remove config.cache and try again.\"" >&5
1089 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1090 { (exit 1); exit 1; }; }
1093 test "$program_prefix" != NONE &&
1094 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1095 # Use a double $ so make ignores it.
1096 test "$program_suffix" != NONE &&
1097 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1098 # Double any \ or $. echo might interpret backslashes.
1099 # By default was `s,x,x', remove it if useless.
1100 cat <<\_ACEOF >conftest.sed
1101 s/[\\$]/&&/g;s/;s,x,x,$//
1103 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1106 echo "$as_me:1106: checking whether ${MAKE-make} sets \${MAKE}" >&5
1107 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1108 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1109 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1110 echo $ECHO_N "(cached) $ECHO_C" >&6
1112 cat >conftest.make <<\EOF
1114 @echo 'ac_maketemp="${MAKE}"'
1116 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1117 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1118 if test -n "$ac_maketemp"; then
1119 eval ac_cv_prog_make_${ac_make}_set=yes
1121 eval ac_cv_prog_make_${ac_make}_set=no
1125 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1126 echo "$as_me:1126: result: yes" >&5
1127 echo "${ECHO_T}yes" >&6
1130 echo "$as_me:1130: result: no" >&5
1131 echo "${ECHO_T}no" >&6
1132 SET_MAKE="MAKE=${MAKE-make}"
1136 ac_cpp='$CPP $CPPFLAGS'
1137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1140 ac_main_return=return
1141 if test -n "$ac_tool_prefix"; then
1142 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1143 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1144 echo "$as_me:1144: checking for $ac_word" >&5
1145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1146 if test "${ac_cv_prog_CC+set}" = set; then
1147 echo $ECHO_N "(cached) $ECHO_C" >&6
1149 if test -n "$CC"; then
1150 ac_cv_prog_CC="$CC" # Let the user override the test.
1152 ac_save_IFS=$IFS; IFS=$ac_path_separator
1154 for ac_dir in $ac_dummy; do
1156 test -z "$ac_dir" && ac_dir=.
1157 $as_executable_p "$ac_dir/$ac_word" || continue
1158 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1159 echo "$as_me:1159: found $ac_dir/$ac_word" >&5
1166 if test -n "$CC"; then
1167 echo "$as_me:1167: result: $CC" >&5
1168 echo "${ECHO_T}$CC" >&6
1170 echo "$as_me:1170: result: no" >&5
1171 echo "${ECHO_T}no" >&6
1175 if test -z "$ac_cv_prog_CC"; then
1177 # Extract the first word of "gcc", so it can be a program name with args.
1178 set dummy gcc; ac_word=$2
1179 echo "$as_me:1179: checking for $ac_word" >&5
1180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1181 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1182 echo $ECHO_N "(cached) $ECHO_C" >&6
1184 if test -n "$ac_ct_CC"; then
1185 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1187 ac_save_IFS=$IFS; IFS=$ac_path_separator
1189 for ac_dir in $ac_dummy; do
1191 test -z "$ac_dir" && ac_dir=.
1192 $as_executable_p "$ac_dir/$ac_word" || continue
1193 ac_cv_prog_ac_ct_CC="gcc"
1194 echo "$as_me:1194: found $ac_dir/$ac_word" >&5
1200 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1201 if test -n "$ac_ct_CC"; then
1202 echo "$as_me:1202: result: $ac_ct_CC" >&5
1203 echo "${ECHO_T}$ac_ct_CC" >&6
1205 echo "$as_me:1205: result: no" >&5
1206 echo "${ECHO_T}no" >&6
1214 if test -z "$CC"; then
1215 if test -n "$ac_tool_prefix"; then
1216 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1217 set dummy ${ac_tool_prefix}cc; ac_word=$2
1218 echo "$as_me:1218: checking for $ac_word" >&5
1219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1220 if test "${ac_cv_prog_CC+set}" = set; then
1221 echo $ECHO_N "(cached) $ECHO_C" >&6
1223 if test -n "$CC"; then
1224 ac_cv_prog_CC="$CC" # Let the user override the test.
1226 ac_save_IFS=$IFS; IFS=$ac_path_separator
1228 for ac_dir in $ac_dummy; do
1230 test -z "$ac_dir" && ac_dir=.
1231 $as_executable_p "$ac_dir/$ac_word" || continue
1232 ac_cv_prog_CC="${ac_tool_prefix}cc"
1233 echo "$as_me:1233: found $ac_dir/$ac_word" >&5
1240 if test -n "$CC"; then
1241 echo "$as_me:1241: result: $CC" >&5
1242 echo "${ECHO_T}$CC" >&6
1244 echo "$as_me:1244: result: no" >&5
1245 echo "${ECHO_T}no" >&6
1249 if test -z "$ac_cv_prog_CC"; then
1251 # Extract the first word of "cc", so it can be a program name with args.
1252 set dummy cc; ac_word=$2
1253 echo "$as_me:1253: checking for $ac_word" >&5
1254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1255 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1256 echo $ECHO_N "(cached) $ECHO_C" >&6
1258 if test -n "$ac_ct_CC"; then
1259 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1261 ac_save_IFS=$IFS; IFS=$ac_path_separator
1263 for ac_dir in $ac_dummy; do
1265 test -z "$ac_dir" && ac_dir=.
1266 $as_executable_p "$ac_dir/$ac_word" || continue
1267 ac_cv_prog_ac_ct_CC="cc"
1268 echo "$as_me:1268: found $ac_dir/$ac_word" >&5
1274 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1275 if test -n "$ac_ct_CC"; then
1276 echo "$as_me:1276: result: $ac_ct_CC" >&5
1277 echo "${ECHO_T}$ac_ct_CC" >&6
1279 echo "$as_me:1279: result: no" >&5
1280 echo "${ECHO_T}no" >&6
1289 if test -z "$CC"; then
1290 # Extract the first word of "cc", so it can be a program name with args.
1291 set dummy cc; ac_word=$2
1292 echo "$as_me:1292: checking for $ac_word" >&5
1293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1294 if test "${ac_cv_prog_CC+set}" = set; then
1295 echo $ECHO_N "(cached) $ECHO_C" >&6
1297 if test -n "$CC"; then
1298 ac_cv_prog_CC="$CC" # Let the user override the test.
1301 ac_save_IFS=$IFS; IFS=$ac_path_separator
1303 for ac_dir in $ac_dummy; do
1305 test -z "$ac_dir" && ac_dir=.
1306 $as_executable_p "$ac_dir/$ac_word" || continue
1307 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1308 ac_prog_rejected=yes
1312 echo "$as_me:1312: found $ac_dir/$ac_word" >&5
1316 if test $ac_prog_rejected = yes; then
1317 # We found a bogon in the path, so make sure we never use it.
1318 set dummy $ac_cv_prog_CC
1320 if test $# != 0; then
1321 # We chose a different compiler from the bogus one.
1322 # However, it has the same basename, so the bogon will be chosen
1323 # first if we set CC to just the basename; use the full file name.
1325 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1333 if test -n "$CC"; then
1334 echo "$as_me:1334: result: $CC" >&5
1335 echo "${ECHO_T}$CC" >&6
1337 echo "$as_me:1337: result: no" >&5
1338 echo "${ECHO_T}no" >&6
1342 if test -z "$CC"; then
1343 if test -n "$ac_tool_prefix"; then
1346 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1347 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1348 echo "$as_me:1348: checking for $ac_word" >&5
1349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1350 if test "${ac_cv_prog_CC+set}" = set; then
1351 echo $ECHO_N "(cached) $ECHO_C" >&6
1353 if test -n "$CC"; then
1354 ac_cv_prog_CC="$CC" # Let the user override the test.
1356 ac_save_IFS=$IFS; IFS=$ac_path_separator
1358 for ac_dir in $ac_dummy; do
1360 test -z "$ac_dir" && ac_dir=.
1361 $as_executable_p "$ac_dir/$ac_word" || continue
1362 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1363 echo "$as_me:1363: found $ac_dir/$ac_word" >&5
1370 if test -n "$CC"; then
1371 echo "$as_me:1371: result: $CC" >&5
1372 echo "${ECHO_T}$CC" >&6
1374 echo "$as_me:1374: result: no" >&5
1375 echo "${ECHO_T}no" >&6
1378 test -n "$CC" && break
1381 if test -z "$CC"; then
1385 # Extract the first word of "$ac_prog", so it can be a program name with args.
1386 set dummy $ac_prog; ac_word=$2
1387 echo "$as_me:1387: checking for $ac_word" >&5
1388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1389 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1390 echo $ECHO_N "(cached) $ECHO_C" >&6
1392 if test -n "$ac_ct_CC"; then
1393 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1395 ac_save_IFS=$IFS; IFS=$ac_path_separator
1397 for ac_dir in $ac_dummy; do
1399 test -z "$ac_dir" && ac_dir=.
1400 $as_executable_p "$ac_dir/$ac_word" || continue
1401 ac_cv_prog_ac_ct_CC="$ac_prog"
1402 echo "$as_me:1402: found $ac_dir/$ac_word" >&5
1408 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1409 if test -n "$ac_ct_CC"; then
1410 echo "$as_me:1410: result: $ac_ct_CC" >&5
1411 echo "${ECHO_T}$ac_ct_CC" >&6
1413 echo "$as_me:1413: result: no" >&5
1414 echo "${ECHO_T}no" >&6
1417 test -n "$ac_ct_CC" && break
1425 test -z "$CC" && { { echo "$as_me:1425: error: no acceptable cc found in \$PATH" >&5
1426 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1427 { (exit 1); exit 1; }; }
1429 # Provide some information about the compiler.
1430 echo "$as_me:1430:" \
1431 "checking for C compiler version" >&5
1432 ac_compiler=`set X $ac_compile; echo $2`
1433 { (eval echo "$as_me:1433: \"$ac_compiler --version </dev/null >&5\"") >&5
1434 (eval $ac_compiler --version </dev/null >&5) 2>&5
1436 echo "$as_me:1436: \$? = $ac_status" >&5
1437 (exit $ac_status); }
1438 { (eval echo "$as_me:1438: \"$ac_compiler -v </dev/null >&5\"") >&5
1439 (eval $ac_compiler -v </dev/null >&5) 2>&5
1441 echo "$as_me:1441: \$? = $ac_status" >&5
1442 (exit $ac_status); }
1443 { (eval echo "$as_me:1443: \"$ac_compiler -V </dev/null >&5\"") >&5
1444 (eval $ac_compiler -V </dev/null >&5) 2>&5
1446 echo "$as_me:1446: \$? = $ac_status" >&5
1447 (exit $ac_status); }
1449 cat >conftest.$ac_ext <<_ACEOF
1450 #line 1450 "configure"
1451 #include "confdefs.h"
1461 ac_clean_files_save=$ac_clean_files
1462 ac_clean_files="$ac_clean_files a.out a.exe"
1463 # Try to create an executable without -o first, disregard a.out.
1464 # It will help us diagnose broken compilers, and finding out an intuition
1466 echo "$as_me:1466: checking for C compiler default output" >&5
1467 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1468 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1469 if { (eval echo "$as_me:1469: \"$ac_link_default\"") >&5
1470 (eval $ac_link_default) 2>&5
1472 echo "$as_me:1472: \$? = $ac_status" >&5
1473 (exit $ac_status); }; then
1474 # Find the output, starting from the most likely. This scheme is
1475 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1477 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1478 ls a.out conftest 2>/dev/null;
1479 ls a.* conftest.* 2>/dev/null`; do
1481 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1482 a.out ) # We found the default executable, but exeext='' is most
1485 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1486 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1493 echo "$as_me: failed program was:" >&5
1494 cat conftest.$ac_ext >&5
1495 { { echo "$as_me:1495: error: C compiler cannot create executables" >&5
1496 echo "$as_me: error: C compiler cannot create executables" >&2;}
1497 { (exit 77); exit 77; }; }
1500 ac_exeext=$ac_cv_exeext
1501 echo "$as_me:1501: result: $ac_file" >&5
1502 echo "${ECHO_T}$ac_file" >&6
1504 # Check the compiler produces executables we can run. If not, either
1505 # the compiler is broken, or we cross compile.
1506 echo "$as_me:1506: checking whether the C compiler works" >&5
1507 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1508 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1509 # If not cross compiling, check that we can run a simple program.
1510 if test "$cross_compiling" != yes; then
1511 if { ac_try='./$ac_file'
1512 { (eval echo "$as_me:1512: \"$ac_try\"") >&5
1515 echo "$as_me:1515: \$? = $ac_status" >&5
1516 (exit $ac_status); }; }; then
1519 if test "$cross_compiling" = maybe; then
1522 { { echo "$as_me:1522: error: cannot run C compiled programs.
1523 If you meant to cross compile, use \`--host'." >&5
1524 echo "$as_me: error: cannot run C compiled programs.
1525 If you meant to cross compile, use \`--host'." >&2;}
1526 { (exit 1); exit 1; }; }
1530 echo "$as_me:1530: result: yes" >&5
1531 echo "${ECHO_T}yes" >&6
1533 rm -f a.out a.exe conftest$ac_cv_exeext
1534 ac_clean_files=$ac_clean_files_save
1535 # Check the compiler produces executables we can run. If not, either
1536 # the compiler is broken, or we cross compile.
1537 echo "$as_me:1537: checking whether we are cross compiling" >&5
1538 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1539 echo "$as_me:1539: result: $cross_compiling" >&5
1540 echo "${ECHO_T}$cross_compiling" >&6
1542 echo "$as_me:1542: checking for executable suffix" >&5
1543 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1544 if { (eval echo "$as_me:1544: \"$ac_link\"") >&5
1545 (eval $ac_link) 2>&5
1547 echo "$as_me:1547: \$? = $ac_status" >&5
1548 (exit $ac_status); }; then
1549 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1550 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1551 # work properly (i.e., refer to `conftest.exe'), while it won't with
1553 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1555 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1556 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1563 { { echo "$as_me:1563: error: cannot compute EXEEXT: cannot compile and link" >&5
1564 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1565 { (exit 1); exit 1; }; }
1568 rm -f conftest$ac_cv_exeext
1569 echo "$as_me:1569: result: $ac_cv_exeext" >&5
1570 echo "${ECHO_T}$ac_cv_exeext" >&6
1572 rm -f conftest.$ac_ext
1573 EXEEXT=$ac_cv_exeext
1575 echo "$as_me:1575: checking for object suffix" >&5
1576 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1577 if test "${ac_cv_objext+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1580 cat >conftest.$ac_ext <<_ACEOF
1581 #line 1581 "configure"
1582 #include "confdefs.h"
1592 rm -f conftest.o conftest.obj
1593 if { (eval echo "$as_me:1593: \"$ac_compile\"") >&5
1594 (eval $ac_compile) 2>&5
1596 echo "$as_me:1596: \$? = $ac_status" >&5
1597 (exit $ac_status); }; then
1598 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1600 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1601 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1606 echo "$as_me: failed program was:" >&5
1607 cat conftest.$ac_ext >&5
1608 { { echo "$as_me:1608: error: cannot compute OBJEXT: cannot compile" >&5
1609 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1610 { (exit 1); exit 1; }; }
1613 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1615 echo "$as_me:1615: result: $ac_cv_objext" >&5
1616 echo "${ECHO_T}$ac_cv_objext" >&6
1617 OBJEXT=$ac_cv_objext
1619 echo "$as_me:1619: checking whether we are using the GNU C compiler" >&5
1620 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1621 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1622 echo $ECHO_N "(cached) $ECHO_C" >&6
1624 cat >conftest.$ac_ext <<_ACEOF
1625 #line 1625 "configure"
1626 #include "confdefs.h"
1639 rm -f conftest.$ac_objext
1640 if { (eval echo "$as_me:1640: \"$ac_compile\"") >&5
1641 (eval $ac_compile) 2>&5
1643 echo "$as_me:1643: \$? = $ac_status" >&5
1644 (exit $ac_status); } &&
1645 { ac_try='test -s conftest.$ac_objext'
1646 { (eval echo "$as_me:1646: \"$ac_try\"") >&5
1649 echo "$as_me:1649: \$? = $ac_status" >&5
1650 (exit $ac_status); }; }; then
1653 echo "$as_me: failed program was:" >&5
1654 cat conftest.$ac_ext >&5
1657 rm -f conftest.$ac_objext conftest.$ac_ext
1658 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1661 echo "$as_me:1661: result: $ac_cv_c_compiler_gnu" >&5
1662 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1663 GCC=`test $ac_compiler_gnu = yes && echo yes`
1664 ac_test_CFLAGS=${CFLAGS+set}
1665 ac_save_CFLAGS=$CFLAGS
1667 echo "$as_me:1667: checking whether $CC accepts -g" >&5
1668 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1669 if test "${ac_cv_prog_cc_g+set}" = set; then
1670 echo $ECHO_N "(cached) $ECHO_C" >&6
1672 cat >conftest.$ac_ext <<_ACEOF
1673 #line 1673 "configure"
1674 #include "confdefs.h"
1684 rm -f conftest.$ac_objext
1685 if { (eval echo "$as_me:1685: \"$ac_compile\"") >&5
1686 (eval $ac_compile) 2>&5
1688 echo "$as_me:1688: \$? = $ac_status" >&5
1689 (exit $ac_status); } &&
1690 { ac_try='test -s conftest.$ac_objext'
1691 { (eval echo "$as_me:1691: \"$ac_try\"") >&5
1694 echo "$as_me:1694: \$? = $ac_status" >&5
1695 (exit $ac_status); }; }; then
1698 echo "$as_me: failed program was:" >&5
1699 cat conftest.$ac_ext >&5
1702 rm -f conftest.$ac_objext conftest.$ac_ext
1704 echo "$as_me:1704: result: $ac_cv_prog_cc_g" >&5
1705 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1706 if test "$ac_test_CFLAGS" = set; then
1707 CFLAGS=$ac_save_CFLAGS
1708 elif test $ac_cv_prog_cc_g = yes; then
1709 if test "$GCC" = yes; then
1715 if test "$GCC" = yes; then
1721 # Some people use a C++ compiler to compile C. Since we use `exit',
1722 # in C++ we need to declare it. In case someone uses the same compiler
1723 # for both compiling C and C++ we need to have the C++ compiler decide
1724 # the declaration of exit, since it's the most demanding environment.
1725 cat >conftest.$ac_ext <<_ACEOF
1730 rm -f conftest.$ac_objext
1731 if { (eval echo "$as_me:1731: \"$ac_compile\"") >&5
1732 (eval $ac_compile) 2>&5
1734 echo "$as_me:1734: \$? = $ac_status" >&5
1735 (exit $ac_status); } &&
1736 { ac_try='test -s conftest.$ac_objext'
1737 { (eval echo "$as_me:1737: \"$ac_try\"") >&5
1740 echo "$as_me:1740: \$? = $ac_status" >&5
1741 (exit $ac_status); }; }; then
1742 for ac_declaration in \
1744 '#include <stdlib.h>' \
1745 'extern "C" void std::exit (int) throw (); using std::exit;' \
1746 'extern "C" void std::exit (int); using std::exit;' \
1747 'extern "C" void exit (int) throw ();' \
1748 'extern "C" void exit (int);' \
1751 cat >conftest.$ac_ext <<_ACEOF
1752 #line 1752 "configure"
1753 #include "confdefs.h"
1764 rm -f conftest.$ac_objext
1765 if { (eval echo "$as_me:1765: \"$ac_compile\"") >&5
1766 (eval $ac_compile) 2>&5
1768 echo "$as_me:1768: \$? = $ac_status" >&5
1769 (exit $ac_status); } &&
1770 { ac_try='test -s conftest.$ac_objext'
1771 { (eval echo "$as_me:1771: \"$ac_try\"") >&5
1774 echo "$as_me:1774: \$? = $ac_status" >&5
1775 (exit $ac_status); }; }; then
1778 echo "$as_me: failed program was:" >&5
1779 cat conftest.$ac_ext >&5
1782 rm -f conftest.$ac_objext conftest.$ac_ext
1783 cat >conftest.$ac_ext <<_ACEOF
1784 #line 1784 "configure"
1785 #include "confdefs.h"
1795 rm -f conftest.$ac_objext
1796 if { (eval echo "$as_me:1796: \"$ac_compile\"") >&5
1797 (eval $ac_compile) 2>&5
1799 echo "$as_me:1799: \$? = $ac_status" >&5
1800 (exit $ac_status); } &&
1801 { ac_try='test -s conftest.$ac_objext'
1802 { (eval echo "$as_me:1802: \"$ac_try\"") >&5
1805 echo "$as_me:1805: \$? = $ac_status" >&5
1806 (exit $ac_status); }; }; then
1809 echo "$as_me: failed program was:" >&5
1810 cat conftest.$ac_ext >&5
1812 rm -f conftest.$ac_objext conftest.$ac_ext
1815 if test -n "$ac_declaration"; then
1816 echo '#ifdef __cplusplus' >>confdefs.h
1817 echo $ac_declaration >>confdefs.h
1818 echo '#endif' >>confdefs.h
1822 echo "$as_me: failed program was:" >&5
1823 cat conftest.$ac_ext >&5
1825 rm -f conftest.$ac_objext conftest.$ac_ext
1827 ac_cpp='$CPP $CPPFLAGS'
1828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1831 ac_main_return=return
1834 if test "$GCC" = yes ; then
1835 echo "$as_me:1835: checking version of $CC" >&5
1836 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1837 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
1838 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1839 echo "$as_me:1839: result: $GCC_VERSION" >&5
1840 echo "${ECHO_T}$GCC_VERSION" >&6
1843 echo "$as_me:1843: checking for $CC option to accept ANSI C" >&5
1844 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1845 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1846 echo $ECHO_N "(cached) $ECHO_C" >&6
1848 ac_cv_prog_cc_stdc=no
1850 cat >conftest.$ac_ext <<_ACEOF
1851 #line 1851 "configure"
1852 #include "confdefs.h"
1855 #include <sys/types.h>
1856 #include <sys/stat.h>
1857 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1858 struct buf { int x; };
1859 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1860 static char *e (p, i)
1866 static char *f (char * (*g) (char **, int), char **p, ...)
1871 s = g (p, va_arg (v,int));
1875 int test (int i, double x);
1876 struct s1 {int (*f) (int a);};
1877 struct s2 {int (*f) (double a);};
1878 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1884 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1889 # Don't try gcc -ansi; that turns off useful extensions and
1890 # breaks some systems' header files.
1891 # AIX -qlanglvl=ansi
1892 # Ultrix and OSF/1 -std1
1893 # HP-UX 10.20 and later -Ae
1894 # HP-UX older versions -Aa -D_HPUX_SOURCE
1895 # SVR4 -Xc -D__EXTENSIONS__
1896 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1898 CC="$ac_save_CC $ac_arg"
1899 rm -f conftest.$ac_objext
1900 if { (eval echo "$as_me:1900: \"$ac_compile\"") >&5
1901 (eval $ac_compile) 2>&5
1903 echo "$as_me:1903: \$? = $ac_status" >&5
1904 (exit $ac_status); } &&
1905 { ac_try='test -s conftest.$ac_objext'
1906 { (eval echo "$as_me:1906: \"$ac_try\"") >&5
1909 echo "$as_me:1909: \$? = $ac_status" >&5
1910 (exit $ac_status); }; }; then
1911 ac_cv_prog_cc_stdc=$ac_arg
1914 echo "$as_me: failed program was:" >&5
1915 cat conftest.$ac_ext >&5
1917 rm -f conftest.$ac_objext
1919 rm -f conftest.$ac_ext conftest.$ac_objext
1924 case "x$ac_cv_prog_cc_stdc" in
1926 echo "$as_me:1926: result: none needed" >&5
1927 echo "${ECHO_T}none needed" >&6 ;;
1929 echo "$as_me:1929: result: $ac_cv_prog_cc_stdc" >&5
1930 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1931 CC="$CC $ac_cv_prog_cc_stdc" ;;
1934 # This should have been defined by AC_PROG_CC
1937 echo "$as_me:1937: checking \$CC variable" >&5
1938 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
1941 echo "$as_me:1941: result: broken" >&5
1942 echo "${ECHO_T}broken" >&6
1943 { echo "$as_me:1943: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
1944 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
1946 cf_flags=`echo "$CC" | sed -e 's/^.*[ ]\(-[^ ]\)/\1/'`
1947 CC=`echo "$CC " | sed -e 's/[ ]-[^ ].*$//' -e 's/[ ]*$//'`
1948 for cf_arg in $cf_flags
1956 cf_new_extra_cppflags=
1958 for cf_add_cflags in $cf_flags
1960 case $cf_fix_cppflags in
1962 case $cf_add_cflags in
1963 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
1964 case $cf_add_cflags in
1966 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
1968 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
1969 && test -z "${cf_tst_cflags}" \
1970 && cf_fix_cppflags=yes
1972 if test $cf_fix_cppflags = yes ; then
1973 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1975 elif test "${cf_tst_cflags}" = "\"'" ; then
1976 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
1985 case $cf_add_cflags in
1987 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
1989 CPPFLAGS=`echo "$CPPFLAGS" | \
1990 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
1991 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
1995 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2000 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2005 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2007 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2009 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2010 && test -z "${cf_tst_cflags}" \
2011 && cf_fix_cppflags=no
2016 if test -n "$cf_new_cflags" ; then
2018 CFLAGS="$CFLAGS $cf_new_cflags"
2021 if test -n "$cf_new_cppflags" ; then
2023 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2026 if test -n "$cf_new_extra_cppflags" ; then
2028 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2037 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2039 echo "${as_me:-configure}:2039: testing resulting CC: '$CC' ..." 1>&5
2041 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2043 echo "${as_me:-configure}:2043: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2045 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2047 echo "${as_me:-configure}:2047: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2051 echo "$as_me:2051: result: ok" >&5
2052 echo "${ECHO_T}ok" >&6
2057 ac_cpp='$CPP $CPPFLAGS'
2058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2061 ac_main_return=return
2062 echo "$as_me:2062: checking how to run the C preprocessor" >&5
2063 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2064 # On Suns, sometimes $CPP names a directory.
2065 if test -n "$CPP" && test -d "$CPP"; then
2068 if test -z "$CPP"; then
2069 if test "${ac_cv_prog_CPP+set}" = set; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 # Double quotes because CPP needs to be expanded
2073 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2076 for ac_c_preproc_warn_flag in '' yes
2078 # Use a header file that comes with gcc, so configuring glibc
2079 # with a fresh cross-compiler works.
2080 # On the NeXT, cc -E runs the code through the compiler's parser,
2081 # not just through cpp. "Syntax error" is here to catch this case.
2082 cat >conftest.$ac_ext <<_ACEOF
2083 #line 2083 "configure"
2084 #include "confdefs.h"
2088 if { (eval echo "$as_me:2088: \"$ac_cpp conftest.$ac_ext\"") >&5
2089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2091 egrep -v '^ *\+' conftest.er1 >conftest.err
2093 cat conftest.err >&5
2094 echo "$as_me:2094: \$? = $ac_status" >&5
2095 (exit $ac_status); } >/dev/null; then
2096 if test -s conftest.err; then
2097 ac_cpp_err=$ac_c_preproc_warn_flag
2104 if test -z "$ac_cpp_err"; then
2107 echo "$as_me: failed program was:" >&5
2108 cat conftest.$ac_ext >&5
2109 # Broken: fails on valid input.
2112 rm -f conftest.err conftest.$ac_ext
2114 # OK, works on sane cases. Now check whether non-existent headers
2115 # can be detected and how.
2116 cat >conftest.$ac_ext <<_ACEOF
2117 #line 2117 "configure"
2118 #include "confdefs.h"
2119 #include <ac_nonexistent.h>
2121 if { (eval echo "$as_me:2121: \"$ac_cpp conftest.$ac_ext\"") >&5
2122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2124 egrep -v '^ *\+' conftest.er1 >conftest.err
2126 cat conftest.err >&5
2127 echo "$as_me:2127: \$? = $ac_status" >&5
2128 (exit $ac_status); } >/dev/null; then
2129 if test -s conftest.err; then
2130 ac_cpp_err=$ac_c_preproc_warn_flag
2137 if test -z "$ac_cpp_err"; then
2138 # Broken: success on invalid input.
2141 echo "$as_me: failed program was:" >&5
2142 cat conftest.$ac_ext >&5
2143 # Passes both tests.
2147 rm -f conftest.err conftest.$ac_ext
2150 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2151 rm -f conftest.err conftest.$ac_ext
2152 if $ac_preproc_ok; then
2164 echo "$as_me:2164: result: $CPP" >&5
2165 echo "${ECHO_T}$CPP" >&6
2167 for ac_c_preproc_warn_flag in '' yes
2169 # Use a header file that comes with gcc, so configuring glibc
2170 # with a fresh cross-compiler works.
2171 # On the NeXT, cc -E runs the code through the compiler's parser,
2172 # not just through cpp. "Syntax error" is here to catch this case.
2173 cat >conftest.$ac_ext <<_ACEOF
2174 #line 2174 "configure"
2175 #include "confdefs.h"
2179 if { (eval echo "$as_me:2179: \"$ac_cpp conftest.$ac_ext\"") >&5
2180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2182 egrep -v '^ *\+' conftest.er1 >conftest.err
2184 cat conftest.err >&5
2185 echo "$as_me:2185: \$? = $ac_status" >&5
2186 (exit $ac_status); } >/dev/null; then
2187 if test -s conftest.err; then
2188 ac_cpp_err=$ac_c_preproc_warn_flag
2195 if test -z "$ac_cpp_err"; then
2198 echo "$as_me: failed program was:" >&5
2199 cat conftest.$ac_ext >&5
2200 # Broken: fails on valid input.
2203 rm -f conftest.err conftest.$ac_ext
2205 # OK, works on sane cases. Now check whether non-existent headers
2206 # can be detected and how.
2207 cat >conftest.$ac_ext <<_ACEOF
2208 #line 2208 "configure"
2209 #include "confdefs.h"
2210 #include <ac_nonexistent.h>
2212 if { (eval echo "$as_me:2212: \"$ac_cpp conftest.$ac_ext\"") >&5
2213 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2215 egrep -v '^ *\+' conftest.er1 >conftest.err
2217 cat conftest.err >&5
2218 echo "$as_me:2218: \$? = $ac_status" >&5
2219 (exit $ac_status); } >/dev/null; then
2220 if test -s conftest.err; then
2221 ac_cpp_err=$ac_c_preproc_warn_flag
2228 if test -z "$ac_cpp_err"; then
2229 # Broken: success on invalid input.
2232 echo "$as_me: failed program was:" >&5
2233 cat conftest.$ac_ext >&5
2234 # Passes both tests.
2238 rm -f conftest.err conftest.$ac_ext
2241 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2242 rm -f conftest.err conftest.$ac_ext
2243 if $ac_preproc_ok; then
2246 { { echo "$as_me:2246: error: C preprocessor \"$CPP\" fails sanity check" >&5
2247 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2248 { (exit 1); exit 1; }; }
2252 ac_cpp='$CPP $CPPFLAGS'
2253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2256 ac_main_return=return
2258 for ac_prog in mawk gawk nawk awk
2260 # Extract the first word of "$ac_prog", so it can be a program name with args.
2261 set dummy $ac_prog; ac_word=$2
2262 echo "$as_me:2262: checking for $ac_word" >&5
2263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2264 if test "${ac_cv_prog_AWK+set}" = set; then
2265 echo $ECHO_N "(cached) $ECHO_C" >&6
2267 if test -n "$AWK"; then
2268 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2270 ac_save_IFS=$IFS; IFS=$ac_path_separator
2272 for ac_dir in $ac_dummy; do
2274 test -z "$ac_dir" && ac_dir=.
2275 $as_executable_p "$ac_dir/$ac_word" || continue
2276 ac_cv_prog_AWK="$ac_prog"
2277 echo "$as_me:2277: found $ac_dir/$ac_word" >&5
2284 if test -n "$AWK"; then
2285 echo "$as_me:2285: result: $AWK" >&5
2286 echo "${ECHO_T}$AWK" >&6
2288 echo "$as_me:2288: result: no" >&5
2289 echo "${ECHO_T}no" >&6
2292 test -n "$AWK" && break
2295 # Find a good install program. We prefer a C program (faster),
2296 # so one script is as good as another. But avoid the broken or
2297 # incompatible versions:
2298 # SysV /etc/install, /usr/sbin/install
2299 # SunOS /usr/etc/install
2300 # IRIX /sbin/install
2302 # AmigaOS /C/install, which installs bootblocks on floppy discs
2303 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2304 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2305 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2306 # ./install, which can be erroneously created by make from ./install.sh.
2307 echo "$as_me:2307: checking for a BSD compatible install" >&5
2308 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2309 if test -z "$INSTALL"; then
2310 if test "${ac_cv_path_install+set}" = set; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
2313 ac_save_IFS=$IFS; IFS=$ac_path_separator
2314 for ac_dir in $PATH; do
2316 # Account for people who put trailing slashes in PATH elements.
2318 / | ./ | .// | /cC/* \
2319 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2322 # OSF1 and SCO ODT 3.0 have their own names for install.
2323 # Don't use installbsd from OSF since it installs stuff as root
2325 for ac_prog in ginstall scoinst install; do
2326 if $as_executable_p "$ac_dir/$ac_prog"; then
2327 if test $ac_prog = install &&
2328 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2329 # AIX install. It has an incompatible calling convention.
2331 elif test $ac_prog = install &&
2332 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2333 # program-specific install script used by HP pwplus--don't use.
2336 ac_cv_path_install="$ac_dir/$ac_prog -c"
2346 if test "${ac_cv_path_install+set}" = set; then
2347 INSTALL=$ac_cv_path_install
2349 # As a last resort, use the slow shell script. We don't cache a
2350 # path for INSTALL within a source directory, because that will
2351 # break other packages using the cache if that directory is
2352 # removed, or if the path is relative.
2353 INSTALL=$ac_install_sh
2356 echo "$as_me:2356: result: $INSTALL" >&5
2357 echo "${ECHO_T}$INSTALL" >&6
2359 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2360 # It thinks the first close brace ends the variable substitution.
2361 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2363 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2365 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2371 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
2372 test -z "$cf_dir" && cf_dir=.
2373 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
2377 for ac_prog in lint cppcheck splint
2379 # Extract the first word of "$ac_prog", so it can be a program name with args.
2380 set dummy $ac_prog; ac_word=$2
2381 echo "$as_me:2381: checking for $ac_word" >&5
2382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2383 if test "${ac_cv_prog_LINT+set}" = set; then
2384 echo $ECHO_N "(cached) $ECHO_C" >&6
2386 if test -n "$LINT"; then
2387 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2389 ac_save_IFS=$IFS; IFS=$ac_path_separator
2391 for ac_dir in $ac_dummy; do
2393 test -z "$ac_dir" && ac_dir=.
2394 $as_executable_p "$ac_dir/$ac_word" || continue
2395 ac_cv_prog_LINT="$ac_prog"
2396 echo "$as_me:2396: found $ac_dir/$ac_word" >&5
2402 LINT=$ac_cv_prog_LINT
2403 if test -n "$LINT"; then
2404 echo "$as_me:2404: result: $LINT" >&5
2405 echo "${ECHO_T}$LINT" >&6
2407 echo "$as_me:2407: result: no" >&5
2408 echo "${ECHO_T}no" >&6
2411 test -n "$LINT" && break
2414 echo "$as_me:2414: checking if filesystem supports mixed-case filenames" >&5
2415 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2416 if test "${cf_cv_mixedcase+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2420 if test "$cross_compiling" = yes ; then
2421 case $target_alias in
2422 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
2430 rm -f conftest CONFTEST
2432 if test -f CONFTEST ; then
2437 rm -f conftest CONFTEST
2441 echo "$as_me:2441: result: $cf_cv_mixedcase" >&5
2442 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2443 test "$cf_cv_mixedcase" = yes &&
2444 cat >>confdefs.h <<\EOF
2445 #define MIXEDCASE_FILENAMES 1
2448 for ac_prog in exctags ctags
2450 # Extract the first word of "$ac_prog", so it can be a program name with args.
2451 set dummy $ac_prog; ac_word=$2
2452 echo "$as_me:2452: checking for $ac_word" >&5
2453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2454 if test "${ac_cv_prog_CTAGS+set}" = set; then
2455 echo $ECHO_N "(cached) $ECHO_C" >&6
2457 if test -n "$CTAGS"; then
2458 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2460 ac_save_IFS=$IFS; IFS=$ac_path_separator
2462 for ac_dir in $ac_dummy; do
2464 test -z "$ac_dir" && ac_dir=.
2465 $as_executable_p "$ac_dir/$ac_word" || continue
2466 ac_cv_prog_CTAGS="$ac_prog"
2467 echo "$as_me:2467: found $ac_dir/$ac_word" >&5
2473 CTAGS=$ac_cv_prog_CTAGS
2474 if test -n "$CTAGS"; then
2475 echo "$as_me:2475: result: $CTAGS" >&5
2476 echo "${ECHO_T}$CTAGS" >&6
2478 echo "$as_me:2478: result: no" >&5
2479 echo "${ECHO_T}no" >&6
2482 test -n "$CTAGS" && break
2485 for ac_prog in exetags etags
2487 # Extract the first word of "$ac_prog", so it can be a program name with args.
2488 set dummy $ac_prog; ac_word=$2
2489 echo "$as_me:2489: checking for $ac_word" >&5
2490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2491 if test "${ac_cv_prog_ETAGS+set}" = set; then
2492 echo $ECHO_N "(cached) $ECHO_C" >&6
2494 if test -n "$ETAGS"; then
2495 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2497 ac_save_IFS=$IFS; IFS=$ac_path_separator
2499 for ac_dir in $ac_dummy; do
2501 test -z "$ac_dir" && ac_dir=.
2502 $as_executable_p "$ac_dir/$ac_word" || continue
2503 ac_cv_prog_ETAGS="$ac_prog"
2504 echo "$as_me:2504: found $ac_dir/$ac_word" >&5
2510 ETAGS=$ac_cv_prog_ETAGS
2511 if test -n "$ETAGS"; then
2512 echo "$as_me:2512: result: $ETAGS" >&5
2513 echo "${ECHO_T}$ETAGS" >&6
2515 echo "$as_me:2515: result: no" >&5
2516 echo "${ECHO_T}no" >&6
2519 test -n "$ETAGS" && break
2522 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2523 set dummy ${CTAGS:-ctags}; ac_word=$2
2524 echo "$as_me:2524: checking for $ac_word" >&5
2525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2526 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2527 echo $ECHO_N "(cached) $ECHO_C" >&6
2529 if test -n "$MAKE_LOWER_TAGS"; then
2530 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2532 ac_save_IFS=$IFS; IFS=$ac_path_separator
2534 for ac_dir in $ac_dummy; do
2536 test -z "$ac_dir" && ac_dir=.
2537 $as_executable_p "$ac_dir/$ac_word" || continue
2538 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2539 echo "$as_me:2539: found $ac_dir/$ac_word" >&5
2543 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2546 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2547 if test -n "$MAKE_LOWER_TAGS"; then
2548 echo "$as_me:2548: result: $MAKE_LOWER_TAGS" >&5
2549 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2551 echo "$as_me:2551: result: no" >&5
2552 echo "${ECHO_T}no" >&6
2555 if test "$cf_cv_mixedcase" = yes ; then
2556 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2557 set dummy ${ETAGS:-etags}; ac_word=$2
2558 echo "$as_me:2558: checking for $ac_word" >&5
2559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2560 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2561 echo $ECHO_N "(cached) $ECHO_C" >&6
2563 if test -n "$MAKE_UPPER_TAGS"; then
2564 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2566 ac_save_IFS=$IFS; IFS=$ac_path_separator
2568 for ac_dir in $ac_dummy; do
2570 test -z "$ac_dir" && ac_dir=.
2571 $as_executable_p "$ac_dir/$ac_word" || continue
2572 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2573 echo "$as_me:2573: found $ac_dir/$ac_word" >&5
2577 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2580 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2581 if test -n "$MAKE_UPPER_TAGS"; then
2582 echo "$as_me:2582: result: $MAKE_UPPER_TAGS" >&5
2583 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2585 echo "$as_me:2585: result: no" >&5
2586 echo "${ECHO_T}no" >&6
2593 if test "$MAKE_UPPER_TAGS" = yes ; then
2599 if test "$MAKE_LOWER_TAGS" = yes ; then
2605 echo "$as_me:2605: checking if -lm needed for math functions" >&5
2606 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
2607 if test "${cf_cv_need_libm+set}" = set; then
2608 echo $ECHO_N "(cached) $ECHO_C" >&6
2611 cat >conftest.$ac_ext <<_ACEOF
2612 #line 2612 "configure"
2613 #include "confdefs.h"
2621 double x = rand(); printf("result = %g\n", pow(sin(x),x))
2626 rm -f conftest.$ac_objext conftest$ac_exeext
2627 if { (eval echo "$as_me:2627: \"$ac_link\"") >&5
2628 (eval $ac_link) 2>&5
2630 echo "$as_me:2630: \$? = $ac_status" >&5
2631 (exit $ac_status); } &&
2632 { ac_try='test -s conftest$ac_exeext'
2633 { (eval echo "$as_me:2633: \"$ac_try\"") >&5
2636 echo "$as_me:2636: \$? = $ac_status" >&5
2637 (exit $ac_status); }; }; then
2640 echo "$as_me: failed program was:" >&5
2641 cat conftest.$ac_ext >&5
2644 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2646 echo "$as_me:2646: result: $cf_cv_need_libm" >&5
2647 echo "${ECHO_T}$cf_cv_need_libm" >&6
2648 if test "$cf_cv_need_libm" = yes
2656 CC_SHARED_OPTS=unknown
2657 CPPFLAGS="$CPPFLAGS"
2659 DFT_OBJ_SUBDIR=`pwd|sed -e's:.*/::'`
2660 DFT_UPR_MODEL="NORMAL"
2673 PACKAGE="ncurses-examples"
2679 TINFO_LIBS='$(LIBS_CURSES)'
2680 cf_cv_abi_version=""
2681 cf_cv_rel_version=""
2687 if test "$GCC" = yes
2689 cat > conftest.i <<EOF
2691 #define GCC_PRINTF 0
2696 #ifndef GCC_NORETURN
2697 #define GCC_NORETURN /* nothing */
2700 #define GCC_UNUSED /* nothing */
2703 if test "$GCC" = yes
2705 { echo "$as_me:2705: checking for $CC __attribute__ directives..." >&5
2706 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
2707 cat > conftest.$ac_ext <<EOF
2708 #line 2708 "${as_me:-configure}"
2709 #include "confdefs.h"
2710 #include "conftest.h"
2711 #include "conftest.i"
2713 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
2715 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
2718 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
2720 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
2722 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
2723 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
2724 extern void foo(void) GCC_NORETURN;
2725 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
2727 cf_printf_attribute=no
2728 cf_scanf_attribute=no
2729 for cf_attribute in scanf printf unused noreturn
2732 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
2734 cf_directive="__attribute__(($cf_attribute))"
2735 echo "checking for $CC $cf_directive" 1>&5
2737 case $cf_attribute in
2739 cf_printf_attribute=yes
2740 cat >conftest.h <<EOF
2741 #define GCC_$cf_ATTRIBUTE 1
2745 cf_scanf_attribute=yes
2746 cat >conftest.h <<EOF
2747 #define GCC_$cf_ATTRIBUTE 1
2751 cat >conftest.h <<EOF
2752 #define GCC_$cf_ATTRIBUTE $cf_directive
2757 if { (eval echo "$as_me:2757: \"$ac_compile\"") >&5
2758 (eval $ac_compile) 2>&5
2760 echo "$as_me:2760: \$? = $ac_status" >&5
2761 (exit $ac_status); }; then
2762 test -n "$verbose" && echo "$as_me:2762: result: ... $cf_attribute" >&5
2763 echo "${ECHO_T}... $cf_attribute" >&6
2764 cat conftest.h >>confdefs.h
2765 case $cf_attribute in
2768 cat >>confdefs.h <<EOF
2769 #define GCC_NORETURN $cf_directive
2774 cf_value='/* nothing */'
2775 if test "$cf_printf_attribute" != no ; then
2776 cf_value='__attribute__((format(printf,fmt,var)))'
2778 cat >>confdefs.h <<\EOF
2779 #define GCC_PRINTF 1
2784 cat >>confdefs.h <<EOF
2785 #define GCC_PRINTFLIKE(fmt,var) $cf_value
2790 cf_value='/* nothing */'
2791 if test "$cf_scanf_attribute" != no ; then
2792 cf_value='__attribute__((format(scanf,fmt,var)))'
2794 cat >>confdefs.h <<\EOF
2800 cat >>confdefs.h <<EOF
2801 #define GCC_SCANFLIKE(fmt,var) $cf_value
2807 cat >>confdefs.h <<EOF
2808 #define GCC_UNUSED $cf_directive
2816 fgrep define conftest.i >>confdefs.h
2821 echo "$as_me:2821: checking if you want to work around bogus compiler/loader warnings" >&5
2822 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
2824 # Check whether --enable-string-hacks or --disable-string-hacks was given.
2825 if test "${enable_string_hacks+set}" = set; then
2826 enableval="$enable_string_hacks"
2827 with_string_hacks=$enableval
2829 with_string_hacks=no
2831 echo "$as_me:2831: result: $with_string_hacks" >&5
2832 echo "${ECHO_T}$with_string_hacks" >&6
2834 if test "x$with_string_hacks" = "xyes"; then
2836 cat >>confdefs.h <<\EOF
2837 #define USE_STRING_HACKS 1
2840 { echo "$as_me:2840: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
2841 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
2842 echo "$as_me:2842: checking for strlcat" >&5
2843 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
2844 if test "${ac_cv_func_strlcat+set}" = set; then
2845 echo $ECHO_N "(cached) $ECHO_C" >&6
2847 cat >conftest.$ac_ext <<_ACEOF
2848 #line 2848 "configure"
2849 #include "confdefs.h"
2850 /* System header to define __stub macros and hopefully few prototypes,
2851 which can conflict with char strlcat (); below. */
2853 /* Override any gcc2 internal prototype to avoid an error. */
2857 /* We use char because int might match the return type of a gcc2
2858 builtin and then its argument prototype would still apply. */
2865 /* The GNU C library defines this for functions which it implements
2866 to always fail with ENOSYS. Some functions are actually named
2867 something starting with __ and the normal name is an alias. */
2868 #if defined (__stub_strlcat) || defined (__stub___strlcat)
2871 f = strlcat; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
2878 rm -f conftest.$ac_objext conftest$ac_exeext
2879 if { (eval echo "$as_me:2879: \"$ac_link\"") >&5
2880 (eval $ac_link) 2>&5
2882 echo "$as_me:2882: \$? = $ac_status" >&5
2883 (exit $ac_status); } &&
2884 { ac_try='test -s conftest$ac_exeext'
2885 { (eval echo "$as_me:2885: \"$ac_try\"") >&5
2888 echo "$as_me:2888: \$? = $ac_status" >&5
2889 (exit $ac_status); }; }; then
2890 ac_cv_func_strlcat=yes
2892 echo "$as_me: failed program was:" >&5
2893 cat conftest.$ac_ext >&5
2894 ac_cv_func_strlcat=no
2896 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2898 echo "$as_me:2898: result: $ac_cv_func_strlcat" >&5
2899 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
2900 if test $ac_cv_func_strlcat = yes; then
2902 cat >>confdefs.h <<\EOF
2903 #define HAVE_STRLCAT 1
2908 echo "$as_me:2908: checking for strlcat in -lbsd" >&5
2909 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
2910 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
2913 ac_check_lib_save_LIBS=$LIBS
2915 cat >conftest.$ac_ext <<_ACEOF
2916 #line 2916 "configure"
2917 #include "confdefs.h"
2919 /* Override any gcc2 internal prototype to avoid an error. */
2923 /* We use char because int might match the return type of a gcc2
2924 builtin and then its argument prototype would still apply. */
2934 rm -f conftest.$ac_objext conftest$ac_exeext
2935 if { (eval echo "$as_me:2935: \"$ac_link\"") >&5
2936 (eval $ac_link) 2>&5
2938 echo "$as_me:2938: \$? = $ac_status" >&5
2939 (exit $ac_status); } &&
2940 { ac_try='test -s conftest$ac_exeext'
2941 { (eval echo "$as_me:2941: \"$ac_try\"") >&5
2944 echo "$as_me:2944: \$? = $ac_status" >&5
2945 (exit $ac_status); }; }; then
2946 ac_cv_lib_bsd_strlcat=yes
2948 echo "$as_me: failed program was:" >&5
2949 cat conftest.$ac_ext >&5
2950 ac_cv_lib_bsd_strlcat=no
2952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2953 LIBS=$ac_check_lib_save_LIBS
2955 echo "$as_me:2955: result: $ac_cv_lib_bsd_strlcat" >&5
2956 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
2957 if test $ac_cv_lib_bsd_strlcat = yes; then
2960 # Filter out duplicates - this happens with badly-designed ".pc" files...
2961 for cf_add_1lib in $LIBS
2963 for cf_add_2lib in $cf_add_libs
2965 if test "x$cf_add_1lib" = "x$cf_add_2lib"
2971 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
2975 for ac_header in bsd/string.h
2977 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2978 echo "$as_me:2978: checking for $ac_header" >&5
2979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2981 echo $ECHO_N "(cached) $ECHO_C" >&6
2983 cat >conftest.$ac_ext <<_ACEOF
2984 #line 2984 "configure"
2985 #include "confdefs.h"
2986 #include <$ac_header>
2988 if { (eval echo "$as_me:2988: \"$ac_cpp conftest.$ac_ext\"") >&5
2989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2991 egrep -v '^ *\+' conftest.er1 >conftest.err
2993 cat conftest.err >&5
2994 echo "$as_me:2994: \$? = $ac_status" >&5
2995 (exit $ac_status); } >/dev/null; then
2996 if test -s conftest.err; then
2997 ac_cpp_err=$ac_c_preproc_warn_flag
3004 if test -z "$ac_cpp_err"; then
3005 eval "$as_ac_Header=yes"
3007 echo "$as_me: failed program was:" >&5
3008 cat conftest.$ac_ext >&5
3009 eval "$as_ac_Header=no"
3011 rm -f conftest.err conftest.$ac_ext
3013 echo "$as_me:3013: result: `eval echo '${'$as_ac_Header'}'`" >&5
3014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3016 cat >>confdefs.h <<EOF
3017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3023 cat >>confdefs.h <<\EOF
3024 #define HAVE_STRLCAT 1
3031 for ac_func in strlcpy snprintf
3033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3034 echo "$as_me:3034: checking for $ac_func" >&5
3035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3036 if eval "test \"\${$as_ac_var+set}\" = set"; then
3037 echo $ECHO_N "(cached) $ECHO_C" >&6
3039 cat >conftest.$ac_ext <<_ACEOF
3040 #line 3040 "configure"
3041 #include "confdefs.h"
3042 /* System header to define __stub macros and hopefully few prototypes,
3043 which can conflict with char $ac_func (); below. */
3045 /* Override any gcc2 internal prototype to avoid an error. */
3049 /* We use char because int might match the return type of a gcc2
3050 builtin and then its argument prototype would still apply. */
3057 /* The GNU C library defines this for functions which it implements
3058 to always fail with ENOSYS. Some functions are actually named
3059 something starting with __ and the normal name is an alias. */
3060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3063 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
3070 rm -f conftest.$ac_objext conftest$ac_exeext
3071 if { (eval echo "$as_me:3071: \"$ac_link\"") >&5
3072 (eval $ac_link) 2>&5
3074 echo "$as_me:3074: \$? = $ac_status" >&5
3075 (exit $ac_status); } &&
3076 { ac_try='test -s conftest$ac_exeext'
3077 { (eval echo "$as_me:3077: \"$ac_try\"") >&5
3080 echo "$as_me:3080: \$? = $ac_status" >&5
3081 (exit $ac_status); }; }; then
3082 eval "$as_ac_var=yes"
3084 echo "$as_me: failed program was:" >&5
3085 cat conftest.$ac_ext >&5
3086 eval "$as_ac_var=no"
3088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3090 echo "$as_me:3090: result: `eval echo '${'$as_ac_var'}'`" >&5
3091 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3092 if test `eval echo '${'$as_ac_var'}'` = yes; then
3093 cat >>confdefs.h <<EOF
3094 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3103 cf_POSIX_C_SOURCE=199506L
3108 cf_xopen_source="-D_ALL_SOURCE"
3114 cf_xopen_source="-D_APPLE_C_SOURCE"
3117 cf_xopen_source="-D_DARWIN_C_SOURCE"
3120 (freebsd*|dragonfly*)
3121 # 5.x headers associate
3122 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
3123 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
3124 cf_POSIX_C_SOURCE=200112L
3126 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3129 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
3132 cf_xopen_source="-D_HPUX_SOURCE"
3135 cf_xopen_source="-D_SGI_SOURCE"
3138 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
3140 echo "$as_me:3140: checking if we must define _GNU_SOURCE" >&5
3141 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
3142 if test "${cf_cv_gnu_source+set}" = set; then
3143 echo $ECHO_N "(cached) $ECHO_C" >&6
3146 cat >conftest.$ac_ext <<_ACEOF
3147 #line 3147 "configure"
3148 #include "confdefs.h"
3149 #include <sys/types.h>
3154 #ifndef _XOPEN_SOURCE
3161 rm -f conftest.$ac_objext
3162 if { (eval echo "$as_me:3162: \"$ac_compile\"") >&5
3163 (eval $ac_compile) 2>&5
3165 echo "$as_me:3165: \$? = $ac_status" >&5
3166 (exit $ac_status); } &&
3167 { ac_try='test -s conftest.$ac_objext'
3168 { (eval echo "$as_me:3168: \"$ac_try\"") >&5
3171 echo "$as_me:3171: \$? = $ac_status" >&5
3172 (exit $ac_status); }; }; then
3175 echo "$as_me: failed program was:" >&5
3176 cat conftest.$ac_ext >&5
3178 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
3179 cat >conftest.$ac_ext <<_ACEOF
3180 #line 3180 "configure"
3181 #include "confdefs.h"
3182 #include <sys/types.h>
3187 #ifdef _XOPEN_SOURCE
3194 rm -f conftest.$ac_objext
3195 if { (eval echo "$as_me:3195: \"$ac_compile\"") >&5
3196 (eval $ac_compile) 2>&5
3198 echo "$as_me:3198: \$? = $ac_status" >&5
3199 (exit $ac_status); } &&
3200 { ac_try='test -s conftest.$ac_objext'
3201 { (eval echo "$as_me:3201: \"$ac_try\"") >&5
3204 echo "$as_me:3204: \$? = $ac_status" >&5
3205 (exit $ac_status); }; }; then
3208 echo "$as_me: failed program was:" >&5
3209 cat conftest.$ac_ext >&5
3210 cf_cv_gnu_source=yes
3212 rm -f conftest.$ac_objext conftest.$ac_ext
3216 rm -f conftest.$ac_objext conftest.$ac_ext
3219 echo "$as_me:3219: result: $cf_cv_gnu_source" >&5
3220 echo "${ECHO_T}$cf_cv_gnu_source" >&6
3222 if test "$cf_cv_gnu_source" = yes
3224 echo "$as_me:3224: checking if we should also define _DEFAULT_SOURCE" >&5
3225 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
3226 if test "${cf_cv_default_source+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3230 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
3231 cat >conftest.$ac_ext <<_ACEOF
3232 #line 3232 "configure"
3233 #include "confdefs.h"
3234 #include <sys/types.h>
3239 #ifdef _DEFAULT_SOURCE
3246 rm -f conftest.$ac_objext
3247 if { (eval echo "$as_me:3247: \"$ac_compile\"") >&5
3248 (eval $ac_compile) 2>&5
3250 echo "$as_me:3250: \$? = $ac_status" >&5
3251 (exit $ac_status); } &&
3252 { ac_try='test -s conftest.$ac_objext'
3253 { (eval echo "$as_me:3253: \"$ac_try\"") >&5
3256 echo "$as_me:3256: \$? = $ac_status" >&5
3257 (exit $ac_status); }; }; then
3258 cf_cv_default_source=no
3260 echo "$as_me: failed program was:" >&5
3261 cat conftest.$ac_ext >&5
3262 cf_cv_default_source=yes
3264 rm -f conftest.$ac_objext conftest.$ac_ext
3267 echo "$as_me:3267: result: $cf_cv_default_source" >&5
3268 echo "${ECHO_T}$cf_cv_default_source" >&6
3269 test "$cf_cv_default_source" = yes && CPPFLAGS="$CPPFLAGS -D_DEFAULT_SOURCE"
3274 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
3277 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
3280 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3282 cf_save_CFLAGS="$CFLAGS"
3283 cf_save_CPPFLAGS="$CPPFLAGS"
3285 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3286 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3287 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3289 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3290 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3291 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3293 echo "$as_me:3293: checking if we should define _POSIX_C_SOURCE" >&5
3294 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3295 if test "${cf_cv_posix_c_source+set}" = set; then
3296 echo $ECHO_N "(cached) $ECHO_C" >&6
3299 echo "${as_me:-configure}:3299: testing if the symbol is already defined go no further ..." 1>&5
3301 cat >conftest.$ac_ext <<_ACEOF
3302 #line 3302 "configure"
3303 #include "confdefs.h"
3304 #include <sys/types.h>
3309 #ifndef _POSIX_C_SOURCE
3316 rm -f conftest.$ac_objext
3317 if { (eval echo "$as_me:3317: \"$ac_compile\"") >&5
3318 (eval $ac_compile) 2>&5
3320 echo "$as_me:3320: \$? = $ac_status" >&5
3321 (exit $ac_status); } &&
3322 { ac_try='test -s conftest.$ac_objext'
3323 { (eval echo "$as_me:3323: \"$ac_try\"") >&5
3326 echo "$as_me:3326: \$? = $ac_status" >&5
3327 (exit $ac_status); }; }; then
3328 cf_cv_posix_c_source=no
3330 echo "$as_me: failed program was:" >&5
3331 cat conftest.$ac_ext >&5
3332 cf_want_posix_source=no
3333 case .$cf_POSIX_C_SOURCE in
3335 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3338 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3339 cf_want_posix_source=yes
3342 cf_want_posix_source=yes
3345 if test "$cf_want_posix_source" = yes ; then
3346 cat >conftest.$ac_ext <<_ACEOF
3347 #line 3347 "configure"
3348 #include "confdefs.h"
3349 #include <sys/types.h>
3354 #ifdef _POSIX_SOURCE
3361 rm -f conftest.$ac_objext
3362 if { (eval echo "$as_me:3362: \"$ac_compile\"") >&5
3363 (eval $ac_compile) 2>&5
3365 echo "$as_me:3365: \$? = $ac_status" >&5
3366 (exit $ac_status); } &&
3367 { ac_try='test -s conftest.$ac_objext'
3368 { (eval echo "$as_me:3368: \"$ac_try\"") >&5
3371 echo "$as_me:3371: \$? = $ac_status" >&5
3372 (exit $ac_status); }; }; then
3375 echo "$as_me: failed program was:" >&5
3376 cat conftest.$ac_ext >&5
3377 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3379 rm -f conftest.$ac_objext conftest.$ac_ext
3382 echo "${as_me:-configure}:3382: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3384 CFLAGS="$cf_trim_CFLAGS"
3385 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3387 echo "${as_me:-configure}:3387: testing if the second compile does not leave our definition intact error ..." 1>&5
3389 cat >conftest.$ac_ext <<_ACEOF
3390 #line 3390 "configure"
3391 #include "confdefs.h"
3392 #include <sys/types.h>
3397 #ifndef _POSIX_C_SOURCE
3404 rm -f conftest.$ac_objext
3405 if { (eval echo "$as_me:3405: \"$ac_compile\"") >&5
3406 (eval $ac_compile) 2>&5
3408 echo "$as_me:3408: \$? = $ac_status" >&5
3409 (exit $ac_status); } &&
3410 { ac_try='test -s conftest.$ac_objext'
3411 { (eval echo "$as_me:3411: \"$ac_try\"") >&5
3414 echo "$as_me:3414: \$? = $ac_status" >&5
3415 (exit $ac_status); }; }; then
3418 echo "$as_me: failed program was:" >&5
3419 cat conftest.$ac_ext >&5
3420 cf_cv_posix_c_source=no
3422 rm -f conftest.$ac_objext conftest.$ac_ext
3423 CFLAGS="$cf_save_CFLAGS"
3424 CPPFLAGS="$cf_save_CPPFLAGS"
3427 rm -f conftest.$ac_objext conftest.$ac_ext
3430 echo "$as_me:3430: result: $cf_cv_posix_c_source" >&5
3431 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3433 if test "$cf_cv_posix_c_source" != no ; then
3434 CFLAGS="$cf_trim_CFLAGS"
3435 CPPFLAGS="$cf_trim_CPPFLAGS"
3440 cf_new_extra_cppflags=
3442 for cf_add_cflags in $cf_cv_posix_c_source
3444 case $cf_fix_cppflags in
3446 case $cf_add_cflags in
3447 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3448 case $cf_add_cflags in
3450 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3452 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3453 && test -z "${cf_tst_cflags}" \
3454 && cf_fix_cppflags=yes
3456 if test $cf_fix_cppflags = yes ; then
3457 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3459 elif test "${cf_tst_cflags}" = "\"'" ; then
3460 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3469 case $cf_add_cflags in
3471 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3473 CPPFLAGS=`echo "$CPPFLAGS" | \
3474 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3475 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3479 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3484 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3489 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3491 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3493 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3494 && test -z "${cf_tst_cflags}" \
3495 && cf_fix_cppflags=no
3500 if test -n "$cf_new_cflags" ; then
3502 CFLAGS="$CFLAGS $cf_new_cflags"
3505 if test -n "$cf_new_cppflags" ; then
3507 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3510 if test -n "$cf_new_extra_cppflags" ; then
3512 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3519 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
3522 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
3523 cf_xopen_source="-D_BSD_SOURCE"
3527 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
3530 cf_xopen_source="-D_OSF_SOURCE"
3533 cf_xopen_source="-D_QNX_SOURCE"
3536 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
3539 cf_xopen_source="-D__EXTENSIONS__"
3540 cf_cv_xopen_source=broken
3542 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
3548 echo "$as_me:3548: checking if we should define _XOPEN_SOURCE" >&5
3549 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3550 if test "${cf_cv_xopen_source+set}" = set; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
3554 cat >conftest.$ac_ext <<_ACEOF
3555 #line 3555 "configure"
3556 #include "confdefs.h"
3560 #include <sys/types.h>
3566 #ifndef _XOPEN_SOURCE
3573 rm -f conftest.$ac_objext
3574 if { (eval echo "$as_me:3574: \"$ac_compile\"") >&5
3575 (eval $ac_compile) 2>&5
3577 echo "$as_me:3577: \$? = $ac_status" >&5
3578 (exit $ac_status); } &&
3579 { ac_try='test -s conftest.$ac_objext'
3580 { (eval echo "$as_me:3580: \"$ac_try\"") >&5
3583 echo "$as_me:3583: \$? = $ac_status" >&5
3584 (exit $ac_status); }; }; then
3585 cf_cv_xopen_source=no
3587 echo "$as_me: failed program was:" >&5
3588 cat conftest.$ac_ext >&5
3590 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3591 cat >conftest.$ac_ext <<_ACEOF
3592 #line 3592 "configure"
3593 #include "confdefs.h"
3597 #include <sys/types.h>
3603 #ifdef _XOPEN_SOURCE
3610 rm -f conftest.$ac_objext
3611 if { (eval echo "$as_me:3611: \"$ac_compile\"") >&5
3612 (eval $ac_compile) 2>&5
3614 echo "$as_me:3614: \$? = $ac_status" >&5
3615 (exit $ac_status); } &&
3616 { ac_try='test -s conftest.$ac_objext'
3617 { (eval echo "$as_me:3617: \"$ac_try\"") >&5
3620 echo "$as_me:3620: \$? = $ac_status" >&5
3621 (exit $ac_status); }; }; then
3622 cf_cv_xopen_source=no
3624 echo "$as_me: failed program was:" >&5
3625 cat conftest.$ac_ext >&5
3626 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3628 rm -f conftest.$ac_objext conftest.$ac_ext
3632 rm -f conftest.$ac_objext conftest.$ac_ext
3635 echo "$as_me:3635: result: $cf_cv_xopen_source" >&5
3636 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3638 if test "$cf_cv_xopen_source" != no ; then
3640 CFLAGS=`echo "$CFLAGS" | \
3641 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3642 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3644 CPPFLAGS=`echo "$CPPFLAGS" | \
3645 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3646 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3648 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
3653 cf_new_extra_cppflags=
3655 for cf_add_cflags in $cf_temp_xopen_source
3657 case $cf_fix_cppflags in
3659 case $cf_add_cflags in
3660 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3661 case $cf_add_cflags in
3663 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3665 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3666 && test -z "${cf_tst_cflags}" \
3667 && cf_fix_cppflags=yes
3669 if test $cf_fix_cppflags = yes ; then
3670 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3672 elif test "${cf_tst_cflags}" = "\"'" ; then
3673 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3682 case $cf_add_cflags in
3684 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3686 CPPFLAGS=`echo "$CPPFLAGS" | \
3687 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3688 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3692 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3697 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3702 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3704 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3706 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3707 && test -z "${cf_tst_cflags}" \
3708 && cf_fix_cppflags=no
3713 if test -n "$cf_new_cflags" ; then
3715 CFLAGS="$CFLAGS $cf_new_cflags"
3718 if test -n "$cf_new_cppflags" ; then
3720 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3723 if test -n "$cf_new_extra_cppflags" ; then
3725 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3730 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3732 cf_save_CFLAGS="$CFLAGS"
3733 cf_save_CPPFLAGS="$CPPFLAGS"
3735 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3736 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3737 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3739 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3740 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3741 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3743 echo "$as_me:3743: checking if we should define _POSIX_C_SOURCE" >&5
3744 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3745 if test "${cf_cv_posix_c_source+set}" = set; then
3746 echo $ECHO_N "(cached) $ECHO_C" >&6
3749 echo "${as_me:-configure}:3749: testing if the symbol is already defined go no further ..." 1>&5
3751 cat >conftest.$ac_ext <<_ACEOF
3752 #line 3752 "configure"
3753 #include "confdefs.h"
3754 #include <sys/types.h>
3759 #ifndef _POSIX_C_SOURCE
3766 rm -f conftest.$ac_objext
3767 if { (eval echo "$as_me:3767: \"$ac_compile\"") >&5
3768 (eval $ac_compile) 2>&5
3770 echo "$as_me:3770: \$? = $ac_status" >&5
3771 (exit $ac_status); } &&
3772 { ac_try='test -s conftest.$ac_objext'
3773 { (eval echo "$as_me:3773: \"$ac_try\"") >&5
3776 echo "$as_me:3776: \$? = $ac_status" >&5
3777 (exit $ac_status); }; }; then
3778 cf_cv_posix_c_source=no
3780 echo "$as_me: failed program was:" >&5
3781 cat conftest.$ac_ext >&5
3782 cf_want_posix_source=no
3783 case .$cf_POSIX_C_SOURCE in
3785 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3788 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3789 cf_want_posix_source=yes
3792 cf_want_posix_source=yes
3795 if test "$cf_want_posix_source" = yes ; then
3796 cat >conftest.$ac_ext <<_ACEOF
3797 #line 3797 "configure"
3798 #include "confdefs.h"
3799 #include <sys/types.h>
3804 #ifdef _POSIX_SOURCE
3811 rm -f conftest.$ac_objext
3812 if { (eval echo "$as_me:3812: \"$ac_compile\"") >&5
3813 (eval $ac_compile) 2>&5
3815 echo "$as_me:3815: \$? = $ac_status" >&5
3816 (exit $ac_status); } &&
3817 { ac_try='test -s conftest.$ac_objext'
3818 { (eval echo "$as_me:3818: \"$ac_try\"") >&5
3821 echo "$as_me:3821: \$? = $ac_status" >&5
3822 (exit $ac_status); }; }; then
3825 echo "$as_me: failed program was:" >&5
3826 cat conftest.$ac_ext >&5
3827 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3829 rm -f conftest.$ac_objext conftest.$ac_ext
3832 echo "${as_me:-configure}:3832: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3834 CFLAGS="$cf_trim_CFLAGS"
3835 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3837 echo "${as_me:-configure}:3837: testing if the second compile does not leave our definition intact error ..." 1>&5
3839 cat >conftest.$ac_ext <<_ACEOF
3840 #line 3840 "configure"
3841 #include "confdefs.h"
3842 #include <sys/types.h>
3847 #ifndef _POSIX_C_SOURCE
3854 rm -f conftest.$ac_objext
3855 if { (eval echo "$as_me:3855: \"$ac_compile\"") >&5
3856 (eval $ac_compile) 2>&5
3858 echo "$as_me:3858: \$? = $ac_status" >&5
3859 (exit $ac_status); } &&
3860 { ac_try='test -s conftest.$ac_objext'
3861 { (eval echo "$as_me:3861: \"$ac_try\"") >&5
3864 echo "$as_me:3864: \$? = $ac_status" >&5
3865 (exit $ac_status); }; }; then
3868 echo "$as_me: failed program was:" >&5
3869 cat conftest.$ac_ext >&5
3870 cf_cv_posix_c_source=no
3872 rm -f conftest.$ac_objext conftest.$ac_ext
3873 CFLAGS="$cf_save_CFLAGS"
3874 CPPFLAGS="$cf_save_CPPFLAGS"
3877 rm -f conftest.$ac_objext conftest.$ac_ext
3880 echo "$as_me:3880: result: $cf_cv_posix_c_source" >&5
3881 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3883 if test "$cf_cv_posix_c_source" != no ; then
3884 CFLAGS="$cf_trim_CFLAGS"
3885 CPPFLAGS="$cf_trim_CPPFLAGS"
3890 cf_new_extra_cppflags=
3892 for cf_add_cflags in $cf_cv_posix_c_source
3894 case $cf_fix_cppflags in
3896 case $cf_add_cflags in
3897 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3898 case $cf_add_cflags in
3900 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3902 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3903 && test -z "${cf_tst_cflags}" \
3904 && cf_fix_cppflags=yes
3906 if test $cf_fix_cppflags = yes ; then
3907 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3909 elif test "${cf_tst_cflags}" = "\"'" ; then
3910 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3919 case $cf_add_cflags in
3921 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3923 CPPFLAGS=`echo "$CPPFLAGS" | \
3924 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3925 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3929 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3934 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3939 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3941 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3943 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3944 && test -z "${cf_tst_cflags}" \
3945 && cf_fix_cppflags=no
3950 if test -n "$cf_new_cflags" ; then
3952 CFLAGS="$CFLAGS $cf_new_cflags"
3955 if test -n "$cf_new_cppflags" ; then
3957 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3960 if test -n "$cf_new_extra_cppflags" ; then
3962 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3970 if test -n "$cf_xopen_source" ; then
3975 cf_new_extra_cppflags=
3977 for cf_add_cflags in $cf_xopen_source
3979 case $cf_fix_cppflags in
3981 case $cf_add_cflags in
3982 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3983 case $cf_add_cflags in
3985 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3987 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3988 && test -z "${cf_tst_cflags}" \
3989 && cf_fix_cppflags=yes
3991 if test $cf_fix_cppflags = yes ; then
3992 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3994 elif test "${cf_tst_cflags}" = "\"'" ; then
3995 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4004 case $cf_add_cflags in
4006 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4008 CPPFLAGS=`echo "$CPPFLAGS" | \
4009 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4010 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4014 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4019 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4024 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4026 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4028 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4029 && test -z "${cf_tst_cflags}" \
4030 && cf_fix_cppflags=no
4035 if test -n "$cf_new_cflags" ; then
4036 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
4038 echo "${as_me:-configure}:4038: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
4040 CFLAGS="$CFLAGS $cf_new_cflags"
4043 if test -n "$cf_new_cppflags" ; then
4044 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
4046 echo "${as_me:-configure}:4046: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
4048 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4051 if test -n "$cf_new_extra_cppflags" ; then
4052 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
4054 echo "${as_me:-configure}:4054: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
4056 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4061 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
4062 echo "$as_me:4062: checking if _XOPEN_SOURCE really is set" >&5
4063 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
4064 cat >conftest.$ac_ext <<_ACEOF
4065 #line 4065 "configure"
4066 #include "confdefs.h"
4072 #ifndef _XOPEN_SOURCE
4079 rm -f conftest.$ac_objext
4080 if { (eval echo "$as_me:4080: \"$ac_compile\"") >&5
4081 (eval $ac_compile) 2>&5
4083 echo "$as_me:4083: \$? = $ac_status" >&5
4084 (exit $ac_status); } &&
4085 { ac_try='test -s conftest.$ac_objext'
4086 { (eval echo "$as_me:4086: \"$ac_try\"") >&5
4089 echo "$as_me:4089: \$? = $ac_status" >&5
4090 (exit $ac_status); }; }; then
4091 cf_XOPEN_SOURCE_set=yes
4093 echo "$as_me: failed program was:" >&5
4094 cat conftest.$ac_ext >&5
4095 cf_XOPEN_SOURCE_set=no
4097 rm -f conftest.$ac_objext conftest.$ac_ext
4098 echo "$as_me:4098: result: $cf_XOPEN_SOURCE_set" >&5
4099 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
4100 if test $cf_XOPEN_SOURCE_set = yes
4102 cat >conftest.$ac_ext <<_ACEOF
4103 #line 4103 "configure"
4104 #include "confdefs.h"
4110 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
4117 rm -f conftest.$ac_objext
4118 if { (eval echo "$as_me:4118: \"$ac_compile\"") >&5
4119 (eval $ac_compile) 2>&5
4121 echo "$as_me:4121: \$? = $ac_status" >&5
4122 (exit $ac_status); } &&
4123 { ac_try='test -s conftest.$ac_objext'
4124 { (eval echo "$as_me:4124: \"$ac_try\"") >&5
4127 echo "$as_me:4127: \$? = $ac_status" >&5
4128 (exit $ac_status); }; }; then
4129 cf_XOPEN_SOURCE_set_ok=yes
4131 echo "$as_me: failed program was:" >&5
4132 cat conftest.$ac_ext >&5
4133 cf_XOPEN_SOURCE_set_ok=no
4135 rm -f conftest.$ac_objext conftest.$ac_ext
4136 if test $cf_XOPEN_SOURCE_set_ok = no
4138 { echo "$as_me:4138: WARNING: _XOPEN_SOURCE is lower than requested" >&5
4139 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
4143 echo "$as_me:4143: checking if we should define _XOPEN_SOURCE" >&5
4144 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
4145 if test "${cf_cv_xopen_source+set}" = set; then
4146 echo $ECHO_N "(cached) $ECHO_C" >&6
4149 cat >conftest.$ac_ext <<_ACEOF
4150 #line 4150 "configure"
4151 #include "confdefs.h"
4155 #include <sys/types.h>
4161 #ifndef _XOPEN_SOURCE
4168 rm -f conftest.$ac_objext
4169 if { (eval echo "$as_me:4169: \"$ac_compile\"") >&5
4170 (eval $ac_compile) 2>&5
4172 echo "$as_me:4172: \$? = $ac_status" >&5
4173 (exit $ac_status); } &&
4174 { ac_try='test -s conftest.$ac_objext'
4175 { (eval echo "$as_me:4175: \"$ac_try\"") >&5
4178 echo "$as_me:4178: \$? = $ac_status" >&5
4179 (exit $ac_status); }; }; then
4180 cf_cv_xopen_source=no
4182 echo "$as_me: failed program was:" >&5
4183 cat conftest.$ac_ext >&5
4185 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
4186 cat >conftest.$ac_ext <<_ACEOF
4187 #line 4187 "configure"
4188 #include "confdefs.h"
4192 #include <sys/types.h>
4198 #ifdef _XOPEN_SOURCE
4205 rm -f conftest.$ac_objext
4206 if { (eval echo "$as_me:4206: \"$ac_compile\"") >&5
4207 (eval $ac_compile) 2>&5
4209 echo "$as_me:4209: \$? = $ac_status" >&5
4210 (exit $ac_status); } &&
4211 { ac_try='test -s conftest.$ac_objext'
4212 { (eval echo "$as_me:4212: \"$ac_try\"") >&5
4215 echo "$as_me:4215: \$? = $ac_status" >&5
4216 (exit $ac_status); }; }; then
4217 cf_cv_xopen_source=no
4219 echo "$as_me: failed program was:" >&5
4220 cat conftest.$ac_ext >&5
4221 cf_cv_xopen_source=$cf_XOPEN_SOURCE
4223 rm -f conftest.$ac_objext conftest.$ac_ext
4227 rm -f conftest.$ac_objext conftest.$ac_ext
4230 echo "$as_me:4230: result: $cf_cv_xopen_source" >&5
4231 echo "${ECHO_T}$cf_cv_xopen_source" >&6
4233 if test "$cf_cv_xopen_source" != no ; then
4235 CFLAGS=`echo "$CFLAGS" | \
4236 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4237 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4239 CPPFLAGS=`echo "$CPPFLAGS" | \
4240 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4241 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4243 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
4248 cf_new_extra_cppflags=
4250 for cf_add_cflags in $cf_temp_xopen_source
4252 case $cf_fix_cppflags in
4254 case $cf_add_cflags in
4255 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4256 case $cf_add_cflags in
4258 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4260 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4261 && test -z "${cf_tst_cflags}" \
4262 && cf_fix_cppflags=yes
4264 if test $cf_fix_cppflags = yes ; then
4265 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4267 elif test "${cf_tst_cflags}" = "\"'" ; then
4268 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4277 case $cf_add_cflags in
4279 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4281 CPPFLAGS=`echo "$CPPFLAGS" | \
4282 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4283 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4287 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4292 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4297 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4299 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4301 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4302 && test -z "${cf_tst_cflags}" \
4303 && cf_fix_cppflags=no
4308 if test -n "$cf_new_cflags" ; then
4310 CFLAGS="$CFLAGS $cf_new_cflags"
4313 if test -n "$cf_new_cppflags" ; then
4315 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4318 if test -n "$cf_new_extra_cppflags" ; then
4320 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4328 echo "$as_me:4328: checking for signal global datatype" >&5
4329 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
4330 if test "${cf_cv_sig_atomic_t+set}" = set; then
4331 echo $ECHO_N "(cached) $ECHO_C" >&6
4335 "volatile sig_atomic_t" \
4339 cat >conftest.$ac_ext <<_ACEOF
4340 #line 4340 "configure"
4341 #include "confdefs.h"
4343 #include <sys/types.h>
4349 static void handler(int sig)
4356 signal(SIGINT, handler);
4362 rm -f conftest.$ac_objext
4363 if { (eval echo "$as_me:4363: \"$ac_compile\"") >&5
4364 (eval $ac_compile) 2>&5
4366 echo "$as_me:4366: \$? = $ac_status" >&5
4367 (exit $ac_status); } &&
4368 { ac_try='test -s conftest.$ac_objext'
4369 { (eval echo "$as_me:4369: \"$ac_try\"") >&5
4372 echo "$as_me:4372: \$? = $ac_status" >&5
4373 (exit $ac_status); }; }; then
4374 cf_cv_sig_atomic_t=$cf_type
4376 echo "$as_me: failed program was:" >&5
4377 cat conftest.$ac_ext >&5
4378 cf_cv_sig_atomic_t=no
4380 rm -f conftest.$ac_objext conftest.$ac_ext
4381 test "$cf_cv_sig_atomic_t" != no && break
4386 echo "$as_me:4386: result: $cf_cv_sig_atomic_t" >&5
4387 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
4388 test "$cf_cv_sig_atomic_t" != no &&
4389 cat >>confdefs.h <<EOF
4390 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
4393 # Work around breakage on OS X
4395 echo "$as_me:4395: checking if SIGWINCH is defined" >&5
4396 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
4397 if test "${cf_cv_define_sigwinch+set}" = set; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4401 cat >conftest.$ac_ext <<_ACEOF
4402 #line 4402 "configure"
4403 #include "confdefs.h"
4405 #include <sys/types.h>
4406 #include <sys/signal.h>
4416 rm -f conftest.$ac_objext
4417 if { (eval echo "$as_me:4417: \"$ac_compile\"") >&5
4418 (eval $ac_compile) 2>&5
4420 echo "$as_me:4420: \$? = $ac_status" >&5
4421 (exit $ac_status); } &&
4422 { ac_try='test -s conftest.$ac_objext'
4423 { (eval echo "$as_me:4423: \"$ac_try\"") >&5
4426 echo "$as_me:4426: \$? = $ac_status" >&5
4427 (exit $ac_status); }; }; then
4428 cf_cv_define_sigwinch=yes
4430 echo "$as_me: failed program was:" >&5
4431 cat conftest.$ac_ext >&5
4432 cat >conftest.$ac_ext <<_ACEOF
4433 #line 4433 "configure"
4434 #include "confdefs.h"
4436 #undef _XOPEN_SOURCE
4437 #undef _POSIX_SOURCE
4438 #undef _POSIX_C_SOURCE
4439 #include <sys/types.h>
4440 #include <sys/signal.h>
4450 rm -f conftest.$ac_objext
4451 if { (eval echo "$as_me:4451: \"$ac_compile\"") >&5
4452 (eval $ac_compile) 2>&5
4454 echo "$as_me:4454: \$? = $ac_status" >&5
4455 (exit $ac_status); } &&
4456 { ac_try='test -s conftest.$ac_objext'
4457 { (eval echo "$as_me:4457: \"$ac_try\"") >&5
4460 echo "$as_me:4460: \$? = $ac_status" >&5
4461 (exit $ac_status); }; }; then
4462 cf_cv_define_sigwinch=maybe
4464 echo "$as_me: failed program was:" >&5
4465 cat conftest.$ac_ext >&5
4466 cf_cv_define_sigwinch=no
4468 rm -f conftest.$ac_objext conftest.$ac_ext
4471 rm -f conftest.$ac_objext conftest.$ac_ext
4474 echo "$as_me:4474: result: $cf_cv_define_sigwinch" >&5
4475 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
4477 if test "$cf_cv_define_sigwinch" = maybe ; then
4478 echo "$as_me:4478: checking for actual SIGWINCH definition" >&5
4479 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
4480 if test "${cf_cv_fixup_sigwinch+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4484 cf_cv_fixup_sigwinch=unknown
4486 while test $cf_sigwinch != 1
4488 cat >conftest.$ac_ext <<_ACEOF
4489 #line 4489 "configure"
4490 #include "confdefs.h"
4492 #undef _XOPEN_SOURCE
4493 #undef _POSIX_SOURCE
4494 #undef _POSIX_C_SOURCE
4495 #include <sys/types.h>
4496 #include <sys/signal.h>
4502 #if SIGWINCH != $cf_sigwinch
4510 rm -f conftest.$ac_objext
4511 if { (eval echo "$as_me:4511: \"$ac_compile\"") >&5
4512 (eval $ac_compile) 2>&5
4514 echo "$as_me:4514: \$? = $ac_status" >&5
4515 (exit $ac_status); } &&
4516 { ac_try='test -s conftest.$ac_objext'
4517 { (eval echo "$as_me:4517: \"$ac_try\"") >&5
4520 echo "$as_me:4520: \$? = $ac_status" >&5
4521 (exit $ac_status); }; }; then
4522 cf_cv_fixup_sigwinch=$cf_sigwinch
4525 echo "$as_me: failed program was:" >&5
4526 cat conftest.$ac_ext >&5
4528 rm -f conftest.$ac_objext conftest.$ac_ext
4530 cf_sigwinch=`expr $cf_sigwinch - 1`
4534 echo "$as_me:4534: result: $cf_cv_fixup_sigwinch" >&5
4535 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
4537 if test "$cf_cv_fixup_sigwinch" != unknown ; then
4538 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
4542 # Checks for CODESET support.
4544 echo "$as_me:4544: checking for nl_langinfo and CODESET" >&5
4545 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
4546 if test "${am_cv_langinfo_codeset+set}" = set; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4549 cat >conftest.$ac_ext <<_ACEOF
4550 #line 4550 "configure"
4551 #include "confdefs.h"
4552 #include <langinfo.h>
4556 char* cs = nl_langinfo(CODESET);
4561 rm -f conftest.$ac_objext conftest$ac_exeext
4562 if { (eval echo "$as_me:4562: \"$ac_link\"") >&5
4563 (eval $ac_link) 2>&5
4565 echo "$as_me:4565: \$? = $ac_status" >&5
4566 (exit $ac_status); } &&
4567 { ac_try='test -s conftest$ac_exeext'
4568 { (eval echo "$as_me:4568: \"$ac_try\"") >&5
4571 echo "$as_me:4571: \$? = $ac_status" >&5
4572 (exit $ac_status); }; }; then
4573 am_cv_langinfo_codeset=yes
4575 echo "$as_me: failed program was:" >&5
4576 cat conftest.$ac_ext >&5
4577 am_cv_langinfo_codeset=no
4579 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4582 echo "$as_me:4582: result: $am_cv_langinfo_codeset" >&5
4583 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
4584 if test $am_cv_langinfo_codeset = yes; then
4586 cat >>confdefs.h <<\EOF
4587 #define HAVE_LANGINFO_CODESET 1
4592 echo "$as_me:4592: checking if you want to use pkg-config" >&5
4593 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
4595 # Check whether --with-pkg-config or --without-pkg-config was given.
4596 if test "${with_pkg_config+set}" = set; then
4597 withval="$with_pkg_config"
4598 cf_pkg_config=$withval
4602 echo "$as_me:4602: result: $cf_pkg_config" >&5
4603 echo "${ECHO_T}$cf_pkg_config" >&6
4605 case $cf_pkg_config in
4611 if test -n "$ac_tool_prefix"; then
4612 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4613 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4614 echo "$as_me:4614: checking for $ac_word" >&5
4615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4616 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4617 echo $ECHO_N "(cached) $ECHO_C" >&6
4621 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4624 ac_save_IFS=$IFS; IFS=$ac_path_separator
4626 for ac_dir in $ac_dummy; do
4628 test -z "$ac_dir" && ac_dir=.
4629 if $as_executable_p "$ac_dir/$ac_word"; then
4630 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
4631 echo "$as_me:4631: found $ac_dir/$ac_word" >&5
4639 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4641 if test -n "$PKG_CONFIG"; then
4642 echo "$as_me:4642: result: $PKG_CONFIG" >&5
4643 echo "${ECHO_T}$PKG_CONFIG" >&6
4645 echo "$as_me:4645: result: no" >&5
4646 echo "${ECHO_T}no" >&6
4650 if test -z "$ac_cv_path_PKG_CONFIG"; then
4651 ac_pt_PKG_CONFIG=$PKG_CONFIG
4652 # Extract the first word of "pkg-config", so it can be a program name with args.
4653 set dummy pkg-config; ac_word=$2
4654 echo "$as_me:4654: checking for $ac_word" >&5
4655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4656 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4657 echo $ECHO_N "(cached) $ECHO_C" >&6
4659 case $ac_pt_PKG_CONFIG in
4661 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4664 ac_save_IFS=$IFS; IFS=$ac_path_separator
4666 for ac_dir in $ac_dummy; do
4668 test -z "$ac_dir" && ac_dir=.
4669 if $as_executable_p "$ac_dir/$ac_word"; then
4670 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
4671 echo "$as_me:4671: found $ac_dir/$ac_word" >&5
4676 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
4680 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4682 if test -n "$ac_pt_PKG_CONFIG"; then
4683 echo "$as_me:4683: result: $ac_pt_PKG_CONFIG" >&5
4684 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4686 echo "$as_me:4686: result: no" >&5
4687 echo "${ECHO_T}no" >&6
4690 PKG_CONFIG=$ac_pt_PKG_CONFIG
4692 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4701 test -z "$PKG_CONFIG" && PKG_CONFIG=none
4702 if test "$PKG_CONFIG" != none ; then
4704 if test "x$prefix" != xNONE; then
4705 cf_path_syntax="$prefix"
4707 cf_path_syntax="$ac_default_prefix"
4710 case ".$PKG_CONFIG" in
4715 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4717 (.\${*prefix}*|.\${*dir}*)
4718 eval PKG_CONFIG="$PKG_CONFIG"
4719 case ".$PKG_CONFIG" in
4721 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
4726 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
4729 { { echo "$as_me:4729: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
4730 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
4731 { (exit 1); exit 1; }; }
4735 elif test "x$cf_pkg_config" != xno ; then
4736 { echo "$as_me:4736: WARNING: pkg-config is not installed" >&5
4737 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
4740 echo "$as_me:4740: checking if you want to see long compiling messages" >&5
4741 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
4743 # Check whether --enable-echo or --disable-echo was given.
4744 if test "${enable_echo+set}" = set; then
4745 enableval="$enable_echo"
4746 test "$enableval" != no && enableval=yes
4747 if test "$enableval" != "yes" ; then
4750 ECHO_LD='@echo linking $@;'
4751 RULE_CC='@echo compiling $<'
4752 SHOW_CC='@echo compiling $@'
4774 echo "$as_me:4774: result: $enableval" >&5
4775 echo "${ECHO_T}$enableval" >&6
4777 echo "$as_me:4777: checking for ncurses wrap-prefix" >&5
4778 echo $ECHO_N "checking for ncurses wrap-prefix... $ECHO_C" >&6
4780 # Check whether --with-ncurses-wrap-prefix or --without-ncurses-wrap-prefix was given.
4781 if test "${with_ncurses_wrap_prefix+set}" = set; then
4782 withval="$with_ncurses_wrap_prefix"
4783 NCURSES_WRAP_PREFIX=$withval
4785 NCURSES_WRAP_PREFIX=_nc_
4787 echo "$as_me:4787: result: $NCURSES_WRAP_PREFIX" >&5
4788 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
4790 echo "$as_me:4790: checking if you want to check for wide-character functions" >&5
4791 echo $ECHO_N "checking if you want to check for wide-character functions... $ECHO_C" >&6
4793 # Check whether --enable-widec or --disable-widec was given.
4794 if test "${enable_widec+set}" = set; then
4795 enableval="$enable_widec"
4796 test "$enableval" != no && enableval=yes
4797 if test "$enableval" != "yes" ; then
4807 echo "$as_me:4807: result: $cf_enable_widec" >&5
4808 echo "${ECHO_T}$cf_enable_widec" >&6
4810 echo "$as_me:4810: checking for specific curses-directory" >&5
4811 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
4813 # Check whether --with-curses-dir or --without-curses-dir was given.
4814 if test "${with_curses_dir+set}" = set; then
4815 withval="$with_curses_dir"
4816 cf_cv_curses_dir=$withval
4820 echo "$as_me:4820: result: $cf_cv_curses_dir" >&5
4821 echo "${ECHO_T}$cf_cv_curses_dir" >&6
4823 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
4826 if test "x$prefix" != xNONE; then
4827 cf_path_syntax="$prefix"
4829 cf_path_syntax="$ac_default_prefix"
4837 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
4839 (.\${*prefix}*|.\${*dir}*)
4840 eval withval="$withval"
4843 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4848 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
4851 { { echo "$as_me:4851: error: expected a pathname, not \"$withval\"" >&5
4852 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
4853 { (exit 1); exit 1; }; }
4857 if test -d "$cf_cv_curses_dir"
4860 if test -n "$cf_cv_curses_dir/include" ; then
4861 for cf_add_incdir in $cf_cv_curses_dir/include
4863 while test $cf_add_incdir != /usr/include
4865 if test -d $cf_add_incdir
4868 if test -n "$CFLAGS$CPPFLAGS" ; then
4869 # a loop is needed to ensure we can add subdirs of existing dirs
4870 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
4871 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
4872 cf_have_incdir=yes; break
4877 if test "$cf_have_incdir" = no ; then
4878 if test "$cf_add_incdir" = /usr/local/include ; then
4879 if test "$GCC" = yes
4881 cf_save_CPPFLAGS=$CPPFLAGS
4882 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4883 cat >conftest.$ac_ext <<_ACEOF
4884 #line 4884 "configure"
4885 #include "confdefs.h"
4895 rm -f conftest.$ac_objext
4896 if { (eval echo "$as_me:4896: \"$ac_compile\"") >&5
4897 (eval $ac_compile) 2>&5
4899 echo "$as_me:4899: \$? = $ac_status" >&5
4900 (exit $ac_status); } &&
4901 { ac_try='test -s conftest.$ac_objext'
4902 { (eval echo "$as_me:4902: \"$ac_try\"") >&5
4905 echo "$as_me:4905: \$? = $ac_status" >&5
4906 (exit $ac_status); }; }; then
4909 echo "$as_me: failed program was:" >&5
4910 cat conftest.$ac_ext >&5
4913 rm -f conftest.$ac_objext conftest.$ac_ext
4914 CPPFLAGS=$cf_save_CPPFLAGS
4919 if test "$cf_have_incdir" = no ; then
4920 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
4922 echo "${as_me:-configure}:4922: testing adding $cf_add_incdir to include-path ..." 1>&5
4924 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
4926 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
4927 test "$cf_top_incdir" = "$cf_add_incdir" && break
4928 cf_add_incdir="$cf_top_incdir"
4939 if test -n "$cf_cv_curses_dir/lib" ; then
4940 for cf_add_libdir in $cf_cv_curses_dir/lib
4942 if test $cf_add_libdir = /usr/lib ; then
4944 elif test -d $cf_add_libdir
4947 if test -n "$LDFLAGS$LIBS" ; then
4948 # a loop is needed to ensure we can add subdirs of existing dirs
4949 for cf_test_libdir in $LDFLAGS $LIBS ; do
4950 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
4951 cf_have_libdir=yes; break
4955 if test "$cf_have_libdir" = no ; then
4956 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
4958 echo "${as_me:-configure}:4958: testing adding $cf_add_libdir to library-path ..." 1>&5
4960 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
4971 echo "$as_me:4971: checking for specified curses library type" >&5
4972 echo $ECHO_N "checking for specified curses library type... $ECHO_C" >&6
4974 # Check whether --with-screen or --without-screen was given.
4975 if test "${with_screen+set}" = set; then
4976 withval="$with_screen"
4977 cf_cv_screen=$withval
4980 # Check whether --with-ncursesw or --without-ncursesw was given.
4981 if test "${with_ncursesw+set}" = set; then
4982 withval="$with_ncursesw"
4983 cf_cv_screen=ncursesw
4986 # Check whether --with-ncurses or --without-ncurses was given.
4987 if test "${with_ncurses+set}" = set; then
4988 withval="$with_ncurses"
4989 cf_cv_screen=ncurses
4992 # Check whether --with-pdcurses or --without-pdcurses was given.
4993 if test "${with_pdcurses+set}" = set; then
4994 withval="$with_pdcurses"
4995 cf_cv_screen=pdcurses
4998 # Check whether --with-curses-colr or --without-curses-colr was given.
4999 if test "${with_curses_colr+set}" = set; then
5000 withval="$with_curses_colr"
5001 cf_cv_screen=curses_colr
5004 # Check whether --with-curses-5lib or --without-curses-5lib was given.
5005 if test "${with_curses_5lib+set}" = set; then
5006 withval="$with_curses_5lib"
5007 cf_cv_screen=curses_5lib
5015 echo "$as_me:5015: result: $cf_cv_screen" >&5
5016 echo "${ECHO_T}$cf_cv_screen" >&6
5018 case $cf_cv_screen in
5021 echo "$as_me:5021: checking for extra include directories" >&5
5022 echo $ECHO_N "checking for extra include directories... $ECHO_C" >&6
5023 if test "${cf_cv_curses_incdir+set}" = set; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5027 cf_cv_curses_incdir=no
5030 if test "x$cf_cv_screen" = "xcurses_colr"
5032 test -d /usr/include/curses_colr && \
5033 cf_cv_curses_incdir="-I/usr/include/curses_colr"
5037 if test "x$cf_cv_screen" = "xcurses_5lib"
5039 test -d /usr/5lib && \
5040 test -d /usr/5include && \
5041 cf_cv_curses_incdir="-I/usr/5include"
5047 echo "$as_me:5047: result: $cf_cv_curses_incdir" >&5
5048 echo "${ECHO_T}$cf_cv_curses_incdir" >&6
5049 test "$cf_cv_curses_incdir" != no && CPPFLAGS="$CPPFLAGS $cf_cv_curses_incdir"
5051 echo "$as_me:5051: checking if we have identified curses headers" >&5
5052 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
5053 if test "${cf_cv_ncurses_header+set}" = set; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5057 cf_cv_ncurses_header=none
5060 curses.h ncurses/ncurses.h ncurses/curses.h
5062 cat >conftest.$ac_ext <<_ACEOF
5063 #line 5063 "configure"
5064 #include "confdefs.h"
5065 #include <${cf_header}>
5069 initscr(); tgoto("?", 0,0)
5074 rm -f conftest.$ac_objext
5075 if { (eval echo "$as_me:5075: \"$ac_compile\"") >&5
5076 (eval $ac_compile) 2>&5
5078 echo "$as_me:5078: \$? = $ac_status" >&5
5079 (exit $ac_status); } &&
5080 { ac_try='test -s conftest.$ac_objext'
5081 { (eval echo "$as_me:5081: \"$ac_try\"") >&5
5084 echo "$as_me:5084: \$? = $ac_status" >&5
5085 (exit $ac_status); }; }; then
5086 cf_cv_ncurses_header=$cf_header; break
5088 echo "$as_me: failed program was:" >&5
5089 cat conftest.$ac_ext >&5
5091 rm -f conftest.$ac_objext conftest.$ac_ext
5095 echo "$as_me:5095: result: $cf_cv_ncurses_header" >&5
5096 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
5098 if test "$cf_cv_ncurses_header" = none ; then
5099 { { echo "$as_me:5099: error: No curses header-files found" >&5
5100 echo "$as_me: error: No curses header-files found" >&2;}
5101 { (exit 1); exit 1; }; }
5104 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
5106 for ac_header in $cf_cv_ncurses_header
5108 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5109 echo "$as_me:5109: checking for $ac_header" >&5
5110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5111 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5112 echo $ECHO_N "(cached) $ECHO_C" >&6
5114 cat >conftest.$ac_ext <<_ACEOF
5115 #line 5115 "configure"
5116 #include "confdefs.h"
5117 #include <$ac_header>
5119 if { (eval echo "$as_me:5119: \"$ac_cpp conftest.$ac_ext\"") >&5
5120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5122 egrep -v '^ *\+' conftest.er1 >conftest.err
5124 cat conftest.err >&5
5125 echo "$as_me:5125: \$? = $ac_status" >&5
5126 (exit $ac_status); } >/dev/null; then
5127 if test -s conftest.err; then
5128 ac_cpp_err=$ac_c_preproc_warn_flag
5135 if test -z "$ac_cpp_err"; then
5136 eval "$as_ac_Header=yes"
5138 echo "$as_me: failed program was:" >&5
5139 cat conftest.$ac_ext >&5
5140 eval "$as_ac_Header=no"
5142 rm -f conftest.err conftest.$ac_ext
5144 echo "$as_me:5144: result: `eval echo '${'$as_ac_Header'}'`" >&5
5145 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5146 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5147 cat >>confdefs.h <<EOF
5148 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5154 echo "$as_me:5154: checking for terminfo header" >&5
5155 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
5156 if test "${cf_cv_term_header+set}" = set; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
5160 case ${cf_cv_ncurses_header} in
5161 (*/ncurses.h|*/ncursesw.h)
5162 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
5165 cf_term_header=term.h
5169 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
5171 cat >conftest.$ac_ext <<_ACEOF
5172 #line 5172 "configure"
5173 #include "confdefs.h"
5175 #include <${cf_cv_ncurses_header:-curses.h}>
5181 int x = auto_left_margin
5186 rm -f conftest.$ac_objext
5187 if { (eval echo "$as_me:5187: \"$ac_compile\"") >&5
5188 (eval $ac_compile) 2>&5
5190 echo "$as_me:5190: \$? = $ac_status" >&5
5191 (exit $ac_status); } &&
5192 { ac_try='test -s conftest.$ac_objext'
5193 { (eval echo "$as_me:5193: \"$ac_try\"") >&5
5196 echo "$as_me:5196: \$? = $ac_status" >&5
5197 (exit $ac_status); }; }; then
5199 cf_cv_term_header="$cf_test"
5201 echo "$as_me: failed program was:" >&5
5202 cat conftest.$ac_ext >&5
5204 cf_cv_term_header=unknown
5207 rm -f conftest.$ac_objext conftest.$ac_ext
5208 test "$cf_cv_term_header" != unknown && break
5212 echo "$as_me:5212: result: $cf_cv_term_header" >&5
5213 echo "${ECHO_T}$cf_cv_term_header" >&6
5215 # Set definitions to allow ifdef'ing to accommodate subdirectories
5217 case $cf_cv_term_header in
5220 cat >>confdefs.h <<\EOF
5221 #define HAVE_TERM_H 1
5227 case $cf_cv_term_header in
5230 cat >>confdefs.h <<\EOF
5231 #define HAVE_NCURSES_TERM_H 1
5237 cat >>confdefs.h <<\EOF
5238 #define HAVE_NCURSESW_TERM_H 1
5244 echo "$as_me:5244: checking for ncurses version" >&5
5245 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
5246 if test "${cf_cv_ncurses_version+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5250 cf_cv_ncurses_version=no
5253 if test "$cross_compiling" = yes; then
5255 # This will not work if the preprocessor splits the line after the
5256 # Autoconf token. The 'unproto' program does that.
5257 cat > conftest.$ac_ext <<EOF
5258 #include <${cf_cv_ncurses_header:-curses.h}>
5260 #ifdef NCURSES_VERSION
5261 Autoconf NCURSES_VERSION
5269 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
5270 { (eval echo "$as_me:5270: \"$cf_try\"") >&5
5273 echo "$as_me:5273: \$? = $ac_status" >&5
5274 (exit $ac_status); }
5275 if test -f conftest.out ; then
5276 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
5277 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
5282 cat >conftest.$ac_ext <<_ACEOF
5283 #line 5283 "configure"
5284 #include "confdefs.h"
5286 #include <${cf_cv_ncurses_header:-curses.h}>
5290 FILE *fp = fopen("$cf_tempfile", "w");
5291 #ifdef NCURSES_VERSION
5292 # ifdef NCURSES_VERSION_PATCH
5293 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
5295 fprintf(fp, "%s\n", NCURSES_VERSION);
5299 fprintf(fp, "old\n");
5304 ${cf_cv_main_return:-return}(0);
5307 rm -f conftest$ac_exeext
5308 if { (eval echo "$as_me:5308: \"$ac_link\"") >&5
5309 (eval $ac_link) 2>&5
5311 echo "$as_me:5311: \$? = $ac_status" >&5
5312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5313 { (eval echo "$as_me:5313: \"$ac_try\"") >&5
5316 echo "$as_me:5316: \$? = $ac_status" >&5
5317 (exit $ac_status); }; }; then
5319 cf_cv_ncurses_version=`cat $cf_tempfile`
5321 echo "$as_me: program exited with status $ac_status" >&5
5322 echo "$as_me: failed program was:" >&5
5323 cat conftest.$ac_ext >&5
5325 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5330 echo "$as_me:5330: result: $cf_cv_ncurses_version" >&5
5331 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
5332 test "$cf_cv_ncurses_version" = no ||
5333 cat >>confdefs.h <<\EOF
5337 echo "$as_me:5337: checking if we have identified curses libraries" >&5
5338 echo $ECHO_N "checking if we have identified curses libraries... $ECHO_C" >&6
5339 cat >conftest.$ac_ext <<_ACEOF
5340 #line 5340 "configure"
5341 #include "confdefs.h"
5342 #include <${cf_cv_ncurses_header:-curses.h}>
5346 initscr(); tgoto("?", 0,0)
5351 rm -f conftest.$ac_objext conftest$ac_exeext
5352 if { (eval echo "$as_me:5352: \"$ac_link\"") >&5
5353 (eval $ac_link) 2>&5
5355 echo "$as_me:5355: \$? = $ac_status" >&5
5356 (exit $ac_status); } &&
5357 { ac_try='test -s conftest$ac_exeext'
5358 { (eval echo "$as_me:5358: \"$ac_try\"") >&5
5361 echo "$as_me:5361: \$? = $ac_status" >&5
5362 (exit $ac_status); }; }; then
5365 echo "$as_me: failed program was:" >&5
5366 cat conftest.$ac_ext >&5
5369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5370 echo "$as_me:5370: result: $cf_result" >&5
5371 echo "${ECHO_T}$cf_result" >&6
5373 if test "$cf_result" = no ; then
5376 echo "$as_me:5376: checking for tgoto in -lmytinfo" >&5
5377 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
5378 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
5379 echo $ECHO_N "(cached) $ECHO_C" >&6
5381 ac_check_lib_save_LIBS=$LIBS
5382 LIBS="-lmytinfo $LIBS"
5383 cat >conftest.$ac_ext <<_ACEOF
5384 #line 5384 "configure"
5385 #include "confdefs.h"
5387 /* Override any gcc2 internal prototype to avoid an error. */
5391 /* We use char because int might match the return type of a gcc2
5392 builtin and then its argument prototype would still apply. */
5402 rm -f conftest.$ac_objext conftest$ac_exeext
5403 if { (eval echo "$as_me:5403: \"$ac_link\"") >&5
5404 (eval $ac_link) 2>&5
5406 echo "$as_me:5406: \$? = $ac_status" >&5
5407 (exit $ac_status); } &&
5408 { ac_try='test -s conftest$ac_exeext'
5409 { (eval echo "$as_me:5409: \"$ac_try\"") >&5
5412 echo "$as_me:5412: \$? = $ac_status" >&5
5413 (exit $ac_status); }; }; then
5414 ac_cv_lib_mytinfo_tgoto=yes
5416 echo "$as_me: failed program was:" >&5
5417 cat conftest.$ac_ext >&5
5418 ac_cv_lib_mytinfo_tgoto=no
5420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5421 LIBS=$ac_check_lib_save_LIBS
5423 echo "$as_me:5423: result: $ac_cv_lib_mytinfo_tgoto" >&5
5424 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
5425 if test $ac_cv_lib_mytinfo_tgoto = yes; then
5427 cf_add_libs="-lmytinfo"
5428 # Filter out duplicates - this happens with badly-designed ".pc" files...
5429 for cf_add_1lib in $LIBS
5431 for cf_add_2lib in $cf_add_libs
5433 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5439 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5447 # Looking at HPUX 10.20, the Hcurses library is the oldest (1997), cur_colr
5448 # next (1998), and xcurses "newer" (2000). There is no header file for
5449 # Hcurses; the subdirectory curses_colr has the headers (curses.h and
5450 # term.h) for cur_colr
5451 if test "x$cf_cv_screen" = "xcurses_colr"
5453 echo "$as_me:5453: checking for initscr in -lcur_colr" >&5
5454 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
5455 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
5456 echo $ECHO_N "(cached) $ECHO_C" >&6
5458 ac_check_lib_save_LIBS=$LIBS
5459 LIBS="-lcur_colr $LIBS"
5460 cat >conftest.$ac_ext <<_ACEOF
5461 #line 5461 "configure"
5462 #include "confdefs.h"
5464 /* Override any gcc2 internal prototype to avoid an error. */
5468 /* We use char because int might match the return type of a gcc2
5469 builtin and then its argument prototype would still apply. */
5479 rm -f conftest.$ac_objext conftest$ac_exeext
5480 if { (eval echo "$as_me:5480: \"$ac_link\"") >&5
5481 (eval $ac_link) 2>&5
5483 echo "$as_me:5483: \$? = $ac_status" >&5
5484 (exit $ac_status); } &&
5485 { ac_try='test -s conftest$ac_exeext'
5486 { (eval echo "$as_me:5486: \"$ac_try\"") >&5
5489 echo "$as_me:5489: \$? = $ac_status" >&5
5490 (exit $ac_status); }; }; then
5491 ac_cv_lib_cur_colr_initscr=yes
5493 echo "$as_me: failed program was:" >&5
5494 cat conftest.$ac_ext >&5
5495 ac_cv_lib_cur_colr_initscr=no
5497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5498 LIBS=$ac_check_lib_save_LIBS
5500 echo "$as_me:5500: result: $ac_cv_lib_cur_colr_initscr" >&5
5501 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
5502 if test $ac_cv_lib_cur_colr_initscr = yes; then
5504 cf_add_libs="-lcur_colr"
5505 # Filter out duplicates - this happens with badly-designed ".pc" files...
5506 for cf_add_1lib in $LIBS
5508 for cf_add_2lib in $cf_add_libs
5510 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5516 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5520 ac_cv_func_initscr=yes
5524 echo "$as_me:5524: checking for initscr in -lHcurses" >&5
5525 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
5526 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
5527 echo $ECHO_N "(cached) $ECHO_C" >&6
5529 ac_check_lib_save_LIBS=$LIBS
5530 LIBS="-lHcurses $LIBS"
5531 cat >conftest.$ac_ext <<_ACEOF
5532 #line 5532 "configure"
5533 #include "confdefs.h"
5535 /* Override any gcc2 internal prototype to avoid an error. */
5539 /* We use char because int might match the return type of a gcc2
5540 builtin and then its argument prototype would still apply. */
5550 rm -f conftest.$ac_objext conftest$ac_exeext
5551 if { (eval echo "$as_me:5551: \"$ac_link\"") >&5
5552 (eval $ac_link) 2>&5
5554 echo "$as_me:5554: \$? = $ac_status" >&5
5555 (exit $ac_status); } &&
5556 { ac_try='test -s conftest$ac_exeext'
5557 { (eval echo "$as_me:5557: \"$ac_try\"") >&5
5560 echo "$as_me:5560: \$? = $ac_status" >&5
5561 (exit $ac_status); }; }; then
5562 ac_cv_lib_Hcurses_initscr=yes
5564 echo "$as_me: failed program was:" >&5
5565 cat conftest.$ac_ext >&5
5566 ac_cv_lib_Hcurses_initscr=no
5568 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5569 LIBS=$ac_check_lib_save_LIBS
5571 echo "$as_me:5571: result: $ac_cv_lib_Hcurses_initscr" >&5
5572 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
5573 if test $ac_cv_lib_Hcurses_initscr = yes; then
5575 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
5577 cf_add_libs="-lHcurses"
5578 # Filter out duplicates - this happens with badly-designed ".pc" files...
5579 for cf_add_1lib in $LIBS
5581 for cf_add_2lib in $cf_add_libs
5583 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5589 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5593 CPPFLAGS="$CPPFLAGS -D__HP_CURSES -D_HP_CURSES"
5594 ac_cv_func_initscr=yes
5603 case `arch 2>/dev/null` in
5608 if test -n "/lib64" ; then
5609 for cf_add_libdir in /lib64
5611 if test $cf_add_libdir = /usr/lib ; then
5613 elif test -d $cf_add_libdir
5616 if test -n "$LDFLAGS$LIBS" ; then
5617 # a loop is needed to ensure we can add subdirs of existing dirs
5618 for cf_test_libdir in $LDFLAGS $LIBS ; do
5619 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5620 cf_have_libdir=yes; break
5624 if test "$cf_have_libdir" = no ; then
5625 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5627 echo "${as_me:-configure}:5627: testing adding $cf_add_libdir to library-path ..." 1>&5
5629 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5637 if test -n "/lib" ; then
5638 for cf_add_libdir in /lib
5640 if test $cf_add_libdir = /usr/lib ; then
5642 elif test -d $cf_add_libdir
5645 if test -n "$LDFLAGS$LIBS" ; then
5646 # a loop is needed to ensure we can add subdirs of existing dirs
5647 for cf_test_libdir in $LDFLAGS $LIBS ; do
5648 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5649 cf_have_libdir=yes; break
5653 if test "$cf_have_libdir" = no ; then
5654 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5656 echo "${as_me:-configure}:5656: testing adding $cf_add_libdir to library-path ..." 1>&5
5658 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5668 if test -n "/lib" ; then
5669 for cf_add_libdir in /lib
5671 if test $cf_add_libdir = /usr/lib ; then
5673 elif test -d $cf_add_libdir
5676 if test -n "$LDFLAGS$LIBS" ; then
5677 # a loop is needed to ensure we can add subdirs of existing dirs
5678 for cf_test_libdir in $LDFLAGS $LIBS ; do
5679 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5680 cf_have_libdir=yes; break
5684 if test "$cf_have_libdir" = no ; then
5685 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5687 echo "${as_me:-configure}:5687: testing adding $cf_add_libdir to library-path ..." 1>&5
5689 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5699 if test "x$cf_cv_screen" = "xcurses_5lib"
5701 if test -d /usr/5lib ; then
5703 if test -n "/usr/5lib" ; then
5704 for cf_add_libdir in /usr/5lib
5706 if test $cf_add_libdir = /usr/lib ; then
5708 elif test -d $cf_add_libdir
5711 if test -n "$LDFLAGS$LIBS" ; then
5712 # a loop is needed to ensure we can add subdirs of existing dirs
5713 for cf_test_libdir in $LDFLAGS $LIBS ; do
5714 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5715 cf_have_libdir=yes; break
5719 if test "$cf_have_libdir" = no ; then
5720 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5722 echo "${as_me:-configure}:5722: testing adding $cf_add_libdir to library-path ..." 1>&5
5724 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5730 cf_add_libs="-lcurses -ltermcap"
5731 # Filter out duplicates - this happens with badly-designed ".pc" files...
5732 for cf_add_1lib in $LIBS
5734 for cf_add_2lib in $cf_add_libs
5736 if test "x$cf_add_1lib" = "x$cf_add_2lib"
5742 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
5748 ac_cv_func_initscr=yes
5752 if test ".$ac_cv_func_initscr" != .yes ; then
5753 cf_save_LIBS="$LIBS"
5755 if test ".${cf_cv_ncurses_version:-no}" != .no
5757 cf_check_list="ncurses curses cursesX"
5759 cf_check_list="cursesX curses ncurses"
5762 # Check for library containing tgoto. Do this before curses library
5763 # because it may be needed to link the test-case for initscr.
5764 if test "x$cf_term_lib" = x
5766 echo "$as_me:5766: checking for tgoto" >&5
5767 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
5768 if test "${ac_cv_func_tgoto+set}" = set; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5771 cat >conftest.$ac_ext <<_ACEOF
5772 #line 5772 "configure"
5773 #include "confdefs.h"
5774 /* System header to define __stub macros and hopefully few prototypes,
5775 which can conflict with char tgoto (); below. */
5777 /* Override any gcc2 internal prototype to avoid an error. */
5781 /* We use char because int might match the return type of a gcc2
5782 builtin and then its argument prototype would still apply. */
5789 /* The GNU C library defines this for functions which it implements
5790 to always fail with ENOSYS. Some functions are actually named
5791 something starting with __ and the normal name is an alias. */
5792 #if defined (__stub_tgoto) || defined (__stub___tgoto)
5795 f = tgoto; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
5802 rm -f conftest.$ac_objext conftest$ac_exeext
5803 if { (eval echo "$as_me:5803: \"$ac_link\"") >&5
5804 (eval $ac_link) 2>&5
5806 echo "$as_me:5806: \$? = $ac_status" >&5
5807 (exit $ac_status); } &&
5808 { ac_try='test -s conftest$ac_exeext'
5809 { (eval echo "$as_me:5809: \"$ac_try\"") >&5
5812 echo "$as_me:5812: \$? = $ac_status" >&5
5813 (exit $ac_status); }; }; then
5814 ac_cv_func_tgoto=yes
5816 echo "$as_me: failed program was:" >&5
5817 cat conftest.$ac_ext >&5
5820 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5822 echo "$as_me:5822: result: $ac_cv_func_tgoto" >&5
5823 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
5824 if test $ac_cv_func_tgoto = yes; then
5825 cf_term_lib=predefined
5828 for cf_term_lib in $cf_check_list otermcap termcap tinfo termlib unknown
5830 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
5831 echo "$as_me:5831: checking for tgoto in -l$cf_term_lib" >&5
5832 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
5833 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5834 echo $ECHO_N "(cached) $ECHO_C" >&6
5836 ac_check_lib_save_LIBS=$LIBS
5837 LIBS="-l$cf_term_lib $LIBS"
5838 cat >conftest.$ac_ext <<_ACEOF
5839 #line 5839 "configure"
5840 #include "confdefs.h"
5842 /* Override any gcc2 internal prototype to avoid an error. */
5846 /* We use char because int might match the return type of a gcc2
5847 builtin and then its argument prototype would still apply. */
5857 rm -f conftest.$ac_objext conftest$ac_exeext
5858 if { (eval echo "$as_me:5858: \"$ac_link\"") >&5
5859 (eval $ac_link) 2>&5
5861 echo "$as_me:5861: \$? = $ac_status" >&5
5862 (exit $ac_status); } &&
5863 { ac_try='test -s conftest$ac_exeext'
5864 { (eval echo "$as_me:5864: \"$ac_try\"") >&5
5867 echo "$as_me:5867: \$? = $ac_status" >&5
5868 (exit $ac_status); }; }; then
5869 eval "$as_ac_Lib=yes"
5871 echo "$as_me: failed program was:" >&5
5872 cat conftest.$ac_ext >&5
5873 eval "$as_ac_Lib=no"
5875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5876 LIBS=$ac_check_lib_save_LIBS
5878 echo "$as_me:5878: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5879 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5880 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5890 # Check for library containing initscr
5891 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
5892 if test "x$cf_curs_lib" = x
5894 for cf_curs_lib in $cf_check_list xcurses jcurses pdcurses unknown
5896 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
5897 echo "$as_me:5897: checking for initscr in -l$cf_curs_lib" >&5
5898 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
5899 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
5902 ac_check_lib_save_LIBS=$LIBS
5903 LIBS="-l$cf_curs_lib $LIBS"
5904 cat >conftest.$ac_ext <<_ACEOF
5905 #line 5905 "configure"
5906 #include "confdefs.h"
5908 /* Override any gcc2 internal prototype to avoid an error. */
5912 /* We use char because int might match the return type of a gcc2
5913 builtin and then its argument prototype would still apply. */
5923 rm -f conftest.$ac_objext conftest$ac_exeext
5924 if { (eval echo "$as_me:5924: \"$ac_link\"") >&5
5925 (eval $ac_link) 2>&5
5927 echo "$as_me:5927: \$? = $ac_status" >&5
5928 (exit $ac_status); } &&
5929 { ac_try='test -s conftest$ac_exeext'
5930 { (eval echo "$as_me:5930: \"$ac_try\"") >&5
5933 echo "$as_me:5933: \$? = $ac_status" >&5
5934 (exit $ac_status); }; }; then
5935 eval "$as_ac_Lib=yes"
5937 echo "$as_me: failed program was:" >&5
5938 cat conftest.$ac_ext >&5
5939 eval "$as_ac_Lib=no"
5941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5942 LIBS=$ac_check_lib_save_LIBS
5944 echo "$as_me:5944: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5945 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5946 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5952 test $cf_curs_lib = unknown && { { echo "$as_me:5952: error: no curses library found" >&5
5953 echo "$as_me: error: no curses library found" >&2;}
5954 { (exit 1); exit 1; }; }
5956 LIBS="-l$cf_curs_lib $cf_save_LIBS"
5957 if test "$cf_term_lib" = unknown ; then
5958 echo "$as_me:5958: checking if we can link with $cf_curs_lib library" >&5
5959 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
5960 cat >conftest.$ac_ext <<_ACEOF
5961 #line 5961 "configure"
5962 #include "confdefs.h"
5963 #include <${cf_cv_ncurses_header:-curses.h}>
5972 rm -f conftest.$ac_objext conftest$ac_exeext
5973 if { (eval echo "$as_me:5973: \"$ac_link\"") >&5
5974 (eval $ac_link) 2>&5
5976 echo "$as_me:5976: \$? = $ac_status" >&5
5977 (exit $ac_status); } &&
5978 { ac_try='test -s conftest$ac_exeext'
5979 { (eval echo "$as_me:5979: \"$ac_try\"") >&5
5982 echo "$as_me:5982: \$? = $ac_status" >&5
5983 (exit $ac_status); }; }; then
5986 echo "$as_me: failed program was:" >&5
5987 cat conftest.$ac_ext >&5
5990 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5991 echo "$as_me:5991: result: $cf_result" >&5
5992 echo "${ECHO_T}$cf_result" >&6
5993 test $cf_result = no && { { echo "$as_me:5993: error: Cannot link curses library" >&5
5994 echo "$as_me: error: Cannot link curses library" >&2;}
5995 { (exit 1); exit 1; }; }
5996 elif test "$cf_curs_lib" = "$cf_term_lib" ; then
5998 elif test "$cf_term_lib" != predefined ; then
5999 echo "$as_me:5999: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
6000 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
6001 cat >conftest.$ac_ext <<_ACEOF
6002 #line 6002 "configure"
6003 #include "confdefs.h"
6004 #include <${cf_cv_ncurses_header:-curses.h}>
6008 initscr(); tgoto((char *)0, 0, 0);
6013 rm -f conftest.$ac_objext conftest$ac_exeext
6014 if { (eval echo "$as_me:6014: \"$ac_link\"") >&5
6015 (eval $ac_link) 2>&5
6017 echo "$as_me:6017: \$? = $ac_status" >&5
6018 (exit $ac_status); } &&
6019 { ac_try='test -s conftest$ac_exeext'
6020 { (eval echo "$as_me:6020: \"$ac_try\"") >&5
6023 echo "$as_me:6023: \$? = $ac_status" >&5
6024 (exit $ac_status); }; }; then
6027 echo "$as_me: failed program was:" >&5
6028 cat conftest.$ac_ext >&5
6030 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
6031 cat >conftest.$ac_ext <<_ACEOF
6032 #line 6032 "configure"
6033 #include "confdefs.h"
6034 #include <${cf_cv_ncurses_header:-curses.h}>
6043 rm -f conftest.$ac_objext conftest$ac_exeext
6044 if { (eval echo "$as_me:6044: \"$ac_link\"") >&5
6045 (eval $ac_link) 2>&5
6047 echo "$as_me:6047: \$? = $ac_status" >&5
6048 (exit $ac_status); } &&
6049 { ac_try='test -s conftest$ac_exeext'
6050 { (eval echo "$as_me:6050: \"$ac_try\"") >&5
6053 echo "$as_me:6053: \$? = $ac_status" >&5
6054 (exit $ac_status); }; }; then
6057 echo "$as_me: failed program was:" >&5
6058 cat conftest.$ac_ext >&5
6061 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6065 echo "$as_me:6065: result: $cf_result" >&5
6066 echo "${ECHO_T}$cf_result" >&6
6074 echo "$as_me:6074: checking for multibyte character support" >&5
6075 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
6076 if test "${cf_cv_utf8_lib+set}" = set; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6080 cf_save_LIBS="$LIBS"
6081 cat >conftest.$ac_ext <<_ACEOF
6082 #line 6082 "configure"
6083 #include "confdefs.h"
6094 rm -f conftest.$ac_objext conftest$ac_exeext
6095 if { (eval echo "$as_me:6095: \"$ac_link\"") >&5
6096 (eval $ac_link) 2>&5
6098 echo "$as_me:6098: \$? = $ac_status" >&5
6099 (exit $ac_status); } &&
6100 { ac_try='test -s conftest$ac_exeext'
6101 { (eval echo "$as_me:6101: \"$ac_try\"") >&5
6104 echo "$as_me:6104: \$? = $ac_status" >&5
6105 (exit $ac_status); }; }; then
6108 echo "$as_me: failed program was:" >&5
6109 cat conftest.$ac_ext >&5
6111 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
6112 # will be set on completion of the AC_TRY_LINK below.
6113 cf_cv_header_path_utf8=
6114 cf_cv_library_path_utf8=
6116 echo "${as_me:-configure}:6116: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
6118 cf_save_LIBS="$LIBS"
6120 cat >conftest.$ac_ext <<_ACEOF
6121 #line 6121 "configure"
6122 #include "confdefs.h"
6124 #include <libutf8.h>
6133 rm -f conftest.$ac_objext conftest$ac_exeext
6134 if { (eval echo "$as_me:6134: \"$ac_link\"") >&5
6135 (eval $ac_link) 2>&5
6137 echo "$as_me:6137: \$? = $ac_status" >&5
6138 (exit $ac_status); } &&
6139 { ac_try='test -s conftest$ac_exeext'
6140 { (eval echo "$as_me:6140: \"$ac_try\"") >&5
6143 echo "$as_me:6143: \$? = $ac_status" >&5
6144 (exit $ac_status); }; }; then
6146 cf_cv_find_linkage_utf8=yes
6147 cf_cv_header_path_utf8=/usr/include
6148 cf_cv_library_path_utf8=/usr/lib
6151 echo "$as_me: failed program was:" >&5
6152 cat conftest.$ac_ext >&5
6154 LIBS="-lutf8 $cf_save_LIBS"
6156 cat >conftest.$ac_ext <<_ACEOF
6157 #line 6157 "configure"
6158 #include "confdefs.h"
6160 #include <libutf8.h>
6169 rm -f conftest.$ac_objext conftest$ac_exeext
6170 if { (eval echo "$as_me:6170: \"$ac_link\"") >&5
6171 (eval $ac_link) 2>&5
6173 echo "$as_me:6173: \$? = $ac_status" >&5
6174 (exit $ac_status); } &&
6175 { ac_try='test -s conftest$ac_exeext'
6176 { (eval echo "$as_me:6176: \"$ac_try\"") >&5
6179 echo "$as_me:6179: \$? = $ac_status" >&5
6180 (exit $ac_status); }; }; then
6182 cf_cv_find_linkage_utf8=yes
6183 cf_cv_header_path_utf8=/usr/include
6184 cf_cv_library_path_utf8=/usr/lib
6185 cf_cv_library_file_utf8="-lutf8"
6188 echo "$as_me: failed program was:" >&5
6189 cat conftest.$ac_ext >&5
6191 cf_cv_find_linkage_utf8=no
6192 LIBS="$cf_save_LIBS"
6194 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
6196 echo "${as_me:-configure}:6196: testing find linkage for utf8 library ..." 1>&5
6198 echo "${as_me:-configure}:6198: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
6200 cf_save_CPPFLAGS="$CPPFLAGS"
6201 cf_test_CPPFLAGS="$CPPFLAGS"
6205 # collect the current set of include-directories from compiler flags
6206 cf_header_path_list=""
6207 if test -n "${CFLAGS}${CPPFLAGS}" ; then
6208 for cf_header_path in $CPPFLAGS $CFLAGS
6210 case $cf_header_path in
6212 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
6214 test "x$cf_header_path" != "xNONE" && \
6215 test -d "$cf_header_path" && \
6217 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
6218 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
6219 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
6220 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
6221 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
6222 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
6225 cf_header_path_list="$cf_header_path_list $cf_search"
6231 # add the variations for the package we are looking for
6235 test "x$prefix" != "xNONE" && \
6236 test -d "$prefix" && \
6238 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
6239 test -d $prefix/include && cf_search="$cf_search $prefix/include"
6240 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
6241 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
6242 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
6243 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
6246 for cf_subdir_prefix in \
6255 test "x$cf_subdir_prefix" != "x$prefix" && \
6256 test -d "$cf_subdir_prefix" && \
6257 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
6258 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
6259 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
6260 test -d $cf_subdir_prefix/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
6261 test -d $cf_subdir_prefix/include/utf8/include && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
6262 test -d $cf_subdir_prefix/utf8/include && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
6263 test -d $cf_subdir_prefix/utf8/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
6268 test "$includedir" != NONE && \
6269 test "$includedir" != "/usr/include" && \
6270 test -d "$includedir" && {
6271 test -d $includedir && cf_search="$cf_search $includedir"
6272 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
6275 test "$oldincludedir" != NONE && \
6276 test "$oldincludedir" != "/usr/include" && \
6277 test -d "$oldincludedir" && {
6278 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
6279 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
6282 cf_search="$cf_search $cf_header_path_list"
6284 for cf_cv_header_path_utf8 in $cf_search
6286 if test -d $cf_cv_header_path_utf8 ; then
6287 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
6289 echo "${as_me:-configure}:6289: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
6291 CPPFLAGS="$cf_save_CPPFLAGS -I$cf_cv_header_path_utf8"
6292 cat >conftest.$ac_ext <<_ACEOF
6293 #line 6293 "configure"
6294 #include "confdefs.h"
6296 #include <libutf8.h>
6305 rm -f conftest.$ac_objext
6306 if { (eval echo "$as_me:6306: \"$ac_compile\"") >&5
6307 (eval $ac_compile) 2>&5
6309 echo "$as_me:6309: \$? = $ac_status" >&5
6310 (exit $ac_status); } &&
6311 { ac_try='test -s conftest.$ac_objext'
6312 { (eval echo "$as_me:6312: \"$ac_try\"") >&5
6315 echo "$as_me:6315: \$? = $ac_status" >&5
6316 (exit $ac_status); }; }; then
6318 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
6320 echo "${as_me:-configure}:6320: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
6322 cf_cv_find_linkage_utf8=maybe
6323 cf_test_CPPFLAGS="$CPPFLAGS"
6326 echo "$as_me: failed program was:" >&5
6327 cat conftest.$ac_ext >&5
6329 CPPFLAGS="$cf_save_CPPFLAGS"
6332 rm -f conftest.$ac_objext conftest.$ac_ext
6336 if test "$cf_cv_find_linkage_utf8" = maybe ; then
6338 echo "${as_me:-configure}:6338: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
6340 cf_save_LIBS="$LIBS"
6341 cf_save_LDFLAGS="$LDFLAGS"
6343 if test "$cf_cv_find_linkage_utf8" != yes ; then
6346 cf_library_path_list=""
6347 if test -n "${LDFLAGS}${LIBS}" ; then
6348 for cf_library_path in $LDFLAGS $LIBS
6350 case $cf_library_path in
6352 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
6354 test "x$cf_library_path" != "xNONE" && \
6355 test -d "$cf_library_path" && \
6357 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
6358 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
6359 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
6360 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
6361 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
6362 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
6365 cf_library_path_list="$cf_library_path_list $cf_search"
6373 test "x$prefix" != "xNONE" && \
6374 test -d "$prefix" && \
6376 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
6377 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
6378 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
6379 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
6380 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
6381 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
6384 for cf_subdir_prefix in \
6393 test "x$cf_subdir_prefix" != "x$prefix" && \
6394 test -d "$cf_subdir_prefix" && \
6395 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
6396 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
6397 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
6398 test -d $cf_subdir_prefix/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
6399 test -d $cf_subdir_prefix/lib/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
6400 test -d $cf_subdir_prefix/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
6401 test -d $cf_subdir_prefix/utf8/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
6406 cf_search="$cf_library_path_list $cf_search"
6408 for cf_cv_library_path_utf8 in $cf_search
6410 if test -d $cf_cv_library_path_utf8 ; then
6411 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
6413 echo "${as_me:-configure}:6413: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
6415 CPPFLAGS="$cf_test_CPPFLAGS"
6416 LIBS="-lutf8 $cf_save_LIBS"
6417 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
6418 cat >conftest.$ac_ext <<_ACEOF
6419 #line 6419 "configure"
6420 #include "confdefs.h"
6422 #include <libutf8.h>
6431 rm -f conftest.$ac_objext conftest$ac_exeext
6432 if { (eval echo "$as_me:6432: \"$ac_link\"") >&5
6433 (eval $ac_link) 2>&5
6435 echo "$as_me:6435: \$? = $ac_status" >&5
6436 (exit $ac_status); } &&
6437 { ac_try='test -s conftest$ac_exeext'
6438 { (eval echo "$as_me:6438: \"$ac_try\"") >&5
6441 echo "$as_me:6441: \$? = $ac_status" >&5
6442 (exit $ac_status); }; }; then
6444 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
6446 echo "${as_me:-configure}:6446: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
6448 cf_cv_find_linkage_utf8=yes
6449 cf_cv_library_file_utf8="-lutf8"
6452 echo "$as_me: failed program was:" >&5
6453 cat conftest.$ac_ext >&5
6455 CPPFLAGS="$cf_save_CPPFLAGS"
6456 LIBS="$cf_save_LIBS"
6457 LDFLAGS="$cf_save_LDFLAGS"
6460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6463 CPPFLAGS="$cf_save_CPPFLAGS"
6464 LDFLAGS="$cf_save_LDFLAGS"
6468 cf_cv_find_linkage_utf8=no
6472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6475 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6477 LIBS="$cf_save_LIBS"
6479 if test "$cf_cv_find_linkage_utf8" = yes ; then
6480 cf_cv_utf8_lib=add-on
6486 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6488 echo "$as_me:6488: result: $cf_cv_utf8_lib" >&5
6489 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
6491 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
6493 if test "$cf_cv_utf8_lib" = "add-on" ; then
6495 cat >>confdefs.h <<\EOF
6496 #define HAVE_LIBUTF8_H 1
6499 if test -n "$cf_cv_header_path_utf8" ; then
6500 for cf_add_incdir in $cf_cv_header_path_utf8
6502 while test $cf_add_incdir != /usr/include
6504 if test -d $cf_add_incdir
6507 if test -n "$CFLAGS$CPPFLAGS" ; then
6508 # a loop is needed to ensure we can add subdirs of existing dirs
6509 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6510 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6511 cf_have_incdir=yes; break
6516 if test "$cf_have_incdir" = no ; then
6517 if test "$cf_add_incdir" = /usr/local/include ; then
6518 if test "$GCC" = yes
6520 cf_save_CPPFLAGS=$CPPFLAGS
6521 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6522 cat >conftest.$ac_ext <<_ACEOF
6523 #line 6523 "configure"
6524 #include "confdefs.h"
6534 rm -f conftest.$ac_objext
6535 if { (eval echo "$as_me:6535: \"$ac_compile\"") >&5
6536 (eval $ac_compile) 2>&5
6538 echo "$as_me:6538: \$? = $ac_status" >&5
6539 (exit $ac_status); } &&
6540 { ac_try='test -s conftest.$ac_objext'
6541 { (eval echo "$as_me:6541: \"$ac_try\"") >&5
6544 echo "$as_me:6544: \$? = $ac_status" >&5
6545 (exit $ac_status); }; }; then
6548 echo "$as_me: failed program was:" >&5
6549 cat conftest.$ac_ext >&5
6552 rm -f conftest.$ac_objext conftest.$ac_ext
6553 CPPFLAGS=$cf_save_CPPFLAGS
6558 if test "$cf_have_incdir" = no ; then
6559 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
6561 echo "${as_me:-configure}:6561: testing adding $cf_add_incdir to include-path ..." 1>&5
6563 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6565 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
6566 test "$cf_top_incdir" = "$cf_add_incdir" && break
6567 cf_add_incdir="$cf_top_incdir"
6578 if test -n "$cf_cv_library_path_utf8" ; then
6579 for cf_add_libdir in $cf_cv_library_path_utf8
6581 if test $cf_add_libdir = /usr/lib ; then
6583 elif test -d $cf_add_libdir
6586 if test -n "$LDFLAGS$LIBS" ; then
6587 # a loop is needed to ensure we can add subdirs of existing dirs
6588 for cf_test_libdir in $LDFLAGS $LIBS ; do
6589 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
6590 cf_have_libdir=yes; break
6594 if test "$cf_have_libdir" = no ; then
6595 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
6597 echo "${as_me:-configure}:6597: testing adding $cf_add_libdir to library-path ..." 1>&5
6599 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
6605 cf_add_libs="$cf_cv_library_file_utf8"
6606 # Filter out duplicates - this happens with badly-designed ".pc" files...
6607 for cf_add_1lib in $LIBS
6609 for cf_add_2lib in $cf_add_libs
6611 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6617 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6623 cf_ncuconfig_root=$cf_cv_screen
6624 cf_have_ncuconfig=no
6626 if test "x${PKG_CONFIG:=none}" != xnone; then
6627 echo "$as_me:6627: checking pkg-config for $cf_ncuconfig_root" >&5
6628 echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
6629 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
6630 echo "$as_me:6630: result: yes" >&5
6631 echo "${ECHO_T}yes" >&6
6633 echo "$as_me:6633: checking if the $cf_ncuconfig_root package files work" >&5
6634 echo $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
6635 cf_have_ncuconfig=unknown
6637 cf_save_CPPFLAGS="$CPPFLAGS"
6638 cf_save_LIBS="$LIBS"
6640 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG --cflags $cf_ncuconfig_root`"
6642 cf_add_libs="`$PKG_CONFIG --libs $cf_ncuconfig_root`"
6643 # Filter out duplicates - this happens with badly-designed ".pc" files...
6644 for cf_add_1lib in $LIBS
6646 for cf_add_2lib in $cf_add_libs
6648 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6654 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6658 cat >conftest.$ac_ext <<_ACEOF
6659 #line 6659 "configure"
6660 #include "confdefs.h"
6661 #include <${cf_cv_ncurses_header:-curses.h}>
6665 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
6670 rm -f conftest.$ac_objext conftest$ac_exeext
6671 if { (eval echo "$as_me:6671: \"$ac_link\"") >&5
6672 (eval $ac_link) 2>&5
6674 echo "$as_me:6674: \$? = $ac_status" >&5
6675 (exit $ac_status); } &&
6676 { ac_try='test -s conftest$ac_exeext'
6677 { (eval echo "$as_me:6677: \"$ac_try\"") >&5
6680 echo "$as_me:6680: \$? = $ac_status" >&5
6681 (exit $ac_status); }; }; then
6682 if test "$cross_compiling" = yes; then
6683 cf_have_ncuconfig=maybe
6685 cat >conftest.$ac_ext <<_ACEOF
6686 #line 6686 "configure"
6687 #include "confdefs.h"
6688 #include <${cf_cv_ncurses_header:-curses.h}>
6690 { char *xx = curses_version(); return (xx == 0); }
6692 rm -f conftest$ac_exeext
6693 if { (eval echo "$as_me:6693: \"$ac_link\"") >&5
6694 (eval $ac_link) 2>&5
6696 echo "$as_me:6696: \$? = $ac_status" >&5
6697 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6698 { (eval echo "$as_me:6698: \"$ac_try\"") >&5
6701 echo "$as_me:6701: \$? = $ac_status" >&5
6702 (exit $ac_status); }; }; then
6703 cf_have_ncuconfig=yes
6705 echo "$as_me: program exited with status $ac_status" >&5
6706 echo "$as_me: failed program was:" >&5
6707 cat conftest.$ac_ext >&5
6708 cf_have_ncuconfig=no
6710 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6713 echo "$as_me: failed program was:" >&5
6714 cat conftest.$ac_ext >&5
6715 cf_have_ncuconfig=no
6717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6718 echo "$as_me:6718: result: $cf_have_ncuconfig" >&5
6719 echo "${ECHO_T}$cf_have_ncuconfig" >&6
6720 test "$cf_have_ncuconfig" = maybe && cf_have_ncuconfig=yes
6721 if test "$cf_have_ncuconfig" != "yes"
6723 CPPFLAGS="$cf_save_CPPFLAGS"
6724 LIBS="$cf_save_LIBS"
6725 NCURSES_CONFIG_PKG=none
6728 cat >>confdefs.h <<\EOF
6732 NCURSES_CONFIG_PKG=$cf_ncuconfig_root
6736 echo "$as_me:6736: result: no" >&5
6737 echo "${ECHO_T}no" >&6
6738 NCURSES_CONFIG_PKG=none
6741 NCURSES_CONFIG_PKG=none
6744 if test "x$cf_have_ncuconfig" = "xno"; then
6745 echo "Looking for ${cf_ncuconfig_root}-config"
6747 if test -n "$ac_tool_prefix"; then
6748 for ac_prog in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
6750 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6751 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6752 echo "$as_me:6752: checking for $ac_word" >&5
6753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6754 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
6755 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 if test -n "$NCURSES_CONFIG"; then
6758 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
6760 ac_save_IFS=$IFS; IFS=$ac_path_separator
6762 for ac_dir in $ac_dummy; do
6764 test -z "$ac_dir" && ac_dir=.
6765 $as_executable_p "$ac_dir/$ac_word" || continue
6766 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
6767 echo "$as_me:6767: found $ac_dir/$ac_word" >&5
6773 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
6774 if test -n "$NCURSES_CONFIG"; then
6775 echo "$as_me:6775: result: $NCURSES_CONFIG" >&5
6776 echo "${ECHO_T}$NCURSES_CONFIG" >&6
6778 echo "$as_me:6778: result: no" >&5
6779 echo "${ECHO_T}no" >&6
6782 test -n "$NCURSES_CONFIG" && break
6785 if test -z "$NCURSES_CONFIG"; then
6786 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
6787 for ac_prog in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
6789 # Extract the first word of "$ac_prog", so it can be a program name with args.
6790 set dummy $ac_prog; ac_word=$2
6791 echo "$as_me:6791: checking for $ac_word" >&5
6792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6793 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
6794 echo $ECHO_N "(cached) $ECHO_C" >&6
6796 if test -n "$ac_ct_NCURSES_CONFIG"; then
6797 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
6799 ac_save_IFS=$IFS; IFS=$ac_path_separator
6801 for ac_dir in $ac_dummy; do
6803 test -z "$ac_dir" && ac_dir=.
6804 $as_executable_p "$ac_dir/$ac_word" || continue
6805 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
6806 echo "$as_me:6806: found $ac_dir/$ac_word" >&5
6812 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
6813 if test -n "$ac_ct_NCURSES_CONFIG"; then
6814 echo "$as_me:6814: result: $ac_ct_NCURSES_CONFIG" >&5
6815 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
6817 echo "$as_me:6817: result: no" >&5
6818 echo "${ECHO_T}no" >&6
6821 test -n "$ac_ct_NCURSES_CONFIG" && break
6823 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
6825 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
6828 if test "$NCURSES_CONFIG" != none ; then
6830 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
6832 cf_add_libs="`$NCURSES_CONFIG --libs`"
6833 # Filter out duplicates - this happens with badly-designed ".pc" files...
6834 for cf_add_1lib in $LIBS
6836 for cf_add_2lib in $cf_add_libs
6838 if test "x$cf_add_1lib" = "x$cf_add_2lib"
6844 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
6848 # even with config script, some packages use no-override for curses.h
6850 echo "$as_me:6850: checking if we have identified curses headers" >&5
6851 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
6852 if test "${cf_cv_ncurses_header+set}" = set; then
6853 echo $ECHO_N "(cached) $ECHO_C" >&6
6856 cf_cv_ncurses_header=none
6858 ncurses.h $cf_cv_screen/ncurses.h \
6859 curses.h $cf_cv_screen/curses.h
6861 cat >conftest.$ac_ext <<_ACEOF
6862 #line 6862 "configure"
6863 #include "confdefs.h"
6864 #include <${cf_header}>
6868 initscr(); tgoto("?", 0,0)
6873 rm -f conftest.$ac_objext
6874 if { (eval echo "$as_me:6874: \"$ac_compile\"") >&5
6875 (eval $ac_compile) 2>&5
6877 echo "$as_me:6877: \$? = $ac_status" >&5
6878 (exit $ac_status); } &&
6879 { ac_try='test -s conftest.$ac_objext'
6880 { (eval echo "$as_me:6880: \"$ac_try\"") >&5
6883 echo "$as_me:6883: \$? = $ac_status" >&5
6884 (exit $ac_status); }; }; then
6885 cf_cv_ncurses_header=$cf_header; break
6887 echo "$as_me: failed program was:" >&5
6888 cat conftest.$ac_ext >&5
6890 rm -f conftest.$ac_objext conftest.$ac_ext
6894 echo "$as_me:6894: result: $cf_cv_ncurses_header" >&5
6895 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
6897 if test "$cf_cv_ncurses_header" = none ; then
6898 { { echo "$as_me:6898: error: No curses header-files found" >&5
6899 echo "$as_me: error: No curses header-files found" >&2;}
6900 { (exit 1); exit 1; }; }
6903 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
6905 for ac_header in $cf_cv_ncurses_header
6907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6908 echo "$as_me:6908: checking for $ac_header" >&5
6909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6911 echo $ECHO_N "(cached) $ECHO_C" >&6
6913 cat >conftest.$ac_ext <<_ACEOF
6914 #line 6914 "configure"
6915 #include "confdefs.h"
6916 #include <$ac_header>
6918 if { (eval echo "$as_me:6918: \"$ac_cpp conftest.$ac_ext\"") >&5
6919 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6921 egrep -v '^ *\+' conftest.er1 >conftest.err
6923 cat conftest.err >&5
6924 echo "$as_me:6924: \$? = $ac_status" >&5
6925 (exit $ac_status); } >/dev/null; then
6926 if test -s conftest.err; then
6927 ac_cpp_err=$ac_c_preproc_warn_flag
6934 if test -z "$ac_cpp_err"; then
6935 eval "$as_ac_Header=yes"
6937 echo "$as_me: failed program was:" >&5
6938 cat conftest.$ac_ext >&5
6939 eval "$as_ac_Header=no"
6941 rm -f conftest.err conftest.$ac_ext
6943 echo "$as_me:6943: result: `eval echo '${'$as_ac_Header'}'`" >&5
6944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6946 cat >>confdefs.h <<EOF
6947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6953 cat >>confdefs.h <<\EOF
6957 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
6959 cat >>confdefs.h <<EOF
6960 #define $cf_nculib_ROOT 1
6963 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
6967 cf_ncuhdr_root=$cf_cv_screen
6969 test -n "$cf_cv_curses_dir" && \
6970 test "$cf_cv_curses_dir" != "no" && { \
6972 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
6973 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
6975 while test $cf_add_incdir != /usr/include
6977 if test -d $cf_add_incdir
6980 if test -n "$CFLAGS$CPPFLAGS" ; then
6981 # a loop is needed to ensure we can add subdirs of existing dirs
6982 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
6983 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
6984 cf_have_incdir=yes; break
6989 if test "$cf_have_incdir" = no ; then
6990 if test "$cf_add_incdir" = /usr/local/include ; then
6991 if test "$GCC" = yes
6993 cf_save_CPPFLAGS=$CPPFLAGS
6994 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
6995 cat >conftest.$ac_ext <<_ACEOF
6996 #line 6996 "configure"
6997 #include "confdefs.h"
7007 rm -f conftest.$ac_objext
7008 if { (eval echo "$as_me:7008: \"$ac_compile\"") >&5
7009 (eval $ac_compile) 2>&5
7011 echo "$as_me:7011: \$? = $ac_status" >&5
7012 (exit $ac_status); } &&
7013 { ac_try='test -s conftest.$ac_objext'
7014 { (eval echo "$as_me:7014: \"$ac_try\"") >&5
7017 echo "$as_me:7017: \$? = $ac_status" >&5
7018 (exit $ac_status); }; }; then
7021 echo "$as_me: failed program was:" >&5
7022 cat conftest.$ac_ext >&5
7025 rm -f conftest.$ac_objext conftest.$ac_ext
7026 CPPFLAGS=$cf_save_CPPFLAGS
7031 if test "$cf_have_incdir" = no ; then
7032 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7034 echo "${as_me:-configure}:7034: testing adding $cf_add_incdir to include-path ..." 1>&5
7036 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7038 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
7039 test "$cf_top_incdir" = "$cf_add_incdir" && break
7040 cf_add_incdir="$cf_top_incdir"
7053 echo "$as_me:7053: checking for $cf_ncuhdr_root header in include-path" >&5
7054 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
7055 if test "${cf_cv_ncurses_h+set}" = set; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
7059 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
7060 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
7061 for cf_header in $cf_header_list
7064 cat >conftest.$ac_ext <<_ACEOF
7065 #line 7065 "configure"
7066 #include "confdefs.h"
7068 #include <$cf_header>
7073 #ifdef NCURSES_VERSION
7075 printf("%s\n", NCURSES_VERSION);
7088 rm -f conftest.$ac_objext
7089 if { (eval echo "$as_me:7089: \"$ac_compile\"") >&5
7090 (eval $ac_compile) 2>&5
7092 echo "$as_me:7092: \$? = $ac_status" >&5
7093 (exit $ac_status); } &&
7094 { ac_try='test -s conftest.$ac_objext'
7095 { (eval echo "$as_me:7095: \"$ac_try\"") >&5
7098 echo "$as_me:7098: \$? = $ac_status" >&5
7099 (exit $ac_status); }; }; then
7100 cf_cv_ncurses_h=$cf_header
7103 echo "$as_me: failed program was:" >&5
7104 cat conftest.$ac_ext >&5
7107 rm -f conftest.$ac_objext conftest.$ac_ext
7109 test "$cf_cv_ncurses_h" != no && break
7113 echo "$as_me:7113: result: $cf_cv_ncurses_h" >&5
7114 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
7116 if test "$cf_cv_ncurses_h" != no ; then
7117 cf_cv_ncurses_header=$cf_cv_ncurses_h
7120 echo "$as_me:7120: checking for $cf_ncuhdr_root include-path" >&5
7121 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
7122 if test "${cf_cv_ncurses_h2+set}" = set; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7126 test -n "$verbose" && echo
7130 # collect the current set of include-directories from compiler flags
7131 cf_header_path_list=""
7132 if test -n "${CFLAGS}${CPPFLAGS}" ; then
7133 for cf_header_path in $CPPFLAGS $CFLAGS
7135 case $cf_header_path in
7137 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
7139 test "x$cf_header_path" != "xNONE" && \
7140 test -d "$cf_header_path" && \
7142 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
7143 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
7144 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
7145 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
7146 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
7147 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"
7150 cf_header_path_list="$cf_header_path_list $cf_search"
7156 # add the variations for the package we are looking for
7160 test "x$prefix" != "xNONE" && \
7161 test -d "$prefix" && \
7163 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
7164 test -d $prefix/include && cf_search="$cf_search $prefix/include"
7165 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
7166 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
7167 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
7168 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
7171 for cf_subdir_prefix in \
7180 test "x$cf_subdir_prefix" != "x$prefix" && \
7181 test -d "$cf_subdir_prefix" && \
7182 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
7183 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
7184 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
7185 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root"
7186 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root/include"
7187 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include"
7188 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
7193 test "$includedir" != NONE && \
7194 test "$includedir" != "/usr/include" && \
7195 test -d "$includedir" && {
7196 test -d $includedir && cf_search="$cf_search $includedir"
7197 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
7200 test "$oldincludedir" != NONE && \
7201 test "$oldincludedir" != "/usr/include" && \
7202 test -d "$oldincludedir" && {
7203 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
7204 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
7207 cf_search="$cf_search $cf_header_path_list"
7209 test -n "$verbose" && echo search path $cf_search
7210 cf_save2_CPPFLAGS="$CPPFLAGS"
7211 for cf_incdir in $cf_search
7214 if test -n "$cf_incdir" ; then
7215 for cf_add_incdir in $cf_incdir
7217 while test $cf_add_incdir != /usr/include
7219 if test -d $cf_add_incdir
7222 if test -n "$CFLAGS$CPPFLAGS" ; then
7223 # a loop is needed to ensure we can add subdirs of existing dirs
7224 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7225 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7226 cf_have_incdir=yes; break
7231 if test "$cf_have_incdir" = no ; then
7232 if test "$cf_add_incdir" = /usr/local/include ; then
7233 if test "$GCC" = yes
7235 cf_save_CPPFLAGS=$CPPFLAGS
7236 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7237 cat >conftest.$ac_ext <<_ACEOF
7238 #line 7238 "configure"
7239 #include "confdefs.h"
7249 rm -f conftest.$ac_objext
7250 if { (eval echo "$as_me:7250: \"$ac_compile\"") >&5
7251 (eval $ac_compile) 2>&5
7253 echo "$as_me:7253: \$? = $ac_status" >&5
7254 (exit $ac_status); } &&
7255 { ac_try='test -s conftest.$ac_objext'
7256 { (eval echo "$as_me:7256: \"$ac_try\"") >&5
7259 echo "$as_me:7259: \$? = $ac_status" >&5
7260 (exit $ac_status); }; }; then
7263 echo "$as_me: failed program was:" >&5
7264 cat conftest.$ac_ext >&5
7267 rm -f conftest.$ac_objext conftest.$ac_ext
7268 CPPFLAGS=$cf_save_CPPFLAGS
7273 if test "$cf_have_incdir" = no ; then
7274 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7276 echo "${as_me:-configure}:7276: testing adding $cf_add_incdir to include-path ..." 1>&5
7278 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7280 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
7281 test "$cf_top_incdir" = "$cf_add_incdir" && break
7282 cf_add_incdir="$cf_top_incdir"
7298 cat >conftest.$ac_ext <<_ACEOF
7299 #line 7299 "configure"
7300 #include "confdefs.h"
7302 #include <$cf_header>
7307 #ifdef NCURSES_VERSION
7309 printf("%s\n", NCURSES_VERSION);
7322 rm -f conftest.$ac_objext
7323 if { (eval echo "$as_me:7323: \"$ac_compile\"") >&5
7324 (eval $ac_compile) 2>&5
7326 echo "$as_me:7326: \$? = $ac_status" >&5
7327 (exit $ac_status); } &&
7328 { ac_try='test -s conftest.$ac_objext'
7329 { (eval echo "$as_me:7329: \"$ac_try\"") >&5
7332 echo "$as_me:7332: \$? = $ac_status" >&5
7333 (exit $ac_status); }; }; then
7334 cf_cv_ncurses_h2=$cf_header
7337 echo "$as_me: failed program was:" >&5
7338 cat conftest.$ac_ext >&5
7341 rm -f conftest.$ac_objext conftest.$ac_ext
7343 if test "$cf_cv_ncurses_h2" != no ; then
7344 cf_cv_ncurses_h2=$cf_incdir/$cf_header
7345 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
7348 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
7350 CPPFLAGS="$cf_save2_CPPFLAGS"
7351 test "$cf_cv_ncurses_h2" != no && break
7353 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:7353: error: not found" >&5
7354 echo "$as_me: error: not found" >&2;}
7355 { (exit 1); exit 1; }; }
7358 echo "$as_me:7358: result: $cf_cv_ncurses_h2" >&5
7359 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
7361 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
7362 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
7363 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
7364 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
7367 if test -n "$cf_1st_incdir" ; then
7368 for cf_add_incdir in $cf_1st_incdir
7370 while test $cf_add_incdir != /usr/include
7372 if test -d $cf_add_incdir
7375 if test -n "$CFLAGS$CPPFLAGS" ; then
7376 # a loop is needed to ensure we can add subdirs of existing dirs
7377 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7378 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7379 cf_have_incdir=yes; break
7384 if test "$cf_have_incdir" = no ; then
7385 if test "$cf_add_incdir" = /usr/local/include ; then
7386 if test "$GCC" = yes
7388 cf_save_CPPFLAGS=$CPPFLAGS
7389 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7390 cat >conftest.$ac_ext <<_ACEOF
7391 #line 7391 "configure"
7392 #include "confdefs.h"
7402 rm -f conftest.$ac_objext
7403 if { (eval echo "$as_me:7403: \"$ac_compile\"") >&5
7404 (eval $ac_compile) 2>&5
7406 echo "$as_me:7406: \$? = $ac_status" >&5
7407 (exit $ac_status); } &&
7408 { ac_try='test -s conftest.$ac_objext'
7409 { (eval echo "$as_me:7409: \"$ac_try\"") >&5
7412 echo "$as_me:7412: \$? = $ac_status" >&5
7413 (exit $ac_status); }; }; then
7416 echo "$as_me: failed program was:" >&5
7417 cat conftest.$ac_ext >&5
7420 rm -f conftest.$ac_objext conftest.$ac_ext
7421 CPPFLAGS=$cf_save_CPPFLAGS
7426 if test "$cf_have_incdir" = no ; then
7427 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7429 echo "${as_me:-configure}:7429: testing adding $cf_add_incdir to include-path ..." 1>&5
7431 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7433 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
7434 test "$cf_top_incdir" = "$cf_add_incdir" && break
7435 cf_add_incdir="$cf_top_incdir"
7448 # Set definitions to allow ifdef'ing for ncurses.h
7450 case $cf_cv_ncurses_header in
7453 cat >>confdefs.h <<\EOF
7454 #define HAVE_NCURSES_H 1
7460 case $cf_cv_ncurses_header in
7461 (ncurses/curses.h|ncurses/ncurses.h)
7463 cat >>confdefs.h <<\EOF
7464 #define HAVE_NCURSES_NCURSES_H 1
7468 (ncursesw/curses.h|ncursesw/ncurses.h)
7470 cat >>confdefs.h <<\EOF
7471 #define HAVE_NCURSESW_NCURSES_H 1
7477 echo "$as_me:7477: checking for terminfo header" >&5
7478 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
7479 if test "${cf_cv_term_header+set}" = set; then
7480 echo $ECHO_N "(cached) $ECHO_C" >&6
7483 case ${cf_cv_ncurses_header} in
7484 (*/ncurses.h|*/ncursesw.h)
7485 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
7488 cf_term_header=term.h
7492 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
7494 cat >conftest.$ac_ext <<_ACEOF
7495 #line 7495 "configure"
7496 #include "confdefs.h"
7498 #include <${cf_cv_ncurses_header:-curses.h}>
7504 int x = auto_left_margin
7509 rm -f conftest.$ac_objext
7510 if { (eval echo "$as_me:7510: \"$ac_compile\"") >&5
7511 (eval $ac_compile) 2>&5
7513 echo "$as_me:7513: \$? = $ac_status" >&5
7514 (exit $ac_status); } &&
7515 { ac_try='test -s conftest.$ac_objext'
7516 { (eval echo "$as_me:7516: \"$ac_try\"") >&5
7519 echo "$as_me:7519: \$? = $ac_status" >&5
7520 (exit $ac_status); }; }; then
7522 cf_cv_term_header="$cf_test"
7524 echo "$as_me: failed program was:" >&5
7525 cat conftest.$ac_ext >&5
7527 cf_cv_term_header=unknown
7530 rm -f conftest.$ac_objext conftest.$ac_ext
7531 test "$cf_cv_term_header" != unknown && break
7535 echo "$as_me:7535: result: $cf_cv_term_header" >&5
7536 echo "${ECHO_T}$cf_cv_term_header" >&6
7538 # Set definitions to allow ifdef'ing to accommodate subdirectories
7540 case $cf_cv_term_header in
7543 cat >>confdefs.h <<\EOF
7544 #define HAVE_TERM_H 1
7550 case $cf_cv_term_header in
7553 cat >>confdefs.h <<\EOF
7554 #define HAVE_NCURSES_TERM_H 1
7560 cat >>confdefs.h <<\EOF
7561 #define HAVE_NCURSESW_TERM_H 1
7567 # some applications need this, but should check for NCURSES_VERSION
7569 cat >>confdefs.h <<\EOF
7573 echo "$as_me:7573: checking for ncurses version" >&5
7574 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
7575 if test "${cf_cv_ncurses_version+set}" = set; then
7576 echo $ECHO_N "(cached) $ECHO_C" >&6
7579 cf_cv_ncurses_version=no
7582 if test "$cross_compiling" = yes; then
7584 # This will not work if the preprocessor splits the line after the
7585 # Autoconf token. The 'unproto' program does that.
7586 cat > conftest.$ac_ext <<EOF
7587 #include <${cf_cv_ncurses_header:-curses.h}>
7589 #ifdef NCURSES_VERSION
7590 Autoconf NCURSES_VERSION
7598 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
7599 { (eval echo "$as_me:7599: \"$cf_try\"") >&5
7602 echo "$as_me:7602: \$? = $ac_status" >&5
7603 (exit $ac_status); }
7604 if test -f conftest.out ; then
7605 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
7606 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
7611 cat >conftest.$ac_ext <<_ACEOF
7612 #line 7612 "configure"
7613 #include "confdefs.h"
7615 #include <${cf_cv_ncurses_header:-curses.h}>
7619 FILE *fp = fopen("$cf_tempfile", "w");
7620 #ifdef NCURSES_VERSION
7621 # ifdef NCURSES_VERSION_PATCH
7622 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
7624 fprintf(fp, "%s\n", NCURSES_VERSION);
7628 fprintf(fp, "old\n");
7633 ${cf_cv_main_return:-return}(0);
7636 rm -f conftest$ac_exeext
7637 if { (eval echo "$as_me:7637: \"$ac_link\"") >&5
7638 (eval $ac_link) 2>&5
7640 echo "$as_me:7640: \$? = $ac_status" >&5
7641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7642 { (eval echo "$as_me:7642: \"$ac_try\"") >&5
7645 echo "$as_me:7645: \$? = $ac_status" >&5
7646 (exit $ac_status); }; }; then
7648 cf_cv_ncurses_version=`cat $cf_tempfile`
7650 echo "$as_me: program exited with status $ac_status" >&5
7651 echo "$as_me: failed program was:" >&5
7652 cat conftest.$ac_ext >&5
7654 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7659 echo "$as_me:7659: result: $cf_cv_ncurses_version" >&5
7660 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
7661 test "$cf_cv_ncurses_version" = no ||
7662 cat >>confdefs.h <<\EOF
7666 cf_nculib_root=$cf_cv_screen
7667 # This works, except for the special case where we find gpm, but
7668 # ncurses is in a nonstandard location via $LIBS, and we really want
7671 cf_ncurses_SAVE="$LIBS"
7672 echo "$as_me:7672: checking for Gpm_Open in -lgpm" >&5
7673 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
7674 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7677 ac_check_lib_save_LIBS=$LIBS
7679 cat >conftest.$ac_ext <<_ACEOF
7680 #line 7680 "configure"
7681 #include "confdefs.h"
7683 /* Override any gcc2 internal prototype to avoid an error. */
7687 /* We use char because int might match the return type of a gcc2
7688 builtin and then its argument prototype would still apply. */
7698 rm -f conftest.$ac_objext conftest$ac_exeext
7699 if { (eval echo "$as_me:7699: \"$ac_link\"") >&5
7700 (eval $ac_link) 2>&5
7702 echo "$as_me:7702: \$? = $ac_status" >&5
7703 (exit $ac_status); } &&
7704 { ac_try='test -s conftest$ac_exeext'
7705 { (eval echo "$as_me:7705: \"$ac_try\"") >&5
7708 echo "$as_me:7708: \$? = $ac_status" >&5
7709 (exit $ac_status); }; }; then
7710 ac_cv_lib_gpm_Gpm_Open=yes
7712 echo "$as_me: failed program was:" >&5
7713 cat conftest.$ac_ext >&5
7714 ac_cv_lib_gpm_Gpm_Open=no
7716 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7717 LIBS=$ac_check_lib_save_LIBS
7719 echo "$as_me:7719: result: $ac_cv_lib_gpm_Gpm_Open" >&5
7720 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
7721 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
7722 echo "$as_me:7722: checking for initscr in -lgpm" >&5
7723 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
7724 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
7725 echo $ECHO_N "(cached) $ECHO_C" >&6
7727 ac_check_lib_save_LIBS=$LIBS
7729 cat >conftest.$ac_ext <<_ACEOF
7730 #line 7730 "configure"
7731 #include "confdefs.h"
7733 /* Override any gcc2 internal prototype to avoid an error. */
7737 /* We use char because int might match the return type of a gcc2
7738 builtin and then its argument prototype would still apply. */
7748 rm -f conftest.$ac_objext conftest$ac_exeext
7749 if { (eval echo "$as_me:7749: \"$ac_link\"") >&5
7750 (eval $ac_link) 2>&5
7752 echo "$as_me:7752: \$? = $ac_status" >&5
7753 (exit $ac_status); } &&
7754 { ac_try='test -s conftest$ac_exeext'
7755 { (eval echo "$as_me:7755: \"$ac_try\"") >&5
7758 echo "$as_me:7758: \$? = $ac_status" >&5
7759 (exit $ac_status); }; }; then
7760 ac_cv_lib_gpm_initscr=yes
7762 echo "$as_me: failed program was:" >&5
7763 cat conftest.$ac_ext >&5
7764 ac_cv_lib_gpm_initscr=no
7766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7767 LIBS=$ac_check_lib_save_LIBS
7769 echo "$as_me:7769: result: $ac_cv_lib_gpm_initscr" >&5
7770 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
7771 if test $ac_cv_lib_gpm_initscr = yes; then
7772 LIBS="$cf_ncurses_SAVE"
7774 cf_ncurses_LIBS="-lgpm"
7781 # This is only necessary if you are linking against an obsolete
7782 # version of ncurses (but it should do no harm, since it's static).
7783 if test "$cf_nculib_root" = ncurses ; then
7784 echo "$as_me:7784: checking for tgoto in -lmytinfo" >&5
7785 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
7786 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
7787 echo $ECHO_N "(cached) $ECHO_C" >&6
7789 ac_check_lib_save_LIBS=$LIBS
7790 LIBS="-lmytinfo $LIBS"
7791 cat >conftest.$ac_ext <<_ACEOF
7792 #line 7792 "configure"
7793 #include "confdefs.h"
7795 /* Override any gcc2 internal prototype to avoid an error. */
7799 /* We use char because int might match the return type of a gcc2
7800 builtin and then its argument prototype would still apply. */
7810 rm -f conftest.$ac_objext conftest$ac_exeext
7811 if { (eval echo "$as_me:7811: \"$ac_link\"") >&5
7812 (eval $ac_link) 2>&5
7814 echo "$as_me:7814: \$? = $ac_status" >&5
7815 (exit $ac_status); } &&
7816 { ac_try='test -s conftest$ac_exeext'
7817 { (eval echo "$as_me:7817: \"$ac_try\"") >&5
7820 echo "$as_me:7820: \$? = $ac_status" >&5
7821 (exit $ac_status); }; }; then
7822 ac_cv_lib_mytinfo_tgoto=yes
7824 echo "$as_me: failed program was:" >&5
7825 cat conftest.$ac_ext >&5
7826 ac_cv_lib_mytinfo_tgoto=no
7828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7829 LIBS=$ac_check_lib_save_LIBS
7831 echo "$as_me:7831: result: $ac_cv_lib_mytinfo_tgoto" >&5
7832 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
7833 if test $ac_cv_lib_mytinfo_tgoto = yes; then
7834 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
7841 cf_add_libs="$cf_ncurses_LIBS"
7842 # Filter out duplicates - this happens with badly-designed ".pc" files...
7843 for cf_add_1lib in $LIBS
7845 for cf_add_2lib in $cf_add_libs
7847 if test "x$cf_add_1lib" = "x$cf_add_2lib"
7853 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
7857 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
7860 cf_add_libs="-l$cf_nculib_root"
7861 # Filter out duplicates - this happens with badly-designed ".pc" files...
7862 for cf_add_1lib in $LIBS
7864 for cf_add_2lib in $cf_add_libs
7866 if test "x$cf_add_1lib" = "x$cf_add_2lib"
7872 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
7878 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
7880 echo "$as_me:7880: checking for initscr" >&5
7881 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
7882 if test "${ac_cv_func_initscr+set}" = set; then
7883 echo $ECHO_N "(cached) $ECHO_C" >&6
7885 cat >conftest.$ac_ext <<_ACEOF
7886 #line 7886 "configure"
7887 #include "confdefs.h"
7888 /* System header to define __stub macros and hopefully few prototypes,
7889 which can conflict with char initscr (); below. */
7891 /* Override any gcc2 internal prototype to avoid an error. */
7895 /* We use char because int might match the return type of a gcc2
7896 builtin and then its argument prototype would still apply. */
7903 /* The GNU C library defines this for functions which it implements
7904 to always fail with ENOSYS. Some functions are actually named
7905 something starting with __ and the normal name is an alias. */
7906 #if defined (__stub_initscr) || defined (__stub___initscr)
7909 f = initscr; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
7916 rm -f conftest.$ac_objext conftest$ac_exeext
7917 if { (eval echo "$as_me:7917: \"$ac_link\"") >&5
7918 (eval $ac_link) 2>&5
7920 echo "$as_me:7920: \$? = $ac_status" >&5
7921 (exit $ac_status); } &&
7922 { ac_try='test -s conftest$ac_exeext'
7923 { (eval echo "$as_me:7923: \"$ac_try\"") >&5
7926 echo "$as_me:7926: \$? = $ac_status" >&5
7927 (exit $ac_status); }; }; then
7928 ac_cv_func_initscr=yes
7930 echo "$as_me: failed program was:" >&5
7931 cat conftest.$ac_ext >&5
7932 ac_cv_func_initscr=no
7934 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7936 echo "$as_me:7936: result: $ac_cv_func_initscr" >&5
7937 echo "${ECHO_T}$ac_cv_func_initscr" >&6
7938 if test $ac_cv_func_initscr = yes; then
7939 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
7942 cf_save_LIBS="$LIBS"
7943 echo "$as_me:7943: checking for initscr in -l$cf_nculib_root" >&5
7944 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
7945 LIBS="-l$cf_nculib_root $LIBS"
7946 cat >conftest.$ac_ext <<_ACEOF
7947 #line 7947 "configure"
7948 #include "confdefs.h"
7949 #include <${cf_cv_ncurses_header:-curses.h}>
7958 rm -f conftest.$ac_objext conftest$ac_exeext
7959 if { (eval echo "$as_me:7959: \"$ac_link\"") >&5
7960 (eval $ac_link) 2>&5
7962 echo "$as_me:7962: \$? = $ac_status" >&5
7963 (exit $ac_status); } &&
7964 { ac_try='test -s conftest$ac_exeext'
7965 { (eval echo "$as_me:7965: \"$ac_try\"") >&5
7968 echo "$as_me:7968: \$? = $ac_status" >&5
7969 (exit $ac_status); }; }; then
7970 echo "$as_me:7970: result: yes" >&5
7971 echo "${ECHO_T}yes" >&6
7972 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
7975 echo "$as_me: failed program was:" >&5
7976 cat conftest.$ac_ext >&5
7977 echo "$as_me:7977: result: no" >&5
7978 echo "${ECHO_T}no" >&6
7981 cf_library_path_list=""
7982 if test -n "${LDFLAGS}${LIBS}" ; then
7983 for cf_library_path in $LDFLAGS $LIBS
7985 case $cf_library_path in
7987 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
7989 test "x$cf_library_path" != "xNONE" && \
7990 test -d "$cf_library_path" && \
7992 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
7993 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
7994 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
7995 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
7996 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
7997 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"
8000 cf_library_path_list="$cf_library_path_list $cf_search"
8008 test "x$prefix" != "xNONE" && \
8009 test -d "$prefix" && \
8011 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
8012 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
8013 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
8014 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
8015 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
8016 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
8019 for cf_subdir_prefix in \
8028 test "x$cf_subdir_prefix" != "x$prefix" && \
8029 test -d "$cf_subdir_prefix" && \
8030 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
8031 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
8032 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
8033 test -d $cf_subdir_prefix/lib/$cf_nculib_root && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root"
8034 test -d $cf_subdir_prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root/lib"
8035 test -d $cf_subdir_prefix/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib"
8036 test -d $cf_subdir_prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib/$cf_nculib_root"
8041 cf_search="$cf_library_path_list $cf_search"
8043 for cf_libdir in $cf_search
8045 echo "$as_me:8045: checking for -l$cf_nculib_root in $cf_libdir" >&5
8046 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
8047 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
8048 cat >conftest.$ac_ext <<_ACEOF
8049 #line 8049 "configure"
8050 #include "confdefs.h"
8051 #include <${cf_cv_ncurses_header:-curses.h}>
8060 rm -f conftest.$ac_objext conftest$ac_exeext
8061 if { (eval echo "$as_me:8061: \"$ac_link\"") >&5
8062 (eval $ac_link) 2>&5
8064 echo "$as_me:8064: \$? = $ac_status" >&5
8065 (exit $ac_status); } &&
8066 { ac_try='test -s conftest$ac_exeext'
8067 { (eval echo "$as_me:8067: \"$ac_try\"") >&5
8070 echo "$as_me:8070: \$? = $ac_status" >&5
8071 (exit $ac_status); }; }; then
8072 echo "$as_me:8072: result: yes" >&5
8073 echo "${ECHO_T}yes" >&6
8074 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
8077 echo "$as_me: failed program was:" >&5
8078 cat conftest.$ac_ext >&5
8079 echo "$as_me:8079: result: no" >&5
8080 echo "${ECHO_T}no" >&6
8081 LIBS="$cf_save_LIBS"
8083 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8087 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8091 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
8093 if test $cf_found_library = no ; then
8094 { { echo "$as_me:8094: error: Cannot link $cf_nculib_root library" >&5
8095 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
8096 { (exit 1); exit 1; }; }
8101 if test -n "$cf_ncurses_LIBS" ; then
8102 echo "$as_me:8102: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
8103 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
8104 cf_ncurses_SAVE="$LIBS"
8105 for p in $cf_ncurses_LIBS ; do
8106 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
8107 if test "$q" != "$LIBS" ; then
8111 cat >conftest.$ac_ext <<_ACEOF
8112 #line 8112 "configure"
8113 #include "confdefs.h"
8114 #include <${cf_cv_ncurses_header:-curses.h}>
8118 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
8123 rm -f conftest.$ac_objext conftest$ac_exeext
8124 if { (eval echo "$as_me:8124: \"$ac_link\"") >&5
8125 (eval $ac_link) 2>&5
8127 echo "$as_me:8127: \$? = $ac_status" >&5
8128 (exit $ac_status); } &&
8129 { ac_try='test -s conftest$ac_exeext'
8130 { (eval echo "$as_me:8130: \"$ac_try\"") >&5
8133 echo "$as_me:8133: \$? = $ac_status" >&5
8134 (exit $ac_status); }; }; then
8135 echo "$as_me:8135: result: yes" >&5
8136 echo "${ECHO_T}yes" >&6
8138 echo "$as_me: failed program was:" >&5
8139 cat conftest.$ac_ext >&5
8140 echo "$as_me:8140: result: no" >&5
8141 echo "${ECHO_T}no" >&6
8142 LIBS="$cf_ncurses_SAVE"
8144 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8147 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
8149 cat >>confdefs.h <<EOF
8150 #define $cf_nculib_ROOT 1
8161 cf_ncuconfig_root=$cf_cv_screen
8162 cf_have_ncuconfig=no
8164 if test "x${PKG_CONFIG:=none}" != xnone; then
8165 echo "$as_me:8165: checking pkg-config for $cf_ncuconfig_root" >&5
8166 echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
8167 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
8168 echo "$as_me:8168: result: yes" >&5
8169 echo "${ECHO_T}yes" >&6
8171 echo "$as_me:8171: checking if the $cf_ncuconfig_root package files work" >&5
8172 echo $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
8173 cf_have_ncuconfig=unknown
8175 cf_save_CPPFLAGS="$CPPFLAGS"
8176 cf_save_LIBS="$LIBS"
8178 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG --cflags $cf_ncuconfig_root`"
8180 cf_add_libs="`$PKG_CONFIG --libs $cf_ncuconfig_root`"
8181 # Filter out duplicates - this happens with badly-designed ".pc" files...
8182 for cf_add_1lib in $LIBS
8184 for cf_add_2lib in $cf_add_libs
8186 if test "x$cf_add_1lib" = "x$cf_add_2lib"
8192 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
8196 cat >conftest.$ac_ext <<_ACEOF
8197 #line 8197 "configure"
8198 #include "confdefs.h"
8199 #include <${cf_cv_ncurses_header:-curses.h}>
8203 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
8208 rm -f conftest.$ac_objext conftest$ac_exeext
8209 if { (eval echo "$as_me:8209: \"$ac_link\"") >&5
8210 (eval $ac_link) 2>&5
8212 echo "$as_me:8212: \$? = $ac_status" >&5
8213 (exit $ac_status); } &&
8214 { ac_try='test -s conftest$ac_exeext'
8215 { (eval echo "$as_me:8215: \"$ac_try\"") >&5
8218 echo "$as_me:8218: \$? = $ac_status" >&5
8219 (exit $ac_status); }; }; then
8220 if test "$cross_compiling" = yes; then
8221 cf_have_ncuconfig=maybe
8223 cat >conftest.$ac_ext <<_ACEOF
8224 #line 8224 "configure"
8225 #include "confdefs.h"
8226 #include <${cf_cv_ncurses_header:-curses.h}>
8228 { char *xx = curses_version(); return (xx == 0); }
8230 rm -f conftest$ac_exeext
8231 if { (eval echo "$as_me:8231: \"$ac_link\"") >&5
8232 (eval $ac_link) 2>&5
8234 echo "$as_me:8234: \$? = $ac_status" >&5
8235 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8236 { (eval echo "$as_me:8236: \"$ac_try\"") >&5
8239 echo "$as_me:8239: \$? = $ac_status" >&5
8240 (exit $ac_status); }; }; then
8241 cf_have_ncuconfig=yes
8243 echo "$as_me: program exited with status $ac_status" >&5
8244 echo "$as_me: failed program was:" >&5
8245 cat conftest.$ac_ext >&5
8246 cf_have_ncuconfig=no
8248 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8251 echo "$as_me: failed program was:" >&5
8252 cat conftest.$ac_ext >&5
8253 cf_have_ncuconfig=no
8255 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8256 echo "$as_me:8256: result: $cf_have_ncuconfig" >&5
8257 echo "${ECHO_T}$cf_have_ncuconfig" >&6
8258 test "$cf_have_ncuconfig" = maybe && cf_have_ncuconfig=yes
8259 if test "$cf_have_ncuconfig" != "yes"
8261 CPPFLAGS="$cf_save_CPPFLAGS"
8262 LIBS="$cf_save_LIBS"
8263 NCURSES_CONFIG_PKG=none
8266 cat >>confdefs.h <<\EOF
8270 NCURSES_CONFIG_PKG=$cf_ncuconfig_root
8274 echo "$as_me:8274: result: no" >&5
8275 echo "${ECHO_T}no" >&6
8276 NCURSES_CONFIG_PKG=none
8279 NCURSES_CONFIG_PKG=none
8282 if test "x$cf_have_ncuconfig" = "xno"; then
8283 echo "Looking for ${cf_ncuconfig_root}-config"
8285 if test -n "$ac_tool_prefix"; then
8286 for ac_prog in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
8288 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8289 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8290 echo "$as_me:8290: checking for $ac_word" >&5
8291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8292 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
8293 echo $ECHO_N "(cached) $ECHO_C" >&6
8295 if test -n "$NCURSES_CONFIG"; then
8296 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
8298 ac_save_IFS=$IFS; IFS=$ac_path_separator
8300 for ac_dir in $ac_dummy; do
8302 test -z "$ac_dir" && ac_dir=.
8303 $as_executable_p "$ac_dir/$ac_word" || continue
8304 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
8305 echo "$as_me:8305: found $ac_dir/$ac_word" >&5
8311 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
8312 if test -n "$NCURSES_CONFIG"; then
8313 echo "$as_me:8313: result: $NCURSES_CONFIG" >&5
8314 echo "${ECHO_T}$NCURSES_CONFIG" >&6
8316 echo "$as_me:8316: result: no" >&5
8317 echo "${ECHO_T}no" >&6
8320 test -n "$NCURSES_CONFIG" && break
8323 if test -z "$NCURSES_CONFIG"; then
8324 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
8325 for ac_prog in ${cf_ncuconfig_root}-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
8327 # Extract the first word of "$ac_prog", so it can be a program name with args.
8328 set dummy $ac_prog; ac_word=$2
8329 echo "$as_me:8329: checking for $ac_word" >&5
8330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8331 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
8332 echo $ECHO_N "(cached) $ECHO_C" >&6
8334 if test -n "$ac_ct_NCURSES_CONFIG"; then
8335 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
8337 ac_save_IFS=$IFS; IFS=$ac_path_separator
8339 for ac_dir in $ac_dummy; do
8341 test -z "$ac_dir" && ac_dir=.
8342 $as_executable_p "$ac_dir/$ac_word" || continue
8343 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
8344 echo "$as_me:8344: found $ac_dir/$ac_word" >&5
8350 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
8351 if test -n "$ac_ct_NCURSES_CONFIG"; then
8352 echo "$as_me:8352: result: $ac_ct_NCURSES_CONFIG" >&5
8353 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
8355 echo "$as_me:8355: result: no" >&5
8356 echo "${ECHO_T}no" >&6
8359 test -n "$ac_ct_NCURSES_CONFIG" && break
8361 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
8363 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
8366 if test "$NCURSES_CONFIG" != none ; then
8368 CPPFLAGS="$CPPFLAGS `$NCURSES_CONFIG --cflags`"
8370 cf_add_libs="`$NCURSES_CONFIG --libs`"
8371 # Filter out duplicates - this happens with badly-designed ".pc" files...
8372 for cf_add_1lib in $LIBS
8374 for cf_add_2lib in $cf_add_libs
8376 if test "x$cf_add_1lib" = "x$cf_add_2lib"
8382 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
8386 # even with config script, some packages use no-override for curses.h
8388 echo "$as_me:8388: checking if we have identified curses headers" >&5
8389 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
8390 if test "${cf_cv_ncurses_header+set}" = set; then
8391 echo $ECHO_N "(cached) $ECHO_C" >&6
8394 cf_cv_ncurses_header=none
8396 ncurses.h $cf_cv_screen/ncurses.h \
8397 curses.h $cf_cv_screen/curses.h
8399 cat >conftest.$ac_ext <<_ACEOF
8400 #line 8400 "configure"
8401 #include "confdefs.h"
8402 #include <${cf_header}>
8406 initscr(); tgoto("?", 0,0)
8411 rm -f conftest.$ac_objext
8412 if { (eval echo "$as_me:8412: \"$ac_compile\"") >&5
8413 (eval $ac_compile) 2>&5
8415 echo "$as_me:8415: \$? = $ac_status" >&5
8416 (exit $ac_status); } &&
8417 { ac_try='test -s conftest.$ac_objext'
8418 { (eval echo "$as_me:8418: \"$ac_try\"") >&5
8421 echo "$as_me:8421: \$? = $ac_status" >&5
8422 (exit $ac_status); }; }; then
8423 cf_cv_ncurses_header=$cf_header; break
8425 echo "$as_me: failed program was:" >&5
8426 cat conftest.$ac_ext >&5
8428 rm -f conftest.$ac_objext conftest.$ac_ext
8432 echo "$as_me:8432: result: $cf_cv_ncurses_header" >&5
8433 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
8435 if test "$cf_cv_ncurses_header" = none ; then
8436 { { echo "$as_me:8436: error: No curses header-files found" >&5
8437 echo "$as_me: error: No curses header-files found" >&2;}
8438 { (exit 1); exit 1; }; }
8441 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
8443 for ac_header in $cf_cv_ncurses_header
8445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8446 echo "$as_me:8446: checking for $ac_header" >&5
8447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8449 echo $ECHO_N "(cached) $ECHO_C" >&6
8451 cat >conftest.$ac_ext <<_ACEOF
8452 #line 8452 "configure"
8453 #include "confdefs.h"
8454 #include <$ac_header>
8456 if { (eval echo "$as_me:8456: \"$ac_cpp conftest.$ac_ext\"") >&5
8457 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8459 egrep -v '^ *\+' conftest.er1 >conftest.err
8461 cat conftest.err >&5
8462 echo "$as_me:8462: \$? = $ac_status" >&5
8463 (exit $ac_status); } >/dev/null; then
8464 if test -s conftest.err; then
8465 ac_cpp_err=$ac_c_preproc_warn_flag
8472 if test -z "$ac_cpp_err"; then
8473 eval "$as_ac_Header=yes"
8475 echo "$as_me: failed program was:" >&5
8476 cat conftest.$ac_ext >&5
8477 eval "$as_ac_Header=no"
8479 rm -f conftest.err conftest.$ac_ext
8481 echo "$as_me:8481: result: `eval echo '${'$as_ac_Header'}'`" >&5
8482 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8484 cat >>confdefs.h <<EOF
8485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8491 cat >>confdefs.h <<\EOF
8495 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
8497 cat >>confdefs.h <<EOF
8498 #define $cf_nculib_ROOT 1
8501 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
8505 cf_ncuhdr_root=$cf_cv_screen
8507 test -n "$cf_cv_curses_dir" && \
8508 test "$cf_cv_curses_dir" != "no" && { \
8510 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
8511 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
8513 while test $cf_add_incdir != /usr/include
8515 if test -d $cf_add_incdir
8518 if test -n "$CFLAGS$CPPFLAGS" ; then
8519 # a loop is needed to ensure we can add subdirs of existing dirs
8520 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8521 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8522 cf_have_incdir=yes; break
8527 if test "$cf_have_incdir" = no ; then
8528 if test "$cf_add_incdir" = /usr/local/include ; then
8529 if test "$GCC" = yes
8531 cf_save_CPPFLAGS=$CPPFLAGS
8532 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8533 cat >conftest.$ac_ext <<_ACEOF
8534 #line 8534 "configure"
8535 #include "confdefs.h"
8545 rm -f conftest.$ac_objext
8546 if { (eval echo "$as_me:8546: \"$ac_compile\"") >&5
8547 (eval $ac_compile) 2>&5
8549 echo "$as_me:8549: \$? = $ac_status" >&5
8550 (exit $ac_status); } &&
8551 { ac_try='test -s conftest.$ac_objext'
8552 { (eval echo "$as_me:8552: \"$ac_try\"") >&5
8555 echo "$as_me:8555: \$? = $ac_status" >&5
8556 (exit $ac_status); }; }; then
8559 echo "$as_me: failed program was:" >&5
8560 cat conftest.$ac_ext >&5
8563 rm -f conftest.$ac_objext conftest.$ac_ext
8564 CPPFLAGS=$cf_save_CPPFLAGS
8569 if test "$cf_have_incdir" = no ; then
8570 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8572 echo "${as_me:-configure}:8572: testing adding $cf_add_incdir to include-path ..." 1>&5
8574 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8576 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8577 test "$cf_top_incdir" = "$cf_add_incdir" && break
8578 cf_add_incdir="$cf_top_incdir"
8591 echo "$as_me:8591: checking for $cf_ncuhdr_root header in include-path" >&5
8592 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
8593 if test "${cf_cv_ncurses_h+set}" = set; then
8594 echo $ECHO_N "(cached) $ECHO_C" >&6
8597 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
8598 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
8599 for cf_header in $cf_header_list
8602 cat >conftest.$ac_ext <<_ACEOF
8603 #line 8603 "configure"
8604 #include "confdefs.h"
8606 #include <$cf_header>
8611 #ifdef NCURSES_VERSION
8613 printf("%s\n", NCURSES_VERSION);
8626 rm -f conftest.$ac_objext
8627 if { (eval echo "$as_me:8627: \"$ac_compile\"") >&5
8628 (eval $ac_compile) 2>&5
8630 echo "$as_me:8630: \$? = $ac_status" >&5
8631 (exit $ac_status); } &&
8632 { ac_try='test -s conftest.$ac_objext'
8633 { (eval echo "$as_me:8633: \"$ac_try\"") >&5
8636 echo "$as_me:8636: \$? = $ac_status" >&5
8637 (exit $ac_status); }; }; then
8638 cf_cv_ncurses_h=$cf_header
8641 echo "$as_me: failed program was:" >&5
8642 cat conftest.$ac_ext >&5
8645 rm -f conftest.$ac_objext conftest.$ac_ext
8647 test "$cf_cv_ncurses_h" != no && break
8651 echo "$as_me:8651: result: $cf_cv_ncurses_h" >&5
8652 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
8654 if test "$cf_cv_ncurses_h" != no ; then
8655 cf_cv_ncurses_header=$cf_cv_ncurses_h
8658 echo "$as_me:8658: checking for $cf_ncuhdr_root include-path" >&5
8659 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
8660 if test "${cf_cv_ncurses_h2+set}" = set; then
8661 echo $ECHO_N "(cached) $ECHO_C" >&6
8664 test -n "$verbose" && echo
8668 # collect the current set of include-directories from compiler flags
8669 cf_header_path_list=""
8670 if test -n "${CFLAGS}${CPPFLAGS}" ; then
8671 for cf_header_path in $CPPFLAGS $CFLAGS
8673 case $cf_header_path in
8675 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
8677 test "x$cf_header_path" != "xNONE" && \
8678 test -d "$cf_header_path" && \
8680 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
8681 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
8682 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
8683 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
8684 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
8685 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"
8688 cf_header_path_list="$cf_header_path_list $cf_search"
8694 # add the variations for the package we are looking for
8698 test "x$prefix" != "xNONE" && \
8699 test -d "$prefix" && \
8701 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
8702 test -d $prefix/include && cf_search="$cf_search $prefix/include"
8703 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
8704 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
8705 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
8706 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
8709 for cf_subdir_prefix in \
8718 test "x$cf_subdir_prefix" != "x$prefix" && \
8719 test -d "$cf_subdir_prefix" && \
8720 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
8721 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
8722 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
8723 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root"
8724 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root/include"
8725 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include"
8726 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
8731 test "$includedir" != NONE && \
8732 test "$includedir" != "/usr/include" && \
8733 test -d "$includedir" && {
8734 test -d $includedir && cf_search="$cf_search $includedir"
8735 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
8738 test "$oldincludedir" != NONE && \
8739 test "$oldincludedir" != "/usr/include" && \
8740 test -d "$oldincludedir" && {
8741 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
8742 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
8745 cf_search="$cf_search $cf_header_path_list"
8747 test -n "$verbose" && echo search path $cf_search
8748 cf_save2_CPPFLAGS="$CPPFLAGS"
8749 for cf_incdir in $cf_search
8752 if test -n "$cf_incdir" ; then
8753 for cf_add_incdir in $cf_incdir
8755 while test $cf_add_incdir != /usr/include
8757 if test -d $cf_add_incdir
8760 if test -n "$CFLAGS$CPPFLAGS" ; then
8761 # a loop is needed to ensure we can add subdirs of existing dirs
8762 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8763 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8764 cf_have_incdir=yes; break
8769 if test "$cf_have_incdir" = no ; then
8770 if test "$cf_add_incdir" = /usr/local/include ; then
8771 if test "$GCC" = yes
8773 cf_save_CPPFLAGS=$CPPFLAGS
8774 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8775 cat >conftest.$ac_ext <<_ACEOF
8776 #line 8776 "configure"
8777 #include "confdefs.h"
8787 rm -f conftest.$ac_objext
8788 if { (eval echo "$as_me:8788: \"$ac_compile\"") >&5
8789 (eval $ac_compile) 2>&5
8791 echo "$as_me:8791: \$? = $ac_status" >&5
8792 (exit $ac_status); } &&
8793 { ac_try='test -s conftest.$ac_objext'
8794 { (eval echo "$as_me:8794: \"$ac_try\"") >&5
8797 echo "$as_me:8797: \$? = $ac_status" >&5
8798 (exit $ac_status); }; }; then
8801 echo "$as_me: failed program was:" >&5
8802 cat conftest.$ac_ext >&5
8805 rm -f conftest.$ac_objext conftest.$ac_ext
8806 CPPFLAGS=$cf_save_CPPFLAGS
8811 if test "$cf_have_incdir" = no ; then
8812 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8814 echo "${as_me:-configure}:8814: testing adding $cf_add_incdir to include-path ..." 1>&5
8816 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8818 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8819 test "$cf_top_incdir" = "$cf_add_incdir" && break
8820 cf_add_incdir="$cf_top_incdir"
8836 cat >conftest.$ac_ext <<_ACEOF
8837 #line 8837 "configure"
8838 #include "confdefs.h"
8840 #include <$cf_header>
8845 #ifdef NCURSES_VERSION
8847 printf("%s\n", NCURSES_VERSION);
8860 rm -f conftest.$ac_objext
8861 if { (eval echo "$as_me:8861: \"$ac_compile\"") >&5
8862 (eval $ac_compile) 2>&5
8864 echo "$as_me:8864: \$? = $ac_status" >&5
8865 (exit $ac_status); } &&
8866 { ac_try='test -s conftest.$ac_objext'
8867 { (eval echo "$as_me:8867: \"$ac_try\"") >&5
8870 echo "$as_me:8870: \$? = $ac_status" >&5
8871 (exit $ac_status); }; }; then
8872 cf_cv_ncurses_h2=$cf_header
8875 echo "$as_me: failed program was:" >&5
8876 cat conftest.$ac_ext >&5
8879 rm -f conftest.$ac_objext conftest.$ac_ext
8881 if test "$cf_cv_ncurses_h2" != no ; then
8882 cf_cv_ncurses_h2=$cf_incdir/$cf_header
8883 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
8886 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
8888 CPPFLAGS="$cf_save2_CPPFLAGS"
8889 test "$cf_cv_ncurses_h2" != no && break
8891 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:8891: error: not found" >&5
8892 echo "$as_me: error: not found" >&2;}
8893 { (exit 1); exit 1; }; }
8896 echo "$as_me:8896: result: $cf_cv_ncurses_h2" >&5
8897 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
8899 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
8900 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
8901 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
8902 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
8905 if test -n "$cf_1st_incdir" ; then
8906 for cf_add_incdir in $cf_1st_incdir
8908 while test $cf_add_incdir != /usr/include
8910 if test -d $cf_add_incdir
8913 if test -n "$CFLAGS$CPPFLAGS" ; then
8914 # a loop is needed to ensure we can add subdirs of existing dirs
8915 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8916 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8917 cf_have_incdir=yes; break
8922 if test "$cf_have_incdir" = no ; then
8923 if test "$cf_add_incdir" = /usr/local/include ; then
8924 if test "$GCC" = yes
8926 cf_save_CPPFLAGS=$CPPFLAGS
8927 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8928 cat >conftest.$ac_ext <<_ACEOF
8929 #line 8929 "configure"
8930 #include "confdefs.h"
8940 rm -f conftest.$ac_objext
8941 if { (eval echo "$as_me:8941: \"$ac_compile\"") >&5
8942 (eval $ac_compile) 2>&5
8944 echo "$as_me:8944: \$? = $ac_status" >&5
8945 (exit $ac_status); } &&
8946 { ac_try='test -s conftest.$ac_objext'
8947 { (eval echo "$as_me:8947: \"$ac_try\"") >&5
8950 echo "$as_me:8950: \$? = $ac_status" >&5
8951 (exit $ac_status); }; }; then
8954 echo "$as_me: failed program was:" >&5
8955 cat conftest.$ac_ext >&5
8958 rm -f conftest.$ac_objext conftest.$ac_ext
8959 CPPFLAGS=$cf_save_CPPFLAGS
8964 if test "$cf_have_incdir" = no ; then
8965 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8967 echo "${as_me:-configure}:8967: testing adding $cf_add_incdir to include-path ..." 1>&5
8969 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8971 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8972 test "$cf_top_incdir" = "$cf_add_incdir" && break
8973 cf_add_incdir="$cf_top_incdir"
8986 # Set definitions to allow ifdef'ing for ncurses.h
8988 case $cf_cv_ncurses_header in
8991 cat >>confdefs.h <<\EOF
8992 #define HAVE_NCURSES_H 1
8998 case $cf_cv_ncurses_header in
8999 (ncurses/curses.h|ncurses/ncurses.h)
9001 cat >>confdefs.h <<\EOF
9002 #define HAVE_NCURSES_NCURSES_H 1
9006 (ncursesw/curses.h|ncursesw/ncurses.h)
9008 cat >>confdefs.h <<\EOF
9009 #define HAVE_NCURSESW_NCURSES_H 1
9015 echo "$as_me:9015: checking for terminfo header" >&5
9016 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
9017 if test "${cf_cv_term_header+set}" = set; then
9018 echo $ECHO_N "(cached) $ECHO_C" >&6
9021 case ${cf_cv_ncurses_header} in
9022 (*/ncurses.h|*/ncursesw.h)
9023 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
9026 cf_term_header=term.h
9030 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
9032 cat >conftest.$ac_ext <<_ACEOF
9033 #line 9033 "configure"
9034 #include "confdefs.h"
9036 #include <${cf_cv_ncurses_header:-curses.h}>
9042 int x = auto_left_margin
9047 rm -f conftest.$ac_objext
9048 if { (eval echo "$as_me:9048: \"$ac_compile\"") >&5
9049 (eval $ac_compile) 2>&5
9051 echo "$as_me:9051: \$? = $ac_status" >&5
9052 (exit $ac_status); } &&
9053 { ac_try='test -s conftest.$ac_objext'
9054 { (eval echo "$as_me:9054: \"$ac_try\"") >&5
9057 echo "$as_me:9057: \$? = $ac_status" >&5
9058 (exit $ac_status); }; }; then
9060 cf_cv_term_header="$cf_test"
9062 echo "$as_me: failed program was:" >&5
9063 cat conftest.$ac_ext >&5
9065 cf_cv_term_header=unknown
9068 rm -f conftest.$ac_objext conftest.$ac_ext
9069 test "$cf_cv_term_header" != unknown && break
9073 echo "$as_me:9073: result: $cf_cv_term_header" >&5
9074 echo "${ECHO_T}$cf_cv_term_header" >&6
9076 # Set definitions to allow ifdef'ing to accommodate subdirectories
9078 case $cf_cv_term_header in
9081 cat >>confdefs.h <<\EOF
9082 #define HAVE_TERM_H 1
9088 case $cf_cv_term_header in
9091 cat >>confdefs.h <<\EOF
9092 #define HAVE_NCURSES_TERM_H 1
9098 cat >>confdefs.h <<\EOF
9099 #define HAVE_NCURSESW_TERM_H 1
9105 # some applications need this, but should check for NCURSES_VERSION
9107 cat >>confdefs.h <<\EOF
9111 echo "$as_me:9111: checking for ncurses version" >&5
9112 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
9113 if test "${cf_cv_ncurses_version+set}" = set; then
9114 echo $ECHO_N "(cached) $ECHO_C" >&6
9117 cf_cv_ncurses_version=no
9120 if test "$cross_compiling" = yes; then
9122 # This will not work if the preprocessor splits the line after the
9123 # Autoconf token. The 'unproto' program does that.
9124 cat > conftest.$ac_ext <<EOF
9125 #include <${cf_cv_ncurses_header:-curses.h}>
9127 #ifdef NCURSES_VERSION
9128 Autoconf NCURSES_VERSION
9136 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
9137 { (eval echo "$as_me:9137: \"$cf_try\"") >&5
9140 echo "$as_me:9140: \$? = $ac_status" >&5
9141 (exit $ac_status); }
9142 if test -f conftest.out ; then
9143 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
9144 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
9149 cat >conftest.$ac_ext <<_ACEOF
9150 #line 9150 "configure"
9151 #include "confdefs.h"
9153 #include <${cf_cv_ncurses_header:-curses.h}>
9157 FILE *fp = fopen("$cf_tempfile", "w");
9158 #ifdef NCURSES_VERSION
9159 # ifdef NCURSES_VERSION_PATCH
9160 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
9162 fprintf(fp, "%s\n", NCURSES_VERSION);
9166 fprintf(fp, "old\n");
9171 ${cf_cv_main_return:-return}(0);
9174 rm -f conftest$ac_exeext
9175 if { (eval echo "$as_me:9175: \"$ac_link\"") >&5
9176 (eval $ac_link) 2>&5
9178 echo "$as_me:9178: \$? = $ac_status" >&5
9179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9180 { (eval echo "$as_me:9180: \"$ac_try\"") >&5
9183 echo "$as_me:9183: \$? = $ac_status" >&5
9184 (exit $ac_status); }; }; then
9186 cf_cv_ncurses_version=`cat $cf_tempfile`
9188 echo "$as_me: program exited with status $ac_status" >&5
9189 echo "$as_me: failed program was:" >&5
9190 cat conftest.$ac_ext >&5
9192 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9197 echo "$as_me:9197: result: $cf_cv_ncurses_version" >&5
9198 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
9199 test "$cf_cv_ncurses_version" = no ||
9200 cat >>confdefs.h <<\EOF
9204 cf_nculib_root=$cf_cv_screen
9205 # This works, except for the special case where we find gpm, but
9206 # ncurses is in a nonstandard location via $LIBS, and we really want
9209 cf_ncurses_SAVE="$LIBS"
9210 echo "$as_me:9210: checking for Gpm_Open in -lgpm" >&5
9211 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
9212 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9215 ac_check_lib_save_LIBS=$LIBS
9217 cat >conftest.$ac_ext <<_ACEOF
9218 #line 9218 "configure"
9219 #include "confdefs.h"
9221 /* Override any gcc2 internal prototype to avoid an error. */
9225 /* We use char because int might match the return type of a gcc2
9226 builtin and then its argument prototype would still apply. */
9236 rm -f conftest.$ac_objext conftest$ac_exeext
9237 if { (eval echo "$as_me:9237: \"$ac_link\"") >&5
9238 (eval $ac_link) 2>&5
9240 echo "$as_me:9240: \$? = $ac_status" >&5
9241 (exit $ac_status); } &&
9242 { ac_try='test -s conftest$ac_exeext'
9243 { (eval echo "$as_me:9243: \"$ac_try\"") >&5
9246 echo "$as_me:9246: \$? = $ac_status" >&5
9247 (exit $ac_status); }; }; then
9248 ac_cv_lib_gpm_Gpm_Open=yes
9250 echo "$as_me: failed program was:" >&5
9251 cat conftest.$ac_ext >&5
9252 ac_cv_lib_gpm_Gpm_Open=no
9254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9255 LIBS=$ac_check_lib_save_LIBS
9257 echo "$as_me:9257: result: $ac_cv_lib_gpm_Gpm_Open" >&5
9258 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
9259 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
9260 echo "$as_me:9260: checking for initscr in -lgpm" >&5
9261 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
9262 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
9263 echo $ECHO_N "(cached) $ECHO_C" >&6
9265 ac_check_lib_save_LIBS=$LIBS
9267 cat >conftest.$ac_ext <<_ACEOF
9268 #line 9268 "configure"
9269 #include "confdefs.h"
9271 /* Override any gcc2 internal prototype to avoid an error. */
9275 /* We use char because int might match the return type of a gcc2
9276 builtin and then its argument prototype would still apply. */
9286 rm -f conftest.$ac_objext conftest$ac_exeext
9287 if { (eval echo "$as_me:9287: \"$ac_link\"") >&5
9288 (eval $ac_link) 2>&5
9290 echo "$as_me:9290: \$? = $ac_status" >&5
9291 (exit $ac_status); } &&
9292 { ac_try='test -s conftest$ac_exeext'
9293 { (eval echo "$as_me:9293: \"$ac_try\"") >&5
9296 echo "$as_me:9296: \$? = $ac_status" >&5
9297 (exit $ac_status); }; }; then
9298 ac_cv_lib_gpm_initscr=yes
9300 echo "$as_me: failed program was:" >&5
9301 cat conftest.$ac_ext >&5
9302 ac_cv_lib_gpm_initscr=no
9304 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9305 LIBS=$ac_check_lib_save_LIBS
9307 echo "$as_me:9307: result: $ac_cv_lib_gpm_initscr" >&5
9308 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
9309 if test $ac_cv_lib_gpm_initscr = yes; then
9310 LIBS="$cf_ncurses_SAVE"
9312 cf_ncurses_LIBS="-lgpm"
9319 # This is only necessary if you are linking against an obsolete
9320 # version of ncurses (but it should do no harm, since it's static).
9321 if test "$cf_nculib_root" = ncurses ; then
9322 echo "$as_me:9322: checking for tgoto in -lmytinfo" >&5
9323 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
9324 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
9325 echo $ECHO_N "(cached) $ECHO_C" >&6
9327 ac_check_lib_save_LIBS=$LIBS
9328 LIBS="-lmytinfo $LIBS"
9329 cat >conftest.$ac_ext <<_ACEOF
9330 #line 9330 "configure"
9331 #include "confdefs.h"
9333 /* Override any gcc2 internal prototype to avoid an error. */
9337 /* We use char because int might match the return type of a gcc2
9338 builtin and then its argument prototype would still apply. */
9348 rm -f conftest.$ac_objext conftest$ac_exeext
9349 if { (eval echo "$as_me:9349: \"$ac_link\"") >&5
9350 (eval $ac_link) 2>&5
9352 echo "$as_me:9352: \$? = $ac_status" >&5
9353 (exit $ac_status); } &&
9354 { ac_try='test -s conftest$ac_exeext'
9355 { (eval echo "$as_me:9355: \"$ac_try\"") >&5
9358 echo "$as_me:9358: \$? = $ac_status" >&5
9359 (exit $ac_status); }; }; then
9360 ac_cv_lib_mytinfo_tgoto=yes
9362 echo "$as_me: failed program was:" >&5
9363 cat conftest.$ac_ext >&5
9364 ac_cv_lib_mytinfo_tgoto=no
9366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9367 LIBS=$ac_check_lib_save_LIBS
9369 echo "$as_me:9369: result: $ac_cv_lib_mytinfo_tgoto" >&5
9370 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
9371 if test $ac_cv_lib_mytinfo_tgoto = yes; then
9372 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
9379 cf_add_libs="$cf_ncurses_LIBS"
9380 # Filter out duplicates - this happens with badly-designed ".pc" files...
9381 for cf_add_1lib in $LIBS
9383 for cf_add_2lib in $cf_add_libs
9385 if test "x$cf_add_1lib" = "x$cf_add_2lib"
9391 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
9395 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
9398 cf_add_libs="-l$cf_nculib_root"
9399 # Filter out duplicates - this happens with badly-designed ".pc" files...
9400 for cf_add_1lib in $LIBS
9402 for cf_add_2lib in $cf_add_libs
9404 if test "x$cf_add_1lib" = "x$cf_add_2lib"
9410 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
9416 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
9418 echo "$as_me:9418: checking for initscr" >&5
9419 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
9420 if test "${ac_cv_func_initscr+set}" = set; then
9421 echo $ECHO_N "(cached) $ECHO_C" >&6
9423 cat >conftest.$ac_ext <<_ACEOF
9424 #line 9424 "configure"
9425 #include "confdefs.h"
9426 /* System header to define __stub macros and hopefully few prototypes,
9427 which can conflict with char initscr (); below. */
9429 /* Override any gcc2 internal prototype to avoid an error. */
9433 /* We use char because int might match the return type of a gcc2
9434 builtin and then its argument prototype would still apply. */
9441 /* The GNU C library defines this for functions which it implements
9442 to always fail with ENOSYS. Some functions are actually named
9443 something starting with __ and the normal name is an alias. */
9444 #if defined (__stub_initscr) || defined (__stub___initscr)
9447 f = initscr; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
9454 rm -f conftest.$ac_objext conftest$ac_exeext
9455 if { (eval echo "$as_me:9455: \"$ac_link\"") >&5
9456 (eval $ac_link) 2>&5
9458 echo "$as_me:9458: \$? = $ac_status" >&5
9459 (exit $ac_status); } &&
9460 { ac_try='test -s conftest$ac_exeext'
9461 { (eval echo "$as_me:9461: \"$ac_try\"") >&5
9464 echo "$as_me:9464: \$? = $ac_status" >&5
9465 (exit $ac_status); }; }; then
9466 ac_cv_func_initscr=yes
9468 echo "$as_me: failed program was:" >&5
9469 cat conftest.$ac_ext >&5
9470 ac_cv_func_initscr=no
9472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9474 echo "$as_me:9474: result: $ac_cv_func_initscr" >&5
9475 echo "${ECHO_T}$ac_cv_func_initscr" >&6
9476 if test $ac_cv_func_initscr = yes; then
9477 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
9480 cf_save_LIBS="$LIBS"
9481 echo "$as_me:9481: checking for initscr in -l$cf_nculib_root" >&5
9482 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
9483 LIBS="-l$cf_nculib_root $LIBS"
9484 cat >conftest.$ac_ext <<_ACEOF
9485 #line 9485 "configure"
9486 #include "confdefs.h"
9487 #include <${cf_cv_ncurses_header:-curses.h}>
9496 rm -f conftest.$ac_objext conftest$ac_exeext
9497 if { (eval echo "$as_me:9497: \"$ac_link\"") >&5
9498 (eval $ac_link) 2>&5
9500 echo "$as_me:9500: \$? = $ac_status" >&5
9501 (exit $ac_status); } &&
9502 { ac_try='test -s conftest$ac_exeext'
9503 { (eval echo "$as_me:9503: \"$ac_try\"") >&5
9506 echo "$as_me:9506: \$? = $ac_status" >&5
9507 (exit $ac_status); }; }; then
9508 echo "$as_me:9508: result: yes" >&5
9509 echo "${ECHO_T}yes" >&6
9510 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
9513 echo "$as_me: failed program was:" >&5
9514 cat conftest.$ac_ext >&5
9515 echo "$as_me:9515: result: no" >&5
9516 echo "${ECHO_T}no" >&6
9519 cf_library_path_list=""
9520 if test -n "${LDFLAGS}${LIBS}" ; then
9521 for cf_library_path in $LDFLAGS $LIBS
9523 case $cf_library_path in
9525 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
9527 test "x$cf_library_path" != "xNONE" && \
9528 test -d "$cf_library_path" && \
9530 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
9531 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
9532 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
9533 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
9534 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
9535 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"
9538 cf_library_path_list="$cf_library_path_list $cf_search"
9546 test "x$prefix" != "xNONE" && \
9547 test -d "$prefix" && \
9549 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
9550 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
9551 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
9552 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
9553 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
9554 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
9557 for cf_subdir_prefix in \
9566 test "x$cf_subdir_prefix" != "x$prefix" && \
9567 test -d "$cf_subdir_prefix" && \
9568 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
9569 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
9570 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
9571 test -d $cf_subdir_prefix/lib/$cf_nculib_root && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root"
9572 test -d $cf_subdir_prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root/lib"
9573 test -d $cf_subdir_prefix/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib"
9574 test -d $cf_subdir_prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib/$cf_nculib_root"
9579 cf_search="$cf_library_path_list $cf_search"
9581 for cf_libdir in $cf_search
9583 echo "$as_me:9583: checking for -l$cf_nculib_root in $cf_libdir" >&5
9584 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
9585 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
9586 cat >conftest.$ac_ext <<_ACEOF
9587 #line 9587 "configure"
9588 #include "confdefs.h"
9589 #include <${cf_cv_ncurses_header:-curses.h}>
9598 rm -f conftest.$ac_objext conftest$ac_exeext
9599 if { (eval echo "$as_me:9599: \"$ac_link\"") >&5
9600 (eval $ac_link) 2>&5
9602 echo "$as_me:9602: \$? = $ac_status" >&5
9603 (exit $ac_status); } &&
9604 { ac_try='test -s conftest$ac_exeext'
9605 { (eval echo "$as_me:9605: \"$ac_try\"") >&5
9608 echo "$as_me:9608: \$? = $ac_status" >&5
9609 (exit $ac_status); }; }; then
9610 echo "$as_me:9610: result: yes" >&5
9611 echo "${ECHO_T}yes" >&6
9612 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
9615 echo "$as_me: failed program was:" >&5
9616 cat conftest.$ac_ext >&5
9617 echo "$as_me:9617: result: no" >&5
9618 echo "${ECHO_T}no" >&6
9619 LIBS="$cf_save_LIBS"
9621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9629 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
9631 if test $cf_found_library = no ; then
9632 { { echo "$as_me:9632: error: Cannot link $cf_nculib_root library" >&5
9633 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
9634 { (exit 1); exit 1; }; }
9639 if test -n "$cf_ncurses_LIBS" ; then
9640 echo "$as_me:9640: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
9641 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
9642 cf_ncurses_SAVE="$LIBS"
9643 for p in $cf_ncurses_LIBS ; do
9644 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
9645 if test "$q" != "$LIBS" ; then
9649 cat >conftest.$ac_ext <<_ACEOF
9650 #line 9650 "configure"
9651 #include "confdefs.h"
9652 #include <${cf_cv_ncurses_header:-curses.h}>
9656 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
9661 rm -f conftest.$ac_objext conftest$ac_exeext
9662 if { (eval echo "$as_me:9662: \"$ac_link\"") >&5
9663 (eval $ac_link) 2>&5
9665 echo "$as_me:9665: \$? = $ac_status" >&5
9666 (exit $ac_status); } &&
9667 { ac_try='test -s conftest$ac_exeext'
9668 { (eval echo "$as_me:9668: \"$ac_try\"") >&5
9671 echo "$as_me:9671: \$? = $ac_status" >&5
9672 (exit $ac_status); }; }; then
9673 echo "$as_me:9673: result: yes" >&5
9674 echo "${ECHO_T}yes" >&6
9676 echo "$as_me: failed program was:" >&5
9677 cat conftest.$ac_ext >&5
9678 echo "$as_me:9678: result: no" >&5
9679 echo "${ECHO_T}no" >&6
9680 LIBS="$cf_ncurses_SAVE"
9682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9685 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
9687 cat >>confdefs.h <<EOF
9688 #define $cf_nculib_ROOT 1
9698 echo "$as_me:9698: checking for X" >&5
9699 echo $ECHO_N "checking for X... $ECHO_C" >&6
9701 # Check whether --with-x or --without-x was given.
9702 if test "${with_x+set}" = set; then
9706 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9707 if test "x$with_x" = xno; then
9708 # The user explicitly disabled X.
9711 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9712 # Both variables are already set.
9715 if test "${ac_cv_have_x+set}" = set; then
9716 echo $ECHO_N "(cached) $ECHO_C" >&6
9718 # One or both of the vars are not set, and there is no cached value.
9719 ac_x_includes=no ac_x_libraries=no
9721 if mkdir conftest.dir; then
9723 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9724 cat >Imakefile <<'EOF'
9726 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9728 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9729 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9730 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9731 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9732 for ac_extension in a so sl dylib dll; do
9733 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9734 test -f $ac_im_libdir/libX11.$ac_extension; then
9735 ac_im_usrlibdir=$ac_im_libdir; break
9738 # Screen out bogus values from the imake configuration. They are
9739 # bogus both because they are the default anyway, and because
9740 # using them would break gcc on systems where it needs fixed includes.
9741 case $ac_im_incroot in
9743 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9745 case $ac_im_usrlibdir in
9747 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9754 # Standard set of common directories for X headers.
9755 # Check X11 before X11Rn because it is often a symlink to the current release.
9767 /usr/local/X11/include
9768 /usr/local/X11R6/include
9769 /usr/local/X11R5/include
9770 /usr/local/X11R4/include
9772 /usr/local/include/X11
9773 /usr/local/include/X11R6
9774 /usr/local/include/X11R5
9775 /usr/local/include/X11R4
9779 /usr/XFree86/include/X11
9783 /usr/unsupported/include
9785 /usr/local/x11r5/include
9786 /usr/lpp/Xamples/include
9788 /usr/openwin/include
9789 /usr/openwin/share/include'
9791 if test "$ac_x_includes" = no; then
9792 # Guess where to find include files, by looking for Intrinsic.h.
9793 # First, try using that file with no special directory specified.
9794 cat >conftest.$ac_ext <<_ACEOF
9795 #line 9795 "configure"
9796 #include "confdefs.h"
9797 #include <X11/Intrinsic.h>
9799 if { (eval echo "$as_me:9799: \"$ac_cpp conftest.$ac_ext\"") >&5
9800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9802 egrep -v '^ *\+' conftest.er1 >conftest.err
9804 cat conftest.err >&5
9805 echo "$as_me:9805: \$? = $ac_status" >&5
9806 (exit $ac_status); } >/dev/null; then
9807 if test -s conftest.err; then
9808 ac_cpp_err=$ac_c_preproc_warn_flag
9815 if test -z "$ac_cpp_err"; then
9816 # We can compile using X headers with no special include directory.
9819 echo "$as_me: failed program was:" >&5
9820 cat conftest.$ac_ext >&5
9821 for ac_dir in $ac_x_header_dirs; do
9822 if test -r "$ac_dir/X11/Intrinsic.h"; then
9823 ac_x_includes=$ac_dir
9828 rm -f conftest.err conftest.$ac_ext
9829 fi # $ac_x_includes = no
9831 if test "$ac_x_libraries" = no; then
9832 # Check for the libraries.
9833 # See if we find them without any special options.
9834 # Don't add to $LIBS permanently.
9837 cat >conftest.$ac_ext <<_ACEOF
9838 #line 9838 "configure"
9839 #include "confdefs.h"
9840 #include <X11/Intrinsic.h>
9849 rm -f conftest.$ac_objext conftest$ac_exeext
9850 if { (eval echo "$as_me:9850: \"$ac_link\"") >&5
9851 (eval $ac_link) 2>&5
9853 echo "$as_me:9853: \$? = $ac_status" >&5
9854 (exit $ac_status); } &&
9855 { ac_try='test -s conftest$ac_exeext'
9856 { (eval echo "$as_me:9856: \"$ac_try\"") >&5
9859 echo "$as_me:9859: \$? = $ac_status" >&5
9860 (exit $ac_status); }; }; then
9862 # We can link X programs with no special library path.
9865 echo "$as_me: failed program was:" >&5
9866 cat conftest.$ac_ext >&5
9868 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9870 # Don't even attempt the hair of trying to link an X program!
9871 for ac_extension in a so sl dylib dll; do
9872 if test -r $ac_dir/libXt.$ac_extension; then
9873 ac_x_libraries=$ac_dir
9879 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9880 fi # $ac_x_libraries = no
9882 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9883 # Didn't find X anywhere. Cache the known absence of X.
9884 ac_cv_have_x="have_x=no"
9886 # Record where we found X for the cache.
9887 ac_cv_have_x="have_x=yes \
9888 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9893 eval "$ac_cv_have_x"
9896 if test "$have_x" != yes; then
9897 echo "$as_me:9897: result: $have_x" >&5
9898 echo "${ECHO_T}$have_x" >&6
9901 # If each of the values was on the command line, it overrides each guess.
9902 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9903 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9904 # Update the cache value to reflect the command line values.
9905 ac_cv_have_x="have_x=yes \
9906 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9907 echo "$as_me:9907: result: libraries $x_libraries, headers $x_includes" >&5
9908 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9911 if test "$no_x" = yes; then
9912 # Not all programs may use this symbol, but it does not hurt to define it.
9914 cat >>confdefs.h <<\EOF
9915 #define X_DISPLAY_MISSING 1
9918 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9920 if test -n "$x_includes"; then
9921 X_CFLAGS="$X_CFLAGS -I$x_includes"
9924 # It would also be nice to do this for all -L options, not just this one.
9925 if test -n "$x_libraries"; then
9926 X_LIBS="$X_LIBS -L$x_libraries"
9927 # For Solaris; some versions of Sun CC require a space after -R and
9928 # others require no space. Words are not sufficient . . . .
9929 case `(uname -sr) 2>/dev/null` in
9931 echo "$as_me:9931: checking whether -R must be followed by a space" >&5
9932 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9933 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9934 cat >conftest.$ac_ext <<_ACEOF
9935 #line 9935 "configure"
9936 #include "confdefs.h"
9946 rm -f conftest.$ac_objext conftest$ac_exeext
9947 if { (eval echo "$as_me:9947: \"$ac_link\"") >&5
9948 (eval $ac_link) 2>&5
9950 echo "$as_me:9950: \$? = $ac_status" >&5
9951 (exit $ac_status); } &&
9952 { ac_try='test -s conftest$ac_exeext'
9953 { (eval echo "$as_me:9953: \"$ac_try\"") >&5
9956 echo "$as_me:9956: \$? = $ac_status" >&5
9957 (exit $ac_status); }; }; then
9960 echo "$as_me: failed program was:" >&5
9961 cat conftest.$ac_ext >&5
9964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9965 if test $ac_R_nospace = yes; then
9966 echo "$as_me:9966: result: no" >&5
9967 echo "${ECHO_T}no" >&6
9968 X_LIBS="$X_LIBS -R$x_libraries"
9970 LIBS="$ac_xsave_LIBS -R $x_libraries"
9971 cat >conftest.$ac_ext <<_ACEOF
9972 #line 9972 "configure"
9973 #include "confdefs.h"
9983 rm -f conftest.$ac_objext conftest$ac_exeext
9984 if { (eval echo "$as_me:9984: \"$ac_link\"") >&5
9985 (eval $ac_link) 2>&5
9987 echo "$as_me:9987: \$? = $ac_status" >&5
9988 (exit $ac_status); } &&
9989 { ac_try='test -s conftest$ac_exeext'
9990 { (eval echo "$as_me:9990: \"$ac_try\"") >&5
9993 echo "$as_me:9993: \$? = $ac_status" >&5
9994 (exit $ac_status); }; }; then
9997 echo "$as_me: failed program was:" >&5
9998 cat conftest.$ac_ext >&5
10001 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10002 if test $ac_R_space = yes; then
10003 echo "$as_me:10003: result: yes" >&5
10004 echo "${ECHO_T}yes" >&6
10005 X_LIBS="$X_LIBS -R $x_libraries"
10007 echo "$as_me:10007: result: neither works" >&5
10008 echo "${ECHO_T}neither works" >&6
10011 LIBS=$ac_xsave_LIBS
10015 # Check for system-dependent libraries X programs must link with.
10016 # Do this before checking for the system-independent R6 libraries
10017 # (-lICE), since we may need -lsocket or whatever for X linking.
10019 if test "$ISC" = yes; then
10020 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10022 # Martyn Johnson says this is needed for Ultrix, if the X
10023 # libraries were built with DECnet support. And Karl Berry says
10024 # the Alpha needs dnet_stub (dnet does not exist).
10025 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
10026 cat >conftest.$ac_ext <<_ACEOF
10027 #line 10027 "configure"
10028 #include "confdefs.h"
10030 /* Override any gcc2 internal prototype to avoid an error. */
10034 /* We use char because int might match the return type of a gcc2
10035 builtin and then its argument prototype would still apply. */
10036 char XOpenDisplay ();
10045 rm -f conftest.$ac_objext conftest$ac_exeext
10046 if { (eval echo "$as_me:10046: \"$ac_link\"") >&5
10047 (eval $ac_link) 2>&5
10049 echo "$as_me:10049: \$? = $ac_status" >&5
10050 (exit $ac_status); } &&
10051 { ac_try='test -s conftest$ac_exeext'
10052 { (eval echo "$as_me:10052: \"$ac_try\"") >&5
10053 (eval $ac_try) 2>&5
10055 echo "$as_me:10055: \$? = $ac_status" >&5
10056 (exit $ac_status); }; }; then
10059 echo "$as_me: failed program was:" >&5
10060 cat conftest.$ac_ext >&5
10061 echo "$as_me:10061: checking for dnet_ntoa in -ldnet" >&5
10062 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
10063 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10064 echo $ECHO_N "(cached) $ECHO_C" >&6
10066 ac_check_lib_save_LIBS=$LIBS
10067 LIBS="-ldnet $LIBS"
10068 cat >conftest.$ac_ext <<_ACEOF
10069 #line 10069 "configure"
10070 #include "confdefs.h"
10072 /* Override any gcc2 internal prototype to avoid an error. */
10076 /* We use char because int might match the return type of a gcc2
10077 builtin and then its argument prototype would still apply. */
10087 rm -f conftest.$ac_objext conftest$ac_exeext
10088 if { (eval echo "$as_me:10088: \"$ac_link\"") >&5
10089 (eval $ac_link) 2>&5
10091 echo "$as_me:10091: \$? = $ac_status" >&5
10092 (exit $ac_status); } &&
10093 { ac_try='test -s conftest$ac_exeext'
10094 { (eval echo "$as_me:10094: \"$ac_try\"") >&5
10095 (eval $ac_try) 2>&5
10097 echo "$as_me:10097: \$? = $ac_status" >&5
10098 (exit $ac_status); }; }; then
10099 ac_cv_lib_dnet_dnet_ntoa=yes
10101 echo "$as_me: failed program was:" >&5
10102 cat conftest.$ac_ext >&5
10103 ac_cv_lib_dnet_dnet_ntoa=no
10105 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10106 LIBS=$ac_check_lib_save_LIBS
10108 echo "$as_me:10108: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10109 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
10110 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10111 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10114 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10115 echo "$as_me:10115: checking for dnet_ntoa in -ldnet_stub" >&5
10116 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
10117 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
10118 echo $ECHO_N "(cached) $ECHO_C" >&6
10120 ac_check_lib_save_LIBS=$LIBS
10121 LIBS="-ldnet_stub $LIBS"
10122 cat >conftest.$ac_ext <<_ACEOF
10123 #line 10123 "configure"
10124 #include "confdefs.h"
10126 /* Override any gcc2 internal prototype to avoid an error. */
10130 /* We use char because int might match the return type of a gcc2
10131 builtin and then its argument prototype would still apply. */
10141 rm -f conftest.$ac_objext conftest$ac_exeext
10142 if { (eval echo "$as_me:10142: \"$ac_link\"") >&5
10143 (eval $ac_link) 2>&5
10145 echo "$as_me:10145: \$? = $ac_status" >&5
10146 (exit $ac_status); } &&
10147 { ac_try='test -s conftest$ac_exeext'
10148 { (eval echo "$as_me:10148: \"$ac_try\"") >&5
10149 (eval $ac_try) 2>&5
10151 echo "$as_me:10151: \$? = $ac_status" >&5
10152 (exit $ac_status); }; }; then
10153 ac_cv_lib_dnet_stub_dnet_ntoa=yes
10155 echo "$as_me: failed program was:" >&5
10156 cat conftest.$ac_ext >&5
10157 ac_cv_lib_dnet_stub_dnet_ntoa=no
10159 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10160 LIBS=$ac_check_lib_save_LIBS
10162 echo "$as_me:10162: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
10163 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
10164 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
10165 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10170 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10171 LIBS="$ac_xsave_LIBS"
10173 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10174 # to get the SysV transport functions.
10175 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
10177 # The nsl library prevents programs from opening the X display
10178 # on Irix 5.2, according to T.E. Dickey.
10179 # The functions gethostbyname, getservbyname, and inet_addr are
10180 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
10181 echo "$as_me:10181: checking for gethostbyname" >&5
10182 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
10183 if test "${ac_cv_func_gethostbyname+set}" = set; then
10184 echo $ECHO_N "(cached) $ECHO_C" >&6
10186 cat >conftest.$ac_ext <<_ACEOF
10187 #line 10187 "configure"
10188 #include "confdefs.h"
10189 /* System header to define __stub macros and hopefully few prototypes,
10190 which can conflict with char gethostbyname (); below. */
10191 #include <assert.h>
10192 /* Override any gcc2 internal prototype to avoid an error. */
10196 /* We use char because int might match the return type of a gcc2
10197 builtin and then its argument prototype would still apply. */
10198 char gethostbyname ();
10204 /* The GNU C library defines this for functions which it implements
10205 to always fail with ENOSYS. Some functions are actually named
10206 something starting with __ and the normal name is an alias. */
10207 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10210 f = gethostbyname; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
10217 rm -f conftest.$ac_objext conftest$ac_exeext
10218 if { (eval echo "$as_me:10218: \"$ac_link\"") >&5
10219 (eval $ac_link) 2>&5
10221 echo "$as_me:10221: \$? = $ac_status" >&5
10222 (exit $ac_status); } &&
10223 { ac_try='test -s conftest$ac_exeext'
10224 { (eval echo "$as_me:10224: \"$ac_try\"") >&5
10225 (eval $ac_try) 2>&5
10227 echo "$as_me:10227: \$? = $ac_status" >&5
10228 (exit $ac_status); }; }; then
10229 ac_cv_func_gethostbyname=yes
10231 echo "$as_me: failed program was:" >&5
10232 cat conftest.$ac_ext >&5
10233 ac_cv_func_gethostbyname=no
10235 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10237 echo "$as_me:10237: result: $ac_cv_func_gethostbyname" >&5
10238 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
10240 if test $ac_cv_func_gethostbyname = no; then
10241 echo "$as_me:10241: checking for gethostbyname in -lnsl" >&5
10242 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
10243 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
10244 echo $ECHO_N "(cached) $ECHO_C" >&6
10246 ac_check_lib_save_LIBS=$LIBS
10248 cat >conftest.$ac_ext <<_ACEOF
10249 #line 10249 "configure"
10250 #include "confdefs.h"
10252 /* Override any gcc2 internal prototype to avoid an error. */
10256 /* We use char because int might match the return type of a gcc2
10257 builtin and then its argument prototype would still apply. */
10258 char gethostbyname ();
10267 rm -f conftest.$ac_objext conftest$ac_exeext
10268 if { (eval echo "$as_me:10268: \"$ac_link\"") >&5
10269 (eval $ac_link) 2>&5
10271 echo "$as_me:10271: \$? = $ac_status" >&5
10272 (exit $ac_status); } &&
10273 { ac_try='test -s conftest$ac_exeext'
10274 { (eval echo "$as_me:10274: \"$ac_try\"") >&5
10275 (eval $ac_try) 2>&5
10277 echo "$as_me:10277: \$? = $ac_status" >&5
10278 (exit $ac_status); }; }; then
10279 ac_cv_lib_nsl_gethostbyname=yes
10281 echo "$as_me: failed program was:" >&5
10282 cat conftest.$ac_ext >&5
10283 ac_cv_lib_nsl_gethostbyname=no
10285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10286 LIBS=$ac_check_lib_save_LIBS
10288 echo "$as_me:10288: result: $ac_cv_lib_nsl_gethostbyname" >&5
10289 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
10290 if test $ac_cv_lib_nsl_gethostbyname = yes; then
10291 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10294 if test $ac_cv_lib_nsl_gethostbyname = no; then
10295 echo "$as_me:10295: checking for gethostbyname in -lbsd" >&5
10296 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
10297 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
10298 echo $ECHO_N "(cached) $ECHO_C" >&6
10300 ac_check_lib_save_LIBS=$LIBS
10302 cat >conftest.$ac_ext <<_ACEOF
10303 #line 10303 "configure"
10304 #include "confdefs.h"
10306 /* Override any gcc2 internal prototype to avoid an error. */
10310 /* We use char because int might match the return type of a gcc2
10311 builtin and then its argument prototype would still apply. */
10312 char gethostbyname ();
10321 rm -f conftest.$ac_objext conftest$ac_exeext
10322 if { (eval echo "$as_me:10322: \"$ac_link\"") >&5
10323 (eval $ac_link) 2>&5
10325 echo "$as_me:10325: \$? = $ac_status" >&5
10326 (exit $ac_status); } &&
10327 { ac_try='test -s conftest$ac_exeext'
10328 { (eval echo "$as_me:10328: \"$ac_try\"") >&5
10329 (eval $ac_try) 2>&5
10331 echo "$as_me:10331: \$? = $ac_status" >&5
10332 (exit $ac_status); }; }; then
10333 ac_cv_lib_bsd_gethostbyname=yes
10335 echo "$as_me: failed program was:" >&5
10336 cat conftest.$ac_ext >&5
10337 ac_cv_lib_bsd_gethostbyname=no
10339 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10340 LIBS=$ac_check_lib_save_LIBS
10342 echo "$as_me:10342: result: $ac_cv_lib_bsd_gethostbyname" >&5
10343 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
10344 if test $ac_cv_lib_bsd_gethostbyname = yes; then
10345 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10351 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10352 # socket/setsockopt and other routines are undefined under SCO ODT
10353 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10354 # on later versions), says Simon Leinen: it contains gethostby*
10355 # variants that don't use the nameserver (or something). -lsocket
10356 # must be given before -lnsl if both are needed. We assume that
10357 # if connect needs -lnsl, so does gethostbyname.
10358 echo "$as_me:10358: checking for connect" >&5
10359 echo $ECHO_N "checking for connect... $ECHO_C" >&6
10360 if test "${ac_cv_func_connect+set}" = set; then
10361 echo $ECHO_N "(cached) $ECHO_C" >&6
10363 cat >conftest.$ac_ext <<_ACEOF
10364 #line 10364 "configure"
10365 #include "confdefs.h"
10366 /* System header to define __stub macros and hopefully few prototypes,
10367 which can conflict with char connect (); below. */
10368 #include <assert.h>
10369 /* Override any gcc2 internal prototype to avoid an error. */
10373 /* We use char because int might match the return type of a gcc2
10374 builtin and then its argument prototype would still apply. */
10381 /* The GNU C library defines this for functions which it implements
10382 to always fail with ENOSYS. Some functions are actually named
10383 something starting with __ and the normal name is an alias. */
10384 #if defined (__stub_connect) || defined (__stub___connect)
10387 f = connect; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
10394 rm -f conftest.$ac_objext conftest$ac_exeext
10395 if { (eval echo "$as_me:10395: \"$ac_link\"") >&5
10396 (eval $ac_link) 2>&5
10398 echo "$as_me:10398: \$? = $ac_status" >&5
10399 (exit $ac_status); } &&
10400 { ac_try='test -s conftest$ac_exeext'
10401 { (eval echo "$as_me:10401: \"$ac_try\"") >&5
10402 (eval $ac_try) 2>&5
10404 echo "$as_me:10404: \$? = $ac_status" >&5
10405 (exit $ac_status); }; }; then
10406 ac_cv_func_connect=yes
10408 echo "$as_me: failed program was:" >&5
10409 cat conftest.$ac_ext >&5
10410 ac_cv_func_connect=no
10412 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10414 echo "$as_me:10414: result: $ac_cv_func_connect" >&5
10415 echo "${ECHO_T}$ac_cv_func_connect" >&6
10417 if test $ac_cv_func_connect = no; then
10418 echo "$as_me:10418: checking for connect in -lsocket" >&5
10419 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10420 if test "${ac_cv_lib_socket_connect+set}" = set; then
10421 echo $ECHO_N "(cached) $ECHO_C" >&6
10423 ac_check_lib_save_LIBS=$LIBS
10424 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10425 cat >conftest.$ac_ext <<_ACEOF
10426 #line 10426 "configure"
10427 #include "confdefs.h"
10429 /* Override any gcc2 internal prototype to avoid an error. */
10433 /* We use char because int might match the return type of a gcc2
10434 builtin and then its argument prototype would still apply. */
10444 rm -f conftest.$ac_objext conftest$ac_exeext
10445 if { (eval echo "$as_me:10445: \"$ac_link\"") >&5
10446 (eval $ac_link) 2>&5
10448 echo "$as_me:10448: \$? = $ac_status" >&5
10449 (exit $ac_status); } &&
10450 { ac_try='test -s conftest$ac_exeext'
10451 { (eval echo "$as_me:10451: \"$ac_try\"") >&5
10452 (eval $ac_try) 2>&5
10454 echo "$as_me:10454: \$? = $ac_status" >&5
10455 (exit $ac_status); }; }; then
10456 ac_cv_lib_socket_connect=yes
10458 echo "$as_me: failed program was:" >&5
10459 cat conftest.$ac_ext >&5
10460 ac_cv_lib_socket_connect=no
10462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10463 LIBS=$ac_check_lib_save_LIBS
10465 echo "$as_me:10465: result: $ac_cv_lib_socket_connect" >&5
10466 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10467 if test $ac_cv_lib_socket_connect = yes; then
10468 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10473 # Guillermo Gomez says -lposix is necessary on A/UX.
10474 echo "$as_me:10474: checking for remove" >&5
10475 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10476 if test "${ac_cv_func_remove+set}" = set; then
10477 echo $ECHO_N "(cached) $ECHO_C" >&6
10479 cat >conftest.$ac_ext <<_ACEOF
10480 #line 10480 "configure"
10481 #include "confdefs.h"
10482 /* System header to define __stub macros and hopefully few prototypes,
10483 which can conflict with char remove (); below. */
10484 #include <assert.h>
10485 /* Override any gcc2 internal prototype to avoid an error. */
10489 /* We use char because int might match the return type of a gcc2
10490 builtin and then its argument prototype would still apply. */
10497 /* The GNU C library defines this for functions which it implements
10498 to always fail with ENOSYS. Some functions are actually named
10499 something starting with __ and the normal name is an alias. */
10500 #if defined (__stub_remove) || defined (__stub___remove)
10503 f = remove; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
10510 rm -f conftest.$ac_objext conftest$ac_exeext
10511 if { (eval echo "$as_me:10511: \"$ac_link\"") >&5
10512 (eval $ac_link) 2>&5
10514 echo "$as_me:10514: \$? = $ac_status" >&5
10515 (exit $ac_status); } &&
10516 { ac_try='test -s conftest$ac_exeext'
10517 { (eval echo "$as_me:10517: \"$ac_try\"") >&5
10518 (eval $ac_try) 2>&5
10520 echo "$as_me:10520: \$? = $ac_status" >&5
10521 (exit $ac_status); }; }; then
10522 ac_cv_func_remove=yes
10524 echo "$as_me: failed program was:" >&5
10525 cat conftest.$ac_ext >&5
10526 ac_cv_func_remove=no
10528 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10530 echo "$as_me:10530: result: $ac_cv_func_remove" >&5
10531 echo "${ECHO_T}$ac_cv_func_remove" >&6
10533 if test $ac_cv_func_remove = no; then
10534 echo "$as_me:10534: checking for remove in -lposix" >&5
10535 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10536 if test "${ac_cv_lib_posix_remove+set}" = set; then
10537 echo $ECHO_N "(cached) $ECHO_C" >&6
10539 ac_check_lib_save_LIBS=$LIBS
10540 LIBS="-lposix $LIBS"
10541 cat >conftest.$ac_ext <<_ACEOF
10542 #line 10542 "configure"
10543 #include "confdefs.h"
10545 /* Override any gcc2 internal prototype to avoid an error. */
10549 /* We use char because int might match the return type of a gcc2
10550 builtin and then its argument prototype would still apply. */
10560 rm -f conftest.$ac_objext conftest$ac_exeext
10561 if { (eval echo "$as_me:10561: \"$ac_link\"") >&5
10562 (eval $ac_link) 2>&5
10564 echo "$as_me:10564: \$? = $ac_status" >&5
10565 (exit $ac_status); } &&
10566 { ac_try='test -s conftest$ac_exeext'
10567 { (eval echo "$as_me:10567: \"$ac_try\"") >&5
10568 (eval $ac_try) 2>&5
10570 echo "$as_me:10570: \$? = $ac_status" >&5
10571 (exit $ac_status); }; }; then
10572 ac_cv_lib_posix_remove=yes
10574 echo "$as_me: failed program was:" >&5
10575 cat conftest.$ac_ext >&5
10576 ac_cv_lib_posix_remove=no
10578 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10579 LIBS=$ac_check_lib_save_LIBS
10581 echo "$as_me:10581: result: $ac_cv_lib_posix_remove" >&5
10582 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10583 if test $ac_cv_lib_posix_remove = yes; then
10584 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10589 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10590 echo "$as_me:10590: checking for shmat" >&5
10591 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10592 if test "${ac_cv_func_shmat+set}" = set; then
10593 echo $ECHO_N "(cached) $ECHO_C" >&6
10595 cat >conftest.$ac_ext <<_ACEOF
10596 #line 10596 "configure"
10597 #include "confdefs.h"
10598 /* System header to define __stub macros and hopefully few prototypes,
10599 which can conflict with char shmat (); below. */
10600 #include <assert.h>
10601 /* Override any gcc2 internal prototype to avoid an error. */
10605 /* We use char because int might match the return type of a gcc2
10606 builtin and then its argument prototype would still apply. */
10613 /* The GNU C library defines this for functions which it implements
10614 to always fail with ENOSYS. Some functions are actually named
10615 something starting with __ and the normal name is an alias. */
10616 #if defined (__stub_shmat) || defined (__stub___shmat)
10619 f = shmat; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
10626 rm -f conftest.$ac_objext conftest$ac_exeext
10627 if { (eval echo "$as_me:10627: \"$ac_link\"") >&5
10628 (eval $ac_link) 2>&5
10630 echo "$as_me:10630: \$? = $ac_status" >&5
10631 (exit $ac_status); } &&
10632 { ac_try='test -s conftest$ac_exeext'
10633 { (eval echo "$as_me:10633: \"$ac_try\"") >&5
10634 (eval $ac_try) 2>&5
10636 echo "$as_me:10636: \$? = $ac_status" >&5
10637 (exit $ac_status); }; }; then
10638 ac_cv_func_shmat=yes
10640 echo "$as_me: failed program was:" >&5
10641 cat conftest.$ac_ext >&5
10642 ac_cv_func_shmat=no
10644 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10646 echo "$as_me:10646: result: $ac_cv_func_shmat" >&5
10647 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10649 if test $ac_cv_func_shmat = no; then
10650 echo "$as_me:10650: checking for shmat in -lipc" >&5
10651 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10652 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10653 echo $ECHO_N "(cached) $ECHO_C" >&6
10655 ac_check_lib_save_LIBS=$LIBS
10657 cat >conftest.$ac_ext <<_ACEOF
10658 #line 10658 "configure"
10659 #include "confdefs.h"
10661 /* Override any gcc2 internal prototype to avoid an error. */
10665 /* We use char because int might match the return type of a gcc2
10666 builtin and then its argument prototype would still apply. */
10676 rm -f conftest.$ac_objext conftest$ac_exeext
10677 if { (eval echo "$as_me:10677: \"$ac_link\"") >&5
10678 (eval $ac_link) 2>&5
10680 echo "$as_me:10680: \$? = $ac_status" >&5
10681 (exit $ac_status); } &&
10682 { ac_try='test -s conftest$ac_exeext'
10683 { (eval echo "$as_me:10683: \"$ac_try\"") >&5
10684 (eval $ac_try) 2>&5
10686 echo "$as_me:10686: \$? = $ac_status" >&5
10687 (exit $ac_status); }; }; then
10688 ac_cv_lib_ipc_shmat=yes
10690 echo "$as_me: failed program was:" >&5
10691 cat conftest.$ac_ext >&5
10692 ac_cv_lib_ipc_shmat=no
10694 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10695 LIBS=$ac_check_lib_save_LIBS
10697 echo "$as_me:10697: result: $ac_cv_lib_ipc_shmat" >&5
10698 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10699 if test $ac_cv_lib_ipc_shmat = yes; then
10700 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10706 # Check for libraries that X11R6 Xt/Xaw programs need.
10707 ac_save_LDFLAGS=$LDFLAGS
10708 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10709 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10710 # check for ICE first), but we must link in the order -lSM -lICE or
10711 # we get undefined symbols. So assume we have SM if we have ICE.
10712 # These have to be linked with before -lX11, unlike the other
10713 # libraries we check for below, so use a different variable.
10714 # John Interrante, Karl Berry
10715 echo "$as_me:10715: checking for IceConnectionNumber in -lICE" >&5
10716 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10717 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10718 echo $ECHO_N "(cached) $ECHO_C" >&6
10720 ac_check_lib_save_LIBS=$LIBS
10721 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10722 cat >conftest.$ac_ext <<_ACEOF
10723 #line 10723 "configure"
10724 #include "confdefs.h"
10726 /* Override any gcc2 internal prototype to avoid an error. */
10730 /* We use char because int might match the return type of a gcc2
10731 builtin and then its argument prototype would still apply. */
10732 char IceConnectionNumber ();
10736 IceConnectionNumber ();
10741 rm -f conftest.$ac_objext conftest$ac_exeext
10742 if { (eval echo "$as_me:10742: \"$ac_link\"") >&5
10743 (eval $ac_link) 2>&5
10745 echo "$as_me:10745: \$? = $ac_status" >&5
10746 (exit $ac_status); } &&
10747 { ac_try='test -s conftest$ac_exeext'
10748 { (eval echo "$as_me:10748: \"$ac_try\"") >&5
10749 (eval $ac_try) 2>&5
10751 echo "$as_me:10751: \$? = $ac_status" >&5
10752 (exit $ac_status); }; }; then
10753 ac_cv_lib_ICE_IceConnectionNumber=yes
10755 echo "$as_me: failed program was:" >&5
10756 cat conftest.$ac_ext >&5
10757 ac_cv_lib_ICE_IceConnectionNumber=no
10759 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10760 LIBS=$ac_check_lib_save_LIBS
10762 echo "$as_me:10762: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10763 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10764 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10765 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10768 LDFLAGS=$ac_save_LDFLAGS
10772 cf_x_athena=${cf_x_athena:-Xaw}
10774 echo "$as_me:10774: checking if you want to link with Xaw 3d library" >&5
10775 echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6
10778 # Check whether --with-Xaw3d or --without-Xaw3d was given.
10779 if test "${with_Xaw3d+set}" = set; then
10780 withval="$with_Xaw3d"
10783 if test "$withval" = yes ; then
10785 echo "$as_me:10785: result: yes" >&5
10786 echo "${ECHO_T}yes" >&6
10788 echo "$as_me:10788: result: no" >&5
10789 echo "${ECHO_T}no" >&6
10792 echo "$as_me:10792: checking if you want to link with Xaw 3d xft library" >&5
10793 echo $ECHO_N "checking if you want to link with Xaw 3d xft library... $ECHO_C" >&6
10796 # Check whether --with-Xaw3dxft or --without-Xaw3dxft was given.
10797 if test "${with_Xaw3dxft+set}" = set; then
10798 withval="$with_Xaw3dxft"
10801 if test "$withval" = yes ; then
10802 cf_x_athena=Xaw3dxft
10803 echo "$as_me:10803: result: yes" >&5
10804 echo "${ECHO_T}yes" >&6
10806 echo "$as_me:10806: result: no" >&5
10807 echo "${ECHO_T}no" >&6
10810 echo "$as_me:10810: checking if you want to link with neXT Athena library" >&5
10811 echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6
10814 # Check whether --with-neXtaw or --without-neXtaw was given.
10815 if test "${with_neXtaw+set}" = set; then
10816 withval="$with_neXtaw"
10819 if test "$withval" = yes ; then
10821 echo "$as_me:10821: result: yes" >&5
10822 echo "${ECHO_T}yes" >&6
10824 echo "$as_me:10824: result: no" >&5
10825 echo "${ECHO_T}no" >&6
10828 echo "$as_me:10828: checking if you want to link with Athena-Plus library" >&5
10829 echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6
10832 # Check whether --with-XawPlus or --without-XawPlus was given.
10833 if test "${with_XawPlus+set}" = set; then
10834 withval="$with_XawPlus"
10837 if test "$withval" = yes ; then
10838 cf_x_athena=XawPlus
10839 echo "$as_me:10839: result: yes" >&5
10840 echo "${ECHO_T}yes" >&6
10842 echo "$as_me:10842: result: no" >&5
10843 echo "${ECHO_T}no" >&6
10848 if test "$PKG_CONFIG" != none ; then
10850 test "$cf_x_athena" = Xaw && cf_athena_list="xaw8 xaw7 xaw6"
10851 for cf_athena_pkg in \
10854 ${cf_x_athena}-devel \
10855 lib${cf_x_athena} \
10856 lib${cf_x_athena}-devel
10859 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists $cf_athena_pkg; then
10860 test -n "$verbose" && echo " found package $cf_athena_pkg" 1>&6
10862 echo "${as_me:-configure}:10862: testing found package $cf_athena_pkg ..." 1>&5
10864 cf_pkgconfig_incs="`$PKG_CONFIG --cflags $cf_athena_pkg 2>/dev/null`"
10865 cf_pkgconfig_libs="`$PKG_CONFIG --libs $cf_athena_pkg 2>/dev/null`"
10866 test -n "$verbose" && echo " package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs" 1>&6
10868 echo "${as_me:-configure}:10868: testing package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs ..." 1>&5
10870 test -n "$verbose" && echo " package $cf_athena_pkg LIBS: $cf_pkgconfig_libs" 1>&6
10872 echo "${as_me:-configure}:10872: testing package $cf_athena_pkg LIBS: $cf_pkgconfig_libs ..." 1>&5
10877 cf_new_extra_cppflags=
10879 for cf_add_cflags in $cf_pkgconfig_incs
10881 case $cf_fix_cppflags in
10883 case $cf_add_cflags in
10884 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10885 case $cf_add_cflags in
10887 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10889 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10890 && test -z "${cf_tst_cflags}" \
10891 && cf_fix_cppflags=yes
10893 if test $cf_fix_cppflags = yes ; then
10894 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10896 elif test "${cf_tst_cflags}" = "\"'" ; then
10897 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10902 case "$CPPFLAGS" in
10906 case $cf_add_cflags in
10908 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10910 CPPFLAGS=`echo "$CPPFLAGS" | \
10911 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10912 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10916 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
10921 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
10926 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
10928 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10930 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10931 && test -z "${cf_tst_cflags}" \
10932 && cf_fix_cppflags=no
10937 if test -n "$cf_new_cflags" ; then
10939 CFLAGS="$CFLAGS $cf_new_cflags"
10942 if test -n "$cf_new_cppflags" ; then
10944 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
10947 if test -n "$cf_new_extra_cppflags" ; then
10949 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
10952 cf_add_libs="$cf_pkgconfig_libs"
10953 # Filter out duplicates - this happens with badly-designed ".pc" files...
10954 for cf_add_1lib in $LIBS
10956 for cf_add_2lib in $cf_add_libs
10958 if test "x$cf_add_1lib" = "x$cf_add_2lib"
10964 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
10966 LIBS="$cf_add_libs"
10968 cf_x_athena_lib="$cf_pkgconfig_libs"
10970 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
10972 cat >>confdefs.h <<EOF
10973 #define $cf_x_athena_LIBS 1
10976 for cf_trim_lib in Xmu Xt X11
10979 (*-l$cf_trim_lib\ *-l$cf_trim_lib*)
10980 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
10981 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
10983 echo "${as_me:-configure}:10983: testing ..trimmed $LIBS ..." 1>&5
10989 echo "$as_me:10989: checking for usable $cf_x_athena/Xmu package" >&5
10990 echo $ECHO_N "checking for usable $cf_x_athena/Xmu package... $ECHO_C" >&6
10991 if test "${cf_cv_xaw_compat+set}" = set; then
10992 echo $ECHO_N "(cached) $ECHO_C" >&6
10995 cat >conftest.$ac_ext <<_ACEOF
10996 #line 10996 "configure"
10997 #include "confdefs.h"
10999 #include <X11/Xmu/CharSet.h>
11005 int check = XmuCompareISOLatin1("big", "small")
11011 rm -f conftest.$ac_objext conftest$ac_exeext
11012 if { (eval echo "$as_me:11012: \"$ac_link\"") >&5
11013 (eval $ac_link) 2>&5
11015 echo "$as_me:11015: \$? = $ac_status" >&5
11016 (exit $ac_status); } &&
11017 { ac_try='test -s conftest$ac_exeext'
11018 { (eval echo "$as_me:11018: \"$ac_try\"") >&5
11019 (eval $ac_try) 2>&5
11021 echo "$as_me:11021: \$? = $ac_status" >&5
11022 (exit $ac_status); }; }; then
11023 cf_cv_xaw_compat=yes
11025 echo "$as_me: failed program was:" >&5
11026 cat conftest.$ac_ext >&5
11027 cf_cv_xaw_compat=no
11029 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11031 echo "$as_me:11031: result: $cf_cv_xaw_compat" >&5
11032 echo "${ECHO_T}$cf_cv_xaw_compat" >&6
11034 if test "$cf_cv_xaw_compat" = no
11036 # workaround for broken ".pc" files...
11037 case "$cf_x_athena_lib" in
11041 test -n "$verbose" && echo " work around broken package" 1>&6
11043 echo "${as_me:-configure}:11043: testing work around broken package ..." 1>&5
11045 cf_save_xmu="$LIBS"
11046 cf_first_lib=`echo "$cf_save_xmu" | sed -e 's/^ *//' -e 's/ .*//'`
11048 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xmu; then
11049 test -n "$verbose" && echo " found package xmu" 1>&6
11051 echo "${as_me:-configure}:11051: testing found package xmu ..." 1>&5
11053 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xmu 2>/dev/null`"
11054 cf_pkgconfig_libs="`$PKG_CONFIG --libs xmu 2>/dev/null`"
11055 test -n "$verbose" && echo " package xmu CFLAGS: $cf_pkgconfig_incs" 1>&6
11057 echo "${as_me:-configure}:11057: testing package xmu CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11059 test -n "$verbose" && echo " package xmu LIBS: $cf_pkgconfig_libs" 1>&6
11061 echo "${as_me:-configure}:11061: testing package xmu LIBS: $cf_pkgconfig_libs ..." 1>&5
11066 cf_new_extra_cppflags=
11068 for cf_add_cflags in $cf_pkgconfig_incs
11070 case $cf_fix_cppflags in
11072 case $cf_add_cflags in
11073 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11074 case $cf_add_cflags in
11076 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11078 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11079 && test -z "${cf_tst_cflags}" \
11080 && cf_fix_cppflags=yes
11082 if test $cf_fix_cppflags = yes ; then
11083 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11085 elif test "${cf_tst_cflags}" = "\"'" ; then
11086 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11091 case "$CPPFLAGS" in
11095 case $cf_add_cflags in
11097 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11099 CPPFLAGS=`echo "$CPPFLAGS" | \
11100 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11101 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11105 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11110 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11115 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11117 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11119 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11120 && test -z "${cf_tst_cflags}" \
11121 && cf_fix_cppflags=no
11126 if test -n "$cf_new_cflags" ; then
11128 CFLAGS="$CFLAGS $cf_new_cflags"
11131 if test -n "$cf_new_cppflags" ; then
11133 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11136 if test -n "$cf_new_extra_cppflags" ; then
11138 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11141 cf_add_libs="$cf_pkgconfig_libs"
11142 # Filter out duplicates - this happens with badly-designed ".pc" files...
11143 for cf_add_1lib in $LIBS
11145 for cf_add_2lib in $cf_add_libs
11147 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11153 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11155 LIBS="$cf_add_libs"
11157 LIBS="$cf_save_xmu"
11159 test -n "$verbose" && echo " ...before $LIBS" 1>&6
11161 echo "${as_me:-configure}:11161: testing ...before $LIBS ..." 1>&5
11163 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib $cf_pkgconfig_libs %" -e 's% % %g'`
11164 test -n "$verbose" && echo " ...after $LIBS" 1>&6
11166 echo "${as_me:-configure}:11166: testing ...after $LIBS ..." 1>&5
11172 test -n "$verbose" && echo " ...before $LIBS" 1>&6
11174 echo "${as_me:-configure}:11174: testing ...before $LIBS ..." 1>&5
11176 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib -lXmu %" -e 's% % %g'`
11177 test -n "$verbose" && echo " ...after $LIBS" 1>&6
11179 echo "${as_me:-configure}:11179: testing ...after $LIBS ..." 1>&5
11183 for cf_trim_lib in Xmu Xt X11
11186 (*-l$cf_trim_lib\ *-l$cf_trim_lib*)
11187 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
11188 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
11190 echo "${as_me:-configure}:11190: testing ..trimmed $LIBS ..." 1>&5
11210 if test -z "$cf_x_athena_lib" ; then
11212 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists Xext; then
11213 test -n "$verbose" && echo " found package Xext" 1>&6
11215 echo "${as_me:-configure}:11215: testing found package Xext ..." 1>&5
11217 cf_pkgconfig_incs="`$PKG_CONFIG --cflags Xext 2>/dev/null`"
11218 cf_pkgconfig_libs="`$PKG_CONFIG --libs Xext 2>/dev/null`"
11219 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6
11221 echo "${as_me:-configure}:11221: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11223 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6
11225 echo "${as_me:-configure}:11225: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5
11230 cf_new_extra_cppflags=
11232 for cf_add_cflags in $cf_pkgconfig_incs
11234 case $cf_fix_cppflags in
11236 case $cf_add_cflags in
11237 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11238 case $cf_add_cflags in
11240 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11242 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11243 && test -z "${cf_tst_cflags}" \
11244 && cf_fix_cppflags=yes
11246 if test $cf_fix_cppflags = yes ; then
11247 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11249 elif test "${cf_tst_cflags}" = "\"'" ; then
11250 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11255 case "$CPPFLAGS" in
11259 case $cf_add_cflags in
11261 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11263 CPPFLAGS=`echo "$CPPFLAGS" | \
11264 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11265 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11269 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11274 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11279 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11281 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11283 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11284 && test -z "${cf_tst_cflags}" \
11285 && cf_fix_cppflags=no
11290 if test -n "$cf_new_cflags" ; then
11292 CFLAGS="$CFLAGS $cf_new_cflags"
11295 if test -n "$cf_new_cppflags" ; then
11297 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11300 if test -n "$cf_new_extra_cppflags" ; then
11302 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11305 cf_add_libs="$cf_pkgconfig_libs"
11306 # Filter out duplicates - this happens with badly-designed ".pc" files...
11307 for cf_add_1lib in $LIBS
11309 for cf_add_2lib in $cf_add_libs
11311 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11317 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11319 LIBS="$cf_add_libs"
11326 echo "$as_me:11326: checking for XextCreateExtension in -lXext" >&5
11327 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
11328 if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
11329 echo $ECHO_N "(cached) $ECHO_C" >&6
11331 ac_check_lib_save_LIBS=$LIBS
11332 LIBS="-lXext $LIBS"
11333 cat >conftest.$ac_ext <<_ACEOF
11334 #line 11334 "configure"
11335 #include "confdefs.h"
11337 /* Override any gcc2 internal prototype to avoid an error. */
11341 /* We use char because int might match the return type of a gcc2
11342 builtin and then its argument prototype would still apply. */
11343 char XextCreateExtension ();
11347 XextCreateExtension ();
11352 rm -f conftest.$ac_objext conftest$ac_exeext
11353 if { (eval echo "$as_me:11353: \"$ac_link\"") >&5
11354 (eval $ac_link) 2>&5
11356 echo "$as_me:11356: \$? = $ac_status" >&5
11357 (exit $ac_status); } &&
11358 { ac_try='test -s conftest$ac_exeext'
11359 { (eval echo "$as_me:11359: \"$ac_try\"") >&5
11360 (eval $ac_try) 2>&5
11362 echo "$as_me:11362: \$? = $ac_status" >&5
11363 (exit $ac_status); }; }; then
11364 ac_cv_lib_Xext_XextCreateExtension=yes
11366 echo "$as_me: failed program was:" >&5
11367 cat conftest.$ac_ext >&5
11368 ac_cv_lib_Xext_XextCreateExtension=no
11370 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11371 LIBS=$ac_check_lib_save_LIBS
11373 echo "$as_me:11373: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
11374 echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
11375 if test $ac_cv_lib_Xext_XextCreateExtension = yes; then
11377 cf_add_libs="-lXext"
11378 # Filter out duplicates - this happens with badly-designed ".pc" files...
11379 for cf_add_1lib in $LIBS
11381 for cf_add_2lib in $cf_add_libs
11383 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11389 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11391 LIBS="$cf_add_libs"
11397 # OSX is schizoid about who owns /usr/X11 (old) versus /opt/X11 (new), and (and
11398 # in some cases has installed dummy files in the former, other cases replaced
11399 # it with a link to the new location). This complicates the configure script.
11400 # Check for that pitfall, and recover using pkg-config
11402 # If none of these are set, the configuration is almost certainly broken.
11403 if test -z "${X_CFLAGS}${X_PRE_LIBS}${X_LIBS}${X_EXTRA_LIBS}"
11406 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then
11407 test -n "$verbose" && echo " found package x11" 1>&6
11409 echo "${as_me:-configure}:11409: testing found package x11 ..." 1>&5
11411 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`"
11412 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`"
11413 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
11415 echo "${as_me:-configure}:11415: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11417 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
11419 echo "${as_me:-configure}:11419: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
11424 cf_new_extra_cppflags=
11426 for cf_add_cflags in $cf_pkgconfig_incs
11428 case $cf_fix_cppflags in
11430 case $cf_add_cflags in
11431 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11432 case $cf_add_cflags in
11434 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11436 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11437 && test -z "${cf_tst_cflags}" \
11438 && cf_fix_cppflags=yes
11440 if test $cf_fix_cppflags = yes ; then
11441 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11443 elif test "${cf_tst_cflags}" = "\"'" ; then
11444 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11449 case "$CPPFLAGS" in
11453 case $cf_add_cflags in
11455 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11457 CPPFLAGS=`echo "$CPPFLAGS" | \
11458 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11459 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11463 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11468 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11473 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11475 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11477 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11478 && test -z "${cf_tst_cflags}" \
11479 && cf_fix_cppflags=no
11484 if test -n "$cf_new_cflags" ; then
11486 CFLAGS="$CFLAGS $cf_new_cflags"
11489 if test -n "$cf_new_cppflags" ; then
11491 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11494 if test -n "$cf_new_extra_cppflags" ; then
11496 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11499 cf_add_libs="$cf_pkgconfig_libs"
11500 # Filter out duplicates - this happens with badly-designed ".pc" files...
11501 for cf_add_1lib in $LIBS
11503 for cf_add_2lib in $cf_add_libs
11505 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11511 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11513 LIBS="$cf_add_libs"
11519 { echo "$as_me:11519: WARNING: unable to find X11 library" >&5
11520 echo "$as_me: WARNING: unable to find X11 library" >&2;}
11523 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then
11524 test -n "$verbose" && echo " found package ice" 1>&6
11526 echo "${as_me:-configure}:11526: testing found package ice ..." 1>&5
11528 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`"
11529 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`"
11530 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
11532 echo "${as_me:-configure}:11532: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11534 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
11536 echo "${as_me:-configure}:11536: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
11541 cf_new_extra_cppflags=
11543 for cf_add_cflags in $cf_pkgconfig_incs
11545 case $cf_fix_cppflags in
11547 case $cf_add_cflags in
11548 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11549 case $cf_add_cflags in
11551 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11553 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11554 && test -z "${cf_tst_cflags}" \
11555 && cf_fix_cppflags=yes
11557 if test $cf_fix_cppflags = yes ; then
11558 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11560 elif test "${cf_tst_cflags}" = "\"'" ; then
11561 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11566 case "$CPPFLAGS" in
11570 case $cf_add_cflags in
11572 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11574 CPPFLAGS=`echo "$CPPFLAGS" | \
11575 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11576 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11580 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11585 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11590 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11592 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11594 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11595 && test -z "${cf_tst_cflags}" \
11596 && cf_fix_cppflags=no
11601 if test -n "$cf_new_cflags" ; then
11603 CFLAGS="$CFLAGS $cf_new_cflags"
11606 if test -n "$cf_new_cppflags" ; then
11608 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11611 if test -n "$cf_new_extra_cppflags" ; then
11613 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11616 cf_add_libs="$cf_pkgconfig_libs"
11617 # Filter out duplicates - this happens with badly-designed ".pc" files...
11618 for cf_add_1lib in $LIBS
11620 for cf_add_2lib in $cf_add_libs
11622 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11628 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11630 LIBS="$cf_add_libs"
11636 { echo "$as_me:11636: WARNING: unable to find ICE library" >&5
11637 echo "$as_me: WARNING: unable to find ICE library" >&2;}
11640 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then
11641 test -n "$verbose" && echo " found package sm" 1>&6
11643 echo "${as_me:-configure}:11643: testing found package sm ..." 1>&5
11645 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`"
11646 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`"
11647 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
11649 echo "${as_me:-configure}:11649: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11651 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
11653 echo "${as_me:-configure}:11653: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
11658 cf_new_extra_cppflags=
11660 for cf_add_cflags in $cf_pkgconfig_incs
11662 case $cf_fix_cppflags in
11664 case $cf_add_cflags in
11665 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11666 case $cf_add_cflags in
11668 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11670 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11671 && test -z "${cf_tst_cflags}" \
11672 && cf_fix_cppflags=yes
11674 if test $cf_fix_cppflags = yes ; then
11675 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11677 elif test "${cf_tst_cflags}" = "\"'" ; then
11678 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11683 case "$CPPFLAGS" in
11687 case $cf_add_cflags in
11689 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11691 CPPFLAGS=`echo "$CPPFLAGS" | \
11692 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11693 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11697 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11702 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11707 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11709 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11711 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11712 && test -z "${cf_tst_cflags}" \
11713 && cf_fix_cppflags=no
11718 if test -n "$cf_new_cflags" ; then
11720 CFLAGS="$CFLAGS $cf_new_cflags"
11723 if test -n "$cf_new_cppflags" ; then
11725 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11728 if test -n "$cf_new_extra_cppflags" ; then
11730 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11733 cf_add_libs="$cf_pkgconfig_libs"
11734 # Filter out duplicates - this happens with badly-designed ".pc" files...
11735 for cf_add_1lib in $LIBS
11737 for cf_add_2lib in $cf_add_libs
11739 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11745 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11747 LIBS="$cf_add_libs"
11753 { echo "$as_me:11753: WARNING: unable to find SM library" >&5
11754 echo "$as_me: WARNING: unable to find SM library" >&2;}
11757 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
11758 test -n "$verbose" && echo " found package xt" 1>&6
11760 echo "${as_me:-configure}:11760: testing found package xt ..." 1>&5
11762 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
11763 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`"
11764 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
11766 echo "${as_me:-configure}:11766: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11768 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
11770 echo "${as_me:-configure}:11770: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
11775 cf_new_extra_cppflags=
11777 for cf_add_cflags in $cf_pkgconfig_incs
11779 case $cf_fix_cppflags in
11781 case $cf_add_cflags in
11782 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11783 case $cf_add_cflags in
11785 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11787 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11788 && test -z "${cf_tst_cflags}" \
11789 && cf_fix_cppflags=yes
11791 if test $cf_fix_cppflags = yes ; then
11792 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11794 elif test "${cf_tst_cflags}" = "\"'" ; then
11795 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11800 case "$CPPFLAGS" in
11804 case $cf_add_cflags in
11806 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11808 CPPFLAGS=`echo "$CPPFLAGS" | \
11809 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11810 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11814 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11819 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11824 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11826 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11828 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11829 && test -z "${cf_tst_cflags}" \
11830 && cf_fix_cppflags=no
11835 if test -n "$cf_new_cflags" ; then
11837 CFLAGS="$CFLAGS $cf_new_cflags"
11840 if test -n "$cf_new_cppflags" ; then
11842 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11845 if test -n "$cf_new_extra_cppflags" ; then
11847 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11850 cf_add_libs="$cf_pkgconfig_libs"
11851 # Filter out duplicates - this happens with badly-designed ".pc" files...
11852 for cf_add_1lib in $LIBS
11854 for cf_add_2lib in $cf_add_libs
11856 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11862 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11864 LIBS="$cf_add_libs"
11870 { echo "$as_me:11870: WARNING: unable to find Xt library" >&5
11871 echo "$as_me: WARNING: unable to find Xt library" >&2;}
11878 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
11879 test -n "$verbose" && echo " found package xt" 1>&6
11881 echo "${as_me:-configure}:11881: testing found package xt ..." 1>&5
11883 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
11884 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`"
11885 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
11887 echo "${as_me:-configure}:11887: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
11889 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
11891 echo "${as_me:-configure}:11891: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
11896 cf_new_extra_cppflags=
11898 for cf_add_cflags in $cf_pkgconfig_incs
11900 case $cf_fix_cppflags in
11902 case $cf_add_cflags in
11903 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
11904 case $cf_add_cflags in
11906 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
11908 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11909 && test -z "${cf_tst_cflags}" \
11910 && cf_fix_cppflags=yes
11912 if test $cf_fix_cppflags = yes ; then
11913 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11915 elif test "${cf_tst_cflags}" = "\"'" ; then
11916 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11921 case "$CPPFLAGS" in
11925 case $cf_add_cflags in
11927 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
11929 CPPFLAGS=`echo "$CPPFLAGS" | \
11930 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
11931 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
11935 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
11940 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
11945 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
11947 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
11949 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
11950 && test -z "${cf_tst_cflags}" \
11951 && cf_fix_cppflags=no
11956 if test -n "$cf_new_cflags" ; then
11958 CFLAGS="$CFLAGS $cf_new_cflags"
11961 if test -n "$cf_new_cppflags" ; then
11963 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
11966 if test -n "$cf_new_extra_cppflags" ; then
11968 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
11971 cf_add_libs="$cf_pkgconfig_libs"
11972 # Filter out duplicates - this happens with badly-designed ".pc" files...
11973 for cf_add_1lib in $LIBS
11975 for cf_add_2lib in $cf_add_libs
11977 if test "x$cf_add_1lib" = "x$cf_add_2lib"
11983 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
11985 LIBS="$cf_add_libs"
11991 # we have an "xt" package, but it may omit Xt's dependency on X11
11992 echo "$as_me:11992: checking for usable X dependency" >&5
11993 echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6
11994 if test "${cf_cv_xt_x11_compat+set}" = set; then
11995 echo $ECHO_N "(cached) $ECHO_C" >&6
11998 cat >conftest.$ac_ext <<_ACEOF
11999 #line 11999 "configure"
12000 #include "confdefs.h"
12002 #include <X11/Xlib.h>
12008 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0);
12009 int rc2 = XClearWindow((Display*) 0, (Window) 0);
12010 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0);
12011 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0);
12017 rm -f conftest.$ac_objext conftest$ac_exeext
12018 if { (eval echo "$as_me:12018: \"$ac_link\"") >&5
12019 (eval $ac_link) 2>&5
12021 echo "$as_me:12021: \$? = $ac_status" >&5
12022 (exit $ac_status); } &&
12023 { ac_try='test -s conftest$ac_exeext'
12024 { (eval echo "$as_me:12024: \"$ac_try\"") >&5
12025 (eval $ac_try) 2>&5
12027 echo "$as_me:12027: \$? = $ac_status" >&5
12028 (exit $ac_status); }; }; then
12029 cf_cv_xt_x11_compat=yes
12031 echo "$as_me: failed program was:" >&5
12032 cat conftest.$ac_ext >&5
12033 cf_cv_xt_x11_compat=no
12035 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12037 echo "$as_me:12037: result: $cf_cv_xt_x11_compat" >&5
12038 echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6
12039 if test "$cf_cv_xt_x11_compat" = no
12041 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6
12043 echo "${as_me:-configure}:12043: testing work around broken X11 dependency ..." 1>&5
12045 # 2010/11/19 - good enough until a working Xt on Xcb is delivered.
12047 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then
12048 test -n "$verbose" && echo " found package x11" 1>&6
12050 echo "${as_me:-configure}:12050: testing found package x11 ..." 1>&5
12052 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`"
12053 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`"
12054 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
12056 echo "${as_me:-configure}:12056: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
12058 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
12060 echo "${as_me:-configure}:12060: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
12065 cf_new_extra_cppflags=
12067 for cf_add_cflags in $cf_pkgconfig_incs
12069 case $cf_fix_cppflags in
12071 case $cf_add_cflags in
12072 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12073 case $cf_add_cflags in
12075 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12077 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12078 && test -z "${cf_tst_cflags}" \
12079 && cf_fix_cppflags=yes
12081 if test $cf_fix_cppflags = yes ; then
12082 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12084 elif test "${cf_tst_cflags}" = "\"'" ; then
12085 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12090 case "$CPPFLAGS" in
12094 case $cf_add_cflags in
12096 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12098 CPPFLAGS=`echo "$CPPFLAGS" | \
12099 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12100 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12104 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12109 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12114 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12116 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12118 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12119 && test -z "${cf_tst_cflags}" \
12120 && cf_fix_cppflags=no
12125 if test -n "$cf_new_cflags" ; then
12127 CFLAGS="$CFLAGS $cf_new_cflags"
12130 if test -n "$cf_new_cppflags" ; then
12132 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12135 if test -n "$cf_new_extra_cppflags" ; then
12137 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12140 cf_add_libs="$cf_pkgconfig_libs"
12141 # Filter out duplicates - this happens with badly-designed ".pc" files...
12142 for cf_add_1lib in $LIBS
12144 for cf_add_2lib in $cf_add_libs
12146 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12152 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12154 LIBS="$cf_add_libs"
12161 test -n "$verbose" && echo " ...before $LIBS" 1>&6
12163 echo "${as_me:-configure}:12163: testing ...before $LIBS ..." 1>&5
12165 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'`
12166 test -n "$verbose" && echo " ...after $LIBS" 1>&6
12168 echo "${as_me:-configure}:12168: testing ...after $LIBS ..." 1>&5
12176 echo "$as_me:12176: checking for usable X Toolkit package" >&5
12177 echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6
12178 if test "${cf_cv_xt_ice_compat+set}" = set; then
12179 echo $ECHO_N "(cached) $ECHO_C" >&6
12182 cat >conftest.$ac_ext <<_ACEOF
12183 #line 12183 "configure"
12184 #include "confdefs.h"
12186 #include <X11/Shell.h>
12191 int num = IceConnectionNumber(0)
12197 rm -f conftest.$ac_objext conftest$ac_exeext
12198 if { (eval echo "$as_me:12198: \"$ac_link\"") >&5
12199 (eval $ac_link) 2>&5
12201 echo "$as_me:12201: \$? = $ac_status" >&5
12202 (exit $ac_status); } &&
12203 { ac_try='test -s conftest$ac_exeext'
12204 { (eval echo "$as_me:12204: \"$ac_try\"") >&5
12205 (eval $ac_try) 2>&5
12207 echo "$as_me:12207: \$? = $ac_status" >&5
12208 (exit $ac_status); }; }; then
12209 cf_cv_xt_ice_compat=yes
12211 echo "$as_me: failed program was:" >&5
12212 cat conftest.$ac_ext >&5
12213 cf_cv_xt_ice_compat=no
12215 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12217 echo "$as_me:12217: result: $cf_cv_xt_ice_compat" >&5
12218 echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6
12220 if test "$cf_cv_xt_ice_compat" = no
12222 # workaround for broken ".pc" files used for X Toolkit.
12223 case "x$X_PRE_LIBS" in
12229 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6
12231 echo "${as_me:-configure}:12231: testing work around broken ICE dependency ..." 1>&5
12233 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then
12234 test -n "$verbose" && echo " found package ice" 1>&6
12236 echo "${as_me:-configure}:12236: testing found package ice ..." 1>&5
12238 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`"
12239 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`"
12240 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
12242 echo "${as_me:-configure}:12242: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
12244 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
12246 echo "${as_me:-configure}:12246: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
12251 cf_new_extra_cppflags=
12253 for cf_add_cflags in $cf_pkgconfig_incs
12255 case $cf_fix_cppflags in
12257 case $cf_add_cflags in
12258 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12259 case $cf_add_cflags in
12261 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12263 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12264 && test -z "${cf_tst_cflags}" \
12265 && cf_fix_cppflags=yes
12267 if test $cf_fix_cppflags = yes ; then
12268 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12270 elif test "${cf_tst_cflags}" = "\"'" ; then
12271 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12276 case "$CPPFLAGS" in
12280 case $cf_add_cflags in
12282 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12284 CPPFLAGS=`echo "$CPPFLAGS" | \
12285 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12286 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12290 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12295 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12300 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12302 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12304 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12305 && test -z "${cf_tst_cflags}" \
12306 && cf_fix_cppflags=no
12311 if test -n "$cf_new_cflags" ; then
12313 CFLAGS="$CFLAGS $cf_new_cflags"
12316 if test -n "$cf_new_cppflags" ; then
12318 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12321 if test -n "$cf_new_extra_cppflags" ; then
12323 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12326 cf_add_libs="$cf_pkgconfig_libs"
12327 # Filter out duplicates - this happens with badly-designed ".pc" files...
12328 for cf_add_1lib in $LIBS
12330 for cf_add_2lib in $cf_add_libs
12332 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12338 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12340 LIBS="$cf_add_libs"
12342 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then
12343 test -n "$verbose" && echo " found package sm" 1>&6
12345 echo "${as_me:-configure}:12345: testing found package sm ..." 1>&5
12347 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`"
12348 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`"
12349 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
12351 echo "${as_me:-configure}:12351: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
12353 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
12355 echo "${as_me:-configure}:12355: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
12360 cf_new_extra_cppflags=
12362 for cf_add_cflags in $cf_pkgconfig_incs
12364 case $cf_fix_cppflags in
12366 case $cf_add_cflags in
12367 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12368 case $cf_add_cflags in
12370 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12372 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12373 && test -z "${cf_tst_cflags}" \
12374 && cf_fix_cppflags=yes
12376 if test $cf_fix_cppflags = yes ; then
12377 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12379 elif test "${cf_tst_cflags}" = "\"'" ; then
12380 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12385 case "$CPPFLAGS" in
12389 case $cf_add_cflags in
12391 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12393 CPPFLAGS=`echo "$CPPFLAGS" | \
12394 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12395 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12399 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12404 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12409 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12411 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12413 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12414 && test -z "${cf_tst_cflags}" \
12415 && cf_fix_cppflags=no
12420 if test -n "$cf_new_cflags" ; then
12422 CFLAGS="$CFLAGS $cf_new_cflags"
12425 if test -n "$cf_new_cppflags" ; then
12427 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12430 if test -n "$cf_new_extra_cppflags" ; then
12432 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12435 cf_add_libs="$cf_pkgconfig_libs"
12436 # Filter out duplicates - this happens with badly-designed ".pc" files...
12437 for cf_add_1lib in $LIBS
12439 for cf_add_2lib in $cf_add_libs
12441 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12447 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12449 LIBS="$cf_add_libs"
12462 test -n "$verbose" && echo " ...before $LIBS" 1>&6
12464 echo "${as_me:-configure}:12464: testing ...before $LIBS ..." 1>&5
12466 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's% % %g'`
12467 test -n "$verbose" && echo " ...after $LIBS" 1>&6
12469 echo "${as_me:-configure}:12469: testing ...after $LIBS ..." 1>&5
12485 LDFLAGS="$X_LIBS $LDFLAGS"
12487 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
12489 echo "${as_me:-configure}:12489: testing checking additions to CFLAGS ..." 1>&5
12491 cf_check_cflags="$CFLAGS"
12492 cf_check_cppflags="$CPPFLAGS"
12497 cf_new_extra_cppflags=
12499 for cf_add_cflags in $X_CFLAGS
12501 case $cf_fix_cppflags in
12503 case $cf_add_cflags in
12504 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12505 case $cf_add_cflags in
12507 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12509 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12510 && test -z "${cf_tst_cflags}" \
12511 && cf_fix_cppflags=yes
12513 if test $cf_fix_cppflags = yes ; then
12514 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12516 elif test "${cf_tst_cflags}" = "\"'" ; then
12517 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12522 case "$CPPFLAGS" in
12526 case $cf_add_cflags in
12528 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12530 CPPFLAGS=`echo "$CPPFLAGS" | \
12531 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12532 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12536 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
12541 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
12546 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
12548 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12550 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12551 && test -z "${cf_tst_cflags}" \
12552 && cf_fix_cppflags=no
12557 if test -n "$cf_new_cflags" ; then
12558 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
12560 echo "${as_me:-configure}:12560: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
12562 CFLAGS="$CFLAGS $cf_new_cflags"
12565 if test -n "$cf_new_cppflags" ; then
12566 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
12568 echo "${as_me:-configure}:12568: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
12570 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
12573 if test -n "$cf_new_extra_cppflags" ; then
12574 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
12576 echo "${as_me:-configure}:12576: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
12578 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
12581 if test "x$cf_check_cflags" != "x$CFLAGS" ; then
12582 cat >conftest.$ac_ext <<_ACEOF
12583 #line 12583 "configure"
12584 #include "confdefs.h"
12589 printf("Hello world");
12594 rm -f conftest.$ac_objext conftest$ac_exeext
12595 if { (eval echo "$as_me:12595: \"$ac_link\"") >&5
12596 (eval $ac_link) 2>&5
12598 echo "$as_me:12598: \$? = $ac_status" >&5
12599 (exit $ac_status); } &&
12600 { ac_try='test -s conftest$ac_exeext'
12601 { (eval echo "$as_me:12601: \"$ac_try\"") >&5
12602 (eval $ac_try) 2>&5
12604 echo "$as_me:12604: \$? = $ac_status" >&5
12605 (exit $ac_status); }; }; then
12608 echo "$as_me: failed program was:" >&5
12609 cat conftest.$ac_ext >&5
12610 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
12612 echo "${as_me:-configure}:12612: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
12614 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then
12615 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
12617 echo "${as_me:-configure}:12617: testing but keeping change to \$CPPFLAGS ..." 1>&5
12620 CFLAGS="$cf_check_flags"
12622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12625 echo "$as_me:12625: checking for XOpenDisplay" >&5
12626 echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6
12627 if test "${ac_cv_func_XOpenDisplay+set}" = set; then
12628 echo $ECHO_N "(cached) $ECHO_C" >&6
12630 cat >conftest.$ac_ext <<_ACEOF
12631 #line 12631 "configure"
12632 #include "confdefs.h"
12633 /* System header to define __stub macros and hopefully few prototypes,
12634 which can conflict with char XOpenDisplay (); below. */
12635 #include <assert.h>
12636 /* Override any gcc2 internal prototype to avoid an error. */
12640 /* We use char because int might match the return type of a gcc2
12641 builtin and then its argument prototype would still apply. */
12642 char XOpenDisplay ();
12648 /* The GNU C library defines this for functions which it implements
12649 to always fail with ENOSYS. Some functions are actually named
12650 something starting with __ and the normal name is an alias. */
12651 #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay)
12654 f = XOpenDisplay; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
12661 rm -f conftest.$ac_objext conftest$ac_exeext
12662 if { (eval echo "$as_me:12662: \"$ac_link\"") >&5
12663 (eval $ac_link) 2>&5
12665 echo "$as_me:12665: \$? = $ac_status" >&5
12666 (exit $ac_status); } &&
12667 { ac_try='test -s conftest$ac_exeext'
12668 { (eval echo "$as_me:12668: \"$ac_try\"") >&5
12669 (eval $ac_try) 2>&5
12671 echo "$as_me:12671: \$? = $ac_status" >&5
12672 (exit $ac_status); }; }; then
12673 ac_cv_func_XOpenDisplay=yes
12675 echo "$as_me: failed program was:" >&5
12676 cat conftest.$ac_ext >&5
12677 ac_cv_func_XOpenDisplay=no
12679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12681 echo "$as_me:12681: result: $ac_cv_func_XOpenDisplay" >&5
12682 echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6
12683 if test $ac_cv_func_XOpenDisplay = yes; then
12687 echo "$as_me:12687: checking for XOpenDisplay in -lX11" >&5
12688 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
12689 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
12690 echo $ECHO_N "(cached) $ECHO_C" >&6
12692 ac_check_lib_save_LIBS=$LIBS
12693 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
12694 cat >conftest.$ac_ext <<_ACEOF
12695 #line 12695 "configure"
12696 #include "confdefs.h"
12698 /* Override any gcc2 internal prototype to avoid an error. */
12702 /* We use char because int might match the return type of a gcc2
12703 builtin and then its argument prototype would still apply. */
12704 char XOpenDisplay ();
12713 rm -f conftest.$ac_objext conftest$ac_exeext
12714 if { (eval echo "$as_me:12714: \"$ac_link\"") >&5
12715 (eval $ac_link) 2>&5
12717 echo "$as_me:12717: \$? = $ac_status" >&5
12718 (exit $ac_status); } &&
12719 { ac_try='test -s conftest$ac_exeext'
12720 { (eval echo "$as_me:12720: \"$ac_try\"") >&5
12721 (eval $ac_try) 2>&5
12723 echo "$as_me:12723: \$? = $ac_status" >&5
12724 (exit $ac_status); }; }; then
12725 ac_cv_lib_X11_XOpenDisplay=yes
12727 echo "$as_me: failed program was:" >&5
12728 cat conftest.$ac_ext >&5
12729 ac_cv_lib_X11_XOpenDisplay=no
12731 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12732 LIBS=$ac_check_lib_save_LIBS
12734 echo "$as_me:12734: result: $ac_cv_lib_X11_XOpenDisplay" >&5
12735 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
12736 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
12738 cf_add_libs="-lX11"
12739 # Filter out duplicates - this happens with badly-designed ".pc" files...
12740 for cf_add_1lib in $LIBS
12742 for cf_add_2lib in $cf_add_libs
12744 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12750 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
12752 LIBS="$cf_add_libs"
12758 echo "$as_me:12758: checking for XtAppInitialize" >&5
12759 echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6
12760 if test "${ac_cv_func_XtAppInitialize+set}" = set; then
12761 echo $ECHO_N "(cached) $ECHO_C" >&6
12763 cat >conftest.$ac_ext <<_ACEOF
12764 #line 12764 "configure"
12765 #include "confdefs.h"
12766 /* System header to define __stub macros and hopefully few prototypes,
12767 which can conflict with char XtAppInitialize (); below. */
12768 #include <assert.h>
12769 /* Override any gcc2 internal prototype to avoid an error. */
12773 /* We use char because int might match the return type of a gcc2
12774 builtin and then its argument prototype would still apply. */
12775 char XtAppInitialize ();
12781 /* The GNU C library defines this for functions which it implements
12782 to always fail with ENOSYS. Some functions are actually named
12783 something starting with __ and the normal name is an alias. */
12784 #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize)
12787 f = XtAppInitialize; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
12794 rm -f conftest.$ac_objext conftest$ac_exeext
12795 if { (eval echo "$as_me:12795: \"$ac_link\"") >&5
12796 (eval $ac_link) 2>&5
12798 echo "$as_me:12798: \$? = $ac_status" >&5
12799 (exit $ac_status); } &&
12800 { ac_try='test -s conftest$ac_exeext'
12801 { (eval echo "$as_me:12801: \"$ac_try\"") >&5
12802 (eval $ac_try) 2>&5
12804 echo "$as_me:12804: \$? = $ac_status" >&5
12805 (exit $ac_status); }; }; then
12806 ac_cv_func_XtAppInitialize=yes
12808 echo "$as_me: failed program was:" >&5
12809 cat conftest.$ac_ext >&5
12810 ac_cv_func_XtAppInitialize=no
12812 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12814 echo "$as_me:12814: result: $ac_cv_func_XtAppInitialize" >&5
12815 echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6
12816 if test $ac_cv_func_XtAppInitialize = yes; then
12820 echo "$as_me:12820: checking for XtAppInitialize in -lXt" >&5
12821 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
12822 if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
12823 echo $ECHO_N "(cached) $ECHO_C" >&6
12825 ac_check_lib_save_LIBS=$LIBS
12826 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
12827 cat >conftest.$ac_ext <<_ACEOF
12828 #line 12828 "configure"
12829 #include "confdefs.h"
12831 /* Override any gcc2 internal prototype to avoid an error. */
12835 /* We use char because int might match the return type of a gcc2
12836 builtin and then its argument prototype would still apply. */
12837 char XtAppInitialize ();
12841 XtAppInitialize ();
12846 rm -f conftest.$ac_objext conftest$ac_exeext
12847 if { (eval echo "$as_me:12847: \"$ac_link\"") >&5
12848 (eval $ac_link) 2>&5
12850 echo "$as_me:12850: \$? = $ac_status" >&5
12851 (exit $ac_status); } &&
12852 { ac_try='test -s conftest$ac_exeext'
12853 { (eval echo "$as_me:12853: \"$ac_try\"") >&5
12854 (eval $ac_try) 2>&5
12856 echo "$as_me:12856: \$? = $ac_status" >&5
12857 (exit $ac_status); }; }; then
12858 ac_cv_lib_Xt_XtAppInitialize=yes
12860 echo "$as_me: failed program was:" >&5
12861 cat conftest.$ac_ext >&5
12862 ac_cv_lib_Xt_XtAppInitialize=no
12864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12865 LIBS=$ac_check_lib_save_LIBS
12867 echo "$as_me:12867: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
12868 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
12869 if test $ac_cv_lib_Xt_XtAppInitialize = yes; then
12871 cat >>confdefs.h <<\EOF
12872 #define HAVE_LIBXT 1
12876 LIBS="-lXt $X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
12883 if test $cf_have_X_LIBS = no ; then
12884 { echo "$as_me:12884: WARNING: Unable to successfully link X Toolkit library (-lXt) with
12885 test program. You will have to check and add the proper libraries by hand
12887 echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with
12888 test program. You will have to check and add the proper libraries by hand
12889 to makefile." >&2;}
12892 cf_x_athena_root=$cf_x_athena
12895 for cf_path in default \
12896 /usr/contrib/X11R6 \
12897 /usr/contrib/X11R5 \
12901 if test -z "$cf_x_athena_inc" ; then
12902 cf_save="$CPPFLAGS"
12903 cf_test=X11/$cf_x_athena_root/SimpleMenu.h
12904 if test $cf_path != default ; then
12905 CPPFLAGS="$cf_save -I$cf_path/include"
12906 echo "$as_me:12906: checking for $cf_test in $cf_path" >&5
12907 echo $ECHO_N "checking for $cf_test in $cf_path... $ECHO_C" >&6
12909 echo "$as_me:12909: checking for $cf_test" >&5
12910 echo $ECHO_N "checking for $cf_test... $ECHO_C" >&6
12912 cat >conftest.$ac_ext <<_ACEOF
12913 #line 12913 "configure"
12914 #include "confdefs.h"
12916 #include <X11/Intrinsic.h>
12917 #include <$cf_test>
12926 rm -f conftest.$ac_objext
12927 if { (eval echo "$as_me:12927: \"$ac_compile\"") >&5
12928 (eval $ac_compile) 2>&5
12930 echo "$as_me:12930: \$? = $ac_status" >&5
12931 (exit $ac_status); } &&
12932 { ac_try='test -s conftest.$ac_objext'
12933 { (eval echo "$as_me:12933: \"$ac_try\"") >&5
12934 (eval $ac_try) 2>&5
12936 echo "$as_me:12936: \$? = $ac_status" >&5
12937 (exit $ac_status); }; }; then
12940 echo "$as_me: failed program was:" >&5
12941 cat conftest.$ac_ext >&5
12944 rm -f conftest.$ac_objext conftest.$ac_ext
12945 echo "$as_me:12945: result: $cf_result" >&5
12946 echo "${ECHO_T}$cf_result" >&6
12947 if test "$cf_result" = yes ; then
12948 cf_x_athena_inc=$cf_path
12951 CPPFLAGS="$cf_save"
12956 if test -z "$cf_x_athena_inc" ; then
12957 { echo "$as_me:12957: WARNING: Unable to successfully find Athena header files with test program" >&5
12958 echo "$as_me: WARNING: Unable to successfully find Athena header files with test program" >&2;}
12959 elif test "$cf_x_athena_inc" != default ; then
12960 CPPFLAGS="$CPPFLAGS -I$cf_x_athena_inc"
12963 cf_x_athena_root=$cf_x_athena
12966 for cf_path in default \
12967 /usr/contrib/X11R6 \
12968 /usr/contrib/X11R5 \
12973 ${cf_x_athena_root} \
12974 ${cf_x_athena_root}7 \
12975 ${cf_x_athena_root}6
12978 "-l$cf_lib -lXmu" \
12979 "-l$cf_lib -lXpm -lXmu" \
12980 "-l${cf_lib}_s -lXmu_s"
12982 if test -z "$cf_x_athena_lib" ; then
12984 cf_test=XawSimpleMenuAddGlobalActions
12985 if test $cf_path != default ; then
12987 cf_add_libs="-L$cf_path/lib $cf_libs"
12988 # Filter out duplicates - this happens with badly-designed ".pc" files...
12989 for cf_add_1lib in $LIBS
12991 for cf_add_2lib in $cf_add_libs
12993 if test "x$cf_add_1lib" = "x$cf_add_2lib"
12999 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13001 LIBS="$cf_add_libs"
13003 echo "$as_me:13003: checking for $cf_libs in $cf_path" >&5
13004 echo $ECHO_N "checking for $cf_libs in $cf_path... $ECHO_C" >&6
13007 cf_add_libs="$cf_libs"
13008 # Filter out duplicates - this happens with badly-designed ".pc" files...
13009 for cf_add_1lib in $LIBS
13011 for cf_add_2lib in $cf_add_libs
13013 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13019 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13021 LIBS="$cf_add_libs"
13023 echo "$as_me:13023: checking for $cf_test in $cf_libs" >&5
13024 echo $ECHO_N "checking for $cf_test in $cf_libs... $ECHO_C" >&6
13026 cat >conftest.$ac_ext <<_ACEOF
13027 #line 13027 "configure"
13028 #include "confdefs.h"
13030 #include <X11/Intrinsic.h>
13031 #include <X11/$cf_x_athena_root/SimpleMenu.h>
13037 $cf_test((XtAppContext) 0)
13042 rm -f conftest.$ac_objext conftest$ac_exeext
13043 if { (eval echo "$as_me:13043: \"$ac_link\"") >&5
13044 (eval $ac_link) 2>&5
13046 echo "$as_me:13046: \$? = $ac_status" >&5
13047 (exit $ac_status); } &&
13048 { ac_try='test -s conftest$ac_exeext'
13049 { (eval echo "$as_me:13049: \"$ac_try\"") >&5
13050 (eval $ac_try) 2>&5
13052 echo "$as_me:13052: \$? = $ac_status" >&5
13053 (exit $ac_status); }; }; then
13056 echo "$as_me: failed program was:" >&5
13057 cat conftest.$ac_ext >&5
13060 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13061 echo "$as_me:13061: result: $cf_result" >&5
13062 echo "${ECHO_T}$cf_result" >&6
13063 if test "$cf_result" = yes ; then
13064 cf_x_athena_lib="$cf_libs"
13070 test -n "$cf_x_athena_lib" && break
13074 if test -z "$cf_x_athena_lib" ; then
13075 { { echo "$as_me:13075: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&5
13076 echo "$as_me: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&2;}
13077 { (exit 1); exit 1; }; }
13080 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13082 cat >>confdefs.h <<EOF
13083 #define $cf_x_athena_LIBS 1
13088 if test -n "$ac_tool_prefix"; then
13089 for ac_prog in xcurses-config
13091 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13092 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13093 echo "$as_me:13093: checking for $ac_word" >&5
13094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13095 if test "${ac_cv_prog_XCURSES_CONFIG+set}" = set; then
13096 echo $ECHO_N "(cached) $ECHO_C" >&6
13098 if test -n "$XCURSES_CONFIG"; then
13099 ac_cv_prog_XCURSES_CONFIG="$XCURSES_CONFIG" # Let the user override the test.
13101 ac_save_IFS=$IFS; IFS=$ac_path_separator
13103 for ac_dir in $ac_dummy; do
13105 test -z "$ac_dir" && ac_dir=.
13106 $as_executable_p "$ac_dir/$ac_word" || continue
13107 ac_cv_prog_XCURSES_CONFIG="$ac_tool_prefix$ac_prog"
13108 echo "$as_me:13108: found $ac_dir/$ac_word" >&5
13114 XCURSES_CONFIG=$ac_cv_prog_XCURSES_CONFIG
13115 if test -n "$XCURSES_CONFIG"; then
13116 echo "$as_me:13116: result: $XCURSES_CONFIG" >&5
13117 echo "${ECHO_T}$XCURSES_CONFIG" >&6
13119 echo "$as_me:13119: result: no" >&5
13120 echo "${ECHO_T}no" >&6
13123 test -n "$XCURSES_CONFIG" && break
13126 if test -z "$XCURSES_CONFIG"; then
13127 ac_ct_XCURSES_CONFIG=$XCURSES_CONFIG
13128 for ac_prog in xcurses-config
13130 # Extract the first word of "$ac_prog", so it can be a program name with args.
13131 set dummy $ac_prog; ac_word=$2
13132 echo "$as_me:13132: checking for $ac_word" >&5
13133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13134 if test "${ac_cv_prog_ac_ct_XCURSES_CONFIG+set}" = set; then
13135 echo $ECHO_N "(cached) $ECHO_C" >&6
13137 if test -n "$ac_ct_XCURSES_CONFIG"; then
13138 ac_cv_prog_ac_ct_XCURSES_CONFIG="$ac_ct_XCURSES_CONFIG" # Let the user override the test.
13140 ac_save_IFS=$IFS; IFS=$ac_path_separator
13142 for ac_dir in $ac_dummy; do
13144 test -z "$ac_dir" && ac_dir=.
13145 $as_executable_p "$ac_dir/$ac_word" || continue
13146 ac_cv_prog_ac_ct_XCURSES_CONFIG="$ac_prog"
13147 echo "$as_me:13147: found $ac_dir/$ac_word" >&5
13153 ac_ct_XCURSES_CONFIG=$ac_cv_prog_ac_ct_XCURSES_CONFIG
13154 if test -n "$ac_ct_XCURSES_CONFIG"; then
13155 echo "$as_me:13155: result: $ac_ct_XCURSES_CONFIG" >&5
13156 echo "${ECHO_T}$ac_ct_XCURSES_CONFIG" >&6
13158 echo "$as_me:13158: result: no" >&5
13159 echo "${ECHO_T}no" >&6
13162 test -n "$ac_ct_XCURSES_CONFIG" && break
13164 test -n "$ac_ct_XCURSES_CONFIG" || ac_ct_XCURSES_CONFIG="none"
13166 XCURSES_CONFIG=$ac_ct_XCURSES_CONFIG
13169 if test "$XCURSES_CONFIG" != none ; then
13171 CPPFLAGS="$CPPFLAGS `$XCURSES_CONFIG --cflags`"
13173 cf_add_libs="`$XCURSES_CONFIG --libs`"
13174 # Filter out duplicates - this happens with badly-designed ".pc" files...
13175 for cf_add_1lib in $LIBS
13177 for cf_add_2lib in $cf_add_libs
13179 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13185 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13187 LIBS="$cf_add_libs"
13189 cf_cv_lib_XCurses=yes
13193 LDFLAGS="$LDFLAGS $X_LIBS"
13195 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
13197 echo "${as_me:-configure}:13197: testing checking additions to CFLAGS ..." 1>&5
13199 cf_check_cflags="$CFLAGS"
13200 cf_check_cppflags="$CPPFLAGS"
13205 cf_new_extra_cppflags=
13207 for cf_add_cflags in $X_CFLAGS
13209 case $cf_fix_cppflags in
13211 case $cf_add_cflags in
13212 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13213 case $cf_add_cflags in
13215 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13217 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13218 && test -z "${cf_tst_cflags}" \
13219 && cf_fix_cppflags=yes
13221 if test $cf_fix_cppflags = yes ; then
13222 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13224 elif test "${cf_tst_cflags}" = "\"'" ; then
13225 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13230 case "$CPPFLAGS" in
13234 case $cf_add_cflags in
13236 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13238 CPPFLAGS=`echo "$CPPFLAGS" | \
13239 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13240 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13244 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
13249 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
13254 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
13256 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13258 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13259 && test -z "${cf_tst_cflags}" \
13260 && cf_fix_cppflags=no
13265 if test -n "$cf_new_cflags" ; then
13266 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
13268 echo "${as_me:-configure}:13268: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
13270 CFLAGS="$CFLAGS $cf_new_cflags"
13273 if test -n "$cf_new_cppflags" ; then
13274 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
13276 echo "${as_me:-configure}:13276: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
13278 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
13281 if test -n "$cf_new_extra_cppflags" ; then
13282 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
13284 echo "${as_me:-configure}:13284: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
13286 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
13289 if test "x$cf_check_cflags" != "x$CFLAGS" ; then
13290 cat >conftest.$ac_ext <<_ACEOF
13291 #line 13291 "configure"
13292 #include "confdefs.h"
13297 printf("Hello world");
13302 rm -f conftest.$ac_objext conftest$ac_exeext
13303 if { (eval echo "$as_me:13303: \"$ac_link\"") >&5
13304 (eval $ac_link) 2>&5
13306 echo "$as_me:13306: \$? = $ac_status" >&5
13307 (exit $ac_status); } &&
13308 { ac_try='test -s conftest$ac_exeext'
13309 { (eval echo "$as_me:13309: \"$ac_try\"") >&5
13310 (eval $ac_try) 2>&5
13312 echo "$as_me:13312: \$? = $ac_status" >&5
13313 (exit $ac_status); }; }; then
13316 echo "$as_me: failed program was:" >&5
13317 cat conftest.$ac_ext >&5
13318 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
13320 echo "${as_me:-configure}:13320: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
13322 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then
13323 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
13325 echo "${as_me:-configure}:13325: testing but keeping change to \$CPPFLAGS ..." 1>&5
13328 CFLAGS="$cf_check_flags"
13330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13333 echo "$as_me:13333: checking for XOpenDisplay in -lX11" >&5
13334 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
13335 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
13336 echo $ECHO_N "(cached) $ECHO_C" >&6
13338 ac_check_lib_save_LIBS=$LIBS
13339 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
13340 cat >conftest.$ac_ext <<_ACEOF
13341 #line 13341 "configure"
13342 #include "confdefs.h"
13344 /* Override any gcc2 internal prototype to avoid an error. */
13348 /* We use char because int might match the return type of a gcc2
13349 builtin and then its argument prototype would still apply. */
13350 char XOpenDisplay ();
13359 rm -f conftest.$ac_objext conftest$ac_exeext
13360 if { (eval echo "$as_me:13360: \"$ac_link\"") >&5
13361 (eval $ac_link) 2>&5
13363 echo "$as_me:13363: \$? = $ac_status" >&5
13364 (exit $ac_status); } &&
13365 { ac_try='test -s conftest$ac_exeext'
13366 { (eval echo "$as_me:13366: \"$ac_try\"") >&5
13367 (eval $ac_try) 2>&5
13369 echo "$as_me:13369: \$? = $ac_status" >&5
13370 (exit $ac_status); }; }; then
13371 ac_cv_lib_X11_XOpenDisplay=yes
13373 echo "$as_me: failed program was:" >&5
13374 cat conftest.$ac_ext >&5
13375 ac_cv_lib_X11_XOpenDisplay=no
13377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13378 LIBS=$ac_check_lib_save_LIBS
13380 echo "$as_me:13380: result: $ac_cv_lib_X11_XOpenDisplay" >&5
13381 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
13382 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
13384 cf_add_libs="-lX11"
13385 # Filter out duplicates - this happens with badly-designed ".pc" files...
13386 for cf_add_1lib in $LIBS
13388 for cf_add_2lib in $cf_add_libs
13390 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13396 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13398 LIBS="$cf_add_libs"
13402 echo "$as_me:13402: checking for XCurses library" >&5
13403 echo $ECHO_N "checking for XCurses library... $ECHO_C" >&6
13404 if test "${cf_cv_lib_XCurses+set}" = set; then
13405 echo $ECHO_N "(cached) $ECHO_C" >&6
13408 cf_add_libs="-lXCurses"
13409 # Filter out duplicates - this happens with badly-designed ".pc" files...
13410 for cf_add_1lib in $LIBS
13412 for cf_add_2lib in $cf_add_libs
13414 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13420 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13422 LIBS="$cf_add_libs"
13424 cat >conftest.$ac_ext <<_ACEOF
13425 #line 13425 "configure"
13426 #include "confdefs.h"
13428 #include <xcurses.h>
13429 char *XCursesProgramName = "test";
13439 rm -f conftest.$ac_objext conftest$ac_exeext
13440 if { (eval echo "$as_me:13440: \"$ac_link\"") >&5
13441 (eval $ac_link) 2>&5
13443 echo "$as_me:13443: \$? = $ac_status" >&5
13444 (exit $ac_status); } &&
13445 { ac_try='test -s conftest$ac_exeext'
13446 { (eval echo "$as_me:13446: \"$ac_try\"") >&5
13447 (eval $ac_try) 2>&5
13449 echo "$as_me:13449: \$? = $ac_status" >&5
13450 (exit $ac_status); }; }; then
13451 cf_cv_lib_XCurses=yes
13453 echo "$as_me: failed program was:" >&5
13454 cat conftest.$ac_ext >&5
13455 cf_cv_lib_XCurses=no
13457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13460 echo "$as_me:13460: result: $cf_cv_lib_XCurses" >&5
13461 echo "${ECHO_T}$cf_cv_lib_XCurses" >&6
13465 if test $cf_cv_lib_XCurses = yes ; then
13467 cat >>confdefs.h <<\EOF
13471 cat >>confdefs.h <<\EOF
13475 echo "$as_me:13475: checking for xcurses.h" >&5
13476 echo $ECHO_N "checking for xcurses.h... $ECHO_C" >&6
13477 if test "${ac_cv_header_xcurses_h+set}" = set; then
13478 echo $ECHO_N "(cached) $ECHO_C" >&6
13480 cat >conftest.$ac_ext <<_ACEOF
13481 #line 13481 "configure"
13482 #include "confdefs.h"
13483 #include <xcurses.h>
13485 if { (eval echo "$as_me:13485: \"$ac_cpp conftest.$ac_ext\"") >&5
13486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13488 egrep -v '^ *\+' conftest.er1 >conftest.err
13490 cat conftest.err >&5
13491 echo "$as_me:13491: \$? = $ac_status" >&5
13492 (exit $ac_status); } >/dev/null; then
13493 if test -s conftest.err; then
13494 ac_cpp_err=$ac_c_preproc_warn_flag
13501 if test -z "$ac_cpp_err"; then
13502 ac_cv_header_xcurses_h=yes
13504 echo "$as_me: failed program was:" >&5
13505 cat conftest.$ac_ext >&5
13506 ac_cv_header_xcurses_h=no
13508 rm -f conftest.err conftest.$ac_ext
13510 echo "$as_me:13510: result: $ac_cv_header_xcurses_h" >&5
13511 echo "${ECHO_T}$ac_cv_header_xcurses_h" >&6
13512 if test $ac_cv_header_xcurses_h = yes; then
13514 cat >>confdefs.h <<\EOF
13515 #define HAVE_XCURSES 1
13521 { { echo "$as_me:13521: error: Cannot link with XCurses" >&5
13522 echo "$as_me: error: Cannot link with XCurses" >&2;}
13523 { (exit 1); exit 1; }; }
13528 { { echo "$as_me:13528: error: unexpected screen-value: $cf_cv_screen" >&5
13529 echo "$as_me: error: unexpected screen-value: $cf_cv_screen" >&2;}
13530 { (exit 1); exit 1; }; }
13534 : ${cf_nculib_root:=$cf_cv_screen}
13535 as_ac_Lib=`echo "ac_cv_lib_$cf_nculib_root''__nc_init_pthreads" | $as_tr_sh`
13536 echo "$as_me:13536: checking for _nc_init_pthreads in -l$cf_nculib_root" >&5
13537 echo $ECHO_N "checking for _nc_init_pthreads in -l$cf_nculib_root... $ECHO_C" >&6
13538 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13539 echo $ECHO_N "(cached) $ECHO_C" >&6
13541 ac_check_lib_save_LIBS=$LIBS
13542 LIBS="-l$cf_nculib_root $LIBS"
13543 cat >conftest.$ac_ext <<_ACEOF
13544 #line 13544 "configure"
13545 #include "confdefs.h"
13547 /* Override any gcc2 internal prototype to avoid an error. */
13551 /* We use char because int might match the return type of a gcc2
13552 builtin and then its argument prototype would still apply. */
13553 char _nc_init_pthreads ();
13557 _nc_init_pthreads ();
13562 rm -f conftest.$ac_objext conftest$ac_exeext
13563 if { (eval echo "$as_me:13563: \"$ac_link\"") >&5
13564 (eval $ac_link) 2>&5
13566 echo "$as_me:13566: \$? = $ac_status" >&5
13567 (exit $ac_status); } &&
13568 { ac_try='test -s conftest$ac_exeext'
13569 { (eval echo "$as_me:13569: \"$ac_try\"") >&5
13570 (eval $ac_try) 2>&5
13572 echo "$as_me:13572: \$? = $ac_status" >&5
13573 (exit $ac_status); }; }; then
13574 eval "$as_ac_Lib=yes"
13576 echo "$as_me: failed program was:" >&5
13577 cat conftest.$ac_ext >&5
13578 eval "$as_ac_Lib=no"
13580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13581 LIBS=$ac_check_lib_save_LIBS
13583 echo "$as_me:13583: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13584 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13585 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13586 cf_cv_ncurses_pthreads=yes
13588 cf_cv_ncurses_pthreads=no
13591 if test "$cf_cv_ncurses_pthreads" = yes
13594 cf_add_libs="-lpthread"
13595 # Filter out duplicates - this happens with badly-designed ".pc" files...
13596 for cf_add_1lib in $LIBS
13598 for cf_add_2lib in $cf_add_libs
13600 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13606 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13608 LIBS="$cf_add_libs"
13612 case $cf_cv_screen in
13614 cf_cv_libtype=`echo "$cf_cv_screen" | sed -e 's/^ncurses//'`
13618 echo "$as_me:13618: checking for NetBSD form.h" >&5
13619 echo $ECHO_N "checking for NetBSD form.h... $ECHO_C" >&6
13620 if test "${cf_cv_netbsd_form_h+set}" = set; then
13621 echo $ECHO_N "(cached) $ECHO_C" >&6
13624 cat >conftest.$ac_ext <<_ACEOF
13625 #line 13625 "configure"
13626 #include "confdefs.h"
13628 #include <${cf_cv_ncurses_header:-curses.h}>
13636 int y = current_field(form)->cursor_ypos;
13637 int x = current_field(form)->cursor_xpos;
13643 rm -f conftest.$ac_objext
13644 if { (eval echo "$as_me:13644: \"$ac_compile\"") >&5
13645 (eval $ac_compile) 2>&5
13647 echo "$as_me:13647: \$? = $ac_status" >&5
13648 (exit $ac_status); } &&
13649 { ac_try='test -s conftest.$ac_objext'
13650 { (eval echo "$as_me:13650: \"$ac_try\"") >&5
13651 (eval $ac_try) 2>&5
13653 echo "$as_me:13653: \$? = $ac_status" >&5
13654 (exit $ac_status); }; }; then
13655 cf_cv_netbsd_form_h=yes
13658 echo "$as_me: failed program was:" >&5
13659 cat conftest.$ac_ext >&5
13660 cf_cv_netbsd_form_h=no
13662 rm -f conftest.$ac_objext conftest.$ac_ext
13665 echo "$as_me:13665: result: $cf_cv_netbsd_form_h" >&5
13666 echo "${ECHO_T}$cf_cv_netbsd_form_h" >&6
13668 test "$cf_cv_netbsd_form_h" = yes &&
13669 cat >>confdefs.h <<\EOF
13670 #define HAVE_NETBSD_FORM_H 1
13673 echo "$as_me:13673: checking for NetBSD menu.h" >&5
13674 echo $ECHO_N "checking for NetBSD menu.h... $ECHO_C" >&6
13675 if test "${cf_cv_netbsd_menu_h+set}" = set; then
13676 echo $ECHO_N "(cached) $ECHO_C" >&6
13679 cat >conftest.$ac_ext <<_ACEOF
13680 #line 13680 "configure"
13681 #include "confdefs.h"
13683 #include <${cf_cv_ncurses_header:-curses.h}>
13691 int y = menu->max_item_width;
13697 rm -f conftest.$ac_objext
13698 if { (eval echo "$as_me:13698: \"$ac_compile\"") >&5
13699 (eval $ac_compile) 2>&5
13701 echo "$as_me:13701: \$? = $ac_status" >&5
13702 (exit $ac_status); } &&
13703 { ac_try='test -s conftest.$ac_objext'
13704 { (eval echo "$as_me:13704: \"$ac_try\"") >&5
13705 (eval $ac_try) 2>&5
13707 echo "$as_me:13707: \$? = $ac_status" >&5
13708 (exit $ac_status); }; }; then
13709 cf_cv_netbsd_menu_h=yes
13712 echo "$as_me: failed program was:" >&5
13713 cat conftest.$ac_ext >&5
13714 cf_cv_netbsd_menu_h=no
13716 rm -f conftest.$ac_objext conftest.$ac_ext
13719 echo "$as_me:13719: result: $cf_cv_netbsd_menu_h" >&5
13720 echo "${ECHO_T}$cf_cv_netbsd_menu_h" >&6
13722 test "$cf_cv_netbsd_menu_h" = yes &&
13723 cat >>confdefs.h <<\EOF
13724 #define HAVE_NETBSD_MENU_H 1
13730 case $cf_cv_screen in
13734 # look for curses-related libraries
13736 as_ac_Lib=`echo "ac_cv_lib_panel$cf_cv_libtype''_new_panel" | $as_tr_sh`
13737 echo "$as_me:13737: checking for new_panel in -lpanel$cf_cv_libtype" >&5
13738 echo $ECHO_N "checking for new_panel in -lpanel$cf_cv_libtype... $ECHO_C" >&6
13739 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13740 echo $ECHO_N "(cached) $ECHO_C" >&6
13742 ac_check_lib_save_LIBS=$LIBS
13743 LIBS="-lpanel$cf_cv_libtype $LIBS"
13744 cat >conftest.$ac_ext <<_ACEOF
13745 #line 13745 "configure"
13746 #include "confdefs.h"
13748 /* Override any gcc2 internal prototype to avoid an error. */
13752 /* We use char because int might match the return type of a gcc2
13753 builtin and then its argument prototype would still apply. */
13763 rm -f conftest.$ac_objext conftest$ac_exeext
13764 if { (eval echo "$as_me:13764: \"$ac_link\"") >&5
13765 (eval $ac_link) 2>&5
13767 echo "$as_me:13767: \$? = $ac_status" >&5
13768 (exit $ac_status); } &&
13769 { ac_try='test -s conftest$ac_exeext'
13770 { (eval echo "$as_me:13770: \"$ac_try\"") >&5
13771 (eval $ac_try) 2>&5
13773 echo "$as_me:13773: \$? = $ac_status" >&5
13774 (exit $ac_status); }; }; then
13775 eval "$as_ac_Lib=yes"
13777 echo "$as_me: failed program was:" >&5
13778 cat conftest.$ac_ext >&5
13779 eval "$as_ac_Lib=no"
13781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13782 LIBS=$ac_check_lib_save_LIBS
13784 echo "$as_me:13784: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13785 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13786 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13788 cf_upper=`echo "have_libpanel" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13790 cf_add_libs="-lpanel$cf_cv_libtype"
13791 # Filter out duplicates - this happens with badly-designed ".pc" files...
13792 for cf_add_1lib in $LIBS
13794 for cf_add_2lib in $cf_add_libs
13796 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13802 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13804 LIBS="$cf_add_libs"
13806 cat >>confdefs.h <<EOF
13807 #define $cf_upper 1
13812 as_ac_Lib=`echo "ac_cv_lib_menu$cf_cv_libtype''_menu_driver" | $as_tr_sh`
13813 echo "$as_me:13813: checking for menu_driver in -lmenu$cf_cv_libtype" >&5
13814 echo $ECHO_N "checking for menu_driver in -lmenu$cf_cv_libtype... $ECHO_C" >&6
13815 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13816 echo $ECHO_N "(cached) $ECHO_C" >&6
13818 ac_check_lib_save_LIBS=$LIBS
13819 LIBS="-lmenu$cf_cv_libtype $LIBS"
13820 cat >conftest.$ac_ext <<_ACEOF
13821 #line 13821 "configure"
13822 #include "confdefs.h"
13824 /* Override any gcc2 internal prototype to avoid an error. */
13828 /* We use char because int might match the return type of a gcc2
13829 builtin and then its argument prototype would still apply. */
13830 char menu_driver ();
13839 rm -f conftest.$ac_objext conftest$ac_exeext
13840 if { (eval echo "$as_me:13840: \"$ac_link\"") >&5
13841 (eval $ac_link) 2>&5
13843 echo "$as_me:13843: \$? = $ac_status" >&5
13844 (exit $ac_status); } &&
13845 { ac_try='test -s conftest$ac_exeext'
13846 { (eval echo "$as_me:13846: \"$ac_try\"") >&5
13847 (eval $ac_try) 2>&5
13849 echo "$as_me:13849: \$? = $ac_status" >&5
13850 (exit $ac_status); }; }; then
13851 eval "$as_ac_Lib=yes"
13853 echo "$as_me: failed program was:" >&5
13854 cat conftest.$ac_ext >&5
13855 eval "$as_ac_Lib=no"
13857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13858 LIBS=$ac_check_lib_save_LIBS
13860 echo "$as_me:13860: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13861 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13862 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13864 cf_upper=`echo "have_libmenu" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13866 cf_add_libs="-lmenu$cf_cv_libtype"
13867 # Filter out duplicates - this happens with badly-designed ".pc" files...
13868 for cf_add_1lib in $LIBS
13870 for cf_add_2lib in $cf_add_libs
13872 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13878 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13880 LIBS="$cf_add_libs"
13882 cat >>confdefs.h <<EOF
13883 #define $cf_upper 1
13888 as_ac_Lib=`echo "ac_cv_lib_form$cf_cv_libtype''_form_driver" | $as_tr_sh`
13889 echo "$as_me:13889: checking for form_driver in -lform$cf_cv_libtype" >&5
13890 echo $ECHO_N "checking for form_driver in -lform$cf_cv_libtype... $ECHO_C" >&6
13891 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
13892 echo $ECHO_N "(cached) $ECHO_C" >&6
13894 ac_check_lib_save_LIBS=$LIBS
13895 LIBS="-lform$cf_cv_libtype $LIBS"
13896 cat >conftest.$ac_ext <<_ACEOF
13897 #line 13897 "configure"
13898 #include "confdefs.h"
13900 /* Override any gcc2 internal prototype to avoid an error. */
13904 /* We use char because int might match the return type of a gcc2
13905 builtin and then its argument prototype would still apply. */
13906 char form_driver ();
13915 rm -f conftest.$ac_objext conftest$ac_exeext
13916 if { (eval echo "$as_me:13916: \"$ac_link\"") >&5
13917 (eval $ac_link) 2>&5
13919 echo "$as_me:13919: \$? = $ac_status" >&5
13920 (exit $ac_status); } &&
13921 { ac_try='test -s conftest$ac_exeext'
13922 { (eval echo "$as_me:13922: \"$ac_try\"") >&5
13923 (eval $ac_try) 2>&5
13925 echo "$as_me:13925: \$? = $ac_status" >&5
13926 (exit $ac_status); }; }; then
13927 eval "$as_ac_Lib=yes"
13929 echo "$as_me: failed program was:" >&5
13930 cat conftest.$ac_ext >&5
13931 eval "$as_ac_Lib=no"
13933 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13934 LIBS=$ac_check_lib_save_LIBS
13936 echo "$as_me:13936: result: `eval echo '${'$as_ac_Lib'}'`" >&5
13937 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
13938 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
13940 cf_upper=`echo "have_libform" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
13942 cf_add_libs="-lform$cf_cv_libtype"
13943 # Filter out duplicates - this happens with badly-designed ".pc" files...
13944 for cf_add_1lib in $LIBS
13946 for cf_add_2lib in $cf_add_libs
13948 if test "x$cf_add_1lib" = "x$cf_add_2lib"
13954 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
13956 LIBS="$cf_add_libs"
13958 cat >>confdefs.h <<EOF
13959 #define $cf_upper 1
13964 # look for curses-related headers
13975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13976 echo "$as_me:13976: checking for $ac_header" >&5
13977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13979 echo $ECHO_N "(cached) $ECHO_C" >&6
13981 cat >conftest.$ac_ext <<_ACEOF
13982 #line 13982 "configure"
13983 #include "confdefs.h"
13984 #include <$ac_header>
13986 if { (eval echo "$as_me:13986: \"$ac_cpp conftest.$ac_ext\"") >&5
13987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13989 egrep -v '^ *\+' conftest.er1 >conftest.err
13991 cat conftest.err >&5
13992 echo "$as_me:13992: \$? = $ac_status" >&5
13993 (exit $ac_status); } >/dev/null; then
13994 if test -s conftest.err; then
13995 ac_cpp_err=$ac_c_preproc_warn_flag
14002 if test -z "$ac_cpp_err"; then
14003 eval "$as_ac_Header=yes"
14005 echo "$as_me: failed program was:" >&5
14006 cat conftest.$ac_ext >&5
14007 eval "$as_ac_Header=no"
14009 rm -f conftest.err conftest.$ac_ext
14011 echo "$as_me:14011: result: `eval echo '${'$as_ac_Header'}'`" >&5
14012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14014 cat >>confdefs.h <<EOF
14015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14024 echo "$as_me:14024: checking for ANSI C header files" >&5
14025 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
14026 if test "${ac_cv_header_stdc+set}" = set; then
14027 echo $ECHO_N "(cached) $ECHO_C" >&6
14029 cat >conftest.$ac_ext <<_ACEOF
14030 #line 14030 "configure"
14031 #include "confdefs.h"
14032 #include <stdlib.h>
14033 #include <stdarg.h>
14034 #include <string.h>
14038 if { (eval echo "$as_me:14038: \"$ac_cpp conftest.$ac_ext\"") >&5
14039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14041 egrep -v '^ *\+' conftest.er1 >conftest.err
14043 cat conftest.err >&5
14044 echo "$as_me:14044: \$? = $ac_status" >&5
14045 (exit $ac_status); } >/dev/null; then
14046 if test -s conftest.err; then
14047 ac_cpp_err=$ac_c_preproc_warn_flag
14054 if test -z "$ac_cpp_err"; then
14055 ac_cv_header_stdc=yes
14057 echo "$as_me: failed program was:" >&5
14058 cat conftest.$ac_ext >&5
14059 ac_cv_header_stdc=no
14061 rm -f conftest.err conftest.$ac_ext
14063 if test $ac_cv_header_stdc = yes; then
14064 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14065 cat >conftest.$ac_ext <<_ACEOF
14066 #line 14066 "configure"
14067 #include "confdefs.h"
14068 #include <string.h>
14071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14072 egrep "memchr" >/dev/null 2>&1; then
14075 ac_cv_header_stdc=no
14081 if test $ac_cv_header_stdc = yes; then
14082 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14083 cat >conftest.$ac_ext <<_ACEOF
14084 #line 14084 "configure"
14085 #include "confdefs.h"
14086 #include <stdlib.h>
14089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14090 egrep "free" >/dev/null 2>&1; then
14093 ac_cv_header_stdc=no
14099 if test $ac_cv_header_stdc = yes; then
14100 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14101 if test "$cross_compiling" = yes; then
14104 cat >conftest.$ac_ext <<_ACEOF
14105 #line 14105 "configure"
14106 #include "confdefs.h"
14108 #if ((' ' & 0x0FF) == 0x020)
14109 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14110 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14112 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14113 || ('j' <= (c) && (c) <= 'r') \
14114 || ('s' <= (c) && (c) <= 'z'))
14115 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14118 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14123 for (i = 0; i < 256; i++)
14124 if (XOR (islower (i), ISLOWER (i))
14125 || toupper (i) != TOUPPER (i))
14126 $ac_main_return(2);
14127 $ac_main_return (0);
14130 rm -f conftest$ac_exeext
14131 if { (eval echo "$as_me:14131: \"$ac_link\"") >&5
14132 (eval $ac_link) 2>&5
14134 echo "$as_me:14134: \$? = $ac_status" >&5
14135 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14136 { (eval echo "$as_me:14136: \"$ac_try\"") >&5
14137 (eval $ac_try) 2>&5
14139 echo "$as_me:14139: \$? = $ac_status" >&5
14140 (exit $ac_status); }; }; then
14143 echo "$as_me: program exited with status $ac_status" >&5
14144 echo "$as_me: failed program was:" >&5
14145 cat conftest.$ac_ext >&5
14146 ac_cv_header_stdc=no
14148 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14152 echo "$as_me:14152: result: $ac_cv_header_stdc" >&5
14153 echo "${ECHO_T}$ac_cv_header_stdc" >&6
14154 if test $ac_cv_header_stdc = yes; then
14156 cat >>confdefs.h <<\EOF
14157 #define STDC_HEADERS 1
14162 echo "$as_me:14162: checking whether time.h and sys/time.h may both be included" >&5
14163 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
14164 if test "${ac_cv_header_time+set}" = set; then
14165 echo $ECHO_N "(cached) $ECHO_C" >&6
14167 cat >conftest.$ac_ext <<_ACEOF
14168 #line 14168 "configure"
14169 #include "confdefs.h"
14170 #include <sys/types.h>
14171 #include <sys/time.h>
14177 if ((struct tm *) 0)
14183 rm -f conftest.$ac_objext
14184 if { (eval echo "$as_me:14184: \"$ac_compile\"") >&5
14185 (eval $ac_compile) 2>&5
14187 echo "$as_me:14187: \$? = $ac_status" >&5
14188 (exit $ac_status); } &&
14189 { ac_try='test -s conftest.$ac_objext'
14190 { (eval echo "$as_me:14190: \"$ac_try\"") >&5
14191 (eval $ac_try) 2>&5
14193 echo "$as_me:14193: \$? = $ac_status" >&5
14194 (exit $ac_status); }; }; then
14195 ac_cv_header_time=yes
14197 echo "$as_me: failed program was:" >&5
14198 cat conftest.$ac_ext >&5
14199 ac_cv_header_time=no
14201 rm -f conftest.$ac_objext conftest.$ac_ext
14203 echo "$as_me:14203: result: $ac_cv_header_time" >&5
14204 echo "${ECHO_T}$ac_cv_header_time" >&6
14205 if test $ac_cv_header_time = yes; then
14207 cat >>confdefs.h <<\EOF
14208 #define TIME_WITH_SYS_TIME 1
14225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14226 echo "$as_me:14226: checking for $ac_header" >&5
14227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14229 echo $ECHO_N "(cached) $ECHO_C" >&6
14231 cat >conftest.$ac_ext <<_ACEOF
14232 #line 14232 "configure"
14233 #include "confdefs.h"
14234 #include <$ac_header>
14236 if { (eval echo "$as_me:14236: \"$ac_cpp conftest.$ac_ext\"") >&5
14237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14239 egrep -v '^ *\+' conftest.er1 >conftest.err
14241 cat conftest.err >&5
14242 echo "$as_me:14242: \$? = $ac_status" >&5
14243 (exit $ac_status); } >/dev/null; then
14244 if test -s conftest.err; then
14245 ac_cpp_err=$ac_c_preproc_warn_flag
14252 if test -z "$ac_cpp_err"; then
14253 eval "$as_ac_Header=yes"
14255 echo "$as_me: failed program was:" >&5
14256 cat conftest.$ac_ext >&5
14257 eval "$as_ac_Header=no"
14259 rm -f conftest.err conftest.$ac_ext
14261 echo "$as_me:14261: result: `eval echo '${'$as_ac_Header'}'`" >&5
14262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14264 cat >>confdefs.h <<EOF
14265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14271 for ac_header in unistd.h getopt.h
14273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14274 echo "$as_me:14274: checking for $ac_header" >&5
14275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14277 echo $ECHO_N "(cached) $ECHO_C" >&6
14279 cat >conftest.$ac_ext <<_ACEOF
14280 #line 14280 "configure"
14281 #include "confdefs.h"
14282 #include <$ac_header>
14284 if { (eval echo "$as_me:14284: \"$ac_cpp conftest.$ac_ext\"") >&5
14285 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14287 egrep -v '^ *\+' conftest.er1 >conftest.err
14289 cat conftest.err >&5
14290 echo "$as_me:14290: \$? = $ac_status" >&5
14291 (exit $ac_status); } >/dev/null; then
14292 if test -s conftest.err; then
14293 ac_cpp_err=$ac_c_preproc_warn_flag
14300 if test -z "$ac_cpp_err"; then
14301 eval "$as_ac_Header=yes"
14303 echo "$as_me: failed program was:" >&5
14304 cat conftest.$ac_ext >&5
14305 eval "$as_ac_Header=no"
14307 rm -f conftest.err conftest.$ac_ext
14309 echo "$as_me:14309: result: `eval echo '${'$as_ac_Header'}'`" >&5
14310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14312 cat >>confdefs.h <<EOF
14313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14319 echo "$as_me:14319: checking for header declaring getopt variables" >&5
14320 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
14321 if test "${cf_cv_getopt_header+set}" = set; then
14322 echo $ECHO_N "(cached) $ECHO_C" >&6
14325 cf_cv_getopt_header=none
14326 for cf_header in stdio.h stdlib.h unistd.h getopt.h
14328 cat >conftest.$ac_ext <<_ACEOF
14329 #line 14329 "configure"
14330 #include "confdefs.h"
14332 #include <$cf_header>
14336 int x = optind; char *y = optarg
14341 rm -f conftest.$ac_objext
14342 if { (eval echo "$as_me:14342: \"$ac_compile\"") >&5
14343 (eval $ac_compile) 2>&5
14345 echo "$as_me:14345: \$? = $ac_status" >&5
14346 (exit $ac_status); } &&
14347 { ac_try='test -s conftest.$ac_objext'
14348 { (eval echo "$as_me:14348: \"$ac_try\"") >&5
14349 (eval $ac_try) 2>&5
14351 echo "$as_me:14351: \$? = $ac_status" >&5
14352 (exit $ac_status); }; }; then
14353 cf_cv_getopt_header=$cf_header
14356 echo "$as_me: failed program was:" >&5
14357 cat conftest.$ac_ext >&5
14359 rm -f conftest.$ac_objext conftest.$ac_ext
14363 echo "$as_me:14363: result: $cf_cv_getopt_header" >&5
14364 echo "${ECHO_T}$cf_cv_getopt_header" >&6
14365 if test $cf_cv_getopt_header != none ; then
14367 cat >>confdefs.h <<\EOF
14368 #define HAVE_GETOPT_HEADER 1
14372 if test $cf_cv_getopt_header = getopt.h ; then
14374 cat >>confdefs.h <<\EOF
14375 #define NEED_GETOPT_H 1
14385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14386 echo "$as_me:14386: checking for $ac_func" >&5
14387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14388 if eval "test \"\${$as_ac_var+set}\" = set"; then
14389 echo $ECHO_N "(cached) $ECHO_C" >&6
14391 cat >conftest.$ac_ext <<_ACEOF
14392 #line 14392 "configure"
14393 #include "confdefs.h"
14394 /* System header to define __stub macros and hopefully few prototypes,
14395 which can conflict with char $ac_func (); below. */
14396 #include <assert.h>
14397 /* Override any gcc2 internal prototype to avoid an error. */
14401 /* We use char because int might match the return type of a gcc2
14402 builtin and then its argument prototype would still apply. */
14409 /* The GNU C library defines this for functions which it implements
14410 to always fail with ENOSYS. Some functions are actually named
14411 something starting with __ and the normal name is an alias. */
14412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14415 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
14422 rm -f conftest.$ac_objext conftest$ac_exeext
14423 if { (eval echo "$as_me:14423: \"$ac_link\"") >&5
14424 (eval $ac_link) 2>&5
14426 echo "$as_me:14426: \$? = $ac_status" >&5
14427 (exit $ac_status); } &&
14428 { ac_try='test -s conftest$ac_exeext'
14429 { (eval echo "$as_me:14429: \"$ac_try\"") >&5
14430 (eval $ac_try) 2>&5
14432 echo "$as_me:14432: \$? = $ac_status" >&5
14433 (exit $ac_status); }; }; then
14434 eval "$as_ac_var=yes"
14436 echo "$as_me: failed program was:" >&5
14437 cat conftest.$ac_ext >&5
14438 eval "$as_ac_var=no"
14440 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14442 echo "$as_me:14442: result: `eval echo '${'$as_ac_var'}'`" >&5
14443 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14444 if test `eval echo '${'$as_ac_var'}'` = yes; then
14445 cat >>confdefs.h <<EOF
14446 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14452 if test "x$ac_cv_func_getopt" = xno; then
14453 { { echo "$as_me:14453: error: getopt is required for building programs" >&5
14454 echo "$as_me: error: getopt is required for building programs" >&2;}
14455 { (exit 1); exit 1; }; }
14458 if test "$cf_enable_widec" = yes; then
14471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14472 echo "$as_me:14472: checking for $ac_func" >&5
14473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14474 if eval "test \"\${$as_ac_var+set}\" = set"; then
14475 echo $ECHO_N "(cached) $ECHO_C" >&6
14477 cat >conftest.$ac_ext <<_ACEOF
14478 #line 14478 "configure"
14479 #include "confdefs.h"
14480 /* System header to define __stub macros and hopefully few prototypes,
14481 which can conflict with char $ac_func (); below. */
14482 #include <assert.h>
14483 /* Override any gcc2 internal prototype to avoid an error. */
14487 /* We use char because int might match the return type of a gcc2
14488 builtin and then its argument prototype would still apply. */
14495 /* The GNU C library defines this for functions which it implements
14496 to always fail with ENOSYS. Some functions are actually named
14497 something starting with __ and the normal name is an alias. */
14498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14501 f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1;
14508 rm -f conftest.$ac_objext conftest$ac_exeext
14509 if { (eval echo "$as_me:14509: \"$ac_link\"") >&5
14510 (eval $ac_link) 2>&5
14512 echo "$as_me:14512: \$? = $ac_status" >&5
14513 (exit $ac_status); } &&
14514 { ac_try='test -s conftest$ac_exeext'
14515 { (eval echo "$as_me:14515: \"$ac_try\"") >&5
14516 (eval $ac_try) 2>&5
14518 echo "$as_me:14518: \$? = $ac_status" >&5
14519 (exit $ac_status); }; }; then
14520 eval "$as_ac_var=yes"
14522 echo "$as_me: failed program was:" >&5
14523 cat conftest.$ac_ext >&5
14524 eval "$as_ac_var=no"
14526 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14528 echo "$as_me:14528: result: `eval echo '${'$as_ac_var'}'`" >&5
14529 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14530 if test `eval echo '${'$as_ac_var'}'` = yes; then
14531 cat >>confdefs.h <<EOF
14532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14540 echo "$as_me:14540: checking definition to turn on extended curses functions" >&5
14541 echo $ECHO_N "checking definition to turn on extended curses functions... $ECHO_C" >&6
14542 if test "${cf_cv_need_xopen_extension+set}" = set; then
14543 echo $ECHO_N "(cached) $ECHO_C" >&6
14546 cf_cv_need_xopen_extension=unknown
14547 cat >conftest.$ac_ext <<_ACEOF
14548 #line 14548 "configure"
14549 #include "confdefs.h"
14551 #include <stdlib.h>
14552 #include <${cf_cv_ncurses_header:-curses.h}>
14557 #if defined(NCURSES_VERSION_PATCH)
14558 #if (NCURSES_VERSION_PATCH < 20100501) && (NCURSES_VERSION_PATCH >= 20100403)
14562 #ifdef NCURSES_VERSION
14564 int check2 = curs_set((int)sizeof(check));
14566 long x = winnstr(stdscr, "", 0);
14568 getbegyx(stdscr, y1, x1)
14573 rm -f conftest.$ac_objext conftest$ac_exeext
14574 if { (eval echo "$as_me:14574: \"$ac_link\"") >&5
14575 (eval $ac_link) 2>&5
14577 echo "$as_me:14577: \$? = $ac_status" >&5
14578 (exit $ac_status); } &&
14579 { ac_try='test -s conftest$ac_exeext'
14580 { (eval echo "$as_me:14580: \"$ac_try\"") >&5
14581 (eval $ac_try) 2>&5
14583 echo "$as_me:14583: \$? = $ac_status" >&5
14584 (exit $ac_status); }; }; then
14585 cf_cv_need_xopen_extension=none
14587 echo "$as_me: failed program was:" >&5
14588 cat conftest.$ac_ext >&5
14590 for cf_try_xopen_extension in _XOPEN_SOURCE_EXTENDED NCURSES_WIDECHAR
14592 cat >conftest.$ac_ext <<_ACEOF
14593 #line 14593 "configure"
14594 #include "confdefs.h"
14596 #define $cf_try_xopen_extension 1
14597 #include <stdlib.h>
14598 #include <${cf_cv_ncurses_header:-curses.h}>
14603 #ifdef NCURSES_VERSION
14605 int check2 = curs_set((int)sizeof(check));
14607 long x = winnstr(stdscr, "", 0);
14609 getbegyx(stdscr, y1, x1)
14614 rm -f conftest.$ac_objext conftest$ac_exeext
14615 if { (eval echo "$as_me:14615: \"$ac_link\"") >&5
14616 (eval $ac_link) 2>&5
14618 echo "$as_me:14618: \$? = $ac_status" >&5
14619 (exit $ac_status); } &&
14620 { ac_try='test -s conftest$ac_exeext'
14621 { (eval echo "$as_me:14621: \"$ac_try\"") >&5
14622 (eval $ac_try) 2>&5
14624 echo "$as_me:14624: \$? = $ac_status" >&5
14625 (exit $ac_status); }; }; then
14626 cf_cv_need_xopen_extension=$cf_try_xopen_extension; break
14628 echo "$as_me: failed program was:" >&5
14629 cat conftest.$ac_ext >&5
14631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14638 echo "$as_me:14638: result: $cf_cv_need_xopen_extension" >&5
14639 echo "${ECHO_T}$cf_cv_need_xopen_extension" >&6
14641 case $cf_cv_need_xopen_extension in
14643 CPPFLAGS="$CPPFLAGS -D$cf_cv_need_xopen_extension"
14647 echo "$as_me:14647: checking for term.h" >&5
14648 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
14649 if test "${cf_cv_term_header+set}" = set; then
14650 echo $ECHO_N "(cached) $ECHO_C" >&6
14653 # If we found <ncurses/curses.h>, look for <ncurses/term.h>, but always look
14654 # for <term.h> if we do not find the variant.
14656 cf_header_list="term.h ncurses/term.h ncursesw/term.h"
14658 case ${cf_cv_ncurses_header:-curses.h} in
14660 cf_header_item=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`term.h
14661 cf_header_list="$cf_header_item $cf_header_list"
14665 for cf_header in $cf_header_list
14667 cat >conftest.$ac_ext <<_ACEOF
14668 #line 14668 "configure"
14669 #include "confdefs.h"
14671 #include <${cf_cv_ncurses_header:-curses.h}>
14672 #include <${cf_header}>
14681 rm -f conftest.$ac_objext
14682 if { (eval echo "$as_me:14682: \"$ac_compile\"") >&5
14683 (eval $ac_compile) 2>&5
14685 echo "$as_me:14685: \$? = $ac_status" >&5
14686 (exit $ac_status); } &&
14687 { ac_try='test -s conftest.$ac_objext'
14688 { (eval echo "$as_me:14688: \"$ac_try\"") >&5
14689 (eval $ac_try) 2>&5
14691 echo "$as_me:14691: \$? = $ac_status" >&5
14692 (exit $ac_status); }; }; then
14693 cf_cv_term_header=$cf_header
14696 echo "$as_me: failed program was:" >&5
14697 cat conftest.$ac_ext >&5
14698 cf_cv_term_header=no
14700 rm -f conftest.$ac_objext conftest.$ac_ext
14703 case $cf_cv_term_header in
14705 # If curses is ncurses, some packagers still mess it up by trying to make
14706 # us use GNU termcap. This handles the most common case.
14707 for cf_header in ncurses/term.h ncursesw/term.h
14709 cat >conftest.$ac_ext <<_ACEOF
14710 #line 14710 "configure"
14711 #include "confdefs.h"
14713 #include <${cf_cv_ncurses_header:-curses.h}>
14714 #ifdef NCURSES_VERSION
14715 #include <${cf_header}>
14727 rm -f conftest.$ac_objext
14728 if { (eval echo "$as_me:14728: \"$ac_compile\"") >&5
14729 (eval $ac_compile) 2>&5
14731 echo "$as_me:14731: \$? = $ac_status" >&5
14732 (exit $ac_status); } &&
14733 { ac_try='test -s conftest.$ac_objext'
14734 { (eval echo "$as_me:14734: \"$ac_try\"") >&5
14735 (eval $ac_try) 2>&5
14737 echo "$as_me:14737: \$? = $ac_status" >&5
14738 (exit $ac_status); }; }; then
14739 cf_cv_term_header=$cf_header
14742 echo "$as_me: failed program was:" >&5
14743 cat conftest.$ac_ext >&5
14744 cf_cv_term_header=no
14746 rm -f conftest.$ac_objext conftest.$ac_ext
14752 echo "$as_me:14752: result: $cf_cv_term_header" >&5
14753 echo "${ECHO_T}$cf_cv_term_header" >&6
14755 case $cf_cv_term_header in
14758 cat >>confdefs.h <<\EOF
14759 #define HAVE_TERM_H 1
14765 cat >>confdefs.h <<\EOF
14766 #define HAVE_NCURSES_TERM_H 1
14772 cat >>confdefs.h <<\EOF
14773 #define HAVE_NCURSESW_TERM_H 1
14779 echo "$as_me:14779: checking for unctrl.h" >&5
14780 echo $ECHO_N "checking for unctrl.h... $ECHO_C" >&6
14781 if test "${cf_cv_unctrl_header+set}" = set; then
14782 echo $ECHO_N "(cached) $ECHO_C" >&6
14785 # If we found <ncurses/curses.h>, look for <ncurses/unctrl.h>, but always look
14786 # for <unctrl.h> if we do not find the variant.
14788 cf_header_list="unctrl.h ncurses/unctrl.h ncursesw/unctrl.h"
14790 case ${cf_cv_ncurses_header:-curses.h} in
14792 cf_header_item=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`unctrl.h
14793 cf_header_list="$cf_header_item $cf_header_list"
14797 for cf_header in $cf_header_list
14799 cat >conftest.$ac_ext <<_ACEOF
14800 #line 14800 "configure"
14801 #include "confdefs.h"
14803 #include <${cf_cv_ncurses_header:-curses.h}>
14804 #include <${cf_header}>
14813 rm -f conftest.$ac_objext
14814 if { (eval echo "$as_me:14814: \"$ac_compile\"") >&5
14815 (eval $ac_compile) 2>&5
14817 echo "$as_me:14817: \$? = $ac_status" >&5
14818 (exit $ac_status); } &&
14819 { ac_try='test -s conftest.$ac_objext'
14820 { (eval echo "$as_me:14820: \"$ac_try\"") >&5
14821 (eval $ac_try) 2>&5
14823 echo "$as_me:14823: \$? = $ac_status" >&5
14824 (exit $ac_status); }; }; then
14825 cf_cv_unctrl_header=$cf_header
14828 echo "$as_me: failed program was:" >&5
14829 cat conftest.$ac_ext >&5
14830 cf_cv_unctrl_header=no
14832 rm -f conftest.$ac_objext conftest.$ac_ext
14836 echo "$as_me:14836: result: $cf_cv_unctrl_header" >&5
14837 echo "${ECHO_T}$cf_cv_unctrl_header" >&6
14839 case $cf_cv_unctrl_header in
14841 { echo "$as_me:14841: WARNING: unctrl.h header not found" >&5
14842 echo "$as_me: WARNING: unctrl.h header not found" >&2;}
14846 case $cf_cv_unctrl_header in
14849 cat >>confdefs.h <<\EOF
14850 #define HAVE_UNCTRL_H 1
14856 cat >>confdefs.h <<\EOF
14857 #define HAVE_NCURSES_UNCTRL_H 1
14861 (ncursesw/unctrl.h)
14863 cat >>confdefs.h <<\EOF
14864 #define HAVE_NCURSESW_UNCTRL_H 1
14871 assume_default_colors \
14898 use_default_colors \
14900 use_extended_names \
14914 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
14916 echo "$as_me:14916: checking for ${cf_func}" >&5
14917 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
14919 echo "${as_me:-configure}:14919: testing ${cf_func} ..." 1>&5
14921 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
14922 echo $ECHO_N "(cached) $ECHO_C" >&6
14925 eval cf_result='$ac_cv_func_'$cf_func
14926 if test ".$cf_result" != ".no"; then
14927 cat >conftest.$ac_ext <<_ACEOF
14928 #line 14928 "configure"
14929 #include "confdefs.h"
14931 #ifdef HAVE_XCURSES
14932 #include <xcurses.h>
14933 char * XCursesProgramName = "test";
14935 #include <${cf_cv_ncurses_header:-curses.h}>
14936 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
14937 #include <ncursesw/term.h>
14938 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
14939 #include <ncurses/term.h>
14940 #elif defined(HAVE_TERM_H)
14950 long foo = (long)(&${cf_func});
14951 fprintf(stderr, "testing linkage of $cf_func:%p\n", foo);
14952 if (foo + 1234 > 5678)
14953 ${cf_cv_main_return:-return}(foo);
14960 rm -f conftest.$ac_objext conftest$ac_exeext
14961 if { (eval echo "$as_me:14961: \"$ac_link\"") >&5
14962 (eval $ac_link) 2>&5
14964 echo "$as_me:14964: \$? = $ac_status" >&5
14965 (exit $ac_status); } &&
14966 { ac_try='test -s conftest$ac_exeext'
14967 { (eval echo "$as_me:14967: \"$ac_try\"") >&5
14968 (eval $ac_try) 2>&5
14970 echo "$as_me:14970: \$? = $ac_status" >&5
14971 (exit $ac_status); }; }; then
14974 echo "$as_me: failed program was:" >&5
14975 cat conftest.$ac_ext >&5
14978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14980 eval 'cf_cv_func_'$cf_func'=$cf_result'
14984 # use the computed/retrieved cache-value:
14985 eval 'cf_result=$cf_cv_func_'$cf_func
14986 echo "$as_me:14986: result: $cf_result" >&5
14987 echo "${ECHO_T}$cf_result" >&6
14988 if test $cf_result != no; then
14989 cat >>confdefs.h <<EOF
14990 #define HAVE_${cf_tr_func} 1
14996 for cf_func in tputs
14999 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15001 echo "$as_me:15001: checking for ${cf_func}" >&5
15002 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
15004 echo "${as_me:-configure}:15004: testing ${cf_func} ..." 1>&5
15006 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
15007 echo $ECHO_N "(cached) $ECHO_C" >&6
15010 eval cf_result='$ac_cv_func_'$cf_func
15011 if test ".$cf_result" != ".no"; then
15012 cat >conftest.$ac_ext <<_ACEOF
15013 #line 15013 "configure"
15014 #include "confdefs.h"
15016 #ifdef HAVE_XCURSES
15017 #include <xcurses.h>
15018 char * XCursesProgramName = "test";
15020 #include <${cf_cv_ncurses_header:-curses.h}>
15021 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
15022 #include <ncursesw/term.h>
15023 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
15024 #include <ncurses/term.h>
15025 #elif defined(HAVE_TERM_H)
15035 long foo = (long)(&${cf_func});
15036 fprintf(stderr, "testing linkage of $cf_func:%p\n", foo);
15037 if (foo + 1234 > 5678)
15038 ${cf_cv_main_return:-return}(foo);
15045 rm -f conftest.$ac_objext conftest$ac_exeext
15046 if { (eval echo "$as_me:15046: \"$ac_link\"") >&5
15047 (eval $ac_link) 2>&5
15049 echo "$as_me:15049: \$? = $ac_status" >&5
15050 (exit $ac_status); } &&
15051 { ac_try='test -s conftest$ac_exeext'
15052 { (eval echo "$as_me:15052: \"$ac_try\"") >&5
15053 (eval $ac_try) 2>&5
15055 echo "$as_me:15055: \$? = $ac_status" >&5
15056 (exit $ac_status); }; }; then
15059 echo "$as_me: failed program was:" >&5
15060 cat conftest.$ac_ext >&5
15063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15065 eval 'cf_cv_func_'$cf_func'=$cf_result'
15069 # use the computed/retrieved cache-value:
15070 eval 'cf_result=$cf_cv_func_'$cf_func
15071 echo "$as_me:15071: result: $cf_result" >&5
15072 echo "${ECHO_T}$cf_result" >&6
15073 if test $cf_result != no; then
15074 cat >>confdefs.h <<EOF
15075 #define HAVE_${cf_tr_func} 1
15081 if test x$cf_cv_func_tputs = xyes
15084 for cf_arg in int char
15086 for cf_ret in int void
15088 if test $cf_ret = void
15090 cf_return="/* nothing */"
15092 cf_return="return value"
15094 cat >conftest.$ac_ext <<_ACEOF
15095 #line 15095 "configure"
15096 #include "confdefs.h"
15098 #include <${cf_cv_ncurses_header:-curses.h}>
15099 #include <$cf_cv_term_header>
15101 static $cf_ret outc($cf_arg value) { $cf_return; }
15107 tputs("hello", 0, outc);
15108 ${cf_cv_main_return:-return}(0);
15114 rm -f conftest.$ac_objext
15115 if { (eval echo "$as_me:15115: \"$ac_compile\"") >&5
15116 (eval $ac_compile) 2>&5
15118 echo "$as_me:15118: \$? = $ac_status" >&5
15119 (exit $ac_status); } &&
15120 { ac_try='test -s conftest.$ac_objext'
15121 { (eval echo "$as_me:15121: \"$ac_try\"") >&5
15122 (eval $ac_try) 2>&5
15124 echo "$as_me:15124: \$? = $ac_status" >&5
15125 (exit $ac_status); }; }; then
15127 test -n "$verbose" && echo " prototype $cf_ret func($cf_arg value)" 1>&6
15129 echo "${as_me:-configure}:15129: testing prototype $cf_ret func($cf_arg value) ..." 1>&5
15131 cat >>confdefs.h <<EOF
15132 #define TPUTS_ARG $cf_arg
15133 #define TPUTS_PROTO(func,value) $cf_ret func(TPUTS_ARG value)
15134 #define TPUTS_RETURN(value) $cf_return
15140 echo "$as_me: failed program was:" >&5
15141 cat conftest.$ac_ext >&5
15143 rm -f conftest.$ac_objext conftest.$ac_ext
15145 test $cf_done = yes && break
15149 echo "$as_me:15149: checking for ncurses extended functions" >&5
15150 echo $ECHO_N "checking for ncurses extended functions... $ECHO_C" >&6
15151 if test "${cf_cv_ncurses_ext_funcs+set}" = set; then
15152 echo $ECHO_N "(cached) $ECHO_C" >&6
15155 cat >conftest.$ac_ext <<_ACEOF
15156 #line 15156 "configure"
15157 #include "confdefs.h"
15159 #include <${cf_cv_ncurses_header:-curses.h}>
15164 int x = NCURSES_EXT_FUNCS
15170 rm -f conftest.$ac_objext
15171 if { (eval echo "$as_me:15171: \"$ac_compile\"") >&5
15172 (eval $ac_compile) 2>&5
15174 echo "$as_me:15174: \$? = $ac_status" >&5
15175 (exit $ac_status); } &&
15176 { ac_try='test -s conftest.$ac_objext'
15177 { (eval echo "$as_me:15177: \"$ac_try\"") >&5
15178 (eval $ac_try) 2>&5
15180 echo "$as_me:15180: \$? = $ac_status" >&5
15181 (exit $ac_status); }; }; then
15182 cf_cv_ncurses_ext_funcs=defined
15184 echo "$as_me: failed program was:" >&5
15185 cat conftest.$ac_ext >&5
15187 cat >conftest.$ac_ext <<_ACEOF
15188 #line 15188 "configure"
15189 #include "confdefs.h"
15191 #include <${cf_cv_ncurses_header:-curses.h}>
15196 (void) assume_default_colors (0, 0);
15197 (void) curses_version ();
15198 (void) define_key (0, 0);
15199 (void) is_term_resized (0, 0);
15200 (void) key_defined (0);
15201 (void) keybound (0, 0);
15202 (void) keyok (0, 0);
15203 (void) resize_term (0, 0);
15204 (void) resizeterm (0, 0);
15205 (void) use_default_colors ();
15206 (void) use_extended_names (0);
15207 (void) wresize (0, 0, 0);
15212 rm -f conftest.$ac_objext conftest$ac_exeext
15213 if { (eval echo "$as_me:15213: \"$ac_link\"") >&5
15214 (eval $ac_link) 2>&5
15216 echo "$as_me:15216: \$? = $ac_status" >&5
15217 (exit $ac_status); } &&
15218 { ac_try='test -s conftest$ac_exeext'
15219 { (eval echo "$as_me:15219: \"$ac_try\"") >&5
15220 (eval $ac_try) 2>&5
15222 echo "$as_me:15222: \$? = $ac_status" >&5
15223 (exit $ac_status); }; }; then
15224 cf_cv_ncurses_ext_funcs=yes
15226 echo "$as_me: failed program was:" >&5
15227 cat conftest.$ac_ext >&5
15228 cf_cv_ncurses_ext_funcs=no
15230 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15233 rm -f conftest.$ac_objext conftest.$ac_ext
15236 echo "$as_me:15236: result: $cf_cv_ncurses_ext_funcs" >&5
15237 echo "${ECHO_T}$cf_cv_ncurses_ext_funcs" >&6
15238 test "$cf_cv_ncurses_ext_funcs" = yes &&
15239 cat >>confdefs.h <<\EOF
15240 #define NCURSES_EXT_FUNCS 1
15243 if test "$cf_enable_widec" = yes
15245 # workaround for systems with ncurses before 20111029, due to change of
15246 # feature test macro from _XPG5 to _XOPEN_SOURCE
15247 if test -n "$cf_cv_ncurses_version" && test "x$cf_cv_ncurses_version" != xno
15250 echo "$as_me:15250: checking if _XPG5 should be defined to enable wide-characters" >&5
15251 echo $ECHO_N "checking if _XPG5 should be defined to enable wide-characters... $ECHO_C" >&6
15253 cat >conftest.$ac_ext <<_ACEOF
15254 #line 15254 "configure"
15255 #include "confdefs.h"
15257 #include <${cf_cv_ncurses_header:-curses.h}>
15266 rm -f conftest.$ac_objext
15267 if { (eval echo "$as_me:15267: \"$ac_compile\"") >&5
15268 (eval $ac_compile) 2>&5
15270 echo "$as_me:15270: \$? = $ac_status" >&5
15271 (exit $ac_status); } &&
15272 { ac_try='test -s conftest.$ac_objext'
15273 { (eval echo "$as_me:15273: \"$ac_try\"") >&5
15274 (eval $ac_try) 2>&5
15276 echo "$as_me:15276: \$? = $ac_status" >&5
15277 (exit $ac_status); }; }; then
15280 echo "$as_me: failed program was:" >&5
15281 cat conftest.$ac_ext >&5
15282 cf_save_cppflags="$CPPFLAGS"
15283 CPPFLAGS="$CPPFLAGS -D_XPG5"
15284 cat >conftest.$ac_ext <<_ACEOF
15285 #line 15285 "configure"
15286 #include "confdefs.h"
15288 #include <${cf_cv_ncurses_header:-curses.h}>
15297 rm -f conftest.$ac_objext
15298 if { (eval echo "$as_me:15298: \"$ac_compile\"") >&5
15299 (eval $ac_compile) 2>&5
15301 echo "$as_me:15301: \$? = $ac_status" >&5
15302 (exit $ac_status); } &&
15303 { ac_try='test -s conftest.$ac_objext'
15304 { (eval echo "$as_me:15304: \"$ac_try\"") >&5
15305 (eval $ac_try) 2>&5
15307 echo "$as_me:15307: \$? = $ac_status" >&5
15308 (exit $ac_status); }; }; then
15311 echo "$as_me: failed program was:" >&5
15312 cat conftest.$ac_ext >&5
15314 rm -f conftest.$ac_objext conftest.$ac_ext
15315 CPPFLAGS="$cf_save_cppflags"
15317 rm -f conftest.$ac_objext conftest.$ac_ext
15318 echo "$as_me:15318: result: $cf_define_xpg5" >&5
15319 echo "${ECHO_T}$cf_define_xpg5" >&6
15321 if test "$cf_define_xpg5" = yes
15323 CPPFLAGS="$CPPFLAGS -D_XPG5"
15327 echo "$as_me:15327: checking for wide-character functions" >&5
15328 echo $ECHO_N "checking for wide-character functions... $ECHO_C" >&6
15329 if test "${cf_cv_widechar_funcs+set}" = set; then
15330 echo $ECHO_N "(cached) $ECHO_C" >&6
15333 cat >conftest.$ac_ext <<_ACEOF
15334 #line 15334 "configure"
15335 #include "confdefs.h"
15337 #include <${cf_cv_ncurses_header:-curses.h}>
15342 static wchar_t src_wchar[2];
15343 static cchar_t dst_cchar;
15344 setcchar(&dst_cchar, src_wchar, A_NORMAL, 0, (void *) 0);
15350 rm -f conftest.$ac_objext conftest$ac_exeext
15351 if { (eval echo "$as_me:15351: \"$ac_link\"") >&5
15352 (eval $ac_link) 2>&5
15354 echo "$as_me:15354: \$? = $ac_status" >&5
15355 (exit $ac_status); } &&
15356 { ac_try='test -s conftest$ac_exeext'
15357 { (eval echo "$as_me:15357: \"$ac_try\"") >&5
15358 (eval $ac_try) 2>&5
15360 echo "$as_me:15360: \$? = $ac_status" >&5
15361 (exit $ac_status); }; }; then
15362 cf_cv_widechar_funcs=yes
15364 echo "$as_me: failed program was:" >&5
15365 cat conftest.$ac_ext >&5
15366 cf_cv_widechar_funcs=no
15368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15371 echo "$as_me:15371: result: $cf_cv_widechar_funcs" >&5
15372 echo "${ECHO_T}$cf_cv_widechar_funcs" >&6
15373 if test "$cf_cv_widechar_funcs" != no ; then
15375 cat >>confdefs.h <<\EOF
15376 #define USE_WIDEC_SUPPORT 1
15380 cat >>confdefs.h <<\EOF
15381 #define USE_WIDEC_SUPPORT 0
15386 cat >>confdefs.h <<\EOF
15387 #define USE_WIDEC_SUPPORT 0
15392 echo "$as_me:15392: checking if $cf_cv_screen library uses pthreads" >&5
15393 echo $ECHO_N "checking if $cf_cv_screen library uses pthreads... $ECHO_C" >&6
15394 if test "${cf_cv_use_pthreads+set}" = set; then
15395 echo $ECHO_N "(cached) $ECHO_C" >&6
15398 cat >conftest.$ac_ext <<_ACEOF
15399 #line 15399 "configure"
15400 #include "confdefs.h"
15402 #include <${cf_cv_ncurses_header:-curses.h}>
15403 extern void _nc_init_pthreads(void);
15410 _nc_init_pthreads();
15416 rm -f conftest.$ac_objext conftest$ac_exeext
15417 if { (eval echo "$as_me:15417: \"$ac_link\"") >&5
15418 (eval $ac_link) 2>&5
15420 echo "$as_me:15420: \$? = $ac_status" >&5
15421 (exit $ac_status); } &&
15422 { ac_try='test -s conftest$ac_exeext'
15423 { (eval echo "$as_me:15423: \"$ac_try\"") >&5
15424 (eval $ac_try) 2>&5
15426 echo "$as_me:15426: \$? = $ac_status" >&5
15427 (exit $ac_status); }; }; then
15428 cf_cv_use_pthreads=yes
15430 echo "$as_me: failed program was:" >&5
15431 cat conftest.$ac_ext >&5
15432 cf_cv_use_pthreads=no
15434 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15437 echo "$as_me:15437: result: $cf_cv_use_pthreads" >&5
15438 echo "${ECHO_T}$cf_cv_use_pthreads" >&6
15439 test $cf_cv_use_pthreads = yes && cat >>confdefs.h <<\EOF
15440 #define USE_PTHREADS 1
15443 echo "$as_me:15443: checking if sys/time.h works with sys/select.h" >&5
15444 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
15445 if test "${cf_cv_sys_time_select+set}" = set; then
15446 echo $ECHO_N "(cached) $ECHO_C" >&6
15449 cat >conftest.$ac_ext <<_ACEOF
15450 #line 15450 "configure"
15451 #include "confdefs.h"
15453 #include <sys/types.h>
15454 #ifdef HAVE_SYS_TIME_H
15455 #include <sys/time.h>
15457 #ifdef HAVE_SYS_SELECT_H
15458 #include <sys/select.h>
15469 rm -f conftest.$ac_objext
15470 if { (eval echo "$as_me:15470: \"$ac_compile\"") >&5
15471 (eval $ac_compile) 2>&5
15473 echo "$as_me:15473: \$? = $ac_status" >&5
15474 (exit $ac_status); } &&
15475 { ac_try='test -s conftest.$ac_objext'
15476 { (eval echo "$as_me:15476: \"$ac_try\"") >&5
15477 (eval $ac_try) 2>&5
15479 echo "$as_me:15479: \$? = $ac_status" >&5
15480 (exit $ac_status); }; }; then
15481 cf_cv_sys_time_select=yes
15483 echo "$as_me: failed program was:" >&5
15484 cat conftest.$ac_ext >&5
15485 cf_cv_sys_time_select=no
15487 rm -f conftest.$ac_objext conftest.$ac_ext
15491 echo "$as_me:15491: result: $cf_cv_sys_time_select" >&5
15492 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
15493 test "$cf_cv_sys_time_select" = yes &&
15494 cat >>confdefs.h <<\EOF
15495 #define HAVE_SYS_TIME_SELECT 1
15498 # special check for test/ditto.c
15500 echo "$as_me:15500: checking for openpty in -lutil" >&5
15501 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15502 if test "${ac_cv_lib_util_openpty+set}" = set; then
15503 echo $ECHO_N "(cached) $ECHO_C" >&6
15505 ac_check_lib_save_LIBS=$LIBS
15506 LIBS="-lutil $LIBS"
15507 cat >conftest.$ac_ext <<_ACEOF
15508 #line 15508 "configure"
15509 #include "confdefs.h"
15511 /* Override any gcc2 internal prototype to avoid an error. */
15515 /* We use char because int might match the return type of a gcc2
15516 builtin and then its argument prototype would still apply. */
15526 rm -f conftest.$ac_objext conftest$ac_exeext
15527 if { (eval echo "$as_me:15527: \"$ac_link\"") >&5
15528 (eval $ac_link) 2>&5
15530 echo "$as_me:15530: \$? = $ac_status" >&5
15531 (exit $ac_status); } &&
15532 { ac_try='test -s conftest$ac_exeext'
15533 { (eval echo "$as_me:15533: \"$ac_try\"") >&5
15534 (eval $ac_try) 2>&5
15536 echo "$as_me:15536: \$? = $ac_status" >&5
15537 (exit $ac_status); }; }; then
15538 ac_cv_lib_util_openpty=yes
15540 echo "$as_me: failed program was:" >&5
15541 cat conftest.$ac_ext >&5
15542 ac_cv_lib_util_openpty=no
15544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15545 LIBS=$ac_check_lib_save_LIBS
15547 echo "$as_me:15547: result: $ac_cv_lib_util_openpty" >&5
15548 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15549 if test $ac_cv_lib_util_openpty = yes; then
15555 echo "$as_me:15555: checking for openpty header" >&5
15556 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
15557 if test "${cf_cv_func_openpty+set}" = set; then
15558 echo $ECHO_N "(cached) $ECHO_C" >&6
15561 cf_save_LIBS="$LIBS"
15562 test $cf_cv_lib_util = yes && {
15563 cf_add_libs="-lutil"
15564 # Filter out duplicates - this happens with badly-designed ".pc" files...
15565 for cf_add_1lib in $LIBS
15567 for cf_add_2lib in $cf_add_libs
15569 if test "x$cf_add_1lib" = "x$cf_add_2lib"
15575 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
15577 LIBS="$cf_add_libs"
15579 for cf_header in pty.h libutil.h util.h
15581 cat >conftest.$ac_ext <<_ACEOF
15582 #line 15582 "configure"
15583 #include "confdefs.h"
15585 #include <$cf_header>
15591 int x = openpty((int *)0, (int *)0, (char *)0,
15592 (struct termios *)0, (struct winsize *)0);
15598 rm -f conftest.$ac_objext conftest$ac_exeext
15599 if { (eval echo "$as_me:15599: \"$ac_link\"") >&5
15600 (eval $ac_link) 2>&5
15602 echo "$as_me:15602: \$? = $ac_status" >&5
15603 (exit $ac_status); } &&
15604 { ac_try='test -s conftest$ac_exeext'
15605 { (eval echo "$as_me:15605: \"$ac_try\"") >&5
15606 (eval $ac_try) 2>&5
15608 echo "$as_me:15608: \$? = $ac_status" >&5
15609 (exit $ac_status); }; }; then
15611 cf_cv_func_openpty=$cf_header
15615 echo "$as_me: failed program was:" >&5
15616 cat conftest.$ac_ext >&5
15618 cf_cv_func_openpty=no
15621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15623 LIBS="$cf_save_LIBS"
15626 echo "$as_me:15626: result: $cf_cv_func_openpty" >&5
15627 echo "${ECHO_T}$cf_cv_func_openpty" >&6
15629 if test "$cf_cv_func_openpty" != no ; then
15631 cat >>confdefs.h <<EOF
15632 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
15635 cat >>confdefs.h <<\EOF
15636 #define USE_XTERM_PTY 1
15639 if test "x$cf_cv_lib_util" = xyes ; then
15641 cf_add_libs="-lutil"
15642 # Filter out duplicates - this happens with badly-designed ".pc" files...
15643 for cf_add_1lib in $TEST_LIBS
15645 for cf_add_2lib in $cf_add_libs
15647 if test "x$cf_add_1lib" = "x$cf_add_2lib"
15653 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
15655 TEST_LIBS="$cf_add_libs"
15660 echo "$as_me:15660: checking for function curses_version" >&5
15661 echo $ECHO_N "checking for function curses_version... $ECHO_C" >&6
15662 if test "${cf_cv_func_curses_version+set}" = set; then
15663 echo $ECHO_N "(cached) $ECHO_C" >&6
15666 if test "$cross_compiling" = yes; then
15667 cf_cv_func_curses_version=unknown
15669 cat >conftest.$ac_ext <<_ACEOF
15670 #line 15670 "configure"
15671 #include "confdefs.h"
15673 #include <${cf_cv_ncurses_header:-curses.h}>
15677 sprintf(temp, "%s\n", curses_version());
15678 ${cf_cv_main_return:-return}(0);
15682 rm -f conftest$ac_exeext
15683 if { (eval echo "$as_me:15683: \"$ac_link\"") >&5
15684 (eval $ac_link) 2>&5
15686 echo "$as_me:15686: \$? = $ac_status" >&5
15687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15688 { (eval echo "$as_me:15688: \"$ac_try\"") >&5
15689 (eval $ac_try) 2>&5
15691 echo "$as_me:15691: \$? = $ac_status" >&5
15692 (exit $ac_status); }; }; then
15693 cf_cv_func_curses_version=yes
15696 echo "$as_me: program exited with status $ac_status" >&5
15697 echo "$as_me: failed program was:" >&5
15698 cat conftest.$ac_ext >&5
15699 cf_cv_func_curses_version=no
15702 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15706 echo "$as_me:15706: result: $cf_cv_func_curses_version" >&5
15707 echo "${ECHO_T}$cf_cv_func_curses_version" >&6
15708 test "$cf_cv_func_curses_version" = yes &&
15709 cat >>confdefs.h <<\EOF
15710 #define HAVE_CURSES_VERSION 1
15713 echo "$as_me:15713: checking for alternate character set array" >&5
15714 echo $ECHO_N "checking for alternate character set array... $ECHO_C" >&6
15715 if test "${cf_cv_curses_acs_map+set}" = set; then
15716 echo $ECHO_N "(cached) $ECHO_C" >&6
15719 cf_cv_curses_acs_map=unknown
15720 for name in acs_map _acs_map __acs_map ${NCURSES_WRAP_PREFIX}acs_map
15722 cat >conftest.$ac_ext <<_ACEOF
15723 #line 15723 "configure"
15724 #include "confdefs.h"
15726 #include <${cf_cv_ncurses_header:-curses.h}>
15732 $name['k'] = ACS_PLUS
15738 rm -f conftest.$ac_objext conftest$ac_exeext
15739 if { (eval echo "$as_me:15739: \"$ac_link\"") >&5
15740 (eval $ac_link) 2>&5
15742 echo "$as_me:15742: \$? = $ac_status" >&5
15743 (exit $ac_status); } &&
15744 { ac_try='test -s conftest$ac_exeext'
15745 { (eval echo "$as_me:15745: \"$ac_try\"") >&5
15746 (eval $ac_try) 2>&5
15748 echo "$as_me:15748: \$? = $ac_status" >&5
15749 (exit $ac_status); }; }; then
15750 cf_cv_curses_acs_map=$name; break
15752 echo "$as_me: failed program was:" >&5
15753 cat conftest.$ac_ext >&5
15755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15759 echo "$as_me:15759: result: $cf_cv_curses_acs_map" >&5
15760 echo "${ECHO_T}$cf_cv_curses_acs_map" >&6
15762 test "$cf_cv_curses_acs_map" != unknown &&
15763 cat >>confdefs.h <<EOF
15764 #define CURSES_ACS_ARRAY $cf_cv_curses_acs_map
15767 if test "$cf_enable_widec" = yes; then
15769 echo "$as_me:15769: checking for wide alternate character set array" >&5
15770 echo $ECHO_N "checking for wide alternate character set array... $ECHO_C" >&6
15771 if test "${cf_cv_curses_wacs_map+set}" = set; then
15772 echo $ECHO_N "(cached) $ECHO_C" >&6
15775 cf_cv_curses_wacs_map=unknown
15776 for name in wacs_map _wacs_map __wacs_map _nc_wacs _wacs_char
15778 cat >conftest.$ac_ext <<_ACEOF
15779 #line 15779 "configure"
15780 #include "confdefs.h"
15782 #ifndef _XOPEN_SOURCE_EXTENDED
15783 #define _XOPEN_SOURCE_EXTENDED
15785 #include <${cf_cv_ncurses_header:-curses.h}>
15789 void *foo = &($name['k'])
15794 rm -f conftest.$ac_objext conftest$ac_exeext
15795 if { (eval echo "$as_me:15795: \"$ac_link\"") >&5
15796 (eval $ac_link) 2>&5
15798 echo "$as_me:15798: \$? = $ac_status" >&5
15799 (exit $ac_status); } &&
15800 { ac_try='test -s conftest$ac_exeext'
15801 { (eval echo "$as_me:15801: \"$ac_try\"") >&5
15802 (eval $ac_try) 2>&5
15804 echo "$as_me:15804: \$? = $ac_status" >&5
15805 (exit $ac_status); }; }; then
15806 cf_cv_curses_wacs_map=$name
15809 echo "$as_me: failed program was:" >&5
15810 cat conftest.$ac_ext >&5
15812 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15815 echo "$as_me:15815: result: $cf_cv_curses_wacs_map" >&5
15816 echo "${ECHO_T}$cf_cv_curses_wacs_map" >&6
15818 test "$cf_cv_curses_wacs_map" != unknown &&
15819 cat >>confdefs.h <<EOF
15820 #define CURSES_WACS_ARRAY $cf_cv_curses_wacs_map
15823 echo "$as_me:15823: checking for wide alternate character constants" >&5
15824 echo $ECHO_N "checking for wide alternate character constants... $ECHO_C" >&6
15825 if test "${cf_cv_curses_wacs_symbols+set}" = set; then
15826 echo $ECHO_N "(cached) $ECHO_C" >&6
15829 cf_cv_curses_wacs_symbols=no
15830 if test "$cf_cv_curses_wacs_map" != unknown
15832 cat >conftest.$ac_ext <<_ACEOF
15833 #line 15833 "configure"
15834 #include "confdefs.h"
15836 #ifndef _XOPEN_SOURCE_EXTENDED
15837 #define _XOPEN_SOURCE_EXTENDED
15839 #include <${cf_cv_ncurses_header:-curses.h}>
15843 cchar_t *foo = WACS_PLUS;
15844 $cf_cv_curses_wacs_map['k'] = *WACS_PLUS
15849 rm -f conftest.$ac_objext conftest$ac_exeext
15850 if { (eval echo "$as_me:15850: \"$ac_link\"") >&5
15851 (eval $ac_link) 2>&5
15853 echo "$as_me:15853: \$? = $ac_status" >&5
15854 (exit $ac_status); } &&
15855 { ac_try='test -s conftest$ac_exeext'
15856 { (eval echo "$as_me:15856: \"$ac_try\"") >&5
15857 (eval $ac_try) 2>&5
15859 echo "$as_me:15859: \$? = $ac_status" >&5
15860 (exit $ac_status); }; }; then
15861 cf_cv_curses_wacs_symbols=yes
15863 echo "$as_me: failed program was:" >&5
15864 cat conftest.$ac_ext >&5
15866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15868 cat >conftest.$ac_ext <<_ACEOF
15869 #line 15869 "configure"
15870 #include "confdefs.h"
15872 #ifndef _XOPEN_SOURCE_EXTENDED
15873 #define _XOPEN_SOURCE_EXTENDED
15875 #include <${cf_cv_ncurses_header:-curses.h}>
15879 cchar_t *foo = WACS_PLUS
15884 rm -f conftest.$ac_objext conftest$ac_exeext
15885 if { (eval echo "$as_me:15885: \"$ac_link\"") >&5
15886 (eval $ac_link) 2>&5
15888 echo "$as_me:15888: \$? = $ac_status" >&5
15889 (exit $ac_status); } &&
15890 { ac_try='test -s conftest$ac_exeext'
15891 { (eval echo "$as_me:15891: \"$ac_try\"") >&5
15892 (eval $ac_try) 2>&5
15894 echo "$as_me:15894: \$? = $ac_status" >&5
15895 (exit $ac_status); }; }; then
15896 cf_cv_curses_wacs_symbols=yes
15898 echo "$as_me: failed program was:" >&5
15899 cat conftest.$ac_ext >&5
15901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15905 echo "$as_me:15905: result: $cf_cv_curses_wacs_symbols" >&5
15906 echo "${ECHO_T}$cf_cv_curses_wacs_symbols" >&6
15908 test "$cf_cv_curses_wacs_symbols" != no &&
15909 cat >>confdefs.h <<\EOF
15910 #define CURSES_WACS_SYMBOLS 1
15915 echo "$as_me:15915: checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}" >&5
15916 echo $ECHO_N "checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
15917 cat >conftest.$ac_ext <<_ACEOF
15918 #line 15918 "configure"
15919 #include "confdefs.h"
15921 #ifndef _XOPEN_SOURCE_EXTENDED
15922 #define _XOPEN_SOURCE_EXTENDED
15924 #include <${cf_cv_ncurses_header:-curses.h}>
15935 rm -f conftest.$ac_objext
15936 if { (eval echo "$as_me:15936: \"$ac_compile\"") >&5
15937 (eval $ac_compile) 2>&5
15939 echo "$as_me:15939: \$? = $ac_status" >&5
15940 (exit $ac_status); } &&
15941 { ac_try='test -s conftest.$ac_objext'
15942 { (eval echo "$as_me:15942: \"$ac_try\"") >&5
15943 (eval $ac_try) 2>&5
15945 echo "$as_me:15945: \$? = $ac_status" >&5
15946 (exit $ac_status); }; }; then
15949 echo "$as_me: failed program was:" >&5
15950 cat conftest.$ac_ext >&5
15953 rm -f conftest.$ac_objext conftest.$ac_ext
15954 echo "$as_me:15954: result: $cf_result" >&5
15955 echo "${ECHO_T}$cf_result" >&6
15956 if test $cf_result = yes ; then
15958 cf_result=`echo "have_type_attr_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15960 cat >>confdefs.h <<EOF
15961 #define $cf_result 1
15966 cat >>confdefs.h <<EOF
15967 #define attr_t long
15972 if test "$cf_enable_widec" = yes; then
15974 # This is needed on Tru64 5.0 to declare mbstate_t
15975 echo "$as_me:15975: checking if we must include wchar.h to declare mbstate_t" >&5
15976 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
15977 if test "${cf_cv_mbstate_t+set}" = set; then
15978 echo $ECHO_N "(cached) $ECHO_C" >&6
15981 cat >conftest.$ac_ext <<_ACEOF
15982 #line 15982 "configure"
15983 #include "confdefs.h"
15985 #include <stdlib.h>
15986 #include <stdarg.h>
15988 #ifdef HAVE_LIBUTF8_H
15989 #include <libutf8.h>
15999 rm -f conftest.$ac_objext
16000 if { (eval echo "$as_me:16000: \"$ac_compile\"") >&5
16001 (eval $ac_compile) 2>&5
16003 echo "$as_me:16003: \$? = $ac_status" >&5
16004 (exit $ac_status); } &&
16005 { ac_try='test -s conftest.$ac_objext'
16006 { (eval echo "$as_me:16006: \"$ac_try\"") >&5
16007 (eval $ac_try) 2>&5
16009 echo "$as_me:16009: \$? = $ac_status" >&5
16010 (exit $ac_status); }; }; then
16013 echo "$as_me: failed program was:" >&5
16014 cat conftest.$ac_ext >&5
16015 cat >conftest.$ac_ext <<_ACEOF
16016 #line 16016 "configure"
16017 #include "confdefs.h"
16019 #include <stdlib.h>
16020 #include <stdarg.h>
16023 #ifdef HAVE_LIBUTF8_H
16024 #include <libutf8.h>
16034 rm -f conftest.$ac_objext
16035 if { (eval echo "$as_me:16035: \"$ac_compile\"") >&5
16036 (eval $ac_compile) 2>&5
16038 echo "$as_me:16038: \$? = $ac_status" >&5
16039 (exit $ac_status); } &&
16040 { ac_try='test -s conftest.$ac_objext'
16041 { (eval echo "$as_me:16041: \"$ac_try\"") >&5
16042 (eval $ac_try) 2>&5
16044 echo "$as_me:16044: \$? = $ac_status" >&5
16045 (exit $ac_status); }; }; then
16046 cf_cv_mbstate_t=yes
16048 echo "$as_me: failed program was:" >&5
16049 cat conftest.$ac_ext >&5
16050 cf_cv_mbstate_t=unknown
16052 rm -f conftest.$ac_objext conftest.$ac_ext
16054 rm -f conftest.$ac_objext conftest.$ac_ext
16056 echo "$as_me:16056: result: $cf_cv_mbstate_t" >&5
16057 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
16059 if test "$cf_cv_mbstate_t" = yes ; then
16061 cat >>confdefs.h <<\EOF
16062 #define NEED_WCHAR_H 1
16068 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
16069 if test "$cf_cv_mbstate_t" = unknown ; then
16070 NCURSES_MBSTATE_T=1
16073 # if we find mbstate_t in either place, use substitution to provide a fallback.
16074 if test "$cf_cv_mbstate_t" != unknown ; then
16075 NCURSES_OK_MBSTATE_T=1
16078 # This is needed on Tru64 5.0 to declare wchar_t
16079 echo "$as_me:16079: checking if we must include wchar.h to declare wchar_t" >&5
16080 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
16081 if test "${cf_cv_wchar_t+set}" = set; then
16082 echo $ECHO_N "(cached) $ECHO_C" >&6
16085 cat >conftest.$ac_ext <<_ACEOF
16086 #line 16086 "configure"
16087 #include "confdefs.h"
16089 #include <stdlib.h>
16090 #include <stdarg.h>
16092 #ifdef HAVE_LIBUTF8_H
16093 #include <libutf8.h>
16103 rm -f conftest.$ac_objext
16104 if { (eval echo "$as_me:16104: \"$ac_compile\"") >&5
16105 (eval $ac_compile) 2>&5
16107 echo "$as_me:16107: \$? = $ac_status" >&5
16108 (exit $ac_status); } &&
16109 { ac_try='test -s conftest.$ac_objext'
16110 { (eval echo "$as_me:16110: \"$ac_try\"") >&5
16111 (eval $ac_try) 2>&5
16113 echo "$as_me:16113: \$? = $ac_status" >&5
16114 (exit $ac_status); }; }; then
16117 echo "$as_me: failed program was:" >&5
16118 cat conftest.$ac_ext >&5
16119 cat >conftest.$ac_ext <<_ACEOF
16120 #line 16120 "configure"
16121 #include "confdefs.h"
16123 #include <stdlib.h>
16124 #include <stdarg.h>
16127 #ifdef HAVE_LIBUTF8_H
16128 #include <libutf8.h>
16138 rm -f conftest.$ac_objext
16139 if { (eval echo "$as_me:16139: \"$ac_compile\"") >&5
16140 (eval $ac_compile) 2>&5
16142 echo "$as_me:16142: \$? = $ac_status" >&5
16143 (exit $ac_status); } &&
16144 { ac_try='test -s conftest.$ac_objext'
16145 { (eval echo "$as_me:16145: \"$ac_try\"") >&5
16146 (eval $ac_try) 2>&5
16148 echo "$as_me:16148: \$? = $ac_status" >&5
16149 (exit $ac_status); }; }; then
16152 echo "$as_me: failed program was:" >&5
16153 cat conftest.$ac_ext >&5
16154 cf_cv_wchar_t=unknown
16156 rm -f conftest.$ac_objext conftest.$ac_ext
16158 rm -f conftest.$ac_objext conftest.$ac_ext
16160 echo "$as_me:16160: result: $cf_cv_wchar_t" >&5
16161 echo "${ECHO_T}$cf_cv_wchar_t" >&6
16163 if test "$cf_cv_wchar_t" = yes ; then
16165 cat >>confdefs.h <<\EOF
16166 #define NEED_WCHAR_H 1
16172 # if we do not find wchar_t in either place, use substitution to provide a fallback.
16173 if test "$cf_cv_wchar_t" = unknown ; then
16177 # if we find wchar_t in either place, use substitution to provide a fallback.
16178 if test "$cf_cv_wchar_t" != unknown ; then
16179 NCURSES_OK_WCHAR_T=1
16182 # This is needed on Tru64 5.0 to declare wint_t
16183 echo "$as_me:16183: checking if we must include wchar.h to declare wint_t" >&5
16184 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
16185 if test "${cf_cv_wint_t+set}" = set; then
16186 echo $ECHO_N "(cached) $ECHO_C" >&6
16189 cat >conftest.$ac_ext <<_ACEOF
16190 #line 16190 "configure"
16191 #include "confdefs.h"
16193 #include <stdlib.h>
16194 #include <stdarg.h>
16196 #ifdef HAVE_LIBUTF8_H
16197 #include <libutf8.h>
16207 rm -f conftest.$ac_objext
16208 if { (eval echo "$as_me:16208: \"$ac_compile\"") >&5
16209 (eval $ac_compile) 2>&5
16211 echo "$as_me:16211: \$? = $ac_status" >&5
16212 (exit $ac_status); } &&
16213 { ac_try='test -s conftest.$ac_objext'
16214 { (eval echo "$as_me:16214: \"$ac_try\"") >&5
16215 (eval $ac_try) 2>&5
16217 echo "$as_me:16217: \$? = $ac_status" >&5
16218 (exit $ac_status); }; }; then
16221 echo "$as_me: failed program was:" >&5
16222 cat conftest.$ac_ext >&5
16223 cat >conftest.$ac_ext <<_ACEOF
16224 #line 16224 "configure"
16225 #include "confdefs.h"
16227 #include <stdlib.h>
16228 #include <stdarg.h>
16231 #ifdef HAVE_LIBUTF8_H
16232 #include <libutf8.h>
16242 rm -f conftest.$ac_objext
16243 if { (eval echo "$as_me:16243: \"$ac_compile\"") >&5
16244 (eval $ac_compile) 2>&5
16246 echo "$as_me:16246: \$? = $ac_status" >&5
16247 (exit $ac_status); } &&
16248 { ac_try='test -s conftest.$ac_objext'
16249 { (eval echo "$as_me:16249: \"$ac_try\"") >&5
16250 (eval $ac_try) 2>&5
16252 echo "$as_me:16252: \$? = $ac_status" >&5
16253 (exit $ac_status); }; }; then
16256 echo "$as_me: failed program was:" >&5
16257 cat conftest.$ac_ext >&5
16258 cf_cv_wint_t=unknown
16260 rm -f conftest.$ac_objext conftest.$ac_ext
16262 rm -f conftest.$ac_objext conftest.$ac_ext
16264 echo "$as_me:16264: result: $cf_cv_wint_t" >&5
16265 echo "${ECHO_T}$cf_cv_wint_t" >&6
16267 if test "$cf_cv_wint_t" = yes ; then
16269 cat >>confdefs.h <<\EOF
16270 #define NEED_WCHAR_H 1
16276 # if we do not find wint_t in either place, use substitution to provide a fallback.
16277 if test "$cf_cv_wint_t" = unknown ; then
16281 # if we find wint_t in either place, use substitution to provide a fallback.
16282 if test "$cf_cv_wint_t" != unknown ; then
16283 NCURSES_OK_WINT_T=1
16286 if test "$NCURSES_OK_MBSTATE_T" = 0 ; then
16288 echo "$as_me:16288: checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}" >&5
16289 echo $ECHO_N "checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
16290 cat >conftest.$ac_ext <<_ACEOF
16291 #line 16291 "configure"
16292 #include "confdefs.h"
16294 #ifndef _XOPEN_SOURCE_EXTENDED
16295 #define _XOPEN_SOURCE_EXTENDED
16297 #include <${cf_cv_ncurses_header:-curses.h}>
16308 rm -f conftest.$ac_objext
16309 if { (eval echo "$as_me:16309: \"$ac_compile\"") >&5
16310 (eval $ac_compile) 2>&5
16312 echo "$as_me:16312: \$? = $ac_status" >&5
16313 (exit $ac_status); } &&
16314 { ac_try='test -s conftest.$ac_objext'
16315 { (eval echo "$as_me:16315: \"$ac_try\"") >&5
16316 (eval $ac_try) 2>&5
16318 echo "$as_me:16318: \$? = $ac_status" >&5
16319 (exit $ac_status); }; }; then
16322 echo "$as_me: failed program was:" >&5
16323 cat conftest.$ac_ext >&5
16326 rm -f conftest.$ac_objext conftest.$ac_ext
16327 echo "$as_me:16327: result: $cf_result" >&5
16328 echo "${ECHO_T}$cf_result" >&6
16329 if test $cf_result = yes ; then
16331 cf_result=`echo "have_type_mbstate_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16333 cat >>confdefs.h <<EOF
16334 #define $cf_result 1
16339 cat >>confdefs.h <<EOF
16340 #define mbstate_t long
16347 if test "$NCURSES_OK_WCHAR_T" = 0 ; then
16349 echo "$as_me:16349: checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}" >&5
16350 echo $ECHO_N "checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
16351 cat >conftest.$ac_ext <<_ACEOF
16352 #line 16352 "configure"
16353 #include "confdefs.h"
16355 #ifndef _XOPEN_SOURCE_EXTENDED
16356 #define _XOPEN_SOURCE_EXTENDED
16358 #include <${cf_cv_ncurses_header:-curses.h}>
16369 rm -f conftest.$ac_objext
16370 if { (eval echo "$as_me:16370: \"$ac_compile\"") >&5
16371 (eval $ac_compile) 2>&5
16373 echo "$as_me:16373: \$? = $ac_status" >&5
16374 (exit $ac_status); } &&
16375 { ac_try='test -s conftest.$ac_objext'
16376 { (eval echo "$as_me:16376: \"$ac_try\"") >&5
16377 (eval $ac_try) 2>&5
16379 echo "$as_me:16379: \$? = $ac_status" >&5
16380 (exit $ac_status); }; }; then
16383 echo "$as_me: failed program was:" >&5
16384 cat conftest.$ac_ext >&5
16387 rm -f conftest.$ac_objext conftest.$ac_ext
16388 echo "$as_me:16388: result: $cf_result" >&5
16389 echo "${ECHO_T}$cf_result" >&6
16390 if test $cf_result = yes ; then
16392 cf_result=`echo "have_type_wchar_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16394 cat >>confdefs.h <<EOF
16395 #define $cf_result 1
16400 cat >>confdefs.h <<EOF
16401 #define wchar_t long
16408 if test "$NCURSES_OK_WINT_T" = 0 ; then
16410 echo "$as_me:16410: checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}" >&5
16411 echo $ECHO_N "checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
16412 cat >conftest.$ac_ext <<_ACEOF
16413 #line 16413 "configure"
16414 #include "confdefs.h"
16416 #ifndef _XOPEN_SOURCE_EXTENDED
16417 #define _XOPEN_SOURCE_EXTENDED
16419 #include <${cf_cv_ncurses_header:-curses.h}>
16430 rm -f conftest.$ac_objext
16431 if { (eval echo "$as_me:16431: \"$ac_compile\"") >&5
16432 (eval $ac_compile) 2>&5
16434 echo "$as_me:16434: \$? = $ac_status" >&5
16435 (exit $ac_status); } &&
16436 { ac_try='test -s conftest.$ac_objext'
16437 { (eval echo "$as_me:16437: \"$ac_try\"") >&5
16438 (eval $ac_try) 2>&5
16440 echo "$as_me:16440: \$? = $ac_status" >&5
16441 (exit $ac_status); }; }; then
16444 echo "$as_me: failed program was:" >&5
16445 cat conftest.$ac_ext >&5
16448 rm -f conftest.$ac_objext conftest.$ac_ext
16449 echo "$as_me:16449: result: $cf_result" >&5
16450 echo "${ECHO_T}$cf_result" >&6
16451 if test $cf_result = yes ; then
16453 cf_result=`echo "have_type_wint_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16455 cat >>confdefs.h <<EOF
16456 #define $cf_result 1
16461 cat >>confdefs.h <<EOF
16462 #define wint_t long
16470 echo "$as_me:16470: checking for data ospeed declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
16471 echo $ECHO_N "checking for data ospeed declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
16473 cat >conftest.$ac_ext <<_ACEOF
16474 #line 16474 "configure"
16475 #include "confdefs.h"
16477 #ifdef HAVE_XCURSES
16478 #include <xcurses.h>
16479 char * XCursesProgramName = "test";
16481 #include <${cf_cv_ncurses_header:-curses.h}>
16482 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
16483 #include <ncursesw/term.h>
16484 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
16485 #include <ncurses/term.h>
16486 #elif defined(HAVE_TERM_H)
16495 void *foo = &(ospeed)
16501 rm -f conftest.$ac_objext
16502 if { (eval echo "$as_me:16502: \"$ac_compile\"") >&5
16503 (eval $ac_compile) 2>&5
16505 echo "$as_me:16505: \$? = $ac_status" >&5
16506 (exit $ac_status); } &&
16507 { ac_try='test -s conftest.$ac_objext'
16508 { (eval echo "$as_me:16508: \"$ac_try\"") >&5
16509 (eval $ac_try) 2>&5
16511 echo "$as_me:16511: \$? = $ac_status" >&5
16512 (exit $ac_status); }; }; then
16515 echo "$as_me: failed program was:" >&5
16516 cat conftest.$ac_ext >&5
16519 rm -f conftest.$ac_objext conftest.$ac_ext
16520 echo "$as_me:16520: result: $cf_result" >&5
16521 echo "${ECHO_T}$cf_result" >&6
16523 if test $cf_result = yes ; then
16525 cf_result=`echo "have_curses_data_ospeed" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16527 cat >>confdefs.h <<EOF
16528 #define $cf_result 1
16532 echo "$as_me:16532: checking for data ospeed in library" >&5
16533 echo $ECHO_N "checking for data ospeed in library... $ECHO_C" >&6
16534 # BSD linkers insist on making weak linkage, but resolve at runtime.
16535 if test "$cross_compiling" = yes; then
16538 cat >conftest.$ac_ext <<_ACEOF
16539 #line 16539 "configure"
16540 #include "confdefs.h"
16542 #ifdef HAVE_XCURSES
16543 #include <xcurses.h>
16544 char * XCursesProgramName = "test";
16546 #include <${cf_cv_ncurses_header:-curses.h}>
16547 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
16548 #include <ncursesw/term.h>
16549 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
16550 #include <ncurses/term.h>
16551 #elif defined(HAVE_TERM_H)
16556 extern char ospeed;
16562 void *foo = &(ospeed);
16563 fprintf(stderr, "testing linkage of ospeed:%p\n", foo);
16564 ${cf_cv_main_return:-return}(foo == 0);
16571 rm -f conftest.$ac_objext conftest$ac_exeext
16572 if { (eval echo "$as_me:16572: \"$ac_link\"") >&5
16573 (eval $ac_link) 2>&5
16575 echo "$as_me:16575: \$? = $ac_status" >&5
16576 (exit $ac_status); } &&
16577 { ac_try='test -s conftest$ac_exeext'
16578 { (eval echo "$as_me:16578: \"$ac_try\"") >&5
16579 (eval $ac_try) 2>&5
16581 echo "$as_me:16581: \$? = $ac_status" >&5
16582 (exit $ac_status); }; }; then
16585 echo "$as_me: failed program was:" >&5
16586 cat conftest.$ac_ext >&5
16589 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16592 cat >conftest.$ac_ext <<_ACEOF
16593 #line 16593 "configure"
16594 #include "confdefs.h"
16596 #ifdef HAVE_XCURSES
16597 #include <xcurses.h>
16598 char * XCursesProgramName = "test";
16600 #include <${cf_cv_ncurses_header:-curses.h}>
16601 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
16602 #include <ncursesw/term.h>
16603 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
16604 #include <ncurses/term.h>
16605 #elif defined(HAVE_TERM_H)
16610 extern char ospeed;
16613 void *foo = &(ospeed);
16614 fprintf(stderr, "testing linkage of ospeed:%p\n", foo);
16615 ${cf_cv_main_return:-return}(foo == 0);
16618 rm -f conftest$ac_exeext
16619 if { (eval echo "$as_me:16619: \"$ac_link\"") >&5
16620 (eval $ac_link) 2>&5
16622 echo "$as_me:16622: \$? = $ac_status" >&5
16623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16624 { (eval echo "$as_me:16624: \"$ac_try\"") >&5
16625 (eval $ac_try) 2>&5
16627 echo "$as_me:16627: \$? = $ac_status" >&5
16628 (exit $ac_status); }; }; then
16631 echo "$as_me: program exited with status $ac_status" >&5
16632 echo "$as_me: failed program was:" >&5
16633 cat conftest.$ac_ext >&5
16636 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16638 echo "$as_me:16638: result: $cf_result" >&5
16639 echo "${ECHO_T}$cf_result" >&6
16640 if test $cf_result = yes ; then
16642 cf_result=`echo "decl_curses_data_ospeed" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16644 cat >>confdefs.h <<EOF
16645 #define $cf_result 1
16651 echo "$as_me:16651: checking for data boolnames declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
16652 echo $ECHO_N "checking for data boolnames declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
16654 cat >conftest.$ac_ext <<_ACEOF
16655 #line 16655 "configure"
16656 #include "confdefs.h"
16658 #ifdef HAVE_XCURSES
16659 #include <xcurses.h>
16660 char * XCursesProgramName = "test";
16662 #include <${cf_cv_ncurses_header:-curses.h}>
16663 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
16664 #include <ncursesw/term.h>
16665 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
16666 #include <ncurses/term.h>
16667 #elif defined(HAVE_TERM_H)
16676 void *foo = &(boolnames)
16682 rm -f conftest.$ac_objext
16683 if { (eval echo "$as_me:16683: \"$ac_compile\"") >&5
16684 (eval $ac_compile) 2>&5
16686 echo "$as_me:16686: \$? = $ac_status" >&5
16687 (exit $ac_status); } &&
16688 { ac_try='test -s conftest.$ac_objext'
16689 { (eval echo "$as_me:16689: \"$ac_try\"") >&5
16690 (eval $ac_try) 2>&5
16692 echo "$as_me:16692: \$? = $ac_status" >&5
16693 (exit $ac_status); }; }; then
16696 echo "$as_me: failed program was:" >&5
16697 cat conftest.$ac_ext >&5
16700 rm -f conftest.$ac_objext conftest.$ac_ext
16701 echo "$as_me:16701: result: $cf_result" >&5
16702 echo "${ECHO_T}$cf_result" >&6
16704 if test $cf_result = yes ; then
16706 cf_result=`echo "have_curses_data_boolnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16708 cat >>confdefs.h <<EOF
16709 #define $cf_result 1
16713 echo "$as_me:16713: checking for data boolnames in library" >&5
16714 echo $ECHO_N "checking for data boolnames in library... $ECHO_C" >&6
16715 # BSD linkers insist on making weak linkage, but resolve at runtime.
16716 if test "$cross_compiling" = yes; then
16719 cat >conftest.$ac_ext <<_ACEOF
16720 #line 16720 "configure"
16721 #include "confdefs.h"
16723 #ifdef HAVE_XCURSES
16724 #include <xcurses.h>
16725 char * XCursesProgramName = "test";
16727 #include <${cf_cv_ncurses_header:-curses.h}>
16728 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
16729 #include <ncursesw/term.h>
16730 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
16731 #include <ncurses/term.h>
16732 #elif defined(HAVE_TERM_H)
16737 extern char boolnames;
16743 void *foo = &(boolnames);
16744 fprintf(stderr, "testing linkage of boolnames:%p\n", foo);
16745 ${cf_cv_main_return:-return}(foo == 0);
16752 rm -f conftest.$ac_objext conftest$ac_exeext
16753 if { (eval echo "$as_me:16753: \"$ac_link\"") >&5
16754 (eval $ac_link) 2>&5
16756 echo "$as_me:16756: \$? = $ac_status" >&5
16757 (exit $ac_status); } &&
16758 { ac_try='test -s conftest$ac_exeext'
16759 { (eval echo "$as_me:16759: \"$ac_try\"") >&5
16760 (eval $ac_try) 2>&5
16762 echo "$as_me:16762: \$? = $ac_status" >&5
16763 (exit $ac_status); }; }; then
16766 echo "$as_me: failed program was:" >&5
16767 cat conftest.$ac_ext >&5
16770 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16773 cat >conftest.$ac_ext <<_ACEOF
16774 #line 16774 "configure"
16775 #include "confdefs.h"
16777 #ifdef HAVE_XCURSES
16778 #include <xcurses.h>
16779 char * XCursesProgramName = "test";
16781 #include <${cf_cv_ncurses_header:-curses.h}>
16782 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
16783 #include <ncursesw/term.h>
16784 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
16785 #include <ncurses/term.h>
16786 #elif defined(HAVE_TERM_H)
16791 extern char boolnames;
16794 void *foo = &(boolnames);
16795 fprintf(stderr, "testing linkage of boolnames:%p\n", foo);
16796 ${cf_cv_main_return:-return}(foo == 0);
16799 rm -f conftest$ac_exeext
16800 if { (eval echo "$as_me:16800: \"$ac_link\"") >&5
16801 (eval $ac_link) 2>&5
16803 echo "$as_me:16803: \$? = $ac_status" >&5
16804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16805 { (eval echo "$as_me:16805: \"$ac_try\"") >&5
16806 (eval $ac_try) 2>&5
16808 echo "$as_me:16808: \$? = $ac_status" >&5
16809 (exit $ac_status); }; }; then
16812 echo "$as_me: program exited with status $ac_status" >&5
16813 echo "$as_me: failed program was:" >&5
16814 cat conftest.$ac_ext >&5
16817 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16819 echo "$as_me:16819: result: $cf_result" >&5
16820 echo "${ECHO_T}$cf_result" >&6
16821 if test $cf_result = yes ; then
16823 cf_result=`echo "decl_curses_data_boolnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16825 cat >>confdefs.h <<EOF
16826 #define $cf_result 1
16832 echo "$as_me:16832: checking for data boolfnames declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
16833 echo $ECHO_N "checking for data boolfnames declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
16835 cat >conftest.$ac_ext <<_ACEOF
16836 #line 16836 "configure"
16837 #include "confdefs.h"
16839 #ifdef HAVE_XCURSES
16840 #include <xcurses.h>
16841 char * XCursesProgramName = "test";
16843 #include <${cf_cv_ncurses_header:-curses.h}>
16844 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
16845 #include <ncursesw/term.h>
16846 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
16847 #include <ncurses/term.h>
16848 #elif defined(HAVE_TERM_H)
16857 void *foo = &(boolfnames)
16863 rm -f conftest.$ac_objext
16864 if { (eval echo "$as_me:16864: \"$ac_compile\"") >&5
16865 (eval $ac_compile) 2>&5
16867 echo "$as_me:16867: \$? = $ac_status" >&5
16868 (exit $ac_status); } &&
16869 { ac_try='test -s conftest.$ac_objext'
16870 { (eval echo "$as_me:16870: \"$ac_try\"") >&5
16871 (eval $ac_try) 2>&5
16873 echo "$as_me:16873: \$? = $ac_status" >&5
16874 (exit $ac_status); }; }; then
16877 echo "$as_me: failed program was:" >&5
16878 cat conftest.$ac_ext >&5
16881 rm -f conftest.$ac_objext conftest.$ac_ext
16882 echo "$as_me:16882: result: $cf_result" >&5
16883 echo "${ECHO_T}$cf_result" >&6
16885 if test $cf_result = yes ; then
16887 cf_result=`echo "have_curses_data_boolfnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16889 cat >>confdefs.h <<EOF
16890 #define $cf_result 1
16894 echo "$as_me:16894: checking for data boolfnames in library" >&5
16895 echo $ECHO_N "checking for data boolfnames in library... $ECHO_C" >&6
16896 # BSD linkers insist on making weak linkage, but resolve at runtime.
16897 if test "$cross_compiling" = yes; then
16900 cat >conftest.$ac_ext <<_ACEOF
16901 #line 16901 "configure"
16902 #include "confdefs.h"
16904 #ifdef HAVE_XCURSES
16905 #include <xcurses.h>
16906 char * XCursesProgramName = "test";
16908 #include <${cf_cv_ncurses_header:-curses.h}>
16909 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
16910 #include <ncursesw/term.h>
16911 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
16912 #include <ncurses/term.h>
16913 #elif defined(HAVE_TERM_H)
16918 extern char boolfnames;
16924 void *foo = &(boolfnames);
16925 fprintf(stderr, "testing linkage of boolfnames:%p\n", foo);
16926 ${cf_cv_main_return:-return}(foo == 0);
16933 rm -f conftest.$ac_objext conftest$ac_exeext
16934 if { (eval echo "$as_me:16934: \"$ac_link\"") >&5
16935 (eval $ac_link) 2>&5
16937 echo "$as_me:16937: \$? = $ac_status" >&5
16938 (exit $ac_status); } &&
16939 { ac_try='test -s conftest$ac_exeext'
16940 { (eval echo "$as_me:16940: \"$ac_try\"") >&5
16941 (eval $ac_try) 2>&5
16943 echo "$as_me:16943: \$? = $ac_status" >&5
16944 (exit $ac_status); }; }; then
16947 echo "$as_me: failed program was:" >&5
16948 cat conftest.$ac_ext >&5
16951 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16954 cat >conftest.$ac_ext <<_ACEOF
16955 #line 16955 "configure"
16956 #include "confdefs.h"
16958 #ifdef HAVE_XCURSES
16959 #include <xcurses.h>
16960 char * XCursesProgramName = "test";
16962 #include <${cf_cv_ncurses_header:-curses.h}>
16963 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
16964 #include <ncursesw/term.h>
16965 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
16966 #include <ncurses/term.h>
16967 #elif defined(HAVE_TERM_H)
16972 extern char boolfnames;
16975 void *foo = &(boolfnames);
16976 fprintf(stderr, "testing linkage of boolfnames:%p\n", foo);
16977 ${cf_cv_main_return:-return}(foo == 0);
16980 rm -f conftest$ac_exeext
16981 if { (eval echo "$as_me:16981: \"$ac_link\"") >&5
16982 (eval $ac_link) 2>&5
16984 echo "$as_me:16984: \$? = $ac_status" >&5
16985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16986 { (eval echo "$as_me:16986: \"$ac_try\"") >&5
16987 (eval $ac_try) 2>&5
16989 echo "$as_me:16989: \$? = $ac_status" >&5
16990 (exit $ac_status); }; }; then
16993 echo "$as_me: program exited with status $ac_status" >&5
16994 echo "$as_me: failed program was:" >&5
16995 cat conftest.$ac_ext >&5
16998 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17000 echo "$as_me:17000: result: $cf_result" >&5
17001 echo "${ECHO_T}$cf_result" >&6
17002 if test $cf_result = yes ; then
17004 cf_result=`echo "decl_curses_data_boolfnames" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17006 cat >>confdefs.h <<EOF
17007 #define $cf_result 1
17013 echo "$as_me:17013: checking for data ttytype declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
17014 echo $ECHO_N "checking for data ttytype declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
17016 cat >conftest.$ac_ext <<_ACEOF
17017 #line 17017 "configure"
17018 #include "confdefs.h"
17020 #ifdef HAVE_XCURSES
17021 #include <xcurses.h>
17022 char * XCursesProgramName = "test";
17024 #include <${cf_cv_ncurses_header:-curses.h}>
17025 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17026 #include <ncursesw/term.h>
17027 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17028 #include <ncurses/term.h>
17029 #elif defined(HAVE_TERM_H)
17038 void *foo = &(ttytype)
17044 rm -f conftest.$ac_objext
17045 if { (eval echo "$as_me:17045: \"$ac_compile\"") >&5
17046 (eval $ac_compile) 2>&5
17048 echo "$as_me:17048: \$? = $ac_status" >&5
17049 (exit $ac_status); } &&
17050 { ac_try='test -s conftest.$ac_objext'
17051 { (eval echo "$as_me:17051: \"$ac_try\"") >&5
17052 (eval $ac_try) 2>&5
17054 echo "$as_me:17054: \$? = $ac_status" >&5
17055 (exit $ac_status); }; }; then
17058 echo "$as_me: failed program was:" >&5
17059 cat conftest.$ac_ext >&5
17062 rm -f conftest.$ac_objext conftest.$ac_ext
17063 echo "$as_me:17063: result: $cf_result" >&5
17064 echo "${ECHO_T}$cf_result" >&6
17066 if test $cf_result = yes ; then
17068 cf_result=`echo "have_curses_data_ttytype" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17070 cat >>confdefs.h <<EOF
17071 #define $cf_result 1
17075 echo "$as_me:17075: checking for data ttytype in library" >&5
17076 echo $ECHO_N "checking for data ttytype in library... $ECHO_C" >&6
17077 # BSD linkers insist on making weak linkage, but resolve at runtime.
17078 if test "$cross_compiling" = yes; then
17081 cat >conftest.$ac_ext <<_ACEOF
17082 #line 17082 "configure"
17083 #include "confdefs.h"
17085 #ifdef HAVE_XCURSES
17086 #include <xcurses.h>
17087 char * XCursesProgramName = "test";
17089 #include <${cf_cv_ncurses_header:-curses.h}>
17090 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17091 #include <ncursesw/term.h>
17092 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17093 #include <ncurses/term.h>
17094 #elif defined(HAVE_TERM_H)
17099 extern char ttytype;
17105 void *foo = &(ttytype);
17106 fprintf(stderr, "testing linkage of ttytype:%p\n", foo);
17107 ${cf_cv_main_return:-return}(foo == 0);
17114 rm -f conftest.$ac_objext conftest$ac_exeext
17115 if { (eval echo "$as_me:17115: \"$ac_link\"") >&5
17116 (eval $ac_link) 2>&5
17118 echo "$as_me:17118: \$? = $ac_status" >&5
17119 (exit $ac_status); } &&
17120 { ac_try='test -s conftest$ac_exeext'
17121 { (eval echo "$as_me:17121: \"$ac_try\"") >&5
17122 (eval $ac_try) 2>&5
17124 echo "$as_me:17124: \$? = $ac_status" >&5
17125 (exit $ac_status); }; }; then
17128 echo "$as_me: failed program was:" >&5
17129 cat conftest.$ac_ext >&5
17132 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17135 cat >conftest.$ac_ext <<_ACEOF
17136 #line 17136 "configure"
17137 #include "confdefs.h"
17139 #ifdef HAVE_XCURSES
17140 #include <xcurses.h>
17141 char * XCursesProgramName = "test";
17143 #include <${cf_cv_ncurses_header:-curses.h}>
17144 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
17145 #include <ncursesw/term.h>
17146 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
17147 #include <ncurses/term.h>
17148 #elif defined(HAVE_TERM_H)
17153 extern char ttytype;
17156 void *foo = &(ttytype);
17157 fprintf(stderr, "testing linkage of ttytype:%p\n", foo);
17158 ${cf_cv_main_return:-return}(foo == 0);
17161 rm -f conftest$ac_exeext
17162 if { (eval echo "$as_me:17162: \"$ac_link\"") >&5
17163 (eval $ac_link) 2>&5
17165 echo "$as_me:17165: \$? = $ac_status" >&5
17166 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17167 { (eval echo "$as_me:17167: \"$ac_try\"") >&5
17168 (eval $ac_try) 2>&5
17170 echo "$as_me:17170: \$? = $ac_status" >&5
17171 (exit $ac_status); }; }; then
17174 echo "$as_me: program exited with status $ac_status" >&5
17175 echo "$as_me: failed program was:" >&5
17176 cat conftest.$ac_ext >&5
17179 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17181 echo "$as_me:17181: result: $cf_result" >&5
17182 echo "${ECHO_T}$cf_result" >&6
17183 if test $cf_result = yes ; then
17185 cf_result=`echo "decl_curses_data_ttytype" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17187 cat >>confdefs.h <<EOF
17188 #define $cf_result 1
17194 if ( test "$GCC" = yes || test "$GXX" = yes )
17196 echo "$as_me:17196: checking if you want to turn on gcc warnings" >&5
17197 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
17199 # Check whether --enable-warnings or --disable-warnings was given.
17200 if test "${enable_warnings+set}" = set; then
17201 enableval="$enable_warnings"
17202 test "$enableval" != yes && enableval=no
17203 if test "$enableval" != "no" ; then
17213 echo "$as_me:17213: result: $with_warnings" >&5
17214 echo "${ECHO_T}$with_warnings" >&6
17215 if test "$with_warnings" = "yes"
17218 if test "$GCC" = yes
17220 cat > conftest.i <<EOF
17222 #define GCC_PRINTF 0
17225 #define GCC_SCANF 0
17227 #ifndef GCC_NORETURN
17228 #define GCC_NORETURN /* nothing */
17231 #define GCC_UNUSED /* nothing */
17234 if test "$GCC" = yes
17236 { echo "$as_me:17236: checking for $CC __attribute__ directives..." >&5
17237 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
17238 cat > conftest.$ac_ext <<EOF
17239 #line 17239 "${as_me:-configure}"
17240 #include "confdefs.h"
17241 #include "conftest.h"
17242 #include "conftest.i"
17244 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
17246 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
17249 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
17251 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
17253 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
17254 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
17255 extern void foo(void) GCC_NORETURN;
17256 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
17258 cf_printf_attribute=no
17259 cf_scanf_attribute=no
17260 for cf_attribute in scanf printf unused noreturn
17263 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17265 cf_directive="__attribute__(($cf_attribute))"
17266 echo "checking for $CC $cf_directive" 1>&5
17268 case $cf_attribute in
17270 cf_printf_attribute=yes
17271 cat >conftest.h <<EOF
17272 #define GCC_$cf_ATTRIBUTE 1
17276 cf_scanf_attribute=yes
17277 cat >conftest.h <<EOF
17278 #define GCC_$cf_ATTRIBUTE 1
17282 cat >conftest.h <<EOF
17283 #define GCC_$cf_ATTRIBUTE $cf_directive
17288 if { (eval echo "$as_me:17288: \"$ac_compile\"") >&5
17289 (eval $ac_compile) 2>&5
17291 echo "$as_me:17291: \$? = $ac_status" >&5
17292 (exit $ac_status); }; then
17293 test -n "$verbose" && echo "$as_me:17293: result: ... $cf_attribute" >&5
17294 echo "${ECHO_T}... $cf_attribute" >&6
17295 cat conftest.h >>confdefs.h
17296 case $cf_attribute in
17299 cat >>confdefs.h <<EOF
17300 #define GCC_NORETURN $cf_directive
17305 cf_value='/* nothing */'
17306 if test "$cf_printf_attribute" != no ; then
17307 cf_value='__attribute__((format(printf,fmt,var)))'
17309 cat >>confdefs.h <<\EOF
17310 #define GCC_PRINTF 1
17315 cat >>confdefs.h <<EOF
17316 #define GCC_PRINTFLIKE(fmt,var) $cf_value
17321 cf_value='/* nothing */'
17322 if test "$cf_scanf_attribute" != no ; then
17323 cf_value='__attribute__((format(scanf,fmt,var)))'
17325 cat >>confdefs.h <<\EOF
17326 #define GCC_SCANF 1
17331 cat >>confdefs.h <<EOF
17332 #define GCC_SCANFLIKE(fmt,var) $cf_value
17338 cat >>confdefs.h <<EOF
17339 #define GCC_UNUSED $cf_directive
17347 fgrep define conftest.i >>confdefs.h
17354 if test "$GCC" = yes ; then
17357 echo "$as_me:17357: checking if this is really Intel C compiler" >&5
17358 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
17359 cf_save_CFLAGS="$CFLAGS"
17360 CFLAGS="$CFLAGS -no-gcc"
17361 cat >conftest.$ac_ext <<_ACEOF
17362 #line 17362 "configure"
17363 #include "confdefs.h"
17369 #ifdef __INTEL_COMPILER
17378 rm -f conftest.$ac_objext
17379 if { (eval echo "$as_me:17379: \"$ac_compile\"") >&5
17380 (eval $ac_compile) 2>&5
17382 echo "$as_me:17382: \$? = $ac_status" >&5
17383 (exit $ac_status); } &&
17384 { ac_try='test -s conftest.$ac_objext'
17385 { (eval echo "$as_me:17385: \"$ac_try\"") >&5
17386 (eval $ac_try) 2>&5
17388 echo "$as_me:17388: \$? = $ac_status" >&5
17389 (exit $ac_status); }; }; then
17391 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
17394 echo "$as_me: failed program was:" >&5
17395 cat conftest.$ac_ext >&5
17397 rm -f conftest.$ac_objext conftest.$ac_ext
17398 CFLAGS="$cf_save_CFLAGS"
17399 echo "$as_me:17399: result: $INTEL_COMPILER" >&5
17400 echo "${ECHO_T}$INTEL_COMPILER" >&6
17407 if test "$GCC" = yes ; then
17408 echo "$as_me:17408: checking if this is really Clang C compiler" >&5
17409 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
17410 cf_save_CFLAGS="$CFLAGS"
17411 CFLAGS="$CFLAGS -Qunused-arguments"
17412 cat >conftest.$ac_ext <<_ACEOF
17413 #line 17413 "configure"
17414 #include "confdefs.h"
17429 rm -f conftest.$ac_objext
17430 if { (eval echo "$as_me:17430: \"$ac_compile\"") >&5
17431 (eval $ac_compile) 2>&5
17433 echo "$as_me:17433: \$? = $ac_status" >&5
17434 (exit $ac_status); } &&
17435 { ac_try='test -s conftest.$ac_objext'
17436 { (eval echo "$as_me:17436: \"$ac_try\"") >&5
17437 (eval $ac_try) 2>&5
17439 echo "$as_me:17439: \$? = $ac_status" >&5
17440 (exit $ac_status); }; }; then
17442 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
17445 echo "$as_me: failed program was:" >&5
17446 cat conftest.$ac_ext >&5
17448 rm -f conftest.$ac_objext conftest.$ac_ext
17449 CFLAGS="$cf_save_CFLAGS"
17450 echo "$as_me:17450: result: $CLANG_COMPILER" >&5
17451 echo "${ECHO_T}$CLANG_COMPILER" >&6
17454 cat > conftest.$ac_ext <<EOF
17455 #line 17455 "${as_me:-configure}"
17456 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
17459 if test "$INTEL_COMPILER" = yes
17461 # The "-wdXXX" options suppress warnings:
17462 # remark #1419: external declaration in primary source file
17463 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
17464 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
17465 # remark #193: zero used for undefined preprocessing identifier
17466 # remark #593: variable "curs_sb_left_arrow" was set but never used
17467 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
17468 # remark #869: parameter "tw" was never referenced
17469 # remark #981: operands are evaluated in unspecified order
17470 # warning #279: controlling expression is constant
17472 { echo "$as_me:17472: checking for $CC warning options..." >&5
17473 echo "$as_me: checking for $CC warning options..." >&6;}
17474 cf_save_CFLAGS="$CFLAGS"
17475 EXTRA_CFLAGS="-Wall"
17487 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
17488 if { (eval echo "$as_me:17488: \"$ac_compile\"") >&5
17489 (eval $ac_compile) 2>&5
17491 echo "$as_me:17491: \$? = $ac_status" >&5
17492 (exit $ac_status); }; then
17493 test -n "$verbose" && echo "$as_me:17493: result: ... -$cf_opt" >&5
17494 echo "${ECHO_T}... -$cf_opt" >&6
17495 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
17498 CFLAGS="$cf_save_CFLAGS"
17500 elif test "$GCC" = yes
17502 { echo "$as_me:17502: checking for $CC warning options..." >&5
17503 echo "$as_me: checking for $CC warning options..." >&6;}
17504 cf_save_CFLAGS="$CFLAGS"
17507 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
17508 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
17509 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
17510 for cf_opt in W Wall \
17511 Wbad-function-cast \
17514 Wdeclaration-after-statement \
17517 Wmissing-declarations \
17518 Wmissing-prototypes \
17522 Wstrict-prototypes \
17523 Wundef $cf_gcc_warnings $cf_warn_CONST
17525 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
17526 if { (eval echo "$as_me:17526: \"$ac_compile\"") >&5
17527 (eval $ac_compile) 2>&5
17529 echo "$as_me:17529: \$? = $ac_status" >&5
17530 (exit $ac_status); }; then
17531 test -n "$verbose" && echo "$as_me:17531: result: ... -$cf_opt" >&5
17532 echo "${ECHO_T}... -$cf_opt" >&6
17535 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
17538 case $GCC_VERSION in
17540 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
17542 echo "${as_me:-configure}:17542: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
17548 case $GCC_VERSION in
17550 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
17552 echo "${as_me:-configure}:17552: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
17558 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
17561 CFLAGS="$cf_save_CFLAGS"
17568 echo "$as_me:17568: checking if you want to use dmalloc for testing" >&5
17569 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
17571 # Check whether --with-dmalloc or --without-dmalloc was given.
17572 if test "${with_dmalloc+set}" = set; then
17573 withval="$with_dmalloc"
17575 cat >>confdefs.h <<EOF
17576 #define USE_DMALLOC 1
17579 : ${with_cflags:=-g}
17580 : ${with_no_leaks:=yes}
17585 echo "$as_me:17585: result: ${with_dmalloc:-no}" >&5
17586 echo "${ECHO_T}${with_dmalloc:-no}" >&6
17588 case .$with_cflags in
17598 cf_new_extra_cppflags=
17600 for cf_add_cflags in -g
17602 case $cf_fix_cppflags in
17604 case $cf_add_cflags in
17605 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17606 case $cf_add_cflags in
17608 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17610 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17611 && test -z "${cf_tst_cflags}" \
17612 && cf_fix_cppflags=yes
17614 if test $cf_fix_cppflags = yes ; then
17615 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17617 elif test "${cf_tst_cflags}" = "\"'" ; then
17618 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17623 case "$CPPFLAGS" in
17627 case $cf_add_cflags in
17629 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17631 CPPFLAGS=`echo "$CPPFLAGS" | \
17632 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17633 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17637 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
17642 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
17647 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17649 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
17651 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17652 && test -z "${cf_tst_cflags}" \
17653 && cf_fix_cppflags=no
17658 if test -n "$cf_new_cflags" ; then
17660 CFLAGS="$CFLAGS $cf_new_cflags"
17663 if test -n "$cf_new_cppflags" ; then
17665 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
17668 if test -n "$cf_new_extra_cppflags" ; then
17670 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
17678 if test "$with_dmalloc" = yes ; then
17679 echo "$as_me:17679: checking for dmalloc.h" >&5
17680 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
17681 if test "${ac_cv_header_dmalloc_h+set}" = set; then
17682 echo $ECHO_N "(cached) $ECHO_C" >&6
17684 cat >conftest.$ac_ext <<_ACEOF
17685 #line 17685 "configure"
17686 #include "confdefs.h"
17687 #include <dmalloc.h>
17689 if { (eval echo "$as_me:17689: \"$ac_cpp conftest.$ac_ext\"") >&5
17690 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17692 egrep -v '^ *\+' conftest.er1 >conftest.err
17694 cat conftest.err >&5
17695 echo "$as_me:17695: \$? = $ac_status" >&5
17696 (exit $ac_status); } >/dev/null; then
17697 if test -s conftest.err; then
17698 ac_cpp_err=$ac_c_preproc_warn_flag
17705 if test -z "$ac_cpp_err"; then
17706 ac_cv_header_dmalloc_h=yes
17708 echo "$as_me: failed program was:" >&5
17709 cat conftest.$ac_ext >&5
17710 ac_cv_header_dmalloc_h=no
17712 rm -f conftest.err conftest.$ac_ext
17714 echo "$as_me:17714: result: $ac_cv_header_dmalloc_h" >&5
17715 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
17716 if test $ac_cv_header_dmalloc_h = yes; then
17718 echo "$as_me:17718: checking for dmalloc_debug in -ldmalloc" >&5
17719 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
17720 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
17721 echo $ECHO_N "(cached) $ECHO_C" >&6
17723 ac_check_lib_save_LIBS=$LIBS
17724 LIBS="-ldmalloc $LIBS"
17725 cat >conftest.$ac_ext <<_ACEOF
17726 #line 17726 "configure"
17727 #include "confdefs.h"
17729 /* Override any gcc2 internal prototype to avoid an error. */
17733 /* We use char because int might match the return type of a gcc2
17734 builtin and then its argument prototype would still apply. */
17735 char dmalloc_debug ();
17744 rm -f conftest.$ac_objext conftest$ac_exeext
17745 if { (eval echo "$as_me:17745: \"$ac_link\"") >&5
17746 (eval $ac_link) 2>&5
17748 echo "$as_me:17748: \$? = $ac_status" >&5
17749 (exit $ac_status); } &&
17750 { ac_try='test -s conftest$ac_exeext'
17751 { (eval echo "$as_me:17751: \"$ac_try\"") >&5
17752 (eval $ac_try) 2>&5
17754 echo "$as_me:17754: \$? = $ac_status" >&5
17755 (exit $ac_status); }; }; then
17756 ac_cv_lib_dmalloc_dmalloc_debug=yes
17758 echo "$as_me: failed program was:" >&5
17759 cat conftest.$ac_ext >&5
17760 ac_cv_lib_dmalloc_dmalloc_debug=no
17762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17763 LIBS=$ac_check_lib_save_LIBS
17765 echo "$as_me:17765: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
17766 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
17767 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
17768 cat >>confdefs.h <<EOF
17769 #define HAVE_LIBDMALLOC 1
17772 LIBS="-ldmalloc $LIBS"
17780 echo "$as_me:17780: checking if you want to use dbmalloc for testing" >&5
17781 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
17783 # Check whether --with-dbmalloc or --without-dbmalloc was given.
17784 if test "${with_dbmalloc+set}" = set; then
17785 withval="$with_dbmalloc"
17787 cat >>confdefs.h <<EOF
17788 #define USE_DBMALLOC 1
17791 : ${with_cflags:=-g}
17792 : ${with_no_leaks:=yes}
17797 echo "$as_me:17797: result: ${with_dbmalloc:-no}" >&5
17798 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
17800 case .$with_cflags in
17810 cf_new_extra_cppflags=
17812 for cf_add_cflags in -g
17814 case $cf_fix_cppflags in
17816 case $cf_add_cflags in
17817 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
17818 case $cf_add_cflags in
17820 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
17822 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17823 && test -z "${cf_tst_cflags}" \
17824 && cf_fix_cppflags=yes
17826 if test $cf_fix_cppflags = yes ; then
17827 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17829 elif test "${cf_tst_cflags}" = "\"'" ; then
17830 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17835 case "$CPPFLAGS" in
17839 case $cf_add_cflags in
17841 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
17843 CPPFLAGS=`echo "$CPPFLAGS" | \
17844 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
17845 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
17849 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
17854 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
17859 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
17861 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
17863 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
17864 && test -z "${cf_tst_cflags}" \
17865 && cf_fix_cppflags=no
17870 if test -n "$cf_new_cflags" ; then
17872 CFLAGS="$CFLAGS $cf_new_cflags"
17875 if test -n "$cf_new_cppflags" ; then
17877 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
17880 if test -n "$cf_new_extra_cppflags" ; then
17882 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
17890 if test "$with_dbmalloc" = yes ; then
17891 echo "$as_me:17891: checking for dbmalloc.h" >&5
17892 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
17893 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
17894 echo $ECHO_N "(cached) $ECHO_C" >&6
17896 cat >conftest.$ac_ext <<_ACEOF
17897 #line 17897 "configure"
17898 #include "confdefs.h"
17899 #include <dbmalloc.h>
17901 if { (eval echo "$as_me:17901: \"$ac_cpp conftest.$ac_ext\"") >&5
17902 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17904 egrep -v '^ *\+' conftest.er1 >conftest.err
17906 cat conftest.err >&5
17907 echo "$as_me:17907: \$? = $ac_status" >&5
17908 (exit $ac_status); } >/dev/null; then
17909 if test -s conftest.err; then
17910 ac_cpp_err=$ac_c_preproc_warn_flag
17917 if test -z "$ac_cpp_err"; then
17918 ac_cv_header_dbmalloc_h=yes
17920 echo "$as_me: failed program was:" >&5
17921 cat conftest.$ac_ext >&5
17922 ac_cv_header_dbmalloc_h=no
17924 rm -f conftest.err conftest.$ac_ext
17926 echo "$as_me:17926: result: $ac_cv_header_dbmalloc_h" >&5
17927 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
17928 if test $ac_cv_header_dbmalloc_h = yes; then
17930 echo "$as_me:17930: checking for debug_malloc in -ldbmalloc" >&5
17931 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
17932 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
17933 echo $ECHO_N "(cached) $ECHO_C" >&6
17935 ac_check_lib_save_LIBS=$LIBS
17936 LIBS="-ldbmalloc $LIBS"
17937 cat >conftest.$ac_ext <<_ACEOF
17938 #line 17938 "configure"
17939 #include "confdefs.h"
17941 /* Override any gcc2 internal prototype to avoid an error. */
17945 /* We use char because int might match the return type of a gcc2
17946 builtin and then its argument prototype would still apply. */
17947 char debug_malloc ();
17956 rm -f conftest.$ac_objext conftest$ac_exeext
17957 if { (eval echo "$as_me:17957: \"$ac_link\"") >&5
17958 (eval $ac_link) 2>&5
17960 echo "$as_me:17960: \$? = $ac_status" >&5
17961 (exit $ac_status); } &&
17962 { ac_try='test -s conftest$ac_exeext'
17963 { (eval echo "$as_me:17963: \"$ac_try\"") >&5
17964 (eval $ac_try) 2>&5
17966 echo "$as_me:17966: \$? = $ac_status" >&5
17967 (exit $ac_status); }; }; then
17968 ac_cv_lib_dbmalloc_debug_malloc=yes
17970 echo "$as_me: failed program was:" >&5
17971 cat conftest.$ac_ext >&5
17972 ac_cv_lib_dbmalloc_debug_malloc=no
17974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17975 LIBS=$ac_check_lib_save_LIBS
17977 echo "$as_me:17977: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
17978 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
17979 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
17980 cat >>confdefs.h <<EOF
17981 #define HAVE_LIBDBMALLOC 1
17984 LIBS="-ldbmalloc $LIBS"
17992 echo "$as_me:17992: checking if you want to use valgrind for testing" >&5
17993 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
17995 # Check whether --with-valgrind or --without-valgrind was given.
17996 if test "${with_valgrind+set}" = set; then
17997 withval="$with_valgrind"
17999 cat >>confdefs.h <<EOF
18000 #define USE_VALGRIND 1
18003 : ${with_cflags:=-g}
18004 : ${with_no_leaks:=yes}
18009 echo "$as_me:18009: result: ${with_valgrind:-no}" >&5
18010 echo "${ECHO_T}${with_valgrind:-no}" >&6
18012 case .$with_cflags in
18022 cf_new_extra_cppflags=
18024 for cf_add_cflags in -g
18026 case $cf_fix_cppflags in
18028 case $cf_add_cflags in
18029 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
18030 case $cf_add_cflags in
18032 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
18034 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18035 && test -z "${cf_tst_cflags}" \
18036 && cf_fix_cppflags=yes
18038 if test $cf_fix_cppflags = yes ; then
18039 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
18041 elif test "${cf_tst_cflags}" = "\"'" ; then
18042 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
18047 case "$CPPFLAGS" in
18051 case $cf_add_cflags in
18053 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
18055 CPPFLAGS=`echo "$CPPFLAGS" | \
18056 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
18057 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
18061 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
18066 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
18071 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
18073 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
18075 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
18076 && test -z "${cf_tst_cflags}" \
18077 && cf_fix_cppflags=no
18082 if test -n "$cf_new_cflags" ; then
18084 CFLAGS="$CFLAGS $cf_new_cflags"
18087 if test -n "$cf_new_cppflags" ; then
18089 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
18092 if test -n "$cf_new_extra_cppflags" ; then
18094 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
18102 echo "$as_me:18102: checking if you want to perform memory-leak testing" >&5
18103 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
18105 # Check whether --enable-leaks or --disable-leaks was given.
18106 if test "${enable_leaks+set}" = set; then
18107 enableval="$enable_leaks"
18108 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
18110 : ${with_no_leaks:=no}
18112 echo "$as_me:18112: result: $with_no_leaks" >&5
18113 echo "${ECHO_T}$with_no_leaks" >&6
18115 if test "$with_no_leaks" = yes ; then
18117 cat >>confdefs.h <<\EOF
18121 cat >>confdefs.h <<\EOF
18122 #define YY_NO_LEAKS 1
18128 echo "$as_me:18128: checking for an rpath option" >&5
18129 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
18130 case $cf_cv_system_name in
18132 if test "$GCC" = yes; then
18133 LD_RPATH_OPT="-Wl,-rpath,"
18135 LD_RPATH_OPT="-rpath "
18138 (linux*|gnu*|k*bsd*-gnu|freebsd*)
18139 LD_RPATH_OPT="-Wl,-rpath,"
18141 (openbsd[2-9].*|mirbsd*)
18142 LD_RPATH_OPT="-Wl,-rpath,"
18145 LD_RPATH_OPT="-rpath "
18148 LD_RPATH_OPT="-Wl,-rpath,"
18151 LD_RPATH_OPT="-rpath "
18159 echo "$as_me:18159: result: $LD_RPATH_OPT" >&5
18160 echo "${ECHO_T}$LD_RPATH_OPT" >&6
18162 case "x$LD_RPATH_OPT" in
18164 echo "$as_me:18164: checking if we need a space after rpath option" >&5
18165 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
18166 cf_save_LIBS="$LIBS"
18168 cf_add_libs="${LD_RPATH_OPT}$libdir"
18169 # Filter out duplicates - this happens with badly-designed ".pc" files...
18170 for cf_add_1lib in $LIBS
18172 for cf_add_2lib in $cf_add_libs
18174 if test "x$cf_add_1lib" = "x$cf_add_2lib"
18180 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_libs $cf_add_1lib"
18182 LIBS="$cf_add_libs"
18184 cat >conftest.$ac_ext <<_ACEOF
18185 #line 18185 "configure"
18186 #include "confdefs.h"
18196 rm -f conftest.$ac_objext conftest$ac_exeext
18197 if { (eval echo "$as_me:18197: \"$ac_link\"") >&5
18198 (eval $ac_link) 2>&5
18200 echo "$as_me:18200: \$? = $ac_status" >&5
18201 (exit $ac_status); } &&
18202 { ac_try='test -s conftest$ac_exeext'
18203 { (eval echo "$as_me:18203: \"$ac_try\"") >&5
18204 (eval $ac_try) 2>&5
18206 echo "$as_me:18206: \$? = $ac_status" >&5
18207 (exit $ac_status); }; }; then
18210 echo "$as_me: failed program was:" >&5
18211 cat conftest.$ac_ext >&5
18214 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18215 LIBS="$cf_save_LIBS"
18216 echo "$as_me:18216: result: $cf_rpath_space" >&5
18217 echo "${ECHO_T}$cf_rpath_space" >&6
18218 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
18222 echo "$as_me:18222: checking if rpath-hack should be disabled" >&5
18223 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
18225 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
18226 if test "${enable_rpath_hack+set}" = set; then
18227 enableval="$enable_rpath_hack"
18228 test "$enableval" != no && enableval=yes
18229 if test "$enableval" != "yes" ; then
18230 cf_disable_rpath_hack=yes
18232 cf_disable_rpath_hack=no
18236 cf_disable_rpath_hack=no
18239 echo "$as_me:18239: result: $cf_disable_rpath_hack" >&5
18240 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
18241 if test "$cf_disable_rpath_hack" = no ; then
18243 echo "$as_me:18243: checking for updated LDFLAGS" >&5
18244 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
18245 if test -n "$LD_RPATH_OPT" ; then
18246 echo "$as_me:18246: result: maybe" >&5
18247 echo "${ECHO_T}maybe" >&6
18251 # Extract the first word of "$ac_prog", so it can be a program name with args.
18252 set dummy $ac_prog; ac_word=$2
18253 echo "$as_me:18253: checking for $ac_word" >&5
18254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18255 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
18256 echo $ECHO_N "(cached) $ECHO_C" >&6
18258 if test -n "$cf_ldd_prog"; then
18259 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
18261 ac_save_IFS=$IFS; IFS=$ac_path_separator
18263 for ac_dir in $ac_dummy; do
18265 test -z "$ac_dir" && ac_dir=.
18266 $as_executable_p "$ac_dir/$ac_word" || continue
18267 ac_cv_prog_cf_ldd_prog="$ac_prog"
18268 echo "$as_me:18268: found $ac_dir/$ac_word" >&5
18274 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
18275 if test -n "$cf_ldd_prog"; then
18276 echo "$as_me:18276: result: $cf_ldd_prog" >&5
18277 echo "${ECHO_T}$cf_ldd_prog" >&6
18279 echo "$as_me:18279: result: no" >&5
18280 echo "${ECHO_T}no" >&6
18283 test -n "$cf_ldd_prog" && break
18285 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
18287 cf_rpath_list="/usr/lib /lib"
18288 if test "$cf_ldd_prog" != no
18292 cat >conftest.$ac_ext <<_ACEOF
18293 #line 18293 "configure"
18294 #include "confdefs.h"
18304 rm -f conftest.$ac_objext conftest$ac_exeext
18305 if { (eval echo "$as_me:18305: \"$ac_link\"") >&5
18306 (eval $ac_link) 2>&5
18308 echo "$as_me:18308: \$? = $ac_status" >&5
18309 (exit $ac_status); } &&
18310 { ac_try='test -s conftest$ac_exeext'
18311 { (eval echo "$as_me:18311: \"$ac_try\"") >&5
18312 (eval $ac_try) 2>&5
18314 echo "$as_me:18314: \$? = $ac_status" >&5
18315 (exit $ac_status); }; }; then
18316 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
18317 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
18319 echo "$as_me: failed program was:" >&5
18320 cat conftest.$ac_ext >&5
18322 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18324 # If we passed the link-test, but get a "not found" on a given library,
18325 # this could be due to inept reconfiguration of gcc to make it only
18326 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
18327 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
18328 # /usr/local libraries.
18329 if test -n "$cf_rpath_oops"
18331 for cf_rpath_src in $cf_rpath_oops
18333 for cf_rpath_dir in \
18338 if test -f $cf_rpath_dir/lib/$cf_rpath_src
18340 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
18342 echo "${as_me:-configure}:18342: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
18344 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
18352 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
18354 echo "${as_me:-configure}:18354: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
18356 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
18358 echo "${as_me:-configure}:18358: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
18361 for cf_rpath_src in $LDFLAGS
18363 case $cf_rpath_src in
18366 # check if this refers to a directory which we will ignore
18368 if test -n "$cf_rpath_list"
18370 for cf_rpath_item in $cf_rpath_list
18372 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
18380 if test "$cf_rpath_skip" = no
18382 # transform the option
18383 if test "$LD_RPATH_OPT" = "-R " ; then
18384 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
18386 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
18389 # if we have not already added this, add it now
18390 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
18391 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
18393 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
18395 echo "${as_me:-configure}:18395: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
18397 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
18402 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
18404 LDFLAGS=$cf_rpath_dst
18406 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
18408 echo "${as_me:-configure}:18408: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
18410 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
18412 echo "${as_me:-configure}:18412: testing ...checking LIBS $LIBS ..." 1>&5
18415 for cf_rpath_src in $LIBS
18417 case $cf_rpath_src in
18420 # check if this refers to a directory which we will ignore
18422 if test -n "$cf_rpath_list"
18424 for cf_rpath_item in $cf_rpath_list
18426 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
18434 if test "$cf_rpath_skip" = no
18436 # transform the option
18437 if test "$LD_RPATH_OPT" = "-R " ; then
18438 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
18440 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
18443 # if we have not already added this, add it now
18444 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
18445 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
18447 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
18449 echo "${as_me:-configure}:18449: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
18451 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
18456 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
18460 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
18462 echo "${as_me:-configure}:18462: testing ...checked LIBS $LIBS ..." 1>&5
18464 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
18466 echo "${as_me:-configure}:18466: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
18469 echo "$as_me:18469: result: no" >&5
18470 echo "${ECHO_T}no" >&6
18478 ac_config_files="$ac_config_files Makefile"
18479 ac_config_commands="$ac_config_commands default"
18480 cat >confcache <<\_ACEOF
18481 # This file is a shell script that caches the results of configure
18482 # tests run on this system so they can be shared between configure
18483 # scripts and configure runs, see configure's option --config-cache.
18484 # It is not useful on other systems. If it contains results you don't
18485 # want to keep, you may remove or edit it.
18487 # config.status only pays attention to the cache file if you give it
18488 # the --recheck option to rerun configure.
18490 # `ac_cv_env_foo' variables (set or unset) will be overriden when
18491 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18492 # following values.
18496 # The following way of writing the cache mishandles newlines in values,
18497 # but we know of no workaround that is simple, portable, and efficient.
18498 # So, don't put newlines in cache variables' values.
18499 # Ultrix sh set writes to stderr and can't be redirected directly,
18500 # and sets the high bit in the cache file unless we assign to the vars.
18503 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18505 # `set' does not quote correctly, so add quotes (double-quote
18506 # substitution turns \\\\ into \\, and sed turns \\ into \).
18509 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18512 # `set' quotes correctly as required by POSIX, so do not add quotes.
18514 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18521 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18523 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18525 if cmp -s $cache_file confcache; then :; else
18526 if test -w $cache_file; then
18527 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18528 cat confcache >$cache_file
18530 echo "not updating unwritable cache $cache_file"
18535 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18536 # Let make expand exec_prefix.
18537 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18539 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18540 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18541 # trailing colons and then remove the whole line if VPATH becomes empty
18542 # (actually we leave an empty line to preserve line numbers).
18543 if test "x$srcdir" = x.; then
18544 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18545 s/:*\$(srcdir):*/:/;
18546 s/:*\${srcdir}:*/:/;
18548 s/^\([^=]*=[ ]*\):*/\1/;
18554 DEFS=-DHAVE_CONFIG_H
18556 : ${CONFIG_STATUS=./config.status}
18557 ac_clean_files_save=$ac_clean_files
18558 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18559 { echo "$as_me:18559: creating $CONFIG_STATUS" >&5
18560 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18561 cat >$CONFIG_STATUS <<_ACEOF
18563 # Generated automatically by configure.
18564 # Run this file to recreate the current configuration.
18565 # Compiler output produced by configure, useful for debugging
18566 # configure, is in config.log if it exists.
18569 SHELL=\${CONFIG_SHELL-$SHELL}
18570 ac_cs_invocation="\$0 \$@"
18574 cat >>$CONFIG_STATUS <<\_ACEOF
18575 # Be Bourne compatible
18576 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18579 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18583 # Name of the executable.
18584 as_me=`echo "$0" |sed 's,.*[\\/],,'`
18586 if expr a : '\(a\)' >/dev/null 2>&1; then
18592 rm -f conf$$ conf$$.exe conf$$.file
18594 if ln -s conf$$.file conf$$ 2>/dev/null; then
18595 # We could just check for DJGPP; but this test a) works b) is more generic
18596 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18597 if test -f conf$$.exe; then
18598 # Don't use ln at all; we don't have any links
18603 elif ln conf$$.file conf$$ 2>/dev/null; then
18608 rm -f conf$$ conf$$.exe conf$$.file
18610 as_executable_p="test -f"
18612 # Support unset when possible.
18613 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18620 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
18621 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
18622 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
18623 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
18624 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
18625 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
18626 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
18627 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
18630 # We need space, tab and new line, in precisely that order.
18636 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
18642 # Files that config.status was made for.
18643 if test -n "$ac_config_files"; then
18644 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18647 if test -n "$ac_config_headers"; then
18648 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18651 if test -n "$ac_config_links"; then
18652 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18655 if test -n "$ac_config_commands"; then
18656 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18659 cat >>$CONFIG_STATUS <<\EOF
18662 \`$as_me' instantiates files from templates according to the
18663 current configuration.
18665 Usage: $0 [OPTIONS] [FILE]...
18667 -h, --help print this help, then exit
18668 -V, --version print version number, then exit
18669 -d, --debug don't remove temporary files
18670 --recheck update $as_me by reconfiguring in the same conditions
18671 --file=FILE[:TEMPLATE]
18672 instantiate the configuration file FILE
18673 --header=FILE[:TEMPLATE]
18674 instantiate the configuration header FILE
18676 Configuration files:
18679 Configuration headers:
18682 Configuration commands:
18685 Report bugs to <dickey@invisible-island.net>."
18688 cat >>$CONFIG_STATUS <<EOF
18691 configured by $0, generated by GNU Autoconf 2.52.20150926,
18692 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18694 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18695 Free Software Foundation, Inc.
18696 This config.status script is free software; the Free Software Foundation
18697 gives unlimited permission to copy, distribute and modify it."
18702 cat >>$CONFIG_STATUS <<\EOF
18703 # If no file are specified by the user, then we need to provide default
18704 # value. By we need to know if files were specified by the user.
18710 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18711 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18713 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
18717 *) # This is not an option, so the user has probably given explicit
18719 ac_need_defaults=false;;
18723 # Handling of the options.
18725 cat >>$CONFIG_STATUS <<EOF
18726 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18727 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
18728 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
18730 cat >>$CONFIG_STATUS <<\EOF
18731 --version | --vers* | -V )
18732 echo "$ac_cs_version"; exit 0 ;;
18734 # Conflict between --help and --header
18735 { { echo "$as_me:18735: error: ambiguous option: $1
18736 Try \`$0 --help' for more information." >&5
18737 echo "$as_me: error: ambiguous option: $1
18738 Try \`$0 --help' for more information." >&2;}
18739 { (exit 1); exit 1; }; };;
18740 --help | --hel | -h )
18741 echo "$ac_cs_usage"; exit 0 ;;
18742 --debug | --d* | -d )
18744 --file | --fil | --fi | --f )
18746 CONFIG_FILES="$CONFIG_FILES $1"
18747 ac_need_defaults=false;;
18748 --header | --heade | --head | --hea )
18750 CONFIG_HEADERS="$CONFIG_HEADERS $1"
18751 ac_need_defaults=false;;
18753 # This is an error.
18754 -*) { { echo "$as_me:18754: error: unrecognized option: $1
18755 Try \`$0 --help' for more information." >&5
18756 echo "$as_me: error: unrecognized option: $1
18757 Try \`$0 --help' for more information." >&2;}
18758 { (exit 1); exit 1; }; } ;;
18760 *) ac_config_targets="$ac_config_targets $1" ;;
18769 ## ----------------------- ##
18770 ## Running config.status. ##
18771 ## ----------------------- ##
18773 This file was extended by $as_me 2.52.20150926, executed with
18774 CONFIG_FILES = $CONFIG_FILES
18775 CONFIG_HEADERS = $CONFIG_HEADERS
18776 CONFIG_LINKS = $CONFIG_LINKS
18777 CONFIG_COMMANDS = $CONFIG_COMMANDS
18778 > $ac_cs_invocation
18779 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18784 cat >>$CONFIG_STATUS <<EOF
18786 # INIT-COMMANDS section.
18796 cat >>$CONFIG_STATUS <<\EOF
18797 for ac_config_target in $ac_config_targets
18799 case "$ac_config_target" in
18800 # Handling of arguments.
18801 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18802 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18803 "ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ncurses_cfg.h:ncurses_tst.hin" ;;
18804 *) { { echo "$as_me:18804: error: invalid argument: $ac_config_target" >&5
18805 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18806 { (exit 1); exit 1; }; };;
18810 # If the user did not use the arguments to specify the items to instantiate,
18811 # then the envvar interface is used. Set only those that are not.
18812 # We use the long form for the default assignment because of an extremely
18813 # bizarre bug on SunOS 4.1.3.
18814 if $ac_need_defaults; then
18815 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18816 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18817 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18820 # Create a temporary directory, and hook for its removal unless debugging.
18823 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18824 trap '{ (exit 1); exit 1; }' 1 2 13 15
18827 # Create a (secure) tmp directory for tmp files.
18830 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
18831 test -n "$tmp" && test -d "$tmp"
18834 tmp=$TMPDIR/cs$$-$RANDOM
18835 (umask 077 && mkdir $tmp)
18838 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
18839 { (exit 1); exit 1; }
18844 cat >>$CONFIG_STATUS <<EOF
18847 # CONFIG_FILES section.
18850 # No need to generate the scripts if there are no CONFIG_FILES.
18851 # This happens for instance when ./config.status config.h
18852 if test -n "\$CONFIG_FILES"; then
18853 # Protect against being on the right side of a sed subst in config.status.
18854 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18855 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18856 s,@SHELL@,$SHELL,;t t
18857 s,@exec_prefix@,$exec_prefix,;t t
18858 s,@prefix@,$prefix,;t t
18859 s,@program_transform_name@,$program_transform_name,;t t
18860 s,@bindir@,$bindir,;t t
18861 s,@sbindir@,$sbindir,;t t
18862 s,@libexecdir@,$libexecdir,;t t
18863 s,@datarootdir@,$datarootdir,;t t
18864 s,@datadir@,$datadir,;t t
18865 s,@sysconfdir@,$sysconfdir,;t t
18866 s,@sharedstatedir@,$sharedstatedir,;t t
18867 s,@localstatedir@,$localstatedir,;t t
18868 s,@libdir@,$libdir,;t t
18869 s,@includedir@,$includedir,;t t
18870 s,@oldincludedir@,$oldincludedir,;t t
18871 s,@infodir@,$infodir,;t t
18872 s,@mandir@,$mandir,;t t
18873 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18874 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18875 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18876 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18877 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18878 s,@build_alias@,$build_alias,;t t
18879 s,@host_alias@,$host_alias,;t t
18880 s,@target_alias@,$target_alias,;t t
18881 s,@ECHO_C@,$ECHO_C,;t t
18882 s,@ECHO_N@,$ECHO_N,;t t
18883 s,@ECHO_T@,$ECHO_T,;t t
18884 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18885 s,@DEFS@,$DEFS,;t t
18886 s,@LIBS@,$LIBS,;t t
18887 s,@build@,$build,;t t
18888 s,@build_cpu@,$build_cpu,;t t
18889 s,@build_vendor@,$build_vendor,;t t
18890 s,@build_os@,$build_os,;t t
18891 s,@host@,$host,;t t
18892 s,@host_cpu@,$host_cpu,;t t
18893 s,@host_vendor@,$host_vendor,;t t
18894 s,@host_os@,$host_os,;t t
18895 s,@SET_MAKE@,$SET_MAKE,;t t
18897 s,@CFLAGS@,$CFLAGS,;t t
18898 s,@LDFLAGS@,$LDFLAGS,;t t
18899 s,@CPPFLAGS@,$CPPFLAGS,;t t
18900 s,@ac_ct_CC@,$ac_ct_CC,;t t
18901 s,@EXEEXT@,$EXEEXT,;t t
18902 s,@OBJEXT@,$OBJEXT,;t t
18903 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
18906 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18907 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18908 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18909 s,@LINT@,$LINT,;t t
18910 s,@LINT_OPTS@,$LINT_OPTS,;t t
18911 s,@CTAGS@,$CTAGS,;t t
18912 s,@ETAGS@,$ETAGS,;t t
18913 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
18914 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
18915 s,@MATH_LIB@,$MATH_LIB,;t t
18916 s,@top_builddir@,$top_builddir,;t t
18917 s,@CC_G_OPT@,$CC_G_OPT,;t t
18918 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
18919 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
18920 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
18921 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
18923 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
18924 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
18925 s,@LD_MODEL@,$LD_MODEL,;t t
18926 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
18927 s,@LIBTOOL@,$LIBTOOL,;t t
18928 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
18929 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
18930 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
18931 s,@LIB_LINK@,$LIB_LINK,;t t
18932 s,@LINK_TESTS@,$LINK_TESTS,;t t
18933 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
18934 s,@PACKAGE@,$PACKAGE,;t t
18935 s,@PTHREAD@,$PTHREAD,;t t
18936 s,@TEST_ARGS@,$TEST_ARGS,;t t
18937 s,@TEST_DEPS@,$TEST_DEPS,;t t
18938 s,@TEST_LIBS@,$TEST_LIBS,;t t
18939 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
18940 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
18941 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
18942 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
18943 s,@includesubdir@,$includesubdir,;t t
18944 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
18945 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
18946 s,@ECHO_LT@,$ECHO_LT,;t t
18947 s,@ECHO_LD@,$ECHO_LD,;t t
18948 s,@RULE_CC@,$RULE_CC,;t t
18949 s,@SHOW_CC@,$SHOW_CC,;t t
18950 s,@ECHO_CC@,$ECHO_CC,;t t
18951 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
18952 s,@NCURSES_CONFIG@,$NCURSES_CONFIG,;t t
18953 s,@ac_ct_NCURSES_CONFIG@,$ac_ct_NCURSES_CONFIG,;t t
18954 s,@X_CFLAGS@,$X_CFLAGS,;t t
18955 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18956 s,@X_LIBS@,$X_LIBS,;t t
18957 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18958 s,@XCURSES_CONFIG@,$XCURSES_CONFIG,;t t
18959 s,@ac_ct_XCURSES_CONFIG@,$ac_ct_XCURSES_CONFIG,;t t
18960 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
18961 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
18962 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
18967 cat >>$CONFIG_STATUS <<\EOF
18968 # Split the substitutions into bite-sized pieces for seds with
18969 # small command number limits, like on Digital OSF/1 and HP-UX.
18970 ac_max_sed_lines=48
18971 ac_sed_frag=1 # Number of current file.
18972 ac_beg=1 # First line for current file.
18973 ac_end=$ac_max_sed_lines # Line after last line for current file.
18976 while $ac_more_lines; do
18977 if test $ac_beg -gt 1; then
18978 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18980 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18982 if test ! -s $tmp/subs.frag; then
18983 ac_more_lines=false
18985 # The purpose of the label and of the branching condition is to
18986 # speed up the sed processing (if there are no `@' at all, there
18987 # is no need to browse any of the substitutions).
18988 # These are the two extra sed commands mentioned above.
18990 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18991 # It is possible to make a multiline substitution using escaped newlines.
18992 # Ensure that we do not split the substitution between script fragments.
18994 ac_END=`expr $ac_end + $ac_max_sed_lines`
18995 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
18996 if test -s $tmp/subs.next; then
18997 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
18998 if test ! -s $tmp/subs.edit; then
18999 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
19000 if test ! -s $tmp/subs.edit; then
19001 if test $ac_beg -gt 1; then
19002 ac_end=`expr $ac_end - 1`
19009 if test -z "$ac_sed_cmds"; then
19010 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19012 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19014 ac_sed_frag=`expr $ac_sed_frag + 1`
19016 ac_end=`expr $ac_end + $ac_max_sed_lines`
19019 if test -z "$ac_sed_cmds"; then
19022 fi # test -n "$CONFIG_FILES"
19025 cat >>$CONFIG_STATUS <<\EOF
19026 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19027 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19029 - | *:- | *:-:* ) # input from stdin
19031 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19032 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19033 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19034 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19035 * ) ac_file_in=$ac_file.in ;;
19038 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19039 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19040 X"$ac_file" : 'X\(//\)[^/]' \| \
19041 X"$ac_file" : 'X\(//\)$' \| \
19042 X"$ac_file" : 'X\(/\)' \| \
19043 . : '\(.\)' 2>/dev/null ||
19045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19046 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19047 /^X\(\/\/\)$/{ s//\1/; q; }
19048 /^X\(\/\).*/{ s//\1/; q; }
19050 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19051 { case "$ac_dir" in
19052 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19056 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19057 case $as_mkdir_dir in
19058 # Skip DOS drivespec
19059 ?:) as_incr_dir=$as_mkdir_dir ;;
19061 as_incr_dir=$as_incr_dir/$as_mkdir_dir
19062 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
19067 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
19068 # A "../" for each directory in $ac_dir_suffix.
19069 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
19071 ac_dir_suffix= ac_dots=
19076 if test -z "$ac_dots"; then
19079 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
19081 [\\/]* | ?:[\\/]* )
19082 ac_srcdir=$srcdir$ac_dir_suffix;
19083 ac_top_srcdir=$srcdir ;;
19084 *) # Relative path.
19085 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
19086 ac_top_srcdir=$ac_dots$srcdir ;;
19090 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19091 *) ac_INSTALL=$ac_dots$INSTALL ;;
19094 if test x"$ac_file" != x-; then
19095 { echo "$as_me:19095: creating $ac_file" >&5
19096 echo "$as_me: creating $ac_file" >&6;}
19099 # Let's still pretend it is `configure' which instantiates (i.e., don't
19100 # use $as_me), people would be surprised to read:
19101 # /* config.h. Generated automatically by config.status. */
19102 configure_input="Generated automatically from `echo $ac_file_in |
19103 sed 's,.*/,,'` by configure."
19105 # First look for the input files in the build tree, otherwise in the
19107 ac_file_inputs=`IFS=:
19108 for f in $ac_file_in; do
19110 -) echo $tmp/stdin ;;
19112 # Absolute (can't be DOS-style, as IFS=:)
19113 test -f "$f" || { { echo "$as_me:19113: error: cannot find input file: $f" >&5
19114 echo "$as_me: error: cannot find input file: $f" >&2;}
19115 { (exit 1); exit 1; }; }
19118 if test -f "$f"; then
19121 elif test -f "$srcdir/$f"; then
19126 { { echo "$as_me:19126: error: cannot find input file: $f" >&5
19127 echo "$as_me: error: cannot find input file: $f" >&2;}
19128 { (exit 1); exit 1; }; }
19131 done` || { (exit 1); exit 1; }
19133 cat >>$CONFIG_STATUS <<\EOF
19134 ac_warn_datarootdir=no
19135 if test x"$ac_file" != x-; then
19136 for ac_item in $ac_file_inputs
19138 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
19139 if test -n "$ac_seen"; then
19140 ac_used=`grep '@datarootdir@' $ac_item`
19141 if test -z "$ac_used"; then
19142 { echo "$as_me:19142: WARNING: datarootdir was used implicitly but not set:
19144 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
19146 ac_warn_datarootdir=yes
19149 ac_seen=`grep '${datarootdir}' $ac_item`
19150 if test -n "$ac_seen"; then
19151 { echo "$as_me:19151: WARNING: datarootdir was used explicitly but not set:
19153 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
19155 ac_warn_datarootdir=yes
19160 if test "x$ac_warn_datarootdir" = xyes; then
19161 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
19165 cat >>$CONFIG_STATUS <<EOF
19169 cat >>$CONFIG_STATUS <<\EOF
19171 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19172 s,@configure_input@,$configure_input,;t t
19173 s,@srcdir@,$ac_srcdir,;t t
19174 s,@top_srcdir@,$ac_top_srcdir,;t t
19175 s,@INSTALL@,$ac_INSTALL,;t t
19176 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19178 if test x"$ac_file" != x-; then
19179 cp $tmp/out $ac_file
19181 for ac_name in prefix exec_prefix datarootdir
19183 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
19184 if test -n "$ac_seen"; then
19185 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
19186 if test -z "$ac_init"; then
19187 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
19188 { echo "$as_me:19188: WARNING: Variable $ac_name is used but was not set:
19190 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
19195 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
19196 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
19197 if test -s $tmp/out; then
19198 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
19199 { echo "$as_me:19199: WARNING: Some variables may not be substituted:
19201 echo "$as_me: WARNING: Some variables may not be substituted:
19211 cat >>$CONFIG_STATUS <<\EOF
19214 # CONFIG_HEADER section.
19217 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19218 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19220 # ac_d sets the value in "#define NAME VALUE" lines.
19221 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19222 ac_dB='[ ].*$,\1#\2'
19225 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
19226 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19227 ac_iB='\([ ]\),\1#\2define\3'
19230 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19231 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19232 ac_uB='$,\1#\2define\3'
19236 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19237 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19239 - | *:- | *:-:* ) # input from stdin
19241 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19242 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19243 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19244 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19245 * ) ac_file_in=$ac_file.in ;;
19248 test x"$ac_file" != x- && { echo "$as_me:19248: creating $ac_file" >&5
19249 echo "$as_me: creating $ac_file" >&6;}
19251 # First look for the input files in the build tree, otherwise in the
19253 ac_file_inputs=`IFS=:
19254 for f in $ac_file_in; do
19256 -) echo $tmp/stdin ;;
19258 # Absolute (can't be DOS-style, as IFS=:)
19259 test -f "$f" || { { echo "$as_me:19259: error: cannot find input file: $f" >&5
19260 echo "$as_me: error: cannot find input file: $f" >&2;}
19261 { (exit 1); exit 1; }; }
19264 if test -f "$f"; then
19267 elif test -f "$srcdir/$f"; then
19272 { { echo "$as_me:19272: error: cannot find input file: $f" >&5
19273 echo "$as_me: error: cannot find input file: $f" >&2;}
19274 { (exit 1); exit 1; }; }
19277 done` || { (exit 1); exit 1; }
19278 # Remove the trailing spaces.
19279 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19283 # Transform confdefs.h into a list of #define's. We won't use it as a sed
19284 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
19285 # be either 'cat' or 'sort'.
19286 cat confdefs.h | uniq >conftest.vals
19288 # Break up conftest.vals because some shells have a limit on
19289 # the size of here documents, and old seds have small limits too.
19291 rm -f conftest.tail
19292 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
19293 while grep . conftest.vals >/dev/null
19295 # Write chunks of a limited-size here document to conftest.frag.
19296 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
19297 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
19298 echo 'CEOF' >> $CONFIG_STATUS
19299 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
19300 rm -f conftest.vals
19301 mv conftest.tail conftest.vals
19303 rm -f conftest.vals
19305 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
19307 echo ' cat >> conftest.edit <<CEOF
19308 /@DEFS@/r conftest.frag
19311 sed -f conftest.edit $tmp/in > $tmp/out
19313 mv $tmp/out $tmp/in
19314 rm -f conftest.edit conftest.frag
19315 ' >> $CONFIG_STATUS
19317 cat >>$CONFIG_STATUS <<\EOF
19318 # Let's still pretend it is `configure' which instantiates (i.e., don't
19319 # use $as_me), people would be surprised to read:
19320 # /* config.h. Generated automatically by config.status. */
19321 if test x"$ac_file" = x-; then
19322 echo "/* Generated automatically by configure. */" >$tmp/config.h
19324 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
19326 cat $tmp/in >>$tmp/config.h
19328 if test x"$ac_file" != x-; then
19329 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
19330 { echo "$as_me:19330: $ac_file is unchanged" >&5
19331 echo "$as_me: $ac_file is unchanged" >&6;}
19333 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19334 X"$ac_file" : 'X\(//\)[^/]' \| \
19335 X"$ac_file" : 'X\(//\)$' \| \
19336 X"$ac_file" : 'X\(/\)' \| \
19337 . : '\(.\)' 2>/dev/null ||
19339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19340 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19341 /^X\(\/\/\)$/{ s//\1/; q; }
19342 /^X\(\/\).*/{ s//\1/; q; }
19344 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19345 { case "$ac_dir" in
19346 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
19350 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
19351 case $as_mkdir_dir in
19352 # Skip DOS drivespec
19353 ?:) as_incr_dir=$as_mkdir_dir ;;
19355 as_incr_dir=$as_incr_dir/$as_mkdir_dir
19356 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
19363 mv $tmp/config.h $ac_file
19367 rm -f $tmp/config.h
19371 cat >>$CONFIG_STATUS <<\EOF
19373 # CONFIG_COMMANDS section.
19375 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19376 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19377 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19384 if test ! -d $srcdir/$cf_dir; then
19386 elif test -f $srcdir/$cf_dir/programs; then
19387 $AWK -f $srcdir/mk-test.awk INSTALL=yes ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
19391 cat >>Makefile <<TEST_EOF
19393 # These rules are generated so we do not rely on suffix rules, which do not
19394 # work consistently for different make-programs (the '\$(MODEL)/' confuses
19395 # some, and the '\$x' confuses others).
19398 LIST=`sed -e 's/[ ].*//' -e '/^[#@]/d' $srcdir/modules`
19401 cat >>Makefile <<TEST_EOF
19403 \$(MODEL)/$N.o : \$(srcdir)/$N.c \\
19404 \$(srcdir)/test.priv.h \\
19407 $ECHO_CC\$(CC) -c \$(CFLAGS_DEFAULT) \$(srcdir)/$N.c
19411 if test -f ../config.guess && test -f ../config.sub
19413 cat >>Makefile <<TEST_EOF
19415 # if we used CF_INHERIT for getting these files, we can remove them
19417 rm -f config.guess config.sub
19425 cat >>$CONFIG_STATUS <<\EOF
19427 { (exit 0); exit 0; }
19429 chmod +x $CONFIG_STATUS
19430 ac_clean_files=$ac_clean_files_save
19432 # configure is writing to config.log, and then calls config.status.
19433 # config.status does its own redirection, appending to config.log.
19434 # Unfortunately, on DOS this fails, as config.log is still kept open
19435 # by configure, so config.status won't be able to write to it; its
19436 # output is simply discarded. So we exec the FD to /dev/null,
19437 # effectively closing config.log, so it can be properly (re)opened and
19438 # appended to by config.status. When coming back to configure, we
19439 # need to make the FD available again.
19440 if test "$no_create" != yes; then
19443 $SHELL $CONFIG_STATUS || ac_cs_success=false
19445 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19446 # would make configure fail if this is the last instruction.
19447 $ac_cs_success || { (exit 1); exit 1; }