2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.20200111.
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 runstatedir='${localstatedir}/run'
143 libdir='${exec_prefix}/lib'
144 includedir='${prefix}/include'
145 oldincludedir='/usr/include'
146 infodir='${datarootdir}/info'
147 mandir='${datarootdir}/man'
149 # Identity of this package.
159 # If the previous option needs an argument, assign it.
160 if test -n "$ac_prev"; then
161 eval "$ac_prev=\$ac_option"
166 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
168 # Accept the important Cygnus configure options, so we can diagnose typos.
172 -bindir | --bindir | --bindi | --bind | --bin | --bi)
174 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
177 -build | --build | --buil | --bui | --bu)
178 ac_prev=build_alias ;;
179 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
180 build_alias=$ac_optarg ;;
182 -cache-file | --cache-file | --cache-fil | --cache-fi \
183 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
184 ac_prev=cache_file ;;
185 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
186 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
187 cache_file=$ac_optarg ;;
190 cache_file=config.cache ;;
192 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
194 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
196 datadir=$ac_optarg ;;
198 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
199 | --dataroo | --dataro | --datar)
200 ac_prev=datarootdir ;;
201 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
202 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
203 datarootdir=$ac_optarg ;;
205 -disable-* | --disable-*)
206 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
207 # Reject names that are not valid shell variable names.
208 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
209 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
210 { (exit 1); exit 1; }; }
211 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
212 eval "enable_$ac_feature=no" ;;
214 -enable-* | --enable-*)
215 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
216 # Reject names that are not valid shell variable names.
217 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
218 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
219 { (exit 1); exit 1; }; }
220 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
222 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
225 eval "enable_$ac_feature='$ac_optarg'" ;;
227 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
228 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
229 | --exec | --exe | --ex)
230 ac_prev=exec_prefix ;;
231 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
232 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
233 | --exec=* | --exe=* | --ex=*)
234 exec_prefix=$ac_optarg ;;
236 -gas | --gas | --ga | --g)
237 # Obsolete; use --with-gas.
240 -help | --help | --hel | --he | -h)
242 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
243 ac_init_help=recursive ;;
244 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
245 ac_init_help=short ;;
247 -host | --host | --hos | --ho)
248 ac_prev=host_alias ;;
249 -host=* | --host=* | --hos=* | --ho=*)
250 host_alias=$ac_optarg ;;
252 -includedir | --includedir | --includedi | --included | --include \
253 | --includ | --inclu | --incl | --inc)
254 ac_prev=includedir ;;
255 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
256 | --includ=* | --inclu=* | --incl=* | --inc=*)
257 includedir=$ac_optarg ;;
259 -infodir | --infodir | --infodi | --infod | --info | --inf)
261 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
262 infodir=$ac_optarg ;;
264 -libdir | --libdir | --libdi | --libd)
266 -libdir=* | --libdir=* | --libdi=* | --libd=*)
269 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
270 | --libexe | --libex | --libe)
271 ac_prev=libexecdir ;;
272 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
273 | --libexe=* | --libex=* | --libe=*)
274 libexecdir=$ac_optarg ;;
276 -localstatedir | --localstatedir | --localstatedi | --localstated \
277 | --localstate | --localstat | --localsta | --localst \
278 | --locals | --local | --loca | --loc | --lo)
279 ac_prev=localstatedir ;;
280 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
281 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
282 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
283 localstatedir=$ac_optarg ;;
285 -runstatedir | --runstatedir | --runstatedi | --runstated \
286 | --runstate | --runstat | --runsta | --runst \
287 | --runs | --run | --ru)
288 ac_prev=runstatedir ;;
289 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
290 | --runstate=* | --runstat=* | --runsta=* | --runst=* \
291 | --runs=* | --run=* | --ru=*)
292 runstatedir=$ac_optarg ;;
294 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
296 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
300 # Obsolete; use --without-fp.
303 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
307 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
308 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
311 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
312 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
313 | --oldin | --oldi | --old | --ol | --o)
314 ac_prev=oldincludedir ;;
315 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
316 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
317 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
318 oldincludedir=$ac_optarg ;;
320 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
322 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
325 -program-prefix | --program-prefix | --program-prefi | --program-pref \
326 | --program-pre | --program-pr | --program-p)
327 ac_prev=program_prefix ;;
328 -program-prefix=* | --program-prefix=* | --program-prefi=* \
329 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
330 program_prefix=$ac_optarg ;;
332 -program-suffix | --program-suffix | --program-suffi | --program-suff \
333 | --program-suf | --program-su | --program-s)
334 ac_prev=program_suffix ;;
335 -program-suffix=* | --program-suffix=* | --program-suffi=* \
336 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
337 program_suffix=$ac_optarg ;;
339 -program-transform-name | --program-transform-name \
340 | --program-transform-nam | --program-transform-na \
341 | --program-transform-n | --program-transform- \
342 | --program-transform | --program-transfor \
343 | --program-transfo | --program-transf \
344 | --program-trans | --program-tran \
345 | --progr-tra | --program-tr | --program-t)
346 ac_prev=program_transform_name ;;
347 -program-transform-name=* | --program-transform-name=* \
348 | --program-transform-nam=* | --program-transform-na=* \
349 | --program-transform-n=* | --program-transform-=* \
350 | --program-transform=* | --program-transfor=* \
351 | --program-transfo=* | --program-transf=* \
352 | --program-trans=* | --program-tran=* \
353 | --progr-tra=* | --program-tr=* | --program-t=*)
354 program_transform_name=$ac_optarg ;;
356 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
357 | -silent | --silent | --silen | --sile | --sil)
360 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
362 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
364 sbindir=$ac_optarg ;;
366 -sharedstatedir | --sharedstatedir | --sharedstatedi \
367 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
368 | --sharedst | --shareds | --shared | --share | --shar \
370 ac_prev=sharedstatedir ;;
371 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
372 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
373 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
375 sharedstatedir=$ac_optarg ;;
377 -site | --site | --sit)
379 -site=* | --site=* | --sit=*)
382 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
384 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
387 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
388 | --syscon | --sysco | --sysc | --sys | --sy)
389 ac_prev=sysconfdir ;;
390 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
391 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
392 sysconfdir=$ac_optarg ;;
394 -target | --target | --targe | --targ | --tar | --ta | --t)
395 ac_prev=target_alias ;;
396 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
397 target_alias=$ac_optarg ;;
399 -v | -verbose | --verbose | --verbos | --verbo | --verb)
402 -version | --version | --versio | --versi | --vers | -V)
406 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid package name: $ac_package" >&2
410 { (exit 1); exit 1; }; }
411 ac_package=`echo $ac_package| sed 's/-/_/g'`
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "with_$ac_package='$ac_optarg'" ;;
418 -without-* | --without-*)
419 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
420 # Reject names that are not valid shell variable names.
421 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
422 { echo "$as_me: error: invalid package name: $ac_package" >&2
423 { (exit 1); exit 1; }; }
424 ac_package=`echo $ac_package | sed 's/-/_/g'`
425 eval "with_$ac_package=no" ;;
428 # Obsolete; use --with-x.
431 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
432 | --x-incl | --x-inc | --x-in | --x-i)
433 ac_prev=x_includes ;;
434 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
435 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
436 x_includes=$ac_optarg ;;
438 -x-libraries | --x-libraries | --x-librarie | --x-librari \
439 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
440 ac_prev=x_libraries ;;
441 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
442 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
443 x_libraries=$ac_optarg ;;
445 -*) { echo "$as_me: error: unrecognized option: $ac_option
446 Try \`$0 --help' for more information." >&2
447 { (exit 1); exit 1; }; }
451 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
452 # Reject names that are not valid shell variable names.
453 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
454 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
455 { (exit 1); exit 1; }; }
456 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
457 eval "$ac_envvar='$ac_optarg'"
461 # FIXME: should be removed in autoconf 3.0.
462 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
463 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
464 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
465 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
471 if test -n "$ac_prev"; then
472 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
473 { echo "$as_me: error: missing argument to $ac_option" >&2
474 { (exit 1); exit 1; }; }
477 # Be sure to have absolute paths.
478 for ac_var in exec_prefix prefix
480 eval ac_val=$`echo $ac_var`
482 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
483 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
484 { (exit 1); exit 1; }; };;
488 # Be sure to have absolute paths.
489 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
490 localstatedir libdir includedir oldincludedir infodir mandir
492 eval ac_val=$`echo $ac_var`
494 [\\/$]* | ?:[\\/]* ) ;;
495 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
496 { (exit 1); exit 1; }; };;
500 # There might be people who depend on the old broken behavior: `$host'
501 # used to hold the argument of --host etc.
506 # FIXME: should be removed in autoconf 3.0.
507 if test "x$host_alias" != x; then
508 if test "x$build_alias" = x; then
509 cross_compiling=maybe
510 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
511 If a cross compiler is detected then cross compile mode will be used." >&2
512 elif test "x$build_alias" != "x$host_alias"; then
518 test -n "$host_alias" && ac_tool_prefix=$host_alias-
520 test "$silent" = yes && exec 6>/dev/null
522 # Find the source files, if location was not specified.
523 if test -z "$srcdir"; then
524 ac_srcdir_defaulted=yes
525 # Try the directory containing this script, then its parent.
527 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
528 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
530 if test ! -r $srcdir/$ac_unique_file; then
534 ac_srcdir_defaulted=no
536 if test ! -r $srcdir/$ac_unique_file; then
537 if test "$ac_srcdir_defaulted" = yes; then
538 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
539 { (exit 1); exit 1; }; }
541 { echo "$as_me: error: cannot find sources in $srcdir" >&2
542 { (exit 1); exit 1; }; }
545 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
546 ac_env_build_alias_set=${build_alias+set}
547 ac_env_build_alias_value=$build_alias
548 ac_cv_env_build_alias_set=${build_alias+set}
549 ac_cv_env_build_alias_value=$build_alias
550 ac_env_host_alias_set=${host_alias+set}
551 ac_env_host_alias_value=$host_alias
552 ac_cv_env_host_alias_set=${host_alias+set}
553 ac_cv_env_host_alias_value=$host_alias
554 ac_env_target_alias_set=${target_alias+set}
555 ac_env_target_alias_value=$target_alias
556 ac_cv_env_target_alias_set=${target_alias+set}
557 ac_cv_env_target_alias_value=$target_alias
558 ac_env_CC_set=${CC+set}
560 ac_cv_env_CC_set=${CC+set}
561 ac_cv_env_CC_value=$CC
562 ac_env_CFLAGS_set=${CFLAGS+set}
563 ac_env_CFLAGS_value=$CFLAGS
564 ac_cv_env_CFLAGS_set=${CFLAGS+set}
565 ac_cv_env_CFLAGS_value=$CFLAGS
566 ac_env_LDFLAGS_set=${LDFLAGS+set}
567 ac_env_LDFLAGS_value=$LDFLAGS
568 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
569 ac_cv_env_LDFLAGS_value=$LDFLAGS
570 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
571 ac_env_CPPFLAGS_value=$CPPFLAGS
572 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
573 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
574 ac_env_CPP_set=${CPP+set}
575 ac_env_CPP_value=$CPP
576 ac_cv_env_CPP_set=${CPP+set}
577 ac_cv_env_CPP_value=$CPP
580 # Report the --help message.
582 if test "$ac_init_help" = "long"; then
583 # Omit some internal or obsolete options to make the list less imposing.
584 # This message is too long to be a string in the A/UX 3.1 sh.
586 \`configure' configures this package to adapt to many kinds of systems.
588 Usage: $0 [OPTION]... [VAR=VALUE]...
590 To assign environment variables (e.g., CC, CFLAGS...), specify them as
591 VAR=VALUE. See below for descriptions of some of the useful variables.
593 Defaults for the options are specified in brackets.
596 -h, --help display this help and exit
597 --help=short display options specific to this package
598 --help=recursive display the short help of all the included packages
599 -V, --version display version information and exit
600 -q, --quiet, --silent do not print \`checking...' messages
601 --cache-file=FILE cache test results in FILE [disabled]
602 -C, --config-cache alias for \`--cache-file=config.cache'
603 -n, --no-create do not create output files
604 --srcdir=DIR find the sources in DIR [configure dir or \`..']
609 Installation directories:
610 --prefix=PREFIX install architecture-independent files in PREFIX
612 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
615 By default, \`make install' will install all the files in
616 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
617 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
618 for instance \`--prefix=\$HOME'.
620 For better control, use the options below.
622 Fine tuning of the installation directories:
623 --bindir=DIR user executables [EPREFIX/bin]
624 --sbindir=DIR system admin executables [EPREFIX/sbin]
625 --libexecdir=DIR program executables [EPREFIX/libexec]
626 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
627 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
628 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
629 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
630 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
631 --runstatedir=DIR extra definition of runtime data [LOCALSTATEDIR/run]
632 --libdir=DIR object code libraries [EPREFIX/lib]
633 --includedir=DIR C header files [PREFIX/include]
634 --oldincludedir=DIR C header files for non-gcc [/usr/include]
635 --infodir=DIR info documentation [DATAROOTDIR/info]
636 --mandir=DIR man documentation [DATAROOTDIR/man]
642 --program-prefix=PREFIX prepend PREFIX to installed program names
643 --program-suffix=SUFFIX append SUFFIX to installed program names
644 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
647 --x-includes=DIR X include files are in DIR
648 --x-libraries=DIR X library files are in DIR
651 --build=BUILD configure for building on BUILD [guessed]
652 --host=HOST build programs to run on HOST [BUILD]
656 if test -n "$ac_init_help"; then
661 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
662 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
665 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
666 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
669 --disable-stripping do not strip (debug info) installed executables
670 --enable-string-hacks work around bogus compiler/loader warnings
671 --with-pkg-config{=path} enable/disable use of pkg-config
672 --disable-echo do not display "compiling" commands
673 Curses Version-dependent Options:
674 --with-ncurses-wrap-prefix naming-prefix for ncurses wrapped-variables
675 --disable-widec disable checks for wide-character functions
676 --with-curses-dir=DIR directory in which (n)curses is installed
677 --with-screen=XXX use specified curses-libraries
678 --with-ncursesw use wide ncurses-libraries
679 --with-ncurses use ncurses-libraries
680 --with-pdcurses compile/link with pdcurses X11 library
681 --with-curses-colr compile/link with HPUX 10.x color-curses
682 --with-curses-5lib compile/link with SunOS 5lib curses
683 --with-Xaw3d link with Xaw 3d library
684 --with-Xaw3dxft link with Xaw 3d xft library
685 --with-neXtaw link with neXT Athena library
686 --with-XawPlus link with Athena-Plus library
687 --with-x use the X Window System
688 --with-x11-rgb=FILE file containing X11 rgb information (EPREFIX/lib/X11/rgb.txt)
689 --with-form-libname=XXX override form basename of library
690 --with-menu-libname=XXX override menu basename of library
691 --with-panel-libname=XXX override panel basename of library
692 --disable-panel disable checks for panel functions
693 --disable-menu disable checks for menu functions
694 --disable-form disable checks for form functions
695 Testing/development Options:
696 --enable-warnings test: turn on gcc compiler warnings
697 --with-dmalloc test: use Gray Watson's dmalloc library
698 --with-dbmalloc test: use Conor Cahill's dbmalloc library
699 --with-valgrind test: use valgrind
700 --disable-leaks test: free permanent memory, analyze leaks
701 --disable-rpath-hack don't add rpath options for additional libraries
703 Some influential environment variables:
704 CC C compiler command
705 CFLAGS C compiler flags
706 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
707 nonstandard directory <lib dir>
708 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
709 headers in a nonstandard directory <include dir>
712 Use these variables to override the choices made by `configure' or to help
713 it to find libraries and programs with nonstandard names/locations.
718 if test "$ac_init_help" = "recursive"; then
719 # If there are subdirs, report their specific --help.
721 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
723 # A "../" for each directory in /$ac_subdir.
724 ac_dots=`echo $ac_subdir |
725 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
728 .) # No --srcdir option. We are building in place.
729 ac_sub_srcdir=$srcdir ;;
730 [\\/]* | ?:[\\/]* ) # Absolute path.
731 ac_sub_srcdir=$srcdir/$ac_subdir ;;
733 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
736 # Check for guested configure; otherwise get Cygnus style configure.
737 if test -f $ac_sub_srcdir/configure.gnu; then
739 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
740 elif test -f $ac_sub_srcdir/configure; then
742 $SHELL $ac_sub_srcdir/configure --help=recursive
743 elif test -f $ac_sub_srcdir/configure.ac ||
744 test -f $ac_sub_srcdir/configure.in; then
748 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
754 test -n "$ac_init_help" && exit 0
755 if $ac_init_version; then
758 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
759 Free Software Foundation, Inc.
760 This configure script is free software; the Free Software Foundation
761 gives unlimited permission to copy, distribute and modify it.
767 This file contains any messages produced by compilers while
768 running configure, to aid debugging if configure makes a mistake.
770 It was created by $as_me, which was
771 generated by GNU Autoconf 2.52.20200111. Invocation command line was
782 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
783 uname -m = `(uname -m) 2>/dev/null || echo unknown`
784 uname -r = `(uname -r) 2>/dev/null || echo unknown`
785 uname -s = `(uname -s) 2>/dev/null || echo unknown`
786 uname -v = `(uname -v) 2>/dev/null || echo unknown`
788 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
789 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
791 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
792 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
793 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
794 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
795 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
796 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
797 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
811 # Keep a trace of the command line.
812 # Strip out --no-create and --no-recursion so they do not pile up.
813 # Also quote any args containing shell meta-characters.
819 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
820 | --no-cr | --no-c) ;;
821 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
822 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
823 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
824 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
825 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
827 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
830 # Get rid of the leading space.
833 # When interrupted or exit'd, cleanup temporary files, and complete
834 # config.log. We remove comments because anyway the quotes in there
835 # would cause problems or look ugly.
837 # Save into config.log some information that might help in debugging.
839 echo "## ----------------- ##" >&5
840 echo "## Cache variables. ##" >&5
841 echo "## ----------------- ##" >&5
843 # The following way of writing the cache mishandles newlines in values,
846 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
849 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
850 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
854 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
858 sed "/^$/d" confdefs.h >conftest.log
859 if test -s conftest.log; then
861 echo "## ------------ ##" >&5
862 echo "## confdefs.h. ##" >&5
863 echo "## ------------ ##" >&5
868 test "$ac_signal" != 0 &&
869 echo "$as_me: caught signal $ac_signal" >&5
870 echo "$as_me: exit $exit_status" >&5
871 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
874 for ac_signal in 1 2 13 15; do
875 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
879 # confdefs.h avoids OS command line length limits that DEFS can exceed.
880 rm -rf conftest* confdefs.h
881 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
884 # Let the site file select an alternate cache file if it wants to.
885 # Prefer explicitly selected file to automatically selected ones.
886 if test -z "$CONFIG_SITE"; then
887 if test "x$prefix" != xNONE; then
888 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
890 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
893 for ac_site_file in $CONFIG_SITE; do
894 if test -r "$ac_site_file"; then
895 { echo "$as_me:895: loading site script $ac_site_file" >&5
896 echo "$as_me: loading site script $ac_site_file" >&6;}
897 cat "$ac_site_file" >&5
902 if test -r "$cache_file"; then
903 # Some versions of bash will fail to source /dev/null (special
904 # files actually), so we avoid doing that.
905 if test -f "$cache_file"; then
906 { echo "$as_me:906: loading cache $cache_file" >&5
907 echo "$as_me: loading cache $cache_file" >&6;}
909 [\\/]* | ?:[\\/]* ) . $cache_file;;
914 { echo "$as_me:914: creating cache $cache_file" >&5
915 echo "$as_me: creating cache $cache_file" >&6;}
919 # Check that the precious variables saved in the cache have kept the same
921 ac_cache_corrupted=false
922 for ac_var in `(set) 2>&1 |
923 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
924 eval ac_old_set=\$ac_cv_env_${ac_var}_set
925 eval ac_new_set=\$ac_env_${ac_var}_set
926 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
927 eval ac_new_val="\$ac_env_${ac_var}_value"
928 case $ac_old_set,$ac_new_set in
930 { echo "$as_me:930: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
931 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
932 ac_cache_corrupted=: ;;
934 { echo "$as_me:934: error: \`$ac_var' was not set in the previous run" >&5
935 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
936 ac_cache_corrupted=: ;;
939 if test "x$ac_old_val" != "x$ac_new_val"; then
940 { echo "$as_me:940: error: \`$ac_var' has changed since the previous run:" >&5
941 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
942 { echo "$as_me:942: former value: $ac_old_val" >&5
943 echo "$as_me: former value: $ac_old_val" >&2;}
944 { echo "$as_me:944: current value: $ac_new_val" >&5
945 echo "$as_me: current value: $ac_new_val" >&2;}
949 # Pass precious variables to config.status. It doesn't matter if
950 # we pass some twice (in addition to the command line arguments).
951 if test "$ac_new_set" = set; then
953 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
954 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
955 ac_configure_args="$ac_configure_args '$ac_arg'"
957 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
962 if $ac_cache_corrupted; then
963 { echo "$as_me:963: error: changes in the environment can compromise the build" >&5
964 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
965 { { echo "$as_me:965: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
966 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
967 { (exit 1); exit 1; }; }
971 ac_cpp='$CPP $CPPFLAGS'
972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
975 ac_main_return=return
977 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
978 *c*,-n*) ECHO_N= ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
980 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
981 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
983 echo "#! $SHELL" >conftest.sh
984 echo "exit 0" >>conftest.sh
986 if { (echo "$as_me:986: PATH=\".;.\"; conftest.sh") >&5
987 (PATH=".;."; conftest.sh) 2>&5
989 echo "$as_me:989: \$? = $ac_status" >&5
990 (exit $ac_status); }; then
991 ac_path_separator=';'
995 PATH_SEPARATOR="$ac_path_separator"
998 ac_config_headers="$ac_config_headers ncurses_cfg.h:ncurses_tst.hin"
1000 test -f config.guess || ( test -f ../config.guess && cp ../config.guess ./ )
1002 test -f config.sub || ( test -f ../config.sub && cp ../config.sub ./ )
1005 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1006 if test -f $ac_dir/install-sh; then
1008 ac_install_sh="$ac_aux_dir/install-sh -c"
1010 elif test -f $ac_dir/install.sh; then
1012 ac_install_sh="$ac_aux_dir/install.sh -c"
1014 elif test -f $ac_dir/shtool; then
1016 ac_install_sh="$ac_aux_dir/shtool install -c"
1020 if test -z "$ac_aux_dir"; then
1021 { { echo "$as_me:1021: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1022 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1023 { (exit 1); exit 1; }; }
1025 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1026 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1027 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1029 # Make sure we can run config.sub.
1030 $ac_config_sub sun4 >/dev/null 2>&1 ||
1031 { { echo "$as_me:1031: error: cannot run $ac_config_sub" >&5
1032 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1033 { (exit 1); exit 1; }; }
1035 echo "$as_me:1035: checking build system type" >&5
1036 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1037 if test "${ac_cv_build+set}" = set; then
1038 echo $ECHO_N "(cached) $ECHO_C" >&6
1040 ac_cv_build_alias=$build_alias
1041 test -z "$ac_cv_build_alias" &&
1042 ac_cv_build_alias=`$ac_config_guess`
1043 test -z "$ac_cv_build_alias" &&
1044 { { echo "$as_me:1044: error: cannot guess build type; you must specify one" >&5
1045 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1046 { (exit 1); exit 1; }; }
1047 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1048 { { echo "$as_me:1048: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1049 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1050 { (exit 1); exit 1; }; }
1053 echo "$as_me:1053: result: $ac_cv_build" >&5
1054 echo "${ECHO_T}$ac_cv_build" >&6
1056 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1057 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1058 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1060 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
1061 echo "$as_me:1061: checking host system type" >&5
1062 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1063 if test "${ac_cv_host+set}" = set; then
1064 echo $ECHO_N "(cached) $ECHO_C" >&6
1066 ac_cv_host_alias=$host_alias
1067 test -z "$ac_cv_host_alias" &&
1068 ac_cv_host_alias=$ac_cv_build_alias
1069 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1070 { { echo "$as_me:1070: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1071 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1072 { (exit 1); exit 1; }; }
1075 echo "$as_me:1075: result: $ac_cv_host" >&5
1076 echo "${ECHO_T}$ac_cv_host" >&6
1078 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1079 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1080 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1082 system_name="$host_os"
1084 system_name="`(uname -s -r) 2>/dev/null`"
1085 if test -z "$system_name" ; then
1086 system_name="`(hostname) 2>/dev/null`"
1089 test -n "$system_name" &&
1090 cat >>confdefs.h <<EOF
1091 #define SYSTEM_NAME "$system_name"
1094 if test "${cf_cv_system_name+set}" = set; then
1095 echo $ECHO_N "(cached) $ECHO_C" >&6
1097 cf_cv_system_name="$system_name"
1100 test -z "$system_name" && system_name="$cf_cv_system_name"
1101 test -n "$cf_cv_system_name" && echo "$as_me:1101: result: Configuring for $cf_cv_system_name" >&5
1102 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1104 if test ".$system_name" != ".$cf_cv_system_name" ; then
1105 echo "$as_me:1105: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1106 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1107 { { echo "$as_me:1107: error: \"Please remove config.cache and try again.\"" >&5
1108 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1109 { (exit 1); exit 1; }; }
1112 test "$program_prefix" != NONE &&
1113 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1114 # Use a double $ so make ignores it.
1115 test "$program_suffix" != NONE &&
1116 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1117 # Double any \ or $. echo might interpret backslashes.
1118 # By default was `s,x,x', remove it if useless.
1119 cat <<\_ACEOF >conftest.sed
1120 s/[\\$]/&&/g;s/;s,x,x,$//
1122 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1125 echo "$as_me:1125: checking whether ${MAKE-make} sets \${MAKE}" >&5
1126 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1127 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1128 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1129 echo $ECHO_N "(cached) $ECHO_C" >&6
1131 cat >conftest.make <<\EOF
1133 @echo 'ac_maketemp="${MAKE}"'
1135 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1136 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1137 if test -n "$ac_maketemp"; then
1138 eval ac_cv_prog_make_${ac_make}_set=yes
1140 eval ac_cv_prog_make_${ac_make}_set=no
1144 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1145 echo "$as_me:1145: result: yes" >&5
1146 echo "${ECHO_T}yes" >&6
1149 echo "$as_me:1149: result: no" >&5
1150 echo "${ECHO_T}no" >&6
1151 SET_MAKE="MAKE=${MAKE-make}"
1155 ac_cpp='$CPP $CPPFLAGS'
1156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1159 ac_main_return=return
1160 if test -n "$ac_tool_prefix"; then
1161 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1162 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1163 echo "$as_me:1163: checking for $ac_word" >&5
1164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1165 if test "${ac_cv_prog_CC+set}" = set; then
1166 echo $ECHO_N "(cached) $ECHO_C" >&6
1168 if test -n "$CC"; then
1169 ac_cv_prog_CC="$CC" # Let the user override the test.
1171 ac_save_IFS=$IFS; IFS=$ac_path_separator
1173 for ac_dir in $ac_dummy; do
1175 test -z "$ac_dir" && ac_dir=.
1176 $as_executable_p "$ac_dir/$ac_word" || continue
1177 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1178 echo "$as_me:1178: found $ac_dir/$ac_word" >&5
1185 if test -n "$CC"; then
1186 echo "$as_me:1186: result: $CC" >&5
1187 echo "${ECHO_T}$CC" >&6
1189 echo "$as_me:1189: result: no" >&5
1190 echo "${ECHO_T}no" >&6
1194 if test -z "$ac_cv_prog_CC"; then
1196 # Extract the first word of "gcc", so it can be a program name with args.
1197 set dummy gcc; ac_word=$2
1198 echo "$as_me:1198: checking for $ac_word" >&5
1199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1200 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1201 echo $ECHO_N "(cached) $ECHO_C" >&6
1203 if test -n "$ac_ct_CC"; then
1204 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1206 ac_save_IFS=$IFS; IFS=$ac_path_separator
1208 for ac_dir in $ac_dummy; do
1210 test -z "$ac_dir" && ac_dir=.
1211 $as_executable_p "$ac_dir/$ac_word" || continue
1212 ac_cv_prog_ac_ct_CC="gcc"
1213 echo "$as_me:1213: found $ac_dir/$ac_word" >&5
1219 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1220 if test -n "$ac_ct_CC"; then
1221 echo "$as_me:1221: result: $ac_ct_CC" >&5
1222 echo "${ECHO_T}$ac_ct_CC" >&6
1224 echo "$as_me:1224: result: no" >&5
1225 echo "${ECHO_T}no" >&6
1233 if test -z "$CC"; then
1234 if test -n "$ac_tool_prefix"; then
1235 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1236 set dummy ${ac_tool_prefix}cc; ac_word=$2
1237 echo "$as_me:1237: checking for $ac_word" >&5
1238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1239 if test "${ac_cv_prog_CC+set}" = set; then
1240 echo $ECHO_N "(cached) $ECHO_C" >&6
1242 if test -n "$CC"; then
1243 ac_cv_prog_CC="$CC" # Let the user override the test.
1245 ac_save_IFS=$IFS; IFS=$ac_path_separator
1247 for ac_dir in $ac_dummy; do
1249 test -z "$ac_dir" && ac_dir=.
1250 $as_executable_p "$ac_dir/$ac_word" || continue
1251 ac_cv_prog_CC="${ac_tool_prefix}cc"
1252 echo "$as_me:1252: found $ac_dir/$ac_word" >&5
1259 if test -n "$CC"; then
1260 echo "$as_me:1260: result: $CC" >&5
1261 echo "${ECHO_T}$CC" >&6
1263 echo "$as_me:1263: result: no" >&5
1264 echo "${ECHO_T}no" >&6
1268 if test -z "$ac_cv_prog_CC"; then
1270 # Extract the first word of "cc", so it can be a program name with args.
1271 set dummy cc; ac_word=$2
1272 echo "$as_me:1272: checking for $ac_word" >&5
1273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1274 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1275 echo $ECHO_N "(cached) $ECHO_C" >&6
1277 if test -n "$ac_ct_CC"; then
1278 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1280 ac_save_IFS=$IFS; IFS=$ac_path_separator
1282 for ac_dir in $ac_dummy; do
1284 test -z "$ac_dir" && ac_dir=.
1285 $as_executable_p "$ac_dir/$ac_word" || continue
1286 ac_cv_prog_ac_ct_CC="cc"
1287 echo "$as_me:1287: found $ac_dir/$ac_word" >&5
1293 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1294 if test -n "$ac_ct_CC"; then
1295 echo "$as_me:1295: result: $ac_ct_CC" >&5
1296 echo "${ECHO_T}$ac_ct_CC" >&6
1298 echo "$as_me:1298: result: no" >&5
1299 echo "${ECHO_T}no" >&6
1308 if test -z "$CC"; then
1309 # Extract the first word of "cc", so it can be a program name with args.
1310 set dummy cc; ac_word=$2
1311 echo "$as_me:1311: checking for $ac_word" >&5
1312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1313 if test "${ac_cv_prog_CC+set}" = set; then
1314 echo $ECHO_N "(cached) $ECHO_C" >&6
1316 if test -n "$CC"; then
1317 ac_cv_prog_CC="$CC" # Let the user override the test.
1320 ac_save_IFS=$IFS; IFS=$ac_path_separator
1322 for ac_dir in $ac_dummy; do
1324 test -z "$ac_dir" && ac_dir=.
1325 $as_executable_p "$ac_dir/$ac_word" || continue
1326 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1327 ac_prog_rejected=yes
1331 echo "$as_me:1331: found $ac_dir/$ac_word" >&5
1335 if test $ac_prog_rejected = yes; then
1336 # We found a bogon in the path, so make sure we never use it.
1337 set dummy $ac_cv_prog_CC
1339 if test $# != 0; then
1340 # We chose a different compiler from the bogus one.
1341 # However, it has the same basename, so the bogon will be chosen
1342 # first if we set CC to just the basename; use the full file name.
1344 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1352 if test -n "$CC"; then
1353 echo "$as_me:1353: result: $CC" >&5
1354 echo "${ECHO_T}$CC" >&6
1356 echo "$as_me:1356: result: no" >&5
1357 echo "${ECHO_T}no" >&6
1361 if test -z "$CC"; then
1362 if test -n "$ac_tool_prefix"; then
1365 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1366 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1367 echo "$as_me:1367: checking for $ac_word" >&5
1368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1369 if test "${ac_cv_prog_CC+set}" = set; then
1370 echo $ECHO_N "(cached) $ECHO_C" >&6
1372 if test -n "$CC"; then
1373 ac_cv_prog_CC="$CC" # Let the user override the test.
1375 ac_save_IFS=$IFS; IFS=$ac_path_separator
1377 for ac_dir in $ac_dummy; do
1379 test -z "$ac_dir" && ac_dir=.
1380 $as_executable_p "$ac_dir/$ac_word" || continue
1381 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1382 echo "$as_me:1382: found $ac_dir/$ac_word" >&5
1389 if test -n "$CC"; then
1390 echo "$as_me:1390: result: $CC" >&5
1391 echo "${ECHO_T}$CC" >&6
1393 echo "$as_me:1393: result: no" >&5
1394 echo "${ECHO_T}no" >&6
1397 test -n "$CC" && break
1400 if test -z "$CC"; then
1404 # Extract the first word of "$ac_prog", so it can be a program name with args.
1405 set dummy $ac_prog; ac_word=$2
1406 echo "$as_me:1406: checking for $ac_word" >&5
1407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1408 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1409 echo $ECHO_N "(cached) $ECHO_C" >&6
1411 if test -n "$ac_ct_CC"; then
1412 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1414 ac_save_IFS=$IFS; IFS=$ac_path_separator
1416 for ac_dir in $ac_dummy; do
1418 test -z "$ac_dir" && ac_dir=.
1419 $as_executable_p "$ac_dir/$ac_word" || continue
1420 ac_cv_prog_ac_ct_CC="$ac_prog"
1421 echo "$as_me:1421: found $ac_dir/$ac_word" >&5
1427 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1428 if test -n "$ac_ct_CC"; then
1429 echo "$as_me:1429: result: $ac_ct_CC" >&5
1430 echo "${ECHO_T}$ac_ct_CC" >&6
1432 echo "$as_me:1432: result: no" >&5
1433 echo "${ECHO_T}no" >&6
1436 test -n "$ac_ct_CC" && break
1444 test -z "$CC" && { { echo "$as_me:1444: error: no acceptable cc found in \$PATH" >&5
1445 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1446 { (exit 1); exit 1; }; }
1448 # Provide some information about the compiler.
1449 echo "$as_me:1449:" \
1450 "checking for C compiler version" >&5
1451 ac_compiler=`set X $ac_compile; echo $2`
1452 { (eval echo "$as_me:1452: \"$ac_compiler --version </dev/null >&5\"") >&5
1453 (eval $ac_compiler --version </dev/null >&5) 2>&5
1455 echo "$as_me:1455: \$? = $ac_status" >&5
1456 (exit $ac_status); }
1457 { (eval echo "$as_me:1457: \"$ac_compiler -v </dev/null >&5\"") >&5
1458 (eval $ac_compiler -v </dev/null >&5) 2>&5
1460 echo "$as_me:1460: \$? = $ac_status" >&5
1461 (exit $ac_status); }
1462 { (eval echo "$as_me:1462: \"$ac_compiler -V </dev/null >&5\"") >&5
1463 (eval $ac_compiler -V </dev/null >&5) 2>&5
1465 echo "$as_me:1465: \$? = $ac_status" >&5
1466 (exit $ac_status); }
1468 cat >conftest.$ac_ext <<_ACEOF
1469 #line 1469 "configure"
1470 #include "confdefs.h"
1480 ac_clean_files_save=$ac_clean_files
1481 ac_clean_files="$ac_clean_files a.out a.exe"
1482 # Try to create an executable without -o first, disregard a.out.
1483 # It will help us diagnose broken compilers, and finding out an intuition
1485 echo "$as_me:1485: checking for C compiler default output" >&5
1486 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1487 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1488 if { (eval echo "$as_me:1488: \"$ac_link_default\"") >&5
1489 (eval $ac_link_default) 2>&5
1491 echo "$as_me:1491: \$? = $ac_status" >&5
1492 (exit $ac_status); }; then
1493 # Find the output, starting from the most likely. This scheme is
1494 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1496 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1497 ls a.out conftest 2>/dev/null;
1498 ls a.* conftest.* 2>/dev/null`; do
1500 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1501 a.out ) # We found the default executable, but exeext='' is most
1504 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1505 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1512 echo "$as_me: failed program was:" >&5
1513 cat conftest.$ac_ext >&5
1514 { { echo "$as_me:1514: error: C compiler cannot create executables" >&5
1515 echo "$as_me: error: C compiler cannot create executables" >&2;}
1516 { (exit 77); exit 77; }; }
1519 ac_exeext=$ac_cv_exeext
1520 echo "$as_me:1520: result: $ac_file" >&5
1521 echo "${ECHO_T}$ac_file" >&6
1523 # Check the compiler produces executables we can run. If not, either
1524 # the compiler is broken, or we cross compile.
1525 echo "$as_me:1525: checking whether the C compiler works" >&5
1526 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1527 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1528 # If not cross compiling, check that we can run a simple program.
1529 if test "$cross_compiling" != yes; then
1530 if { ac_try='./$ac_file'
1531 { (eval echo "$as_me:1531: \"$ac_try\"") >&5
1534 echo "$as_me:1534: \$? = $ac_status" >&5
1535 (exit $ac_status); }; }; then
1538 if test "$cross_compiling" = maybe; then
1541 { { echo "$as_me:1541: error: cannot run C compiled programs.
1542 If you meant to cross compile, use \`--host'." >&5
1543 echo "$as_me: error: cannot run C compiled programs.
1544 If you meant to cross compile, use \`--host'." >&2;}
1545 { (exit 1); exit 1; }; }
1549 echo "$as_me:1549: result: yes" >&5
1550 echo "${ECHO_T}yes" >&6
1552 rm -f a.out a.exe conftest$ac_cv_exeext
1553 ac_clean_files=$ac_clean_files_save
1554 # Check the compiler produces executables we can run. If not, either
1555 # the compiler is broken, or we cross compile.
1556 echo "$as_me:1556: checking whether we are cross compiling" >&5
1557 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1558 echo "$as_me:1558: result: $cross_compiling" >&5
1559 echo "${ECHO_T}$cross_compiling" >&6
1561 echo "$as_me:1561: checking for executable suffix" >&5
1562 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1563 if { (eval echo "$as_me:1563: \"$ac_link\"") >&5
1564 (eval $ac_link) 2>&5
1566 echo "$as_me:1566: \$? = $ac_status" >&5
1567 (exit $ac_status); }; then
1568 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1569 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1570 # work properly (i.e., refer to `conftest.exe'), while it won't with
1572 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1574 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1575 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1582 { { echo "$as_me:1582: error: cannot compute EXEEXT: cannot compile and link" >&5
1583 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1584 { (exit 1); exit 1; }; }
1587 rm -f conftest$ac_cv_exeext
1588 echo "$as_me:1588: result: $ac_cv_exeext" >&5
1589 echo "${ECHO_T}$ac_cv_exeext" >&6
1591 rm -f conftest.$ac_ext
1592 EXEEXT=$ac_cv_exeext
1594 echo "$as_me:1594: checking for object suffix" >&5
1595 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1596 if test "${ac_cv_objext+set}" = set; then
1597 echo $ECHO_N "(cached) $ECHO_C" >&6
1599 cat >conftest.$ac_ext <<_ACEOF
1600 #line 1600 "configure"
1601 #include "confdefs.h"
1611 rm -f conftest.o conftest.obj
1612 if { (eval echo "$as_me:1612: \"$ac_compile\"") >&5
1613 (eval $ac_compile) 2>&5
1615 echo "$as_me:1615: \$? = $ac_status" >&5
1616 (exit $ac_status); }; then
1617 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1619 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1620 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1625 echo "$as_me: failed program was:" >&5
1626 cat conftest.$ac_ext >&5
1627 { { echo "$as_me:1627: error: cannot compute OBJEXT: cannot compile" >&5
1628 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1629 { (exit 1); exit 1; }; }
1632 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1634 echo "$as_me:1634: result: $ac_cv_objext" >&5
1635 echo "${ECHO_T}$ac_cv_objext" >&6
1636 OBJEXT=$ac_cv_objext
1638 echo "$as_me:1638: checking whether we are using the GNU C compiler" >&5
1639 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1640 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1641 echo $ECHO_N "(cached) $ECHO_C" >&6
1643 cat >conftest.$ac_ext <<_ACEOF
1644 #line 1644 "configure"
1645 #include "confdefs.h"
1658 rm -f conftest.$ac_objext
1659 if { (eval echo "$as_me:1659: \"$ac_compile\"") >&5
1660 (eval $ac_compile) 2>&5
1662 echo "$as_me:1662: \$? = $ac_status" >&5
1663 (exit $ac_status); } &&
1664 { ac_try='test -s conftest.$ac_objext'
1665 { (eval echo "$as_me:1665: \"$ac_try\"") >&5
1668 echo "$as_me:1668: \$? = $ac_status" >&5
1669 (exit $ac_status); }; }; then
1672 echo "$as_me: failed program was:" >&5
1673 cat conftest.$ac_ext >&5
1676 rm -f conftest.$ac_objext conftest.$ac_ext
1677 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1680 echo "$as_me:1680: result: $ac_cv_c_compiler_gnu" >&5
1681 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1682 GCC=`test $ac_compiler_gnu = yes && echo yes`
1683 ac_test_CFLAGS=${CFLAGS+set}
1684 ac_save_CFLAGS=$CFLAGS
1686 echo "$as_me:1686: checking whether $CC accepts -g" >&5
1687 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1688 if test "${ac_cv_prog_cc_g+set}" = set; then
1689 echo $ECHO_N "(cached) $ECHO_C" >&6
1691 cat >conftest.$ac_ext <<_ACEOF
1692 #line 1692 "configure"
1693 #include "confdefs.h"
1703 rm -f conftest.$ac_objext
1704 if { (eval echo "$as_me:1704: \"$ac_compile\"") >&5
1705 (eval $ac_compile) 2>&5
1707 echo "$as_me:1707: \$? = $ac_status" >&5
1708 (exit $ac_status); } &&
1709 { ac_try='test -s conftest.$ac_objext'
1710 { (eval echo "$as_me:1710: \"$ac_try\"") >&5
1713 echo "$as_me:1713: \$? = $ac_status" >&5
1714 (exit $ac_status); }; }; then
1717 echo "$as_me: failed program was:" >&5
1718 cat conftest.$ac_ext >&5
1721 rm -f conftest.$ac_objext conftest.$ac_ext
1723 echo "$as_me:1723: result: $ac_cv_prog_cc_g" >&5
1724 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1725 if test "$ac_test_CFLAGS" = set; then
1726 CFLAGS=$ac_save_CFLAGS
1727 elif test $ac_cv_prog_cc_g = yes; then
1728 if test "$GCC" = yes; then
1734 if test "$GCC" = yes; then
1740 # Some people use a C++ compiler to compile C. Since we use `exit',
1741 # in C++ we need to declare it. In case someone uses the same compiler
1742 # for both compiling C and C++ we need to have the C++ compiler decide
1743 # the declaration of exit, since it's the most demanding environment.
1744 cat >conftest.$ac_ext <<_ACEOF
1749 rm -f conftest.$ac_objext
1750 if { (eval echo "$as_me:1750: \"$ac_compile\"") >&5
1751 (eval $ac_compile) 2>&5
1753 echo "$as_me:1753: \$? = $ac_status" >&5
1754 (exit $ac_status); } &&
1755 { ac_try='test -s conftest.$ac_objext'
1756 { (eval echo "$as_me:1756: \"$ac_try\"") >&5
1759 echo "$as_me:1759: \$? = $ac_status" >&5
1760 (exit $ac_status); }; }; then
1761 for ac_declaration in \
1763 '#include <stdlib.h>' \
1764 'extern "C" void std::exit (int) throw (); using std::exit;' \
1765 'extern "C" void std::exit (int); using std::exit;' \
1766 'extern "C" void exit (int) throw ();' \
1767 'extern "C" void exit (int);' \
1770 cat >conftest.$ac_ext <<_ACEOF
1771 #line 1771 "configure"
1772 #include "confdefs.h"
1783 rm -f conftest.$ac_objext
1784 if { (eval echo "$as_me:1784: \"$ac_compile\"") >&5
1785 (eval $ac_compile) 2>&5
1787 echo "$as_me:1787: \$? = $ac_status" >&5
1788 (exit $ac_status); } &&
1789 { ac_try='test -s conftest.$ac_objext'
1790 { (eval echo "$as_me:1790: \"$ac_try\"") >&5
1793 echo "$as_me:1793: \$? = $ac_status" >&5
1794 (exit $ac_status); }; }; then
1797 echo "$as_me: failed program was:" >&5
1798 cat conftest.$ac_ext >&5
1801 rm -f conftest.$ac_objext conftest.$ac_ext
1802 cat >conftest.$ac_ext <<_ACEOF
1803 #line 1803 "configure"
1804 #include "confdefs.h"
1814 rm -f conftest.$ac_objext
1815 if { (eval echo "$as_me:1815: \"$ac_compile\"") >&5
1816 (eval $ac_compile) 2>&5
1818 echo "$as_me:1818: \$? = $ac_status" >&5
1819 (exit $ac_status); } &&
1820 { ac_try='test -s conftest.$ac_objext'
1821 { (eval echo "$as_me:1821: \"$ac_try\"") >&5
1824 echo "$as_me:1824: \$? = $ac_status" >&5
1825 (exit $ac_status); }; }; then
1828 echo "$as_me: failed program was:" >&5
1829 cat conftest.$ac_ext >&5
1831 rm -f conftest.$ac_objext conftest.$ac_ext
1834 if test -n "$ac_declaration"; then
1835 echo '#ifdef __cplusplus' >>confdefs.h
1836 echo $ac_declaration >>confdefs.h
1837 echo '#endif' >>confdefs.h
1841 echo "$as_me: failed program was:" >&5
1842 cat conftest.$ac_ext >&5
1844 rm -f conftest.$ac_objext conftest.$ac_ext
1846 ac_cpp='$CPP $CPPFLAGS'
1847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1850 ac_main_return=return
1853 if test "$GCC" = yes ; then
1854 echo "$as_me:1854: checking version of $CC" >&5
1855 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
1856 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.].*//'`"
1857 test -z "$GCC_VERSION" && GCC_VERSION=unknown
1858 echo "$as_me:1858: result: $GCC_VERSION" >&5
1859 echo "${ECHO_T}$GCC_VERSION" >&6
1864 if test "$GCC" = yes ; then
1867 echo "$as_me:1867: checking if this is really Intel C compiler" >&5
1868 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
1869 cf_save_CFLAGS="$CFLAGS"
1870 CFLAGS="$CFLAGS -no-gcc"
1871 cat >conftest.$ac_ext <<_ACEOF
1872 #line 1872 "configure"
1873 #include "confdefs.h"
1879 #ifdef __INTEL_COMPILER
1888 rm -f conftest.$ac_objext
1889 if { (eval echo "$as_me:1889: \"$ac_compile\"") >&5
1890 (eval $ac_compile) 2>&5
1892 echo "$as_me:1892: \$? = $ac_status" >&5
1893 (exit $ac_status); } &&
1894 { ac_try='test -s conftest.$ac_objext'
1895 { (eval echo "$as_me:1895: \"$ac_try\"") >&5
1898 echo "$as_me:1898: \$? = $ac_status" >&5
1899 (exit $ac_status); }; }; then
1901 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
1904 echo "$as_me: failed program was:" >&5
1905 cat conftest.$ac_ext >&5
1907 rm -f conftest.$ac_objext conftest.$ac_ext
1908 CFLAGS="$cf_save_CFLAGS"
1909 echo "$as_me:1909: result: $INTEL_COMPILER" >&5
1910 echo "${ECHO_T}$INTEL_COMPILER" >&6
1917 if test "$GCC" = yes ; then
1918 echo "$as_me:1918: checking if this is really Clang C compiler" >&5
1919 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
1920 cf_save_CFLAGS="$CFLAGS"
1921 CFLAGS="$CFLAGS -Qunused-arguments"
1922 cat >conftest.$ac_ext <<_ACEOF
1923 #line 1923 "configure"
1924 #include "confdefs.h"
1939 rm -f conftest.$ac_objext
1940 if { (eval echo "$as_me:1940: \"$ac_compile\"") >&5
1941 (eval $ac_compile) 2>&5
1943 echo "$as_me:1943: \$? = $ac_status" >&5
1944 (exit $ac_status); } &&
1945 { ac_try='test -s conftest.$ac_objext'
1946 { (eval echo "$as_me:1946: \"$ac_try\"") >&5
1949 echo "$as_me:1949: \$? = $ac_status" >&5
1950 (exit $ac_status); }; }; then
1952 cf_save_CFLAGS="$cf_save_CFLAGS -Qunused-arguments"
1955 echo "$as_me: failed program was:" >&5
1956 cat conftest.$ac_ext >&5
1958 rm -f conftest.$ac_objext conftest.$ac_ext
1959 CFLAGS="$cf_save_CFLAGS"
1960 echo "$as_me:1960: result: $CLANG_COMPILER" >&5
1961 echo "${ECHO_T}$CLANG_COMPILER" >&6
1964 echo "$as_me:1964: checking for $CC option to accept ANSI C" >&5
1965 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1966 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1969 ac_cv_prog_cc_stdc=no
1971 cat >conftest.$ac_ext <<_ACEOF
1972 #line 1972 "configure"
1973 #include "confdefs.h"
1976 #include <sys/types.h>
1977 #include <sys/stat.h>
1978 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1979 struct buf { int x; };
1980 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1981 static char *e (p, i)
1987 static char *f (char * (*g) (char **, int), char **p, ...)
1992 s = g (p, va_arg (v,int));
1996 int test (int i, double x);
1997 struct s1 {int (*f) (int a);};
1998 struct s2 {int (*f) (double a);};
1999 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2005 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2010 # Don't try gcc -ansi; that turns off useful extensions and
2011 # breaks some systems' header files.
2012 # AIX -qlanglvl=ansi
2013 # Ultrix and OSF/1 -std1
2014 # HP-UX 10.20 and later -Ae
2015 # HP-UX older versions -Aa -D_HPUX_SOURCE
2016 # SVR4 -Xc -D__EXTENSIONS__
2017 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2019 CC="$ac_save_CC $ac_arg"
2020 rm -f conftest.$ac_objext
2021 if { (eval echo "$as_me:2021: \"$ac_compile\"") >&5
2022 (eval $ac_compile) 2>&5
2024 echo "$as_me:2024: \$? = $ac_status" >&5
2025 (exit $ac_status); } &&
2026 { ac_try='test -s conftest.$ac_objext'
2027 { (eval echo "$as_me:2027: \"$ac_try\"") >&5
2030 echo "$as_me:2030: \$? = $ac_status" >&5
2031 (exit $ac_status); }; }; then
2032 ac_cv_prog_cc_stdc=$ac_arg
2035 echo "$as_me: failed program was:" >&5
2036 cat conftest.$ac_ext >&5
2038 rm -f conftest.$ac_objext
2040 rm -f conftest.$ac_ext conftest.$ac_objext
2045 case "x$ac_cv_prog_cc_stdc" in
2047 echo "$as_me:2047: result: none needed" >&5
2048 echo "${ECHO_T}none needed" >&6 ;;
2050 echo "$as_me:2050: result: $ac_cv_prog_cc_stdc" >&5
2051 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2052 CC="$CC $ac_cv_prog_cc_stdc" ;;
2055 # This should have been defined by AC_PROG_CC
2058 echo "$as_me:2058: checking \$CFLAGS variable" >&5
2059 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
2062 echo "$as_me:2062: result: broken" >&5
2063 echo "${ECHO_T}broken" >&6
2064 { echo "$as_me:2064: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
2065 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
2068 for cf_arg in $cf_flags
2074 cf_new_extra_cppflags=
2076 for cf_add_cflags in $cf_arg
2078 case $cf_fix_cppflags in
2080 case $cf_add_cflags in
2081 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2082 case $cf_add_cflags in
2084 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2086 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2087 && test -z "${cf_tst_cflags}" \
2088 && cf_fix_cppflags=yes
2090 if test $cf_fix_cppflags = yes ; then
2092 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2093 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2096 elif test "${cf_tst_cflags}" = "\"'" ; then
2098 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2099 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2109 case $cf_add_cflags in
2111 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2113 CPPFLAGS=`echo "$CPPFLAGS" | \
2114 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2115 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2120 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2121 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2128 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2129 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2136 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2137 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2139 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2141 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2142 && test -z "${cf_tst_cflags}" \
2143 && cf_fix_cppflags=no
2148 if test -n "$cf_new_cflags" ; then
2150 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2151 CFLAGS="${CFLAGS}$cf_new_cflags"
2155 if test -n "$cf_new_cppflags" ; then
2157 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2158 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2162 if test -n "$cf_new_extra_cppflags" ; then
2164 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2165 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2172 echo "$as_me:2172: result: ok" >&5
2173 echo "${ECHO_T}ok" >&6
2177 echo "$as_me:2177: checking \$CC variable" >&5
2178 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2181 echo "$as_me:2181: result: broken" >&5
2182 echo "${ECHO_T}broken" >&6
2183 { echo "$as_me:2183: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2184 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2186 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2187 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
2189 for cf_arg in $cf_flags
2197 cf_new_extra_cppflags=
2199 for cf_add_cflags in $cf_arg
2201 case $cf_fix_cppflags in
2203 case $cf_add_cflags in
2204 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2205 case $cf_add_cflags in
2207 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2209 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2210 && test -z "${cf_tst_cflags}" \
2211 && cf_fix_cppflags=yes
2213 if test $cf_fix_cppflags = yes ; then
2215 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2216 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2219 elif test "${cf_tst_cflags}" = "\"'" ; then
2221 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2222 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2232 case $cf_add_cflags in
2234 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2236 CPPFLAGS=`echo "$CPPFLAGS" | \
2237 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2238 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2243 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2244 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2251 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2252 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2259 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2260 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2262 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2264 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2265 && test -z "${cf_tst_cflags}" \
2266 && cf_fix_cppflags=no
2271 if test -n "$cf_new_cflags" ; then
2273 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2274 CFLAGS="${CFLAGS}$cf_new_cflags"
2278 if test -n "$cf_new_cppflags" ; then
2280 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2281 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2285 if test -n "$cf_new_extra_cppflags" ; then
2287 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2288 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2298 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2300 echo "${as_me:-configure}:2300: testing resulting CC: '$CC' ..." 1>&5
2302 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2304 echo "${as_me:-configure}:2304: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2306 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2308 echo "${as_me:-configure}:2308: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2312 echo "$as_me:2312: result: ok" >&5
2313 echo "${ECHO_T}ok" >&6
2317 echo "$as_me:2317: checking for inline" >&5
2318 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2319 if test "${ac_cv_c_inline+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2323 for ac_kw in inline __inline__ __inline; do
2324 cat >conftest.$ac_ext <<_ACEOF
2325 #line 2325 "configure"
2326 #include "confdefs.h"
2328 static $ac_kw int static_foo () {return 0; }
2329 $ac_kw int foo () {return 0; }
2333 rm -f conftest.$ac_objext
2334 if { (eval echo "$as_me:2334: \"$ac_compile\"") >&5
2335 (eval $ac_compile) 2>&5
2337 echo "$as_me:2337: \$? = $ac_status" >&5
2338 (exit $ac_status); } &&
2339 { ac_try='test -s conftest.$ac_objext'
2340 { (eval echo "$as_me:2340: \"$ac_try\"") >&5
2343 echo "$as_me:2343: \$? = $ac_status" >&5
2344 (exit $ac_status); }; }; then
2345 ac_cv_c_inline=$ac_kw; break
2347 echo "$as_me: failed program was:" >&5
2348 cat conftest.$ac_ext >&5
2350 rm -f conftest.$ac_objext conftest.$ac_ext
2354 echo "$as_me:2354: result: $ac_cv_c_inline" >&5
2355 echo "${ECHO_T}$ac_cv_c_inline" >&6
2356 case $ac_cv_c_inline in
2359 cat >>confdefs.h <<\EOF
2363 *) cat >>confdefs.h <<EOF
2364 #define inline $ac_cv_c_inline
2370 ac_cpp='$CPP $CPPFLAGS'
2371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2374 ac_main_return=return
2375 echo "$as_me:2375: checking how to run the C preprocessor" >&5
2376 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2377 # On Suns, sometimes $CPP names a directory.
2378 if test -n "$CPP" && test -d "$CPP"; then
2381 if test -z "$CPP"; then
2382 if test "${ac_cv_prog_CPP+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2385 # Double quotes because CPP needs to be expanded
2386 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2389 for ac_c_preproc_warn_flag in '' yes
2391 # Use a header file that comes with gcc, so configuring glibc
2392 # with a fresh cross-compiler works.
2393 # On the NeXT, cc -E runs the code through the compiler's parser,
2394 # not just through cpp. "Syntax error" is here to catch this case.
2395 cat >conftest.$ac_ext <<_ACEOF
2396 #line 2396 "configure"
2397 #include "confdefs.h"
2401 if { (eval echo "$as_me:2401: \"$ac_cpp conftest.$ac_ext\"") >&5
2402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2404 egrep -v '^ *\+' conftest.er1 >conftest.err
2406 cat conftest.err >&5
2407 echo "$as_me:2407: \$? = $ac_status" >&5
2408 (exit $ac_status); } >/dev/null; then
2409 if test -s conftest.err; then
2410 ac_cpp_err=$ac_c_preproc_warn_flag
2417 if test -z "$ac_cpp_err"; then
2420 echo "$as_me: failed program was:" >&5
2421 cat conftest.$ac_ext >&5
2422 # Broken: fails on valid input.
2425 rm -f conftest.err conftest.$ac_ext
2427 # OK, works on sane cases. Now check whether non-existent headers
2428 # can be detected and how.
2429 cat >conftest.$ac_ext <<_ACEOF
2430 #line 2430 "configure"
2431 #include "confdefs.h"
2432 #include <ac_nonexistent.h>
2434 if { (eval echo "$as_me:2434: \"$ac_cpp conftest.$ac_ext\"") >&5
2435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2437 egrep -v '^ *\+' conftest.er1 >conftest.err
2439 cat conftest.err >&5
2440 echo "$as_me:2440: \$? = $ac_status" >&5
2441 (exit $ac_status); } >/dev/null; then
2442 if test -s conftest.err; then
2443 ac_cpp_err=$ac_c_preproc_warn_flag
2450 if test -z "$ac_cpp_err"; then
2451 # Broken: success on invalid input.
2454 echo "$as_me: failed program was:" >&5
2455 cat conftest.$ac_ext >&5
2456 # Passes both tests.
2460 rm -f conftest.err conftest.$ac_ext
2463 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2464 rm -f conftest.err conftest.$ac_ext
2465 if $ac_preproc_ok; then
2477 echo "$as_me:2477: result: $CPP" >&5
2478 echo "${ECHO_T}$CPP" >&6
2480 for ac_c_preproc_warn_flag in '' yes
2482 # Use a header file that comes with gcc, so configuring glibc
2483 # with a fresh cross-compiler works.
2484 # On the NeXT, cc -E runs the code through the compiler's parser,
2485 # not just through cpp. "Syntax error" is here to catch this case.
2486 cat >conftest.$ac_ext <<_ACEOF
2487 #line 2487 "configure"
2488 #include "confdefs.h"
2492 if { (eval echo "$as_me:2492: \"$ac_cpp conftest.$ac_ext\"") >&5
2493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2495 egrep -v '^ *\+' conftest.er1 >conftest.err
2497 cat conftest.err >&5
2498 echo "$as_me:2498: \$? = $ac_status" >&5
2499 (exit $ac_status); } >/dev/null; then
2500 if test -s conftest.err; then
2501 ac_cpp_err=$ac_c_preproc_warn_flag
2508 if test -z "$ac_cpp_err"; then
2511 echo "$as_me: failed program was:" >&5
2512 cat conftest.$ac_ext >&5
2513 # Broken: fails on valid input.
2516 rm -f conftest.err conftest.$ac_ext
2518 # OK, works on sane cases. Now check whether non-existent headers
2519 # can be detected and how.
2520 cat >conftest.$ac_ext <<_ACEOF
2521 #line 2521 "configure"
2522 #include "confdefs.h"
2523 #include <ac_nonexistent.h>
2525 if { (eval echo "$as_me:2525: \"$ac_cpp conftest.$ac_ext\"") >&5
2526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2528 egrep -v '^ *\+' conftest.er1 >conftest.err
2530 cat conftest.err >&5
2531 echo "$as_me:2531: \$? = $ac_status" >&5
2532 (exit $ac_status); } >/dev/null; then
2533 if test -s conftest.err; then
2534 ac_cpp_err=$ac_c_preproc_warn_flag
2541 if test -z "$ac_cpp_err"; then
2542 # Broken: success on invalid input.
2545 echo "$as_me: failed program was:" >&5
2546 cat conftest.$ac_ext >&5
2547 # Passes both tests.
2551 rm -f conftest.err conftest.$ac_ext
2554 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2555 rm -f conftest.err conftest.$ac_ext
2556 if $ac_preproc_ok; then
2559 { { echo "$as_me:2559: error: C preprocessor \"$CPP\" fails sanity check" >&5
2560 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2561 { (exit 1); exit 1; }; }
2565 ac_cpp='$CPP $CPPFLAGS'
2566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2569 ac_main_return=return
2571 for ac_prog in mawk gawk nawk awk
2573 # Extract the first word of "$ac_prog", so it can be a program name with args.
2574 set dummy $ac_prog; ac_word=$2
2575 echo "$as_me:2575: checking for $ac_word" >&5
2576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2577 if test "${ac_cv_prog_AWK+set}" = set; then
2578 echo $ECHO_N "(cached) $ECHO_C" >&6
2580 if test -n "$AWK"; then
2581 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2583 ac_save_IFS=$IFS; IFS=$ac_path_separator
2585 for ac_dir in $ac_dummy; do
2587 test -z "$ac_dir" && ac_dir=.
2588 $as_executable_p "$ac_dir/$ac_word" || continue
2589 ac_cv_prog_AWK="$ac_prog"
2590 echo "$as_me:2590: found $ac_dir/$ac_word" >&5
2597 if test -n "$AWK"; then
2598 echo "$as_me:2598: result: $AWK" >&5
2599 echo "${ECHO_T}$AWK" >&6
2601 echo "$as_me:2601: result: no" >&5
2602 echo "${ECHO_T}no" >&6
2605 test -n "$AWK" && break
2608 # Find a good install program. We prefer a C program (faster),
2609 # so one script is as good as another. But avoid the broken or
2610 # incompatible versions:
2611 # SysV /etc/install, /usr/sbin/install
2612 # SunOS /usr/etc/install
2613 # IRIX /sbin/install
2615 # AmigaOS /C/install, which installs bootblocks on floppy discs
2616 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2617 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2618 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2619 # ./install, which can be erroneously created by make from ./install.sh.
2620 echo "$as_me:2620: checking for a BSD compatible install" >&5
2621 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2622 if test -z "$INSTALL"; then
2623 if test "${ac_cv_path_install+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2626 ac_save_IFS=$IFS; IFS=$ac_path_separator
2627 for ac_dir in $PATH; do
2629 # Account for people who put trailing slashes in PATH elements.
2631 / | ./ | .// | /cC/* \
2632 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2635 # OSF1 and SCO ODT 3.0 have their own names for install.
2636 # Don't use installbsd from OSF since it installs stuff as root
2638 for ac_prog in ginstall scoinst install; do
2639 if $as_executable_p "$ac_dir/$ac_prog"; then
2640 if test $ac_prog = install &&
2641 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2642 # AIX install. It has an incompatible calling convention.
2644 elif test $ac_prog = install &&
2645 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2646 # program-specific install script used by HP pwplus--don't use.
2649 ac_cv_path_install="$ac_dir/$ac_prog -c"
2659 if test "${ac_cv_path_install+set}" = set; then
2660 INSTALL=$ac_cv_path_install
2662 # As a last resort, use the slow shell script. We don't cache a
2663 # path for INSTALL within a source directory, because that will
2664 # break other packages using the cache if that directory is
2665 # removed, or if the path is relative.
2666 INSTALL=$ac_install_sh
2669 echo "$as_me:2669: result: $INSTALL" >&5
2670 echo "${ECHO_T}$INSTALL" >&6
2672 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2673 # It thinks the first close brace ends the variable substitution.
2674 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2676 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2678 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2684 cf_dir=`echo $INSTALL | sed -e 's%/[^/]*$%%'`
2685 test -z "$cf_dir" && cf_dir=.
2686 INSTALL=`cd $cf_dir && pwd`/`echo $INSTALL | sed -e 's%^.*/%%'`
2690 echo "$as_me:2690: checking if you want to install stripped executables" >&5
2691 echo $ECHO_N "checking if you want to install stripped executables... $ECHO_C" >&6
2693 # Check whether --enable-stripping or --disable-stripping was given.
2694 if test "${enable_stripping+set}" = set; then
2695 enableval="$enable_stripping"
2696 test "$enableval" != no && enableval=yes
2697 if test "$enableval" != "yes" ; then
2707 echo "$as_me:2707: result: $with_stripping" >&5
2708 echo "${ECHO_T}$with_stripping" >&6
2710 if test "$with_stripping" = yes
2717 : ${INSTALL:=install}
2718 echo "$as_me:2718: checking if install accepts -p option" >&5
2719 echo $ECHO_N "checking if install accepts -p option... $ECHO_C" >&6
2720 if test "${cf_cv_install_p+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2728 if $INSTALL -p conftest.in conftest.out 2>/dev/null
2730 if test -f conftest.out/conftest.in
2732 test conftest.in -nt conftest.out/conftest.in 2>conftest.err && \
2733 test conftest.out/conftest.in -nt conftest.in 2>conftest.err
2734 if test -s conftest.err
2749 echo "$as_me:2749: result: $cf_cv_install_p" >&5
2750 echo "${ECHO_T}$cf_cv_install_p" >&6
2752 echo "$as_me:2752: checking if install needs to be told about ownership" >&5
2753 echo $ECHO_N "checking if install needs to be told about ownership... $ECHO_C" >&6
2754 case `$ac_config_guess` in
2763 echo "$as_me:2763: result: $with_install_o" >&5
2764 echo "${ECHO_T}$with_install_o" >&6
2765 if test "x$with_install_o" = xyes
2767 INSTALL_OPT_O=`id root|sed -e 's/uid=[0-9]*(/ -o /' -e 's/gid=[0-9]*(/ -g /' -e 's/ [^=[:space:]][^=[:space:]]*=.*/ /' -e 's/)//g'`
2772 for ac_prog in lint cppcheck splint
2774 # Extract the first word of "$ac_prog", so it can be a program name with args.
2775 set dummy $ac_prog; ac_word=$2
2776 echo "$as_me:2776: checking for $ac_word" >&5
2777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2778 if test "${ac_cv_prog_LINT+set}" = set; then
2779 echo $ECHO_N "(cached) $ECHO_C" >&6
2781 if test -n "$LINT"; then
2782 ac_cv_prog_LINT="$LINT" # Let the user override the test.
2784 ac_save_IFS=$IFS; IFS=$ac_path_separator
2786 for ac_dir in $ac_dummy; do
2788 test -z "$ac_dir" && ac_dir=.
2789 $as_executable_p "$ac_dir/$ac_word" || continue
2790 ac_cv_prog_LINT="$ac_prog"
2791 echo "$as_me:2791: found $ac_dir/$ac_word" >&5
2797 LINT=$ac_cv_prog_LINT
2798 if test -n "$LINT"; then
2799 echo "$as_me:2799: result: $LINT" >&5
2800 echo "${ECHO_T}$LINT" >&6
2802 echo "$as_me:2802: result: no" >&5
2803 echo "${ECHO_T}no" >&6
2806 test -n "$LINT" && break
2810 (xcppcheck|x*/cppcheck)
2811 test -z "$LINT_OPTS" && LINT_OPTS="--enable=all"
2815 echo "$as_me:2815: checking if filesystem supports mixed-case filenames" >&5
2816 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
2817 if test "${cf_cv_mixedcase+set}" = set; then
2818 echo $ECHO_N "(cached) $ECHO_C" >&6
2821 if test "$cross_compiling" = yes ; then
2822 case $target_alias in
2823 (*-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-msys*|*-mingw*|*-uwin*)
2831 rm -f conftest CONFTEST
2833 if test -f CONFTEST ; then
2838 rm -f conftest CONFTEST
2842 echo "$as_me:2842: result: $cf_cv_mixedcase" >&5
2843 echo "${ECHO_T}$cf_cv_mixedcase" >&6
2844 test "$cf_cv_mixedcase" = yes &&
2845 cat >>confdefs.h <<\EOF
2846 #define MIXEDCASE_FILENAMES 1
2849 for ac_prog in exctags ctags
2851 # Extract the first word of "$ac_prog", so it can be a program name with args.
2852 set dummy $ac_prog; ac_word=$2
2853 echo "$as_me:2853: checking for $ac_word" >&5
2854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2855 if test "${ac_cv_prog_CTAGS+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2858 if test -n "$CTAGS"; then
2859 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
2861 ac_save_IFS=$IFS; IFS=$ac_path_separator
2863 for ac_dir in $ac_dummy; do
2865 test -z "$ac_dir" && ac_dir=.
2866 $as_executable_p "$ac_dir/$ac_word" || continue
2867 ac_cv_prog_CTAGS="$ac_prog"
2868 echo "$as_me:2868: found $ac_dir/$ac_word" >&5
2874 CTAGS=$ac_cv_prog_CTAGS
2875 if test -n "$CTAGS"; then
2876 echo "$as_me:2876: result: $CTAGS" >&5
2877 echo "${ECHO_T}$CTAGS" >&6
2879 echo "$as_me:2879: result: no" >&5
2880 echo "${ECHO_T}no" >&6
2883 test -n "$CTAGS" && break
2886 for ac_prog in exetags etags
2888 # Extract the first word of "$ac_prog", so it can be a program name with args.
2889 set dummy $ac_prog; ac_word=$2
2890 echo "$as_me:2890: checking for $ac_word" >&5
2891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2892 if test "${ac_cv_prog_ETAGS+set}" = set; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
2895 if test -n "$ETAGS"; then
2896 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
2898 ac_save_IFS=$IFS; IFS=$ac_path_separator
2900 for ac_dir in $ac_dummy; do
2902 test -z "$ac_dir" && ac_dir=.
2903 $as_executable_p "$ac_dir/$ac_word" || continue
2904 ac_cv_prog_ETAGS="$ac_prog"
2905 echo "$as_me:2905: found $ac_dir/$ac_word" >&5
2911 ETAGS=$ac_cv_prog_ETAGS
2912 if test -n "$ETAGS"; then
2913 echo "$as_me:2913: result: $ETAGS" >&5
2914 echo "${ECHO_T}$ETAGS" >&6
2916 echo "$as_me:2916: result: no" >&5
2917 echo "${ECHO_T}no" >&6
2920 test -n "$ETAGS" && break
2923 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
2924 set dummy ${CTAGS:-ctags}; ac_word=$2
2925 echo "$as_me:2925: checking for $ac_word" >&5
2926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2927 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
2928 echo $ECHO_N "(cached) $ECHO_C" >&6
2930 if test -n "$MAKE_LOWER_TAGS"; then
2931 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
2933 ac_save_IFS=$IFS; IFS=$ac_path_separator
2935 for ac_dir in $ac_dummy; do
2937 test -z "$ac_dir" && ac_dir=.
2938 $as_executable_p "$ac_dir/$ac_word" || continue
2939 ac_cv_prog_MAKE_LOWER_TAGS="yes"
2940 echo "$as_me:2940: found $ac_dir/$ac_word" >&5
2944 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
2947 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
2948 if test -n "$MAKE_LOWER_TAGS"; then
2949 echo "$as_me:2949: result: $MAKE_LOWER_TAGS" >&5
2950 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
2952 echo "$as_me:2952: result: no" >&5
2953 echo "${ECHO_T}no" >&6
2956 if test "$cf_cv_mixedcase" = yes ; then
2957 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
2958 set dummy ${ETAGS:-etags}; ac_word=$2
2959 echo "$as_me:2959: checking for $ac_word" >&5
2960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2961 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
2962 echo $ECHO_N "(cached) $ECHO_C" >&6
2964 if test -n "$MAKE_UPPER_TAGS"; then
2965 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
2967 ac_save_IFS=$IFS; IFS=$ac_path_separator
2969 for ac_dir in $ac_dummy; do
2971 test -z "$ac_dir" && ac_dir=.
2972 $as_executable_p "$ac_dir/$ac_word" || continue
2973 ac_cv_prog_MAKE_UPPER_TAGS="yes"
2974 echo "$as_me:2974: found $ac_dir/$ac_word" >&5
2978 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
2981 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
2982 if test -n "$MAKE_UPPER_TAGS"; then
2983 echo "$as_me:2983: result: $MAKE_UPPER_TAGS" >&5
2984 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
2986 echo "$as_me:2986: result: no" >&5
2987 echo "${ECHO_T}no" >&6
2994 if test "$MAKE_UPPER_TAGS" = yes ; then
3000 if test "$MAKE_LOWER_TAGS" = yes ; then
3006 echo "$as_me:3006: checking if -lm needed for math functions" >&5
3007 echo $ECHO_N "checking if -lm needed for math functions... $ECHO_C" >&6
3008 if test "${cf_cv_need_libm+set}" = set; then
3009 echo $ECHO_N "(cached) $ECHO_C" >&6
3012 cat >conftest.$ac_ext <<_ACEOF
3013 #line 3013 "configure"
3014 #include "confdefs.h"
3023 double x = rand(); printf("result = %g\n", pow(sin(x),x))
3028 rm -f conftest.$ac_objext conftest$ac_exeext
3029 if { (eval echo "$as_me:3029: \"$ac_link\"") >&5
3030 (eval $ac_link) 2>&5
3032 echo "$as_me:3032: \$? = $ac_status" >&5
3033 (exit $ac_status); } &&
3034 { ac_try='test -s conftest$ac_exeext'
3035 { (eval echo "$as_me:3035: \"$ac_try\"") >&5
3038 echo "$as_me:3038: \$? = $ac_status" >&5
3039 (exit $ac_status); }; }; then
3042 echo "$as_me: failed program was:" >&5
3043 cat conftest.$ac_ext >&5
3046 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3048 echo "$as_me:3048: result: $cf_cv_need_libm" >&5
3049 echo "${ECHO_T}$cf_cv_need_libm" >&6
3050 if test "$cf_cv_need_libm" = yes
3058 CC_SHARED_OPTS=unknown
3059 CPPFLAGS="$CPPFLAGS"
3061 DFT_OBJ_SUBDIR=`pwd|sed -e's:.*/::'`
3062 DFT_UPR_MODEL="NORMAL"
3075 PACKAGE="ncurses-examples"
3081 TINFO_LIBS='$(LIBS_CURSES)'
3082 cf_cv_abi_version=""
3083 cf_cv_rel_version=""
3089 if test "$GCC" = yes
3091 cat > conftest.i <<EOF
3093 #define GCC_PRINTF 0
3098 #ifndef GCC_NORETURN
3099 #define GCC_NORETURN /* nothing */
3102 #define GCC_UNUSED /* nothing */
3105 if test "$GCC" = yes
3107 { echo "$as_me:3107: checking for $CC __attribute__ directives..." >&5
3108 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
3109 cat > conftest.$ac_ext <<EOF
3110 #line 3110 "${as_me:-configure}"
3111 #include "confdefs.h"
3112 #include "conftest.h"
3113 #include "conftest.i"
3115 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
3117 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
3120 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
3122 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
3124 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
3125 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
3126 extern void foo(void) GCC_NORETURN;
3127 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; }
3129 cf_printf_attribute=no
3130 cf_scanf_attribute=no
3131 for cf_attribute in scanf printf unused noreturn
3134 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
3136 cf_directive="__attribute__(($cf_attribute))"
3137 echo "checking for $CC $cf_directive" 1>&5
3139 case $cf_attribute in
3141 cf_printf_attribute=yes
3142 cat >conftest.h <<EOF
3143 #define GCC_$cf_ATTRIBUTE 1
3147 cf_scanf_attribute=yes
3148 cat >conftest.h <<EOF
3149 #define GCC_$cf_ATTRIBUTE 1
3153 cat >conftest.h <<EOF
3154 #define GCC_$cf_ATTRIBUTE $cf_directive
3159 if { (eval echo "$as_me:3159: \"$ac_compile\"") >&5
3160 (eval $ac_compile) 2>&5
3162 echo "$as_me:3162: \$? = $ac_status" >&5
3163 (exit $ac_status); }; then
3164 test -n "$verbose" && echo "$as_me:3164: result: ... $cf_attribute" >&5
3165 echo "${ECHO_T}... $cf_attribute" >&6
3166 cat conftest.h >>confdefs.h
3167 case $cf_attribute in
3170 cat >>confdefs.h <<EOF
3171 #define GCC_NORETURN $cf_directive
3176 cf_value='/* nothing */'
3177 if test "$cf_printf_attribute" != no ; then
3178 cf_value='__attribute__((format(printf,fmt,var)))'
3180 cat >>confdefs.h <<\EOF
3181 #define GCC_PRINTF 1
3186 cat >>confdefs.h <<EOF
3187 #define GCC_PRINTFLIKE(fmt,var) $cf_value
3192 cf_value='/* nothing */'
3193 if test "$cf_scanf_attribute" != no ; then
3194 cf_value='__attribute__((format(scanf,fmt,var)))'
3196 cat >>confdefs.h <<\EOF
3202 cat >>confdefs.h <<EOF
3203 #define GCC_SCANFLIKE(fmt,var) $cf_value
3209 cat >>confdefs.h <<EOF
3210 #define GCC_UNUSED $cf_directive
3218 fgrep define conftest.i >>confdefs.h
3223 echo "$as_me:3223: checking if you want to work around bogus compiler/loader warnings" >&5
3224 echo $ECHO_N "checking if you want to work around bogus compiler/loader warnings... $ECHO_C" >&6
3226 # Check whether --enable-string-hacks or --disable-string-hacks was given.
3227 if test "${enable_string_hacks+set}" = set; then
3228 enableval="$enable_string_hacks"
3229 with_string_hacks=$enableval
3231 with_string_hacks=no
3233 echo "$as_me:3233: result: $with_string_hacks" >&5
3234 echo "${ECHO_T}$with_string_hacks" >&6
3236 if test "x$with_string_hacks" = "xyes"; then
3238 cat >>confdefs.h <<\EOF
3239 #define USE_STRING_HACKS 1
3242 { echo "$as_me:3242: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&5
3243 echo "$as_me: WARNING: enabling string-hacks to work around bogus compiler/loader warnings" >&2;}
3244 echo "$as_me:3244: checking for strlcat" >&5
3245 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
3246 if test "${ac_cv_func_strlcat+set}" = set; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3249 cat >conftest.$ac_ext <<_ACEOF
3250 #line 3250 "configure"
3251 #include "confdefs.h"
3252 #define strlcat autoconf_temporary
3253 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
3260 /* We use char because int might match the return type of a gcc2
3261 builtin and then its argument prototype would still apply. */
3262 char strlcat (void);
3268 /* The GNU C library defines stubs for functions which it implements
3269 to always fail with ENOSYS. Some functions are actually named
3270 something starting with __ and the normal name is an alias. */
3271 #if defined (__stub_strlcat) || defined (__stub___strlcat)
3272 #error found stub for strlcat
3280 rm -f conftest.$ac_objext conftest$ac_exeext
3281 if { (eval echo "$as_me:3281: \"$ac_link\"") >&5
3282 (eval $ac_link) 2>&5
3284 echo "$as_me:3284: \$? = $ac_status" >&5
3285 (exit $ac_status); } &&
3286 { ac_try='test -s conftest$ac_exeext'
3287 { (eval echo "$as_me:3287: \"$ac_try\"") >&5
3290 echo "$as_me:3290: \$? = $ac_status" >&5
3291 (exit $ac_status); }; }; then
3292 ac_cv_func_strlcat=yes
3294 echo "$as_me: failed program was:" >&5
3295 cat conftest.$ac_ext >&5
3296 ac_cv_func_strlcat=no
3298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3300 echo "$as_me:3300: result: $ac_cv_func_strlcat" >&5
3301 echo "${ECHO_T}$ac_cv_func_strlcat" >&6
3302 if test $ac_cv_func_strlcat = yes; then
3304 cat >>confdefs.h <<\EOF
3305 #define HAVE_STRLCAT 1
3310 echo "$as_me:3310: checking for strlcat in -lbsd" >&5
3311 echo $ECHO_N "checking for strlcat in -lbsd... $ECHO_C" >&6
3312 if test "${ac_cv_lib_bsd_strlcat+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 ac_check_lib_save_LIBS=$LIBS
3317 cat >conftest.$ac_ext <<_ACEOF
3318 #line 3318 "configure"
3319 #include "confdefs.h"
3321 /* Override any gcc2 internal prototype to avoid an error. */
3325 /* We use char because int might match the return type of a gcc2
3326 builtin and then its argument prototype would still apply. */
3336 rm -f conftest.$ac_objext conftest$ac_exeext
3337 if { (eval echo "$as_me:3337: \"$ac_link\"") >&5
3338 (eval $ac_link) 2>&5
3340 echo "$as_me:3340: \$? = $ac_status" >&5
3341 (exit $ac_status); } &&
3342 { ac_try='test -s conftest$ac_exeext'
3343 { (eval echo "$as_me:3343: \"$ac_try\"") >&5
3346 echo "$as_me:3346: \$? = $ac_status" >&5
3347 (exit $ac_status); }; }; then
3348 ac_cv_lib_bsd_strlcat=yes
3350 echo "$as_me: failed program was:" >&5
3351 cat conftest.$ac_ext >&5
3352 ac_cv_lib_bsd_strlcat=no
3354 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3355 LIBS=$ac_check_lib_save_LIBS
3357 echo "$as_me:3357: result: $ac_cv_lib_bsd_strlcat" >&5
3358 echo "${ECHO_T}$ac_cv_lib_bsd_strlcat" >&6
3359 if test $ac_cv_lib_bsd_strlcat = yes; then
3364 for cf_add_1lib in -lbsd; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
3366 for cf_add_1lib in $cf_add_0lib; do
3367 for cf_add_2lib in $cf_add_libs; do
3368 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
3373 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
3377 for ac_header in bsd/string.h
3379 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3380 echo "$as_me:3380: checking for $ac_header" >&5
3381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3385 cat >conftest.$ac_ext <<_ACEOF
3386 #line 3386 "configure"
3387 #include "confdefs.h"
3388 #include <$ac_header>
3390 if { (eval echo "$as_me:3390: \"$ac_cpp conftest.$ac_ext\"") >&5
3391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3393 egrep -v '^ *\+' conftest.er1 >conftest.err
3395 cat conftest.err >&5
3396 echo "$as_me:3396: \$? = $ac_status" >&5
3397 (exit $ac_status); } >/dev/null; then
3398 if test -s conftest.err; then
3399 ac_cpp_err=$ac_c_preproc_warn_flag
3406 if test -z "$ac_cpp_err"; then
3407 eval "$as_ac_Header=yes"
3409 echo "$as_me: failed program was:" >&5
3410 cat conftest.$ac_ext >&5
3411 eval "$as_ac_Header=no"
3413 rm -f conftest.err conftest.$ac_ext
3415 echo "$as_me:3415: result: `eval echo '${'$as_ac_Header'}'`" >&5
3416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3417 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3418 cat >>confdefs.h <<EOF
3419 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3425 cat >>confdefs.h <<\EOF
3426 #define HAVE_STRLCAT 1
3433 for ac_func in strlcpy snprintf
3435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3436 echo "$as_me:3436: checking for $ac_func" >&5
3437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3438 if eval "test \"\${$as_ac_var+set}\" = set"; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3441 cat >conftest.$ac_ext <<_ACEOF
3442 #line 3442 "configure"
3443 #include "confdefs.h"
3444 #define $ac_func autoconf_temporary
3445 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
3452 /* We use char because int might match the return type of a gcc2
3453 builtin and then its argument prototype would still apply. */
3454 char $ac_func (void);
3460 /* The GNU C library defines stubs for functions which it implements
3461 to always fail with ENOSYS. Some functions are actually named
3462 something starting with __ and the normal name is an alias. */
3463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3464 #error found stub for $ac_func
3472 rm -f conftest.$ac_objext conftest$ac_exeext
3473 if { (eval echo "$as_me:3473: \"$ac_link\"") >&5
3474 (eval $ac_link) 2>&5
3476 echo "$as_me:3476: \$? = $ac_status" >&5
3477 (exit $ac_status); } &&
3478 { ac_try='test -s conftest$ac_exeext'
3479 { (eval echo "$as_me:3479: \"$ac_try\"") >&5
3482 echo "$as_me:3482: \$? = $ac_status" >&5
3483 (exit $ac_status); }; }; then
3484 eval "$as_ac_var=yes"
3486 echo "$as_me: failed program was:" >&5
3487 cat conftest.$ac_ext >&5
3488 eval "$as_ac_var=no"
3490 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3492 echo "$as_me:3492: result: `eval echo '${'$as_ac_var'}'`" >&5
3493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3494 if test `eval echo '${'$as_ac_var'}'` = yes; then
3495 cat >>confdefs.h <<EOF
3496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3504 echo "$as_me:3504: checking if the POSIX test-macros are already defined" >&5
3505 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
3506 if test "${cf_cv_posix_visible+set}" = set; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3510 cat >conftest.$ac_ext <<_ACEOF
3511 #line 3511 "configure"
3512 #include "confdefs.h"
3518 #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
3519 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
3520 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
3521 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
3522 #error conflicting symbols found
3529 rm -f conftest.$ac_objext
3530 if { (eval echo "$as_me:3530: \"$ac_compile\"") >&5
3531 (eval $ac_compile) 2>&5
3533 echo "$as_me:3533: \$? = $ac_status" >&5
3534 (exit $ac_status); } &&
3535 { ac_try='test -s conftest.$ac_objext'
3536 { (eval echo "$as_me:3536: \"$ac_try\"") >&5
3539 echo "$as_me:3539: \$? = $ac_status" >&5
3540 (exit $ac_status); }; }; then
3541 cf_cv_posix_visible=no
3543 echo "$as_me: failed program was:" >&5
3544 cat conftest.$ac_ext >&5
3545 cf_cv_posix_visible=yes
3547 rm -f conftest.$ac_objext conftest.$ac_ext
3550 echo "$as_me:3550: result: $cf_cv_posix_visible" >&5
3551 echo "${ECHO_T}$cf_cv_posix_visible" >&6
3553 if test "$cf_cv_posix_visible" = no; then
3556 cf_POSIX_C_SOURCE=199506L
3561 cf_xopen_source="-D_ALL_SOURCE"
3567 cf_xopen_source="-D_APPLE_C_SOURCE"
3570 cf_xopen_source="-D_DARWIN_C_SOURCE"
3573 (freebsd*|dragonfly*|midnightbsd*)
3574 # 5.x headers associate
3575 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
3576 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
3577 cf_POSIX_C_SOURCE=200112L
3579 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3582 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
3585 cf_xopen_source="-D_HPUX_SOURCE"
3588 cf_xopen_source="-D_SGI_SOURCE"
3591 (linux*|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
3593 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
3595 echo "$as_me:3595: checking if this is the GNU C library" >&5
3596 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
3597 if test "${cf_cv_gnu_library+set}" = set; then
3598 echo $ECHO_N "(cached) $ECHO_C" >&6
3601 cat >conftest.$ac_ext <<_ACEOF
3602 #line 3602 "configure"
3603 #include "confdefs.h"
3604 #include <sys/types.h>
3609 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
3611 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0
3614 # error not GNU C library
3620 rm -f conftest.$ac_objext
3621 if { (eval echo "$as_me:3621: \"$ac_compile\"") >&5
3622 (eval $ac_compile) 2>&5
3624 echo "$as_me:3624: \$? = $ac_status" >&5
3625 (exit $ac_status); } &&
3626 { ac_try='test -s conftest.$ac_objext'
3627 { (eval echo "$as_me:3627: \"$ac_try\"") >&5
3630 echo "$as_me:3630: \$? = $ac_status" >&5
3631 (exit $ac_status); }; }; then
3632 cf_cv_gnu_library=yes
3634 echo "$as_me: failed program was:" >&5
3635 cat conftest.$ac_ext >&5
3636 cf_cv_gnu_library=no
3638 rm -f conftest.$ac_objext conftest.$ac_ext
3641 echo "$as_me:3641: result: $cf_cv_gnu_library" >&5
3642 echo "${ECHO_T}$cf_cv_gnu_library" >&6
3644 if test x$cf_cv_gnu_library = xyes; then
3646 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
3647 # was changed to help a little. newlib incorporated the change about 4
3649 echo "$as_me:3649: checking if _DEFAULT_SOURCE can be used as a basis" >&5
3650 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
3651 if test "${cf_cv_gnu_library_219+set}" = set; then
3652 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3658 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
3660 cat >conftest.$ac_ext <<_ACEOF
3661 #line 3661 "configure"
3662 #include "confdefs.h"
3663 #include <sys/types.h>
3668 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
3670 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3)
3673 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
3679 rm -f conftest.$ac_objext
3680 if { (eval echo "$as_me:3680: \"$ac_compile\"") >&5
3681 (eval $ac_compile) 2>&5
3683 echo "$as_me:3683: \$? = $ac_status" >&5
3684 (exit $ac_status); } &&
3685 { ac_try='test -s conftest.$ac_objext'
3686 { (eval echo "$as_me:3686: \"$ac_try\"") >&5
3689 echo "$as_me:3689: \$? = $ac_status" >&5
3690 (exit $ac_status); }; }; then
3691 cf_cv_gnu_library_219=yes
3693 echo "$as_me: failed program was:" >&5
3694 cat conftest.$ac_ext >&5
3695 cf_cv_gnu_library_219=no
3697 rm -f conftest.$ac_objext conftest.$ac_ext
3701 echo "$as_me:3701: result: $cf_cv_gnu_library_219" >&5
3702 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
3704 if test "x$cf_cv_gnu_library_219" = xyes; then
3706 echo "$as_me:3706: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
3707 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
3708 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3715 cf_new_extra_cppflags=
3717 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
3719 case $cf_fix_cppflags in
3721 case $cf_add_cflags in
3722 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3723 case $cf_add_cflags in
3725 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3727 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3728 && test -z "${cf_tst_cflags}" \
3729 && cf_fix_cppflags=yes
3731 if test $cf_fix_cppflags = yes ; then
3733 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3734 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3737 elif test "${cf_tst_cflags}" = "\"'" ; then
3739 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3740 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3750 case $cf_add_cflags in
3752 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3754 CPPFLAGS=`echo "$CPPFLAGS" | \
3755 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3756 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3761 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3762 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3769 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3770 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3777 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3778 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3780 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3782 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3783 && test -z "${cf_tst_cflags}" \
3784 && cf_fix_cppflags=no
3789 if test -n "$cf_new_cflags" ; then
3791 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3792 CFLAGS="${CFLAGS}$cf_new_cflags"
3796 if test -n "$cf_new_cppflags" ; then
3798 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3799 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3803 if test -n "$cf_new_extra_cppflags" ; then
3805 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3806 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3810 cat >conftest.$ac_ext <<_ACEOF
3811 #line 3811 "configure"
3812 #include "confdefs.h"
3815 #include <sys/types.h>
3821 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
3824 # error GNU C library is too old
3830 rm -f conftest.$ac_objext
3831 if { (eval echo "$as_me:3831: \"$ac_compile\"") >&5
3832 (eval $ac_compile) 2>&5
3834 echo "$as_me:3834: \$? = $ac_status" >&5
3835 (exit $ac_status); } &&
3836 { ac_try='test -s conftest.$ac_objext'
3837 { (eval echo "$as_me:3837: \"$ac_try\"") >&5
3840 echo "$as_me:3840: \$? = $ac_status" >&5
3841 (exit $ac_status); }; }; then
3842 cf_cv_gnu_dftsrc_219=yes
3844 echo "$as_me: failed program was:" >&5
3845 cat conftest.$ac_ext >&5
3846 cf_cv_gnu_dftsrc_219=no
3848 rm -f conftest.$ac_objext conftest.$ac_ext
3851 echo "$as_me:3851: result: $cf_cv_gnu_dftsrc_219" >&5
3852 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
3853 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
3855 cf_cv_gnu_dftsrc_219=maybe
3858 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
3860 echo "$as_me:3860: checking if we must define _GNU_SOURCE" >&5
3861 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
3862 if test "${cf_cv_gnu_source+set}" = set; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3866 cat >conftest.$ac_ext <<_ACEOF
3867 #line 3867 "configure"
3868 #include "confdefs.h"
3869 #include <sys/types.h>
3874 #ifndef _XOPEN_SOURCE
3875 #error expected _XOPEN_SOURCE to be defined
3881 rm -f conftest.$ac_objext
3882 if { (eval echo "$as_me:3882: \"$ac_compile\"") >&5
3883 (eval $ac_compile) 2>&5
3885 echo "$as_me:3885: \$? = $ac_status" >&5
3886 (exit $ac_status); } &&
3887 { ac_try='test -s conftest.$ac_objext'
3888 { (eval echo "$as_me:3888: \"$ac_try\"") >&5
3891 echo "$as_me:3891: \$? = $ac_status" >&5
3892 (exit $ac_status); }; }; then
3895 echo "$as_me: failed program was:" >&5
3896 cat conftest.$ac_ext >&5
3902 cf_new_extra_cppflags=
3904 for cf_add_cflags in -D_GNU_SOURCE
3906 case $cf_fix_cppflags in
3908 case $cf_add_cflags in
3909 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3910 case $cf_add_cflags in
3912 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3914 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3915 && test -z "${cf_tst_cflags}" \
3916 && cf_fix_cppflags=yes
3918 if test $cf_fix_cppflags = yes ; then
3920 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3921 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3924 elif test "${cf_tst_cflags}" = "\"'" ; then
3926 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3927 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3937 case $cf_add_cflags in
3939 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3941 CPPFLAGS=`echo "$CPPFLAGS" | \
3942 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3943 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3948 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3949 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3956 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3957 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3964 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3965 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3967 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3969 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3970 && test -z "${cf_tst_cflags}" \
3971 && cf_fix_cppflags=no
3976 if test -n "$cf_new_cflags" ; then
3978 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3979 CFLAGS="${CFLAGS}$cf_new_cflags"
3983 if test -n "$cf_new_cppflags" ; then
3985 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3986 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3990 if test -n "$cf_new_extra_cppflags" ; then
3992 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3993 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3997 cat >conftest.$ac_ext <<_ACEOF
3998 #line 3998 "configure"
3999 #include "confdefs.h"
4000 #include <sys/types.h>
4005 #ifdef _XOPEN_SOURCE
4006 #error expected _XOPEN_SOURCE to be undefined
4012 rm -f conftest.$ac_objext
4013 if { (eval echo "$as_me:4013: \"$ac_compile\"") >&5
4014 (eval $ac_compile) 2>&5
4016 echo "$as_me:4016: \$? = $ac_status" >&5
4017 (exit $ac_status); } &&
4018 { ac_try='test -s conftest.$ac_objext'
4019 { (eval echo "$as_me:4019: \"$ac_try\"") >&5
4022 echo "$as_me:4022: \$? = $ac_status" >&5
4023 (exit $ac_status); }; }; then
4026 echo "$as_me: failed program was:" >&5
4027 cat conftest.$ac_ext >&5
4028 cf_cv_gnu_source=yes
4030 rm -f conftest.$ac_objext conftest.$ac_ext
4034 rm -f conftest.$ac_objext conftest.$ac_ext
4037 echo "$as_me:4037: result: $cf_cv_gnu_source" >&5
4038 echo "${ECHO_T}$cf_cv_gnu_source" >&6
4040 if test "$cf_cv_gnu_source" = yes
4042 echo "$as_me:4042: checking if we should also define _DEFAULT_SOURCE" >&5
4043 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
4044 if test "${cf_cv_default_source+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4049 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
4051 cat >conftest.$ac_ext <<_ACEOF
4052 #line 4052 "configure"
4053 #include "confdefs.h"
4054 #include <sys/types.h>
4059 #ifdef _DEFAULT_SOURCE
4060 #error expected _DEFAULT_SOURCE to be undefined
4066 rm -f conftest.$ac_objext
4067 if { (eval echo "$as_me:4067: \"$ac_compile\"") >&5
4068 (eval $ac_compile) 2>&5
4070 echo "$as_me:4070: \$? = $ac_status" >&5
4071 (exit $ac_status); } &&
4072 { ac_try='test -s conftest.$ac_objext'
4073 { (eval echo "$as_me:4073: \"$ac_try\"") >&5
4076 echo "$as_me:4076: \$? = $ac_status" >&5
4077 (exit $ac_status); }; }; then
4078 cf_cv_default_source=no
4080 echo "$as_me: failed program was:" >&5
4081 cat conftest.$ac_ext >&5
4082 cf_cv_default_source=yes
4084 rm -f conftest.$ac_objext conftest.$ac_ext
4087 echo "$as_me:4087: result: $cf_cv_default_source" >&5
4088 echo "${ECHO_T}$cf_cv_default_source" >&6
4089 if test "$cf_cv_default_source" = yes
4092 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4093 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
4103 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
4106 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
4109 if test "$cf_cv_posix_visible" = no; then
4111 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
4113 cf_save_CFLAGS="$CFLAGS"
4114 cf_save_CPPFLAGS="$CPPFLAGS"
4116 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
4117 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4118 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
4120 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
4121 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4122 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
4124 echo "$as_me:4124: checking if we should define _POSIX_C_SOURCE" >&5
4125 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
4126 if test "${cf_cv_posix_c_source+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4130 echo "${as_me:-configure}:4130: testing if the symbol is already defined go no further ..." 1>&5
4132 cat >conftest.$ac_ext <<_ACEOF
4133 #line 4133 "configure"
4134 #include "confdefs.h"
4135 #include <sys/types.h>
4140 #ifndef _POSIX_C_SOURCE
4147 rm -f conftest.$ac_objext
4148 if { (eval echo "$as_me:4148: \"$ac_compile\"") >&5
4149 (eval $ac_compile) 2>&5
4151 echo "$as_me:4151: \$? = $ac_status" >&5
4152 (exit $ac_status); } &&
4153 { ac_try='test -s conftest.$ac_objext'
4154 { (eval echo "$as_me:4154: \"$ac_try\"") >&5
4157 echo "$as_me:4157: \$? = $ac_status" >&5
4158 (exit $ac_status); }; }; then
4159 cf_cv_posix_c_source=no
4161 echo "$as_me: failed program was:" >&5
4162 cat conftest.$ac_ext >&5
4163 cf_want_posix_source=no
4164 case .$cf_POSIX_C_SOURCE in
4166 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
4169 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
4170 cf_want_posix_source=yes
4173 cf_want_posix_source=yes
4176 if test "$cf_want_posix_source" = yes ; then
4177 cat >conftest.$ac_ext <<_ACEOF
4178 #line 4178 "configure"
4179 #include "confdefs.h"
4180 #include <sys/types.h>
4185 #ifdef _POSIX_SOURCE
4192 rm -f conftest.$ac_objext
4193 if { (eval echo "$as_me:4193: \"$ac_compile\"") >&5
4194 (eval $ac_compile) 2>&5
4196 echo "$as_me:4196: \$? = $ac_status" >&5
4197 (exit $ac_status); } &&
4198 { ac_try='test -s conftest.$ac_objext'
4199 { (eval echo "$as_me:4199: \"$ac_try\"") >&5
4202 echo "$as_me:4202: \$? = $ac_status" >&5
4203 (exit $ac_status); }; }; then
4206 echo "$as_me: failed program was:" >&5
4207 cat conftest.$ac_ext >&5
4208 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
4210 rm -f conftest.$ac_objext conftest.$ac_ext
4213 echo "${as_me:-configure}:4213: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
4215 CFLAGS="$cf_trim_CFLAGS"
4216 CPPFLAGS="$cf_trim_CPPFLAGS"
4218 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4219 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
4221 echo "${as_me:-configure}:4221: testing if the second compile does not leave our definition intact error ..." 1>&5
4223 cat >conftest.$ac_ext <<_ACEOF
4224 #line 4224 "configure"
4225 #include "confdefs.h"
4226 #include <sys/types.h>
4231 #ifndef _POSIX_C_SOURCE
4238 rm -f conftest.$ac_objext
4239 if { (eval echo "$as_me:4239: \"$ac_compile\"") >&5
4240 (eval $ac_compile) 2>&5
4242 echo "$as_me:4242: \$? = $ac_status" >&5
4243 (exit $ac_status); } &&
4244 { ac_try='test -s conftest.$ac_objext'
4245 { (eval echo "$as_me:4245: \"$ac_try\"") >&5
4248 echo "$as_me:4248: \$? = $ac_status" >&5
4249 (exit $ac_status); }; }; then
4252 echo "$as_me: failed program was:" >&5
4253 cat conftest.$ac_ext >&5
4254 cf_cv_posix_c_source=no
4256 rm -f conftest.$ac_objext conftest.$ac_ext
4257 CFLAGS="$cf_save_CFLAGS"
4258 CPPFLAGS="$cf_save_CPPFLAGS"
4261 rm -f conftest.$ac_objext conftest.$ac_ext
4264 echo "$as_me:4264: result: $cf_cv_posix_c_source" >&5
4265 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
4267 if test "$cf_cv_posix_c_source" != no ; then
4268 CFLAGS="$cf_trim_CFLAGS"
4269 CPPFLAGS="$cf_trim_CPPFLAGS"
4274 cf_new_extra_cppflags=
4276 for cf_add_cflags in $cf_cv_posix_c_source
4278 case $cf_fix_cppflags in
4280 case $cf_add_cflags in
4281 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4282 case $cf_add_cflags in
4284 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4286 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4287 && test -z "${cf_tst_cflags}" \
4288 && cf_fix_cppflags=yes
4290 if test $cf_fix_cppflags = yes ; then
4292 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4293 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4296 elif test "${cf_tst_cflags}" = "\"'" ; then
4298 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4299 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4309 case $cf_add_cflags in
4311 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4313 CPPFLAGS=`echo "$CPPFLAGS" | \
4314 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4315 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4320 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4321 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4328 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4329 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4336 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4337 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4339 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4341 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4342 && test -z "${cf_tst_cflags}" \
4343 && cf_fix_cppflags=no
4348 if test -n "$cf_new_cflags" ; then
4350 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4351 CFLAGS="${CFLAGS}$cf_new_cflags"
4355 if test -n "$cf_new_cppflags" ; then
4357 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4358 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4362 if test -n "$cf_new_extra_cppflags" ; then
4364 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4365 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4371 fi # cf_cv_posix_visible
4375 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
4378 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
4379 cf_xopen_source="-D_BSD_SOURCE"
4383 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
4386 cf_xopen_source="-D_OSF_SOURCE"
4389 cf_xopen_source="-D_QNX_SOURCE"
4392 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
4395 cf_xopen_source="-D__EXTENSIONS__"
4396 cf_cv_xopen_source=broken
4398 (sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
4404 echo "$as_me:4404: checking if we should define _XOPEN_SOURCE" >&5
4405 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
4406 if test "${cf_cv_xopen_source+set}" = set; then
4407 echo $ECHO_N "(cached) $ECHO_C" >&6
4410 cat >conftest.$ac_ext <<_ACEOF
4411 #line 4411 "configure"
4412 #include "confdefs.h"
4416 #include <sys/types.h>
4422 #ifndef _XOPEN_SOURCE
4429 rm -f conftest.$ac_objext
4430 if { (eval echo "$as_me:4430: \"$ac_compile\"") >&5
4431 (eval $ac_compile) 2>&5
4433 echo "$as_me:4433: \$? = $ac_status" >&5
4434 (exit $ac_status); } &&
4435 { ac_try='test -s conftest.$ac_objext'
4436 { (eval echo "$as_me:4436: \"$ac_try\"") >&5
4439 echo "$as_me:4439: \$? = $ac_status" >&5
4440 (exit $ac_status); }; }; then
4441 cf_cv_xopen_source=no
4443 echo "$as_me: failed program was:" >&5
4444 cat conftest.$ac_ext >&5
4447 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4448 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
4450 cat >conftest.$ac_ext <<_ACEOF
4451 #line 4451 "configure"
4452 #include "confdefs.h"
4456 #include <sys/types.h>
4462 #ifdef _XOPEN_SOURCE
4469 rm -f conftest.$ac_objext
4470 if { (eval echo "$as_me:4470: \"$ac_compile\"") >&5
4471 (eval $ac_compile) 2>&5
4473 echo "$as_me:4473: \$? = $ac_status" >&5
4474 (exit $ac_status); } &&
4475 { ac_try='test -s conftest.$ac_objext'
4476 { (eval echo "$as_me:4476: \"$ac_try\"") >&5
4479 echo "$as_me:4479: \$? = $ac_status" >&5
4480 (exit $ac_status); }; }; then
4481 cf_cv_xopen_source=no
4483 echo "$as_me: failed program was:" >&5
4484 cat conftest.$ac_ext >&5
4485 cf_cv_xopen_source=$cf_XOPEN_SOURCE
4487 rm -f conftest.$ac_objext conftest.$ac_ext
4491 rm -f conftest.$ac_objext conftest.$ac_ext
4494 echo "$as_me:4494: result: $cf_cv_xopen_source" >&5
4495 echo "${ECHO_T}$cf_cv_xopen_source" >&6
4497 if test "$cf_cv_xopen_source" != no ; then
4499 CFLAGS=`echo "$CFLAGS" | \
4500 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4501 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4503 CPPFLAGS=`echo "$CPPFLAGS" | \
4504 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4505 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4507 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
4512 cf_new_extra_cppflags=
4514 for cf_add_cflags in $cf_temp_xopen_source
4516 case $cf_fix_cppflags in
4518 case $cf_add_cflags in
4519 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4520 case $cf_add_cflags in
4522 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4524 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4525 && test -z "${cf_tst_cflags}" \
4526 && cf_fix_cppflags=yes
4528 if test $cf_fix_cppflags = yes ; then
4530 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4531 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4534 elif test "${cf_tst_cflags}" = "\"'" ; then
4536 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4537 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4547 case $cf_add_cflags in
4549 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4551 CPPFLAGS=`echo "$CPPFLAGS" | \
4552 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4553 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4558 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4559 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4566 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4567 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4574 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4575 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4577 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4579 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4580 && test -z "${cf_tst_cflags}" \
4581 && cf_fix_cppflags=no
4586 if test -n "$cf_new_cflags" ; then
4588 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4589 CFLAGS="${CFLAGS}$cf_new_cflags"
4593 if test -n "$cf_new_cppflags" ; then
4595 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4596 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4600 if test -n "$cf_new_extra_cppflags" ; then
4602 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4603 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4609 if test "$cf_cv_posix_visible" = no; then
4611 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
4613 cf_save_CFLAGS="$CFLAGS"
4614 cf_save_CPPFLAGS="$CPPFLAGS"
4616 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
4617 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4618 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
4620 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
4621 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4622 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
4624 echo "$as_me:4624: checking if we should define _POSIX_C_SOURCE" >&5
4625 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
4626 if test "${cf_cv_posix_c_source+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
4630 echo "${as_me:-configure}:4630: testing if the symbol is already defined go no further ..." 1>&5
4632 cat >conftest.$ac_ext <<_ACEOF
4633 #line 4633 "configure"
4634 #include "confdefs.h"
4635 #include <sys/types.h>
4640 #ifndef _POSIX_C_SOURCE
4647 rm -f conftest.$ac_objext
4648 if { (eval echo "$as_me:4648: \"$ac_compile\"") >&5
4649 (eval $ac_compile) 2>&5
4651 echo "$as_me:4651: \$? = $ac_status" >&5
4652 (exit $ac_status); } &&
4653 { ac_try='test -s conftest.$ac_objext'
4654 { (eval echo "$as_me:4654: \"$ac_try\"") >&5
4657 echo "$as_me:4657: \$? = $ac_status" >&5
4658 (exit $ac_status); }; }; then
4659 cf_cv_posix_c_source=no
4661 echo "$as_me: failed program was:" >&5
4662 cat conftest.$ac_ext >&5
4663 cf_want_posix_source=no
4664 case .$cf_POSIX_C_SOURCE in
4666 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
4669 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
4670 cf_want_posix_source=yes
4673 cf_want_posix_source=yes
4676 if test "$cf_want_posix_source" = yes ; then
4677 cat >conftest.$ac_ext <<_ACEOF
4678 #line 4678 "configure"
4679 #include "confdefs.h"
4680 #include <sys/types.h>
4685 #ifdef _POSIX_SOURCE
4692 rm -f conftest.$ac_objext
4693 if { (eval echo "$as_me:4693: \"$ac_compile\"") >&5
4694 (eval $ac_compile) 2>&5
4696 echo "$as_me:4696: \$? = $ac_status" >&5
4697 (exit $ac_status); } &&
4698 { ac_try='test -s conftest.$ac_objext'
4699 { (eval echo "$as_me:4699: \"$ac_try\"") >&5
4702 echo "$as_me:4702: \$? = $ac_status" >&5
4703 (exit $ac_status); }; }; then
4706 echo "$as_me: failed program was:" >&5
4707 cat conftest.$ac_ext >&5
4708 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
4710 rm -f conftest.$ac_objext conftest.$ac_ext
4713 echo "${as_me:-configure}:4713: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
4715 CFLAGS="$cf_trim_CFLAGS"
4716 CPPFLAGS="$cf_trim_CPPFLAGS"
4718 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4719 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
4721 echo "${as_me:-configure}:4721: testing if the second compile does not leave our definition intact error ..." 1>&5
4723 cat >conftest.$ac_ext <<_ACEOF
4724 #line 4724 "configure"
4725 #include "confdefs.h"
4726 #include <sys/types.h>
4731 #ifndef _POSIX_C_SOURCE
4738 rm -f conftest.$ac_objext
4739 if { (eval echo "$as_me:4739: \"$ac_compile\"") >&5
4740 (eval $ac_compile) 2>&5
4742 echo "$as_me:4742: \$? = $ac_status" >&5
4743 (exit $ac_status); } &&
4744 { ac_try='test -s conftest.$ac_objext'
4745 { (eval echo "$as_me:4745: \"$ac_try\"") >&5
4748 echo "$as_me:4748: \$? = $ac_status" >&5
4749 (exit $ac_status); }; }; then
4752 echo "$as_me: failed program was:" >&5
4753 cat conftest.$ac_ext >&5
4754 cf_cv_posix_c_source=no
4756 rm -f conftest.$ac_objext conftest.$ac_ext
4757 CFLAGS="$cf_save_CFLAGS"
4758 CPPFLAGS="$cf_save_CPPFLAGS"
4761 rm -f conftest.$ac_objext conftest.$ac_ext
4764 echo "$as_me:4764: result: $cf_cv_posix_c_source" >&5
4765 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
4767 if test "$cf_cv_posix_c_source" != no ; then
4768 CFLAGS="$cf_trim_CFLAGS"
4769 CPPFLAGS="$cf_trim_CPPFLAGS"
4774 cf_new_extra_cppflags=
4776 for cf_add_cflags in $cf_cv_posix_c_source
4778 case $cf_fix_cppflags in
4780 case $cf_add_cflags in
4781 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4782 case $cf_add_cflags in
4784 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4786 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4787 && test -z "${cf_tst_cflags}" \
4788 && cf_fix_cppflags=yes
4790 if test $cf_fix_cppflags = yes ; then
4792 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4793 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4796 elif test "${cf_tst_cflags}" = "\"'" ; then
4798 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4799 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4809 case $cf_add_cflags in
4811 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4813 CPPFLAGS=`echo "$CPPFLAGS" | \
4814 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4815 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4820 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4821 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4828 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4829 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4836 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4837 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4839 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4841 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4842 && test -z "${cf_tst_cflags}" \
4843 && cf_fix_cppflags=no
4848 if test -n "$cf_new_cflags" ; then
4850 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4851 CFLAGS="${CFLAGS}$cf_new_cflags"
4855 if test -n "$cf_new_cppflags" ; then
4857 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4858 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4862 if test -n "$cf_new_extra_cppflags" ; then
4864 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4865 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4871 fi # cf_cv_posix_visible
4876 if test -n "$cf_xopen_source" ; then
4881 cf_new_extra_cppflags=
4883 for cf_add_cflags in $cf_xopen_source
4885 case $cf_fix_cppflags in
4887 case $cf_add_cflags in
4888 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4889 case $cf_add_cflags in
4891 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4893 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4894 && test -z "${cf_tst_cflags}" \
4895 && cf_fix_cppflags=yes
4897 if test $cf_fix_cppflags = yes ; then
4899 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4900 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4903 elif test "${cf_tst_cflags}" = "\"'" ; then
4905 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4906 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4916 case $cf_add_cflags in
4918 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4920 CPPFLAGS=`echo "$CPPFLAGS" | \
4921 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4922 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4927 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4928 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4935 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4936 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4943 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4944 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4946 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4948 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4949 && test -z "${cf_tst_cflags}" \
4950 && cf_fix_cppflags=no
4955 if test -n "$cf_new_cflags" ; then
4956 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
4958 echo "${as_me:-configure}:4958: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
4960 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4961 CFLAGS="${CFLAGS}$cf_new_cflags"
4965 if test -n "$cf_new_cppflags" ; then
4966 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
4968 echo "${as_me:-configure}:4968: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
4970 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4971 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4975 if test -n "$cf_new_extra_cppflags" ; then
4976 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
4978 echo "${as_me:-configure}:4978: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
4980 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4981 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4987 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
4988 echo "$as_me:4988: checking if _XOPEN_SOURCE really is set" >&5
4989 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
4990 cat >conftest.$ac_ext <<_ACEOF
4991 #line 4991 "configure"
4992 #include "confdefs.h"
4998 #ifndef _XOPEN_SOURCE
5005 rm -f conftest.$ac_objext
5006 if { (eval echo "$as_me:5006: \"$ac_compile\"") >&5
5007 (eval $ac_compile) 2>&5
5009 echo "$as_me:5009: \$? = $ac_status" >&5
5010 (exit $ac_status); } &&
5011 { ac_try='test -s conftest.$ac_objext'
5012 { (eval echo "$as_me:5012: \"$ac_try\"") >&5
5015 echo "$as_me:5015: \$? = $ac_status" >&5
5016 (exit $ac_status); }; }; then
5017 cf_XOPEN_SOURCE_set=yes
5019 echo "$as_me: failed program was:" >&5
5020 cat conftest.$ac_ext >&5
5021 cf_XOPEN_SOURCE_set=no
5023 rm -f conftest.$ac_objext conftest.$ac_ext
5024 echo "$as_me:5024: result: $cf_XOPEN_SOURCE_set" >&5
5025 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
5026 if test $cf_XOPEN_SOURCE_set = yes
5028 cat >conftest.$ac_ext <<_ACEOF
5029 #line 5029 "configure"
5030 #include "confdefs.h"
5036 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
5043 rm -f conftest.$ac_objext
5044 if { (eval echo "$as_me:5044: \"$ac_compile\"") >&5
5045 (eval $ac_compile) 2>&5
5047 echo "$as_me:5047: \$? = $ac_status" >&5
5048 (exit $ac_status); } &&
5049 { ac_try='test -s conftest.$ac_objext'
5050 { (eval echo "$as_me:5050: \"$ac_try\"") >&5
5053 echo "$as_me:5053: \$? = $ac_status" >&5
5054 (exit $ac_status); }; }; then
5055 cf_XOPEN_SOURCE_set_ok=yes
5057 echo "$as_me: failed program was:" >&5
5058 cat conftest.$ac_ext >&5
5059 cf_XOPEN_SOURCE_set_ok=no
5061 rm -f conftest.$ac_objext conftest.$ac_ext
5062 if test $cf_XOPEN_SOURCE_set_ok = no
5064 { echo "$as_me:5064: WARNING: _XOPEN_SOURCE is lower than requested" >&5
5065 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
5069 echo "$as_me:5069: checking if we should define _XOPEN_SOURCE" >&5
5070 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
5071 if test "${cf_cv_xopen_source+set}" = set; then
5072 echo $ECHO_N "(cached) $ECHO_C" >&6
5075 cat >conftest.$ac_ext <<_ACEOF
5076 #line 5076 "configure"
5077 #include "confdefs.h"
5081 #include <sys/types.h>
5087 #ifndef _XOPEN_SOURCE
5094 rm -f conftest.$ac_objext
5095 if { (eval echo "$as_me:5095: \"$ac_compile\"") >&5
5096 (eval $ac_compile) 2>&5
5098 echo "$as_me:5098: \$? = $ac_status" >&5
5099 (exit $ac_status); } &&
5100 { ac_try='test -s conftest.$ac_objext'
5101 { (eval echo "$as_me:5101: \"$ac_try\"") >&5
5104 echo "$as_me:5104: \$? = $ac_status" >&5
5105 (exit $ac_status); }; }; then
5106 cf_cv_xopen_source=no
5108 echo "$as_me: failed program was:" >&5
5109 cat conftest.$ac_ext >&5
5112 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5113 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
5115 cat >conftest.$ac_ext <<_ACEOF
5116 #line 5116 "configure"
5117 #include "confdefs.h"
5121 #include <sys/types.h>
5127 #ifdef _XOPEN_SOURCE
5134 rm -f conftest.$ac_objext
5135 if { (eval echo "$as_me:5135: \"$ac_compile\"") >&5
5136 (eval $ac_compile) 2>&5
5138 echo "$as_me:5138: \$? = $ac_status" >&5
5139 (exit $ac_status); } &&
5140 { ac_try='test -s conftest.$ac_objext'
5141 { (eval echo "$as_me:5141: \"$ac_try\"") >&5
5144 echo "$as_me:5144: \$? = $ac_status" >&5
5145 (exit $ac_status); }; }; then
5146 cf_cv_xopen_source=no
5148 echo "$as_me: failed program was:" >&5
5149 cat conftest.$ac_ext >&5
5150 cf_cv_xopen_source=$cf_XOPEN_SOURCE
5152 rm -f conftest.$ac_objext conftest.$ac_ext
5156 rm -f conftest.$ac_objext conftest.$ac_ext
5159 echo "$as_me:5159: result: $cf_cv_xopen_source" >&5
5160 echo "${ECHO_T}$cf_cv_xopen_source" >&6
5162 if test "$cf_cv_xopen_source" != no ; then
5164 CFLAGS=`echo "$CFLAGS" | \
5165 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
5166 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
5168 CPPFLAGS=`echo "$CPPFLAGS" | \
5169 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
5170 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
5172 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
5177 cf_new_extra_cppflags=
5179 for cf_add_cflags in $cf_temp_xopen_source
5181 case $cf_fix_cppflags in
5183 case $cf_add_cflags in
5184 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
5185 case $cf_add_cflags in
5187 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
5189 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
5190 && test -z "${cf_tst_cflags}" \
5191 && cf_fix_cppflags=yes
5193 if test $cf_fix_cppflags = yes ; then
5195 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5196 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5199 elif test "${cf_tst_cflags}" = "\"'" ; then
5201 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5202 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5212 case $cf_add_cflags in
5214 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
5216 CPPFLAGS=`echo "$CPPFLAGS" | \
5217 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
5218 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
5223 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
5224 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
5231 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
5232 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
5239 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
5240 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
5242 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
5244 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
5245 && test -z "${cf_tst_cflags}" \
5246 && cf_fix_cppflags=no
5251 if test -n "$cf_new_cflags" ; then
5253 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
5254 CFLAGS="${CFLAGS}$cf_new_cflags"
5258 if test -n "$cf_new_cppflags" ; then
5260 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5261 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
5265 if test -n "$cf_new_extra_cppflags" ; then
5267 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
5268 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
5276 fi # cf_cv_posix_visible
5278 echo "$as_me:5278: checking for signal global datatype" >&5
5279 echo $ECHO_N "checking for signal global datatype... $ECHO_C" >&6
5280 if test "${cf_cv_sig_atomic_t+set}" = set; then
5281 echo $ECHO_N "(cached) $ECHO_C" >&6
5285 "volatile sig_atomic_t" \
5289 cat >conftest.$ac_ext <<_ACEOF
5290 #line 5290 "configure"
5291 #include "confdefs.h"
5293 #include <sys/types.h>
5299 static void handler(int sig)
5307 signal(SIGINT, handler);
5313 rm -f conftest.$ac_objext
5314 if { (eval echo "$as_me:5314: \"$ac_compile\"") >&5
5315 (eval $ac_compile) 2>&5
5317 echo "$as_me:5317: \$? = $ac_status" >&5
5318 (exit $ac_status); } &&
5319 { ac_try='test -s conftest.$ac_objext'
5320 { (eval echo "$as_me:5320: \"$ac_try\"") >&5
5323 echo "$as_me:5323: \$? = $ac_status" >&5
5324 (exit $ac_status); }; }; then
5325 cf_cv_sig_atomic_t=$cf_type
5327 echo "$as_me: failed program was:" >&5
5328 cat conftest.$ac_ext >&5
5329 cf_cv_sig_atomic_t=no
5331 rm -f conftest.$ac_objext conftest.$ac_ext
5332 test "$cf_cv_sig_atomic_t" != no && break
5337 echo "$as_me:5337: result: $cf_cv_sig_atomic_t" >&5
5338 echo "${ECHO_T}$cf_cv_sig_atomic_t" >&6
5339 test "$cf_cv_sig_atomic_t" != no &&
5340 cat >>confdefs.h <<EOF
5341 #define SIG_ATOMIC_T $cf_cv_sig_atomic_t
5344 # Work around breakage on OS X
5346 echo "$as_me:5346: checking if SIGWINCH is defined" >&5
5347 echo $ECHO_N "checking if SIGWINCH is defined... $ECHO_C" >&6
5348 if test "${cf_cv_define_sigwinch+set}" = set; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5352 cat >conftest.$ac_ext <<_ACEOF
5353 #line 5353 "configure"
5354 #include "confdefs.h"
5356 #include <sys/types.h>
5357 #include <sys/signal.h>
5362 int x = SIGWINCH; (void)x
5367 rm -f conftest.$ac_objext
5368 if { (eval echo "$as_me:5368: \"$ac_compile\"") >&5
5369 (eval $ac_compile) 2>&5
5371 echo "$as_me:5371: \$? = $ac_status" >&5
5372 (exit $ac_status); } &&
5373 { ac_try='test -s conftest.$ac_objext'
5374 { (eval echo "$as_me:5374: \"$ac_try\"") >&5
5377 echo "$as_me:5377: \$? = $ac_status" >&5
5378 (exit $ac_status); }; }; then
5379 cf_cv_define_sigwinch=yes
5381 echo "$as_me: failed program was:" >&5
5382 cat conftest.$ac_ext >&5
5383 cat >conftest.$ac_ext <<_ACEOF
5384 #line 5384 "configure"
5385 #include "confdefs.h"
5387 #undef _XOPEN_SOURCE
5388 #undef _POSIX_SOURCE
5389 #undef _POSIX_C_SOURCE
5390 #include <sys/types.h>
5391 #include <sys/signal.h>
5396 int x = SIGWINCH; (void)x
5401 rm -f conftest.$ac_objext
5402 if { (eval echo "$as_me:5402: \"$ac_compile\"") >&5
5403 (eval $ac_compile) 2>&5
5405 echo "$as_me:5405: \$? = $ac_status" >&5
5406 (exit $ac_status); } &&
5407 { ac_try='test -s conftest.$ac_objext'
5408 { (eval echo "$as_me:5408: \"$ac_try\"") >&5
5411 echo "$as_me:5411: \$? = $ac_status" >&5
5412 (exit $ac_status); }; }; then
5413 cf_cv_define_sigwinch=maybe
5415 echo "$as_me: failed program was:" >&5
5416 cat conftest.$ac_ext >&5
5417 cf_cv_define_sigwinch=no
5419 rm -f conftest.$ac_objext conftest.$ac_ext
5422 rm -f conftest.$ac_objext conftest.$ac_ext
5425 echo "$as_me:5425: result: $cf_cv_define_sigwinch" >&5
5426 echo "${ECHO_T}$cf_cv_define_sigwinch" >&6
5428 if test "$cf_cv_define_sigwinch" = maybe ; then
5429 echo "$as_me:5429: checking for actual SIGWINCH definition" >&5
5430 echo $ECHO_N "checking for actual SIGWINCH definition... $ECHO_C" >&6
5431 if test "${cf_cv_fixup_sigwinch+set}" = set; then
5432 echo $ECHO_N "(cached) $ECHO_C" >&6
5435 cf_cv_fixup_sigwinch=unknown
5437 while test $cf_sigwinch != 1
5439 cat >conftest.$ac_ext <<_ACEOF
5440 #line 5440 "configure"
5441 #include "confdefs.h"
5443 #undef _XOPEN_SOURCE
5444 #undef _POSIX_SOURCE
5445 #undef _POSIX_C_SOURCE
5446 #include <sys/types.h>
5447 #include <sys/signal.h>
5453 #if SIGWINCH != $cf_sigwinch
5456 int x = SIGWINCH; (void)x
5461 rm -f conftest.$ac_objext
5462 if { (eval echo "$as_me:5462: \"$ac_compile\"") >&5
5463 (eval $ac_compile) 2>&5
5465 echo "$as_me:5465: \$? = $ac_status" >&5
5466 (exit $ac_status); } &&
5467 { ac_try='test -s conftest.$ac_objext'
5468 { (eval echo "$as_me:5468: \"$ac_try\"") >&5
5471 echo "$as_me:5471: \$? = $ac_status" >&5
5472 (exit $ac_status); }; }; then
5473 cf_cv_fixup_sigwinch=$cf_sigwinch
5476 echo "$as_me: failed program was:" >&5
5477 cat conftest.$ac_ext >&5
5479 rm -f conftest.$ac_objext conftest.$ac_ext
5481 cf_sigwinch=`expr $cf_sigwinch - 1`
5485 echo "$as_me:5485: result: $cf_cv_fixup_sigwinch" >&5
5486 echo "${ECHO_T}$cf_cv_fixup_sigwinch" >&6
5488 if test "$cf_cv_fixup_sigwinch" != unknown ; then
5489 CPPFLAGS="$CPPFLAGS -DSIGWINCH=$cf_cv_fixup_sigwinch"
5493 # Checks for CODESET support.
5495 echo "$as_me:5495: checking for nl_langinfo and CODESET" >&5
5496 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
5497 if test "${am_cv_langinfo_codeset+set}" = set; then
5498 echo $ECHO_N "(cached) $ECHO_C" >&6
5500 cat >conftest.$ac_ext <<_ACEOF
5501 #line 5501 "configure"
5502 #include "confdefs.h"
5503 #include <langinfo.h>
5507 char* cs = nl_langinfo(CODESET); (void)cs
5512 rm -f conftest.$ac_objext conftest$ac_exeext
5513 if { (eval echo "$as_me:5513: \"$ac_link\"") >&5
5514 (eval $ac_link) 2>&5
5516 echo "$as_me:5516: \$? = $ac_status" >&5
5517 (exit $ac_status); } &&
5518 { ac_try='test -s conftest$ac_exeext'
5519 { (eval echo "$as_me:5519: \"$ac_try\"") >&5
5522 echo "$as_me:5522: \$? = $ac_status" >&5
5523 (exit $ac_status); }; }; then
5524 am_cv_langinfo_codeset=yes
5526 echo "$as_me: failed program was:" >&5
5527 cat conftest.$ac_ext >&5
5528 am_cv_langinfo_codeset=no
5530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5533 echo "$as_me:5533: result: $am_cv_langinfo_codeset" >&5
5534 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
5535 if test $am_cv_langinfo_codeset = yes; then
5537 cat >>confdefs.h <<\EOF
5538 #define HAVE_LANGINFO_CODESET 1
5543 echo "$as_me:5543: checking if you want to use pkg-config" >&5
5544 echo $ECHO_N "checking if you want to use pkg-config... $ECHO_C" >&6
5546 # Check whether --with-pkg-config or --without-pkg-config was given.
5547 if test "${with_pkg_config+set}" = set; then
5548 withval="$with_pkg_config"
5549 cf_pkg_config=$withval
5553 echo "$as_me:5553: result: $cf_pkg_config" >&5
5554 echo "${ECHO_T}$cf_pkg_config" >&6
5556 case $cf_pkg_config in
5562 if test -n "$ac_tool_prefix"; then
5563 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5564 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5565 echo "$as_me:5565: checking for $ac_word" >&5
5566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5567 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5572 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5575 ac_save_IFS=$IFS; IFS=$ac_path_separator
5577 for ac_dir in $ac_dummy; do
5579 test -z "$ac_dir" && ac_dir=.
5580 if $as_executable_p "$ac_dir/$ac_word"; then
5581 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
5582 echo "$as_me:5582: found $ac_dir/$ac_word" >&5
5590 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5592 if test -n "$PKG_CONFIG"; then
5593 echo "$as_me:5593: result: $PKG_CONFIG" >&5
5594 echo "${ECHO_T}$PKG_CONFIG" >&6
5596 echo "$as_me:5596: result: no" >&5
5597 echo "${ECHO_T}no" >&6
5601 if test -z "$ac_cv_path_PKG_CONFIG"; then
5602 ac_pt_PKG_CONFIG=$PKG_CONFIG
5603 # Extract the first word of "pkg-config", so it can be a program name with args.
5604 set dummy pkg-config; ac_word=$2
5605 echo "$as_me:5605: checking for $ac_word" >&5
5606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5607 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
5608 echo $ECHO_N "(cached) $ECHO_C" >&6
5610 case $ac_pt_PKG_CONFIG in
5612 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5615 ac_save_IFS=$IFS; IFS=$ac_path_separator
5617 for ac_dir in $ac_dummy; do
5619 test -z "$ac_dir" && ac_dir=.
5620 if $as_executable_p "$ac_dir/$ac_word"; then
5621 ac_cv_path_ac_pt_PKG_CONFIG="$ac_dir/$ac_word"
5622 echo "$as_me:5622: found $ac_dir/$ac_word" >&5
5627 test -z "$ac_cv_path_ac_pt_PKG_CONFIG" && ac_cv_path_ac_pt_PKG_CONFIG="none"
5631 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5633 if test -n "$ac_pt_PKG_CONFIG"; then
5634 echo "$as_me:5634: result: $ac_pt_PKG_CONFIG" >&5
5635 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
5637 echo "$as_me:5637: result: no" >&5
5638 echo "${ECHO_T}no" >&6
5641 PKG_CONFIG=$ac_pt_PKG_CONFIG
5643 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5652 test -z "$PKG_CONFIG" && PKG_CONFIG=none
5653 if test "$PKG_CONFIG" != none ; then
5655 if test "x$prefix" != xNONE; then
5656 cf_path_syntax="$prefix"
5658 cf_path_syntax="$ac_default_prefix"
5661 case ".$PKG_CONFIG" in
5666 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
5668 (.\${*prefix}*|.\${*dir}*)
5669 eval PKG_CONFIG="$PKG_CONFIG"
5670 case ".$PKG_CONFIG" in
5672 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
5677 PKG_CONFIG=`echo $PKG_CONFIG | sed -e s%NONE%$cf_path_syntax%`
5680 { { echo "$as_me:5680: error: expected a pathname, not \"$PKG_CONFIG\"" >&5
5681 echo "$as_me: error: expected a pathname, not \"$PKG_CONFIG\"" >&2;}
5682 { (exit 1); exit 1; }; }
5686 elif test "x$cf_pkg_config" != xno ; then
5687 { echo "$as_me:5687: WARNING: pkg-config is not installed" >&5
5688 echo "$as_me: WARNING: pkg-config is not installed" >&2;}
5691 echo "$as_me:5691: checking if you want to see long compiling messages" >&5
5692 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
5694 # Check whether --enable-echo or --disable-echo was given.
5695 if test "${enable_echo+set}" = set; then
5696 enableval="$enable_echo"
5697 test "$enableval" != no && enableval=yes
5698 if test "$enableval" != "yes" ; then
5701 ECHO_LD='@echo linking $@;'
5702 RULE_CC='@echo compiling $<'
5703 SHOW_CC='@echo compiling $@'
5725 echo "$as_me:5725: result: $enableval" >&5
5726 echo "${ECHO_T}$enableval" >&6
5728 echo "$as_me:5728: checking for ncurses wrap-prefix" >&5
5729 echo $ECHO_N "checking for ncurses wrap-prefix... $ECHO_C" >&6
5731 # Check whether --with-ncurses-wrap-prefix or --without-ncurses-wrap-prefix was given.
5732 if test "${with_ncurses_wrap_prefix+set}" = set; then
5733 withval="$with_ncurses_wrap_prefix"
5734 NCURSES_WRAP_PREFIX=$withval
5736 NCURSES_WRAP_PREFIX=_nc_
5738 echo "$as_me:5738: result: $NCURSES_WRAP_PREFIX" >&5
5739 echo "${ECHO_T}$NCURSES_WRAP_PREFIX" >&6
5741 echo "$as_me:5741: checking if you want to check for wide-character functions" >&5
5742 echo $ECHO_N "checking if you want to check for wide-character functions... $ECHO_C" >&6
5744 # Check whether --enable-widec or --disable-widec was given.
5745 if test "${enable_widec+set}" = set; then
5746 enableval="$enable_widec"
5747 test "$enableval" != no && enableval=yes
5748 if test "$enableval" != "yes" ; then
5758 echo "$as_me:5758: result: $cf_enable_widec" >&5
5759 echo "${ECHO_T}$cf_enable_widec" >&6
5761 echo "$as_me:5761: checking for specific curses-directory" >&5
5762 echo $ECHO_N "checking for specific curses-directory... $ECHO_C" >&6
5764 # Check whether --with-curses-dir or --without-curses-dir was given.
5765 if test "${with_curses_dir+set}" = set; then
5766 withval="$with_curses_dir"
5767 cf_cv_curses_dir=$withval
5771 echo "$as_me:5771: result: $cf_cv_curses_dir" >&5
5772 echo "${ECHO_T}$cf_cv_curses_dir" >&6
5774 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
5777 if test "x$prefix" != xNONE; then
5778 cf_path_syntax="$prefix"
5780 cf_path_syntax="$ac_default_prefix"
5788 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
5790 (.\${*prefix}*|.\${*dir}*)
5791 eval withval="$withval"
5794 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
5799 withval=`echo $withval | sed -e s%NONE%$cf_path_syntax%`
5802 { { echo "$as_me:5802: error: expected a pathname, not \"$withval\"" >&5
5803 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
5804 { (exit 1); exit 1; }; }
5808 if test -d "$cf_cv_curses_dir"
5811 if test -n "$cf_cv_curses_dir/include" ; then
5812 for cf_add_incdir in $cf_cv_curses_dir/include
5814 while test $cf_add_incdir != /usr/include
5816 if test -d $cf_add_incdir
5819 if test -n "$CFLAGS$CPPFLAGS" ; then
5820 # a loop is needed to ensure we can add subdirs of existing dirs
5821 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
5822 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
5823 cf_have_incdir=yes; break
5828 if test "$cf_have_incdir" = no ; then
5829 if test "$cf_add_incdir" = /usr/local/include ; then
5830 if test "$GCC" = yes
5832 cf_save_CPPFLAGS=$CPPFLAGS
5834 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
5835 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
5837 cat >conftest.$ac_ext <<_ACEOF
5838 #line 5838 "configure"
5839 #include "confdefs.h"
5849 rm -f conftest.$ac_objext
5850 if { (eval echo "$as_me:5850: \"$ac_compile\"") >&5
5851 (eval $ac_compile) 2>&5
5853 echo "$as_me:5853: \$? = $ac_status" >&5
5854 (exit $ac_status); } &&
5855 { ac_try='test -s conftest.$ac_objext'
5856 { (eval echo "$as_me:5856: \"$ac_try\"") >&5
5859 echo "$as_me:5859: \$? = $ac_status" >&5
5860 (exit $ac_status); }; }; then
5863 echo "$as_me: failed program was:" >&5
5864 cat conftest.$ac_ext >&5
5867 rm -f conftest.$ac_objext conftest.$ac_ext
5868 CPPFLAGS=$cf_save_CPPFLAGS
5873 if test "$cf_have_incdir" = no ; then
5874 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
5876 echo "${as_me:-configure}:5876: testing adding $cf_add_incdir to include-path ..." 1>&5
5878 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
5880 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
5881 test "$cf_top_incdir" = "$cf_add_incdir" && break
5882 cf_add_incdir="$cf_top_incdir"
5893 if test -n "$cf_cv_curses_dir/lib" ; then
5894 for cf_add_libdir in $cf_cv_curses_dir/lib
5896 if test $cf_add_libdir = /usr/lib ; then
5898 elif test -d $cf_add_libdir
5901 if test -n "$LDFLAGS$LIBS" ; then
5902 # a loop is needed to ensure we can add subdirs of existing dirs
5903 for cf_test_libdir in $LDFLAGS $LIBS ; do
5904 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
5905 cf_have_libdir=yes; break
5909 if test "$cf_have_libdir" = no ; then
5910 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
5912 echo "${as_me:-configure}:5912: testing adding $cf_add_libdir to library-path ..." 1>&5
5914 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
5925 echo "$as_me:5925: checking for specified curses library type" >&5
5926 echo $ECHO_N "checking for specified curses library type... $ECHO_C" >&6
5928 # Check whether --with-screen or --without-screen was given.
5929 if test "${with_screen+set}" = set; then
5930 withval="$with_screen"
5931 cf_cv_screen=$withval
5934 # Check whether --with-ncursesw or --without-ncursesw was given.
5935 if test "${with_ncursesw+set}" = set; then
5936 withval="$with_ncursesw"
5937 cf_cv_screen=ncursesw
5940 # Check whether --with-ncurses or --without-ncurses was given.
5941 if test "${with_ncurses+set}" = set; then
5942 withval="$with_ncurses"
5943 cf_cv_screen=ncurses
5946 # Check whether --with-pdcurses or --without-pdcurses was given.
5947 if test "${with_pdcurses+set}" = set; then
5948 withval="$with_pdcurses"
5949 cf_cv_screen=pdcurses
5952 # Check whether --with-curses-colr or --without-curses-colr was given.
5953 if test "${with_curses_colr+set}" = set; then
5954 withval="$with_curses_colr"
5955 cf_cv_screen=curses_colr
5958 # Check whether --with-curses-5lib or --without-curses-5lib was given.
5959 if test "${with_curses_5lib+set}" = set; then
5960 withval="$with_curses_5lib"
5961 cf_cv_screen=curses_5lib
5969 echo "$as_me:5969: result: $cf_cv_screen" >&5
5970 echo "${ECHO_T}$cf_cv_screen" >&6
5972 case $cf_cv_screen in
5975 echo "$as_me:5975: checking for extra include directories" >&5
5976 echo $ECHO_N "checking for extra include directories... $ECHO_C" >&6
5977 if test "${cf_cv_curses_incdir+set}" = set; then
5978 echo $ECHO_N "(cached) $ECHO_C" >&6
5981 cf_cv_curses_incdir=no
5984 if test "x$cf_cv_screen" = "xcurses_colr"
5986 test -d /usr/include/curses_colr && \
5987 cf_cv_curses_incdir="-I/usr/include/curses_colr"
5991 if test "x$cf_cv_screen" = "xcurses_5lib"
5993 test -d /usr/5lib && \
5994 test -d /usr/5include && \
5995 cf_cv_curses_incdir="-I/usr/5include"
6001 echo "$as_me:6001: result: $cf_cv_curses_incdir" >&5
6002 echo "${ECHO_T}$cf_cv_curses_incdir" >&6
6003 if test "$cf_cv_curses_incdir" != no
6006 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
6007 CPPFLAGS="${CPPFLAGS}$cf_cv_curses_incdir"
6011 echo "$as_me:6011: checking if we have identified curses headers" >&5
6012 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
6013 if test "${cf_cv_ncurses_header+set}" = set; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
6017 cf_cv_ncurses_header=none
6020 curses.h ncurses/ncurses.h ncurses/curses.h
6022 cat >conftest.$ac_ext <<_ACEOF
6023 #line 6023 "configure"
6024 #include "confdefs.h"
6025 #include <${cf_header}>
6029 initscr(); tgoto("?", 0,0)
6034 rm -f conftest.$ac_objext
6035 if { (eval echo "$as_me:6035: \"$ac_compile\"") >&5
6036 (eval $ac_compile) 2>&5
6038 echo "$as_me:6038: \$? = $ac_status" >&5
6039 (exit $ac_status); } &&
6040 { ac_try='test -s conftest.$ac_objext'
6041 { (eval echo "$as_me:6041: \"$ac_try\"") >&5
6044 echo "$as_me:6044: \$? = $ac_status" >&5
6045 (exit $ac_status); }; }; then
6046 cf_cv_ncurses_header=$cf_header; break
6048 echo "$as_me: failed program was:" >&5
6049 cat conftest.$ac_ext >&5
6051 rm -f conftest.$ac_objext conftest.$ac_ext
6055 echo "$as_me:6055: result: $cf_cv_ncurses_header" >&5
6056 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
6058 if test "$cf_cv_ncurses_header" = none ; then
6059 { { echo "$as_me:6059: error: No curses header-files found" >&5
6060 echo "$as_me: error: No curses header-files found" >&2;}
6061 { (exit 1); exit 1; }; }
6064 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
6066 for ac_header in $cf_cv_ncurses_header
6068 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6069 echo "$as_me:6069: checking for $ac_header" >&5
6070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6072 echo $ECHO_N "(cached) $ECHO_C" >&6
6074 cat >conftest.$ac_ext <<_ACEOF
6075 #line 6075 "configure"
6076 #include "confdefs.h"
6077 #include <$ac_header>
6079 if { (eval echo "$as_me:6079: \"$ac_cpp conftest.$ac_ext\"") >&5
6080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6082 egrep -v '^ *\+' conftest.er1 >conftest.err
6084 cat conftest.err >&5
6085 echo "$as_me:6085: \$? = $ac_status" >&5
6086 (exit $ac_status); } >/dev/null; then
6087 if test -s conftest.err; then
6088 ac_cpp_err=$ac_c_preproc_warn_flag
6095 if test -z "$ac_cpp_err"; then
6096 eval "$as_ac_Header=yes"
6098 echo "$as_me: failed program was:" >&5
6099 cat conftest.$ac_ext >&5
6100 eval "$as_ac_Header=no"
6102 rm -f conftest.err conftest.$ac_ext
6104 echo "$as_me:6104: result: `eval echo '${'$as_ac_Header'}'`" >&5
6105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6107 cat >>confdefs.h <<EOF
6108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6114 echo "$as_me:6114: checking for terminfo header" >&5
6115 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
6116 if test "${cf_cv_term_header+set}" = set; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6120 case ${cf_cv_ncurses_header} in
6121 (*/ncurses.h|*/ncursesw.h)
6122 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
6125 cf_term_header=term.h
6129 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
6131 cat >conftest.$ac_ext <<_ACEOF
6132 #line 6132 "configure"
6133 #include "confdefs.h"
6135 #include <${cf_cv_ncurses_header:-curses.h}>
6141 int x = auto_left_margin; (void)x
6146 rm -f conftest.$ac_objext
6147 if { (eval echo "$as_me:6147: \"$ac_compile\"") >&5
6148 (eval $ac_compile) 2>&5
6150 echo "$as_me:6150: \$? = $ac_status" >&5
6151 (exit $ac_status); } &&
6152 { ac_try='test -s conftest.$ac_objext'
6153 { (eval echo "$as_me:6153: \"$ac_try\"") >&5
6156 echo "$as_me:6156: \$? = $ac_status" >&5
6157 (exit $ac_status); }; }; then
6159 cf_cv_term_header="$cf_test"
6161 echo "$as_me: failed program was:" >&5
6162 cat conftest.$ac_ext >&5
6164 cf_cv_term_header=unknown
6167 rm -f conftest.$ac_objext conftest.$ac_ext
6168 test "$cf_cv_term_header" != unknown && break
6172 echo "$as_me:6172: result: $cf_cv_term_header" >&5
6173 echo "${ECHO_T}$cf_cv_term_header" >&6
6175 # Set definitions to allow ifdef'ing to accommodate subdirectories
6177 case $cf_cv_term_header in
6180 cat >>confdefs.h <<\EOF
6181 #define HAVE_TERM_H 1
6187 case $cf_cv_term_header in
6190 cat >>confdefs.h <<\EOF
6191 #define HAVE_NCURSES_TERM_H 1
6197 cat >>confdefs.h <<\EOF
6198 #define HAVE_NCURSESW_TERM_H 1
6204 echo "$as_me:6204: checking for ncurses version" >&5
6205 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
6206 if test "${cf_cv_ncurses_version+set}" = set; then
6207 echo $ECHO_N "(cached) $ECHO_C" >&6
6210 cf_cv_ncurses_version=no
6213 if test "$cross_compiling" = yes; then
6215 # This will not work if the preprocessor splits the line after the
6216 # Autoconf token. The 'unproto' program does that.
6217 cat > conftest.$ac_ext <<EOF
6218 #include <${cf_cv_ncurses_header:-curses.h}>
6220 #ifdef NCURSES_VERSION
6221 Autoconf NCURSES_VERSION
6229 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
6230 { (eval echo "$as_me:6230: \"$cf_try\"") >&5
6233 echo "$as_me:6233: \$? = $ac_status" >&5
6234 (exit $ac_status); }
6235 if test -f conftest.out ; then
6236 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
6237 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
6242 cat >conftest.$ac_ext <<_ACEOF
6243 #line 6243 "configure"
6244 #include "confdefs.h"
6246 #include <${cf_cv_ncurses_header:-curses.h}>
6250 FILE *fp = fopen("$cf_tempfile", "w");
6251 #ifdef NCURSES_VERSION
6252 # ifdef NCURSES_VERSION_PATCH
6253 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
6255 fprintf(fp, "%s\n", NCURSES_VERSION);
6259 fprintf(fp, "old\n");
6264 ${cf_cv_main_return:-return}(0);
6267 rm -f conftest$ac_exeext
6268 if { (eval echo "$as_me:6268: \"$ac_link\"") >&5
6269 (eval $ac_link) 2>&5
6271 echo "$as_me:6271: \$? = $ac_status" >&5
6272 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6273 { (eval echo "$as_me:6273: \"$ac_try\"") >&5
6276 echo "$as_me:6276: \$? = $ac_status" >&5
6277 (exit $ac_status); }; }; then
6279 cf_cv_ncurses_version=`cat $cf_tempfile`
6281 echo "$as_me: program exited with status $ac_status" >&5
6282 echo "$as_me: failed program was:" >&5
6283 cat conftest.$ac_ext >&5
6285 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6290 echo "$as_me:6290: result: $cf_cv_ncurses_version" >&5
6291 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
6292 test "$cf_cv_ncurses_version" = no ||
6293 cat >>confdefs.h <<\EOF
6297 echo "$as_me:6297: checking if we have identified curses libraries" >&5
6298 echo $ECHO_N "checking if we have identified curses libraries... $ECHO_C" >&6
6299 cat >conftest.$ac_ext <<_ACEOF
6300 #line 6300 "configure"
6301 #include "confdefs.h"
6302 #include <${cf_cv_ncurses_header:-curses.h}>
6306 initscr(); tgoto("?", 0,0)
6311 rm -f conftest.$ac_objext conftest$ac_exeext
6312 if { (eval echo "$as_me:6312: \"$ac_link\"") >&5
6313 (eval $ac_link) 2>&5
6315 echo "$as_me:6315: \$? = $ac_status" >&5
6316 (exit $ac_status); } &&
6317 { ac_try='test -s conftest$ac_exeext'
6318 { (eval echo "$as_me:6318: \"$ac_try\"") >&5
6321 echo "$as_me:6321: \$? = $ac_status" >&5
6322 (exit $ac_status); }; }; then
6325 echo "$as_me: failed program was:" >&5
6326 cat conftest.$ac_ext >&5
6329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6330 echo "$as_me:6330: result: $cf_result" >&5
6331 echo "${ECHO_T}$cf_result" >&6
6333 if test "$cf_result" = no ; then
6336 echo "$as_me:6336: checking for tgoto in -lmytinfo" >&5
6337 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
6338 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
6339 echo $ECHO_N "(cached) $ECHO_C" >&6
6341 ac_check_lib_save_LIBS=$LIBS
6342 LIBS="-lmytinfo $LIBS"
6343 cat >conftest.$ac_ext <<_ACEOF
6344 #line 6344 "configure"
6345 #include "confdefs.h"
6347 /* Override any gcc2 internal prototype to avoid an error. */
6351 /* We use char because int might match the return type of a gcc2
6352 builtin and then its argument prototype would still apply. */
6362 rm -f conftest.$ac_objext conftest$ac_exeext
6363 if { (eval echo "$as_me:6363: \"$ac_link\"") >&5
6364 (eval $ac_link) 2>&5
6366 echo "$as_me:6366: \$? = $ac_status" >&5
6367 (exit $ac_status); } &&
6368 { ac_try='test -s conftest$ac_exeext'
6369 { (eval echo "$as_me:6369: \"$ac_try\"") >&5
6372 echo "$as_me:6372: \$? = $ac_status" >&5
6373 (exit $ac_status); }; }; then
6374 ac_cv_lib_mytinfo_tgoto=yes
6376 echo "$as_me: failed program was:" >&5
6377 cat conftest.$ac_ext >&5
6378 ac_cv_lib_mytinfo_tgoto=no
6380 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6381 LIBS=$ac_check_lib_save_LIBS
6383 echo "$as_me:6383: result: $ac_cv_lib_mytinfo_tgoto" >&5
6384 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
6385 if test $ac_cv_lib_mytinfo_tgoto = yes; then
6390 for cf_add_1lib in -lmytinfo; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
6392 for cf_add_1lib in $cf_add_0lib; do
6393 for cf_add_2lib in $cf_add_libs; do
6394 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
6399 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
6407 # Looking at HPUX 10.20, the Hcurses library is the oldest (1997), cur_colr
6408 # next (1998), and xcurses "newer" (2000). There is no header file for
6409 # Hcurses; the subdirectory curses_colr has the headers (curses.h and
6410 # term.h) for cur_colr
6411 if test "x$cf_cv_screen" = "xcurses_colr"
6413 echo "$as_me:6413: checking for initscr in -lcur_colr" >&5
6414 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
6415 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
6416 echo $ECHO_N "(cached) $ECHO_C" >&6
6418 ac_check_lib_save_LIBS=$LIBS
6419 LIBS="-lcur_colr $LIBS"
6420 cat >conftest.$ac_ext <<_ACEOF
6421 #line 6421 "configure"
6422 #include "confdefs.h"
6424 /* Override any gcc2 internal prototype to avoid an error. */
6428 /* We use char because int might match the return type of a gcc2
6429 builtin and then its argument prototype would still apply. */
6439 rm -f conftest.$ac_objext conftest$ac_exeext
6440 if { (eval echo "$as_me:6440: \"$ac_link\"") >&5
6441 (eval $ac_link) 2>&5
6443 echo "$as_me:6443: \$? = $ac_status" >&5
6444 (exit $ac_status); } &&
6445 { ac_try='test -s conftest$ac_exeext'
6446 { (eval echo "$as_me:6446: \"$ac_try\"") >&5
6449 echo "$as_me:6449: \$? = $ac_status" >&5
6450 (exit $ac_status); }; }; then
6451 ac_cv_lib_cur_colr_initscr=yes
6453 echo "$as_me: failed program was:" >&5
6454 cat conftest.$ac_ext >&5
6455 ac_cv_lib_cur_colr_initscr=no
6457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6458 LIBS=$ac_check_lib_save_LIBS
6460 echo "$as_me:6460: result: $ac_cv_lib_cur_colr_initscr" >&5
6461 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
6462 if test $ac_cv_lib_cur_colr_initscr = yes; then
6467 for cf_add_1lib in -lcur_colr; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
6469 for cf_add_1lib in $cf_add_0lib; do
6470 for cf_add_2lib in $cf_add_libs; do
6471 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
6476 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
6480 ac_cv_func_initscr=yes
6484 echo "$as_me:6484: checking for initscr in -lHcurses" >&5
6485 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
6486 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
6487 echo $ECHO_N "(cached) $ECHO_C" >&6
6489 ac_check_lib_save_LIBS=$LIBS
6490 LIBS="-lHcurses $LIBS"
6491 cat >conftest.$ac_ext <<_ACEOF
6492 #line 6492 "configure"
6493 #include "confdefs.h"
6495 /* Override any gcc2 internal prototype to avoid an error. */
6499 /* We use char because int might match the return type of a gcc2
6500 builtin and then its argument prototype would still apply. */
6510 rm -f conftest.$ac_objext conftest$ac_exeext
6511 if { (eval echo "$as_me:6511: \"$ac_link\"") >&5
6512 (eval $ac_link) 2>&5
6514 echo "$as_me:6514: \$? = $ac_status" >&5
6515 (exit $ac_status); } &&
6516 { ac_try='test -s conftest$ac_exeext'
6517 { (eval echo "$as_me:6517: \"$ac_try\"") >&5
6520 echo "$as_me:6520: \$? = $ac_status" >&5
6521 (exit $ac_status); }; }; then
6522 ac_cv_lib_Hcurses_initscr=yes
6524 echo "$as_me: failed program was:" >&5
6525 cat conftest.$ac_ext >&5
6526 ac_cv_lib_Hcurses_initscr=no
6528 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6529 LIBS=$ac_check_lib_save_LIBS
6531 echo "$as_me:6531: result: $ac_cv_lib_Hcurses_initscr" >&5
6532 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
6533 if test $ac_cv_lib_Hcurses_initscr = yes; then
6535 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
6540 for cf_add_1lib in -lHcurses; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
6542 for cf_add_1lib in $cf_add_0lib; do
6543 for cf_add_2lib in $cf_add_libs; do
6544 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
6549 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
6553 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
6554 CPPFLAGS="${CPPFLAGS}-D__HP_CURSES -D_HP_CURSES"
6556 ac_cv_func_initscr=yes
6565 case `arch 2>/dev/null` in
6570 if test -n "/lib64" ; then
6571 for cf_add_libdir in /lib64
6573 if test $cf_add_libdir = /usr/lib ; then
6575 elif test -d $cf_add_libdir
6578 if test -n "$LDFLAGS$LIBS" ; then
6579 # a loop is needed to ensure we can add subdirs of existing dirs
6580 for cf_test_libdir in $LDFLAGS $LIBS ; do
6581 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
6582 cf_have_libdir=yes; break
6586 if test "$cf_have_libdir" = no ; then
6587 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
6589 echo "${as_me:-configure}:6589: testing adding $cf_add_libdir to library-path ..." 1>&5
6591 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
6599 if test -n "/lib" ; then
6600 for cf_add_libdir in /lib
6602 if test $cf_add_libdir = /usr/lib ; then
6604 elif test -d $cf_add_libdir
6607 if test -n "$LDFLAGS$LIBS" ; then
6608 # a loop is needed to ensure we can add subdirs of existing dirs
6609 for cf_test_libdir in $LDFLAGS $LIBS ; do
6610 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
6611 cf_have_libdir=yes; break
6615 if test "$cf_have_libdir" = no ; then
6616 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
6618 echo "${as_me:-configure}:6618: testing adding $cf_add_libdir to library-path ..." 1>&5
6620 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
6630 if test -n "/lib" ; then
6631 for cf_add_libdir in /lib
6633 if test $cf_add_libdir = /usr/lib ; then
6635 elif test -d $cf_add_libdir
6638 if test -n "$LDFLAGS$LIBS" ; then
6639 # a loop is needed to ensure we can add subdirs of existing dirs
6640 for cf_test_libdir in $LDFLAGS $LIBS ; do
6641 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
6642 cf_have_libdir=yes; break
6646 if test "$cf_have_libdir" = no ; then
6647 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
6649 echo "${as_me:-configure}:6649: testing adding $cf_add_libdir to library-path ..." 1>&5
6651 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
6661 if test "x$cf_cv_screen" = "xcurses_5lib"
6663 if test -d /usr/5lib ; then
6665 if test -n "/usr/5lib" ; then
6666 for cf_add_libdir in /usr/5lib
6668 if test $cf_add_libdir = /usr/lib ; then
6670 elif test -d $cf_add_libdir
6673 if test -n "$LDFLAGS$LIBS" ; then
6674 # a loop is needed to ensure we can add subdirs of existing dirs
6675 for cf_test_libdir in $LDFLAGS $LIBS ; do
6676 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
6677 cf_have_libdir=yes; break
6681 if test "$cf_have_libdir" = no ; then
6682 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
6684 echo "${as_me:-configure}:6684: testing adding $cf_add_libdir to library-path ..." 1>&5
6686 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
6695 for cf_add_1lib in -lcurses -ltermcap; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
6697 for cf_add_1lib in $cf_add_0lib; do
6698 for cf_add_2lib in $cf_add_libs; do
6699 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
6704 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
6710 ac_cv_func_initscr=yes
6714 if test ".$ac_cv_func_initscr" != .yes ; then
6715 cf_save_LIBS="$LIBS"
6717 if test ".${cf_cv_ncurses_version:-no}" != .no
6719 cf_check_list="ncurses curses cursesX"
6721 cf_check_list="cursesX curses ncurses"
6724 # Check for library containing tgoto. Do this before curses library
6725 # because it may be needed to link the test-case for initscr.
6726 if test "x$cf_term_lib" = x
6728 echo "$as_me:6728: checking for tgoto" >&5
6729 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
6730 if test "${ac_cv_func_tgoto+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6733 cat >conftest.$ac_ext <<_ACEOF
6734 #line 6734 "configure"
6735 #include "confdefs.h"
6736 #define tgoto autoconf_temporary
6737 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
6744 /* We use char because int might match the return type of a gcc2
6745 builtin and then its argument prototype would still apply. */
6752 /* The GNU C library defines stubs for functions which it implements
6753 to always fail with ENOSYS. Some functions are actually named
6754 something starting with __ and the normal name is an alias. */
6755 #if defined (__stub_tgoto) || defined (__stub___tgoto)
6756 #error found stub for tgoto
6764 rm -f conftest.$ac_objext conftest$ac_exeext
6765 if { (eval echo "$as_me:6765: \"$ac_link\"") >&5
6766 (eval $ac_link) 2>&5
6768 echo "$as_me:6768: \$? = $ac_status" >&5
6769 (exit $ac_status); } &&
6770 { ac_try='test -s conftest$ac_exeext'
6771 { (eval echo "$as_me:6771: \"$ac_try\"") >&5
6774 echo "$as_me:6774: \$? = $ac_status" >&5
6775 (exit $ac_status); }; }; then
6776 ac_cv_func_tgoto=yes
6778 echo "$as_me: failed program was:" >&5
6779 cat conftest.$ac_ext >&5
6782 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6784 echo "$as_me:6784: result: $ac_cv_func_tgoto" >&5
6785 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
6786 if test $ac_cv_func_tgoto = yes; then
6787 cf_term_lib=predefined
6790 for cf_term_lib in $cf_check_list otermcap termcap tinfo termlib unknown
6792 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
6793 echo "$as_me:6793: checking for tgoto in -l$cf_term_lib" >&5
6794 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
6795 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
6796 echo $ECHO_N "(cached) $ECHO_C" >&6
6798 ac_check_lib_save_LIBS=$LIBS
6799 LIBS="-l$cf_term_lib $LIBS"
6800 cat >conftest.$ac_ext <<_ACEOF
6801 #line 6801 "configure"
6802 #include "confdefs.h"
6804 /* Override any gcc2 internal prototype to avoid an error. */
6808 /* We use char because int might match the return type of a gcc2
6809 builtin and then its argument prototype would still apply. */
6819 rm -f conftest.$ac_objext conftest$ac_exeext
6820 if { (eval echo "$as_me:6820: \"$ac_link\"") >&5
6821 (eval $ac_link) 2>&5
6823 echo "$as_me:6823: \$? = $ac_status" >&5
6824 (exit $ac_status); } &&
6825 { ac_try='test -s conftest$ac_exeext'
6826 { (eval echo "$as_me:6826: \"$ac_try\"") >&5
6829 echo "$as_me:6829: \$? = $ac_status" >&5
6830 (exit $ac_status); }; }; then
6831 eval "$as_ac_Lib=yes"
6833 echo "$as_me: failed program was:" >&5
6834 cat conftest.$ac_ext >&5
6835 eval "$as_ac_Lib=no"
6837 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6838 LIBS=$ac_check_lib_save_LIBS
6840 echo "$as_me:6840: result: `eval echo '${'$as_ac_Lib'}'`" >&5
6841 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
6842 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
6844 : ${cf_nculib_root:=$cf_term_lib}
6855 # Check for library containing initscr
6856 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
6857 if test "x$cf_curs_lib" = x
6859 for cf_curs_lib in $cf_check_list xcurses jcurses pdcurses unknown
6861 LIBS="-l$cf_curs_lib $cf_save_LIBS"
6862 if test "$cf_term_lib" = unknown || test "$cf_term_lib" = "$cf_curs_lib" ; then
6863 echo "$as_me:6863: checking if we can link with $cf_curs_lib library" >&5
6864 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
6865 cat >conftest.$ac_ext <<_ACEOF
6866 #line 6866 "configure"
6867 #include "confdefs.h"
6868 #include <${cf_cv_ncurses_header:-curses.h}>
6877 rm -f conftest.$ac_objext conftest$ac_exeext
6878 if { (eval echo "$as_me:6878: \"$ac_link\"") >&5
6879 (eval $ac_link) 2>&5
6881 echo "$as_me:6881: \$? = $ac_status" >&5
6882 (exit $ac_status); } &&
6883 { ac_try='test -s conftest$ac_exeext'
6884 { (eval echo "$as_me:6884: \"$ac_try\"") >&5
6887 echo "$as_me:6887: \$? = $ac_status" >&5
6888 (exit $ac_status); }; }; then
6891 echo "$as_me: failed program was:" >&5
6892 cat conftest.$ac_ext >&5
6895 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6896 echo "$as_me:6896: result: $cf_result" >&5
6897 echo "${ECHO_T}$cf_result" >&6
6898 test $cf_result = yes && break
6899 elif test "$cf_curs_lib" = "$cf_term_lib" ; then
6901 elif test "$cf_term_lib" != predefined ; then
6902 echo "$as_me:6902: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
6903 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
6904 cat >conftest.$ac_ext <<_ACEOF
6905 #line 6905 "configure"
6906 #include "confdefs.h"
6907 #include <${cf_cv_ncurses_header:-curses.h}>
6911 initscr(); tgoto((char *)0, 0, 0);
6916 rm -f conftest.$ac_objext conftest$ac_exeext
6917 if { (eval echo "$as_me:6917: \"$ac_link\"") >&5
6918 (eval $ac_link) 2>&5
6920 echo "$as_me:6920: \$? = $ac_status" >&5
6921 (exit $ac_status); } &&
6922 { ac_try='test -s conftest$ac_exeext'
6923 { (eval echo "$as_me:6923: \"$ac_try\"") >&5
6926 echo "$as_me:6926: \$? = $ac_status" >&5
6927 (exit $ac_status); }; }; then
6930 echo "$as_me: failed program was:" >&5
6931 cat conftest.$ac_ext >&5
6933 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
6934 cat >conftest.$ac_ext <<_ACEOF
6935 #line 6935 "configure"
6936 #include "confdefs.h"
6937 #include <${cf_cv_ncurses_header:-curses.h}>
6946 rm -f conftest.$ac_objext conftest$ac_exeext
6947 if { (eval echo "$as_me:6947: \"$ac_link\"") >&5
6948 (eval $ac_link) 2>&5
6950 echo "$as_me:6950: \$? = $ac_status" >&5
6951 (exit $ac_status); } &&
6952 { ac_try='test -s conftest$ac_exeext'
6953 { (eval echo "$as_me:6953: \"$ac_try\"") >&5
6956 echo "$as_me:6956: \$? = $ac_status" >&5
6957 (exit $ac_status); }; }; then
6960 echo "$as_me: failed program was:" >&5
6961 cat conftest.$ac_ext >&5
6964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6967 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6968 echo "$as_me:6968: result: $cf_result" >&5
6969 echo "${ECHO_T}$cf_result" >&6
6970 test $cf_result != error && break
6974 test $cf_curs_lib = unknown && { { echo "$as_me:6974: error: no curses library found" >&5
6975 echo "$as_me: error: no curses library found" >&2;}
6976 { (exit 1); exit 1; }; }
6983 echo "$as_me:6983: checking for multibyte character support" >&5
6984 echo $ECHO_N "checking for multibyte character support... $ECHO_C" >&6
6985 if test "${cf_cv_utf8_lib+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6989 cf_save_LIBS="$LIBS"
6990 cat >conftest.$ac_ext <<_ACEOF
6991 #line 6991 "configure"
6992 #include "confdefs.h"
7003 rm -f conftest.$ac_objext conftest$ac_exeext
7004 if { (eval echo "$as_me:7004: \"$ac_link\"") >&5
7005 (eval $ac_link) 2>&5
7007 echo "$as_me:7007: \$? = $ac_status" >&5
7008 (exit $ac_status); } &&
7009 { ac_try='test -s conftest$ac_exeext'
7010 { (eval echo "$as_me:7010: \"$ac_try\"") >&5
7013 echo "$as_me:7013: \$? = $ac_status" >&5
7014 (exit $ac_status); }; }; then
7017 echo "$as_me: failed program was:" >&5
7018 cat conftest.$ac_ext >&5
7020 # If the linkage is not already in the $CPPFLAGS/$LDFLAGS configuration, these
7021 # will be set on completion of the AC_TRY_LINK below.
7022 cf_cv_header_path_utf8=
7023 cf_cv_library_path_utf8=
7025 echo "${as_me:-configure}:7025: testing Starting FIND_LINKAGE(utf8,) ..." 1>&5
7027 cf_save_LIBS="$LIBS"
7029 cat >conftest.$ac_ext <<_ACEOF
7030 #line 7030 "configure"
7031 #include "confdefs.h"
7033 #include <libutf8.h>
7042 rm -f conftest.$ac_objext conftest$ac_exeext
7043 if { (eval echo "$as_me:7043: \"$ac_link\"") >&5
7044 (eval $ac_link) 2>&5
7046 echo "$as_me:7046: \$? = $ac_status" >&5
7047 (exit $ac_status); } &&
7048 { ac_try='test -s conftest$ac_exeext'
7049 { (eval echo "$as_me:7049: \"$ac_try\"") >&5
7052 echo "$as_me:7052: \$? = $ac_status" >&5
7053 (exit $ac_status); }; }; then
7055 cf_cv_find_linkage_utf8=yes
7056 cf_cv_header_path_utf8=/usr/include
7057 cf_cv_library_path_utf8=/usr/lib
7060 echo "$as_me: failed program was:" >&5
7061 cat conftest.$ac_ext >&5
7063 LIBS="-lutf8 $cf_save_LIBS"
7065 cat >conftest.$ac_ext <<_ACEOF
7066 #line 7066 "configure"
7067 #include "confdefs.h"
7069 #include <libutf8.h>
7078 rm -f conftest.$ac_objext conftest$ac_exeext
7079 if { (eval echo "$as_me:7079: \"$ac_link\"") >&5
7080 (eval $ac_link) 2>&5
7082 echo "$as_me:7082: \$? = $ac_status" >&5
7083 (exit $ac_status); } &&
7084 { ac_try='test -s conftest$ac_exeext'
7085 { (eval echo "$as_me:7085: \"$ac_try\"") >&5
7088 echo "$as_me:7088: \$? = $ac_status" >&5
7089 (exit $ac_status); }; }; then
7091 cf_cv_find_linkage_utf8=yes
7092 cf_cv_header_path_utf8=/usr/include
7093 cf_cv_library_path_utf8=/usr/lib
7094 cf_cv_library_file_utf8="-lutf8"
7097 echo "$as_me: failed program was:" >&5
7098 cat conftest.$ac_ext >&5
7100 cf_cv_find_linkage_utf8=no
7101 LIBS="$cf_save_LIBS"
7103 test -n "$verbose" && echo " find linkage for utf8 library" 1>&6
7105 echo "${as_me:-configure}:7105: testing find linkage for utf8 library ..." 1>&5
7107 echo "${as_me:-configure}:7107: testing Searching for headers in FIND_LINKAGE(utf8,) ..." 1>&5
7109 cf_save_CPPFLAGS="$CPPFLAGS"
7110 cf_test_CPPFLAGS="$CPPFLAGS"
7114 # collect the current set of include-directories from compiler flags
7115 cf_header_path_list=""
7116 if test -n "${CFLAGS}${CPPFLAGS}" ; then
7117 for cf_header_path in $CPPFLAGS $CFLAGS
7119 case $cf_header_path in
7121 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
7123 test "x$cf_header_path" != "xNONE" && \
7124 test -d "$cf_header_path" && \
7126 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
7127 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
7128 test -d $cf_header_path/include/utf8 && cf_search="$cf_search $cf_header_path/include/utf8"
7129 test -d $cf_header_path/include/utf8/include && cf_search="$cf_search $cf_header_path/include/utf8/include"
7130 test -d $cf_header_path/utf8/include && cf_search="$cf_search $cf_header_path/utf8/include"
7131 test -d $cf_header_path/utf8/include/utf8 && cf_search="$cf_search $cf_header_path/utf8/include/utf8"
7134 cf_header_path_list="$cf_header_path_list $cf_search"
7140 # add the variations for the package we are looking for
7144 test "x$prefix" != "xNONE" && \
7145 test -d "$prefix" && \
7147 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
7148 test -d $prefix/include && cf_search="$cf_search $prefix/include"
7149 test -d $prefix/include/utf8 && cf_search="$cf_search $prefix/include/utf8"
7150 test -d $prefix/include/utf8/include && cf_search="$cf_search $prefix/include/utf8/include"
7151 test -d $prefix/utf8/include && cf_search="$cf_search $prefix/utf8/include"
7152 test -d $prefix/utf8/include/utf8 && cf_search="$cf_search $prefix/utf8/include/utf8"
7155 for cf_subdir_prefix in \
7164 test "x$cf_subdir_prefix" != "x$prefix" && \
7165 test -d "$cf_subdir_prefix" && \
7166 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
7167 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
7168 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
7169 test -d $cf_subdir_prefix/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/include/utf8"
7170 test -d $cf_subdir_prefix/include/utf8/include && cf_search="$cf_search $cf_subdir_prefix/include/utf8/include"
7171 test -d $cf_subdir_prefix/utf8/include && cf_search="$cf_search $cf_subdir_prefix/utf8/include"
7172 test -d $cf_subdir_prefix/utf8/include/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/include/utf8"
7177 test "$includedir" != NONE && \
7178 test "$includedir" != "/usr/include" && \
7179 test -d "$includedir" && {
7180 test -d $includedir && cf_search="$cf_search $includedir"
7181 test -d $includedir/utf8 && cf_search="$cf_search $includedir/utf8"
7184 test "$oldincludedir" != NONE && \
7185 test "$oldincludedir" != "/usr/include" && \
7186 test -d "$oldincludedir" && {
7187 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
7188 test -d $oldincludedir/utf8 && cf_search="$cf_search $oldincludedir/utf8"
7191 cf_search="$cf_search $cf_header_path_list"
7193 for cf_cv_header_path_utf8 in $cf_search
7195 if test -d $cf_cv_header_path_utf8 ; then
7196 test -n "$verbose" && echo " ... testing $cf_cv_header_path_utf8" 1>&6
7198 echo "${as_me:-configure}:7198: testing ... testing $cf_cv_header_path_utf8 ..." 1>&5
7200 CPPFLAGS="$cf_save_CPPFLAGS"
7202 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7203 CPPFLAGS="${CPPFLAGS}-I$cf_cv_header_path_utf8"
7205 cat >conftest.$ac_ext <<_ACEOF
7206 #line 7206 "configure"
7207 #include "confdefs.h"
7209 #include <libutf8.h>
7218 rm -f conftest.$ac_objext
7219 if { (eval echo "$as_me:7219: \"$ac_compile\"") >&5
7220 (eval $ac_compile) 2>&5
7222 echo "$as_me:7222: \$? = $ac_status" >&5
7223 (exit $ac_status); } &&
7224 { ac_try='test -s conftest.$ac_objext'
7225 { (eval echo "$as_me:7225: \"$ac_try\"") >&5
7228 echo "$as_me:7228: \$? = $ac_status" >&5
7229 (exit $ac_status); }; }; then
7231 test -n "$verbose" && echo " ... found utf8 headers in $cf_cv_header_path_utf8" 1>&6
7233 echo "${as_me:-configure}:7233: testing ... found utf8 headers in $cf_cv_header_path_utf8 ..." 1>&5
7235 cf_cv_find_linkage_utf8=maybe
7236 cf_test_CPPFLAGS="$CPPFLAGS"
7239 echo "$as_me: failed program was:" >&5
7240 cat conftest.$ac_ext >&5
7242 CPPFLAGS="$cf_save_CPPFLAGS"
7245 rm -f conftest.$ac_objext conftest.$ac_ext
7249 if test "$cf_cv_find_linkage_utf8" = maybe ; then
7251 echo "${as_me:-configure}:7251: testing Searching for utf8 library in FIND_LINKAGE(utf8,) ..." 1>&5
7253 cf_save_LIBS="$LIBS"
7254 cf_save_LDFLAGS="$LDFLAGS"
7256 if test "$cf_cv_find_linkage_utf8" != yes ; then
7259 cf_library_path_list=""
7260 if test -n "${LDFLAGS}${LIBS}" ; then
7261 for cf_library_path in $LDFLAGS $LIBS
7263 case $cf_library_path in
7265 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
7267 test "x$cf_library_path" != "xNONE" && \
7268 test -d "$cf_library_path" && \
7270 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
7271 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
7272 test -d $cf_library_path/lib/utf8 && cf_search="$cf_search $cf_library_path/lib/utf8"
7273 test -d $cf_library_path/lib/utf8/lib && cf_search="$cf_search $cf_library_path/lib/utf8/lib"
7274 test -d $cf_library_path/utf8/lib && cf_search="$cf_search $cf_library_path/utf8/lib"
7275 test -d $cf_library_path/utf8/lib/utf8 && cf_search="$cf_search $cf_library_path/utf8/lib/utf8"
7278 cf_library_path_list="$cf_library_path_list $cf_search"
7286 test "x$prefix" != "xNONE" && \
7287 test -d "$prefix" && \
7289 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
7290 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
7291 test -d $prefix/lib/utf8 && cf_search="$cf_search $prefix/lib/utf8"
7292 test -d $prefix/lib/utf8/lib && cf_search="$cf_search $prefix/lib/utf8/lib"
7293 test -d $prefix/utf8/lib && cf_search="$cf_search $prefix/utf8/lib"
7294 test -d $prefix/utf8/lib/utf8 && cf_search="$cf_search $prefix/utf8/lib/utf8"
7297 for cf_subdir_prefix in \
7306 test "x$cf_subdir_prefix" != "x$prefix" && \
7307 test -d "$cf_subdir_prefix" && \
7308 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
7309 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
7310 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
7311 test -d $cf_subdir_prefix/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/lib/utf8"
7312 test -d $cf_subdir_prefix/lib/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/lib/utf8/lib"
7313 test -d $cf_subdir_prefix/utf8/lib && cf_search="$cf_search $cf_subdir_prefix/utf8/lib"
7314 test -d $cf_subdir_prefix/utf8/lib/utf8 && cf_search="$cf_search $cf_subdir_prefix/utf8/lib/utf8"
7319 cf_search="$cf_library_path_list $cf_search"
7321 for cf_cv_library_path_utf8 in $cf_search
7323 if test -d $cf_cv_library_path_utf8 ; then
7324 test -n "$verbose" && echo " ... testing $cf_cv_library_path_utf8" 1>&6
7326 echo "${as_me:-configure}:7326: testing ... testing $cf_cv_library_path_utf8 ..." 1>&5
7328 CPPFLAGS="$cf_test_CPPFLAGS"
7329 LIBS="-lutf8 $cf_save_LIBS"
7330 LDFLAGS="$cf_save_LDFLAGS -L$cf_cv_library_path_utf8"
7331 cat >conftest.$ac_ext <<_ACEOF
7332 #line 7332 "configure"
7333 #include "confdefs.h"
7335 #include <libutf8.h>
7344 rm -f conftest.$ac_objext conftest$ac_exeext
7345 if { (eval echo "$as_me:7345: \"$ac_link\"") >&5
7346 (eval $ac_link) 2>&5
7348 echo "$as_me:7348: \$? = $ac_status" >&5
7349 (exit $ac_status); } &&
7350 { ac_try='test -s conftest$ac_exeext'
7351 { (eval echo "$as_me:7351: \"$ac_try\"") >&5
7354 echo "$as_me:7354: \$? = $ac_status" >&5
7355 (exit $ac_status); }; }; then
7357 test -n "$verbose" && echo " ... found utf8 library in $cf_cv_library_path_utf8" 1>&6
7359 echo "${as_me:-configure}:7359: testing ... found utf8 library in $cf_cv_library_path_utf8 ..." 1>&5
7361 cf_cv_find_linkage_utf8=yes
7362 cf_cv_library_file_utf8="-lutf8"
7365 echo "$as_me: failed program was:" >&5
7366 cat conftest.$ac_ext >&5
7368 CPPFLAGS="$cf_save_CPPFLAGS"
7369 LIBS="$cf_save_LIBS"
7370 LDFLAGS="$cf_save_LDFLAGS"
7373 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7376 CPPFLAGS="$cf_save_CPPFLAGS"
7377 LDFLAGS="$cf_save_LDFLAGS"
7381 cf_cv_find_linkage_utf8=no
7385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7388 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7390 LIBS="$cf_save_LIBS"
7392 if test "$cf_cv_find_linkage_utf8" = yes ; then
7393 cf_cv_utf8_lib=add-on
7399 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7401 echo "$as_me:7401: result: $cf_cv_utf8_lib" >&5
7402 echo "${ECHO_T}$cf_cv_utf8_lib" >&6
7404 # HAVE_LIBUTF8_H is used by ncurses if curses.h is shared between
7406 if test "$cf_cv_utf8_lib" = "add-on" ; then
7408 cat >>confdefs.h <<\EOF
7409 #define HAVE_LIBUTF8_H 1
7412 if test -n "$cf_cv_header_path_utf8" ; then
7413 for cf_add_incdir in $cf_cv_header_path_utf8
7415 while test $cf_add_incdir != /usr/include
7417 if test -d $cf_add_incdir
7420 if test -n "$CFLAGS$CPPFLAGS" ; then
7421 # a loop is needed to ensure we can add subdirs of existing dirs
7422 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
7423 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
7424 cf_have_incdir=yes; break
7429 if test "$cf_have_incdir" = no ; then
7430 if test "$cf_add_incdir" = /usr/local/include ; then
7431 if test "$GCC" = yes
7433 cf_save_CPPFLAGS=$CPPFLAGS
7435 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7436 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
7438 cat >conftest.$ac_ext <<_ACEOF
7439 #line 7439 "configure"
7440 #include "confdefs.h"
7450 rm -f conftest.$ac_objext
7451 if { (eval echo "$as_me:7451: \"$ac_compile\"") >&5
7452 (eval $ac_compile) 2>&5
7454 echo "$as_me:7454: \$? = $ac_status" >&5
7455 (exit $ac_status); } &&
7456 { ac_try='test -s conftest.$ac_objext'
7457 { (eval echo "$as_me:7457: \"$ac_try\"") >&5
7460 echo "$as_me:7460: \$? = $ac_status" >&5
7461 (exit $ac_status); }; }; then
7464 echo "$as_me: failed program was:" >&5
7465 cat conftest.$ac_ext >&5
7468 rm -f conftest.$ac_objext conftest.$ac_ext
7469 CPPFLAGS=$cf_save_CPPFLAGS
7474 if test "$cf_have_incdir" = no ; then
7475 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
7477 echo "${as_me:-configure}:7477: testing adding $cf_add_incdir to include-path ..." 1>&5
7479 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
7481 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
7482 test "$cf_top_incdir" = "$cf_add_incdir" && break
7483 cf_add_incdir="$cf_top_incdir"
7494 if test -n "$cf_cv_library_path_utf8" ; then
7495 for cf_add_libdir in $cf_cv_library_path_utf8
7497 if test $cf_add_libdir = /usr/lib ; then
7499 elif test -d $cf_add_libdir
7502 if test -n "$LDFLAGS$LIBS" ; then
7503 # a loop is needed to ensure we can add subdirs of existing dirs
7504 for cf_test_libdir in $LDFLAGS $LIBS ; do
7505 if test ".$cf_test_libdir" = ".-L$cf_add_libdir" ; then
7506 cf_have_libdir=yes; break
7510 if test "$cf_have_libdir" = no ; then
7511 test -n "$verbose" && echo " adding $cf_add_libdir to library-path" 1>&6
7513 echo "${as_me:-configure}:7513: testing adding $cf_add_libdir to library-path ..." 1>&5
7515 LDFLAGS="-L$cf_add_libdir $LDFLAGS"
7524 for cf_add_1lib in $cf_cv_library_file_utf8; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7526 for cf_add_1lib in $cf_add_0lib; do
7527 for cf_add_2lib in $cf_add_libs; do
7528 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7533 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7539 cf_ncuconfig_root=$cf_cv_screen
7540 cf_have_ncuconfig=no
7542 if test "x${PKG_CONFIG:=none}" != xnone; then
7543 echo "$as_me:7543: checking pkg-config for $cf_ncuconfig_root" >&5
7544 echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
7545 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
7546 echo "$as_me:7546: result: yes" >&5
7547 echo "${ECHO_T}yes" >&6
7549 echo "$as_me:7549: checking if the $cf_ncuconfig_root package files work" >&5
7550 echo $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
7551 cf_have_ncuconfig=unknown
7553 cf_save_CFLAGS="$CFLAGS"
7554 cf_save_CPPFLAGS="$CPPFLAGS"
7555 cf_save_LIBS="$LIBS"
7557 cf_pkg_cflags=`$PKG_CONFIG --cflags $cf_ncuconfig_root`
7558 cf_pkg_libs=`$PKG_CONFIG --libs $cf_ncuconfig_root`
7560 # while -W for passing linker flags is prevalent, it is not "standard".
7561 # At least one wrapper for c89/c99 (in Apple's xcode) has its own
7562 # incompatible _and_ non-standard -W option which gives an error. Work
7563 # around that pitfall.
7564 case "x${CC}@@${cf_pkg_libs}@${cf_pkg_cflags}" in
7570 cf_new_extra_cppflags=
7572 for cf_add_cflags in $cf_pkg_cflags
7574 case $cf_fix_cppflags in
7576 case $cf_add_cflags in
7577 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
7578 case $cf_add_cflags in
7580 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7582 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7583 && test -z "${cf_tst_cflags}" \
7584 && cf_fix_cppflags=yes
7586 if test $cf_fix_cppflags = yes ; then
7588 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7589 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7592 elif test "${cf_tst_cflags}" = "\"'" ; then
7594 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7595 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7605 case $cf_add_cflags in
7607 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7609 CPPFLAGS=`echo "$CPPFLAGS" | \
7610 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7611 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7616 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
7617 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
7624 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
7625 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
7632 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7633 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7635 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7637 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7638 && test -z "${cf_tst_cflags}" \
7639 && cf_fix_cppflags=no
7644 if test -n "$cf_new_cflags" ; then
7646 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
7647 CFLAGS="${CFLAGS}$cf_new_cflags"
7651 if test -n "$cf_new_cppflags" ; then
7653 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7654 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
7658 if test -n "$cf_new_extra_cppflags" ; then
7660 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
7661 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
7668 for cf_add_1lib in $cf_pkg_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7670 for cf_add_1lib in $cf_add_0lib; do
7671 for cf_add_2lib in $cf_add_libs; do
7672 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7677 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7681 cat >conftest.$ac_ext <<_ACEOF
7682 #line 7682 "configure"
7683 #include "confdefs.h"
7684 #include <${cf_cv_ncurses_header:-curses.h}>
7688 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
7693 rm -f conftest.$ac_objext conftest$ac_exeext
7694 if { (eval echo "$as_me:7694: \"$ac_link\"") >&5
7695 (eval $ac_link) 2>&5
7697 echo "$as_me:7697: \$? = $ac_status" >&5
7698 (exit $ac_status); } &&
7699 { ac_try='test -s conftest$ac_exeext'
7700 { (eval echo "$as_me:7700: \"$ac_try\"") >&5
7703 echo "$as_me:7703: \$? = $ac_status" >&5
7704 (exit $ac_status); }; }; then
7705 if test "$cross_compiling" = yes; then
7706 cf_test_ncuconfig=maybe
7708 cat >conftest.$ac_ext <<_ACEOF
7709 #line 7709 "configure"
7710 #include "confdefs.h"
7711 #include <${cf_cv_ncurses_header:-curses.h}>
7713 { char *xx = curses_version(); return (xx == 0); }
7715 rm -f conftest$ac_exeext
7716 if { (eval echo "$as_me:7716: \"$ac_link\"") >&5
7717 (eval $ac_link) 2>&5
7719 echo "$as_me:7719: \$? = $ac_status" >&5
7720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7721 { (eval echo "$as_me:7721: \"$ac_try\"") >&5
7724 echo "$as_me:7724: \$? = $ac_status" >&5
7725 (exit $ac_status); }; }; then
7726 cf_test_ncuconfig=yes
7728 echo "$as_me: program exited with status $ac_status" >&5
7729 echo "$as_me: failed program was:" >&5
7730 cat conftest.$ac_ext >&5
7731 cf_test_ncuconfig=no
7733 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7736 echo "$as_me: failed program was:" >&5
7737 cat conftest.$ac_ext >&5
7738 cf_test_ncuconfig=no
7740 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7742 CFLAGS="$cf_save_CFLAGS"
7743 CPPFLAGS="$cf_save_CPPFLAGS"
7744 LIBS="$cf_save_LIBS"
7746 if test "x$cf_test_ncuconfig" != xyes; then
7747 cf_temp=`echo "x$cf_pkg_cflags" | sed -e s/^x// -e 's/-W[^ ]*//g'`
7748 cf_pkg_cflags="$cf_temp"
7749 cf_temp=`echo "x$cf_pkg_libs" | sed -e s/^x// -e 's/-W[^ ]*//g'`
7750 cf_pkg_libs="$cf_temp"
7758 cf_new_extra_cppflags=
7760 for cf_add_cflags in $cf_pkg_cflags
7762 case $cf_fix_cppflags in
7764 case $cf_add_cflags in
7765 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
7766 case $cf_add_cflags in
7768 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
7770 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7771 && test -z "${cf_tst_cflags}" \
7772 && cf_fix_cppflags=yes
7774 if test $cf_fix_cppflags = yes ; then
7776 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7777 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7780 elif test "${cf_tst_cflags}" = "\"'" ; then
7782 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7783 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7793 case $cf_add_cflags in
7795 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
7797 CPPFLAGS=`echo "$CPPFLAGS" | \
7798 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
7799 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
7804 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
7805 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
7812 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
7813 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
7820 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
7821 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
7823 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
7825 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
7826 && test -z "${cf_tst_cflags}" \
7827 && cf_fix_cppflags=no
7832 if test -n "$cf_new_cflags" ; then
7834 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
7835 CFLAGS="${CFLAGS}$cf_new_cflags"
7839 if test -n "$cf_new_cppflags" ; then
7841 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
7842 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
7846 if test -n "$cf_new_extra_cppflags" ; then
7848 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
7849 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
7856 for cf_add_1lib in $cf_pkg_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
7858 for cf_add_1lib in $cf_add_0lib; do
7859 for cf_add_2lib in $cf_add_libs; do
7860 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
7865 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
7869 cat >conftest.$ac_ext <<_ACEOF
7870 #line 7870 "configure"
7871 #include "confdefs.h"
7872 #include <${cf_cv_ncurses_header:-curses.h}>
7876 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
7881 rm -f conftest.$ac_objext conftest$ac_exeext
7882 if { (eval echo "$as_me:7882: \"$ac_link\"") >&5
7883 (eval $ac_link) 2>&5
7885 echo "$as_me:7885: \$? = $ac_status" >&5
7886 (exit $ac_status); } &&
7887 { ac_try='test -s conftest$ac_exeext'
7888 { (eval echo "$as_me:7888: \"$ac_try\"") >&5
7891 echo "$as_me:7891: \$? = $ac_status" >&5
7892 (exit $ac_status); }; }; then
7893 if test "$cross_compiling" = yes; then
7894 cf_have_ncuconfig=maybe
7896 cat >conftest.$ac_ext <<_ACEOF
7897 #line 7897 "configure"
7898 #include "confdefs.h"
7899 #include <${cf_cv_ncurses_header:-curses.h}>
7901 { char *xx = curses_version(); return (xx == 0); }
7903 rm -f conftest$ac_exeext
7904 if { (eval echo "$as_me:7904: \"$ac_link\"") >&5
7905 (eval $ac_link) 2>&5
7907 echo "$as_me:7907: \$? = $ac_status" >&5
7908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7909 { (eval echo "$as_me:7909: \"$ac_try\"") >&5
7912 echo "$as_me:7912: \$? = $ac_status" >&5
7913 (exit $ac_status); }; }; then
7914 cf_have_ncuconfig=yes
7916 echo "$as_me: program exited with status $ac_status" >&5
7917 echo "$as_me: failed program was:" >&5
7918 cat conftest.$ac_ext >&5
7919 cf_have_ncuconfig=no
7921 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7924 echo "$as_me: failed program was:" >&5
7925 cat conftest.$ac_ext >&5
7926 cf_have_ncuconfig=no
7928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7929 echo "$as_me:7929: result: $cf_have_ncuconfig" >&5
7930 echo "${ECHO_T}$cf_have_ncuconfig" >&6
7931 test "$cf_have_ncuconfig" = maybe && cf_have_ncuconfig=yes
7932 if test "$cf_have_ncuconfig" != "yes"
7934 CPPFLAGS="$cf_save_CPPFLAGS"
7935 LIBS="$cf_save_LIBS"
7936 NCURSES_CONFIG_PKG=none
7939 cat >>confdefs.h <<\EOF
7943 NCURSES_CONFIG_PKG=$cf_ncuconfig_root
7945 echo "$as_me:7945: checking for terminfo header" >&5
7946 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
7947 if test "${cf_cv_term_header+set}" = set; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
7951 case ${cf_cv_ncurses_header} in
7952 (*/ncurses.h|*/ncursesw.h)
7953 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
7956 cf_term_header=term.h
7960 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
7962 cat >conftest.$ac_ext <<_ACEOF
7963 #line 7963 "configure"
7964 #include "confdefs.h"
7966 #include <${cf_cv_ncurses_header:-curses.h}>
7972 int x = auto_left_margin; (void)x
7977 rm -f conftest.$ac_objext
7978 if { (eval echo "$as_me:7978: \"$ac_compile\"") >&5
7979 (eval $ac_compile) 2>&5
7981 echo "$as_me:7981: \$? = $ac_status" >&5
7982 (exit $ac_status); } &&
7983 { ac_try='test -s conftest.$ac_objext'
7984 { (eval echo "$as_me:7984: \"$ac_try\"") >&5
7987 echo "$as_me:7987: \$? = $ac_status" >&5
7988 (exit $ac_status); }; }; then
7990 cf_cv_term_header="$cf_test"
7992 echo "$as_me: failed program was:" >&5
7993 cat conftest.$ac_ext >&5
7995 cf_cv_term_header=unknown
7998 rm -f conftest.$ac_objext conftest.$ac_ext
7999 test "$cf_cv_term_header" != unknown && break
8003 echo "$as_me:8003: result: $cf_cv_term_header" >&5
8004 echo "${ECHO_T}$cf_cv_term_header" >&6
8006 # Set definitions to allow ifdef'ing to accommodate subdirectories
8008 case $cf_cv_term_header in
8011 cat >>confdefs.h <<\EOF
8012 #define HAVE_TERM_H 1
8018 case $cf_cv_term_header in
8021 cat >>confdefs.h <<\EOF
8022 #define HAVE_NCURSES_TERM_H 1
8028 cat >>confdefs.h <<\EOF
8029 #define HAVE_NCURSESW_TERM_H 1
8038 echo "$as_me:8038: result: no" >&5
8039 echo "${ECHO_T}no" >&6
8040 NCURSES_CONFIG_PKG=none
8043 NCURSES_CONFIG_PKG=none
8046 if test "x$cf_have_ncuconfig" = "xno"; then
8047 cf_ncurses_config="${cf_ncuconfig_root}${NCURSES_CONFIG_SUFFIX}-config"; echo "Looking for ${cf_ncurses_config}"
8049 if test -n "$ac_tool_prefix"; then
8050 for ac_prog in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
8052 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8053 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8054 echo "$as_me:8054: checking for $ac_word" >&5
8055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8056 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
8057 echo $ECHO_N "(cached) $ECHO_C" >&6
8059 if test -n "$NCURSES_CONFIG"; then
8060 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
8062 ac_save_IFS=$IFS; IFS=$ac_path_separator
8064 for ac_dir in $ac_dummy; do
8066 test -z "$ac_dir" && ac_dir=.
8067 $as_executable_p "$ac_dir/$ac_word" || continue
8068 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
8069 echo "$as_me:8069: found $ac_dir/$ac_word" >&5
8075 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
8076 if test -n "$NCURSES_CONFIG"; then
8077 echo "$as_me:8077: result: $NCURSES_CONFIG" >&5
8078 echo "${ECHO_T}$NCURSES_CONFIG" >&6
8080 echo "$as_me:8080: result: no" >&5
8081 echo "${ECHO_T}no" >&6
8084 test -n "$NCURSES_CONFIG" && break
8087 if test -z "$NCURSES_CONFIG"; then
8088 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
8089 for ac_prog in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
8091 # Extract the first word of "$ac_prog", so it can be a program name with args.
8092 set dummy $ac_prog; ac_word=$2
8093 echo "$as_me:8093: checking for $ac_word" >&5
8094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8095 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
8096 echo $ECHO_N "(cached) $ECHO_C" >&6
8098 if test -n "$ac_ct_NCURSES_CONFIG"; then
8099 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
8101 ac_save_IFS=$IFS; IFS=$ac_path_separator
8103 for ac_dir in $ac_dummy; do
8105 test -z "$ac_dir" && ac_dir=.
8106 $as_executable_p "$ac_dir/$ac_word" || continue
8107 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
8108 echo "$as_me:8108: found $ac_dir/$ac_word" >&5
8114 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
8115 if test -n "$ac_ct_NCURSES_CONFIG"; then
8116 echo "$as_me:8116: result: $ac_ct_NCURSES_CONFIG" >&5
8117 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
8119 echo "$as_me:8119: result: no" >&5
8120 echo "${ECHO_T}no" >&6
8123 test -n "$ac_ct_NCURSES_CONFIG" && break
8125 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
8127 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
8130 if test "$NCURSES_CONFIG" != none ; then
8135 cf_new_extra_cppflags=
8137 for cf_add_cflags in `$NCURSES_CONFIG --cflags`
8139 case $cf_fix_cppflags in
8141 case $cf_add_cflags in
8142 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
8143 case $cf_add_cflags in
8145 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
8147 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8148 && test -z "${cf_tst_cflags}" \
8149 && cf_fix_cppflags=yes
8151 if test $cf_fix_cppflags = yes ; then
8153 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8154 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8157 elif test "${cf_tst_cflags}" = "\"'" ; then
8159 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8160 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8170 case $cf_add_cflags in
8172 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
8174 CPPFLAGS=`echo "$CPPFLAGS" | \
8175 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
8176 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
8181 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
8182 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
8189 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
8190 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
8197 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
8198 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
8200 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
8202 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
8203 && test -z "${cf_tst_cflags}" \
8204 && cf_fix_cppflags=no
8209 if test -n "$cf_new_cflags" ; then
8211 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
8212 CFLAGS="${CFLAGS}$cf_new_cflags"
8216 if test -n "$cf_new_cppflags" ; then
8218 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8219 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
8223 if test -n "$cf_new_extra_cppflags" ; then
8225 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
8226 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
8233 for cf_add_1lib in `$NCURSES_CONFIG --libs`; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
8235 for cf_add_1lib in $cf_add_0lib; do
8236 for cf_add_2lib in $cf_add_libs; do
8237 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
8242 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
8246 # even with config script, some packages use no-override for curses.h
8248 echo "$as_me:8248: checking if we have identified curses headers" >&5
8249 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
8250 if test "${cf_cv_ncurses_header+set}" = set; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8254 cf_cv_ncurses_header=none
8256 ncurses.h $cf_cv_screen/ncurses.h \
8257 curses.h $cf_cv_screen/curses.h
8259 cat >conftest.$ac_ext <<_ACEOF
8260 #line 8260 "configure"
8261 #include "confdefs.h"
8262 #include <${cf_header}>
8266 initscr(); tgoto("?", 0,0)
8271 rm -f conftest.$ac_objext
8272 if { (eval echo "$as_me:8272: \"$ac_compile\"") >&5
8273 (eval $ac_compile) 2>&5
8275 echo "$as_me:8275: \$? = $ac_status" >&5
8276 (exit $ac_status); } &&
8277 { ac_try='test -s conftest.$ac_objext'
8278 { (eval echo "$as_me:8278: \"$ac_try\"") >&5
8281 echo "$as_me:8281: \$? = $ac_status" >&5
8282 (exit $ac_status); }; }; then
8283 cf_cv_ncurses_header=$cf_header; break
8285 echo "$as_me: failed program was:" >&5
8286 cat conftest.$ac_ext >&5
8288 rm -f conftest.$ac_objext conftest.$ac_ext
8292 echo "$as_me:8292: result: $cf_cv_ncurses_header" >&5
8293 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
8295 if test "$cf_cv_ncurses_header" = none ; then
8296 { { echo "$as_me:8296: error: No curses header-files found" >&5
8297 echo "$as_me: error: No curses header-files found" >&2;}
8298 { (exit 1); exit 1; }; }
8301 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
8303 for ac_header in $cf_cv_ncurses_header
8305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8306 echo "$as_me:8306: checking for $ac_header" >&5
8307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8309 echo $ECHO_N "(cached) $ECHO_C" >&6
8311 cat >conftest.$ac_ext <<_ACEOF
8312 #line 8312 "configure"
8313 #include "confdefs.h"
8314 #include <$ac_header>
8316 if { (eval echo "$as_me:8316: \"$ac_cpp conftest.$ac_ext\"") >&5
8317 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8319 egrep -v '^ *\+' conftest.er1 >conftest.err
8321 cat conftest.err >&5
8322 echo "$as_me:8322: \$? = $ac_status" >&5
8323 (exit $ac_status); } >/dev/null; then
8324 if test -s conftest.err; then
8325 ac_cpp_err=$ac_c_preproc_warn_flag
8332 if test -z "$ac_cpp_err"; then
8333 eval "$as_ac_Header=yes"
8335 echo "$as_me: failed program was:" >&5
8336 cat conftest.$ac_ext >&5
8337 eval "$as_ac_Header=no"
8339 rm -f conftest.err conftest.$ac_ext
8341 echo "$as_me:8341: result: `eval echo '${'$as_ac_Header'}'`" >&5
8342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8344 cat >>confdefs.h <<EOF
8345 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8351 cat >>confdefs.h <<\EOF
8355 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
8357 cat >>confdefs.h <<EOF
8358 #define $cf_nculib_ROOT 1
8361 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
8365 cf_ncuhdr_root=$cf_cv_screen
8367 test -n "$cf_cv_curses_dir" && \
8368 test "$cf_cv_curses_dir" != "no" && { \
8370 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
8371 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
8373 while test $cf_add_incdir != /usr/include
8375 if test -d $cf_add_incdir
8378 if test -n "$CFLAGS$CPPFLAGS" ; then
8379 # a loop is needed to ensure we can add subdirs of existing dirs
8380 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8381 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8382 cf_have_incdir=yes; break
8387 if test "$cf_have_incdir" = no ; then
8388 if test "$cf_add_incdir" = /usr/local/include ; then
8389 if test "$GCC" = yes
8391 cf_save_CPPFLAGS=$CPPFLAGS
8393 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8394 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
8396 cat >conftest.$ac_ext <<_ACEOF
8397 #line 8397 "configure"
8398 #include "confdefs.h"
8408 rm -f conftest.$ac_objext
8409 if { (eval echo "$as_me:8409: \"$ac_compile\"") >&5
8410 (eval $ac_compile) 2>&5
8412 echo "$as_me:8412: \$? = $ac_status" >&5
8413 (exit $ac_status); } &&
8414 { ac_try='test -s conftest.$ac_objext'
8415 { (eval echo "$as_me:8415: \"$ac_try\"") >&5
8418 echo "$as_me:8418: \$? = $ac_status" >&5
8419 (exit $ac_status); }; }; then
8422 echo "$as_me: failed program was:" >&5
8423 cat conftest.$ac_ext >&5
8426 rm -f conftest.$ac_objext conftest.$ac_ext
8427 CPPFLAGS=$cf_save_CPPFLAGS
8432 if test "$cf_have_incdir" = no ; then
8433 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8435 echo "${as_me:-configure}:8435: testing adding $cf_add_incdir to include-path ..." 1>&5
8437 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8439 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8440 test "$cf_top_incdir" = "$cf_add_incdir" && break
8441 cf_add_incdir="$cf_top_incdir"
8454 echo "$as_me:8454: checking for $cf_ncuhdr_root header in include-path" >&5
8455 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
8456 if test "${cf_cv_ncurses_h+set}" = set; then
8457 echo $ECHO_N "(cached) $ECHO_C" >&6
8460 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
8461 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
8462 for cf_header in $cf_header_list
8465 cat >conftest.$ac_ext <<_ACEOF
8466 #line 8466 "configure"
8467 #include "confdefs.h"
8469 #include <$cf_header>
8474 #ifdef NCURSES_VERSION
8476 printf("%s\n", NCURSES_VERSION);
8489 rm -f conftest.$ac_objext
8490 if { (eval echo "$as_me:8490: \"$ac_compile\"") >&5
8491 (eval $ac_compile) 2>&5
8493 echo "$as_me:8493: \$? = $ac_status" >&5
8494 (exit $ac_status); } &&
8495 { ac_try='test -s conftest.$ac_objext'
8496 { (eval echo "$as_me:8496: \"$ac_try\"") >&5
8499 echo "$as_me:8499: \$? = $ac_status" >&5
8500 (exit $ac_status); }; }; then
8501 cf_cv_ncurses_h=$cf_header
8504 echo "$as_me: failed program was:" >&5
8505 cat conftest.$ac_ext >&5
8508 rm -f conftest.$ac_objext conftest.$ac_ext
8510 test "$cf_cv_ncurses_h" != no && break
8514 echo "$as_me:8514: result: $cf_cv_ncurses_h" >&5
8515 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
8517 if test "$cf_cv_ncurses_h" != no ; then
8518 cf_cv_ncurses_header=$cf_cv_ncurses_h
8521 echo "$as_me:8521: checking for $cf_ncuhdr_root include-path" >&5
8522 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
8523 if test "${cf_cv_ncurses_h2+set}" = set; then
8524 echo $ECHO_N "(cached) $ECHO_C" >&6
8527 test -n "$verbose" && echo
8531 # collect the current set of include-directories from compiler flags
8532 cf_header_path_list=""
8533 if test -n "${CFLAGS}${CPPFLAGS}" ; then
8534 for cf_header_path in $CPPFLAGS $CFLAGS
8536 case $cf_header_path in
8538 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
8540 test "x$cf_header_path" != "xNONE" && \
8541 test -d "$cf_header_path" && \
8543 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
8544 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
8545 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
8546 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
8547 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
8548 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"
8551 cf_header_path_list="$cf_header_path_list $cf_search"
8557 # add the variations for the package we are looking for
8561 test "x$prefix" != "xNONE" && \
8562 test -d "$prefix" && \
8564 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
8565 test -d $prefix/include && cf_search="$cf_search $prefix/include"
8566 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
8567 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
8568 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
8569 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
8572 for cf_subdir_prefix in \
8581 test "x$cf_subdir_prefix" != "x$prefix" && \
8582 test -d "$cf_subdir_prefix" && \
8583 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
8584 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
8585 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
8586 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root"
8587 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root/include"
8588 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include"
8589 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"
8594 test "$includedir" != NONE && \
8595 test "$includedir" != "/usr/include" && \
8596 test -d "$includedir" && {
8597 test -d $includedir && cf_search="$cf_search $includedir"
8598 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
8601 test "$oldincludedir" != NONE && \
8602 test "$oldincludedir" != "/usr/include" && \
8603 test -d "$oldincludedir" && {
8604 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
8605 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
8608 cf_search="$cf_search $cf_header_path_list"
8610 test -n "$verbose" && echo search path $cf_search
8611 cf_save2_CPPFLAGS="$CPPFLAGS"
8612 for cf_incdir in $cf_search
8615 if test -n "$cf_incdir" ; then
8616 for cf_add_incdir in $cf_incdir
8618 while test $cf_add_incdir != /usr/include
8620 if test -d $cf_add_incdir
8623 if test -n "$CFLAGS$CPPFLAGS" ; then
8624 # a loop is needed to ensure we can add subdirs of existing dirs
8625 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8626 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8627 cf_have_incdir=yes; break
8632 if test "$cf_have_incdir" = no ; then
8633 if test "$cf_add_incdir" = /usr/local/include ; then
8634 if test "$GCC" = yes
8636 cf_save_CPPFLAGS=$CPPFLAGS
8638 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8639 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
8641 cat >conftest.$ac_ext <<_ACEOF
8642 #line 8642 "configure"
8643 #include "confdefs.h"
8653 rm -f conftest.$ac_objext
8654 if { (eval echo "$as_me:8654: \"$ac_compile\"") >&5
8655 (eval $ac_compile) 2>&5
8657 echo "$as_me:8657: \$? = $ac_status" >&5
8658 (exit $ac_status); } &&
8659 { ac_try='test -s conftest.$ac_objext'
8660 { (eval echo "$as_me:8660: \"$ac_try\"") >&5
8663 echo "$as_me:8663: \$? = $ac_status" >&5
8664 (exit $ac_status); }; }; then
8667 echo "$as_me: failed program was:" >&5
8668 cat conftest.$ac_ext >&5
8671 rm -f conftest.$ac_objext conftest.$ac_ext
8672 CPPFLAGS=$cf_save_CPPFLAGS
8677 if test "$cf_have_incdir" = no ; then
8678 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8680 echo "${as_me:-configure}:8680: testing adding $cf_add_incdir to include-path ..." 1>&5
8682 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8684 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8685 test "$cf_top_incdir" = "$cf_add_incdir" && break
8686 cf_add_incdir="$cf_top_incdir"
8702 cat >conftest.$ac_ext <<_ACEOF
8703 #line 8703 "configure"
8704 #include "confdefs.h"
8706 #include <$cf_header>
8711 #ifdef NCURSES_VERSION
8713 printf("%s\n", NCURSES_VERSION);
8726 rm -f conftest.$ac_objext
8727 if { (eval echo "$as_me:8727: \"$ac_compile\"") >&5
8728 (eval $ac_compile) 2>&5
8730 echo "$as_me:8730: \$? = $ac_status" >&5
8731 (exit $ac_status); } &&
8732 { ac_try='test -s conftest.$ac_objext'
8733 { (eval echo "$as_me:8733: \"$ac_try\"") >&5
8736 echo "$as_me:8736: \$? = $ac_status" >&5
8737 (exit $ac_status); }; }; then
8738 cf_cv_ncurses_h2=$cf_header
8741 echo "$as_me: failed program was:" >&5
8742 cat conftest.$ac_ext >&5
8745 rm -f conftest.$ac_objext conftest.$ac_ext
8747 if test "$cf_cv_ncurses_h2" != no ; then
8748 cf_cv_ncurses_h2=$cf_incdir/$cf_header
8749 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
8752 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
8754 CPPFLAGS="$cf_save2_CPPFLAGS"
8755 test "$cf_cv_ncurses_h2" != no && break
8757 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:8757: error: not found" >&5
8758 echo "$as_me: error: not found" >&2;}
8759 { (exit 1); exit 1; }; }
8762 echo "$as_me:8762: result: $cf_cv_ncurses_h2" >&5
8763 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
8765 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
8766 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
8767 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
8768 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
8771 if test -n "$cf_1st_incdir" ; then
8772 for cf_add_incdir in $cf_1st_incdir
8774 while test $cf_add_incdir != /usr/include
8776 if test -d $cf_add_incdir
8779 if test -n "$CFLAGS$CPPFLAGS" ; then
8780 # a loop is needed to ensure we can add subdirs of existing dirs
8781 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
8782 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
8783 cf_have_incdir=yes; break
8788 if test "$cf_have_incdir" = no ; then
8789 if test "$cf_add_incdir" = /usr/local/include ; then
8790 if test "$GCC" = yes
8792 cf_save_CPPFLAGS=$CPPFLAGS
8794 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
8795 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
8797 cat >conftest.$ac_ext <<_ACEOF
8798 #line 8798 "configure"
8799 #include "confdefs.h"
8809 rm -f conftest.$ac_objext
8810 if { (eval echo "$as_me:8810: \"$ac_compile\"") >&5
8811 (eval $ac_compile) 2>&5
8813 echo "$as_me:8813: \$? = $ac_status" >&5
8814 (exit $ac_status); } &&
8815 { ac_try='test -s conftest.$ac_objext'
8816 { (eval echo "$as_me:8816: \"$ac_try\"") >&5
8819 echo "$as_me:8819: \$? = $ac_status" >&5
8820 (exit $ac_status); }; }; then
8823 echo "$as_me: failed program was:" >&5
8824 cat conftest.$ac_ext >&5
8827 rm -f conftest.$ac_objext conftest.$ac_ext
8828 CPPFLAGS=$cf_save_CPPFLAGS
8833 if test "$cf_have_incdir" = no ; then
8834 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
8836 echo "${as_me:-configure}:8836: testing adding $cf_add_incdir to include-path ..." 1>&5
8838 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
8840 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
8841 test "$cf_top_incdir" = "$cf_add_incdir" && break
8842 cf_add_incdir="$cf_top_incdir"
8855 # Set definitions to allow ifdef'ing for ncurses.h
8857 case $cf_cv_ncurses_header in
8860 cat >>confdefs.h <<\EOF
8861 #define HAVE_NCURSES_H 1
8867 case $cf_cv_ncurses_header in
8868 (ncurses/curses.h|ncurses/ncurses.h)
8870 cat >>confdefs.h <<\EOF
8871 #define HAVE_NCURSES_NCURSES_H 1
8875 (ncursesw/curses.h|ncursesw/ncurses.h)
8877 cat >>confdefs.h <<\EOF
8878 #define HAVE_NCURSESW_NCURSES_H 1
8884 echo "$as_me:8884: checking for terminfo header" >&5
8885 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
8886 if test "${cf_cv_term_header+set}" = set; then
8887 echo $ECHO_N "(cached) $ECHO_C" >&6
8890 case ${cf_cv_ncurses_header} in
8891 (*/ncurses.h|*/ncursesw.h)
8892 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
8895 cf_term_header=term.h
8899 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
8901 cat >conftest.$ac_ext <<_ACEOF
8902 #line 8902 "configure"
8903 #include "confdefs.h"
8905 #include <${cf_cv_ncurses_header:-curses.h}>
8911 int x = auto_left_margin; (void)x
8916 rm -f conftest.$ac_objext
8917 if { (eval echo "$as_me:8917: \"$ac_compile\"") >&5
8918 (eval $ac_compile) 2>&5
8920 echo "$as_me:8920: \$? = $ac_status" >&5
8921 (exit $ac_status); } &&
8922 { ac_try='test -s conftest.$ac_objext'
8923 { (eval echo "$as_me:8923: \"$ac_try\"") >&5
8926 echo "$as_me:8926: \$? = $ac_status" >&5
8927 (exit $ac_status); }; }; then
8929 cf_cv_term_header="$cf_test"
8931 echo "$as_me: failed program was:" >&5
8932 cat conftest.$ac_ext >&5
8934 cf_cv_term_header=unknown
8937 rm -f conftest.$ac_objext conftest.$ac_ext
8938 test "$cf_cv_term_header" != unknown && break
8942 echo "$as_me:8942: result: $cf_cv_term_header" >&5
8943 echo "${ECHO_T}$cf_cv_term_header" >&6
8945 # Set definitions to allow ifdef'ing to accommodate subdirectories
8947 case $cf_cv_term_header in
8950 cat >>confdefs.h <<\EOF
8951 #define HAVE_TERM_H 1
8957 case $cf_cv_term_header in
8960 cat >>confdefs.h <<\EOF
8961 #define HAVE_NCURSES_TERM_H 1
8967 cat >>confdefs.h <<\EOF
8968 #define HAVE_NCURSESW_TERM_H 1
8974 # some applications need this, but should check for NCURSES_VERSION
8976 cat >>confdefs.h <<\EOF
8980 echo "$as_me:8980: checking for ncurses version" >&5
8981 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
8982 if test "${cf_cv_ncurses_version+set}" = set; then
8983 echo $ECHO_N "(cached) $ECHO_C" >&6
8986 cf_cv_ncurses_version=no
8989 if test "$cross_compiling" = yes; then
8991 # This will not work if the preprocessor splits the line after the
8992 # Autoconf token. The 'unproto' program does that.
8993 cat > conftest.$ac_ext <<EOF
8994 #include <${cf_cv_ncurses_header:-curses.h}>
8996 #ifdef NCURSES_VERSION
8997 Autoconf NCURSES_VERSION
9005 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
9006 { (eval echo "$as_me:9006: \"$cf_try\"") >&5
9009 echo "$as_me:9009: \$? = $ac_status" >&5
9010 (exit $ac_status); }
9011 if test -f conftest.out ; then
9012 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
9013 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
9018 cat >conftest.$ac_ext <<_ACEOF
9019 #line 9019 "configure"
9020 #include "confdefs.h"
9022 #include <${cf_cv_ncurses_header:-curses.h}>
9026 FILE *fp = fopen("$cf_tempfile", "w");
9027 #ifdef NCURSES_VERSION
9028 # ifdef NCURSES_VERSION_PATCH
9029 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
9031 fprintf(fp, "%s\n", NCURSES_VERSION);
9035 fprintf(fp, "old\n");
9040 ${cf_cv_main_return:-return}(0);
9043 rm -f conftest$ac_exeext
9044 if { (eval echo "$as_me:9044: \"$ac_link\"") >&5
9045 (eval $ac_link) 2>&5
9047 echo "$as_me:9047: \$? = $ac_status" >&5
9048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9049 { (eval echo "$as_me:9049: \"$ac_try\"") >&5
9052 echo "$as_me:9052: \$? = $ac_status" >&5
9053 (exit $ac_status); }; }; then
9055 cf_cv_ncurses_version=`cat $cf_tempfile`
9057 echo "$as_me: program exited with status $ac_status" >&5
9058 echo "$as_me: failed program was:" >&5
9059 cat conftest.$ac_ext >&5
9061 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9066 echo "$as_me:9066: result: $cf_cv_ncurses_version" >&5
9067 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
9068 test "$cf_cv_ncurses_version" = no ||
9069 cat >>confdefs.h <<\EOF
9073 cf_nculib_root=$cf_cv_screen
9074 # This works, except for the special case where we find gpm, but
9075 # ncurses is in a nonstandard location via $LIBS, and we really want
9078 cf_ncurses_SAVE="$LIBS"
9079 echo "$as_me:9079: checking for Gpm_Open in -lgpm" >&5
9080 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
9081 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
9082 echo $ECHO_N "(cached) $ECHO_C" >&6
9084 ac_check_lib_save_LIBS=$LIBS
9086 cat >conftest.$ac_ext <<_ACEOF
9087 #line 9087 "configure"
9088 #include "confdefs.h"
9090 /* Override any gcc2 internal prototype to avoid an error. */
9094 /* We use char because int might match the return type of a gcc2
9095 builtin and then its argument prototype would still apply. */
9105 rm -f conftest.$ac_objext conftest$ac_exeext
9106 if { (eval echo "$as_me:9106: \"$ac_link\"") >&5
9107 (eval $ac_link) 2>&5
9109 echo "$as_me:9109: \$? = $ac_status" >&5
9110 (exit $ac_status); } &&
9111 { ac_try='test -s conftest$ac_exeext'
9112 { (eval echo "$as_me:9112: \"$ac_try\"") >&5
9115 echo "$as_me:9115: \$? = $ac_status" >&5
9116 (exit $ac_status); }; }; then
9117 ac_cv_lib_gpm_Gpm_Open=yes
9119 echo "$as_me: failed program was:" >&5
9120 cat conftest.$ac_ext >&5
9121 ac_cv_lib_gpm_Gpm_Open=no
9123 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9124 LIBS=$ac_check_lib_save_LIBS
9126 echo "$as_me:9126: result: $ac_cv_lib_gpm_Gpm_Open" >&5
9127 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
9128 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
9129 echo "$as_me:9129: checking for initscr in -lgpm" >&5
9130 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
9131 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
9132 echo $ECHO_N "(cached) $ECHO_C" >&6
9134 ac_check_lib_save_LIBS=$LIBS
9136 cat >conftest.$ac_ext <<_ACEOF
9137 #line 9137 "configure"
9138 #include "confdefs.h"
9140 /* Override any gcc2 internal prototype to avoid an error. */
9144 /* We use char because int might match the return type of a gcc2
9145 builtin and then its argument prototype would still apply. */
9155 rm -f conftest.$ac_objext conftest$ac_exeext
9156 if { (eval echo "$as_me:9156: \"$ac_link\"") >&5
9157 (eval $ac_link) 2>&5
9159 echo "$as_me:9159: \$? = $ac_status" >&5
9160 (exit $ac_status); } &&
9161 { ac_try='test -s conftest$ac_exeext'
9162 { (eval echo "$as_me:9162: \"$ac_try\"") >&5
9165 echo "$as_me:9165: \$? = $ac_status" >&5
9166 (exit $ac_status); }; }; then
9167 ac_cv_lib_gpm_initscr=yes
9169 echo "$as_me: failed program was:" >&5
9170 cat conftest.$ac_ext >&5
9171 ac_cv_lib_gpm_initscr=no
9173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9174 LIBS=$ac_check_lib_save_LIBS
9176 echo "$as_me:9176: result: $ac_cv_lib_gpm_initscr" >&5
9177 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
9178 if test $ac_cv_lib_gpm_initscr = yes; then
9179 LIBS="$cf_ncurses_SAVE"
9181 cf_ncurses_LIBS="-lgpm"
9188 # This is only necessary if you are linking against an obsolete
9189 # version of ncurses (but it should do no harm, since it's static).
9190 if test "$cf_nculib_root" = ncurses ; then
9191 echo "$as_me:9191: checking for tgoto in -lmytinfo" >&5
9192 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
9193 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
9194 echo $ECHO_N "(cached) $ECHO_C" >&6
9196 ac_check_lib_save_LIBS=$LIBS
9197 LIBS="-lmytinfo $LIBS"
9198 cat >conftest.$ac_ext <<_ACEOF
9199 #line 9199 "configure"
9200 #include "confdefs.h"
9202 /* Override any gcc2 internal prototype to avoid an error. */
9206 /* We use char because int might match the return type of a gcc2
9207 builtin and then its argument prototype would still apply. */
9217 rm -f conftest.$ac_objext conftest$ac_exeext
9218 if { (eval echo "$as_me:9218: \"$ac_link\"") >&5
9219 (eval $ac_link) 2>&5
9221 echo "$as_me:9221: \$? = $ac_status" >&5
9222 (exit $ac_status); } &&
9223 { ac_try='test -s conftest$ac_exeext'
9224 { (eval echo "$as_me:9224: \"$ac_try\"") >&5
9227 echo "$as_me:9227: \$? = $ac_status" >&5
9228 (exit $ac_status); }; }; then
9229 ac_cv_lib_mytinfo_tgoto=yes
9231 echo "$as_me: failed program was:" >&5
9232 cat conftest.$ac_ext >&5
9233 ac_cv_lib_mytinfo_tgoto=no
9235 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9236 LIBS=$ac_check_lib_save_LIBS
9238 echo "$as_me:9238: result: $ac_cv_lib_mytinfo_tgoto" >&5
9239 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
9240 if test $ac_cv_lib_mytinfo_tgoto = yes; then
9241 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
9251 for cf_add_1lib in $cf_ncurses_LIBS; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
9253 for cf_add_1lib in $cf_add_0lib; do
9254 for cf_add_2lib in $cf_add_libs; do
9255 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
9260 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
9264 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
9270 for cf_add_1lib in -l$cf_nculib_root; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
9272 for cf_add_1lib in $cf_add_0lib; do
9273 for cf_add_2lib in $cf_add_libs; do
9274 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
9279 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
9285 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
9287 echo "$as_me:9287: checking for initscr" >&5
9288 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
9289 if test "${ac_cv_func_initscr+set}" = set; then
9290 echo $ECHO_N "(cached) $ECHO_C" >&6
9292 cat >conftest.$ac_ext <<_ACEOF
9293 #line 9293 "configure"
9294 #include "confdefs.h"
9295 #define initscr autoconf_temporary
9296 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
9303 /* We use char because int might match the return type of a gcc2
9304 builtin and then its argument prototype would still apply. */
9305 char initscr (void);
9311 /* The GNU C library defines stubs for functions which it implements
9312 to always fail with ENOSYS. Some functions are actually named
9313 something starting with __ and the normal name is an alias. */
9314 #if defined (__stub_initscr) || defined (__stub___initscr)
9315 #error found stub for initscr
9323 rm -f conftest.$ac_objext conftest$ac_exeext
9324 if { (eval echo "$as_me:9324: \"$ac_link\"") >&5
9325 (eval $ac_link) 2>&5
9327 echo "$as_me:9327: \$? = $ac_status" >&5
9328 (exit $ac_status); } &&
9329 { ac_try='test -s conftest$ac_exeext'
9330 { (eval echo "$as_me:9330: \"$ac_try\"") >&5
9333 echo "$as_me:9333: \$? = $ac_status" >&5
9334 (exit $ac_status); }; }; then
9335 ac_cv_func_initscr=yes
9337 echo "$as_me: failed program was:" >&5
9338 cat conftest.$ac_ext >&5
9339 ac_cv_func_initscr=no
9341 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9343 echo "$as_me:9343: result: $ac_cv_func_initscr" >&5
9344 echo "${ECHO_T}$ac_cv_func_initscr" >&6
9345 if test $ac_cv_func_initscr = yes; then
9346 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
9349 cf_save_LIBS="$LIBS"
9350 echo "$as_me:9350: checking for initscr in -l$cf_nculib_root" >&5
9351 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
9352 LIBS="-l$cf_nculib_root $LIBS"
9353 cat >conftest.$ac_ext <<_ACEOF
9354 #line 9354 "configure"
9355 #include "confdefs.h"
9356 #include <${cf_cv_ncurses_header:-curses.h}>
9365 rm -f conftest.$ac_objext conftest$ac_exeext
9366 if { (eval echo "$as_me:9366: \"$ac_link\"") >&5
9367 (eval $ac_link) 2>&5
9369 echo "$as_me:9369: \$? = $ac_status" >&5
9370 (exit $ac_status); } &&
9371 { ac_try='test -s conftest$ac_exeext'
9372 { (eval echo "$as_me:9372: \"$ac_try\"") >&5
9375 echo "$as_me:9375: \$? = $ac_status" >&5
9376 (exit $ac_status); }; }; then
9377 echo "$as_me:9377: result: yes" >&5
9378 echo "${ECHO_T}yes" >&6
9379 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
9382 echo "$as_me: failed program was:" >&5
9383 cat conftest.$ac_ext >&5
9384 echo "$as_me:9384: result: no" >&5
9385 echo "${ECHO_T}no" >&6
9388 cf_library_path_list=""
9389 if test -n "${LDFLAGS}${LIBS}" ; then
9390 for cf_library_path in $LDFLAGS $LIBS
9392 case $cf_library_path in
9394 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
9396 test "x$cf_library_path" != "xNONE" && \
9397 test -d "$cf_library_path" && \
9399 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
9400 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
9401 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
9402 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
9403 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
9404 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"
9407 cf_library_path_list="$cf_library_path_list $cf_search"
9415 test "x$prefix" != "xNONE" && \
9416 test -d "$prefix" && \
9418 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
9419 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
9420 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
9421 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
9422 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
9423 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
9426 for cf_subdir_prefix in \
9435 test "x$cf_subdir_prefix" != "x$prefix" && \
9436 test -d "$cf_subdir_prefix" && \
9437 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
9438 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
9439 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
9440 test -d $cf_subdir_prefix/lib/$cf_nculib_root && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root"
9441 test -d $cf_subdir_prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root/lib"
9442 test -d $cf_subdir_prefix/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib"
9443 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"
9448 cf_search="$cf_library_path_list $cf_search"
9450 for cf_libdir in $cf_search
9452 echo "$as_me:9452: checking for -l$cf_nculib_root in $cf_libdir" >&5
9453 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
9454 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
9455 cat >conftest.$ac_ext <<_ACEOF
9456 #line 9456 "configure"
9457 #include "confdefs.h"
9458 #include <${cf_cv_ncurses_header:-curses.h}>
9467 rm -f conftest.$ac_objext conftest$ac_exeext
9468 if { (eval echo "$as_me:9468: \"$ac_link\"") >&5
9469 (eval $ac_link) 2>&5
9471 echo "$as_me:9471: \$? = $ac_status" >&5
9472 (exit $ac_status); } &&
9473 { ac_try='test -s conftest$ac_exeext'
9474 { (eval echo "$as_me:9474: \"$ac_try\"") >&5
9477 echo "$as_me:9477: \$? = $ac_status" >&5
9478 (exit $ac_status); }; }; then
9479 echo "$as_me:9479: result: yes" >&5
9480 echo "${ECHO_T}yes" >&6
9481 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
9484 echo "$as_me: failed program was:" >&5
9485 cat conftest.$ac_ext >&5
9486 echo "$as_me:9486: result: no" >&5
9487 echo "${ECHO_T}no" >&6
9488 LIBS="$cf_save_LIBS"
9490 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9494 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9498 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
9500 if test $cf_found_library = no ; then
9501 { { echo "$as_me:9501: error: Cannot link $cf_nculib_root library" >&5
9502 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
9503 { (exit 1); exit 1; }; }
9508 if test -n "$cf_ncurses_LIBS" ; then
9509 echo "$as_me:9509: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
9510 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
9511 cf_ncurses_SAVE="$LIBS"
9512 for p in $cf_ncurses_LIBS ; do
9513 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
9514 if test "$q" != "$LIBS" ; then
9518 cat >conftest.$ac_ext <<_ACEOF
9519 #line 9519 "configure"
9520 #include "confdefs.h"
9521 #include <${cf_cv_ncurses_header:-curses.h}>
9525 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
9530 rm -f conftest.$ac_objext conftest$ac_exeext
9531 if { (eval echo "$as_me:9531: \"$ac_link\"") >&5
9532 (eval $ac_link) 2>&5
9534 echo "$as_me:9534: \$? = $ac_status" >&5
9535 (exit $ac_status); } &&
9536 { ac_try='test -s conftest$ac_exeext'
9537 { (eval echo "$as_me:9537: \"$ac_try\"") >&5
9540 echo "$as_me:9540: \$? = $ac_status" >&5
9541 (exit $ac_status); }; }; then
9542 echo "$as_me:9542: result: yes" >&5
9543 echo "${ECHO_T}yes" >&6
9545 echo "$as_me: failed program was:" >&5
9546 cat conftest.$ac_ext >&5
9547 echo "$as_me:9547: result: no" >&5
9548 echo "${ECHO_T}no" >&6
9549 LIBS="$cf_ncurses_SAVE"
9551 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9554 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
9556 cat >>confdefs.h <<EOF
9557 #define $cf_nculib_ROOT 1
9568 cf_ncuconfig_root=$cf_cv_screen
9569 cf_have_ncuconfig=no
9571 if test "x${PKG_CONFIG:=none}" != xnone; then
9572 echo "$as_me:9572: checking pkg-config for $cf_ncuconfig_root" >&5
9573 echo $ECHO_N "checking pkg-config for $cf_ncuconfig_root... $ECHO_C" >&6
9574 if "$PKG_CONFIG" --exists $cf_ncuconfig_root ; then
9575 echo "$as_me:9575: result: yes" >&5
9576 echo "${ECHO_T}yes" >&6
9578 echo "$as_me:9578: checking if the $cf_ncuconfig_root package files work" >&5
9579 echo $ECHO_N "checking if the $cf_ncuconfig_root package files work... $ECHO_C" >&6
9580 cf_have_ncuconfig=unknown
9582 cf_save_CFLAGS="$CFLAGS"
9583 cf_save_CPPFLAGS="$CPPFLAGS"
9584 cf_save_LIBS="$LIBS"
9586 cf_pkg_cflags=`$PKG_CONFIG --cflags $cf_ncuconfig_root`
9587 cf_pkg_libs=`$PKG_CONFIG --libs $cf_ncuconfig_root`
9589 # while -W for passing linker flags is prevalent, it is not "standard".
9590 # At least one wrapper for c89/c99 (in Apple's xcode) has its own
9591 # incompatible _and_ non-standard -W option which gives an error. Work
9592 # around that pitfall.
9593 case "x${CC}@@${cf_pkg_libs}@${cf_pkg_cflags}" in
9599 cf_new_extra_cppflags=
9601 for cf_add_cflags in $cf_pkg_cflags
9603 case $cf_fix_cppflags in
9605 case $cf_add_cflags in
9606 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9607 case $cf_add_cflags in
9609 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9611 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9612 && test -z "${cf_tst_cflags}" \
9613 && cf_fix_cppflags=yes
9615 if test $cf_fix_cppflags = yes ; then
9617 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9618 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9621 elif test "${cf_tst_cflags}" = "\"'" ; then
9623 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9624 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9634 case $cf_add_cflags in
9636 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9638 CPPFLAGS=`echo "$CPPFLAGS" | \
9639 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9640 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9645 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
9646 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
9653 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
9654 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
9661 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9662 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9664 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9666 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9667 && test -z "${cf_tst_cflags}" \
9668 && cf_fix_cppflags=no
9673 if test -n "$cf_new_cflags" ; then
9675 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
9676 CFLAGS="${CFLAGS}$cf_new_cflags"
9680 if test -n "$cf_new_cppflags" ; then
9682 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9683 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
9687 if test -n "$cf_new_extra_cppflags" ; then
9689 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
9690 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
9697 for cf_add_1lib in $cf_pkg_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
9699 for cf_add_1lib in $cf_add_0lib; do
9700 for cf_add_2lib in $cf_add_libs; do
9701 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
9706 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
9710 cat >conftest.$ac_ext <<_ACEOF
9711 #line 9711 "configure"
9712 #include "confdefs.h"
9713 #include <${cf_cv_ncurses_header:-curses.h}>
9717 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
9722 rm -f conftest.$ac_objext conftest$ac_exeext
9723 if { (eval echo "$as_me:9723: \"$ac_link\"") >&5
9724 (eval $ac_link) 2>&5
9726 echo "$as_me:9726: \$? = $ac_status" >&5
9727 (exit $ac_status); } &&
9728 { ac_try='test -s conftest$ac_exeext'
9729 { (eval echo "$as_me:9729: \"$ac_try\"") >&5
9732 echo "$as_me:9732: \$? = $ac_status" >&5
9733 (exit $ac_status); }; }; then
9734 if test "$cross_compiling" = yes; then
9735 cf_test_ncuconfig=maybe
9737 cat >conftest.$ac_ext <<_ACEOF
9738 #line 9738 "configure"
9739 #include "confdefs.h"
9740 #include <${cf_cv_ncurses_header:-curses.h}>
9742 { char *xx = curses_version(); return (xx == 0); }
9744 rm -f conftest$ac_exeext
9745 if { (eval echo "$as_me:9745: \"$ac_link\"") >&5
9746 (eval $ac_link) 2>&5
9748 echo "$as_me:9748: \$? = $ac_status" >&5
9749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9750 { (eval echo "$as_me:9750: \"$ac_try\"") >&5
9753 echo "$as_me:9753: \$? = $ac_status" >&5
9754 (exit $ac_status); }; }; then
9755 cf_test_ncuconfig=yes
9757 echo "$as_me: program exited with status $ac_status" >&5
9758 echo "$as_me: failed program was:" >&5
9759 cat conftest.$ac_ext >&5
9760 cf_test_ncuconfig=no
9762 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9765 echo "$as_me: failed program was:" >&5
9766 cat conftest.$ac_ext >&5
9767 cf_test_ncuconfig=no
9769 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9771 CFLAGS="$cf_save_CFLAGS"
9772 CPPFLAGS="$cf_save_CPPFLAGS"
9773 LIBS="$cf_save_LIBS"
9775 if test "x$cf_test_ncuconfig" != xyes; then
9776 cf_temp=`echo "x$cf_pkg_cflags" | sed -e s/^x// -e 's/-W[^ ]*//g'`
9777 cf_pkg_cflags="$cf_temp"
9778 cf_temp=`echo "x$cf_pkg_libs" | sed -e s/^x// -e 's/-W[^ ]*//g'`
9779 cf_pkg_libs="$cf_temp"
9787 cf_new_extra_cppflags=
9789 for cf_add_cflags in $cf_pkg_cflags
9791 case $cf_fix_cppflags in
9793 case $cf_add_cflags in
9794 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
9795 case $cf_add_cflags in
9797 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
9799 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9800 && test -z "${cf_tst_cflags}" \
9801 && cf_fix_cppflags=yes
9803 if test $cf_fix_cppflags = yes ; then
9805 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9806 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9809 elif test "${cf_tst_cflags}" = "\"'" ; then
9811 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9812 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9822 case $cf_add_cflags in
9824 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
9826 CPPFLAGS=`echo "$CPPFLAGS" | \
9827 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
9828 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
9833 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
9834 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
9841 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
9842 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
9849 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
9850 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
9852 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
9854 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
9855 && test -z "${cf_tst_cflags}" \
9856 && cf_fix_cppflags=no
9861 if test -n "$cf_new_cflags" ; then
9863 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
9864 CFLAGS="${CFLAGS}$cf_new_cflags"
9868 if test -n "$cf_new_cppflags" ; then
9870 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
9871 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
9875 if test -n "$cf_new_extra_cppflags" ; then
9877 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
9878 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
9885 for cf_add_1lib in $cf_pkg_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
9887 for cf_add_1lib in $cf_add_0lib; do
9888 for cf_add_2lib in $cf_add_libs; do
9889 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
9894 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
9898 cat >conftest.$ac_ext <<_ACEOF
9899 #line 9899 "configure"
9900 #include "confdefs.h"
9901 #include <${cf_cv_ncurses_header:-curses.h}>
9905 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
9910 rm -f conftest.$ac_objext conftest$ac_exeext
9911 if { (eval echo "$as_me:9911: \"$ac_link\"") >&5
9912 (eval $ac_link) 2>&5
9914 echo "$as_me:9914: \$? = $ac_status" >&5
9915 (exit $ac_status); } &&
9916 { ac_try='test -s conftest$ac_exeext'
9917 { (eval echo "$as_me:9917: \"$ac_try\"") >&5
9920 echo "$as_me:9920: \$? = $ac_status" >&5
9921 (exit $ac_status); }; }; then
9922 if test "$cross_compiling" = yes; then
9923 cf_have_ncuconfig=maybe
9925 cat >conftest.$ac_ext <<_ACEOF
9926 #line 9926 "configure"
9927 #include "confdefs.h"
9928 #include <${cf_cv_ncurses_header:-curses.h}>
9930 { char *xx = curses_version(); return (xx == 0); }
9932 rm -f conftest$ac_exeext
9933 if { (eval echo "$as_me:9933: \"$ac_link\"") >&5
9934 (eval $ac_link) 2>&5
9936 echo "$as_me:9936: \$? = $ac_status" >&5
9937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9938 { (eval echo "$as_me:9938: \"$ac_try\"") >&5
9941 echo "$as_me:9941: \$? = $ac_status" >&5
9942 (exit $ac_status); }; }; then
9943 cf_have_ncuconfig=yes
9945 echo "$as_me: program exited with status $ac_status" >&5
9946 echo "$as_me: failed program was:" >&5
9947 cat conftest.$ac_ext >&5
9948 cf_have_ncuconfig=no
9950 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9953 echo "$as_me: failed program was:" >&5
9954 cat conftest.$ac_ext >&5
9955 cf_have_ncuconfig=no
9957 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9958 echo "$as_me:9958: result: $cf_have_ncuconfig" >&5
9959 echo "${ECHO_T}$cf_have_ncuconfig" >&6
9960 test "$cf_have_ncuconfig" = maybe && cf_have_ncuconfig=yes
9961 if test "$cf_have_ncuconfig" != "yes"
9963 CPPFLAGS="$cf_save_CPPFLAGS"
9964 LIBS="$cf_save_LIBS"
9965 NCURSES_CONFIG_PKG=none
9968 cat >>confdefs.h <<\EOF
9972 NCURSES_CONFIG_PKG=$cf_ncuconfig_root
9974 echo "$as_me:9974: checking for terminfo header" >&5
9975 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
9976 if test "${cf_cv_term_header+set}" = set; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
9980 case ${cf_cv_ncurses_header} in
9981 (*/ncurses.h|*/ncursesw.h)
9982 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
9985 cf_term_header=term.h
9989 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
9991 cat >conftest.$ac_ext <<_ACEOF
9992 #line 9992 "configure"
9993 #include "confdefs.h"
9995 #include <${cf_cv_ncurses_header:-curses.h}>
10001 int x = auto_left_margin; (void)x
10006 rm -f conftest.$ac_objext
10007 if { (eval echo "$as_me:10007: \"$ac_compile\"") >&5
10008 (eval $ac_compile) 2>&5
10010 echo "$as_me:10010: \$? = $ac_status" >&5
10011 (exit $ac_status); } &&
10012 { ac_try='test -s conftest.$ac_objext'
10013 { (eval echo "$as_me:10013: \"$ac_try\"") >&5
10014 (eval $ac_try) 2>&5
10016 echo "$as_me:10016: \$? = $ac_status" >&5
10017 (exit $ac_status); }; }; then
10019 cf_cv_term_header="$cf_test"
10021 echo "$as_me: failed program was:" >&5
10022 cat conftest.$ac_ext >&5
10024 cf_cv_term_header=unknown
10027 rm -f conftest.$ac_objext conftest.$ac_ext
10028 test "$cf_cv_term_header" != unknown && break
10032 echo "$as_me:10032: result: $cf_cv_term_header" >&5
10033 echo "${ECHO_T}$cf_cv_term_header" >&6
10035 # Set definitions to allow ifdef'ing to accommodate subdirectories
10037 case $cf_cv_term_header in
10040 cat >>confdefs.h <<\EOF
10041 #define HAVE_TERM_H 1
10047 case $cf_cv_term_header in
10050 cat >>confdefs.h <<\EOF
10051 #define HAVE_NCURSES_TERM_H 1
10057 cat >>confdefs.h <<\EOF
10058 #define HAVE_NCURSESW_TERM_H 1
10067 echo "$as_me:10067: result: no" >&5
10068 echo "${ECHO_T}no" >&6
10069 NCURSES_CONFIG_PKG=none
10072 NCURSES_CONFIG_PKG=none
10075 if test "x$cf_have_ncuconfig" = "xno"; then
10076 cf_ncurses_config="${cf_ncuconfig_root}${NCURSES_CONFIG_SUFFIX}-config"; echo "Looking for ${cf_ncurses_config}"
10078 if test -n "$ac_tool_prefix"; then
10079 for ac_prog in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
10081 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10082 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10083 echo "$as_me:10083: checking for $ac_word" >&5
10084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10085 if test "${ac_cv_prog_NCURSES_CONFIG+set}" = set; then
10086 echo $ECHO_N "(cached) $ECHO_C" >&6
10088 if test -n "$NCURSES_CONFIG"; then
10089 ac_cv_prog_NCURSES_CONFIG="$NCURSES_CONFIG" # Let the user override the test.
10091 ac_save_IFS=$IFS; IFS=$ac_path_separator
10093 for ac_dir in $ac_dummy; do
10095 test -z "$ac_dir" && ac_dir=.
10096 $as_executable_p "$ac_dir/$ac_word" || continue
10097 ac_cv_prog_NCURSES_CONFIG="$ac_tool_prefix$ac_prog"
10098 echo "$as_me:10098: found $ac_dir/$ac_word" >&5
10104 NCURSES_CONFIG=$ac_cv_prog_NCURSES_CONFIG
10105 if test -n "$NCURSES_CONFIG"; then
10106 echo "$as_me:10106: result: $NCURSES_CONFIG" >&5
10107 echo "${ECHO_T}$NCURSES_CONFIG" >&6
10109 echo "$as_me:10109: result: no" >&5
10110 echo "${ECHO_T}no" >&6
10113 test -n "$NCURSES_CONFIG" && break
10116 if test -z "$NCURSES_CONFIG"; then
10117 ac_ct_NCURSES_CONFIG=$NCURSES_CONFIG
10118 for ac_prog in ${cf_ncurses_config} ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}6-config ${cf_ncuconfig_root}5-config
10120 # Extract the first word of "$ac_prog", so it can be a program name with args.
10121 set dummy $ac_prog; ac_word=$2
10122 echo "$as_me:10122: checking for $ac_word" >&5
10123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10124 if test "${ac_cv_prog_ac_ct_NCURSES_CONFIG+set}" = set; then
10125 echo $ECHO_N "(cached) $ECHO_C" >&6
10127 if test -n "$ac_ct_NCURSES_CONFIG"; then
10128 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_ct_NCURSES_CONFIG" # Let the user override the test.
10130 ac_save_IFS=$IFS; IFS=$ac_path_separator
10132 for ac_dir in $ac_dummy; do
10134 test -z "$ac_dir" && ac_dir=.
10135 $as_executable_p "$ac_dir/$ac_word" || continue
10136 ac_cv_prog_ac_ct_NCURSES_CONFIG="$ac_prog"
10137 echo "$as_me:10137: found $ac_dir/$ac_word" >&5
10143 ac_ct_NCURSES_CONFIG=$ac_cv_prog_ac_ct_NCURSES_CONFIG
10144 if test -n "$ac_ct_NCURSES_CONFIG"; then
10145 echo "$as_me:10145: result: $ac_ct_NCURSES_CONFIG" >&5
10146 echo "${ECHO_T}$ac_ct_NCURSES_CONFIG" >&6
10148 echo "$as_me:10148: result: no" >&5
10149 echo "${ECHO_T}no" >&6
10152 test -n "$ac_ct_NCURSES_CONFIG" && break
10154 test -n "$ac_ct_NCURSES_CONFIG" || ac_ct_NCURSES_CONFIG="none"
10156 NCURSES_CONFIG=$ac_ct_NCURSES_CONFIG
10159 if test "$NCURSES_CONFIG" != none ; then
10164 cf_new_extra_cppflags=
10166 for cf_add_cflags in `$NCURSES_CONFIG --cflags`
10168 case $cf_fix_cppflags in
10170 case $cf_add_cflags in
10171 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
10172 case $cf_add_cflags in
10174 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
10176 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10177 && test -z "${cf_tst_cflags}" \
10178 && cf_fix_cppflags=yes
10180 if test $cf_fix_cppflags = yes ; then
10182 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10183 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10186 elif test "${cf_tst_cflags}" = "\"'" ; then
10188 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10189 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10195 case "$CPPFLAGS" in
10199 case $cf_add_cflags in
10201 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
10203 CPPFLAGS=`echo "$CPPFLAGS" | \
10204 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
10205 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
10210 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
10211 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
10218 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
10219 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
10226 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
10227 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
10229 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
10231 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
10232 && test -z "${cf_tst_cflags}" \
10233 && cf_fix_cppflags=no
10238 if test -n "$cf_new_cflags" ; then
10240 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
10241 CFLAGS="${CFLAGS}$cf_new_cflags"
10245 if test -n "$cf_new_cppflags" ; then
10247 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10248 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
10252 if test -n "$cf_new_extra_cppflags" ; then
10254 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
10255 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
10259 cf_add_libs="$LIBS"
10262 for cf_add_1lib in `$NCURSES_CONFIG --libs`; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
10263 # filter duplicates
10264 for cf_add_1lib in $cf_add_0lib; do
10265 for cf_add_2lib in $cf_add_libs; do
10266 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
10271 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
10273 LIBS="$cf_add_libs"
10275 # even with config script, some packages use no-override for curses.h
10277 echo "$as_me:10277: checking if we have identified curses headers" >&5
10278 echo $ECHO_N "checking if we have identified curses headers... $ECHO_C" >&6
10279 if test "${cf_cv_ncurses_header+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10283 cf_cv_ncurses_header=none
10285 ncurses.h $cf_cv_screen/ncurses.h \
10286 curses.h $cf_cv_screen/curses.h
10288 cat >conftest.$ac_ext <<_ACEOF
10289 #line 10289 "configure"
10290 #include "confdefs.h"
10291 #include <${cf_header}>
10295 initscr(); tgoto("?", 0,0)
10300 rm -f conftest.$ac_objext
10301 if { (eval echo "$as_me:10301: \"$ac_compile\"") >&5
10302 (eval $ac_compile) 2>&5
10304 echo "$as_me:10304: \$? = $ac_status" >&5
10305 (exit $ac_status); } &&
10306 { ac_try='test -s conftest.$ac_objext'
10307 { (eval echo "$as_me:10307: \"$ac_try\"") >&5
10308 (eval $ac_try) 2>&5
10310 echo "$as_me:10310: \$? = $ac_status" >&5
10311 (exit $ac_status); }; }; then
10312 cf_cv_ncurses_header=$cf_header; break
10314 echo "$as_me: failed program was:" >&5
10315 cat conftest.$ac_ext >&5
10317 rm -f conftest.$ac_objext conftest.$ac_ext
10321 echo "$as_me:10321: result: $cf_cv_ncurses_header" >&5
10322 echo "${ECHO_T}$cf_cv_ncurses_header" >&6
10324 if test "$cf_cv_ncurses_header" = none ; then
10325 { { echo "$as_me:10325: error: No curses header-files found" >&5
10326 echo "$as_me: error: No curses header-files found" >&2;}
10327 { (exit 1); exit 1; }; }
10330 # cheat, to get the right #define's for HAVE_NCURSES_H, etc.
10332 for ac_header in $cf_cv_ncurses_header
10334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10335 echo "$as_me:10335: checking for $ac_header" >&5
10336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10338 echo $ECHO_N "(cached) $ECHO_C" >&6
10340 cat >conftest.$ac_ext <<_ACEOF
10341 #line 10341 "configure"
10342 #include "confdefs.h"
10343 #include <$ac_header>
10345 if { (eval echo "$as_me:10345: \"$ac_cpp conftest.$ac_ext\"") >&5
10346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10348 egrep -v '^ *\+' conftest.er1 >conftest.err
10350 cat conftest.err >&5
10351 echo "$as_me:10351: \$? = $ac_status" >&5
10352 (exit $ac_status); } >/dev/null; then
10353 if test -s conftest.err; then
10354 ac_cpp_err=$ac_c_preproc_warn_flag
10361 if test -z "$ac_cpp_err"; then
10362 eval "$as_ac_Header=yes"
10364 echo "$as_me: failed program was:" >&5
10365 cat conftest.$ac_ext >&5
10366 eval "$as_ac_Header=no"
10368 rm -f conftest.err conftest.$ac_ext
10370 echo "$as_me:10370: result: `eval echo '${'$as_ac_Header'}'`" >&5
10371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10373 cat >>confdefs.h <<EOF
10374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10380 cat >>confdefs.h <<\EOF
10384 cf_nculib_ROOT=`echo "HAVE_LIB$cf_ncuconfig_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
10386 cat >>confdefs.h <<EOF
10387 #define $cf_nculib_ROOT 1
10390 cf_cv_ncurses_version=`$NCURSES_CONFIG --version`
10394 cf_ncuhdr_root=$cf_cv_screen
10396 test -n "$cf_cv_curses_dir" && \
10397 test "$cf_cv_curses_dir" != "no" && { \
10399 if test -n "$cf_cv_curses_dir/include/$cf_ncuhdr_root" ; then
10400 for cf_add_incdir in $cf_cv_curses_dir/include/$cf_ncuhdr_root
10402 while test $cf_add_incdir != /usr/include
10404 if test -d $cf_add_incdir
10407 if test -n "$CFLAGS$CPPFLAGS" ; then
10408 # a loop is needed to ensure we can add subdirs of existing dirs
10409 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
10410 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
10411 cf_have_incdir=yes; break
10416 if test "$cf_have_incdir" = no ; then
10417 if test "$cf_add_incdir" = /usr/local/include ; then
10418 if test "$GCC" = yes
10420 cf_save_CPPFLAGS=$CPPFLAGS
10422 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10423 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
10425 cat >conftest.$ac_ext <<_ACEOF
10426 #line 10426 "configure"
10427 #include "confdefs.h"
10437 rm -f conftest.$ac_objext
10438 if { (eval echo "$as_me:10438: \"$ac_compile\"") >&5
10439 (eval $ac_compile) 2>&5
10441 echo "$as_me:10441: \$? = $ac_status" >&5
10442 (exit $ac_status); } &&
10443 { ac_try='test -s conftest.$ac_objext'
10444 { (eval echo "$as_me:10444: \"$ac_try\"") >&5
10445 (eval $ac_try) 2>&5
10447 echo "$as_me:10447: \$? = $ac_status" >&5
10448 (exit $ac_status); }; }; then
10451 echo "$as_me: failed program was:" >&5
10452 cat conftest.$ac_ext >&5
10455 rm -f conftest.$ac_objext conftest.$ac_ext
10456 CPPFLAGS=$cf_save_CPPFLAGS
10461 if test "$cf_have_incdir" = no ; then
10462 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
10464 echo "${as_me:-configure}:10464: testing adding $cf_add_incdir to include-path ..." 1>&5
10466 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
10468 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
10469 test "$cf_top_incdir" = "$cf_add_incdir" && break
10470 cf_add_incdir="$cf_top_incdir"
10483 echo "$as_me:10483: checking for $cf_ncuhdr_root header in include-path" >&5
10484 echo $ECHO_N "checking for $cf_ncuhdr_root header in include-path... $ECHO_C" >&6
10485 if test "${cf_cv_ncurses_h+set}" = set; then
10486 echo $ECHO_N "(cached) $ECHO_C" >&6
10489 cf_header_list="$cf_ncuhdr_root/curses.h $cf_ncuhdr_root/ncurses.h"
10490 ( test "$cf_ncuhdr_root" = ncurses || test "$cf_ncuhdr_root" = ncursesw ) && cf_header_list="$cf_header_list curses.h ncurses.h"
10491 for cf_header in $cf_header_list
10494 cat >conftest.$ac_ext <<_ACEOF
10495 #line 10495 "configure"
10496 #include "confdefs.h"
10498 #include <$cf_header>
10503 #ifdef NCURSES_VERSION
10505 printf("%s\n", NCURSES_VERSION);
10518 rm -f conftest.$ac_objext
10519 if { (eval echo "$as_me:10519: \"$ac_compile\"") >&5
10520 (eval $ac_compile) 2>&5
10522 echo "$as_me:10522: \$? = $ac_status" >&5
10523 (exit $ac_status); } &&
10524 { ac_try='test -s conftest.$ac_objext'
10525 { (eval echo "$as_me:10525: \"$ac_try\"") >&5
10526 (eval $ac_try) 2>&5
10528 echo "$as_me:10528: \$? = $ac_status" >&5
10529 (exit $ac_status); }; }; then
10530 cf_cv_ncurses_h=$cf_header
10533 echo "$as_me: failed program was:" >&5
10534 cat conftest.$ac_ext >&5
10537 rm -f conftest.$ac_objext conftest.$ac_ext
10539 test "$cf_cv_ncurses_h" != no && break
10543 echo "$as_me:10543: result: $cf_cv_ncurses_h" >&5
10544 echo "${ECHO_T}$cf_cv_ncurses_h" >&6
10546 if test "$cf_cv_ncurses_h" != no ; then
10547 cf_cv_ncurses_header=$cf_cv_ncurses_h
10550 echo "$as_me:10550: checking for $cf_ncuhdr_root include-path" >&5
10551 echo $ECHO_N "checking for $cf_ncuhdr_root include-path... $ECHO_C" >&6
10552 if test "${cf_cv_ncurses_h2+set}" = set; then
10553 echo $ECHO_N "(cached) $ECHO_C" >&6
10556 test -n "$verbose" && echo
10560 # collect the current set of include-directories from compiler flags
10561 cf_header_path_list=""
10562 if test -n "${CFLAGS}${CPPFLAGS}" ; then
10563 for cf_header_path in $CPPFLAGS $CFLAGS
10565 case $cf_header_path in
10567 cf_header_path=`echo ".$cf_header_path" |sed -e 's/^...//' -e 's,/include$,,'`
10569 test "x$cf_header_path" != "xNONE" && \
10570 test -d "$cf_header_path" && \
10572 test -n "$verbose" && echo " ... testing for include-directories under $cf_header_path"
10573 test -d $cf_header_path/include && cf_search="$cf_search $cf_header_path/include"
10574 test -d $cf_header_path/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root"
10575 test -d $cf_header_path/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/include/$cf_ncuhdr_root/include"
10576 test -d $cf_header_path/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_header_path/$cf_ncuhdr_root/include"
10577 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"
10580 cf_header_path_list="$cf_header_path_list $cf_search"
10586 # add the variations for the package we are looking for
10590 test "x$prefix" != "xNONE" && \
10591 test -d "$prefix" && \
10593 test -n "$verbose" && echo " ... testing for include-directories under $prefix"
10594 test -d $prefix/include && cf_search="$cf_search $prefix/include"
10595 test -d $prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root"
10596 test -d $prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/include/$cf_ncuhdr_root/include"
10597 test -d $prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include"
10598 test -d $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root && cf_search="$cf_search $prefix/$cf_ncuhdr_root/include/$cf_ncuhdr_root"
10601 for cf_subdir_prefix in \
10610 test "x$cf_subdir_prefix" != "x$prefix" && \
10611 test -d "$cf_subdir_prefix" && \
10612 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
10613 test -n "$verbose" && echo " ... testing for include-directories under $cf_subdir_prefix"
10614 test -d $cf_subdir_prefix/include && cf_search="$cf_search $cf_subdir_prefix/include"
10615 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root"
10616 test -d $cf_subdir_prefix/include/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/include/$cf_ncuhdr_root/include"
10617 test -d $cf_subdir_prefix/$cf_ncuhdr_root/include && cf_search="$cf_search $cf_subdir_prefix/$cf_ncuhdr_root/include"
10618 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"
10623 test "$includedir" != NONE && \
10624 test "$includedir" != "/usr/include" && \
10625 test -d "$includedir" && {
10626 test -d $includedir && cf_search="$cf_search $includedir"
10627 test -d $includedir/$cf_ncuhdr_root && cf_search="$cf_search $includedir/$cf_ncuhdr_root"
10630 test "$oldincludedir" != NONE && \
10631 test "$oldincludedir" != "/usr/include" && \
10632 test -d "$oldincludedir" && {
10633 test -d $oldincludedir && cf_search="$cf_search $oldincludedir"
10634 test -d $oldincludedir/$cf_ncuhdr_root && cf_search="$cf_search $oldincludedir/$cf_ncuhdr_root"
10637 cf_search="$cf_search $cf_header_path_list"
10639 test -n "$verbose" && echo search path $cf_search
10640 cf_save2_CPPFLAGS="$CPPFLAGS"
10641 for cf_incdir in $cf_search
10644 if test -n "$cf_incdir" ; then
10645 for cf_add_incdir in $cf_incdir
10647 while test $cf_add_incdir != /usr/include
10649 if test -d $cf_add_incdir
10652 if test -n "$CFLAGS$CPPFLAGS" ; then
10653 # a loop is needed to ensure we can add subdirs of existing dirs
10654 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
10655 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
10656 cf_have_incdir=yes; break
10661 if test "$cf_have_incdir" = no ; then
10662 if test "$cf_add_incdir" = /usr/local/include ; then
10663 if test "$GCC" = yes
10665 cf_save_CPPFLAGS=$CPPFLAGS
10667 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10668 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
10670 cat >conftest.$ac_ext <<_ACEOF
10671 #line 10671 "configure"
10672 #include "confdefs.h"
10682 rm -f conftest.$ac_objext
10683 if { (eval echo "$as_me:10683: \"$ac_compile\"") >&5
10684 (eval $ac_compile) 2>&5
10686 echo "$as_me:10686: \$? = $ac_status" >&5
10687 (exit $ac_status); } &&
10688 { ac_try='test -s conftest.$ac_objext'
10689 { (eval echo "$as_me:10689: \"$ac_try\"") >&5
10690 (eval $ac_try) 2>&5
10692 echo "$as_me:10692: \$? = $ac_status" >&5
10693 (exit $ac_status); }; }; then
10696 echo "$as_me: failed program was:" >&5
10697 cat conftest.$ac_ext >&5
10700 rm -f conftest.$ac_objext conftest.$ac_ext
10701 CPPFLAGS=$cf_save_CPPFLAGS
10706 if test "$cf_have_incdir" = no ; then
10707 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
10709 echo "${as_me:-configure}:10709: testing adding $cf_add_incdir to include-path ..." 1>&5
10711 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
10713 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
10714 test "$cf_top_incdir" = "$cf_add_incdir" && break
10715 cf_add_incdir="$cf_top_incdir"
10731 cat >conftest.$ac_ext <<_ACEOF
10732 #line 10732 "configure"
10733 #include "confdefs.h"
10735 #include <$cf_header>
10740 #ifdef NCURSES_VERSION
10742 printf("%s\n", NCURSES_VERSION);
10755 rm -f conftest.$ac_objext
10756 if { (eval echo "$as_me:10756: \"$ac_compile\"") >&5
10757 (eval $ac_compile) 2>&5
10759 echo "$as_me:10759: \$? = $ac_status" >&5
10760 (exit $ac_status); } &&
10761 { ac_try='test -s conftest.$ac_objext'
10762 { (eval echo "$as_me:10762: \"$ac_try\"") >&5
10763 (eval $ac_try) 2>&5
10765 echo "$as_me:10765: \$? = $ac_status" >&5
10766 (exit $ac_status); }; }; then
10767 cf_cv_ncurses_h2=$cf_header
10770 echo "$as_me: failed program was:" >&5
10771 cat conftest.$ac_ext >&5
10772 cf_cv_ncurses_h2=no
10774 rm -f conftest.$ac_objext conftest.$ac_ext
10776 if test "$cf_cv_ncurses_h2" != no ; then
10777 cf_cv_ncurses_h2=$cf_incdir/$cf_header
10778 test -n "$verbose" && echo $ac_n " ... found $ac_c" 1>&6
10781 test -n "$verbose" && echo " ... tested $cf_incdir/$cf_header" 1>&6
10783 CPPFLAGS="$cf_save2_CPPFLAGS"
10784 test "$cf_cv_ncurses_h2" != no && break
10786 test "$cf_cv_ncurses_h2" = no && { { echo "$as_me:10786: error: not found" >&5
10787 echo "$as_me: error: not found" >&2;}
10788 { (exit 1); exit 1; }; }
10791 echo "$as_me:10791: result: $cf_cv_ncurses_h2" >&5
10792 echo "${ECHO_T}$cf_cv_ncurses_h2" >&6
10794 cf_1st_incdir=`echo $cf_cv_ncurses_h2 | sed -e 's%/[^/]*$%%'`
10795 cf_cv_ncurses_header=`basename $cf_cv_ncurses_h2`
10796 if test `basename $cf_1st_incdir` = $cf_ncuhdr_root ; then
10797 cf_cv_ncurses_header=$cf_ncuhdr_root/$cf_cv_ncurses_header
10800 if test -n "$cf_1st_incdir" ; then
10801 for cf_add_incdir in $cf_1st_incdir
10803 while test $cf_add_incdir != /usr/include
10805 if test -d $cf_add_incdir
10808 if test -n "$CFLAGS$CPPFLAGS" ; then
10809 # a loop is needed to ensure we can add subdirs of existing dirs
10810 for cf_test_incdir in $CFLAGS $CPPFLAGS ; do
10811 if test ".$cf_test_incdir" = ".-I$cf_add_incdir" ; then
10812 cf_have_incdir=yes; break
10817 if test "$cf_have_incdir" = no ; then
10818 if test "$cf_add_incdir" = /usr/local/include ; then
10819 if test "$GCC" = yes
10821 cf_save_CPPFLAGS=$CPPFLAGS
10823 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
10824 CPPFLAGS="${CPPFLAGS}-I$cf_add_incdir"
10826 cat >conftest.$ac_ext <<_ACEOF
10827 #line 10827 "configure"
10828 #include "confdefs.h"
10838 rm -f conftest.$ac_objext
10839 if { (eval echo "$as_me:10839: \"$ac_compile\"") >&5
10840 (eval $ac_compile) 2>&5
10842 echo "$as_me:10842: \$? = $ac_status" >&5
10843 (exit $ac_status); } &&
10844 { ac_try='test -s conftest.$ac_objext'
10845 { (eval echo "$as_me:10845: \"$ac_try\"") >&5
10846 (eval $ac_try) 2>&5
10848 echo "$as_me:10848: \$? = $ac_status" >&5
10849 (exit $ac_status); }; }; then
10852 echo "$as_me: failed program was:" >&5
10853 cat conftest.$ac_ext >&5
10856 rm -f conftest.$ac_objext conftest.$ac_ext
10857 CPPFLAGS=$cf_save_CPPFLAGS
10862 if test "$cf_have_incdir" = no ; then
10863 test -n "$verbose" && echo " adding $cf_add_incdir to include-path" 1>&6
10865 echo "${as_me:-configure}:10865: testing adding $cf_add_incdir to include-path ..." 1>&5
10867 CPPFLAGS="$CPPFLAGS -I$cf_add_incdir"
10869 cf_top_incdir=`echo $cf_add_incdir | sed -e 's%/include/.*$%/include%'`
10870 test "$cf_top_incdir" = "$cf_add_incdir" && break
10871 cf_add_incdir="$cf_top_incdir"
10884 # Set definitions to allow ifdef'ing for ncurses.h
10886 case $cf_cv_ncurses_header in
10889 cat >>confdefs.h <<\EOF
10890 #define HAVE_NCURSES_H 1
10896 case $cf_cv_ncurses_header in
10897 (ncurses/curses.h|ncurses/ncurses.h)
10899 cat >>confdefs.h <<\EOF
10900 #define HAVE_NCURSES_NCURSES_H 1
10904 (ncursesw/curses.h|ncursesw/ncurses.h)
10906 cat >>confdefs.h <<\EOF
10907 #define HAVE_NCURSESW_NCURSES_H 1
10913 echo "$as_me:10913: checking for terminfo header" >&5
10914 echo $ECHO_N "checking for terminfo header... $ECHO_C" >&6
10915 if test "${cf_cv_term_header+set}" = set; then
10916 echo $ECHO_N "(cached) $ECHO_C" >&6
10919 case ${cf_cv_ncurses_header} in
10920 (*/ncurses.h|*/ncursesw.h)
10921 cf_term_header=`echo "$cf_cv_ncurses_header" | sed -e 's%ncurses[^.]*\.h$%term.h%'`
10924 cf_term_header=term.h
10928 for cf_test in $cf_term_header "ncurses/term.h" "ncursesw/term.h"
10930 cat >conftest.$ac_ext <<_ACEOF
10931 #line 10931 "configure"
10932 #include "confdefs.h"
10934 #include <${cf_cv_ncurses_header:-curses.h}>
10935 #include <$cf_test>
10940 int x = auto_left_margin; (void)x
10945 rm -f conftest.$ac_objext
10946 if { (eval echo "$as_me:10946: \"$ac_compile\"") >&5
10947 (eval $ac_compile) 2>&5
10949 echo "$as_me:10949: \$? = $ac_status" >&5
10950 (exit $ac_status); } &&
10951 { ac_try='test -s conftest.$ac_objext'
10952 { (eval echo "$as_me:10952: \"$ac_try\"") >&5
10953 (eval $ac_try) 2>&5
10955 echo "$as_me:10955: \$? = $ac_status" >&5
10956 (exit $ac_status); }; }; then
10958 cf_cv_term_header="$cf_test"
10960 echo "$as_me: failed program was:" >&5
10961 cat conftest.$ac_ext >&5
10963 cf_cv_term_header=unknown
10966 rm -f conftest.$ac_objext conftest.$ac_ext
10967 test "$cf_cv_term_header" != unknown && break
10971 echo "$as_me:10971: result: $cf_cv_term_header" >&5
10972 echo "${ECHO_T}$cf_cv_term_header" >&6
10974 # Set definitions to allow ifdef'ing to accommodate subdirectories
10976 case $cf_cv_term_header in
10979 cat >>confdefs.h <<\EOF
10980 #define HAVE_TERM_H 1
10986 case $cf_cv_term_header in
10989 cat >>confdefs.h <<\EOF
10990 #define HAVE_NCURSES_TERM_H 1
10996 cat >>confdefs.h <<\EOF
10997 #define HAVE_NCURSESW_TERM_H 1
11003 # some applications need this, but should check for NCURSES_VERSION
11005 cat >>confdefs.h <<\EOF
11009 echo "$as_me:11009: checking for ncurses version" >&5
11010 echo $ECHO_N "checking for ncurses version... $ECHO_C" >&6
11011 if test "${cf_cv_ncurses_version+set}" = set; then
11012 echo $ECHO_N "(cached) $ECHO_C" >&6
11015 cf_cv_ncurses_version=no
11018 if test "$cross_compiling" = yes; then
11020 # This will not work if the preprocessor splits the line after the
11021 # Autoconf token. The 'unproto' program does that.
11022 cat > conftest.$ac_ext <<EOF
11023 #include <${cf_cv_ncurses_header:-curses.h}>
11025 #ifdef NCURSES_VERSION
11026 Autoconf NCURSES_VERSION
11034 cf_try="$ac_cpp conftest.$ac_ext 2>&5 | grep '^Autoconf ' >conftest.out"
11035 { (eval echo "$as_me:11035: \"$cf_try\"") >&5
11036 (eval $cf_try) 2>&5
11038 echo "$as_me:11038: \$? = $ac_status" >&5
11039 (exit $ac_status); }
11040 if test -f conftest.out ; then
11041 cf_out=`cat conftest.out | sed -e 's%^Autoconf %%' -e 's%^[^"]*"%%' -e 's%".*%%'`
11042 test -n "$cf_out" && cf_cv_ncurses_version="$cf_out"
11047 cat >conftest.$ac_ext <<_ACEOF
11048 #line 11048 "configure"
11049 #include "confdefs.h"
11051 #include <${cf_cv_ncurses_header:-curses.h}>
11055 FILE *fp = fopen("$cf_tempfile", "w");
11056 #ifdef NCURSES_VERSION
11057 # ifdef NCURSES_VERSION_PATCH
11058 fprintf(fp, "%s.%d\n", NCURSES_VERSION, NCURSES_VERSION_PATCH);
11060 fprintf(fp, "%s\n", NCURSES_VERSION);
11063 # ifdef __NCURSES_H
11064 fprintf(fp, "old\n");
11069 ${cf_cv_main_return:-return}(0);
11072 rm -f conftest$ac_exeext
11073 if { (eval echo "$as_me:11073: \"$ac_link\"") >&5
11074 (eval $ac_link) 2>&5
11076 echo "$as_me:11076: \$? = $ac_status" >&5
11077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11078 { (eval echo "$as_me:11078: \"$ac_try\"") >&5
11079 (eval $ac_try) 2>&5
11081 echo "$as_me:11081: \$? = $ac_status" >&5
11082 (exit $ac_status); }; }; then
11084 cf_cv_ncurses_version=`cat $cf_tempfile`
11086 echo "$as_me: program exited with status $ac_status" >&5
11087 echo "$as_me: failed program was:" >&5
11088 cat conftest.$ac_ext >&5
11090 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11095 echo "$as_me:11095: result: $cf_cv_ncurses_version" >&5
11096 echo "${ECHO_T}$cf_cv_ncurses_version" >&6
11097 test "$cf_cv_ncurses_version" = no ||
11098 cat >>confdefs.h <<\EOF
11102 cf_nculib_root=$cf_cv_screen
11103 # This works, except for the special case where we find gpm, but
11104 # ncurses is in a nonstandard location via $LIBS, and we really want
11107 cf_ncurses_SAVE="$LIBS"
11108 echo "$as_me:11108: checking for Gpm_Open in -lgpm" >&5
11109 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6
11110 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
11111 echo $ECHO_N "(cached) $ECHO_C" >&6
11113 ac_check_lib_save_LIBS=$LIBS
11115 cat >conftest.$ac_ext <<_ACEOF
11116 #line 11116 "configure"
11117 #include "confdefs.h"
11119 /* Override any gcc2 internal prototype to avoid an error. */
11123 /* We use char because int might match the return type of a gcc2
11124 builtin and then its argument prototype would still apply. */
11134 rm -f conftest.$ac_objext conftest$ac_exeext
11135 if { (eval echo "$as_me:11135: \"$ac_link\"") >&5
11136 (eval $ac_link) 2>&5
11138 echo "$as_me:11138: \$? = $ac_status" >&5
11139 (exit $ac_status); } &&
11140 { ac_try='test -s conftest$ac_exeext'
11141 { (eval echo "$as_me:11141: \"$ac_try\"") >&5
11142 (eval $ac_try) 2>&5
11144 echo "$as_me:11144: \$? = $ac_status" >&5
11145 (exit $ac_status); }; }; then
11146 ac_cv_lib_gpm_Gpm_Open=yes
11148 echo "$as_me: failed program was:" >&5
11149 cat conftest.$ac_ext >&5
11150 ac_cv_lib_gpm_Gpm_Open=no
11152 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11153 LIBS=$ac_check_lib_save_LIBS
11155 echo "$as_me:11155: result: $ac_cv_lib_gpm_Gpm_Open" >&5
11156 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6
11157 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
11158 echo "$as_me:11158: checking for initscr in -lgpm" >&5
11159 echo $ECHO_N "checking for initscr in -lgpm... $ECHO_C" >&6
11160 if test "${ac_cv_lib_gpm_initscr+set}" = set; then
11161 echo $ECHO_N "(cached) $ECHO_C" >&6
11163 ac_check_lib_save_LIBS=$LIBS
11165 cat >conftest.$ac_ext <<_ACEOF
11166 #line 11166 "configure"
11167 #include "confdefs.h"
11169 /* Override any gcc2 internal prototype to avoid an error. */
11173 /* We use char because int might match the return type of a gcc2
11174 builtin and then its argument prototype would still apply. */
11184 rm -f conftest.$ac_objext conftest$ac_exeext
11185 if { (eval echo "$as_me:11185: \"$ac_link\"") >&5
11186 (eval $ac_link) 2>&5
11188 echo "$as_me:11188: \$? = $ac_status" >&5
11189 (exit $ac_status); } &&
11190 { ac_try='test -s conftest$ac_exeext'
11191 { (eval echo "$as_me:11191: \"$ac_try\"") >&5
11192 (eval $ac_try) 2>&5
11194 echo "$as_me:11194: \$? = $ac_status" >&5
11195 (exit $ac_status); }; }; then
11196 ac_cv_lib_gpm_initscr=yes
11198 echo "$as_me: failed program was:" >&5
11199 cat conftest.$ac_ext >&5
11200 ac_cv_lib_gpm_initscr=no
11202 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11203 LIBS=$ac_check_lib_save_LIBS
11205 echo "$as_me:11205: result: $ac_cv_lib_gpm_initscr" >&5
11206 echo "${ECHO_T}$ac_cv_lib_gpm_initscr" >&6
11207 if test $ac_cv_lib_gpm_initscr = yes; then
11208 LIBS="$cf_ncurses_SAVE"
11210 cf_ncurses_LIBS="-lgpm"
11217 # This is only necessary if you are linking against an obsolete
11218 # version of ncurses (but it should do no harm, since it's static).
11219 if test "$cf_nculib_root" = ncurses ; then
11220 echo "$as_me:11220: checking for tgoto in -lmytinfo" >&5
11221 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
11222 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
11223 echo $ECHO_N "(cached) $ECHO_C" >&6
11225 ac_check_lib_save_LIBS=$LIBS
11226 LIBS="-lmytinfo $LIBS"
11227 cat >conftest.$ac_ext <<_ACEOF
11228 #line 11228 "configure"
11229 #include "confdefs.h"
11231 /* Override any gcc2 internal prototype to avoid an error. */
11235 /* We use char because int might match the return type of a gcc2
11236 builtin and then its argument prototype would still apply. */
11246 rm -f conftest.$ac_objext conftest$ac_exeext
11247 if { (eval echo "$as_me:11247: \"$ac_link\"") >&5
11248 (eval $ac_link) 2>&5
11250 echo "$as_me:11250: \$? = $ac_status" >&5
11251 (exit $ac_status); } &&
11252 { ac_try='test -s conftest$ac_exeext'
11253 { (eval echo "$as_me:11253: \"$ac_try\"") >&5
11254 (eval $ac_try) 2>&5
11256 echo "$as_me:11256: \$? = $ac_status" >&5
11257 (exit $ac_status); }; }; then
11258 ac_cv_lib_mytinfo_tgoto=yes
11260 echo "$as_me: failed program was:" >&5
11261 cat conftest.$ac_ext >&5
11262 ac_cv_lib_mytinfo_tgoto=no
11264 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11265 LIBS=$ac_check_lib_save_LIBS
11267 echo "$as_me:11267: result: $ac_cv_lib_mytinfo_tgoto" >&5
11268 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
11269 if test $ac_cv_lib_mytinfo_tgoto = yes; then
11270 cf_ncurses_LIBS="-lmytinfo $cf_ncurses_LIBS"
11277 cf_add_libs="$LIBS"
11280 for cf_add_1lib in $cf_ncurses_LIBS; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
11281 # filter duplicates
11282 for cf_add_1lib in $cf_add_0lib; do
11283 for cf_add_2lib in $cf_add_libs; do
11284 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
11289 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
11291 LIBS="$cf_add_libs"
11293 if ( test -n "$cf_cv_curses_dir" && test "$cf_cv_curses_dir" != "no" )
11296 cf_add_libs="$LIBS"
11299 for cf_add_1lib in -l$cf_nculib_root; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
11300 # filter duplicates
11301 for cf_add_1lib in $cf_add_0lib; do
11302 for cf_add_2lib in $cf_add_libs; do
11303 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
11308 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
11310 LIBS="$cf_add_libs"
11314 eval 'cf_cv_have_lib_'$cf_nculib_root'=no'
11316 echo "$as_me:11316: checking for initscr" >&5
11317 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
11318 if test "${ac_cv_func_initscr+set}" = set; then
11319 echo $ECHO_N "(cached) $ECHO_C" >&6
11321 cat >conftest.$ac_ext <<_ACEOF
11322 #line 11322 "configure"
11323 #include "confdefs.h"
11324 #define initscr autoconf_temporary
11325 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
11332 /* We use char because int might match the return type of a gcc2
11333 builtin and then its argument prototype would still apply. */
11334 char initscr (void);
11340 /* The GNU C library defines stubs for functions which it implements
11341 to always fail with ENOSYS. Some functions are actually named
11342 something starting with __ and the normal name is an alias. */
11343 #if defined (__stub_initscr) || defined (__stub___initscr)
11344 #error found stub for initscr
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_func_initscr=yes
11366 echo "$as_me: failed program was:" >&5
11367 cat conftest.$ac_ext >&5
11368 ac_cv_func_initscr=no
11370 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11372 echo "$as_me:11372: result: $ac_cv_func_initscr" >&5
11373 echo "${ECHO_T}$ac_cv_func_initscr" >&6
11374 if test $ac_cv_func_initscr = yes; then
11375 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
11378 cf_save_LIBS="$LIBS"
11379 echo "$as_me:11379: checking for initscr in -l$cf_nculib_root" >&5
11380 echo $ECHO_N "checking for initscr in -l$cf_nculib_root... $ECHO_C" >&6
11381 LIBS="-l$cf_nculib_root $LIBS"
11382 cat >conftest.$ac_ext <<_ACEOF
11383 #line 11383 "configure"
11384 #include "confdefs.h"
11385 #include <${cf_cv_ncurses_header:-curses.h}>
11394 rm -f conftest.$ac_objext conftest$ac_exeext
11395 if { (eval echo "$as_me:11395: \"$ac_link\"") >&5
11396 (eval $ac_link) 2>&5
11398 echo "$as_me:11398: \$? = $ac_status" >&5
11399 (exit $ac_status); } &&
11400 { ac_try='test -s conftest$ac_exeext'
11401 { (eval echo "$as_me:11401: \"$ac_try\"") >&5
11402 (eval $ac_try) 2>&5
11404 echo "$as_me:11404: \$? = $ac_status" >&5
11405 (exit $ac_status); }; }; then
11406 echo "$as_me:11406: result: yes" >&5
11407 echo "${ECHO_T}yes" >&6
11408 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
11411 echo "$as_me: failed program was:" >&5
11412 cat conftest.$ac_ext >&5
11413 echo "$as_me:11413: result: no" >&5
11414 echo "${ECHO_T}no" >&6
11417 cf_library_path_list=""
11418 if test -n "${LDFLAGS}${LIBS}" ; then
11419 for cf_library_path in $LDFLAGS $LIBS
11421 case $cf_library_path in
11423 cf_library_path=`echo ".$cf_library_path" |sed -e 's/^...//' -e 's,/lib$,,'`
11425 test "x$cf_library_path" != "xNONE" && \
11426 test -d "$cf_library_path" && \
11428 test -n "$verbose" && echo " ... testing for lib-directories under $cf_library_path"
11429 test -d $cf_library_path/lib && cf_search="$cf_search $cf_library_path/lib"
11430 test -d $cf_library_path/lib/$cf_nculib_root && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root"
11431 test -d $cf_library_path/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/lib/$cf_nculib_root/lib"
11432 test -d $cf_library_path/$cf_nculib_root/lib && cf_search="$cf_search $cf_library_path/$cf_nculib_root/lib"
11433 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"
11436 cf_library_path_list="$cf_library_path_list $cf_search"
11444 test "x$prefix" != "xNONE" && \
11445 test -d "$prefix" && \
11447 test -n "$verbose" && echo " ... testing for lib-directories under $prefix"
11448 test -d $prefix/lib && cf_search="$cf_search $prefix/lib"
11449 test -d $prefix/lib/$cf_nculib_root && cf_search="$cf_search $prefix/lib/$cf_nculib_root"
11450 test -d $prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $prefix/lib/$cf_nculib_root/lib"
11451 test -d $prefix/$cf_nculib_root/lib && cf_search="$cf_search $prefix/$cf_nculib_root/lib"
11452 test -d $prefix/$cf_nculib_root/lib/$cf_nculib_root && cf_search="$cf_search $prefix/$cf_nculib_root/lib/$cf_nculib_root"
11455 for cf_subdir_prefix in \
11464 test "x$cf_subdir_prefix" != "x$prefix" && \
11465 test -d "$cf_subdir_prefix" && \
11466 (test -z "$prefix" || test x$prefix = xNONE || test "x$cf_subdir_prefix" != "x$prefix") && {
11467 test -n "$verbose" && echo " ... testing for lib-directories under $cf_subdir_prefix"
11468 test -d $cf_subdir_prefix/lib && cf_search="$cf_search $cf_subdir_prefix/lib"
11469 test -d $cf_subdir_prefix/lib/$cf_nculib_root && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root"
11470 test -d $cf_subdir_prefix/lib/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/lib/$cf_nculib_root/lib"
11471 test -d $cf_subdir_prefix/$cf_nculib_root/lib && cf_search="$cf_search $cf_subdir_prefix/$cf_nculib_root/lib"
11472 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"
11477 cf_search="$cf_library_path_list $cf_search"
11479 for cf_libdir in $cf_search
11481 echo "$as_me:11481: checking for -l$cf_nculib_root in $cf_libdir" >&5
11482 echo $ECHO_N "checking for -l$cf_nculib_root in $cf_libdir... $ECHO_C" >&6
11483 LIBS="-L$cf_libdir -l$cf_nculib_root $cf_save_LIBS"
11484 cat >conftest.$ac_ext <<_ACEOF
11485 #line 11485 "configure"
11486 #include "confdefs.h"
11487 #include <${cf_cv_ncurses_header:-curses.h}>
11496 rm -f conftest.$ac_objext conftest$ac_exeext
11497 if { (eval echo "$as_me:11497: \"$ac_link\"") >&5
11498 (eval $ac_link) 2>&5
11500 echo "$as_me:11500: \$? = $ac_status" >&5
11501 (exit $ac_status); } &&
11502 { ac_try='test -s conftest$ac_exeext'
11503 { (eval echo "$as_me:11503: \"$ac_try\"") >&5
11504 (eval $ac_try) 2>&5
11506 echo "$as_me:11506: \$? = $ac_status" >&5
11507 (exit $ac_status); }; }; then
11508 echo "$as_me:11508: result: yes" >&5
11509 echo "${ECHO_T}yes" >&6
11510 eval 'cf_cv_have_lib_'$cf_nculib_root'=yes'
11513 echo "$as_me: failed program was:" >&5
11514 cat conftest.$ac_ext >&5
11515 echo "$as_me:11515: result: no" >&5
11516 echo "${ECHO_T}no" >&6
11517 LIBS="$cf_save_LIBS"
11519 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11523 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11527 eval 'cf_found_library=$cf_cv_have_lib_'$cf_nculib_root
11529 if test $cf_found_library = no ; then
11530 { { echo "$as_me:11530: error: Cannot link $cf_nculib_root library" >&5
11531 echo "$as_me: error: Cannot link $cf_nculib_root library" >&2;}
11532 { (exit 1); exit 1; }; }
11537 if test -n "$cf_ncurses_LIBS" ; then
11538 echo "$as_me:11538: checking if we can link $cf_nculib_root without $cf_ncurses_LIBS" >&5
11539 echo $ECHO_N "checking if we can link $cf_nculib_root without $cf_ncurses_LIBS... $ECHO_C" >&6
11540 cf_ncurses_SAVE="$LIBS"
11541 for p in $cf_ncurses_LIBS ; do
11542 q=`echo $LIBS | sed -e "s%$p %%" -e "s%$p$%%"`
11543 if test "$q" != "$LIBS" ; then
11547 cat >conftest.$ac_ext <<_ACEOF
11548 #line 11548 "configure"
11549 #include "confdefs.h"
11550 #include <${cf_cv_ncurses_header:-curses.h}>
11554 initscr(); mousemask(0,0); tgoto((char *)0, 0, 0);
11559 rm -f conftest.$ac_objext conftest$ac_exeext
11560 if { (eval echo "$as_me:11560: \"$ac_link\"") >&5
11561 (eval $ac_link) 2>&5
11563 echo "$as_me:11563: \$? = $ac_status" >&5
11564 (exit $ac_status); } &&
11565 { ac_try='test -s conftest$ac_exeext'
11566 { (eval echo "$as_me:11566: \"$ac_try\"") >&5
11567 (eval $ac_try) 2>&5
11569 echo "$as_me:11569: \$? = $ac_status" >&5
11570 (exit $ac_status); }; }; then
11571 echo "$as_me:11571: result: yes" >&5
11572 echo "${ECHO_T}yes" >&6
11574 echo "$as_me: failed program was:" >&5
11575 cat conftest.$ac_ext >&5
11576 echo "$as_me:11576: result: no" >&5
11577 echo "${ECHO_T}no" >&6
11578 LIBS="$cf_ncurses_SAVE"
11580 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11583 cf_nculib_ROOT=`echo "HAVE_LIB$cf_nculib_root" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
11585 cat >>confdefs.h <<EOF
11586 #define $cf_nculib_ROOT 1
11591 NCURSES_CONFIG=none
11596 echo "$as_me:11596: checking for X" >&5
11597 echo $ECHO_N "checking for X... $ECHO_C" >&6
11599 # Check whether --with-x or --without-x was given.
11600 if test "${with_x+set}" = set; then
11604 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11605 if test "x$with_x" = xno; then
11606 # The user explicitly disabled X.
11609 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
11610 # Both variables are already set.
11613 if test "${ac_cv_have_x+set}" = set; then
11614 echo $ECHO_N "(cached) $ECHO_C" >&6
11616 # One or both of the vars are not set, and there is no cached value.
11617 ac_x_includes=no ac_x_libraries=no
11618 rm -fr conftest.dir
11619 if mkdir conftest.dir; then
11621 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
11622 cat >Imakefile <<'EOF'
11624 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
11626 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
11627 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11628 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
11629 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11630 for ac_extension in a so sl dylib dll; do
11631 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
11632 test -f $ac_im_libdir/libX11.$ac_extension; then
11633 ac_im_usrlibdir=$ac_im_libdir; break
11636 # Screen out bogus values from the imake configuration. They are
11637 # bogus both because they are the default anyway, and because
11638 # using them would break gcc on systems where it needs fixed includes.
11639 case $ac_im_incroot in
11641 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11643 case $ac_im_usrlibdir in
11644 /usr/lib | /lib) ;;
11645 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11649 rm -fr conftest.dir
11652 # Standard set of common directories for X headers.
11653 # Check X11 before X11Rn because it is often a symlink to the current release.
11670 /usr/local/X11/include
11671 /usr/local/X11R7/include
11672 /usr/local/X11R6/include
11673 /usr/local/X11R5/include
11674 /usr/local/X11R4/include
11676 /usr/local/include/X11
11677 /usr/local/include/X11R7
11678 /usr/local/include/X11R6
11679 /usr/local/include/X11R5
11680 /usr/local/include/X11R4
11684 /usr/XFree86/include/X11
11688 /usr/unsupported/include
11689 /usr/athena/include
11690 /usr/local/x11r5/include
11691 /usr/lpp/Xamples/include
11693 /usr/openwin/include
11694 /usr/openwin/share/include'
11696 if test "$ac_x_includes" = no; then
11697 # Guess where to find include files, by looking for Intrinsic.h.
11698 # First, try using that file with no special directory specified.
11699 cat >conftest.$ac_ext <<_ACEOF
11700 #line 11700 "configure"
11701 #include "confdefs.h"
11702 #include <X11/Intrinsic.h>
11704 if { (eval echo "$as_me:11704: \"$ac_cpp conftest.$ac_ext\"") >&5
11705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11707 egrep -v '^ *\+' conftest.er1 >conftest.err
11709 cat conftest.err >&5
11710 echo "$as_me:11710: \$? = $ac_status" >&5
11711 (exit $ac_status); } >/dev/null; then
11712 if test -s conftest.err; then
11713 ac_cpp_err=$ac_c_preproc_warn_flag
11720 if test -z "$ac_cpp_err"; then
11721 # We can compile using X headers with no special include directory.
11724 echo "$as_me: failed program was:" >&5
11725 cat conftest.$ac_ext >&5
11726 for ac_dir in $ac_x_header_dirs; do
11727 if test -r "$ac_dir/X11/Intrinsic.h"; then
11728 ac_x_includes=$ac_dir
11733 rm -f conftest.err conftest.$ac_ext
11734 fi # $ac_x_includes = no
11736 if test "$ac_x_libraries" = no; then
11737 # Check for the libraries.
11738 # See if we find them without any special options.
11739 # Don't add to $LIBS permanently.
11742 cat >conftest.$ac_ext <<_ACEOF
11743 #line 11743 "configure"
11744 #include "confdefs.h"
11745 #include <X11/Intrinsic.h>
11754 rm -f conftest.$ac_objext conftest$ac_exeext
11755 if { (eval echo "$as_me:11755: \"$ac_link\"") >&5
11756 (eval $ac_link) 2>&5
11758 echo "$as_me:11758: \$? = $ac_status" >&5
11759 (exit $ac_status); } &&
11760 { ac_try='test -s conftest$ac_exeext'
11761 { (eval echo "$as_me:11761: \"$ac_try\"") >&5
11762 (eval $ac_try) 2>&5
11764 echo "$as_me:11764: \$? = $ac_status" >&5
11765 (exit $ac_status); }; }; then
11767 # We can link X programs with no special library path.
11770 echo "$as_me: failed program was:" >&5
11771 cat conftest.$ac_ext >&5
11773 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11775 # Don't even attempt the hair of trying to link an X program!
11776 for ac_extension in a so sl dylib dll; do
11777 if test -r $ac_dir/libXt.$ac_extension; then
11778 ac_x_libraries=$ac_dir
11784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11785 fi # $ac_x_libraries = no
11787 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
11788 # Didn't find X anywhere. Cache the known absence of X.
11789 ac_cv_have_x="have_x=no"
11791 # Record where we found X for the cache.
11792 ac_cv_have_x="have_x=yes \
11793 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
11798 eval "$ac_cv_have_x"
11801 if test "$have_x" != yes; then
11802 echo "$as_me:11802: result: $have_x" >&5
11803 echo "${ECHO_T}$have_x" >&6
11806 # If each of the values was on the command line, it overrides each guess.
11807 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11808 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11809 # Update the cache value to reflect the command line values.
11810 ac_cv_have_x="have_x=yes \
11811 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
11812 echo "$as_me:11812: result: libraries $x_libraries, headers $x_includes" >&5
11813 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
11816 if test "$no_x" = yes; then
11817 # Not all programs may use this symbol, but it does not hurt to define it.
11819 cat >>confdefs.h <<\EOF
11820 #define X_DISPLAY_MISSING 1
11823 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11825 if test -n "$x_includes"; then
11826 X_CFLAGS="$X_CFLAGS -I$x_includes"
11829 # It would also be nice to do this for all -L options, not just this one.
11830 if test -n "$x_libraries"; then
11831 X_LIBS="$X_LIBS -L$x_libraries"
11832 # For Solaris; some versions of Sun CC require a space after -R and
11833 # others require no space. Words are not sufficient . . . .
11834 case `(uname -sr) 2>/dev/null` in
11836 echo "$as_me:11836: checking whether -R must be followed by a space" >&5
11837 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
11838 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
11839 cat >conftest.$ac_ext <<_ACEOF
11840 #line 11840 "configure"
11841 #include "confdefs.h"
11851 rm -f conftest.$ac_objext conftest$ac_exeext
11852 if { (eval echo "$as_me:11852: \"$ac_link\"") >&5
11853 (eval $ac_link) 2>&5
11855 echo "$as_me:11855: \$? = $ac_status" >&5
11856 (exit $ac_status); } &&
11857 { ac_try='test -s conftest$ac_exeext'
11858 { (eval echo "$as_me:11858: \"$ac_try\"") >&5
11859 (eval $ac_try) 2>&5
11861 echo "$as_me:11861: \$? = $ac_status" >&5
11862 (exit $ac_status); }; }; then
11865 echo "$as_me: failed program was:" >&5
11866 cat conftest.$ac_ext >&5
11869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11870 if test $ac_R_nospace = yes; then
11871 echo "$as_me:11871: result: no" >&5
11872 echo "${ECHO_T}no" >&6
11873 X_LIBS="$X_LIBS -R$x_libraries"
11875 LIBS="$ac_xsave_LIBS -R $x_libraries"
11876 cat >conftest.$ac_ext <<_ACEOF
11877 #line 11877 "configure"
11878 #include "confdefs.h"
11888 rm -f conftest.$ac_objext conftest$ac_exeext
11889 if { (eval echo "$as_me:11889: \"$ac_link\"") >&5
11890 (eval $ac_link) 2>&5
11892 echo "$as_me:11892: \$? = $ac_status" >&5
11893 (exit $ac_status); } &&
11894 { ac_try='test -s conftest$ac_exeext'
11895 { (eval echo "$as_me:11895: \"$ac_try\"") >&5
11896 (eval $ac_try) 2>&5
11898 echo "$as_me:11898: \$? = $ac_status" >&5
11899 (exit $ac_status); }; }; then
11902 echo "$as_me: failed program was:" >&5
11903 cat conftest.$ac_ext >&5
11906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11907 if test $ac_R_space = yes; then
11908 echo "$as_me:11908: result: yes" >&5
11909 echo "${ECHO_T}yes" >&6
11910 X_LIBS="$X_LIBS -R $x_libraries"
11912 echo "$as_me:11912: result: neither works" >&5
11913 echo "${ECHO_T}neither works" >&6
11916 LIBS=$ac_xsave_LIBS
11920 # Check for system-dependent libraries X programs must link with.
11921 # Do this before checking for the system-independent R6 libraries
11922 # (-lICE), since we may need -lsocket or whatever for X linking.
11924 if test "$ISC" = yes; then
11925 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11927 # Martyn Johnson says this is needed for Ultrix, if the X
11928 # libraries were built with DECnet support. And Karl Berry says
11929 # the Alpha needs dnet_stub (dnet does not exist).
11930 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
11931 cat >conftest.$ac_ext <<_ACEOF
11932 #line 11932 "configure"
11933 #include "confdefs.h"
11935 /* Override any gcc2 internal prototype to avoid an error. */
11939 /* We use char because int might match the return type of a gcc2
11940 builtin and then its argument prototype would still apply. */
11941 char XOpenDisplay ();
11950 rm -f conftest.$ac_objext conftest$ac_exeext
11951 if { (eval echo "$as_me:11951: \"$ac_link\"") >&5
11952 (eval $ac_link) 2>&5
11954 echo "$as_me:11954: \$? = $ac_status" >&5
11955 (exit $ac_status); } &&
11956 { ac_try='test -s conftest$ac_exeext'
11957 { (eval echo "$as_me:11957: \"$ac_try\"") >&5
11958 (eval $ac_try) 2>&5
11960 echo "$as_me:11960: \$? = $ac_status" >&5
11961 (exit $ac_status); }; }; then
11964 echo "$as_me: failed program was:" >&5
11965 cat conftest.$ac_ext >&5
11966 echo "$as_me:11966: checking for dnet_ntoa in -ldnet" >&5
11967 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
11968 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
11969 echo $ECHO_N "(cached) $ECHO_C" >&6
11971 ac_check_lib_save_LIBS=$LIBS
11972 LIBS="-ldnet $LIBS"
11973 cat >conftest.$ac_ext <<_ACEOF
11974 #line 11974 "configure"
11975 #include "confdefs.h"
11977 /* Override any gcc2 internal prototype to avoid an error. */
11981 /* We use char because int might match the return type of a gcc2
11982 builtin and then its argument prototype would still apply. */
11992 rm -f conftest.$ac_objext conftest$ac_exeext
11993 if { (eval echo "$as_me:11993: \"$ac_link\"") >&5
11994 (eval $ac_link) 2>&5
11996 echo "$as_me:11996: \$? = $ac_status" >&5
11997 (exit $ac_status); } &&
11998 { ac_try='test -s conftest$ac_exeext'
11999 { (eval echo "$as_me:11999: \"$ac_try\"") >&5
12000 (eval $ac_try) 2>&5
12002 echo "$as_me:12002: \$? = $ac_status" >&5
12003 (exit $ac_status); }; }; then
12004 ac_cv_lib_dnet_dnet_ntoa=yes
12006 echo "$as_me: failed program was:" >&5
12007 cat conftest.$ac_ext >&5
12008 ac_cv_lib_dnet_dnet_ntoa=no
12010 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12011 LIBS=$ac_check_lib_save_LIBS
12013 echo "$as_me:12013: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
12014 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
12015 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
12016 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
12019 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
12020 echo "$as_me:12020: checking for dnet_ntoa in -ldnet_stub" >&5
12021 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
12022 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
12023 echo $ECHO_N "(cached) $ECHO_C" >&6
12025 ac_check_lib_save_LIBS=$LIBS
12026 LIBS="-ldnet_stub $LIBS"
12027 cat >conftest.$ac_ext <<_ACEOF
12028 #line 12028 "configure"
12029 #include "confdefs.h"
12031 /* Override any gcc2 internal prototype to avoid an error. */
12035 /* We use char because int might match the return type of a gcc2
12036 builtin and then its argument prototype would still apply. */
12046 rm -f conftest.$ac_objext conftest$ac_exeext
12047 if { (eval echo "$as_me:12047: \"$ac_link\"") >&5
12048 (eval $ac_link) 2>&5
12050 echo "$as_me:12050: \$? = $ac_status" >&5
12051 (exit $ac_status); } &&
12052 { ac_try='test -s conftest$ac_exeext'
12053 { (eval echo "$as_me:12053: \"$ac_try\"") >&5
12054 (eval $ac_try) 2>&5
12056 echo "$as_me:12056: \$? = $ac_status" >&5
12057 (exit $ac_status); }; }; then
12058 ac_cv_lib_dnet_stub_dnet_ntoa=yes
12060 echo "$as_me: failed program was:" >&5
12061 cat conftest.$ac_ext >&5
12062 ac_cv_lib_dnet_stub_dnet_ntoa=no
12064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12065 LIBS=$ac_check_lib_save_LIBS
12067 echo "$as_me:12067: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
12068 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
12069 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
12070 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12075 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12076 LIBS="$ac_xsave_LIBS"
12078 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
12079 # to get the SysV transport functions.
12080 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
12082 # The nsl library prevents programs from opening the X display
12083 # on Irix 5.2, according to T.E. Dickey.
12084 # The functions gethostbyname, getservbyname, and inet_addr are
12085 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
12086 echo "$as_me:12086: checking for gethostbyname" >&5
12087 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
12088 if test "${ac_cv_func_gethostbyname+set}" = set; then
12089 echo $ECHO_N "(cached) $ECHO_C" >&6
12091 cat >conftest.$ac_ext <<_ACEOF
12092 #line 12092 "configure"
12093 #include "confdefs.h"
12094 #define gethostbyname autoconf_temporary
12095 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
12096 #undef gethostbyname
12102 /* We use char because int might match the return type of a gcc2
12103 builtin and then its argument prototype would still apply. */
12104 char gethostbyname (void);
12110 /* The GNU C library defines stubs for functions which it implements
12111 to always fail with ENOSYS. Some functions are actually named
12112 something starting with __ and the normal name is an alias. */
12113 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12114 #error found stub for gethostbyname
12117 return gethostbyname ();
12122 rm -f conftest.$ac_objext conftest$ac_exeext
12123 if { (eval echo "$as_me:12123: \"$ac_link\"") >&5
12124 (eval $ac_link) 2>&5
12126 echo "$as_me:12126: \$? = $ac_status" >&5
12127 (exit $ac_status); } &&
12128 { ac_try='test -s conftest$ac_exeext'
12129 { (eval echo "$as_me:12129: \"$ac_try\"") >&5
12130 (eval $ac_try) 2>&5
12132 echo "$as_me:12132: \$? = $ac_status" >&5
12133 (exit $ac_status); }; }; then
12134 ac_cv_func_gethostbyname=yes
12136 echo "$as_me: failed program was:" >&5
12137 cat conftest.$ac_ext >&5
12138 ac_cv_func_gethostbyname=no
12140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12142 echo "$as_me:12142: result: $ac_cv_func_gethostbyname" >&5
12143 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
12145 if test $ac_cv_func_gethostbyname = no; then
12146 echo "$as_me:12146: checking for gethostbyname in -lnsl" >&5
12147 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
12148 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
12149 echo $ECHO_N "(cached) $ECHO_C" >&6
12151 ac_check_lib_save_LIBS=$LIBS
12153 cat >conftest.$ac_ext <<_ACEOF
12154 #line 12154 "configure"
12155 #include "confdefs.h"
12157 /* Override any gcc2 internal prototype to avoid an error. */
12161 /* We use char because int might match the return type of a gcc2
12162 builtin and then its argument prototype would still apply. */
12163 char gethostbyname ();
12172 rm -f conftest.$ac_objext conftest$ac_exeext
12173 if { (eval echo "$as_me:12173: \"$ac_link\"") >&5
12174 (eval $ac_link) 2>&5
12176 echo "$as_me:12176: \$? = $ac_status" >&5
12177 (exit $ac_status); } &&
12178 { ac_try='test -s conftest$ac_exeext'
12179 { (eval echo "$as_me:12179: \"$ac_try\"") >&5
12180 (eval $ac_try) 2>&5
12182 echo "$as_me:12182: \$? = $ac_status" >&5
12183 (exit $ac_status); }; }; then
12184 ac_cv_lib_nsl_gethostbyname=yes
12186 echo "$as_me: failed program was:" >&5
12187 cat conftest.$ac_ext >&5
12188 ac_cv_lib_nsl_gethostbyname=no
12190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12191 LIBS=$ac_check_lib_save_LIBS
12193 echo "$as_me:12193: result: $ac_cv_lib_nsl_gethostbyname" >&5
12194 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
12195 if test $ac_cv_lib_nsl_gethostbyname = yes; then
12196 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
12199 if test $ac_cv_lib_nsl_gethostbyname = no; then
12200 echo "$as_me:12200: checking for gethostbyname in -lbsd" >&5
12201 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
12202 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
12203 echo $ECHO_N "(cached) $ECHO_C" >&6
12205 ac_check_lib_save_LIBS=$LIBS
12207 cat >conftest.$ac_ext <<_ACEOF
12208 #line 12208 "configure"
12209 #include "confdefs.h"
12211 /* Override any gcc2 internal prototype to avoid an error. */
12215 /* We use char because int might match the return type of a gcc2
12216 builtin and then its argument prototype would still apply. */
12217 char gethostbyname ();
12226 rm -f conftest.$ac_objext conftest$ac_exeext
12227 if { (eval echo "$as_me:12227: \"$ac_link\"") >&5
12228 (eval $ac_link) 2>&5
12230 echo "$as_me:12230: \$? = $ac_status" >&5
12231 (exit $ac_status); } &&
12232 { ac_try='test -s conftest$ac_exeext'
12233 { (eval echo "$as_me:12233: \"$ac_try\"") >&5
12234 (eval $ac_try) 2>&5
12236 echo "$as_me:12236: \$? = $ac_status" >&5
12237 (exit $ac_status); }; }; then
12238 ac_cv_lib_bsd_gethostbyname=yes
12240 echo "$as_me: failed program was:" >&5
12241 cat conftest.$ac_ext >&5
12242 ac_cv_lib_bsd_gethostbyname=no
12244 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12245 LIBS=$ac_check_lib_save_LIBS
12247 echo "$as_me:12247: result: $ac_cv_lib_bsd_gethostbyname" >&5
12248 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
12249 if test $ac_cv_lib_bsd_gethostbyname = yes; then
12250 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
12256 # lieder@skyler.mavd.honeywell.com says without -lsocket,
12257 # socket/setsockopt and other routines are undefined under SCO ODT
12258 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
12259 # on later versions), says Simon Leinen: it contains gethostby*
12260 # variants that don't use the nameserver (or something). -lsocket
12261 # must be given before -lnsl if both are needed. We assume that
12262 # if connect needs -lnsl, so does gethostbyname.
12263 echo "$as_me:12263: checking for connect" >&5
12264 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12265 if test "${ac_cv_func_connect+set}" = set; then
12266 echo $ECHO_N "(cached) $ECHO_C" >&6
12268 cat >conftest.$ac_ext <<_ACEOF
12269 #line 12269 "configure"
12270 #include "confdefs.h"
12271 #define connect autoconf_temporary
12272 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
12279 /* We use char because int might match the return type of a gcc2
12280 builtin and then its argument prototype would still apply. */
12281 char connect (void);
12287 /* The GNU C library defines stubs for functions which it implements
12288 to always fail with ENOSYS. Some functions are actually named
12289 something starting with __ and the normal name is an alias. */
12290 #if defined (__stub_connect) || defined (__stub___connect)
12291 #error found stub for connect
12299 rm -f conftest.$ac_objext conftest$ac_exeext
12300 if { (eval echo "$as_me:12300: \"$ac_link\"") >&5
12301 (eval $ac_link) 2>&5
12303 echo "$as_me:12303: \$? = $ac_status" >&5
12304 (exit $ac_status); } &&
12305 { ac_try='test -s conftest$ac_exeext'
12306 { (eval echo "$as_me:12306: \"$ac_try\"") >&5
12307 (eval $ac_try) 2>&5
12309 echo "$as_me:12309: \$? = $ac_status" >&5
12310 (exit $ac_status); }; }; then
12311 ac_cv_func_connect=yes
12313 echo "$as_me: failed program was:" >&5
12314 cat conftest.$ac_ext >&5
12315 ac_cv_func_connect=no
12317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12319 echo "$as_me:12319: result: $ac_cv_func_connect" >&5
12320 echo "${ECHO_T}$ac_cv_func_connect" >&6
12322 if test $ac_cv_func_connect = no; then
12323 echo "$as_me:12323: checking for connect in -lsocket" >&5
12324 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
12325 if test "${ac_cv_lib_socket_connect+set}" = set; then
12326 echo $ECHO_N "(cached) $ECHO_C" >&6
12328 ac_check_lib_save_LIBS=$LIBS
12329 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12330 cat >conftest.$ac_ext <<_ACEOF
12331 #line 12331 "configure"
12332 #include "confdefs.h"
12334 /* Override any gcc2 internal prototype to avoid an error. */
12338 /* We use char because int might match the return type of a gcc2
12339 builtin and then its argument prototype would still apply. */
12349 rm -f conftest.$ac_objext conftest$ac_exeext
12350 if { (eval echo "$as_me:12350: \"$ac_link\"") >&5
12351 (eval $ac_link) 2>&5
12353 echo "$as_me:12353: \$? = $ac_status" >&5
12354 (exit $ac_status); } &&
12355 { ac_try='test -s conftest$ac_exeext'
12356 { (eval echo "$as_me:12356: \"$ac_try\"") >&5
12357 (eval $ac_try) 2>&5
12359 echo "$as_me:12359: \$? = $ac_status" >&5
12360 (exit $ac_status); }; }; then
12361 ac_cv_lib_socket_connect=yes
12363 echo "$as_me: failed program was:" >&5
12364 cat conftest.$ac_ext >&5
12365 ac_cv_lib_socket_connect=no
12367 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12368 LIBS=$ac_check_lib_save_LIBS
12370 echo "$as_me:12370: result: $ac_cv_lib_socket_connect" >&5
12371 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
12372 if test $ac_cv_lib_socket_connect = yes; then
12373 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
12378 # Guillermo Gomez says -lposix is necessary on A/UX.
12379 echo "$as_me:12379: checking for remove" >&5
12380 echo $ECHO_N "checking for remove... $ECHO_C" >&6
12381 if test "${ac_cv_func_remove+set}" = set; then
12382 echo $ECHO_N "(cached) $ECHO_C" >&6
12384 cat >conftest.$ac_ext <<_ACEOF
12385 #line 12385 "configure"
12386 #include "confdefs.h"
12387 #define remove autoconf_temporary
12388 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
12395 /* We use char because int might match the return type of a gcc2
12396 builtin and then its argument prototype would still apply. */
12397 char remove (void);
12403 /* The GNU C library defines stubs for functions which it implements
12404 to always fail with ENOSYS. Some functions are actually named
12405 something starting with __ and the normal name is an alias. */
12406 #if defined (__stub_remove) || defined (__stub___remove)
12407 #error found stub for remove
12415 rm -f conftest.$ac_objext conftest$ac_exeext
12416 if { (eval echo "$as_me:12416: \"$ac_link\"") >&5
12417 (eval $ac_link) 2>&5
12419 echo "$as_me:12419: \$? = $ac_status" >&5
12420 (exit $ac_status); } &&
12421 { ac_try='test -s conftest$ac_exeext'
12422 { (eval echo "$as_me:12422: \"$ac_try\"") >&5
12423 (eval $ac_try) 2>&5
12425 echo "$as_me:12425: \$? = $ac_status" >&5
12426 (exit $ac_status); }; }; then
12427 ac_cv_func_remove=yes
12429 echo "$as_me: failed program was:" >&5
12430 cat conftest.$ac_ext >&5
12431 ac_cv_func_remove=no
12433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12435 echo "$as_me:12435: result: $ac_cv_func_remove" >&5
12436 echo "${ECHO_T}$ac_cv_func_remove" >&6
12438 if test $ac_cv_func_remove = no; then
12439 echo "$as_me:12439: checking for remove in -lposix" >&5
12440 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
12441 if test "${ac_cv_lib_posix_remove+set}" = set; then
12442 echo $ECHO_N "(cached) $ECHO_C" >&6
12444 ac_check_lib_save_LIBS=$LIBS
12445 LIBS="-lposix $LIBS"
12446 cat >conftest.$ac_ext <<_ACEOF
12447 #line 12447 "configure"
12448 #include "confdefs.h"
12450 /* Override any gcc2 internal prototype to avoid an error. */
12454 /* We use char because int might match the return type of a gcc2
12455 builtin and then its argument prototype would still apply. */
12465 rm -f conftest.$ac_objext conftest$ac_exeext
12466 if { (eval echo "$as_me:12466: \"$ac_link\"") >&5
12467 (eval $ac_link) 2>&5
12469 echo "$as_me:12469: \$? = $ac_status" >&5
12470 (exit $ac_status); } &&
12471 { ac_try='test -s conftest$ac_exeext'
12472 { (eval echo "$as_me:12472: \"$ac_try\"") >&5
12473 (eval $ac_try) 2>&5
12475 echo "$as_me:12475: \$? = $ac_status" >&5
12476 (exit $ac_status); }; }; then
12477 ac_cv_lib_posix_remove=yes
12479 echo "$as_me: failed program was:" >&5
12480 cat conftest.$ac_ext >&5
12481 ac_cv_lib_posix_remove=no
12483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12484 LIBS=$ac_check_lib_save_LIBS
12486 echo "$as_me:12486: result: $ac_cv_lib_posix_remove" >&5
12487 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
12488 if test $ac_cv_lib_posix_remove = yes; then
12489 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12494 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12495 echo "$as_me:12495: checking for shmat" >&5
12496 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
12497 if test "${ac_cv_func_shmat+set}" = set; then
12498 echo $ECHO_N "(cached) $ECHO_C" >&6
12500 cat >conftest.$ac_ext <<_ACEOF
12501 #line 12501 "configure"
12502 #include "confdefs.h"
12503 #define shmat autoconf_temporary
12504 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
12511 /* We use char because int might match the return type of a gcc2
12512 builtin and then its argument prototype would still apply. */
12519 /* The GNU C library defines stubs for functions which it implements
12520 to always fail with ENOSYS. Some functions are actually named
12521 something starting with __ and the normal name is an alias. */
12522 #if defined (__stub_shmat) || defined (__stub___shmat)
12523 #error found stub for shmat
12531 rm -f conftest.$ac_objext conftest$ac_exeext
12532 if { (eval echo "$as_me:12532: \"$ac_link\"") >&5
12533 (eval $ac_link) 2>&5
12535 echo "$as_me:12535: \$? = $ac_status" >&5
12536 (exit $ac_status); } &&
12537 { ac_try='test -s conftest$ac_exeext'
12538 { (eval echo "$as_me:12538: \"$ac_try\"") >&5
12539 (eval $ac_try) 2>&5
12541 echo "$as_me:12541: \$? = $ac_status" >&5
12542 (exit $ac_status); }; }; then
12543 ac_cv_func_shmat=yes
12545 echo "$as_me: failed program was:" >&5
12546 cat conftest.$ac_ext >&5
12547 ac_cv_func_shmat=no
12549 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12551 echo "$as_me:12551: result: $ac_cv_func_shmat" >&5
12552 echo "${ECHO_T}$ac_cv_func_shmat" >&6
12554 if test $ac_cv_func_shmat = no; then
12555 echo "$as_me:12555: checking for shmat in -lipc" >&5
12556 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
12557 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
12558 echo $ECHO_N "(cached) $ECHO_C" >&6
12560 ac_check_lib_save_LIBS=$LIBS
12562 cat >conftest.$ac_ext <<_ACEOF
12563 #line 12563 "configure"
12564 #include "confdefs.h"
12566 /* Override any gcc2 internal prototype to avoid an error. */
12570 /* We use char because int might match the return type of a gcc2
12571 builtin and then its argument prototype would still apply. */
12581 rm -f conftest.$ac_objext conftest$ac_exeext
12582 if { (eval echo "$as_me:12582: \"$ac_link\"") >&5
12583 (eval $ac_link) 2>&5
12585 echo "$as_me:12585: \$? = $ac_status" >&5
12586 (exit $ac_status); } &&
12587 { ac_try='test -s conftest$ac_exeext'
12588 { (eval echo "$as_me:12588: \"$ac_try\"") >&5
12589 (eval $ac_try) 2>&5
12591 echo "$as_me:12591: \$? = $ac_status" >&5
12592 (exit $ac_status); }; }; then
12593 ac_cv_lib_ipc_shmat=yes
12595 echo "$as_me: failed program was:" >&5
12596 cat conftest.$ac_ext >&5
12597 ac_cv_lib_ipc_shmat=no
12599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12600 LIBS=$ac_check_lib_save_LIBS
12602 echo "$as_me:12602: result: $ac_cv_lib_ipc_shmat" >&5
12603 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
12604 if test $ac_cv_lib_ipc_shmat = yes; then
12605 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12611 # Check for libraries that X11R6 Xt/Xaw programs need.
12612 ac_save_LDFLAGS=$LDFLAGS
12613 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12614 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12615 # check for ICE first), but we must link in the order -lSM -lICE or
12616 # we get undefined symbols. So assume we have SM if we have ICE.
12617 # These have to be linked with before -lX11, unlike the other
12618 # libraries we check for below, so use a different variable.
12619 # John Interrante, Karl Berry
12620 echo "$as_me:12620: checking for IceConnectionNumber in -lICE" >&5
12621 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
12622 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
12623 echo $ECHO_N "(cached) $ECHO_C" >&6
12625 ac_check_lib_save_LIBS=$LIBS
12626 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12627 cat >conftest.$ac_ext <<_ACEOF
12628 #line 12628 "configure"
12629 #include "confdefs.h"
12631 /* Override any gcc2 internal prototype to avoid an error. */
12635 /* We use char because int might match the return type of a gcc2
12636 builtin and then its argument prototype would still apply. */
12637 char IceConnectionNumber ();
12641 IceConnectionNumber ();
12646 rm -f conftest.$ac_objext conftest$ac_exeext
12647 if { (eval echo "$as_me:12647: \"$ac_link\"") >&5
12648 (eval $ac_link) 2>&5
12650 echo "$as_me:12650: \$? = $ac_status" >&5
12651 (exit $ac_status); } &&
12652 { ac_try='test -s conftest$ac_exeext'
12653 { (eval echo "$as_me:12653: \"$ac_try\"") >&5
12654 (eval $ac_try) 2>&5
12656 echo "$as_me:12656: \$? = $ac_status" >&5
12657 (exit $ac_status); }; }; then
12658 ac_cv_lib_ICE_IceConnectionNumber=yes
12660 echo "$as_me: failed program was:" >&5
12661 cat conftest.$ac_ext >&5
12662 ac_cv_lib_ICE_IceConnectionNumber=no
12664 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12665 LIBS=$ac_check_lib_save_LIBS
12667 echo "$as_me:12667: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
12668 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
12669 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
12670 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12673 LDFLAGS=$ac_save_LDFLAGS
12677 cf_x_athena=${cf_x_athena:-Xaw}
12679 echo "$as_me:12679: checking if you want to link with Xaw 3d library" >&5
12680 echo $ECHO_N "checking if you want to link with Xaw 3d library... $ECHO_C" >&6
12683 # Check whether --with-Xaw3d or --without-Xaw3d was given.
12684 if test "${with_Xaw3d+set}" = set; then
12685 withval="$with_Xaw3d"
12688 if test "$withval" = yes ; then
12690 echo "$as_me:12690: result: yes" >&5
12691 echo "${ECHO_T}yes" >&6
12693 echo "$as_me:12693: result: no" >&5
12694 echo "${ECHO_T}no" >&6
12697 echo "$as_me:12697: checking if you want to link with Xaw 3d xft library" >&5
12698 echo $ECHO_N "checking if you want to link with Xaw 3d xft library... $ECHO_C" >&6
12701 # Check whether --with-Xaw3dxft or --without-Xaw3dxft was given.
12702 if test "${with_Xaw3dxft+set}" = set; then
12703 withval="$with_Xaw3dxft"
12706 if test "$withval" = yes ; then
12707 cf_x_athena=Xaw3dxft
12708 echo "$as_me:12708: result: yes" >&5
12709 echo "${ECHO_T}yes" >&6
12711 echo "$as_me:12711: result: no" >&5
12712 echo "${ECHO_T}no" >&6
12715 echo "$as_me:12715: checking if you want to link with neXT Athena library" >&5
12716 echo $ECHO_N "checking if you want to link with neXT Athena library... $ECHO_C" >&6
12719 # Check whether --with-neXtaw or --without-neXtaw was given.
12720 if test "${with_neXtaw+set}" = set; then
12721 withval="$with_neXtaw"
12724 if test "$withval" = yes ; then
12726 echo "$as_me:12726: result: yes" >&5
12727 echo "${ECHO_T}yes" >&6
12729 echo "$as_me:12729: result: no" >&5
12730 echo "${ECHO_T}no" >&6
12733 echo "$as_me:12733: checking if you want to link with Athena-Plus library" >&5
12734 echo $ECHO_N "checking if you want to link with Athena-Plus library... $ECHO_C" >&6
12737 # Check whether --with-XawPlus or --without-XawPlus was given.
12738 if test "${with_XawPlus+set}" = set; then
12739 withval="$with_XawPlus"
12742 if test "$withval" = yes ; then
12743 cf_x_athena=XawPlus
12744 echo "$as_me:12744: result: yes" >&5
12745 echo "${ECHO_T}yes" >&6
12747 echo "$as_me:12747: result: no" >&5
12748 echo "${ECHO_T}no" >&6
12753 if test "$PKG_CONFIG" != none ; then
12755 test "$cf_x_athena" = Xaw && cf_athena_list="xaw8 xaw7 xaw6"
12756 for cf_athena_pkg in \
12759 ${cf_x_athena}-devel \
12760 lib${cf_x_athena} \
12761 lib${cf_x_athena}-devel
12764 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists $cf_athena_pkg; then
12765 test -n "$verbose" && echo " found package $cf_athena_pkg" 1>&6
12767 echo "${as_me:-configure}:12767: testing found package $cf_athena_pkg ..." 1>&5
12769 cf_pkgconfig_incs="`$PKG_CONFIG --cflags $cf_athena_pkg 2>/dev/null`"
12770 cf_pkgconfig_libs="`$PKG_CONFIG --libs $cf_athena_pkg 2>/dev/null`"
12771 test -n "$verbose" && echo " package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs" 1>&6
12773 echo "${as_me:-configure}:12773: testing package $cf_athena_pkg CFLAGS: $cf_pkgconfig_incs ..." 1>&5
12775 test -n "$verbose" && echo " package $cf_athena_pkg LIBS: $cf_pkgconfig_libs" 1>&6
12777 echo "${as_me:-configure}:12777: testing package $cf_athena_pkg LIBS: $cf_pkgconfig_libs ..." 1>&5
12782 cf_new_extra_cppflags=
12784 for cf_add_cflags in $cf_pkgconfig_incs
12786 case $cf_fix_cppflags in
12788 case $cf_add_cflags in
12789 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
12790 case $cf_add_cflags in
12792 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
12794 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12795 && test -z "${cf_tst_cflags}" \
12796 && cf_fix_cppflags=yes
12798 if test $cf_fix_cppflags = yes ; then
12800 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12801 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12804 elif test "${cf_tst_cflags}" = "\"'" ; then
12806 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12807 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12813 case "$CPPFLAGS" in
12817 case $cf_add_cflags in
12819 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
12821 CPPFLAGS=`echo "$CPPFLAGS" | \
12822 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
12823 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
12828 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
12829 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
12836 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
12837 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
12844 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
12845 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
12847 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
12849 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
12850 && test -z "${cf_tst_cflags}" \
12851 && cf_fix_cppflags=no
12856 if test -n "$cf_new_cflags" ; then
12858 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
12859 CFLAGS="${CFLAGS}$cf_new_cflags"
12863 if test -n "$cf_new_cppflags" ; then
12865 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
12866 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
12870 if test -n "$cf_new_extra_cppflags" ; then
12872 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
12873 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
12877 cf_add_libs="$LIBS"
12880 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
12881 # filter duplicates
12882 for cf_add_1lib in $cf_add_0lib; do
12883 for cf_add_2lib in $cf_add_libs; do
12884 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
12889 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
12891 LIBS="$cf_add_libs"
12893 cf_x_athena_lib="$cf_pkgconfig_libs"
12895 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
12897 cat >>confdefs.h <<EOF
12898 #define $cf_x_athena_LIBS 1
12901 for cf_trim_lib in Xmu Xt X11
12904 (*-l$cf_trim_lib\ *-l$cf_trim_lib*)
12905 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
12906 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
12908 echo "${as_me:-configure}:12908: testing ..trimmed $LIBS ..." 1>&5
12914 echo "$as_me:12914: checking for usable $cf_x_athena/Xmu package" >&5
12915 echo $ECHO_N "checking for usable $cf_x_athena/Xmu package... $ECHO_C" >&6
12916 if test "${cf_cv_xaw_compat+set}" = set; then
12917 echo $ECHO_N "(cached) $ECHO_C" >&6
12920 cat >conftest.$ac_ext <<_ACEOF
12921 #line 12921 "configure"
12922 #include "confdefs.h"
12924 #include <X11/Xmu/CharSet.h>
12930 int check = XmuCompareISOLatin1("big", "small");
12937 rm -f conftest.$ac_objext conftest$ac_exeext
12938 if { (eval echo "$as_me:12938: \"$ac_link\"") >&5
12939 (eval $ac_link) 2>&5
12941 echo "$as_me:12941: \$? = $ac_status" >&5
12942 (exit $ac_status); } &&
12943 { ac_try='test -s conftest$ac_exeext'
12944 { (eval echo "$as_me:12944: \"$ac_try\"") >&5
12945 (eval $ac_try) 2>&5
12947 echo "$as_me:12947: \$? = $ac_status" >&5
12948 (exit $ac_status); }; }; then
12949 cf_cv_xaw_compat=yes
12951 echo "$as_me: failed program was:" >&5
12952 cat conftest.$ac_ext >&5
12953 cf_cv_xaw_compat=no
12955 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12957 echo "$as_me:12957: result: $cf_cv_xaw_compat" >&5
12958 echo "${ECHO_T}$cf_cv_xaw_compat" >&6
12960 if test "$cf_cv_xaw_compat" = no
12962 # workaround for broken ".pc" files...
12963 case "$cf_x_athena_lib" in
12967 test -n "$verbose" && echo " work around broken package" 1>&6
12969 echo "${as_me:-configure}:12969: testing work around broken package ..." 1>&5
12971 cf_save_xmu="$LIBS"
12972 cf_first_lib=`echo "$cf_save_xmu" | sed -e 's/^ *//' -e 's/ .*//'`
12974 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xmu; then
12975 test -n "$verbose" && echo " found package xmu" 1>&6
12977 echo "${as_me:-configure}:12977: testing found package xmu ..." 1>&5
12979 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xmu 2>/dev/null`"
12980 cf_pkgconfig_libs="`$PKG_CONFIG --libs xmu 2>/dev/null`"
12981 test -n "$verbose" && echo " package xmu CFLAGS: $cf_pkgconfig_incs" 1>&6
12983 echo "${as_me:-configure}:12983: testing package xmu CFLAGS: $cf_pkgconfig_incs ..." 1>&5
12985 test -n "$verbose" && echo " package xmu LIBS: $cf_pkgconfig_libs" 1>&6
12987 echo "${as_me:-configure}:12987: testing package xmu LIBS: $cf_pkgconfig_libs ..." 1>&5
12992 cf_new_extra_cppflags=
12994 for cf_add_cflags in $cf_pkgconfig_incs
12996 case $cf_fix_cppflags in
12998 case $cf_add_cflags in
12999 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13000 case $cf_add_cflags in
13002 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13004 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13005 && test -z "${cf_tst_cflags}" \
13006 && cf_fix_cppflags=yes
13008 if test $cf_fix_cppflags = yes ; then
13010 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13011 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13014 elif test "${cf_tst_cflags}" = "\"'" ; then
13016 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13017 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13023 case "$CPPFLAGS" in
13027 case $cf_add_cflags in
13029 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13031 CPPFLAGS=`echo "$CPPFLAGS" | \
13032 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13033 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13038 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13039 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
13046 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13047 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
13054 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13055 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13057 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13059 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13060 && test -z "${cf_tst_cflags}" \
13061 && cf_fix_cppflags=no
13066 if test -n "$cf_new_cflags" ; then
13068 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
13069 CFLAGS="${CFLAGS}$cf_new_cflags"
13073 if test -n "$cf_new_cppflags" ; then
13075 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13076 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
13080 if test -n "$cf_new_extra_cppflags" ; then
13082 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
13083 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
13087 cf_add_libs="$LIBS"
13090 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13091 # filter duplicates
13092 for cf_add_1lib in $cf_add_0lib; do
13093 for cf_add_2lib in $cf_add_libs; do
13094 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13099 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13101 LIBS="$cf_add_libs"
13103 LIBS="$cf_save_xmu"
13105 test -n "$verbose" && echo " ...before $LIBS" 1>&6
13107 echo "${as_me:-configure}:13107: testing ...before $LIBS ..." 1>&5
13109 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib $cf_pkgconfig_libs %" -e 's% % %g'`
13110 test -n "$verbose" && echo " ...after $LIBS" 1>&6
13112 echo "${as_me:-configure}:13112: testing ...after $LIBS ..." 1>&5
13118 test -n "$verbose" && echo " ...before $LIBS" 1>&6
13120 echo "${as_me:-configure}:13120: testing ...before $LIBS ..." 1>&5
13122 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%$cf_first_lib %$cf_first_lib -lXmu %" -e 's% % %g'`
13123 test -n "$verbose" && echo " ...after $LIBS" 1>&6
13125 echo "${as_me:-configure}:13125: testing ...after $LIBS ..." 1>&5
13129 for cf_trim_lib in Xmu Xt X11
13132 (*-l$cf_trim_lib\ *-l$cf_trim_lib*)
13133 LIBS=`echo "$LIBS " | sed -e 's/ / /g' -e 's%-l'"$cf_trim_lib"' %%' -e 's/ $//'`
13134 test -n "$verbose" && echo " ..trimmed $LIBS" 1>&6
13136 echo "${as_me:-configure}:13136: testing ..trimmed $LIBS ..." 1>&5
13156 if test -z "$cf_x_athena_lib" ; then
13158 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists Xext; then
13159 test -n "$verbose" && echo " found package Xext" 1>&6
13161 echo "${as_me:-configure}:13161: testing found package Xext ..." 1>&5
13163 cf_pkgconfig_incs="`$PKG_CONFIG --cflags Xext 2>/dev/null`"
13164 cf_pkgconfig_libs="`$PKG_CONFIG --libs Xext 2>/dev/null`"
13165 test -n "$verbose" && echo " package Xext CFLAGS: $cf_pkgconfig_incs" 1>&6
13167 echo "${as_me:-configure}:13167: testing package Xext CFLAGS: $cf_pkgconfig_incs ..." 1>&5
13169 test -n "$verbose" && echo " package Xext LIBS: $cf_pkgconfig_libs" 1>&6
13171 echo "${as_me:-configure}:13171: testing package Xext LIBS: $cf_pkgconfig_libs ..." 1>&5
13176 cf_new_extra_cppflags=
13178 for cf_add_cflags in $cf_pkgconfig_incs
13180 case $cf_fix_cppflags in
13182 case $cf_add_cflags in
13183 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13184 case $cf_add_cflags in
13186 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13188 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13189 && test -z "${cf_tst_cflags}" \
13190 && cf_fix_cppflags=yes
13192 if test $cf_fix_cppflags = yes ; then
13194 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13195 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13198 elif test "${cf_tst_cflags}" = "\"'" ; then
13200 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13201 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13207 case "$CPPFLAGS" in
13211 case $cf_add_cflags in
13213 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13215 CPPFLAGS=`echo "$CPPFLAGS" | \
13216 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13217 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13222 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13223 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
13230 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13231 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
13238 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13239 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13241 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13243 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13244 && test -z "${cf_tst_cflags}" \
13245 && cf_fix_cppflags=no
13250 if test -n "$cf_new_cflags" ; then
13252 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
13253 CFLAGS="${CFLAGS}$cf_new_cflags"
13257 if test -n "$cf_new_cppflags" ; then
13259 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13260 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
13264 if test -n "$cf_new_extra_cppflags" ; then
13266 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
13267 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
13271 cf_add_libs="$LIBS"
13274 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13275 # filter duplicates
13276 for cf_add_1lib in $cf_add_0lib; do
13277 for cf_add_2lib in $cf_add_libs; do
13278 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13283 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13285 LIBS="$cf_add_libs"
13292 echo "$as_me:13292: checking for XextCreateExtension in -lXext" >&5
13293 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
13294 if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
13295 echo $ECHO_N "(cached) $ECHO_C" >&6
13297 ac_check_lib_save_LIBS=$LIBS
13298 LIBS="-lXext $LIBS"
13299 cat >conftest.$ac_ext <<_ACEOF
13300 #line 13300 "configure"
13301 #include "confdefs.h"
13303 /* Override any gcc2 internal prototype to avoid an error. */
13307 /* We use char because int might match the return type of a gcc2
13308 builtin and then its argument prototype would still apply. */
13309 char XextCreateExtension ();
13313 XextCreateExtension ();
13318 rm -f conftest.$ac_objext conftest$ac_exeext
13319 if { (eval echo "$as_me:13319: \"$ac_link\"") >&5
13320 (eval $ac_link) 2>&5
13322 echo "$as_me:13322: \$? = $ac_status" >&5
13323 (exit $ac_status); } &&
13324 { ac_try='test -s conftest$ac_exeext'
13325 { (eval echo "$as_me:13325: \"$ac_try\"") >&5
13326 (eval $ac_try) 2>&5
13328 echo "$as_me:13328: \$? = $ac_status" >&5
13329 (exit $ac_status); }; }; then
13330 ac_cv_lib_Xext_XextCreateExtension=yes
13332 echo "$as_me: failed program was:" >&5
13333 cat conftest.$ac_ext >&5
13334 ac_cv_lib_Xext_XextCreateExtension=no
13336 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13337 LIBS=$ac_check_lib_save_LIBS
13339 echo "$as_me:13339: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
13340 echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
13341 if test $ac_cv_lib_Xext_XextCreateExtension = yes; then
13343 cf_add_libs="$LIBS"
13346 for cf_add_1lib in -lXext; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13347 # filter duplicates
13348 for cf_add_1lib in $cf_add_0lib; do
13349 for cf_add_2lib in $cf_add_libs; do
13350 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13355 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13357 LIBS="$cf_add_libs"
13363 # OSX is schizoid about who owns /usr/X11 (old) versus /opt/X11 (new) (and
13364 # in some cases has installed dummy files in the former, other cases replaced
13365 # it with a link to the new location). This complicates the configure script.
13366 # Check for that pitfall, and recover using pkg-config
13368 # If none of these are set, the configuration is almost certainly broken.
13369 if test -z "${X_CFLAGS}${X_PRE_LIBS}${X_LIBS}${X_EXTRA_LIBS}"
13372 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then
13373 test -n "$verbose" && echo " found package x11" 1>&6
13375 echo "${as_me:-configure}:13375: testing found package x11 ..." 1>&5
13377 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`"
13378 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`"
13379 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
13381 echo "${as_me:-configure}:13381: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
13383 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
13385 echo "${as_me:-configure}:13385: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
13390 cf_new_extra_cppflags=
13392 for cf_add_cflags in $cf_pkgconfig_incs
13394 case $cf_fix_cppflags in
13396 case $cf_add_cflags in
13397 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13398 case $cf_add_cflags in
13400 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13402 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13403 && test -z "${cf_tst_cflags}" \
13404 && cf_fix_cppflags=yes
13406 if test $cf_fix_cppflags = yes ; then
13408 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13409 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13412 elif test "${cf_tst_cflags}" = "\"'" ; then
13414 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13415 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13421 case "$CPPFLAGS" in
13425 case $cf_add_cflags in
13427 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13429 CPPFLAGS=`echo "$CPPFLAGS" | \
13430 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13431 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13436 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13437 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
13444 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13445 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
13452 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13453 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13455 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13457 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13458 && test -z "${cf_tst_cflags}" \
13459 && cf_fix_cppflags=no
13464 if test -n "$cf_new_cflags" ; then
13466 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
13467 CFLAGS="${CFLAGS}$cf_new_cflags"
13471 if test -n "$cf_new_cppflags" ; then
13473 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13474 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
13478 if test -n "$cf_new_extra_cppflags" ; then
13480 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
13481 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
13485 cf_add_libs="$LIBS"
13488 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13489 # filter duplicates
13490 for cf_add_1lib in $cf_add_0lib; do
13491 for cf_add_2lib in $cf_add_libs; do
13492 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13497 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13499 LIBS="$cf_add_libs"
13505 { echo "$as_me:13505: WARNING: unable to find X11 library" >&5
13506 echo "$as_me: WARNING: unable to find X11 library" >&2;}
13509 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then
13510 test -n "$verbose" && echo " found package ice" 1>&6
13512 echo "${as_me:-configure}:13512: testing found package ice ..." 1>&5
13514 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`"
13515 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`"
13516 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
13518 echo "${as_me:-configure}:13518: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
13520 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
13522 echo "${as_me:-configure}:13522: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
13527 cf_new_extra_cppflags=
13529 for cf_add_cflags in $cf_pkgconfig_incs
13531 case $cf_fix_cppflags in
13533 case $cf_add_cflags in
13534 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13535 case $cf_add_cflags in
13537 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13539 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13540 && test -z "${cf_tst_cflags}" \
13541 && cf_fix_cppflags=yes
13543 if test $cf_fix_cppflags = yes ; then
13545 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13546 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13549 elif test "${cf_tst_cflags}" = "\"'" ; then
13551 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13552 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13558 case "$CPPFLAGS" in
13562 case $cf_add_cflags in
13564 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13566 CPPFLAGS=`echo "$CPPFLAGS" | \
13567 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13568 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13573 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13574 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
13581 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13582 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
13589 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13590 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13592 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13594 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13595 && test -z "${cf_tst_cflags}" \
13596 && cf_fix_cppflags=no
13601 if test -n "$cf_new_cflags" ; then
13603 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
13604 CFLAGS="${CFLAGS}$cf_new_cflags"
13608 if test -n "$cf_new_cppflags" ; then
13610 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13611 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
13615 if test -n "$cf_new_extra_cppflags" ; then
13617 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
13618 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
13622 cf_add_libs="$LIBS"
13625 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13626 # filter duplicates
13627 for cf_add_1lib in $cf_add_0lib; do
13628 for cf_add_2lib in $cf_add_libs; do
13629 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13634 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13636 LIBS="$cf_add_libs"
13642 { echo "$as_me:13642: WARNING: unable to find ICE library" >&5
13643 echo "$as_me: WARNING: unable to find ICE library" >&2;}
13646 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then
13647 test -n "$verbose" && echo " found package sm" 1>&6
13649 echo "${as_me:-configure}:13649: testing found package sm ..." 1>&5
13651 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`"
13652 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`"
13653 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
13655 echo "${as_me:-configure}:13655: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
13657 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
13659 echo "${as_me:-configure}:13659: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
13664 cf_new_extra_cppflags=
13666 for cf_add_cflags in $cf_pkgconfig_incs
13668 case $cf_fix_cppflags in
13670 case $cf_add_cflags in
13671 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13672 case $cf_add_cflags in
13674 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13676 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13677 && test -z "${cf_tst_cflags}" \
13678 && cf_fix_cppflags=yes
13680 if test $cf_fix_cppflags = yes ; then
13682 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13683 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13686 elif test "${cf_tst_cflags}" = "\"'" ; then
13688 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13689 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13695 case "$CPPFLAGS" in
13699 case $cf_add_cflags in
13701 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13703 CPPFLAGS=`echo "$CPPFLAGS" | \
13704 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13705 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13710 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13711 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
13718 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13719 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
13726 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13727 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13729 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13731 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13732 && test -z "${cf_tst_cflags}" \
13733 && cf_fix_cppflags=no
13738 if test -n "$cf_new_cflags" ; then
13740 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
13741 CFLAGS="${CFLAGS}$cf_new_cflags"
13745 if test -n "$cf_new_cppflags" ; then
13747 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13748 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
13752 if test -n "$cf_new_extra_cppflags" ; then
13754 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
13755 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
13759 cf_add_libs="$LIBS"
13762 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13763 # filter duplicates
13764 for cf_add_1lib in $cf_add_0lib; do
13765 for cf_add_2lib in $cf_add_libs; do
13766 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13771 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13773 LIBS="$cf_add_libs"
13779 { echo "$as_me:13779: WARNING: unable to find SM library" >&5
13780 echo "$as_me: WARNING: unable to find SM library" >&2;}
13783 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
13784 test -n "$verbose" && echo " found package xt" 1>&6
13786 echo "${as_me:-configure}:13786: testing found package xt ..." 1>&5
13788 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
13789 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`"
13790 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
13792 echo "${as_me:-configure}:13792: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
13794 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
13796 echo "${as_me:-configure}:13796: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
13801 cf_new_extra_cppflags=
13803 for cf_add_cflags in $cf_pkgconfig_incs
13805 case $cf_fix_cppflags in
13807 case $cf_add_cflags in
13808 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13809 case $cf_add_cflags in
13811 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13813 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13814 && test -z "${cf_tst_cflags}" \
13815 && cf_fix_cppflags=yes
13817 if test $cf_fix_cppflags = yes ; then
13819 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13820 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13823 elif test "${cf_tst_cflags}" = "\"'" ; then
13825 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13826 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13832 case "$CPPFLAGS" in
13836 case $cf_add_cflags in
13838 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13840 CPPFLAGS=`echo "$CPPFLAGS" | \
13841 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13842 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13847 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13848 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
13855 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13856 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
13863 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13864 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13866 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
13868 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13869 && test -z "${cf_tst_cflags}" \
13870 && cf_fix_cppflags=no
13875 if test -n "$cf_new_cflags" ; then
13877 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
13878 CFLAGS="${CFLAGS}$cf_new_cflags"
13882 if test -n "$cf_new_cppflags" ; then
13884 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
13885 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
13889 if test -n "$cf_new_extra_cppflags" ; then
13891 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
13892 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
13896 cf_add_libs="$LIBS"
13899 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
13900 # filter duplicates
13901 for cf_add_1lib in $cf_add_0lib; do
13902 for cf_add_2lib in $cf_add_libs; do
13903 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
13908 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
13910 LIBS="$cf_add_libs"
13916 { echo "$as_me:13916: WARNING: unable to find Xt library" >&5
13917 echo "$as_me: WARNING: unable to find Xt library" >&2;}
13921 LIBS="$X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
13926 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists xt; then
13927 test -n "$verbose" && echo " found package xt" 1>&6
13929 echo "${as_me:-configure}:13929: testing found package xt ..." 1>&5
13931 cf_pkgconfig_incs="`$PKG_CONFIG --cflags xt 2>/dev/null`"
13932 cf_pkgconfig_libs="`$PKG_CONFIG --libs xt 2>/dev/null`"
13933 test -n "$verbose" && echo " package xt CFLAGS: $cf_pkgconfig_incs" 1>&6
13935 echo "${as_me:-configure}:13935: testing package xt CFLAGS: $cf_pkgconfig_incs ..." 1>&5
13937 test -n "$verbose" && echo " package xt LIBS: $cf_pkgconfig_libs" 1>&6
13939 echo "${as_me:-configure}:13939: testing package xt LIBS: $cf_pkgconfig_libs ..." 1>&5
13944 cf_new_extra_cppflags=
13946 for cf_add_cflags in $cf_pkgconfig_incs
13948 case $cf_fix_cppflags in
13950 case $cf_add_cflags in
13951 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
13952 case $cf_add_cflags in
13954 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
13956 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
13957 && test -z "${cf_tst_cflags}" \
13958 && cf_fix_cppflags=yes
13960 if test $cf_fix_cppflags = yes ; then
13962 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13963 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13966 elif test "${cf_tst_cflags}" = "\"'" ; then
13968 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
13969 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
13975 case "$CPPFLAGS" in
13979 case $cf_add_cflags in
13981 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
13983 CPPFLAGS=`echo "$CPPFLAGS" | \
13984 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
13985 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
13990 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
13991 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
13998 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
13999 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
14006 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14007 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14009 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14011 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14012 && test -z "${cf_tst_cflags}" \
14013 && cf_fix_cppflags=no
14018 if test -n "$cf_new_cflags" ; then
14020 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14021 CFLAGS="${CFLAGS}$cf_new_cflags"
14025 if test -n "$cf_new_cppflags" ; then
14027 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14028 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
14032 if test -n "$cf_new_extra_cppflags" ; then
14034 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14035 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
14039 cf_add_libs="$LIBS"
14042 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
14043 # filter duplicates
14044 for cf_add_1lib in $cf_add_0lib; do
14045 for cf_add_2lib in $cf_add_libs; do
14046 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
14051 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14053 LIBS="$cf_add_libs"
14059 # we have an "xt" package, but it may omit Xt's dependency on X11
14060 echo "$as_me:14060: checking for usable X dependency" >&5
14061 echo $ECHO_N "checking for usable X dependency... $ECHO_C" >&6
14062 if test "${cf_cv_xt_x11_compat+set}" = set; then
14063 echo $ECHO_N "(cached) $ECHO_C" >&6
14066 cat >conftest.$ac_ext <<_ACEOF
14067 #line 14067 "configure"
14068 #include "confdefs.h"
14070 #include <X11/Xlib.h>
14076 int rc1 = XDrawLine((Display*) 0, (Drawable) 0, (GC) 0, 0, 0, 0, 0);
14077 int rc2 = XClearWindow((Display*) 0, (Window) 0);
14078 int rc3 = XMoveWindow((Display*) 0, (Window) 0, 0, 0);
14079 int rc4 = XMoveResizeWindow((Display*)0, (Window)0, 0, 0, 0, 0);
14085 rm -f conftest.$ac_objext conftest$ac_exeext
14086 if { (eval echo "$as_me:14086: \"$ac_link\"") >&5
14087 (eval $ac_link) 2>&5
14089 echo "$as_me:14089: \$? = $ac_status" >&5
14090 (exit $ac_status); } &&
14091 { ac_try='test -s conftest$ac_exeext'
14092 { (eval echo "$as_me:14092: \"$ac_try\"") >&5
14093 (eval $ac_try) 2>&5
14095 echo "$as_me:14095: \$? = $ac_status" >&5
14096 (exit $ac_status); }; }; then
14097 cf_cv_xt_x11_compat=yes
14099 echo "$as_me: failed program was:" >&5
14100 cat conftest.$ac_ext >&5
14101 cf_cv_xt_x11_compat=no
14103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14105 echo "$as_me:14105: result: $cf_cv_xt_x11_compat" >&5
14106 echo "${ECHO_T}$cf_cv_xt_x11_compat" >&6
14107 if test "$cf_cv_xt_x11_compat" = no
14109 test -n "$verbose" && echo " work around broken X11 dependency" 1>&6
14111 echo "${as_me:-configure}:14111: testing work around broken X11 dependency ..." 1>&5
14113 # 2010/11/19 - good enough until a working Xt on Xcb is delivered.
14115 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists x11; then
14116 test -n "$verbose" && echo " found package x11" 1>&6
14118 echo "${as_me:-configure}:14118: testing found package x11 ..." 1>&5
14120 cf_pkgconfig_incs="`$PKG_CONFIG --cflags x11 2>/dev/null`"
14121 cf_pkgconfig_libs="`$PKG_CONFIG --libs x11 2>/dev/null`"
14122 test -n "$verbose" && echo " package x11 CFLAGS: $cf_pkgconfig_incs" 1>&6
14124 echo "${as_me:-configure}:14124: testing package x11 CFLAGS: $cf_pkgconfig_incs ..." 1>&5
14126 test -n "$verbose" && echo " package x11 LIBS: $cf_pkgconfig_libs" 1>&6
14128 echo "${as_me:-configure}:14128: testing package x11 LIBS: $cf_pkgconfig_libs ..." 1>&5
14133 cf_new_extra_cppflags=
14135 for cf_add_cflags in $cf_pkgconfig_incs
14137 case $cf_fix_cppflags in
14139 case $cf_add_cflags in
14140 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14141 case $cf_add_cflags in
14143 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14145 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14146 && test -z "${cf_tst_cflags}" \
14147 && cf_fix_cppflags=yes
14149 if test $cf_fix_cppflags = yes ; then
14151 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14152 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14155 elif test "${cf_tst_cflags}" = "\"'" ; then
14157 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14158 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14164 case "$CPPFLAGS" in
14168 case $cf_add_cflags in
14170 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14172 CPPFLAGS=`echo "$CPPFLAGS" | \
14173 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14174 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14179 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14180 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
14187 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14188 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
14195 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14196 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14198 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14200 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14201 && test -z "${cf_tst_cflags}" \
14202 && cf_fix_cppflags=no
14207 if test -n "$cf_new_cflags" ; then
14209 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14210 CFLAGS="${CFLAGS}$cf_new_cflags"
14214 if test -n "$cf_new_cppflags" ; then
14216 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14217 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
14221 if test -n "$cf_new_extra_cppflags" ; then
14223 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14224 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
14228 cf_add_libs="$LIBS"
14231 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
14232 # filter duplicates
14233 for cf_add_1lib in $cf_add_0lib; do
14234 for cf_add_2lib in $cf_add_libs; do
14235 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
14240 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14242 LIBS="$cf_add_libs"
14249 test -n "$verbose" && echo " ...before $LIBS" 1>&6
14251 echo "${as_me:-configure}:14251: testing ...before $LIBS ..." 1>&5
14253 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt -lX11 %" -e 's% % %g'`
14254 test -n "$verbose" && echo " ...after $LIBS" 1>&6
14256 echo "${as_me:-configure}:14256: testing ...after $LIBS ..." 1>&5
14264 echo "$as_me:14264: checking for usable X Toolkit package" >&5
14265 echo $ECHO_N "checking for usable X Toolkit package... $ECHO_C" >&6
14266 if test "${cf_cv_xt_ice_compat+set}" = set; then
14267 echo $ECHO_N "(cached) $ECHO_C" >&6
14270 cat >conftest.$ac_ext <<_ACEOF
14271 #line 14271 "configure"
14272 #include "confdefs.h"
14274 #include <X11/Shell.h>
14279 int num = IceConnectionNumber(0); (void) num
14285 rm -f conftest.$ac_objext conftest$ac_exeext
14286 if { (eval echo "$as_me:14286: \"$ac_link\"") >&5
14287 (eval $ac_link) 2>&5
14289 echo "$as_me:14289: \$? = $ac_status" >&5
14290 (exit $ac_status); } &&
14291 { ac_try='test -s conftest$ac_exeext'
14292 { (eval echo "$as_me:14292: \"$ac_try\"") >&5
14293 (eval $ac_try) 2>&5
14295 echo "$as_me:14295: \$? = $ac_status" >&5
14296 (exit $ac_status); }; }; then
14297 cf_cv_xt_ice_compat=yes
14299 echo "$as_me: failed program was:" >&5
14300 cat conftest.$ac_ext >&5
14301 cf_cv_xt_ice_compat=no
14303 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14305 echo "$as_me:14305: result: $cf_cv_xt_ice_compat" >&5
14306 echo "${ECHO_T}$cf_cv_xt_ice_compat" >&6
14308 if test "$cf_cv_xt_ice_compat" = no
14310 # workaround for broken ".pc" files used for X Toolkit.
14311 case "x$X_PRE_LIBS" in
14317 test -n "$verbose" && echo " work around broken ICE dependency" 1>&6
14319 echo "${as_me:-configure}:14319: testing work around broken ICE dependency ..." 1>&5
14321 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists ice; then
14322 test -n "$verbose" && echo " found package ice" 1>&6
14324 echo "${as_me:-configure}:14324: testing found package ice ..." 1>&5
14326 cf_pkgconfig_incs="`$PKG_CONFIG --cflags ice 2>/dev/null`"
14327 cf_pkgconfig_libs="`$PKG_CONFIG --libs ice 2>/dev/null`"
14328 test -n "$verbose" && echo " package ice CFLAGS: $cf_pkgconfig_incs" 1>&6
14330 echo "${as_me:-configure}:14330: testing package ice CFLAGS: $cf_pkgconfig_incs ..." 1>&5
14332 test -n "$verbose" && echo " package ice LIBS: $cf_pkgconfig_libs" 1>&6
14334 echo "${as_me:-configure}:14334: testing package ice LIBS: $cf_pkgconfig_libs ..." 1>&5
14339 cf_new_extra_cppflags=
14341 for cf_add_cflags in $cf_pkgconfig_incs
14343 case $cf_fix_cppflags in
14345 case $cf_add_cflags in
14346 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14347 case $cf_add_cflags in
14349 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14351 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14352 && test -z "${cf_tst_cflags}" \
14353 && cf_fix_cppflags=yes
14355 if test $cf_fix_cppflags = yes ; then
14357 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14358 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14361 elif test "${cf_tst_cflags}" = "\"'" ; then
14363 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14364 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14370 case "$CPPFLAGS" in
14374 case $cf_add_cflags in
14376 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14378 CPPFLAGS=`echo "$CPPFLAGS" | \
14379 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14380 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14385 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14386 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
14393 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14394 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
14401 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14402 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14404 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14406 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14407 && test -z "${cf_tst_cflags}" \
14408 && cf_fix_cppflags=no
14413 if test -n "$cf_new_cflags" ; then
14415 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14416 CFLAGS="${CFLAGS}$cf_new_cflags"
14420 if test -n "$cf_new_cppflags" ; then
14422 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14423 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
14427 if test -n "$cf_new_extra_cppflags" ; then
14429 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14430 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
14434 cf_add_libs="$LIBS"
14437 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
14438 # filter duplicates
14439 for cf_add_1lib in $cf_add_0lib; do
14440 for cf_add_2lib in $cf_add_libs; do
14441 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
14446 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14448 LIBS="$cf_add_libs"
14450 if test "$PKG_CONFIG" != none && "$PKG_CONFIG" --exists sm; then
14451 test -n "$verbose" && echo " found package sm" 1>&6
14453 echo "${as_me:-configure}:14453: testing found package sm ..." 1>&5
14455 cf_pkgconfig_incs="`$PKG_CONFIG --cflags sm 2>/dev/null`"
14456 cf_pkgconfig_libs="`$PKG_CONFIG --libs sm 2>/dev/null`"
14457 test -n "$verbose" && echo " package sm CFLAGS: $cf_pkgconfig_incs" 1>&6
14459 echo "${as_me:-configure}:14459: testing package sm CFLAGS: $cf_pkgconfig_incs ..." 1>&5
14461 test -n "$verbose" && echo " package sm LIBS: $cf_pkgconfig_libs" 1>&6
14463 echo "${as_me:-configure}:14463: testing package sm LIBS: $cf_pkgconfig_libs ..." 1>&5
14468 cf_new_extra_cppflags=
14470 for cf_add_cflags in $cf_pkgconfig_incs
14472 case $cf_fix_cppflags in
14474 case $cf_add_cflags in
14475 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14476 case $cf_add_cflags in
14478 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14480 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14481 && test -z "${cf_tst_cflags}" \
14482 && cf_fix_cppflags=yes
14484 if test $cf_fix_cppflags = yes ; then
14486 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14487 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14490 elif test "${cf_tst_cflags}" = "\"'" ; then
14492 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14493 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14499 case "$CPPFLAGS" in
14503 case $cf_add_cflags in
14505 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14507 CPPFLAGS=`echo "$CPPFLAGS" | \
14508 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14509 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14514 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14515 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
14522 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14523 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
14530 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14531 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14533 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14535 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14536 && test -z "${cf_tst_cflags}" \
14537 && cf_fix_cppflags=no
14542 if test -n "$cf_new_cflags" ; then
14544 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14545 CFLAGS="${CFLAGS}$cf_new_cflags"
14549 if test -n "$cf_new_cppflags" ; then
14551 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14552 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
14556 if test -n "$cf_new_extra_cppflags" ; then
14558 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14559 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
14563 cf_add_libs="$LIBS"
14566 for cf_add_1lib in $cf_pkgconfig_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
14567 # filter duplicates
14568 for cf_add_1lib in $cf_add_0lib; do
14569 for cf_add_2lib in $cf_add_libs; do
14570 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
14575 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14577 LIBS="$cf_add_libs"
14590 test -n "$verbose" && echo " ...before $LIBS" 1>&6
14592 echo "${as_me:-configure}:14592: testing ...before $LIBS ..." 1>&5
14594 LIBS=`echo "$LIBS" | sed -e "s/[ ][ ]*/ /g" -e "s%-lXt %-lXt $X_PRE_LIBS %" -e 's% % %g'`
14595 test -n "$verbose" && echo " ...after $LIBS" 1>&6
14597 echo "${as_me:-configure}:14597: testing ...after $LIBS ..." 1>&5
14613 LDFLAGS="$X_LIBS $LDFLAGS"
14615 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
14617 echo "${as_me:-configure}:14617: testing checking additions to CFLAGS ..." 1>&5
14619 cf_check_cflags="$CFLAGS"
14620 cf_check_cppflags="$CPPFLAGS"
14625 cf_new_extra_cppflags=
14627 for cf_add_cflags in $X_CFLAGS
14629 case $cf_fix_cppflags in
14631 case $cf_add_cflags in
14632 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
14633 case $cf_add_cflags in
14635 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
14637 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14638 && test -z "${cf_tst_cflags}" \
14639 && cf_fix_cppflags=yes
14641 if test $cf_fix_cppflags = yes ; then
14643 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14644 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14647 elif test "${cf_tst_cflags}" = "\"'" ; then
14649 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14650 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14656 case "$CPPFLAGS" in
14660 case $cf_add_cflags in
14662 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
14664 CPPFLAGS=`echo "$CPPFLAGS" | \
14665 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
14666 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
14671 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
14672 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
14679 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
14680 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
14687 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
14688 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
14690 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
14692 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
14693 && test -z "${cf_tst_cflags}" \
14694 && cf_fix_cppflags=no
14699 if test -n "$cf_new_cflags" ; then
14700 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
14702 echo "${as_me:-configure}:14702: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
14704 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
14705 CFLAGS="${CFLAGS}$cf_new_cflags"
14709 if test -n "$cf_new_cppflags" ; then
14710 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
14712 echo "${as_me:-configure}:14712: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
14714 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
14715 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
14719 if test -n "$cf_new_extra_cppflags" ; then
14720 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
14722 echo "${as_me:-configure}:14722: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
14724 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
14725 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
14729 if test "x$cf_check_cflags" != "x$CFLAGS" ; then
14730 cat >conftest.$ac_ext <<_ACEOF
14731 #line 14731 "configure"
14732 #include "confdefs.h"
14737 printf("Hello world");
14742 rm -f conftest.$ac_objext conftest$ac_exeext
14743 if { (eval echo "$as_me:14743: \"$ac_link\"") >&5
14744 (eval $ac_link) 2>&5
14746 echo "$as_me:14746: \$? = $ac_status" >&5
14747 (exit $ac_status); } &&
14748 { ac_try='test -s conftest$ac_exeext'
14749 { (eval echo "$as_me:14749: \"$ac_try\"") >&5
14750 (eval $ac_try) 2>&5
14752 echo "$as_me:14752: \$? = $ac_status" >&5
14753 (exit $ac_status); }; }; then
14756 echo "$as_me: failed program was:" >&5
14757 cat conftest.$ac_ext >&5
14758 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
14760 echo "${as_me:-configure}:14760: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
14762 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then
14763 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
14765 echo "${as_me:-configure}:14765: testing but keeping change to \$CPPFLAGS ..." 1>&5
14768 CFLAGS="$cf_check_flags"
14770 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14773 echo "$as_me:14773: checking for XOpenDisplay" >&5
14774 echo $ECHO_N "checking for XOpenDisplay... $ECHO_C" >&6
14775 if test "${ac_cv_func_XOpenDisplay+set}" = set; then
14776 echo $ECHO_N "(cached) $ECHO_C" >&6
14778 cat >conftest.$ac_ext <<_ACEOF
14779 #line 14779 "configure"
14780 #include "confdefs.h"
14781 #define XOpenDisplay autoconf_temporary
14782 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
14783 #undef XOpenDisplay
14789 /* We use char because int might match the return type of a gcc2
14790 builtin and then its argument prototype would still apply. */
14791 char XOpenDisplay (void);
14797 /* The GNU C library defines stubs for functions which it implements
14798 to always fail with ENOSYS. Some functions are actually named
14799 something starting with __ and the normal name is an alias. */
14800 #if defined (__stub_XOpenDisplay) || defined (__stub___XOpenDisplay)
14801 #error found stub for XOpenDisplay
14804 return XOpenDisplay ();
14809 rm -f conftest.$ac_objext conftest$ac_exeext
14810 if { (eval echo "$as_me:14810: \"$ac_link\"") >&5
14811 (eval $ac_link) 2>&5
14813 echo "$as_me:14813: \$? = $ac_status" >&5
14814 (exit $ac_status); } &&
14815 { ac_try='test -s conftest$ac_exeext'
14816 { (eval echo "$as_me:14816: \"$ac_try\"") >&5
14817 (eval $ac_try) 2>&5
14819 echo "$as_me:14819: \$? = $ac_status" >&5
14820 (exit $ac_status); }; }; then
14821 ac_cv_func_XOpenDisplay=yes
14823 echo "$as_me: failed program was:" >&5
14824 cat conftest.$ac_ext >&5
14825 ac_cv_func_XOpenDisplay=no
14827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14829 echo "$as_me:14829: result: $ac_cv_func_XOpenDisplay" >&5
14830 echo "${ECHO_T}$ac_cv_func_XOpenDisplay" >&6
14831 if test $ac_cv_func_XOpenDisplay = yes; then
14835 echo "$as_me:14835: checking for XOpenDisplay in -lX11" >&5
14836 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
14837 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
14838 echo $ECHO_N "(cached) $ECHO_C" >&6
14840 ac_check_lib_save_LIBS=$LIBS
14842 cat >conftest.$ac_ext <<_ACEOF
14843 #line 14843 "configure"
14844 #include "confdefs.h"
14846 /* Override any gcc2 internal prototype to avoid an error. */
14850 /* We use char because int might match the return type of a gcc2
14851 builtin and then its argument prototype would still apply. */
14852 char XOpenDisplay ();
14861 rm -f conftest.$ac_objext conftest$ac_exeext
14862 if { (eval echo "$as_me:14862: \"$ac_link\"") >&5
14863 (eval $ac_link) 2>&5
14865 echo "$as_me:14865: \$? = $ac_status" >&5
14866 (exit $ac_status); } &&
14867 { ac_try='test -s conftest$ac_exeext'
14868 { (eval echo "$as_me:14868: \"$ac_try\"") >&5
14869 (eval $ac_try) 2>&5
14871 echo "$as_me:14871: \$? = $ac_status" >&5
14872 (exit $ac_status); }; }; then
14873 ac_cv_lib_X11_XOpenDisplay=yes
14875 echo "$as_me: failed program was:" >&5
14876 cat conftest.$ac_ext >&5
14877 ac_cv_lib_X11_XOpenDisplay=no
14879 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14880 LIBS=$ac_check_lib_save_LIBS
14882 echo "$as_me:14882: result: $ac_cv_lib_X11_XOpenDisplay" >&5
14883 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
14884 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
14886 cf_add_libs="$LIBS"
14889 for cf_add_1lib in -lX11; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
14890 # filter duplicates
14891 for cf_add_1lib in $cf_add_0lib; do
14892 for cf_add_2lib in $cf_add_libs; do
14893 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
14898 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
14900 LIBS="$cf_add_libs"
14906 echo "$as_me:14906: checking for XtAppInitialize" >&5
14907 echo $ECHO_N "checking for XtAppInitialize... $ECHO_C" >&6
14908 if test "${ac_cv_func_XtAppInitialize+set}" = set; then
14909 echo $ECHO_N "(cached) $ECHO_C" >&6
14911 cat >conftest.$ac_ext <<_ACEOF
14912 #line 14912 "configure"
14913 #include "confdefs.h"
14914 #define XtAppInitialize autoconf_temporary
14915 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
14916 #undef XtAppInitialize
14922 /* We use char because int might match the return type of a gcc2
14923 builtin and then its argument prototype would still apply. */
14924 char XtAppInitialize (void);
14930 /* The GNU C library defines stubs for functions which it implements
14931 to always fail with ENOSYS. Some functions are actually named
14932 something starting with __ and the normal name is an alias. */
14933 #if defined (__stub_XtAppInitialize) || defined (__stub___XtAppInitialize)
14934 #error found stub for XtAppInitialize
14937 return XtAppInitialize ();
14942 rm -f conftest.$ac_objext conftest$ac_exeext
14943 if { (eval echo "$as_me:14943: \"$ac_link\"") >&5
14944 (eval $ac_link) 2>&5
14946 echo "$as_me:14946: \$? = $ac_status" >&5
14947 (exit $ac_status); } &&
14948 { ac_try='test -s conftest$ac_exeext'
14949 { (eval echo "$as_me:14949: \"$ac_try\"") >&5
14950 (eval $ac_try) 2>&5
14952 echo "$as_me:14952: \$? = $ac_status" >&5
14953 (exit $ac_status); }; }; then
14954 ac_cv_func_XtAppInitialize=yes
14956 echo "$as_me: failed program was:" >&5
14957 cat conftest.$ac_ext >&5
14958 ac_cv_func_XtAppInitialize=no
14960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14962 echo "$as_me:14962: result: $ac_cv_func_XtAppInitialize" >&5
14963 echo "${ECHO_T}$ac_cv_func_XtAppInitialize" >&6
14964 if test $ac_cv_func_XtAppInitialize = yes; then
14968 echo "$as_me:14968: checking for XtAppInitialize in -lXt" >&5
14969 echo $ECHO_N "checking for XtAppInitialize in -lXt... $ECHO_C" >&6
14970 if test "${ac_cv_lib_Xt_XtAppInitialize+set}" = set; then
14971 echo $ECHO_N "(cached) $ECHO_C" >&6
14973 ac_check_lib_save_LIBS=$LIBS
14975 cat >conftest.$ac_ext <<_ACEOF
14976 #line 14976 "configure"
14977 #include "confdefs.h"
14979 /* Override any gcc2 internal prototype to avoid an error. */
14983 /* We use char because int might match the return type of a gcc2
14984 builtin and then its argument prototype would still apply. */
14985 char XtAppInitialize ();
14989 XtAppInitialize ();
14994 rm -f conftest.$ac_objext conftest$ac_exeext
14995 if { (eval echo "$as_me:14995: \"$ac_link\"") >&5
14996 (eval $ac_link) 2>&5
14998 echo "$as_me:14998: \$? = $ac_status" >&5
14999 (exit $ac_status); } &&
15000 { ac_try='test -s conftest$ac_exeext'
15001 { (eval echo "$as_me:15001: \"$ac_try\"") >&5
15002 (eval $ac_try) 2>&5
15004 echo "$as_me:15004: \$? = $ac_status" >&5
15005 (exit $ac_status); }; }; then
15006 ac_cv_lib_Xt_XtAppInitialize=yes
15008 echo "$as_me: failed program was:" >&5
15009 cat conftest.$ac_ext >&5
15010 ac_cv_lib_Xt_XtAppInitialize=no
15012 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15013 LIBS=$ac_check_lib_save_LIBS
15015 echo "$as_me:15015: result: $ac_cv_lib_Xt_XtAppInitialize" >&5
15016 echo "${ECHO_T}$ac_cv_lib_Xt_XtAppInitialize" >&6
15017 if test $ac_cv_lib_Xt_XtAppInitialize = yes; then
15019 cat >>confdefs.h <<\EOF
15020 #define HAVE_LIBXT 1
15031 if test $cf_have_X_LIBS = no ; then
15032 { echo "$as_me:15032: WARNING: Unable to successfully link X Toolkit library (-lXt) with
15033 test program. You will have to check and add the proper libraries by hand
15035 echo "$as_me: WARNING: Unable to successfully link X Toolkit library (-lXt) with
15036 test program. You will have to check and add the proper libraries by hand
15037 to makefile." >&2;}
15040 cf_x_athena_root=$cf_x_athena
15043 for cf_path in default \
15044 /usr/contrib/X11R6 \
15045 /usr/contrib/X11R5 \
15049 if test -z "$cf_x_athena_inc" ; then
15051 cf_save_LIBS_CF_X_ATHENA_CPPFLAGS="$LIBS"
15052 cf_save_CFLAGS_CF_X_ATHENA_CPPFLAGS="$CFLAGS"
15053 cf_save_CPPFLAGS_CF_X_ATHENA_CPPFLAGS="$CPPFLAGS"
15054 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
15055 for cf_X_CFLAGS in $X_CFLAGS
15057 case "x$cf_X_CFLAGS" in
15059 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
15062 CFLAGS="$CFLAGS $cf_X_CFLAGS"
15067 cf_test=X11/$cf_x_athena_root/SimpleMenu.h
15068 if test $cf_path != default ; then
15070 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15071 CPPFLAGS="${CPPFLAGS}-I$cf_path/include"
15073 echo "$as_me:15073: checking for $cf_test in $cf_path" >&5
15074 echo $ECHO_N "checking for $cf_test in $cf_path... $ECHO_C" >&6
15076 echo "$as_me:15076: checking for $cf_test" >&5
15077 echo $ECHO_N "checking for $cf_test... $ECHO_C" >&6
15079 cat >conftest.$ac_ext <<_ACEOF
15080 #line 15080 "configure"
15081 #include "confdefs.h"
15083 #include <X11/Intrinsic.h>
15084 #include <$cf_test>
15093 rm -f conftest.$ac_objext
15094 if { (eval echo "$as_me:15094: \"$ac_compile\"") >&5
15095 (eval $ac_compile) 2>&5
15097 echo "$as_me:15097: \$? = $ac_status" >&5
15098 (exit $ac_status); } &&
15099 { ac_try='test -s conftest.$ac_objext'
15100 { (eval echo "$as_me:15100: \"$ac_try\"") >&5
15101 (eval $ac_try) 2>&5
15103 echo "$as_me:15103: \$? = $ac_status" >&5
15104 (exit $ac_status); }; }; then
15107 echo "$as_me: failed program was:" >&5
15108 cat conftest.$ac_ext >&5
15111 rm -f conftest.$ac_objext conftest.$ac_ext
15112 echo "$as_me:15112: result: $cf_result" >&5
15113 echo "${ECHO_T}$cf_result" >&6
15115 LIBS="$cf_save_LIBS_CF_X_ATHENA_CPPFLAGS"
15116 CFLAGS="$cf_save_CFLAGS_CF_X_ATHENA_CPPFLAGS"
15117 CPPFLAGS="$cf_save_CPPFLAGS_CF_X_ATHENA_CPPFLAGS"
15119 if test "$cf_result" = yes ; then
15120 test "$cf_path" = default && cf_x_athena_inc=default
15121 test "$cf_path" != default && cf_x_athena_inc=$cf_path/include
15127 if test -z "$cf_x_athena_inc" ; then
15128 { echo "$as_me:15128: WARNING: Unable to find Athena header files" >&5
15129 echo "$as_me: WARNING: Unable to find Athena header files" >&2;}
15130 elif test "$cf_x_athena_inc" != default ; then
15132 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15133 CPPFLAGS="${CPPFLAGS}-I$cf_x_athena_inc"
15137 cf_x_athena_root=$cf_x_athena
15140 for cf_path in default \
15141 /usr/contrib/X11R6 \
15142 /usr/contrib/X11R5 \
15147 ${cf_x_athena_root} \
15148 ${cf_x_athena_root}7 \
15149 ${cf_x_athena_root}6
15152 "-l$cf_lib -lXmu" \
15153 "-l$cf_lib -lXpm -lXmu" \
15154 "-l${cf_lib}_s -lXmu_s"
15156 test -n "$cf_x_athena_lib" && break
15158 cf_save_LIBS_CF_X_ATHENA_LIBS="$LIBS"
15159 cf_save_CFLAGS_CF_X_ATHENA_LIBS="$CFLAGS"
15160 cf_save_CPPFLAGS_CF_X_ATHENA_LIBS="$CPPFLAGS"
15161 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
15162 for cf_X_CFLAGS in $X_CFLAGS
15164 case "x$cf_X_CFLAGS" in
15166 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
15169 CFLAGS="$CFLAGS $cf_X_CFLAGS"
15174 cf_test=XawSimpleMenuAddGlobalActions
15175 test "$cf_path" != default && cf_libs="-L$cf_path/lib $cf_libs"
15177 cf_add_libs="$LIBS"
15180 for cf_add_1lib in $cf_libs; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15181 # filter duplicates
15182 for cf_add_1lib in $cf_add_0lib; do
15183 for cf_add_2lib in $cf_add_libs; do
15184 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15189 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15191 LIBS="$cf_add_libs"
15193 echo "$as_me:15193: checking for $cf_test in $cf_libs" >&5
15194 echo $ECHO_N "checking for $cf_test in $cf_libs... $ECHO_C" >&6
15195 cat >conftest.$ac_ext <<_ACEOF
15196 #line 15196 "configure"
15197 #include "confdefs.h"
15199 #include <X11/Intrinsic.h>
15200 #include <X11/$cf_x_athena_root/SimpleMenu.h>
15206 $cf_test((XtAppContext) 0)
15211 rm -f conftest.$ac_objext conftest$ac_exeext
15212 if { (eval echo "$as_me:15212: \"$ac_link\"") >&5
15213 (eval $ac_link) 2>&5
15215 echo "$as_me:15215: \$? = $ac_status" >&5
15216 (exit $ac_status); } &&
15217 { ac_try='test -s conftest$ac_exeext'
15218 { (eval echo "$as_me:15218: \"$ac_try\"") >&5
15219 (eval $ac_try) 2>&5
15221 echo "$as_me:15221: \$? = $ac_status" >&5
15222 (exit $ac_status); }; }; then
15225 echo "$as_me: failed program was:" >&5
15226 cat conftest.$ac_ext >&5
15229 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15230 echo "$as_me:15230: result: $cf_result" >&5
15231 echo "${ECHO_T}$cf_result" >&6
15233 LIBS="$cf_save_LIBS_CF_X_ATHENA_LIBS"
15234 CFLAGS="$cf_save_CFLAGS_CF_X_ATHENA_LIBS"
15235 CPPFLAGS="$cf_save_CPPFLAGS_CF_X_ATHENA_LIBS"
15237 if test "$cf_result" = yes ; then
15238 cf_x_athena_lib="$cf_libs"
15242 test -n "$cf_x_athena_lib" && break
15246 if test -z "$cf_x_athena_lib" ; then
15247 { { echo "$as_me:15247: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&5
15248 echo "$as_me: error: Unable to successfully link Athena library (-l$cf_x_athena_root) with test program" >&2;}
15249 { (exit 1); exit 1; }; }
15252 cf_add_libs="$LIBS"
15255 for cf_add_1lib in $cf_x_athena_lib; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15256 # filter duplicates
15257 for cf_add_1lib in $cf_add_0lib; do
15258 for cf_add_2lib in $cf_add_libs; do
15259 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15264 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15266 LIBS="$cf_add_libs"
15268 cf_x_athena_LIBS=`echo "HAVE_LIB_$cf_x_athena" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
15270 cat >>confdefs.h <<EOF
15271 #define $cf_x_athena_LIBS 1
15276 if test -n "$ac_tool_prefix"; then
15277 for ac_prog in xcurses-config
15279 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15280 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15281 echo "$as_me:15281: checking for $ac_word" >&5
15282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15283 if test "${ac_cv_prog_XCURSES_CONFIG+set}" = set; then
15284 echo $ECHO_N "(cached) $ECHO_C" >&6
15286 if test -n "$XCURSES_CONFIG"; then
15287 ac_cv_prog_XCURSES_CONFIG="$XCURSES_CONFIG" # Let the user override the test.
15289 ac_save_IFS=$IFS; IFS=$ac_path_separator
15291 for ac_dir in $ac_dummy; do
15293 test -z "$ac_dir" && ac_dir=.
15294 $as_executable_p "$ac_dir/$ac_word" || continue
15295 ac_cv_prog_XCURSES_CONFIG="$ac_tool_prefix$ac_prog"
15296 echo "$as_me:15296: found $ac_dir/$ac_word" >&5
15302 XCURSES_CONFIG=$ac_cv_prog_XCURSES_CONFIG
15303 if test -n "$XCURSES_CONFIG"; then
15304 echo "$as_me:15304: result: $XCURSES_CONFIG" >&5
15305 echo "${ECHO_T}$XCURSES_CONFIG" >&6
15307 echo "$as_me:15307: result: no" >&5
15308 echo "${ECHO_T}no" >&6
15311 test -n "$XCURSES_CONFIG" && break
15314 if test -z "$XCURSES_CONFIG"; then
15315 ac_ct_XCURSES_CONFIG=$XCURSES_CONFIG
15316 for ac_prog in xcurses-config
15318 # Extract the first word of "$ac_prog", so it can be a program name with args.
15319 set dummy $ac_prog; ac_word=$2
15320 echo "$as_me:15320: checking for $ac_word" >&5
15321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15322 if test "${ac_cv_prog_ac_ct_XCURSES_CONFIG+set}" = set; then
15323 echo $ECHO_N "(cached) $ECHO_C" >&6
15325 if test -n "$ac_ct_XCURSES_CONFIG"; then
15326 ac_cv_prog_ac_ct_XCURSES_CONFIG="$ac_ct_XCURSES_CONFIG" # Let the user override the test.
15328 ac_save_IFS=$IFS; IFS=$ac_path_separator
15330 for ac_dir in $ac_dummy; do
15332 test -z "$ac_dir" && ac_dir=.
15333 $as_executable_p "$ac_dir/$ac_word" || continue
15334 ac_cv_prog_ac_ct_XCURSES_CONFIG="$ac_prog"
15335 echo "$as_me:15335: found $ac_dir/$ac_word" >&5
15341 ac_ct_XCURSES_CONFIG=$ac_cv_prog_ac_ct_XCURSES_CONFIG
15342 if test -n "$ac_ct_XCURSES_CONFIG"; then
15343 echo "$as_me:15343: result: $ac_ct_XCURSES_CONFIG" >&5
15344 echo "${ECHO_T}$ac_ct_XCURSES_CONFIG" >&6
15346 echo "$as_me:15346: result: no" >&5
15347 echo "${ECHO_T}no" >&6
15350 test -n "$ac_ct_XCURSES_CONFIG" && break
15352 test -n "$ac_ct_XCURSES_CONFIG" || ac_ct_XCURSES_CONFIG="none"
15354 XCURSES_CONFIG=$ac_ct_XCURSES_CONFIG
15357 if test "$XCURSES_CONFIG" != none ; then
15362 cf_new_extra_cppflags=
15364 for cf_add_cflags in `$XCURSES_CONFIG --cflags`
15366 case $cf_fix_cppflags in
15368 case $cf_add_cflags in
15369 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15370 case $cf_add_cflags in
15372 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15374 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15375 && test -z "${cf_tst_cflags}" \
15376 && cf_fix_cppflags=yes
15378 if test $cf_fix_cppflags = yes ; then
15380 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15381 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15384 elif test "${cf_tst_cflags}" = "\"'" ; then
15386 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15387 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15393 case "$CPPFLAGS" in
15397 case $cf_add_cflags in
15399 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15401 CPPFLAGS=`echo "$CPPFLAGS" | \
15402 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15403 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15408 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
15409 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
15416 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
15417 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
15424 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15425 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15427 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15429 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15430 && test -z "${cf_tst_cflags}" \
15431 && cf_fix_cppflags=no
15436 if test -n "$cf_new_cflags" ; then
15438 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
15439 CFLAGS="${CFLAGS}$cf_new_cflags"
15443 if test -n "$cf_new_cppflags" ; then
15445 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15446 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
15450 if test -n "$cf_new_extra_cppflags" ; then
15452 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
15453 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
15457 cf_add_libs="$LIBS"
15460 for cf_add_1lib in `$XCURSES_CONFIG --libs`; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15461 # filter duplicates
15462 for cf_add_1lib in $cf_add_0lib; do
15463 for cf_add_2lib in $cf_add_libs; do
15464 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15469 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15471 LIBS="$cf_add_libs"
15473 cf_cv_lib_XCurses=yes
15477 LDFLAGS="$LDFLAGS $X_LIBS"
15479 test -n "$verbose" && echo " checking additions to CFLAGS" 1>&6
15481 echo "${as_me:-configure}:15481: testing checking additions to CFLAGS ..." 1>&5
15483 cf_check_cflags="$CFLAGS"
15484 cf_check_cppflags="$CPPFLAGS"
15489 cf_new_extra_cppflags=
15491 for cf_add_cflags in $X_CFLAGS
15493 case $cf_fix_cppflags in
15495 case $cf_add_cflags in
15496 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
15497 case $cf_add_cflags in
15499 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
15501 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15502 && test -z "${cf_tst_cflags}" \
15503 && cf_fix_cppflags=yes
15505 if test $cf_fix_cppflags = yes ; then
15507 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15508 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15511 elif test "${cf_tst_cflags}" = "\"'" ; then
15513 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15514 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15520 case "$CPPFLAGS" in
15524 case $cf_add_cflags in
15526 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
15528 CPPFLAGS=`echo "$CPPFLAGS" | \
15529 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
15530 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
15535 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
15536 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
15543 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
15544 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
15551 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
15552 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
15554 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
15556 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
15557 && test -z "${cf_tst_cflags}" \
15558 && cf_fix_cppflags=no
15563 if test -n "$cf_new_cflags" ; then
15564 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
15566 echo "${as_me:-configure}:15566: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
15568 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
15569 CFLAGS="${CFLAGS}$cf_new_cflags"
15573 if test -n "$cf_new_cppflags" ; then
15574 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
15576 echo "${as_me:-configure}:15576: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
15578 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
15579 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
15583 if test -n "$cf_new_extra_cppflags" ; then
15584 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
15586 echo "${as_me:-configure}:15586: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
15588 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
15589 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
15593 if test "x$cf_check_cflags" != "x$CFLAGS" ; then
15594 cat >conftest.$ac_ext <<_ACEOF
15595 #line 15595 "configure"
15596 #include "confdefs.h"
15601 printf("Hello world");
15606 rm -f conftest.$ac_objext conftest$ac_exeext
15607 if { (eval echo "$as_me:15607: \"$ac_link\"") >&5
15608 (eval $ac_link) 2>&5
15610 echo "$as_me:15610: \$? = $ac_status" >&5
15611 (exit $ac_status); } &&
15612 { ac_try='test -s conftest$ac_exeext'
15613 { (eval echo "$as_me:15613: \"$ac_try\"") >&5
15614 (eval $ac_try) 2>&5
15616 echo "$as_me:15616: \$? = $ac_status" >&5
15617 (exit $ac_status); }; }; then
15620 echo "$as_me: failed program was:" >&5
15621 cat conftest.$ac_ext >&5
15622 test -n "$verbose" && echo " test-compile failed. Undoing change to \$CFLAGS" 1>&6
15624 echo "${as_me:-configure}:15624: testing test-compile failed. Undoing change to \$CFLAGS ..." 1>&5
15626 if test "x$cf_check_cppflags" != "x$CPPFLAGS" ; then
15627 test -n "$verbose" && echo " but keeping change to \$CPPFLAGS" 1>&6
15629 echo "${as_me:-configure}:15629: testing but keeping change to \$CPPFLAGS ..." 1>&5
15632 CFLAGS="$cf_check_flags"
15634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15637 echo "$as_me:15637: checking for XOpenDisplay in -lX11" >&5
15638 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
15639 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
15640 echo $ECHO_N "(cached) $ECHO_C" >&6
15642 ac_check_lib_save_LIBS=$LIBS
15643 LIBS="-lX11 $X_PRE_LIBS $LIBS $X_EXTRA_LIBS $LIBS"
15644 cat >conftest.$ac_ext <<_ACEOF
15645 #line 15645 "configure"
15646 #include "confdefs.h"
15648 /* Override any gcc2 internal prototype to avoid an error. */
15652 /* We use char because int might match the return type of a gcc2
15653 builtin and then its argument prototype would still apply. */
15654 char XOpenDisplay ();
15663 rm -f conftest.$ac_objext conftest$ac_exeext
15664 if { (eval echo "$as_me:15664: \"$ac_link\"") >&5
15665 (eval $ac_link) 2>&5
15667 echo "$as_me:15667: \$? = $ac_status" >&5
15668 (exit $ac_status); } &&
15669 { ac_try='test -s conftest$ac_exeext'
15670 { (eval echo "$as_me:15670: \"$ac_try\"") >&5
15671 (eval $ac_try) 2>&5
15673 echo "$as_me:15673: \$? = $ac_status" >&5
15674 (exit $ac_status); }; }; then
15675 ac_cv_lib_X11_XOpenDisplay=yes
15677 echo "$as_me: failed program was:" >&5
15678 cat conftest.$ac_ext >&5
15679 ac_cv_lib_X11_XOpenDisplay=no
15681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15682 LIBS=$ac_check_lib_save_LIBS
15684 echo "$as_me:15684: result: $ac_cv_lib_X11_XOpenDisplay" >&5
15685 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
15686 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
15688 cf_add_libs="$LIBS"
15691 for cf_add_1lib in -lX11; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15692 # filter duplicates
15693 for cf_add_1lib in $cf_add_0lib; do
15694 for cf_add_2lib in $cf_add_libs; do
15695 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15700 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15702 LIBS="$cf_add_libs"
15706 echo "$as_me:15706: checking for XCurses library" >&5
15707 echo $ECHO_N "checking for XCurses library... $ECHO_C" >&6
15708 if test "${cf_cv_lib_XCurses+set}" = set; then
15709 echo $ECHO_N "(cached) $ECHO_C" >&6
15712 cf_add_libs="$LIBS"
15715 for cf_add_1lib in -lXCurses; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15716 # filter duplicates
15717 for cf_add_1lib in $cf_add_0lib; do
15718 for cf_add_2lib in $cf_add_libs; do
15719 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15724 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15726 LIBS="$cf_add_libs"
15728 cat >conftest.$ac_ext <<_ACEOF
15729 #line 15729 "configure"
15730 #include "confdefs.h"
15732 #include <xcurses.h>
15733 char *XCursesProgramName = "test";
15743 rm -f conftest.$ac_objext conftest$ac_exeext
15744 if { (eval echo "$as_me:15744: \"$ac_link\"") >&5
15745 (eval $ac_link) 2>&5
15747 echo "$as_me:15747: \$? = $ac_status" >&5
15748 (exit $ac_status); } &&
15749 { ac_try='test -s conftest$ac_exeext'
15750 { (eval echo "$as_me:15750: \"$ac_try\"") >&5
15751 (eval $ac_try) 2>&5
15753 echo "$as_me:15753: \$? = $ac_status" >&5
15754 (exit $ac_status); }; }; then
15755 cf_cv_lib_XCurses=yes
15757 echo "$as_me: failed program was:" >&5
15758 cat conftest.$ac_ext >&5
15759 cf_cv_lib_XCurses=no
15761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15764 echo "$as_me:15764: result: $cf_cv_lib_XCurses" >&5
15765 echo "${ECHO_T}$cf_cv_lib_XCurses" >&6
15769 if test $cf_cv_lib_XCurses = yes ; then
15771 cat >>confdefs.h <<\EOF
15775 cat >>confdefs.h <<\EOF
15779 echo "$as_me:15779: checking for xcurses.h" >&5
15780 echo $ECHO_N "checking for xcurses.h... $ECHO_C" >&6
15781 if test "${ac_cv_header_xcurses_h+set}" = set; then
15782 echo $ECHO_N "(cached) $ECHO_C" >&6
15784 cat >conftest.$ac_ext <<_ACEOF
15785 #line 15785 "configure"
15786 #include "confdefs.h"
15787 #include <xcurses.h>
15789 if { (eval echo "$as_me:15789: \"$ac_cpp conftest.$ac_ext\"") >&5
15790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15792 egrep -v '^ *\+' conftest.er1 >conftest.err
15794 cat conftest.err >&5
15795 echo "$as_me:15795: \$? = $ac_status" >&5
15796 (exit $ac_status); } >/dev/null; then
15797 if test -s conftest.err; then
15798 ac_cpp_err=$ac_c_preproc_warn_flag
15805 if test -z "$ac_cpp_err"; then
15806 ac_cv_header_xcurses_h=yes
15808 echo "$as_me: failed program was:" >&5
15809 cat conftest.$ac_ext >&5
15810 ac_cv_header_xcurses_h=no
15812 rm -f conftest.err conftest.$ac_ext
15814 echo "$as_me:15814: result: $ac_cv_header_xcurses_h" >&5
15815 echo "${ECHO_T}$ac_cv_header_xcurses_h" >&6
15816 if test $ac_cv_header_xcurses_h = yes; then
15818 cat >>confdefs.h <<\EOF
15819 #define HAVE_XCURSES 1
15825 { { echo "$as_me:15825: error: Cannot link with XCurses" >&5
15826 echo "$as_me: error: Cannot link with XCurses" >&2;}
15827 { (exit 1); exit 1; }; }
15832 { { echo "$as_me:15832: error: unexpected screen-value: $cf_cv_screen" >&5
15833 echo "$as_me: error: unexpected screen-value: $cf_cv_screen" >&2;}
15834 { (exit 1); exit 1; }; }
15838 : ${cf_nculib_root:=$cf_cv_screen}
15839 as_ac_Lib=`echo "ac_cv_lib_$cf_nculib_root''__nc_init_pthreads" | $as_tr_sh`
15840 echo "$as_me:15840: checking for _nc_init_pthreads in -l$cf_nculib_root" >&5
15841 echo $ECHO_N "checking for _nc_init_pthreads in -l$cf_nculib_root... $ECHO_C" >&6
15842 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
15843 echo $ECHO_N "(cached) $ECHO_C" >&6
15845 ac_check_lib_save_LIBS=$LIBS
15846 LIBS="-l$cf_nculib_root $LIBS"
15847 cat >conftest.$ac_ext <<_ACEOF
15848 #line 15848 "configure"
15849 #include "confdefs.h"
15851 /* Override any gcc2 internal prototype to avoid an error. */
15855 /* We use char because int might match the return type of a gcc2
15856 builtin and then its argument prototype would still apply. */
15857 char _nc_init_pthreads ();
15861 _nc_init_pthreads ();
15866 rm -f conftest.$ac_objext conftest$ac_exeext
15867 if { (eval echo "$as_me:15867: \"$ac_link\"") >&5
15868 (eval $ac_link) 2>&5
15870 echo "$as_me:15870: \$? = $ac_status" >&5
15871 (exit $ac_status); } &&
15872 { ac_try='test -s conftest$ac_exeext'
15873 { (eval echo "$as_me:15873: \"$ac_try\"") >&5
15874 (eval $ac_try) 2>&5
15876 echo "$as_me:15876: \$? = $ac_status" >&5
15877 (exit $ac_status); }; }; then
15878 eval "$as_ac_Lib=yes"
15880 echo "$as_me: failed program was:" >&5
15881 cat conftest.$ac_ext >&5
15882 eval "$as_ac_Lib=no"
15884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15885 LIBS=$ac_check_lib_save_LIBS
15887 echo "$as_me:15887: result: `eval echo '${'$as_ac_Lib'}'`" >&5
15888 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
15889 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
15890 cf_cv_ncurses_pthreads=yes
15892 cf_cv_ncurses_pthreads=no
15895 if test "$cf_cv_ncurses_pthreads" = yes
15898 cf_add_libs="$LIBS"
15901 for cf_add_1lib in -lpthread; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
15902 # filter duplicates
15903 for cf_add_1lib in $cf_add_0lib; do
15904 for cf_add_2lib in $cf_add_libs; do
15905 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
15910 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
15912 LIBS="$cf_add_libs"
15916 case $cf_cv_screen in
15918 cf_cv_libtype=`echo "$cf_cv_screen" | sed -e 's/^ncurses//'`
15922 echo "$as_me:15922: checking for X11 rgb file" >&5
15923 echo $ECHO_N "checking for X11 rgb file... $ECHO_C" >&6
15925 # Check whether --with-x11-rgb or --without-x11-rgb was given.
15926 if test "${with_x11_rgb+set}" = set; then
15927 withval="$with_x11_rgb"
15933 if test "x$RGB_PATH" = xauto
15935 RGB_PATH='${exec_prefix}/lib/X11/rgb.txt'
15937 /opt/local/share/X11/rgb.txt \
15938 /opt/X11/share/X11/rgb.txt \
15939 /usr/share/X11/rgb.txt \
15940 /usr/X11/share/X11/rgb.txt \
15941 /usr/X11/lib/X11/rgb.txt \
15942 /usr/lib/X11/rgb.txt \
15944 /usr/pkg/lib/X11/rgb.txt \
15945 /usr/X11R7/lib/X11/rgb.txt \
15946 /usr/X11R6/lib/X11/rgb.txt \
15947 /usr/X11R5/lib/X11/rgb.txt \
15948 /usr/X11R4/lib/X11/rgb.txt \
15949 /usr/local/lib/X11/rgb.txt \
15950 /usr/local/share/X11/rgb.txt \
15951 /usr/lib64/X11/rgb.txt
15953 if test -f "$cf_path" ; then
15954 RGB_PATH="$cf_path"
15961 if test "x$prefix" != xNONE; then
15962 cf_path_syntax="$prefix"
15964 cf_path_syntax="$ac_default_prefix"
15967 case ".$cf_path" in
15968 (.\$\(*\)*|.\'*\'*)
15972 (.[a-zA-Z]:[\\/]*) # OS/2 EMX
15974 (.\${*prefix}*|.\${*dir}*)
15975 eval cf_path="$cf_path"
15976 case ".$cf_path" in
15978 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
15983 cf_path=`echo $cf_path | sed -e s%NONE%$cf_path_syntax%`
15986 { { echo "$as_me:15986: error: expected a pathname, not \"$cf_path\"" >&5
15987 echo "$as_me: error: expected a pathname, not \"$cf_path\"" >&2;}
15988 { (exit 1); exit 1; }; }
15994 echo "$as_me:15994: result: $RGB_PATH" >&5
15995 echo "${ECHO_T}$RGB_PATH" >&6
15997 cat >>confdefs.h <<EOF
15998 #define RGB_PATH "$cf_path"
16002 if test "$RGB_PATH" = no
16009 case $cf_cv_screen in
16011 cf_default_panel=no
16014 cf_default_tinfo=no
16016 (xcurses|bsdcurses)
16017 cf_default_panel=no
16020 cf_default_tinfo=yes
16023 cf_default_panel=yes
16024 cf_default_form=yes
16025 cf_default_menu=yes
16026 cf_default_tinfo=yes
16027 case $cf_cv_screen in
16029 cf_curses_headers="nc_alloc.h nomacros.h term_entry.h"
16035 echo "$as_me:16035: checking for desired basename for form library" >&5
16036 echo $ECHO_N "checking for desired basename for form library... $ECHO_C" >&6
16038 # Check whether --with-form-libname or --without-form-libname was given.
16039 if test "${with_form_libname+set}" = set; then
16040 withval="$with_form_libname"
16041 with_lib_basename=$withval
16043 with_lib_basename=form
16045 FORM_NAME="$with_lib_basename"
16047 case "x$FORM_NAME" in
16055 echo "$as_me:16055: result: $FORM_NAME" >&5
16056 echo "${ECHO_T}$FORM_NAME" >&6
16058 echo "$as_me:16058: checking for desired basename for menu library" >&5
16059 echo $ECHO_N "checking for desired basename for menu library... $ECHO_C" >&6
16061 # Check whether --with-menu-libname or --without-menu-libname was given.
16062 if test "${with_menu_libname+set}" = set; then
16063 withval="$with_menu_libname"
16064 with_lib_basename=$withval
16066 with_lib_basename=menu
16068 MENU_NAME="$with_lib_basename"
16070 case "x$MENU_NAME" in
16078 echo "$as_me:16078: result: $MENU_NAME" >&5
16079 echo "${ECHO_T}$MENU_NAME" >&6
16081 echo "$as_me:16081: checking for desired basename for panel library" >&5
16082 echo $ECHO_N "checking for desired basename for panel library... $ECHO_C" >&6
16084 # Check whether --with-panel-libname or --without-panel-libname was given.
16085 if test "${with_panel_libname+set}" = set; then
16086 withval="$with_panel_libname"
16087 with_lib_basename=$withval
16089 with_lib_basename=panel
16091 PANEL_NAME="$with_lib_basename"
16093 case "x$PANEL_NAME" in
16101 echo "$as_me:16101: result: $PANEL_NAME" >&5
16102 echo "${ECHO_T}$PANEL_NAME" >&6
16104 echo "$as_me:16104: checking if you want to check for panel functions" >&5
16105 echo $ECHO_N "checking if you want to check for panel functions... $ECHO_C" >&6
16107 # Check whether --enable-panel or --disable-panel was given.
16108 if test "${enable_panel+set}" = set; then
16109 enableval="$enable_panel"
16110 test "$enableval" != no && enableval=yes
16111 if test "$enableval" != "yes" ; then
16114 cf_enable_panel=$cf_default_panel
16118 cf_enable_panel=$cf_default_panel
16121 echo "$as_me:16121: result: $cf_enable_panel" >&5
16122 echo "${ECHO_T}$cf_enable_panel" >&6
16123 if test $cf_enable_panel = yes
16126 cf_have_curses_lib=no
16128 : ${NCURSES_CONFIG_PKG:=none}
16129 if test "x${NCURSES_CONFIG_PKG}" = xnone; then
16131 elif test "x${PKG_CONFIG:=none}" != xnone; then
16132 echo "$as_me:16132: checking pkg-config for $PANEL_NAME$cf_cv_libtype" >&5
16133 echo $ECHO_N "checking pkg-config for $PANEL_NAME$cf_cv_libtype... $ECHO_C" >&6
16134 if "$PKG_CONFIG" --exists $PANEL_NAME$cf_cv_libtype ; then
16135 echo "$as_me:16135: result: yes" >&5
16136 echo "${ECHO_T}yes" >&6
16138 echo "$as_me:16138: checking if the $PANEL_NAME$cf_cv_libtype package files work" >&5
16139 echo $ECHO_N "checking if the $PANEL_NAME$cf_cv_libtype package files work... $ECHO_C" >&6
16141 cf_save_CPPFLAGS="$CPPFLAGS"
16142 cf_save_LIBS="$LIBS"
16147 cf_new_extra_cppflags=
16149 for cf_add_cflags in `$PKG_CONFIG --cflags $PANEL_NAME$cf_cv_libtype`
16151 case $cf_fix_cppflags in
16153 case $cf_add_cflags in
16154 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16155 case $cf_add_cflags in
16157 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16159 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16160 && test -z "${cf_tst_cflags}" \
16161 && cf_fix_cppflags=yes
16163 if test $cf_fix_cppflags = yes ; then
16165 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16166 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16169 elif test "${cf_tst_cflags}" = "\"'" ; then
16171 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16172 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16178 case "$CPPFLAGS" in
16182 case $cf_add_cflags in
16184 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16186 CPPFLAGS=`echo "$CPPFLAGS" | \
16187 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16188 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16193 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16194 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16201 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16202 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16209 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16210 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16212 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16214 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16215 && test -z "${cf_tst_cflags}" \
16216 && cf_fix_cppflags=no
16221 if test -n "$cf_new_cflags" ; then
16223 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16224 CFLAGS="${CFLAGS}$cf_new_cflags"
16228 if test -n "$cf_new_cppflags" ; then
16230 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16231 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16235 if test -n "$cf_new_extra_cppflags" ; then
16237 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16238 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16242 cf_add_libs="$LIBS"
16245 for cf_add_1lib in `$PKG_CONFIG --libs $PANEL_NAME$cf_cv_libtype`; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16246 # filter duplicates
16247 for cf_add_1lib in $cf_add_0lib; do
16248 for cf_add_2lib in $cf_add_libs; do
16249 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16254 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16256 LIBS="$cf_add_libs"
16258 cat >conftest.$ac_ext <<_ACEOF
16259 #line 16259 "configure"
16260 #include "confdefs.h"
16261 #include <$PANEL_NAME.h>
16265 (void) new_panel ( 0 );
16270 rm -f conftest.$ac_objext conftest$ac_exeext
16271 if { (eval echo "$as_me:16271: \"$ac_link\"") >&5
16272 (eval $ac_link) 2>&5
16274 echo "$as_me:16274: \$? = $ac_status" >&5
16275 (exit $ac_status); } &&
16276 { ac_try='test -s conftest$ac_exeext'
16277 { (eval echo "$as_me:16277: \"$ac_try\"") >&5
16278 (eval $ac_try) 2>&5
16280 echo "$as_me:16280: \$? = $ac_status" >&5
16281 (exit $ac_status); }; }; then
16282 if test "$cross_compiling" = yes; then
16283 cf_have_curses_lib=maybe
16285 cat >conftest.$ac_ext <<_ACEOF
16286 #line 16286 "configure"
16287 #include "confdefs.h"
16288 #include <$PANEL_NAME.h>
16290 { (void) new_panel ( 0 ); return 0; }
16292 rm -f conftest$ac_exeext
16293 if { (eval echo "$as_me:16293: \"$ac_link\"") >&5
16294 (eval $ac_link) 2>&5
16296 echo "$as_me:16296: \$? = $ac_status" >&5
16297 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16298 { (eval echo "$as_me:16298: \"$ac_try\"") >&5
16299 (eval $ac_try) 2>&5
16301 echo "$as_me:16301: \$? = $ac_status" >&5
16302 (exit $ac_status); }; }; then
16303 cf_have_curses_lib=yes
16305 echo "$as_me: program exited with status $ac_status" >&5
16306 echo "$as_me: failed program was:" >&5
16307 cat conftest.$ac_ext >&5
16308 cf_have_curses_lib=no
16310 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16313 echo "$as_me: failed program was:" >&5
16314 cat conftest.$ac_ext >&5
16315 cf_have_curses_lib=no
16317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16318 echo "$as_me:16318: result: $cf_have_curses_lib" >&5
16319 echo "${ECHO_T}$cf_have_curses_lib" >&6
16320 test "$cf_have_curses_lib" = maybe && cf_have_curses_lib=yes
16321 if test "$cf_have_curses_lib" != "yes"
16323 CPPFLAGS="$cf_save_CPPFLAGS"
16324 LIBS="$cf_save_LIBS"
16327 cf_upper=`echo "have_lib$PANEL_NAME" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16329 cat >>confdefs.h <<EOF
16330 #define $cf_upper 1
16336 if test "$cf_have_curses_lib" = no; then
16337 as_ac_Lib=`echo "ac_cv_lib_$PANEL_NAME$cf_cv_libtype''_new_panel" | $as_tr_sh`
16338 echo "$as_me:16338: checking for new_panel in -l$PANEL_NAME$cf_cv_libtype" >&5
16339 echo $ECHO_N "checking for new_panel in -l$PANEL_NAME$cf_cv_libtype... $ECHO_C" >&6
16340 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16341 echo $ECHO_N "(cached) $ECHO_C" >&6
16343 ac_check_lib_save_LIBS=$LIBS
16344 LIBS="-l$PANEL_NAME$cf_cv_libtype $LIBS"
16345 cat >conftest.$ac_ext <<_ACEOF
16346 #line 16346 "configure"
16347 #include "confdefs.h"
16349 /* Override any gcc2 internal prototype to avoid an error. */
16353 /* We use char because int might match the return type of a gcc2
16354 builtin and then its argument prototype would still apply. */
16364 rm -f conftest.$ac_objext conftest$ac_exeext
16365 if { (eval echo "$as_me:16365: \"$ac_link\"") >&5
16366 (eval $ac_link) 2>&5
16368 echo "$as_me:16368: \$? = $ac_status" >&5
16369 (exit $ac_status); } &&
16370 { ac_try='test -s conftest$ac_exeext'
16371 { (eval echo "$as_me:16371: \"$ac_try\"") >&5
16372 (eval $ac_try) 2>&5
16374 echo "$as_me:16374: \$? = $ac_status" >&5
16375 (exit $ac_status); }; }; then
16376 eval "$as_ac_Lib=yes"
16378 echo "$as_me: failed program was:" >&5
16379 cat conftest.$ac_ext >&5
16380 eval "$as_ac_Lib=no"
16382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16383 LIBS=$ac_check_lib_save_LIBS
16385 echo "$as_me:16385: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16386 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16387 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16389 cf_upper=`echo "have_lib$PANEL_NAME" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16391 cf_add_libs="$LIBS"
16394 for cf_add_1lib in -l$PANEL_NAME$cf_cv_libtype; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16395 # filter duplicates
16396 for cf_add_1lib in $cf_add_0lib; do
16397 for cf_add_2lib in $cf_add_libs; do
16398 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16403 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16405 LIBS="$cf_add_libs"
16407 cat >>confdefs.h <<EOF
16408 #define $cf_upper 1
16415 cf_curses_headers="$cf_curses_headers panel.h"
16418 echo "$as_me:16418: checking if you want to check for menu functions" >&5
16419 echo $ECHO_N "checking if you want to check for menu functions... $ECHO_C" >&6
16421 # Check whether --enable-menu or --disable-menu was given.
16422 if test "${enable_menu+set}" = set; then
16423 enableval="$enable_menu"
16424 test "$enableval" != no && enableval=yes
16425 if test "$enableval" != "yes" ; then
16428 cf_enable_menu=$cf_default_menu
16432 cf_enable_menu=$cf_default_menu
16435 echo "$as_me:16435: result: $cf_enable_menu" >&5
16436 echo "${ECHO_T}$cf_enable_menu" >&6
16437 if test $cf_enable_menu = yes
16439 case $cf_cv_screen in
16444 echo "$as_me:16444: checking for NetBSD menu.h" >&5
16445 echo $ECHO_N "checking for NetBSD menu.h... $ECHO_C" >&6
16446 if test "${cf_cv_netbsd_menu_h+set}" = set; then
16447 echo $ECHO_N "(cached) $ECHO_C" >&6
16450 cat >conftest.$ac_ext <<_ACEOF
16451 #line 16451 "configure"
16452 #include "confdefs.h"
16454 #include <${cf_cv_ncurses_header:-curses.h}>
16462 int y = menu->max_item_width;
16468 rm -f conftest.$ac_objext
16469 if { (eval echo "$as_me:16469: \"$ac_compile\"") >&5
16470 (eval $ac_compile) 2>&5
16472 echo "$as_me:16472: \$? = $ac_status" >&5
16473 (exit $ac_status); } &&
16474 { ac_try='test -s conftest.$ac_objext'
16475 { (eval echo "$as_me:16475: \"$ac_try\"") >&5
16476 (eval $ac_try) 2>&5
16478 echo "$as_me:16478: \$? = $ac_status" >&5
16479 (exit $ac_status); }; }; then
16480 cf_cv_netbsd_menu_h=yes
16483 echo "$as_me: failed program was:" >&5
16484 cat conftest.$ac_ext >&5
16485 cf_cv_netbsd_menu_h=no
16487 rm -f conftest.$ac_objext conftest.$ac_ext
16490 echo "$as_me:16490: result: $cf_cv_netbsd_menu_h" >&5
16491 echo "${ECHO_T}$cf_cv_netbsd_menu_h" >&6
16493 test "$cf_cv_netbsd_menu_h" = yes &&
16494 cat >>confdefs.h <<\EOF
16495 #define HAVE_NETBSD_MENU_H 1
16501 cf_have_curses_lib=no
16503 : ${NCURSES_CONFIG_PKG:=none}
16504 if test "x${NCURSES_CONFIG_PKG}" = xnone; then
16506 elif test "x${PKG_CONFIG:=none}" != xnone; then
16507 echo "$as_me:16507: checking pkg-config for $MENU_NAME$cf_cv_libtype" >&5
16508 echo $ECHO_N "checking pkg-config for $MENU_NAME$cf_cv_libtype... $ECHO_C" >&6
16509 if "$PKG_CONFIG" --exists $MENU_NAME$cf_cv_libtype ; then
16510 echo "$as_me:16510: result: yes" >&5
16511 echo "${ECHO_T}yes" >&6
16513 echo "$as_me:16513: checking if the $MENU_NAME$cf_cv_libtype package files work" >&5
16514 echo $ECHO_N "checking if the $MENU_NAME$cf_cv_libtype package files work... $ECHO_C" >&6
16516 cf_save_CPPFLAGS="$CPPFLAGS"
16517 cf_save_LIBS="$LIBS"
16522 cf_new_extra_cppflags=
16524 for cf_add_cflags in `$PKG_CONFIG --cflags $MENU_NAME$cf_cv_libtype`
16526 case $cf_fix_cppflags in
16528 case $cf_add_cflags in
16529 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16530 case $cf_add_cflags in
16532 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16534 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16535 && test -z "${cf_tst_cflags}" \
16536 && cf_fix_cppflags=yes
16538 if test $cf_fix_cppflags = yes ; then
16540 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16541 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16544 elif test "${cf_tst_cflags}" = "\"'" ; then
16546 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16547 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16553 case "$CPPFLAGS" in
16557 case $cf_add_cflags in
16559 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16561 CPPFLAGS=`echo "$CPPFLAGS" | \
16562 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16563 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16568 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16569 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16576 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16577 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16584 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16585 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16587 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16589 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16590 && test -z "${cf_tst_cflags}" \
16591 && cf_fix_cppflags=no
16596 if test -n "$cf_new_cflags" ; then
16598 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16599 CFLAGS="${CFLAGS}$cf_new_cflags"
16603 if test -n "$cf_new_cppflags" ; then
16605 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16606 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16610 if test -n "$cf_new_extra_cppflags" ; then
16612 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16613 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16617 cf_add_libs="$LIBS"
16620 for cf_add_1lib in `$PKG_CONFIG --libs $MENU_NAME$cf_cv_libtype`; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16621 # filter duplicates
16622 for cf_add_1lib in $cf_add_0lib; do
16623 for cf_add_2lib in $cf_add_libs; do
16624 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16629 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16631 LIBS="$cf_add_libs"
16633 cat >conftest.$ac_ext <<_ACEOF
16634 #line 16634 "configure"
16635 #include "confdefs.h"
16636 #include <$MENU_NAME.h>
16640 (void) menu_driver ( 0,0 );
16645 rm -f conftest.$ac_objext conftest$ac_exeext
16646 if { (eval echo "$as_me:16646: \"$ac_link\"") >&5
16647 (eval $ac_link) 2>&5
16649 echo "$as_me:16649: \$? = $ac_status" >&5
16650 (exit $ac_status); } &&
16651 { ac_try='test -s conftest$ac_exeext'
16652 { (eval echo "$as_me:16652: \"$ac_try\"") >&5
16653 (eval $ac_try) 2>&5
16655 echo "$as_me:16655: \$? = $ac_status" >&5
16656 (exit $ac_status); }; }; then
16657 if test "$cross_compiling" = yes; then
16658 cf_have_curses_lib=maybe
16660 cat >conftest.$ac_ext <<_ACEOF
16661 #line 16661 "configure"
16662 #include "confdefs.h"
16663 #include <$MENU_NAME.h>
16665 { (void) menu_driver ( 0,0 ); return 0; }
16667 rm -f conftest$ac_exeext
16668 if { (eval echo "$as_me:16668: \"$ac_link\"") >&5
16669 (eval $ac_link) 2>&5
16671 echo "$as_me:16671: \$? = $ac_status" >&5
16672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16673 { (eval echo "$as_me:16673: \"$ac_try\"") >&5
16674 (eval $ac_try) 2>&5
16676 echo "$as_me:16676: \$? = $ac_status" >&5
16677 (exit $ac_status); }; }; then
16678 cf_have_curses_lib=yes
16680 echo "$as_me: program exited with status $ac_status" >&5
16681 echo "$as_me: failed program was:" >&5
16682 cat conftest.$ac_ext >&5
16683 cf_have_curses_lib=no
16685 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16688 echo "$as_me: failed program was:" >&5
16689 cat conftest.$ac_ext >&5
16690 cf_have_curses_lib=no
16692 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16693 echo "$as_me:16693: result: $cf_have_curses_lib" >&5
16694 echo "${ECHO_T}$cf_have_curses_lib" >&6
16695 test "$cf_have_curses_lib" = maybe && cf_have_curses_lib=yes
16696 if test "$cf_have_curses_lib" != "yes"
16698 CPPFLAGS="$cf_save_CPPFLAGS"
16699 LIBS="$cf_save_LIBS"
16702 cf_upper=`echo "have_lib$MENU_NAME" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16704 cat >>confdefs.h <<EOF
16705 #define $cf_upper 1
16711 if test "$cf_have_curses_lib" = no; then
16712 as_ac_Lib=`echo "ac_cv_lib_$MENU_NAME$cf_cv_libtype''_menu_driver" | $as_tr_sh`
16713 echo "$as_me:16713: checking for menu_driver in -l$MENU_NAME$cf_cv_libtype" >&5
16714 echo $ECHO_N "checking for menu_driver in -l$MENU_NAME$cf_cv_libtype... $ECHO_C" >&6
16715 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
16716 echo $ECHO_N "(cached) $ECHO_C" >&6
16718 ac_check_lib_save_LIBS=$LIBS
16719 LIBS="-l$MENU_NAME$cf_cv_libtype $LIBS"
16720 cat >conftest.$ac_ext <<_ACEOF
16721 #line 16721 "configure"
16722 #include "confdefs.h"
16724 /* Override any gcc2 internal prototype to avoid an error. */
16728 /* We use char because int might match the return type of a gcc2
16729 builtin and then its argument prototype would still apply. */
16730 char menu_driver ();
16739 rm -f conftest.$ac_objext conftest$ac_exeext
16740 if { (eval echo "$as_me:16740: \"$ac_link\"") >&5
16741 (eval $ac_link) 2>&5
16743 echo "$as_me:16743: \$? = $ac_status" >&5
16744 (exit $ac_status); } &&
16745 { ac_try='test -s conftest$ac_exeext'
16746 { (eval echo "$as_me:16746: \"$ac_try\"") >&5
16747 (eval $ac_try) 2>&5
16749 echo "$as_me:16749: \$? = $ac_status" >&5
16750 (exit $ac_status); }; }; then
16751 eval "$as_ac_Lib=yes"
16753 echo "$as_me: failed program was:" >&5
16754 cat conftest.$ac_ext >&5
16755 eval "$as_ac_Lib=no"
16757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16758 LIBS=$ac_check_lib_save_LIBS
16760 echo "$as_me:16760: result: `eval echo '${'$as_ac_Lib'}'`" >&5
16761 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
16762 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
16764 cf_upper=`echo "have_lib$MENU_NAME" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
16766 cf_add_libs="$LIBS"
16769 for cf_add_1lib in -l$MENU_NAME$cf_cv_libtype; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16770 # filter duplicates
16771 for cf_add_1lib in $cf_add_0lib; do
16772 for cf_add_2lib in $cf_add_libs; do
16773 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
16778 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
16780 LIBS="$cf_add_libs"
16782 cat >>confdefs.h <<EOF
16783 #define $cf_upper 1
16790 cf_curses_headers="$cf_curses_headers menu.h"
16793 echo "$as_me:16793: checking if you want to check for form functions" >&5
16794 echo $ECHO_N "checking if you want to check for form functions... $ECHO_C" >&6
16796 # Check whether --enable-form or --disable-form was given.
16797 if test "${enable_form+set}" = set; then
16798 enableval="$enable_form"
16799 test "$enableval" != no && enableval=yes
16800 if test "$enableval" != "yes" ; then
16803 cf_enable_form=$cf_default_form
16807 cf_enable_form=$cf_default_form
16810 echo "$as_me:16810: result: $cf_enable_form" >&5
16811 echo "${ECHO_T}$cf_enable_form" >&6
16812 if test $cf_enable_form = yes
16814 case $cf_cv_screen in
16819 echo "$as_me:16819: checking for NetBSD form.h" >&5
16820 echo $ECHO_N "checking for NetBSD form.h... $ECHO_C" >&6
16821 if test "${cf_cv_netbsd_form_h+set}" = set; then
16822 echo $ECHO_N "(cached) $ECHO_C" >&6
16825 cat >conftest.$ac_ext <<_ACEOF
16826 #line 16826 "configure"
16827 #include "confdefs.h"
16829 #include <${cf_cv_ncurses_header:-curses.h}>
16837 int y = current_field(form)->cursor_ypos;
16838 int x = current_field(form)->cursor_xpos;
16844 rm -f conftest.$ac_objext
16845 if { (eval echo "$as_me:16845: \"$ac_compile\"") >&5
16846 (eval $ac_compile) 2>&5
16848 echo "$as_me:16848: \$? = $ac_status" >&5
16849 (exit $ac_status); } &&
16850 { ac_try='test -s conftest.$ac_objext'
16851 { (eval echo "$as_me:16851: \"$ac_try\"") >&5
16852 (eval $ac_try) 2>&5
16854 echo "$as_me:16854: \$? = $ac_status" >&5
16855 (exit $ac_status); }; }; then
16856 cf_cv_netbsd_form_h=yes
16859 echo "$as_me: failed program was:" >&5
16860 cat conftest.$ac_ext >&5
16861 cf_cv_netbsd_form_h=no
16863 rm -f conftest.$ac_objext conftest.$ac_ext
16866 echo "$as_me:16866: result: $cf_cv_netbsd_form_h" >&5
16867 echo "${ECHO_T}$cf_cv_netbsd_form_h" >&6
16869 test "$cf_cv_netbsd_form_h" = yes &&
16870 cat >>confdefs.h <<\EOF
16871 #define HAVE_NETBSD_FORM_H 1
16877 cf_have_curses_lib=no
16879 : ${NCURSES_CONFIG_PKG:=none}
16880 if test "x${NCURSES_CONFIG_PKG}" = xnone; then
16882 elif test "x${PKG_CONFIG:=none}" != xnone; then
16883 echo "$as_me:16883: checking pkg-config for $FORM_NAME$cf_cv_libtype" >&5
16884 echo $ECHO_N "checking pkg-config for $FORM_NAME$cf_cv_libtype... $ECHO_C" >&6
16885 if "$PKG_CONFIG" --exists $FORM_NAME$cf_cv_libtype ; then
16886 echo "$as_me:16886: result: yes" >&5
16887 echo "${ECHO_T}yes" >&6
16889 echo "$as_me:16889: checking if the $FORM_NAME$cf_cv_libtype package files work" >&5
16890 echo $ECHO_N "checking if the $FORM_NAME$cf_cv_libtype package files work... $ECHO_C" >&6
16892 cf_save_CPPFLAGS="$CPPFLAGS"
16893 cf_save_LIBS="$LIBS"
16898 cf_new_extra_cppflags=
16900 for cf_add_cflags in `$PKG_CONFIG --cflags $FORM_NAME$cf_cv_libtype`
16902 case $cf_fix_cppflags in
16904 case $cf_add_cflags in
16905 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
16906 case $cf_add_cflags in
16908 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
16910 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16911 && test -z "${cf_tst_cflags}" \
16912 && cf_fix_cppflags=yes
16914 if test $cf_fix_cppflags = yes ; then
16916 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16917 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16920 elif test "${cf_tst_cflags}" = "\"'" ; then
16922 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16923 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16929 case "$CPPFLAGS" in
16933 case $cf_add_cflags in
16935 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
16937 CPPFLAGS=`echo "$CPPFLAGS" | \
16938 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
16939 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
16944 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
16945 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
16952 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
16953 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
16960 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
16961 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
16963 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
16965 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
16966 && test -z "${cf_tst_cflags}" \
16967 && cf_fix_cppflags=no
16972 if test -n "$cf_new_cflags" ; then
16974 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
16975 CFLAGS="${CFLAGS}$cf_new_cflags"
16979 if test -n "$cf_new_cppflags" ; then
16981 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
16982 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
16986 if test -n "$cf_new_extra_cppflags" ; then
16988 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
16989 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
16993 cf_add_libs="$LIBS"
16996 for cf_add_1lib in `$PKG_CONFIG --libs $FORM_NAME$cf_cv_libtype`; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
16997 # filter duplicates
16998 for cf_add_1lib in $cf_add_0lib; do
16999 for cf_add_2lib in $cf_add_libs; do
17000 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
17005 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
17007 LIBS="$cf_add_libs"
17009 cat >conftest.$ac_ext <<_ACEOF
17010 #line 17010 "configure"
17011 #include "confdefs.h"
17012 #include <$FORM_NAME.h>
17016 (void) form_driver ( 0,0 );
17021 rm -f conftest.$ac_objext conftest$ac_exeext
17022 if { (eval echo "$as_me:17022: \"$ac_link\"") >&5
17023 (eval $ac_link) 2>&5
17025 echo "$as_me:17025: \$? = $ac_status" >&5
17026 (exit $ac_status); } &&
17027 { ac_try='test -s conftest$ac_exeext'
17028 { (eval echo "$as_me:17028: \"$ac_try\"") >&5
17029 (eval $ac_try) 2>&5
17031 echo "$as_me:17031: \$? = $ac_status" >&5
17032 (exit $ac_status); }; }; then
17033 if test "$cross_compiling" = yes; then
17034 cf_have_curses_lib=maybe
17036 cat >conftest.$ac_ext <<_ACEOF
17037 #line 17037 "configure"
17038 #include "confdefs.h"
17039 #include <$FORM_NAME.h>
17041 { (void) form_driver ( 0,0 ); return 0; }
17043 rm -f conftest$ac_exeext
17044 if { (eval echo "$as_me:17044: \"$ac_link\"") >&5
17045 (eval $ac_link) 2>&5
17047 echo "$as_me:17047: \$? = $ac_status" >&5
17048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17049 { (eval echo "$as_me:17049: \"$ac_try\"") >&5
17050 (eval $ac_try) 2>&5
17052 echo "$as_me:17052: \$? = $ac_status" >&5
17053 (exit $ac_status); }; }; then
17054 cf_have_curses_lib=yes
17056 echo "$as_me: program exited with status $ac_status" >&5
17057 echo "$as_me: failed program was:" >&5
17058 cat conftest.$ac_ext >&5
17059 cf_have_curses_lib=no
17061 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17064 echo "$as_me: failed program was:" >&5
17065 cat conftest.$ac_ext >&5
17066 cf_have_curses_lib=no
17068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17069 echo "$as_me:17069: result: $cf_have_curses_lib" >&5
17070 echo "${ECHO_T}$cf_have_curses_lib" >&6
17071 test "$cf_have_curses_lib" = maybe && cf_have_curses_lib=yes
17072 if test "$cf_have_curses_lib" != "yes"
17074 CPPFLAGS="$cf_save_CPPFLAGS"
17075 LIBS="$cf_save_LIBS"
17078 cf_upper=`echo "have_lib$FORM_NAME" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17080 cat >>confdefs.h <<EOF
17081 #define $cf_upper 1
17087 if test "$cf_have_curses_lib" = no; then
17088 as_ac_Lib=`echo "ac_cv_lib_$FORM_NAME$cf_cv_libtype''_form_driver" | $as_tr_sh`
17089 echo "$as_me:17089: checking for form_driver in -l$FORM_NAME$cf_cv_libtype" >&5
17090 echo $ECHO_N "checking for form_driver in -l$FORM_NAME$cf_cv_libtype... $ECHO_C" >&6
17091 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
17092 echo $ECHO_N "(cached) $ECHO_C" >&6
17094 ac_check_lib_save_LIBS=$LIBS
17095 LIBS="-l$FORM_NAME$cf_cv_libtype $LIBS"
17096 cat >conftest.$ac_ext <<_ACEOF
17097 #line 17097 "configure"
17098 #include "confdefs.h"
17100 /* Override any gcc2 internal prototype to avoid an error. */
17104 /* We use char because int might match the return type of a gcc2
17105 builtin and then its argument prototype would still apply. */
17106 char form_driver ();
17115 rm -f conftest.$ac_objext conftest$ac_exeext
17116 if { (eval echo "$as_me:17116: \"$ac_link\"") >&5
17117 (eval $ac_link) 2>&5
17119 echo "$as_me:17119: \$? = $ac_status" >&5
17120 (exit $ac_status); } &&
17121 { ac_try='test -s conftest$ac_exeext'
17122 { (eval echo "$as_me:17122: \"$ac_try\"") >&5
17123 (eval $ac_try) 2>&5
17125 echo "$as_me:17125: \$? = $ac_status" >&5
17126 (exit $ac_status); }; }; then
17127 eval "$as_ac_Lib=yes"
17129 echo "$as_me: failed program was:" >&5
17130 cat conftest.$ac_ext >&5
17131 eval "$as_ac_Lib=no"
17133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17134 LIBS=$ac_check_lib_save_LIBS
17136 echo "$as_me:17136: result: `eval echo '${'$as_ac_Lib'}'`" >&5
17137 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
17138 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
17140 cf_upper=`echo "have_lib$FORM_NAME" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
17142 cf_add_libs="$LIBS"
17145 for cf_add_1lib in -l$FORM_NAME$cf_cv_libtype; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
17146 # filter duplicates
17147 for cf_add_1lib in $cf_add_0lib; do
17148 for cf_add_2lib in $cf_add_libs; do
17149 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
17154 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
17156 LIBS="$cf_add_libs"
17158 cat >>confdefs.h <<EOF
17159 #define $cf_upper 1
17166 cf_curses_headers="$cf_curses_headers form.h"
17169 # look for curses-related headers
17171 for ac_header in $cf_curses_headers
17173 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17174 echo "$as_me:17174: checking for $ac_header" >&5
17175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17177 echo $ECHO_N "(cached) $ECHO_C" >&6
17179 cat >conftest.$ac_ext <<_ACEOF
17180 #line 17180 "configure"
17181 #include "confdefs.h"
17182 #include <$ac_header>
17184 if { (eval echo "$as_me:17184: \"$ac_cpp conftest.$ac_ext\"") >&5
17185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17187 egrep -v '^ *\+' conftest.er1 >conftest.err
17189 cat conftest.err >&5
17190 echo "$as_me:17190: \$? = $ac_status" >&5
17191 (exit $ac_status); } >/dev/null; then
17192 if test -s conftest.err; then
17193 ac_cpp_err=$ac_c_preproc_warn_flag
17200 if test -z "$ac_cpp_err"; then
17201 eval "$as_ac_Header=yes"
17203 echo "$as_me: failed program was:" >&5
17204 cat conftest.$ac_ext >&5
17205 eval "$as_ac_Header=no"
17207 rm -f conftest.err conftest.$ac_ext
17209 echo "$as_me:17209: result: `eval echo '${'$as_ac_Header'}'`" >&5
17210 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17212 cat >>confdefs.h <<EOF
17213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17219 echo "$as_me:17219: checking for ANSI C header files" >&5
17220 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
17221 if test "${ac_cv_header_stdc+set}" = set; then
17222 echo $ECHO_N "(cached) $ECHO_C" >&6
17224 cat >conftest.$ac_ext <<_ACEOF
17225 #line 17225 "configure"
17226 #include "confdefs.h"
17227 #include <stdlib.h>
17228 #include <stdarg.h>
17229 #include <string.h>
17233 if { (eval echo "$as_me:17233: \"$ac_cpp conftest.$ac_ext\"") >&5
17234 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17236 egrep -v '^ *\+' conftest.er1 >conftest.err
17238 cat conftest.err >&5
17239 echo "$as_me:17239: \$? = $ac_status" >&5
17240 (exit $ac_status); } >/dev/null; then
17241 if test -s conftest.err; then
17242 ac_cpp_err=$ac_c_preproc_warn_flag
17249 if test -z "$ac_cpp_err"; then
17250 ac_cv_header_stdc=yes
17252 echo "$as_me: failed program was:" >&5
17253 cat conftest.$ac_ext >&5
17254 ac_cv_header_stdc=no
17256 rm -f conftest.err conftest.$ac_ext
17258 if test $ac_cv_header_stdc = yes; then
17259 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17260 cat >conftest.$ac_ext <<_ACEOF
17261 #line 17261 "configure"
17262 #include "confdefs.h"
17263 #include <string.h>
17266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17267 egrep "memchr" >/dev/null 2>&1; then
17270 ac_cv_header_stdc=no
17276 if test $ac_cv_header_stdc = yes; then
17277 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17278 cat >conftest.$ac_ext <<_ACEOF
17279 #line 17279 "configure"
17280 #include "confdefs.h"
17281 #include <stdlib.h>
17284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17285 egrep "free" >/dev/null 2>&1; then
17288 ac_cv_header_stdc=no
17294 if test $ac_cv_header_stdc = yes; then
17295 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17296 if test "$cross_compiling" = yes; then
17299 cat >conftest.$ac_ext <<_ACEOF
17300 #line 17300 "configure"
17301 #include "confdefs.h"
17303 #if ((' ' & 0x0FF) == 0x020)
17304 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17305 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17307 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
17308 || ('j' <= (c) && (c) <= 'r') \
17309 || ('s' <= (c) && (c) <= 'z'))
17310 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17313 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17318 for (i = 0; i < 256; i++)
17319 if (XOR (islower (i), ISLOWER (i))
17320 || toupper (i) != TOUPPER (i))
17321 $ac_main_return(2);
17322 $ac_main_return (0);
17325 rm -f conftest$ac_exeext
17326 if { (eval echo "$as_me:17326: \"$ac_link\"") >&5
17327 (eval $ac_link) 2>&5
17329 echo "$as_me:17329: \$? = $ac_status" >&5
17330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17331 { (eval echo "$as_me:17331: \"$ac_try\"") >&5
17332 (eval $ac_try) 2>&5
17334 echo "$as_me:17334: \$? = $ac_status" >&5
17335 (exit $ac_status); }; }; then
17338 echo "$as_me: program exited with status $ac_status" >&5
17339 echo "$as_me: failed program was:" >&5
17340 cat conftest.$ac_ext >&5
17341 ac_cv_header_stdc=no
17343 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17347 echo "$as_me:17347: result: $ac_cv_header_stdc" >&5
17348 echo "${ECHO_T}$ac_cv_header_stdc" >&6
17349 if test $ac_cv_header_stdc = yes; then
17351 cat >>confdefs.h <<\EOF
17352 #define STDC_HEADERS 1
17357 echo "$as_me:17357: checking whether time.h and sys/time.h may both be included" >&5
17358 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
17359 if test "${ac_cv_header_time+set}" = set; then
17360 echo $ECHO_N "(cached) $ECHO_C" >&6
17362 cat >conftest.$ac_ext <<_ACEOF
17363 #line 17363 "configure"
17364 #include "confdefs.h"
17365 #include <sys/types.h>
17366 #include <sys/time.h>
17372 if ((struct tm *) 0)
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
17390 ac_cv_header_time=yes
17392 echo "$as_me: failed program was:" >&5
17393 cat conftest.$ac_ext >&5
17394 ac_cv_header_time=no
17396 rm -f conftest.$ac_objext conftest.$ac_ext
17398 echo "$as_me:17398: result: $ac_cv_header_time" >&5
17399 echo "${ECHO_T}$ac_cv_header_time" >&6
17400 if test $ac_cv_header_time = yes; then
17402 cat >>confdefs.h <<\EOF
17403 #define TIME_WITH_SYS_TIME 1
17421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17422 echo "$as_me:17422: checking for $ac_header" >&5
17423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17425 echo $ECHO_N "(cached) $ECHO_C" >&6
17427 cat >conftest.$ac_ext <<_ACEOF
17428 #line 17428 "configure"
17429 #include "confdefs.h"
17430 #include <$ac_header>
17432 if { (eval echo "$as_me:17432: \"$ac_cpp conftest.$ac_ext\"") >&5
17433 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17435 egrep -v '^ *\+' conftest.er1 >conftest.err
17437 cat conftest.err >&5
17438 echo "$as_me:17438: \$? = $ac_status" >&5
17439 (exit $ac_status); } >/dev/null; then
17440 if test -s conftest.err; then
17441 ac_cpp_err=$ac_c_preproc_warn_flag
17448 if test -z "$ac_cpp_err"; then
17449 eval "$as_ac_Header=yes"
17451 echo "$as_me: failed program was:" >&5
17452 cat conftest.$ac_ext >&5
17453 eval "$as_ac_Header=no"
17455 rm -f conftest.err conftest.$ac_ext
17457 echo "$as_me:17457: result: `eval echo '${'$as_ac_Header'}'`" >&5
17458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17460 cat >>confdefs.h <<EOF
17461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17467 for ac_header in unistd.h getopt.h
17469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17470 echo "$as_me:17470: checking for $ac_header" >&5
17471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17473 echo $ECHO_N "(cached) $ECHO_C" >&6
17475 cat >conftest.$ac_ext <<_ACEOF
17476 #line 17476 "configure"
17477 #include "confdefs.h"
17478 #include <$ac_header>
17480 if { (eval echo "$as_me:17480: \"$ac_cpp conftest.$ac_ext\"") >&5
17481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17483 egrep -v '^ *\+' conftest.er1 >conftest.err
17485 cat conftest.err >&5
17486 echo "$as_me:17486: \$? = $ac_status" >&5
17487 (exit $ac_status); } >/dev/null; then
17488 if test -s conftest.err; then
17489 ac_cpp_err=$ac_c_preproc_warn_flag
17496 if test -z "$ac_cpp_err"; then
17497 eval "$as_ac_Header=yes"
17499 echo "$as_me: failed program was:" >&5
17500 cat conftest.$ac_ext >&5
17501 eval "$as_ac_Header=no"
17503 rm -f conftest.err conftest.$ac_ext
17505 echo "$as_me:17505: result: `eval echo '${'$as_ac_Header'}'`" >&5
17506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17508 cat >>confdefs.h <<EOF
17509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17515 echo "$as_me:17515: checking for header declaring getopt variables" >&5
17516 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
17517 if test "${cf_cv_getopt_header+set}" = set; then
17518 echo $ECHO_N "(cached) $ECHO_C" >&6
17521 cf_cv_getopt_header=none
17522 for cf_header in stdio.h stdlib.h unistd.h getopt.h
17524 cat >conftest.$ac_ext <<_ACEOF
17525 #line 17525 "configure"
17526 #include "confdefs.h"
17528 #include <$cf_header>
17532 int x = optind; char *y = optarg
17537 rm -f conftest.$ac_objext
17538 if { (eval echo "$as_me:17538: \"$ac_compile\"") >&5
17539 (eval $ac_compile) 2>&5
17541 echo "$as_me:17541: \$? = $ac_status" >&5
17542 (exit $ac_status); } &&
17543 { ac_try='test -s conftest.$ac_objext'
17544 { (eval echo "$as_me:17544: \"$ac_try\"") >&5
17545 (eval $ac_try) 2>&5
17547 echo "$as_me:17547: \$? = $ac_status" >&5
17548 (exit $ac_status); }; }; then
17549 cf_cv_getopt_header=$cf_header
17552 echo "$as_me: failed program was:" >&5
17553 cat conftest.$ac_ext >&5
17555 rm -f conftest.$ac_objext conftest.$ac_ext
17559 echo "$as_me:17559: result: $cf_cv_getopt_header" >&5
17560 echo "${ECHO_T}$cf_cv_getopt_header" >&6
17561 if test $cf_cv_getopt_header != none ; then
17563 cat >>confdefs.h <<\EOF
17564 #define HAVE_GETOPT_HEADER 1
17568 if test $cf_cv_getopt_header = getopt.h ; then
17570 cat >>confdefs.h <<\EOF
17571 #define NEED_GETOPT_H 1
17583 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17584 echo "$as_me:17584: checking for $ac_func" >&5
17585 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17586 if eval "test \"\${$as_ac_var+set}\" = set"; then
17587 echo $ECHO_N "(cached) $ECHO_C" >&6
17589 cat >conftest.$ac_ext <<_ACEOF
17590 #line 17590 "configure"
17591 #include "confdefs.h"
17592 #define $ac_func autoconf_temporary
17593 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
17600 /* We use char because int might match the return type of a gcc2
17601 builtin and then its argument prototype would still apply. */
17602 char $ac_func (void);
17608 /* The GNU C library defines stubs for functions which it implements
17609 to always fail with ENOSYS. Some functions are actually named
17610 something starting with __ and the normal name is an alias. */
17611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17612 #error found stub for $ac_func
17615 return $ac_func ();
17620 rm -f conftest.$ac_objext conftest$ac_exeext
17621 if { (eval echo "$as_me:17621: \"$ac_link\"") >&5
17622 (eval $ac_link) 2>&5
17624 echo "$as_me:17624: \$? = $ac_status" >&5
17625 (exit $ac_status); } &&
17626 { ac_try='test -s conftest$ac_exeext'
17627 { (eval echo "$as_me:17627: \"$ac_try\"") >&5
17628 (eval $ac_try) 2>&5
17630 echo "$as_me:17630: \$? = $ac_status" >&5
17631 (exit $ac_status); }; }; then
17632 eval "$as_ac_var=yes"
17634 echo "$as_me: failed program was:" >&5
17635 cat conftest.$ac_ext >&5
17636 eval "$as_ac_var=no"
17638 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17640 echo "$as_me:17640: result: `eval echo '${'$as_ac_var'}'`" >&5
17641 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17642 if test `eval echo '${'$as_ac_var'}'` = yes; then
17643 cat >>confdefs.h <<EOF
17644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17650 # use a compile-check to work with ncurses*-config and subdirectory includes
17651 echo "$as_me:17651: checking if we can use termcap.h" >&5
17652 echo $ECHO_N "checking if we can use termcap.h... $ECHO_C" >&6
17653 if test "${cf_cv_have_termcap_h+set}" = set; then
17654 echo $ECHO_N "(cached) $ECHO_C" >&6
17657 cat >conftest.$ac_ext <<_ACEOF
17658 #line 17658 "configure"
17659 #include "confdefs.h"
17661 #include <curses.h>
17662 #ifdef NCURSES_VERSION
17663 #undef NCURSES_VERSION
17665 #include <termcap.h>
17666 #ifndef NCURSES_VERSION
17667 #error wrong header
17678 rm -f conftest.$ac_objext
17679 if { (eval echo "$as_me:17679: \"$ac_compile\"") >&5
17680 (eval $ac_compile) 2>&5
17682 echo "$as_me:17682: \$? = $ac_status" >&5
17683 (exit $ac_status); } &&
17684 { ac_try='test -s conftest.$ac_objext'
17685 { (eval echo "$as_me:17685: \"$ac_try\"") >&5
17686 (eval $ac_try) 2>&5
17688 echo "$as_me:17688: \$? = $ac_status" >&5
17689 (exit $ac_status); }; }; then
17690 cf_cv_have_termcap_h=yes
17692 echo "$as_me: failed program was:" >&5
17693 cat conftest.$ac_ext >&5
17694 cf_cv_have_termcap_h=no
17696 rm -f conftest.$ac_objext conftest.$ac_ext
17698 echo "$as_me:17698: result: $cf_cv_have_termcap_h" >&5
17699 echo "${ECHO_T}$cf_cv_have_termcap_h" >&6
17700 if test "x$cf_cv_have_termcap_h" = xyes
17703 cat >>confdefs.h <<\EOF
17704 #define HAVE_TERMCAP_H 1
17708 echo "$as_me:17708: checking if we can use ncurses/termcap.h" >&5
17709 echo $ECHO_N "checking if we can use ncurses/termcap.h... $ECHO_C" >&6
17710 if test "${cf_cv_have_ncurses_termcap_h+set}" = set; then
17711 echo $ECHO_N "(cached) $ECHO_C" >&6
17714 cat >conftest.$ac_ext <<_ACEOF
17715 #line 17715 "configure"
17716 #include "confdefs.h"
17718 #include <ncurses/curses.h>
17719 #ifdef NCURSES_VERSION
17720 #undef NCURSES_VERSION
17722 #include <ncurses/termcap.h>
17723 #ifndef NCURSES_VERSION
17724 #error wrong header
17735 rm -f conftest.$ac_objext
17736 if { (eval echo "$as_me:17736: \"$ac_compile\"") >&5
17737 (eval $ac_compile) 2>&5
17739 echo "$as_me:17739: \$? = $ac_status" >&5
17740 (exit $ac_status); } &&
17741 { ac_try='test -s conftest.$ac_objext'
17742 { (eval echo "$as_me:17742: \"$ac_try\"") >&5
17743 (eval $ac_try) 2>&5
17745 echo "$as_me:17745: \$? = $ac_status" >&5
17746 (exit $ac_status); }; }; then
17747 cf_cv_have_ncurses_termcap_h=yes
17749 echo "$as_me: failed program was:" >&5
17750 cat conftest.$ac_ext >&5
17751 cf_cv_have_ncurses_termcap_h=no
17753 rm -f conftest.$ac_objext conftest.$ac_ext
17755 echo "$as_me:17755: result: $cf_cv_have_ncurses_termcap_h" >&5
17756 echo "${ECHO_T}$cf_cv_have_ncurses_termcap_h" >&6
17757 test "x$cf_cv_have_ncurses_termcap_h" = xyes &&
17758 cat >>confdefs.h <<\EOF
17759 #define HAVE_NCURSES_TERMCAP_H 1
17764 if test "x$ac_cv_func_getopt" = xno; then
17765 { { echo "$as_me:17765: error: getopt is required for building programs" >&5
17766 echo "$as_me: error: getopt is required for building programs" >&2;}
17767 { (exit 1); exit 1; }; }
17770 if test "$cf_enable_widec" = yes; then
17783 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17784 echo "$as_me:17784: checking for $ac_func" >&5
17785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17786 if eval "test \"\${$as_ac_var+set}\" = set"; then
17787 echo $ECHO_N "(cached) $ECHO_C" >&6
17789 cat >conftest.$ac_ext <<_ACEOF
17790 #line 17790 "configure"
17791 #include "confdefs.h"
17792 #define $ac_func autoconf_temporary
17793 #include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */
17800 /* We use char because int might match the return type of a gcc2
17801 builtin and then its argument prototype would still apply. */
17802 char $ac_func (void);
17808 /* The GNU C library defines stubs for functions which it implements
17809 to always fail with ENOSYS. Some functions are actually named
17810 something starting with __ and the normal name is an alias. */
17811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17812 #error found stub for $ac_func
17815 return $ac_func ();
17820 rm -f conftest.$ac_objext conftest$ac_exeext
17821 if { (eval echo "$as_me:17821: \"$ac_link\"") >&5
17822 (eval $ac_link) 2>&5
17824 echo "$as_me:17824: \$? = $ac_status" >&5
17825 (exit $ac_status); } &&
17826 { ac_try='test -s conftest$ac_exeext'
17827 { (eval echo "$as_me:17827: \"$ac_try\"") >&5
17828 (eval $ac_try) 2>&5
17830 echo "$as_me:17830: \$? = $ac_status" >&5
17831 (exit $ac_status); }; }; then
17832 eval "$as_ac_var=yes"
17834 echo "$as_me: failed program was:" >&5
17835 cat conftest.$ac_ext >&5
17836 eval "$as_ac_var=no"
17838 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17840 echo "$as_me:17840: result: `eval echo '${'$as_ac_var'}'`" >&5
17841 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17842 if test `eval echo '${'$as_ac_var'}'` = yes; then
17843 cat >>confdefs.h <<EOF
17844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17852 echo "$as_me:17852: checking definition to turn on extended curses functions" >&5
17853 echo $ECHO_N "checking definition to turn on extended curses functions... $ECHO_C" >&6
17854 if test "${cf_cv_need_xopen_extension+set}" = set; then
17855 echo $ECHO_N "(cached) $ECHO_C" >&6
17858 cf_cv_need_xopen_extension=unknown
17859 cat >conftest.$ac_ext <<_ACEOF
17860 #line 17860 "configure"
17861 #include "confdefs.h"
17863 #include <stdlib.h>
17864 #include <${cf_cv_ncurses_header:-curses.h}>
17869 #if defined(NCURSES_VERSION_PATCH)
17870 #if (NCURSES_VERSION_PATCH < 20100501) && (NCURSES_VERSION_PATCH >= 20100403)
17874 #ifdef NCURSES_VERSION
17876 int check2 = curs_set((int)sizeof(check));
17878 long x = winnstr(stdscr, "", 0);
17880 #ifdef NCURSES_VERSION
17883 getbegyx(stdscr, y1, x1);
17892 rm -f conftest.$ac_objext conftest$ac_exeext
17893 if { (eval echo "$as_me:17893: \"$ac_link\"") >&5
17894 (eval $ac_link) 2>&5
17896 echo "$as_me:17896: \$? = $ac_status" >&5
17897 (exit $ac_status); } &&
17898 { ac_try='test -s conftest$ac_exeext'
17899 { (eval echo "$as_me:17899: \"$ac_try\"") >&5
17900 (eval $ac_try) 2>&5
17902 echo "$as_me:17902: \$? = $ac_status" >&5
17903 (exit $ac_status); }; }; then
17904 cf_cv_need_xopen_extension=none
17906 echo "$as_me: failed program was:" >&5
17907 cat conftest.$ac_ext >&5
17909 for cf_try_xopen_extension in _XOPEN_SOURCE_EXTENDED NCURSES_WIDECHAR
17911 cat >conftest.$ac_ext <<_ACEOF
17912 #line 17912 "configure"
17913 #include "confdefs.h"
17915 #define $cf_try_xopen_extension 1
17916 #include <stdlib.h>
17917 #include <${cf_cv_ncurses_header:-curses.h}>
17922 #ifdef NCURSES_VERSION
17924 int check2 = curs_set((int)sizeof(check));
17926 long x = winnstr(stdscr, "", 0);
17928 getbegyx(stdscr, y1, x1);
17929 #ifdef NCURSES_VERSION
17940 rm -f conftest.$ac_objext conftest$ac_exeext
17941 if { (eval echo "$as_me:17941: \"$ac_link\"") >&5
17942 (eval $ac_link) 2>&5
17944 echo "$as_me:17944: \$? = $ac_status" >&5
17945 (exit $ac_status); } &&
17946 { ac_try='test -s conftest$ac_exeext'
17947 { (eval echo "$as_me:17947: \"$ac_try\"") >&5
17948 (eval $ac_try) 2>&5
17950 echo "$as_me:17950: \$? = $ac_status" >&5
17951 (exit $ac_status); }; }; then
17952 cf_cv_need_xopen_extension=$cf_try_xopen_extension; break
17954 echo "$as_me: failed program was:" >&5
17955 cat conftest.$ac_ext >&5
17957 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17961 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17964 echo "$as_me:17964: result: $cf_cv_need_xopen_extension" >&5
17965 echo "${ECHO_T}$cf_cv_need_xopen_extension" >&6
17967 case $cf_cv_need_xopen_extension in
17970 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
17971 CPPFLAGS="${CPPFLAGS}-D$cf_cv_need_xopen_extension"
17976 echo "$as_me:17976: checking for term.h" >&5
17977 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
17978 if test "${cf_cv_term_header+set}" = set; then
17979 echo $ECHO_N "(cached) $ECHO_C" >&6
17982 # If we found <ncurses/curses.h>, look for <ncurses/term.h>, but always look
17983 # for <term.h> if we do not find the variant.
17985 cf_header_list="term.h ncurses/term.h ncursesw/term.h"
17987 case ${cf_cv_ncurses_header:-curses.h} in
17989 cf_header_item=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`term.h
17990 cf_header_list="$cf_header_item $cf_header_list"
17994 for cf_header in $cf_header_list
17996 cat >conftest.$ac_ext <<_ACEOF
17997 #line 17997 "configure"
17998 #include "confdefs.h"
18000 #include <${cf_cv_ncurses_header:-curses.h}>
18001 #include <${cf_header}>
18010 rm -f conftest.$ac_objext
18011 if { (eval echo "$as_me:18011: \"$ac_compile\"") >&5
18012 (eval $ac_compile) 2>&5
18014 echo "$as_me:18014: \$? = $ac_status" >&5
18015 (exit $ac_status); } &&
18016 { ac_try='test -s conftest.$ac_objext'
18017 { (eval echo "$as_me:18017: \"$ac_try\"") >&5
18018 (eval $ac_try) 2>&5
18020 echo "$as_me:18020: \$? = $ac_status" >&5
18021 (exit $ac_status); }; }; then
18022 cf_cv_term_header=$cf_header
18025 echo "$as_me: failed program was:" >&5
18026 cat conftest.$ac_ext >&5
18027 cf_cv_term_header=no
18029 rm -f conftest.$ac_objext conftest.$ac_ext
18032 case $cf_cv_term_header in
18034 # If curses is ncurses, some packagers still mess it up by trying to make
18035 # us use GNU termcap. This handles the most common case.
18036 for cf_header in ncurses/term.h ncursesw/term.h
18038 cat >conftest.$ac_ext <<_ACEOF
18039 #line 18039 "configure"
18040 #include "confdefs.h"
18042 #include <${cf_cv_ncurses_header:-curses.h}>
18043 #ifdef NCURSES_VERSION
18044 #include <${cf_header}>
18056 rm -f conftest.$ac_objext
18057 if { (eval echo "$as_me:18057: \"$ac_compile\"") >&5
18058 (eval $ac_compile) 2>&5
18060 echo "$as_me:18060: \$? = $ac_status" >&5
18061 (exit $ac_status); } &&
18062 { ac_try='test -s conftest.$ac_objext'
18063 { (eval echo "$as_me:18063: \"$ac_try\"") >&5
18064 (eval $ac_try) 2>&5
18066 echo "$as_me:18066: \$? = $ac_status" >&5
18067 (exit $ac_status); }; }; then
18068 cf_cv_term_header=$cf_header
18071 echo "$as_me: failed program was:" >&5
18072 cat conftest.$ac_ext >&5
18073 cf_cv_term_header=no
18075 rm -f conftest.$ac_objext conftest.$ac_ext
18081 echo "$as_me:18081: result: $cf_cv_term_header" >&5
18082 echo "${ECHO_T}$cf_cv_term_header" >&6
18084 case $cf_cv_term_header in
18087 cat >>confdefs.h <<\EOF
18088 #define HAVE_TERM_H 1
18094 cat >>confdefs.h <<\EOF
18095 #define HAVE_NCURSES_TERM_H 1
18101 cat >>confdefs.h <<\EOF
18102 #define HAVE_NCURSESW_TERM_H 1
18108 echo "$as_me:18108: checking for unctrl.h" >&5
18109 echo $ECHO_N "checking for unctrl.h... $ECHO_C" >&6
18110 if test "${cf_cv_unctrl_header+set}" = set; then
18111 echo $ECHO_N "(cached) $ECHO_C" >&6
18114 # If we found <ncurses/curses.h>, look for <ncurses/unctrl.h>, but always look
18115 # for <unctrl.h> if we do not find the variant.
18117 cf_header_list="unctrl.h ncurses/unctrl.h ncursesw/unctrl.h"
18119 case ${cf_cv_ncurses_header:-curses.h} in
18121 cf_header_item=`echo ${cf_cv_ncurses_header:-curses.h} | sed -e 's%\..*%%' -e 's%/.*%/%'`unctrl.h
18122 cf_header_list="$cf_header_item $cf_header_list"
18126 for cf_header in $cf_header_list
18128 cat >conftest.$ac_ext <<_ACEOF
18129 #line 18129 "configure"
18130 #include "confdefs.h"
18132 #include <${cf_cv_ncurses_header:-curses.h}>
18133 #include <${cf_header}>
18142 rm -f conftest.$ac_objext
18143 if { (eval echo "$as_me:18143: \"$ac_compile\"") >&5
18144 (eval $ac_compile) 2>&5
18146 echo "$as_me:18146: \$? = $ac_status" >&5
18147 (exit $ac_status); } &&
18148 { ac_try='test -s conftest.$ac_objext'
18149 { (eval echo "$as_me:18149: \"$ac_try\"") >&5
18150 (eval $ac_try) 2>&5
18152 echo "$as_me:18152: \$? = $ac_status" >&5
18153 (exit $ac_status); }; }; then
18154 cf_cv_unctrl_header=$cf_header
18157 echo "$as_me: failed program was:" >&5
18158 cat conftest.$ac_ext >&5
18159 cf_cv_unctrl_header=no
18161 rm -f conftest.$ac_objext conftest.$ac_ext
18165 echo "$as_me:18165: result: $cf_cv_unctrl_header" >&5
18166 echo "${ECHO_T}$cf_cv_unctrl_header" >&6
18168 case $cf_cv_unctrl_header in
18170 { echo "$as_me:18170: WARNING: unctrl.h header not found" >&5
18171 echo "$as_me: WARNING: unctrl.h header not found" >&2;}
18175 case $cf_cv_unctrl_header in
18178 cat >>confdefs.h <<\EOF
18179 #define HAVE_UNCTRL_H 1
18185 cat >>confdefs.h <<\EOF
18186 #define HAVE_NCURSES_UNCTRL_H 1
18190 (ncursesw/unctrl.h)
18192 cat >>confdefs.h <<\EOF
18193 #define HAVE_NCURSESW_UNCTRL_H 1
18201 assume_default_colors \
18216 init_extended_color \
18224 reset_color_pairs \
18239 use_default_colors \
18241 use_extended_names \
18257 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
18259 echo "$as_me:18259: checking for ${cf_func}" >&5
18260 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
18262 echo "${as_me:-configure}:18262: testing ${cf_func} ..." 1>&5
18264 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
18265 echo $ECHO_N "(cached) $ECHO_C" >&6
18268 eval cf_result='$ac_cv_func_'$cf_func
18269 if test ".$cf_result" != ".no"; then
18270 cat >conftest.$ac_ext <<_ACEOF
18271 #line 18271 "configure"
18272 #include "confdefs.h"
18274 #ifdef HAVE_XCURSES
18275 #include <xcurses.h>
18276 char * XCursesProgramName = "test";
18278 #include <${cf_cv_ncurses_header:-curses.h}>
18279 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
18280 #include <ncursesw/term.h>
18281 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
18282 #include <ncurses/term.h>
18283 #elif defined(HAVE_TERM_H)
18293 long foo = (long)(&${cf_func});
18294 fprintf(stderr, "testing linkage of $cf_func:%p\n", (void *)foo);
18295 if (foo + 1234L > 5678L)
18296 ${cf_cv_main_return:-return}(foo != 0);
18303 rm -f conftest.$ac_objext conftest$ac_exeext
18304 if { (eval echo "$as_me:18304: \"$ac_link\"") >&5
18305 (eval $ac_link) 2>&5
18307 echo "$as_me:18307: \$? = $ac_status" >&5
18308 (exit $ac_status); } &&
18309 { ac_try='test -s conftest$ac_exeext'
18310 { (eval echo "$as_me:18310: \"$ac_try\"") >&5
18311 (eval $ac_try) 2>&5
18313 echo "$as_me:18313: \$? = $ac_status" >&5
18314 (exit $ac_status); }; }; then
18317 echo "$as_me: failed program was:" >&5
18318 cat conftest.$ac_ext >&5
18321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18323 eval 'cf_cv_func_'$cf_func'=$cf_result'
18327 # use the computed/retrieved cache-value:
18328 eval 'cf_result=$cf_cv_func_'$cf_func
18329 echo "$as_me:18329: result: $cf_result" >&5
18330 echo "${ECHO_T}$cf_result" >&6
18331 if test $cf_result != no; then
18332 cat >>confdefs.h <<EOF
18333 #define HAVE_${cf_tr_func} 1
18339 for cf_func in tputs
18342 cf_tr_func=`echo "$cf_func" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
18344 echo "$as_me:18344: checking for ${cf_func}" >&5
18345 echo $ECHO_N "checking for ${cf_func}... $ECHO_C" >&6
18347 echo "${as_me:-configure}:18347: testing ${cf_func} ..." 1>&5
18349 if eval "test \"\${cf_cv_func_$cf_func+set}\" = set"; then
18350 echo $ECHO_N "(cached) $ECHO_C" >&6
18353 eval cf_result='$ac_cv_func_'$cf_func
18354 if test ".$cf_result" != ".no"; then
18355 cat >conftest.$ac_ext <<_ACEOF
18356 #line 18356 "configure"
18357 #include "confdefs.h"
18359 #ifdef HAVE_XCURSES
18360 #include <xcurses.h>
18361 char * XCursesProgramName = "test";
18363 #include <${cf_cv_ncurses_header:-curses.h}>
18364 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
18365 #include <ncursesw/term.h>
18366 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
18367 #include <ncurses/term.h>
18368 #elif defined(HAVE_TERM_H)
18378 long foo = (long)(&${cf_func});
18379 fprintf(stderr, "testing linkage of $cf_func:%p\n", (void *)foo);
18380 if (foo + 1234L > 5678L)
18381 ${cf_cv_main_return:-return}(foo != 0);
18388 rm -f conftest.$ac_objext conftest$ac_exeext
18389 if { (eval echo "$as_me:18389: \"$ac_link\"") >&5
18390 (eval $ac_link) 2>&5
18392 echo "$as_me:18392: \$? = $ac_status" >&5
18393 (exit $ac_status); } &&
18394 { ac_try='test -s conftest$ac_exeext'
18395 { (eval echo "$as_me:18395: \"$ac_try\"") >&5
18396 (eval $ac_try) 2>&5
18398 echo "$as_me:18398: \$? = $ac_status" >&5
18399 (exit $ac_status); }; }; then
18402 echo "$as_me: failed program was:" >&5
18403 cat conftest.$ac_ext >&5
18406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18408 eval 'cf_cv_func_'$cf_func'=$cf_result'
18412 # use the computed/retrieved cache-value:
18413 eval 'cf_result=$cf_cv_func_'$cf_func
18414 echo "$as_me:18414: result: $cf_result" >&5
18415 echo "${ECHO_T}$cf_result" >&6
18416 if test $cf_result != no; then
18417 cat >>confdefs.h <<EOF
18418 #define HAVE_${cf_tr_func} 1
18424 if test x$cf_cv_func_tputs = xyes
18427 for cf_arg in int char
18429 for cf_ret in int void
18431 if test $cf_ret = void
18433 cf_return="/* nothing */"
18435 cf_return="return value"
18437 cat >conftest.$ac_ext <<_ACEOF
18438 #line 18438 "configure"
18439 #include "confdefs.h"
18441 #include <${cf_cv_ncurses_header:-curses.h}>
18442 #include <$cf_cv_term_header>
18444 static $cf_ret outc($cf_arg value) { $cf_return; }
18450 tputs("hello", 0, outc);
18451 ${cf_cv_main_return:-return}(0);
18457 rm -f conftest.$ac_objext
18458 if { (eval echo "$as_me:18458: \"$ac_compile\"") >&5
18459 (eval $ac_compile) 2>&5
18461 echo "$as_me:18461: \$? = $ac_status" >&5
18462 (exit $ac_status); } &&
18463 { ac_try='test -s conftest.$ac_objext'
18464 { (eval echo "$as_me:18464: \"$ac_try\"") >&5
18465 (eval $ac_try) 2>&5
18467 echo "$as_me:18467: \$? = $ac_status" >&5
18468 (exit $ac_status); }; }; then
18470 test -n "$verbose" && echo " prototype $cf_ret func($cf_arg value)" 1>&6
18472 echo "${as_me:-configure}:18472: testing prototype $cf_ret func($cf_arg value) ..." 1>&5
18474 cat >>confdefs.h <<EOF
18475 #define TPUTS_ARG $cf_arg
18476 #define TPUTS_PROTO(func,value) $cf_ret func(TPUTS_ARG value)
18477 #define TPUTS_RETURN(value) $cf_return
18483 echo "$as_me: failed program was:" >&5
18484 cat conftest.$ac_ext >&5
18486 rm -f conftest.$ac_objext conftest.$ac_ext
18488 test $cf_done = yes && break
18492 echo "$as_me:18492: checking for ncurses extended functions" >&5
18493 echo $ECHO_N "checking for ncurses extended functions... $ECHO_C" >&6
18494 if test "${cf_cv_ncurses_ext_funcs+set}" = set; then
18495 echo $ECHO_N "(cached) $ECHO_C" >&6
18498 cat >conftest.$ac_ext <<_ACEOF
18499 #line 18499 "configure"
18500 #include "confdefs.h"
18502 #include <${cf_cv_ncurses_header:-curses.h}>
18507 int x = NCURSES_EXT_FUNCS
18513 rm -f conftest.$ac_objext
18514 if { (eval echo "$as_me:18514: \"$ac_compile\"") >&5
18515 (eval $ac_compile) 2>&5
18517 echo "$as_me:18517: \$? = $ac_status" >&5
18518 (exit $ac_status); } &&
18519 { ac_try='test -s conftest.$ac_objext'
18520 { (eval echo "$as_me:18520: \"$ac_try\"") >&5
18521 (eval $ac_try) 2>&5
18523 echo "$as_me:18523: \$? = $ac_status" >&5
18524 (exit $ac_status); }; }; then
18525 cf_cv_ncurses_ext_funcs=defined
18527 echo "$as_me: failed program was:" >&5
18528 cat conftest.$ac_ext >&5
18530 cat >conftest.$ac_ext <<_ACEOF
18531 #line 18531 "configure"
18532 #include "confdefs.h"
18534 #include <${cf_cv_ncurses_header:-curses.h}>
18539 (void) assume_default_colors (0, 0);
18540 (void) curses_version ();
18541 (void) define_key (0, 0);
18542 (void) is_term_resized (0, 0);
18543 (void) key_defined (0);
18544 (void) keybound (0, 0);
18545 (void) keyok (0, 0);
18546 (void) resize_term (0, 0);
18547 (void) resizeterm (0, 0);
18548 (void) use_default_colors ();
18549 (void) use_extended_names (0);
18550 (void) wresize (0, 0, 0);
18555 rm -f conftest.$ac_objext conftest$ac_exeext
18556 if { (eval echo "$as_me:18556: \"$ac_link\"") >&5
18557 (eval $ac_link) 2>&5
18559 echo "$as_me:18559: \$? = $ac_status" >&5
18560 (exit $ac_status); } &&
18561 { ac_try='test -s conftest$ac_exeext'
18562 { (eval echo "$as_me:18562: \"$ac_try\"") >&5
18563 (eval $ac_try) 2>&5
18565 echo "$as_me:18565: \$? = $ac_status" >&5
18566 (exit $ac_status); }; }; then
18567 cf_cv_ncurses_ext_funcs=yes
18569 echo "$as_me: failed program was:" >&5
18570 cat conftest.$ac_ext >&5
18571 cf_cv_ncurses_ext_funcs=no
18573 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18576 rm -f conftest.$ac_objext conftest.$ac_ext
18579 echo "$as_me:18579: result: $cf_cv_ncurses_ext_funcs" >&5
18580 echo "${ECHO_T}$cf_cv_ncurses_ext_funcs" >&6
18581 test "$cf_cv_ncurses_ext_funcs" = yes &&
18582 cat >>confdefs.h <<\EOF
18583 #define NCURSES_EXT_FUNCS 1
18586 if test "$cf_enable_widec" = yes
18588 # workaround for systems with ncurses before 20111029, due to change of
18589 # feature test macro from _XPG5 to _XOPEN_SOURCE
18590 if test -n "$cf_cv_ncurses_version" && test "x$cf_cv_ncurses_version" != xno
18593 echo "$as_me:18593: checking if _XPG5 should be defined to enable wide-characters" >&5
18594 echo $ECHO_N "checking if _XPG5 should be defined to enable wide-characters... $ECHO_C" >&6
18596 cat >conftest.$ac_ext <<_ACEOF
18597 #line 18597 "configure"
18598 #include "confdefs.h"
18600 #include <${cf_cv_ncurses_header:-curses.h}>
18609 rm -f conftest.$ac_objext
18610 if { (eval echo "$as_me:18610: \"$ac_compile\"") >&5
18611 (eval $ac_compile) 2>&5
18613 echo "$as_me:18613: \$? = $ac_status" >&5
18614 (exit $ac_status); } &&
18615 { ac_try='test -s conftest.$ac_objext'
18616 { (eval echo "$as_me:18616: \"$ac_try\"") >&5
18617 (eval $ac_try) 2>&5
18619 echo "$as_me:18619: \$? = $ac_status" >&5
18620 (exit $ac_status); }; }; then
18623 echo "$as_me: failed program was:" >&5
18624 cat conftest.$ac_ext >&5
18625 cf_save_cppflags="$CPPFLAGS"
18626 CPPFLAGS="$CPPFLAGS -D_XPG5"
18627 cat >conftest.$ac_ext <<_ACEOF
18628 #line 18628 "configure"
18629 #include "confdefs.h"
18631 #include <${cf_cv_ncurses_header:-curses.h}>
18640 rm -f conftest.$ac_objext
18641 if { (eval echo "$as_me:18641: \"$ac_compile\"") >&5
18642 (eval $ac_compile) 2>&5
18644 echo "$as_me:18644: \$? = $ac_status" >&5
18645 (exit $ac_status); } &&
18646 { ac_try='test -s conftest.$ac_objext'
18647 { (eval echo "$as_me:18647: \"$ac_try\"") >&5
18648 (eval $ac_try) 2>&5
18650 echo "$as_me:18650: \$? = $ac_status" >&5
18651 (exit $ac_status); }; }; then
18654 echo "$as_me: failed program was:" >&5
18655 cat conftest.$ac_ext >&5
18657 rm -f conftest.$ac_objext conftest.$ac_ext
18658 CPPFLAGS="$cf_save_cppflags"
18660 rm -f conftest.$ac_objext conftest.$ac_ext
18661 echo "$as_me:18661: result: $cf_define_xpg5" >&5
18662 echo "${ECHO_T}$cf_define_xpg5" >&6
18664 if test "$cf_define_xpg5" = yes
18666 CPPFLAGS="$CPPFLAGS -D_XPG5"
18670 echo "$as_me:18670: checking for wide-character functions" >&5
18671 echo $ECHO_N "checking for wide-character functions... $ECHO_C" >&6
18672 if test "${cf_cv_widechar_funcs+set}" = set; then
18673 echo $ECHO_N "(cached) $ECHO_C" >&6
18676 cat >conftest.$ac_ext <<_ACEOF
18677 #line 18677 "configure"
18678 #include "confdefs.h"
18680 #include <${cf_cv_ncurses_header:-curses.h}>
18685 static wchar_t src_wchar[2];
18686 static cchar_t dst_cchar;
18687 setcchar(&dst_cchar, src_wchar, A_NORMAL, 0, (void *) 0);
18693 rm -f conftest.$ac_objext conftest$ac_exeext
18694 if { (eval echo "$as_me:18694: \"$ac_link\"") >&5
18695 (eval $ac_link) 2>&5
18697 echo "$as_me:18697: \$? = $ac_status" >&5
18698 (exit $ac_status); } &&
18699 { ac_try='test -s conftest$ac_exeext'
18700 { (eval echo "$as_me:18700: \"$ac_try\"") >&5
18701 (eval $ac_try) 2>&5
18703 echo "$as_me:18703: \$? = $ac_status" >&5
18704 (exit $ac_status); }; }; then
18705 cf_cv_widechar_funcs=yes
18707 echo "$as_me: failed program was:" >&5
18708 cat conftest.$ac_ext >&5
18709 cf_cv_widechar_funcs=no
18711 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18714 echo "$as_me:18714: result: $cf_cv_widechar_funcs" >&5
18715 echo "${ECHO_T}$cf_cv_widechar_funcs" >&6
18716 if test "$cf_cv_widechar_funcs" != no ; then
18718 cat >>confdefs.h <<\EOF
18719 #define USE_WIDEC_SUPPORT 1
18723 cat >>confdefs.h <<\EOF
18724 #define USE_WIDEC_SUPPORT 0
18729 cat >>confdefs.h <<\EOF
18730 #define USE_WIDEC_SUPPORT 0
18735 echo "$as_me:18735: checking if $cf_cv_screen library uses pthreads" >&5
18736 echo $ECHO_N "checking if $cf_cv_screen library uses pthreads... $ECHO_C" >&6
18737 if test "${cf_cv_use_pthreads+set}" = set; then
18738 echo $ECHO_N "(cached) $ECHO_C" >&6
18741 cat >conftest.$ac_ext <<_ACEOF
18742 #line 18742 "configure"
18743 #include "confdefs.h"
18745 #include <${cf_cv_ncurses_header:-curses.h}>
18746 extern void _nc_init_pthreads(void);
18753 _nc_init_pthreads();
18759 rm -f conftest.$ac_objext conftest$ac_exeext
18760 if { (eval echo "$as_me:18760: \"$ac_link\"") >&5
18761 (eval $ac_link) 2>&5
18763 echo "$as_me:18763: \$? = $ac_status" >&5
18764 (exit $ac_status); } &&
18765 { ac_try='test -s conftest$ac_exeext'
18766 { (eval echo "$as_me:18766: \"$ac_try\"") >&5
18767 (eval $ac_try) 2>&5
18769 echo "$as_me:18769: \$? = $ac_status" >&5
18770 (exit $ac_status); }; }; then
18771 cf_cv_use_pthreads=yes
18773 echo "$as_me: failed program was:" >&5
18774 cat conftest.$ac_ext >&5
18775 cf_cv_use_pthreads=no
18777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18780 echo "$as_me:18780: result: $cf_cv_use_pthreads" >&5
18781 echo "${ECHO_T}$cf_cv_use_pthreads" >&6
18782 test $cf_cv_use_pthreads = yes &&
18783 cat >>confdefs.h <<\EOF
18784 #define USE_PTHREADS 1
18787 echo "$as_me:18787: checking if sys/time.h works with sys/select.h" >&5
18788 echo $ECHO_N "checking if sys/time.h works with sys/select.h... $ECHO_C" >&6
18789 if test "${cf_cv_sys_time_select+set}" = set; then
18790 echo $ECHO_N "(cached) $ECHO_C" >&6
18793 cat >conftest.$ac_ext <<_ACEOF
18794 #line 18794 "configure"
18795 #include "confdefs.h"
18797 #include <sys/types.h>
18798 #ifdef HAVE_SYS_TIME_H
18799 #include <sys/time.h>
18801 #ifdef HAVE_SYS_SELECT_H
18802 #include <sys/select.h>
18813 rm -f conftest.$ac_objext
18814 if { (eval echo "$as_me:18814: \"$ac_compile\"") >&5
18815 (eval $ac_compile) 2>&5
18817 echo "$as_me:18817: \$? = $ac_status" >&5
18818 (exit $ac_status); } &&
18819 { ac_try='test -s conftest.$ac_objext'
18820 { (eval echo "$as_me:18820: \"$ac_try\"") >&5
18821 (eval $ac_try) 2>&5
18823 echo "$as_me:18823: \$? = $ac_status" >&5
18824 (exit $ac_status); }; }; then
18825 cf_cv_sys_time_select=yes
18827 echo "$as_me: failed program was:" >&5
18828 cat conftest.$ac_ext >&5
18829 cf_cv_sys_time_select=no
18831 rm -f conftest.$ac_objext conftest.$ac_ext
18835 echo "$as_me:18835: result: $cf_cv_sys_time_select" >&5
18836 echo "${ECHO_T}$cf_cv_sys_time_select" >&6
18837 test "$cf_cv_sys_time_select" = yes &&
18838 cat >>confdefs.h <<\EOF
18839 #define HAVE_SYS_TIME_SELECT 1
18842 # special check for test/ditto.c
18844 echo "$as_me:18844: checking for openpty in -lutil" >&5
18845 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
18846 if test "${ac_cv_lib_util_openpty+set}" = set; then
18847 echo $ECHO_N "(cached) $ECHO_C" >&6
18849 ac_check_lib_save_LIBS=$LIBS
18850 LIBS="-lutil $LIBS"
18851 cat >conftest.$ac_ext <<_ACEOF
18852 #line 18852 "configure"
18853 #include "confdefs.h"
18855 /* Override any gcc2 internal prototype to avoid an error. */
18859 /* We use char because int might match the return type of a gcc2
18860 builtin and then its argument prototype would still apply. */
18870 rm -f conftest.$ac_objext conftest$ac_exeext
18871 if { (eval echo "$as_me:18871: \"$ac_link\"") >&5
18872 (eval $ac_link) 2>&5
18874 echo "$as_me:18874: \$? = $ac_status" >&5
18875 (exit $ac_status); } &&
18876 { ac_try='test -s conftest$ac_exeext'
18877 { (eval echo "$as_me:18877: \"$ac_try\"") >&5
18878 (eval $ac_try) 2>&5
18880 echo "$as_me:18880: \$? = $ac_status" >&5
18881 (exit $ac_status); }; }; then
18882 ac_cv_lib_util_openpty=yes
18884 echo "$as_me: failed program was:" >&5
18885 cat conftest.$ac_ext >&5
18886 ac_cv_lib_util_openpty=no
18888 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18889 LIBS=$ac_check_lib_save_LIBS
18891 echo "$as_me:18891: result: $ac_cv_lib_util_openpty" >&5
18892 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
18893 if test $ac_cv_lib_util_openpty = yes; then
18899 echo "$as_me:18899: checking for openpty header" >&5
18900 echo $ECHO_N "checking for openpty header... $ECHO_C" >&6
18901 if test "${cf_cv_func_openpty+set}" = set; then
18902 echo $ECHO_N "(cached) $ECHO_C" >&6
18905 cf_save_LIBS="$LIBS"
18906 test $cf_cv_lib_util = yes && {
18907 cf_add_libs="$LIBS"
18910 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
18911 # filter duplicates
18912 for cf_add_1lib in $cf_add_0lib; do
18913 for cf_add_2lib in $cf_add_libs; do
18914 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
18919 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18921 LIBS="$cf_add_libs"
18923 for cf_header in pty.h libutil.h util.h
18925 cat >conftest.$ac_ext <<_ACEOF
18926 #line 18926 "configure"
18927 #include "confdefs.h"
18929 #include <$cf_header>
18935 int x = openpty((int *)0, (int *)0, (char *)0,
18936 (struct termios *)0, (struct winsize *)0);
18942 rm -f conftest.$ac_objext conftest$ac_exeext
18943 if { (eval echo "$as_me:18943: \"$ac_link\"") >&5
18944 (eval $ac_link) 2>&5
18946 echo "$as_me:18946: \$? = $ac_status" >&5
18947 (exit $ac_status); } &&
18948 { ac_try='test -s conftest$ac_exeext'
18949 { (eval echo "$as_me:18949: \"$ac_try\"") >&5
18950 (eval $ac_try) 2>&5
18952 echo "$as_me:18952: \$? = $ac_status" >&5
18953 (exit $ac_status); }; }; then
18955 cf_cv_func_openpty=$cf_header
18959 echo "$as_me: failed program was:" >&5
18960 cat conftest.$ac_ext >&5
18962 cf_cv_func_openpty=no
18965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18967 LIBS="$cf_save_LIBS"
18970 echo "$as_me:18970: result: $cf_cv_func_openpty" >&5
18971 echo "${ECHO_T}$cf_cv_func_openpty" >&6
18973 if test "$cf_cv_func_openpty" != no ; then
18975 cat >>confdefs.h <<EOF
18976 #define USE_OPENPTY_HEADER <$cf_cv_func_openpty>
18979 cat >>confdefs.h <<\EOF
18980 #define USE_XTERM_PTY 1
18983 if test "x$cf_cv_lib_util" = xyes ; then
18985 cf_add_libs="$TEST_LIBS"
18988 for cf_add_1lib in -lutil; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
18989 # filter duplicates
18990 for cf_add_1lib in $cf_add_0lib; do
18991 for cf_add_2lib in $cf_add_libs; do
18992 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
18997 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
18999 TEST_LIBS="$cf_add_libs"
19004 echo "$as_me:19004: checking for function curses_version" >&5
19005 echo $ECHO_N "checking for function curses_version... $ECHO_C" >&6
19006 if test "${cf_cv_func_curses_version+set}" = set; then
19007 echo $ECHO_N "(cached) $ECHO_C" >&6
19010 if test "$cross_compiling" = yes; then
19011 cf_cv_func_curses_version=unknown
19013 cat >conftest.$ac_ext <<_ACEOF
19014 #line 19014 "configure"
19015 #include "confdefs.h"
19017 #include <${cf_cv_ncurses_header:-curses.h}>
19021 sprintf(temp, "%s\n", curses_version());
19022 ${cf_cv_main_return:-return}(0);
19026 rm -f conftest$ac_exeext
19027 if { (eval echo "$as_me:19027: \"$ac_link\"") >&5
19028 (eval $ac_link) 2>&5
19030 echo "$as_me:19030: \$? = $ac_status" >&5
19031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19032 { (eval echo "$as_me:19032: \"$ac_try\"") >&5
19033 (eval $ac_try) 2>&5
19035 echo "$as_me:19035: \$? = $ac_status" >&5
19036 (exit $ac_status); }; }; then
19037 cf_cv_func_curses_version=yes
19040 echo "$as_me: program exited with status $ac_status" >&5
19041 echo "$as_me: failed program was:" >&5
19042 cat conftest.$ac_ext >&5
19043 cf_cv_func_curses_version=no
19046 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19050 echo "$as_me:19050: result: $cf_cv_func_curses_version" >&5
19051 echo "${ECHO_T}$cf_cv_func_curses_version" >&6
19052 test "$cf_cv_func_curses_version" = yes &&
19053 cat >>confdefs.h <<\EOF
19054 #define HAVE_CURSES_VERSION 1
19057 echo "$as_me:19057: checking for alternate character set array" >&5
19058 echo $ECHO_N "checking for alternate character set array... $ECHO_C" >&6
19059 if test "${cf_cv_curses_acs_map+set}" = set; then
19060 echo $ECHO_N "(cached) $ECHO_C" >&6
19063 cf_cv_curses_acs_map=unknown
19064 for name in acs_map _acs_map __acs_map ${NCURSES_WRAP_PREFIX}acs_map
19066 cat >conftest.$ac_ext <<_ACEOF
19067 #line 19067 "configure"
19068 #include "confdefs.h"
19070 #include <${cf_cv_ncurses_header:-curses.h}>
19076 $name['k'] = ACS_PLUS
19082 rm -f conftest.$ac_objext conftest$ac_exeext
19083 if { (eval echo "$as_me:19083: \"$ac_link\"") >&5
19084 (eval $ac_link) 2>&5
19086 echo "$as_me:19086: \$? = $ac_status" >&5
19087 (exit $ac_status); } &&
19088 { ac_try='test -s conftest$ac_exeext'
19089 { (eval echo "$as_me:19089: \"$ac_try\"") >&5
19090 (eval $ac_try) 2>&5
19092 echo "$as_me:19092: \$? = $ac_status" >&5
19093 (exit $ac_status); }; }; then
19094 cf_cv_curses_acs_map=$name; break
19096 echo "$as_me: failed program was:" >&5
19097 cat conftest.$ac_ext >&5
19099 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19103 echo "$as_me:19103: result: $cf_cv_curses_acs_map" >&5
19104 echo "${ECHO_T}$cf_cv_curses_acs_map" >&6
19106 test "$cf_cv_curses_acs_map" != unknown &&
19107 cat >>confdefs.h <<EOF
19108 #define CURSES_ACS_ARRAY $cf_cv_curses_acs_map
19111 if test "$cf_enable_widec" = yes; then
19113 echo "$as_me:19113: checking for wide alternate character set array" >&5
19114 echo $ECHO_N "checking for wide alternate character set array... $ECHO_C" >&6
19115 if test "${cf_cv_curses_wacs_map+set}" = set; then
19116 echo $ECHO_N "(cached) $ECHO_C" >&6
19119 cf_cv_curses_wacs_map=unknown
19120 for name in wacs_map _wacs_map __wacs_map _nc_wacs _wacs_char
19122 cat >conftest.$ac_ext <<_ACEOF
19123 #line 19123 "configure"
19124 #include "confdefs.h"
19126 #ifndef _XOPEN_SOURCE_EXTENDED
19127 #define _XOPEN_SOURCE_EXTENDED
19129 #include <${cf_cv_ncurses_header:-curses.h}>
19133 void *foo = &($name['k']); (void)foo
19138 rm -f conftest.$ac_objext conftest$ac_exeext
19139 if { (eval echo "$as_me:19139: \"$ac_link\"") >&5
19140 (eval $ac_link) 2>&5
19142 echo "$as_me:19142: \$? = $ac_status" >&5
19143 (exit $ac_status); } &&
19144 { ac_try='test -s conftest$ac_exeext'
19145 { (eval echo "$as_me:19145: \"$ac_try\"") >&5
19146 (eval $ac_try) 2>&5
19148 echo "$as_me:19148: \$? = $ac_status" >&5
19149 (exit $ac_status); }; }; then
19150 cf_cv_curses_wacs_map=$name
19153 echo "$as_me: failed program was:" >&5
19154 cat conftest.$ac_ext >&5
19156 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19159 echo "$as_me:19159: result: $cf_cv_curses_wacs_map" >&5
19160 echo "${ECHO_T}$cf_cv_curses_wacs_map" >&6
19162 test "$cf_cv_curses_wacs_map" != unknown &&
19163 cat >>confdefs.h <<EOF
19164 #define CURSES_WACS_ARRAY $cf_cv_curses_wacs_map
19167 echo "$as_me:19167: checking for wide alternate character constants" >&5
19168 echo $ECHO_N "checking for wide alternate character constants... $ECHO_C" >&6
19169 if test "${cf_cv_curses_wacs_symbols+set}" = set; then
19170 echo $ECHO_N "(cached) $ECHO_C" >&6
19173 cf_cv_curses_wacs_symbols=no
19174 if test "$cf_cv_curses_wacs_map" != unknown
19176 cat >conftest.$ac_ext <<_ACEOF
19177 #line 19177 "configure"
19178 #include "confdefs.h"
19180 #ifndef _XOPEN_SOURCE_EXTENDED
19181 #define _XOPEN_SOURCE_EXTENDED
19183 #include <${cf_cv_ncurses_header:-curses.h}>
19187 cchar_t *foo = WACS_PLUS;
19188 $cf_cv_curses_wacs_map['k'] = *WACS_PLUS; (void)foo
19193 rm -f conftest.$ac_objext conftest$ac_exeext
19194 if { (eval echo "$as_me:19194: \"$ac_link\"") >&5
19195 (eval $ac_link) 2>&5
19197 echo "$as_me:19197: \$? = $ac_status" >&5
19198 (exit $ac_status); } &&
19199 { ac_try='test -s conftest$ac_exeext'
19200 { (eval echo "$as_me:19200: \"$ac_try\"") >&5
19201 (eval $ac_try) 2>&5
19203 echo "$as_me:19203: \$? = $ac_status" >&5
19204 (exit $ac_status); }; }; then
19205 cf_cv_curses_wacs_symbols=yes
19207 echo "$as_me: failed program was:" >&5
19208 cat conftest.$ac_ext >&5
19210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19212 cat >conftest.$ac_ext <<_ACEOF
19213 #line 19213 "configure"
19214 #include "confdefs.h"
19216 #ifndef _XOPEN_SOURCE_EXTENDED
19217 #define _XOPEN_SOURCE_EXTENDED
19219 #include <${cf_cv_ncurses_header:-curses.h}>
19223 cchar_t *foo = WACS_PLUS; (void)foo
19228 rm -f conftest.$ac_objext conftest$ac_exeext
19229 if { (eval echo "$as_me:19229: \"$ac_link\"") >&5
19230 (eval $ac_link) 2>&5
19232 echo "$as_me:19232: \$? = $ac_status" >&5
19233 (exit $ac_status); } &&
19234 { ac_try='test -s conftest$ac_exeext'
19235 { (eval echo "$as_me:19235: \"$ac_try\"") >&5
19236 (eval $ac_try) 2>&5
19238 echo "$as_me:19238: \$? = $ac_status" >&5
19239 (exit $ac_status); }; }; then
19240 cf_cv_curses_wacs_symbols=yes
19242 echo "$as_me: failed program was:" >&5
19243 cat conftest.$ac_ext >&5
19245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19249 echo "$as_me:19249: result: $cf_cv_curses_wacs_symbols" >&5
19250 echo "${ECHO_T}$cf_cv_curses_wacs_symbols" >&6
19252 test "$cf_cv_curses_wacs_symbols" != no &&
19253 cat >>confdefs.h <<\EOF
19254 #define CURSES_WACS_SYMBOLS 1
19259 echo "$as_me:19259: checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}" >&5
19260 echo $ECHO_N "checking for type attr_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
19261 cat >conftest.$ac_ext <<_ACEOF
19262 #line 19262 "configure"
19263 #include "confdefs.h"
19265 #ifndef _XOPEN_SOURCE_EXTENDED
19266 #define _XOPEN_SOURCE_EXTENDED
19268 #include <${cf_cv_ncurses_header:-curses.h}>
19279 rm -f conftest.$ac_objext
19280 if { (eval echo "$as_me:19280: \"$ac_compile\"") >&5
19281 (eval $ac_compile) 2>&5
19283 echo "$as_me:19283: \$? = $ac_status" >&5
19284 (exit $ac_status); } &&
19285 { ac_try='test -s conftest.$ac_objext'
19286 { (eval echo "$as_me:19286: \"$ac_try\"") >&5
19287 (eval $ac_try) 2>&5
19289 echo "$as_me:19289: \$? = $ac_status" >&5
19290 (exit $ac_status); }; }; then
19293 echo "$as_me: failed program was:" >&5
19294 cat conftest.$ac_ext >&5
19297 rm -f conftest.$ac_objext conftest.$ac_ext
19298 echo "$as_me:19298: result: $cf_result" >&5
19299 echo "${ECHO_T}$cf_result" >&6
19300 if test $cf_result = yes ; then
19302 cf_result=`echo "have_type_attr_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
19304 cat >>confdefs.h <<EOF
19305 #define $cf_result 1
19310 cat >>confdefs.h <<EOF
19311 #define attr_t long
19316 if test "$cf_enable_widec" = yes; then
19318 # This is needed on Tru64 5.0 to declare mbstate_t
19319 echo "$as_me:19319: checking if we must include wchar.h to declare mbstate_t" >&5
19320 echo $ECHO_N "checking if we must include wchar.h to declare mbstate_t... $ECHO_C" >&6
19321 if test "${cf_cv_mbstate_t+set}" = set; then
19322 echo $ECHO_N "(cached) $ECHO_C" >&6
19325 cat >conftest.$ac_ext <<_ACEOF
19326 #line 19326 "configure"
19327 #include "confdefs.h"
19329 #include <stdlib.h>
19330 #include <stdarg.h>
19332 #ifdef HAVE_LIBUTF8_H
19333 #include <libutf8.h>
19343 rm -f conftest.$ac_objext
19344 if { (eval echo "$as_me:19344: \"$ac_compile\"") >&5
19345 (eval $ac_compile) 2>&5
19347 echo "$as_me:19347: \$? = $ac_status" >&5
19348 (exit $ac_status); } &&
19349 { ac_try='test -s conftest.$ac_objext'
19350 { (eval echo "$as_me:19350: \"$ac_try\"") >&5
19351 (eval $ac_try) 2>&5
19353 echo "$as_me:19353: \$? = $ac_status" >&5
19354 (exit $ac_status); }; }; then
19357 echo "$as_me: failed program was:" >&5
19358 cat conftest.$ac_ext >&5
19359 cat >conftest.$ac_ext <<_ACEOF
19360 #line 19360 "configure"
19361 #include "confdefs.h"
19363 #include <stdlib.h>
19364 #include <stdarg.h>
19367 #ifdef HAVE_LIBUTF8_H
19368 #include <libutf8.h>
19378 rm -f conftest.$ac_objext
19379 if { (eval echo "$as_me:19379: \"$ac_compile\"") >&5
19380 (eval $ac_compile) 2>&5
19382 echo "$as_me:19382: \$? = $ac_status" >&5
19383 (exit $ac_status); } &&
19384 { ac_try='test -s conftest.$ac_objext'
19385 { (eval echo "$as_me:19385: \"$ac_try\"") >&5
19386 (eval $ac_try) 2>&5
19388 echo "$as_me:19388: \$? = $ac_status" >&5
19389 (exit $ac_status); }; }; then
19390 cf_cv_mbstate_t=yes
19392 echo "$as_me: failed program was:" >&5
19393 cat conftest.$ac_ext >&5
19394 cf_cv_mbstate_t=unknown
19396 rm -f conftest.$ac_objext conftest.$ac_ext
19398 rm -f conftest.$ac_objext conftest.$ac_ext
19400 echo "$as_me:19400: result: $cf_cv_mbstate_t" >&5
19401 echo "${ECHO_T}$cf_cv_mbstate_t" >&6
19403 if test "$cf_cv_mbstate_t" = yes ; then
19405 cat >>confdefs.h <<\EOF
19406 #define NEED_WCHAR_H 1
19412 # if we do not find mbstate_t in either place, use substitution to provide a fallback.
19413 if test "$cf_cv_mbstate_t" = unknown ; then
19414 NCURSES_MBSTATE_T=1
19417 # if we find mbstate_t in either place, use substitution to provide a fallback.
19418 if test "$cf_cv_mbstate_t" != unknown ; then
19419 NCURSES_OK_MBSTATE_T=1
19422 # This is needed on Tru64 5.0 to declare wchar_t
19423 echo "$as_me:19423: checking if we must include wchar.h to declare wchar_t" >&5
19424 echo $ECHO_N "checking if we must include wchar.h to declare wchar_t... $ECHO_C" >&6
19425 if test "${cf_cv_wchar_t+set}" = set; then
19426 echo $ECHO_N "(cached) $ECHO_C" >&6
19429 cat >conftest.$ac_ext <<_ACEOF
19430 #line 19430 "configure"
19431 #include "confdefs.h"
19433 #include <stdlib.h>
19434 #include <stdarg.h>
19436 #ifdef HAVE_LIBUTF8_H
19437 #include <libutf8.h>
19447 rm -f conftest.$ac_objext
19448 if { (eval echo "$as_me:19448: \"$ac_compile\"") >&5
19449 (eval $ac_compile) 2>&5
19451 echo "$as_me:19451: \$? = $ac_status" >&5
19452 (exit $ac_status); } &&
19453 { ac_try='test -s conftest.$ac_objext'
19454 { (eval echo "$as_me:19454: \"$ac_try\"") >&5
19455 (eval $ac_try) 2>&5
19457 echo "$as_me:19457: \$? = $ac_status" >&5
19458 (exit $ac_status); }; }; then
19461 echo "$as_me: failed program was:" >&5
19462 cat conftest.$ac_ext >&5
19463 cat >conftest.$ac_ext <<_ACEOF
19464 #line 19464 "configure"
19465 #include "confdefs.h"
19467 #include <stdlib.h>
19468 #include <stdarg.h>
19471 #ifdef HAVE_LIBUTF8_H
19472 #include <libutf8.h>
19482 rm -f conftest.$ac_objext
19483 if { (eval echo "$as_me:19483: \"$ac_compile\"") >&5
19484 (eval $ac_compile) 2>&5
19486 echo "$as_me:19486: \$? = $ac_status" >&5
19487 (exit $ac_status); } &&
19488 { ac_try='test -s conftest.$ac_objext'
19489 { (eval echo "$as_me:19489: \"$ac_try\"") >&5
19490 (eval $ac_try) 2>&5
19492 echo "$as_me:19492: \$? = $ac_status" >&5
19493 (exit $ac_status); }; }; then
19496 echo "$as_me: failed program was:" >&5
19497 cat conftest.$ac_ext >&5
19498 cf_cv_wchar_t=unknown
19500 rm -f conftest.$ac_objext conftest.$ac_ext
19502 rm -f conftest.$ac_objext conftest.$ac_ext
19504 echo "$as_me:19504: result: $cf_cv_wchar_t" >&5
19505 echo "${ECHO_T}$cf_cv_wchar_t" >&6
19507 if test "$cf_cv_wchar_t" = yes ; then
19509 cat >>confdefs.h <<\EOF
19510 #define NEED_WCHAR_H 1
19516 # if we do not find wchar_t in either place, use substitution to provide a fallback.
19517 if test "$cf_cv_wchar_t" = unknown ; then
19521 # if we find wchar_t in either place, use substitution to provide a fallback.
19522 if test "$cf_cv_wchar_t" != unknown ; then
19523 NCURSES_OK_WCHAR_T=1
19526 # This is needed on Tru64 5.0 to declare wint_t
19527 echo "$as_me:19527: checking if we must include wchar.h to declare wint_t" >&5
19528 echo $ECHO_N "checking if we must include wchar.h to declare wint_t... $ECHO_C" >&6
19529 if test "${cf_cv_wint_t+set}" = set; then
19530 echo $ECHO_N "(cached) $ECHO_C" >&6
19533 cat >conftest.$ac_ext <<_ACEOF
19534 #line 19534 "configure"
19535 #include "confdefs.h"
19537 #include <stdlib.h>
19538 #include <stdarg.h>
19540 #ifdef HAVE_LIBUTF8_H
19541 #include <libutf8.h>
19551 rm -f conftest.$ac_objext
19552 if { (eval echo "$as_me:19552: \"$ac_compile\"") >&5
19553 (eval $ac_compile) 2>&5
19555 echo "$as_me:19555: \$? = $ac_status" >&5
19556 (exit $ac_status); } &&
19557 { ac_try='test -s conftest.$ac_objext'
19558 { (eval echo "$as_me:19558: \"$ac_try\"") >&5
19559 (eval $ac_try) 2>&5
19561 echo "$as_me:19561: \$? = $ac_status" >&5
19562 (exit $ac_status); }; }; then
19565 echo "$as_me: failed program was:" >&5
19566 cat conftest.$ac_ext >&5
19567 cat >conftest.$ac_ext <<_ACEOF
19568 #line 19568 "configure"
19569 #include "confdefs.h"
19571 #include <stdlib.h>
19572 #include <stdarg.h>
19575 #ifdef HAVE_LIBUTF8_H
19576 #include <libutf8.h>
19586 rm -f conftest.$ac_objext
19587 if { (eval echo "$as_me:19587: \"$ac_compile\"") >&5
19588 (eval $ac_compile) 2>&5
19590 echo "$as_me:19590: \$? = $ac_status" >&5
19591 (exit $ac_status); } &&
19592 { ac_try='test -s conftest.$ac_objext'
19593 { (eval echo "$as_me:19593: \"$ac_try\"") >&5
19594 (eval $ac_try) 2>&5
19596 echo "$as_me:19596: \$? = $ac_status" >&5
19597 (exit $ac_status); }; }; then
19600 echo "$as_me: failed program was:" >&5
19601 cat conftest.$ac_ext >&5
19602 cf_cv_wint_t=unknown
19604 rm -f conftest.$ac_objext conftest.$ac_ext
19606 rm -f conftest.$ac_objext conftest.$ac_ext
19608 echo "$as_me:19608: result: $cf_cv_wint_t" >&5
19609 echo "${ECHO_T}$cf_cv_wint_t" >&6
19611 if test "$cf_cv_wint_t" = yes ; then
19613 cat >>confdefs.h <<\EOF
19614 #define NEED_WCHAR_H 1
19620 # if we do not find wint_t in either place, use substitution to provide a fallback.
19621 if test "$cf_cv_wint_t" = unknown ; then
19625 # if we find wint_t in either place, use substitution to provide a fallback.
19626 if test "$cf_cv_wint_t" != unknown ; then
19627 NCURSES_OK_WINT_T=1
19630 if test "$NCURSES_OK_MBSTATE_T" = 0 ; then
19632 echo "$as_me:19632: checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}" >&5
19633 echo $ECHO_N "checking for type mbstate_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
19634 cat >conftest.$ac_ext <<_ACEOF
19635 #line 19635 "configure"
19636 #include "confdefs.h"
19638 #ifndef _XOPEN_SOURCE_EXTENDED
19639 #define _XOPEN_SOURCE_EXTENDED
19641 #include <${cf_cv_ncurses_header:-curses.h}>
19652 rm -f conftest.$ac_objext
19653 if { (eval echo "$as_me:19653: \"$ac_compile\"") >&5
19654 (eval $ac_compile) 2>&5
19656 echo "$as_me:19656: \$? = $ac_status" >&5
19657 (exit $ac_status); } &&
19658 { ac_try='test -s conftest.$ac_objext'
19659 { (eval echo "$as_me:19659: \"$ac_try\"") >&5
19660 (eval $ac_try) 2>&5
19662 echo "$as_me:19662: \$? = $ac_status" >&5
19663 (exit $ac_status); }; }; then
19666 echo "$as_me: failed program was:" >&5
19667 cat conftest.$ac_ext >&5
19670 rm -f conftest.$ac_objext conftest.$ac_ext
19671 echo "$as_me:19671: result: $cf_result" >&5
19672 echo "${ECHO_T}$cf_result" >&6
19673 if test $cf_result = yes ; then
19675 cf_result=`echo "have_type_mbstate_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
19677 cat >>confdefs.h <<EOF
19678 #define $cf_result 1
19683 cat >>confdefs.h <<EOF
19684 #define mbstate_t long
19691 if test "$NCURSES_OK_WCHAR_T" = 0 ; then
19693 echo "$as_me:19693: checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}" >&5
19694 echo $ECHO_N "checking for type wchar_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
19695 cat >conftest.$ac_ext <<_ACEOF
19696 #line 19696 "configure"
19697 #include "confdefs.h"
19699 #ifndef _XOPEN_SOURCE_EXTENDED
19700 #define _XOPEN_SOURCE_EXTENDED
19702 #include <${cf_cv_ncurses_header:-curses.h}>
19713 rm -f conftest.$ac_objext
19714 if { (eval echo "$as_me:19714: \"$ac_compile\"") >&5
19715 (eval $ac_compile) 2>&5
19717 echo "$as_me:19717: \$? = $ac_status" >&5
19718 (exit $ac_status); } &&
19719 { ac_try='test -s conftest.$ac_objext'
19720 { (eval echo "$as_me:19720: \"$ac_try\"") >&5
19721 (eval $ac_try) 2>&5
19723 echo "$as_me:19723: \$? = $ac_status" >&5
19724 (exit $ac_status); }; }; then
19727 echo "$as_me: failed program was:" >&5
19728 cat conftest.$ac_ext >&5
19731 rm -f conftest.$ac_objext conftest.$ac_ext
19732 echo "$as_me:19732: result: $cf_result" >&5
19733 echo "${ECHO_T}$cf_result" >&6
19734 if test $cf_result = yes ; then
19736 cf_result=`echo "have_type_wchar_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
19738 cat >>confdefs.h <<EOF
19739 #define $cf_result 1
19744 cat >>confdefs.h <<EOF
19745 #define wchar_t long
19752 if test "$NCURSES_OK_WINT_T" = 0 ; then
19754 echo "$as_me:19754: checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}" >&5
19755 echo $ECHO_N "checking for type wint_t in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
19756 cat >conftest.$ac_ext <<_ACEOF
19757 #line 19757 "configure"
19758 #include "confdefs.h"
19760 #ifndef _XOPEN_SOURCE_EXTENDED
19761 #define _XOPEN_SOURCE_EXTENDED
19763 #include <${cf_cv_ncurses_header:-curses.h}>
19774 rm -f conftest.$ac_objext
19775 if { (eval echo "$as_me:19775: \"$ac_compile\"") >&5
19776 (eval $ac_compile) 2>&5
19778 echo "$as_me:19778: \$? = $ac_status" >&5
19779 (exit $ac_status); } &&
19780 { ac_try='test -s conftest.$ac_objext'
19781 { (eval echo "$as_me:19781: \"$ac_try\"") >&5
19782 (eval $ac_try) 2>&5
19784 echo "$as_me:19784: \$? = $ac_status" >&5
19785 (exit $ac_status); }; }; then
19788 echo "$as_me: failed program was:" >&5
19789 cat conftest.$ac_ext >&5
19792 rm -f conftest.$ac_objext conftest.$ac_ext
19793 echo "$as_me:19793: result: $cf_result" >&5
19794 echo "${ECHO_T}$cf_result" >&6
19795 if test $cf_result = yes ; then
19797 cf_result=`echo "have_type_wint_t" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
19799 cat >>confdefs.h <<EOF
19800 #define $cf_result 1
19805 cat >>confdefs.h <<EOF
19806 #define wint_t long
19822 echo "$as_me:19822: checking for data $cf_data declaration in ${cf_cv_ncurses_header:-curses.h}" >&5
19823 echo $ECHO_N "checking for data $cf_data declaration in ${cf_cv_ncurses_header:-curses.h}... $ECHO_C" >&6
19825 cat >conftest.$ac_ext <<_ACEOF
19826 #line 19826 "configure"
19827 #include "confdefs.h"
19829 #ifdef HAVE_XCURSES
19830 #include <xcurses.h>
19831 char * XCursesProgramName = "test";
19833 #include <${cf_cv_ncurses_header:-curses.h}>
19834 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
19835 #include <ncursesw/term.h>
19836 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
19837 #include <ncurses/term.h>
19838 #elif defined(HAVE_TERM_H)
19847 #if defined($cf_data) && ((defined(NCURSES_WRAPPED_VAR) && (NCURSES_VERSION_PATCH < 20200208)) || defined(NCURSES_BROKEN_LINKER) || defined(NCURSES_REENTRANT))
19848 const void *foo = (const void *)($cf_data);
19850 const void *foo = &($cf_data);
19852 fprintf(stderr, "testing linkage of $cf_data:%p\n", (const void *)foo);
19858 rm -f conftest.$ac_objext
19859 if { (eval echo "$as_me:19859: \"$ac_compile\"") >&5
19860 (eval $ac_compile) 2>&5
19862 echo "$as_me:19862: \$? = $ac_status" >&5
19863 (exit $ac_status); } &&
19864 { ac_try='test -s conftest.$ac_objext'
19865 { (eval echo "$as_me:19865: \"$ac_try\"") >&5
19866 (eval $ac_try) 2>&5
19868 echo "$as_me:19868: \$? = $ac_status" >&5
19869 (exit $ac_status); }; }; then
19873 echo "$as_me: failed program was:" >&5
19874 cat conftest.$ac_ext >&5
19877 rm -f conftest.$ac_objext conftest.$ac_ext
19878 echo "$as_me:19878: result: $cf_result" >&5
19879 echo "${ECHO_T}$cf_result" >&6
19881 if test $cf_result = yes ; then
19883 cf_result=`echo "have_curses_data_$cf_data" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
19885 cat >>confdefs.h <<EOF
19886 #define $cf_result 1
19890 echo "$as_me:19890: checking for data $cf_data in library" >&5
19891 echo $ECHO_N "checking for data $cf_data in library... $ECHO_C" >&6
19892 # BSD linkers insist on making weak linkage, but resolve at runtime.
19893 if test "$cross_compiling" = yes; then
19896 cat >conftest.$ac_ext <<_ACEOF
19897 #line 19897 "configure"
19898 #include "confdefs.h"
19900 #ifdef HAVE_XCURSES
19901 #include <xcurses.h>
19902 char * XCursesProgramName = "test";
19904 #include <${cf_cv_ncurses_header:-curses.h}>
19905 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
19906 #include <ncursesw/term.h>
19907 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
19908 #include <ncurses/term.h>
19909 #elif defined(HAVE_TERM_H)
19914 extern char $cf_data;
19921 #if defined($cf_data) && ((defined(NCURSES_WRAPPED_VAR) && (NCURSES_VERSION_PATCH < 20200208)) || defined(NCURSES_BROKEN_LINKER) || defined(NCURSES_REENTRANT))
19922 const void *foo = (const void *)($cf_data);
19924 const void *foo = &($cf_data);
19926 fprintf(stderr, "testing linkage of $cf_data:%p\n", (const void *)foo);
19928 ${cf_cv_main_return:-return}(foo == 0);
19935 rm -f conftest.$ac_objext conftest$ac_exeext
19936 if { (eval echo "$as_me:19936: \"$ac_link\"") >&5
19937 (eval $ac_link) 2>&5
19939 echo "$as_me:19939: \$? = $ac_status" >&5
19940 (exit $ac_status); } &&
19941 { ac_try='test -s conftest$ac_exeext'
19942 { (eval echo "$as_me:19942: \"$ac_try\"") >&5
19943 (eval $ac_try) 2>&5
19945 echo "$as_me:19945: \$? = $ac_status" >&5
19946 (exit $ac_status); }; }; then
19949 echo "$as_me: failed program was:" >&5
19950 cat conftest.$ac_ext >&5
19953 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19956 cat >conftest.$ac_ext <<_ACEOF
19957 #line 19957 "configure"
19958 #include "confdefs.h"
19960 #ifdef HAVE_XCURSES
19961 #include <xcurses.h>
19962 char * XCursesProgramName = "test";
19964 #include <${cf_cv_ncurses_header:-curses.h}>
19965 #if defined(NCURSES_VERSION) && defined(HAVE_NCURSESW_TERM_H)
19966 #include <ncursesw/term.h>
19967 #elif defined(NCURSES_VERSION) && defined(HAVE_NCURSES_TERM_H)
19968 #include <ncurses/term.h>
19969 #elif defined(HAVE_TERM_H)
19974 extern char $cf_data;
19978 #if defined($cf_data) && ((defined(NCURSES_WRAPPED_VAR) && (NCURSES_VERSION_PATCH < 20200208)) || defined(NCURSES_BROKEN_LINKER) || defined(NCURSES_REENTRANT))
19979 const void *foo = (const void *)($cf_data);
19981 const void *foo = &($cf_data);
19983 fprintf(stderr, "testing linkage of $cf_data:%p\n", (const void *)foo);
19985 ${cf_cv_main_return:-return}(foo == 0);
19988 rm -f conftest$ac_exeext
19989 if { (eval echo "$as_me:19989: \"$ac_link\"") >&5
19990 (eval $ac_link) 2>&5
19992 echo "$as_me:19992: \$? = $ac_status" >&5
19993 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19994 { (eval echo "$as_me:19994: \"$ac_try\"") >&5
19995 (eval $ac_try) 2>&5
19997 echo "$as_me:19997: \$? = $ac_status" >&5
19998 (exit $ac_status); }; }; then
20002 echo "$as_me: program exited with status $ac_status" >&5
20003 echo "$as_me: failed program was:" >&5
20004 cat conftest.$ac_ext >&5
20007 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20009 echo "$as_me:20009: result: $cf_result" >&5
20010 echo "${ECHO_T}$cf_result" >&6
20011 if test $cf_result = yes ; then
20013 cf_result=`echo "decl_curses_data_$cf_data" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20015 cat >>confdefs.h <<EOF
20016 #define $cf_result 1
20019 # do not exit loop here, since we prefer system's declarations
20024 if ( test "$GCC" = yes || test "$GXX" = yes )
20026 echo "$as_me:20026: checking if you want to turn on gcc warnings" >&5
20027 echo $ECHO_N "checking if you want to turn on gcc warnings... $ECHO_C" >&6
20029 # Check whether --enable-warnings or --disable-warnings was given.
20030 if test "${enable_warnings+set}" = set; then
20031 enableval="$enable_warnings"
20032 test "$enableval" != yes && enableval=no
20033 if test "$enableval" != "no" ; then
20043 echo "$as_me:20043: result: $with_warnings" >&5
20044 echo "${ECHO_T}$with_warnings" >&6
20045 if test "$with_warnings" = "yes"
20048 if test "$GCC" = yes
20050 cat > conftest.i <<EOF
20052 #define GCC_PRINTF 0
20055 #define GCC_SCANF 0
20057 #ifndef GCC_NORETURN
20058 #define GCC_NORETURN /* nothing */
20061 #define GCC_UNUSED /* nothing */
20064 if test "$GCC" = yes
20066 { echo "$as_me:20066: checking for $CC __attribute__ directives..." >&5
20067 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
20068 cat > conftest.$ac_ext <<EOF
20069 #line 20069 "${as_me:-configure}"
20070 #include "confdefs.h"
20071 #include "conftest.h"
20072 #include "conftest.i"
20074 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
20076 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
20079 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
20081 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
20083 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
20084 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
20085 extern void foo(void) GCC_NORETURN;
20086 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { (void)argc; (void)argv; return 0; }
20088 cf_printf_attribute=no
20089 cf_scanf_attribute=no
20090 for cf_attribute in scanf printf unused noreturn
20093 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
20095 cf_directive="__attribute__(($cf_attribute))"
20096 echo "checking for $CC $cf_directive" 1>&5
20098 case $cf_attribute in
20100 cf_printf_attribute=yes
20101 cat >conftest.h <<EOF
20102 #define GCC_$cf_ATTRIBUTE 1
20106 cf_scanf_attribute=yes
20107 cat >conftest.h <<EOF
20108 #define GCC_$cf_ATTRIBUTE 1
20112 cat >conftest.h <<EOF
20113 #define GCC_$cf_ATTRIBUTE $cf_directive
20118 if { (eval echo "$as_me:20118: \"$ac_compile\"") >&5
20119 (eval $ac_compile) 2>&5
20121 echo "$as_me:20121: \$? = $ac_status" >&5
20122 (exit $ac_status); }; then
20123 test -n "$verbose" && echo "$as_me:20123: result: ... $cf_attribute" >&5
20124 echo "${ECHO_T}... $cf_attribute" >&6
20125 cat conftest.h >>confdefs.h
20126 case $cf_attribute in
20129 cat >>confdefs.h <<EOF
20130 #define GCC_NORETURN $cf_directive
20135 cf_value='/* nothing */'
20136 if test "$cf_printf_attribute" != no ; then
20137 cf_value='__attribute__((format(printf,fmt,var)))'
20139 cat >>confdefs.h <<\EOF
20140 #define GCC_PRINTF 1
20145 cat >>confdefs.h <<EOF
20146 #define GCC_PRINTFLIKE(fmt,var) $cf_value
20151 cf_value='/* nothing */'
20152 if test "$cf_scanf_attribute" != no ; then
20153 cf_value='__attribute__((format(scanf,fmt,var)))'
20155 cat >>confdefs.h <<\EOF
20156 #define GCC_SCANF 1
20161 cat >>confdefs.h <<EOF
20162 #define GCC_SCANFLIKE(fmt,var) $cf_value
20168 cat >>confdefs.h <<EOF
20169 #define GCC_UNUSED $cf_directive
20177 fgrep define conftest.i >>confdefs.h
20182 if test "x$have_x" = xyes; then
20184 cf_save_LIBS_CF_CONST_X_STRING="$LIBS"
20185 cf_save_CFLAGS_CF_CONST_X_STRING="$CFLAGS"
20186 cf_save_CPPFLAGS_CF_CONST_X_STRING="$CPPFLAGS"
20187 LIBS="$LIBS ${X_PRE_LIBS} ${X_LIBS} ${X_EXTRA_LIBS}"
20188 for cf_X_CFLAGS in $X_CFLAGS
20190 case "x$cf_X_CFLAGS" in
20192 CPPFLAGS="$CPPFLAGS $cf_X_CFLAGS"
20195 CFLAGS="$CFLAGS $cf_X_CFLAGS"
20200 cat >conftest.$ac_ext <<_ACEOF
20201 #line 20201 "configure"
20202 #include "confdefs.h"
20204 #include <stdlib.h>
20205 #include <X11/Intrinsic.h>
20210 String foo = malloc(1); (void)foo
20215 rm -f conftest.$ac_objext
20216 if { (eval echo "$as_me:20216: \"$ac_compile\"") >&5
20217 (eval $ac_compile) 2>&5
20219 echo "$as_me:20219: \$? = $ac_status" >&5
20220 (exit $ac_status); } &&
20221 { ac_try='test -s conftest.$ac_objext'
20222 { (eval echo "$as_me:20222: \"$ac_try\"") >&5
20223 (eval $ac_try) 2>&5
20225 echo "$as_me:20225: \$? = $ac_status" >&5
20226 (exit $ac_status); }; }; then
20228 echo "$as_me:20228: checking for X11/Xt const-feature" >&5
20229 echo $ECHO_N "checking for X11/Xt const-feature... $ECHO_C" >&6
20230 if test "${cf_cv_const_x_string+set}" = set; then
20231 echo $ECHO_N "(cached) $ECHO_C" >&6
20234 cat >conftest.$ac_ext <<_ACEOF
20235 #line 20235 "configure"
20236 #include "confdefs.h"
20238 #define _CONST_X_STRING /* X11R7.8 (perhaps) */
20239 #undef XTSTRINGDEFINES /* X11R5 and later */
20240 #include <stdlib.h>
20241 #include <X11/Intrinsic.h>
20246 String foo = malloc(1); *foo = 0
20251 rm -f conftest.$ac_objext
20252 if { (eval echo "$as_me:20252: \"$ac_compile\"") >&5
20253 (eval $ac_compile) 2>&5
20255 echo "$as_me:20255: \$? = $ac_status" >&5
20256 (exit $ac_status); } &&
20257 { ac_try='test -s conftest.$ac_objext'
20258 { (eval echo "$as_me:20258: \"$ac_try\"") >&5
20259 (eval $ac_try) 2>&5
20261 echo "$as_me:20261: \$? = $ac_status" >&5
20262 (exit $ac_status); }; }; then
20264 cf_cv_const_x_string=no
20267 echo "$as_me: failed program was:" >&5
20268 cat conftest.$ac_ext >&5
20270 cf_cv_const_x_string=yes
20273 rm -f conftest.$ac_objext conftest.$ac_ext
20276 echo "$as_me:20276: result: $cf_cv_const_x_string" >&5
20277 echo "${ECHO_T}$cf_cv_const_x_string" >&6
20279 LIBS="$cf_save_LIBS_CF_CONST_X_STRING"
20280 CFLAGS="$cf_save_CFLAGS_CF_CONST_X_STRING"
20281 CPPFLAGS="$cf_save_CPPFLAGS_CF_CONST_X_STRING"
20283 case $cf_cv_const_x_string in
20286 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
20287 CPPFLAGS="${CPPFLAGS}-DXTSTRINGDEFINES"
20292 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
20293 CPPFLAGS="${CPPFLAGS}-D_CONST_X_STRING"
20299 echo "$as_me: failed program was:" >&5
20300 cat conftest.$ac_ext >&5
20302 rm -f conftest.$ac_objext conftest.$ac_ext
20304 cat > conftest.$ac_ext <<EOF
20305 #line 20305 "${as_me:-configure}"
20306 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
20308 if test "$INTEL_COMPILER" = yes
20310 # The "-wdXXX" options suppress warnings:
20311 # remark #1419: external declaration in primary source file
20312 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
20313 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
20314 # remark #193: zero used for undefined preprocessing identifier
20315 # remark #593: variable "curs_sb_left_arrow" was set but never used
20316 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
20317 # remark #869: parameter "tw" was never referenced
20318 # remark #981: operands are evaluated in unspecified order
20319 # warning #279: controlling expression is constant
20321 { echo "$as_me:20321: checking for $CC warning options..." >&5
20322 echo "$as_me: checking for $CC warning options..." >&6;}
20323 cf_save_CFLAGS="$CFLAGS"
20324 EXTRA_CFLAGS="-Wall"
20336 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
20337 if { (eval echo "$as_me:20337: \"$ac_compile\"") >&5
20338 (eval $ac_compile) 2>&5
20340 echo "$as_me:20340: \$? = $ac_status" >&5
20341 (exit $ac_status); }; then
20342 test -n "$verbose" && echo "$as_me:20342: result: ... -$cf_opt" >&5
20343 echo "${ECHO_T}... -$cf_opt" >&6
20344 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
20347 CFLAGS="$cf_save_CFLAGS"
20348 elif test "$GCC" = yes && test "$GCC_VERSION" != "unknown"
20350 { echo "$as_me:20350: checking for $CC warning options..." >&5
20351 echo "$as_me: checking for $CC warning options..." >&6;}
20352 cf_save_CFLAGS="$CFLAGS"
20355 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
20356 cf_gcc_warnings="Wignored-qualifiers Wlogical-op Wvarargs"
20357 test "x$CLANG_COMPILER" = xyes && cf_gcc_warnings=
20358 for cf_opt in W Wall \
20359 Wbad-function-cast \
20362 Wdeclaration-after-statement \
20365 Wmissing-declarations \
20366 Wmissing-prototypes \
20370 Wstrict-prototypes \
20371 Wundef Wno-inline $cf_gcc_warnings $cf_warn_CONST Wno-unknown-pragmas
20373 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
20374 if { (eval echo "$as_me:20374: \"$ac_compile\"") >&5
20375 (eval $ac_compile) 2>&5
20377 echo "$as_me:20377: \$? = $ac_status" >&5
20378 (exit $ac_status); }; then
20379 test -n "$verbose" && echo "$as_me:20379: result: ... -$cf_opt" >&5
20380 echo "${ECHO_T}... -$cf_opt" >&6
20383 case $GCC_VERSION in
20385 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
20387 echo "${as_me:-configure}:20387: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
20393 case $GCC_VERSION in
20395 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
20397 echo "${as_me:-configure}:20397: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
20403 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
20406 CFLAGS="$cf_save_CFLAGS"
20413 echo "$as_me:20413: checking if you want to use dmalloc for testing" >&5
20414 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
20416 # Check whether --with-dmalloc or --without-dmalloc was given.
20417 if test "${with_dmalloc+set}" = set; then
20418 withval="$with_dmalloc"
20420 cat >>confdefs.h <<EOF
20421 #define USE_DMALLOC 1
20424 : ${with_cflags:=-g}
20425 : ${with_no_leaks:=yes}
20430 echo "$as_me:20430: result: ${with_dmalloc:-no}" >&5
20431 echo "${ECHO_T}${with_dmalloc:-no}" >&6
20433 case .$with_cflags in
20443 cf_new_extra_cppflags=
20445 for cf_add_cflags in -g
20447 case $cf_fix_cppflags in
20449 case $cf_add_cflags in
20450 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
20451 case $cf_add_cflags in
20453 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
20455 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20456 && test -z "${cf_tst_cflags}" \
20457 && cf_fix_cppflags=yes
20459 if test $cf_fix_cppflags = yes ; then
20461 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20462 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20465 elif test "${cf_tst_cflags}" = "\"'" ; then
20467 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20468 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20474 case "$CPPFLAGS" in
20478 case $cf_add_cflags in
20480 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
20482 CPPFLAGS=`echo "$CPPFLAGS" | \
20483 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
20484 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
20489 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
20490 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
20497 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
20498 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
20505 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20506 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20508 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
20510 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20511 && test -z "${cf_tst_cflags}" \
20512 && cf_fix_cppflags=no
20517 if test -n "$cf_new_cflags" ; then
20519 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
20520 CFLAGS="${CFLAGS}$cf_new_cflags"
20524 if test -n "$cf_new_cppflags" ; then
20526 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
20527 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
20531 if test -n "$cf_new_extra_cppflags" ; then
20533 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
20534 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
20543 if test "$with_dmalloc" = yes ; then
20544 echo "$as_me:20544: checking for dmalloc.h" >&5
20545 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
20546 if test "${ac_cv_header_dmalloc_h+set}" = set; then
20547 echo $ECHO_N "(cached) $ECHO_C" >&6
20549 cat >conftest.$ac_ext <<_ACEOF
20550 #line 20550 "configure"
20551 #include "confdefs.h"
20552 #include <dmalloc.h>
20554 if { (eval echo "$as_me:20554: \"$ac_cpp conftest.$ac_ext\"") >&5
20555 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20557 egrep -v '^ *\+' conftest.er1 >conftest.err
20559 cat conftest.err >&5
20560 echo "$as_me:20560: \$? = $ac_status" >&5
20561 (exit $ac_status); } >/dev/null; then
20562 if test -s conftest.err; then
20563 ac_cpp_err=$ac_c_preproc_warn_flag
20570 if test -z "$ac_cpp_err"; then
20571 ac_cv_header_dmalloc_h=yes
20573 echo "$as_me: failed program was:" >&5
20574 cat conftest.$ac_ext >&5
20575 ac_cv_header_dmalloc_h=no
20577 rm -f conftest.err conftest.$ac_ext
20579 echo "$as_me:20579: result: $ac_cv_header_dmalloc_h" >&5
20580 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
20581 if test $ac_cv_header_dmalloc_h = yes; then
20583 echo "$as_me:20583: checking for dmalloc_debug in -ldmalloc" >&5
20584 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
20585 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
20586 echo $ECHO_N "(cached) $ECHO_C" >&6
20588 ac_check_lib_save_LIBS=$LIBS
20589 LIBS="-ldmalloc $LIBS"
20590 cat >conftest.$ac_ext <<_ACEOF
20591 #line 20591 "configure"
20592 #include "confdefs.h"
20594 /* Override any gcc2 internal prototype to avoid an error. */
20598 /* We use char because int might match the return type of a gcc2
20599 builtin and then its argument prototype would still apply. */
20600 char dmalloc_debug ();
20609 rm -f conftest.$ac_objext conftest$ac_exeext
20610 if { (eval echo "$as_me:20610: \"$ac_link\"") >&5
20611 (eval $ac_link) 2>&5
20613 echo "$as_me:20613: \$? = $ac_status" >&5
20614 (exit $ac_status); } &&
20615 { ac_try='test -s conftest$ac_exeext'
20616 { (eval echo "$as_me:20616: \"$ac_try\"") >&5
20617 (eval $ac_try) 2>&5
20619 echo "$as_me:20619: \$? = $ac_status" >&5
20620 (exit $ac_status); }; }; then
20621 ac_cv_lib_dmalloc_dmalloc_debug=yes
20623 echo "$as_me: failed program was:" >&5
20624 cat conftest.$ac_ext >&5
20625 ac_cv_lib_dmalloc_dmalloc_debug=no
20627 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20628 LIBS=$ac_check_lib_save_LIBS
20630 echo "$as_me:20630: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
20631 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
20632 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
20633 cat >>confdefs.h <<EOF
20634 #define HAVE_LIBDMALLOC 1
20637 LIBS="-ldmalloc $LIBS"
20645 echo "$as_me:20645: checking if you want to use dbmalloc for testing" >&5
20646 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
20648 # Check whether --with-dbmalloc or --without-dbmalloc was given.
20649 if test "${with_dbmalloc+set}" = set; then
20650 withval="$with_dbmalloc"
20652 cat >>confdefs.h <<EOF
20653 #define USE_DBMALLOC 1
20656 : ${with_cflags:=-g}
20657 : ${with_no_leaks:=yes}
20662 echo "$as_me:20662: result: ${with_dbmalloc:-no}" >&5
20663 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
20665 case .$with_cflags in
20675 cf_new_extra_cppflags=
20677 for cf_add_cflags in -g
20679 case $cf_fix_cppflags in
20681 case $cf_add_cflags in
20682 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
20683 case $cf_add_cflags in
20685 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
20687 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20688 && test -z "${cf_tst_cflags}" \
20689 && cf_fix_cppflags=yes
20691 if test $cf_fix_cppflags = yes ; then
20693 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20694 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20697 elif test "${cf_tst_cflags}" = "\"'" ; then
20699 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20700 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20706 case "$CPPFLAGS" in
20710 case $cf_add_cflags in
20712 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
20714 CPPFLAGS=`echo "$CPPFLAGS" | \
20715 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
20716 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
20721 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
20722 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
20729 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
20730 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
20737 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20738 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20740 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
20742 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20743 && test -z "${cf_tst_cflags}" \
20744 && cf_fix_cppflags=no
20749 if test -n "$cf_new_cflags" ; then
20751 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
20752 CFLAGS="${CFLAGS}$cf_new_cflags"
20756 if test -n "$cf_new_cppflags" ; then
20758 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
20759 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
20763 if test -n "$cf_new_extra_cppflags" ; then
20765 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
20766 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
20775 if test "$with_dbmalloc" = yes ; then
20776 echo "$as_me:20776: checking for dbmalloc.h" >&5
20777 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
20778 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
20779 echo $ECHO_N "(cached) $ECHO_C" >&6
20781 cat >conftest.$ac_ext <<_ACEOF
20782 #line 20782 "configure"
20783 #include "confdefs.h"
20784 #include <dbmalloc.h>
20786 if { (eval echo "$as_me:20786: \"$ac_cpp conftest.$ac_ext\"") >&5
20787 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20789 egrep -v '^ *\+' conftest.er1 >conftest.err
20791 cat conftest.err >&5
20792 echo "$as_me:20792: \$? = $ac_status" >&5
20793 (exit $ac_status); } >/dev/null; then
20794 if test -s conftest.err; then
20795 ac_cpp_err=$ac_c_preproc_warn_flag
20802 if test -z "$ac_cpp_err"; then
20803 ac_cv_header_dbmalloc_h=yes
20805 echo "$as_me: failed program was:" >&5
20806 cat conftest.$ac_ext >&5
20807 ac_cv_header_dbmalloc_h=no
20809 rm -f conftest.err conftest.$ac_ext
20811 echo "$as_me:20811: result: $ac_cv_header_dbmalloc_h" >&5
20812 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
20813 if test $ac_cv_header_dbmalloc_h = yes; then
20815 echo "$as_me:20815: checking for debug_malloc in -ldbmalloc" >&5
20816 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
20817 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
20818 echo $ECHO_N "(cached) $ECHO_C" >&6
20820 ac_check_lib_save_LIBS=$LIBS
20821 LIBS="-ldbmalloc $LIBS"
20822 cat >conftest.$ac_ext <<_ACEOF
20823 #line 20823 "configure"
20824 #include "confdefs.h"
20826 /* Override any gcc2 internal prototype to avoid an error. */
20830 /* We use char because int might match the return type of a gcc2
20831 builtin and then its argument prototype would still apply. */
20832 char debug_malloc ();
20841 rm -f conftest.$ac_objext conftest$ac_exeext
20842 if { (eval echo "$as_me:20842: \"$ac_link\"") >&5
20843 (eval $ac_link) 2>&5
20845 echo "$as_me:20845: \$? = $ac_status" >&5
20846 (exit $ac_status); } &&
20847 { ac_try='test -s conftest$ac_exeext'
20848 { (eval echo "$as_me:20848: \"$ac_try\"") >&5
20849 (eval $ac_try) 2>&5
20851 echo "$as_me:20851: \$? = $ac_status" >&5
20852 (exit $ac_status); }; }; then
20853 ac_cv_lib_dbmalloc_debug_malloc=yes
20855 echo "$as_me: failed program was:" >&5
20856 cat conftest.$ac_ext >&5
20857 ac_cv_lib_dbmalloc_debug_malloc=no
20859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20860 LIBS=$ac_check_lib_save_LIBS
20862 echo "$as_me:20862: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
20863 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
20864 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
20865 cat >>confdefs.h <<EOF
20866 #define HAVE_LIBDBMALLOC 1
20869 LIBS="-ldbmalloc $LIBS"
20877 echo "$as_me:20877: checking if you want to use valgrind for testing" >&5
20878 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
20880 # Check whether --with-valgrind or --without-valgrind was given.
20881 if test "${with_valgrind+set}" = set; then
20882 withval="$with_valgrind"
20884 cat >>confdefs.h <<EOF
20885 #define USE_VALGRIND 1
20888 : ${with_cflags:=-g}
20889 : ${with_no_leaks:=yes}
20894 echo "$as_me:20894: result: ${with_valgrind:-no}" >&5
20895 echo "${ECHO_T}${with_valgrind:-no}" >&6
20897 case .$with_cflags in
20907 cf_new_extra_cppflags=
20909 for cf_add_cflags in -g
20911 case $cf_fix_cppflags in
20913 case $cf_add_cflags in
20914 (-undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
20915 case $cf_add_cflags in
20917 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
20919 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20920 && test -z "${cf_tst_cflags}" \
20921 && cf_fix_cppflags=yes
20923 if test $cf_fix_cppflags = yes ; then
20925 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20926 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20929 elif test "${cf_tst_cflags}" = "\"'" ; then
20931 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20932 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20938 case "$CPPFLAGS" in
20942 case $cf_add_cflags in
20944 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
20946 CPPFLAGS=`echo "$CPPFLAGS" | \
20947 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
20948 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
20953 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
20954 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
20961 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
20962 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
20969 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
20970 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
20972 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
20974 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
20975 && test -z "${cf_tst_cflags}" \
20976 && cf_fix_cppflags=no
20981 if test -n "$cf_new_cflags" ; then
20983 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
20984 CFLAGS="${CFLAGS}$cf_new_cflags"
20988 if test -n "$cf_new_cppflags" ; then
20990 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
20991 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
20995 if test -n "$cf_new_extra_cppflags" ; then
20997 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
20998 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
21007 echo "$as_me:21007: checking if you want to perform memory-leak testing" >&5
21008 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
21010 # Check whether --enable-leaks or --disable-leaks was given.
21011 if test "${enable_leaks+set}" = set; then
21012 enableval="$enable_leaks"
21013 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
21015 : ${with_no_leaks:=no}
21017 echo "$as_me:21017: result: $with_no_leaks" >&5
21018 echo "${ECHO_T}$with_no_leaks" >&6
21020 if test "$with_no_leaks" = yes ; then
21022 cat >>confdefs.h <<\EOF
21026 cat >>confdefs.h <<\EOF
21027 #define YY_NO_LEAKS 1
21033 if test "x$cf_cv_enable_rpath" != xno
21035 echo "$as_me:21035: checking for an rpath option" >&5
21036 echo $ECHO_N "checking for an rpath option... $ECHO_C" >&6
21037 case $cf_cv_system_name in
21039 if test "$GCC" = yes; then
21040 LD_RPATH_OPT="-Wl,-rpath,"
21042 LD_RPATH_OPT="-rpath "
21045 (linux*|gnu*|k*bsd*-gnu|freebsd*)
21046 LD_RPATH_OPT="-Wl,-rpath,"
21048 (openbsd[2-9].*|mirbsd*)
21049 LD_RPATH_OPT="-Wl,-rpath,"
21052 LD_RPATH_OPT="-rpath "
21055 LD_RPATH_OPT="-Wl,-rpath,"
21058 LD_RPATH_OPT="-rpath "
21066 echo "$as_me:21066: result: $LD_RPATH_OPT" >&5
21067 echo "${ECHO_T}$LD_RPATH_OPT" >&6
21069 case "x$LD_RPATH_OPT" in
21071 echo "$as_me:21071: checking if we need a space after rpath option" >&5
21072 echo $ECHO_N "checking if we need a space after rpath option... $ECHO_C" >&6
21073 cf_save_LIBS="$LIBS"
21075 cf_add_libs="$LIBS"
21078 for cf_add_1lib in ${LD_RPATH_OPT}$libdir; do cf_add_0lib="$cf_add_1lib $cf_add_0lib"; done
21079 # filter duplicates
21080 for cf_add_1lib in $cf_add_0lib; do
21081 for cf_add_2lib in $cf_add_libs; do
21082 if test "x$cf_add_1lib" = "x$cf_add_2lib"; then
21087 test -n "$cf_add_1lib" && cf_add_libs="$cf_add_1lib $cf_add_libs"
21089 LIBS="$cf_add_libs"
21091 cat >conftest.$ac_ext <<_ACEOF
21092 #line 21092 "configure"
21093 #include "confdefs.h"
21103 rm -f conftest.$ac_objext conftest$ac_exeext
21104 if { (eval echo "$as_me:21104: \"$ac_link\"") >&5
21105 (eval $ac_link) 2>&5
21107 echo "$as_me:21107: \$? = $ac_status" >&5
21108 (exit $ac_status); } &&
21109 { ac_try='test -s conftest$ac_exeext'
21110 { (eval echo "$as_me:21110: \"$ac_try\"") >&5
21111 (eval $ac_try) 2>&5
21113 echo "$as_me:21113: \$? = $ac_status" >&5
21114 (exit $ac_status); }; }; then
21117 echo "$as_me: failed program was:" >&5
21118 cat conftest.$ac_ext >&5
21121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21122 LIBS="$cf_save_LIBS"
21123 echo "$as_me:21123: result: $cf_rpath_space" >&5
21124 echo "${ECHO_T}$cf_rpath_space" >&6
21125 test "$cf_rpath_space" = yes && LD_RPATH_OPT="$LD_RPATH_OPT "
21130 echo "$as_me:21130: checking if rpath-hack should be disabled" >&5
21131 echo $ECHO_N "checking if rpath-hack should be disabled... $ECHO_C" >&6
21133 # Check whether --enable-rpath-hack or --disable-rpath-hack was given.
21134 if test "${enable_rpath_hack+set}" = set; then
21135 enableval="$enable_rpath_hack"
21136 test "$enableval" != no && enableval=yes
21137 if test "$enableval" != "yes" ; then
21138 cf_disable_rpath_hack=yes
21140 cf_disable_rpath_hack=no
21144 cf_disable_rpath_hack=no
21147 echo "$as_me:21147: result: $cf_disable_rpath_hack" >&5
21148 echo "${ECHO_T}$cf_disable_rpath_hack" >&6
21149 if test "$cf_disable_rpath_hack" = no ; then
21151 echo "$as_me:21151: checking for updated LDFLAGS" >&5
21152 echo $ECHO_N "checking for updated LDFLAGS... $ECHO_C" >&6
21153 if test -n "$LD_RPATH_OPT" ; then
21154 echo "$as_me:21154: result: maybe" >&5
21155 echo "${ECHO_T}maybe" >&6
21159 # Extract the first word of "$ac_prog", so it can be a program name with args.
21160 set dummy $ac_prog; ac_word=$2
21161 echo "$as_me:21161: checking for $ac_word" >&5
21162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21163 if test "${ac_cv_prog_cf_ldd_prog+set}" = set; then
21164 echo $ECHO_N "(cached) $ECHO_C" >&6
21166 if test -n "$cf_ldd_prog"; then
21167 ac_cv_prog_cf_ldd_prog="$cf_ldd_prog" # Let the user override the test.
21169 ac_save_IFS=$IFS; IFS=$ac_path_separator
21171 for ac_dir in $ac_dummy; do
21173 test -z "$ac_dir" && ac_dir=.
21174 $as_executable_p "$ac_dir/$ac_word" || continue
21175 ac_cv_prog_cf_ldd_prog="$ac_prog"
21176 echo "$as_me:21176: found $ac_dir/$ac_word" >&5
21182 cf_ldd_prog=$ac_cv_prog_cf_ldd_prog
21183 if test -n "$cf_ldd_prog"; then
21184 echo "$as_me:21184: result: $cf_ldd_prog" >&5
21185 echo "${ECHO_T}$cf_ldd_prog" >&6
21187 echo "$as_me:21187: result: no" >&5
21188 echo "${ECHO_T}no" >&6
21191 test -n "$cf_ldd_prog" && break
21193 test -n "$cf_ldd_prog" || cf_ldd_prog="no"
21195 cf_rpath_list="/usr/lib /lib"
21196 if test "$cf_ldd_prog" != no
21200 cat >conftest.$ac_ext <<_ACEOF
21201 #line 21201 "configure"
21202 #include "confdefs.h"
21212 rm -f conftest.$ac_objext conftest$ac_exeext
21213 if { (eval echo "$as_me:21213: \"$ac_link\"") >&5
21214 (eval $ac_link) 2>&5
21216 echo "$as_me:21216: \$? = $ac_status" >&5
21217 (exit $ac_status); } &&
21218 { ac_try='test -s conftest$ac_exeext'
21219 { (eval echo "$as_me:21219: \"$ac_try\"") >&5
21220 (eval $ac_try) 2>&5
21222 echo "$as_me:21222: \$? = $ac_status" >&5
21223 (exit $ac_status); }; }; then
21224 cf_rpath_oops=`$cf_ldd_prog conftest$ac_exeext | fgrep ' not found' | sed -e 's% =>.*$%%' |sort | uniq`
21225 cf_rpath_list=`$cf_ldd_prog conftest$ac_exeext | fgrep / | sed -e 's%^.*[ ]/%/%' -e 's%/[^/][^/]*$%%' |sort | uniq`
21227 echo "$as_me: failed program was:" >&5
21228 cat conftest.$ac_ext >&5
21230 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21232 # If we passed the link-test, but get a "not found" on a given library,
21233 # this could be due to inept reconfiguration of gcc to make it only
21234 # partly honor /usr/local/lib (or whatever). Sometimes this behavior
21235 # is intentional, e.g., installing gcc in /usr/bin and suppressing the
21236 # /usr/local libraries.
21237 if test -n "$cf_rpath_oops"
21239 for cf_rpath_src in $cf_rpath_oops
21241 for cf_rpath_dir in \
21246 if test -f $cf_rpath_dir/lib/$cf_rpath_src
21248 test -n "$verbose" && echo " ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src" 1>&6
21250 echo "${as_me:-configure}:21250: testing ...adding -L$cf_rpath_dir/lib to LDFLAGS for $cf_rpath_src ..." 1>&5
21252 LDFLAGS="$LDFLAGS -L$cf_rpath_dir/lib"
21260 test -n "$verbose" && echo " ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
21262 echo "${as_me:-configure}:21262: testing ...checking EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
21264 test -n "$verbose" && echo " ...checking LDFLAGS $LDFLAGS" 1>&6
21266 echo "${as_me:-configure}:21266: testing ...checking LDFLAGS $LDFLAGS ..." 1>&5
21269 for cf_rpath_src in $LDFLAGS
21271 case $cf_rpath_src in
21274 # check if this refers to a directory which we will ignore
21276 if test -n "$cf_rpath_list"
21278 for cf_rpath_item in $cf_rpath_list
21280 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
21288 if test "$cf_rpath_skip" = no
21290 # transform the option
21291 if test "$LD_RPATH_OPT" = "-R " ; then
21292 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
21294 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
21297 # if we have not already added this, add it now
21298 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
21299 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
21301 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
21303 echo "${as_me:-configure}:21303: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
21305 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
21310 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
21312 LDFLAGS=$cf_rpath_dst
21314 test -n "$verbose" && echo " ...checked LDFLAGS $LDFLAGS" 1>&6
21316 echo "${as_me:-configure}:21316: testing ...checked LDFLAGS $LDFLAGS ..." 1>&5
21318 test -n "$verbose" && echo " ...checking LIBS $LIBS" 1>&6
21320 echo "${as_me:-configure}:21320: testing ...checking LIBS $LIBS ..." 1>&5
21323 for cf_rpath_src in $LIBS
21325 case $cf_rpath_src in
21328 # check if this refers to a directory which we will ignore
21330 if test -n "$cf_rpath_list"
21332 for cf_rpath_item in $cf_rpath_list
21334 if test "x$cf_rpath_src" = "x-L$cf_rpath_item"
21342 if test "$cf_rpath_skip" = no
21344 # transform the option
21345 if test "$LD_RPATH_OPT" = "-R " ; then
21346 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%-R %"`
21348 cf_rpath_tmp=`echo "$cf_rpath_src" |sed -e "s%-L%$LD_RPATH_OPT%"`
21351 # if we have not already added this, add it now
21352 cf_rpath_tst=`echo "$EXTRA_LDFLAGS" | sed -e "s%$cf_rpath_tmp %%"`
21353 if test "x$cf_rpath_tst" = "x$EXTRA_LDFLAGS"
21355 test -n "$verbose" && echo " ...Filter $cf_rpath_src ->$cf_rpath_tmp" 1>&6
21357 echo "${as_me:-configure}:21357: testing ...Filter $cf_rpath_src ->$cf_rpath_tmp ..." 1>&5
21359 EXTRA_LDFLAGS="$cf_rpath_tmp $EXTRA_LDFLAGS"
21364 cf_rpath_dst="$cf_rpath_dst $cf_rpath_src"
21368 test -n "$verbose" && echo " ...checked LIBS $LIBS" 1>&6
21370 echo "${as_me:-configure}:21370: testing ...checked LIBS $LIBS ..." 1>&5
21372 test -n "$verbose" && echo " ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS" 1>&6
21374 echo "${as_me:-configure}:21374: testing ...checked EXTRA_LDFLAGS $EXTRA_LDFLAGS ..." 1>&5
21377 echo "$as_me:21377: result: no" >&5
21378 echo "${ECHO_T}no" >&6
21386 ac_config_files="$ac_config_files Makefile"
21387 ac_config_commands="$ac_config_commands default"
21388 cat >confcache <<\_ACEOF
21389 # This file is a shell script that caches the results of configure
21390 # tests run on this system so they can be shared between configure
21391 # scripts and configure runs, see configure's option --config-cache.
21392 # It is not useful on other systems. If it contains results you don't
21393 # want to keep, you may remove or edit it.
21395 # config.status only pays attention to the cache file if you give it
21396 # the --recheck option to rerun configure.
21398 # `ac_cv_env_foo' variables (set or unset) will be overriden when
21399 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21400 # following values.
21404 # The following way of writing the cache mishandles newlines in values,
21405 # but we know of no workaround that is simple, portable, and efficient.
21406 # So, don't put newlines in cache variables' values.
21407 # Ultrix sh set writes to stderr and can't be redirected directly,
21408 # and sets the high bit in the cache file unless we assign to the vars.
21411 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21413 # `set' does not quote correctly, so add quotes (double-quote
21414 # substitution turns \\\\ into \\, and sed turns \\ into \).
21417 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21420 # `set' quotes correctly as required by POSIX, so do not add quotes.
21422 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21429 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21431 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21433 if cmp -s $cache_file confcache; then :; else
21434 if test -w $cache_file; then
21435 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21436 cat confcache >$cache_file
21438 echo "not updating unwritable cache $cache_file"
21443 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21444 # Let make expand exec_prefix.
21445 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21447 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21448 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21449 # trailing colons and then remove the whole line if VPATH becomes empty
21450 # (actually we leave an empty line to preserve line numbers).
21451 if test "x$srcdir" = x.; then
21452 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21453 s/:*\$(srcdir):*/:/;
21454 s/:*\${srcdir}:*/:/;
21456 s/^\([^=]*=[ ]*\):*/\1/;
21462 DEFS=-DHAVE_CONFIG_H
21464 : ${CONFIG_STATUS=./config.status}
21465 ac_clean_files_save=$ac_clean_files
21466 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21467 { echo "$as_me:21467: creating $CONFIG_STATUS" >&5
21468 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21469 cat >$CONFIG_STATUS <<_ACEOF
21471 # Generated automatically by configure.
21472 # Run this file to recreate the current configuration.
21473 # Compiler output produced by configure, useful for debugging
21474 # configure, is in config.log if it exists.
21477 SHELL=\${CONFIG_SHELL-$SHELL}
21478 ac_cs_invocation="\$0 \$@"
21482 cat >>$CONFIG_STATUS <<\_ACEOF
21483 # Be Bourne compatible
21484 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21487 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21491 # Name of the executable.
21492 as_me=`echo "$0" |sed 's,.*[\\/],,'`
21494 if expr a : '\(a\)' >/dev/null 2>&1; then
21500 rm -f conf$$ conf$$.exe conf$$.file
21502 if ln -s conf$$.file conf$$ 2>/dev/null; then
21503 # We could just check for DJGPP; but this test a) works b) is more generic
21504 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21505 if test -f conf$$.exe; then
21506 # Don't use ln at all; we don't have any links
21511 elif ln conf$$.file conf$$ 2>/dev/null; then
21516 rm -f conf$$ conf$$.exe conf$$.file
21518 as_executable_p="test -f"
21520 # Support unset when possible.
21521 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
21528 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
21529 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
21530 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
21531 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
21532 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
21533 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
21534 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
21535 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
21538 # We need space, tab and new line, in precisely that order.
21544 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
21550 # Files that config.status was made for.
21551 if test -n "$ac_config_files"; then
21552 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21555 if test -n "$ac_config_headers"; then
21556 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21559 if test -n "$ac_config_links"; then
21560 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21563 if test -n "$ac_config_commands"; then
21564 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21567 cat >>$CONFIG_STATUS <<\EOF
21570 \`$as_me' instantiates files from templates according to the
21571 current configuration.
21573 Usage: $0 [OPTIONS] [FILE]...
21575 -h, --help print this help, then exit
21576 -V, --version print version number, then exit
21577 -d, --debug don't remove temporary files
21578 --recheck update $as_me by reconfiguring in the same conditions
21579 --file=FILE[:TEMPLATE]
21580 instantiate the configuration file FILE
21581 --header=FILE[:TEMPLATE]
21582 instantiate the configuration header FILE
21584 Configuration files:
21587 Configuration headers:
21590 Configuration commands:
21593 Report bugs to <dickey@invisible-island.net>."
21596 cat >>$CONFIG_STATUS <<EOF
21599 configured by $0, generated by GNU Autoconf 2.52.20200111,
21600 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21602 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
21603 Free Software Foundation, Inc.
21604 This config.status script is free software; the Free Software Foundation
21605 gives unlimited permission to copy, distribute and modify it."
21610 cat >>$CONFIG_STATUS <<\EOF
21611 # If no file are specified by the user, then we need to provide default
21612 # value. By we need to know if files were specified by the user.
21618 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21619 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21621 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
21625 *) # This is not an option, so the user has probably given explicit
21627 ac_need_defaults=false;;
21631 # Handling of the options.
21633 cat >>$CONFIG_STATUS <<EOF
21634 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21635 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
21636 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
21638 cat >>$CONFIG_STATUS <<\EOF
21639 --version | --vers* | -V )
21640 echo "$ac_cs_version"; exit 0 ;;
21642 # Conflict between --help and --header
21643 { { echo "$as_me:21643: error: ambiguous option: $1
21644 Try \`$0 --help' for more information." >&5
21645 echo "$as_me: error: ambiguous option: $1
21646 Try \`$0 --help' for more information." >&2;}
21647 { (exit 1); exit 1; }; };;
21648 --help | --hel | -h )
21649 echo "$ac_cs_usage"; exit 0 ;;
21650 --debug | --d* | -d )
21652 --file | --fil | --fi | --f )
21654 CONFIG_FILES="$CONFIG_FILES $1"
21655 ac_need_defaults=false;;
21656 --header | --heade | --head | --hea )
21658 CONFIG_HEADERS="$CONFIG_HEADERS $1"
21659 ac_need_defaults=false;;
21661 # This is an error.
21662 -*) { { echo "$as_me:21662: error: unrecognized option: $1
21663 Try \`$0 --help' for more information." >&5
21664 echo "$as_me: error: unrecognized option: $1
21665 Try \`$0 --help' for more information." >&2;}
21666 { (exit 1); exit 1; }; } ;;
21668 *) ac_config_targets="$ac_config_targets $1" ;;
21677 ## ----------------------- ##
21678 ## Running config.status. ##
21679 ## ----------------------- ##
21681 This file was extended by $as_me 2.52.20200111, executed with
21682 CONFIG_FILES = $CONFIG_FILES
21683 CONFIG_HEADERS = $CONFIG_HEADERS
21684 CONFIG_LINKS = $CONFIG_LINKS
21685 CONFIG_COMMANDS = $CONFIG_COMMANDS
21686 > $ac_cs_invocation
21687 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21692 cat >>$CONFIG_STATUS <<EOF
21694 # INIT-COMMANDS section.
21704 cat >>$CONFIG_STATUS <<\EOF
21705 for ac_config_target in $ac_config_targets
21707 case "$ac_config_target" in
21708 # Handling of arguments.
21709 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21710 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21711 "ncurses_cfg.h" ) CONFIG_HEADERS="$CONFIG_HEADERS ncurses_cfg.h:ncurses_tst.hin" ;;
21712 *) { { echo "$as_me:21712: error: invalid argument: $ac_config_target" >&5
21713 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21714 { (exit 1); exit 1; }; };;
21718 # If the user did not use the arguments to specify the items to instantiate,
21719 # then the envvar interface is used. Set only those that are not.
21720 # We use the long form for the default assignment because of an extremely
21721 # bizarre bug on SunOS 4.1.3.
21722 if $ac_need_defaults; then
21723 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21724 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21725 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21728 # Create a temporary directory, and hook for its removal unless debugging.
21731 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21732 trap '{ (exit 1); exit 1; }' 1 2 13 15
21735 # Create a (secure) tmp directory for tmp files.
21738 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
21739 test -n "$tmp" && test -d "$tmp"
21742 tmp=$TMPDIR/cs$$-$RANDOM
21743 (umask 077 && mkdir $tmp)
21746 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
21747 { (exit 1); exit 1; }
21752 cat >>$CONFIG_STATUS <<EOF
21755 # CONFIG_FILES section.
21758 # No need to generate the scripts if there are no CONFIG_FILES.
21759 # This happens for instance when ./config.status config.h
21760 if test -n "\$CONFIG_FILES"; then
21761 # Protect against being on the right side of a sed subst in config.status.
21762 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21763 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21764 s,@SHELL@,$SHELL,;t t
21765 s,@exec_prefix@,$exec_prefix,;t t
21766 s,@prefix@,$prefix,;t t
21767 s,@program_transform_name@,$program_transform_name,;t t
21768 s,@bindir@,$bindir,;t t
21769 s,@sbindir@,$sbindir,;t t
21770 s,@libexecdir@,$libexecdir,;t t
21771 s,@datarootdir@,$datarootdir,;t t
21772 s,@datadir@,$datadir,;t t
21773 s,@sysconfdir@,$sysconfdir,;t t
21774 s,@sharedstatedir@,$sharedstatedir,;t t
21775 s,@localstatedir@,$localstatedir,;t t
21776 s,@runstatedir@,$runstatedir,;t t
21777 s,@libdir@,$libdir,;t t
21778 s,@includedir@,$includedir,;t t
21779 s,@oldincludedir@,$oldincludedir,;t t
21780 s,@infodir@,$infodir,;t t
21781 s,@mandir@,$mandir,;t t
21782 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21783 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21784 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21785 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21786 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21787 s,@build_alias@,$build_alias,;t t
21788 s,@host_alias@,$host_alias,;t t
21789 s,@target_alias@,$target_alias,;t t
21790 s,@ECHO_C@,$ECHO_C,;t t
21791 s,@ECHO_N@,$ECHO_N,;t t
21792 s,@ECHO_T@,$ECHO_T,;t t
21793 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21794 s,@DEFS@,$DEFS,;t t
21795 s,@LIBS@,$LIBS,;t t
21796 s,@build@,$build,;t t
21797 s,@build_cpu@,$build_cpu,;t t
21798 s,@build_vendor@,$build_vendor,;t t
21799 s,@build_os@,$build_os,;t t
21800 s,@host@,$host,;t t
21801 s,@host_cpu@,$host_cpu,;t t
21802 s,@host_vendor@,$host_vendor,;t t
21803 s,@host_os@,$host_os,;t t
21804 s,@SET_MAKE@,$SET_MAKE,;t t
21806 s,@CFLAGS@,$CFLAGS,;t t
21807 s,@LDFLAGS@,$LDFLAGS,;t t
21808 s,@CPPFLAGS@,$CPPFLAGS,;t t
21809 s,@ac_ct_CC@,$ac_ct_CC,;t t
21810 s,@EXEEXT@,$EXEEXT,;t t
21811 s,@OBJEXT@,$OBJEXT,;t t
21812 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
21815 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21816 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21817 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21818 s,@INSTALL_OPT_S@,$INSTALL_OPT_S,;t t
21819 s,@INSTALL_OPT_O@,$INSTALL_OPT_O,;t t
21820 s,@LINT@,$LINT,;t t
21821 s,@LINT_OPTS@,$LINT_OPTS,;t t
21822 s,@CTAGS@,$CTAGS,;t t
21823 s,@ETAGS@,$ETAGS,;t t
21824 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
21825 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
21826 s,@MATH_LIB@,$MATH_LIB,;t t
21827 s,@top_builddir@,$top_builddir,;t t
21828 s,@CC_G_OPT@,$CC_G_OPT,;t t
21829 s,@CC_SHARED_OPTS@,$CC_SHARED_OPTS,;t t
21830 s,@DFT_DEP_SUFFIX@,$DFT_DEP_SUFFIX,;t t
21831 s,@DFT_OBJ_SUBDIR@,$DFT_OBJ_SUBDIR,;t t
21832 s,@DFT_UPR_MODEL@,$DFT_UPR_MODEL,;t t
21834 s,@LDFLAGS_SHARED@,$LDFLAGS_SHARED,;t t
21835 s,@LDFLAGS_STATIC@,$LDFLAGS_STATIC,;t t
21836 s,@LD_MODEL@,$LD_MODEL,;t t
21837 s,@LD_SHARED_OPTS@,$LD_SHARED_OPTS,;t t
21838 s,@LIBTOOL@,$LIBTOOL,;t t
21839 s,@LIBTOOL_OPTS@,$LIBTOOL_OPTS,;t t
21840 s,@LIB_CLEAN@,$LIB_CLEAN,;t t
21841 s,@LIB_COMPILE@,$LIB_COMPILE,;t t
21842 s,@LIB_LINK@,$LIB_LINK,;t t
21843 s,@LINK_TESTS@,$LINK_TESTS,;t t
21844 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
21845 s,@PACKAGE@,$PACKAGE,;t t
21846 s,@PTHREAD@,$PTHREAD,;t t
21847 s,@TEST_ARGS@,$TEST_ARGS,;t t
21848 s,@TEST_DEPS@,$TEST_DEPS,;t t
21849 s,@TEST_LIBS@,$TEST_LIBS,;t t
21850 s,@TINFO_LDFLAGS@,$TINFO_LDFLAGS,;t t
21851 s,@TINFO_LIBS@,$TINFO_LIBS,;t t
21852 s,@cf_cv_abi_version@,$cf_cv_abi_version,;t t
21853 s,@cf_cv_rel_version@,$cf_cv_rel_version,;t t
21854 s,@includesubdir@,$includesubdir,;t t
21855 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21856 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
21857 s,@ECHO_LT@,$ECHO_LT,;t t
21858 s,@ECHO_LD@,$ECHO_LD,;t t
21859 s,@RULE_CC@,$RULE_CC,;t t
21860 s,@SHOW_CC@,$SHOW_CC,;t t
21861 s,@ECHO_CC@,$ECHO_CC,;t t
21862 s,@NCURSES_WRAP_PREFIX@,$NCURSES_WRAP_PREFIX,;t t
21863 s,@NCURSES_CONFIG@,$NCURSES_CONFIG,;t t
21864 s,@ac_ct_NCURSES_CONFIG@,$ac_ct_NCURSES_CONFIG,;t t
21865 s,@X_CFLAGS@,$X_CFLAGS,;t t
21866 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
21867 s,@X_LIBS@,$X_LIBS,;t t
21868 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
21869 s,@XCURSES_CONFIG@,$XCURSES_CONFIG,;t t
21870 s,@ac_ct_XCURSES_CONFIG@,$ac_ct_XCURSES_CONFIG,;t t
21871 s,@RGB_PATH@,$RGB_PATH,;t t
21872 s,@no_x11_rgb@,$no_x11_rgb,;t t
21873 s,@FORM_NAME@,$FORM_NAME,;t t
21874 s,@MENU_NAME@,$MENU_NAME,;t t
21875 s,@PANEL_NAME@,$PANEL_NAME,;t t
21876 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
21877 s,@cf_ldd_prog@,$cf_ldd_prog,;t t
21878 s,@EXTRA_LDFLAGS@,$EXTRA_LDFLAGS,;t t
21883 cat >>$CONFIG_STATUS <<\EOF
21884 # Split the substitutions into bite-sized pieces for seds with
21885 # small command number limits, like on Digital OSF/1 and HP-UX.
21886 ac_max_sed_lines=48
21887 ac_sed_frag=1 # Number of current file.
21888 ac_beg=1 # First line for current file.
21889 ac_end=$ac_max_sed_lines # Line after last line for current file.
21892 while $ac_more_lines; do
21893 if test $ac_beg -gt 1; then
21894 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21896 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21898 if test ! -s $tmp/subs.frag; then
21899 ac_more_lines=false
21901 # The purpose of the label and of the branching condition is to
21902 # speed up the sed processing (if there are no `@' at all, there
21903 # is no need to browse any of the substitutions).
21904 # These are the two extra sed commands mentioned above.
21906 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21907 # It is possible to make a multiline substitution using escaped newlines.
21908 # Ensure that we do not split the substitution between script fragments.
21910 ac_END=`expr $ac_end + $ac_max_sed_lines`
21911 sed "1,${ac_BEG}d; ${ac_END}p; q" $tmp/subs.sed >$tmp/subs.next
21912 if test -s $tmp/subs.next; then
21913 grep '^s,@[^@,][^@,]*@,.*\\$' $tmp/subs.next >$tmp/subs.edit
21914 if test ! -s $tmp/subs.edit; then
21915 grep "^s,@[^@,][^@,]*@,.*,;t t$" $tmp/subs.next >$tmp/subs.edit
21916 if test ! -s $tmp/subs.edit; then
21917 if test $ac_beg -gt 1; then
21918 ac_end=`expr $ac_end - 1`
21925 if test -z "$ac_sed_cmds"; then
21926 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21928 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21930 ac_sed_frag=`expr $ac_sed_frag + 1`
21932 ac_end=`expr $ac_end + $ac_max_sed_lines`
21935 if test -z "$ac_sed_cmds"; then
21938 fi # test -n "$CONFIG_FILES"
21941 cat >>$CONFIG_STATUS <<\EOF
21942 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21943 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21945 - | *:- | *:-:* ) # input from stdin
21947 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21948 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21949 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21950 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21951 * ) ac_file_in=$ac_file.in ;;
21954 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21955 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21956 X"$ac_file" : 'X\(//\)[^/]' \| \
21957 X"$ac_file" : 'X\(//\)$' \| \
21958 X"$ac_file" : 'X\(/\)' \| \
21959 . : '\(.\)' 2>/dev/null ||
21961 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21962 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21963 /^X\(\/\/\)$/{ s//\1/; q; }
21964 /^X\(\/\).*/{ s//\1/; q; }
21966 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21967 { case "$ac_dir" in
21968 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
21972 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
21973 case $as_mkdir_dir in
21974 # Skip DOS drivespec
21975 ?:) as_incr_dir=$as_mkdir_dir ;;
21977 as_incr_dir=$as_incr_dir/$as_mkdir_dir
21978 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
21983 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
21984 # A "../" for each directory in $ac_dir_suffix.
21985 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
21987 ac_dir_suffix= ac_dots=
21992 if test -z "$ac_dots"; then
21995 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
21997 [\\/]* | ?:[\\/]* )
21998 ac_srcdir=$srcdir$ac_dir_suffix;
21999 ac_top_srcdir=$srcdir ;;
22000 *) # Relative path.
22001 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
22002 ac_top_srcdir=$ac_dots$srcdir ;;
22006 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22007 *) ac_INSTALL=$ac_dots$INSTALL ;;
22010 if test x"$ac_file" != x-; then
22011 { echo "$as_me:22011: creating $ac_file" >&5
22012 echo "$as_me: creating $ac_file" >&6;}
22015 # Let's still pretend it is `configure' which instantiates (i.e., don't
22016 # use $as_me), people would be surprised to read:
22017 # /* config.h. Generated automatically by config.status. */
22018 configure_input="Generated automatically from `echo $ac_file_in |
22019 sed 's,.*/,,'` by configure."
22021 # First look for the input files in the build tree, otherwise in the
22023 ac_file_inputs=`IFS=:
22024 for f in $ac_file_in; do
22026 -) echo $tmp/stdin ;;
22028 # Absolute (can't be DOS-style, as IFS=:)
22029 test -f "$f" || { { echo "$as_me:22029: error: cannot find input file: $f" >&5
22030 echo "$as_me: error: cannot find input file: $f" >&2;}
22031 { (exit 1); exit 1; }; }
22034 if test -f "$f"; then
22037 elif test -f "$srcdir/$f"; then
22042 { { echo "$as_me:22042: error: cannot find input file: $f" >&5
22043 echo "$as_me: error: cannot find input file: $f" >&2;}
22044 { (exit 1); exit 1; }; }
22047 done` || { (exit 1); exit 1; }
22049 cat >>$CONFIG_STATUS <<\EOF
22050 ac_warn_datarootdir=no
22051 if test x"$ac_file" != x-; then
22052 for ac_item in $ac_file_inputs
22054 ac_seen=`grep '@\(datadir\|mandir\|infodir\)@' $ac_item`
22055 if test -n "$ac_seen"; then
22056 ac_used=`grep '@datarootdir@' $ac_item`
22057 if test -z "$ac_used"; then
22058 { echo "$as_me:22058: WARNING: datarootdir was used implicitly but not set:
22060 echo "$as_me: WARNING: datarootdir was used implicitly but not set:
22062 ac_warn_datarootdir=yes
22065 ac_seen=`grep '${datarootdir}' $ac_item`
22066 if test -n "$ac_seen"; then
22067 { echo "$as_me:22067: WARNING: datarootdir was used explicitly but not set:
22069 echo "$as_me: WARNING: datarootdir was used explicitly but not set:
22071 ac_warn_datarootdir=yes
22076 if test "x$ac_warn_datarootdir" = xyes; then
22077 ac_sed_cmds="$ac_sed_cmds | sed -e 's,@datarootdir@,\${prefix}/share,g' -e 's,\${datarootdir},\${prefix}/share,g'"
22081 cat >>$CONFIG_STATUS <<EOF
22085 cat >>$CONFIG_STATUS <<\EOF
22087 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22088 s,@configure_input@,$configure_input,;t t
22089 s,@srcdir@,$ac_srcdir,;t t
22090 s,@top_srcdir@,$ac_top_srcdir,;t t
22091 s,@INSTALL@,$ac_INSTALL,;t t
22092 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22094 if test x"$ac_file" != x-; then
22095 cp $tmp/out $ac_file
22097 for ac_name in prefix exec_prefix datarootdir
22099 ac_seen=`fgrep -n '${'$ac_name'[:=].*}' $ac_file`
22100 if test -n "$ac_seen"; then
22101 ac_init=`egrep '[ ]*'$ac_name'[ ]*=' $ac_file`
22102 if test -z "$ac_init"; then
22103 ac_seen=`echo "$ac_seen" |sed -e 's,^,'$ac_file':,'`
22104 { echo "$as_me:22104: WARNING: Variable $ac_name is used but was not set:
22106 echo "$as_me: WARNING: Variable $ac_name is used but was not set:
22111 egrep -n '@[a-z_][a-z_0-9]+@' $ac_file >$tmp/out
22112 egrep -n '@[A-Z_][A-Z_0-9]+@' $ac_file >>$tmp/out
22113 if test -s $tmp/out; then
22114 ac_seen=`sed -e 's,^,'$ac_file':,' < $tmp/out`
22115 { echo "$as_me:22115: WARNING: Some variables may not be substituted:
22117 echo "$as_me: WARNING: Some variables may not be substituted:
22127 cat >>$CONFIG_STATUS <<\EOF
22130 # CONFIG_HEADER section.
22133 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22134 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22136 # ac_d sets the value in "#define NAME VALUE" lines.
22137 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22138 ac_dB='[ ].*$,\1#\2'
22141 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22142 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22143 ac_iB='\([ ]\),\1#\2define\3'
22146 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22147 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22148 ac_uB='$,\1#\2define\3'
22152 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22153 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22155 - | *:- | *:-:* ) # input from stdin
22157 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22158 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22159 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22160 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22161 * ) ac_file_in=$ac_file.in ;;
22164 test x"$ac_file" != x- && { echo "$as_me:22164: creating $ac_file" >&5
22165 echo "$as_me: creating $ac_file" >&6;}
22167 # First look for the input files in the build tree, otherwise in the
22169 ac_file_inputs=`IFS=:
22170 for f in $ac_file_in; do
22172 -) echo $tmp/stdin ;;
22174 # Absolute (can't be DOS-style, as IFS=:)
22175 test -f "$f" || { { echo "$as_me:22175: error: cannot find input file: $f" >&5
22176 echo "$as_me: error: cannot find input file: $f" >&2;}
22177 { (exit 1); exit 1; }; }
22180 if test -f "$f"; then
22183 elif test -f "$srcdir/$f"; then
22188 { { echo "$as_me:22188: error: cannot find input file: $f" >&5
22189 echo "$as_me: error: cannot find input file: $f" >&2;}
22190 { (exit 1); exit 1; }; }
22193 done` || { (exit 1); exit 1; }
22194 # Remove the trailing spaces.
22195 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22199 # Transform confdefs.h into a list of #define's. We won't use it as a sed
22200 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
22201 # be either 'cat' or 'sort'.
22202 cat confdefs.h | uniq >conftest.vals
22204 # Break up conftest.vals because some shells have a limit on
22205 # the size of here documents, and old seds have small limits too.
22207 rm -f conftest.tail
22208 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
22209 while grep . conftest.vals >/dev/null
22211 # Write chunks of a limited-size here document to conftest.frag.
22212 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
22213 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
22214 echo 'CEOF' >> $CONFIG_STATUS
22215 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22216 rm -f conftest.vals
22217 mv conftest.tail conftest.vals
22219 rm -f conftest.vals
22221 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
22223 echo ' cat >> conftest.edit <<CEOF
22224 /@DEFS@/r conftest.frag
22227 sed -f conftest.edit $tmp/in > $tmp/out
22229 mv $tmp/out $tmp/in
22230 rm -f conftest.edit conftest.frag
22231 ' >> $CONFIG_STATUS
22233 cat >>$CONFIG_STATUS <<\EOF
22234 # Let's still pretend it is `configure' which instantiates (i.e., don't
22235 # use $as_me), people would be surprised to read:
22236 # /* config.h. Generated automatically by config.status. */
22237 if test x"$ac_file" = x-; then
22238 echo "/* Generated automatically by configure. */" >$tmp/config.h
22240 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
22242 cat $tmp/in >>$tmp/config.h
22244 if test x"$ac_file" != x-; then
22245 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
22246 { echo "$as_me:22246: $ac_file is unchanged" >&5
22247 echo "$as_me: $ac_file is unchanged" >&6;}
22249 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22250 X"$ac_file" : 'X\(//\)[^/]' \| \
22251 X"$ac_file" : 'X\(//\)$' \| \
22252 X"$ac_file" : 'X\(/\)' \| \
22253 . : '\(.\)' 2>/dev/null ||
22255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22256 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22257 /^X\(\/\/\)$/{ s//\1/; q; }
22258 /^X\(\/\).*/{ s//\1/; q; }
22260 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22261 { case "$ac_dir" in
22262 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
22266 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
22267 case $as_mkdir_dir in
22268 # Skip DOS drivespec
22269 ?:) as_incr_dir=$as_mkdir_dir ;;
22271 as_incr_dir=$as_incr_dir/$as_mkdir_dir
22272 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
22279 mv $tmp/config.h $ac_file
22283 rm -f $tmp/config.h
22287 cat >>$CONFIG_STATUS <<\EOF
22289 # CONFIG_COMMANDS section.
22291 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22292 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22293 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22300 if test ! -d $srcdir/$cf_dir; then
22302 elif test -f $srcdir/$cf_dir/programs; then
22303 $AWK -f $srcdir/mk-test.awk INSTALL=yes ECHO_LINK="$ECHO_LD" $srcdir/$cf_dir/programs >>$cf_dir/Makefile
22307 cat >>Makefile <<TEST_EOF
22309 # These rules are generated so we do not rely on suffix rules, which do not
22310 # work consistently for different make-programs (the '\$(MODEL)/' confuses
22311 # some, and the '\$x' confuses others).
22314 LIST=`sed -e 's/[ ].*//' -e '/^[#@]/d' $srcdir/modules`
22317 cat >>Makefile <<TEST_EOF
22319 \$(MODEL)/$N.o : \$(srcdir)/$N.c \\
22320 \$(srcdir)/test.priv.h \\
22323 $ECHO_CC\$(CC) -c \$(CFLAGS_DEFAULT) -DMODULE_NAME="$N" \$(srcdir)/$N.c
22327 if test -f ../config.guess && test -f ../config.sub
22329 cat >>Makefile <<TEST_EOF
22331 # if we used CF_INHERIT for getting these files, we can remove them
22333 rm -f config.guess config.sub
22341 cat >>$CONFIG_STATUS <<\EOF
22343 { (exit 0); exit 0; }
22345 chmod +x $CONFIG_STATUS
22346 ac_clean_files=$ac_clean_files_save
22348 # configure is writing to config.log, and then calls config.status.
22349 # config.status does its own redirection, appending to config.log.
22350 # Unfortunately, on DOS this fails, as config.log is still kept open
22351 # by configure, so config.status won't be able to write to it; its
22352 # output is simply discarded. So we exec the FD to /dev/null,
22353 # effectively closing config.log, so it can be properly (re)opened and
22354 # appended to by config.status. When coming back to configure, we
22355 # need to make the FD available again.
22356 if test "$no_create" != yes; then
22359 $SHELL $CONFIG_STATUS || ac_cs_success=false
22361 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22362 # would make configure fail if this is the last instruction.
22363 $ac_cs_success || { (exit 1); exit 1; }